Battam commited on
Commit
0e70a70
·
verified ·
1 Parent(s): dddf016

portal: data page of repository commit d76e34af52f2

Browse files

Files of catalog/portal/ (29), digest 1adc3fadbc77ba6ffea2428a6b7da80b494bd8b0af97a12b4b512bbaae84695d.

Files changed (5) hide show
  1. first.json +82 -82
  2. llms.txt +2 -2
  3. manual/manual.en.md +92 -92
  4. manual/manual.zh.md +92 -92
  5. portal.json +2 -2
first.json CHANGED
@@ -2,40 +2,40 @@
2
  "collections": 14,
3
  "date": "2026-11-19",
4
  "format": "portal-first/5",
5
- "index": "67d759f932870a5fa29a98264a96e04f9fc579f7",
6
- "raw_rows": 1198791875,
7
  "raw_rows_not_counted": 0,
8
  "raw_sources": 139,
9
- "ready_sources": 1868,
10
- "ready_units": 4635,
11
  "ready_units_not_counted": 0,
12
  "sizes": {
13
  "corpus": {
14
- "bytes": 4453240068412414,
15
  "check": {
16
- "compared": 23663,
17
  "error": 2,
18
  "gone": 164,
19
- "hash_mismatch": 14,
20
- "match": 23512,
21
  "needs_auth": 516,
22
- "no_length": 1853,
23
- "rows": 26341,
24
  "size_mismatch": 137,
25
  "unreachable": 143
26
  },
27
  "counts": {
28
  "corpora": 139,
29
- "rows": 1198791875,
30
  "rows_not_counted": 0
31
  },
32
- "distinct_bytes": 4138956429517549,
33
  "estimate": {
34
- "bytes": 509631367685319,
35
- "high": 1040622194951134,
36
- "low": 247114646885837,
37
  "readings": 4223,
38
- "rows": 278400014
39
  },
40
  "facts": {
41
  "collecting": 25,
@@ -61,85 +61,85 @@
61
  "summary_read": 0
62
  },
63
  "shown": {
64
- "bytes": "4.45 PB",
65
- "compared": "23,663",
66
  "corpora": "139",
67
  "distinct_bytes": "4.14 PB",
68
- "estimate": "510 TB",
69
- "match": "23,512",
70
- "range": "247 TB to 1.04 PB",
71
- "read": "26,341",
72
- "rows": "1,198,791,875",
73
- "unsized_rows": "289,533,999"
74
  },
75
  "shown_zh": {
76
- "bytes": "4.45 PB",
77
- "compared": "23,663",
78
  "corpora": "139",
79
  "distinct_bytes": "4.14 PB",
80
- "estimate": "510 TB",
81
- "match": "23,512",
82
- "range": "247 TB \u5230 1.04 PB",
83
- "read": "26,341",
84
- "rows": "1,198,791,875",
85
- "unsized_rows": "289,533,999"
86
- },
87
- "unsized_rows": 289533999
88
  },
89
  "index": {
90
- "bytes": 4453243048718137,
91
  "check": {
92
- "compared": 35581,
93
  "error": 5,
94
  "gone": 167,
95
- "hash_mismatch": 87,
96
- "match": 35336,
97
  "needs_auth": 526,
98
- "no_length": 1853,
99
- "rows": 38277,
100
  "size_mismatch": 158,
101
  "unreachable": 145
102
  },
103
  "counts": {
104
  "corpora": 139,
105
- "material_sets": 1868
106
  },
107
- "distinct_bytes": 4138959295036461,
108
  "estimate": {
109
- "bytes": 509631367685319,
110
- "high": 1040622194951134,
111
- "low": 247114646885837,
112
  "readings": 4223,
113
- "rows": 278400014
114
  },
115
  "shown": {
116
- "bytes": "4.45 PB",
117
- "compared": "35,581",
118
  "corpora": "139",
119
  "distinct_bytes": "4.14 PB",
120
- "estimate": "510 TB",
121
- "match": "35,336",
122
- "material_sets": "1,868",
123
- "range": "247 TB to 1.04 PB",
124
- "read": "38,277",
125
- "unsized_rows": "289,533,999"
126
  },
127
  "shown_zh": {
128
- "bytes": "4.45 PB",
129
- "compared": "35,581",
130
  "corpora": "139",
131
  "distinct_bytes": "4.14 PB",
132
- "estimate": "510 TB",
133
- "match": "35,336",
134
- "material_sets": "1,868",
135
- "range": "247 TB \u5230 1.04 PB",
136
- "read": "38,277",
137
- "unsized_rows": "289,533,999"
138
- },
139
- "unsized_rows": 289533999
140
  },
141
  "material_set": {
142
- "bytes": 2980305723,
143
  "check": {
144
  "compared": 11918,
145
  "error": 3,
@@ -155,58 +155,58 @@
155
  "counts": {
156
  "collections": 14,
157
  "empty_collections": 1,
158
- "files": 12392,
159
  "files_not_counted": 0,
160
  "in_no_collection": 5,
161
- "material_sets": 1868,
162
- "units": 4635,
163
  "units_not_counted": 0
164
  },
165
- "distinct_bytes": 2865518912,
166
  "estimate": null,
167
  "facts": {
168
  "collecting": 0,
169
- "every_row_sized": 1868,
170
  "pii": {
171
  "dates": [],
172
  "files": null,
173
  "judged": 0,
174
  "levels": {},
175
- "not_judged": 1868
176
  },
177
- "sources": 1868,
178
  "summary_read": 0
179
  },
180
  "shown": {
181
- "bytes": "2.98 GB",
182
  "collections": "14",
183
  "compared": "11,918",
184
- "distinct_bytes": "2.87 GB",
185
  "empty_collections": "1",
186
  "estimate": "none",
187
- "files": "12,392",
188
  "in_no_collection": "5",
189
  "match": "11,824",
190
- "material_sets": "1,868",
191
  "range": "none",
192
  "read": "11,936",
193
- "units": "4,635",
194
  "unsized_rows": "0"
195
  },
196
  "shown_zh": {
197
- "bytes": "2.98 GB",
198
  "collections": "14",
199
  "compared": "11,918",
200
- "distinct_bytes": "2.87 GB",
201
  "empty_collections": "1",
202
  "estimate": "\u65e0",
203
- "files": "12,392",
204
  "in_no_collection": "5",
205
  "match": "11,824",
206
- "material_sets": "1,868",
207
  "range": "\u65e0",
208
  "read": "11,936",
209
- "units": "4,635",
210
  "unsized_rows": "0"
211
  },
212
  "unsized_rows": 0
 
2
  "collections": 14,
3
  "date": "2026-11-19",
4
  "format": "portal-first/5",
5
+ "index": "068f7db6f7b0067147fac578c9aab011b7a18015",
6
+ "raw_rows": 1201757382,
7
  "raw_rows_not_counted": 0,
8
  "raw_sources": 139,
9
+ "ready_sources": 1903,
10
+ "ready_units": 4695,
11
  "ready_units_not_counted": 0,
12
  "sizes": {
13
  "corpus": {
14
+ "bytes": 4459088781084463,
15
  "check": {
16
+ "compared": 23826,
17
  "error": 2,
18
  "gone": 164,
19
+ "hash_mismatch": 15,
20
+ "match": 23674,
21
  "needs_auth": 516,
22
+ "no_length": 1851,
23
+ "rows": 26502,
24
  "size_mismatch": 137,
25
  "unreachable": 143
26
  },
27
  "counts": {
28
  "corpora": 139,
29
+ "rows": 1201757382,
30
  "rows_not_counted": 0
31
  },
32
+ "distinct_bytes": 4144718718654000,
33
  "estimate": {
34
+ "bytes": 510718037573157,
35
+ "high": 1042877918839408,
36
+ "low": 247626558923147,
37
  "readings": 4223,
38
+ "rows": 278714897
39
  },
40
  "facts": {
41
  "collecting": 25,
 
61
  "summary_read": 0
62
  },
63
  "shown": {
64
+ "bytes": "4.46 PB",
65
+ "compared": "23,826",
66
  "corpora": "139",
67
  "distinct_bytes": "4.14 PB",
68
+ "estimate": "511 TB",
69
+ "match": "23,674",
70
+ "range": "248 TB to 1.04 PB",
71
+ "read": "26,502",
72
+ "rows": "1,201,757,382",
73
+ "unsized_rows": "289,851,082"
74
  },
75
  "shown_zh": {
76
+ "bytes": "4.46 PB",
77
+ "compared": "23,826",
78
  "corpora": "139",
79
  "distinct_bytes": "4.14 PB",
80
+ "estimate": "511 TB",
81
+ "match": "23,674",
82
+ "range": "248 TB \u5230 1.04 PB",
83
+ "read": "26,502",
84
+ "rows": "1,201,757,382",
85
+ "unsized_rows": "289,851,082"
86
+ },
87
+ "unsized_rows": 289851082
88
  },
89
  "index": {
90
+ "bytes": 4459093528288171,
91
  "check": {
92
+ "compared": 35744,
93
  "error": 5,
94
  "gone": 167,
95
+ "hash_mismatch": 88,
96
+ "match": 35498,
97
  "needs_auth": 526,
98
+ "no_length": 1851,
99
+ "rows": 38438,
100
  "size_mismatch": 158,
101
  "unreachable": 145
102
  },
103
  "counts": {
104
  "corpora": 139,
105
+ "material_sets": 1903
106
  },
107
+ "distinct_bytes": 4144723351070800,
108
  "estimate": {
109
+ "bytes": 510718037573157,
110
+ "high": 1042877918839408,
111
+ "low": 247626558923147,
112
  "readings": 4223,
113
+ "rows": 278714897
114
  },
115
  "shown": {
116
+ "bytes": "4.46 PB",
117
+ "compared": "35,744",
118
  "corpora": "139",
119
  "distinct_bytes": "4.14 PB",
120
+ "estimate": "511 TB",
121
+ "match": "35,498",
122
+ "material_sets": "1,903",
123
+ "range": "248 TB to 1.04 PB",
124
+ "read": "38,438",
125
+ "unsized_rows": "289,851,082"
126
  },
127
  "shown_zh": {
128
+ "bytes": "4.46 PB",
129
+ "compared": "35,744",
130
  "corpora": "139",
131
  "distinct_bytes": "4.14 PB",
132
+ "estimate": "511 TB",
133
+ "match": "35,498",
134
+ "material_sets": "1,903",
135
+ "range": "248 TB \u5230 1.04 PB",
136
+ "read": "38,438",
137
+ "unsized_rows": "289,851,082"
138
+ },
139
+ "unsized_rows": 289851082
140
  },
141
  "material_set": {
142
+ "bytes": 4747203708,
143
  "check": {
144
  "compared": 11918,
145
  "error": 3,
 
155
  "counts": {
156
  "collections": 14,
157
  "empty_collections": 1,
158
+ "files": 12602,
159
  "files_not_counted": 0,
160
  "in_no_collection": 5,
161
+ "material_sets": 1903,
162
+ "units": 4695,
163
  "units_not_counted": 0
164
  },
165
+ "distinct_bytes": 4632416800,
166
  "estimate": null,
167
  "facts": {
168
  "collecting": 0,
169
+ "every_row_sized": 1903,
170
  "pii": {
171
  "dates": [],
172
  "files": null,
173
  "judged": 0,
174
  "levels": {},
175
+ "not_judged": 1903
176
  },
177
+ "sources": 1903,
178
  "summary_read": 0
179
  },
180
  "shown": {
181
+ "bytes": "4.75 GB",
182
  "collections": "14",
183
  "compared": "11,918",
184
+ "distinct_bytes": "4.63 GB",
185
  "empty_collections": "1",
186
  "estimate": "none",
187
+ "files": "12,602",
188
  "in_no_collection": "5",
189
  "match": "11,824",
190
+ "material_sets": "1,903",
191
  "range": "none",
192
  "read": "11,936",
193
+ "units": "4,695",
194
  "unsized_rows": "0"
195
  },
196
  "shown_zh": {
197
+ "bytes": "4.75 GB",
198
  "collections": "14",
199
  "compared": "11,918",
200
+ "distinct_bytes": "4.63 GB",
201
  "empty_collections": "1",
202
  "estimate": "\u65e0",
203
+ "files": "12,602",
204
  "in_no_collection": "5",
205
  "match": "11,824",
206
+ "material_sets": "1,903",
207
  "range": "\u65e0",
208
  "read": "11,936",
209
+ "units": "4,695",
210
  "unsized_rows": "0"
211
  },
212
  "unsized_rows": 0
llms.txt CHANGED
@@ -2,10 +2,10 @@
2
 
3
  - The index holds two layers over the same public web, kept apart and never added together. Each corpus is one whole upstream read in bulk and counted in rows; a material set is admitted for building tasks from works the search found upstream or from a group of corpus rows, its files checked and grouped into units, and it is counted in units, apart from any corpus its rows came from. Task material comes first: material sets, grouped into collections, one per task family. A material set (task-ready) is the units admitted from one source, which reads one upstream (one dataset or one data catalog), for building tasks (the catalog column `kind` is `material_set`, and `collection` names its collection). A unit is a group of files that its upstream publishes as one thing, delivered whole; its key `unit_id` is the `unit_group` its rows share (`extra.source_meta.unit_group`), defined once, in the glossary of the data page's manual, https://battam-training-data-foundation.static.hf.space/index.html?lng=en#manual/glossary . A unit is material, not a task: one unit may give several tasks, and one task may use several units. Corpora come second, to search when no material set fits: a corpus (raw; plural corpora) is one whole upstream that a collector keeps reading, such as Common Crawl's office documents, PyPI's release files, Mendeley Data or NVD: its rows are pointers to files or API responses, and it is counted in rows (`kind` is `corpus`); `tools/fetch.py` takes a corpus row by row, each under its own key as its `unit_id`.
4
  - Pick material sets or corpora from `meta/catalog.parquet` (one row per material set or corpus, about 50 KB; do not download `meta/` whole). Columns: `source`; `kind`, `material_set` or `corpus` (select one layer: units and rows are never added together); `collection`, the code of a material set's collection (every code with its name is in `meta/vocabulary.json`), or of the collection that lists a corpus as holding its kind of material (`corpora` in `meta/vocabulary.json`; empty for any other corpus); `domain`, a list of codes D1 to D10 or leaves such as D3.5, or `multi`, `unclassified`; `form`, such as `test-suites` or `spreadsheets`; `upstream_kind`, `upstream_agent` and `upstream_entry`, the source's upstream (`dataset` or `catalog`, its agent, and the address its reading starts from; a source that still reads several upstreams gives each, joined by ` | `); `units` (a material set's distinct `unit_id` values: a test case, one workbook, one package; a corpus is counted in rows, and gives the same number as `files`) and `files` (its rows: for a material set, the files of its units and its README.md and LICENSE); `publishers` (a material set's distinct publisher names over all its rows; empty when its rows name none); `language` (the language codes of the rows' labels, what the default profile filters on; `not recorded` when a row has none); `contamination.level` (by the rule of the default profile of `tools/fetch.py` over `meta/bench_overlap.parquet` and `meta/bench_checked.parquet`: `none` when every data file is compared and kept and no row is removed, the hit class with the most removed rows when some are removed, `not scanned` otherwise); `license.ship`; `pii.level`; `distinct_bytes` (deduplicated size) and `bytes` (recorded size, the sum over rows); `size_check` (the rows read in `meta/sizes.parquet`, `compared` those that compared a size or hash, and how many have each status, `match` when the measured size agrees; the check's share is `match` over `compared`), `unsized_rows` (rows without a recorded size) and `unsized_estimate` (their estimated size, with its 95% range); `fetch_check` (whether the upstream still serves the files: `rows`, the sampled rows read in `meta/sizes.parquet`; `fetched`, those that fetched and matched their recorded size and hash; `read_at`, the day read; `level`, `all`, `some`, `none`, `needs auth` (no row read fetched, and the source's rows need the paying or signed-in reader its `needs_auth` names, which the check, reading anonymously, does not have) or `not read`); the same figures for the whole index, each layer and each collection are in `meta/size_figures.json`. Who published each file of a material set, and under which license and license URL, is in `meta/attribution.parquet` (one row per source, publisher, license and license URL, with its number of files). The vocabulary is `meta/vocabulary.json`: every domain code with its name (and `zh`, its Chinese name), what it covers and its parent, every form with its Chinese name and what it means, every category of `meta/not_included.parquet` with its requirement in English and in Chinese, the two layers with their relation, and every collection with its name, what it holds, its campaigns (take a collection with `--tag campaign:<name>` for each of its campaigns) and the corpora it lists, if any (take one with `--source`), and the criteria the default profile of `tools/fetch.py` applies, in its order (`profile`, each with the option that keeps what it removes).
5
- - Size of this release: Whole index: Recorded size 4.45 PB; deduplicated size 4.14 PB; size check: 99.3% match (35,581 of the 38,277 rows read compared); not compared: address unreachable 145, file gone 167, login needed 526, no size from the server 1,853, other error 5; estimated size of 278,400,014 of the 289,533,999 rows without a recorded size: 510 TB (an estimate; 95% range 247 TB to 1.04 PB, the sum of its sources' ranges, wider than a joint interval; from 4,223 rows read), the other 11,133,985 with too few rows read for an estimate. Task material: Recorded size 2.98 GB; deduplicated size 2.87 GB; size check: 99.2% match (11,918 of the 11,936 rows read compared); not compared: address unreachable 2, file gone 3, login needed 10, other error 3. Corpora: Recorded size 4.45 PB; deduplicated size 4.14 PB; size check: 99.4% match (23,663 of the 26,341 rows read compared); not compared: address unreachable 143, file gone 164, login needed 516, no size from the server 1,853, other error 2; estimated size of 278,400,014 of the 289,533,999 rows without a recorded size: 510 TB (an estimate; 95% range 247 TB to 1.04 PB, the sum of its sources' ranges, wider than a joint interval; from 4,223 rows read), the other 11,133,985 with too few rows read for an estimate. Distinct content is the sum of `size_bytes` over the rows minus the sizes of the rows that repeat another row's content (the same sha256, else sha1, else md5 and size, within the same hash scope; one copy of each content is kept, in the first source by registry order), counted after each release over the data files it published, per source in the catalog column `distinct_bytes`; archive members whose archive the same source also lists whole have other hashes, so they are not subtracted. `tools/fetch.py` removes duplicates over your own selection when it reads it. The deduplicated sizes here were counted over the data files of release `release-2026-11-17.2`. The recorded size is the sum of `size_bytes` over the rows that have one (catalog column `bytes`). The check reads a sample of rows of every data file (`meta/sizes.parquet`), each day the files with rows of a source not read there yet and those of the sources read longest ago, about a seventh of all the readings, so each is read again within a week: 20 of its rows with a recorded size of each source whose rows it holds, and of its rows without one its share of its source's sample, sized for their mean size within 25% at 95% confidence by the spread of the sizes read so far (at most 400 rows per source per round, 20 for a source with none read yet); its share is the rows that match their recorded size out of the rows it compared (status `match`, `size_mismatch` or `hash_mismatch`), and the rows it could not compare, which never reached their file, are counted beside it by status (`unreachable`, `gone`, `needs_auth`, `no_length`, `error`; catalog column `size_check`). The estimate for a source's rows without a recorded size (catalog columns `unsized_rows` and `unsized_estimate`) is their number times the mean measured size of such rows read, with a 95% BCa bootstrap range (`scipy.stats.bootstrap`, its default resample count); a source with fewer than 10 such rows read has none. Above one source, the estimate is the sum of its sources' estimates and its range the sum of their ranges, which is wider than a joint interval. The figures of every level are in `meta/size_figures.json`.
6
  - Fetch with one command: `uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/main/tools/fetch.py --kind material_set --domain D3 --form spreadsheets --out ./data` takes those material sets whole, as the data page does unless told otherwise; take a corpus, whose whole can be petabytes, with `--sample N` (the data page takes 3 units of each by default) or `--limit N`. Without uv: `pip install duckdb`, download `tools/fetch.py` and run it with `python`. Select with `--source`, `--kind` (`material_set` or `corpus`: one layer), `--domain`, `--form`, `--tag`, `--ext`, or `--selection <file>` (a selection file the data page saves: the ids of its sources and its commit); `--sample N` takes at most N units per source, `--limit N` takes N units over the whole selection, `--unit <unit_id>` takes the unit of that `unit_id` whole (with `--source`); before its first download the run prints the units, files and total size it selected.
7
  - It pins the commit it reads and prints it; pass `--revision <commit>` to get the same files later. A name that does not exist stops with exit code 2 and the closest names.
8
- - The default profile removes duplicate copies, rows that matched a benchmark (copies of benchmark data, rows of groupings awaiting a ruling), rows not compared with the benchmark list yet (counted apart, with their own reason), rows recorded in a language other than English, files above 20 MB, and rows that the release's fetch check read and found refused by their site (HTTP 401 or 403, a login, or an empty or short body). Before downloading it prints how many units each criterion removed; each criterion has its own option (`--keep-duplicates`, `--allow-benchmark`, `--allow-not-compared`, `--any-language`, `--any-size`, `--allow-refused`; `--allow-benchmark` also keeps rows not compared yet), and `--all` turns off every criterion except benchmark and not compared, so rows that matched a benchmark or were not compared yet come in only with their own options. The license and the personal-data mark are labels of every row, not filters: by default every row comes, and two options leave rows out only when given, `--training-only` the files whose license does not allow shipping (license.ship yes and conditional stay) and `--no-personal-data` personal data (catalog pii.level present or suspected, rows marked sensitive). Compared with the benchmark list (keys of 2026-11-08): 1,868 of 1,868 material sets; 139 of 174 corpora. The profile also removes every row whose data file was not compared (`--allow-benchmark` keeps them, unchecked).
9
  - Output: `./data/<domain>/<source>/<unit folder>/...` holds each unit whole, in a folder of its own named after its `unit_id`, its files at their paths within the unit; `./data/<domain>/<source>/` also holds the README.md and LICENSE of a material set; `./data/_meta/manifest.jsonl` has one line per file (source, path, url, sha256, bytes, spdx, licence_url, publisher, retrieved, origin_kind, leaf, unit_id, verified); `./data/_meta/sizes.tsv` one line per source. Every file is checked against the sha256 the index records. A unit stored inside a container (such as a disk image inside a zip) is written as the unit itself: fetch.py takes the member out and checks it against the unit's recorded sha256, so no second tool is needed; only units marked expand (archives meant to be used as folders) are unpacked by `tools/to_pool.py`.
10
  - The index holds material only: what a task checks is decided when the task is built from the material. Keep out of the environment the agent works in whatever the task checks its result against:
11
  - Workbooks (such as the form `spreadsheets`): a published workbook holds the cached results of its formulas, so a workbook put in as fetched hands the agent the values a task may ask it to compute. Strip the cached values first: in .xlsx and .xlsm the `<v>` of every formula cell (`xl/worksheets/*.xml`), the chart caches (`c:numCache` and `c:strCache` in `xl/charts/*.xml`), the pivot caches (`xl/pivotCache/`, definitions and records) and the external link caches (`xl/externalLinks/`); in .ods the value attributes (`office:value` and the like) and the text of formula cells; in .xls the cached result of every FORMULA record and its STRING record.
 
2
 
3
  - The index holds two layers over the same public web, kept apart and never added together. Each corpus is one whole upstream read in bulk and counted in rows; a material set is admitted for building tasks from works the search found upstream or from a group of corpus rows, its files checked and grouped into units, and it is counted in units, apart from any corpus its rows came from. Task material comes first: material sets, grouped into collections, one per task family. A material set (task-ready) is the units admitted from one source, which reads one upstream (one dataset or one data catalog), for building tasks (the catalog column `kind` is `material_set`, and `collection` names its collection). A unit is a group of files that its upstream publishes as one thing, delivered whole; its key `unit_id` is the `unit_group` its rows share (`extra.source_meta.unit_group`), defined once, in the glossary of the data page's manual, https://battam-training-data-foundation.static.hf.space/index.html?lng=en#manual/glossary . A unit is material, not a task: one unit may give several tasks, and one task may use several units. Corpora come second, to search when no material set fits: a corpus (raw; plural corpora) is one whole upstream that a collector keeps reading, such as Common Crawl's office documents, PyPI's release files, Mendeley Data or NVD: its rows are pointers to files or API responses, and it is counted in rows (`kind` is `corpus`); `tools/fetch.py` takes a corpus row by row, each under its own key as its `unit_id`.
4
  - Pick material sets or corpora from `meta/catalog.parquet` (one row per material set or corpus, about 50 KB; do not download `meta/` whole). Columns: `source`; `kind`, `material_set` or `corpus` (select one layer: units and rows are never added together); `collection`, the code of a material set's collection (every code with its name is in `meta/vocabulary.json`), or of the collection that lists a corpus as holding its kind of material (`corpora` in `meta/vocabulary.json`; empty for any other corpus); `domain`, a list of codes D1 to D10 or leaves such as D3.5, or `multi`, `unclassified`; `form`, such as `test-suites` or `spreadsheets`; `upstream_kind`, `upstream_agent` and `upstream_entry`, the source's upstream (`dataset` or `catalog`, its agent, and the address its reading starts from; a source that still reads several upstreams gives each, joined by ` | `); `units` (a material set's distinct `unit_id` values: a test case, one workbook, one package; a corpus is counted in rows, and gives the same number as `files`) and `files` (its rows: for a material set, the files of its units and its README.md and LICENSE); `publishers` (a material set's distinct publisher names over all its rows; empty when its rows name none); `language` (the language codes of the rows' labels, what the default profile filters on; `not recorded` when a row has none); `contamination.level` (by the rule of the default profile of `tools/fetch.py` over `meta/bench_overlap.parquet` and `meta/bench_checked.parquet`: `none` when every data file is compared and kept and no row is removed, the hit class with the most removed rows when some are removed, `not scanned` otherwise); `license.ship`; `pii.level`; `distinct_bytes` (deduplicated size) and `bytes` (recorded size, the sum over rows); `size_check` (the rows read in `meta/sizes.parquet`, `compared` those that compared a size or hash, and how many have each status, `match` when the measured size agrees; the check's share is `match` over `compared`), `unsized_rows` (rows without a recorded size) and `unsized_estimate` (their estimated size, with its 95% range); `fetch_check` (whether the upstream still serves the files: `rows`, the sampled rows read in `meta/sizes.parquet`; `fetched`, those that fetched and matched their recorded size and hash; `read_at`, the day read; `level`, `all`, `some`, `none`, `needs auth` (no row read fetched, and the source's rows need the paying or signed-in reader its `needs_auth` names, which the check, reading anonymously, does not have) or `not read`); the same figures for the whole index, each layer and each collection are in `meta/size_figures.json`. Who published each file of a material set, and under which license and license URL, is in `meta/attribution.parquet` (one row per source, publisher, license and license URL, with its number of files). The vocabulary is `meta/vocabulary.json`: every domain code with its name (and `zh`, its Chinese name), what it covers and its parent, every form with its Chinese name and what it means, every category of `meta/not_included.parquet` with its requirement in English and in Chinese, the two layers with their relation, and every collection with its name, what it holds, its campaigns (take a collection with `--tag campaign:<name>` for each of its campaigns) and the corpora it lists, if any (take one with `--source`), and the criteria the default profile of `tools/fetch.py` applies, in its order (`profile`, each with the option that keeps what it removes).
5
+ - Size of this release: Whole index: Recorded size 4.46 PB; deduplicated size 4.14 PB; size check: 99.3% match (35,744 of the 38,438 rows read compared); not compared: address unreachable 145, file gone 167, login needed 526, no size from the server 1,851, other error 5; estimated size of 278,714,897 of the 289,851,082 rows without a recorded size: 511 TB (an estimate; 95% range 248 TB to 1.04 PB, the sum of its sources' ranges, wider than a joint interval; from 4,223 rows read), the other 11,136,185 with too few rows read for an estimate. Task material: Recorded size 4.75 GB; deduplicated size 4.63 GB; size check: 99.2% match (11,918 of the 11,936 rows read compared); not compared: address unreachable 2, file gone 3, login needed 10, other error 3. Corpora: Recorded size 4.46 PB; deduplicated size 4.14 PB; size check: 99.4% match (23,826 of the 26,502 rows read compared); not compared: address unreachable 143, file gone 164, login needed 516, no size from the server 1,851, other error 2; estimated size of 278,714,897 of the 289,851,082 rows without a recorded size: 511 TB (an estimate; 95% range 248 TB to 1.04 PB, the sum of its sources' ranges, wider than a joint interval; from 4,223 rows read), the other 11,136,185 with too few rows read for an estimate. Distinct content is the sum of `size_bytes` over the rows minus the sizes of the rows that repeat another row's content (the same sha256, else sha1, else md5 and size, within the same hash scope; one copy of each content is kept, in the first source by registry order), counted after each release over the data files it published, per source in the catalog column `distinct_bytes`; archive members whose archive the same source also lists whole have other hashes, so they are not subtracted. `tools/fetch.py` removes duplicates over your own selection when it reads it. The deduplicated sizes here were counted over the data files of release `release-2026-11-17.2`. The recorded size is the sum of `size_bytes` over the rows that have one (catalog column `bytes`). The check reads a sample of rows of every data file (`meta/sizes.parquet`), each day the files with rows of a source not read there yet and those of the sources read longest ago, about a seventh of all the readings, so each is read again within a week: 20 of its rows with a recorded size of each source whose rows it holds, and of its rows without one its share of its source's sample, sized for their mean size within 25% at 95% confidence by the spread of the sizes read so far (at most 400 rows per source per round, 20 for a source with none read yet); its share is the rows that match their recorded size out of the rows it compared (status `match`, `size_mismatch` or `hash_mismatch`), and the rows it could not compare, which never reached their file, are counted beside it by status (`unreachable`, `gone`, `needs_auth`, `no_length`, `error`; catalog column `size_check`). The estimate for a source's rows without a recorded size (catalog columns `unsized_rows` and `unsized_estimate`) is their number times the mean measured size of such rows read, with a 95% BCa bootstrap range (`scipy.stats.bootstrap`, its default resample count); a source with fewer than 10 such rows read has none. Above one source, the estimate is the sum of its sources' estimates and its range the sum of their ranges, which is wider than a joint interval. The figures of every level are in `meta/size_figures.json`.
6
  - Fetch with one command: `uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/main/tools/fetch.py --kind material_set --domain D3 --form spreadsheets --out ./data` takes those material sets whole, as the data page does unless told otherwise; take a corpus, whose whole can be petabytes, with `--sample N` (the data page takes 3 units of each by default) or `--limit N`. Without uv: `pip install duckdb`, download `tools/fetch.py` and run it with `python`. Select with `--source`, `--kind` (`material_set` or `corpus`: one layer), `--domain`, `--form`, `--tag`, `--ext`, or `--selection <file>` (a selection file the data page saves: the ids of its sources and its commit); `--sample N` takes at most N units per source, `--limit N` takes N units over the whole selection, `--unit <unit_id>` takes the unit of that `unit_id` whole (with `--source`); before its first download the run prints the units, files and total size it selected.
7
  - It pins the commit it reads and prints it; pass `--revision <commit>` to get the same files later. A name that does not exist stops with exit code 2 and the closest names.
8
+ - The default profile removes duplicate copies, rows that matched a benchmark (copies of benchmark data, rows of groupings awaiting a ruling), rows not compared with the benchmark list yet (counted apart, with their own reason), rows recorded in a language other than English, files above 20 MB, and rows that the release's fetch check read and found refused by their site (HTTP 401 or 403, a login, or an empty or short body). Before downloading it prints how many units each criterion removed; each criterion has its own option (`--keep-duplicates`, `--allow-benchmark`, `--allow-not-compared`, `--any-language`, `--any-size`, `--allow-refused`; `--allow-benchmark` also keeps rows not compared yet), and `--all` turns off every criterion except benchmark and not compared, so rows that matched a benchmark or were not compared yet come in only with their own options. The license and the personal-data mark are labels of every row, not filters: by default every row comes, and two options leave rows out only when given, `--training-only` the files whose license does not allow shipping (license.ship yes and conditional stay) and `--no-personal-data` personal data (catalog pii.level present or suspected, rows marked sensitive). Compared with the benchmark list (keys of 2026-11-12): 1,903 of 1,903 material sets; 139 of 139 corpora. The profile also removes every row whose data file was not compared (`--allow-benchmark` keeps them, unchecked).
9
  - Output: `./data/<domain>/<source>/<unit folder>/...` holds each unit whole, in a folder of its own named after its `unit_id`, its files at their paths within the unit; `./data/<domain>/<source>/` also holds the README.md and LICENSE of a material set; `./data/_meta/manifest.jsonl` has one line per file (source, path, url, sha256, bytes, spdx, licence_url, publisher, retrieved, origin_kind, leaf, unit_id, verified); `./data/_meta/sizes.tsv` one line per source. Every file is checked against the sha256 the index records. A unit stored inside a container (such as a disk image inside a zip) is written as the unit itself: fetch.py takes the member out and checks it against the unit's recorded sha256, so no second tool is needed; only units marked expand (archives meant to be used as folders) are unpacked by `tools/to_pool.py`.
10
  - The index holds material only: what a task checks is decided when the task is built from the material. Keep out of the environment the agent works in whatever the task checks its result against:
11
  - Workbooks (such as the form `spreadsheets`): a published workbook holds the cached results of its formulas, so a workbook put in as fetched hands the agent the values a task may ask it to compute. Strip the cached values first: in .xlsx and .xlsm the `<v>` of every formula cell (`xl/worksheets/*.xml`), the chart caches (`c:numCache` and `c:strCache` in `xl/charts/*.xml`), the pivot caches (`xl/pivotCache/`, definitions and records) and the external link caches (`xl/externalLinks/`); in .ods the value attributes (`office:value` and the like) and the text of formula cells; in .xls the cached result of every FORMULA record and its STRING record.
manual/manual.en.md CHANGED
@@ -12,7 +12,7 @@ Each row records one file's address, size, hash (a fingerprint of its content) a
12
  <h2 id="manual/guides">Guides</h2>
13
 
14
  One goal each;
15
- commands are pinned to `release-2026-11-17.3`.
16
 
17
  <h3 id="manual/take">Take the files a need calls for</h3>
18
 
@@ -23,9 +23,9 @@ commands are pinned to `release-2026-11-17.3`.
23
  3. In that folder, run the command of "Take it again from the file" with [uv](https://docs.astral.sh/uv/):
24
 
25
  ```sh
26
- uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-17.3/tools/fetch.py \
27
- --selection training-data-foundation-selection-67d759f.json \
28
- --revision release-2026-11-17.3 \
29
  --out ./data
30
  ```
31
 
@@ -41,7 +41,7 @@ commands are pinned to `release-2026-11-17.3`.
41
  ```sh
42
  uvx --from duckdb-cli duckdb -c "
43
  SELECT source, collection, title, units, files, top_types, license.tier AS license_tier, needs_auth
44
- FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-17.3/meta/catalog.parquet'
45
  WHERE kind = 'material_set' AND needs_auth = 'no' AND license.tier IN ('permissive', 'share-alike')
46
  ORDER BY collection, units DESC"
47
  ```
@@ -55,9 +55,9 @@ commands are pinned to `release-2026-11-17.3`.
55
  to leave out the files whose license does not let them be shipped and the rows marked as carrying personal data, add two options:
56
 
57
  ```sh
58
- uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-17.3/tools/fetch.py \
59
- --selection training-data-foundation-selection-67d759f.json \
60
- --revision release-2026-11-17.3 \
61
  --training-only \
62
  --no-personal-data \
63
  --out ./data
@@ -129,7 +129,7 @@ it follows your filter changes, so copying it shares the state.
129
  2 when the index could not be read or a name is not in the catalog, such as a misspelt source:
130
 
131
  ```text
132
- error: --source dosfstools-fsk: no such source in meta/catalog.parquet at commit b8b2eb29aa52ccdc642380dfd5263091287caa15; closest: dosfstools-fsck-cases
133
  ```
134
 
135
  </details>
@@ -137,11 +137,11 @@ error: --source dosfstools-fsk: no such source in meta/catalog.parquet at commit
137
  <details id="manual/pin">
138
  <summary>Pin a release</summary>
139
 
140
- The page's commands pin the script URL and `--revision` to `release-2026-11-17.3`;
141
  the script's first line names the commit:
142
 
143
  ```text
144
- reading hf://datasets/Battam/training-data-foundation@b8b2eb29aa52ccdc642380dfd5263091287caa15 (commit b8b2eb29aa52ccdc642380dfd5263091287caa15); pass --revision b8b2eb29aa52ccdc642380dfd5263091287caa15 to select the same rows later
145
  ```
146
 
147
  Later, `--revision <commit>`, the same tag or the selection list take the same files.
@@ -214,27 +214,23 @@ Rows per class:
214
 
215
  ```sql
216
  SELECT hit_class, scope, count(*) AS rows
217
- FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-17.3/meta/bench_overlap.parquet'
218
  GROUP BY ALL ORDER BY hit_class, scope;
219
  ```
220
 
221
  ```text
222
- ┌────────────────────────┬───────────┬───────┐
223
- │ hit_class │ scope │ rows │
224
- │ varchar │ varchar │ int64 │
225
- ├────────────────────────┼───────────┼───────┤
226
- │ base_image │ row │ 146 │
227
- │ benchmark_copy │ container │ 70 │
228
- │ benchmark_copy │ row │ 8 │
229
- │ build_dependency │ row │ 2784 │
230
- │ data_address │ row │ 1771 │
231
- │ generic_text │ row │ 1226 │
232
- │ reference_or_namespace │ row │ 430 │
233
- │ task_file │ row │ 403 │
234
- │ third_party_package │ row │ 5 │
235
- │ trivial_small │ row │ 6907 │
236
- └─────────��──────────────┴───────────┴───────┘
237
- 10 rows 3 columns
238
  ```
239
 
240
  `meta/bench_checked.parquet` records which data files were compared;
@@ -251,16 +247,16 @@ the dataset https://huggingface.co/datasets/Battam/training-data-foundation .
251
 
252
  | To | Read |
253
  |---|---|
254
- | Read every field of a row and every column of the catalog | [docs/fields.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/fields.md) |
255
- | See every material set and every corpus, by domain, with its counts, size, license tier and login | [docs/sources.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/sources.md) and the domain pages it lists |
256
- | See what was not included and why, and which sources need a login | [docs/access.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/access.md) |
257
- | Build tasks from the files, and keep what an agent must not see out of its environment | [docs/for-agents.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/for-agents.md) |
258
- | See every release and what it changed | [CHANGELOG.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/CHANGELOG.md) |
259
- | Read the dataset as Croissant metadata | [Croissant generated by the Hub](https://huggingface.co/api/datasets/Battam/training-data-foundation/croissant); [`meta/croissant.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/meta/croissant.json) describes the catalog and every source |
260
  | Look through the catalog, one row per material set or corpus with its `kind` and `collection` | [The `catalog` subset in the Dataset Viewer](https://huggingface.co/datasets/Battam/training-data-foundation/viewer/catalog) |
261
  | Query the catalog in the browser; it lists every source as published, without the default profile of `tools/fetch.py`, which the command applies | [SQL Console](https://huggingface.co/datasets/Battam/training-data-foundation?sql_console=true&sql=--+every+source+of+the+catalog+as+published%3A+the+default+profile+of+tools%2Ffetch.py+is+not+applied+here%0ASELECT+source%2C+kind%2C+collection%2C+title%2C+units%2C+files%0AFROM+train%0AORDER+BY+kind%2C+collection%2C+files+DESC%0ALIMIT+50) |
262
  | Watch the index in use, in the page's language, with subtitles | [Usage video on the data page](https://huggingface.co/spaces/Battam/training-data-foundation#usage-video) |
263
- | Check every number of the dataset card and of the tables here | [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/meta/stage_figures.json) and [`meta/size_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/meta/size_figures.json) |
264
 
265
  Each row of the data files under `data/` points to one file or record (Row, in the [glossary](#manual/glossary));
266
  the catalog's column `data_files` names the files of each source, and one material set or corpus is read from exactly those files, as in the queries of the dataset card and with `tools/fetch.py`.
@@ -310,9 +306,9 @@ Each row also has a training and a redistribution permit (yes, conditional, no;
310
  - This catalog itself (addresses, sizes, hashes and descriptive text) is released under CC0 1.0; that dedication does not extend to the files it points to.
311
  - The files under `media/` (the usage example video and its subtitles) and under `examples/` (the worked examples) are released under CC0 1.0 as well.
312
  - Each file keeps the license of its source: see the license columns of each row (a row without its own license takes the license of its batch, `batches[].license` in `meta/sources.json`).
313
- - The tier of every source: on the page of its domain, which [docs/sources.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/sources.md) lists.
314
  - License tiers and reason codes are computed from the license categories of ScanCode LicenseDB, licensed CC-BY-4.0;
315
- its attribution: [`NOTICE`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/NOTICE).
316
 
317
  <h4 id="manual/personal">Personal and sensitive information</h4>
318
 
@@ -328,7 +324,7 @@ Each row also has a training and a redistribution permit (yes, conditional, no;
328
  | `none_known` | 3 | 0 |
329
  | `present` | 14 | 0 |
330
  | `suspected` | 1 | 0 |
331
- | Not judged yet | 121 | 1,868 |
332
  | Sample files read per judged source | 9 to 30 | none |
333
  | Days the sample files were read | 2026-10-04 and 2026-10-05 | none |
334
 
@@ -336,10 +332,10 @@ Each row also has a training and a redistribution permit (yes, conditional, no;
336
 
337
  | Sources | Corpora | Task material |
338
  |---|---:|---:|
339
- | With a recorded size for every row | 92 of 139 | 1,868 of 1,868 |
340
- | With a summary read from sample files | 0 of 139 | 0 of 1,868 |
341
- | With personal information read from sample files | 18 of 139 | 0 of 1,868 |
342
- | Still being collected | 25 of 139 | 0 of 1,868 |
343
 
344
  - Rows whose size the source does not publish are shown as unknown and left out of the size totals, never counted as 0.
345
  - Fields not judged yet say so;
@@ -358,9 +354,9 @@ Each row also has a training and a redistribution permit (yes, conditional, no;
358
 
359
  <h4 id="manual/releases">Releases</h4>
360
 
361
- - Latest release: `release-2026-11-17.3` (its newest CHANGELOG entry is dated 2026-11-17).
362
- - Releases are listed in [CHANGELOG.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/CHANGELOG.md);
363
- each one is a commit with its own release tag (this one is [`release-2026-11-17.3`](https://huggingface.co/datasets/Battam/training-data-foundation/tree/release-2026-11-17.3)),
364
  so any earlier state stays readable at its tag.
365
  - `meta/projection.json` records the release tag and the version of the program and templates that generated the dataset card and its pages.
366
 
@@ -368,7 +364,7 @@ Days with a release, from the commit history read for the dataset card:
368
 
369
  | Window | Days | Days with a release |
370
  |---|---:|---:|
371
- | 2026-10-19 to 2026-11-17 | 30 | 22 |
372
 
373
  <h4 id="manual/removal">Removal requests</h4>
374
 
@@ -395,7 +391,7 @@ to cite it:
395
  @misc{training_data_foundation,
396
  title = {training-data-foundation: an index of public materials for building agent environments},
397
  howpublished = {https://huggingface.co/datasets/Battam/training-data-foundation},
398
- note = {Release release-2026-11-17.3},
399
  year = {2026}
400
  }
401
  ```
@@ -430,7 +426,7 @@ to cite it:
430
  - **Form:** the shape of a source's material, one id such as `spreadsheets` or `test-suites` (the catalog column `form`, the option `--form` of `tools/fetch.py`).
431
  - **Training stage:** what the material can feed, by the stage table `catalog/stages.yaml` of the code repository: pre-training and mid-training take corpus rows, post-training the units of material sets ([How the training-stage tables are counted](#manual/stage-counting)).
432
  - **Default profile:** the rules `tools/fetch.py` applies unless an option relaxes them: it leaves out duplicate copies, rows that matched a benchmark or were not compared with the benchmark list yet, rows in a language other than English and files above 20 MB;
433
- rows of any license and rows marked as carrying personal data come unless `--training-only` or `--no-personal-data` leaves them out ([docs/for-agents.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/for-agents.md)).
434
 
435
  Every row carries a `unit_id`: in a material set, the key of its unit;
436
  in a corpus, the row's own key (its `uri`, then `@<range_offset>` for a byte range, then `!/<member_path>` for an archive member), and `tools/fetch.py` puts the file of a corpus row in a folder named after it.
@@ -440,8 +436,8 @@ in a corpus, the row's own key (its `uri`, then `@<range_offset>` for a byte ran
440
  <details id="manual/numbers">
441
  <summary>Where this manual's numbers come from</summary>
442
 
443
- The numbers and command outputs of this manual were filled in at deploy time, from the index commit `67d759f932870a5fa29a98264a96e04f9fc579f7` (release tag `release-2026-11-17.3`).
444
- This release holds 1,868 material sets with 4,635 units in 14 collections and 139 corpora with 1,198,791,875 rows, which point to 4.14 PB of deduplicated content, and of the 35,581 rows whose size was compared with their file, 99.3% matched.
445
 
446
  </details>
447
 
@@ -550,7 +546,7 @@ or add `&open=zenodo-workbooks-cc-by` to the address.
550
  <h4 id="manual/workbooks-5">5. Go to "Get the data" and keep the selection</h4>
551
 
552
  **Do**: click "Get the data" at the top;
553
- under "Keep this selection" click "Download the selection list (JSON)" and put `training-data-foundation-selection-67d759f.json` in your fetch folder.
554
 
555
  **See**: the heading "Take every unit of each of 51 material sets".
556
  The list records release, filters and sources:
@@ -559,7 +555,7 @@ The list records release, filters and sources:
559
  {
560
  "format": "training-data-foundation-selection/1",
561
  "dataset": "Battam/training-data-foundation",
562
- "revision": "release-2026-11-17.3",
563
  "filters": {
564
  "collection": "A",
565
  "train": "yes",
@@ -583,9 +579,9 @@ for 200 in all, use `--limit`.
583
  **Do**: in the list's folder, run the command of "Take it again from the file" with `--limit 220` added (220 units in all, in a fixed order: a margin over 200, since some sites fail) and `--out ./data` replaced by `--out ./take`:
584
 
585
  ```sh
586
- uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-17.3/tools/fetch.py \
587
- --selection training-data-foundation-selection-67d759f.json \
588
- --revision release-2026-11-17.3 \
589
  --ext xlsx \
590
  --ext xlsm \
591
  --ext xls \
@@ -593,29 +589,29 @@ uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/r
593
  --out ./take
594
  ```
595
 
596
- The output below is of the list cut to the 46 of these material sets whose every row the release's fetch check read and fetched (column `fetch_check`: level `all`, over as many `rows` as `files`), so that the take completes;
597
  with the whole list, a site that fails since its reading leaves files out, as the example further down shows.
598
 
599
  **See** (truncated):
600
 
601
  ```text
602
- selection (--source abhishekumarr00-supply-chain-mastery ... --ext xls) in the 31 data files read: 444 units and 536 files in 46 sources (92 files of the sources themselves among the files)
603
  removed by duplicate (a duplicate copy of another row): 0
604
  removed by benchmark (matched a benchmark): 0
605
  removed by not compared (not compared with the benchmark list yet): 0
606
  removed by language (recorded in a language other than English): 12 (--any-language keeps them)
607
  removed by size (above 20 MB): 0
608
  removed by refused (refused by its site when the release's fetch check read it: HTTP 401 or 403, a login, or an empty or short body): 0
609
- kept: 432 units
610
- fetching: 220 units (--limit 220): 310 files (90 files of the sources themselves among them), 110MB
611
  ok abhishekumarr00-supply-chain-mastery workbooks/abhishekumarr00-supply-chain-mastery.xlsx: 540kB
 
612
  ok austender-ict-procurement-statistics workbooks/2016-17-austender-ict-contract-data-category-sme-and-small-participation.xlsx: 32.9kB
613
- ok australia-government-workbooks workbooks/au-mdba-data-financial-year-to-2017.xlsx: 14.9kB
614
  ...
615
- 308 files fetched and checked (110MB) into take; details in take/_meta/fetch_run.json
616
- files of units: 2 failed, 218 ok; files of the sources themselves: 90 ok
617
- run_id 20261119T170337.440634Z: 2 failed, 308 ok (lines in take/_meta/fetch_manifest.jsonl)
618
- its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('take/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261119T170337.440634Z' AND json_extract_string(json, 'status') <> 'ok'
619
  ```
620
 
621
  Before the first download, `removed by` gives the units the default profile removed and the option that keeps them, counted in the data files read as far as `--limit` needed;
@@ -631,8 +627,8 @@ failed western-australia-government-workbooks workbooks/wa-gross-regional-produc
631
  incomplete: 1 unit miss a file (the files fetched are kept; _meta/fetch_manifest.jsonl says why): ...
632
  5 files fetched and checked (1.35MB) into probe; details in probe/_meta/fetch_run.json
633
  files of units: 1 failed, 1 ok; files of the sources themselves: 4 ok
634
- run_id 20261119T170852.170747Z: 1 failed, 5 ok (lines in probe/_meta/fetch_manifest.jsonl)
635
- its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('probe/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261119T170852.170747Z' AND json_extract_string(json, 'status') <> 'ok'
636
  ```
637
 
638
  **Get**: every `ok` file matched its recorded size and hash.
@@ -672,21 +668,25 @@ GROUP BY ALL ORDER BY source;
672
  │ excel_units │
673
  │ int64 │
674
  ├─────────────┤
675
- │ 218 │
676
  └─────────────┘
677
  ┌──────────┬───────┬───────────┐
678
  │ verified │ files │ bytes │
679
  │ boolean │ int64 │ int128 │
680
  ├──────────┼───────┼───────────┤
681
- │ true │ 308 │ 109994945 │
682
  └──────────┴───────┴───────────┘
683
- ┌──────────────────────────────────────┬───────────────────────────────────────────────┬───────┐
684
- │ source │ reason │ files │
685
- │ varchar │ varchar │ int64 │
686
- ├──────────────────────────��───────────┼───────────────────────────────────────────────┼───────┤
687
- │ austender-ict-procurement-statistics │ https://data.gov.au/data/dataset/67c0df26-9e6 │ 1 │
688
- │ data-gov-uk-workbooks │ size differs: expected 173435, got 172904 │ 1 │
689
- └──────────────────────────────────────┴───────────────────────────────────────────────┴───────┘
 
 
 
 
690
  ```
691
 
692
  **Get**: 1 counts the Excel units on disk;
@@ -705,7 +705,7 @@ a workbook stores the cached results of its formulas, so a task that asks for co
705
  **See** (truncated):
706
 
707
  ```text
708
- Dataset commit 67d759f932870a5fa29a98264a96e04f9fc579f7: https://huggingface.co/datasets/Battam/training-data-foundation/tree/67d759f932870a5fa29a98264a96e04f9fc579f7
709
  ...
710
  - Source: `austender-ict-procurement-statistics`
711
  - License: CC-BY-3.0-AU
@@ -738,7 +738,7 @@ Let DuckDB write the `--source` options, say for the disk image material sets wi
738
 
739
  ```sql
740
  SELECT string_agg('--source ' || source, ' ' ORDER BY source) AS options
741
- FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-17.3/meta/catalog.parquet'
742
  WHERE kind = 'material_set' AND collection = 'B'
743
  AND license.tier = 'share-alike';
744
  ```
@@ -747,7 +747,7 @@ WHERE kind = 'material_set' AND collection = 'B'
747
  --source adflib-adf-deleted --source adflib-adf-malformed --source btrfs-progs-convert-needs-recovery --source btrfs-progs-fsck-raw-images --source btrfs-progs-fuzz-images --source dfir-ntfs-fat-deleted --source dftt-deleted-files --source dftt-partition-tables --source dissect-hypervisor-disk-fixtures --source dosfstools-fsck-cases --source e2fsprogs-fsck-cases --source exfatprogs-fsck-cases --source libcdio-iso-malformed --source nist-cfreds-dfr-exfat --source ntfs-corrupted-images --source oe-ext4-hostile-fixtures --source qemu-iotests-sample-images
748
  ```
749
 
750
- Put them after `fetch.py --revision release-2026-11-17.3`.
751
  Read only the catalog, not all of `meta/`.
752
 
753
  </details>
@@ -761,8 +761,8 @@ Run "1 Take" (output truncated):
761
  !["Get the data" after picking three disk image material sets](S09-en.png)
762
 
763
  ```sh
764
- uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-17.3/tools/fetch.py \
765
- --revision release-2026-11-17.3 \
766
  --source dosfstools-fsck-cases \
767
  --source e2fsprogs-fsck-cases \
768
  --source exfatprogs-fsck-cases \
@@ -777,7 +777,7 @@ ok dosfstools-fsck-cases README.md: 3.32kB
777
  ok exfatprogs-fsck-cases cases/bad_bitmap/exfat.img: 5.24MB
778
  59 files fetched and checked (110MB) into data; details in data/_meta/fetch_run.json
779
  files of units: 52 ok; files of the sources themselves: 7 ok
780
- run_id 20261119T170900.067900Z: 59 ok (lines in data/_meta/fetch_manifest.jsonl)
781
  ```
782
 
783
  An exFAT image is `exfat.img.tar.xz` upstream;
@@ -821,7 +821,7 @@ One, the catalog's `contamination.level` (values in [Benchmark overlap marks](#m
821
 
822
  ```sql
823
  SELECT contamination.level AS level, count(*) AS material_sets, sum(units) AS units
824
- FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-17.3/meta/catalog.parquet'
825
  WHERE kind = 'material_set'
826
  AND list_has_any(top_types, ['docx', 'xlsx', 'pptx', 'pdf'])
827
  GROUP BY ALL;
@@ -841,8 +841,8 @@ GROUP BY ALL;
841
  Two, take the picked sources and read `removed by benchmark` and `removed by not compared`, printed before the first download (output truncated):
842
 
843
  ```sh
844
- uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-17.3/tools/fetch.py \
845
- --revision release-2026-11-17.3 \
846
  --source python-docx-acceptance-test-files \
847
  --source python-pptx-acceptance-test-files \
848
  --source docling-docx-groundtruth \
@@ -870,7 +870,7 @@ Three, match file by file against the overlap table;
870
  ```sql
871
  SELECT o.bench, o.hit_class, count(*) AS files
872
  FROM read_json_auto('office3/_meta/fetch_manifest.jsonl') AS f
873
- JOIN 'hf://datasets/Battam/training-data-foundation@release-2026-11-17.3/meta/bench_overlap.parquet' AS o
874
  ON o.source = f.source AND o.uri = f.uri
875
  WHERE f.status = 'ok'
876
  GROUP BY ALL;
@@ -884,7 +884,7 @@ GROUP BY ALL;
884
  0 rows
885
  ```
886
 
887
- GDPval is in the benchmark list `meta/benchmarks.parquet` (220 tasks), compared with the keys of 2026-11-08 in this release.
888
  A file in another format or version, or with other bytes and similar content, is caught only by an address it keeps:
889
  every key is exact ("Benchmark overlap classes" in `docs/fields.md`).
890
  If you evaluate on GDPval, also compare your files with its reference files.
@@ -902,7 +902,7 @@ Why the index is built as it is, and how each release is made and checked.
902
 
903
  The files stay where they are, under their own licenses;
904
  the index records only address, size, hash and license, which is why it can be public under CC0 1.0.
905
- Its scale allows nothing else: the files the whole index points to come to 4.14 PB, each content counted once, of which task material is 2.87 GB.
906
  The price is that sites change ([step 6 of the walk-through](#manual/workbooks-6) met a block page and a login), so check what you fetch.
907
 
908
  </details>
@@ -966,7 +966,7 @@ Each corpus is one whole upstream read in bulk and counted in rows; a material s
966
  - **Admission** makes the material sets.
967
  Its candidates are the works the search found upstream for the task family of a collection, and the units of a group of corpus rows chosen with `tools/fetch.py` (`--where` and `--sample`), which the fetch tool fetched and checked against their recorded size and sha256.
968
  It takes a candidate when its pointer facts hold: a download address, a recorded size and sha256, a recorded license, no legal block, no fact found wrong, and content not already in the index;
969
- every candidate it does not take is listed with its reason in `meta/not_included.parquet` ([docs/access.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/access.md)).
970
  - **What admission adds:** the candidate's files as one unit with its `unit_id`, the material set's README.md and LICENSE, its collection (the one of its task family), its form, its upstream, and labels such as language, robots and terms.
971
  The collect step then fetches every file of every unit again and checks its sha256 before the material set is published.
972
  - A material set made from corpus rows is a source of its own, apart from the corpus: the same file is a row of the corpus and a file of a unit, so the two layers' counts are never added;
@@ -994,10 +994,10 @@ The stage table `catalog/stages.yaml` of the code repository gives each training
994
  The release records those fields for every unit of a material set and every row of a corpus, with how many of the rules every stage shares it passes, in this order: the benchmark rule (a row that matches a public benchmark task is left out), the rule on rows not compared with the benchmark list yet and deduplication (`meta/stage_fields.parquet`);
995
  each stage counts what meets its condition before those rules and after each of them, and its count after the last one is what it can take;
996
  the data page shows these steps under each stage's tile.
997
- What no stage takes is counted per layer by reason, in `no_stage` of [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/meta/stage_figures.json): what meets no stage's condition, what a rule removes, and what the catalog holds but the stage fields do not, since a release counts its stage fields over an earlier release's files (not counted yet);
998
  so post-training's units and material sets plus those in no stage are every material set's units and material sets, as the data page shows under its tiles.
999
  The training permit and the personal-data mark are labels of every row, neither a condition nor a rule of any stage.
1000
- The dataset card shows each stage's count, how much of it is allowed for training, and what it keeps under each top-level domain (`by_domain` in [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/meta/stage_figures.json)).
1001
  The tables of this release: [What each training stage can take](#manual/stage-tables).
1002
 
1003
  </details>
@@ -1008,10 +1008,10 @@ The tables of this release: [What each training stage can take](#manual/stage-ta
1008
  - **Data collection:** rows are collected from the public listings, APIs and archives of each source and checked when added:
1009
  the address must answer, and size and hash are fetched again and compared.
1010
  - **Checks before release:** every source has its license recorded and grouped into a tier, personal information is read from sample files, and rows are compared with public benchmarks;
1011
- rows that copy a public benchmark are removed, and units that do not meet a requirement are listed with the reason: [docs/access.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/access.md).
1012
  - **Release:** each release is one commit with its own tag;
1013
  the dataset card, its figures under `docs/figures/`, the pages under `docs/`, `cards/*.md`, `meta/catalog.parquet`, `meta/croissant.json`, `meta/size_figures.json` and `meta/stage_figures.json` are generated from the same commit, so their numbers agree, and this manual is filled from that commit when the data page is deployed.
1014
- Every number and figure of the card is read from [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/meta/stage_figures.json), and every other count and size of the dataset's pages and of this manual's tables from [`meta/size_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/meta/size_figures.json), where each is computed once for the release.
1015
  - **Chinese version:** every name and description the Chinese card, its pages and the Chinese manual's tables show is translated by a language model once per text and kept, by the sha256 of its English text, in `meta/translations.parquet`.
1016
 
1017
  </details>
 
12
  <h2 id="manual/guides">Guides</h2>
13
 
14
  One goal each;
15
+ commands are pinned to `release-2026-11-18.1`.
16
 
17
  <h3 id="manual/take">Take the files a need calls for</h3>
18
 
 
23
  3. In that folder, run the command of "Take it again from the file" with [uv](https://docs.astral.sh/uv/):
24
 
25
  ```sh
26
+ uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-18.1/tools/fetch.py \
27
+ --selection training-data-foundation-selection-068f7db.json \
28
+ --revision release-2026-11-18.1 \
29
  --out ./data
30
  ```
31
 
 
41
  ```sh
42
  uvx --from duckdb-cli duckdb -c "
43
  SELECT source, collection, title, units, files, top_types, license.tier AS license_tier, needs_auth
44
+ FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-18.1/meta/catalog.parquet'
45
  WHERE kind = 'material_set' AND needs_auth = 'no' AND license.tier IN ('permissive', 'share-alike')
46
  ORDER BY collection, units DESC"
47
  ```
 
55
  to leave out the files whose license does not let them be shipped and the rows marked as carrying personal data, add two options:
56
 
57
  ```sh
58
+ uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-18.1/tools/fetch.py \
59
+ --selection training-data-foundation-selection-068f7db.json \
60
+ --revision release-2026-11-18.1 \
61
  --training-only \
62
  --no-personal-data \
63
  --out ./data
 
129
  2 when the index could not be read or a name is not in the catalog, such as a misspelt source:
130
 
131
  ```text
132
+ error: --source dosfstools-fsk: no such source in meta/catalog.parquet at commit 67d759f932870a5fa29a98264a96e04f9fc579f7; closest: dosfstools-fsck-cases
133
  ```
134
 
135
  </details>
 
137
  <details id="manual/pin">
138
  <summary>Pin a release</summary>
139
 
140
+ The page's commands pin the script URL and `--revision` to `release-2026-11-18.1`;
141
  the script's first line names the commit:
142
 
143
  ```text
144
+ reading hf://datasets/Battam/training-data-foundation@67d759f932870a5fa29a98264a96e04f9fc579f7 (commit 67d759f932870a5fa29a98264a96e04f9fc579f7); pass --revision 67d759f932870a5fa29a98264a96e04f9fc579f7 to select the same rows later
145
  ```
146
 
147
  Later, `--revision <commit>`, the same tag or the selection list take the same files.
 
214
 
215
  ```sql
216
  SELECT hit_class, scope, count(*) AS rows
217
+ FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-18.1/meta/bench_overlap.parquet'
218
  GROUP BY ALL ORDER BY hit_class, scope;
219
  ```
220
 
221
  ```text
222
+ ┌────────────────────────┬─────────┬───────┐
223
+ │ hit_class │ scope │ rows │
224
+ │ varchar │ varchar │ int64 │
225
+ ├────────────────────────┼─────────┼───────┤
226
+ │ base_image │ row │ 146 │
227
+ │ build_dependency │ row │ 2784 │
228
+ │ data_address │ row │ 1771 │
229
+ │ generic_text │ row │ 1226 │
230
+ │ reference_or_namespace │ row │ 422 │
231
+ │ third_party_package │ row │ 5 │
232
+ │ trivial_small │ row │ 6907 │
233
+ └────────────────────────┴─────────┴───────┘
 
 
 
 
234
  ```
235
 
236
  `meta/bench_checked.parquet` records which data files were compared;
 
247
 
248
  | To | Read |
249
  |---|---|
250
+ | Read every field of a row and every column of the catalog | [docs/fields.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/fields.md) |
251
+ | See every material set and every corpus, by domain, with its counts, size, license tier and login | [docs/sources.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/sources.md) and the domain pages it lists |
252
+ | See what was not included and why, and which sources need a login | [docs/access.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/access.md) |
253
+ | Build tasks from the files, and keep what an agent must not see out of its environment | [docs/for-agents.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/for-agents.md) |
254
+ | See every release and what it changed | [CHANGELOG.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/CHANGELOG.md) |
255
+ | Read the dataset as Croissant metadata | [Croissant generated by the Hub](https://huggingface.co/api/datasets/Battam/training-data-foundation/croissant); [`meta/croissant.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/meta/croissant.json) describes the catalog and every source |
256
  | Look through the catalog, one row per material set or corpus with its `kind` and `collection` | [The `catalog` subset in the Dataset Viewer](https://huggingface.co/datasets/Battam/training-data-foundation/viewer/catalog) |
257
  | Query the catalog in the browser; it lists every source as published, without the default profile of `tools/fetch.py`, which the command applies | [SQL Console](https://huggingface.co/datasets/Battam/training-data-foundation?sql_console=true&sql=--+every+source+of+the+catalog+as+published%3A+the+default+profile+of+tools%2Ffetch.py+is+not+applied+here%0ASELECT+source%2C+kind%2C+collection%2C+title%2C+units%2C+files%0AFROM+train%0AORDER+BY+kind%2C+collection%2C+files+DESC%0ALIMIT+50) |
258
  | Watch the index in use, in the page's language, with subtitles | [Usage video on the data page](https://huggingface.co/spaces/Battam/training-data-foundation#usage-video) |
259
+ | Check every number of the dataset card and of the tables here | [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/meta/stage_figures.json) and [`meta/size_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/meta/size_figures.json) |
260
 
261
  Each row of the data files under `data/` points to one file or record (Row, in the [glossary](#manual/glossary));
262
  the catalog's column `data_files` names the files of each source, and one material set or corpus is read from exactly those files, as in the queries of the dataset card and with `tools/fetch.py`.
 
306
  - This catalog itself (addresses, sizes, hashes and descriptive text) is released under CC0 1.0; that dedication does not extend to the files it points to.
307
  - The files under `media/` (the usage example video and its subtitles) and under `examples/` (the worked examples) are released under CC0 1.0 as well.
308
  - Each file keeps the license of its source: see the license columns of each row (a row without its own license takes the license of its batch, `batches[].license` in `meta/sources.json`).
309
+ - The tier of every source: on the page of its domain, which [docs/sources.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/sources.md) lists.
310
  - License tiers and reason codes are computed from the license categories of ScanCode LicenseDB, licensed CC-BY-4.0;
311
+ its attribution: [`NOTICE`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/NOTICE).
312
 
313
  <h4 id="manual/personal">Personal and sensitive information</h4>
314
 
 
324
  | `none_known` | 3 | 0 |
325
  | `present` | 14 | 0 |
326
  | `suspected` | 1 | 0 |
327
+ | Not judged yet | 121 | 1,903 |
328
  | Sample files read per judged source | 9 to 30 | none |
329
  | Days the sample files were read | 2026-10-04 and 2026-10-05 | none |
330
 
 
332
 
333
  | Sources | Corpora | Task material |
334
  |---|---:|---:|
335
+ | With a recorded size for every row | 92 of 139 | 1,903 of 1,903 |
336
+ | With a summary read from sample files | 0 of 139 | 0 of 1,903 |
337
+ | With personal information read from sample files | 18 of 139 | 0 of 1,903 |
338
+ | Still being collected | 25 of 139 | 0 of 1,903 |
339
 
340
  - Rows whose size the source does not publish are shown as unknown and left out of the size totals, never counted as 0.
341
  - Fields not judged yet say so;
 
354
 
355
  <h4 id="manual/releases">Releases</h4>
356
 
357
+ - Latest release: `release-2026-11-18.1` (its newest CHANGELOG entry is dated 2026-11-18).
358
+ - Releases are listed in [CHANGELOG.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/CHANGELOG.md);
359
+ each one is a commit with its own release tag (this one is [`release-2026-11-18.1`](https://huggingface.co/datasets/Battam/training-data-foundation/tree/release-2026-11-18.1)),
360
  so any earlier state stays readable at its tag.
361
  - `meta/projection.json` records the release tag and the version of the program and templates that generated the dataset card and its pages.
362
 
 
364
 
365
  | Window | Days | Days with a release |
366
  |---|---:|---:|
367
+ | 2026-10-20 to 2026-11-18 | 30 | 23 |
368
 
369
  <h4 id="manual/removal">Removal requests</h4>
370
 
 
391
  @misc{training_data_foundation,
392
  title = {training-data-foundation: an index of public materials for building agent environments},
393
  howpublished = {https://huggingface.co/datasets/Battam/training-data-foundation},
394
+ note = {Release release-2026-11-18.1},
395
  year = {2026}
396
  }
397
  ```
 
426
  - **Form:** the shape of a source's material, one id such as `spreadsheets` or `test-suites` (the catalog column `form`, the option `--form` of `tools/fetch.py`).
427
  - **Training stage:** what the material can feed, by the stage table `catalog/stages.yaml` of the code repository: pre-training and mid-training take corpus rows, post-training the units of material sets ([How the training-stage tables are counted](#manual/stage-counting)).
428
  - **Default profile:** the rules `tools/fetch.py` applies unless an option relaxes them: it leaves out duplicate copies, rows that matched a benchmark or were not compared with the benchmark list yet, rows in a language other than English and files above 20 MB;
429
+ rows of any license and rows marked as carrying personal data come unless `--training-only` or `--no-personal-data` leaves them out ([docs/for-agents.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/for-agents.md)).
430
 
431
  Every row carries a `unit_id`: in a material set, the key of its unit;
432
  in a corpus, the row's own key (its `uri`, then `@<range_offset>` for a byte range, then `!/<member_path>` for an archive member), and `tools/fetch.py` puts the file of a corpus row in a folder named after it.
 
436
  <details id="manual/numbers">
437
  <summary>Where this manual's numbers come from</summary>
438
 
439
+ The numbers and command outputs of this manual were filled in at deploy time, from the index commit `068f7db6f7b0067147fac578c9aab011b7a18015` (release tag `release-2026-11-18.1`).
440
+ This release holds 1,903 material sets with 4,695 units in 14 collections and 139 corpora with 1,201,757,382 rows, which point to 4.14 PB of deduplicated content, and of the 35,744 rows whose size was compared with their file, 99.3% matched.
441
 
442
  </details>
443
 
 
546
  <h4 id="manual/workbooks-5">5. Go to "Get the data" and keep the selection</h4>
547
 
548
  **Do**: click "Get the data" at the top;
549
+ under "Keep this selection" click "Download the selection list (JSON)" and put `training-data-foundation-selection-068f7db.json` in your fetch folder.
550
 
551
  **See**: the heading "Take every unit of each of 51 material sets".
552
  The list records release, filters and sources:
 
555
  {
556
  "format": "training-data-foundation-selection/1",
557
  "dataset": "Battam/training-data-foundation",
558
+ "revision": "release-2026-11-18.1",
559
  "filters": {
560
  "collection": "A",
561
  "train": "yes",
 
579
  **Do**: in the list's folder, run the command of "Take it again from the file" with `--limit 220` added (220 units in all, in a fixed order: a margin over 200, since some sites fail) and `--out ./data` replaced by `--out ./take`:
580
 
581
  ```sh
582
+ uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-18.1/tools/fetch.py \
583
+ --selection training-data-foundation-selection-068f7db.json \
584
+ --revision release-2026-11-18.1 \
585
  --ext xlsx \
586
  --ext xlsm \
587
  --ext xls \
 
589
  --out ./take
590
  ```
591
 
592
+ The output below is of the list cut to the 44 of these material sets whose every row the release's fetch check read and fetched (column `fetch_check`: level `all`, over as many `rows` as `files`), so that the take completes;
593
  with the whole list, a site that fails since its reading leaves files out, as the example further down shows.
594
 
595
  **See** (truncated):
596
 
597
  ```text
598
+ selection (--source abhishekumarr00-supply-chain-mastery ... --ext xls) in the 29 data files read: 434 units and 522 files in 44 sources (88 files of the sources themselves among the files)
599
  removed by duplicate (a duplicate copy of another row): 0
600
  removed by benchmark (matched a benchmark): 0
601
  removed by not compared (not compared with the benchmark list yet): 0
602
  removed by language (recorded in a language other than English): 12 (--any-language keeps them)
603
  removed by size (above 20 MB): 0
604
  removed by refused (refused by its site when the release's fetch check read it: HTTP 401 or 403, a login, or an empty or short body): 0
605
+ kept: 422 units
606
+ fetching: 220 units (--limit 220): 306 files (86 files of the sources themselves among them), 109MB
607
  ok abhishekumarr00-supply-chain-mastery workbooks/abhishekumarr00-supply-chain-mastery.xlsx: 540kB
608
+ ok austender-ict-procurement-statistics workbooks/201314austenderictcontractstatistcs.xlsx: 26.3kB
609
  ok austender-ict-procurement-statistics workbooks/2016-17-austender-ict-contract-data-category-sme-and-small-participation.xlsx: 32.9kB
 
610
  ...
611
+ 296 files fetched and checked (107MB) into take; details in take/_meta/fetch_run.json
612
+ files of units: 10 failed, 210 ok; files of the sources themselves: 86 ok
613
+ run_id 20261119T232919.844870Z: 10 failed, 296 ok (lines in take/_meta/fetch_manifest.jsonl)
614
+ its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('take/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261119T232919.844870Z' AND json_extract_string(json, 'status') <> 'ok'
615
  ```
616
 
617
  Before the first download, `removed by` gives the units the default profile removed and the option that keeps them, counted in the data files read as far as `--limit` needed;
 
627
  incomplete: 1 unit miss a file (the files fetched are kept; _meta/fetch_manifest.jsonl says why): ...
628
  5 files fetched and checked (1.35MB) into probe; details in probe/_meta/fetch_run.json
629
  files of units: 1 failed, 1 ok; files of the sources themselves: 4 ok
630
+ run_id 20261119T233901.851142Z: 1 failed, 5 ok (lines in probe/_meta/fetch_manifest.jsonl)
631
+ its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('probe/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261119T233901.851142Z' AND json_extract_string(json, 'status') <> 'ok'
632
  ```
633
 
634
  **Get**: every `ok` file matched its recorded size and hash.
 
668
  │ excel_units │
669
  │ int64 │
670
  ├─────────────┤
671
+ │ 210 │
672
  └─────────────┘
673
  ┌──────────┬───────┬───────────┐
674
  │ verified │ files │ bytes │
675
  │ boolean │ int64 │ int128 │
676
  ├──────────┼───────┼───────────┤
677
+ │ true │ 296 │ 107426264 │
678
  └──────────┴───────┴───────────┘
679
+ ┌──────────────────────────────┬───────────────────────────────────────────────┬───────┐
680
+ │ source │ reason │ files │
681
+ │ varchar │ varchar │ int64 │
682
+ ├──────────────────────────────┼───────────────────────────────────────────────┼───────┤
683
+ │ data-gov-uk-workbooks │ size differs: expected 173435, got 172904 │ 1 │
684
+ │ ontario-government-workbooks │ https://data.ontario.ca/dataset/e30dc044-5f75 │ 2 │
685
+ │ ontario-government-workbooks │ https://data.ontario.ca/dataset/ec8057a6-defc │ 1 │
686
+ │ ontario-government-workbooks │ https://data.ontario.ca/dataset/d151af6e-045a │ 2 │
687
+ │ ontario-government-workbooks │ https://data.ontario.ca/dataset/3d652a80-7936 │ 1 │
688
+ │ ontario-government-workbooks │ https://data.ontario.ca/dataset/e12b6c1b-8319 │ 3 │
689
+ └──────────────────────────────┴───────────────────────────────────────────────┴───────┘
690
  ```
691
 
692
  **Get**: 1 counts the Excel units on disk;
 
705
  **See** (truncated):
706
 
707
  ```text
708
+ Dataset commit 068f7db6f7b0067147fac578c9aab011b7a18015: https://huggingface.co/datasets/Battam/training-data-foundation/tree/068f7db6f7b0067147fac578c9aab011b7a18015
709
  ...
710
  - Source: `austender-ict-procurement-statistics`
711
  - License: CC-BY-3.0-AU
 
738
 
739
  ```sql
740
  SELECT string_agg('--source ' || source, ' ' ORDER BY source) AS options
741
+ FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-18.1/meta/catalog.parquet'
742
  WHERE kind = 'material_set' AND collection = 'B'
743
  AND license.tier = 'share-alike';
744
  ```
 
747
  --source adflib-adf-deleted --source adflib-adf-malformed --source btrfs-progs-convert-needs-recovery --source btrfs-progs-fsck-raw-images --source btrfs-progs-fuzz-images --source dfir-ntfs-fat-deleted --source dftt-deleted-files --source dftt-partition-tables --source dissect-hypervisor-disk-fixtures --source dosfstools-fsck-cases --source e2fsprogs-fsck-cases --source exfatprogs-fsck-cases --source libcdio-iso-malformed --source nist-cfreds-dfr-exfat --source ntfs-corrupted-images --source oe-ext4-hostile-fixtures --source qemu-iotests-sample-images
748
  ```
749
 
750
+ Put them after `fetch.py --revision release-2026-11-18.1`.
751
  Read only the catalog, not all of `meta/`.
752
 
753
  </details>
 
761
  !["Get the data" after picking three disk image material sets](S09-en.png)
762
 
763
  ```sh
764
+ uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-18.1/tools/fetch.py \
765
+ --revision release-2026-11-18.1 \
766
  --source dosfstools-fsck-cases \
767
  --source e2fsprogs-fsck-cases \
768
  --source exfatprogs-fsck-cases \
 
777
  ok exfatprogs-fsck-cases cases/bad_bitmap/exfat.img: 5.24MB
778
  59 files fetched and checked (110MB) into data; details in data/_meta/fetch_run.json
779
  files of units: 52 ok; files of the sources themselves: 7 ok
780
+ run_id 20261119T233930.252142Z: 59 ok (lines in data/_meta/fetch_manifest.jsonl)
781
  ```
782
 
783
  An exFAT image is `exfat.img.tar.xz` upstream;
 
821
 
822
  ```sql
823
  SELECT contamination.level AS level, count(*) AS material_sets, sum(units) AS units
824
+ FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-18.1/meta/catalog.parquet'
825
  WHERE kind = 'material_set'
826
  AND list_has_any(top_types, ['docx', 'xlsx', 'pptx', 'pdf'])
827
  GROUP BY ALL;
 
841
  Two, take the picked sources and read `removed by benchmark` and `removed by not compared`, printed before the first download (output truncated):
842
 
843
  ```sh
844
+ uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-18.1/tools/fetch.py \
845
+ --revision release-2026-11-18.1 \
846
  --source python-docx-acceptance-test-files \
847
  --source python-pptx-acceptance-test-files \
848
  --source docling-docx-groundtruth \
 
870
  ```sql
871
  SELECT o.bench, o.hit_class, count(*) AS files
872
  FROM read_json_auto('office3/_meta/fetch_manifest.jsonl') AS f
873
+ JOIN 'hf://datasets/Battam/training-data-foundation@release-2026-11-18.1/meta/bench_overlap.parquet' AS o
874
  ON o.source = f.source AND o.uri = f.uri
875
  WHERE f.status = 'ok'
876
  GROUP BY ALL;
 
884
  0 rows
885
  ```
886
 
887
+ GDPval is in the benchmark list `meta/benchmarks.parquet` (220 tasks), compared with the keys of 2026-11-12 in this release.
888
  A file in another format or version, or with other bytes and similar content, is caught only by an address it keeps:
889
  every key is exact ("Benchmark overlap classes" in `docs/fields.md`).
890
  If you evaluate on GDPval, also compare your files with its reference files.
 
902
 
903
  The files stay where they are, under their own licenses;
904
  the index records only address, size, hash and license, which is why it can be public under CC0 1.0.
905
+ Its scale allows nothing else: the files the whole index points to come to 4.14 PB, each content counted once, of which task material is 4.63 GB.
906
  The price is that sites change ([step 6 of the walk-through](#manual/workbooks-6) met a block page and a login), so check what you fetch.
907
 
908
  </details>
 
966
  - **Admission** makes the material sets.
967
  Its candidates are the works the search found upstream for the task family of a collection, and the units of a group of corpus rows chosen with `tools/fetch.py` (`--where` and `--sample`), which the fetch tool fetched and checked against their recorded size and sha256.
968
  It takes a candidate when its pointer facts hold: a download address, a recorded size and sha256, a recorded license, no legal block, no fact found wrong, and content not already in the index;
969
+ every candidate it does not take is listed with its reason in `meta/not_included.parquet` ([docs/access.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/access.md)).
970
  - **What admission adds:** the candidate's files as one unit with its `unit_id`, the material set's README.md and LICENSE, its collection (the one of its task family), its form, its upstream, and labels such as language, robots and terms.
971
  The collect step then fetches every file of every unit again and checks its sha256 before the material set is published.
972
  - A material set made from corpus rows is a source of its own, apart from the corpus: the same file is a row of the corpus and a file of a unit, so the two layers' counts are never added;
 
994
  The release records those fields for every unit of a material set and every row of a corpus, with how many of the rules every stage shares it passes, in this order: the benchmark rule (a row that matches a public benchmark task is left out), the rule on rows not compared with the benchmark list yet and deduplication (`meta/stage_fields.parquet`);
995
  each stage counts what meets its condition before those rules and after each of them, and its count after the last one is what it can take;
996
  the data page shows these steps under each stage's tile.
997
+ What no stage takes is counted per layer by reason, in `no_stage` of [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/meta/stage_figures.json): what meets no stage's condition, what a rule removes, and what the catalog holds but the stage fields do not, since a release counts its stage fields over an earlier release's files (not counted yet);
998
  so post-training's units and material sets plus those in no stage are every material set's units and material sets, as the data page shows under its tiles.
999
  The training permit and the personal-data mark are labels of every row, neither a condition nor a rule of any stage.
1000
+ The dataset card shows each stage's count, how much of it is allowed for training, and what it keeps under each top-level domain (`by_domain` in [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/meta/stage_figures.json)).
1001
  The tables of this release: [What each training stage can take](#manual/stage-tables).
1002
 
1003
  </details>
 
1008
  - **Data collection:** rows are collected from the public listings, APIs and archives of each source and checked when added:
1009
  the address must answer, and size and hash are fetched again and compared.
1010
  - **Checks before release:** every source has its license recorded and grouped into a tier, personal information is read from sample files, and rows are compared with public benchmarks;
1011
+ rows that copy a public benchmark are removed, and units that do not meet a requirement are listed with the reason: [docs/access.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/access.md).
1012
  - **Release:** each release is one commit with its own tag;
1013
  the dataset card, its figures under `docs/figures/`, the pages under `docs/`, `cards/*.md`, `meta/catalog.parquet`, `meta/croissant.json`, `meta/size_figures.json` and `meta/stage_figures.json` are generated from the same commit, so their numbers agree, and this manual is filled from that commit when the data page is deployed.
1014
+ Every number and figure of the card is read from [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/meta/stage_figures.json), and every other count and size of the dataset's pages and of this manual's tables from [`meta/size_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/meta/size_figures.json), where each is computed once for the release.
1015
  - **Chinese version:** every name and description the Chinese card, its pages and the Chinese manual's tables show is translated by a language model once per text and kept, by the sha256 of its English text, in `meta/translations.parquet`.
1016
 
1017
  </details>
manual/manual.zh.md CHANGED
@@ -12,7 +12,7 @@
12
 
13
  <h2 id="manual/guides">指南</h2>
14
 
15
- 每条一个目标,命令都钉在 `release-2026-11-17.3`。
16
 
17
  <h3 id="manual/take">按需求取回文件</h3>
18
 
@@ -23,9 +23,9 @@
23
  3. 在那个目录里用 [uv](https://docs.astral.sh/uv/) 跑「按文件再取一次」那条命令:
24
 
25
  ```sh
26
- uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-17.3/tools/fetch.py \
27
- --selection training-data-foundation-selection-67d759f.json \
28
- --revision release-2026-11-17.3 \
29
  --out ./data
30
  ```
31
 
@@ -41,7 +41,7 @@
41
  ```sh
42
  uvx --from duckdb-cli duckdb -c "
43
  SELECT source, collection, title, units, files, top_types, license.tier AS license_tier, needs_auth
44
- FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-17.3/meta/catalog.parquet'
45
  WHERE kind = 'material_set' AND needs_auth = 'no' AND license.tier IN ('permissive', 'share-alike')
46
  ORDER BY collection, units DESC"
47
  ```
@@ -55,9 +55,9 @@
55
  要去掉许可不允许随附分发的文件和标为带有个人数据的行,加两个选项:
56
 
57
  ```sh
58
- uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-17.3/tools/fetch.py \
59
- --selection training-data-foundation-selection-67d759f.json \
60
- --revision release-2026-11-17.3 \
61
  --training-only \
62
  --no-personal-data \
63
  --out ./data
@@ -128,7 +128,7 @@
128
  读不了索引或名字不在目录表里为 2,例如来源名写错时:
129
 
130
  ```text
131
- error: --source dosfstools-fsk: no such source in meta/catalog.parquet at commit b8b2eb29aa52ccdc642380dfd5263091287caa15; closest: dosfstools-fsck-cases
132
  ```
133
 
134
  </details>
@@ -136,10 +136,10 @@ error: --source dosfstools-fsk: no such source in meta/catalog.parquet at commit
136
  <details id="manual/pin">
137
  <summary>钉住发布版本取</summary>
138
 
139
- 页面给的命令把脚本网址和 `--revision` 都钉在 `release-2026-11-17.3`,脚本首行打印对应的提交:
140
 
141
  ```text
142
- reading hf://datasets/Battam/training-data-foundation@b8b2eb29aa52ccdc642380dfd5263091287caa15 (commit b8b2eb29aa52ccdc642380dfd5263091287caa15); pass --revision b8b2eb29aa52ccdc642380dfd5263091287caa15 to select the same rows later
143
  ```
144
 
145
  日后用 `--revision <提交号>`、同一个标签或选择清单,取到的就是同样的文件。
@@ -211,27 +211,23 @@ scope 为 `container` 时命中整个分组(只在分组是一个完整单位
211
 
212
  ```sql
213
  SELECT hit_class, scope, count(*) AS rows
214
- FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-17.3/meta/bench_overlap.parquet'
215
  GROUP BY ALL ORDER BY hit_class, scope;
216
  ```
217
 
218
  ```text
219
- ┌────────────────────────┬───────────┬───────┐
220
- │ hit_class │ scope │ rows │
221
- │ varchar │ varchar │ int64 │
222
- ├────────────────────────┼───────────┼───────┤
223
- │ base_image │ row │ 146 │
224
- │ benchmark_copy │ container │ 70 │
225
- │ benchmark_copy │ row │ 8 │
226
- │ build_dependency │ row │ 2784 │
227
- │ data_address │ row │ 1771 │
228
- │ generic_text │ row │ 1226 │
229
- │ reference_or_namespace │ row │ 430 │
230
- │ task_file │ row │ 403 │
231
- │ third_party_package │ row │ 5 │
232
- │ trivial_small │ row │ 6907 │
233
- └────────────────────────┴───────────┴───────┘
234
- 10 rows 3 columns
235
  ```
236
 
237
  `meta/bench_checked.parquet` 记哪些数据文件比对过;
@@ -248,16 +244,16 @@ GROUP BY ALL ORDER BY hit_class, scope;
248
 
249
  | 想做的事 | 去读 |
250
  |---|---|
251
- | 查看每个行字段和目录的每一列 | [docs/fields.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/fields.zh.md) |
252
- | 按领域查看每个材料集和每个语料库,以及它的计数、大小、许可证等级和登录要求 | [docs/sources.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/sources.zh.md) 及其列出的领域页面 |
253
- | 查看哪些没有收录、为什么,以及哪些来源需要登录 | [docs/access.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/access.zh.md) |
254
- | 用这些文件构建任务,并把智能体不该看到的内容挡在它的环境之外 | [docs/for-agents.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/for-agents.zh.md) |
255
- | 查看每次发布及其改动 | [CHANGELOG.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/CHANGELOG.md) |
256
- | 以 Croissant 元数据读取本数据集 | [由 Hub 生成的 Croissant](https://huggingface.co/api/datasets/Battam/training-data-foundation/croissant);[`meta/croissant.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/meta/croissant.json) 描述目录和每个来源 |
257
  | 浏览目录,每个材料集或语料库一行,带有它的 `kind` 和 `collection` | [数据集查看器中的 `catalog` 子集](https://huggingface.co/datasets/Battam/training-data-foundation/viewer/catalog) |
258
  | 在浏览器里查询目录;它按发布原样列出每个来源,不应用 `tools/fetch.py` 的默认配置,命令才应用它 | [SQL 控制台](https://huggingface.co/datasets/Battam/training-data-foundation?sql_console=true&sql=--+every+source+of+the+catalog+as+published%3A+the+default+profile+of+tools%2Ffetch.py+is+not+applied+here%0ASELECT+source%2C+kind%2C+collection%2C+title%2C+units%2C+files%0AFROM+train%0AORDER+BY+kind%2C+collection%2C+files+DESC%0ALIMIT+50) |
259
  | 观看本索引的使用示例视频,用页面的语言,带字幕 | [数据页上的使用示例视频](https://huggingface.co/spaces/Battam/training-data-foundation#usage-video) |
260
- | 核对数据集卡片和这里各表的每个数字 | [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/meta/stage_figures.json) 和 [`meta/size_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/meta/size_figures.json) |
261
 
262
  `data/` 下数据文件的每一行指向一个文件或一条记录(见[术语](#manual/glossary)中的「行」);
263
  目录的 `data_files` 列列出每个来源的文件,单个材料集或语料库就从这些文件读取,见数据集卡片中的查询和 `tools/fetch.py`。
@@ -308,9 +304,9 @@ GROUP BY ALL ORDER BY hit_class, scope;
308
  这一声明不延及它所指向的文件。
309
  - `media/` 下的文件(使用示例视频及其字幕)和 `examples/` 下的文件(完整示例)同样以 CC0 1.0 发布。
310
  - 每个文件保留其来源的许可证:见每一行的许可证列(没有自己许可证的行沿用所在批次的许可证,即 `meta/sources.json` 中的 `batches[].license`)。
311
- - 每个来源的等级:在它所属领域的页面上,这些页面由 [docs/sources.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/sources.zh.md) 列出。
312
  - 许可证等级和原因码由 ScanCode LicenseDB 的许可证类别算出,它以 CC-BY-4.0 许可;
313
- 它的署名:[`NOTICE`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/NOTICE)。
314
 
315
  <h4 id="manual/personal">个人与敏感信息</h4>
316
 
@@ -326,7 +322,7 @@ GROUP BY ALL ORDER BY hit_class, scope;
326
  | `none_known` | 3 | 0 |
327
  | `present` | 14 | 0 |
328
  | `suspected` | 1 | 0 |
329
- | 尚未判读 | 121 | 1,868 |
330
  | 每个已判读的来源读过的样本文件数 | 9 到 30 | 无 |
331
  | 读取样本文件的日期 | 2026-10-04 和 2026-10-05 | 无 |
332
 
@@ -334,10 +330,10 @@ GROUP BY ALL ORDER BY hit_class, scope;
334
 
335
  | 来源 | 语料库 | 任务材料 |
336
  |---|---:|---:|
337
- | 每一行都有记录的大小 | 139 个中的 92 个 | 1,868 个中的 1,868 个 |
338
- | 已从样本文件读出摘要 | 139 个中的 0 个 | 1,868 个中的 0 个 |
339
- | 已从样本文件读出个人信息 | 139 个中的 18 个 | 1,868 个中的 0 个 |
340
- | 仍在采集中 | 139 个中的 25 个 | 1,868 个中的 0 个 |
341
 
342
  - 来源没有公布大小的行显示为未知,不计入大小合计,也从不按 0 计。
343
  - 尚未判读的字段会注明;
@@ -356,9 +352,9 @@ GROUP BY ALL ORDER BY hit_class, scope;
356
 
357
  <h4 id="manual/releases">发布</h4>
358
 
359
- - 最新发布:`release-2026-11-17.3`(其最新的 CHANGELOG 条目日期为 2026-11-17)。
360
- - 各次发布列在 [CHANGELOG.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/CHANGELOG.md) 中;
361
- 每次发布是一个带有自己发布标签的提交(本次为 [`release-2026-11-17.3`](https://huggingface.co/datasets/Battam/training-data-foundation/tree/release-2026-11-17.3)),
362
  因此任何较早的状态都可以在它的标签处读到。
363
  - `meta/projection.json` 记录发布标签,以及生成数据集卡片及其页面的程序和模板的版本。
364
 
@@ -366,7 +362,7 @@ GROUP BY ALL ORDER BY hit_class, scope;
366
 
367
  | 时间窗口 | 天数 | 有发布的天数 |
368
  |---|---:|---:|
369
- | 2026-10-19 到 2026-11-17 | 30 | 22 |
370
 
371
  <h4 id="manual/removal">移除请求</h4>
372
 
@@ -401,7 +397,7 @@ GROUP BY ALL ORDER BY hit_class, scope;
401
  @misc{training_data_foundation,
402
  title = {training-data-foundation: an index of public materials for building agent environments},
403
  howpublished = {https://huggingface.co/datasets/Battam/training-data-foundation},
404
- note = {Release release-2026-11-17.3},
405
  year = {2026}
406
  }
407
  ```
@@ -436,7 +432,7 @@ GROUP BY ALL ORDER BY hit_class, scope;
436
  - **形式:** 一个来源的材料的形态,一个标识,例如 `spreadsheets` 或 `test-suites`(目录列 `form`,`tools/fetch.py` 的选项 `--form`)。
437
  - **训练阶段:** 材料能用于哪种训练,由代码仓库的阶段表 `catalog/stages.yaml` 决定:预训练和中训练用语料库的行,后训练用材料集的单元(见[训练阶段表怎样计数](#manual/stage-counting))。
438
  - **默认配置:** `tools/fetch.py` 在没有选项放宽时应用的规则:去掉重复的副本、与基准测试相符或还没有与基准测试清单比对的行、记录为英语以外语言的行,以及大于 20 MB 的文件;
439
- 任何许可证的行和标为带有个人数据的行都会进来,除非 `--training-only` 或 `--no-personal-data` 把它们去掉([docs/for-agents.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/for-agents.zh.md))。
440
 
441
  每一行都带有 `unit_id`:在材料集中,是它所属单元的键;
442
  在语料库中,是该行自己的键(它的 `uri`,字节范围再接 `@<range_offset>`,存档成员再接 `!/<member_path>`),`tools/fetch.py` 把语料库一行的文件放进以它命名的文件夹。
@@ -446,8 +442,8 @@ GROUP BY ALL ORDER BY hit_class, scope;
446
  <details id="manual/numbers">
447
  <summary>本手册的数字从哪来</summary>
448
 
449
- 本手册的数字和命令输出是部署时填入的,取自索引提交 `67d759f932870a5fa29a98264a96e04f9fc579f7`(发布标签 `release-2026-11-17.3`)。
450
- 本次发布有 1,868 个材料集,共 4,635 个单元,分在 14 个合集,以及 139 个语料库,共 1,198,791,875 行,指向去重后共 4.14 PB 的内容,与文件比对过大小的 35,581 行中有 99.3% 一致。
451
 
452
  </details>
453
 
@@ -554,7 +550,7 @@ GROUP BY ALL ORDER BY hit_class, scope;
554
 
555
  <h4 id="manual/workbooks-5">5. 到「获取数据」,保存选择清单</h4>
556
 
557
- **做**:点顶部「获取数据」,在「保存这次选择」里点「下载选择清单(JSON)」,把 `training-data-foundation-selection-67d759f.json` 放进取件目录。
558
 
559
  **看到**:标题「从 51 个材料集中获取全部单元」。
560
  清单记着版本、筛选和来源:
@@ -563,7 +559,7 @@ GROUP BY ALL ORDER BY hit_class, scope;
563
  {
564
  "format": "training-data-foundation-selection/1",
565
  "dataset": "Battam/training-data-foundation",
566
- "revision": "release-2026-11-17.3",
567
  "filters": {
568
  "collection": "A",
569
  "train": "yes",
@@ -587,9 +583,9 @@ GROUP BY ALL ORDER BY hit_class, scope;
587
  **做**:在清单所在目录跑「按文件再取一次」那条命令,加上 `--limit 220`(一共 220 个单元,固定顺序;比 200 多取一些留余量,有的原站会失效),`--out ./data` 换成 `--out ./take`:
588
 
589
  ```sh
590
- uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-17.3/tools/fetch.py \
591
- --selection training-data-foundation-selection-67d759f.json \
592
- --revision release-2026-11-17.3 \
593
  --ext xlsx \
594
  --ext xlsm \
595
  --ext xls \
@@ -597,29 +593,29 @@ uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/r
597
  --out ./take
598
  ```
599
 
600
- 下面的输出用的清单只留了这些材料集中本次发布的取回核对每一行都读过、都取到的 46 个(列 `fetch_check`:level 为 `all`,`rows` 与 `files` 一样多),所以这次取回能完整结束;
601
  用整份清单时,核对之后才出问题的原站会让文件取不到,就像后面那个例子。
602
 
603
  **看到**(截短):
604
 
605
  ```text
606
- selection (--source abhishekumarr00-supply-chain-mastery ... --ext xls) in the 31 data files read: 444 units and 536 files in 46 sources (92 files of the sources themselves among the files)
607
  removed by duplicate (a duplicate copy of another row): 0
608
  removed by benchmark (matched a benchmark): 0
609
  removed by not compared (not compared with the benchmark list yet): 0
610
  removed by language (recorded in a language other than English): 12 (--any-language keeps them)
611
  removed by size (above 20 MB): 0
612
  removed by refused (refused by its site when the release's fetch check read it: HTTP 401 or 403, a login, or an empty or short body): 0
613
- kept: 432 units
614
- fetching: 220 units (--limit 220): 310 files (90 files of the sources themselves among them), 110MB
615
  ok abhishekumarr00-supply-chain-mastery workbooks/abhishekumarr00-supply-chain-mastery.xlsx: 540kB
 
616
  ok austender-ict-procurement-statistics workbooks/2016-17-austender-ict-contract-data-category-sme-and-small-participation.xlsx: 32.9kB
617
- ok australia-government-workbooks workbooks/au-mdba-data-financial-year-to-2017.xlsx: 14.9kB
618
  ...
619
- 308 files fetched and checked (110MB) into take; details in take/_meta/fetch_run.json
620
- files of units: 2 failed, 218 ok; files of the sources themselves: 90 ok
621
- run_id 20261119T170337.440634Z: 2 failed, 308 ok (lines in take/_meta/fetch_manifest.jsonl)
622
- its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('take/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261119T170337.440634Z' AND json_extract_string(json, 'status') <> 'ok'
623
  ```
624
 
625
  第一次下载之前,`removed by` 是默认配置去掉的单元和保留它们的开关,数的是 `--limit` 需要读到的那些数据文件;
@@ -635,8 +631,8 @@ failed western-australia-government-workbooks workbooks/wa-gross-regional-produc
635
  incomplete: 1 unit miss a file (the files fetched are kept; _meta/fetch_manifest.jsonl says why): ...
636
  5 files fetched and checked (1.35MB) into probe; details in probe/_meta/fetch_run.json
637
  files of units: 1 failed, 1 ok; files of the sources themselves: 4 ok
638
- run_id 20261119T170852.170747Z: 1 failed, 5 ok (lines in probe/_meta/fetch_manifest.jsonl)
639
- its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('probe/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261119T170852.170747Z' AND json_extract_string(json, 'status') <> 'ok'
640
  ```
641
 
642
  **得到**:`ok` 的文件已按记录的大小和哈希核对。
@@ -675,21 +671,25 @@ GROUP BY ALL ORDER BY source;
675
  │ excel_units │
676
  │ int64 │
677
  ├─────────────┤
678
- │ 218 │
679
  └─────────────┘
680
  ┌──────────┬───────┬───────────┐
681
  │ verified │ files │ bytes │
682
  │ boolean │ int64 │ int128 │
683
  ├──────────┼───────┼───────────┤
684
- │ true │ 308 │ 109994945 │
685
  └──────────┴───────┴───────────┘
686
- ┌──────────────────────────────────────┬───────────────────────────────────────────────┬───────┐
687
- │ source │ reason │ files │
688
- │ varchar │ varchar │ int64 │
689
- ├──────────────────────────────────────┼───────────────────────────────────────────────┼───────┤
690
- │ austender-ict-procurement-statistics │ https://data.gov.au/data/dataset/67c0df26-9e6 │ 1 │
691
- │ data-gov-uk-workbooks │ size differs: expected 173435, got 172904 │ 1 │
692
- └──────────────────────────────────────┴───────────────────────────────────────────────┴───────┘
 
 
 
 
693
  ```
694
 
695
  **得到**:1 是盘上的 Excel 单元数;
@@ -707,7 +707,7 @@ GROUP BY ALL ORDER BY source;
707
  **看到**(截短):
708
 
709
  ```text
710
- Dataset commit 67d759f932870a5fa29a98264a96e04f9fc579f7: https://huggingface.co/datasets/Battam/training-data-foundation/tree/67d759f932870a5fa29a98264a96e04f9fc579f7
711
  ...
712
  - Source: `austender-ict-procurement-statistics`
713
  - License: CC-BY-3.0-AU
@@ -740,7 +740,7 @@ Dataset commit 67d759f932870a5fa29a98264a96e04f9fc579f7: https://huggingface.co/
740
 
741
  ```sql
742
  SELECT string_agg('--source ' || source, ' ' ORDER BY source) AS options
743
- FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-17.3/meta/catalog.parquet'
744
  WHERE kind = 'material_set' AND collection = 'B'
745
  AND license.tier = 'share-alike';
746
  ```
@@ -749,7 +749,7 @@ WHERE kind = 'material_set' AND collection = 'B'
749
  --source adflib-adf-deleted --source adflib-adf-malformed --source btrfs-progs-convert-needs-recovery --source btrfs-progs-fsck-raw-images --source btrfs-progs-fuzz-images --source dfir-ntfs-fat-deleted --source dftt-deleted-files --source dftt-partition-tables --source dissect-hypervisor-disk-fixtures --source dosfstools-fsck-cases --source e2fsprogs-fsck-cases --source exfatprogs-fsck-cases --source libcdio-iso-malformed --source nist-cfreds-dfr-exfat --source ntfs-corrupted-images --source oe-ext4-hostile-fixtures --source qemu-iotests-sample-images
750
  ```
751
 
752
- 接在 `fetch.py --revision release-2026-11-17.3` 后面。
753
  只读目录表,别整个下载 `meta/`。
754
 
755
  </details>
@@ -763,8 +763,8 @@ WHERE kind = 'material_set' AND collection = 'B'
763
  ![挑选三个磁盘镜像材料集后的「获取数据」](S09-zh.png)
764
 
765
  ```sh
766
- uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-17.3/tools/fetch.py \
767
- --revision release-2026-11-17.3 \
768
  --source dosfstools-fsck-cases \
769
  --source e2fsprogs-fsck-cases \
770
  --source exfatprogs-fsck-cases \
@@ -779,7 +779,7 @@ ok dosfstools-fsck-cases README.md: 3.32kB
779
  ok exfatprogs-fsck-cases cases/bad_bitmap/exfat.img: 5.24MB
780
  59 files fetched and checked (110MB) into data; details in data/_meta/fetch_run.json
781
  files of units: 52 ok; files of the sources themselves: 7 ok
782
- run_id 20261119T170900.067900Z: 59 ok (lines in data/_meta/fetch_manifest.jsonl)
783
  ```
784
 
785
  exFAT 镜像在原站是 `exfat.img.tar.xz`,脚本解出后再按单元自己的 SHA-256 核对,盘上只留镜像。
@@ -822,7 +822,7 @@ Pass 3: Checking directory connectivity
822
 
823
  ```sql
824
  SELECT contamination.level AS level, count(*) AS material_sets, sum(units) AS units
825
- FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-17.3/meta/catalog.parquet'
826
  WHERE kind = 'material_set'
827
  AND list_has_any(top_types, ['docx', 'xlsx', 'pptx', 'pdf'])
828
  GROUP BY ALL;
@@ -842,8 +842,8 @@ GROUP BY ALL;
842
  二,取回挑中的来源,看第一次下载之前打印的 `removed by benchmark` 和 `removed by not compared`(输出截短):
843
 
844
  ```sh
845
- uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-17.3/tools/fetch.py \
846
- --revision release-2026-11-17.3 \
847
  --source python-docx-acceptance-test-files \
848
  --source python-pptx-acceptance-test-files \
849
  --source docling-docx-groundtruth \
@@ -870,7 +870,7 @@ fetching: 48 units: 56 files (8 files of the sources themselves among them), 25.
870
  ```sql
871
  SELECT o.bench, o.hit_class, count(*) AS files
872
  FROM read_json_auto('office3/_meta/fetch_manifest.jsonl') AS f
873
- JOIN 'hf://datasets/Battam/training-data-foundation@release-2026-11-17.3/meta/bench_overlap.parquet' AS o
874
  ON o.source = f.source AND o.uri = f.uri
875
  WHERE f.status = 'ok'
876
  GROUP BY ALL;
@@ -884,7 +884,7 @@ GROUP BY ALL;
884
  0 rows
885
  ```
886
 
887
- GDPval 在比对清单 `meta/benchmarks.parquet` 里(220 道题),这一版比对的是 2026-11-08 的键。
888
  换了格式或版本、内容相近而字节不同的文件,只有保留原地址时才查得出:
889
  每个键都是精确比对(`docs/fields.zh.md` 的「基准测试重叠类别」)。
890
  拿 GDPval 做评测的话,挑到的文件再跟它的参考文件比一下内容。
@@ -901,7 +901,7 @@ GDPval 在比对清单 `meta/benchmarks.parquet` 里(220 道题),这一版
901
  <summary>只存地址,不存文件</summary>
902
 
903
  文件留在原处、按原许可使用,索引只记地址、大小、哈希和许可证,所以索引本身能以 CC0 1.0 公开。
904
- 规模也只允许这样:整个索引指向的文件共 4.14 PB(同一份内容只算一次),任务材料只占 2.87 GB。
905
  代价是原站会变([完整示例第 6 步](#manual/workbooks-6)就碰到拦截页和要登录的),所以取回后要核对。
906
 
907
  </details>
@@ -962,7 +962,7 @@ GDPval 在比对清单 `meta/benchmarks.parquet` 里(220 道题),这一版
962
  - **收录**产生材料集。
963
  它的候选是检索为某个合集的任务类别在上游找到的作品,以及用 `tools/fetch.py`(`--where` 和 `--sample`)选出的一组语料库行中的单元,这些单元由下载工具取回,并按记录的大小和 sha256 校验过。
964
  候选的指针事实成立时才收录:有下载地址,记录了大小和 sha256,记录了许可证,没有法律封锁,没有发现事实有误,内容也不在索引中;
965
- 未收录的每个候选都连同原因列在 `meta/not_included.parquet` 中([docs/access.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/access.zh.md))。
966
  - **收录添加的内容:** 把候选的文件作为一个单元并给出它的 `unit_id`,材料集的 README.md 和 LICENSE,它的合集(它的任务类别所属的合集),它的形式,它的上游,以及语言(`language`)、`robots` 和使用条款(`terms`)等标签。
967
  之后采集步骤再次取回每个单元的每个文件,并在材料集发布之前校验它的 sha256。
968
  - 由语料库行做成的材料集是一个独立的来源,与那个语料库分开:同一个文件既是语料库的一行,又是一个单元的一个文件,所以两层的计数从不相加;
@@ -990,10 +990,10 @@ GDPval 在比对清单 `meta/benchmarks.parquet` 里(220 道题),这一版
990
  发布为材料集的每个单元和语料库的每一行记录这些字段,并记录它按以下顺序通过了各阶段共用规则中的几条:基准测试规则(与公开基准测试任务相符的行被去掉)、还没有与基准测试清单比对的行的规则和去重(`meta/stage_fields.parquet`);
991
  每个阶段在这些规则之前和每条规则之后统计符合它的条件的材料,最后一条规则之后的计数就是它能用的材料;
992
  数据页在每个阶段那一块下面显示这几步。
993
- 没有任何阶段取用的部分按层、按原因统计,在 [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/meta/stage_figures.json) 的 `no_stage` 中:不满足任何阶段条件的、被某条规则去掉的,以及目录里有、阶段字段里还没有的(尚未计数:发布的阶段字段是在更早一次发布的文件上计数的);
994
  所以后训练的单元数和材料集数加上未归入任何阶段的,就是全部材料集的单元数和材料集数,数据页在各阶段下面就是这样显示的。
995
  训练许可和个人数据标记是每一行的标签,既不是任何阶段的条件,也不是规则。
996
- 数据集卡片显示每个阶段的计数、其中有多少允许训练,以及它在每个顶层领域下保留的部分([`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/meta/stage_figures.json) 中的 `by_domain`)。
997
  这次发布的各张表:[每个训练阶段能用多少](#manual/stage-tables)。
998
 
999
  </details>
@@ -1004,10 +1004,10 @@ GDPval 在比对清单 `meta/benchmarks.parquet` 里(220 道题),这一版
1004
  - **数据采集:** 行从每个来源的公开列表、API 和存档中采集,加入时即校验:
1005
  地址必须能访问,大小和哈希值会重新取回并比对。
1006
  - **发布前的检查:** 每个来源都记录了许可证并归入一个等级,个人信息从样本文件中判读,各行与公开基准测试比对;
1007
- 复制了公开基准测试的行会被移除,不满足某项要求的单元会连同原因一起列出:[docs/access.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/docs/access.zh.md)。
1008
  - **发布:** 每次发布是一个带有自己标签的提交;
1009
  数据集卡片、`docs/figures/` 下它的图、`docs/` 下的页面、`cards/*.md`、`meta/catalog.parquet`、`meta/croissant.json`、`meta/size_figures.json` 和 `meta/stage_figures.json` 由同一个提交生成,因此数字彼此一致,本手册则在部署数据页时从这个提交填入。
1010
- 卡片的每个数字和每张图都读自 [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/meta/stage_figures.json),数据集各页面和本手册各表的其他计数和大小读自 [`meta/size_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-17.3/meta/size_figures.json),每个数在那里为这次发布只算一次。
1011
  - **中文版本:** 中文卡片、它的页面和中文手册各表显示的每个名称和描述,都由语言模型对每段文字翻译一次,按英文原文的 sha256 保存在 `meta/translations.parquet` 中。
1012
 
1013
  </details>
 
12
 
13
  <h2 id="manual/guides">指南</h2>
14
 
15
+ 每条一个目标,命令都钉在 `release-2026-11-18.1`。
16
 
17
  <h3 id="manual/take">按需求取回文件</h3>
18
 
 
23
  3. 在那个目录里用 [uv](https://docs.astral.sh/uv/) 跑「按文件再取一次」那条命令:
24
 
25
  ```sh
26
+ uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-18.1/tools/fetch.py \
27
+ --selection training-data-foundation-selection-068f7db.json \
28
+ --revision release-2026-11-18.1 \
29
  --out ./data
30
  ```
31
 
 
41
  ```sh
42
  uvx --from duckdb-cli duckdb -c "
43
  SELECT source, collection, title, units, files, top_types, license.tier AS license_tier, needs_auth
44
+ FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-18.1/meta/catalog.parquet'
45
  WHERE kind = 'material_set' AND needs_auth = 'no' AND license.tier IN ('permissive', 'share-alike')
46
  ORDER BY collection, units DESC"
47
  ```
 
55
  要去掉许可不允许随附分发的文件和标为带有个人数据的行,加两个选项:
56
 
57
  ```sh
58
+ uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-18.1/tools/fetch.py \
59
+ --selection training-data-foundation-selection-068f7db.json \
60
+ --revision release-2026-11-18.1 \
61
  --training-only \
62
  --no-personal-data \
63
  --out ./data
 
128
  读不了索引或名字不在目录表里为 2,例如来源名写错时:
129
 
130
  ```text
131
+ error: --source dosfstools-fsk: no such source in meta/catalog.parquet at commit 67d759f932870a5fa29a98264a96e04f9fc579f7; closest: dosfstools-fsck-cases
132
  ```
133
 
134
  </details>
 
136
  <details id="manual/pin">
137
  <summary>钉住发布版本取</summary>
138
 
139
+ 页面给的命令把脚本网址和 `--revision` 都钉在 `release-2026-11-18.1`,脚本首行打印对应的提交:
140
 
141
  ```text
142
+ reading hf://datasets/Battam/training-data-foundation@67d759f932870a5fa29a98264a96e04f9fc579f7 (commit 67d759f932870a5fa29a98264a96e04f9fc579f7); pass --revision 67d759f932870a5fa29a98264a96e04f9fc579f7 to select the same rows later
143
  ```
144
 
145
  日后用 `--revision <提交号>`、同一个标签或选择清单,取到的就是同样的文件。
 
211
 
212
  ```sql
213
  SELECT hit_class, scope, count(*) AS rows
214
+ FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-18.1/meta/bench_overlap.parquet'
215
  GROUP BY ALL ORDER BY hit_class, scope;
216
  ```
217
 
218
  ```text
219
+ ┌───────────────���────────┬─────────┬───────┐
220
+ │ hit_class │ scope │ rows │
221
+ │ varchar │ varchar │ int64 │
222
+ ├────────────────────────┼─────────┼───────┤
223
+ │ base_image │ row │ 146 │
224
+ │ build_dependency │ row │ 2784 │
225
+ │ data_address │ row │ 1771 │
226
+ │ generic_text │ row │ 1226 │
227
+ │ reference_or_namespace │ row │ 422 │
228
+ │ third_party_package │ row │ 5 │
229
+ │ trivial_small │ row │ 6907 │
230
+ └────────────────────────┴─────────┴───────┘
 
 
 
 
231
  ```
232
 
233
  `meta/bench_checked.parquet` 记哪些数据文件比对过;
 
244
 
245
  | 想做的事 | 去读 |
246
  |---|---|
247
+ | 查看每个行字段和目录的每一列 | [docs/fields.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/fields.zh.md) |
248
+ | 按领域查看每个材料集和每个语料库,以及它的计数、大小、许可证等级和登录要求 | [docs/sources.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/sources.zh.md) 及其列出的领域页面 |
249
+ | 查看哪些没有收录、为什么,以及哪些来源需要登录 | [docs/access.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/access.zh.md) |
250
+ | 用这些文件构建任务,并把智能体不该看到的内容挡在它的环境之外 | [docs/for-agents.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/for-agents.zh.md) |
251
+ | 查看每次发布及其改动 | [CHANGELOG.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/CHANGELOG.md) |
252
+ | 以 Croissant 元数据读取本数据集 | [由 Hub 生成的 Croissant](https://huggingface.co/api/datasets/Battam/training-data-foundation/croissant);[`meta/croissant.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/meta/croissant.json) 描述目录和每个来源 |
253
  | 浏览目录,每个材料集或语料库一行,带有它的 `kind` 和 `collection` | [数据集查看器中的 `catalog` 子集](https://huggingface.co/datasets/Battam/training-data-foundation/viewer/catalog) |
254
  | 在浏览器里查询目录;它按发布原样列出每个来源,不应用 `tools/fetch.py` 的默认配置,命令才应用它 | [SQL 控制台](https://huggingface.co/datasets/Battam/training-data-foundation?sql_console=true&sql=--+every+source+of+the+catalog+as+published%3A+the+default+profile+of+tools%2Ffetch.py+is+not+applied+here%0ASELECT+source%2C+kind%2C+collection%2C+title%2C+units%2C+files%0AFROM+train%0AORDER+BY+kind%2C+collection%2C+files+DESC%0ALIMIT+50) |
255
  | 观看本索引的使用示例视频,用页面的语言,带字幕 | [数据页上的使用示例视频](https://huggingface.co/spaces/Battam/training-data-foundation#usage-video) |
256
+ | 核对数据集卡片和这里各表的每个数字 | [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/meta/stage_figures.json) 和 [`meta/size_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/meta/size_figures.json) |
257
 
258
  `data/` 下数据文件的每一行指向一个文件或一条记录(见[术语](#manual/glossary)中的「行」);
259
  目录的 `data_files` 列列出每个来源的文件,单个材料集或语料库就从这些文件读取,见数据集卡片中的查询和 `tools/fetch.py`。
 
304
  这一声明不延及它所指向的文件。
305
  - `media/` 下的文件(使用示例视频及其字幕)和 `examples/` 下的文件(完整示例)同样以 CC0 1.0 发布。
306
  - 每个文件保留其来源的许可证:见每一行的许可证列(没有自己许可证的行沿用所在批次的许可证,即 `meta/sources.json` 中的 `batches[].license`)。
307
+ - 每个来源的等级:在它所属领域的页面上,这些页面由 [docs/sources.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/sources.zh.md) 列出。
308
  - 许可证等级和原因码由 ScanCode LicenseDB 的许可证类别算出,它以 CC-BY-4.0 许可;
309
+ 它的署名:[`NOTICE`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/NOTICE)。
310
 
311
  <h4 id="manual/personal">个人与敏感信息</h4>
312
 
 
322
  | `none_known` | 3 | 0 |
323
  | `present` | 14 | 0 |
324
  | `suspected` | 1 | 0 |
325
+ | 尚未判读 | 121 | 1,903 |
326
  | 每个已判读的来源读过的样本文件数 | 9 到 30 | 无 |
327
  | 读取样本文件的日期 | 2026-10-04 和 2026-10-05 | 无 |
328
 
 
330
 
331
  | 来源 | 语料库 | 任务材料 |
332
  |---|---:|---:|
333
+ | 每一行都有记录的大小 | 139 个中的 92 个 | 1,903 个中的 1,903 个 |
334
+ | 已从样本文件读出摘要 | 139 个中的 0 个 | 1,903 个中的 0 个 |
335
+ | 已从样本文件读出个人信息 | 139 个中的 18 个 | 1,903 个中的 0 个 |
336
+ | 仍在采集中 | 139 个中的 25 个 | 1,903 个中的 0 个 |
337
 
338
  - 来源没有公布大小的行显示为未知,不计入大小合计,也从不按 0 计。
339
  - 尚未判读的字段会注明;
 
352
 
353
  <h4 id="manual/releases">发布</h4>
354
 
355
+ - 最新发布:`release-2026-11-18.1`(其最新的 CHANGELOG 条目日期为 2026-11-18)。
356
+ - 各次发布列在 [CHANGELOG.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/CHANGELOG.md) 中;
357
+ 每次发布是一个带有自己发布标签的提交(本次为 [`release-2026-11-18.1`](https://huggingface.co/datasets/Battam/training-data-foundation/tree/release-2026-11-18.1)),
358
  因此任何较早的状态都可以在它的标签处读到。
359
  - `meta/projection.json` 记录发布标签,以及生成数据集卡片及其页面的程序和模板的版本。
360
 
 
362
 
363
  | 时间窗口 | 天数 | 有发布的天数 |
364
  |---|---:|---:|
365
+ | 2026-10-20 到 2026-11-18 | 30 | 23 |
366
 
367
  <h4 id="manual/removal">移除请求</h4>
368
 
 
397
  @misc{training_data_foundation,
398
  title = {training-data-foundation: an index of public materials for building agent environments},
399
  howpublished = {https://huggingface.co/datasets/Battam/training-data-foundation},
400
+ note = {Release release-2026-11-18.1},
401
  year = {2026}
402
  }
403
  ```
 
432
  - **形式:** 一个来源的材料的形态,一个标识,例如 `spreadsheets` 或 `test-suites`(目录列 `form`,`tools/fetch.py` 的选项 `--form`)。
433
  - **训练阶段:** 材料能用于哪种训练,由代码仓库的阶段表 `catalog/stages.yaml` 决定:预训练和中训练用语料库的行,后训练用材料集的单元(见[训练阶段表怎样计数](#manual/stage-counting))。
434
  - **默认配置:** `tools/fetch.py` 在没有选项放宽时应用的规则:去掉重复的副本、与基准测试相符或还没有与基准测试清单比对的行、记录为英语以外语言的行,以及大于 20 MB 的文件;
435
+ 任何许可证的行和标为带有个人数据的行都会进来,除非 `--training-only` 或 `--no-personal-data` 把它们去掉([docs/for-agents.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/for-agents.zh.md))。
436
 
437
  每一行都带有 `unit_id`:在材料集中,是它所属单元的键;
438
  在语料库中,是该行自己的键(它的 `uri`,字节范围再接 `@<range_offset>`,存档成员再接 `!/<member_path>`),`tools/fetch.py` 把语料库一行的文件放进以它命名的文件夹。
 
442
  <details id="manual/numbers">
443
  <summary>本手册的数字从哪来</summary>
444
 
445
+ 本手册的数字和命令输出是部署时填入的,取自索引提交 `068f7db6f7b0067147fac578c9aab011b7a18015`(发布标签 `release-2026-11-18.1`)。
446
+ 本次发布有 1,903 个材料集,共 4,695 个单元,分在 14 个合集,以及 139 个语料库,共 1,201,757,382 行,指向去重后共 4.14 PB 的内容,与文件比对过大小的 35,744 行中有 99.3% 一致。
447
 
448
  </details>
449
 
 
550
 
551
  <h4 id="manual/workbooks-5">5. 到「获取数据」,保存选择清单</h4>
552
 
553
+ **做**:点顶部「获取数据」,在「保存这次选择」里点「下载选择清单(JSON)」,把 `training-data-foundation-selection-068f7db.json` 放进取件目录。
554
 
555
  **看到**:标题「从 51 个材料集中获取全部单元」。
556
  清单记着版本、筛选和来源:
 
559
  {
560
  "format": "training-data-foundation-selection/1",
561
  "dataset": "Battam/training-data-foundation",
562
+ "revision": "release-2026-11-18.1",
563
  "filters": {
564
  "collection": "A",
565
  "train": "yes",
 
583
  **做**:在清单所在目录跑「按文件再取一次」那条命令,加上 `--limit 220`(一共 220 个单元,固定顺序;比 200 多取一些留余量,有的原站会失效),`--out ./data` 换成 `--out ./take`:
584
 
585
  ```sh
586
+ uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-18.1/tools/fetch.py \
587
+ --selection training-data-foundation-selection-068f7db.json \
588
+ --revision release-2026-11-18.1 \
589
  --ext xlsx \
590
  --ext xlsm \
591
  --ext xls \
 
593
  --out ./take
594
  ```
595
 
596
+ 下面的输出用的清单只留了这些材料集中本次发布的取回核对每一行都读过、都取到的 44 个(列 `fetch_check`:level 为 `all`,`rows` 与 `files` 一样多),所以这次取回能完整结束;
597
  用整份清单时,核对之后才出问题的原站会让文件取不到,就像后面那个例子。
598
 
599
  **看到**(截短):
600
 
601
  ```text
602
+ selection (--source abhishekumarr00-supply-chain-mastery ... --ext xls) in the 29 data files read: 434 units and 522 files in 44 sources (88 files of the sources themselves among the files)
603
  removed by duplicate (a duplicate copy of another row): 0
604
  removed by benchmark (matched a benchmark): 0
605
  removed by not compared (not compared with the benchmark list yet): 0
606
  removed by language (recorded in a language other than English): 12 (--any-language keeps them)
607
  removed by size (above 20 MB): 0
608
  removed by refused (refused by its site when the release's fetch check read it: HTTP 401 or 403, a login, or an empty or short body): 0
609
+ kept: 422 units
610
+ fetching: 220 units (--limit 220): 306 files (86 files of the sources themselves among them), 109MB
611
  ok abhishekumarr00-supply-chain-mastery workbooks/abhishekumarr00-supply-chain-mastery.xlsx: 540kB
612
+ ok austender-ict-procurement-statistics workbooks/201314austenderictcontractstatistcs.xlsx: 26.3kB
613
  ok austender-ict-procurement-statistics workbooks/2016-17-austender-ict-contract-data-category-sme-and-small-participation.xlsx: 32.9kB
 
614
  ...
615
+ 296 files fetched and checked (107MB) into take; details in take/_meta/fetch_run.json
616
+ files of units: 10 failed, 210 ok; files of the sources themselves: 86 ok
617
+ run_id 20261119T232919.844870Z: 10 failed, 296 ok (lines in take/_meta/fetch_manifest.jsonl)
618
+ its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('take/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261119T232919.844870Z' AND json_extract_string(json, 'status') <> 'ok'
619
  ```
620
 
621
  第一次下载之前,`removed by` 是默认配置去掉的单元和保留它们的开关,数的是 `--limit` 需要读到的那些数据文件;
 
631
  incomplete: 1 unit miss a file (the files fetched are kept; _meta/fetch_manifest.jsonl says why): ...
632
  5 files fetched and checked (1.35MB) into probe; details in probe/_meta/fetch_run.json
633
  files of units: 1 failed, 1 ok; files of the sources themselves: 4 ok
634
+ run_id 20261119T233901.851142Z: 1 failed, 5 ok (lines in probe/_meta/fetch_manifest.jsonl)
635
+ its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('probe/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261119T233901.851142Z' AND json_extract_string(json, 'status') <> 'ok'
636
  ```
637
 
638
  **得到**:`ok` 的文件已按记录的大小和哈希核对。
 
671
  │ excel_units │
672
  │ int64 │
673
  ├─────────────┤
674
+ │ 210 │
675
  └─────────────┘
676
  ┌──────────┬───────┬───────────┐
677
  │ verified │ files │ bytes │
678
  │ boolean │ int64 │ int128 │
679
  ├──────────┼───────┼───────────┤
680
+ │ true │ 296 │ 107426264 │
681
  └──────────┴───────┴───────────┘
682
+ ┌──────────────────────────────┬───────────────────────────────────────────────┬───────┐
683
+ │ source │ reason │ files │
684
+ │ varchar │ varchar │ int64 │
685
+ ├──────────────────────────────┼───────────────────────────────────────────────┼───────┤
686
+ │ data-gov-uk-workbooks │ size differs: expected 173435, got 172904 │ 1 │
687
+ │ ontario-government-workbooks │ https://data.ontario.ca/dataset/e30dc044-5f75 │ 2 │
688
+ │ ontario-government-workbooks │ https://data.ontario.ca/dataset/ec8057a6-defc │ 1 │
689
+ │ ontario-government-workbooks │ https://data.ontario.ca/dataset/d151af6e-045a │ 2 │
690
+ │ ontario-government-workbooks │ https://data.ontario.ca/dataset/3d652a80-7936 │ 1 │
691
+ │ ontario-government-workbooks │ https://data.ontario.ca/dataset/e12b6c1b-8319 │ 3 │
692
+ └──────────────────────────────┴───────────────────────────────────────────────┴───────┘
693
  ```
694
 
695
  **得到**:1 是盘上的 Excel 单元数;
 
707
  **看到**(截短):
708
 
709
  ```text
710
+ Dataset commit 068f7db6f7b0067147fac578c9aab011b7a18015: https://huggingface.co/datasets/Battam/training-data-foundation/tree/068f7db6f7b0067147fac578c9aab011b7a18015
711
  ...
712
  - Source: `austender-ict-procurement-statistics`
713
  - License: CC-BY-3.0-AU
 
740
 
741
  ```sql
742
  SELECT string_agg('--source ' || source, ' ' ORDER BY source) AS options
743
+ FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-18.1/meta/catalog.parquet'
744
  WHERE kind = 'material_set' AND collection = 'B'
745
  AND license.tier = 'share-alike';
746
  ```
 
749
  --source adflib-adf-deleted --source adflib-adf-malformed --source btrfs-progs-convert-needs-recovery --source btrfs-progs-fsck-raw-images --source btrfs-progs-fuzz-images --source dfir-ntfs-fat-deleted --source dftt-deleted-files --source dftt-partition-tables --source dissect-hypervisor-disk-fixtures --source dosfstools-fsck-cases --source e2fsprogs-fsck-cases --source exfatprogs-fsck-cases --source libcdio-iso-malformed --source nist-cfreds-dfr-exfat --source ntfs-corrupted-images --source oe-ext4-hostile-fixtures --source qemu-iotests-sample-images
750
  ```
751
 
752
+ 接在 `fetch.py --revision release-2026-11-18.1` 后面。
753
  只读目录表,别整个下载 `meta/`。
754
 
755
  </details>
 
763
  ![挑选三个磁盘镜像材料集后的「获取数据」](S09-zh.png)
764
 
765
  ```sh
766
+ uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-18.1/tools/fetch.py \
767
+ --revision release-2026-11-18.1 \
768
  --source dosfstools-fsck-cases \
769
  --source e2fsprogs-fsck-cases \
770
  --source exfatprogs-fsck-cases \
 
779
  ok exfatprogs-fsck-cases cases/bad_bitmap/exfat.img: 5.24MB
780
  59 files fetched and checked (110MB) into data; details in data/_meta/fetch_run.json
781
  files of units: 52 ok; files of the sources themselves: 7 ok
782
+ run_id 20261119T233930.252142Z: 59 ok (lines in data/_meta/fetch_manifest.jsonl)
783
  ```
784
 
785
  exFAT 镜像在原站是 `exfat.img.tar.xz`,脚本解出后再按单元自己的 SHA-256 核对,盘上只留镜像。
 
822
 
823
  ```sql
824
  SELECT contamination.level AS level, count(*) AS material_sets, sum(units) AS units
825
+ FROM 'hf://datasets/Battam/training-data-foundation@release-2026-11-18.1/meta/catalog.parquet'
826
  WHERE kind = 'material_set'
827
  AND list_has_any(top_types, ['docx', 'xlsx', 'pptx', 'pdf'])
828
  GROUP BY ALL;
 
842
  二,取回挑中的来源,看第一次下载之前打印的 `removed by benchmark` 和 `removed by not compared`(输出截短):
843
 
844
  ```sh
845
+ uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-18.1/tools/fetch.py \
846
+ --revision release-2026-11-18.1 \
847
  --source python-docx-acceptance-test-files \
848
  --source python-pptx-acceptance-test-files \
849
  --source docling-docx-groundtruth \
 
870
  ```sql
871
  SELECT o.bench, o.hit_class, count(*) AS files
872
  FROM read_json_auto('office3/_meta/fetch_manifest.jsonl') AS f
873
+ JOIN 'hf://datasets/Battam/training-data-foundation@release-2026-11-18.1/meta/bench_overlap.parquet' AS o
874
  ON o.source = f.source AND o.uri = f.uri
875
  WHERE f.status = 'ok'
876
  GROUP BY ALL;
 
884
  0 rows
885
  ```
886
 
887
+ GDPval 在比对清单 `meta/benchmarks.parquet` 里(220 道题),这一版比对的是 2026-11-12 的键。
888
  换了格式或版本、内容相近而字节不同的文件,只有保留原地址时才查得出:
889
  每个键都是精确比对(`docs/fields.zh.md` 的「基准测试重叠类别」)。
890
  拿 GDPval 做评测的话,挑到的文件再跟它的参考文件比一下内容。
 
901
  <summary>只存地址,不存文件</summary>
902
 
903
  文件留在原处、按原许可使用,索引只记地址、大小、哈希和许可证,所以索引本身能以 CC0 1.0 公开。
904
+ 规模也只允许这样:整个索引指向的文件共 4.14 PB(同一份内容只算一次),任务材料只占 4.63 GB。
905
  代价是原站会变([完整示例第 6 步](#manual/workbooks-6)就碰到拦截页和要登录的),所以取回后要核对。
906
 
907
  </details>
 
962
  - **收录**产生材料集。
963
  它的候选是检索为某个合集的任务类别在上游找到的作品,以及用 `tools/fetch.py`(`--where` 和 `--sample`)选出的一组语料库行中的单元,这些单元由下载工具取回,并按记录的大小和 sha256 校验过。
964
  候选的指针事实成立时才收录:有下载地址,记录了大小和 sha256,记录了许可证,没有法律封锁,没有发现事实有误,内容也不在索引中;
965
+ 未收录的每个候选都连同原因列在 `meta/not_included.parquet` 中([docs/access.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/access.zh.md))。
966
  - **收录添加的内容:** 把候选的文件作为一个单元并给出它的 `unit_id`,材料集的 README.md 和 LICENSE,它的合集(它的任务类别所属的合集),它的形式,它的上游,以及语言(`language`)、`robots` 和使用条款(`terms`)等标签。
967
  之后采集步骤再次取回每个单元的每个文件,并在材料集发布之前校验它的 sha256。
968
  - 由语料库行做成的材料集是一个独立的来源,与那个语料库分开:同一个文件既是语料库的一行,又是一个单元的一个文件,所以两层的计数从不相加;
 
990
  发布为材料集的每个单元和语料库的每一行记录这些字段,并记录它按以下顺序通过了各阶段共用规则中的几条:基准测试规则(与公开基准测试任务相符的行被去掉)、还没有与基准测试清单比对的行的规则和去重(`meta/stage_fields.parquet`);
991
  每个阶段在这些规则之前和每条规则之后统计符合它的条件的材料,最后一条规则之后的计数就是它能用的材料;
992
  数据页在每个阶段那一块下面显示这几步。
993
+ 没有任何阶段取用的部分按层、按原因统计,在 [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/meta/stage_figures.json) 的 `no_stage` 中:不满足任何阶段条件的、被某条规则去掉的,以及目录里有、阶段字段里还没有的(尚未计数:发布的阶段字段是在更早一次发布的文件上计数的);
994
  所以后训练的单元数和材料集数加上未归入任何阶段的,就是全部材料集的单元数和材料集数,数据页在各阶段下面就是这样显示的。
995
  训练许可和个人数据标记是每一行的标签,既不是任何阶段的条件,也不是规则。
996
+ 数据集卡片显示每个阶段的计数、其中有多少允许训练,以及它在每个顶层领域下保留的部分([`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/meta/stage_figures.json) 中的 `by_domain`)。
997
  这次发布的各张表:[每个训练阶段能用多少](#manual/stage-tables)。
998
 
999
  </details>
 
1004
  - **数据采集:** 行从每个来源的公开列表、API 和存档中采集,加入时即校验:
1005
  地址必须能访问,大小和哈希值会重新取回并比对。
1006
  - **发布前的检查:** 每个来源都记录了许可证并归入一个等级,个人信息从样本文件中判读,各行与公开基准测试比对;
1007
+ 复制了公开基准测试的行会被移除,不满足某项要求的单元会连同原因一起列出:[docs/access.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/docs/access.zh.md)。
1008
  - **发布:** 每次发布是一个带有自己标签的提交;
1009
  数据集卡片、`docs/figures/` 下它的图、`docs/` 下的页面、`cards/*.md`、`meta/catalog.parquet`、`meta/croissant.json`、`meta/size_figures.json` 和 `meta/stage_figures.json` 由同一个提交生成,因此数字彼此一致,本手册则在部署数据页时从这个提交填入。
1010
+ 卡片的每个数字和每张图都读自 [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/meta/stage_figures.json),数据集各页面和本手册各表的其他计数和大小读自 [`meta/size_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-18.1/meta/size_figures.json),每个数在那里为这次发布只算一次。
1011
  - **中文版本:** 中文卡片、它的页面和中文手册各表显示的每个名称和描述,都由语言模型对每段文字翻译一次,按英文原文的 sha256 保存在 `meta/translations.parquet` 中。
1012
 
1013
  </details>
portal.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "commit": "80759aa55353d2848bb58d9a316edd6439092ac9",
3
  "digest": "1adc3fadbc77ba6ffea2428a6b7da80b494bd8b0af97a12b4b512bbaae84695d",
4
  "files": 29,
5
  "format": "portal-deploy/1",
6
  "funnel": "93c9d8ae26cfb409122f4cd4222359d30c31566c",
7
- "index": "67d759f932870a5fa29a98264a96e04f9fc579f7"
8
  }
 
1
  {
2
+ "commit": "d76e34af52f2f67ca9862c5669bf4850f3efee4a",
3
  "digest": "1adc3fadbc77ba6ffea2428a6b7da80b494bd8b0af97a12b4b512bbaae84695d",
4
  "files": 29,
5
  "format": "portal-deploy/1",
6
  "funnel": "93c9d8ae26cfb409122f4cd4222359d30c31566c",
7
+ "index": "068f7db6f7b0067147fac578c9aab011b7a18015"
8
  }