← Datasets

Compare

GitHub Code Clean
#1168 · remove
KodCode-V1
#1166 · remove
OpenMathInstruct-1
#1165 · remove
Kinddatasetdatasetdataset
Published202220252024
LicenseApache-2.0 (HF card YAML) for the packaging/script. Per-file content licenses are the 15 repo licenses in the license column (script DatasetInfo.license: 'Multiple: see the license field of each sample'). Copyleft GPL/AGPL/LGPL files are included if you load all-all.CC BY-NC 4.0 (HF card YAML cc-by-nc-4.0). Non-commercial. GPT-4o-0513 / Qwen2.5-Coder / DeepSeek-R1 terms may still apply if used to train a distributed model. Upstream LeetCode/Codeforces/APPS/TACO/CodeContests seed licenses remain.NVIDIA License (HF card license_name nvidia-license; LICENSE file grants commercial use; patent-termination and notice-preservation clauses). Mixtral-8x7B terms remain. GSM8K/MATH seed licenses remain.
License familyPermissiveNon-commercialOther
AccessFreeFreeFree
Language codes—enen
Modalitiestexttexttext
Size10M to 100M rows100K to 1M rows1M to 10M rows
Downloads (last month)29,71713,9606,845
Likes144119254
Last updated2022-07-052025-03-172024-02-16
Tasks——question-answering, text-generation
Formats—parquetjson
ScaleCard/parent 115M files / ~1TB text / parent source-size sum 873 GB. Clean README: 3.39M files removed (2.94%) → remaining ≈111.6M. github-code-clean.py 880 parquet shards data/train-00000-of-00880.parquet … train-00879 (listed train-00000 355.1 MB … train-00009 357.5 MB; train-00879 359.9 MB) → ~314 GB LFS parquet estimate (880×~357 MB; not summed). size_categories 10M<n<100M. Hub/datasets-server all-all train 614.0K / 10 parquet / 1.7 GB is a partial convert (477 failed parquet jobs) — do not catalog 614K as n. usedStorage Unknown. Hub overview 1.2M downloads / 142 likes at check. gated=false.Paper 447K verified triplets after style rewrite (279K after self-verification + 168K Complete/function-signature reformats). YAML default train 484,097 / use_with_caution 3,335 (sum 487,432) / download_size 2,642,644,096 bytes (~2.64 GB) / dataset_size 7,496,353,254 bytes (~7.50 GB). Hub/datasets-server train 484.1K / 19 columns / 15 parquet ~2.6 GB plus use_with_caution 3.3K / 1 parquet 21.0 MB. size_categories 100K<n<1M. Card subset counts (≈446K, not extra overlapping n): Prefill 43K; Leetcode 27K; Codeforces 33K; Apps 21K; Taco 81K; Code Contests 36K; Algorithm 31K; Data Structure 34K; Docs 43K; Filter 77K; Package 7K; Evol 13K. HF train 484k vs paper 447k is v1.0+v1.1 Online Judge restyle — catalog YAML 484,097. Hub overview 42.1K downloads / 114 likes at check. gated=false.Paper/card 1.8M unique correct problem-solution pairs (training-set coverage 99.9% GSM8K / 93% MATH). Also released 6.6M incorrect sampled solutions for verifier training — not extra SFT n. LFS jsonl: correct_solutions/train.jsonl 1.3 GB + validation.jsonl 203.1 MB; incorrect_solutions/train.jsonl 6.4 GB + validation.jsonl 981.1 MB (~8.88 GB jsonl). Hub/datasets-server default parquet convert train 5.8M / validation 1.1M / 8 columns / 2.4 GB + 444.2 MB (viewer-partial; datasetsServerInfo numRows 6,078,712) — mixed is_correct dump, do not catalog 6.9M as the 1.8M SFT n. size_categories 1M<n<10M. Hub overview 51.6K downloads / 252 likes at check; owner listing 5,292 downloads. gated=false.
Formatparquet under data/train-*-of-00880.parquet (880 shards). Columns: code, repo_name, path, language, license, size. Hub configs are language-license products (default all-all; e.g. Python-all, all-mit). Loading script github-code-clean.py (trust_remote_code).parquet under data/train-* and data/use_with_caution-*. Columns: version, style, subset, question_id, question, solution, test, test_info, gpt_pass_sequence, gpt_pass_trial_num, gpt_difficulty, gpt_pass_percentage, trials, chosen_trial, metadata, benchmark_similarity, benchmark_instruction, benchmark_task_id, filter_reason. Single default config; train + use_with_caution.JSONL under correct_solutions/ and incorrect_solutions/ (train.jsonl + validation.jsonl) plus Hub parquet convert. Columns: question, expected_answer, predicted_answer, error_message, is_correct, generation_type, dataset, generated_solution. Single default config with train/validation.
TypePretraining corpus / filtered GitHub source filesAnnotated synthetic code SFT/RL / question + verified solution + unit testsAnnotated synthetic math-reasoning SFT / question + code-interpreter solution + expected/predicted answer
CostFreeFreeFree
LanguagesSource-code (card language tag absent; parent language:code). 30 languages in github-code-clean.py _LANG_TO_EXTENSION (card/description says 32 — catalog script 30). Parent file-count table (approx; clean drops 2.94% Unknown-uniform): Java 19,548,190 / 107.70 GB; C 14,143,113 / 183.83 GB; JavaScript 11,839,883 / 87.82 GB; HTML 11,178,557 / 118.12 GB; PHP 11,177,610 / 61.41 GB; Markdown 8,464,626 / 23.09 GB; C++ 7,380,520 / 87.73 GB; Python 7,226,626 / 52.03 GB; C# 6,811,652 / 36.83 GB; Ruby 4,473,331 / 10.95 GB; Go 2,265,436 / 19.28 GB; TypeScript 1,940,406 / 24.59 GB; CSS 1,734,406 / 22.67 GB; Shell 1,385,648 / 3.01 GB; then Scala–Julia <1M each. Natural-language comments follow each file. No LID table.English questions + Python solutions/tests (card language:en). Preview is English instruct + pytest. No LID table. Per-language percents N/A.English 100% (card language:en). Preview is English GSM8K word problems and MATH contest items with LaTeX plus Python code-interpreter blocks. No LID table. Per-language percents N/A.
ModalityText-only (source code + markup). No images.Text-only (English + Python). No images.Text-only (English + LaTeX + Python code blocks). No images.
Domainsource-code pre-training; 30 programming languages; permissively licensed GitHub filescode generation; Python interview/contest/DSA; verifiable unit tests; SFT and RLmathematical reasoning; GSM8K/MATH instruction SFT; code-interpreter CoT
Time periodParent codeparrot/github-code v1.1 BigQuery query executed 2022-03-16 18:23:39 UTC+1 (v1.0 was 2022-02-14). HF createdAt 2022-06-29; lastModified 2022-07-05. One-shot GitHub-on-BigQuery dump plus extra clean filters, not a live scrape.Paper arXiv 2503.02951 (Hub publishedAt 2025-03-04T19:17:36Z; Daily Papers 2025-03-06). HF createdAt 2025-02-28; lastModified 2025-03-17T07:56:27Z. Card v1.1 adds Online Judge style. Teacher GPT-4o-0513; SFT sibling uses DeepSeek R1. One-shot synthetic release, not a live GitHub scrape.Paper arXiv 2402.10176 (Hub publishedAt 2024-02-15T18:26:11Z). HF createdAt 2024-02-11; lastModified 2024-02-16T18:42:16Z. Seed GSM8K and MATH training sets. One-shot Mixtral-8x7B synthesis, not a live contest crawl.
PurposeFiltered GitHub code pretrain (avg line length, alphanumeric fraction, autogen drop) as a cleaner sibling of codeparrot/github-codeLargest fully-synthetic open question–solution–test dump for coding SFT and RL, with self-verified pytest/stdio testsCommercially permissive math SFT at 1.8M scale using an open Mixtral teacher instead of GPT-gated mixes
Used forCodeParrot / early code-LM pretrain. Hub overview 1.2M downloads / 142 likes at check. Distinct from already-cataloged github-code-2025 (2025 nick007x dump) and from Hub-gated bigcode/the-stack — this is the public BigQuery GitHub dump, not The Stack.Paper KodCode-tuned models reported above Qwen2.5-Coder-32B-Instruct and DeepSeek-R1-Distill-Llama-70B on HumanEval(+)/MBPP(+)/BigCodeBench/LiveCodeBench. Hub siblings KodCode-V1-SFT-R1 / KodCode-V1-SFT-4o are post-training rewrites — not extra n of this RL dump. Hub overview 42.1K downloads / 114 likes at check; owner listing 3,854 downloads. Paper 34 upvotes / GitHub 321 stars at paper-metadata check.Paper OpenMath-CodeLlama-7B/13B/34B/70B, OpenMath-Mistral-7B, OpenMath-Llama2-70B (nemo + HF). Hub collection nvidia/openmath. Paper 38 upvotes / GitHub Kipok/NeMo-Skills 1,022 stars at paper-metadata check. Predecessor of already-cataloged OpenMathInstruct-2 — not extra OpenMathInstruct-2 n.
AuthorsHugging Face CodeParrot (loading-script copyright HuggingFace Datasets Authors). File authors are GitHub repo contributors as of the Mar 2022 BigQuery snapshot. License field is the origin repo license (15 OSS licenses), not a single dataset author.Xu (UW; Microsoft GenAI internship), Liu (Microsoft GenAI), Yin/Zhou (UT Austin), Poovendran (UW); arXiv 2503.02951. Questions synthesized from Magpie-Prefill (Qwen2.5-Coder-7B-Instruct), GPT-4o-0513 expansions of LeetCode/Codeforces/APPS/TACO/CodeContests seeds, DSA snippets, package docs, Magpie Filter, Package Instruct, Evol Instruct. Solutions/tests by GPT-4o-0513. Not human contest authors for the synthesized slice.NVIDIA (Toshniwal, Moshkov, Narenthiran, Gitman, Jia, Gitman; arXiv 2402.10176). Solutions generated by Mixtral-8x7B (base, Apache-style Mixtral license). Seed problems from GSM8K and MATH train. Not human contest authors for the synthesized solutions.
BiasPermissive-license GitHub only (15 licenses: mit/apache-2.0/gpl-3.0/gpl-2.0/bsd-3-clause/agpl-3.0/lgpl-3.0/lgpl-2.1/bsd-2-clause/cc0-1.0/epl-1.0/mpl-2.0/unlicense/isc/artistic-2.0). Java/C/JS/HTML/PHP dominate file count; C dominates bytes. Markdown/HTML/CSS are markup not compilers. Vendored node_modules still present after the 'clean' filters (preview). Distinct from already-cataloged github-code-2025 / OpenCoder FineWeb Code Corpus / SwallowCode-v2. Do not treat this as a request for gated bigcode/the-stack.Fully synthetic GPT-4o Python. Contest-assessment subsets (Taco 81K largest) plus Magpie Prefill/Filter and package Docs. gpt_difficulty is pass-rate over ≤10 self-verification trials (easy/medium/hard), not human contest rating. benchmark_similarity vs HumanEval/MBPP/BigCodeBench/LiveCodeBench is a column. Distinct from already-cataloged TACO / OpenCodeInstruct / OpenCodeReasoning / CodeForces-CoTs / rStar-Coder. SFT-R1/SFT-4o/Light-RL-10K are siblings — not extra n.GSM8K/MATH-train seed mix plus Mixtral-8x7B priors. generation_type mixes without_reference_solution and masked_reference_solution. Subject-specific MATH prompts added only a small TSC gain vs default 5-shot. Distinct from already-cataloged OpenMathInstruct-2 (Llama-3.1-405B, ~14M) / MetaMathQA (GPT-3.5-Turbo, 395k) / NuminaMath-1.5. Masked GSM8K/MATH siblings are generation aids — not extra n.
Text qualityParent dropped lines >1000 chars and exact whitespace-ignoring dups. Clean adds avg line length <100, alphanumeric fraction >0.25, and autogen keyword drop (3.39M files). all-all preview row 0 is a 2,730-byte ES6 Set polyfill nested ~8 node_modules deep in a GPL-2.0 WordPress theme (Socratacom/socrata-europe …/es6-set/polyfill.js) — residual vendored JS the clean filters did not drop. Row 1 is a 266-byte ISC JS class (mshick/velvet core/classes/data.js). Residual: secrets/PII possible (parent card); 2022 snapshot; datasets-server partial 614K is not a quality sample of 111M.Preview row 0 (v1.0 instruct Leetcode_3_I max product of two distinct elements) is a well-posed Python function with pytest tests; chosen trial_gpt4o_7 passed at 100% branch coverage after 9 fails (gpt_pass_percentage 0.1 → gpt_difficulty hard). Paper self-verification vs human tests: 97.5% MBPP val / 99.47% LiveCodeBench-V5 after format/precision review. Residual: this item is interview-easy despite the hard pass-rate label; benchmark_similarity 0.746 is high vs the contamination set; CC BY-NC; GPT-4o terms; not independently re-executed here.Preview row 0 (GSM8K crayons, masked_reference_solution) is a well-posed 18/2+20=29 item with a Python interpreter block and boxed 29. Row 2 (MATH origin to (-15,8)) is a correct distance-17 sympy solution. Row 1 (GSM8K bowl) gets 90 correctly but the generated text names Tom while the question names Noa — residual teacher slip. Paper: unmasked reference-solution prompting produced shortcut print(ANSWER) cheats; masked intermediates were the fix. Code execution errors/timeouts halt generation. Residual: fully synthetic Mixtral; brute-force sampling (128 GSM8K / 224 MATH solutions per problem); not independently re-executed here.
Sample sizeSingle train split. Default config all-all is the full remaining ~111.6M. Language configs (Python-all, Java-all, …) and license configs (all-mit, all-apache-2.0, …) are filters — not extra n. No val/test. Do not concat with already-cataloged github-code-2025 / OpenCoder FineWeb Code Corpus. Do not add codeparrot/github-code as extra n.default train 484,097 / use_with_caution 3,335. subset/style/version/gpt_difficulty are columns not Hub configs. Paper 447K is the v1.0 verified set before the v1.1 Online Judge restyle. Do not add KodCode-V1-SFT-R1 (483,437) / KodCode-V1-SFT-4o (409,552) / KodCode-Light-RL-10K (10,000) as extra n. Do not concat with already-cataloged TACO or OpenCodeInstruct.correct train+validation are the 1.8M SFT set (paper). Hub default train 5.8M / validation 1.1M is the viewer-partial is_correct mix including incorrect trajectories. incorrect_solutions 6.6M is a verifier dump — not extra SFT n. dataset gsm8k vs math and generation_type are columns not Hub configs. Do not add nvidia/OpenMath-GSM8K-masked (7,473) / nvidia/OpenMath-MATH-masked (7,500) or kunishou/OpenMathInstruct-1-1.8m-ja as extra n. Do not concat with already-cataloged OpenMathInstruct-2.
Long contextMixed (whole files; parent dropped lines >1000 chars; clean avg line <100). Exact token histogram Unknown. Parent 873 GB / 115M ≈ ~7.6 KB/file if both figures hold.Mixed (short Prefill vs contest/Docs items; YAML ~7.50 GB / 487,432 ≈ ~15 KB uncompressed/row including trials). Exact token histogram Unknown without aggregating.No (short GSM8K/MATH items with a few code blocks). Exact token histogram Unknown without aggregating. Paper max 4096 input-output tokens / 512 new tokens after each code block.
Intermediate stepsYes (BigQuery GitHub-on-BigQuery files by extension; drop long lines + exact dups; clean: avg line <100, alnum>0.25, autogen keywords). Parent query.sql / github_preprocessing.py live on codeparrot/github-code.Yes (12-subset question synthesis; GPT-4o-0513 solution+test generation with pytest-cov 100% branch coverage; up to 10 retries on hard items; Complete/Online-Judge restyle; DeepSeek-R1 test-based reject sampling lives on the SFT-R1 sibling). Code MIT-style at github.com/KodCode-AI/kodcode.Yes (GSM8K/MATH train seeds; Mixtral-8x7B few-shot code-interpreter synthesis; default vs subject-specific vs masked-text prompting; Python interpreter with ≤3 code blocks / 10s timeout; keep answer-matching trajectories). Pipeline in NVIDIA-NeMo/Skills (paper GitHub Kipok/NeMo-Skills).
Idea qualityHighHighHigh
NoveltyHigh (public ~111.6M-file / ~1TB 2022 GitHub code dump vs already-cataloged github-code-2025; Stack remains gated)High (public 447–484k self-verified Python question–solution–test triplets vs already-cataloged TACO 26k human contests / OpenCodeInstruct Genetic-Instruct)High (public 1.8M commercially permissive Mixtral math SFT vs already-cataloged OpenMathInstruct-2 14M Llama-3.1 successor / MetaMathQA)
Text conversionReady parquet; load_dataset('codeparrot/github-code-clean', split='train', streaming=True) uses default all-all. ~314 GB — streaming required. Language/license filters are Hub configs, not extra n. datasets-server 501/partial 614K — do not wait on viewer. Parent codeparrot/github-code is the un-cleaned 115M — do not concat as extra n.Ready parquet; load_dataset('KodCode/KodCode-V1', split='train'). ~2.64 GB download — streaming optional. use_with_caution is the filtered split. Do not concat SFT-R1 / SFT-4o / Light-RL-10K as extra n of this RL dump.Ready JSONL/parquet; load_dataset('nvidia/OpenMathInstruct-1', split='train'). ~8.88 GB jsonl / ~2.84 GB parquet convert — streaming recommended for the full correct+incorrect dump. Filter is_correct==True for the 1.8M SFT set. Do not concat with already-cataloged OpenMathInstruct-2 as extra n.
Collection methodDownloadDownloadDownload
StaticUnknown (HF lastModified 2022-07-05; BigQuery window Mar 2022; one-shot).Unknown (HF lastModified 2025-03-17; v1.1 Online Judge add; one-shot).Unknown (HF lastModified 2024-02-16; one-shot).
ProcessedUnknownUnknownUnknown
SummaryFiltered GitHub code pretrain (avg line length, alphanumeric fraction, autogen drop) as a cleaner sibling of codeparrot/github-codeLargest fully-synthetic open question–solution–test dump for coding SFT and RL, with self-verified pytest/stdio testsCommercially permissive math SFT at 1.8M scale using an open Mixtral teacher instead of GPT-gated mixes