Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: FileSystemError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
repo_path string | repo_id int64 | commit_id string | github_metadata dict | num_files int64 | files list | estimated_tokens float64 | selection_metadata dict |
|---|---|---|---|---|---|---|---|
Bahn-X/swift-composable-navigator | 308,578,832 | 69dbc2ab36dffa1e48d1b7f87a03db4767162538 | {"branch":"main","commit_count":118,"repo_created_at":"2020-10-30T09:12:04.000Z","is_fork":false,"is(...TRUNCATED) | 117 | [{"content_id":"43cfd29199c99e7370a37764e94328b0cb3fdae6","content":"import ComposableNavigator\nimp(...TRUNCATED) | 65,559.09726 | {"input_num_files":120,"input_estimated_tokens":65906.096626576,"source_file_count":105,"source_toke(...TRUNCATED) |
CassioML/cassio | 642,761,201 | 45b53b2144bfbcead298bd776701ffc849019e56 | {"branch":"main","commit_count":191,"repo_created_at":"2023-05-19T09:36:07.000Z","is_fork":false,"is(...TRUNCATED) | 57 | [{"content_id":"2825220632299a342b2363af3fbe9eebbf24788e","content":"export TEST_DB_MODE=\"ASTRA_DB\(...TRUNCATED) | 75,027.402209 | {"input_num_files":58,"input_estimated_tokens":75232.27721458532,"source_file_count":50,"source_toke(...TRUNCATED) |
DeflatedPickle/Quiver | 84,999,026 | 7f7a2f7f2f309d019bb9fa8a983f8f3991bf83df | {"branch":"rewrite","commit_count":201,"repo_created_at":"2017-03-14T21:29:34.000Z","is_fork":false,(...TRUNCATED) | 130 | [{"content_id":"588a56aef18958f3bce4572f211a1fcb4bc27def","content":"id=tree_viewer\nauthor=Deflated(...TRUNCATED) | 48,032.752805 | {"input_num_files":133,"input_estimated_tokens":48359.65037638459,"source_file_count":93,"source_tok(...TRUNCATED) |
HewlettPackard/hpe-oneview-hubot | 73,227,722 | a5a714d1f9c67eb623945b86b636480e9317868a | {"branch":"master","commit_count":204,"repo_created_at":"2016-11-08T21:16:51.000Z","is_fork":false,"(...TRUNCATED) | 93 | [{"content_id":"650479b4cc1ab5ff5fd810de267e6a455e515f21","content":"/*\n(c) Copyright 2016-2017 Hew(...TRUNCATED) | 125,336.037694 | {"input_num_files":94,"input_estimated_tokens":125369.87511417833,"source_file_count":89,"source_tok(...TRUNCATED) |
Journaly/journaly | 240,991,394 | 866fc1da5db3346abf2e4f0f0b0fddf74518f581 | {"branch":"master","commit_count":3328,"repo_created_at":"2020-02-17T00:48:38.000Z","is_fork":false,(...TRUNCATED) | 545 | [{"content_id":"a907fbd31474d73076358791940140f48dc1df37","content":"import React from 'react'\nimpo(...TRUNCATED) | 376,648.886814 | {"input_num_files":552,"input_estimated_tokens":377524.33224191004,"source_file_count":367,"source_t(...TRUNCATED) |
LayerTwo-Labs/drivechain_launcher | 683,827,319 | f29a95098158aee8599ef2250f0d89b7987783b2 | {"branch":"main","commit_count":382,"repo_created_at":"2023-08-27T20:25:53.000Z","is_fork":false,"is(...TRUNCATED) | 45 | [{"content_id":"eca8326cf4faf05d5e58cae46ba881514fca2be6","content":"# Drivechain Launcher\n\n🚧 U(...TRUNCATED) | 62,828.853508 | {"input_num_files":47,"input_estimated_tokens":63625.59839599984,"source_file_count":41,"source_toke(...TRUNCATED) |
Tetrax-10/Nord-Spotify | 497,546,714 | 2dbfc7d63db5844e80faa22aeb48f16bdcc52a40 | {"branch":"master","commit_count":518,"repo_created_at":"2022-05-29T09:39:46.000Z","is_fork":false,"(...TRUNCATED) | 166 | [{"content_id":"ff53c5ce2a990da67dddf84f707a56758b9b64ee","content":"dev\ndist","size_bytes":8,"file(...TRUNCATED) | 73,388.589795 | {"input_num_files":170,"input_estimated_tokens":74399.05810059624,"source_file_count":154,"source_to(...TRUNCATED) |
UMAprotocol/emp-tools | 272,158,030 | 4a6908308a98f7b674a32d9cd1c384ebf55e41a6 | {"branch":"master","commit_count":243,"repo_created_at":"2020-06-14T07:59:27.000Z","is_fork":false,"(...TRUNCATED) | 87 | [{"content_id":"0ba1cff12944c046feb006c4ce5ef2f67ec61a38","content":"import { utils } from \"ethers\(...TRUNCATED) | 99,733.442102 | {"input_num_files":89,"input_estimated_tokens":99781.18636712863,"source_file_count":85,"source_toke(...TRUNCATED) |
WIAS-PDELib/VoronoiFVM.jl | 180,432,105 | 29ab2449372a5be1f6ca4dbcea7750dcf7868360 | {"branch":"master","commit_count":1105,"repo_created_at":"2019-04-09T19:03:12.000Z","is_fork":false,(...TRUNCATED) | 125 | [{"content_id":"1d5115809772e49a4d0c4a0625ce900899e2febf","content":"module test_transientsol\nusing(...TRUNCATED) | 437,456.730222 | {"input_num_files":126,"input_estimated_tokens":437486.60231937567,"source_file_count":94,"source_to(...TRUNCATED) |
YAPP-admin/attendance-android | 453,919,506 | 0698100b9e301bdeeed8aa8f0cc7ce7c669b55e7 | {"branch":"develop","commit_count":215,"repo_created_at":"2022-01-31T07:49:19.000Z","is_fork":false,(...TRUNCATED) | 227 | [{"content_id":"eaf47952e15ba4670bc3073f4eda98a8fa0440dc","content":"<?xml version=\"1.0\" encoding=(...TRUNCATED) | 122,185.902243 | {"input_num_files":230,"input_estimated_tokens":122795.06063300939,"source_file_count":190,"source_t(...TRUNCATED) |
Stack v3.1 16k–1M repository subset — Part 2
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 within this dataset's source-shard scope is retained.
This is Part 2. It contains the remaining 3,200 source shards
(upstream indices 4992–8191).
Part 1 is frozen at
ea897b29c28e2b6dd993987e36af228a3e34986c with 312 Parquet files, 210,532 repositories
and 27.837749 billion estimated tokens. Its files were left unchanged.
The two parts cover disjoint source-shard ranges and together cover all 8,192 upstream shards.
part1_reference.json records the boundary and pinned Part 1 totals.
The remaining 200 Parquet partitions are being extracted and uploaded. Final Part 2 and combined counts will be published after verification.
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-part2", 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
- -