You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit adf17ef
Browse filesBrowse the repository at this point in the historyBrowse files
Your response must begin with a markdown heading identifying the file and the cursor position, followed by a markdown code block containing the replacement text, followed by a brief explanation. The heading must be: "### Code at cursor: `[ACTIVE FILE PATH]` (ROW:COL)". Always refer to the symbol "<missing_text>" as "cursor position" and "replacement" as "completion". Example:
@@ -222,12 +218,8 @@ Find correct replacement text for the <missing_text> symbol.
Find correct replacement for the <missing_text> symbol. Respond with replacement text within "replacement" XML tags, without explanations or any other text.
@@ -276,7 +268,7 @@ _Applying malformed edits._
276
268
<details>
277
269
<summary>WEB/API</summary>
278
270
279
-
````
271
+
```
280
272
[ORIGINAL FILE]
281
273
282
274
[MALFORMED EDITS]
@@ -285,22 +277,13 @@ _Applying malformed edits._
285
277
286
278
Your response must begin with a markdown heading identifying the file, followed by a markdown code block containing the updated file. The heading must be: "### Patch repair: `path/to/file.ext`". Example:
287
279
288
-
### Patched file: `path/to/file.ext`
289
-
290
-
```python
291
-
def add(a, b):
292
-
return a + b
293
-
294
-
def subtract(a, b):
295
-
return a - b
296
-
297
-
```
280
+
[EXAMPLE]
298
281
299
282
# Task
300
283
301
284
Apply the attached changes to the file without explanations or any other text.
exportconstEDIT_FORMAT_INSTRUCTIONS_TRUNCATED=`${intro}, followed by a markdown code block with file's contents. As a space saving measure, truncate blocks like unchanged function bodies (code inside {}) by replacing with ellipsis comments. Example:
32
-
Updated the greeting text.
33
-
34
-
### Updated file: \`src/examples/hello.js\`
35
-
36
-
\`\`\`javascript
37
-
const DURATION = 5;
38
-
const GREETING = "Hello, World!";
39
-
40
-
function getDuration() {
41
-
// ...
42
-
}
43
-
44
-
function showGreeting() {
45
-
// ...
46
-
}
47
-
\`\`\`
48
-
49
-
Updated the purpose text.
50
-
51
-
### Updated file: \`src/README.md\`
52
-
53
-
\`\`\`markdown
54
-
## Purpose
55
-
56
-
Greet user saying "Hello, World!", for a duration of 5 seconds.
57
-
58
-
## License
59
-
60
-
<!-- ... --->
31
+
exportconstEDIT_FORMAT_INSTRUCTIONS_SEARCH_REPLACE=`${intro}, followed by a markdown code block showing the original and updated code snippets with Git-style merge conflict syntax. Example:
32
+
Changed greeting to wishes.
61
33
62
-
## Author
34
+
### Updated file: \`src/examples/hello.py\`
63
35
64
-
<!-- ... --->
36
+
\`\`\`python
37
+
<<<<<<< SEARCH
38
+
GREETING = "Welcome everyone!"
39
+
=======
40
+
WISHES = "Have a nice day!"
41
+
>>>>>>> REPLACE
42
+
<<<<<<< SEARCH
43
+
def show_greeting():
44
+
print(GREETING)
45
+
=======
46
+
def show_wishes():
47
+
print(WISHES)
48
+
>>>>>>> REPLACE
65
49
\`\`\`
66
50
67
51
Created a simple calculator with addition and subtraction.
exportconstEDIT_FORMAT_INSTRUCTIONS_SEARCH_REPLACE=`${intro}, followed by a markdown code block showing the original and updated code snippets with Git-style merge conflict syntax. Example:
119
-
Changed greeting to wishes.
100
+
exportconstEDIT_FORMAT_INSTRUCTIONS_TRUNCATED=`${intro}, followed by a markdown code block with file's contents. As a space saving measure, truncate blocks like unchanged function bodies (code inside {}) by replacing with ellipsis comments. Example:
101
+
Updated the greeting text.
120
102
121
-
### Updated file: \`src/examples/hello.py\`
103
+
### Updated file: \`src/examples/hello.js\`
122
104
123
-
\`\`\`python
124
-
<<<<<<< SEARCH
125
-
GREETING = "Welcome everyone!"
126
-
=======
127
-
WISHES = "Have a nice day!"
128
-
>>>>>>> REPLACE
129
-
<<<<<<< SEARCH
130
-
def show_greeting():
131
-
print(GREETING)
132
-
=======
133
-
def show_wishes():
134
-
print(WISHES)
135
-
>>>>>>> REPLACE
105
+
\`\`\`javascript
106
+
const DURATION = 5;
107
+
const GREETING = "Hello, World!";
108
+
109
+
function getDuration() {
110
+
// ...
111
+
}
112
+
113
+
function showGreeting() {
114
+
// ...
115
+
}
116
+
\`\`\`
117
+
118
+
Updated the purpose text.
119
+
120
+
### Updated file: \`src/README.md\`
121
+
122
+
\`\`\`markdown
123
+
## Purpose
124
+
125
+
Greet user saying "Hello, World!", for a duration of 5 seconds.
126
+
127
+
## License
128
+
129
+
<!-- ... --->
130
+
131
+
## Author
132
+
133
+
<!-- ... --->
136
134
\`\`\`
137
135
138
136
Created a simple calculator with addition and subtraction.
0 commit comments