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]
Add multilingual
John Yang054467d7d30a
diff --git a/sweagent/run/batch_instances.py b/sweagent/run/batch_instances.pyindex 35311e3b..f9d903c8 100644--- a/sweagent/run/batch_instances.py+++ b/sweagent/run/batch_instances.py@@ -247,7 +247,7 @@ class InstancesFromHuggingFace(BaseModel, AbstractInstanceSource):class SWEBenchInstances(BaseModel, AbstractInstanceSource):"""Load instances from SWE-bench."""- subset: Literal["lite", "verified", "full", "multimodal"] = "lite"+ subset: Literal["lite", "verified", "full", "multimodal", "multilingual"] = "lite"split: Literal["dev", "test"] = "dev"@@ -282,6 +282,8 @@ class SWEBenchInstances(BaseModel, AbstractInstanceSource):return "princeton-nlp/SWE-Bench_Lite"elif self.subset == "multimodal":return "princeton-nlp/SWE-Bench_Multimodal"+ elif self.subset == "multilingual":+ return "swe-bench/SWE-Bench_Multilingual"msg = f"Unsupported subset: {self.subset}"raise ValueError(msg)diff --git a/tests/test_batch_instance.py b/tests/test_batch_instance.pyindex 3389e22c..3e021c62 100644--- a/tests/test_batch_instance.py+++ b/tests/test_batch_instance.py@@ -32,7 +32,7 @@ def test_slice_spec_to_slice():@pytest.mark.slowdef test_get_swe_bench_instances():- for subset in ["lite", "verified", "full", "multimodal"]:+ for subset in ["lite", "verified", "full", "multimodal", "multilingual"]:for split in ["dev", "test"]:if subset == "verified" and split == "dev":continue