Files changed (1) hide show
  1. README.md +51 -0
README.md ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ configs:
3
+ - config_name: default
4
+ data_files:
5
+ - split: train
6
+ path:
7
+ - gharchive/v0/documents/*.jsonl.gz
8
+ task_categories:
9
+ - text-generation
10
+ language:
11
+ - en
12
+ pretty_name: GitHub Archive
13
+ ---
14
+ # GitHub Archive
15
+
16
+ ## Description
17
+ According to [GitHub’s terms of service](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service), issues and pull request descriptions—along with the their comments—inherit the license of their associated repository.
18
+ To collect this data, we used the [GitHub Archive’s](https://www.gharchive.org/) public BigQuery table of events to extracted all issue, pull request, and comment events since 2011 and aggregated them into threads.
19
+ The table appeared to be missing “edit” events so the text from each comment is the original from when it was first posted.
20
+ We filtered out comments from bots.
21
+ This resulted in approximately 177 million threads across 19 million repositories.
22
+ We then removed threads whose repositories did not have a Blue Oak Council-approved license.
23
+ License information for each repository comes from either 1) the “public-data:github_repos” BigQuery Table, 2) metadata from the StackV2, or 3) the GitHub API.
24
+ License filtering left 10 million repositories.
25
+ PyMarkdown was used to convert from GitHub-flavored markdown to plain text.
26
+ When parsing failed, the raw markdown was kept.
27
+ Per-document license information is available in the `license` entry of the `metadata` field of each example.
28
+ Code for collecting, processing, and preparing this dataset is available in the [common-pile GitHub repo](https://github.com/r-three/common-pile).
29
+
30
+ ## Dataset Statistics
31
+ | Documents | UTF-8 GB | Times seen during training| Tokens |
32
+ ------------|----------|---------------------------|--------|
33
+ |23,358,580 | 40.4 | 6x | 60.6B |
34
+
35
+ ## License Issues
36
+ While we aim to produce datasets with completely accurate licensing information, license laundering and inaccurate metadata can cause us to erroneously assign the incorrect license to some documents (for further discussion of this limitation, please see [our paper](TODO link)). If you believe you have found an instance of incorrect licensing in this dataset, please [start a discussion](https://github.com/r-three/common-pile/discussions/new) on this repository.
37
+
38
+ ## Other Versions
39
+ This is the "filtered" version of the GitHub Archive dataset.
40
+ If you are looking for the raw version, you can find it [here](https://huggingface.co/datasets/common-pile/github_archive).
41
+
42
+ ## Citation
43
+ If you use this dataset, please cite:
44
+ ```bibtex
45
+ @article{kandpal2025common,
46
+ title={{The Common Pile v0.1: An 8TB Dataset of Public Domain and Openly Licensed Text}},
47
+ author={Nikhil Kandpal and Brian Lester and Colin Raffel and Sebastian Majstorovic and Stella Biderman and Baber Abbasi and Luca Soldaini and Enrico Shippole and A. Feder Cooper and Aviya Skowron and Shayne Longpre and Lintang Sutawika and Alon Albalak and Zhenlin Xu and Guilherme Penedo and Loubna Ben and Elie Bakouch and John David and Honglu Fan and Dashiell Stander and Guangyu Song and Aaron Gokaslan and John Kirchenbauer and Tom Goldstein and Brian R and Bhavya Kailkhura and Tyler Murray},
48
+ journal={arXiv preprint},
49
+ year={2025}
50
+ }
51
+ ```