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]
Nit: import location
Kilian Lieret01ba4de1449a
diff --git a/sweagent/tools/commands.py b/sweagent/tools/commands.pyindex 2554c9f8..5da382ec 100644--- a/sweagent/tools/commands.py+++ b/sweagent/tools/commands.py@@ -20,6 +20,7 @@ from __future__ import annotationsimport reimport string+from collections import Counterfrom functools import cached_propertyfrom pydantic import BaseModel, field_validator, model_validator@@ -185,7 +186,6 @@ class Command(BaseModel):raise ValueError(msg)if not arg.required:found_optional = True- from collections import Countername_counts = Counter(arg.name for arg in self.arguments)duplicates = {name for name, count in name_counts.items() if count > 1}