snapshot 2026-05-19 (initial v1.0.0)
Browse files- README.md +112 -0
- manifest.json +14 -0
- paper_repositories.parquet +3 -0
- papers.parquet +3 -0
- repositories.parquet +3 -0
- repository_forks.parquet +3 -0
README.md
CHANGED
|
@@ -1,3 +1,115 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: codeofpaper — paper ↔ code graph
|
| 6 |
+
size_categories:
|
| 7 |
+
- 100K<n<1M
|
| 8 |
+
tags:
|
| 9 |
+
- papers-with-code
|
| 10 |
+
- reproducibility
|
| 11 |
+
- github
|
| 12 |
+
- arxiv
|
| 13 |
+
- research-software
|
| 14 |
+
configs:
|
| 15 |
+
- config_name: papers
|
| 16 |
+
data_files: papers.parquet
|
| 17 |
+
- config_name: repositories
|
| 18 |
+
data_files: repositories.parquet
|
| 19 |
+
- config_name: paper_repositories
|
| 20 |
+
data_files: paper_repositories.parquet
|
| 21 |
+
- config_name: repository_forks
|
| 22 |
+
data_files: repository_forks.parquet
|
| 23 |
---
|
| 24 |
+
|
| 25 |
+
# codeofpaper — paper ↔ code graph
|
| 26 |
+
|
| 27 |
+
A high-precision dataset linking research papers (arXiv, OpenReview) to their
|
| 28 |
+
**official** and **high-confidence community** GitHub implementations, plus
|
| 29 |
+
the full fork lineage for those repositories. Built by the
|
| 30 |
+
[codeofpaper](https://codeofpaper.com) project as a community successor to
|
| 31 |
+
the discontinued Papers with Code.
|
| 32 |
+
|
| 33 |
+
**Snapshot date:** 2026-05-19
|
| 34 |
+
**Schema version:** 1.0.0
|
| 35 |
+
**License:** CC-BY-4.0 (metadata aggregation + derived tier labels).
|
| 36 |
+
Underlying paper texts and repository code remain under their own licenses;
|
| 37 |
+
this dataset only ships identifiers, URLs, and structured metadata.
|
| 38 |
+
|
| 39 |
+
## What's different from Papers with Code
|
| 40 |
+
|
| 41 |
+
- **Tiered repo links** — every edge is classified as `official` or
|
| 42 |
+
`high_confidence_community` by a reproducible, open classifier (see
|
| 43 |
+
[tier_evidence](https://github.com/isagelswann/codeofpaper/blob/main/docs/features/PHASE_0C_SPOT_CHECK.md)
|
| 44 |
+
for the rubric). Lower-confidence edges (`possible_match`) are intentionally
|
| 45 |
+
excluded from the published snapshot.
|
| 46 |
+
- **Fork lineage** — `repository_forks` covers ~1.5M fork edges across ~89k
|
| 47 |
+
parent repos, enabling research-fork discovery (hardware ports, quantization
|
| 48 |
+
variants, lab extensions) that PWC never surfaced.
|
| 49 |
+
- **Engineering metadata** — `repositories.framework`, `license_spdx`,
|
| 50 |
+
`engineering_fields_evidence` (JSONB) carry the signals our tier classifier
|
| 51 |
+
consumes.
|
| 52 |
+
|
| 53 |
+
## Files
|
| 54 |
+
|
| 55 |
+
| File | Rows | Description |
|
| 56 |
+
|------|------|-------------|
|
| 57 |
+
| `papers.parquet` | 244,180 | Paper metadata (arXiv / OpenReview / DOI). |
|
| 58 |
+
| `repositories.parquet` | 59,296 | Non-blocklisted GitHub repos linked to at least one paper. |
|
| 59 |
+
| `paper_repositories.parquet` | 62,634 | Confident-tier edges only (`official` ∪ `high_confidence_community`). |
|
| 60 |
+
| `repository_forks.parquet` | 543,340 | Fork lineage for parents in `repositories.parquet`. |
|
| 61 |
+
|
| 62 |
+
## Schema notes
|
| 63 |
+
|
| 64 |
+
- All `*_evidence`, `languages`, and other JSONB columns are serialized as
|
| 65 |
+
compact JSON strings (parquet doesn't natively map nested types well across
|
| 66 |
+
loaders). Parse with `json.loads()` in Python.
|
| 67 |
+
- `paper_repositories.tier_evidence` documents *why* the classifier assigned a
|
| 68 |
+
tier — useful for auditing or retraining your own classifier.
|
| 69 |
+
- A 90-day cutoff on `papers.published_date` is applied. The most recent
|
| 70 |
+
papers (and their newly-linked repos) intentionally aren't in this snapshot.
|
| 71 |
+
|
| 72 |
+
## Quickstart
|
| 73 |
+
|
| 74 |
+
```python
|
| 75 |
+
from datasets import load_dataset
|
| 76 |
+
|
| 77 |
+
papers = load_dataset("codeofpaper/paper-code-graph", name="papers", split="train")
|
| 78 |
+
repos = load_dataset("codeofpaper/paper-code-graph", name="repositories", split="train")
|
| 79 |
+
links = load_dataset("codeofpaper/paper-code-graph", name="paper_repositories", split="train")
|
| 80 |
+
forks = load_dataset("codeofpaper/paper-code-graph", name="repository_forks", split="train")
|
| 81 |
+
|
| 82 |
+
# Find the official implementation for a paper
|
| 83 |
+
import polars as pl
|
| 84 |
+
df_links = pl.from_arrow(links.data.table)
|
| 85 |
+
df_repos = pl.from_arrow(repos.data.table)
|
| 86 |
+
(df_links.filter(pl.col("tier") == "official")
|
| 87 |
+
.join(df_repos, left_on="repository_id", right_on="id")
|
| 88 |
+
.select(["paper_id", "full_name", "stars", "framework"]))
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
## Refresh cadence
|
| 92 |
+
|
| 93 |
+
Republished monthly. Production data updates daily on
|
| 94 |
+
[codeofpaper.com](https://codeofpaper.com), but the public snapshot ships
|
| 95 |
+
on a 90-day delay to avoid freshness contracts.
|
| 96 |
+
|
| 97 |
+
## Citation
|
| 98 |
+
|
| 99 |
+
If you use this dataset, please cite:
|
| 100 |
+
|
| 101 |
+
```bibtex
|
| 102 |
+
@misc{codeofpaper_2026,
|
| 103 |
+
title = {codeofpaper: paper-code graph},
|
| 104 |
+
author = {codeofpaper contributors},
|
| 105 |
+
year = {2026},
|
| 106 |
+
url = {https://huggingface.co/datasets/codeofpaper/paper-code-graph},
|
| 107 |
+
}
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
## Source code & methodology
|
| 111 |
+
|
| 112 |
+
- Repo: <https://github.com/isagelswann/codeofpaper>
|
| 113 |
+
- Tier classifier rubric: `docs/features/PHASE_0C_SPOT_CHECK.md`
|
| 114 |
+
- Dataset build script: `scripts/dataset/build_hf_snapshot.py`
|
| 115 |
+
- Git SHA at build time: `b7ae3a7eace01038093aff1918b9c09754dd088a`
|
manifest.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"snapshot_date": "2026-05-19",
|
| 3 |
+
"schema_version": "1.0.0",
|
| 4 |
+
"license": "CC-BY-4.0",
|
| 5 |
+
"hf_repo": "codeofpaper/paper-code-graph",
|
| 6 |
+
"git_sha": "b7ae3a7eace01038093aff1918b9c09754dd088a",
|
| 7 |
+
"cutoff_days": 90,
|
| 8 |
+
"counts": {
|
| 9 |
+
"papers": 244180,
|
| 10 |
+
"repositories": 59296,
|
| 11 |
+
"paper_repositories": 62634,
|
| 12 |
+
"repository_forks": 543340
|
| 13 |
+
}
|
| 14 |
+
}
|
paper_repositories.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e50b1aab888b3634eb6ceaed5926c0bc84e108dc2780817fe3b6ed1f101f2fc
|
| 3 |
+
size 997247
|
papers.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c83baf355152c7e237d0f27ecaa2041f017e5593bf791a6c4c60d7e5a41808c0
|
| 3 |
+
size 135382790
|
repositories.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7f37a9053277b8f51c4796875460682921cb336d0bebccdee4c3db345ee008b
|
| 3 |
+
size 6043124
|
repository_forks.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a61ca2e990b010e0a07c7820d0250843693f96255aaac0b59862663ab9145a1
|
| 3 |
+
size 12156456
|