diff --git a/aider/website/_includes/leaderboard_table.js b/aider/website/_includes/leaderboard_table.js index 7d5c76609..c479d2ae3 100644 --- a/aider/website/_includes/leaderboard_table.js +++ b/aider/website/_includes/leaderboard_table.js @@ -10,6 +10,9 @@ document.addEventListener('DOMContentLoaded', function() { const modeSelectButton = document.getElementById('mode-select-btn'); const modeButtons = [modeViewButton, modeDetailButton, modeSelectButton]; const selectAllCheckbox = document.getElementById('select-all-checkbox'); + const leaderboardTitle = document.getElementById('leaderboard-title'); // Get title element + const defaultTitle = "Aider polyglot coding leaderboard"; + const filteredTitle = "Aider polyglot coding benchmark results"; function applySearchFilter() { const searchTerm = searchInput.value.toLowerCase(); @@ -179,6 +182,15 @@ document.addEventListener('DOMContentLoaded', function() { }); + // Update the leaderboard title based on mode and selection + if (leaderboardTitle) { + if (currentMode === 'view' && selectedRows.size > 0) { + leaderboardTitle.textContent = filteredTitle; + } else { + leaderboardTitle.textContent = defaultTitle; + } + } + // Update the select-all checkbox state after updating the view updateSelectAllCheckboxState(); } diff --git a/aider/website/docs/leaderboards/index.md b/aider/website/docs/leaderboards/index.md index df308e619..f446a092e 100644 --- a/aider/website/docs/leaderboards/index.md +++ b/aider/website/docs/leaderboards/index.md @@ -14,7 +14,7 @@ evaluate an LLM's ability to follow instructions and edit code successfully with human intervention. [Aider's polyglot benchmark](https://aider.chat/2024/12/21/polyglot.html#the-polyglot-benchmark) tests LLMs on 225 challenging Exercism coding exercises across C++, Go, Java, JavaScript, Python, and Rust. -## Aider polyglot coding leaderboard +

Aider polyglot coding leaderboard