cr-proc 0.1.1__py3-none-any.whl → 0.1.2__py3-none-any.whl

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.
@@ -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}. old={old!r}, new={new!r}"
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}, new={new!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: {ev['newFragment']}", file=sys.stderr)
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cr_proc
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: A tool for processing BYU CS code recording files
5
5
  Author: Ethan Dye
6
6
  Author-email: mrtops03@gmail.com
@@ -0,0 +1,9 @@
1
+ code_recorder_processor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ code_recorder_processor/api/build.py,sha256=-EMg0w-llblJ_N_vs_B1kOsAOwiV-TYetAXiOY6PcWs,7643
3
+ code_recorder_processor/api/load.py,sha256=lkEPnQi3Q_91GOTImk4H380F-uKJPszeX3FJJWM4CIA,3272
4
+ code_recorder_processor/api/verify.py,sha256=byW4fyW_gLkFq4rLvWut2Cvj_ds5Cj_MUFrhlhOrucY,14327
5
+ code_recorder_processor/cli.py,sha256=sKm9f06NEZ3psw-HEShlHt4grVZvRmNEG33yvxhIIQQ,7154
6
+ cr_proc-0.1.2.dist-info/METADATA,sha256=A60JkKqmku5ZO-hPjhSDlPqkqI55gpQj_2UZNs3ZlXg,4069
7
+ cr_proc-0.1.2.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
8
+ cr_proc-0.1.2.dist-info/entry_points.txt,sha256=xb5dPAAWN1Z9NUHpvZgNakaslR1MVOERf_IfpG_M04M,77
9
+ cr_proc-0.1.2.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- code_recorder_processor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- code_recorder_processor/api/build.py,sha256=YgBMkCluKU5E2qLaqKCT0mXHY5M9UN80dRUPGozVaD8,7641
3
- code_recorder_processor/api/load.py,sha256=lkEPnQi3Q_91GOTImk4H380F-uKJPszeX3FJJWM4CIA,3272
4
- code_recorder_processor/api/verify.py,sha256=byW4fyW_gLkFq4rLvWut2Cvj_ds5Cj_MUFrhlhOrucY,14327
5
- code_recorder_processor/cli.py,sha256=kX1hEcH_7rPdK-rGWp8glMgN2bmEepZl6E-lyRLJphY,7143
6
- cr_proc-0.1.1.dist-info/METADATA,sha256=F9JG6hyVCnlkS1Ch-xOXhXBD3zooPQQwHHVRBbLBkQM,4069
7
- cr_proc-0.1.1.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
8
- cr_proc-0.1.1.dist-info/entry_points.txt,sha256=xb5dPAAWN1Z9NUHpvZgNakaslR1MVOERf_IfpG_M04M,77
9
- cr_proc-0.1.1.dist-info/RECORD,,