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]
Reviewer: Fix _n_accepted
Kilian Lieretb27fd2c6a184
diff --git a/sweagent/agent/reviewer.py b/sweagent/agent/reviewer.pyindex fd436421..8736930e 100644--- a/sweagent/agent/reviewer.py+++ b/sweagent/agent/reviewer.py@@ -245,7 +245,7 @@ class ReviewLoop(AbstractReviewLoop):@propertydef _n_accepted(self) -> int:- return sum(self._reviews)+ return sum([r.accept for r in self._reviews])def on_submit(self, submission: SUBMISSION_TYPE) -> None:self._submissions.append(submission)