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]
updated format
Talor Abramovich3c4f4f9a1073
diff --git a/tests/test_env_utils.py b/tests/test_env_utils.pyindex 502677d6..5651aa27 100644--- a/tests/test_env_utils.py+++ b/tests/test_env_utils.py@@ -193,4 +193,4 @@ def test_load_ctf_instances(test_data_path, caplog):test_data_sources = test_data_path / "data_sources" / "ctf"examples = list(test_data_sources.glob("**/challenge.json"))for example in examples:- get_instances(file_path=str(example), repo_path=str(example.parent))\ No newline at end of file+ get_instances(file_path=str(example), repo_path=str(example.parent))diff --git a/tests/test_replay_ctf.py b/tests/test_replay_ctf.pyindex 3945ccb9..2f684dc4 100644--- a/tests/test_replay_ctf.py+++ b/tests/test_replay_ctf.py@@ -6,7 +6,10 @@ from run_replay import get_args, main@pytest.mark.slow[email protected]("traj_rel_path", ["pwn/warmup.traj", "forensics/flash.traj", "web/i_got_id_demo.traj", "rev/rock.traj", "misc/networking_1.traj"])+ "traj_rel_path",+ ["pwn/warmup.traj", "forensics/flash.traj", "web/i_got_id_demo.traj", "rev/rock.traj", "misc/networking_1.traj"],+)def test_ctf_traj_replay(test_ctf_trajectories_path, traj_rel_path):traj_path = test_ctf_trajectories_path / traj_rel_pathassert traj_path.is_file()