-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
589 lines (503 loc) · 21.9 KB
/
index.html
File metadata and controls
589 lines (503 loc) · 21.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HLCE</title>
<!-- Inter font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&display=swap" rel="stylesheet">
<link rel="icon" href="figs/edited_1747725897.png" />
<!-- Tabler Icons for utility icons (paper, grid, etc.) -->
<link href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/dist/tabler-icons.min.css" rel="stylesheet">
<!-- ======== Libraries ======== -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.3.0/papaparse.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.3.3/dist/echarts.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css" />
<link href="https://cdn.jsdelivr.net/npm/prismjs@v1.x/themes/prism.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/prismjs@v1.x/components/prism-core.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@v1.x/plugins/autoloader/prism-autoloader.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs-bibtex@2.1.0/prism-bibtex.min.js"></script>
<style>
:root {
--text-main: #0b132a;
--text-light: #555e6b;
--border-light: #dadddf;
--primary: #111827;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: "Inter", sans-serif;
color: var(--text-main);
background: #ffffff;
line-height: 1.6;
}
a {
color: #0b57d0;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.container {
max-width: 980px;
margin: 0 auto;
padding: 60px 20px;
text-align: center;
}
/* ---------- Hero Logo ---------- */
.hero-logo {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100px; /* reduced from 108px */
height: 100px; /* reduced from 108px */
margin: 0 auto 24px;
border: 0px solid var(--primary); /* thinner border to match new size */
/* border-radius: 50%; */
overflow: hidden; /* clip image in circle */
}
.hero-logo img {
width: 100%;
height: 100%;
object-fit: contain;
}
/* ---------- Title ---------- */
h1 {
font-size: 2.75rem;
font-weight: 800;
margin-bottom: 24px;
}
/* ---------- Resource Links ---------- */
.resources {
display: flex;
align-items: center;
justify-content: center;
gap: 32px;
font-size: 0.95rem;
font-weight: 500;
margin-bottom: 12px;
}
.resources .item {
display: flex;
align-items: center;
gap: 6px;
}
.resources .ti {
font-size: 19px;
}
.code-inline {
color: var(--text-light);
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
font-size: 0.8rem;
margin-top: 2px;
}
/* ---------- Sign‑in link ---------- */
.signin {
display: flex;
justify-content: center;
align-items: center;
gap: 6px;
font-size: 0.95rem;
font-weight: 500;
margin-top: 16px;
}
/* ---------- Section Heading with divider ---------- */
.section-heading {
display: flex;
align-items: center;
font-size: 1.125rem;
font-weight: 700;
margin: 48px 0 24px;
text-align: left;
}
.section-heading span {
margin-right: 12px;
}
.section-heading::after {
content: "";
flex: 1;
height: 1px;
background: var(--border-light);
}
/* ---------- Latest News list ---------- */
ul.news {
list-style: none;
text-align: left;
margin: 0 auto 40px;
max-width: 720px;
}
ul.news li {
display: flex;
align-items: flex-start;
gap: 8px;
font-size: 0.95rem;
margin-bottom: 8px;
}
ul.news svg {
flex-shrink: 0;
width: 18px;
height: 18px;
margin-top: 2px;
fill: var(--primary);
}
/* ---------- Partners Row ---------- */
.partners {
display: flex;
justify-content: center;
align-items: center;
gap: 12px;
margin-bottom: 24px;
}
.partners img {
height: 30px;
}
/* ---------- Dropdown buttons ---------- */
.filters {
display: flex;
justify-content: center;
gap: 16px;
margin-bottom: 64px;
}
select {
padding: 10px 36px 10px 16px;
border: 1px solid var(--border-light);
border-radius: 6px;
font-family: inherit;
font-size: 0.9rem;
cursor: pointer;
background: #fff url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-chevron-down'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center;
appearance: none;
}
/* ---------- Introduction ---------- */
.intro {
max-width: 720px;
margin: 0 auto;
text-align: left;
}
/* Spacing between sections */
section.intro:not(:last-child) {
margin-bottom: 100px;
}
.intro h2 {
text-align: center;
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 8px;
}
.intro h2::after {
content: "";
display: block;
width: 60px;
height: 1px;
background: var(--border-light);
margin: 8px auto 0;
}
.intro p {
font-size: 0.95rem;
color: var(--text-light);
}
/* Center leaderboard toggle */
#benchmark-toggle {
display: flex;
justify-content: center;
}
/* Responsive */
@media (max-width: 640px) {
.resources {
flex-direction: column;
gap: 12px;
}
.filters {
flex-direction: column;
}
}
.author-line span,
.affil-line span {
white-space: nowrap; /* 避免名字/单位被拆行 */
}
.author-line sup,
.affil-line sup {
font-size: 0.65em; /* 上标略小 */
vertical-align: super;
}
.author-line { font-weight: 600; } /* 姓名稍加粗 */
.affil-line { font-weight: 400; }
@media (min-width: 1400px) { /* 超宽屏略放大 */
.paper-meta { font-size: 1.15rem; }
}
@media (max-width: 768px) { /* 移动端自适应缩放 */
.paper-meta { font-size: 3.5vw; }
.author-line,
.affil-line { line-height: 1.3; }
}
</style>
</head>
<body>
<main class="container">
<!-- Logo -->
<div class="hero-logo">
<!-- Replaced inline SVG with uploaded PNG logo -->
<img src="figs/edited_1747725897.png" alt="Humanity's Last Exam logo">
</div>
<!-- Title -->
<h1>HLCE: Humanity's Last Code Exam</h1>
<!-- Resources Row -->
<div class="resources">
<!-- Replace href with real paper URL when available -->
<a href="https://arxiv.org/abs/2506.12713" class="item" target="_blank" rel="noopener"><i class="ti ti-file-text"></i><span>Paper</span></a>
<a href="https://huggingface.co/HumanLastCodeExam" class="item" target="_blank" rel="noopener"><i class="ti ti-database"></i><span>Dataset</span></a>
<a href="https://github.com/Humanity-s-Last-Code-Exam/HLCE" class="item" target="_blank" rel="noopener"><i class="ti ti-brand-github"></i><span>GitHub</span></a>
</div>
<!-- Latest News -->
<h3 class="section-heading"><span>Latest News</span></h3>
<ul class="news">
<li>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M123.6 391.3c12.9-9.4 29.6-11.8 44.6-6.4c26.5 9.6 56.2 15.1 87.8 15.1c124.7 0 208-80.5 208-160s-83.3-160-208-160S48 160.5 48 240c0 32 12.4 62.8 35.7 89.2c8.6 9.7 12.8 22.5 11.8 35.5c-1.4 18.1-5.7 34.7-11.3 49.4c17-7.9 31.1-16.7 39.4-22.7zM21.2 431.9c1.8-2.7 3.5-5.4 5.1-8.1c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208s-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6c-15.1 6.6-32.3 12.6-50.1 16.1c-.8 .2-1.6 .3-2.4 .5c-4.4 .8-8.7 1.5-13.2 1.9c-.2 0-.5 .1-.7 .1c-5.1 .5-10.2 .8-15.3 .8c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4c4.1-4.2 7.8-8.7 11.3-13.5c1.7-2.3 3.3-4.6 4.8-6.9l.3-.5z"/></svg>
<div><strong>[21/08/2025]:</strong> Our paper is accepted to EMNLP'2025. Congratulations!</p> </div>
</li>
<li>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M123.6 391.3c12.9-9.4 29.6-11.8 44.6-6.4c26.5 9.6 56.2 15.1 87.8 15.1c124.7 0 208-80.5 208-160s-83.3-160-208-160S48 160.5 48 240c0 32 12.4 62.8 35.7 89.2c8.6 9.7 12.8 22.5 11.8 35.5c-1.4 18.1-5.7 34.7-11.3 49.4c17-7.9 31.1-16.7 39.4-22.7zM21.2 431.9c1.8-2.7 3.5-5.4 5.1-8.1c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208s-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6c-15.1 6.6-32.3 12.6-50.1 16.1c-.8 .2-1.6 .3-2.4 .5c-4.4 .8-8.7 1.5-13.2 1.9c-.2 0-.5 .1-.7 .1c-5.1 .5-10.2 .8-15.3 .8c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4c4.1-4.2 7.8-8.7 11.3-13.5c1.7-2.3 3.3-4.6 4.8-6.9l.3-.5z"/></svg>
<div><strong>[17/06/2025]:</strong> Our paper is released on arXiv. Checkout <a href="https://arxiv.org/abs/2506.12713"> Paper </a>!</p> </div>
</li>
<li>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M123.6 391.3c12.9-9.4 29.6-11.8 44.6-6.4c26.5 9.6 56.2 15.1 87.8 15.1c124.7 0 208-80.5 208-160s-83.3-160-208-160S48 160.5 48 240c0 32 12.4 62.8 35.7 89.2c8.6 9.7 12.8 22.5 11.8 35.5c-1.4 18.1-5.7 34.7-11.3 49.4c17-7.9 31.1-16.7 39.4-22.7zM21.2 431.9c1.8-2.7 3.5-5.4 5.1-8.1c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208s-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6c-15.1 6.6-32.3 12.6-50.1 16.1c-.8 .2-1.6 .3-2.4 .5c-4.4 .8-8.7 1.5-13.2 1.9c-.2 0-.5 .1-.7 .1c-5.1 .5-10.2 .8-15.3 .8c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4c4.1-4.2 7.8-8.7 11.3-13.5c1.7-2.3 3.3-4.6 4.8-6.9l.3-.5z"/></svg>
<div><strong>[13/06/2025]:</strong> We are excited to release HLCE. Checkout <a href="https://github.com/Humanity-s-Last-Code-Exam/HLCE"> GitHub</a> and <a href="https://huggingface.co/HumanLastCodeExam"> HuggingFace</a>!</p> </div>
</li>
</ul>
<!-- Introduction -->
<section class="intro">
<h2>Introduction</h2>
<p>
HLCE is a challenging benchmark of 235 competitive programming problems sourced from the IOI and ICPC World Finals. It features both standard and interactive problems, along with a novel self‑assessment task designed to evaluate deeper reasoning capabilities.
By incorporating data from human competitions, HLCE provides metrics that directly compare large language models with elite human programmers—revealing a clear gap in performance. The benchmark is designed to push the boundaries of code generation, encouraging progress toward models that can truly compete at the highest levels of programming expertise.
</p>
<div style="text-align: center;">
<img src="figs/overall_compare.png" alt="Cover" style="width: 90%; max-width: 100%; height: auto;" />
</div>
</section>
<!-- LeaderBoard -->
<section class="intro">
<h2>LeaderBoard</h2>
<p>
We evaluate solutions using <code>pass@1</code> and <code>pass@5</code> metrics for both ICPC and IOI competitions, reporting average performance across both datasets. For IOI, we additionally provide <code>average points</code> earned. Detailed scoring scripts are available in our code repository.
</p>
<div class="btn-group my-3" role="group" id="benchmark-toggle">
<input type="radio" class="btn-check" name="benchmark" id="ICPC" autocomplete="off" checked />
<label class="btn btn-outline-primary" for="ICPC">ICPC</label>
<input type="radio" class="btn-check" name="benchmark" id="IOI" autocomplete="off" />
<label class="btn btn-outline-primary" for="IOI">IOI</label>
<input type="radio" class="btn-check" name="benchmark" id="Average" autocomplete="off" />
<label class="btn btn-outline-primary" for="Average">Average</label>
</div>
<!-- ======== Results Table ======== -->
<div class="table-responsive w-100">
<table id="results-table" class="table table-striped table-bordered align-middle"></table>
</div>
</section>
<!-- Submitting Custom Models -->
<section class="intro">
<h2>Submitting Custom Models</h2>
<p>To submit a model:</p>
<ol>
<li>Copy your model's output folder to the <a href="https://github.com/Humanity-s-Last-Code-Exam/results">Results</a> directory.</li>
<li>Rename the folder to your model's name.</li>
<li>Create a pull request for these changes.</li>
</ol>
<p class="note">We'll review your submission and integrate the model into the leaderboard upon approval.</p>
</section>
<!-- Citation -->
<section class="intro">
<h2>Citation</h2>
<p>If you use <strong>HLCE</strong> in your research, please cite our paper:</p>
<pre class="mx-auto p-3 bg-light rounded" style="max-width: 700px;"><code class="language-bibtex">@misc{li2025humanityscodeexamadvanced,
title={Humanity's Last Code Exam: Can Advanced LLMs Conquer Human's Hardest Code Competition?},
author={Xiangyang Li and Xiaopeng Li and Kuicai Dong and Quanhu Zhang and Rongju Ruan and Xinyi Dai and Xiaoshuang Liu and Shengchun Xu and Yasheng Wang and Ruiming Tang},
year={2025},
eprint={2506.12713},
archivePrefix={arXiv},
primaryClass={cs.SE},
url={https://arxiv.org/abs/2506.12713}
}</code></pre>
<!-- <p class="is-size-6">
<em>Credits:</em> We thank the ICPC Foundation and the IOI Scientific Committee
for granting permission to use past contest problems in this benchmark.
</p> -->
</section>
</main>
<!-- ====================================================== -->
<!-- ======== Script ====================================== -->
<!-- ====================================================== -->
<script>
////////////////////////////////////////////////////////////////////////
// GLOBAL STATE //
////////////////////////////////////////////////////////////////////////
let tableData = [];
let tableKeys = [];
const sortState = new Map();
////////////////////////////////////////////////////////////////////////
// TABLE HELPERS //
////////////////////////////////////////////////////////////////////////
const buildHeader = (keys) => {
const thead = document.createElement('thead');
const tr = document.createElement('tr');
const rankTh = document.createElement('th');
rankTh.textContent = '#';
tr.appendChild(rankTh);
keys.forEach((k) => {
const th = document.createElement('th');
th.dataset.key = k;
th.addEventListener('click', handleSortClick);
updateSortIndicator(th, k);
tr.appendChild(th);
});
thead.appendChild(tr);
return thead;
};
const updateSortIndicator = (th, key) => {
const dir = sortState.get(key);
const arrow = dir === 'asc' ? ' ▲' : dir === 'desc' ? ' ▼' : '';
th.textContent = key + arrow;
};
const buildBody = (rows, keys) => {
const tbody = document.createElement('tbody');
rows.forEach((row, idx) => {
const tr = document.createElement('tr');
const rankTd = document.createElement('td');
rankTd.textContent = idx + 1;
tr.appendChild(rankTd);
keys.forEach((k) => {
const td = document.createElement('td');
if (k === 'Model' && row.URL) {
td.innerHTML = `<a href="${row.URL}" target="_blank" rel="noopener noreferrer">${row[k]}</a>`;
} else {
const v = row[k];
if (typeof v === 'number' && !Number.isNaN(v)) {
let val = v;
if (/pass@1|pass@5/i.test(k) && !k.includes('%')) {
val = v * 100; // convert to percentage for display
}
td.textContent = val.toFixed(2);
} else {
td.textContent = v;
}
}
tr.appendChild(td);
});
tbody.appendChild(tr);
});
return tbody;
};
const renderTable = () => {
const table = document.getElementById('results-table');
table.innerHTML = '';
table.appendChild(buildHeader(tableKeys));
table.appendChild(buildBody(tableData, tableKeys));
};
////////////////////////////////////////////////////////////////////////
// SORTING //
////////////////////////////////////////////////////////////////////////
const handleSortClick = (e) => {
const key = e.currentTarget.dataset.key;
const current = sortState.get(key);
const dir = current === 'asc' ? 'desc' : current === 'desc' ? undefined : 'asc';
if (dir) sortState.set(key, dir); else sortState.delete(key);
tableData.sort((a, b) => compareValues(a[key], b[key], dir));
[...sortState.keys()].forEach((k) => { if (k !== key) sortState.delete(k); });
renderTable();
};
const compareValues = (a, b, dir = 'asc') => {
const m = dir === 'desc' ? -1 : 1;
const aNum = !Number.isNaN(parseFloat(a));
const bNum = !Number.isNaN(parseFloat(b));
if (aNum && bNum) return (parseFloat(a) - parseFloat(b)) * m;
return String(a).localeCompare(String(b)) * m;
};
////////////////////////////////////////////////////////////////////////
// DATA LOADING //
////////////////////////////////////////////////////////////////////////
const safeNum = (x) => {
const n = parseFloat(x);
return Number.isFinite(n) ? n : 0;
};
const loadAndRender = async (filename) => {
try {
const resp = await fetch(filename);
if (!resp.ok) throw new Error(`${filename} load failed`);
const json = await resp.json();
tableKeys = Object.keys(json[0]).filter((k) => k !== 'URL');
json.sort((a, b) => safeNum(b['pass@1']) - safeNum(a['pass@1']));
tableData = json;
sortState.clear();
renderTable();
} catch (err) {
alert(err.message);
}
};
const loadAverageAndRender = async () => {
try {
const [icpcResp, ioiResp] = await Promise.all([
fetch('ICPC_results.json'),
fetch('IOI_results.json')
]);
if (!icpcResp.ok || !ioiResp.ok) throw new Error('Failed to load results');
const [icpcData, ioiData] = await Promise.all([
icpcResp.json(),
ioiResp.json(),
]);
const aggMap = new Map();
pass1Candidates = ['Pass@1', 'pass@1', 'pass1', 'Pass@1 (%)', 'pass@1 (%)'];
pass5Candidates = ['Pass@5', 'pass@5', 'pass5', 'Pass@5 (%)', 'pass@5 (%)'];
const accumulate = (rows) => {
rows.forEach((row) => {
const name = row.Model;
if (!aggMap.has(name)) {
aggMap.set(name, { Model: name, URL: row.URL || '', p1: 0, p5: 0, cnt: 0 });
}
const entry = aggMap.get(name);
const p1 = pass1Candidates.map((k) => row[k]).find((v) => v !== undefined);
const p5 = pass5Candidates.map((k) => row[k]).find((v) => v !== undefined);
entry.p1 += safeNum(p1);
entry.p5 += safeNum(p5);
entry.cnt += 1;
});
};
accumulate(icpcData);
accumulate(ioiData);
const avgRows = Array.from(aggMap.values()).map((e) => ({
Model: e.Model,
'Pass@1': e.cnt ? e.p1 / e.cnt : 0,
'Pass@5': e.cnt ? e.p5 / e.cnt : 0,
URL: e.URL,
}));
avgRows.sort((a, b) => safeNum(b['Pass@1']) - safeNum(a['Pass@1']));
tableKeys = ['Model', 'Pass@1', 'Pass@5'];
tableData = avgRows;
sortState.clear();
renderTable();
} catch (err) {
alert(err.message);
}
};
////////////////////////////////////////////////////////////////////////
// EVENT LISTENERS //
////////////////////////////////////////////////////////////////////////
document.getElementById('ICPC').addEventListener('change', (e) => {
if (e.target.checked) loadAndRender('ICPC_results.json');
});
document.getElementById('IOI').addEventListener('change', (e) => {
if (e.target.checked) loadAndRender('IOI_results.json');
});
document.getElementById('Average').addEventListener('change', (e) => {
if (e.target.checked) loadAverageAndRender();
});
// initial load
loadAndRender('ICPC_results.json');
</script>
</body>
</html>