s0duku commited on
Commit
d5a1643
·
verified ·
1 Parent(s): f764cdf

Add root dataset metadata: README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -0
README.md ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # the-stack-go
2
+
3
+ This dataset is a star-filtered export of The Stack v2. The repository snapshot is split into two coordinated datasets:
4
+
5
+ - `repo-meta/`: repository and file metadata, grouped into 64 source shards.
6
+ - `repo-contents/`: raw file bytes, grouped by the same 64 source shards and further split into Parquet files.
7
+
8
+ For a file, read `blob_id` from `repo-meta/<shard>/repositories.parquet` and find the matching row in `repo-contents/<shard>/*.parquet`. The join key is **`(shard, blob_id)`**. The shard component is required because the downloader deduplicates blobs within each source shard; the same blob can occur in more than one shard.
9
+
10
+ The metadata records preserve the repository name, revision, path, language, license and the file's `blob_id`. Content rows contain `blob_id`, raw `content`, actual length, indexed length and length comparison status. `content` is stored as bytes.
11
+
12
+ The repository root contains a `.gitignore` that excludes generated `/samples/` output. Training samples can be generated locally without accidentally becoming part of the dataset upload.
13
+
14
+ The export uses the strict snapshot filter `star_events_count > 10`. This is the Stack v2 index's `star_events_count`, not a live GitHub star count. Source licenses and removal requests remain governed by the original dataset and upstream content providers.
15
+
16
+ ## Reproducibility project
17
+
18
+ The `stackgo/` directory is the canonical source project used to build and consume this dataset. It contains the index downloader, strict star filter, Software Heritage content downloader, repository scanner, `stackbuild` sample builder, and tests. Run it from that directory; it is developed in place rather than copied as an export snapshot.