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]
Append split value to output dir name
Kilian Lieret9eafa197f762
diff --git a/sweagent/run/batch_instances.py b/sweagent/run/batch_instances.pyindex 81fca3e7..c0f01baa 100644--- a/sweagent/run/batch_instances.py+++ b/sweagent/run/batch_instances.py@@ -242,7 +242,8 @@ class InstancesFromHuggingFace(BaseModel, AbstractInstanceSource):@propertydef id(self) -> str:- return "".join(l for l in self.dataset_name if l.isalnum())+ ds_name = "".join(l for l in self.dataset_name if l.isalnum() or l in ["-", "_"])+ return f"{ds_name}_{self.split}"class SWEBenchInstances(BaseModel, AbstractInstanceSource):@@ -292,7 +293,7 @@ class SWEBenchInstances(BaseModel, AbstractInstanceSource):@propertydef id(self) -> str:- return f"swe_bench_{self.subset}"+ return f"swe_bench_{self.subset}_{self.split}"class ExpertInstancesFromFile(BaseModel, AbstractInstanceSource):