SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
Fixed None submission bug
JGalego7cf6e17a4154
diff --git a/run.py b/run.pyindex 88ee9d79..671a2ff4 100644--- a/run.py+++ b/run.py@@ -266,7 +266,7 @@ def save_patch(traj_dir: Path, instance_id: str, info) -> Optional[Path]:patch_output_dir = traj_dir / "patches"patch_output_dir.mkdir(exist_ok=True, parents=True)patch_output_file = patch_output_dir / f"{instance_id}.patch"- if not "submission" in info:+ if not "submission" in info or not info["submission"]:logger.info("No patch to save.")returnmodel_patch = info["submission"]