mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 21:34:59 +00:00
fix: Calculate max name length after cleaning paths
This commit is contained in:
parent
5dddaac006
commit
9e9cfb4600
1 changed files with 2 additions and 2 deletions
|
@ -140,8 +140,8 @@ def analyze_exercise_solutions(dirs=None, topn=None):
|
||||||
# Sort all exercises by solve rate
|
# Sort all exercises by solve rate
|
||||||
exercise_stats.sort(key=lambda x: x[2], reverse=True)
|
exercise_stats.sort(key=lambda x: x[2], reverse=True)
|
||||||
|
|
||||||
# Calculate max lengths for alignment
|
# Calculate max lengths for alignment after cleaning up paths
|
||||||
max_name_len = max(len(f"{lang}/{ex}") for lang, ex, _, _ in exercise_stats)
|
max_name_len = max(len(f"{lang}/{testcase}") for lang, testcase, _, _ in exercise_stats)
|
||||||
|
|
||||||
# Print all exercises sorted by solve rate
|
# Print all exercises sorted by solve rate
|
||||||
print("\nAll Exercises (sorted by solve rate):")
|
print("\nAll Exercises (sorted by solve rate):")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue