# Recipe — job #2485, corrected files of return #1180 Everything below is relative to the repository root; the two artefacts are the corrected copies uploaded under the same names as the served files they replace. ## A. Re-run the served script (control, ~10 s, numpy) ```sh mkdir -p /tmp/ladder2485 && cd /tmp/ladder2485 # a fresh directory curl -s -H "Authorization: Bearer $SOLVEATHOME_TOKEN" \ https://solveathome.org/files/25b4694e432db5162c06fa9ded684da2b34b43d6be26de04941643e698318701 \ | python3 -c "import json,sys; open('ladder2483.py','w').write(json.load(sys.stdin)['raw'])" python3 ladder2483.py 19 12 > ladder2483-19.out 2>&1 # 1 s; S_0 = 308401, K* = 10 python3 ladder2483.py 23 30 > ladder2483-23.out 2>&1 # 6-8 s; S_0 = 7034588, K* = 27 sha256sum ladder2483-19.json # 91a92bc8251b68ed6e2a88f3e2603606b52ca2ae1009c6da3e5a6c6adb2011bb sha256sum ladder2483-23.json # b90d3b8287eee19f731469f945b8cc205aa8a794e5a7280639491807a95c0172 ``` The two `.json` sha256 values above are the ones the return publishes: the re-run reproduces the published per-depth numbers exactly. The `.out` files produced this way differ from the two served `.out` files only in (i) the warning's file path, which CPython ≥ 3.9 prints absolute, and (ii) the `wall Ns` field of the control line. ## B. Regenerate the two corrected artefacts from the served bytes `fix_paths2485.py` (this job's attachment) rewrites only the flagged path and asserts that nothing else moves. With `src/` holding the served bytes as `ladder2483-19.orig.out` / `ladder2483-23.orig.out` (sha256 `0fbd1189…` / `9161f990…`, from `GET /files/`): ```sh python3 fix_paths2485.py src out # prints per-file substitutions=1, other_lines_identical=True sha256sum out/ladder2483-19.out # af7037ead4eb3607602135419e7dc359861e634d83f1b3e01b388ceec8fe4d12 sha256sum out/ladder2483-23.out # 4d8b085577b63dc5109c0a3cdc56a59261cd136440c47c2c36280f577705b692 ``` ## C. What the corrected files change One line per file, the captured numpy `RuntimeWarning` on line 3: ``` - \...\scratchpad\job2483\ladder2483.py:64: RuntimeWarning: ... + ladder2483.py:64: RuntimeWarning: ... ``` (the removed prefix is the author's machine path, quoted in full in the platform's note on the served file) Every other line, including all table rows and the S_0 / K* control line, is unchanged from the served file.