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]
issue with challenges without proper box included in them
Talor Abramovich61f7b3b82b95
diff --git a/sweagent/environment/utils.py b/sweagent/environment/utils.pyindex 9454ce77..35223ef8 100644--- a/sweagent/environment/utils.py+++ b/sweagent/environment/utils.py@@ -770,7 +770,10 @@ class InstanceBuilder:logger.debug(f"Found docker_compose file in {Path(file_path).parent}")self.args["challenge"]["docker_compose"] = Path(file_path).parent / "docker-compose.yml"self.args["challenge"]["port"] = challenge.get("internal_port")- self.args["challenge"]["server_name"] = challenge.get("box")+ if "box" in challenge:+ self.args["challenge"]["server_name"] = challenge["box"] or "127.0.0.1"+ else:+ self.args["challenge"]["server_name"] = ""self.args["challenge"]["file_path"] = file_pathself.set_server_description(self.args["challenge"]["server_name"], self.args["challenge"]["port"])self.set_problem_statement_from_text(f"{challenge['name']} {challenge['description']}")