# ep: Add jitter to cursor position \(\#57597\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8bfe32010cf147fd7c8b80aa1863027dfa1cb1b8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8bfe32010cf147fd7c8b80aa1863027dfa1cb1b8

Requested commit: 8bfe32010cf147fd7c8b80aa1863027dfa1cb1b8

Commit: 8bfe32010cf147fd7c8b80aa1863027dfa1cb1b8

Tree: 0318d95b85e4a77a4ba6c76a605f6cfcd429bbe9

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
ep: Add jitter to cursor position (#57597)

When generating a training or evaluation example with `ep split-commit`,
the cursor sampling logic becomes:

1. 80% chance of cursor being at the end of the source patch
2. 20% chance of cursor being at the beginning of the target patch
3. 20% chance of adding a jitter offset (same line, ±5 columns for now)

Release Notes:

- N/A
```

## Parents

- [eb2223c0802c4e864caac1687631ac0c45af4dee](https://git.cafe/gitcafe/zed/commit/eb2223c0802c4e864caac1687631ac0c45af4dee?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8bfe32010cf147fd7c8b80aa1863027dfa1cb1b8?format=markdown)
