Load data from the Neurips-2026-MLIntern-Repro/papers dataset; rename Hackathon link
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitignore +2 -0
- README.md +14 -2
- build_data.py +10 -7
- check_pwc.py +8 -5
- img/2110.01950.png +0 -3
- img/2410.13735.png +0 -3
- img/2410.22559.png +0 -3
- img/2412.09498.png +0 -3
- img/2501.04052.png +0 -3
- img/2501.04794.png +0 -0
- img/2501.09345.png +0 -3
- img/2502.01226.png +0 -3
- img/2502.03503.png +0 -0
- img/2502.10259.png +0 -0
- img/2503.01820.png +0 -3
- img/2503.07338.png +0 -0
- img/2504.02273.png +0 -3
- img/2505.13775.png +0 -3
- img/2505.15405.png +0 -3
- img/2505.21938.png +0 -0
- img/2505.22252.png +0 -3
- img/2505.22919.png +0 -3
- img/2505.23086.png +0 -0
- img/2505.23458.png +0 -3
- img/2505.24791.png +0 -3
- img/2506.01197.png +0 -3
- img/2506.02546.png +0 -3
- img/2506.06361.png +0 -3
- img/2507.14760.png +0 -3
- img/2507.14777.png +0 -3
- img/2507.21183.png +0 -3
- img/2508.10104.png +0 -3
- img/2508.10552.png +0 -0
- img/2508.13530.png +0 -3
- img/2508.16007.png +0 -3
- img/2508.18741.png +0 -0
- img/2508.21380.png +0 -3
- img/2509.11311.png +0 -3
- img/2509.15543.png +0 -3
- img/2509.21172.png +0 -3
- img/2509.22738.png +0 -3
- img/2509.22818.png +0 -3
- img/2509.23355.png +0 -3
- img/2509.23410.png +0 -3
- img/2509.23765.png +0 -3
- img/2509.25783.png +0 -3
- img/2510.00225.png +0 -3
- img/2510.01137.png +0 -3
- img/2510.02425.png +0 -3
- img/2510.03016.png +0 -3
.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
|
| 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
|
| 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(
|
| 41 |
pwc = set(json.load(open(pwc_path))) if os.path.exists(pwc_path) else set()
|
| 42 |
|
| 43 |
-
os.makedirs(os.path.join(
|
| 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(
|
| 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(
|
| 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(
|
| 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(
|
| 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.
|
|
|
|
| 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(
|
| 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(
|
| 42 |
json.dump(sorted(yes), out, indent=0)
|
| 43 |
found = set(yes)
|
| 44 |
for i in ids:
|
| 45 |
-
path = os.path.join(
|
| 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
|
img/2410.13735.png
DELETED
Git LFS Details
|
img/2410.22559.png
DELETED
Git LFS Details
|
img/2412.09498.png
DELETED
Git LFS Details
|
img/2501.04052.png
DELETED
Git LFS Details
|
img/2501.04794.png
DELETED
|
Binary file (43.9 kB)
|
|
|
img/2501.09345.png
DELETED
Git LFS Details
|
img/2502.01226.png
DELETED
Git LFS Details
|
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
|
img/2503.07338.png
DELETED
|
Binary file (54.4 kB)
|
|
|
img/2504.02273.png
DELETED
Git LFS Details
|
img/2505.13775.png
DELETED
Git LFS Details
|
img/2505.15405.png
DELETED
Git LFS Details
|
img/2505.21938.png
DELETED
|
Binary file (65.1 kB)
|
|
|
img/2505.22252.png
DELETED
Git LFS Details
|
img/2505.22919.png
DELETED
Git LFS Details
|
img/2505.23086.png
DELETED
|
Binary file (59.3 kB)
|
|
|
img/2505.23458.png
DELETED
Git LFS Details
|
img/2505.24791.png
DELETED
Git LFS Details
|
img/2506.01197.png
DELETED
Git LFS Details
|
img/2506.02546.png
DELETED
Git LFS Details
|
img/2506.06361.png
DELETED
Git LFS Details
|
img/2507.14760.png
DELETED
Git LFS Details
|
img/2507.14777.png
DELETED
Git LFS Details
|
img/2507.21183.png
DELETED
Git LFS Details
|
img/2508.10104.png
DELETED
Git LFS Details
|
img/2508.10552.png
DELETED
|
Binary file (69.8 kB)
|
|
|
img/2508.13530.png
DELETED
Git LFS Details
|
img/2508.16007.png
DELETED
Git LFS Details
|
img/2508.18741.png
DELETED
|
Binary file (99.6 kB)
|
|
|
img/2508.21380.png
DELETED
Git LFS Details
|
img/2509.11311.png
DELETED
Git LFS Details
|
img/2509.15543.png
DELETED
Git LFS Details
|
img/2509.21172.png
DELETED
Git LFS Details
|
img/2509.22738.png
DELETED
Git LFS Details
|
img/2509.22818.png
DELETED
Git LFS Details
|
img/2509.23355.png
DELETED
Git LFS Details
|
img/2509.23410.png
DELETED
Git LFS Details
|
img/2509.23765.png
DELETED
Git LFS Details
|
img/2509.25783.png
DELETED
Git LFS Details
|
img/2510.00225.png
DELETED
Git LFS Details
|
img/2510.01137.png
DELETED
Git LFS Details
|
img/2510.02425.png
DELETED
Git LFS Details
|
img/2510.03016.png
DELETED
Git LFS Details
|