from pathlib import Path
import subprocess
root=Path(__file__).parent/'sql-copy-demo'
root.mkdir(exist_ok=True)
subprocess.run(['git','init','-b','main',str(root)],check=True)
subprocess.run(['git','-C',str(root),'-c','user.name=Demo','-c','user.email=demo@example.invalid','commit','--allow-empty','-m','Initial synthetic project'],check=True)
(root/'numbered.sql').write_text(''.join(f'SELECT {i:03d} AS numbered_line;\n' for i in range(1,301)))
