wikivoyage: drop lone file-link option lines (v2#116), rebuild four table rows, relabel (v2#110)

#133
Fabryka AI org

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

Effect: 18 rows lose 24 lines, 124 characters and 72 tokens. In 6 rows the dropped line was the first line. The words were mały 23 and right 1. One row (wikivoyage_5942) had no other residue, so the cleanup now changes 13,172 rows. No page fell under 200 characters.

Table rows rebuilt: the rebuild also applies the table-start fix from PR 127 to the four rows released with a lone { (wikivoyage_2055, 2564, 9129, 10490). Each { line is again the table start {| class="wikitable" (prettytable in 10490, with mw-collapsible mw-collapsed in 2564). This adds 238 characters and 61 tokens.

label documents tokens share
CC-BY-SA-3.0 11,220 6,163,588 36.3%
CC-BY-SA-3.0 AND CC-BY-SA-4.0 1,672 9,834,703 58.0%
CC-BY-SA-4.0 748 960,878 5.7%

Totals are 13,640 documents and 16,959,169 tokens (was 16,959,180). The label counts are unchanged. Three rows in the labels file (wikivoyage_2833, 5396, 15013) each count one added word fewer, and all three keep both licences.

Reproduction: the rerun started from the data before PR 125 (commit ae3214b). It ran retext, then wiki_history.py scan, fetch and compare on the same stub dump (sha1 6ca8ea9e…), then relabel and datasheet. With the previous rule the chain reproduces main except the four table rows, which the main code also builds this way. build.json gains an empty dropped_duplicate list, which retext has written since PR 130.

Tests: test_wikivoyage_contract passes and now also checks the four table rows. Compared with the baseline, the one new failure besides test_wikibooks_contract (fixed by the next PR) 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/133 ref

Sign up or log in to comment