Skip to content

Commit 9451196

Browse files
authored
Remove unnecessary blank lines in run_tests.py
1 parent 00e56cb commit 9451196

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

sweagent/run/run_tests.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ def _from_json_or_obj(key: str) -> Any:
132132
namespace=specs.get("namespace", "swebench"),
133133
)
134134

135-
136135
def make_regression_script_list(instance, specs, env_name, repo_directory, base_commit):
137136
HEREDOC_DELIMITER = "EOF_114329324912"
138137
fake_apply_test_patch_command = (f"git apply -v - <<'{HEREDOC_DELIMITER}'\n{NOOP_PATCH_2}\n{HEREDOC_DELIMITER}")
@@ -154,7 +153,6 @@ def make_regression_script_list(instance, specs, env_name, repo_directory, base_
154153
eval_commands += [fake_apply_test_patch_command, test_command]
155154
return eval_commands
156155

157-
158156
def rearrange_patches(test_specs):
159157
"""
160158
rearrange the patches such that slower instance_ids are evaluated first
@@ -172,7 +170,6 @@ def rearrange_patches(test_specs):
172170
else:
173171
return test_specs
174172

175-
176173
def run_tests(location_data:list, instance_ids: list, model_patches: list, max_workers: int, run_id: str, timeout: int, apply_model_patch=True, dataset_name="princeton-nlp/SWE-bench_Verified"):
177174
assert len(instance_ids) == len(model_patches), "There must be the same number of instance_ids as model patches"
178175
resource.setrlimit(resource.RLIMIT_NOFILE, (OPEN_FILE_LIMIT, OPEN_FILE_LIMIT))

0 commit comments

Comments
 (0)