nielsr HF Staff commited on
Commit
f5684cd
·
verified ·
1 Parent(s): c4a1c8b

Load data from the Neurips-2026-MLIntern-Repro/papers dataset; rename Hackathon link

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ dataset/
2
+ __pycache__/
README.md CHANGED
@@ -19,12 +19,24 @@ Browse NeurIPS 2026 papers, each with one key claim that an agent can try to rep
19
 
20
  Use **Random paper** (or press `R`) to jump to a random paper, and `J` / `K` to move between papers. A paper's URL (`#<arxiv-id>`) links straight to it. **Claim this paper** is a placeholder until claiming opens.
21
 
 
 
 
 
22
  ## Updating the papers
23
 
24
- The page is static: `index.html` loads `papers.json` and the table images in `img/`. Both are generated from the claim extractions in `../claims/`:
25
 
26
  ```bash
27
- python3 space/build_data.py
 
28
  ```
29
 
30
  Papers with verdict `include` or `borderline` are published; `skip` papers are left out.
 
 
 
 
 
 
 
 
19
 
20
  Use **Random paper** (or press `R`) to jump to a random paper, and `J` / `K` to move between papers. A paper's URL (`#<arxiv-id>`) links straight to it. **Claim this paper** is a placeholder until claiming opens.
21
 
22
+ ## Data
23
+
24
+ All paper data lives in the dataset [Neurips-2026-MLIntern-Repro/papers](https://huggingface.co/datasets/Neurips-2026-MLIntern-Repro/papers), and the page loads it from there (the `site/` folder: `index.json`, `p/<id>.json`, `search.json` and `img/`). The same data is in the dataset's `data/` parquet files, with one row per paper, for the dataset viewer and `load_dataset`.
25
+
26
  ## Updating the papers
27
 
28
+ The data is built locally into `dataset/` (not part of the Space repo) and then uploaded to the dataset. The Space picks up changes without a redeploy.
29
 
30
  ```bash
31
+ python3 space/build_data.py # from the claim extractions in ../claims/
32
+ python3 space/publish_dataset.py # build the parquet files and upload dataset/ to the Hub
33
  ```
34
 
35
  Papers with verdict `include` or `borderline` are published; `skip` papers are left out.
36
+
37
+ To refresh which papers are on Papers with Code (needs the `pwc` CLI), then upload:
38
+
39
+ ```bash
40
+ python3 check_pwc.py
41
+ python3 publish_dataset.py
42
+ ```
build_data.py CHANGED
@@ -1,7 +1,8 @@
1
- """Build papers.json + img/ for the Space from ../claims/*.json.
2
 
3
  Usage (from the project root or this folder):
4
  python3 space/build_data.py
 
5
 
6
  Only papers with verdict "include" or "borderline" are published, minus
7
  those listed in claims/site_exclude.json.
@@ -18,6 +19,8 @@ import struct
18
 
19
  HERE = os.path.dirname(os.path.abspath(__file__))
20
  ROOT = os.path.dirname(HERE)
 
 
21
  CLAIMS = os.path.join(ROOT, "claims")
22
  SHOW = {"include", "borderline"}
23
 
@@ -37,10 +40,10 @@ def main():
37
  exclude_path = os.path.join(CLAIMS, "site_exclude.json")
38
  exclude = json.load(open(exclude_path)) if os.path.exists(exclude_path) else {}
39
 
40
- pwc_path = os.path.join(HERE, "pwc_indexed.json")
41
  pwc = set(json.load(open(pwc_path))) if os.path.exists(pwc_path) else set()
42
 
43
- os.makedirs(os.path.join(HERE, "img"), exist_ok=True)
44
  papers, skipped = [], []
45
  for f in sorted(glob.glob(os.path.join(CLAIMS, "*.json"))):
46
  try:
@@ -57,17 +60,17 @@ def main():
57
 
58
  compact = dict(ensure_ascii=False, separators=(",", ":"))
59
  # 1) tiny index for the first paint: just the IDs, enough to shuffle, count and show the first paper
60
- with open(os.path.join(HERE, "index.json"), "w") as out:
61
  json.dump([p["id"] for p in papers], out, **compact)
62
  # 2) one small file per paper, fetched when that paper is shown
63
- pdir = os.path.join(HERE, "p")
64
  shutil.rmtree(pdir, ignore_errors=True)
65
  os.makedirs(pdir)
66
  for p in papers:
67
  with open(os.path.join(pdir, p["id"] + ".json"), "w") as out:
68
  json.dump(p, out, **compact)
69
  # 3) search corpus, fetched only when someone types in the search box
70
- with open(os.path.join(HERE, "search.json"), "w") as out:
71
  json.dump([[p["id"], " ".join([p["title"], p["authors"], p["claim"], p["background"]]).lower()] for p in papers], out, **compact)
72
  old = os.path.join(HERE, "papers.json")
73
  if os.path.exists(old):
@@ -82,7 +85,7 @@ def entry(d, manifest, pwc):
82
  img_src = os.path.join(CLAIMS, c["image"])
83
  img_name = f"img/{d['arxiv_id']}.png"
84
  img_w, img_h = png_size(img_src)
85
- shutil.copyfile(img_src, os.path.join(HERE, img_name))
86
  m = manifest.get(d["arxiv_id"], {})
87
  return {
88
  "id": d["arxiv_id"],
 
1
+ """Build the Space's data in dataset/site/ from ../claims/*.json.
2
 
3
  Usage (from the project root or this folder):
4
  python3 space/build_data.py
5
+ python3 space/publish_dataset.py # then upload it to the dataset the Space reads from
6
 
7
  Only papers with verdict "include" or "borderline" are published, minus
8
  those listed in claims/site_exclude.json.
 
19
 
20
  HERE = os.path.dirname(os.path.abspath(__file__))
21
  ROOT = os.path.dirname(HERE)
22
+ OUT = os.path.join(HERE, "dataset") # uploaded by publish_dataset.py
23
+ SITE = os.path.join(OUT, "site")
24
  CLAIMS = os.path.join(ROOT, "claims")
25
  SHOW = {"include", "borderline"}
26
 
 
40
  exclude_path = os.path.join(CLAIMS, "site_exclude.json")
41
  exclude = json.load(open(exclude_path)) if os.path.exists(exclude_path) else {}
42
 
43
+ pwc_path = os.path.join(OUT, "pwc_indexed.json")
44
  pwc = set(json.load(open(pwc_path))) if os.path.exists(pwc_path) else set()
45
 
46
+ os.makedirs(os.path.join(SITE, "img"), exist_ok=True)
47
  papers, skipped = [], []
48
  for f in sorted(glob.glob(os.path.join(CLAIMS, "*.json"))):
49
  try:
 
60
 
61
  compact = dict(ensure_ascii=False, separators=(",", ":"))
62
  # 1) tiny index for the first paint: just the IDs, enough to shuffle, count and show the first paper
63
+ with open(os.path.join(SITE, "index.json"), "w") as out:
64
  json.dump([p["id"] for p in papers], out, **compact)
65
  # 2) one small file per paper, fetched when that paper is shown
66
+ pdir = os.path.join(SITE, "p")
67
  shutil.rmtree(pdir, ignore_errors=True)
68
  os.makedirs(pdir)
69
  for p in papers:
70
  with open(os.path.join(pdir, p["id"] + ".json"), "w") as out:
71
  json.dump(p, out, **compact)
72
  # 3) search corpus, fetched only when someone types in the search box
73
+ with open(os.path.join(SITE, "search.json"), "w") as out:
74
  json.dump([[p["id"], " ".join([p["title"], p["authors"], p["claim"], p["background"]]).lower()] for p in papers], out, **compact)
75
  old = os.path.join(HERE, "papers.json")
76
  if os.path.exists(old):
 
85
  img_src = os.path.join(CLAIMS, c["image"])
86
  img_name = f"img/{d['arxiv_id']}.png"
87
  img_w, img_h = png_size(img_src)
88
+ shutil.copyfile(img_src, os.path.join(SITE, img_name))
89
  m = manifest.get(d["arxiv_id"], {})
90
  return {
91
  "id": d["arxiv_id"],
check_pwc.py CHANGED
@@ -3,8 +3,9 @@
3
  Usage (from this folder; needs the `pwc` CLI on PATH):
4
  python3 check_pwc.py
5
 
6
- Writes pwc_indexed.json (used by build_data.py) and sets "pwc" in each
7
- p/<id>.json in place, so no full rebuild is needed. Papers can get indexed
 
8
  later, so rerun this from time to time. Lookups run one at a time with
9
  backoff because the API rate-limits bursts.
10
  """
@@ -14,6 +15,8 @@ import subprocess
14
  import time
15
 
16
  HERE = os.path.dirname(os.path.abspath(__file__))
 
 
17
 
18
 
19
  def indexed(arxiv_id):
@@ -30,7 +33,7 @@ def indexed(arxiv_id):
30
 
31
 
32
  def main():
33
- ids = json.load(open(os.path.join(HERE, "index.json")))
34
  yes = []
35
  for n, i in enumerate(ids, 1):
36
  if indexed(i):
@@ -38,11 +41,11 @@ def main():
38
  if n % 100 == 0:
39
  print(f"{n}/{len(ids)} checked, {len(yes)} indexed")
40
  time.sleep(0.5)
41
- with open(os.path.join(HERE, "pwc_indexed.json"), "w") as out:
42
  json.dump(sorted(yes), out, indent=0)
43
  found = set(yes)
44
  for i in ids:
45
- path = os.path.join(HERE, "p", i + ".json")
46
  p = json.load(open(path))
47
  p.pop("code_links", None)
48
  p["pwc"] = i in found
 
3
  Usage (from this folder; needs the `pwc` CLI on PATH):
4
  python3 check_pwc.py
5
 
6
+ Writes dataset/pwc_indexed.json (used by build_data.py) and sets "pwc" in each
7
+ dataset/site/p/<id>.json in place, so no full rebuild is needed. Then run
8
+ publish_dataset.py to upload the change; the Space picks it up from the dataset. Papers can get indexed
9
  later, so rerun this from time to time. Lookups run one at a time with
10
  backoff because the API rate-limits bursts.
11
  """
 
15
  import time
16
 
17
  HERE = os.path.dirname(os.path.abspath(__file__))
18
+ OUT = os.path.join(HERE, "dataset")
19
+ SITE = os.path.join(OUT, "site")
20
 
21
 
22
  def indexed(arxiv_id):
 
33
 
34
 
35
  def main():
36
+ ids = json.load(open(os.path.join(SITE, "index.json")))
37
  yes = []
38
  for n, i in enumerate(ids, 1):
39
  if indexed(i):
 
41
  if n % 100 == 0:
42
  print(f"{n}/{len(ids)} checked, {len(yes)} indexed")
43
  time.sleep(0.5)
44
+ with open(os.path.join(OUT, "pwc_indexed.json"), "w") as out:
45
  json.dump(sorted(yes), out, indent=0)
46
  found = set(yes)
47
  for i in ids:
48
+ path = os.path.join(SITE, "p", i + ".json")
49
  p = json.load(open(path))
50
  p.pop("code_links", None)
51
  p["pwc"] = i in found
img/2110.01950.png DELETED

Git LFS Details

  • SHA256: 20b8abe63d2e307e38716385fbd8900b42bc6102dcfc5bf87bc905d162b31c52
  • Pointer size: 131 Bytes
  • Size of remote file: 133 kB
img/2410.13735.png DELETED

Git LFS Details

  • SHA256: 2db05c6c7ff185327895f627fe1a3bda842f3b594db7a362141e9bc46cecec21
  • Pointer size: 131 Bytes
  • Size of remote file: 181 kB
img/2410.22559.png DELETED

Git LFS Details

  • SHA256: eb56e1f0da5b04f9b3a3c116acb915f61256fbc3c72339f0fd41bea084216112
  • Pointer size: 131 Bytes
  • Size of remote file: 205 kB
img/2412.09498.png DELETED

Git LFS Details

  • SHA256: 23972b75c6f7279be05760331ad71be40662368fa57e4d4de6986b9b97823f2c
  • Pointer size: 131 Bytes
  • Size of remote file: 106 kB
img/2501.04052.png DELETED

Git LFS Details

  • SHA256: 3a2496704cd35da0b2d5ea0da537dfc45e726a7d305dbdd33503ff0c2843a696
  • Pointer size: 131 Bytes
  • Size of remote file: 217 kB
img/2501.04794.png DELETED
Binary file (43.9 kB)
 
img/2501.09345.png DELETED

Git LFS Details

  • SHA256: 284f76936ab7580c41f2dc95872489fa5f9053f88ce14e51480657b7623deda5
  • Pointer size: 131 Bytes
  • Size of remote file: 168 kB
img/2502.01226.png DELETED

Git LFS Details

  • SHA256: c6278f959f4bce40ec63411737813b0ddf93830f8deba6be1cab02a81b1dc746
  • Pointer size: 131 Bytes
  • Size of remote file: 110 kB
img/2502.03503.png DELETED
Binary file (94.2 kB)
 
img/2502.10259.png DELETED
Binary file (26 kB)
 
img/2503.01820.png DELETED

Git LFS Details

  • SHA256: 28b74dfcf2de915938a63d0bdc266b01e99d15297819f3b8edb97f750c6166c9
  • Pointer size: 131 Bytes
  • Size of remote file: 192 kB
img/2503.07338.png DELETED
Binary file (54.4 kB)
 
img/2504.02273.png DELETED

Git LFS Details

  • SHA256: eb86839b1135a3ae81f1099a45ce783b76296537a002dcdf30d82da6d99bee32
  • Pointer size: 131 Bytes
  • Size of remote file: 123 kB
img/2505.13775.png DELETED

Git LFS Details

  • SHA256: afa7bbb4b7e08f06511c0bf768ca5f122456732b714c1e84283dc4cbd1fee6a8
  • Pointer size: 131 Bytes
  • Size of remote file: 101 kB
img/2505.15405.png DELETED

Git LFS Details

  • SHA256: c41a83419bdca106bcd0b433dd0f723221a37973aa56c47bbbb73244ae5fe51e
  • Pointer size: 131 Bytes
  • Size of remote file: 179 kB
img/2505.21938.png DELETED
Binary file (65.1 kB)
 
img/2505.22252.png DELETED

Git LFS Details

  • SHA256: f5d5ec3d71d4bb48dd6f7e75a3ed39ea4e43ed906480fafd2c64f580d987438b
  • Pointer size: 131 Bytes
  • Size of remote file: 170 kB
img/2505.22919.png DELETED

Git LFS Details

  • SHA256: 82959fb0ddd7e33e71a90bcbb8cbf6cb8f3c11b17068a553590ca2d6107877f2
  • Pointer size: 131 Bytes
  • Size of remote file: 103 kB
img/2505.23086.png DELETED
Binary file (59.3 kB)
 
img/2505.23458.png DELETED

Git LFS Details

  • SHA256: 1d902e2583eb49195b5ecb5be2c488a32ead2832f499fd1bd50d560dc4ba4a0b
  • Pointer size: 131 Bytes
  • Size of remote file: 210 kB
img/2505.24791.png DELETED

Git LFS Details

  • SHA256: d8c3fb807b240d02873ab80d4199f1ccfac337a0854a8ff9c76563e9c6cb8121
  • Pointer size: 131 Bytes
  • Size of remote file: 119 kB
img/2506.01197.png DELETED

Git LFS Details

  • SHA256: 4f7b8770b101a3a06e85c5d6be1cc13c2ac6709db2b91cca98d41a192982c6c4
  • Pointer size: 131 Bytes
  • Size of remote file: 153 kB
img/2506.02546.png DELETED

Git LFS Details

  • SHA256: 2e64e697ee370f00a181fb8a4667ae3baf96f35accf7674d4eaa7e9b2bef87f0
  • Pointer size: 131 Bytes
  • Size of remote file: 119 kB
img/2506.06361.png DELETED

Git LFS Details

  • SHA256: 485d5d1c7ae46245700cd635d804262edb09c75b481b66ebda6282e6fd768e49
  • Pointer size: 131 Bytes
  • Size of remote file: 103 kB
img/2507.14760.png DELETED

Git LFS Details

  • SHA256: 6d8341026e38bb5c37172d42912354f912099c172580ef1d64c00565625ac734
  • Pointer size: 131 Bytes
  • Size of remote file: 283 kB
img/2507.14777.png DELETED

Git LFS Details

  • SHA256: 85e1aa9cbcad23ac03cf2ee528d0ea7bf1313d12145692cc23b33a46b477bd0b
  • Pointer size: 131 Bytes
  • Size of remote file: 169 kB
img/2507.21183.png DELETED

Git LFS Details

  • SHA256: 686a1af003349983d02d0ecaf6b518ac7c8a44aa33a4f7bad0effe7c1fdaa300
  • Pointer size: 131 Bytes
  • Size of remote file: 281 kB
img/2508.10104.png DELETED

Git LFS Details

  • SHA256: 903ced31008126a0aa3f9937523ab5b38a675c0612350a144ef69d5ecf07dc54
  • Pointer size: 131 Bytes
  • Size of remote file: 209 kB
img/2508.10552.png DELETED
Binary file (69.8 kB)
 
img/2508.13530.png DELETED

Git LFS Details

  • SHA256: 2853129e69aa4c9e8c259ff799ff73a08a1317b80f986bc567d127609de714e3
  • Pointer size: 131 Bytes
  • Size of remote file: 172 kB
img/2508.16007.png DELETED

Git LFS Details

  • SHA256: fdb25d4f3332df7b57426d1ed4564943bcf977be85b6aa29154e530a9bfac13d
  • Pointer size: 131 Bytes
  • Size of remote file: 106 kB
img/2508.18741.png DELETED
Binary file (99.6 kB)
 
img/2508.21380.png DELETED

Git LFS Details

  • SHA256: 42484e130f409157a428dd7018436609cbddcd293b1125189864db769dbf8aec
  • Pointer size: 131 Bytes
  • Size of remote file: 210 kB
img/2509.11311.png DELETED

Git LFS Details

  • SHA256: 5706c957444a9cc0cb5208eb94a3296f34e20fa7fd411c289eb7b6f0a06a5c02
  • Pointer size: 131 Bytes
  • Size of remote file: 247 kB
img/2509.15543.png DELETED

Git LFS Details

  • SHA256: e456742161b81ff10c65adb69ffbe8825d008e8146997b5244102fc350100eda
  • Pointer size: 131 Bytes
  • Size of remote file: 171 kB
img/2509.21172.png DELETED

Git LFS Details

  • SHA256: 6718980db62e4e98420a017cd396567fa4b25aa7a4b97616a9f0b3540a627004
  • Pointer size: 131 Bytes
  • Size of remote file: 123 kB
img/2509.22738.png DELETED

Git LFS Details

  • SHA256: 2b5bdd43ef95d3eefc1a645ab43754e61813f02dbfd5665b802bea556caa2897
  • Pointer size: 131 Bytes
  • Size of remote file: 121 kB
img/2509.22818.png DELETED

Git LFS Details

  • SHA256: 23dab023be11aaa14bc514a53e63618baf1b38eb56c050868b9158142493172c
  • Pointer size: 131 Bytes
  • Size of remote file: 194 kB
img/2509.23355.png DELETED

Git LFS Details

  • SHA256: ba3cf8ab8be5b3e0166775faee44b87c78719c6ab817ec98d31ae21e268d712c
  • Pointer size: 131 Bytes
  • Size of remote file: 203 kB
img/2509.23410.png DELETED

Git LFS Details

  • SHA256: c48983480d43fa722796e73705c82f58c5b68801401906098aa6cbf26e33783d
  • Pointer size: 131 Bytes
  • Size of remote file: 168 kB
img/2509.23765.png DELETED

Git LFS Details

  • SHA256: 3a1cc4dc74c34fa04f9cefe12a400d2e19eb02db1796239b1fe7f3e7cb6c77ac
  • Pointer size: 131 Bytes
  • Size of remote file: 187 kB
img/2509.25783.png DELETED

Git LFS Details

  • SHA256: 28480c6c7d9668d8999172d7372d0e6c5e1ded5930a392328e32fd5e1ba7dd7b
  • Pointer size: 131 Bytes
  • Size of remote file: 155 kB
img/2510.00225.png DELETED

Git LFS Details

  • SHA256: 08bced24538387ec319b91cabc1c40aac7f45edadec1a14d37cab21796c15996
  • Pointer size: 131 Bytes
  • Size of remote file: 107 kB
img/2510.01137.png DELETED

Git LFS Details

  • SHA256: 46e65910f49c08f67964ecf525bc0f383b8db7b5357727917d2964c7c8e6ae1a
  • Pointer size: 131 Bytes
  • Size of remote file: 182 kB
img/2510.02425.png DELETED

Git LFS Details

  • SHA256: 93e4bbc03db0c04f60170b87be9c30fe08388602111b4f93e76a41368652556e
  • Pointer size: 131 Bytes
  • Size of remote file: 104 kB
img/2510.03016.png DELETED

Git LFS Details

  • SHA256: 596ec32373ee680967480c4457549e3b90cea5afc20bbc3430d9cda9ab296629
  • Pointer size: 131 Bytes
  • Size of remote file: 195 kB