Datasets:
File size: 377 Bytes
3bccd69 | 1 2 3 4 5 6 7 8 9 10 11 12 | import json
from pathlib import Path
root = Path("d:/UsefulNotebooks/plc-llm-bench")
cells = json.loads((root / "cells_to_push.json").read_text(encoding="utf-8"))
for i in range(12, 18):
c = cells[i]
out_file = root / f"cell_{i}.txt"
out_file.write_text(c["content"], encoding="utf-8")
print(f"Wrote cell_{i}.txt (type={c['type']}, len={len(c['content'])})")
|