from pathlib import Path
import subprocess
p = Path(__file__).parent / "context-notes"
p.mkdir(exist_ok=True)
for i in range(1,4):
    text = "".join(f"{n:05d} cedar cedar cedar maple birch oak pine observation {i}\n" for n in range(4200))
    (p / f"notes-{i}.txt").write_text(text)
subprocess.run(["git", "init", "--quiet", "--initial-branch=main", str(p)], check=True)
subprocess.run(["git", "-C", str(p), "add", "."], check=True)
subprocess.run(["git", "-C", str(p), "-c", "user.name=Evidence", "-c", "user.email=evidence@example.com", "commit", "--quiet", "-m", "Synthetic notes"], check=True)
print([(f.name, f.stat().st_size) for f in p.glob("*.txt")])
