wikibooks: drop lone file-link option lines (v2#116), relabel (v2#110)

#134
by ppuzio - opened
Commit history is no longer available for this pull request.
Fabryka AI org

Applies the lone option-line rule of PR 132 to wikibooks (v2#116). This is the last of three PRs, after PR 133 (wikivoyage). The link-target bound that PR 132 gained in its second commit changes no wikibooks row: rerun under it, the chain below reproduces this PR's files byte for byte, given the updated GFDL review file below.

Effect: 88 rows lose 156 lines, 1,138 characters and 334 tokens. In 45 rows the dropped line was the first line. The words were center 109, right 23, mały 22 and left 2. 57 rows had no other residue, so the cleanup now changes 2,144 rows. No page fell under 200 characters. The indented mały in the word list of wikibooks_4816 stays.

label documents tokens share
CC-BY-SA-3.0 6,797 11,431,864 74.9%
CC-BY-SA-3.0 AND CC-BY-SA-4.0 994 2,468,135 16.2%
CC-BY-SA-4.0 1,257 1,360,993 8.9%

Totals are 9,048 documents and 15,260,992 tokens (was 15,261,326).

Labels: one document moves. wikibooks_6673 (Ekoogrodnictwo) goes from both licences to CC-BY-SA-3.0: its only edit after the cutoff added a file link, and what that link left in the text was a lone mały, now dropped. wikibooks_31729 counts one added word fewer (2) and keeps both licences. Documents last edited before 2009-06-15 are 435 (258,577 tokens, was 258,600).

GFDL review: wikibooks.gfdl-review.json keeps its 45 documents and classes. Only wikibooks_1712 changed, from 5,309 to 5,307 tokens. The matched tokens are now 121,971, the closest audit pattern's 25 documents 68,917, and own_text 42,821. The file's updated.note records the change.

Reproduction: the rerun started from the data before PR 127 (commit b7dc20a). It ran retext, then wiki_history.py scan, fetch and compare on the same stub dump (sha1 66f6883c…), then relabel and datasheet. With the previous rule the chain reproduces main byte for byte, except the empty dropped_duplicate list in build.json, as in the wikivoyage PR.

Tests: test_wikibooks_contract and the GFDL review test pass. With this PR the wikinews, wikivoyage and wikibooks contract tests all pass. Compared with the baseline, the one new failure is test_every_row_is_labelled_by_contribution, which fails on the LFS-pointer wikipedia shard in the worktree, as in PR 132. Details are in artifacts/source_findings.md.

🤖 Generated with Claude Code

ppuzio changed pull request status to open
ppuzio changed pull request status to merged
ppuzio deleted the refs/pr/134 ref

Sign up or log in to comment