GitHub Code 2025
Summary
A large-scale code dataset containing 148 million source code files harvested from GitHub's top 1 million repositories with 2+ stars, totaling approximately 1 TB. Each row includes the repository ID, file size, file path, and full file content, making it suitable for training code generation models and performing code analysis tasks. At least 17 models have been trained or fine-tuned on this dataset.
- Venue
- Hugging Face
- Source
- huggingface
- Access
- free
- License
- Unknown (no card license tag). Per-file GitHub licenses are not a column. Upstream GitHub ToS still apply. Unknown used because the Hub card does not declare a dataset license.
- Language
- multiple programming languages
- Hugging Face
- nick007x/github-code-2025
- Author type
- human
- Added
- Jul 17, 2026
- Verified
- Jul 17, 2026
- Research status
- done
From the source
- Repository
- nick007x/github-code-2025
- Created
- Oct 7, 2025
- Last updated
- Apr 1, 2026
- Downloads (last month)
- 2,509
- Likes
- 121
- Size
- 100M to 1B rows
- Modalities
- text
- Formats
- parquet
Topics
Code
Dataset profile
- Scale
- HF viewer/datasets-server: 147,977,624 train rows / 4 columns. usedStorage = parquet 881,977,246,516 bytes (~882.0 GB / 821.4 GiB); uncompressed dataset_size 2,475,933,573,515 (~2.476 TB / ~16.7 KB/file). 229 parquet shards: above-2-stars 130 files (train_000–131 with gaps 086/089/090 and a jump to 166) + below-2-stars 99 (train_000–099, gap 064). Hub tag size_categories 100M<n<1B. gated=false. Hub 81.0K downloads / 119 likes at check. Mean parquet ~3.85 GB/shard.
- Format
- parquet in above-2-stars/ and below-2-stars/ (not HF configs). Fields: repo_id, size, file_path, content. Default viewer concatenates both dirs into one train split.
- Type
- Pretraining corpus / unofficial GitHub file dump
- License
- Unknown (no card license tag). Per-file GitHub licenses are not a column. Upstream GitHub ToS still apply. Unknown used because the Hub card does not declare a dataset license.
- Cost
- Free
- Languages
- Mixed source + markup (preview: README.md and C++ .hpp from the same Arduino repo). Card has no language tag or LID table. Unknown language mix; not English natural-language text.
- Modality
- Text (source + markdown). No images.
- Domain
- source-code pretraining; GitHub files; mixed programming languages
- Time period
- HF createdAt 2025-10-07; lastModified 2026-04-01T05:10:39Z. Discord posted 2025-10-12. Snapshot year implied by the repo name (2025 GitHub files); no dump/commit dates on the empty card. Preview README mentions GPT-4o / ArduinoJson 7 (2024-era libraries).
- Purpose
- Unofficial public GitHub file dump with actual file contents (star-split), usable as a code-pretrain corpus where gated The-Stack-v2 / StarCoderData are inaccessible
- Used for
- Hub lists 17 downstream models at check (including 173B/106B text-generation finetunes). Hub 81.0K downloads / 119 likes at check. Discord posted only the HF URL.
- Authors
- GitHub repo owners/committers. Packaged by HF user nick007x (no org card, no paper). Star-split dirs imply a popularity cut (above-2-stars vs below-2-stars) but no license/PII/dedup documentation.
- Bias
- GitHub popularity skew via the 2-star split (both dirs are concatenated in the default viewer — do not treat the 148M as above-2-stars only). Includes README/docs not just compilable code (preview). No license filter documented, so copyleft/proprietary files may be present. Unofficial scrape; unknown dedup, so forks/boilerplate likely duplicated. Residual secrets/PII possible.
- Text quality
- Raw file contents. No card describing extraction, encoding, max-file-size, binary skip, or near-dedup. Preview rows look like ordinary GitHub text files. Quality is Unknown beyond that. Contrast HuggingFaceTB/stack-edu (educational classifier on Stack v2) which is metadata-only here (blob_id/path/score; no content column; needs gated The-Stack-v2).
- Sample size
- Single default train split 147,977,624 (both star dirs concatenated). No val/test. Star dirs are folders, not configs — cannot load above-2-stars alone via a named config without a path filter. Shard index gaps (086/089/090/132–165 above; 064 below) mean the dump is incomplete vs a dense 000–N sequence.
- Long context
- Mixed (per-file; mean ~16.7 KB uncompressed). Not repo-level packing. Unknown max file size.
- Intermediate steps
- Unknown (no dataset card). Star-split directory names are the only documented processing. Collection method otherwise Unknown.
- Idea quality
- Medium
- Novelty
- Medium (public content-bearing GitHub dump vs gated Stack; no paper/card; lower novelty than FineWeb-style pipelines)
- Text conversion
- Ready parquet; load_dataset('nick007x/github-code-2025'). Streaming required (~882 GB). Empty README on the Hub.
- Collection method
- Download
- Static
- Unknown (HF lastModified 2026-04-01; one-shot unofficial scrape; empty card)
- Processed
- Unknown
Research notes
- Published by Nick Saga (nick007x) on HuggingFace. Dataset viewer and parquet conversion available.
- Discord posted only the HF URL. No paper. gated=false; public; CuratorBote can read content (unlike gated bigcode/the-stack, bigcode/the-stack-v2, bigcode/starcoderdata). HuggingFaceTB/stack-edu was considered as the code-pretrain pick but its Hub schema is metadata-only (no content; blob_id against gated Stack v2), so this dump was used instead. nvidia/Nemotron-Pretraining-Code-v1 remains gated. Distinct from already-cataloged SwallowCode-v2 / KStack / OpenCoder FineWeb Code Corpus (those have cards/licenses). Not in papers_local.csv. Not on the Aug 13 live Datasets sheet export.
Related entries
- Dataset
github-top-code
A curated dataset of 1.3M+ source code files from **GitHub's top ranked developers (2015-2025)**.
- Dataset
The Stack v2
The Stack v2 is a large-scale pre-training dataset of source code containing over 3 billion files in 600+ programming and markup languages, derived from the Software Heritage archive. It serves as a pre-training corpus for Code LLMs (used to train StarCoder2), with the full dataset at 67.5TB and the deduplicated version at 32.1TB (~900B tokens). The dataset provides SWHIDs (Software Heritage IDs) for provenance and compliance, with file contents stored on Software Heritage's S3 bucket.
- Dataset
GitHub Code Clean
Filtered GitHub code pretrain (avg line length, alphanumeric fraction, autogen drop) as a cleaner sibling of codeparrot/github-code
- Dataset
The Stack v2
Open reproducible Code LLM pretraining corpus with license/provenance metadata and developer opt-out
Similar entries
- Dataset UltraData-Code (OpenBMB L0–L3 tiered code pretrain: L2 algorithmic + L3 synthesis)
- Paper BigO(Bench): Can LLMs Generate Code with Controlled Time and Space Complexity?
- Paper Cross-Benchmark Transfer from RL on Agentic Coding Tasks
- Code facebookresearch/RLCD (official reproduction code)
- Paper CodeGenLink: A Tool to Find the Likely Origin and License of Automatically Generated Code
- Paper Regression Language Models for Code