# Dataset notes One file per source in [`../registry.tsv`](../registry.tsv), describing what the corpus is, what we pulled, and how it was preprocessed. Numbers are a snapshot from 2026-08-19; `sanity_check.py` regenerates them in about a second. **108 sources, 143,948,230,723 URLs, 3.4 TiB on disk**, from 7.5 TiB of source data pulled over the wire. These are pre-dedup counts. Several sources are re-filterings of each other — every CC-derived corpus shares a backbone — so unique URLs will be far below the total. Two pairs are outright duplicates: `cultura`/`culturax` and `falcon`/`falcon-refinedweb` report identical row counts. ## How the pipeline works Everything is staged by [`../fetch_datasets.py`](../fetch_datasets.py): 1. **Manifest** — the file list per source, from the HF API or Common Crawl's `cc-index-table.paths.gz`, cached under `state/manifests/`. 2. **Fetch** — `xet` for files ≥1 GB (the HF Xet client hits 359 MB/s on a 24.8 GB file), plain HTTPS below that (Xet's range-GET pool is process-wide and 16 slots deep, which pinned the whole run at ~200 files/min until we bypassed it), or `range` for the one big Wikimedia dump. 3. **Project** — DuckDB writes a single `url` column as Parquet V2 + zstd-9, under an explicit `memory_limit` per worker. 4. **Delete** — the raw file is removed as soon as its URLs are extracted, so ~8 TiB of source becomes ~3.4 TiB kept. Each unit is recorded in a SQLite database (`state/units.db`), so a run resumes where it stopped and `verify` can re-check every output's Parquet metadata. ## Output format Every non-`raw` file is a single nullable `url` column: | | | |---|---| | compression | zstd level 9 | | version | Parquet V2 (`PARQUET_VERSION V2`) | | encoding | `DELTA_LENGTH_BYTE_ARRAY`, no dictionary | | row group | 1M rows | | ordering | `SIMPLE_SURT_KEY, url` | Asking DuckDB for V2 is what selects delta-length encoding and skips the dictionary — one flag, not three. But the encoding is not where the size goes. Measured on 6.7M real URLs: | | size | |---|---| | V1, unsorted | 146 MB (`PLAIN`) | | V2, unsorted | 147 MB | | V2, ordered | **74 MB** | Delta-length stores lengths, not prefixes, so it only pays once neighbouring URLs resemble each other. Ordering is the whole win; the encoding just makes it cheaper to exploit. **Two formats are on disk.** These settings arrived partway through the first staging run and existing files were deliberately not rewritten, so anything written before 2026-08-19 is Parquet V1, `PLAIN`, unsorted, and roughly twice the size. Both read identically — `read_parquet('dir/*.parquet')` does not care. ### Ordering is the compliant SURT, and it is required Files are written `ORDER BY surt(url), url`, where `surt()` comes from `surt.duckdb_extension` — a byte-exact port of `internetarchive/surt`. The secondary sort on `url` matters because `surt()` is not injective (`http`/`https` and trailing-slash variants collapse to one key), and streaming dedup depends on identical URLs being adjacent. The extension is **required**: `fetch_datasets.py` refuses to run without it. An earlier version fell back to a reversed-host SQL approximation that agreed with the reference on only 69.5% of keys, which is worse than failing — it silently yields a corpus where some files are ordered one way and others another, and nothing downstream can detect it. There was never a performance argument for the approximation either: on 6.7M URLs both produce 74 MB, at 3.19s vs 3.37s. ### Modes | mode | meaning | |---|---| | `url` | keep the source's `url` column (every nhagar set, the CC index) | | `links:COL` | scrape URLs out of a free-text column with a regex | | `sublinks` | Reddit submissions: the posted link plus URLs in the self-text | | `scan` | scrape URLs from every line of a non-Parquet file (json/csv/txt/gz) | | `raw` | keep the source file untouched (Hacker News, the Wikipedia dump) | ### URL extraction The scraping modes share one regex and one cleanup, and the details matter: - **Balanced parentheses are allowed.** Excluding `()` — the obvious choice, since markdown wraps links in them — truncates `/wiki/Mercury_(element)` at the `(`, and the trailing-punctuation trim then eats the leftover `_`, producing `/wiki/Mercury`: a different, entirely valid-looking URL. 0.2% of all URLs and 8.4% of Wikipedia URLs contain parens. - **HTML entities are decoded before trimming**, not after. Trimming first strips the `;` from a trailing `&`, leaving `&` welded into the URL. - **Trailing sentence punctuation is trimmed** (`.,;:!?"*_\``), and a closing bracket is removed only when the URL contains no opener. ## The Common Crawl index sweep 44 of the 126 published crawls have a columnar index, and all of them are in the registry as `cc--` (`CC-MAIN-2026-30` is `commoncrawl`, and `CC-MAIN-2026-25` arrives as `ccrawl-urls`). Measured cost is **~2.6 TB over the wire, ~2.1 TB on disk, ~164 B URLs** — twice the first estimate, which had been extrapolated from one unusually small crawl. Expected yield after dedup is **~65–75 B unique URLs**, and the novelty is concentrated in *recent* crawls, not old ones: 2014 contributes 19–25% new URLs while 2025 contributes 62–65%, because every derived corpus here was built from historical snapshots and none of them covers 2025. See [common-crawl-sweep.md](common-crawl-sweep.md) for the per-era table, the per-shard economics, and why `data.commoncrawl.org` throttles this job on request count rather than bandwidth. ## Worth adding Runner-ups: GDELT (billions of timestamped news URLs, free bulk); Common Crawl WAT outlinks (the *linked* URLs, including pages CC never fetched — a different population, but ~20 TB per crawl so it needs sampling); non-English Wikipedia `externallinks` (we took only enwiki, ~300 more wikis exist); OpenAlex or Crossref (~250M scholarly landing pages with a very regular structure). ## Removed after measurement A 1/1024 consistent hash sample over the whole corpus (`phase0_dedup_measure.py`) showed three pairs were the same data published twice. One of each was deleted, reclaiming **218.6 GiB with no information lost**: | removed | kept | evidence | |---|---|---| | `cultura` (184 GiB) | `culturax` | 6,330,657 of 6,330,657 sampled URLs shared | | `falcon_urls` (25 GiB) | `falcon-refinedweb_urls` | 940,620 of 940,620 shared | | `c4_urls_en` (9 GiB) | `c4_en_urls` | 355,445 of 355,445 shared; `c4_en_urls` has 340 more | `madlad-400-clean` was kept despite being 96.3% contained in `madlad-400-noisy`, because the remaining 3.7% is real and the audit itself is a quality signal. ## What the sample says about the corpus - **27.4% of the staged corpus is unique** — 143.5B URLs collapse to 39.3B. - **54% of distinct URLs appear in exactly one dataset**, so the breadth is real; the duplication is a minority of popular URLs copied across many corpora. - Some sources duplicate themselves heavily: `fineweb` 73.7% internal duplication and `redpajama-data-v2` 83.2%, both built from 80+ CC snapshots that evidently keep a URL once per snapshot. - **A single Common Crawl index crawl is 80.3% exclusive** against all 63 other datasets, and two crawls five weeks apart share only 2.3% of their URLs. The crawls are nearly disjoint, which is why the sweep is worth its 2.1 TB. - `reddit-submissions` is **96.5% exclusive** — Reddit links barely appear in web crawls at all. ## Sources considered and rejected | source | size | why not | |---|---|---| | `nhagar/CC-MAIN-*_urls` (96 sets) | 89 GiB | Despite the `_urls` name, the schema is `(crawl, url_host_name, url_count)` — per-host counts, not URLs. `sanity_check.py --preflight` now catches this class of mistake in 16s. | | `fddemarco/pushshift-reddit-comments` | 272 GiB | Bodies are pre-tokenized and lowercased (`http : / / x . com / a`); URLs are unrecoverable, and case-sensitive paths are destroyed. | | `nhagar/fineweb-edu`, `dclm-edu`, `dclm-dedup`, `zyda-2_*_crossdeduped` | ~450 GiB | Filtered subsets of corpora already staged; no URLs of their own. | | `pkgforge-security/domains`, `Eurolingua/hplt3_domains` | 1.7 TiB | Bare hostnames with no paths. | | `xinyangli/cc-full-image-urls` | 7.5 TiB | Gated — needs an access request. Worth revisiting: CC image URLs are a genuinely different distribution. | ## Datasets | dataset | rows | on disk | source | mode | |---|--:|--:|---|---| | [fineweb](fineweb.md) | 24,505,935,751 | 617.8 GiB | `nhagar/fineweb_urls` | `url` | | [hplt2.0-cleaned](hplt2-0-cleaned.md) | 10,558,904,807 | 228.5 GiB | `nhagar/hplt2.0_cleaned_urls` | `url` | | [colossal-oscar-1.0](colossal-oscar-1-0.md) | 10,332,304,603 | 250.6 GiB | `nhagar/colossal-oscar-1.0_urls` | `url` | | [c4-multilingual](c4-multilingual.md) | 8,522,562,521 | 244.1 GiB | `nhagar/c4_urls_multilingual` | `url` | | [cultura](cultura.md) | 7,184,124,703 | 184.1 GiB | `nhagar/cultura_urls` | `url` | | [culturax](culturax.md) | 7,184,124,703 | 182.3 GiB | `nhagar/culturax_urls` | `url` | | [madlad-400-noisy](madlad-400-noisy.md) | 6,801,149,222 | 193.8 GiB | `nhagar/madlad-400_urls_noisy` | `url` | | [redpajama-data-v2](redpajama-data-v2.md) | 6,079,335,069 | 149.7 GiB | `nhagar/redpajama-data-v2_urls` | `url` | | [txt360_urls](txt360-urls.md) | 5,651,306,105 | 141.6 GiB | `nhagar/txt360_urls` | `url` | | [dolma-v1.5](dolma-v1-5.md) | 4,921,549,644 | 127.0 GiB | `nhagar/dolma_urls_v1.5` | `url` | | [hplt-v1.2](hplt-v1-2.md) | 4,651,480,080 | 60.6 GiB | `nhagar/hplt-v1.2_urls` | `url` | | [fineweb-2](fineweb-2.md) | 4,567,627,672 | 109.8 GiB | `nhagar/fineweb-2_urls` | `url` | | [zyda-2](zyda-2.md) | 4,506,333,003 | 111.6 GiB | `nhagar/zyda-2_urls` | `url` | | [dolma-v1.6](dolma-v1-6.md) | 3,731,835,146 | 92.4 GiB | `nhagar/dolma_urls_v1.6` | `url` | | [madlad-400-clean](madlad-400-clean.md) | 3,507,642,707 | 96.2 GiB | `nhagar/madlad-400_urls_clean` | `url` | | [dclm-baseline-1.0](dclm-baseline-1-0.md) | 2,949,254,346 | 72.3 GiB | `nhagar/dclm-baseline-1.0-parquet_urls` | `url` | | [olmoe-mix-0924_urls](olmoe-mix-0924-urls.md) | 2,948,096,911 | 73.5 GiB | `nhagar/olmoe-mix-0924_urls` | `url` | | [reddit-submissions](reddit-submissions.md) | 2,779,825,510 | 42.1 GiB | `open-index/arctic` | `sublinks` | | [dolma_urls_v1.7](dolma-urls-v1-7.md) | 2,673,664,597 | 66.7 GiB | `nhagar/dolma_urls_v1.7` | `url` | | [commoncrawl](commoncrawl.md) | 2,149,001,456 | 25.4 GiB | `CC-MAIN-2026-30` | `url` | | [ccrawl-urls](ccrawl-urls.md) | 2,098,491,742 | 24.8 GiB | `open-index/ccrawl-urls` | `url` | | [redpajama-data-1t_urls](redpajama-data-1t-urls.md) | 1,469,452,453 | 37.8 GiB | `nhagar/redpajama-data-1t_urls` | `url` | | [oscar-2301_urls](oscar-2301-urls.md) | 1,401,594,726 | 35.2 GiB | `nhagar/oscar-2301_urls` | `url` | | [lucie-training-dataset_urls](lucie-training-dataset-urls.md) | 1,281,707,164 | 32.2 GiB | `nhagar/lucie-training-dataset_urls` | `url` | | [oscar-2109_urls](oscar-2109-urls.md) | 1,239,027,220 | 31.0 GiB | `nhagar/oscar-2109_urls` | `url` | | [culturay_urls](culturay-urls.md) | 1,220,338,131 | 18.2 GiB | `nhagar/culturay_urls` | `url` | | [zyda_urls](zyda-urls.md) | 1,174,929,887 | 29.9 GiB | `nhagar/zyda_urls` | `url` | | [oscar-2201_urls](oscar-2201-urls.md) | 992,957,761 | 25.8 GiB | `nhagar/oscar-2201_urls` | `url` | | [falcon-refinedweb_urls](falcon-refinedweb-urls.md) | 968,000,015 | 25.0 GiB | `nhagar/falcon-refinedweb_urls` | `url` | | [falcon_urls](falcon-urls.md) | 968,000,015 | 25.1 GiB | `nhagar/falcon_urls` | `url` | | [onlysports_dataset_urls](onlysports-dataset-urls.md) | 863,989,915 | 22.9 GiB | `nhagar/onlysports_dataset_urls` | `url` | | [glotcc-v1_urls](glotcc-v1-urls.md) | 684,697,321 | 16.5 GiB | `nhagar/glotcc-v1_urls` | `url` | | [c4_urls_en.noblocklist](c4-urls-en-noblocklist.md) | 393,391,519 | 10.1 GiB | `nhagar/c4_urls_en.noblocklist` | `url` | | [fineweb2-hq_urls](fineweb2-hq-urls.md) | 380,138,261 | 9.1 GiB | `nhagar/fineweb2-hq_urls` | `url` | | [c4_en_urls](c4-en-urls.md) | 365,233,500 | 9.4 GiB | `nhagar/c4_en_urls` | `url` | | [c4_urls_en](c4-urls-en.md) | 364,868,892 | 9.4 GiB | `nhagar/c4_urls_en` | `url` | | [moscar_urls](moscar-urls.md) | 303,229,385 | 7.1 GiB | `nhagar/moscar_urls` | `url` | | [reddit-comments](reddit-comments.md) | 246,347,408 | 3.7 GiB | `open-index/arctic` | `links:body` | | [c4_urls_en.noclean](c4-urls-en-noclean.md) | 189,396,098 | 5.2 GiB | `nhagar/c4_urls_en.noclean` | `url` | | [mc4-es-sampled_urls](mc4-es-sampled-urls.md) | 150,000,000 | 4.2 GiB | `nhagar/mc4-es-sampled_urls` | `url` | | [obelics_urls](obelics-urls.md) | 141,047,697 | 4.1 GiB | `nhagar/obelics_urls` | `url` | | [fulg_urls](fulg-urls.md) | 114,679,939 | 2.5 GiB | `nhagar/fulg_urls` | `url` | | [clean_mc4_it_urls](clean-mc4-it-urls.md) | 101,631,883 | 2.8 GiB | `nhagar/clean_mc4_it_urls` | `url` | | [varta-urls](varta-urls.md) | 94,607,076 | 2.6 GiB | `rahular/varta-urls` | `scan` | | [reddit-wenknow](reddit-wenknow.md) | 80,696,485 | 1.3 GiB | `wenknow/reddit_dataset_888` | `links:text` | | [culturax-mini-nonshuffled_urls](culturax-mini-nonshuffled-urls.md) | 71,841,248 | 1.8 GiB | `nhagar/culturax-mini-nonshuffled_urls` | `url` | | [cc-filtered-urls](cc-filtered-urls.md) | 67,479,353 | 454.0 MiB | `xinyangli/cc-filtered-urls` | `scan` | | [mc4_nl_cleaned_urls](mc4-nl-cleaned-urls.md) | 64,545,895 | 1.6 GiB | `nhagar/mc4_nl_cleaned_urls` | `url` | | [hackernews](hackernews.md) | 49,268,259 | 11.5 GiB | `open-index/hacker-news` | `raw` | | [catalog_urls](catalog-urls.md) | 34,314,510 | 601.6 MiB | `nhagar/catalog_urls` | `url` | | [101_billion_arabic_words_dataset_urls](101-billion-arabic-words-dataset-urls.md) | 33,059,988 | 888.0 MiB | `nhagar/101_billion_arabic_words_dataset_urls` | `url` | | [infimm-webmath-40b_urls](infimm-webmath-40b-urls.md) | 23,739,397 | 537.5 MiB | `nhagar/infimm-webmath-40b_urls` | `url` | | [finemath_urls_3plus](finemath-urls-3plus.md) | 21,405,610 | 495.9 MiB | `nhagar/finemath_urls_3plus` | `url` | | [mc4_fi_cleaned_urls](mc4-fi-cleaned-urls.md) | 18,160,122 | 419.1 MiB | `nhagar/mc4_fi_cleaned_urls` | `url` | | [c4_urls_realnewslike](c4-urls-realnewslike.md) | 13,799,838 | 404.6 MiB | `nhagar/c4_urls_realnewslike` | `url` | | [archive-text-urls](archive-text-urls.md) | 12,395,236 | 113.5 MiB | `Navanjana/ARCHIVE-TEXT-URLS` | `scan` | | [crawlpt_dedup_urls](crawlpt-dedup-urls.md) | 10,888,966 | 264.7 MiB | `nhagar/crawlpt_dedup_urls` | `url` | | [finemath_urls_4plus](finemath-urls-4plus.md) | 6,699,493 | 145.9 MiB | `nhagar/finemath_urls_4plus` | `url` | | [open-web-math_urls](open-web-math-urls.md) | 6,315,233 | 143.6 MiB | `nhagar/open-web-math_urls` | `url` | | [georgian-corpus_urls](georgian-corpus-urls.md) | 5,333,536 | 132.5 MiB | `nhagar/georgian-corpus_urls` | `url` | | [legal-mc4_urls](legal-mc4-urls.md) | 4,934,201 | 107.3 MiB | `nhagar/legal-mc4_urls` | `url` | | [common-crawl-sample_urls](common-crawl-sample-urls.md) | 4,342,326 | 97.7 MiB | `nhagar/common-crawl-sample_urls` | `url` | | [c4-chinese-zhtw_urls](c4-chinese-zhtw-urls.md) | 2,967,556 | 54.3 MiB | `nhagar/c4-chinese-zhtw_urls` | `url` | | [mixturevitae-fineweb-permissive-multilingual-2m_urls](mixturevitae-fineweb-permissive-multilingual-2m-urls.md) | 2,226,907 | 34.9 MiB | `nhagar/mixturevitae-fineweb-permissive-multilingual-2m_urls` | `url` | | [wiki](wiki.md) | 0 | 0 B | `dumps.wikimedia.org` | `raw` | | [cc-2014-15](cc-2014-15.md) | 0 | 0 B | `CC-MAIN-2014-15` | `url` | | [cc-2014-23](cc-2014-23.md) | 0 | 0 B | `CC-MAIN-2014-23` | `url` | | [cc-2014-42](cc-2014-42.md) | 0 | 0 B | `CC-MAIN-2014-42` | `url` | | [cc-2015-18](cc-2015-18.md) | 0 | 0 B | `CC-MAIN-2015-18` | `url` | | [cc-2015-35](cc-2015-35.md) | 0 | 0 B | `CC-MAIN-2015-35` | `url` | | [cc-2015-48](cc-2015-48.md) | 0 | 0 B | `CC-MAIN-2015-48` | `url` | | [cc-2016-22](cc-2016-22.md) | 0 | 0 B | `CC-MAIN-2016-22` | `url` | | [cc-2016-26](cc-2016-26.md) | 0 | 0 B | `CC-MAIN-2016-26` | `url` | | [cc-2017-04](cc-2017-04.md) | 0 | 0 B | `CC-MAIN-2017-04` | `url` | | [cc-2017-17](cc-2017-17.md) | 0 | 0 B | `CC-MAIN-2017-17` | `url` | | [cc-2017-22](cc-2017-22.md) | 0 | 0 B | `CC-MAIN-2017-22` | `url` | | [cc-2017-51](cc-2017-51.md) | 0 | 0 B | `CC-MAIN-2017-51` | `url` | | [cc-2018-13](cc-2018-13.md) | 0 | 0 B | `CC-MAIN-2018-13` | `url` | | [cc-2018-26](cc-2018-26.md) | 0 | 0 B | `CC-MAIN-2018-26` | `url` | | [cc-2018-30](cc-2018-30.md) | 0 | 0 B | `CC-MAIN-2018-30` | `url` | | [cc-2018-34](cc-2018-34.md) | 0 | 0 B | `CC-MAIN-2018-34` | `url` | | [cc-2018-43](cc-2018-43.md) | 0 | 0 B | `CC-MAIN-2018-43` | `url` | | [cc-2019-39](cc-2019-39.md) | 0 | 0 B | `CC-MAIN-2019-39` | `url` | | [cc-2020-34](cc-2020-34.md) | 0 | 0 B | `CC-MAIN-2020-34` | `url` | | [cc-2020-45](cc-2020-45.md) | 0 | 0 B | `CC-MAIN-2020-45` | `url` | | [cc-2021-10](cc-2021-10.md) | 0 | 0 B | `CC-MAIN-2021-10` | `url` | | [cc-2021-17](cc-2021-17.md) | 0 | 0 B | `CC-MAIN-2021-17` | `url` | | [cc-2021-21](cc-2021-21.md) | 0 | 0 B | `CC-MAIN-2021-21` | `url` | | [cc-2021-25](cc-2021-25.md) | 0 | 0 B | `CC-MAIN-2021-25` | `url` | | [cc-2022-21](cc-2022-21.md) | 0 | 0 B | `CC-MAIN-2022-21` | `url` | | [cc-2022-27](cc-2022-27.md) | 0 | 0 B | `CC-MAIN-2022-27` | `url` | | [cc-2022-33](cc-2022-33.md) | 0 | 0 B | `CC-MAIN-2022-33` | `url` | | [cc-2022-40](cc-2022-40.md) | 0 | 0 B | `CC-MAIN-2022-40` | `url` | | [cc-2022-49](cc-2022-49.md) | 0 | 0 B | `CC-MAIN-2022-49` | `url` | | [cc-2023-06](cc-2023-06.md) | 0 | 0 B | `CC-MAIN-2023-06` | `url` | | [cc-2023-14](cc-2023-14.md) | 0 | 0 B | `CC-MAIN-2023-14` | `url` | | [cc-2023-40](cc-2023-40.md) | 0 | 0 B | `CC-MAIN-2023-40` | `url` | | [cc-2023-50](cc-2023-50.md) | 0 | 0 B | `CC-MAIN-2023-50` | `url` | | [cc-2024-10](cc-2024-10.md) | 0 | 0 B | `CC-MAIN-2024-10` | `url` | | [cc-2024-18](cc-2024-18.md) | 0 | 0 B | `CC-MAIN-2024-18` | `url` | | [cc-2024-26](cc-2024-26.md) | 0 | 0 B | `CC-MAIN-2024-26` | `url` | | [cc-2024-51](cc-2024-51.md) | 0 | 0 B | `CC-MAIN-2024-51` | `url` | | [cc-2025-05](cc-2025-05.md) | 0 | 0 B | `CC-MAIN-2025-05` | `url` | | [cc-2025-08](cc-2025-08.md) | 0 | 0 B | `CC-MAIN-2025-08` | `url` | | [cc-2025-38](cc-2025-38.md) | 0 | 0 B | `CC-MAIN-2025-38` | `url` | | [cc-2025-43](cc-2025-43.md) | 0 | 0 B | `CC-MAIN-2025-43` | `url` | | [cc-2025-47](cc-2025-47.md) | 0 | 0 B | `CC-MAIN-2025-47` | `url` | | [cc-2026-12](cc-2026-12.md) | 0 | 0 B | `CC-MAIN-2026-12` | `url` |