ep: Fix bugs in the `split-commit` command (#57604)

Correctness and efficiency fixes to `imitate_human_edits`.

Release Notes:

- N/A
13e7c11768Oleksiy Syvokon committed on 5/24/2026, 6:49:05 PM· committed by GitHubparentd066a73
2 files changedLine totals unavailable