Helper function to write problem statement using context manager.
(instance_dir: Path, content: str)
| 63 | |
| 64 | |
| 65 | def _write_problem_statement(instance_dir: Path, content: str) -> int: |
| 66 | """Helper function to write problem statement using context manager.""" |
| 67 | with open(instance_dir / "problem_statement.txt", "w", encoding="utf-8") as f: |
| 68 | return f.write(content) |
| 69 | |
| 70 | |
| 71 | def _load_jsonl_dataset(dataset_name: str) -> list[dict]: |