This commit is contained in:
Paul Gauthier 2023-12-21 08:58:06 -04:00
parent 208f9ef24a
commit f4dc8c776b
2 changed files with 3 additions and 3 deletions

View file

@ -388,7 +388,7 @@ def dmp_lines_apply(texts, remap=True):
if debug:
diff = list(diff_lines)
dmp.diff_charsToLines(diff, mapping)
dump(diff)
# dump(diff)
html = dmp.diff_prettyHtml(diff)
Path("tmp.search_replace_diff.html").write_text(html)
@ -425,7 +425,7 @@ def diff_lines(search_text, replace_text):
diff = list(diff_lines)
dmp.diff_charsToLines(diff, mapping)
dump(diff)
# dump(diff)
udiff = []
for d, lines in diff:

View file

@ -40,7 +40,7 @@ This puts a hard ceiling of 72% on how well the June model could possibly score.
With unified diffs, GPT acts more like it's writing textual data intended to be read by a program,
not talking to a person.
They are
Diffs are
usually
consumed by the
[patch](https://www.gnu.org/software/diffutils/manual/html_node/Merging-with-patch.html)