Dataset Viewer
Auto-converted to Parquet Duplicate
repo_path
stringlengths
5
95
repo_id
int64
1.45k
1.02B
commit_id
stringlengths
40
40
github_metadata
dict
num_files
int64
5
20.6k
files
listlengths
5
20.6k
estimated_tokens
float64
16.4k
1.04M
selection_metadata
dict
ARBML/dar
545,122,036
df8020b96a47a482740f8ae355e7afcbb4794804
{"branch":"main","commit_count":143,"repo_created_at":"2022-10-03T20:27:30.000Z","is_fork":false,"is(...TRUNCATED)
285
[{"content_id":"648f6629c66b1bc6470f07666e5a505ba508f8a7","content":"import os\nimport pandas as pd (...TRUNCATED)
120,946.99836
{"input_num_files":286,"input_estimated_tokens":120968.93981183185,"source_file_count":204,"source_t(...TRUNCATED)
AndrewDWhite/GalaxyGenericImporterPlugin
263,173,088
dc839507bf4b1f31a717e2220af4191f39eaa705
{"branch":"master","commit_count":474,"repo_created_at":"2020-05-11T22:29:54.000Z","is_fork":false,"(...TRUNCATED)
22
[{"content_id":"c6c3db330f7c807c6253e5acdf7874929efcb9fb","content":"import sys\r\n\r\nfrom galaxy.a(...TRUNCATED)
34,508.402015
{"input_num_files":23,"input_estimated_tokens":35655.173338433044,"source_file_count":16,"source_tok(...TRUNCATED)
BoutrosLaboratory/bamql
27,464,791
d6e36af1bfc436cb6bb25eb8f55c083b2b301691
{"branch":"master","commit_count":412,"repo_created_at":"2014-12-03T02:19:52.000Z","is_fork":false,"(...TRUNCATED)
63
[{"content_id":"d820a6561136df1ccde5d0def7c2e8284a925d19","content":"/*\n * Copyright 2015 <NAME>. F(...TRUNCATED)
111,767.498302
{"input_num_files":66,"input_estimated_tokens":111984.61088303255,"source_file_count":53,"source_tok(...TRUNCATED)
COMBINE-lab/terminus
237,299,378
54c904eee9a5793738740e2cb5533dfc36f3c5c0
{"branch":"master","commit_count":56,"repo_created_at":"2020-01-30T20:28:47.000Z","is_fork":false,"i(...TRUNCATED)
18
[{"content_id":"7728a495334e868e06a90103c2f07e066ceb15a8","content":"{\n \"salmon_version\": \"1.(...TRUNCATED)
29,561.392573
{"input_num_files":18,"input_estimated_tokens":29561.392572576282,"source_file_count":6,"source_toke(...TRUNCATED)
Experience-Monks/webgl-react-boilerplate
241,253,586
bc25adca8f7c38e0482f7412bedd7c90b1bebb52
{"branch":"develop","commit_count":122,"repo_created_at":"2020-02-18T02:23:17.000Z","is_fork":false,(...TRUNCATED)
75
[{"content_id":"66dd05a1eaf757845795f644ded48665d0ee08c1","content":"import BaseScene from '../base/(...TRUNCATED)
37,912.432675
{"input_num_files":75,"input_estimated_tokens":37912.43267492631,"source_file_count":67,"source_toke(...TRUNCATED)
GerbilSoft/mcrecover
62,972,334
6d87d5fc626d62dfa80bf4f5319a7c581348db32
{"branch":"master","commit_count":1595,"repo_created_at":"2016-07-09T22:55:46.000Z","is_fork":false,(...TRUNCATED)
252
[{"content_id":"ac7478dbbe32879c2215f8d1c78ebd2d322577c3","content":"# Microsoft Visual C++\nIF(MSVC(...TRUNCATED)
796,584.496536
{"input_num_files":253,"input_estimated_tokens":796654.0218610433,"source_file_count":219,"source_to(...TRUNCATED)
OfflineIMAP/offlineimap3
292,356,422
db347452273bb0f1b1a8ea952f6fb46cf95fedbf
{"branch":"master","commit_count":2853,"repo_created_at":"2020-09-02T17:59:49.000Z","is_fork":false,(...TRUNCATED)
21
[{"content_id":"b4158d9a382a9b64fc92103886b63fd2309aa084","content":"Upstream status (`master` branc(...TRUNCATED)
61,013.883453
{"input_num_files":21,"input_estimated_tokens":61013.88345260036,"source_file_count":14,"source_toke(...TRUNCATED)
SciSharp/Gym.NET
194,005,104
666746dd9a98e4eb971eec7f7b183b3fb2239b2e
{"branch":"master","commit_count":113,"repo_created_at":"2019-06-27T01:59:27.000Z","is_fork":false,"(...TRUNCATED)
72
[{"content_id":"d3a2d2d0207aaed465ef9cade23dd9a5ee33efd0","content":"using System;\nusing System.(...TRUNCATED)
48,974.336864
{"input_num_files":72,"input_estimated_tokens":48974.33686403256,"source_file_count":62,"source_toke(...TRUNCATED)
TimvanScherpenzeel/spars
174,217,544
2cdecf58b5355d329bd47b2b8fbe1fa03dc8817a
{"branch":"master","commit_count":625,"repo_created_at":"2019-03-06T20:40:13.000Z","is_fork":false,"(...TRUNCATED)
91
[{"content_id":"b95f4e20e4ca264874127459dbc6b27ab0af8adc","content":"{\n \"compilerOptions\": {\n (...TRUNCATED)
48,125.518971
{"input_num_files":92,"input_estimated_tokens":48160.67816523525,"source_file_count":87,"source_toke(...TRUNCATED)
UOC/java-lti-1.3
225,844,458
e6736166d415f8ab3ce12e92226e3b3e06e6ffe9
{"branch":"master","commit_count":205,"repo_created_at":"2019-12-04T10:51:52.000Z","is_fork":false,"(...TRUNCATED)
71
[{"content_id":"3aa307695f3ae08bd3c4645db7dfa13b835f0a78","content":"package edu.uoc.elc.lti.tool;\n(...TRUNCATED)
23,722.705456
{"input_num_files":71,"input_estimated_tokens":23722.705455711603,"source_file_count":63,"source_tok(...TRUNCATED)
End of preview. Expand in Data Studio

Stack v3.1 subsampled

Extraction and upload are in progress. Available Parquet files are a partial dataset. Wait until manifest.json reports status: complete before using the complete subset.

A deterministic subset of HuggingFaceCode/stack-v3-train at revision 1f61b735bc0a5698345ce2196730f24bfa467f33. Every qualifying repository row is retained.

The earlier sample projected about 44.2 billion estimated tokens. Final counts will replace this estimate when extraction and verification finish.

Selection

All conditions apply after removing screened files:

  • Estimated repository length between 16,384 and 1,048,576, inclusive.
  • GitHub stars greater than 10 (at least 11), using the source snapshot's metadata.
  • At least one retained file matching the test or CI path heuristics.
  • At least four retained source files.
  • Source files account for at least 50% of estimated repository tokens.
  • No single retained file accounts for more than 50% of estimated repository tokens.

The path filter removes vendor/dependency directories, selected generated/build paths, minified JavaScript/CSS, source maps, lockfiles and generated protobuf filenames. Root support files and CI files are exempt from the vendor flag exclusion; explicit excluded paths still apply. Exact regular expressions are published in file_flags. Source-language classification and all thresholds are in selection_config.json.

Token estimates sum each retained file's upstream size_bytes multiplied by its language's published aggregate token/byte ratio, from the source dataset's Qwen/Qwen3-Coder-Next-Base statistics. No tokenizer was run on these repositories. Serialization, separators, paths and training wrappers are not counted; actual model-token lengths can fall outside this estimated range.

Format and use

Each row preserves repo_path, repo_id, commit_id, github_metadata and the retained files list. num_files is updated. Original file order, text and file metadata, including license fields, are retained. estimated_tokens is a floating-point proxy count. selection_metadata records input file/token counts, source composition, largest-file and removed-token fractions, test/CI/manifest flags, and the original shard/row.

from datasets import load_dataset

data = load_dataset("storagestuffnobody/stack-v3.1-subsampled", split="train", streaming=True)
repository = next(iter(data))
for file in repository["files"]:
    print(file["file_path"], file["content"][:100])

The Parquet files can also be read with PyArrow. statistics.json contains language and length distributions. manifest.json contains every Parquet file's SHA256, size and row count. source_manifest.json identifies all pinned upstream shards and their Hub hashes.

To reproduce, download that upstream revision, then run the supplied helper with an empty work directory:

python reproduction/reproduce_stack_v3_subset.py --source-dir /path/to/source-snapshot --work-dir /path/to/new-work --workers 2

The extraction requires Python, NumPy, PyArrow and PyYAML. It scans several TB of compressed source data; choose worker and memory limits for available resources. The frozen extractor verifies eligibility and ordered content hashes after each Parquet write. The helper generates a local plan and a resumable command. Its optional --verify-source-hashes checks every upstream SHA256 before starting.

Interpretation and attribution

Stars and test/CI paths are heuristics, not measured code quality, successful builds or passing tests. No extra content classifier, family/owner deduplication, language quota, license gate, dependency validation, training-window construction or evaluation holdout is added. Removing files may leave incomplete dependencies. This subset has not been evaluated for downstream model quality or benchmark contamination.

This dataset derives from The Stack v3 by Hugging Face / BigCode. See the source dataset card for collection, upstream filtering, licensing and removal information, and Am I in The Stack? for upstream removal requests. Database attribution follows ODC-By 1.0; individual files retain their original license metadata. The included GitHub Linguist taxonomy retains its MIT license.

Downloads last month
184