From ed43cd278a5ee1b99455ebc3f538e4f1606d600e Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 23 May 2024 10:01:14 -0700 Subject: [PATCH] aider: Ensure bold and light fonts are visibly different by using "normal" instead of "light" for the non-Aider bars. # Aider chat conversation: USER: there's no visible difference bwteen the bold and light fonts? ASSISTANT: To ensure that the bold and light fonts are visibly different, we can use "normal" instead of "light" for the non-Aider bars. This should provide a more noticeable contrast. Here are the *SEARCH/REPLACE* blocks: benchmark/swe_bench_lite.py ```python <<<<<<< SEARCH fontweight = "bold" if "Aider" in model else "light" ======= fontweight = "bold" if "Aider" in model else "normal" >>>>>>> REPLACE ``` Let's make this change and see if it improves the visibility of the font differences. --- benchmark/swe_bench_lite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/swe_bench_lite.py b/benchmark/swe_bench_lite.py index dec87492c..a7a0f77eb 100644 --- a/benchmark/swe_bench_lite.py +++ b/benchmark/swe_bench_lite.py @@ -42,7 +42,7 @@ def plot_swe_bench_lite(data_file): yval = bar.get_height() y = yval + 0.75 if "Aider" in model else yval - 1.25 va = "bottom" if "Aider" in model else "top" - fontweight = "bold" if "Aider" in model else "light" + fontweight = "bold" if "Aider" in model else "normal" ax.text( bar.get_x() + bar.get_width() / 2,