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]
Doc: json -> jsonl conversion script escape
Kilian Lierete38a4adc818c
diff --git a/docs/usage/batch_mode.md b/docs/usage/batch_mode.mdindex 37f141a8..d176314a 100644--- a/docs/usage/batch_mode.md+++ b/docs/usage/batch_mode.md@@ -222,10 +222,10 @@ import jsonpreds = json.loads(Path("preds.json").read_text())data = [{"instance_id": key, **value} for key, value in preds.items()]jsonl = [json.dumps(d) for d in data]-Path("all_preds.jsonl").write_text("\n".join(jsonl))+Path("all_preds.jsonl").write_text("\\n".join(jsonl))```!!! tip "Next up"Take a look at our [competitive runs tutorial](competitive_runs.md)- for more information on running on SWE-Bench and similar benchmarks.\ No newline at end of file+ for more information on running on SWE-Bench and similar benchmarks.