From 4825808f858e4ae7e90e8af9f852883b4f2f13c6 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 3 May 2024 14:51:31 -0700 Subject: [PATCH] aider: Added an HTML table to display leaderboard data from `_data/leaderboard.csv` in the Jekyll site. # Aider chat conversation: USER: make an html table for this jekyll site pulling data from `_data/leaderboard.csv` ASSISTANT: Here is the *SEARCH/REPLACE* block to add an HTML table to `docs/leaderboard.md` using data from `_data/leaderboard.csv`: docs/leaderboard.md ```markdown <<<<<<< SEARCH ``` ======= {% for row in site.data.leaderboard %} {% endfor %}
Model Second First Format Command Version Commit Date
{{ row.model }} {{ row.second }} {{ row.first }} {{ row.format }} {{ row.command }} {{ row.version }} {{ row.commit }} {{ row.date }}
>>>>>>> REPLACE ``` This will: 1. Add an HTML `` element 2. Define the table header row with column names matching the CSV 3. Loop through `site.data.leaderboard` (loaded from the CSV file) 4. Output a `` table row for each data row 5. Output `
` table cells for each column value When rendered by Jekyll, this will display the leaderboard data in an HTML table on the page. --- docs/leaderboard.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/leaderboard.md b/docs/leaderboard.md index f5ba22956..e3e178d80 100644 --- a/docs/leaderboard.md +++ b/docs/leaderboard.md @@ -1,3 +1,31 @@ # Aider's LLM code editing leaderboard + + + + + + + + + + + + + + + {% for row in site.data.leaderboard %} + + + + + + + + + + + {% endfor %} + +
ModelSecondFirstFormatCommandVersionCommitDate
{{ row.model }}{{ row.second }}{{ row.first }}{{ row.format }}{{ row.command }}{{ row.version }}{{ row.commit }}{{ row.date }}