10 lines
456 B
Python
10 lines
456 B
Python
"""Print each case's reviewed and base commit, as driver.py chooses them. Usage: shas.py <candidate>..."""
|
|
import driver as d
|
|
import json, pickle, sys
|
|
runs = {r["meta"]: r for r in pickle.load(open(d.HERE / "runs.pkl", "rb"))}
|
|
for cand in sys.argv[1:]:
|
|
for c in d.load_cases(cand):
|
|
r = d.as_round(runs[c["metas"][0]])
|
|
code = d.rm.code_of(r, d.FX)
|
|
print(cand, c["id"], getattr(code, "reviewed", code), getattr(code, "base", ""))
|