govpl: drop 186 third-party texts by a pinned review table (v2#106)

#170
artifacts/source_findings.md CHANGED
@@ -1322,6 +1322,34 @@ https://www.gov.pl/web/gov/prawa-autorskie (read 2026-10-06).
1322
  **Lesson** — an open-licence footer covers the publisher's own text. On a news-style
1323
  site, check source lines for agency copy before taking the footer at face value.
1324
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1325
  ## samorzad_gov_pl — third-party slices dropped (2026-10-06)
1326
 
1327
  **Verdict** — kept, relabelled, 144 rows dropped: 72,472 → 72,328 documents,
 
1322
  **Lesson** — an open-licence footer covers the publisher's own text. On a news-style
1323
  site, check source lines for agency copy before taking the footer at face value.
1324
 
1325
+ ## govpl — other third-party texts dropped (2026-10-19, update to the section above)
1326
+
1327
+ **Verdict** — `kept`, minus 186 more rows (slayerlabs/polish-dynaword-v2#106).
1328
+ 88,002 → 87,816 documents, 217,515,240 → 216,869,817 characters (−645,423),
1329
+ 80,445,758 → 80,204,973 tokens (−240,785). `src/clean_govpl.py` applies
1330
+ `data/govpl/govpl.third-party-review.csv` (pinned by SHA-256) after the PAP rule, so ids
1331
+ are unchanged; the build stops if the review and the `Źródło:` match disagree on any row.
1332
+
1333
+ **Reason** — the "Not reviewed: 710" rows above. Each `Źródło:` line was split into the
1334
+ sources it names and each source was classified (141 groups). Only lines that credit the
1335
+ article's text count; lines that credit data, a chart, a reference, a quotation or a photo
1336
+ do not.
1337
+ - Kept: 436 rows credit their text to a public office only, 94 credit no text.
1338
+ - Dropped: 13 credit, wholly or partly, a news portal, news agency, broadcaster or
1339
+ magazine (50,933 characters); 167 credit, wholly or partly, another non-public source,
1340
+ such as an NGO, an international or EU body, a company, a university, a museum or a
1341
+ website (525,799 characters).
1342
+ - Dropped: 6 interviews and reprints found by title and phrase rules (68,691 characters),
1343
+ 5 of them naming another outlet (Polska Zbrojna, wPolityce, Rzeczpospolita, Biuletyn
1344
+ IPN) and one Q&A that names no outlet.
1345
+ - Kept: 40 teasers that quote a third-party interview and point to it (26 from
1346
+ prokuratura-krajowa).
1347
+ - Misses: 0 in a seeded sample of 200 rows matched by no rule (seed 20261019, one
1348
+ labeller, Claude; 95% upper bound 1.83%, up to about 1,590 rows); no larger read.
1349
+
1350
+ **Lesson** — on a public-sector site, a source line that names a body outside government
1351
+ (a museum, a university, an NGO) points to text the site's licence may not cover.
1352
+
1353
  ## samorzad_gov_pl — third-party slices dropped (2026-10-06)
1354
 
1355
  **Verdict** — kept, relabelled, 144 rows dropped: 72,472 → 72,328 documents,
data/govpl/govpl.attribution.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ff137d2042ff32198ec7eb28347631dbf21735ab27afc2d823f8c27d0904aa33
3
- size 26318408
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8c952efe396278c969d2327ce33344e66ef10d68749a095ae4d9bfc5bb5ab7c
3
+ size 26268699
data/govpl/govpl.md CHANGED
@@ -8,35 +8,35 @@ gov.pl — Polish government press releases
8
  - **Language:** Polish (pl)
9
  - **License:** `CC-BY-SA-4.0`
10
  - **Created (range):** 2005-09-26, 2026-07-19
11
- - **Added:** 2026-07-19; PAP reprints removed 2026-10-06
12
 
13
  ## Licensing — traceable basis
14
- gov.pl publishes its text under CC BY-SA 4.0 (site footer and https://www.gov.pl/web/gov/prawa-autorskie: "Treści tekstowe publikowane w serwisie … są udostępniane na licencji CC BY-SA 4.0"). The same page excludes works whose copyright belongs to third parties; using those needs the owners' consent. Articles crediting PAP are therefore dropped (legal note).
15
 
16
  ## Provenance
17
- Ministry/agency press releases fetched directly from gov.pl (editor-content per article, HTML stripped) by src/fetch_govpl.py. Subsites + their non-uniform news-section paths are enumerated by src/discover_govpl.py into the committed manifest src/govpl_subsites.json (gov.pl has no sitemap/API). v0.2.6 removes PAP reprints from the v0.2.5 Parquet with src/clean_govpl.py, which also writes govpl.attribution.jsonl: each row's gov.pl URL, subsite, title and date.
18
 
19
  ## Attribution
20
  CC BY-SA 4.0 requires credit and a link to the source. `govpl.attribution.jsonl` has one
21
  line per row, in Parquet order: `id`, `url` (the gov.pl article), `subsite` (the publishing
22
  ministry or agency), `title`, `date` (as listed on gov.pl) and `license`. Rows were matched
23
- to the 2026-07-19 crawl on SHA-1 of the stripped text; for 1,189 rows the same text was
24
  fetched from more than one URL, and the first in fetch order is given.
25
 
26
  ## Statistics
27
  | documents | characters | tokens (tiktoken proxy) |
28
  |---:|---:|---:|
29
- | 88,002 | 217,515,240 | 80,445,758 |
30
 
31
  ## Per-document license metadata
32
  | license | documents |
33
  |---|---:|
34
- | `CC-BY-SA-4.0` | 88,002 |
35
 
36
  Author metadata present for **0** documents. Empty values mean the upstream record did not expose a machine-readable author field.
37
 
38
  ## Legal scope note
39
- gov.pl's copyright page carves out "utwory, co do których prawa autorskie przysługują osobom trzecim" from its CC BY-SA 4.0 grant. Articles crediting PAP (Polish Press Agency) as their source are such works, so 188 are dropped (rule fetch_govpl.pap_rule, applied by src/clean_govpl.py): a "Źródło:" line naming PAP (163), "Na podst. … PAP" (22), a "(PAP)" sign-off line (2) and one PAP interview transcript (1). PAP photo credits and articles that only quote or mention PAP stay. Other third-party text is not screened: 710 kept articles carry a "Źródło:" line naming some other source; they were not reviewed.
40
 
41
  ## Filters applied
42
  `build_dynaword.py` (v0.2.2), minimal per Dynaword guidelines:
@@ -47,7 +47,8 @@ gov.pl's copyright page carves out "utwory, co do których prawa autorskie przys
47
 
48
  `src/clean_govpl.py` (v0.2.6), third-party carve-out:
49
  - drop PAP reprints: **188** (`Źródło:` line 163, `Na podst.` 22, `(PAP)` sign-off 2, interview 1)
50
- - read 88,190 → kept 88,002
 
51
 
52
  Token counts are a fast tiktoken (cl100k) proxy (~1% off Llama-3); the canonical
53
  Llama-3 count is computed at release.
 
8
  - **Language:** Polish (pl)
9
  - **License:** `CC-BY-SA-4.0`
10
  - **Created (range):** 2005-09-26, 2026-07-19
11
+ - **Added:** 2026-07-19; PAP reprints removed 2026-10-06; other third-party texts removed 2026-10-19
12
 
13
  ## Licensing — traceable basis
14
+ gov.pl publishes its text under CC BY-SA 4.0 (site footer and https://www.gov.pl/web/gov/prawa-autorskie: "Treści tekstowe publikowane w serwisie … są udostępniane na licencji CC BY-SA 4.0"). The same page excludes works whose copyright belongs to third parties; using those needs the owners' consent. Articles crediting PAP and other third-party texts are therefore dropped (legal note).
15
 
16
  ## Provenance
17
+ Ministry/agency press releases fetched directly from gov.pl (editor-content per article, HTML stripped) by src/fetch_govpl.py. Subsites + their non-uniform news-section paths are enumerated by src/discover_govpl.py into the committed manifest src/govpl_subsites.json (gov.pl has no sitemap/API). v0.2.6 removes PAP reprints and the third-party texts listed in govpl.third-party-review.csv from the v0.2.5 Parquet with src/clean_govpl.py, which also writes govpl.attribution.jsonl: each row's gov.pl URL, subsite, title and date.
18
 
19
  ## Attribution
20
  CC BY-SA 4.0 requires credit and a link to the source. `govpl.attribution.jsonl` has one
21
  line per row, in Parquet order: `id`, `url` (the gov.pl article), `subsite` (the publishing
22
  ministry or agency), `title`, `date` (as listed on gov.pl) and `license`. Rows were matched
23
+ to the 2026-07-19 crawl on SHA-1 of the stripped text; for 1,185 rows the same text was
24
  fetched from more than one URL, and the first in fetch order is given.
25
 
26
  ## Statistics
27
  | documents | characters | tokens (tiktoken proxy) |
28
  |---:|---:|---:|
29
+ | 87,816 | 216,869,817 | 80,204,973 |
30
 
31
  ## Per-document license metadata
32
  | license | documents |
33
  |---|---:|
34
+ | `CC-BY-SA-4.0` | 87,816 |
35
 
36
  Author metadata present for **0** documents. Empty values mean the upstream record did not expose a machine-readable author field.
37
 
38
  ## Legal scope note
39
+ gov.pl's copyright page carves out "utwory, co do których prawa autorskie przysługują osobom trzecim" from its CC BY-SA 4.0 grant. Articles crediting PAP (Polish Press Agency) as their source are such works, so 188 are dropped (rule fetch_govpl.pap_rule, applied by src/clean_govpl.py): a "Źródło:" line naming PAP (163), "Na podst. … PAP" (22), a "(PAP)" sign-off line (2) and one PAP interview transcript (1). PAP photo credits and articles that only quote or mention PAP stay. Other third-party text was reviewed in v0.2.6 (our assessment, src/clean_govpl.py with govpl.third-party-review.csv): every other article with a "Źródło:" line (710) was classified by the source the line credits, and interview and reprint rules found 6 more. 186 are dropped: 13 whose text is credited, wholly or partly, to a news portal, news agency, broadcaster or magazine, 167 whose text is credited, wholly or partly, to a source other than a public office (for example an NGO, an international or EU body, a company, a university, a museum or another website) and 6 interviews and reprints from other outlets (one names no outlet). The 530 that stay credit their text to a public office (436) or credit only data, a chart, a reference or a quotation (94). Teasers that quote a third-party interview and point to it stay. Articles that match none of these rules were checked on a seeded sample of 200; none was a third-party text.
40
 
41
  ## Filters applied
42
  `build_dynaword.py` (v0.2.2), minimal per Dynaword guidelines:
 
47
 
48
  `src/clean_govpl.py` (v0.2.6), third-party carve-out:
49
  - drop PAP reprints: **188** (`Źródło:` line 163, `Na podst.` 22, `(PAP)` sign-off 2, interview 1)
50
+ - drop other third-party texts: **186** (`govpl.third-party-review.csv`: text credited to media 13, to other non-public sources 167, interviews and reprints 6)
51
+ - read 88,190 → kept 87,816
52
 
53
  Token counts are a fast tiktoken (cl100k) proxy (~1% off Llama-3); the canonical
54
  Llama-3 count is computed at release.
data/govpl/govpl.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5e97d5b1ec04aebadaddd9ecb9fc6835324885606f59d4e8569f5516528f839b
3
- size 82308595
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f4c50d596c937a94e57c2418ec11ced55dee2f226df73ed406a897b01697919
3
+ size 82002226
data/govpl/govpl.stats.json CHANGED
@@ -11,15 +11,22 @@
11
  "based_on": 22,
12
  "interview": 1
13
  },
14
- "kept": 88002,
15
- "chars": 217515240,
16
- "tokens": 80445758,
 
 
 
 
 
 
17
  "licenses": {
18
- "CC-BY-SA-4.0": 88002
19
  },
20
  "authors_with_value": 0,
21
  "license": "CC-BY-SA-4.0",
22
  "input_rows": 88190,
23
  "input_sha256": "9c0310fcdf45804e6547bd197cba55f58f12df618cd3d8b92b8e9077a3720b9f",
24
- "fetched_sha256": "368259d0ea8522eced71b426ae238556d5330a410aa994bdcbdc7427478d783a"
 
25
  }
 
11
  "based_on": 22,
12
  "interview": 1
13
  },
14
+ "drop_third_party": 186,
15
+ "drop_third_party_by_reason": {
16
+ "credit_media": 13,
17
+ "credit_other": 167,
18
+ "third_party_text": 6
19
+ },
20
+ "kept": 87816,
21
+ "chars": 216869817,
22
+ "tokens": 80204973,
23
  "licenses": {
24
+ "CC-BY-SA-4.0": 87816
25
  },
26
  "authors_with_value": 0,
27
  "license": "CC-BY-SA-4.0",
28
  "input_rows": 88190,
29
  "input_sha256": "9c0310fcdf45804e6547bd197cba55f58f12df618cd3d8b92b8e9077a3720b9f",
30
+ "fetched_sha256": "368259d0ea8522eced71b426ae238556d5330a410aa994bdcbdc7427478d783a",
31
+ "review_sha256": "599f678bb1f3e1d058b3d115667e73331f3324eaccc9766cf54694860533e90b"
32
  }
data/govpl/govpl.third-party-review.csv ADDED
@@ -0,0 +1,717 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ id,decision,reason
2
+ govpl_3506,keep,credit_public_office
3
+ govpl_4014,keep,no_text_credit
4
+ govpl_6117,drop,credit_other
5
+ govpl_6118,keep,credit_public_office
6
+ govpl_6266,drop,credit_other
7
+ govpl_6310,keep,credit_public_office
8
+ govpl_6312,keep,credit_public_office
9
+ govpl_6316,keep,credit_public_office
10
+ govpl_6318,keep,credit_public_office
11
+ govpl_6433,keep,no_text_credit
12
+ govpl_9962,keep,no_text_credit
13
+ govpl_10017,keep,no_text_credit
14
+ govpl_11030,keep,no_text_credit
15
+ govpl_11611,drop,credit_other
16
+ govpl_12298,keep,no_text_credit
17
+ govpl_12649,drop,credit_other
18
+ govpl_13771,keep,no_text_credit
19
+ govpl_13854,keep,no_text_credit
20
+ govpl_15827,keep,no_text_credit
21
+ govpl_15948,keep,no_text_credit
22
+ govpl_15988,keep,no_text_credit
23
+ govpl_16441,keep,no_text_credit
24
+ govpl_16770,drop,credit_other
25
+ govpl_18606,keep,no_text_credit
26
+ govpl_19040,keep,credit_public_office
27
+ govpl_21839,drop,credit_other
28
+ govpl_22163,keep,credit_public_office
29
+ govpl_22295,keep,no_text_credit
30
+ govpl_22971,keep,no_text_credit
31
+ govpl_24795,keep,no_text_credit
32
+ govpl_24860,keep,no_text_credit
33
+ govpl_25248,keep,credit_public_office
34
+ govpl_25660,keep,credit_public_office
35
+ govpl_25711,drop,third_party_text
36
+ govpl_25820,drop,credit_other
37
+ govpl_25938,keep,no_text_credit
38
+ govpl_27765,drop,credit_other
39
+ govpl_27782,keep,credit_public_office
40
+ govpl_28241,drop,third_party_text
41
+ govpl_28257,drop,third_party_text
42
+ govpl_28431,drop,credit_other
43
+ govpl_28971,keep,credit_public_office
44
+ govpl_29031,drop,credit_other
45
+ govpl_29103,drop,credit_other
46
+ govpl_29118,drop,credit_other
47
+ govpl_29120,drop,credit_other
48
+ govpl_29128,drop,credit_other
49
+ govpl_29133,drop,credit_other
50
+ govpl_29152,drop,credit_media
51
+ govpl_29185,drop,credit_other
52
+ govpl_29198,drop,credit_media
53
+ govpl_29287,keep,credit_public_office
54
+ govpl_29384,drop,credit_other
55
+ govpl_29400,drop,credit_media
56
+ govpl_29406,keep,credit_public_office
57
+ govpl_29482,drop,credit_other
58
+ govpl_29499,drop,credit_other
59
+ govpl_29540,keep,credit_public_office
60
+ govpl_29582,drop,credit_other
61
+ govpl_29652,drop,credit_other
62
+ govpl_29663,drop,credit_other
63
+ govpl_30054,keep,credit_public_office
64
+ govpl_30096,keep,credit_public_office
65
+ govpl_30527,drop,credit_other
66
+ govpl_31282,drop,credit_other
67
+ govpl_31291,drop,credit_other
68
+ govpl_31446,drop,credit_other
69
+ govpl_31833,drop,credit_media
70
+ govpl_33073,drop,credit_other
71
+ govpl_34029,keep,credit_public_office
72
+ govpl_34254,keep,no_text_credit
73
+ govpl_34376,drop,credit_other
74
+ govpl_34402,drop,credit_media
75
+ govpl_34439,drop,credit_other
76
+ govpl_34700,drop,credit_other
77
+ govpl_34725,keep,credit_public_office
78
+ govpl_34800,keep,no_text_credit
79
+ govpl_35943,keep,credit_public_office
80
+ govpl_36066,drop,credit_other
81
+ govpl_36251,drop,credit_other
82
+ govpl_36450,drop,credit_other
83
+ govpl_36486,drop,credit_other
84
+ govpl_36540,keep,credit_public_office
85
+ govpl_36561,keep,credit_public_office
86
+ govpl_36612,drop,credit_other
87
+ govpl_36620,drop,credit_other
88
+ govpl_36633,drop,credit_other
89
+ govpl_36634,drop,credit_other
90
+ govpl_36637,drop,credit_other
91
+ govpl_36640,keep,credit_public_office
92
+ govpl_36649,drop,credit_other
93
+ govpl_36694,drop,credit_other
94
+ govpl_36695,drop,credit_other
95
+ govpl_36703,keep,credit_public_office
96
+ govpl_36708,keep,credit_public_office
97
+ govpl_36720,drop,credit_other
98
+ govpl_36726,drop,credit_other
99
+ govpl_36732,drop,credit_other
100
+ govpl_36744,drop,credit_other
101
+ govpl_36746,drop,credit_other
102
+ govpl_36758,drop,credit_other
103
+ govpl_36761,keep,credit_public_office
104
+ govpl_36831,drop,credit_other
105
+ govpl_36850,keep,credit_public_office
106
+ govpl_36869,drop,credit_other
107
+ govpl_36980,keep,credit_public_office
108
+ govpl_37101,drop,credit_other
109
+ govpl_37182,keep,credit_public_office
110
+ govpl_37381,keep,credit_public_office
111
+ govpl_37546,drop,credit_other
112
+ govpl_37646,keep,credit_public_office
113
+ govpl_37858,keep,credit_public_office
114
+ govpl_37872,keep,credit_public_office
115
+ govpl_37897,keep,credit_public_office
116
+ govpl_37917,keep,credit_public_office
117
+ govpl_37943,keep,credit_public_office
118
+ govpl_37953,keep,credit_public_office
119
+ govpl_37988,keep,no_text_credit
120
+ govpl_38048,keep,credit_public_office
121
+ govpl_38146,keep,credit_public_office
122
+ govpl_38165,keep,credit_public_office
123
+ govpl_38209,keep,no_text_credit
124
+ govpl_38216,keep,credit_public_office
125
+ govpl_38217,keep,no_text_credit
126
+ govpl_38226,keep,no_text_credit
127
+ govpl_38237,keep,credit_public_office
128
+ govpl_38300,keep,no_text_credit
129
+ govpl_38338,keep,no_text_credit
130
+ govpl_38346,keep,no_text_credit
131
+ govpl_38351,keep,no_text_credit
132
+ govpl_38355,keep,credit_public_office
133
+ govpl_38357,keep,no_text_credit
134
+ govpl_38365,keep,no_text_credit
135
+ govpl_38394,drop,credit_other
136
+ govpl_38459,keep,credit_public_office
137
+ govpl_38474,keep,credit_public_office
138
+ govpl_38476,keep,credit_public_office
139
+ govpl_38504,drop,credit_other
140
+ govpl_38550,drop,credit_other
141
+ govpl_38555,drop,credit_other
142
+ govpl_38836,keep,no_text_credit
143
+ govpl_38991,keep,no_text_credit
144
+ govpl_39058,drop,credit_other
145
+ govpl_39182,keep,credit_public_office
146
+ govpl_39300,keep,credit_public_office
147
+ govpl_39398,drop,credit_other
148
+ govpl_39838,keep,credit_public_office
149
+ govpl_41412,keep,credit_public_office
150
+ govpl_43894,keep,credit_public_office
151
+ govpl_43901,keep,no_text_credit
152
+ govpl_44235,drop,credit_other
153
+ govpl_44244,keep,credit_public_office
154
+ govpl_44258,keep,credit_public_office
155
+ govpl_44274,keep,credit_public_office
156
+ govpl_44308,keep,credit_public_office
157
+ govpl_44338,keep,credit_public_office
158
+ govpl_44406,keep,credit_public_office
159
+ govpl_44426,keep,credit_public_office
160
+ govpl_44439,keep,credit_public_office
161
+ govpl_44482,keep,credit_public_office
162
+ govpl_44497,keep,credit_public_office
163
+ govpl_44526,keep,credit_public_office
164
+ govpl_44535,keep,credit_public_office
165
+ govpl_44542,drop,third_party_text
166
+ govpl_45434,keep,credit_public_office
167
+ govpl_45442,keep,credit_public_office
168
+ govpl_46170,keep,no_text_credit
169
+ govpl_46415,drop,credit_other
170
+ govpl_46493,keep,no_text_credit
171
+ govpl_46533,keep,credit_public_office
172
+ govpl_46534,keep,credit_public_office
173
+ govpl_46537,keep,credit_public_office
174
+ govpl_46555,keep,credit_public_office
175
+ govpl_46564,keep,credit_public_office
176
+ govpl_46573,keep,credit_public_office
177
+ govpl_46575,keep,credit_public_office
178
+ govpl_46579,keep,no_text_credit
179
+ govpl_46583,keep,credit_public_office
180
+ govpl_46598,keep,no_text_credit
181
+ govpl_46607,keep,credit_public_office
182
+ govpl_46622,keep,credit_public_office
183
+ govpl_46624,keep,no_text_credit
184
+ govpl_46625,keep,credit_public_office
185
+ govpl_46636,drop,credit_other
186
+ govpl_46654,keep,credit_public_office
187
+ govpl_46657,drop,credit_other
188
+ govpl_46688,drop,credit_other
189
+ govpl_46786,drop,credit_other
190
+ govpl_46788,keep,credit_public_office
191
+ govpl_46866,drop,credit_other
192
+ govpl_46878,keep,credit_public_office
193
+ govpl_46886,keep,credit_public_office
194
+ govpl_46890,keep,credit_public_office
195
+ govpl_46900,keep,credit_public_office
196
+ govpl_46902,keep,credit_public_office
197
+ govpl_46912,drop,credit_other
198
+ govpl_46913,keep,credit_public_office
199
+ govpl_46949,drop,credit_other
200
+ govpl_47075,drop,credit_other
201
+ govpl_47080,drop,credit_other
202
+ govpl_47087,keep,credit_public_office
203
+ govpl_47110,keep,no_text_credit
204
+ govpl_47118,drop,credit_other
205
+ govpl_47126,keep,no_text_credit
206
+ govpl_47128,drop,credit_other
207
+ govpl_47136,keep,no_text_credit
208
+ govpl_47143,keep,no_text_credit
209
+ govpl_47163,drop,credit_other
210
+ govpl_47164,keep,credit_public_office
211
+ govpl_47169,keep,no_text_credit
212
+ govpl_47176,keep,credit_public_office
213
+ govpl_47226,keep,credit_public_office
214
+ govpl_47271,keep,credit_public_office
215
+ govpl_47370,keep,credit_public_office
216
+ govpl_47433,keep,credit_public_office
217
+ govpl_47488,drop,credit_other
218
+ govpl_47499,keep,no_text_credit
219
+ govpl_47508,drop,credit_media
220
+ govpl_47657,keep,no_text_credit
221
+ govpl_47672,keep,credit_public_office
222
+ govpl_47827,drop,credit_other
223
+ govpl_47862,drop,credit_other
224
+ govpl_47954,keep,credit_public_office
225
+ govpl_48078,keep,credit_public_office
226
+ govpl_48107,keep,credit_public_office
227
+ govpl_48111,keep,credit_public_office
228
+ govpl_48127,keep,credit_public_office
229
+ govpl_48486,keep,no_text_credit
230
+ govpl_49932,keep,credit_public_office
231
+ govpl_49941,keep,credit_public_office
232
+ govpl_50981,drop,credit_other
233
+ govpl_51065,keep,credit_public_office
234
+ govpl_51440,drop,credit_other
235
+ govpl_51734,drop,credit_other
236
+ govpl_51742,drop,credit_other
237
+ govpl_52437,keep,no_text_credit
238
+ govpl_52919,drop,credit_other
239
+ govpl_53157,keep,credit_public_office
240
+ govpl_53576,keep,credit_public_office
241
+ govpl_53629,keep,credit_public_office
242
+ govpl_53667,keep,credit_public_office
243
+ govpl_53676,keep,credit_public_office
244
+ govpl_53696,keep,credit_public_office
245
+ govpl_53731,keep,credit_public_office
246
+ govpl_53750,drop,credit_other
247
+ govpl_53768,keep,credit_public_office
248
+ govpl_53776,keep,credit_public_office
249
+ govpl_53832,keep,credit_public_office
250
+ govpl_53847,keep,credit_public_office
251
+ govpl_53860,keep,credit_public_office
252
+ govpl_53899,keep,credit_public_office
253
+ govpl_53911,keep,credit_public_office
254
+ govpl_53928,drop,credit_other
255
+ govpl_53930,keep,credit_public_office
256
+ govpl_53934,keep,credit_public_office
257
+ govpl_53956,drop,credit_other
258
+ govpl_53960,keep,credit_public_office
259
+ govpl_53981,drop,credit_other
260
+ govpl_53993,keep,credit_public_office
261
+ govpl_54001,keep,credit_public_office
262
+ govpl_54005,keep,credit_public_office
263
+ govpl_54013,drop,credit_other
264
+ govpl_54018,drop,credit_other
265
+ govpl_54021,keep,credit_public_office
266
+ govpl_54028,keep,credit_public_office
267
+ govpl_54040,keep,credit_public_office
268
+ govpl_54080,keep,credit_public_office
269
+ govpl_54098,drop,credit_other
270
+ govpl_54136,keep,credit_public_office
271
+ govpl_54146,drop,credit_other
272
+ govpl_54157,keep,credit_public_office
273
+ govpl_54197,keep,credit_public_office
274
+ govpl_54201,keep,credit_public_office
275
+ govpl_54225,keep,credit_public_office
276
+ govpl_54236,keep,credit_public_office
277
+ govpl_54249,keep,credit_public_office
278
+ govpl_54283,keep,credit_public_office
279
+ govpl_54318,keep,credit_public_office
280
+ govpl_54373,keep,credit_public_office
281
+ govpl_54394,keep,credit_public_office
282
+ govpl_54408,drop,credit_other
283
+ govpl_54410,keep,credit_public_office
284
+ govpl_54418,keep,credit_public_office
285
+ govpl_54442,keep,credit_public_office
286
+ govpl_54457,drop,credit_other
287
+ govpl_54467,keep,credit_public_office
288
+ govpl_54503,drop,credit_other
289
+ govpl_54524,drop,credit_other
290
+ govpl_54551,drop,credit_other
291
+ govpl_54572,keep,credit_public_office
292
+ govpl_54617,keep,credit_public_office
293
+ govpl_54645,keep,credit_public_office
294
+ govpl_54649,drop,credit_other
295
+ govpl_54798,keep,credit_public_office
296
+ govpl_54809,keep,credit_public_office
297
+ govpl_54919,keep,no_text_credit
298
+ govpl_55090,drop,credit_other
299
+ govpl_55126,keep,credit_public_office
300
+ govpl_55168,keep,credit_public_office
301
+ govpl_55177,keep,credit_public_office
302
+ govpl_55187,keep,credit_public_office
303
+ govpl_55191,keep,credit_public_office
304
+ govpl_55210,keep,credit_public_office
305
+ govpl_55224,keep,credit_public_office
306
+ govpl_55243,keep,credit_public_office
307
+ govpl_55284,drop,credit_other
308
+ govpl_55296,drop,credit_other
309
+ govpl_55331,drop,credit_other
310
+ govpl_55336,drop,credit_other
311
+ govpl_55380,keep,credit_public_office
312
+ govpl_55406,keep,credit_public_office
313
+ govpl_55499,drop,credit_other
314
+ govpl_55501,drop,credit_other
315
+ govpl_56687,keep,credit_public_office
316
+ govpl_56694,keep,credit_public_office
317
+ govpl_56841,keep,credit_public_office
318
+ govpl_56918,keep,credit_public_office
319
+ govpl_56952,keep,credit_public_office
320
+ govpl_56954,keep,credit_public_office
321
+ govpl_56965,keep,credit_public_office
322
+ govpl_56988,keep,credit_public_office
323
+ govpl_56997,keep,credit_public_office
324
+ govpl_57035,keep,credit_public_office
325
+ govpl_57037,keep,credit_public_office
326
+ govpl_57041,keep,credit_public_office
327
+ govpl_57079,keep,credit_public_office
328
+ govpl_57102,keep,credit_public_office
329
+ govpl_57142,keep,credit_public_office
330
+ govpl_57176,keep,credit_public_office
331
+ govpl_57183,drop,credit_other
332
+ govpl_57187,keep,credit_public_office
333
+ govpl_57189,keep,credit_public_office
334
+ govpl_57208,keep,credit_public_office
335
+ govpl_57222,keep,credit_public_office
336
+ govpl_57232,keep,credit_public_office
337
+ govpl_57269,keep,credit_public_office
338
+ govpl_57277,keep,credit_public_office
339
+ govpl_57341,keep,credit_public_office
340
+ govpl_57370,drop,credit_other
341
+ govpl_57406,drop,credit_other
342
+ govpl_57483,keep,credit_public_office
343
+ govpl_57534,keep,credit_public_office
344
+ govpl_57601,keep,credit_public_office
345
+ govpl_57774,keep,credit_public_office
346
+ govpl_57776,keep,credit_public_office
347
+ govpl_57789,keep,credit_public_office
348
+ govpl_57818,drop,credit_other
349
+ govpl_57852,keep,credit_public_office
350
+ govpl_57919,keep,credit_public_office
351
+ govpl_57998,drop,credit_other
352
+ govpl_58003,drop,credit_other
353
+ govpl_58031,keep,credit_public_office
354
+ govpl_58047,drop,credit_other
355
+ govpl_58062,keep,credit_public_office
356
+ govpl_58071,keep,credit_public_office
357
+ govpl_58095,keep,credit_public_office
358
+ govpl_58107,keep,credit_public_office
359
+ govpl_58141,keep,credit_public_office
360
+ govpl_58156,keep,credit_public_office
361
+ govpl_58158,keep,credit_public_office
362
+ govpl_58177,keep,credit_public_office
363
+ govpl_58225,keep,credit_public_office
364
+ govpl_58241,keep,credit_public_office
365
+ govpl_58243,keep,credit_public_office
366
+ govpl_58269,keep,credit_public_office
367
+ govpl_58272,keep,credit_public_office
368
+ govpl_58306,keep,credit_public_office
369
+ govpl_58339,keep,credit_public_office
370
+ govpl_58348,keep,credit_public_office
371
+ govpl_58355,keep,credit_public_office
372
+ govpl_58369,keep,credit_public_office
373
+ govpl_58373,keep,credit_public_office
374
+ govpl_58381,keep,credit_public_office
375
+ govpl_58388,keep,credit_public_office
376
+ govpl_58392,keep,credit_public_office
377
+ govpl_58412,keep,credit_public_office
378
+ govpl_58422,keep,credit_public_office
379
+ govpl_58426,keep,credit_public_office
380
+ govpl_58464,keep,credit_public_office
381
+ govpl_58468,keep,credit_public_office
382
+ govpl_58473,keep,credit_public_office
383
+ govpl_58475,keep,credit_public_office
384
+ govpl_58509,keep,credit_public_office
385
+ govpl_58516,keep,credit_public_office
386
+ govpl_58521,keep,credit_public_office
387
+ govpl_58528,keep,credit_public_office
388
+ govpl_58533,keep,credit_public_office
389
+ govpl_58548,keep,credit_public_office
390
+ govpl_58558,keep,credit_public_office
391
+ govpl_58589,keep,credit_public_office
392
+ govpl_58795,keep,credit_public_office
393
+ govpl_58824,drop,credit_other
394
+ govpl_58872,drop,credit_other
395
+ govpl_59039,drop,credit_other
396
+ govpl_59073,keep,credit_public_office
397
+ govpl_59456,keep,credit_public_office
398
+ govpl_59930,drop,credit_other
399
+ govpl_60582,keep,credit_public_office
400
+ govpl_60651,keep,credit_public_office
401
+ govpl_61048,keep,credit_public_office
402
+ govpl_61370,drop,credit_other
403
+ govpl_61486,keep,credit_public_office
404
+ govpl_61551,drop,credit_other
405
+ govpl_61653,keep,credit_public_office
406
+ govpl_61669,keep,credit_public_office
407
+ govpl_61731,keep,credit_public_office
408
+ govpl_61739,keep,credit_public_office
409
+ govpl_61792,keep,credit_public_office
410
+ govpl_61797,keep,credit_public_office
411
+ govpl_61801,keep,credit_public_office
412
+ govpl_61850,keep,credit_public_office
413
+ govpl_62038,keep,credit_public_office
414
+ govpl_62064,keep,no_text_credit
415
+ govpl_62115,keep,credit_public_office
416
+ govpl_62142,keep,no_text_credit
417
+ govpl_62306,keep,credit_public_office
418
+ govpl_62482,keep,credit_public_office
419
+ govpl_62633,keep,credit_public_office
420
+ govpl_62653,keep,credit_public_office
421
+ govpl_62807,keep,credit_public_office
422
+ govpl_62964,keep,credit_public_office
423
+ govpl_62970,keep,credit_public_office
424
+ govpl_62990,keep,credit_public_office
425
+ govpl_63020,keep,credit_public_office
426
+ govpl_63059,drop,credit_media
427
+ govpl_63106,drop,credit_other
428
+ govpl_63193,keep,credit_public_office
429
+ govpl_63203,keep,credit_public_office
430
+ govpl_63213,keep,credit_public_office
431
+ govpl_63235,keep,credit_public_office
432
+ govpl_63245,keep,credit_public_office
433
+ govpl_63251,keep,credit_public_office
434
+ govpl_63288,keep,credit_public_office
435
+ govpl_63314,drop,credit_other
436
+ govpl_63317,keep,credit_public_office
437
+ govpl_63350,keep,credit_public_office
438
+ govpl_63359,keep,credit_public_office
439
+ govpl_63377,keep,credit_public_office
440
+ govpl_63381,drop,credit_other
441
+ govpl_63442,drop,credit_other
442
+ govpl_63766,keep,credit_public_office
443
+ govpl_63770,keep,credit_public_office
444
+ govpl_64924,drop,credit_other
445
+ govpl_65055,keep,credit_public_office
446
+ govpl_65057,keep,credit_public_office
447
+ govpl_65070,keep,no_text_credit
448
+ govpl_65118,keep,credit_public_office
449
+ govpl_65122,keep,credit_public_office
450
+ govpl_65124,keep,no_text_credit
451
+ govpl_65178,keep,no_text_credit
452
+ govpl_65179,keep,credit_public_office
453
+ govpl_65188,keep,credit_public_office
454
+ govpl_65189,keep,credit_public_office
455
+ govpl_65190,keep,credit_public_office
456
+ govpl_65192,keep,credit_public_office
457
+ govpl_65193,keep,credit_public_office
458
+ govpl_65225,drop,credit_other
459
+ govpl_65465,keep,no_text_credit
460
+ govpl_66155,keep,no_text_credit
461
+ govpl_66203,keep,credit_public_office
462
+ govpl_66217,keep,credit_public_office
463
+ govpl_66353,keep,credit_public_office
464
+ govpl_66423,keep,no_text_credit
465
+ govpl_66444,keep,credit_public_office
466
+ govpl_66446,drop,credit_other
467
+ govpl_66471,keep,credit_public_office
468
+ govpl_66488,keep,credit_public_office
469
+ govpl_66540,keep,credit_public_office
470
+ govpl_66659,keep,no_text_credit
471
+ govpl_67030,keep,credit_public_office
472
+ govpl_67140,keep,credit_public_office
473
+ govpl_67161,keep,credit_public_office
474
+ govpl_67728,keep,credit_public_office
475
+ govpl_67961,keep,credit_public_office
476
+ govpl_67995,keep,credit_public_office
477
+ govpl_68159,drop,credit_other
478
+ govpl_68463,drop,credit_other
479
+ govpl_69117,keep,no_text_credit
480
+ govpl_71137,drop,credit_other
481
+ govpl_71276,keep,no_text_credit
482
+ govpl_71648,keep,credit_public_office
483
+ govpl_71659,keep,credit_public_office
484
+ govpl_71706,drop,credit_other
485
+ govpl_71851,keep,credit_public_office
486
+ govpl_71852,keep,credit_public_office
487
+ govpl_71902,keep,credit_public_office
488
+ govpl_71909,keep,credit_public_office
489
+ govpl_71919,drop,credit_other
490
+ govpl_71921,keep,credit_public_office
491
+ govpl_71926,drop,credit_other
492
+ govpl_71928,keep,no_text_credit
493
+ govpl_71933,keep,credit_public_office
494
+ govpl_71937,keep,credit_public_office
495
+ govpl_71940,keep,credit_public_office
496
+ govpl_71949,keep,credit_public_office
497
+ govpl_71950,keep,credit_public_office
498
+ govpl_71955,keep,credit_public_office
499
+ govpl_71956,keep,credit_public_office
500
+ govpl_71969,keep,credit_public_office
501
+ govpl_71980,keep,credit_public_office
502
+ govpl_71988,keep,credit_public_office
503
+ govpl_71992,keep,credit_public_office
504
+ govpl_71994,keep,credit_public_office
505
+ govpl_71997,keep,credit_public_office
506
+ govpl_71998,keep,credit_public_office
507
+ govpl_72026,keep,credit_public_office
508
+ govpl_72027,drop,credit_media
509
+ govpl_72035,keep,credit_public_office
510
+ govpl_72038,keep,credit_public_office
511
+ govpl_72042,keep,credit_public_office
512
+ govpl_72044,keep,credit_public_office
513
+ govpl_72045,keep,credit_public_office
514
+ govpl_72058,keep,credit_public_office
515
+ govpl_72060,drop,credit_media
516
+ govpl_72061,keep,credit_public_office
517
+ govpl_72073,keep,credit_public_office
518
+ govpl_72074,keep,credit_public_office
519
+ govpl_72077,keep,credit_public_office
520
+ govpl_72087,keep,credit_public_office
521
+ govpl_72100,drop,credit_other
522
+ govpl_72131,keep,credit_public_office
523
+ govpl_72167,drop,credit_other
524
+ govpl_72175,keep,no_text_credit
525
+ govpl_72187,drop,credit_media
526
+ govpl_72217,drop,credit_other
527
+ govpl_72218,keep,no_text_credit
528
+ govpl_72320,keep,credit_public_office
529
+ govpl_72397,keep,credit_public_office
530
+ govpl_72430,keep,credit_public_office
531
+ govpl_72434,keep,credit_public_office
532
+ govpl_72522,keep,credit_public_office
533
+ govpl_72538,keep,credit_public_office
534
+ govpl_72576,drop,credit_other
535
+ govpl_72837,drop,credit_other
536
+ govpl_73337,drop,credit_other
537
+ govpl_73397,drop,credit_media
538
+ govpl_73492,keep,credit_public_office
539
+ govpl_73587,keep,credit_public_office
540
+ govpl_73655,keep,no_text_credit
541
+ govpl_73984,drop,credit_other
542
+ govpl_74099,keep,credit_public_office
543
+ govpl_74119,drop,credit_media
544
+ govpl_74168,drop,credit_other
545
+ govpl_74247,drop,third_party_text
546
+ govpl_76365,keep,credit_public_office
547
+ govpl_76366,keep,credit_public_office
548
+ govpl_76380,drop,third_party_text
549
+ govpl_76381,keep,credit_public_office
550
+ govpl_76408,keep,credit_public_office
551
+ govpl_78895,keep,credit_public_office
552
+ govpl_79427,keep,credit_public_office
553
+ govpl_80434,drop,credit_other
554
+ govpl_80453,keep,no_text_credit
555
+ govpl_80462,keep,no_text_credit
556
+ govpl_80463,keep,no_text_credit
557
+ govpl_80476,keep,no_text_credit
558
+ govpl_80481,keep,no_text_credit
559
+ govpl_80482,drop,credit_other
560
+ govpl_80564,drop,credit_other
561
+ govpl_80571,keep,no_text_credit
562
+ govpl_80573,keep,no_text_credit
563
+ govpl_80594,drop,credit_other
564
+ govpl_80602,drop,credit_other
565
+ govpl_80630,keep,no_text_credit
566
+ govpl_80661,keep,credit_public_office
567
+ govpl_80668,keep,no_text_credit
568
+ govpl_80670,keep,no_text_credit
569
+ govpl_80685,keep,no_text_credit
570
+ govpl_80704,keep,no_text_credit
571
+ govpl_80712,keep,no_text_credit
572
+ govpl_80734,drop,credit_other
573
+ govpl_80739,keep,no_text_credit
574
+ govpl_80767,keep,credit_public_office
575
+ govpl_80775,keep,credit_public_office
576
+ govpl_80793,drop,credit_other
577
+ govpl_80838,drop,credit_other
578
+ govpl_80859,keep,credit_public_office
579
+ govpl_80876,keep,no_text_credit
580
+ govpl_80880,keep,no_text_credit
581
+ govpl_80883,keep,credit_public_office
582
+ govpl_80884,keep,no_text_credit
583
+ govpl_80922,keep,no_text_credit
584
+ govpl_80935,keep,no_text_credit
585
+ govpl_80940,keep,no_text_credit
586
+ govpl_80947,drop,credit_other
587
+ govpl_80973,drop,credit_other
588
+ govpl_80990,keep,no_text_credit
589
+ govpl_81001,keep,credit_public_office
590
+ govpl_81026,drop,credit_other
591
+ govpl_81046,keep,no_text_credit
592
+ govpl_81048,keep,no_text_credit
593
+ govpl_81089,keep,no_text_credit
594
+ govpl_81092,drop,credit_other
595
+ govpl_81098,drop,credit_other
596
+ govpl_81100,drop,credit_other
597
+ govpl_81128,keep,no_text_credit
598
+ govpl_81148,keep,no_text_credit
599
+ govpl_81159,keep,no_text_credit
600
+ govpl_81463,keep,no_text_credit
601
+ govpl_86201,keep,no_text_credit
602
+ govpl_86459,keep,credit_public_office
603
+ govpl_86478,keep,credit_public_office
604
+ govpl_86519,keep,credit_public_office
605
+ govpl_86521,keep,credit_public_office
606
+ govpl_86522,keep,credit_public_office
607
+ govpl_86693,keep,credit_public_office
608
+ govpl_86779,keep,credit_public_office
609
+ govpl_86847,keep,credit_public_office
610
+ govpl_86861,keep,credit_public_office
611
+ govpl_86878,keep,credit_public_office
612
+ govpl_86899,keep,no_text_credit
613
+ govpl_86901,keep,credit_public_office
614
+ govpl_86914,keep,no_text_credit
615
+ govpl_87196,keep,credit_public_office
616
+ govpl_87197,keep,credit_public_office
617
+ govpl_87218,keep,credit_public_office
618
+ govpl_87222,drop,credit_other
619
+ govpl_87240,keep,credit_public_office
620
+ govpl_87270,keep,credit_public_office
621
+ govpl_87274,keep,credit_public_office
622
+ govpl_87275,keep,credit_public_office
623
+ govpl_87277,keep,credit_public_office
624
+ govpl_87281,keep,credit_public_office
625
+ govpl_87284,keep,credit_public_office
626
+ govpl_87285,keep,credit_public_office
627
+ govpl_87294,keep,credit_public_office
628
+ govpl_87301,keep,credit_public_office
629
+ govpl_87311,keep,credit_public_office
630
+ govpl_87313,keep,credit_public_office
631
+ govpl_87315,keep,credit_public_office
632
+ govpl_87330,keep,credit_public_office
633
+ govpl_87347,keep,credit_public_office
634
+ govpl_87365,drop,credit_other
635
+ govpl_87373,keep,credit_public_office
636
+ govpl_87449,keep,credit_public_office
637
+ govpl_87524,keep,credit_public_office
638
+ govpl_87528,drop,credit_other
639
+ govpl_87530,drop,credit_other
640
+ govpl_87551,keep,credit_public_office
641
+ govpl_87556,drop,credit_other
642
+ govpl_87676,keep,credit_public_office
643
+ govpl_87683,drop,credit_other
644
+ govpl_87691,keep,credit_public_office
645
+ govpl_87703,drop,credit_other
646
+ govpl_87712,keep,credit_public_office
647
+ govpl_87729,drop,credit_other
648
+ govpl_87813,keep,credit_public_office
649
+ govpl_87814,keep,credit_public_office
650
+ govpl_87816,drop,credit_other
651
+ govpl_87834,keep,credit_public_office
652
+ govpl_87836,keep,credit_public_office
653
+ govpl_87884,drop,credit_other
654
+ govpl_87890,keep,credit_public_office
655
+ govpl_87913,keep,credit_public_office
656
+ govpl_87914,keep,credit_public_office
657
+ govpl_87919,keep,credit_public_office
658
+ govpl_87921,keep,credit_public_office
659
+ govpl_87931,drop,credit_other
660
+ govpl_87936,keep,credit_public_office
661
+ govpl_87941,drop,credit_other
662
+ govpl_87947,keep,credit_public_office
663
+ govpl_87949,keep,credit_public_office
664
+ govpl_87953,keep,credit_public_office
665
+ govpl_87954,keep,credit_public_office
666
+ govpl_87955,drop,credit_other
667
+ govpl_87957,keep,credit_public_office
668
+ govpl_87960,keep,credit_public_office
669
+ govpl_87963,keep,credit_public_office
670
+ govpl_87967,keep,credit_public_office
671
+ govpl_87970,keep,credit_public_office
672
+ govpl_87972,drop,credit_other
673
+ govpl_87975,keep,credit_public_office
674
+ govpl_87980,keep,credit_public_office
675
+ govpl_87984,keep,credit_public_office
676
+ govpl_87991,drop,credit_other
677
+ govpl_87992,keep,credit_public_office
678
+ govpl_87995,keep,credit_public_office
679
+ govpl_87997,keep,credit_public_office
680
+ govpl_88001,keep,credit_public_office
681
+ govpl_88003,drop,credit_other
682
+ govpl_88004,keep,credit_public_office
683
+ govpl_88008,keep,credit_public_office
684
+ govpl_88010,keep,credit_public_office
685
+ govpl_88012,drop,credit_media
686
+ govpl_88014,keep,credit_public_office
687
+ govpl_88015,keep,credit_public_office
688
+ govpl_88017,keep,credit_public_office
689
+ govpl_88018,keep,credit_public_office
690
+ govpl_88020,keep,credit_public_office
691
+ govpl_88024,keep,credit_public_office
692
+ govpl_88026,keep,credit_public_office
693
+ govpl_88028,keep,credit_public_office
694
+ govpl_88030,keep,credit_public_office
695
+ govpl_88032,keep,credit_public_office
696
+ govpl_88034,drop,credit_other
697
+ govpl_88037,keep,credit_public_office
698
+ govpl_88039,keep,credit_public_office
699
+ govpl_88041,keep,credit_public_office
700
+ govpl_88043,keep,credit_public_office
701
+ govpl_88045,keep,credit_public_office
702
+ govpl_88047,keep,credit_public_office
703
+ govpl_88050,keep,credit_public_office
704
+ govpl_88054,drop,credit_other
705
+ govpl_88056,keep,credit_public_office
706
+ govpl_88057,keep,credit_public_office
707
+ govpl_88059,keep,credit_public_office
708
+ govpl_88061,keep,credit_public_office
709
+ govpl_88064,keep,credit_public_office
710
+ govpl_88066,keep,credit_public_office
711
+ govpl_88068,keep,credit_public_office
712
+ govpl_88070,keep,credit_public_office
713
+ govpl_88073,keep,credit_public_office
714
+ govpl_88074,keep,credit_public_office
715
+ govpl_88076,keep,credit_public_office
716
+ govpl_88078,keep,credit_public_office
717
+ govpl_88079,keep,credit_public_office
src/clean_govpl.py CHANGED
@@ -1,5 +1,5 @@
1
  #!/usr/bin/env python3
2
- """Drop PAP reprints from `govpl` and write a per-row URL sidecar.
3
 
4
  gov.pl's copyright page (https://www.gov.pl/web/gov/prawa-autorskie) licenses the
5
  site's text under CC BY-SA 4.0 but excludes works whose copyright belongs to third
@@ -8,22 +8,32 @@ works (slayerlabs/polish-dynaword-v2#51). `fetch_govpl.pap_rule` names them; thi
8
  script removes them from the released Parquet, so ids and the other rows stay as they
9
  are (a rebuild through build_dynaword.py would renumber ids).
10
 
 
 
 
 
 
 
 
 
11
  `govpl.attribution.jsonl` gives each kept row the gov.pl URL, subsite, title and date
12
  of the fetched article, matched on build_dynaword's dedup key (SHA-1 of the stripped
13
  text) in the fetch output `govpl.jsonl.zst`. Where the same text was fetched from
14
  several URLs, the first one in fetch order is used.
15
 
16
- Both inputs are pinned by SHA-256. Restore the Parquet before a rerun:
17
  git checkout v0.2.5 -- data/govpl/govpl.parquet
18
  python3 src/clean_govpl.py --fetched ~/speakleash/govpl.jsonl.zst
19
  """
20
  from __future__ import annotations
21
 
22
  import argparse
 
23
  import hashlib
24
  import io
25
  import json
26
  import os
 
27
  import sys
28
  from collections import Counter
29
  from pathlib import Path
@@ -38,6 +48,12 @@ ROOT = Path(__file__).resolve().parents[1]
38
  DATA = ROOT / "data" / SOURCE
39
  INPUT_SHA256 = "9c0310fcdf45804e6547bd197cba55f58f12df618cd3d8b92b8e9077a3720b9f" # v0.2.5
40
  FETCHED_SHA256 = "368259d0ea8522eced71b426ae238556d5330a410aa994bdcbdc7427478d783a" # 2026-07-19 crawl
 
 
 
 
 
 
41
  BUILD_STATS = { # build_dynaword.py counts for the v0.2.5 Parquet, kept for the datasheet
42
  "read": 90140, "drop_short": 0, "drop_lang": 24, "drop_dup": 1926, "drop_ocr": 0,
43
  }
@@ -67,17 +83,40 @@ def check_pin(path: Path, expected: str, restore: str) -> None:
67
  raise SystemExit(f"{path} does not match the pinned SHA-256; {restore}")
68
 
69
 
70
- def build(input_path: Path, fetched_path: Path, out_dir: Path) -> dict:
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  check_pin(input_path, INPUT_SHA256, "restore it with `git checkout v0.2.5 -- data/govpl/govpl.parquet`")
72
  check_pin(fetched_path, FETCHED_SHA256, "it is not the 2026-07-19 gov.pl crawl")
 
73
  table = pq.read_table(input_path)
74
  meta = fetched_meta(fetched_path)
75
 
76
- kept, attribution, dropped = [], [], Counter()
 
77
  for row in table.to_pylist():
78
  if rule := pap_rule(row["text"]):
79
  dropped[rule] += 1
80
  continue
 
 
 
 
 
 
 
 
81
  found = meta.get(text_key(row["text"]))
82
  if found is None:
83
  raise SystemExit(f"{row['id']}: text not found in {fetched_path}")
@@ -86,14 +125,21 @@ def build(input_path: Path, fetched_path: Path, out_dir: Path) -> dict:
86
  "id": row["id"], "url": found["url"], "subsite": found["subsite"],
87
  "title": found["title"], "date": found["date"], "license": row["license"],
88
  })
 
 
 
 
89
 
90
  stats = {
91
  **BUILD_STATS, "drop_pap": sum(dropped.values()), "drop_pap_by_rule": dict(dropped),
 
 
92
  "kept": len(kept),
93
  "chars": sum(len(r["text"]) for r in kept), "tokens": sum(r["token_count"] for r in kept),
94
  "licenses": dict(Counter(r["license"] for r in kept)),
95
  "authors_with_value": sum(bool(r["author"]) for r in kept), "license": "CC-BY-SA-4.0",
96
  "input_rows": table.num_rows, "input_sha256": INPUT_SHA256, "fetched_sha256": FETCHED_SHA256,
 
97
  }
98
  build_drops = sum(v for k, v in BUILD_STATS.items() if k.startswith("drop_"))
99
  if stats["read"] - build_drops != table.num_rows:
@@ -117,9 +163,10 @@ def main() -> None:
117
  parser = argparse.ArgumentParser(description=__doc__.split("\n")[0])
118
  parser.add_argument("--input", type=Path, default=DATA / f"{SOURCE}.parquet")
119
  parser.add_argument("--fetched", type=Path, required=True, help="govpl.jsonl.zst from fetch_govpl.py")
 
120
  parser.add_argument("--out", type=Path, default=DATA)
121
  args = parser.parse_args()
122
- print(json.dumps(build(args.input, args.fetched, args.out), indent=2, ensure_ascii=False))
123
 
124
 
125
  if __name__ == "__main__":
 
1
  #!/usr/bin/env python3
2
+ """Drop PAP reprints and other third-party texts from `govpl` and write a per-row URL sidecar.
3
 
4
  gov.pl's copyright page (https://www.gov.pl/web/gov/prawa-autorskie) licenses the
5
  site's text under CC BY-SA 4.0 but excludes works whose copyright belongs to third
 
8
  script removes them from the released Parquet, so ids and the other rows stay as they
9
  are (a rebuild through build_dynaword.py would renumber ids).
10
 
11
+ Other third-party texts are dropped by `govpl.third-party-review.csv` (polish-dynaword-v2#106):
12
+ one decision per article that carries a "Źródło:" line (`ZRODLO`) and is not a PAP reprint,
13
+ plus six articles reprinted from or written for other outlets. A "Źródło:" article stays only
14
+ when its text is credited to a public office (`credit_public_office`) or the line credits
15
+ something other than the text, such as data, a chart, a reference or a quotation
16
+ (`no_text_credit`). The review must list exactly the non-PAP articles that match `ZRODLO`,
17
+ plus the `third_party_text` ones.
18
+
19
  `govpl.attribution.jsonl` gives each kept row the gov.pl URL, subsite, title and date
20
  of the fetched article, matched on build_dynaword's dedup key (SHA-1 of the stripped
21
  text) in the fetch output `govpl.jsonl.zst`. Where the same text was fetched from
22
  several URLs, the first one in fetch order is used.
23
 
24
+ The inputs and the review are pinned by SHA-256. Restore the Parquet before a rerun:
25
  git checkout v0.2.5 -- data/govpl/govpl.parquet
26
  python3 src/clean_govpl.py --fetched ~/speakleash/govpl.jsonl.zst
27
  """
28
  from __future__ import annotations
29
 
30
  import argparse
31
+ import csv
32
  import hashlib
33
  import io
34
  import json
35
  import os
36
+ import re
37
  import sys
38
  from collections import Counter
39
  from pathlib import Path
 
48
  DATA = ROOT / "data" / SOURCE
49
  INPUT_SHA256 = "9c0310fcdf45804e6547bd197cba55f58f12df618cd3d8b92b8e9077a3720b9f" # v0.2.5
50
  FETCHED_SHA256 = "368259d0ea8522eced71b426ae238556d5330a410aa994bdcbdc7427478d783a" # 2026-07-19 crawl
51
+ REVIEW_SHA256 = "599f678bb1f3e1d058b3d115667e73331f3324eaccc9766cf54694860533e90b" # govpl.third-party-review.csv
52
+ REVIEW_REASONS = {
53
+ "keep": {"credit_public_office", "no_text_credit"},
54
+ "drop": {"credit_media", "credit_other", "third_party_text"},
55
+ }
56
+ ZRODLO = re.compile(r"(?i)\b[źżz]r[óo]d[łl][oa](?:\s+informacji)?\s*:") # "Źródło:" / "Źródła:" line
57
  BUILD_STATS = { # build_dynaword.py counts for the v0.2.5 Parquet, kept for the datasheet
58
  "read": 90140, "drop_short": 0, "drop_lang": 24, "drop_dup": 1926, "drop_ocr": 0,
59
  }
 
83
  raise SystemExit(f"{path} does not match the pinned SHA-256; {restore}")
84
 
85
 
86
+ def read_review(path: Path) -> dict[str, tuple[str, str]]:
87
+ """id -> (decision, reason) from the pinned review table."""
88
+ check_pin(path, REVIEW_SHA256, "it is not the reviewed govpl.third-party-review.csv")
89
+ review = {}
90
+ with path.open(encoding="utf-8", newline="") as stream:
91
+ for line in csv.DictReader(stream):
92
+ if line["reason"] not in REVIEW_REASONS.get(line["decision"], ()):
93
+ raise SystemExit(f"{path}: bad decision or reason for {line['id']}")
94
+ if review.setdefault(line["id"], (line["decision"], line["reason"])) != (line["decision"], line["reason"]):
95
+ raise SystemExit(f"{path}: {line['id']} listed twice")
96
+ return review
97
+
98
+
99
+ def build(input_path: Path, fetched_path: Path, review_path: Path, out_dir: Path) -> dict:
100
  check_pin(input_path, INPUT_SHA256, "restore it with `git checkout v0.2.5 -- data/govpl/govpl.parquet`")
101
  check_pin(fetched_path, FETCHED_SHA256, "it is not the 2026-07-19 gov.pl crawl")
102
+ review = read_review(review_path)
103
  table = pq.read_table(input_path)
104
  meta = fetched_meta(fetched_path)
105
 
106
+ kept, attribution, dropped, dropped_third_party = [], [], Counter(), Counter()
107
+ mismatched, seen = [], set()
108
  for row in table.to_pylist():
109
  if rule := pap_rule(row["text"]):
110
  dropped[rule] += 1
111
  continue
112
+ decision, reason = review.get(row["id"], (None, None))
113
+ if decision:
114
+ seen.add(row["id"])
115
+ if bool(ZRODLO.search(row["text"])) != (decision is not None and reason != "third_party_text"):
116
+ mismatched.append(row["id"])
117
+ if decision == "drop":
118
+ dropped_third_party[reason] += 1
119
+ continue
120
  found = meta.get(text_key(row["text"]))
121
  if found is None:
122
  raise SystemExit(f"{row['id']}: text not found in {fetched_path}")
 
125
  "id": row["id"], "url": found["url"], "subsite": found["subsite"],
126
  "title": found["title"], "date": found["date"], "license": row["license"],
127
  })
128
+ if mismatched:
129
+ raise SystemExit(f"{len(mismatched)} rows where the review and the \"Źródło:\" match disagree: {mismatched[:5]}")
130
+ if missing := sorted(review.keys() - seen):
131
+ raise SystemExit(f"{len(missing)} reviewed ids are not in the input or are PAP reprints: {missing[:5]}")
132
 
133
  stats = {
134
  **BUILD_STATS, "drop_pap": sum(dropped.values()), "drop_pap_by_rule": dict(dropped),
135
+ "drop_third_party": sum(dropped_third_party.values()),
136
+ "drop_third_party_by_reason": dict(sorted(dropped_third_party.items())),
137
  "kept": len(kept),
138
  "chars": sum(len(r["text"]) for r in kept), "tokens": sum(r["token_count"] for r in kept),
139
  "licenses": dict(Counter(r["license"] for r in kept)),
140
  "authors_with_value": sum(bool(r["author"]) for r in kept), "license": "CC-BY-SA-4.0",
141
  "input_rows": table.num_rows, "input_sha256": INPUT_SHA256, "fetched_sha256": FETCHED_SHA256,
142
+ "review_sha256": REVIEW_SHA256,
143
  }
144
  build_drops = sum(v for k, v in BUILD_STATS.items() if k.startswith("drop_"))
145
  if stats["read"] - build_drops != table.num_rows:
 
163
  parser = argparse.ArgumentParser(description=__doc__.split("\n")[0])
164
  parser.add_argument("--input", type=Path, default=DATA / f"{SOURCE}.parquet")
165
  parser.add_argument("--fetched", type=Path, required=True, help="govpl.jsonl.zst from fetch_govpl.py")
166
+ parser.add_argument("--review", type=Path, default=DATA / f"{SOURCE}.third-party-review.csv")
167
  parser.add_argument("--out", type=Path, default=DATA)
168
  args = parser.parse_args()
169
+ print(json.dumps(build(args.input, args.fetched, args.review, args.out), indent=2, ensure_ascii=False))
170
 
171
 
172
  if __name__ == "__main__":
src/sources.py CHANGED
@@ -756,29 +756,45 @@ SOURCES = {
756
  "https://www.gov.pl/web/gov/prawa-autorskie: \"Treści tekstowe "
757
  "publikowane w serwisie … są udostępniane na licencji CC BY-SA "
758
  "4.0\"). The same page excludes works whose copyright belongs to "
759
- "third parties; using those needs the owners' consent. "
760
- "Articles crediting PAP are therefore dropped (legal note).",
 
761
  "upstream": "https://www.gov.pl/",
762
  "provenance": "Ministry/agency press releases fetched directly from gov.pl "
763
  "(editor-content per article, HTML stripped) by "
764
  "src/fetch_govpl.py. Subsites + their non-uniform news-section "
765
  "paths are enumerated by src/discover_govpl.py into the "
766
  "committed manifest src/govpl_subsites.json (gov.pl has no "
767
- "sitemap/API). v0.2.6 removes PAP reprints from the v0.2.5 "
 
768
  "Parquet with src/clean_govpl.py, which also writes "
769
  "govpl.attribution.jsonl: each row's gov.pl URL, subsite, "
770
  "title and date.",
771
  "legal_note": "gov.pl's copyright page carves out \"utwory, co do których "
772
  "prawa autorskie przysługują osobom trzecim\" from its CC BY-SA "
773
- "4.0 grant. Articles crediting PAP (Polish Press Agency) as their "
774
- "source are such works, so 188 are dropped (rule "
775
  "fetch_govpl.pap_rule, applied by src/clean_govpl.py): a "
776
  "\"Źródło:\" line naming PAP (163), \"Na podst. … PAP\" (22), a "
777
- "\"(PAP)\" sign-off line (2) and one PAP interview transcript (1). "
778
- "PAP photo credits and articles that only quote or mention PAP "
779
- "stay. Other third-party text is not screened: 710 kept articles "
780
- "carry a \"Źródło:\" line naming some other source; they were "
781
- "not reviewed.",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
782
  "domain": "government",
783
  # actual min/max of article dates in the fetched corpus (90,124 dated).
784
  "created": "2005-09-26, 2026-07-19",
 
756
  "https://www.gov.pl/web/gov/prawa-autorskie: \"Treści tekstowe "
757
  "publikowane w serwisie … są udostępniane na licencji CC BY-SA "
758
  "4.0\"). The same page excludes works whose copyright belongs to "
759
+ "third parties; using those needs the owners' consent. Articles "
760
+ "crediting PAP and other third-party texts are therefore "
761
+ "dropped (legal note).",
762
  "upstream": "https://www.gov.pl/",
763
  "provenance": "Ministry/agency press releases fetched directly from gov.pl "
764
  "(editor-content per article, HTML stripped) by "
765
  "src/fetch_govpl.py. Subsites + their non-uniform news-section "
766
  "paths are enumerated by src/discover_govpl.py into the "
767
  "committed manifest src/govpl_subsites.json (gov.pl has no "
768
+ "sitemap/API). v0.2.6 removes PAP reprints and the third-party "
769
+ "texts listed in govpl.third-party-review.csv from the v0.2.5 "
770
  "Parquet with src/clean_govpl.py, which also writes "
771
  "govpl.attribution.jsonl: each row's gov.pl URL, subsite, "
772
  "title and date.",
773
  "legal_note": "gov.pl's copyright page carves out \"utwory, co do których "
774
  "prawa autorskie przysługują osobom trzecim\" from its CC BY-SA "
775
+ "4.0 grant. Articles crediting PAP (Polish Press Agency) as "
776
+ "their source are such works, so 188 are dropped (rule "
777
  "fetch_govpl.pap_rule, applied by src/clean_govpl.py): a "
778
  "\"Źródło:\" line naming PAP (163), \"Na podst. … PAP\" (22), a "
779
+ "\"(PAP)\" sign-off line (2) and one PAP interview transcript "
780
+ "(1). PAP photo credits and articles that only quote or "
781
+ "mention PAP stay. Other third-party text was reviewed in "
782
+ "v0.2.6 (our assessment, src/clean_govpl.py with "
783
+ "govpl.third-party-review.csv): every other article with a "
784
+ "\"Źródło:\" line (710) was classified by the source the line "
785
+ "credits, and interview and reprint rules found 6 more. 186 "
786
+ "are dropped: 13 whose text is credited, wholly or partly, to "
787
+ "a news portal, news agency, broadcaster or magazine, 167 "
788
+ "whose text is credited, wholly or partly, to a source other "
789
+ "than a public office (for example an NGO, an international or "
790
+ "EU body, a company, a university, a museum or another "
791
+ "website) and 6 interviews and reprints from other outlets "
792
+ "(one names no outlet). The 530 that stay credit their text to "
793
+ "a public office (436) or credit only data, a chart, a "
794
+ "reference or a quotation (94). Teasers that quote a "
795
+ "third-party interview and point to it stay. Articles that "
796
+ "match none of these rules were checked on a seeded sample of "
797
+ "200; none was a third-party text.",
798
  "domain": "government",
799
  # actual min/max of article dates in the fetched corpus (90,124 dated).
800
  "created": "2005-09-26, 2026-07-19",
src/test_govpl_contract.py CHANGED
@@ -1,8 +1,10 @@
1
  """TDD contract for the direct gov.pl (press releases) ingestion path."""
 
2
  import json
3
  import re
4
  import sys
5
  import unittest
 
6
  from pathlib import Path
7
 
8
  import pyarrow.parquet as pq
@@ -10,11 +12,13 @@ import pyarrow.parquet as pq
10
  sys.path.insert(0, str(Path(__file__).resolve().parent))
11
 
12
  from discover_govpl import listing_articles, news_candidates, max_page
 
13
  from fetch_govpl import article_body, normalize, pap_rule, BASE
 
14
 
15
  DATA = Path(__file__).resolve().parents[1] / "data" / "govpl"
16
  ISSUE_51_RULE = re.compile(r"(?i)\bźr[óo]d[łl]o\s*:\s*/?[^\n]{0,60}\bPAP\b") # polish-dynaword-v2#51
17
- RELEASED_ROWS = 88002 # 88,190 in v0.2.5 minus 188 PAP reprints
18
 
19
  LISTING = """
20
  <div class="art-prev">
@@ -115,6 +119,14 @@ class GovplContractTest(unittest.TestCase):
115
  ):
116
  self.assertIsNone(pap_rule(text), text)
117
 
 
 
 
 
 
 
 
 
118
  def test_normalize_drops_pap_reprint(self):
119
  art = {"url": "/web/kultura/x", "title": "Nagłówek", "date": "14.07.2026"}
120
  reprint = ARTICLE.replace("</p>", "</p><p>Źródło: /PAP, MKiDN/</p>", 1)
@@ -123,7 +135,7 @@ class GovplContractTest(unittest.TestCase):
123
 
124
 
125
  class GovplReleaseContractTest(unittest.TestCase):
126
- """The released files: PAP reprints gone, stats and URL sidecar match the Parquet."""
127
 
128
  @classmethod
129
  def setUpClass(cls):
@@ -131,18 +143,33 @@ class GovplReleaseContractTest(unittest.TestCase):
131
  cls.stats = json.loads((DATA / "govpl.stats.json").read_text(encoding="utf-8"))
132
  with (DATA / "govpl.attribution.jsonl").open(encoding="utf-8") as stream:
133
  cls.sidecar = [json.loads(line) for line in stream]
 
 
134
 
135
  def test_no_pap_reprints(self):
136
  texts = self.table.column("text").to_pylist()
137
  self.assertEqual([t for t in texts if ISSUE_51_RULE.search(t)], [])
138
  self.assertEqual([t for t in texts if pap_rule(t)], [])
139
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  def test_row_count_and_stats(self):
141
  st = self.stats
142
  self.assertEqual(self.table.num_rows, RELEASED_ROWS)
143
  self.assertEqual(st["kept"], RELEASED_ROWS)
144
  self.assertEqual(st["drop_pap"], sum(st["drop_pap_by_rule"].values()))
145
- self.assertEqual(st["input_rows"] - st["drop_pap"], st["kept"])
146
  drops = sum(v for k, v in st.items() if k.startswith("drop_") and isinstance(v, int))
147
  self.assertEqual(st["read"] - drops, st["kept"])
148
  self.assertEqual(st["tokens"], sum(self.table.column("token_count").to_pylist()))
@@ -155,7 +182,10 @@ class GovplReleaseContractTest(unittest.TestCase):
155
  st, md = self.stats, (DATA / "govpl.md").read_text(encoding="utf-8")
156
  self.assertIn(f"| {st['kept']:,} | {st['chars']:,} | {st['tokens']:,} |", md)
157
  self.assertIn(f"drop PAP reprints: **{st['drop_pap']:,}**", md)
 
158
  self.assertIn(f"read {st['input_rows']:,} → kept {st['kept']:,}", md)
 
 
159
 
160
  def test_sidecar_gives_every_row_a_govpl_url(self):
161
  self.assertEqual([a["id"] for a in self.sidecar], self.table.column("id").to_pylist())
 
1
  """TDD contract for the direct gov.pl (press releases) ingestion path."""
2
+ import csv
3
  import json
4
  import re
5
  import sys
6
  import unittest
7
+ from collections import Counter
8
  from pathlib import Path
9
 
10
  import pyarrow.parquet as pq
 
12
  sys.path.insert(0, str(Path(__file__).resolve().parent))
13
 
14
  from discover_govpl import listing_articles, news_candidates, max_page
15
+ from clean_govpl import REVIEW_REASONS, ZRODLO
16
  from fetch_govpl import article_body, normalize, pap_rule, BASE
17
+ from sources import SOURCES
18
 
19
  DATA = Path(__file__).resolve().parents[1] / "data" / "govpl"
20
  ISSUE_51_RULE = re.compile(r"(?i)\bźr[óo]d[łl]o\s*:\s*/?[^\n]{0,60}\bPAP\b") # polish-dynaword-v2#51
21
+ RELEASED_ROWS = 87816 # 88,190 in v0.2.5 minus 188 PAP reprints and 186 other third-party texts (v2#106)
22
 
23
  LISTING = """
24
  <div class="art-prev">
 
119
  ):
120
  self.assertIsNone(pap_rule(text), text)
121
 
122
+ def test_zrodlo_line_rule(self):
123
+ for text in ("Tekst.\n\nŹródło: MSWiA", "Zródło: KPRM", "żródło : gov.pl", "Źródła: GUS, MZ",
124
+ "Źródło informacji: Policja", "ŹRÓDŁO: WHO"):
125
+ self.assertRegex(text, ZRODLO)
126
+ for text in ("Źródło MSWiA", "Źródłem danych jest GUS.", "źródło finansowania: budżet",
127
+ "Ogólnoźródło: x", "u źródeł: rzeka"):
128
+ self.assertNotRegex(text, ZRODLO)
129
+
130
  def test_normalize_drops_pap_reprint(self):
131
  art = {"url": "/web/kultura/x", "title": "Nagłówek", "date": "14.07.2026"}
132
  reprint = ARTICLE.replace("</p>", "</p><p>Źródło: /PAP, MKiDN/</p>", 1)
 
135
 
136
 
137
  class GovplReleaseContractTest(unittest.TestCase):
138
+ """The released files: PAP reprints and reviewed third-party texts gone, stats and URL sidecar match the Parquet."""
139
 
140
  @classmethod
141
  def setUpClass(cls):
 
143
  cls.stats = json.loads((DATA / "govpl.stats.json").read_text(encoding="utf-8"))
144
  with (DATA / "govpl.attribution.jsonl").open(encoding="utf-8") as stream:
145
  cls.sidecar = [json.loads(line) for line in stream]
146
+ with (DATA / "govpl.third-party-review.csv").open(encoding="utf-8", newline="") as stream:
147
+ cls.review = list(csv.DictReader(stream))
148
 
149
  def test_no_pap_reprints(self):
150
  texts = self.table.column("text").to_pylist()
151
  self.assertEqual([t for t in texts if ISSUE_51_RULE.search(t)], [])
152
  self.assertEqual([t for t in texts if pap_rule(t)], [])
153
 
154
+ def test_third_party_review_is_applied(self):
155
+ ids, texts = self.table.column("id").to_pylist(), self.table.column("text").to_pylist()
156
+ keep = {r["id"] for r in self.review if r["decision"] == "keep"}
157
+ drop = {r["id"] for r in self.review if r["decision"] == "drop"}
158
+ self.assertEqual(len(keep) + len(drop), len(self.review))
159
+ self.assertEqual({i for i, t in zip(ids, texts) if ZRODLO.search(t)}, keep)
160
+ self.assertEqual(drop & set(ids), set())
161
+ for r in self.review:
162
+ self.assertIn(r["reason"], REVIEW_REASONS[r["decision"]], r)
163
+ by_reason = Counter(r["reason"] for r in self.review if r["decision"] == "drop")
164
+ self.assertEqual(self.stats["drop_third_party_by_reason"], dict(by_reason))
165
+ self.assertEqual(self.stats["drop_third_party"], len(drop))
166
+
167
  def test_row_count_and_stats(self):
168
  st = self.stats
169
  self.assertEqual(self.table.num_rows, RELEASED_ROWS)
170
  self.assertEqual(st["kept"], RELEASED_ROWS)
171
  self.assertEqual(st["drop_pap"], sum(st["drop_pap_by_rule"].values()))
172
+ self.assertEqual(st["input_rows"] - st["drop_pap"] - st["drop_third_party"], st["kept"])
173
  drops = sum(v for k, v in st.items() if k.startswith("drop_") and isinstance(v, int))
174
  self.assertEqual(st["read"] - drops, st["kept"])
175
  self.assertEqual(st["tokens"], sum(self.table.column("token_count").to_pylist()))
 
182
  st, md = self.stats, (DATA / "govpl.md").read_text(encoding="utf-8")
183
  self.assertIn(f"| {st['kept']:,} | {st['chars']:,} | {st['tokens']:,} |", md)
184
  self.assertIn(f"drop PAP reprints: **{st['drop_pap']:,}**", md)
185
+ self.assertIn(f"drop other third-party texts: **{st['drop_third_party']:,}**", md)
186
  self.assertIn(f"read {st['input_rows']:,} → kept {st['kept']:,}", md)
187
+ for key in ("traceable", "provenance", "legal_note"):
188
+ self.assertIn(SOURCES["govpl"][key], md, key)
189
 
190
  def test_sidecar_gives_every_row_a_govpl_url(self):
191
  self.assertEqual([a["id"] for a in self.sidecar], self.table.column("id").to_pylist())