From a8b1c5d3e6ce7f726c627229e663856705e2e7cc Mon Sep 17 00:00:00 2001 From: Richard Kranendonk Date: Tue, 21 Apr 2026 13:57:50 +0200 Subject: [PATCH] minor fix --- .DS_Store | Bin 6148 -> 0 bytes .gitignore | 54 ++ ...02_2022_5.5_OT Contact with authorities.md | 2 +- fix_references.py | 522 ++++++++++++++++++ 4 files changed, 577 insertions(+), 1 deletion(-) delete mode 100644 .DS_Store create mode 100644 .gitignore create mode 100644 fix_references.py diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index bd9d599dcfb2525fe71b211667d65baff455cc70..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%Wl&^6upzC#GyiX0iqj(CAMh^X+#yVanc~jf(=Gg2vCS?(^@!o6+6u$ij*zz z5Bvg4_!0OQR&egjRC1CQgoG-D=1MbXUgzGKlX=8MBs$~ZE|E<{77}CmGO{y_`#G&x zNw;hOh4hj4;`G3eQ-5WwX)p>H1^zt+`0TDzn|w-XOvUrdS3(49zqb#r2zlqXXdHqtws#qJ=EAJ?sc=;e7XPv?51=pUYY3!et2mZ4tob>H$dufsn zq9hziLKK7;@^U{)f^^bJ$4QV$uBSSzs#WdVo73sePQB)A?Y3q$XWD9@+`QME&8pV* z+js6i>A#JKN%~&SnFQ`8X;(C!!Uq%zD?0H;Nt`B!Xk|tfs~=N95#{udVwA(e?Z)bS zLMp0bQwU!=Po@0GsCGOr}ryJ90qgiuyTFqZf1q5^zBI7p1H#<@aybs&?U0KhVurJ>AEBXb;$uEx1S z^uUCo0u@#0PYj{xXm|8DSL0lvqLYx3;YUXn`U^$K=xBH3a1yRUlN$w$0*eZ)sjAKI z|AX_t{})N7W)v_A{8tKya@Xs2uq6Gqt}Kq 1: + results["ambiguous"].append(f"AMBIGUOUS ({count}x) in {fname}: {repr(old[:60])}") + # Apply anyway since these fixes are semantically correct for all occurrences + new_content = content.replace(old, new) + with open(fpath, "w", encoding="utf-8") as f: + f.write(new_content) + results["applied"].append(f"{fname}: {count}x {repr(old[:40])} -> {repr(new[:40])}") + else: + new_content = content.replace(old, new) + with open(fpath, "w", encoding="utf-8") as f: + f.write(new_content) + results["applied"].append(f"{fname}: {repr(old[:40])} -> {repr(new[:40])}") + +print(f"\n=== APPLIED ({len(results['applied'])}) ===") +for r in results["applied"]: + print(r) + +print(f"\n=== NOT FOUND ({len(results['not_found'])}) ===") +for r in results["not_found"]: + print(r) + +print(f"\n=== AMBIGUOUS ({len(results['ambiguous'])}) ===") +for r in results["ambiguous"]: + print(r)