mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-11-10 18:47:11 +01:00
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> |
||
|---|---|---|
| .. | ||
| AIS | ||
| BD2 | ||
| BSS | ||
| E-PSYOPS | ||
| EADS | ||
| EARIN | ||
| ECOAR | ||
| ECOTE | ||
| ECRYPT | ||
| ECRYPT_PROJECT | ||
| EGUI | ||
| EOOP | ||
| EOPSY | ||
| EPFU | ||
| ERSMS-project | ||
| NLP | ||
| PBAD | ||
| PORR | ||
| PSD | ||
| psd_project | ||
| TRAK | ||
| twm_4 | ||
| USD | ||
| WDWR | ||
| ZPOB | ||