Open Data on GitHub: Unlocking the Potential of AI

Anthony Cintron Roman, Kevin Xu, Arfon M. Smith, Jehu Torres Vega, Caleb Robinson, Juan M. Lavista FerresarXiv 2023 · DOI

Introduction

While GitHub is primarily recognized as the premier platform for open-source code, a recent study by researchers at Microsoft and GitHub suggests it has evolved into one of the world's largest, albeit accidental, open data repositories. The paper, "Open Data on GitHub: Unlocking the Potential of AI," provides a comprehensive census of this ecosystem, identifying over 800 million data files totaling 142 terabytes. As AI development becomes increasingly bottlenecked by the availability of high-quality training data, understanding the scale and nature of GitHub's data assets is critical for the research community.

Methodology

To quantify this landscape, researchers utilized internal access to GitHub’s data backend, analyzing public, non-forked repository metadata from 2008 through March 2023. A significant technical hurdle involved distinguishing actual data assets from code-related metadata (e.g., distinguishing a medical record JSON from a package.json configuration file).

The team employed a multi-stage filtering process:

  • Extension-Based Targeting: Focus was placed on structured formats such as csv, json, parquet, geojson, and scientific formats like pdb (chemistry) and fasta (genomics).
  • Heuristic Exclusion: Hundreds of common non-data filenames (e.g., tsconfig.json) were manually identified and removed.
  • Noise Reduction: Accounts exhibiting bot-like behavior—specifically those uploading high volumes of small, repetitive JSON files—were excluded to ensure the census reflected human-curated data.

The Exponential Growth of Open Data

The study reveals that the volume of data on GitHub is experiencing exponential growth. Approximately 81% of all identified data files were added within the last four years, with 57% added in the last two years alone. This trend suggests that developers are increasingly adopting GitHub as a primary "bucket" for data storage alongside their codebases.

Figure 1: The exponential growth of data files published on GitHub between 2013 and 2022, reaching 235 million files annually.

Key Findings and the "Licensing Gap"

GitHub's data landscape is dominated by JSON and CSV formats, which together account for 81% (652 million) of all files. Beyond general data, the largest specialized niche is Geospatial data, comprising over 47.5 million files (GeoJSON, SHP, KML), followed by Acoustic (wav) and Chemistry (pdb) data.

However, the researchers identified a significant barrier to AI progress: the "licensing gap." A staggering 75.9% of data files reside in repositories with no detected license. This lack of legal clarity prevents AI researchers from ethically or legally utilizing these assets for model training, representing a massive missed opportunity for the open-source community.

Figure 2: Distribution of licensing for data files on GitHub, showing that nearly 76% of assets lack a detected license.

Conclusion and Future Directions

GitHub currently hosts over 802 million structured, machine-readable data files across 11.3 million public repositories. While the scale is staggering—dwarfing dedicated platforms like Figshare—limitations remain. The current study excluded .txt files and compressed formats (e.g., .csv.gz) due to classification difficulties, likely undercounting the true volume of data.

Future work will focus on content-based classification. By using machine learning to inspect the internal structure of files, researchers hope to distinguish data from text and code more accurately, eventually unlocking currently "hidden" datasets in unstructured formats.

Summary updated

BibTeX
@misc{roman2023open,
  author = {Anthony Cintron Roman and Kevin Xu and Arfon M. Smith and Jehu Torres Vega and Caleb Robinson and Juan M. Lavista Ferres},
  title = {{Open Data on GitHub: Unlocking the Potential of AI}},
  year = {2023},
  eprint = {2306.06191},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.06191},
}
Figure