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]
Fix traj_to_demo script
carlosejimenezb4258b4e55a4
diff --git a/sweagent/run/run_traj_to_demo.py b/sweagent/run/run_traj_to_demo.pyindex 355aad1a..021973d1 100644--- a/sweagent/run/run_traj_to_demo.py+++ b/sweagent/run/run_traj_to_demo.py@@ -49,6 +49,8 @@ def save_demo(data, file, traj_path):data = convert_to_literal_string(data)yaml = YAML()yaml.indent(mapping=2, sequence=4, offset=2)+ yaml.width = float("inf")+ yaml.default_flow_style = Falsebuffer = io.StringIO()yaml.dump(data, buffer)content = buffer.getvalue()