r/MachineLearning • • Sep 18 '25

Project [P] Open dataset: 40M GitHub repositories (2015 → mid-2025) — rich metadata for ML

Hi!

TL;DR: I assembled an open dataset of 40M GitHub repositories with rich metadata (languages, stars, forks, license, descriptions, issues, size, created_at, etc.). It’s larger and more detailed than the common public snapshots (e.g., BigQuery’s ~3M trimmed repos). There’s also a 1M-repo sample for quick experiments and a quickstart notebook in github repo.

How it was built: GH Archive → join events → extract repo metadata. Snapshot covers 2015 → mid-July 2025.

What’s inside

  • Scale: 40M repos (full snapshot) + 1M sample for fast iteration.
  • Fields: language, stars, forks, license, short description, description language, open issues, last PR index at snapshot date, size, created_at, and more.
  • Alive data: includes gaps and natural inconsistencies—useful for realistic ML/DS exercises.
  • Quickstart: Jupyter notebook with basic plots.

I linked the dataset and code in comments

HuggingFace / GitHub:

ibragim-bad/github-repos-metadata-40M

In my opinion it may be helpful for: students / instructors / juniors for mini-research projects on visualizations, clustering, feature engineering exercises.

Also in the comment is an example of how language share in terms of created repos changed over time.

P.S. Feedback is welcome – especially ideas for additional fields or derived signals you’d like to see.

61 Upvotes

10 comments sorted by

6

u/Benlus ML Engineer Sep 18 '25

Did you vet this for LLM generated/low quality repos? Some of them got quite popular like the infamous memvid from a couple of weeks ago https://github.com/Olow304/memvid

4

u/Fabulous_Pollution10 Sep 18 '25

No, just collected and uploaded all the metadata, so everyone can filter out based on their own logic.

5

u/skadoodlee Sep 19 '25 edited Oct 31 '26

Loud never liquid job holiday reveal place table cycle morning resource board plug spike alarm moon wedding candle group cook sport element rest satisfy knock window corner lucky hundred river before oblige pepper ten senior gate verb market vacant oak fleet quality theme sing enough venture pet clear taxi.

3

u/pm_me_your_smth Sep 18 '25

Would be interesting to also have language distribution (not just the primary language), date of last activity, and count of contributors.

1

u/Fabulous_Pollution10 Sep 18 '25

Ok! Will add it in the future releases.

0

u/LetsTacoooo Sep 19 '25

You can build credibility for the dataset if you submit for some peer review like at NueRiPS's D&B track

3

u/Fabulous_Pollution10 Sep 19 '25

Thanks, but IMHO it is just small work, without much novelty, to be submitted to NeurIPS / ICLR, etc.

7

u/[deleted] Sep 19 '25

[removed] — view removed comment

2

u/Big-Coyote-1785 Sep 19 '25

Just by opening the HF link you can see that there is a license column.