Datasets:
text stringlengths 13 40 |
|---|
ce7c5baa4e513d5fe168c315c47cab25a1ea4f80 |
90d4d937c3eb93b65d6aa6bc2afd0d990f88d868 |
19fa81aea882474e30c17866c27d40e0d9fb2344 |
0a3fe2e79160bb047996dae7a5ee641ddd869190 |
acb5c9226cf8186b7d6a6dd4e622156bbe7bdd0b |
25bf058bfd4809c5016906c1ca8b38c5f76fff09 |
af52097a0e4ba915a6a46d0ba8c7c22622b0449a |
d8781b83de6dbab019d1c2d17b4eeee72d7bfcb7 |
d5a2aef50fc337c96fadb5102229c1231c6aa529 |
71a23f566c4a146f82fe30a83820bf24aff03b82 |
7fa7ea25ed31c215afc4f36c09442aa0c42f5dbd |
7c5d366b0818cde211a7904e29883aa997059612 |
d797e258e8bc7e355bb311bccac19c36409f1dba |
d98ab2d88666c4d4542544bec0e67869b503beb4 |
d35485a3783f6dabbc93177df2c9966cacd31a76 |
cc1289bf045d7f16cc356346d64a9f6f5750b14a |
695c9907dc2ed4f91098cb0b58d3aef81394e4e9 |
2677d0c60406351a77fb60258b862c1fc16599aa |
f29e17a80b4202ca3fcef08762cc65e61548ac83 |
f3cb5a570dd720b79111f5d103ae25eb01f46fa4 |
f394bbc85a2fdd33151d6a0a23c78c4e90843148 |
ce09691a357c16b6446f5bc6e56a7910335f3fbf |
c28ba8577297edc9f41c725c5f3076560142a68b |
ae2b301b40d2de2eae860e6540a84207c3089018 |
6e926eed157f40b5545de8ed46b7461d40a6ccdf |
c9d25790ad92a34556632ba23146f689616b183e |
e062af27ea12ed40fd29cfc5b986e44a832733dd |
ebcaa693debdc86dbf1b52a8b09ae01b0c3a4428 |
b10c527ced68c3ef8501545bf4b4ed27eac1e018 |
d81dc3d36ac1d08015c413f4cb182a0ed1ea2e23 |
6bd6a7e989fb573c96cea8c211dae4e5b6261018 |
1a7cb1af6acf7ba0a5a4bdbbf75776dee424d106 |
7f1590829b2b83d7fb33942087727a756f0fdd10 |
e07a252235ab817b49f47617c436fbc8ed77575b |
88e66906b6f34828c53d5ca36ad06c96b97864b1 |
dcd765b4840be689d8d7db954148684de9c18851 |
18ca28c49916547051dc7a74470cbcadecc662d8 |
d01237483743e09cd42405f37eb1f0f7df9e419b |
ac9924bd215af83128c7ee323d444042357fb797 |
b3b28c7c366adae9321aa946d242fe30d31b3402 |
581dea46cc31629ccb964cd0281c21880492f8c7 |
5cab10fdaa2073e3d9e30aecab2d2e563fe6059c |
a69aa5dc6cb662f60e5e41146c41853ef9b8d5a4 |
2c2da0a54018a7c1d0af39b0906a0fe2b20b8360 |
61162bde0b7e67c733d066acf6c9c2e4c9a143f7 |
6ba056b1384ee3fe286cd79ffa89850f95ebc4aa |
4b5e45434ae891e807c1f8fe2140f47858577cc5 |
39d5eb909b6df621202a3adce33833b2a6bb81b6 |
e2ebe094c74acfe42a62fbc3814a7d7637d23ecc |
7c47463a580a5838ebecb796b154bd14abeed1ad |
1212a9717f890c6b7560f89406cee00ec1e85d9e |
78515511035f0989ddfd8191c70b3378b8e452ff |
3d35d5f376dc02abc71c3be78521deab6f93c619 |
210377fd979c96d5ab2e86fc070ecbd55e27f529 |
c738245b142021f9adf81805bb8d6956328b8a3c |
5bb2441f04c0d5bf5cd2824f3778cfca1ec1b6ee |
e173ec91e4afa0ef48a325b6f2e66515f65927a9 |
aa354918f3106d1c9ce6d5951ad84b1e7c131838 |
0e263b3d2cc295d6842eb51915ab2b368718629b |
def51f3ad3a9fbf311a7476bfc1f09307b243312 |
380b5b1fffb24e38c5c417bb7a26b7758307c1be |
044a6273ff56e663c6003457983135ae77472f65 |
c466947ebe983ace16a556f42c154b1226dbbc3f |
1b464f32b379b0e0ecc1685d1f0779ffdd63dc91 |
592fe0707f81469c2d1f27089cec08863787e1d3 |
5c9770ac91163b09d4001beb8f81046b1927f32b |
7d0d7f63197dabbfd281ba23d062a24d70f72c9e |
339da6ef547e1770d03c8507d07499a9ea1fed4a |
f303e1b3de92647345b22e70ea7db926890a4ab9 |
b5cda4efe9ab7b920aa8c976aac38fd9653cf1cf |
e9e212e825f8632491446fc3f24b4ae6ce0d2dee |
4ae4d5257d9a0bb2b0a6467fd65896250efb9bb6 |
10d0d9b15fe4c3ee237cb1decbb50b170666d874 |
858ca34cf44ad951e65027cb5f3699cf6b580795 |
ec7b8b12e6024d237975e32a92ae46d7b0e67442 |
5dd8f0865fa969cb895bbffda041598e4a6b40f8 |
a04bd34d7b4e727c03d15444021d737ac7bcfd06 |
1552156850db1cf994040ffd7d8c3a307b36ac4b |
9a3ef5ba46de5ce03a3d14cf47019c50ef66b0c1 |
bd70d9a4f84a0318646c3bc923e6d5cef42795c8 |
78373090fad00d8e1b48bc2dbbd73a6389e6f731 |
329ad7df84d6e1e72616743b0ec7a8e97502fa49 |
cc2d15b83272d44e1b774f658ddefca60627c930 |
5d780f9f84d4d4f30a4b0695605a8a6b526777b0 |
08fe43ef15f4d6002bc1a0d6cea42deb8cedb458 |
d47ed83f96909e9ae9672d55b4743cb432af3c05 |
16c064b89912b64b0445e0dfd112096c1ff5f52e |
4bf660c36c3cc12954f9648433cb16c3256ab254 |
125e124b6942949366b7f0fd82261806b9a7f356 |
b598b3421915f25462edf798264a31710ed6d89c |
95c7f65e34cc33696b61f7c95c847066635ad4b8 |
f6c2d480c4e4ea96a8dc55c1239d27e46bc29f47 |
7c33de7c96ed84785b98631307d0bac424a13e1b |
5ad20a9b07832ac58cdc974f6f2293f40a6b532a |
57d11da3db2a1a1ab4039a8b60f9abc9e02015b5 |
b360f989a3fd47dd226ef2a82fa550072cda15d3 |
f468fdf11e82b9b3839ea2bebc4341f01532c2ab |
fcdbf1006c4d7012b257982c492b3197bbc7e5c3 |
bb4a84a1844c1fc4bd25067345413e1e7d49e911 |
3a42224bf6ffaa51a6fea62b8e154c35b0f271d1 |
GitHubAD: Bulk Files
GitHubAD pairs 8,401 CVEs with the commits that fixed them, across 2,816 open-source repositories, and freezes the history of each repository's default branch. This Hugging Face dataset holds the bulk files: the commit archives, the precomputed vectors, the keyword scores, and every file that quotes commit text, namely the two files of corrections/ and the full outputs of the language-model runs, 216.3 GB in total. It is the only part of the release that holds commit messages and diffs. The labels, run outputs, shortlist, TREC files, loader, scorer, and documentation are on Zenodo, DOI 10.5281/zenodo.23753278.
Patch tracing is the task of finding, for a disclosed vulnerability, the commit that fixed it. A method receives the CVE description from the National Vulnerability Database and ranks the commits of the affected repository.
Folders
| Folder | Files | Size | Contents |
|---|---|---|---|
commits/ |
2,816 | 50.4 GB | one archive per repository, <owner>@@<repo>.tar.zst, with the id, date, message, and diff of every commit reachable from the default branch |
corrections/ |
2 | 3.4 MB | merge_first_parent_diffs.jsonl.zst, GitHub's first-parent diff of each of the 585 recorded fix commits that are merge commits; malformed_id_map.tsv, the original ids behind the placeholders malformed-1 and malformed-2 in the Zenodo files |
runs/ |
4 | 11.8 MB | the PatchHolmes agent and IRCoT runs with their model text (reasoning, raw_pred), which quotes commits; Zenodo holds the same runs without it |
embeddings/qwen3-embedding-8b/ |
11,264 | 126.5 GB | float16 Qwen3-Embedding-8B vectors for 15,394,045 commits and 8,375 CVE queries |
embeddings/octen-embedding-8b/ |
1,362 | 21.8 GB | float16 Octen-Embedding-8B vectors for the 227 repositories of the 809-CVE working subset |
retrieval/bm25_time/ |
2,816 | 17.6 GB | keyword scores (BM25 with two time signals), up to 100,000 scored commits per CVE |
In 2,815 of the 2,816 archives, the latest commit is dated 10 February 2025 or earlier. The revision tag v2.0.0 marks the files the paper describes; later versions get new tags. SCHEMAS.md on Zenodo gives the record format of every data file here, and metadata.zip on Zenodo lists the SHA-256 checksum of every file in this dataset.
Getting Started
hf download guanqun-yang/GitHubAD --repo-type dataset --revision v2.0.0 --local-dir GitHubAD
# one part only, for example the commit archives:
hf download guanqun-yang/GitHubAD --repo-type dataset --revision v2.0.0 --local-dir GitHubAD --include "commits/*"
Then download the Zenodo files into the same folder and follow the Zenodo README. Its loader tools/load.py reads the labels, commits, vectors, scores, and run outputs, and ranks the commits of a repository on a CPU. Its scorer tools/githubad_score.py scores a run.
Known Limitations
- The archives hold the default branch only, so a fix that exists only on another branch is absent.
- Of the 585 recorded fix commits that are merge commits, 433 have a stored diff that changes a different set of files than GitHub's first-parent diff. Their vectors and keyword scores were computed on the stored diffs.
corrections/holds GitHub's first-parent diffs, and Zenodo holds a subset file of the 8,026 CVEs to report results on next to all CVEs. - Six repositories have one truncated archive shard each, whose 19,408 readable commits have no vector. No recorded fix commit is among them.
- 107 commits in 37 repositories carry an id that the history extraction mixed with message text. No recorded fix commit is among them.
- 26 CVEs have no released query vector, although Phase 1 ranked them by vector; why their vectors are missing was not determined.
- A keyword-score file keeps at most 100,000 scored commits. In the 12 largest repositories, the files score fewer commits than the history holds, down to 53,232 of 546,234 commits (9.75%) in mjg59/linux. In 11 of 12 randomly drawn repositories, every commit is scored.
Licenses
- Vectors, keyword scores, and documentation: CC BY 4.0.
- Commit messages and diffs: redistributed from public GitHub repositories, each under its repository's own license.
metadata/repo_licenses.csvon Zenodo lists the license GitHub reports for every repository, and a subset file lists the 6,222 CVEs of the 2,079 repositories with a recognized license.
Ethics and Removal Requests
All commit data is public on GitHub. A commit record holds the commit id, date, message, and diff, without git's author and committer fields. Names and email addresses can still appear in messages and diffs, for example in Signed-off-by lines. A repository owner or a named person who wants material removed can open a discussion on this page or email the corresponding author. We then remove the messages and diffs of those commits from the next version and from every earlier revision of this dataset, including the tagged v2.0.0. The Zenodo record holds no commit messages or diffs. A removal changes the affected files and their checksums, and the changelog of the next version lists each removal.
Citation
See CITATION.cff on Zenodo. Contact: Guanqun Yang, guanqun.yang@outlook.com.
- Downloads last month
- 29