File size: 4,415 Bytes
8aca15b
 
cba63ec
 
b2db734
cba63ec
 
b2db734
 
 
cba63ec
 
 
 
 
60c632e
b2db734
 
 
 
cba63ec
 
 
 
 
 
 
 
 
8aca15b
cba63ec
bbbc8e9
cba63ec
 
 
60c632e
 
cba63ec
 
 
 
 
 
 
60c632e
cba63ec
bbbc8e9
60c632e
 
 
bbbc8e9
60c632e
 
 
bbbc8e9
cba63ec
60c632e
cba63ec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bbbc8e9
cba63ec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60c632e
cba63ec
60c632e
 
 
 
 
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
---
license: cc-by-4.0
language:
  - en
pretty_name: codeofpaper  paper  code graph
size_categories:
  - 100K<n<1M
task_categories:
  - text-retrieval
  - feature-extraction
tags:
  - reproducibility
  - github
  - arxiv
  - research-software
  - paper-code-linking
  - scientific-papers
  - source-code
  - knowledge-graph
  - benchmark
configs:
  - config_name: papers
    data_files: papers.parquet
  - config_name: repositories
    data_files: repositories.parquet
  - config_name: paper_repositories
    data_files: paper_repositories.parquet
  - config_name: repository_forks
    data_files: repository_forks.parquet
---

# codeofpaper: paper ↔ code graph

A high-precision dataset linking research papers (arXiv, OpenReview) to their
**official** and **high-confidence community** GitHub implementations, plus
the full fork lineage for those repositories. Built and maintained by the
[codeofpaper](https://codeofpaper.com) project.

**Snapshot date:** 2026-05-19
**Schema version:** 1.0.0
**License:** CC-BY-4.0 (metadata aggregation + derived tier labels).
Underlying paper texts and repository code remain under their own licenses;
this dataset only ships identifiers, URLs, and structured metadata.

## What's in here

- **Tiered repo links**: every edge is classified as `official` or
  `high_confidence_community` by a reproducible classifier. Lower-confidence
  edges (`possible_match`) are intentionally excluded from the published
  snapshot to keep precision high.
- **Fork lineage**: `repository_forks` covers ~1.5M fork edges across ~89k
  parent repos, enabling research-fork discovery: hardware ports, quantization
  variants, lab extensions, and other derivative work that's normally
  invisible in paper ↔ code link tables.
- **Engineering metadata**: `repositories.framework`, `license_spdx`,
  `engineering_fields_evidence` (JSONB) carry the signals our tier classifier
  consumes, so you can audit or train your own.

## Files

| File | Rows | Description |
|------|------|-------------|
| `papers.parquet` | 244,180 | Paper metadata (arXiv / OpenReview / DOI). |
| `repositories.parquet` | 59,296 | Non-blocklisted GitHub repos linked to at least one paper. |
| `paper_repositories.parquet` | 62,634 | Confident-tier edges only (`official``high_confidence_community`). |
| `repository_forks.parquet` | 543,340 | Fork lineage for parents in `repositories.parquet`. |

## Schema notes

- All `*_evidence`, `languages`, and other JSONB columns are serialized as
  compact JSON strings (parquet doesn't natively map nested types well across
  loaders). Parse with `json.loads()` in Python.
- `paper_repositories.tier_evidence` documents *why* the classifier assigned a
  tier, useful for auditing or retraining your own classifier.
- A 90-day cutoff on `papers.published_date` is applied. The most recent
  papers (and their newly-linked repos) intentionally aren't in this snapshot.

## Quickstart

```python
from datasets import load_dataset

papers = load_dataset("codeofpaper/paper-code-graph", name="papers", split="train")
repos = load_dataset("codeofpaper/paper-code-graph", name="repositories", split="train")
links = load_dataset("codeofpaper/paper-code-graph", name="paper_repositories", split="train")
forks = load_dataset("codeofpaper/paper-code-graph", name="repository_forks", split="train")

# Find the official implementation for a paper
import polars as pl
df_links = pl.from_arrow(links.data.table)
df_repos = pl.from_arrow(repos.data.table)
(df_links.filter(pl.col("tier") == "official")
         .join(df_repos, left_on="repository_id", right_on="id")
         .select(["paper_id", "full_name", "stars", "framework"]))
```

## Refresh cadence

Republished monthly. Production data updates daily on
[codeofpaper.com](https://codeofpaper.com), but the public snapshot ships
on a 90-day delay to avoid freshness contracts.

## Citation

If you use this dataset, please cite:

```bibtex
@misc{codeofpaper_2026,
  title = {codeofpaper: paper-code graph},
  author = {codeofpaper contributors},
  year = {2026},
  url = {https://huggingface.co/datasets/codeofpaper/paper-code-graph},
}
```

## Project

Product: <https://codeofpaper.com>. The classifier rubric, build script, and
methodology will be open-sourced alongside the first public release of the
codeofpaper repository.

Build metadata: schema `1.0.0`, git SHA `b7ae3a7eace01038093aff1918b9c09754dd088a`.