cr-proc 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cr_proc-0.1.1 → cr_proc-0.1.2}/PKG-INFO +1 -1
- {cr_proc-0.1.1 → cr_proc-0.1.2}/pyproject.toml +1 -1
- {cr_proc-0.1.1 → cr_proc-0.1.2}/src/code_recorder_processor/api/build.py +3 -3
- {cr_proc-0.1.1 → cr_proc-0.1.2}/src/code_recorder_processor/cli.py +1 -1
- {cr_proc-0.1.1 → cr_proc-0.1.2}/README.md +0 -0
- {cr_proc-0.1.1 → cr_proc-0.1.2}/src/code_recorder_processor/__init__.py +0 -0
- {cr_proc-0.1.1 → cr_proc-0.1.2}/src/code_recorder_processor/api/load.py +0 -0
- {cr_proc-0.1.1 → cr_proc-0.1.2}/src/code_recorder_processor/api/verify.py +0 -0
|
@@ -52,7 +52,7 @@ def _apply_event_fuzzy_text(doc: str, offset: int, old: str, new: str, window: i
|
|
|
52
52
|
return _apply_event_exact_text(doc, best_pos, old, new)
|
|
53
53
|
|
|
54
54
|
raise ValueError(
|
|
55
|
-
f"Old fragment not found near offset {offset}
|
|
55
|
+
f"Old fragment not found near offset {offset}.\nold={old!r}\nnew={new!r}"
|
|
56
56
|
)
|
|
57
57
|
|
|
58
58
|
|
|
@@ -106,8 +106,8 @@ def _apply_event_fuzzy_utf16(doc_bytes: bytes, offset_units: int, old: str, new:
|
|
|
106
106
|
return doc_bytes[:best_pos_b] + new_b + doc_bytes[best_pos_b + len(old_b):]
|
|
107
107
|
|
|
108
108
|
raise ValueError(
|
|
109
|
-
f"Old fragment not found near offset {offset_units} (UTF-16 units)
|
|
110
|
-
f"old={old!r}
|
|
109
|
+
f"Old fragment not found near offset {offset_units} (UTF-16 units).\n"
|
|
110
|
+
f"old={old!r}\nnew={new!r}"
|
|
111
111
|
)
|
|
112
112
|
|
|
113
113
|
|
|
@@ -152,7 +152,7 @@ def main():
|
|
|
152
152
|
else:
|
|
153
153
|
print(f" Event #{ev['event_index']} ({reason}): "
|
|
154
154
|
f"{ev['line_count']} lines, {ev['char_count']} chars - "
|
|
155
|
-
f"newFragment
|
|
155
|
+
f"newFragment:\n```\n{ev['newFragment']}\n```", file=sys.stderr)
|
|
156
156
|
else:
|
|
157
157
|
print("Success! No suspicious events detected.", file=sys.stderr)
|
|
158
158
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|