CoolFace
Datasetpublic

ronantakizawa/github-top-code

GitHub Top Developer Source Code A curated dataset of 1.3M+ source code files from GitHub's top ranked developers (2015-2025). This dataset is based on the top ranked developers from this dataset: https://huggingface.co/datasets/ronantakizawa/github-top-developers Dataset Summary 1.3M+ source code files from repositories across ~4,700 unique developers 80+ programming languages included (Python, JavaScript, TypeScript, Rust, Go, C/C++, Java, and more) Source code… See the full description on the dataset page: https://huggingface.co/datasets/ronantakizawa/github-top-code.

sourceHugging Facemitupdated 7mo agoView on Hugging Face
125likes4kdownloads
Dataset Card

GitHub Top Developer Source Code

A curated dataset of 1.3M+ source code files from GitHub's top ranked developers (2015-2025).

This dataset is based on the top ranked developers from this dataset: https://huggingface.co/datasets/ronantakizawa/github-top-developers

Dataset Summary

  • 1.3M+ source code files from repositories across ~4,700 unique developers
  • 80+ programming languages included (Python, JavaScript, TypeScript, Rust, Go, C/C++, Java, and more)
  • Source code only — config files (JSON, YAML, TOML, etc.) and documentation (Markdown, TXT) are excluded
  • Permissive licenses only (MIT, Apache-2.0, BSD, ISC, etc.)
  • Rich metadata per file: repo stars, description, primary language, developer company affiliation

Screenshot 2026-02-23 at 10.41.38 AM

Schema

Each row represents a single source file:

ColumnTypeDescription
file_pathstringPath within the repo (e.g. src/main.py)
file_languagestringLanguage detected from file extension (e.g. Python, JavaScript)
contentstringRaw source code (UTF-8)
repo_namestringFull repository name (owner/repo)
repo_starsint64GitHub star count at time of collection
repo_descriptionstringRepository description
repo_primary_languagestringGitHub-detected primary language of the repository
developer_usernamestringGitHub username
developer_namestringDeveloper display name
developer_companystringCompany affiliation

Note on language columns: file_language is determined per-file from the file extension (e.g. a .py file is always Python). repo_primary_language is GitHub's auto-detected primary language for the entire repository. These may differ — for example, a C header file (.hC/C++ Header) in a repo that GitHub classifies as Python.

Splits

SplitDescription
train~90% of repos — for training
test~5% of repos — for evaluation
validation~5% of repos — for hyperparameter tuning

Splits are assigned by repository (deterministic hash), so no repo appears in multiple splits. This prevents data leakage from files in the same project.

Usage

python
from datasets import load_dataset

# Load a specific split
train = load_dataset("ronantakizawa/github-top-code", split="train")
test = load_dataset("ronantakizawa/github-top-code", split="test")

# Filter by language
python_files = train.filter(lambda x: x["file_language"] == "Python")

# Filter by stars
popular = train.filter(lambda x: x["repo_stars"] > 1000)

# Get files from a specific developer
dev_files = train.filter(lambda x: x["developer_username"] == "torvalds")