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]
Handle repo_name with quote '
Meet Udeshi27f543e281cf
diff --git a/sweagent/environment/swe_env.py b/sweagent/environment/swe_env.pyindex 21f2b1c4..31cdc684 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("/", "__").replace(" ", "-")+ return self.record["repo"].replace("/", "__").replace(" ", "-").replace("'", "")def _copy_repo(self) -> str:"""Clone/copy repository/codebase in container