Skip to content

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]

Enh(merge preds): Indent json

Kilian Lieretd273de8d87be
diff --git a/sweagent/run/merge_predictions.py b/sweagent/run/merge_predictions.py
index e2b3551b..a28e2872 100644
--- a/sweagent/run/merge_predictions.py
+++ b/sweagent/run/merge_predictions.py
@@ -43,7 +43,7 @@ def merge_predictions(directories: list[Path], output: Path | None = None) -> No
raise ValueError(msg)
data[instance_id] = _data
output.parent.mkdir(parents=True, exist_ok=True)
- output.write_text(json.dumps(data))
+ output.write_text(json.dumps(data, indent=4))
logger.info("Wrote merged predictions to %s", output)