Skip to content

Commit 0888a42

Browse files
haizhongzhengclaude
andcommitted
Fix lint findings in the website builder
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 0102d86 commit 0888a42

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎website/build.py‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
Averages follow the paper: one score per model-method-setting cell, then an
2020
unweighted mean over settings.
2121
"""
22-
import argparse, csv, html, json, shutil, sys
22+
import argparse
23+
import csv
24+
import html
25+
import json
26+
import shutil
2327
from datetime import date
2428
from pathlib import Path
2529

@@ -285,7 +289,8 @@ def page(snap, rows, tiers, project=None):
285289
rl3 = [r['values'][ci] for r in learners]
286290
rl3_best, rl3_med = max(rl3), statistics.median_low(rl3)
287291
ratio = [r['cost'] / next(o['cost'] for o in rows if o['model'] == r['model'] and o['harness'] == 'oracle') for r in learners]
288-
tot_serv = sum(int(t['serving']) for t in tiers); tot_test = sum(int(t['test']) for t in tiers)
292+
tot_serv = sum(int(t['serving']) for t in tiers)
293+
tot_test = sum(int(t['test']) for t in tiers)
289294
tot_win = sum(int(t['stages']) for t in tiers)
290295
data = dict(models=[dict(key=m['key'], name=SHORT.get(m['name'], m['name'])) for m in snap['models']], columns=snap['columns'], rows=rows)
291296
tier_rows = ''.join(f"<tr><td class='l'>{t['domain']} {t['tier']}</td><td class='l'>{html.escape(t['latent_structure'])}</td>"

0 commit comments

Comments
 (0)