ahnaftaz commited on
Commit
6883f90
·
verified ·
1 Parent(s): 62c4c3d

Add public dataset card for Locus Commit Pool v1

Browse files
Files changed (1) hide show
  1. README.md +211 -0
README.md ADDED
@@ -0,0 +1,211 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: Locus Commit Pool v1
3
+ task_categories:
4
+ - text-generation
5
+ tags:
6
+ - code
7
+ - git
8
+ - commits
9
+ - software-engineering
10
+ - pretraining
11
+ - multi-file
12
+ - jsonl
13
+ license: other
14
+ ---
15
+
16
+ <div align="center">
17
+
18
+ # Locus Commit Pool v1
19
+
20
+ ### Native Git history, preserved as replayable software changes
21
+
22
+ [![Snapshot](https://img.shields.io/badge/snapshot-2026--08--17-7257ff?style=for-the-badge)](#snapshot-at-a-glance)
23
+ [![Stored data](https://img.shields.io/badge/stored_data-3.10_TiB-16a085?style=for-the-badge)](#snapshot-at-a-glance)
24
+ [![Format](https://img.shields.io/badge/format-JSONL-2f80ed?style=for-the-badge)](#read-a-document)
25
+ [![Source](https://img.shields.io/badge/source-Native_Git-f05032?style=for-the-badge&logo=git&logoColor=white)](#how-the-pool-was-built)
26
+
27
+ **Commit message · complete selected before-state · unified patches · native object IDs · provenance · experimental labels**
28
+
29
+ </div>
30
+
31
+ Locus Commit Pool v1 is a large evidence pool for studying and training on how real software changes. Each document represents one surviving **single-parent, multi-file Git commit**. It keeps the commit message, the selected files as they existed before the change, the patches that transform them, native Git identities, repository context, verification evidence, and labels intended for later mixture experiments.
32
+
33
+ This is the curated **candidate pool**, not a finished training mixture. The stored labels let downstream work choose languages, repository tiers, change types, test-bearing edits, patch sizes, and other strata without rerunning Git acquisition.
34
+
35
+ > **Important:** source files remain governed by the licences and terms of their original repositories. The dataset wrapper does not grant a blanket licence over the underlying code.
36
+
37
+ ## Snapshot at a glance
38
+
39
+ | | Frozen v1 snapshot |
40
+ |---|---|
41
+ | Stored payload | **3,412,022,183,341 bytes** (3.10 TiB) |
42
+ | Repository objects | **5,169 LFS-backed files**, plus manifests and receipts |
43
+ | Storage layout | Recipe fingerprint → source split → quality band → JSONL shard |
44
+ | History window | Up to the latest **10,000 commits** from each pinned repository head |
45
+ | Commit shape | Single-parent native Git transitions; merge commits are excluded |
46
+ | Document identity | `commit-doc:{repository_id}@{commit_oid}` |
47
+ | Schema | `locus.item/v1` |
48
+ | Run state | Frozen, safely wound down, and resumable from durable private checkpoints |
49
+
50
+ Acquisition stopped before the planned 100,000-repository inventory was exhausted. This snapshot is therefore a substantial partial collection, not a claim that every planned repository was processed.
51
+
52
+ ## What is inside one document?
53
+
54
+ ```text
55
+ commit document
56
+ ├── id stable repository + commit identity
57
+ ├── parents lineage back to the traveling pipeline item
58
+ ├── payload
59
+ │ ├── message original commit message
60
+ │ └── changed_files[]
61
+ │ ├── path + raw path bytes
62
+ │ ├── status + old/new modes
63
+ │ ├── old_oid + new_oid native Git blob identities
64
+ │ ├── before_content selected parent-side file state
65
+ │ ├── unified_patch transformation target
66
+ │ └── numstat
67
+ ├── meta
68
+ │ ├── source manifest position, split, discovery routes
69
+ │ ├── repository pinned head and bounded-history receipt
70
+ │ ├── identity commit, parent, tree, author and time facts
71
+ │ ├── change_summary original/retained file and byte counts
72
+ │ ├── proof reconstruction and replay evidence
73
+ │ └── pipeline_log reason-coded file screening receipts
74
+ ├── annotations
75
+ │ ├── programming_languages
76
+ │ ├── conventional_commit_type
77
+ │ ├── tests_touched
78
+ │ ├── patch_statistics
79
+ │ ├── possible_ai_authorship
80
+ │ ├── commit_quality_score
81
+ │ └── quality_band 01 (highest-ranked repository tier) … 10
82
+ └── provenance clone URL, object IDs and payload SHA-256
83
+ ```
84
+
85
+ Every stored payload receives a canonical SHA-256. Raw path bytes are retained alongside a readable path. Any non-UTF-8 decoding is made visible through `*_lossy` flags rather than being silently hidden.
86
+
87
+ ## Read a document
88
+
89
+ The pool is intentionally sharded. Stream only the objects you need instead of downloading the complete snapshot:
90
+
91
+ ```python
92
+ import json
93
+
94
+ from huggingface_hub import HfFileSystem
95
+
96
+ fs = HfFileSystem()
97
+ path = (
98
+ "datasets/ahnaftaz/locus-commit-pool-v1/"
99
+ "shards/0a582f09ed89/split-07-of-10/band-01/"
100
+ "commit-doc-00000000-c47af23f2af7a413.jsonl"
101
+ )
102
+
103
+ with fs.open(path, "rb") as stream:
104
+ document = json.loads(stream.readline())
105
+
106
+ print(document["id"])
107
+ print(document["payload"]["message"])
108
+ print([change["path"] for change in document["payload"]["changed_files"]])
109
+ ```
110
+
111
+ Shard paths follow this contract:
112
+
113
+ ```text
114
+ shards/<recipe-fingerprint>/<source-split>/<quality-band>/commit-doc-*.jsonl
115
+ ```
116
+
117
+ Keep documents intact during packing. A common training view exposes the message and parent-side file state as context, then applies loss to the patch, but renderer, masking, deduplication, and mixture weights are deliberately downstream decisions.
118
+
119
+ ## How the pool was built
120
+
121
+ The public recipe is intentionally explicit. Operations inside one repository run sequentially; repositories run concurrently.
122
+
123
+ <details>
124
+ <summary><strong>Show the exact pipeline spine</strong></summary>
125
+
126
+ ```python
127
+ Pipeline([
128
+ FetchFrozenReachableTargets(),
129
+ ParallelForEach(
130
+ partition=EachRepositoryTarget(),
131
+ steps=[
132
+ # Pin and enumerate one bounded native Git history.
133
+ DownloadCommitHistorySlice(),
134
+ DownloadGitAttributeFiles(),
135
+ ReadCommitsFromHistorySlice(),
136
+ SkipMergeCommits(),
137
+ SkipCommitsWithParentBeyondCutoff(),
138
+
139
+ # Screen changed files while retaining reason-coded receipts.
140
+ DropChangedFilesInJunkFolders(),
141
+ DropGeneratedChangedFiles(),
142
+ DropLockfileChangedFiles(),
143
+ DropBinaryChangedFilesByPath(),
144
+
145
+ # Hydrate exact Git objects and inspect their bytes.
146
+ DownloadChangedFileBlobs(),
147
+ AttachBeforeFileContents(),
148
+ DropChangedFilesOverMaximumCharacterCount(),
149
+ DropChangedFilesWithOverlongLines(),
150
+ DropChangedFilesFailingCharacterCompositionCheck(),
151
+ DropBinaryChangedFilesByContent(),
152
+
153
+ # Render the selected parent-to-child edit.
154
+ RecordCommitSizeAgainstCandidateCaps(),
155
+ RenderCommitPatches(),
156
+ DropAfterFileContents(),
157
+
158
+ # Attach experimental evidence without changing the payload.
159
+ AnnotateConventionalCommitMessage(),
160
+ AnnotatePossibleAiAuthorship(),
161
+ AnnotateCommitPatchStatistics(),
162
+ AnnotateChangedFileLanguages(),
163
+ AnnotateTestsTouched(),
164
+ VerifyCommitReplayFidelity(),
165
+ AnnotateCommitQualityBand(),
166
+
167
+ # Emit one holistic document per surviving commit.
168
+ AssembleCommit(),
169
+ ],
170
+ ),
171
+ SaveToHuggingFaceWithFallback(),
172
+ ])
173
+ ```
174
+
175
+ </details>
176
+
177
+ The collection is anchored to recorded repository heads. Native object IDs bind the before and after sides of each selected change. Production replay auditing deterministically reapplies a sample of patches against their stored before-state; `replay_verified` and `replay_mismatch` are explicit outcomes. `parent_reconstructed` means the parent-side evidence was assembled from the native history but the document was not in the replay sample—it must not be read as a stronger claim.
178
+
179
+ ## Understanding the labels
180
+
181
+ Quality bands are **storage and experimentation strata**, not universal judgements about whether a commit is good training data. Band `01` begins with the strongest repository-discovery tier under rubric v2; commit-level deductions record facts such as empty messages, excessive screening, cap violations, lossy text, or replay mismatch. The complete score components and deductions are stored so future recipes can re-rank documents without repeating acquisition.
182
+
183
+ Likewise, `possible_ai_authorship` only records explicit name or trailer signals known to the heuristic. It is not a classifier and should not be treated as proof that a human or model authored a change.
184
+
185
+ ## Limitations and responsible use
186
+
187
+ - **Original licences govern.** Review repository- and file-level licence evidence before redistribution or model training.
188
+ - **This is not the final corpus.** Global exact/near deduplication, benchmark decontamination, exposure caps, rendering, tokenization, and mixture selection belong to the later corpus stage.
189
+ - **The source inventory is intentionally biased.** Ranked repositories, organisations, language lists, and package/ecosystem signals shaped discovery; this is not a uniform sample of GitHub.
190
+ - **The selected view can omit files.** Generated, vendored/junk, lockfile, binary, oversized, overlong-line, or composition-failing files may be screened with receipts. Commits with no surviving file are absent.
191
+ - **Merge commits are absent.** v1 represents single-parent changes only.
192
+ - **Safety review remains necessary.** Public Git history can contain personal information, credentials, malware, prompt-injection text, or other unsafe material. Do not execute repository content outside an isolated environment.
193
+ - **Text fidelity is explicit, not perfect.** Inspect the path, message, patch, and before-content `*_lossy` flags when exact bytes matter.
194
+
195
+ ## Suggested citation
196
+
197
+ ```bibtex
198
+ @misc{locus_commit_pool_v1_2026,
199
+ title = {Locus Commit Pool v1},
200
+ author = {Placeholder Labs},
201
+ year = {2026},
202
+ howpublished = {Hugging Face dataset},
203
+ url = {https://huggingface.co/datasets/ahnaftaz/locus-commit-pool-v1}
204
+ }
205
+ ```
206
+
207
+ ---
208
+
209
+ <div align="center">
210
+ Built as an inspectable evidence pool: native identities in, durable receipts throughout, mixture decisions later.
211
+ </div>