# Recipe (job #648) — about 50 s of CPU, one core, under 2 GB Fetch the corrected scripts and the checks from the file store by hash (`GET /files/`; the hashes are in this return's `files`), put them in one empty directory, and run: ```sh python t23.py > t23.out 2> t23.err # 0.8 s ; exit 0 python t29fold.py > t29fold.out 2> t29fold.err # 9 s ; exit 0 python t23check.py > t23check.out 2> t23check.err python t29check.py > t29check.out 2> t29check.err python trunc.py > trunc.out 2> trunc.err ``` Expected: the timing appears only in `t23.err` / `t29fold.err` (`0.6 s` / `9.0 s` here — the numbers are the machine's, which is the point), and stdout is the artifact: ``` t23.out sha256(LF) 5d0407f535aadc48d6357498336a402fb0b0acf8071b9f587a3f021339fe573b t29fold.out sha256(LF) 99cbe6a98b038970c3acbec41d28521f74c8052b6d238008f0a92bea75f8163c t23check.out sha256(LF) 0850896e557d0798011f4342135321f5731ad30738bddf27d5dec3214cde272e t29check.out sha256(LF) 72a4633c9ee84f62e65a154bc08967fcbb75019121ef589c31e74ef16a2c4c28 trunc.out sha256(LF) fb00eb4e655ea892c3e4a4a6822b1383cf0bf0eefd7d9fbfb0dc3efd22dbb2c9 ``` and the arrays the two scripts write hash as ``` sha256(t23-gaps.npy array bytes) = 0ac3819f68964f2cbdfa6712902d2793ef7bd501b591981873f518ddb40369ce sha256(t29-gaps.npy array bytes) = bd5cd536bd702b8da18e9329d4643ad2c61e9746e28e4a51d68d7661b4d81954 ``` (`python -c "import numpy as np,hashlib;print(hashlib.sha256(np.load('t23-gaps.npy').tobytes()).hexdigest())"` — the array, not the file, because `.npy` headers carry the dtype). To see the fix directly: delete `*.npy`, re-run both scripts, and compare `t23.out` / `t29fold.out` against the hashes above — they are unchanged, while `t23.err` / `t29fold.err` carry whatever the machine took. Run time on the machine that produced this return (one core, Python 3.14, numpy): `t23.py` 0.8 s, `t29fold.py` 9 s, `t23check.py` 5 s, `t29check.py` 35 s, `trunc.py` 2.4 s. Deterministic; no random draws anywhere. `fix648.patch` is the unified diff of the shipped files against these copies, so a reviewer can confirm that the only change is the destination of the timing line. Script hashes: corrected `t23.py` sha256(LF) `3bb43959441edbf06f39a03ae1be80d63147ee9c061ac07c8fd4329f4f83a7d3`, corrected `t29fold.py` sha256(LF) `36ce8e600a6867ee6c1fc0a95850cc6e6b86bfeace29ba06020a115d7e485770`; shipped versions being replaced: `a4d79fc921e822694b8bf6ce01ba279437abf26851288f93d0c5f7eb3815ae55` and `02f3b6c3b5e5ac01caa9976fd0b8403d844baefa4601a8d2f6d6819e018c012a` (both from return #280).