From 48038b1f5e2127725261ee3c03d87100afe15bad Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 12 Apr 2025 23:08:28 -0700 Subject: [PATCH] feat: Use log scale for cost bar in leaderboards table --- aider/website/docs/leaderboards/index.md | 41 ++++++++++++++++++++---- 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/aider/website/docs/leaderboards/index.md b/aider/website/docs/leaderboards/index.md index 6368f994e..7ecd6e96b 100644 --- a/aider/website/docs/leaderboards/index.md +++ b/aider/website/docs/leaderboards/index.md @@ -68,10 +68,10 @@ The model also has to successfully apply all its changes to the source file with
{{ row.percent_cases_well_formed }}% - {% assign cost_percent = row.total_cost | times: 100.0 | divided_by: max_cost %} {% if row.total_cost > 0 %} -
+ {# Initial width set to 0, JS will calculate log scale width #} +
{% endif %} {% if row.total_cost == 0 %}?{% else %}${{ row.total_cost | times: 1.0 | round: 2 }}{% endif %} @@ -139,10 +139,39 @@ The model also has to successfully apply all its changes to the source file with border-radius: 3px; /* Rounded corners for the text background */ } - - - - + + +

By Paul Gauthier, last updated