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: SWEBenchInstances with path and no subset initiated as other (#1096)
Kilian Lieret9a800b1d4e08
diff --git a/sweagent/run/batch_instances.py b/sweagent/run/batch_instances.pyindex 98e70ac5..ce8d31e4 100644--- a/sweagent/run/batch_instances.py+++ b/sweagent/run/batch_instances.py@@ -250,7 +250,9 @@ class SWEBenchInstances(BaseModel, AbstractInstanceSource):subset: Literal["lite", "verified", "full", "multimodal", "multilingual"] = "lite""""Subset of swe-bench to use"""- path: str | Path | None = None+ # IMPORTANT: Do not call this `path`, because then if people do not specify instance.type,+ # it might be resolved to ExpertInstancesFromFile or something like that.+ path_override: str | Path | None = None"""Allow to specify a different huggingface dataset name or path to a huggingfacedataset. This will override the automatic path set by `subset`."""@@ -280,8 +282,8 @@ class SWEBenchInstances(BaseModel, AbstractInstanceSource):"""Run sb-cli to evaluate"""def _get_dataset_path(self) -> str:- if self.path is not None:- return str(self.path)+ if self.path_override is not None:+ return str(self.path_override)dataset_mapping = {"full": "princeton-nlp/SWE-Bench","verified": "princeton-nlp/SWE-Bench_Verified",