def source_ranges_match(original_file_dict, diff_dict, original_result_diff_dict, modified_result_diff_dict, renamed_files):
 for file_name in original_file_dict:
  try:
   original_total_diff = (diff_dict[file_name] + original_result_diff_dict[file_name])
  except ConflictError:
   return False
  original_total_file = original_total_diff.modified
  modified_total_file = modified_result_diff_dict[renamed_files.get(file_name, file_name)].modified
  if (original_total_file != modified_total_file):
   return False
 return True

def source_ranges_match ( original_file_dict , diff_dict , original_result_diff_dict , modified_result_diff_dict , renamed_files ) : for file_name in original_file_dict : try : original_total_diff = ( diff_dict [ file_name ] + original_result_diff_dict [ file_name ] ) except ConflictError : return False original_total_file = original_total_diff . modified modified_total_file = modified_result_diff_dict [ renamed_files . get ( file_name , file_name ) ] . modified if ( original_total_file != modified_total_file ) : return False return True
checks whether the sourceranges of two results match .