1You are evaluating an edit prediction model for a code editor. The model observes a programmer's recent edit history and predicts what edit they will make next.
2
3All diffs are in the word-diff format.
4
5The model is instructed to:
6- Complete partially-applied refactoring or changes
7- Maintain consistency with established patterns and style
8- NOT delete or revert text that was just added (unless the user explicitly undid it themselves)
9
10## Edit History (chronological)
11```````
12{edit_history}
13```````
14
15## Current File
16The file where the prediction will be applied, with editable region markers showing where edits can occur:
17{cursor_excerpt}
18
19## Predicted Next Edit
20```````
21{actual_patch_word_diff}
22```````
23
24## Evaluate
25
261. **reverts_edits**: Does the prediction undo, or revert changes the user intentionally made in the **edit history**?
27
282. **confidence**: How likely is the user to accept this suggestion?
29 - 1 = Definitely reject (wrong, nonsensical, or harmful)
30 - 2 = Probably reject (doesn't fit intent or pattern)
31 - 3 = Uncertain (plausible but not clearly correct)
32 - 4 = Probably accept (reasonable next step)
33 - 5 = Definitely accept (obvious continuation)
34
35Output JSON in this format:
36
37```
38{
39 "reasoning": "your reasoning here",
40 "reverts_edits": true/false,
41 "confidence": 1-5
42}
43```