WUT_Computer_Science/Programming/PBAD
Krzysztof kuhy Rudnicki 22edc3afb6 PBAD: zero findings across three notebooks, outputs bit-for-bit intact
115 ruff findings to 0. All three notebooks' non-source content hashes the
same before and after -- c7660e3e5e3b8d4ffc008d7f, b918553ae0cf91cd56fa4091
and 3f09c77e3edae1727e3781e2 -- so every stored output, execution count and
piece of metadata is exactly what was submitted.

Most of the work was 35 over-long lines, and they are over-long because they
are full Polish GUS column descriptions used as dict keys in .rename(). A key
like "udziały w podatkach stanowiących dochody budżetu państwa podatek
dochodowy od osób fizycznych" cannot be shortened, only wrapped, so a script
re-wrapped all of them with implicit concatenation inside parentheses -- the
one form both ruff's linter and its formatter accept.

A script doing 134 mechanical edits to strings that are database keys is
exactly the kind of change that silently drops a space. So it is checked
mechanically: an AST pass collects every string dict key in every code cell of
both versions and compares the multisets. 120 keys in data.ipynb, 9 in
main.ipynb, 5 in pbad.ipynb, all identical.

The other 27 findings were commented-out code (ERA001), and deleting it would
have thrown away what it recorded: which other operational programmes were
run, which axis limits the plots were read at, that MinMaxScaler was tried and
made no difference, that an earlier pass dropped a hand-maintained column list.
Each is now a sentence of prose saying that, and git history still has the
code. Two cells were nothing but commented-out scratch and are now just the
note.

Also real: five `inplace=True` calls became assignments, `zip()` in three
feature-importance loops got `strict=True`, `max(max(a), max(b))` became
`max(*a, *b)`, and 1.5 and 7 became DENSE_GMINA_THRESHOLD and
TERYT_GMINA_DIGITS -- the latter being "a full TERYT gmina code is seven
digits", which is worth saying once rather than leaving as a bare literal.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-29 08:15:56 +02:00
..
.vscode Add 'Programming/PBAD/' from commit '71efbceab4e90b2b29e9e8882fd06d369c07a030' 2026-02-06 22:14:48 +01:00
report Untrack 189 regenerable artifacts and close the silent-ignore trap 2026-08-28 17:35:38 +02:00
.gitignore Add 'Programming/PBAD/' from commit '71efbceab4e90b2b29e9e8882fd06d369c07a030' 2026-02-06 22:14:48 +01:00
dane1.csv Add 'Programming/PBAD/' from commit '71efbceab4e90b2b29e9e8882fd06d369c07a030' 2026-02-06 22:14:48 +01:00
data.ipynb PBAD: zero findings across three notebooks, outputs bit-for-bit intact 2026-08-29 08:15:56 +02:00
gminy_centroid.csv Add 'Programming/PBAD/' from commit '71efbceab4e90b2b29e9e8882fd06d369c07a030' 2026-02-06 22:14:48 +01:00
main.ipynb PBAD: zero findings across three notebooks, outputs bit-for-bit intact 2026-08-29 08:15:56 +02:00
pbad.ipynb PBAD: zero findings across three notebooks, outputs bit-for-bit intact 2026-08-29 08:15:56 +02:00
run.sh Add a run.sh to every course, and fix the code that would not build 2026-08-28 18:37:55 +02:00