Skip to content

Commit e42a5e2

Browse files
committed
Flip PASS_TO_FAIL to FAIL_TO_PASS following SWE-bench naming convention
1 parent 1d6bcd4 commit e42a5e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

swesmith/harness/gather.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
from swebench.harness.constants import (
3939
PASS_TO_FAIL,
4040
PASS_TO_PASS,
41+
FAIL_TO_PASS,
4142
KEY_INSTANCE_ID,
4243
LOG_REPORT,
4344
)
@@ -341,7 +342,7 @@ def process_instance(
341342
task_instance = {
342343
KEY_INSTANCE_ID: subfolder,
343344
KEY_PATCH: patch_content,
344-
PASS_TO_FAIL: results[PASS_TO_FAIL],
345+
FAIL_TO_PASS: results[PASS_TO_FAIL], # Flip PASS_TO_FAIL to FAIL_TO_PASS following SWE-bench naming convention
345346
PASS_TO_PASS: results[PASS_TO_PASS],
346347
}
347348
rp = registry.get_from_inst(task_instance)

0 commit comments

Comments
 (0)