MCPcopy Index your code
hub / github.com/anthropics/defending-code-reference-harness / _grade

Function _grade

tests/test_patch_grade_e2e.py:56–67  ·  view source on GitHub ↗
(diff_path: str)

Source from the content-addressed store, hash-verified

54
55
56def _grade(diff_path: str):
57 diff = (REPO / diff_path).read_bytes()
58 return asyncio.run(
59 grade_patch(
60 CANARY,
61 ALPHA_CRASH,
62 diff,
63 model="unused",
64 container_name="pgrade_e2e",
65 run_reattack=False,
66 )
67 )
68
69
70def test_noop_diff_passes_t0_fails_t1():

Calls 1

grade_patchFunction · 0.90

Tested by

no test coverage detected