File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -558,7 +558,7 @@ def unique_invocation_loop_id(self) -> str:
558
558
return f"{ self .loop_index } :{ self .id .id ()} "
559
559
560
560
561
- class TestResults (BaseModel ): # noqa: PLW1641
561
+ class TestResults (BaseModel ):
562
562
# don't modify these directly, use the add method
563
563
# also we don't support deletion of test results elements - caution is advised
564
564
test_results : list [FunctionTestInvocation ] = []
Original file line number Diff line number Diff line change @@ -670,7 +670,7 @@ def determine_best_candidate(
670
670
diff_strs = []
671
671
runtimes_list = []
672
672
for valid_opt in valid_optimizations :
673
- valid_opt_normalized_code = ast . unparse ( ast . parse ( valid_opt .candidate .source_code .flat .strip () ))
673
+ valid_opt_normalized_code = normalize_code ( valid_opt .candidate .source_code .flat .strip ())
674
674
new_candidate_with_shorter_code = OptimizedCandidate (
675
675
source_code = ast_code_to_id [valid_opt_normalized_code ]["shorter_source_code" ],
676
676
optimization_id = valid_opt .candidate .optimization_id ,
You can’t perform that action at this time.
0 commit comments