The dataset viewer should be available soon. Please retry later.
The Stack v2 — materialized source code
Upstream dataset:
bigcode/the-stack-v2
Exact upstream commit:
e565caa3a78c2423bd374333a472b049eb090e47
Primary source-content endpoint:
https://softwareheritage.s3.amazonaws.com/content/{blob_id}
Configurations
TypeScriptSwiftRubyRustGoShellJupyter_NotebookHTMLPythonJavaJavaScriptCC++C-SharpPHPSQLMarkdown
Added columns
content: decoded source contentdownload_error: null on successful materialization
An isolated missing or unavailable Software Heritage object does not stop
the full materialization. Its original Stack v2 metadata row is retained
with content = null.
Detailed failure records are stored under:
_failures/<language>/
New bucketed failure records are stored under _failures_sharded/.
Objects recovered through the Software Heritage archive API after an S3 failure are recorded under:
_recoveries/<language>/
New bucketed recovery records are stored under _recoveries_sharded/.
Reproducibility
All upstream metadata comes from the exact commit above.
Successful source blobs are SHA-1 verified against their blob_id.
Machine-readable source provenance is stored in:
provenance.json
Individual materializer run configurations are stored under:
_runs/
Per-language or per-partition checkpoints are stored under:
_state/
Legacy Parquet shards remain at data/<language>/. New shards are written to
data_sharded/<language>/<partition>/<shard-range>/, with at most
1000 files in each leaf directory. Configurations retain both
layouts unless a language was explicitly reset after an integrity audit.
This run distributes work across 4 worker(s). Large-language
partition counts are {"C": 2, "C++": 2, "C-Sharp": 2, "Java": 3, "JavaScript": 3, "Jupyter_Notebook": 3, "Markdown": 2, "PHP": 2, "Python": 2}.
Partitioned output files and audit records include a
part-<index>-of-<count> tag, so workers can commit concurrently without
overwriting one another.
Known default languages are assigned using both raw bytes and file counts from
the language_stats.csv snapshot identified in each run manifest. This balances
content-transfer volume and the number of individual Software Heritage HTTP
requests while preserving the configured language order within each worker.
Partition layouts are locked under _partitioning/. Do not change a
language's partition count after its first run; choose a new destination repo
if a different layout is required.
Parquet shards are uploaded in batches of up to 16. Each batch, its advanced checkpoint, and its associated failure/recovery audit files are committed atomically. Hub uploads use 2 concurrent file transfer(s) per worker and finite HTTP timeouts so a stalled transfer can be retried by the worker launcher.
- Downloads last month
- 7,612