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]
Update evaluation to reflect swebench `get_model_report`
John Yangf7420bb06f56
diff --git a/evaluation/evaluation.py b/evaluation/evaluation.pyindex c480e3cc..13f5ba1e 100644--- a/evaluation/evaluation.py+++ b/evaluation/evaluation.py@@ -210,21 +210,9 @@ def main(predictions_path, log_dir, swe_bench_tasks, testbed, skip_existing, timreport = get_model_report(directory_name, pred_path_orig, swe_bench_tasks, log_dir)- by_outcome = {}- by_outcome_func = lambda status: len(- [- instance_id- for _, v in report.items()- if isinstance(v, dict)- for instance_id in v[status]- ]- )- by_outcome["# Not Generated"] = by_outcome_func("none")- by_outcome["# Generated"] = by_outcome_func("generated")- by_outcome["# Applied"] = by_outcome_func("applied")- by_outcome["# Resolved"] = by_outcome_func("resolved")- by_outcome["# Install Fail"] = by_outcome_func("install_fail")- print(f"Reference Report:\n{by_outcome}")+ print(f"Reference Report:")+ for k, v in report.items():+ print(f"- {k}: {len(v)}")if __name__ == "__main__":