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]
Fix: Handle spaces in repo names (#734)
Kilian Lieret6f3b384fe358
diff --git a/sweagent/environment/swe_env.py b/sweagent/environment/swe_env.pyindex d68bc337..21f2b1c4 100644--- a/sweagent/environment/swe_env.py+++ b/sweagent/environment/swe_env.py@@ -213,7 +213,7 @@ class SWEEnv(gym.Env):def _repo_name(self) -> str:"""Name of the local copy of the repository"""assert self.record is not None- return self.record["repo"].replace("/", "__")+ return self.record["repo"].replace("/", "__").replace(" ", "-")def _copy_repo(self) -> str:"""Clone/copy repository/codebase in container