1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
|
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width" />
- <title>Eval Output</title>
- <style>
- body {
- font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial,
- sans-serif;
- }
- table,
- th,
- td {
- border: 1px solid black;
- border-collapse: collapse;
- text-align: left;
- word-break: break-all;
- }
- th,
- td {
- padding: 5px;
- min-width: 200px;
- }
- tr > td[data-content^='[PASS]'] {
- color: green;
- }
- tr > td[data-content^='[FAIL]'] {
- color: #ad0000;
- }
- </style>
- </head>
- <body>
- <table>
- <thead>
-
- <th>body</th>
-
- <th>Rephrase this from English to Pirate: {{body}}</th>
-
- <th>Pretend you're a pirate and speak these words: {{body}}</th>
-
- </thead>
- <tbody>
-
- <tr>
-
- <td data-content="Yes">Yes</td>
-
- <td data-content='[FAIL] (0.00)
- Expected output "Yarr" but got "Aye"
- ---
- Aye
- Reason: Expected output "Yarr" but got "Aye"'>[FAIL] (0.00)
- Expected output "Yarr" but got "Aye"
- ---
- Aye
- Reason: Expected output "Yarr" but got "Aye"</td>
-
- <td data-content='[FAIL] (0.00)
- Expected output "Yarr" but got "Arr, me hearties! Yes, be the word ye be seekin.'."
- ---
- Arr, me hearties! Yes, be the word ye be seekin'.
- Reason: Expected output "Yarr" but got "Arr, me hearties! Yes, be the word ye be seekin.'."'>[FAIL] (0.00)
- Expected output "Yarr" but got "Arr, me hearties! Yes, be the word ye be seekin.'."
- ---
- Arr, me hearties! Yes, be the word ye be seekin'.
- Reason: Expected output "Yarr" but got "Arr, me hearties! Yes, be the word ye be seekin.'."</td>
-
- </tr>
-
- <tr>
-
- <td data-content="I'm hungry">I'm hungry</td>
-
- <td data-content="[FAIL] (0.00)
- Expected output to contain "grub"
- ---
- I be feelin' a mighty hunger.
- Reason: Expected output to contain "grub"">[FAIL] (0.00)
- Expected output to contain "grub"
- ---
- I be feelin' a mighty hunger.
- Reason: Expected output to contain "grub"</td>
-
- <td data-content="[FAIL] (0.00)
- Expected output to contain "grub"
- ---
- Arr, me hearties! I be feelin' a mighty rumblin' in me belly, for I be famished like a scurvy dog! Me stomach be cryin' out for sustenance, ye see. I be yearnin' for a feast fit for a pirate, with a bounty of savory delights to quell this hunger within me. Aye, I be hungry, me mateys!
- Reason: Expected output to contain "grub"">[FAIL] (0.00)
- Expected output to contain "grub"
- ---
- Arr, me hearties! I be feelin' a mighty rumblin' in me belly, for I be famished like a scurvy dog! Me stomach be cryin' out for sustenance, ye see. I be yearnin' for a feast fit for a pirate, with a bounty of savory delights to quell this hunger within me. Aye, I be hungry, me mateys!
- Reason: Expected output to contain "grub"</td>
-
- </tr>
-
- <tr>
-
- <td data-content="Output the story of your life in JSON">Output the story of your life in JSON</td>
-
- <td data-content="[PASS] (1.00)
- "Splice out the tale of yer life in JSON, matey!"
- Reason: All assertions passed">[PASS] (1.00)
- "Splice out the tale of yer life in JSON, matey!"
- Reason: All assertions passed</td>
-
- <td data-content="[PASS] (1.00)
- {
- "name": "Captain Blackbeard",
- "alias": "The Dread Pirate",
- "occupation": "Pirate",
- "birthplace": "Port Royal",
- "birthyear": 1680,
- "nationality": "English",
- "crew": [
- "Redbeard",
- "One-Eyed Jack",
- "Mad Anne",
- "Salty Sam"
- ],
- "ships": [
- {
- "name": "The Black Pearl",
- "type": "Sloop",
- "year": 1700
- },
- {
- "name": "The Revenge",
- "type": "Frigate",
- "year": 1715
- }
- ],
- "treasures": [
- {
- "name": "Cursed Aztec Gold",
- "value": "Priceless"
- },
- {
- "name": "Emerald of the Sea",
- "value": "500,000 gold coins"
- },
- {
- "name": "Golden Chalice",
- "value": "200,000 gold coins"
- }
- ],
- "adventures": [
- {
- "year": 1698,
- "location": "Tortuga",
- "description": "First encounter with pirates, joined crew of Captain Redbeard."
- },
- {
- "year": 1702,
- "location": "Isla de Muerta",
- "description": "Discovered cursed Aztec gold, narrowly escaped the wrath of cursed pirates."
- },
- {
- "year": 1705,
- "location": "Port Royal",
- "description": "Led a successful raid on the governor's mansion, acquired valuable treasures."
- },
- {
- "year": 1710,
- "location": "Treasure Island",
- "description": "Unearthed the hidden treasure of Captain Flint, became legendary among pirates."
- },
- {
- "year": 1718,
- "location": "Nassau",
- "description": "Declared war against the British Empire, led a fleet of pirate ships."
- }
- ]
- }
- Reason: All assertions passed">[PASS] (1.00)
- {
- "name": "Captain Blackbeard",
- "alias": "The Dread Pirate",
- "occupation": "Pirate",
- "birthplace": "Port Royal",
- "birthyear": 1680,
- "nationality": "English",
- "crew": [
- "Redbeard",
- "One-Eyed Jack",
- "Mad Anne",
- "Salty Sam"
- ],
- "ships": [
- {
- "name": "The Black Pearl",
- "type": "Sloop",
- "year": 1700
- },
- {
- "name": "The Revenge",
- "type": "Frigate",
- "year": 1715
- }
- ],
- "treasures": [
- {
- "name": "Cursed Aztec Gold",
- "value": "Priceless"
- },
- {
- "name": "Emerald of the Sea",
- "value": "500,000 gold coins"
- },
- {
- "name": "Golden Chalice",
- "value": "200,000 gold coins"
- }
- ],
- "adventures": [
- {
- "year": 1698,
- "location": "Tortuga",
- "description": "First encounter with pirates, joined crew of Captain Redbeard."
- },
- {
- "year": 1702,
- "location": "Isla de Muerta",
- "description": "Discovered cursed Aztec gold, narrowly escaped the wrath of cursed pirates."
- },
- {
- "year": 1705,
- "location": "Port Royal",
- "description": "Led a successful raid on the governor's mansion, acquired valuable treasures."
- },
- {
- "year": 1710,
- "location": "Treasure Island",
- "description": "Unearthed the hidden treasure of Captain Flint, became legendary among pirates."
- },
- {
- "year": 1718,
- "location": "Nassau",
- "description": "Declared war against the British Empire, led a fleet of pirate ships."
- }
- ]
- }
- Reason: All assertions passed</td>
-
- </tr>
-
- <tr>
-
- <td data-content="Hello world">Hello world</td>
-
- <td data-content="[FAIL] (0.64)
- Python code returned false
- max(0, len(output) - 300)
- ---
- Ahoy thar, mateys!
- Reason: Python code returned false
- max(0, len(output) - 300)">[FAIL] (0.64)
- Python code returned false
- max(0, len(output) - 300)
- ---
- Ahoy thar, mateys!
- Reason: Python code returned false
- max(0, len(output) - 300)</td>
-
- <td data-content="[FAIL] (0.64)
- Python code returned false
- max(0, len(output) - 300)
- ---
- Ahoy, me hearties! Avast ye, landlubbers! 'Tis I, a fearsome pirate, settin' sail on the vast seas. Hear me words, ye scurvy dogs: "Hello world!"
- Reason: Python code returned false
- max(0, len(output) - 300)">[FAIL] (0.64)
- Python code returned false
- max(0, len(output) - 300)
- ---
- Ahoy, me hearties! Avast ye, landlubbers! 'Tis I, a fearsome pirate, settin' sail on the vast seas. Hear me words, ye scurvy dogs: "Hello world!"
- Reason: Python code returned false
- max(0, len(output) - 300)</td>
-
- </tr>
-
- <tr>
-
- <td data-content="The quick brown fox jumps over the lazy dog">The quick brown fox jumps over the lazy dog</td>
-
- <td data-content="[FAIL] (0.50)
- Expected output to contain "arrr"
- ---
- Thar swift brown fox be jumpin' o'er thar lazy dog.
- Reason: Expected output to contain "arrr"">[FAIL] (0.50)
- Expected output to contain "arrr"
- ---
- Thar swift brown fox be jumpin' o'er thar lazy dog.
- Reason: Expected output to contain "arrr"</td>
-
- <td data-content="[FAIL] (0.50)
- Expected output to contain "arrr"
- ---
- Arr, me hearties! Listen up, ye scurvy dogs! The quick brown fox be jumpin' o'er the lazy dog, aye!
- Reason: Expected output to contain "arrr"">[FAIL] (0.50)
- Expected output to contain "arrr"
- ---
- Arr, me hearties! Listen up, ye scurvy dogs! The quick brown fox be jumpin' o'er the lazy dog, aye!
- Reason: Expected output to contain "arrr"</td>
-
- </tr>
-
- </tbody>
- </table>
- </body>
- </html>
|