sessions of 2026-11-18 (the optimization campaign; three runs without summary, interrupted and rerun)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8a81c53cd9
commit
0cfbd1b7bc
363 files changed
+30822
No files matched your search
@@ -0,0 +1,7 @@
|
||||
# Replaces exactly one occurrence of OLD by NEW in FILE (fails if OLD is absent or not unique). Args: FILE OLD NEW
|
||||
import sys
|
||||
f, old, new = sys.argv[1:4]
|
||||
s = open(f).read()
|
||||
if s.count(old) != 1:
|
||||
sys.exit(f"replace.py: {old!r} found {s.count(old)} times in {f}")
|
||||
open(f, "w").write(s.replace(old, new))
|
||||
Reference in new issue
Block a user