| Kind | dataset | dataset |
|---|
| Published | 2024 | 2022 |
|---|
| License | Various (per-repository licenses; must abide by original license terms) | Various permissive open-source licenses (193 in v1.1); each file's original license must be respected; opt-out supported |
|---|
| License family | Other | Permissive |
|---|
| Access | restricted | restricted |
|---|
| Language codes | code | code |
|---|
| Modalities | text | code, text |
|---|
| Size | — | 100M to 1B rows |
|---|
| Downloads (last month) | 6,031 | 9,409 |
|---|
| Likes | 638 | 1,082 |
|---|
| Last updated | 2026-08-03 | 2026-08-03 |
|---|
| Tasks | text-generation | text-generation |
|---|
| Formats | — | parquet |
|---|
| Scale | Hub parquet (partial conversion): algorithmic_corpus 5.3M / 1.4 GB; synthetic_code_snippet 3.1M / 1.4 GB; synthetic_qa 3.2M listed vs 7.2M estimated / 2.3 GB. Viewer total 11.6M rows (est. 15.6M). size_categories 10M<n<100M. Canonical dump is JSONL: algorithmic_corpus 54 files ~3.78 GB; synthetic_code_snippet 31 files ~4.94 GB; synthetic_qa 106 files ~17.6 GB (~26.3 GB LFS). Paper Table 3 annealing mix (training tokens, includes RefineCode which is NOT this repo): RefineCode 83.94B + Algorithmic Corpus 12.44B + High Quality Code Snippet 2.71B + Code Textbooks 0.91B. Hub 43.9K downloads / 44 likes at check. | Paper: 3.1 TB / 30 langs; v1.0 near-dedup ~3 TB. Hub tags 100M<n<1B; parquet shards per language (e.g. large c/c++/html/css/go configs). Exact total rows not re-counted (gated 401). |
|---|
| Format | JSONL on the Hub (canonical). Configs algorithmic_corpus, synthetic_code_snippet, synthetic_qa. Schemas: {type, lang, text} for the first two; {text, file_name, file_ext, file_size_in_byte, lang, program_lang} for synthetic_qa. Parquet conversion exists but is partial. | Parquet shards under data/<language>/; gated Hub dataset |
|---|
| Type | Pretraining annealing corpus / algorithmic code + synthetic rewrites | raw multilingual source-code pretraining corpus |
|---|
| Cost | Free | Free gated download; very large storage/bandwidth |
|---|
| Languages | Code-first. JSONL `lang` on algorithmic_corpus/synthetic_code_snippet is a programming language (preview python/java). synthetic_qa JSONL has lang=en plus program_lang (preview java). Card has no spoken-language tag. Paper also synthesizes multilingual snippets. No LID table. | Programming languages (Hub: 300+ language configs; paper v1.0 highlighted 30). Natural-language comments embedded in code. |
|---|
| Modality | Text-only (source code + English comments/prompts). | Text (source code) |
|---|
| Domain | code pretraining annealing; algorithmic/LeetCode-style files; synthetic self-contained functions and code-exercise QA; multilingual source files | multilingual source code / code LLM pretraining |
|---|
| Time period | Algorithmic seed sampled from The Stack v2 / GitHub-style LeetCode solutions (paper RefineCode GitHub cutoff Nov 2023). Synthetic rewrite during OpenCoder annealing. HF createdAt 2024-11-12; lastModified 2025-05-29. Paper arXiv 2411.04905 (2024-11-07). | GitHub-sourced code through BigCode Stack releases (paper 2022-11); Hub lastModified 2026-08-03; Discord 1422597711273656371 (2025-09-30) |
|---|
| Purpose | High-quality extra mix for the OpenCoder annealing stage (paper: quality over quantity after general RefineCode pretrain), beyond the original RefineCode distribution | Provide a large permissively licensed, governance-aware code corpus for open code LLM research |
|---|
| Used for | OpenCoder-1.5B/8B-Base annealing (paper Table 3 + Fig 9 ablation: dropping this high-quality mix hurts HumanEval/MBPP). Companion of already-cataloged opc-fineweb-code-corpus and opc-fineweb-math-corpus. Hub 43.9K downloads / 44 likes at check. Discord posted the OpenCoder-LLM collection. | Code LLM pretraining (StarCoder lineage et al.); per-language code modeling; responsible data research |
|---|
| Authors | OpenCoder-LLM / INF / M-A-P. algorithmic seed: public GitHub/Stack v2 authors (synthetic_qa JSONL has @author javadoc and leetcode-cn URLs). Snippets/QA-style rows rewritten by a strong LLM (paper: Qwen2-72B-Instruct / GPT-4o-Mini-related hqcode for textbooks). Residual LeetCode/contest-solution culture. | BigCode (Kocetkov, Li, Ben Allal, von Werra, et al.). Code authors = original GitHub contributors per provenance. |
|---|
| Bias | LeetCode/algorithm-keyword sample (paper: leetcode / def solution / class solution), not general GitHub. Card folder names do not match JSONL schemas: synthetic_qa JSONL is raw source files (file_name/file_ext/program_lang), while algorithmic_corpus JSONL is type=qa prompt+code and synthetic_code_snippet is type=snippet. Hub parquet conversion for synthetic_qa looks incomplete. Seeded from gated Stack v2; this derived dump is public. English comments + many languages of code. | GitHub popularity / language skew; English-heavy comments; license-filter bias toward permissive projects; possible personal/secret leakage historically addressed via opt-out governance |
|---|
| Text quality | Paper: algorithmic files are self-contained and closer to interactive tasks; synthetic snippets kept only if generated tests pass. JSONL preview: real LeetCode Java (pivot index) plus synthetic documented functions. Residual contest boilerplate and incomplete test harnesses in type=qa rows. Not RefineCode (960B) and not the SFT stages. | Raw source files with provenance; near-dedup in releases; quality varies by repo. Card emphasizes license compliance over heavy cleaning. |
|---|
| Sample size | Three train configs, no default. Viewer: algorithmic_corpus 5.3M; synthetic_code_snippet 3.1M; synthetic_qa 3.2M parquet / ~7.2M estimated. No official val/test. Paper token mix above is the training recipe, not a guarantee each HF folder equals that token count. | Highly skewed by language popularity (HTML/C/C++/CSS etc. dominate shard counts) |
|---|
| Long context | No (self-contained files/functions; OpenCoder-8B trained at 8K, 1.5B at 4K). | No (file-level; some files long) |
|---|
| Intermediate steps | Yes (keyword sample from Stack v2/RefineCode; LLM rewrite to snippets with tests; LLM textbooks). Paper §2.2. Sibling SFT dumps opc-sft-stage1/stage2 are separate repos. | N/A (pretraining raw code; not CoT) |
|---|
| Idea quality | High | High |
|---|
| Novelty | Medium (public annealing extras for an already-cataloged OpenCoder FineWeb pair; still a distinct dump) | High at release (largest open permissive multi-lang code set with governance) |
|---|
| Text conversion | Ready JSONL; load_dataset('OpenCoder-LLM/opc-annealing-corpus', '<config>'). Streaming recommended (~26 GB JSONL). Prefer JSONL over the incomplete parquet conversion. | Hub datasets loaders / Dask/Polars after gate accept; multi-TB download |
|---|
| Collection method | Download | Accept HF gate/ToU; download desired language configs; honor opt-out/version notices |
|---|
| Static | Unknown (HF lastModified 2025-05-29; one-shot annealing dump. Stack v2 / GitHub later grew; this snapshot was not refreshed.) | No (maintainers push removal updates; ToU requires refreshing) |
|---|
| Processed | Unknown | Partially (license filter, near-dedup, language packing; not instruction-formatted) |
|---|
| Summary | 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. | The Stack is a collection of over 6TB of permissively-licensed source code files covering 358 programming languages, created as part of the BigCode Project (an open scientific collaboration for responsible Code LLM development). It serves as a pretraining dataset for code-generating LLMs and provides per-file provenance metadata (repository name, licenses, stars/forks/issues counts, git hashes) to support attribution and license compliance. The dataset has an opt-out mechanism and is regularly updated to enact validated data-removal requests. |
|---|