Datasets:
wikibooks: withhold 46 pages (3 copied or unlicensed pages and the Mentalizm book)
Browse filesAdds the ids, with one reason each, to DROPPED_PAGES["wikibooks"] in
src/rights.py: 23933 (copy of sciaga.pl), 27715 (translation under CC BY-NC
3.0), 27602 (pasted text, source and licence lost), 26962 (non-commercial
share-alike notice) and the 42 other pages of the Mentalizm book. prepare
skips them and fails if one is not reached. Rebuilt through
fetch_wikimedia.py (prepare, build_dynaword.py, attribution, datasheet):
9,112 -> 9,066 documents, 15,571,295 -> 15,313,229 tokens; the new parquet
equals the previous one minus those 46 ids. gfdl-review.json is regenerated
(none of the 46 is among its 45 documents; only source_tokens and the share
in its summary change).
Maintainer approval 2026-10-06, relayed by the coordinator.
The fixture-dump tests now pass their own (empty) drop list to prepare, so
they no longer depend on the real lists.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- artifacts/source_findings.md +41 -0
- data/wikibooks/wikibooks.attribution.jsonl +2 -2
- data/wikibooks/wikibooks.build.json +238 -5
- data/wikibooks/wikibooks.gfdl-review.json +2 -2
- data/wikibooks/wikibooks.license-evidence.json +4 -4
- data/wikibooks/wikibooks.md +11 -11
- data/wikibooks/wikibooks.parquet +2 -2
- data/wikibooks/wikibooks.stats.json +8 -8
- src/rights.py +21 -0
- src/sources.py +4 -2
- src/test_wikibooks_contract.py +23 -4
- src/test_wikimedia_contract.py +9 -8
|
@@ -2027,3 +2027,44 @@ review and not checked: `wikibooks_27716` (145 tokens) lists third-party course
|
|
| 2027 |
their licences, among them CC-BY-NC 3.0 and "All Rights Reserved"; `wikibooks_27071` (1,287
|
| 2028 |
tokens) says it was moved in 2013 from the "Wolne podręczniki" portal with its creators'
|
| 2029 |
consent and does not state the original licence. The markup residue above also stays.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2027 |
their licences, among them CC-BY-NC 3.0 and "All Rights Reserved"; `wikibooks_27071` (1,287
|
| 2028 |
tokens) says it was moved in 2013 from the "Wolne podręczniki" portal with its creators'
|
| 2029 |
consent and does not state the original licence. The markup residue above also stays.
|
| 2030 |
+
|
| 2031 |
+
## wikibooks — 46 pages withheld (update to the section above)
|
| 2032 |
+
|
| 2033 |
+
**Investigated** — 2026-10-06 (copyright sample and licence trace of the follow-up, then the
|
| 2034 |
+
maintainer's decision; slayerlabs/polish-dynaword-v2#57).
|
| 2035 |
+
|
| 2036 |
+
**Verdict** — `kept`, 46 pages withheld. Maintainer approval 2026-10-06, relayed by the
|
| 2037 |
+
coordinator. The numbers in the section above (9,112 documents, 38,892,589 characters,
|
| 2038 |
+
15,571,295 tokens; 3.0: 4,461 / 6,102,574 tokens; 4.0: 4,651 / 9,468,721) are the v0.2.5 and
|
| 2039 |
+
pre-drop values; the release now holds 9,066 documents, 38,195,523 characters and 15,313,229
|
| 2040 |
+
tokens (3.0: 4,425 / 5,916,490; 4.0: 4,641 / 9,396,739). Withheld: 46 documents, 697,066
|
| 2041 |
+
characters, 258,066 tokens (36 labelled 3.0, 10 labelled 4.0).
|
| 2042 |
+
|
| 2043 |
+
**Withheld** — `wikibooks_23933` (Historia powszechna/Rzeczpospolita pod panowaniem królów
|
| 2044 |
+
elekcyjnych, 10,753 tokens): copy of sciaga.pl, Earwig 0.964, 43.9% of the words, the source
|
| 2045 |
+
captured since 2007-10-11, the wiki page created 2011-03-28. `wikibooks_27715` (Od lamera do
|
| 2046 |
+
hakera/Linux, 3,761 tokens): Polish translation (Paweł Niewiadomski, linuxpl.org) of chapter
|
| 2047 |
+
6 of The Linux System Administrators' Guide (Lars Wirzenius, Joanna Oja); the page's own
|
| 2048 |
+
closing note gives CC BY-NC 3.0. `wikibooks_27602` (Od lamera do hakera/Procesor, 7,548
|
| 2049 |
+
tokens): text pasted on 2013-06-25, the source link lost, no licence given; Earwig suspects
|
| 2050 |
+
slideshare.net/slideshow/mikroprocesory/32678654 (0.896). `wikibooks_26962`
|
| 2051 |
+
(Mentalizm/Wprowadzenie, 1,313 tokens) and the 42 other pages of the Mentalizm book
|
| 2052 |
+
(234,691 tokens; hub `wikibooks_26961` included): the introduction states non-commercial
|
| 2053 |
+
share-alike terms (NC wording removed 2013-01-13, restored 2015-02-02); the other pages carry
|
| 2054 |
+
no notice of their own and are withheld with the book. Together 236,004 tokens.
|
| 2055 |
+
|
| 2056 |
+
**Mechanism** — the ids and reasons live in `DROPPED_PAGES["wikibooks"]` in `src/rights.py`;
|
| 2057 |
+
`fetch_wikimedia.py prepare` skips them and fails if one is not reached. Funnel: 34,967 pages
|
| 2058 |
+
→ 12,838 in namespace 0 → 1,925 redirects, 1,247 short pages, 23 exact duplicates and the 46
|
| 2059 |
+
withheld pages skipped → 9,597 written → 531 non-Polish dropped → 9,066. Diff against the
|
| 2060 |
+
previous parquet: only the 46 ids removed, every other row identical. The 2 documents of the
|
| 2061 |
+
boundary day and the 435 GFDL-era documents are unchanged. None of the 46 is among the 45
|
| 2062 |
+
documents of `wikibooks.gfdl-review.json`; only its `source_tokens` (15,313,229) and the share
|
| 2063 |
+
in its summary (0.80%) were regenerated.
|
| 2064 |
+
|
| 2065 |
+
**Blockers** — none. Open: the copyright sample read 79 of the 9,112 pages and 90 more by one
|
| 2066 |
+
contributor; `wikibooks_27716` (145 tokens, lists CC-BY-NC and all-rights-reserved sources by
|
| 2067 |
+
name; kept) and `wikibooks_27071` (1,287 tokens, original licence not stated; kept);
|
| 2068 |
+
the 25 released pages that the "Od lamera do hakera" hub links in other books were not
|
| 2069 |
+
traced; E1 (v2#56); the 2 boundary documents; the 17 own-text and upstream GFDL documents;
|
| 2070 |
+
the markup residue.
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eaf71e246606e2b48cc00e928d03d8797052d710e4458ac346631fad1299d83a
|
| 3 |
+
size 2530004
|
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
-
"attribution_rows":
|
| 3 |
-
"attribution_sha256": "
|
| 4 |
"cutoff": "2023-06-07T00:00:00+00:00",
|
| 5 |
"discovered_at": "2026-10-06T00:00:19.659829+00:00",
|
| 6 |
"dump_base": "https://dumps.wikimedia.org/plwikibooks/20260601",
|
|
@@ -17,15 +17,248 @@
|
|
| 17 |
},
|
| 18 |
"prepare": {
|
| 19 |
"counts": {
|
| 20 |
-
"CC-BY-SA-3.0":
|
| 21 |
-
"CC-BY-SA-4.0":
|
|
|
|
| 22 |
"exact_duplicate": 23,
|
| 23 |
"ns0": 12838,
|
| 24 |
"ns0_redirect": 1925,
|
| 25 |
"ns0_short": 1247,
|
| 26 |
"pages": 34967,
|
| 27 |
-
"written":
|
| 28 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
"exact_duplicate_pageids": [
|
| 30 |
"9415",
|
| 31 |
"11949",
|
|
|
|
| 1 |
{
|
| 2 |
+
"attribution_rows": 9066,
|
| 3 |
+
"attribution_sha256": "eaf71e246606e2b48cc00e928d03d8797052d710e4458ac346631fad1299d83a",
|
| 4 |
"cutoff": "2023-06-07T00:00:00+00:00",
|
| 5 |
"discovered_at": "2026-10-06T00:00:19.659829+00:00",
|
| 6 |
"dump_base": "https://dumps.wikimedia.org/plwikibooks/20260601",
|
|
|
|
| 17 |
},
|
| 18 |
"prepare": {
|
| 19 |
"counts": {
|
| 20 |
+
"CC-BY-SA-3.0": 4588,
|
| 21 |
+
"CC-BY-SA-4.0": 5009,
|
| 22 |
+
"dropped_page": 46,
|
| 23 |
"exact_duplicate": 23,
|
| 24 |
"ns0": 12838,
|
| 25 |
"ns0_redirect": 1925,
|
| 26 |
"ns0_short": 1247,
|
| 27 |
"pages": 34967,
|
| 28 |
+
"written": 9597
|
| 29 |
},
|
| 30 |
+
"dropped_pages": [
|
| 31 |
+
{
|
| 32 |
+
"pageid": "23933",
|
| 33 |
+
"reason": "Historia powszechna/Rzeczpospolita pod panowaniem królów elekcyjnych: copy of sciaga.pl/tekst/40230-41-wojny_polsko_tureckie_w_xvii_w_i_i_ii_polowa_przyczyny_skutki (Earwig 0.964, 43.9% of words); the source was captured from 2007-10-11, the wiki page was created 2011-03-28",
|
| 34 |
+
"title": "Historia powszechna/Rzeczpospolita pod panowaniem królów elekcyjnych"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"pageid": "26961",
|
| 38 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 39 |
+
"title": "Mentalizm"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"pageid": "26962",
|
| 43 |
+
"reason": "Mentalizm/Wprowadzenie: states that the book may be used for non-commercial purposes under share-alike terms (NC wording removed 2013-01-13, restored 2015-02-02)",
|
| 44 |
+
"title": "Mentalizm/Wprowadzenie"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"pageid": "26963",
|
| 48 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 49 |
+
"title": "Mentalizm/Pozawerbalna komunikacja"
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"pageid": "26964",
|
| 53 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 54 |
+
"title": "Mentalizm/Hipnoza i sugestia"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"pageid": "26968",
|
| 58 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 59 |
+
"title": "Mentalizm/NLP"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"pageid": "26969",
|
| 63 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 64 |
+
"title": "Mentalizm/Zakończenie"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"pageid": "27602",
|
| 68 |
+
"reason": "Od lamera do hakera/Procesor: text pasted from an outside site on 2013-06-25, the source link was lost, no licence is given; Earwig suspects slideshare.net/slideshow/mikroprocesory/32678654 (0.896); the original source and its licence are not identified",
|
| 69 |
+
"title": "Od lamera do hakera/Procesor"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"pageid": "27715",
|
| 73 |
+
"reason": "Od lamera do hakera/Linux: Polish translation (Paweł Niewiadomski, linuxpl.org) of chapter 6 of The Linux System Administrators' Guide (Lars Wirzenius, Joanna Oja); the page's own closing note gives the licence as CC BY-NC 3.0",
|
| 74 |
+
"title": "Od lamera do hakera/Linux"
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"pageid": "28768",
|
| 78 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 79 |
+
"title": "Mentalizm/Nawyki: jak zmienić przyzwyczajenia"
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"pageid": "28769",
|
| 83 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 84 |
+
"title": "Mentalizm/Szkoła w Summerhill: jak edukacja wpływa na osobowość"
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"pageid": "28770",
|
| 88 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 89 |
+
"title": "Mentalizm/Stożek Zapamiętywania"
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"pageid": "28771",
|
| 93 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 94 |
+
"title": "Mentalizm/Mapy myśli i inne graficzne formy notatek"
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"pageid": "28772",
|
| 98 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 99 |
+
"title": "Mentalizm/Superlearning, czyli o wykorzystaniu relaksacji"
|
| 100 |
+
},
|
| 101 |
+
{
|
| 102 |
+
"pageid": "28776",
|
| 103 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 104 |
+
"title": "Mentalizm/Wpływ technologii na mózg i pamięć"
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"pageid": "28777",
|
| 108 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 109 |
+
"title": "Mentalizm/Jak szybko można czytać?"
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"pageid": "28778",
|
| 113 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 114 |
+
"title": "Mentalizm/Jak podwoić szybkość czytania"
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"pageid": "28779",
|
| 118 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 119 |
+
"title": "Mentalizm/Aktywne czytanie: zwiększanie wydajności zapamiętywania"
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"pageid": "28780",
|
| 123 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 124 |
+
"title": "Mentalizm/Możliwości ludzkiego mózgu i umysłu"
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"pageid": "28781",
|
| 128 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 129 |
+
"title": "Mentalizm/Mnemoniczny System Podstawowy"
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"pageid": "28782",
|
| 133 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 134 |
+
"title": "Mentalizm/Pałac pamięci"
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"pageid": "28784",
|
| 138 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 139 |
+
"title": "Mentalizm/Mnemoniczny System Główny"
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"pageid": "28785",
|
| 143 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 144 |
+
"title": "Mentalizm/Jak zapamiętać hasła"
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"pageid": "28789",
|
| 148 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 149 |
+
"title": "Mentalizm/W jaki sposób mamią nas liczby i statystki"
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"pageid": "28795",
|
| 153 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 154 |
+
"title": "Mentalizm/Zapamiętywanie nazw własnych i trudnych wyrażeń"
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"pageid": "28796",
|
| 158 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 159 |
+
"title": "Mentalizm/Powtarzaj to, co już wiesz"
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"pageid": "30772",
|
| 163 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 164 |
+
"title": "Mentalizm/Jak pisać dziennik i dlaczego"
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"pageid": "31385",
|
| 168 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 169 |
+
"title": "Mentalizm/Ograniczenia ludzkiej percepcji i pamięci"
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"pageid": "31393",
|
| 173 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 174 |
+
"title": "Mentalizm/O wywoływaniu duchów i zjaw"
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"pageid": "31432",
|
| 178 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 179 |
+
"title": "Mentalizm/Psychologia wywierania wpływu"
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"pageid": "31433",
|
| 183 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 184 |
+
"title": "Mentalizm/Mądrość tłumu - kiedy i dlaczego tłum jest mądrzejszy, niż jednostka"
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"pageid": "31434",
|
| 188 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 189 |
+
"title": "Mentalizm/Medytacja i jej wpływ na mózg"
|
| 190 |
+
},
|
| 191 |
+
{
|
| 192 |
+
"pageid": "31634",
|
| 193 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 194 |
+
"title": "Mentalizm/Dlaczego wierzymy w pseudonaukę"
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"pageid": "31635",
|
| 198 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 199 |
+
"title": "Mentalizm/Zimny odczyt"
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"pageid": "31637",
|
| 203 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 204 |
+
"title": "Mentalizm/Przekaz podprogowy"
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"pageid": "31649",
|
| 208 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 209 |
+
"title": "Mentalizm/Jak rozpoznać, czy ktoś mówi prawdę"
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"pageid": "31652",
|
| 213 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 214 |
+
"title": "Mentalizm/Jak wywołać stan relaksu"
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"pageid": "31653",
|
| 218 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 219 |
+
"title": "Mentalizm/Błyskawiczna indukcja hipnozy"
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"pageid": "31654",
|
| 223 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 224 |
+
"title": "Mentalizm/Podłoże niektórych trików mentalistycznych"
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"pageid": "31656",
|
| 228 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 229 |
+
"title": "Mentalizm/I Wykrywanie kłamstwa: wprowadzenie"
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"pageid": "31658",
|
| 233 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 234 |
+
"title": "Mentalizm/II Wykrywanie kłamstwa"
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"pageid": "31662",
|
| 238 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 239 |
+
"title": "Mentalizm/III Wykrywanie kłamstwa"
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"pageid": "31664",
|
| 243 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 244 |
+
"title": "Mentalizm/IV Wykrywanie kłamstwa"
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"pageid": "31667",
|
| 248 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 249 |
+
"title": "Mentalizm/V Wykrywanie kłamstwa"
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"pageid": "31668",
|
| 253 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 254 |
+
"title": "Mentalizm/VI Wykrywanie kłamstwa"
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"pageid": "31669",
|
| 258 |
+
"reason": "Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book",
|
| 259 |
+
"title": "Mentalizm/VII Wykrywanie kłamstwa"
|
| 260 |
+
}
|
| 261 |
+
],
|
| 262 |
"exact_duplicate_pageids": [
|
| 263 |
"9415",
|
| 264 |
"11949",
|
|
@@ -19,7 +19,7 @@
|
|
| 19 |
"matched": {
|
| 20 |
"docs": 45,
|
| 21 |
"tokens": 122192,
|
| 22 |
-
"source_tokens":
|
| 23 |
},
|
| 24 |
"closest_audit_pattern": {
|
| 25 |
"docs": 25,
|
|
@@ -87,7 +87,7 @@
|
|
| 87 |
"note": "Fizyka dla gimnazjum says the book was moved in 2013 from the 'Wolne podręczniki' portal 'with the consent of the portal's creators'; the original licence is not stated on the page and was not checked."
|
| 88 |
}
|
| 89 |
],
|
| 90 |
-
"summary": "Review of GFDL mentions in the released text. The audit counted 24 documents (0.4% of tokens) and named wikibooks_2419791 and wikibooks_2419792 (now wikibooks_3153 and wikibooks_3155); its exact pattern is not recorded and could not be reproduced: the closest pattern here, `\\bFDL\\b|Wolnej\\s+Dokumentacji`, matches 25 documents (69,072 tokens) and neither named document. A wider case-insensitive pattern matches 45 documents (122,192 tokens, 0.
|
| 91 |
"documents": [
|
| 92 |
{
|
| 93 |
"id": "wikibooks_1710",
|
|
|
|
| 19 |
"matched": {
|
| 20 |
"docs": 45,
|
| 21 |
"tokens": 122192,
|
| 22 |
+
"source_tokens": 15313229
|
| 23 |
},
|
| 24 |
"closest_audit_pattern": {
|
| 25 |
"docs": 25,
|
|
|
|
| 87 |
"note": "Fizyka dla gimnazjum says the book was moved in 2013 from the 'Wolne podręczniki' portal 'with the consent of the portal's creators'; the original licence is not stated on the page and was not checked."
|
| 88 |
}
|
| 89 |
],
|
| 90 |
+
"summary": "Review of GFDL mentions in the released text. The audit counted 24 documents (0.4% of tokens) and named wikibooks_2419791 and wikibooks_2419792 (now wikibooks_3153 and wikibooks_3155); its exact pattern is not recorded and could not be reproduced: the closest pattern here, `\\bFDL\\b|Wolnej\\s+Dokumentacji`, matches 25 documents (69,072 tokens) and neither named document. A wider case-insensitive pattern matches 45 documents (122,192 tokens, 0.80% of the source's tokens); all 45 were read and sorted: 7 state that the page or book is itself under the GNU FDL (42,834 tokens), 10 name a GFDL-licensed upstream work (6,903 tokens), 13 only link the licence page in a table of contents, 13 discuss licences, 2 match by accident. No GFDL label exists in this release and no row is dropped for a GFDL mention: every row keeps the CC BY-SA label its last-revision date gives. The 17 documents in the first two groups (49,737 tokens) are the ones where a GFDL-only grant by the page's author or upstream could matter; keeping or dropping them is left to the maintainers and the lawyer.",
|
| 91 |
"documents": [
|
| 92 |
{
|
| 93 |
"id": "wikibooks_1710",
|
|
@@ -30,8 +30,8 @@
|
|
| 30 |
"2026-05-31"
|
| 31 |
],
|
| 32 |
"labels": {
|
| 33 |
-
"CC-BY-SA-3.0":
|
| 34 |
-
"CC-BY-SA-4.0":
|
| 35 |
},
|
| 36 |
"last_edited_before_era_end": {
|
| 37 |
"date": "2009-06-15",
|
|
@@ -39,8 +39,8 @@
|
|
| 39 |
"tokens": 259065
|
| 40 |
},
|
| 41 |
"tokens": {
|
| 42 |
-
"CC-BY-SA-3.0":
|
| 43 |
-
"CC-BY-SA-4.0":
|
| 44 |
}
|
| 45 |
},
|
| 46 |
"review_scope": "licence of contributors' text on pl.wikibooks.org and its version per page; not independent legal advice",
|
|
|
|
| 30 |
"2026-05-31"
|
| 31 |
],
|
| 32 |
"labels": {
|
| 33 |
+
"CC-BY-SA-3.0": 4425,
|
| 34 |
+
"CC-BY-SA-4.0": 4641
|
| 35 |
},
|
| 36 |
"last_edited_before_era_end": {
|
| 37 |
"date": "2009-06-15",
|
|
|
|
| 39 |
"tokens": 259065
|
| 40 |
},
|
| 41 |
"tokens": {
|
| 42 |
+
"CC-BY-SA-3.0": 5916490,
|
| 43 |
+
"CC-BY-SA-4.0": 9396739
|
| 44 |
}
|
| 45 |
},
|
| 46 |
"review_scope": "licence of contributors' text on pl.wikibooks.org and its version per page; not independent legal advice",
|
|
@@ -16,8 +16,8 @@ Contributors' text on pl.wikibooks.org is licensed CC BY-SA: [Wikimedia Terms of
|
|
| 16 |
|
| 17 |
| last revision (UTC) | `license` | documents | tokens | share of tokens |
|
| 18 |
|---|---|---:|---:|---:|
|
| 19 |
-
| before 2023-06-07 | `CC-BY-SA-3.0` | 4,
|
| 20 |
-
| 2023-06-07 or later | `CC-BY-SA-4.0` | 4,
|
| 21 |
|
| 22 |
A page last edited on or after the cutoff can still hold 3.0 text from earlier edits;
|
| 23 |
[CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/legalcode) §4(b)(ii) lets such an adaptation be licensed under "a later
|
|
@@ -35,7 +35,7 @@ build. v0.2.0-v0.2.5 labelled every row `CC-BY-SA-3.0`.
|
|
| 35 |
began dual licensing under CC BY-SA 3.0 and the GFDL. Text first contributed before the 2009 move was
|
| 36 |
under the GFDL only. They are labelled `CC-BY-SA-3.0`, so only the CC BY-SA grant is relied on; the count is recorded, not acted on.
|
| 37 |
|
| 38 |
-
Review of GFDL mentions in the released text. The audit counted 24 documents (0.4% of tokens) and named wikibooks_2419791 and wikibooks_2419792 (now wikibooks_3153 and wikibooks_3155); its exact pattern is not recorded and could not be reproduced: the closest pattern here, `\bFDL\b|Wolnej\s+Dokumentacji`, matches 25 documents (69,072 tokens) and neither named document. A wider case-insensitive pattern matches 45 documents (122,192 tokens, 0.
|
| 39 |
|
| 40 |
Evidence: `wikibooks.license-evidence.json`.
|
| 41 |
|
|
@@ -52,7 +52,7 @@ The text is modified: wiki markup is converted to plain text (see Provenance).
|
|
| 52 |
Parsed from the official Wikimedia dump `plwikibooks-20260601-pages-articles` by
|
| 53 |
`src/fetch_wikimedia.py`; the file (20,216,648 bytes, sha1 `198ddcbe780725b2254a930bda4d498b94a59692`) was matched against the
|
| 54 |
dump's `dumpstatus.json` and `sha1sums.txt` (`wikibooks.build.json`). v0.2.0-v0.2.5 used the same dump
|
| 55 |
-
date; the text set is the same (the rebuild adds the last-revision time).
|
| 56 |
|
| 57 |
Articles (namespace 0) only. Redirects, empty pages and pages shorter than 200 characters are skipped.
|
| 58 |
Wikitext is converted with mwparserfromhell `strip_code(normalize=True, collapse=True)`, as in v0.2.5.
|
|
@@ -61,29 +61,29 @@ options (`thumb|...`) are not removed and stay in the text; the wikipedia fetche
|
|
| 61 |
removes them, this one does not, because that would change the text set. Of two pages with the same
|
| 62 |
text (sha1 of the stripped text), the lower page id is kept.
|
| 63 |
|
| 64 |
-
34,967 pages scanned → 12,838 in namespace 0 → 1,925 redirects, 0 empty pages, 0 parser failures, 1,247 shorter than 200 characters skipped, 23 exact duplicates dropped → 9,
|
| 65 |
|
| 66 |
## Statistics
|
| 67 |
| documents | characters | tokens (tiktoken proxy) |
|
| 68 |
|---:|---:|---:|
|
| 69 |
-
| 9,
|
| 70 |
|
| 71 |
-
|
| 72 |
|
| 73 |
## Per-document license metadata
|
| 74 |
| license | documents |
|
| 75 |
|---|---:|
|
| 76 |
-
| `CC-BY-SA-3.0` | 4,
|
| 77 |
-
| `CC-BY-SA-4.0` | 4,
|
| 78 |
|
| 79 |
-
Author metadata present for **9,
|
| 80 |
|
| 81 |
## Filters applied (build_dynaword.py)
|
| 82 |
- drop documents < 200 chars: **0** (the fetcher already dropped 1,247)
|
| 83 |
- drop non-Polish (diacritic ratio): **531**
|
| 84 |
- exact cross-source dedup (sha1): **0**
|
| 85 |
- OCR alpha-ratio < 0.70 (OCR sources only): **0**
|
| 86 |
-
- read 9,
|
| 87 |
|
| 88 |
Token counts are a fast tiktoken (cl100k) proxy (~1% off Llama-3); the canonical
|
| 89 |
Llama-3 count is computed at release.
|
|
|
|
| 16 |
|
| 17 |
| last revision (UTC) | `license` | documents | tokens | share of tokens |
|
| 18 |
|---|---|---:|---:|---:|
|
| 19 |
+
| before 2023-06-07 | `CC-BY-SA-3.0` | 4,425 | 5,916,490 | 38.6% |
|
| 20 |
+
| 2023-06-07 or later | `CC-BY-SA-4.0` | 4,641 | 9,396,739 | 61.4% |
|
| 21 |
|
| 22 |
A page last edited on or after the cutoff can still hold 3.0 text from earlier edits;
|
| 23 |
[CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/legalcode) §4(b)(ii) lets such an adaptation be licensed under "a later
|
|
|
|
| 35 |
began dual licensing under CC BY-SA 3.0 and the GFDL. Text first contributed before the 2009 move was
|
| 36 |
under the GFDL only. They are labelled `CC-BY-SA-3.0`, so only the CC BY-SA grant is relied on; the count is recorded, not acted on.
|
| 37 |
|
| 38 |
+
Review of GFDL mentions in the released text. The audit counted 24 documents (0.4% of tokens) and named wikibooks_2419791 and wikibooks_2419792 (now wikibooks_3153 and wikibooks_3155); its exact pattern is not recorded and could not be reproduced: the closest pattern here, `\bFDL\b|Wolnej\s+Dokumentacji`, matches 25 documents (69,072 tokens) and neither named document. A wider case-insensitive pattern matches 45 documents (122,192 tokens, 0.80% of the source's tokens); all 45 were read and sorted: 7 state that the page or book is itself under the GNU FDL (42,834 tokens), 10 name a GFDL-licensed upstream work (6,903 tokens), 13 only link the licence page in a table of contents, 13 discuss licences, 2 match by accident. No GFDL label exists in this release and no row is dropped for a GFDL mention: every row keeps the CC BY-SA label its last-revision date gives. The 17 documents in the first two groups (49,737 tokens) are the ones where a GFDL-only grant by the page's author or upstream could matter; keeping or dropping them is left to the maintainers and the lawyer. Per-document notes: `wikibooks.gfdl-review.json`.
|
| 39 |
|
| 40 |
Evidence: `wikibooks.license-evidence.json`.
|
| 41 |
|
|
|
|
| 52 |
Parsed from the official Wikimedia dump `plwikibooks-20260601-pages-articles` by
|
| 53 |
`src/fetch_wikimedia.py`; the file (20,216,648 bytes, sha1 `198ddcbe780725b2254a930bda4d498b94a59692`) was matched against the
|
| 54 |
dump's `dumpstatus.json` and `sha1sums.txt` (`wikibooks.build.json`). v0.2.0-v0.2.5 used the same dump
|
| 55 |
+
date; the text set is the same except for the withheld pages (the rebuild adds the last-revision time).
|
| 56 |
|
| 57 |
Articles (namespace 0) only. Redirects, empty pages and pages shorter than 200 characters are skipped.
|
| 58 |
Wikitext is converted with mwparserfromhell `strip_code(normalize=True, collapse=True)`, as in v0.2.5.
|
|
|
|
| 61 |
removes them, this one does not, because that would change the text set. Of two pages with the same
|
| 62 |
text (sha1 of the stripped text), the lower page id is kept.
|
| 63 |
|
| 64 |
+
34,967 pages scanned → 12,838 in namespace 0 → 1,925 redirects, 0 empty pages, 0 parser failures, 1,247 shorter than 200 characters skipped, 23 exact duplicates dropped, 46 pages withheld by the rights review (`DROPPED_PAGES` in `src/rights.py`; ids, titles and reasons in `wikibooks.build.json`) → 9,597 read by the build → 9,066 released.
|
| 65 |
|
| 66 |
## Statistics
|
| 67 |
| documents | characters | tokens (tiktoken proxy) |
|
| 68 |
|---:|---:|---:|
|
| 69 |
+
| 9,066 | 38,195,523 | 15,313,229 |
|
| 70 |
|
| 71 |
+
v0.2.5 had 9,112 documents, 38,892,589 characters and 15,571,295 tokens; the difference is the 46 pages withheld by the rights review.
|
| 72 |
|
| 73 |
## Per-document license metadata
|
| 74 |
| license | documents |
|
| 75 |
|---|---:|
|
| 76 |
+
| `CC-BY-SA-3.0` | 4,425 |
|
| 77 |
+
| `CC-BY-SA-4.0` | 4,641 |
|
| 78 |
|
| 79 |
+
Author metadata present for **9,066** documents.
|
| 80 |
|
| 81 |
## Filters applied (build_dynaword.py)
|
| 82 |
- drop documents < 200 chars: **0** (the fetcher already dropped 1,247)
|
| 83 |
- drop non-Polish (diacritic ratio): **531**
|
| 84 |
- exact cross-source dedup (sha1): **0**
|
| 85 |
- OCR alpha-ratio < 0.70 (OCR sources only): **0**
|
| 86 |
+
- read 9,597 → kept 9,066
|
| 87 |
|
| 88 |
Token counts are a fast tiktoken (cl100k) proxy (~1% off Llama-3); the canonical
|
| 89 |
Llama-3 count is computed at release.
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4bfe6d5fa93bda9b6a833aff11a8fbff379594310fa9d8c18a469cf8ffd1ebb1
|
| 3 |
+
size 14204247
|
|
@@ -1,17 +1,17 @@
|
|
| 1 |
{
|
| 2 |
-
"read":
|
| 3 |
-
"kept":
|
| 4 |
"drop_short": 0,
|
| 5 |
"drop_lang": 531,
|
| 6 |
"drop_dup": 0,
|
| 7 |
"drop_ocr": 0,
|
| 8 |
-
"chars":
|
| 9 |
-
"tokens":
|
| 10 |
"licenses": {
|
| 11 |
-
"CC-BY-SA-
|
| 12 |
-
"CC-BY-SA-
|
| 13 |
},
|
| 14 |
-
"authors_with_value":
|
| 15 |
-
"secs": 2.
|
| 16 |
"license": "CC BY-SA (3.0 or 4.0 per record, by last-revision date)"
|
| 17 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"read": 9597,
|
| 3 |
+
"kept": 9066,
|
| 4 |
"drop_short": 0,
|
| 5 |
"drop_lang": 531,
|
| 6 |
"drop_dup": 0,
|
| 7 |
"drop_ocr": 0,
|
| 8 |
+
"chars": 38195523,
|
| 9 |
+
"tokens": 15313229,
|
| 10 |
"licenses": {
|
| 11 |
+
"CC-BY-SA-4.0": 4641,
|
| 12 |
+
"CC-BY-SA-3.0": 4425
|
| 13 |
},
|
| 14 |
+
"authors_with_value": 9066,
|
| 15 |
+
"secs": 2.0,
|
| 16 |
"license": "CC BY-SA (3.0 or 4.0 per record, by last-revision date)"
|
| 17 |
}
|
|
@@ -63,6 +63,15 @@ def license_for_revision(timestamp: str | None, cutoff: datetime = BY_SA_4_CUTOF
|
|
| 63 |
return after if ts >= cutoff else before
|
| 64 |
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
# Pages withheld from a Wikimedia source after a rights review: {source: {wiki page id: reason}},
|
| 67 |
# one reason per page. The page id is stable across dumps (the dataset id is derived from it).
|
| 68 |
# fetch_wikimedia.prepare skips these pages and fails if one is not reached (see
|
|
@@ -74,6 +83,18 @@ DROPPED_PAGES: dict[str, dict[int, str]] = {
|
|
| 74 |
"wikivoyage": {
|
| 75 |
},
|
| 76 |
"wikibooks": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
},
|
| 78 |
}
|
| 79 |
|
|
|
|
| 63 |
return after if ts >= cutoff else before
|
| 64 |
|
| 65 |
|
| 66 |
+
# The pages of the wikibooks book "Mentalizm" other than its introduction (26962), which carries the notice.
|
| 67 |
+
_MENTALIZM_REST = (
|
| 68 |
+
26961, 26963, 26964, 26968, 26969, 28768, 28769, 28770, 28771, 28772, 28776, 28777, 28778, 28779,
|
| 69 |
+
28780, 28781, 28782, 28784, 28785, 28789, 28795, 28796, 30772, 31385, 31393, 31432, 31433, 31434,
|
| 70 |
+
31634, 31635, 31637, 31649, 31652, 31653, 31654, 31656, 31658, 31662, 31664, 31667, 31668, 31669,
|
| 71 |
+
)
|
| 72 |
+
_MENTALIZM_REASON = ("Mentalizm book (one author, Pedros.lol): Mentalizm/Wprowadzenie (26962) states "
|
| 73 |
+
"non-commercial share-alike terms; this page has no notice of its own, so it is withheld with the book")
|
| 74 |
+
|
| 75 |
# Pages withheld from a Wikimedia source after a rights review: {source: {wiki page id: reason}},
|
| 76 |
# one reason per page. The page id is stable across dumps (the dataset id is derived from it).
|
| 77 |
# fetch_wikimedia.prepare skips these pages and fails if one is not reached (see
|
|
|
|
| 83 |
"wikivoyage": {
|
| 84 |
},
|
| 85 |
"wikibooks": {
|
| 86 |
+
23933: "Historia powszechna/Rzeczpospolita pod panowaniem królów elekcyjnych: copy of sciaga.pl/tekst/"
|
| 87 |
+
"40230-41-wojny_polsko_tureckie_w_xvii_w_i_i_ii_polowa_przyczyny_skutki (Earwig 0.964, 43.9% of "
|
| 88 |
+
"words); the source was captured from 2007-10-11, the wiki page was created 2011-03-28",
|
| 89 |
+
27715: "Od lamera do hakera/Linux: Polish translation (Paweł Niewiadomski, linuxpl.org) of chapter 6 of "
|
| 90 |
+
"The Linux System Administrators' Guide (Lars Wirzenius, Joanna Oja); the page's own closing note "
|
| 91 |
+
"gives the licence as CC BY-NC 3.0",
|
| 92 |
+
27602: "Od lamera do hakera/Procesor: text pasted from an outside site on 2013-06-25, the source link was "
|
| 93 |
+
"lost, no licence is given; Earwig suspects slideshare.net/slideshow/mikroprocesory/32678654 (0.896); "
|
| 94 |
+
"the original source and its licence are not identified",
|
| 95 |
+
26962: "Mentalizm/Wprowadzenie: states that the book may be used for non-commercial purposes under "
|
| 96 |
+
"share-alike terms (NC wording removed 2013-01-13, restored 2015-02-02)",
|
| 97 |
+
**{page: _MENTALIZM_REASON for page in _MENTALIZM_REST},
|
| 98 |
},
|
| 99 |
}
|
| 100 |
|
|
@@ -445,8 +445,10 @@ SOURCES = {
|
|
| 445 |
"dump's dumpstatus.json and sha1sums.txt) by "
|
| 446 |
"src/fetch_wikimedia.py. Articles (namespace 0) only, no "
|
| 447 |
"redirects; one document per page, id from the page id. The text "
|
| 448 |
-
"set is the one released in v0.2.0-v0.2.5
|
| 449 |
-
"
|
|
|
|
|
|
|
| 450 |
"license": "CC BY-SA (3.0 or 4.0 per record, by last-revision date)",
|
| 451 |
"license_spdx": "MIXED",
|
| 452 |
"traceable": "Contributors license their text under CC BY-SA 4.0 since the "
|
|
|
|
| 445 |
"dump's dumpstatus.json and sha1sums.txt) by "
|
| 446 |
"src/fetch_wikimedia.py. Articles (namespace 0) only, no "
|
| 447 |
"redirects; one document per page, id from the page id. The text "
|
| 448 |
+
"set is the one released in v0.2.0-v0.2.5 without the 46 pages "
|
| 449 |
+
"the rights review withheld (DROPPED_PAGES in src/rights.py); the "
|
| 450 |
+
"rebuild adds the page's last-revision time, which sets the "
|
| 451 |
+
"licence label.",
|
| 452 |
"license": "CC BY-SA (3.0 or 4.0 per record, by last-revision date)",
|
| 453 |
"license_spdx": "MIXED",
|
| 454 |
"traceable": "Contributors license their text under CC BY-SA 4.0 since the "
|
|
@@ -5,14 +5,18 @@ import json
|
|
| 5 |
|
| 6 |
import pyarrow.parquet as pq
|
| 7 |
|
|
|
|
| 8 |
from test_wikimedia_contract import ROOT, check_released
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
def test_wikibooks_contract(tmp_path):
|
| 12 |
-
stats, ev = check_released("wikibooks", tmp_path)
|
| 13 |
-
assert (stats["kept"], stats["tokens"]) == (
|
| 14 |
-
assert stats["licenses"] == {"CC-BY-SA-3.0":
|
| 15 |
-
assert ev["release_scope"]["tokens"] == {"CC-BY-SA-3.0":
|
| 16 |
assert ev["cutoff"]["boundary_day"] == {"day": "2023-06-07", "docs_last_edited_that_day": 2}
|
| 17 |
assert ev["release_scope"]["last_edited_before_era_end"] == {"date": "2009-06-15", "docs": 435, "tokens": 259065}
|
| 18 |
|
|
@@ -35,3 +39,18 @@ def test_wikibooks_gfdl_review_matches_the_release():
|
|
| 35 |
assert review["closest_audit_pattern"]["docs"] == len(review["closest_audit_pattern"]["ids"]) == 25
|
| 36 |
assert set(review["closest_audit_pattern"]["ids"]) <= set(by_id)
|
| 37 |
assert not set(review["audit"]["named_now"]) & set(review["closest_audit_pattern"]["ids"]) # the audit's two named docs are not in the 25
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
import pyarrow.parquet as pq
|
| 7 |
|
| 8 |
+
import rights
|
| 9 |
from test_wikimedia_contract import ROOT, check_released
|
| 10 |
|
| 11 |
+
# the v0.2.5 rows (documents, characters, tokens) that the rights review withholds: 3 copied pages and the 43-page Mentalizm book
|
| 12 |
+
WITHHELD = (46, 697066, 258066)
|
| 13 |
+
|
| 14 |
|
| 15 |
def test_wikibooks_contract(tmp_path):
|
| 16 |
+
stats, ev = check_released("wikibooks", tmp_path, dropped=WITHHELD)
|
| 17 |
+
assert (stats["kept"], stats["tokens"]) == (9066, 15313229)
|
| 18 |
+
assert stats["licenses"] == {"CC-BY-SA-3.0": 4425, "CC-BY-SA-4.0": 4641}
|
| 19 |
+
assert ev["release_scope"]["tokens"] == {"CC-BY-SA-3.0": 5916490, "CC-BY-SA-4.0": 9396739}
|
| 20 |
assert ev["cutoff"]["boundary_day"] == {"day": "2023-06-07", "docs_last_edited_that_day": 2}
|
| 21 |
assert ev["release_scope"]["last_edited_before_era_end"] == {"date": "2009-06-15", "docs": 435, "tokens": 259065}
|
| 22 |
|
|
|
|
| 39 |
assert review["closest_audit_pattern"]["docs"] == len(review["closest_audit_pattern"]["ids"]) == 25
|
| 40 |
assert set(review["closest_audit_pattern"]["ids"]) <= set(by_id)
|
| 41 |
assert not set(review["audit"]["named_now"]) & set(review["closest_audit_pattern"]["ids"]) # the audit's two named docs are not in the 25
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def test_wikibooks_withholds_three_copied_pages_and_the_mentalizm_book():
|
| 45 |
+
withheld = rights.DROPPED_PAGES["wikibooks"]
|
| 46 |
+
book = {i for i, reason in withheld.items() if reason.startswith("Mentalizm")}
|
| 47 |
+
assert len(withheld) == 46 and all(withheld.values())
|
| 48 |
+
assert set(withheld) - book == {23933, 27715, 27602}
|
| 49 |
+
assert len(book) == 43 and {26961, 26962} <= book # the introduction that carries the notice, the hub page and 41 chapters
|
| 50 |
+
data = ROOT / "data" / "wikibooks"
|
| 51 |
+
ids = set(pq.read_table(data / "wikibooks.parquet", columns=["id"]).column("id").to_pylist())
|
| 52 |
+
assert not {f"wikibooks_{i}" for i in withheld} & ids
|
| 53 |
+
build = json.loads((data / "wikibooks.build.json").read_text(encoding="utf-8"))
|
| 54 |
+
listed = {int(p["pageid"]): p["reason"] for p in build["prepare"]["dropped_pages"]}
|
| 55 |
+
assert listed == withheld and all(p["title"] for p in build["prepare"]["dropped_pages"])
|
| 56 |
+
assert build["prepare"]["counts"]["dropped_page"] == 46
|
|
@@ -13,6 +13,7 @@ from pathlib import Path
|
|
| 13 |
import re
|
| 14 |
import shutil
|
| 15 |
import subprocess
|
|
|
|
| 16 |
|
| 17 |
import pyarrow as pa
|
| 18 |
import pyarrow.parquet as pq
|
|
@@ -196,10 +197,12 @@ def _selection(tmp_path, key):
|
|
| 196 |
})
|
| 197 |
|
| 198 |
|
| 199 |
-
def _prepare(tmp_path, key, xml):
|
|
|
|
| 200 |
_selection(tmp_path, key)
|
| 201 |
(tmp_path / "raw_dump" / NAME).write_bytes(bz2.compress(xml.encode()))
|
| 202 |
-
|
|
|
|
| 203 |
out = subprocess.run(["zstd", "-dc", str(tmp_path / f"pl{key}.jsonl.zst")], capture_output=True, check=True)
|
| 204 |
return [json.loads(line) for line in out.stdout.decode().splitlines()]
|
| 205 |
|
|
@@ -235,10 +238,9 @@ def test_prepare_labels_filters_and_dedups(tmp_path, key):
|
|
| 235 |
|
| 236 |
@needs_zstd
|
| 237 |
@pytest.mark.parametrize("key", KEYS)
|
| 238 |
-
def test_prepare_drops_listed_pages_and_their_copies(tmp_path,
|
| 239 |
site = fm.SITES[key]
|
| 240 |
-
|
| 241 |
-
rows = _prepare(tmp_path, key, _fixture(key))
|
| 242 |
# 10 is withheld; its text stays in the duplicate set, so 15 (a copy of it) is still dropped
|
| 243 |
assert [r["id"] for r in rows] == [f"{key}_{i}" for i in (5, 16, 17)]
|
| 244 |
prep = _read(tmp_path / f"{key}.prepare.json")
|
|
@@ -255,10 +257,9 @@ def test_prepare_drops_listed_pages_and_their_copies(tmp_path, monkeypatch, key)
|
|
| 255 |
(99, "not in the dump"), (11, "a redirect"), (12, "not in namespace 0"), (13, "empty"), (14, "short"),
|
| 256 |
(15, "a duplicate of 10"),
|
| 257 |
])
|
| 258 |
-
def test_prepare_fails_when_a_listed_page_is_not_reached(tmp_path,
|
| 259 |
-
monkeypatch.setitem(rights.DROPPED_PAGES, "wikibooks", {pageid: why})
|
| 260 |
with pytest.raises(ValueError, match=rf"DROPPED_PAGES\['wikibooks'\] not reached.*\[{pageid}\]"):
|
| 261 |
-
_prepare(tmp_path, "wikibooks", _fixture("wikibooks"))
|
| 262 |
|
| 263 |
|
| 264 |
def test_check_dropped_reached(monkeypatch):
|
|
|
|
| 13 |
import re
|
| 14 |
import shutil
|
| 15 |
import subprocess
|
| 16 |
+
from unittest import mock
|
| 17 |
|
| 18 |
import pyarrow as pa
|
| 19 |
import pyarrow.parquet as pq
|
|
|
|
| 197 |
})
|
| 198 |
|
| 199 |
|
| 200 |
+
def _prepare(tmp_path, key, xml, dropped=None):
|
| 201 |
+
"""Runs prepare on a fixture dump; its pages are not the real withheld ones, so the list is `dropped` (none by default)."""
|
| 202 |
_selection(tmp_path, key)
|
| 203 |
(tmp_path / "raw_dump" / NAME).write_bytes(bz2.compress(xml.encode()))
|
| 204 |
+
with mock.patch.dict(rights.DROPPED_PAGES, {key: dropped or {}}):
|
| 205 |
+
fm.prepare(tmp_path, key)
|
| 206 |
out = subprocess.run(["zstd", "-dc", str(tmp_path / f"pl{key}.jsonl.zst")], capture_output=True, check=True)
|
| 207 |
return [json.loads(line) for line in out.stdout.decode().splitlines()]
|
| 208 |
|
|
|
|
| 238 |
|
| 239 |
@needs_zstd
|
| 240 |
@pytest.mark.parametrize("key", KEYS)
|
| 241 |
+
def test_prepare_drops_listed_pages_and_their_copies(tmp_path, key):
|
| 242 |
site = fm.SITES[key]
|
| 243 |
+
rows = _prepare(tmp_path, key, _fixture(key), dropped={10: "Ala: withheld by the rights review"})
|
|
|
|
| 244 |
# 10 is withheld; its text stays in the duplicate set, so 15 (a copy of it) is still dropped
|
| 245 |
assert [r["id"] for r in rows] == [f"{key}_{i}" for i in (5, 16, 17)]
|
| 246 |
prep = _read(tmp_path / f"{key}.prepare.json")
|
|
|
|
| 257 |
(99, "not in the dump"), (11, "a redirect"), (12, "not in namespace 0"), (13, "empty"), (14, "short"),
|
| 258 |
(15, "a duplicate of 10"),
|
| 259 |
])
|
| 260 |
+
def test_prepare_fails_when_a_listed_page_is_not_reached(tmp_path, pageid, why):
|
|
|
|
| 261 |
with pytest.raises(ValueError, match=rf"DROPPED_PAGES\['wikibooks'\] not reached.*\[{pageid}\]"):
|
| 262 |
+
_prepare(tmp_path, "wikibooks", _fixture("wikibooks"), dropped={pageid: why})
|
| 263 |
|
| 264 |
|
| 265 |
def test_check_dropped_reached(monkeypatch):
|