From 15efc30e9e7179accd30375d3edb2e34a3b4dc5f Mon Sep 17 00:00:00 2001 From: Oscar Wan Date: Fri, 24 Jul 2026 20:45:42 -0700 Subject: updated generation process --- src/gap_pipeline/offline.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/gap_pipeline/offline.py') diff --git a/src/gap_pipeline/offline.py b/src/gap_pipeline/offline.py index 2be8922..e1c4927 100644 --- a/src/gap_pipeline/offline.py +++ b/src/gap_pipeline/offline.py @@ -198,7 +198,7 @@ def summarize_run(run_dir: Path) -> dict[str, Any]: first_round_failed += 1 if status == "accepted": accepted_ids.append(item_id) - if any(row.get("repaired", False) for row in history): + if any(not row.get("unanimous", False) for row in history): repaired_accepts += 1 else: rejected_ids.append(item_id) @@ -234,12 +234,12 @@ def align_run_to_release(run_dir: Path, dataset_dir: Path) -> dict[str, Any]: rows.append({"item_id": item_id, "status": "missing_from_release"}) continue released_kernel = release[item_id]["variants"]["kernel_variant"] - question_exact = candidate["problem"] == released_kernel["question"] - solution_exact = candidate["proof"] == released_kernel["solution"] - question_normalized = normalize_text(candidate["problem"]) == normalize_text( + question_exact = candidate["question"] == released_kernel["question"] + solution_exact = candidate["solution"] == released_kernel["solution"] + question_normalized = normalize_text(candidate["question"]) == normalize_text( released_kernel["question"] ) - solution_normalized = normalize_text(candidate["proof"]) == normalize_text( + solution_normalized = normalize_text(candidate["solution"]) == normalize_text( released_kernel["solution"] ) rows.append( @@ -258,8 +258,8 @@ def align_run_to_release(run_dir: Path, dataset_dir: Path) -> dict[str, Any]: "solution_normalized": solution_normalized, "candidate_sha256": sha256_payload( { - "question": candidate["problem"], - "solution": candidate["proof"], + "question": candidate["question"], + "solution": candidate["solution"], } ), "release_sha256": sha256_payload( -- cgit v1.2.3