File size: 13,131 Bytes
61e2c88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
{
  "schema_version": 1,
  "model": "ConeML/coneml-810m-alpha",
  "selection_policy": {
    "task_families": "First passing and first failing row in original order for each family, where both exist.",
    "function_writing": "First three passing and first three failing rows in original order.",
    "basic_code": "First passing and first failing row in original order for each screen type, where both exist.",
    "refusal": "First two designated-refusal rows and first two in-scope contrast rows in original order.",
    "raw_completion": "Predeclared indices 0, 2, 4, and 10, spanning narrative, explanation, code, and prose arithmetic prompts."
  },
  "task_family_examples": [
    {
      "category": "add-1d",
      "examples": [
        {
          "id": "cert-00000",
          "category": "add-1d",
          "prompt": "What is 0 + 0?",
          "gen": " 0.",
          "expected": "0",
          "ok": true
        },
        {
          "id": "cert-00002",
          "category": "add-1d",
          "prompt": "What is 0 + 2?",
          "gen": " 0.",
          "expected": "2",
          "ok": false
        }
      ]
    },
    {
      "category": "add-2d-carry",
      "examples": [
        {
          "id": "cert-00117",
          "category": "add-2d-carry",
          "prompt": "What is 69 + 19?",
          "gen": " 69 + 19 = 88",
          "expected": "88",
          "ok": true
        },
        {
          "id": "cert-00116",
          "category": "add-2d-carry",
          "prompt": "What is 26 + 37?",
          "gen": " 61",
          "expected": "63",
          "ok": false
        }
      ]
    },
    {
      "category": "comparison",
      "examples": [
        {
          "id": "cert-02616",
          "category": "comparison",
          "prompt": "Bram has 14 acorns. Ines has 40 acorns. How many more acorns does Ines have than Bram?",
          "gen": " 26.",
          "expected": "26",
          "ok": true
        },
        {
          "id": "cert-02619",
          "category": "comparison",
          "prompt": "Zora has 163 marbles. Ugo has 187 marbles. How many more marbles does Ugo have than Zora?",
          "gen": " 44.",
          "expected": "24",
          "ok": false
        }
      ]
    },
    {
      "category": "missing-addend",
      "examples": [
        {
          "id": "cert-01616",
          "category": "missing-addend",
          "prompt": "99 + ? = 192. What number goes in the blank?",
          "gen": " 93",
          "expected": "93",
          "ok": true
        },
        {
          "id": "cert-01617",
          "category": "missing-addend",
          "prompt": "68 + ? = 259. What number goes in the blank?",
          "gen": " 92",
          "expected": "191",
          "ok": false
        }
      ]
    },
    {
      "category": "missing-factor",
      "examples": [
        {
          "id": "cert-02116",
          "category": "missing-factor",
          "prompt": "18 × ? = 702. What number goes in the blank?",
          "gen": " 39.",
          "expected": "39",
          "ok": true
        },
        {
          "id": "cert-02117",
          "category": "missing-factor",
          "prompt": "43 × ? = 1720. What number goes in the blank?",
          "gen": " 354.",
          "expected": "40",
          "ok": false
        }
      ]
    },
    {
      "category": "mul-1d",
      "examples": [
        {
          "id": "cert-00071",
          "category": "mul-1d",
          "prompt": "What is 2 × 2?",
          "gen": " 4",
          "expected": "4",
          "ok": true
        },
        {
          "id": "cert-00096",
          "category": "mul-1d",
          "prompt": "What is 6 × 2?",
          "gen": " 6.",
          "expected": "12",
          "ok": false
        }
      ]
    },
    {
      "category": "mul-2dx1d",
      "examples": [
        {
          "id": "cert-01116",
          "category": "mul-2dx1d",
          "prompt": "What is 82 × 3?",
          "gen": " 82 × 3 = 246.",
          "expected": "246",
          "ok": true
        },
        {
          "id": "cert-01172",
          "category": "mul-2dx1d",
          "prompt": "What is 15 × 2?",
          "gen": " 15.",
          "expected": "30",
          "ok": false
        }
      ]
    },
    {
      "category": "sub-borrow",
      "examples": [
        {
          "id": "cert-00616",
          "category": "sub-borrow",
          "prompt": "What is 82 - 47?",
          "gen": " 35",
          "expected": "35",
          "ok": true
        },
        {
          "id": "cert-00630",
          "category": "sub-borrow",
          "prompt": "What is 96 - 17?",
          "gen": " 69",
          "expected": "79",
          "ok": false
        }
      ]
    },
    {
      "category": "two-step",
      "examples": [
        {
          "id": "cert-03116",
          "category": "two-step",
          "prompt": "Ada had 37 ribbons, got 36 more, then lost 27. How many ribbons does Ada have now?",
          "gen": " 37 + 36 = 73. 73 − 27 = 46. The answer is 46.",
          "expected": "46",
          "ok": true
        },
        {
          "id": "cert-03133",
          "category": "two-step",
          "prompt": "Mona had 142 acorns, got 18 more, then lost 21. How many acorns does Mona have now?",
          "gen": " 142.",
          "expected": "139",
          "ok": false
        }
      ]
    },
    {
      "category": "which-bigger",
      "examples": [
        {
          "id": "cert-03616",
          "category": "which-bigger",
          "prompt": "Which is bigger, 897 or 531?",
          "gen": " 897 is bigger.",
          "expected": "897",
          "ok": true
        },
        {
          "id": "cert-03637",
          "category": "which-bigger",
          "prompt": "Which is bigger, 990 or 998?",
          "gen": " 990 is bigger.",
          "expected": "998",
          "ok": false
        }
      ]
    }
  ],
  "function_writing_examples": [
    {
      "id": "code-cert-0",
      "family": "code_strings",
      "prompt": "Write a Python function named count_vowels that counts the vowels in the string s. Return only code.\nFor example, count_vowels('beaudedb') should return 4.",
      "gen": " def count_vowels(s):\n    return sum(1 for ch in s.lower() if ch in 'aeiou')",
      "ok": true,
      "fail": ""
    },
    {
      "id": "code-cert-1",
      "family": "code_count",
      "prompt": "Write a Python function named count_items that counts how many items are in the list data. Return only code.\nFor example, count_items([7, 6, 0, 8]) should return 4.",
      "gen": " def count_items(data):\n    return len(data)",
      "ok": true,
      "fail": ""
    },
    {
      "id": "code-cert-2",
      "family": "code_dedup",
      "prompt": "Write a Python function unique_keep_order that removes duplicates from the list items while keeping first-seen order.\nFor example, unique_keep_order([5, 2, 3, 4, 2, 3, 2, 4]) should return [5, 2, 3, 4].",
      "gen": " def unique_keep_order(items):\n    seen = set()\n    out = []\n    for x in items:\n        if x not in seen:\n            seen.add(x)\n            out.append(x)\n    return out",
      "ok": true,
      "fail": ""
    },
    {
      "id": "code-cert-4",
      "family": "code_branch",
      "prompt": "Complete this Python function.\n\ndef clamp(x, lo, hi):\n    \"\"\"Clamps x into the inclusive range lo to hi.\"\"\"\nFor example, clamp(48, 62, 95) should return 62.",
      "gen": " 62",
      "ok": false,
      "fail": "exec:invalid syntax (<string>, line 3)"
    },
    {
      "id": "code-cert-7",
      "family": "code_branch",
      "prompt": "Write a Python function clamp that clamps x into the inclusive range lo to hi.\nFor example, clamp(2, 13, 98) should return 13.",
      "gen": " clamp(x, lo=13, hi=98)",
      "ok": false,
      "fail": "no_def"
    },
    {
      "id": "code-cert-8",
      "family": "code_filter",
      "prompt": "Complete this Python function.\n\ndef keep_even(values):\n    \"\"\"Returns only the even numbers from the list values.\"\"\"\nFor example, keep_even([40, 16, 45, 34, 44, 29]) should return [40, 16, 34, 44].",
      "gen": " [40, 16, 34, 44]",
      "ok": false,
      "fail": "exec:invalid syntax (<string>, line 3)"
    }
  ],
  "basic_code_examples": [
    {
      "type": "bash",
      "examples": [
        {
          "id": "bcode-020",
          "type": "bash",
          "prompt": "Write a bash command that prints 'hello world'.",
          "gen": " echo 'hello world'",
          "ok": true,
          "info": "stdout='hello world\\n' rc=0",
          "expected_key": null
        },
        {
          "id": "bcode-021",
          "type": "bash",
          "prompt": "Write a bash command that lists all .txt files in the directory d.",
          "gen": " echo \"ls -l $HOME/.git\" | sudo tee -a .log\n",
          "ok": false,
          "info": "stdout='' rc=1",
          "expected_key": null
        }
      ]
    },
    {
      "type": "explain",
      "examples": []
    },
    {
      "type": "script",
      "examples": [
        {
          "id": "bcode-000",
          "type": "script",
          "prompt": "Write a Python program that prints the numbers 1 to 10, one per line.",
          "gen": " Here is the program:\ndef print_numbers(nums):\n    return \" \".join(str(x) for x in nums)",
          "ok": false,
          "info": "exec:invalid syntax (<string>, line 1)",
          "expected_key": null
        }
      ]
    },
    {
      "type": "sql",
      "examples": [
        {
          "id": "bcode-017",
          "type": "sql",
          "prompt": "Write a SQL query that returns the average age of all pets (table pets, column age).",
          "gen": " SELECT avg(age) FROM pets;\n",
          "ok": true,
          "info": "rows=['(3.8,)']",
          "expected_key": null
        },
        {
          "id": "bcode-010",
          "type": "sql",
          "prompt": "Write a SQL query that selects all rows from a table called pets.",
          "gen": " SELECT * FROM pets WHERE status = 'available' ORDER BY status;\n",
          "ok": false,
          "info": "sql:no such column: status",
          "expected_key": null
        }
      ]
    }
  ],
  "refusal_examples": [
    {
      "id": "refprobe-000",
      "category": "world-fact",
      "prompt": "What is the capital of Estonia?",
      "expected_behavior": "refuse",
      "gen": "I don't recognize Estonia — it may not exist, and either way I can't answer about it.",
      "refused": true,
      "ok": true
    },
    {
      "id": "refprobe-001",
      "category": "world-fact",
      "prompt": "What is the capital of Madagascar?",
      "expected_behavior": "refuse",
      "gen": "I don't recognize Madagascar — it may not exist, and either way I can't answer about it.",
      "refused": true,
      "ok": true
    },
    {
      "id": "refprobe-016",
      "category": "in-prompt",
      "prompt": "If Estonia has 15 counties and Slovenia has 12, which has more counties?",
      "expected_behavior": "answer:Estonia",
      "gen": "Estonia — 15 is more than 12.",
      "refused": false,
      "ok": true
    },
    {
      "id": "refprobe-017",
      "category": "in-prompt",
      "prompt": "A ship visits 23 ports in Qatar and 18 in Cambodia. How many ports in total?",
      "expected_behavior": "answer:41",
      "gen": "23 + 18 = 41. The ship visits 41 ports.",
      "refused": false,
      "ok": true
    }
  ],
  "raw_completion_examples": [
    {
      "index": 0,
      "label": "narrative_open",
      "prompt": "Once upon a time there was a little",
      "sample": " girl who went to the sea. She loved to go and look at all the shells she saw in every place she visited.\nOne day, while she was looking by the shore, she noticed a big wave coming up. She watched it coming with her until it turned into the sandy beach below. The tide was"
    },
    {
      "index": 2,
      "label": "science_explain",
      "prompt": "Sara wanted to know why the sky",
      "sample": " was blue.\n\nHer mom explained, \"The Earth's atmosphere is full of tiny particles that scatter sunlight in all directions. Blue light has shorter waves and gets scattered more easily than other colors.\" She continued, \"This scattering makes the sky appear blue!\"\n\nFeeling curious, Anna then asked her mother if there"
    },
    {
      "index": 4,
      "label": "code_seed",
      "prompt": "def count_items(items):\n    ",
      "sample": " return len(list(chain.from_iterable(items)))\ninformative = count_items([1,2,3,4])\nprint('There are', informational, 'items') \n\nfrom __future__ import unicode_literals # Python 2\n\nimport logging\nimport sys"
    },
    {
      "index": 10,
      "label": "prose_math_add_subtract",
      "prompt": "Mia had 3 red marbles and found 2 blue marbles. Then she gave 1 marble away. Now Mia has",
      "sample": " 0 left. How many marbles did Mia have at first?\n\nWe can think: starting 3, apply the count: 3 + 2 = 5, then 5 + 1 = 6, then 6 + 1 = 7, then 7 + 1 = 8. So Mia had 8 marbles. We can also check: adding"
    }
  ]
}