@@ -382,9 +382,7 @@ def audit(file_name1, file_name2, output_root, debug):
382382 with open (json_file_name , "w" ) as f :
383383 json .dump (stat_pack , f )
384384
385- print (
386- textwrap .dedent (
387- f"""\
385+ print (textwrap .dedent (f"""\
388386
389387 { stat_pack ['PAIRS' ]['PRIOR_COUNT' ]} prior pairs
390388 { stat_pack ['PAIRS' ]['NEWER_COUNT' ]} newer pairs
@@ -404,9 +402,7 @@ def audit(file_name1, file_name2, output_root, debug):
404402 { stat_pack ['AUDIT' ].get ('SPLIT' , {}).get ('COUNT' , 0 )} split entities
405403 { stat_pack ['AUDIT' ].get ('SPLIT+MERGE' , {}).get ('COUNT' , 0 )} split+merge entities
406404
407- """
408- )
409- )
405+ """ ))
410406 if missing_prior_record_cnt or missing_newer_record_cnt :
411407 print (f"{ missing_prior_record_cnt } missing prior records" )
412408 print (f"{ missing_newer_record_cnt } missing newer records" )
@@ -481,9 +477,7 @@ def stat_checker(newer_file_name, prior_file_name):
481477 )
482478 f1_score = round ((2 * precision * recall ) / (precision + recall ), 5 ) if precision + recall > 0 else 0
483479
484- print (
485- textwrap .dedent (
486- f"""\
480+ print (textwrap .dedent (f"""\
487481
488482 { newer_entity_count } newer_entities
489483 { prior_entity_count } prior_entities
@@ -499,9 +493,7 @@ def stat_checker(newer_file_name, prior_file_name):
499493 { recall } recall
500494 { f1_score } f1-score
501495
502- """
503- )
504- )
496+ """ ))
505497 return 0
506498
507499
0 commit comments