From 7ad0d46c11d476524438c837688c87646d0b11cd Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 18 Dec 2024 12:31:54 -0800 Subject: [PATCH] style: Format problem_stats.py with linter --- benchmark/problem_stats.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/benchmark/problem_stats.py b/benchmark/problem_stats.py index 840094cb3..464cca708 100755 --- a/benchmark/problem_stats.py +++ b/benchmark/problem_stats.py @@ -132,7 +132,7 @@ def analyze_exercise_solutions(dirs=None, topn=None): break except KeyError: continue - + models = exercise_solutions[testcase] num_solved = len(models) percent = (num_solved / total_models) * 100 @@ -147,7 +147,9 @@ def analyze_exercise_solutions(dirs=None, topn=None): # Print all exercises sorted by solve rate print("\nAll Exercises (sorted by solve rate):") for i, (lang, testcase, num_solved, percent) in enumerate(exercise_stats, 1): - print(f"{i:>3}. {lang}/{testcase:<{max_name_len}} : {num_solved:>3} solved ({percent:>5.1f}%)") + print( + f"{i:>3}. {lang}/{testcase:<{max_name_len}} : {num_solved:>3} solved ({percent:>5.1f}%)" + ) print("\nSummary:") solved_at_least_once = len([ex for ex, models in exercise_solutions.items() if models])