# SPDX-License-Identifier: Apache-2.0 """One-command reproduction: dataset, eval, static leaderboard, consistency check.""" from __future__ import annotations import os import runpy import sys from pathlib import Path ROOT = Path(__file__).resolve().parents[1] os.environ.setdefault("PYTHONHASHSEED", "20261124") os.environ.setdefault("TOKENIZERS_PARALLELISM", "false") os.environ.setdefault("HF_HUB_DISABLE_TELEMETRY", "1") os.environ.setdefault("OMP_NUM_THREADS", "4") os.environ.setdefault("MKL_NUM_THREADS", "4") def _run(name: str) -> None: print(f"\n=== {name} ===", flush=True) runpy.run_path(str(ROOT / "scripts" / name), run_name="__main__") def main() -> None: sys.path.insert(0, str(ROOT / "scripts")) _run("generate_dataset.py") _run("evaluate.py") _run("build_space.py") writeup = ROOT / "writeup" / "FINDINGS.md" if writeup.exists(): _run("check_consistency.py") else: print("write-up not found yet; consistency check skipped", flush=True) if __name__ == "__main__": main()