{
  "id": 1179,
  "kind": "dataset",
  "title": "The Stack v2",
  "summary": "Open reproducible Code LLM pretraining corpus with license/provenance metadata and developer opt-out",
  "body": "",
  "notes": "Discord data-source-dump mid 1478777064818479185. Cataloged without CuratorBote gated access — public card/API only. Prefer train-full-ids/smol-ids for training-ready filters. Related: the-stack-v2-dedup.",
  "url": "https://huggingface.co/datasets/bigcode/the-stack-v2",
  "links": [
    {
      "url": "https://huggingface.co/datasets/bigcode/the-stack-v2",
      "label": "Dataset"
    },
    {
      "url": "https://arxiv.org/abs/2402.19173",
      "label": "Related"
    },
    {
      "url": "https://huggingface.co/papers/2402.19173",
      "label": "Related"
    },
    {
      "url": "https://huggingface.co/datasets/bigcode/the-stack-v2",
      "label": "Related"
    },
    {
      "url": "https://www.softwareheritage.org/",
      "label": "Related"
    }
  ],
  "authors": [
    "bigcode"
  ],
  "tags": [],
  "topics": "code pretraining; multilingual source code; Software Heritage",
  "venue": "",
  "publisher": "",
  "source": "huggingface",
  "language": "code",
  "access": "Free metadata after gate; bulk content agreement required",
  "license": "other / per-file SPDX; ToU requires original license compliance + SWH LLM principles",
  "published_year": 2024,
  "added_at": "2026-09-10T20:53:36.000Z",
  "verified_at": "2026-09-10T20:53:36.000Z",
  "attrs": {
    "dataset": {
      "cost": "Free metadata after gate; bulk content agreement required",
      "type": "Code corpus / SWHID + metadata (contents on SWH S3)",
      "scale": "Full 67.5TB / >3B files / 104.2M repos; dedup 32.1TB; train-full ~900B tokens. Hub metadata usedStorage ~427 GB. size_categories unknown.",
      "domain": "code pretraining; multilingual source code; Software Heritage",
      "format": "Parquet metadata per language config (600+); contents fetched via blob_id from s3://softwareheritage/content/",
      "license": "other / per-file SPDX; ToU requires original license compliance + SWH LLM principles",
      "novelty": "High (largest open SWH-backed code dump with governance; still foundational vs newer niche dumps)",
      "purpose": "Open reproducible Code LLM pretraining corpus with license/provenance metadata and developer opt-out",
      "used_for": "StarCoder2 3B/7B/15B (paper). Hub 6.3K downloads / 626 likes at check; paper 160 upvotes.",
      "bias_dist": "Permissive-license skew; some langs rarely permissive (SQL/Batchfile/TS ~4% vs ~10% avg). Longer files more often permissive. Comment toxicity risk. HTML may not be WCAG-compliant.",
      "is_static": "No (periodic opt-out updates; lastModified 2026-08-03)",
      "processed": "Unknown",
      "author_dist": "BigCode collaboration (Lozhkov, Li, Ben Allal, von Werra, de Vries et al.; ServiceNow/HF/many labs). Source producers: GitHub users with unique repos through 2023-09-06.",
      "sample_size": "No official train/test split (near-dup leakage risk). Language configs e.g. Python, Dockerfile, default=all.",
      "time_period": "SWH graph 2023-09-06; GH Archive to 2023-09-14. Paper 2024-02-29. Hub created 2024-02-26; lastModified 2026-08-03 (v2.2.0 opt-out purge). Discord mid 1478777064818479185 (2026-03-04).",
      "idea_quality": "High",
      "long_context": "Mixed (file-level; train-* group by repo for full-repo context).",
      "text_quality": "Exact-dedup + near-dedup (~40% of permissive files were near-dups). Filters: no binary/empty/undecodable; drop >10MB. Vendor/generated flags via go-enry. Train-* variants add heuristics + repo grouping.",
      "language_dist": "658 langs (card); paper 619. High-resource langs (C, JS, etc.) overrepresented vs niche (Julia, Scala). Natural language in comments mostly English.",
      "modality_dist": "Source code / text. No images.",
      "relevant_links": "https://arxiv.org/abs/2402.19173; https://huggingface.co/papers/2402.19173; https://huggingface.co/datasets/bigcode/the-stack-v2; https://www.softwareheritage.org/",
      "dataset_location": "https://huggingface.co/datasets/bigcode/the-stack-v2",
      "collection_method": "Download (gated) + optional SWH S3",
      "intermediate_steps": "Yes (SWH traversal; GH Archive metadata; ScanCode license detect; permissive filter; near-dedup; opt-out removals v2.0.1–v2.2.0).",
      "text_conversion_ease": "Metadata load_dataset works after gated ToU. Bulk contents need SWH/INRIA agreement + AWS credentials. Streaming supported."
    }
  },
  "enrichment": {
    "hf": {
      "id": "bigcode/the-stack-v2",
      "type": "dataset",
      "arxiv": [
        "2402.19173",
        "2107.03374",
        "2207.14157"
      ],
      "gated": true,
      "likes": 638,
      "tasks": [
        "text-generation"
      ],
      "author": "bigcode",
      "created": "2024-02-26",
      "license": "other",
      "modified": "2026-08-03",
      "downloads": 6031,
      "languages": [
        "code"
      ],
      "fetched_at": "2026-10-03T14:38:06.704Z"
    }
  },
  "enriched_at": "2026-10-03T14:38:06.748Z",
  "license_class": "other",
  "langs": [
    "code"
  ],
  "modalities": [
    "code",
    "text"
  ],
  "size_class": null,
  "provenance": {
    "legacy_dataset_id": 411
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T14:38:06.748Z",
  "page": "https://papers.projxon.ai/entries/1179",
  "markdown": "https://papers.projxon.ai/entries/1179.md",
  "api": "https://papers.projxon.ai/api/entries/1179",
  "relations": [
    {
      "relation": "related",
      "direction": "out",
      "note": "shared link",
      "via": "shared-link",
      "entry": {
        "id": 101,
        "kind": "dataset",
        "title": "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.",
        "url": "https://huggingface.co/datasets/nick007x/github-code-2025",
        "authors": [
          "Nick Saga (nick007x)"
        ],
        "tags": [],
        "venue": "Hugging Face",
        "source": "huggingface",
        "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.",
        "published_year": 2025,
        "added_at": "2026-07-17T20:18:03.659Z",
        "has_dataset_profile": true,
        "license_class": "unknown",
        "langs": [
          "code"
        ],
        "modalities": [
          "text"
        ],
        "size_class": "100M<n<1B",
        "citation_count": null,
        "downloads": 2509,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/101",
        "markdown": "https://papers.projxon.ai/entries/101.md",
        "api": "https://papers.projxon.ai/api/entries/101"
      }
    },
    {
      "relation": "related",
      "direction": "out",
      "note": "shared link",
      "via": "shared-link",
      "entry": {
        "id": 154,
        "kind": "dataset",
        "title": "swallowcode2",
        "summary": "[SwallowCode-v1](https://huggingface.co/datasets/tokyotech-llm/swallow-code) was a high-quality Python code dataset generated through an LLM-based rewriting pipeline.",
        "url": "https://huggingface.co/datasets/tokyotech-llm/swallow-code-v2",
        "authors": [
          "tokyotech-llm"
        ],
        "tags": [
          "hf-dataset-language-modeling"
        ],
        "venue": "tokyotech-llm",
        "source": "huggingface",
        "license": "apache-2.0",
        "published_year": 2025,
        "added_at": "2026-07-17T19:59:21.716Z",
        "has_dataset_profile": true,
        "license_class": "permissive",
        "langs": [
          "en"
        ],
        "modalities": [
          "text"
        ],
        "size_class": "100M<n<1B",
        "citation_count": null,
        "downloads": 5638,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/154",
        "markdown": "https://papers.projxon.ai/entries/154.md",
        "api": "https://papers.projxon.ai/api/entries/154"
      }
    },
    {
      "relation": "related",
      "direction": "out",
      "note": "shared link",
      "via": "shared-link",
      "entry": {
        "id": 229,
        "kind": "dataset",
        "title": "github-top-code",
        "summary": "A curated dataset of 1.3M+ source code files from **GitHub's top ranked developers (2015-2025)**.",
        "url": "https://huggingface.co/datasets/ronantakizawa/github-top-code",
        "authors": [
          "ronantakizawa"
        ],
        "tags": [
          "hf-dataset-language-modeling"
        ],
        "venue": "ronantakizawa",
        "source": "huggingface",
        "license": "mit",
        "published_year": 2026,
        "added_at": "2026-07-17T20:00:39.260Z",
        "has_dataset_profile": true,
        "license_class": "permissive",
        "langs": [
          "code"
        ],
        "modalities": [
          "text"
        ],
        "size_class": "1M<n<10M",
        "citation_count": null,
        "downloads": 2689,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/229",
        "markdown": "https://papers.projxon.ai/entries/229.md",
        "api": "https://papers.projxon.ai/api/entries/229"
      }
    },
    {
      "relation": "related",
      "direction": "out",
      "note": "shared link",
      "via": "shared-link",
      "entry": {
        "id": 232,
        "kind": "dataset",
        "title": "The Stack v2",
        "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.",
        "url": "https://huggingface.co/datasets/bigcode/the-stack-v2",
        "authors": [
          "BigCode Project (collaboration including Hugging Face",
          "ServiceNow",
          "INRIA",
          "Software Heritage)"
        ],
        "tags": [],
        "venue": "BigCode Project / Software Heritage / INRIA",
        "source": "huggingface",
        "license": "Various (per-repository licenses; must abide by original license terms)",
        "published_year": 2024,
        "added_at": "2026-07-17T20:18:03.735Z",
        "has_dataset_profile": true,
        "license_class": "other",
        "langs": [
          "code"
        ],
        "modalities": [
          "text"
        ],
        "size_class": null,
        "citation_count": null,
        "downloads": 6031,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/232",
        "markdown": "https://papers.projxon.ai/entries/232.md",
        "api": "https://papers.projxon.ai/api/entries/232"
      }
    }
  ],
  "duplicates": [],
  "similar": [
    {
      "id": 1035,
      "kind": "dataset",
      "title": "UltraData-Code (OpenBMB L0–L3 tiered code pretrain: L2 algorithmic + L3 synthesis)",
      "summary": "OpenBMB UltraData-Code implements the UltraData L0–L4 tiered code-data pipeline. L0 archives ~192M public GitHub default-branch revisions; L1 filters/normalizes/near-dedups; Hub currently releases L2 (~400B tokens, algorithmically selected natural code) and L3 (~150B tokens, task-oriented synthesis: task/analysis/solution/test) across 11 languages (cpp,cs,go,java,js,php,py,r,rb,rust,sh). L0/L1 not published as Hub configs. Viewer: 348,083,481 rows (L2 266,878,376 × 7 cols; L3 81,205,105 × 10 cols); usedStorage ~1.216 TB / 1132.5 GiB across 1131 siblings. L2 schema: uuid, repo_name, relative_path, content, category, algo_rel_score, quality_score. L3 schema: uuid, content, content_format, raw_content, task, analysis, solution, test, full_content, full_content_format. 10B-token CPT of a 1B model: L2 vs L1 +7.80 EvalPlus / +5.13 MultiPL-E; L2+L3 mix vs L2-only +8.42 / +8.07. Companion L2 Classifier uses Qwen3-Embedding-0.6B.",
      "url": "https://huggingface.co/datasets/openbmb/UltraData-Code",
      "authors": [
        "OpenBMB",
        "dataset citation: Chengying Tu",
        "Hengyu Zhao",
        "Shuaikang Xue",
        "Zhongming Qu",
        "Jihao Zhou",
        "Xinle Lin",
        "Junshao Guo",
        "Zixuan Fu",
        "Qiang Ma",
        "Jie Zhou",
        "Chaojun Xiao",
        "Hongfei Yan",
        "Yudong Wang",
        "Xu Han",
        "Zhiyuan Liu",
        "Maosong Sun",
        "framework paper 2602.09003: Yudong Wang",
        "Chen Zhao",
        "Chuyue Zhou",
        "Hongya Lyu",
        "Yi Yi",
        "Yingjiao Wang",
        "Zhi Zheng",
        "Yuzhou Zhang",
        "Maosong Sun (Tsinghua / ModelBest)"
      ],
      "tags": [
        "ultradata-code",
        "ultradata",
        "openbmb",
        "code-pretraining",
        "algorithmic-code",
        "synthetic-data",
        "l2",
        "l3",
        "minicpm5",
        "apache-2.0",
        "github-derived",
        "parquet"
      ],
      "venue": "Hugging Face / OpenBMB",
      "source": "huggingface",
      "license": "Apache-2.0 (plus upstream per-repository licenses; card forbids unauthorized unchanged redistribution)",
      "published_year": 2026,
      "added_at": "2026-09-24T12:52:19.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en",
        "zh"
      ],
      "modalities": [
        "tabular",
        "text"
      ],
      "size_class": "100M<n<1B",
      "citation_count": null,
      "downloads": 44061,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1035",
      "markdown": "https://papers.projxon.ai/entries/1035.md",
      "api": "https://papers.projxon.ai/api/entries/1035"
    },
    {
      "id": 777,
      "kind": "paper",
      "title": "BigO(Bench): Can LLMs Generate Code with Controlled Time and Space Complexity?",
      "summary": "Introduces BigO(Bench), a benchmark for evaluating LLMs on understanding and generating code with specified time/space complexity. Includes tooling to infer algorithmic complexity of any Python function from profiling, plus 3,105 coding problems and 1,190,250 solutions from Code Contests annotated with inferred complexity labels, runtime, and memory footprints across input sizes. Finds token-space reasoning models are unrivaled at code generation but not at complexity understanding, hinting they may not generalize to tasks with no training-time reward.",
      "url": "https://arxiv.org/abs/2503.15242",
      "authors": [
        "Pierre Chambon",
        "Baptiste Roziere",
        "Benoit Sagot",
        "Gabriel Synnaeve"
      ],
      "tags": [
        "benchmark",
        "code-complexity",
        "code-generation",
        "big-o",
        "code-contests"
      ],
      "venue": "arXiv",
      "source": "arxiv",
      "license": "",
      "published_year": 2025,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 11,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/777",
      "markdown": "https://papers.projxon.ai/entries/777.md",
      "api": "https://papers.projxon.ai/api/entries/777"
    },
    {
      "id": 87,
      "kind": "dataset",
      "title": "Nemotron-Pretraining-Code-v1",
      "summary": "Nemotron-Pretraining-Code-v1 is a large-scale curated source-code dataset mined from GitHub, processed through multi-stage filtering including license-based removal (BigCode-inspired, with a stricter license set), exact and fuzzy deduplication, and heuristic quality filters from OpenCoder, with all files annotated with metadata to guide filtering. It additionally includes large-scale synthetic code question-answer data in 11 programming languages generated by prompting LLMs (Mixtral-8x22B) on curated code snippets, solving generated problems, and filtering for correctness, producing diverse natural-language-code pairs for pretraining.",
      "url": "https://huggingface.co/datasets/nvidia/Nemotron-Pretraining-Code-v1",
      "authors": [
        "NVIDIA"
      ],
      "tags": [],
      "venue": "Hugging Face / NVIDIA",
      "source": "huggingface",
      "license": "NVIDIA Data Agreement for Model Training (model training use only)",
      "published_year": 2025,
      "added_at": "2026-07-17T20:18:03.651Z",
      "has_dataset_profile": false,
      "license_class": "restricted",
      "langs": [
        "code",
        "multilingual"
      ],
      "modalities": [
        "text"
      ],
      "size_class": "100M<n<1B",
      "citation_count": null,
      "downloads": 2614,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/87",
      "markdown": "https://papers.projxon.ai/entries/87.md",
      "api": "https://papers.projxon.ai/api/entries/87"
    },
    {
      "id": 92,
      "kind": "dataset",
      "title": "The Stack",
      "summary": "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.",
      "url": "https://huggingface.co/datasets/bigcode/the-stack",
      "authors": [
        "BigCode Project"
      ],
      "tags": [],
      "venue": "Hugging Face / BigCode",
      "source": "huggingface",
      "license": "Various permissive open-source licenses (193 in v1.1); each file's original license must be respected; opt-out supported",
      "published_year": 2022,
      "added_at": "2026-07-17T20:18:03.654Z",
      "has_dataset_profile": true,
      "license_class": "permissive",
      "langs": [
        "code"
      ],
      "modalities": [
        "code",
        "text"
      ],
      "size_class": "100M<n<1B",
      "citation_count": null,
      "downloads": 9409,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/92",
      "markdown": "https://papers.projxon.ai/entries/92.md",
      "api": "https://papers.projxon.ai/api/entries/92"
    },
    {
      "id": 1245,
      "kind": "paper",
      "title": "Cross-Benchmark Transfer from RL on Agentic Coding Tasks",
      "summary": "Post-trains Kimi K2.7 Code (1T params, 32B active, open-weight MoE) with RL alone on 1,700 expert-built agentic coding tasks: 1,000 repository tasks graded by hidden fail-to-pass + pass-to-pass tests of existing behavior, 700 terminal tasks graded by expert-written hidden verifiers. Reward = fraction of target checks passed, zeroed if any pass-to-pass test fails. One epoch of GSPO on a rank-32 LoRA adapter raises pass@1 on all six external benchmarks across three agent harnesses: SWE-Bench Pro 60.1->64.8, DeepSWE 31.0->43.4, Terminal-Bench 2.1 67.4->82.0, Terminal-Bench 3 1.4->12.1, Terminal-Bench 4 0.0->7.6, SWE-Marathon 5.0->25.0. Gains statistically significant (p<0.001 pooled; p=0.004 on sets released after training data collection), hold under harnesses never used in training, and median agent trajectories are 24-35% shorter. Evidence that RL-taught agentic coding skills (avoiding dropped requirements, shallow testing, behavior breakage, unchecked assumptions) transfer beyond the training distribution.",
      "url": "https://arxiv.org/abs/2610.00890",
      "authors": [
        "Sushant Mehta",
        "Logan Ritchie",
        "Edwin Chen"
      ],
      "tags": [
        "rl-post-training",
        "coding-agents",
        "kimi-k2.7-code",
        "gspo",
        "cross-benchmark-transfer",
        "agentic-coding",
        "verifiers"
      ],
      "venue": "arXiv 2610.00890 [cs.LG/cs.AI/cs.SE], submitted 1 Oct 2026, preprint",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-04T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1245",
      "markdown": "https://papers.projxon.ai/entries/1245.md",
      "api": "https://papers.projxon.ai/api/entries/1245"
    },
    {
      "id": 1132,
      "kind": "dataset",
      "title": "MiMo-V2.6-RL-harbor-code",
      "summary": "RL training/evaluation of software-engineering agents",
      "url": "https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-code",
      "authors": [
        "FineEnvs"
      ],
      "tags": [],
      "venue": "",
      "source": "",
      "license": "Apache-2.0 (source); conversion license unverified",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": true,
      "license_class": "permissive",
      "langs": [
        "en",
        "zh"
      ],
      "modalities": [],
      "size_class": "1K<n<10K",
      "citation_count": null,
      "downloads": 4986,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1132",
      "markdown": "https://papers.projxon.ai/entries/1132.md",
      "api": "https://papers.projxon.ai/api/entries/1132"
    }
  ]
}
