Datasets:
samorzad_gov_pl: drop 144 third-party rows, relabel licence basis (v0.2.6, v2#49)
What and why
Drops third-party works from samorzad_gov_pl and relabels its licence basis, per slayerlabs/polish-dynaword-v2#49.
The CC BY-SA 4.0 grant is in a platform footer run by the operator (KPRM), not by the 247 tenant institutions that write the text. gov.pl's copyright page says the service also carries works whose copyright belongs to third parties and that their use needs the owners' consent (https://www.gov.pl/web/gov/prawa-autorskie, read 2026-10-05). The footer licence cannot cover those works.
A question to KPRM is pending (#49 is blocked-external). Its answer may still change this source's status (keep, lawyer review or withdrawal). This PR does only the third-party drops and the relabel. KPRM was not contacted by this PR.
Before → after
Baseline is main 92b36dc (after #46). The issue's 72,472 is this main count; the v0.2.5 tag (7ae4ac7) has 72,771. The commit is rebased onto 4e5009e (#61, #62) and merges main c2099e6 (#63); none of these touch this source's data.
| before | after | Δ | |
|---|---|---|---|
| documents | 72,472 | 72,328 | −144 |
| chars | 107,130,266 | 106,816,031 | −314,235 |
| tokens | 40,011,099 | 39,890,244 | −120,855 |
The kept rows are byte-identical to the old ones. In the attribution sidecar only modification_notice changes: it now mentions third-party exclusions. Release stays 0.2.5.
Rules (third_party_drop in src/clean_samorzad_gov_pl.py)
The rules run after dedup in build(). --refilter-release applies them to the committed release, after checking the sha256 pins of the pre-change parquet and sidecar (PRE_CARVE_OUT_SHA256). The raw source does not need re-reading.
| slice | rule | count | hand-check |
|---|---|---|---|
| 1. "Piątek z poezją" | title contains piątek z poezją |
69 (issue: 69) | 69/69: poems credited to their authors (all Powiat Sokołowski) |
| 2. IMGW notices | text contains Opracowanie niniejsze i jego format |
9 (issue: 9) | 9/9: IMGW-PIB material that may only be shared verbatim with the source named (Bodzechów 5, Ciężkowice 3, Leżajsk 1) |
3. Non-governmental Źródło: |
a line's Źródło: credit matches a non-public author list (Wikipedia/Wikimedia, TV/radio/press, associations incl. OSP, foundations, KGW, clubs, companies, Autor:, named books or brochures), unless a Fot./Ilustracja/film marker precedes it on the line |
66 (naive: 810) | 66/66 third-party text |
| 4. Contest entries | not applied | — | see below |
Slice 3: limits
- Precision is in-sample. The first pass matched 67 documents with 61 correct (91%). The regex was then revised on that same set, giving 66/66. Part of the regex lists work titles found during that review (e.g. "rodzinne gniazdo", "Jubiläumsschrift").
- Recall is unknown. One known miss is a Fundacja Santander credit (abc384cf…).
- The naive 810 breaks down as follows. 405 documents have only de-identified
<URL>credits and cannot be classified. Of the 405 with a named credit, 66 are dropped. The 339 kept named credits were not individually reviewed. A seed-49 sample of 40 of them that matched no public-body keyword was mostly public bodies (SP ZOZ, schools, UOKiK, MSWiA, NFOŚiGW) or URL-access notes. Vague credits such as "materiał nadesłany", "Internet" and "Informacja prasowa" are kept.
Slice 4: not applied
The issue's 112 is not reproducible.
- Closest regex.
(nagrodzon|zwycięsk|wyróżnion)\w*\s+pracgives 111 documents (excluding slice 1). A seed-49 sample of 40 contains 0 with entry text: they are results announcements. - Titles containing "wiersz". These are 58 documents, almost all contest events, invitations or recitations.
- Narrower rule. A narrow "publishes the entries" rule gives 10 documents, of which 2 contain entries (9c2c29f6…, aad47962…). A third (988ec595…, a pupil's poem) was found by hand.
- Recommendation. The maintainer decides on dropping these 3 by id. Most entries are images and are not in the text.
Other findings
231 documents mention IMGW without the verbatim notice. These are possible paraphrased warnings and were not reviewed.
Licence and provenance
- The basis is relabelled operator-declared platform licence in the datasheet, NOTICE and
sources.py(traceableplus a newlegal_note). - The tenant agreements with the operator are unpublished, and no per-institution grant was found (#49).
- The gov.pl third-party carve-out is quoted in the datasheet and NOTICE.
- Contest entries, reposts credited only by
<URL>, and other undetectable third-party text may remain. The datasheet says so. - A findings-log entry is appended to
artifacts/source_findings.md.
Tests
- Contract tests.
src/test_samorzad_gov_pl_contract.py: 21 passed.- 13 rule cases, including the false-positive patterns found in review.
- A refilter test on a 3-row fixture, including the re-run pin error.
- The release test asserts 0 kept rows match
third_party_drop, plus the new kept/chars/tokens and drop counts.
- Full suite (worktree). The failure set is identical before and after. All of it is LFS-pointer contract tests for other sources.
- before: 21 failed, 235 passed, 3 errors
- after: 21 failed, 249 passed, 3 errors
- after the rebase onto 4e5009e: 22 failed, 252 passed, 3 errors. The one extra failure is #62's new
test_biblioteka_nauki_contract.py::test_shard_has_no_public_domain_rows_and_matches_stats, run against an LFS pointer in this worktree. - after merging main c2099e6: 22 failed, 255 passed, 7 errors. The 4 extra errors are #63's
test_govpl_contract.py::GovplReleaseContractTestcases, also on an LFS pointer (Parquet magic bytes not found). The samorzad contract tests pass (21).
src/verify_paper_claims.py. Run against v2main.texwith--ref HEAD, it fails before reaching any source check:LookupError: no table with \label{tab:s04-wersje}. This is the known #61 failure, unrelated to this change.make_docs.py. It does not rewrite this datasheet (custom_datasheet). Its README, CHANGELOG and other-datasheet output was reverted, as release totals belong to the release commit.
Sample (python3 src/render_sample.py data/samorzad_gov_pl/samorzad_gov_pl.parquet -n 3)
id: samorzad_gov_pl_15dbfd7436e0ed425bd9a8f999b0a573d2e81855b038b493c13c23e914fe3cb2
source: samorzad_gov_pl
added: 2026-08-14
created: 2023-10-19
token_count: 530
license: CC-BY-SA-4.0
author: Powiat Świebodziński
Remont obejmie odcinek od skrzyżowania z ul. Pilsudskiego do Galerii Hosso.
Uporządkujemy przejścia dla pieszych, powstaną nowe, wyniesione, znikną pasy po starym przejściu - będzie bezpieczniej.
Szczegółowy zakres prac obejmuje:
- remont istniejącej drogi powiatowej nr 4008F ul. Łużycka polegający na frezowaniu i wykonaniu nowej nawierzchni bitumicznej;
- wykonanie powierzchniowego odprowadzenia wód opadowych do istniejącej kanalizacji deszczowej;
- odtworzenie oznakowania poziomego w technologii grubowarstwowej;
- regulacja wysokościowa studni kanalizacji sanitarnej, deszczowej;
- wymiana włazów i pokryw studni kanalizacji sanitarnej, deszczowej;
- regulacja i wymiana skrzynek, pokryw zasuw zaworów i hydrantów (wraz z wymianą kołnierzy studni);
- regulacja i wymiana wpustów […]
id: samorzad_gov_pl_bad42ca605b6c5606ec319e2ca7c6805d2d686a2ca087da5e10c35b93ae1e83e
source: samorzad_gov_pl
added: 2026-08-14
created:
token_count: 206
license: CC-BY-SA-4.0
author: MGOPS Witnica
Szanowni Państwo, uprzejmie informujemy, że w październiku wydana zostanie kolejna część nieodpłatnej żywności z Programu Fundusze Europejskie na Pomoc Żywnościową 2021-2027. Prosimy o odbieranie paczek żywnościowych w dniu 22 października 2025 r. w godzinach 800-1400 z siedziby punktu wydawania żywności przy ul. Kosynierów Mirosławskich 1 (budynek MZK w Witnicy).
Proszę zabrać ze sobą torby. Z uwagi na logistykę i fakt współdzielenia pomieszczenia z klubem sportowym nie będzie możliwości odbioru żywności w terminach późniejszych.
id: samorzad_gov_pl_c71fb732be489c28c3998017fcbce51ec68f0cb33b77592e7582278a3fe134bc
source: samorzad_gov_pl
added: 2026-08-14
created: 2025-08-13
token_count: 130
license: CC-BY-SA-4.0
author: Gmina Hażlach
Na terenie województwa śląskiego, za wyjątkiem powiatu żywieckiego, od godz. 12.00 dnia 13 sierpnia 2025 r. do godz. 20.00 dnia 15 sierpnia 2025 r. prognozowany jest upał o stopniu zagrożenia 2.
W załączeniu: Ostrzeżenie meteorologiczne IMGW-PIB zbiorczo nr 155 z dnia 12.08.2025 r.
🤖 Generated with Claude Code
refs/pr/64 ref