mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-11-10 19:47:32 +01:00
kuhy overruled the "do not fix coursework to be better than it was submitted" rule: git history is the archive, so the working tree can be clean. This lands the config and the mechanical half of the cleanup -- 9,281 ruff findings under the fleet config down to 3,686, with no per-file-ignores anywhere. What is in here: - pyproject.toml, the first one in this repo. select = ["ALL"], mypy strict, and the vendored list mirrored into ruff exclude and coverage omit. Five rules are off and each says why; CPY001 is the only judgement call, because stamping a copyright header onto 137 university assignments would assert a licence that was never claimed. No hook is wired up yet -- a gate lands only once its subject is clean. - ruff format + the safe fixes, then a second pass over the docstring rules ruff marks unsafe (they only edit docstring text). 108 files. - TRAK/sightpy is vendored, not coursework: it is rafael-fuente/Python-Raytracer (BSD 3-Clause). Verified against a fresh upstream clone with line endings normalised -- 30 of 32 files byte-identical, ray.py and scene.py carrying a 12- and 13-line local patch that counts rays for the report. 35 files that should never have been linted, now excluded and restored. - WDWR, SPD, MOM and ECRYPT are fully clean, by hand and verified by running them: WDWR's three plot scripts print the same statistics as before, MOM's PuLP model solves to the same cost. WDWR's graph.py had a 342-character CSV header embedded as a string literal, which cannot be wrapped -- the data moved to data/pareto_front.csv. Two 0-byte .py stubs are deleted; an empty file is not a deliverable and git still has it. Three harness bugs found by actually running things: - `run` now forces MPLBACKEND=Agg. TRAK finished its ray trace in 37 seconds and then sat for 45 minutes: plt.show() had opened an image viewer and was waiting for someone to close the window. - TRAK's main.py only pops that viewer with --show now, and its runner writes to a gitignored build/ via the new --entry-args. The default output path is outputs/output.png, which is TRACKED -- a plain run overwrote a submitted deliverable. - course_lib.sh was 357 lines, over this repo's own cap. Split into course_probe.sh and course_run.sh. Verified: ECOTE 26 tests pass, ECRYPT_PROJECT 99 pass, TRAK renders cornell_box in 37s and exits 0, every module compiles, and every import ruff removed was checked to be genuinely unused. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0172dj34FDpao6wsix8ZuCzE
2.3 KiB
2.3 KiB
| 1 | i | minimalAverageProfit | averageProfit | riskMeasureGini | m1_prod_P1 | m1_prod_P2 | m1_prod_P3 | m1_prod_P4 | m2_prod_P1 | m2_prod_P2 | m2_prod_P3 | m2_prod_P4 | m3_prod_P1 | m3_prod_P2 | m3_prod_P3 | m3_prod_P4 | m1_stock_P1 | m1_stock_P2 | m1_stock_P3 | m1_stock_P4 | m2_stock_P1 | m2_stock_P2 | m2_stock_P3 | m2_stock_P4 | m3_stock_P1 | m3_stock_P2 | m3_stock_P3 | m3_stock_P4 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 1 | -600 | -600 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 50 | 50 | 50 | 50 | 50 | 50 | 50 | 50 | 50 | 50 | 50 |
| 3 | 2 | -67.59 | -67.423334025 | 12.249866065 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 9 | 8 | 1 | 43 | 41 | 50 | 50 | 7 | 41 | 42 | 49 | 7 | 50 | 50 | 50 | 50 |
| 4 | 3 | 464.82 | 465.647226284 | 26.015138747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 29 | 20 | 19 | 9 | 52 | 30 | 50 | 41 | 0 | 30 | 31 | 41 | 0 | 50 | 50 | 50 | 50 |
| 5 | 4 | 997.23 | 997.66185313 | 40.349353614 | 0 | 0 | 0 | 110 | 0 | 0 | 0 | 0 | 30 | 30 | 13 | 50 | 20 | 50 | 37 | 0 | 20 | 20 | 37 | 0 | 50 | 50 | 50 | 50 |
| 6 | 5 | 1529.64 | 1530.172175866 | 54.689711726 | 0 | 0 | 0 | 114 | 0 | 0 | 0 | 0 | 42 | 40 | 17 | 92 | 8 | 50 | 33 | 0 | 8 | 10 | 33 | 0 | 50 | 50 | 50 | 50 |
| 7 | 6 | 2062.05 | 2062.088549477 | 69.062913221 | 0 | 0 | 0 | 9 | 0 | 0 | 0 | 200 | 50 | 50 | 25 | 50 | 0 | 50 | 25 | 0 | 0 | 0 | 25 | 0 | 50 | 50 | 50 | 50 |
| 8 | 7 | 2594.46 | 2594.684714046 | 84.265583873 | 9 | 0 | 0 | 64 | 0 | 10 | 0 | 159 | 50 | 51 | 28 | 51 | 0 | 50 | 22 | 0 | 0 | 0 | 22 | 0 | 50 | 50 | 50 | 50 |
| 9 | 8 | 3126.87 | 3127.12427492 | 99.497458717 | 20 | 0 | 0 | 0 | 0 | 30 | 0 | 111 | 50 | 58 | 35 | 249 | 0 | 50 | 15 | 0 | 0 | 0 | 15 | 0 | 50 | 50 | 50 | 50 |
| 10 | 9 | 3659.28 | 3659.345897427 | 114.728718529 | 29 | 0 | 0 | 2 | 1 | 31 | 0 | 200 | 50 | 69 | 39 | 249 | 0 | 50 | 11 | 0 | 0 | 0 | 11 | 0 | 50 | 50 | 50 | 50 |
| 11 | 10 | 4191.69 | 4191.916591732 | 129.963670504 | 36 | 0 | 0 | 114 | 5 | 32 | 0 | 160 | 50 | 79 | 45 | 210 | 0 | 50 | 5 | 0 | 0 | 0 | 5 | 0 | 50 | 50 | 50 | 50 |
| 12 | 11 | 4724.1 | 4724.191045823 | 145.204545226 | 50 | 0 | 0 | 100 | 2 | 34 | 0 | 197 | 50 | 89 | 50 | 250 | 0 | 50 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 50 | 50 | 50 |
| 13 | 12 | 5256.51 | 5256.719240584 | 162.349562672 | 72 | 0 | 34 | 150 | 0 | 3 | 0 | 200 | 50 | 123 | 50 | 210 | 0 | 50 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 50 | 50 | 50 |
| 14 | 13 | 5788.92 | 5789.016098305 | 182.46075748 | 122 | 0 | 0 | 150 | 1 | 1 | 0 | 200 | 50 | 149 | 94 | 210 | 0 | 50 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 50 | 50 | 50 |
| 15 | 14 | 6321.33 | 6321.358645932 | 205.000585625 | 110 | 0 | 50 | 150 | 19 | 33 | 0 | 200 | 50 | 156 | 102 | 250 | 0 | 50 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 50 | 50 | 50 |
| 16 | 15 | 6853.74 | 6853.83219788 | 229.023498807 | 109 | 0 | 24 | 110 | 1 | 0 | 94 | 160 | 50 | 191 | 51 | 250 | 0 | 50 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 50 | 50 | 50 |
| 17 | 16 | 7386.15 | 7386.171785273 | 253.962965038 | 1 | 0 | 1 | 150 | 121 | 30 | 189 | 200 | 50 | 200 | 50 | 210 | 0 | 50 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 50 | 50 | 50 |
| 18 | 17 | 7918.56 | 7918.565798346 | 279.907638363 | 110 | 0 | 30 | 110 | 59 | 48 | 76 | 160 | 50 | 205 | 130 | 210 | 0 | 50 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 50 | 50 | 50 |
| 19 | 18 | 8450.97 | 8451.020747071 | 306.383357869 | 111 | 0 | 0 | 150 | 72 | 0 | 191 | 200 | 50 | 256 | 131 | 210 | 0 | 50 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 50 | 50 | 50 |
| 20 | 19 | 8983.38 | 8983.400103901 | 332.936696297 | 111 | 0 | 49 | 110 | 83 | 15 | 144 | 200 | 50 | 317 | 149 | 250 | 0 | 50 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 50 | 50 | 50 |
| 21 | 20 | 9515.79 | 9515.804890325 | 360.18213126 | 110 | 0 | 30 | 110 | 110 | 28 | 160 | 160 | 50 | 273 | 150 | 250 | 0 | 50 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 50 | 50 | 50 |