tsmithv11 commited on
Commit
dac5fc7
·
1 Parent(s): 1925ead

Publish mbpp in Lance format (#1)

Browse files

- Publish mbpp in Lance format (32cffe6082f8ea4d3951d6bee976cd780e3bc175)

Files changed (46) hide show
  1. .gitattributes +5 -0
  2. LICENSE.txt +396 -0
  3. README.md +85 -0
  4. data/full/prompt.lance/_transactions/0-7c5c759c-432b-47e7-9042-c1285cd43ddd.txn +0 -0
  5. data/full/prompt.lance/_versions/18446744073709551614.manifest +0 -0
  6. data/full/prompt.lance/_versions/latest_version_hint.json +1 -0
  7. data/full/prompt.lance/data/00001101101010001100000143e0ed4b8c838e6f87617aa02b.lance +0 -0
  8. data/full/test.lance/_transactions/0-a7168706-15de-4541-bbdf-5d153f96af5c.txn +0 -0
  9. data/full/test.lance/_versions/18446744073709551614.manifest +0 -0
  10. data/full/test.lance/_versions/latest_version_hint.json +1 -0
  11. data/full/test.lance/data/10101000001111101010101061a57944169c49af5726b8023a.lance +3 -0
  12. data/full/train.lance/_transactions/0-548ffa26-4975-4ade-b65c-f378587c94b5.txn +0 -0
  13. data/full/train.lance/_versions/18446744073709551614.manifest +0 -0
  14. data/full/train.lance/_versions/latest_version_hint.json +1 -0
  15. data/full/train.lance/data/100100001001011000101110af36d44644ba36eb5e6bccb7be.lance +3 -0
  16. data/full/validation.lance/_transactions/0-29820f4e-56c1-422e-abf8-9aa305b108dd.txn +0 -0
  17. data/full/validation.lance/_versions/18446744073709551614.manifest +0 -0
  18. data/full/validation.lance/_versions/latest_version_hint.json +1 -0
  19. data/full/validation.lance/data/100100101011000011000000466c284038a6cd962173459e1c.lance +3 -0
  20. data/sanitized/prompt.lance/_transactions/0-d03a7d42-3d2d-4d1c-8718-65a1774434ad.txn +0 -0
  21. data/sanitized/prompt.lance/_versions/18446744073709551614.manifest +0 -0
  22. data/sanitized/prompt.lance/_versions/latest_version_hint.json +1 -0
  23. data/sanitized/prompt.lance/data/00000010000111000100011045837d48c3b11496911753ca6f.lance +0 -0
  24. data/sanitized/test.lance/_transactions/0-c919ae0a-5e46-414c-9f6e-ee845562d294.txn +0 -0
  25. data/sanitized/test.lance/_versions/18446744073709551614.manifest +0 -0
  26. data/sanitized/test.lance/_versions/latest_version_hint.json +1 -0
  27. data/sanitized/test.lance/data/0010010100001110110000008d54df474cbf6288554ca49cb9.lance +3 -0
  28. data/sanitized/train.lance/_transactions/0-65cd2ac9-7c44-45b1-a7cb-0fd0ab3ad9d8.txn +0 -0
  29. data/sanitized/train.lance/_versions/18446744073709551614.manifest +0 -0
  30. data/sanitized/train.lance/_versions/latest_version_hint.json +1 -0
  31. data/sanitized/train.lance/data/01101101111001100101101001dc4d459e8eeb51ef2d6d5a1c.lance +3 -0
  32. data/sanitized/validation.lance/_transactions/0-a94021c9-2fcf-4a69-a031-3db9e1f9019d.txn +0 -0
  33. data/sanitized/validation.lance/_versions/18446744073709551614.manifest +0 -0
  34. data/sanitized/validation.lance/_versions/latest_version_hint.json +1 -0
  35. data/sanitized/validation.lance/data/10100111001100111111111058621d489cbc5e2f49b983440d.lance +0 -0
  36. meta/conversion.json +136 -0
  37. source/README.md +276 -0
  38. source/hub-gitattributes.txt +27 -0
  39. viewer/full/prompt-00000-of-00001.parquet +3 -0
  40. viewer/full/test-00000-of-00001.parquet +3 -0
  41. viewer/full/train-00000-of-00001.parquet +3 -0
  42. viewer/full/validation-00000-of-00001.parquet +3 -0
  43. viewer/sanitized/prompt-00000-of-00001.parquet +3 -0
  44. viewer/sanitized/test-00000-of-00001.parquet +3 -0
  45. viewer/sanitized/train-00000-of-00001.parquet +3 -0
  46. viewer/sanitized/validation-00000-of-00001.parquet +3 -0
.gitattributes CHANGED
@@ -58,3 +58,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ data/full/test.lance/data/10101000001111101010101061a57944169c49af5726b8023a.lance filter=lfs diff=lfs merge=lfs -text
62
+ data/full/train.lance/data/100100001001011000101110af36d44644ba36eb5e6bccb7be.lance filter=lfs diff=lfs merge=lfs -text
63
+ data/full/validation.lance/data/100100101011000011000000466c284038a6cd962173459e1c.lance filter=lfs diff=lfs merge=lfs -text
64
+ data/sanitized/test.lance/data/0010010100001110110000008d54df474cbf6288554ca49cb9.lance filter=lfs diff=lfs merge=lfs -text
65
+ data/sanitized/train.lance/data/01101101111001100101101001dc4d459e8eeb51ef2d6d5a1c.lance filter=lfs diff=lfs merge=lfs -text
LICENSE.txt ADDED
@@ -0,0 +1,396 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Attribution 4.0 International
2
+
3
+ =======================================================================
4
+
5
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
6
+ does not provide legal services or legal advice. Distribution of
7
+ Creative Commons public licenses does not create a lawyer-client or
8
+ other relationship. Creative Commons makes its licenses and related
9
+ information available on an "as-is" basis. Creative Commons gives no
10
+ warranties regarding its licenses, any material licensed under their
11
+ terms and conditions, or any related information. Creative Commons
12
+ disclaims all liability for damages resulting from their use to the
13
+ fullest extent possible.
14
+
15
+ Using Creative Commons Public Licenses
16
+
17
+ Creative Commons public licenses provide a standard set of terms and
18
+ conditions that creators and other rights holders may use to share
19
+ original works of authorship and other material subject to copyright
20
+ and certain other rights specified in the public license below. The
21
+ following considerations are for informational purposes only, are not
22
+ exhaustive, and do not form part of our licenses.
23
+
24
+ Considerations for licensors: Our public licenses are
25
+ intended for use by those authorized to give the public
26
+ permission to use material in ways otherwise restricted by
27
+ copyright and certain other rights. Our licenses are
28
+ irrevocable. Licensors should read and understand the terms
29
+ and conditions of the license they choose before applying it.
30
+ Licensors should also secure all rights necessary before
31
+ applying our licenses so that the public can reuse the
32
+ material as expected. Licensors should clearly mark any
33
+ material not subject to the license. This includes other CC-
34
+ licensed material, or material used under an exception or
35
+ limitation to copyright. More considerations for licensors:
36
+ wiki.creativecommons.org/Considerations_for_licensors
37
+
38
+ Considerations for the public: By using one of our public
39
+ licenses, a licensor grants the public permission to use the
40
+ licensed material under specified terms and conditions. If
41
+ the licensor's permission is not necessary for any reason--for
42
+ example, because of any applicable exception or limitation to
43
+ copyright--then that use is not regulated by the license. Our
44
+ licenses grant only permissions under copyright and certain
45
+ other rights that a licensor has authority to grant. Use of
46
+ the licensed material may still be restricted for other
47
+ reasons, including because others have copyright or other
48
+ rights in the material. A licensor may make special requests,
49
+ such as asking that all changes be marked or described.
50
+ Although not required by our licenses, you are encouraged to
51
+ respect those requests where reasonable. More considerations
52
+ for the public:
53
+ wiki.creativecommons.org/Considerations_for_licensees
54
+
55
+ =======================================================================
56
+
57
+ Creative Commons Attribution 4.0 International Public License
58
+
59
+ By exercising the Licensed Rights (defined below), You accept and agree
60
+ to be bound by the terms and conditions of this Creative Commons
61
+ Attribution 4.0 International Public License ("Public License"). To the
62
+ extent this Public License may be interpreted as a contract, You are
63
+ granted the Licensed Rights in consideration of Your acceptance of
64
+ these terms and conditions, and the Licensor grants You such rights in
65
+ consideration of benefits the Licensor receives from making the
66
+ Licensed Material available under these terms and conditions.
67
+
68
+
69
+ Section 1 -- Definitions.
70
+
71
+ a. Adapted Material means material subject to Copyright and Similar
72
+ Rights that is derived from or based upon the Licensed Material
73
+ and in which the Licensed Material is translated, altered,
74
+ arranged, transformed, or otherwise modified in a manner requiring
75
+ permission under the Copyright and Similar Rights held by the
76
+ Licensor. For purposes of this Public License, where the Licensed
77
+ Material is a musical work, performance, or sound recording,
78
+ Adapted Material is always produced where the Licensed Material is
79
+ synched in timed relation with a moving image.
80
+
81
+ b. Adapter's License means the license You apply to Your Copyright
82
+ and Similar Rights in Your contributions to Adapted Material in
83
+ accordance with the terms and conditions of this Public License.
84
+
85
+ c. Copyright and Similar Rights means copyright and/or similar rights
86
+ closely related to copyright including, without limitation,
87
+ performance, broadcast, sound recording, and Sui Generis Database
88
+ Rights, without regard to how the rights are labeled or
89
+ categorized. For purposes of this Public License, the rights
90
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
91
+ Rights.
92
+
93
+ d. Effective Technological Measures means those measures that, in the
94
+ absence of proper authority, may not be circumvented under laws
95
+ fulfilling obligations under Article 11 of the WIPO Copyright
96
+ Treaty adopted on December 20, 1996, and/or similar international
97
+ agreements.
98
+
99
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
100
+ any other exception or limitation to Copyright and Similar Rights
101
+ that applies to Your use of the Licensed Material.
102
+
103
+ f. Licensed Material means the artistic or literary work, database,
104
+ or other material to which the Licensor applied this Public
105
+ License.
106
+
107
+ g. Licensed Rights means the rights granted to You subject to the
108
+ terms and conditions of this Public License, which are limited to
109
+ all Copyright and Similar Rights that apply to Your use of the
110
+ Licensed Material and that the Licensor has authority to license.
111
+
112
+ h. Licensor means the individual(s) or entity(ies) granting rights
113
+ under this Public License.
114
+
115
+ i. Share means to provide material to the public by any means or
116
+ process that requires permission under the Licensed Rights, such
117
+ as reproduction, public display, public performance, distribution,
118
+ dissemination, communication, or importation, and to make material
119
+ available to the public including in ways that members of the
120
+ public may access the material from a place and at a time
121
+ individually chosen by them.
122
+
123
+ j. Sui Generis Database Rights means rights other than copyright
124
+ resulting from Directive 96/9/EC of the European Parliament and of
125
+ the Council of 11 March 1996 on the legal protection of databases,
126
+ as amended and/or succeeded, as well as other essentially
127
+ equivalent rights anywhere in the world.
128
+
129
+ k. You means the individual or entity exercising the Licensed Rights
130
+ under this Public License. Your has a corresponding meaning.
131
+
132
+
133
+ Section 2 -- Scope.
134
+
135
+ a. License grant.
136
+
137
+ 1. Subject to the terms and conditions of this Public License,
138
+ the Licensor hereby grants You a worldwide, royalty-free,
139
+ non-sublicensable, non-exclusive, irrevocable license to
140
+ exercise the Licensed Rights in the Licensed Material to:
141
+
142
+ a. reproduce and Share the Licensed Material, in whole or
143
+ in part; and
144
+
145
+ b. produce, reproduce, and Share Adapted Material.
146
+
147
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
148
+ Exceptions and Limitations apply to Your use, this Public
149
+ License does not apply, and You do not need to comply with
150
+ its terms and conditions.
151
+
152
+ 3. Term. The term of this Public License is specified in Section
153
+ 6(a).
154
+
155
+ 4. Media and formats; technical modifications allowed. The
156
+ Licensor authorizes You to exercise the Licensed Rights in
157
+ all media and formats whether now known or hereafter created,
158
+ and to make technical modifications necessary to do so. The
159
+ Licensor waives and/or agrees not to assert any right or
160
+ authority to forbid You from making technical modifications
161
+ necessary to exercise the Licensed Rights, including
162
+ technical modifications necessary to circumvent Effective
163
+ Technological Measures. For purposes of this Public License,
164
+ simply making modifications authorized by this Section 2(a)
165
+ (4) never produces Adapted Material.
166
+
167
+ 5. Downstream recipients.
168
+
169
+ a. Offer from the Licensor -- Licensed Material. Every
170
+ recipient of the Licensed Material automatically
171
+ receives an offer from the Licensor to exercise the
172
+ Licensed Rights under the terms and conditions of this
173
+ Public License.
174
+
175
+ b. No downstream restrictions. You may not offer or impose
176
+ any additional or different terms or conditions on, or
177
+ apply any Effective Technological Measures to, the
178
+ Licensed Material if doing so restricts exercise of the
179
+ Licensed Rights by any recipient of the Licensed
180
+ Material.
181
+
182
+ 6. No endorsement. Nothing in this Public License constitutes or
183
+ may be construed as permission to assert or imply that You
184
+ are, or that Your use of the Licensed Material is, connected
185
+ with, or sponsored, endorsed, or granted official status by,
186
+ the Licensor or others designated to receive attribution as
187
+ provided in Section 3(a)(1)(A)(i).
188
+
189
+ b. Other rights.
190
+
191
+ 1. Moral rights, such as the right of integrity, are not
192
+ licensed under this Public License, nor are publicity,
193
+ privacy, and/or other similar personality rights; however, to
194
+ the extent possible, the Licensor waives and/or agrees not to
195
+ assert any such rights held by the Licensor to the limited
196
+ extent necessary to allow You to exercise the Licensed
197
+ Rights, but not otherwise.
198
+
199
+ 2. Patent and trademark rights are not licensed under this
200
+ Public License.
201
+
202
+ 3. To the extent possible, the Licensor waives any right to
203
+ collect royalties from You for the exercise of the Licensed
204
+ Rights, whether directly or through a collecting society
205
+ under any voluntary or waivable statutory or compulsory
206
+ licensing scheme. In all other cases the Licensor expressly
207
+ reserves any right to collect such royalties.
208
+
209
+
210
+ Section 3 -- License Conditions.
211
+
212
+ Your exercise of the Licensed Rights is expressly made subject to the
213
+ following conditions.
214
+
215
+ a. Attribution.
216
+
217
+ 1. If You Share the Licensed Material (including in modified
218
+ form), You must:
219
+
220
+ a. retain the following if it is supplied by the Licensor
221
+ with the Licensed Material:
222
+
223
+ i. identification of the creator(s) of the Licensed
224
+ Material and any others designated to receive
225
+ attribution, in any reasonable manner requested by
226
+ the Licensor (including by pseudonym if
227
+ designated);
228
+
229
+ ii. a copyright notice;
230
+
231
+ iii. a notice that refers to this Public License;
232
+
233
+ iv. a notice that refers to the disclaimer of
234
+ warranties;
235
+
236
+ v. a URI or hyperlink to the Licensed Material to the
237
+ extent reasonably practicable;
238
+
239
+ b. indicate if You modified the Licensed Material and
240
+ retain an indication of any previous modifications; and
241
+
242
+ c. indicate the Licensed Material is licensed under this
243
+ Public License, and include the text of, or the URI or
244
+ hyperlink to, this Public License.
245
+
246
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
247
+ reasonable manner based on the medium, means, and context in
248
+ which You Share the Licensed Material. For example, it may be
249
+ reasonable to satisfy the conditions by providing a URI or
250
+ hyperlink to a resource that includes the required
251
+ information.
252
+
253
+ 3. If requested by the Licensor, You must remove any of the
254
+ information required by Section 3(a)(1)(A) to the extent
255
+ reasonably practicable.
256
+
257
+ 4. If You Share Adapted Material You produce, the Adapter's
258
+ License You apply must not prevent recipients of the Adapted
259
+ Material from complying with this Public License.
260
+
261
+
262
+ Section 4 -- Sui Generis Database Rights.
263
+
264
+ Where the Licensed Rights include Sui Generis Database Rights that
265
+ apply to Your use of the Licensed Material:
266
+
267
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
268
+ to extract, reuse, reproduce, and Share all or a substantial
269
+ portion of the contents of the database;
270
+
271
+ b. if You include all or a substantial portion of the database
272
+ contents in a database in which You have Sui Generis Database
273
+ Rights, then the database in which You have Sui Generis Database
274
+ Rights (but not its individual contents) is Adapted Material; and
275
+
276
+ c. You must comply with the conditions in Section 3(a) if You Share
277
+ all or a substantial portion of the contents of the database.
278
+
279
+ For the avoidance of doubt, this Section 4 supplements and does not
280
+ replace Your obligations under this Public License where the Licensed
281
+ Rights include other Copyright and Similar Rights.
282
+
283
+
284
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
285
+
286
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
287
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
288
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
289
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
290
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
291
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
292
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
293
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
294
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
295
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
296
+
297
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
298
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
299
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
300
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
301
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
302
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
303
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
304
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
305
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
306
+
307
+ c. The disclaimer of warranties and limitation of liability provided
308
+ above shall be interpreted in a manner that, to the extent
309
+ possible, most closely approximates an absolute disclaimer and
310
+ waiver of all liability.
311
+
312
+
313
+ Section 6 -- Term and Termination.
314
+
315
+ a. This Public License applies for the term of the Copyright and
316
+ Similar Rights licensed here. However, if You fail to comply with
317
+ this Public License, then Your rights under this Public License
318
+ terminate automatically.
319
+
320
+ b. Where Your right to use the Licensed Material has terminated under
321
+ Section 6(a), it reinstates:
322
+
323
+ 1. automatically as of the date the violation is cured, provided
324
+ it is cured within 30 days of Your discovery of the
325
+ violation; or
326
+
327
+ 2. upon express reinstatement by the Licensor.
328
+
329
+ For the avoidance of doubt, this Section 6(b) does not affect any
330
+ right the Licensor may have to seek remedies for Your violations
331
+ of this Public License.
332
+
333
+ c. For the avoidance of doubt, the Licensor may also offer the
334
+ Licensed Material under separate terms or conditions or stop
335
+ distributing the Licensed Material at any time; however, doing so
336
+ will not terminate this Public License.
337
+
338
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
339
+ License.
340
+
341
+
342
+ Section 7 -- Other Terms and Conditions.
343
+
344
+ a. The Licensor shall not be bound by any additional or different
345
+ terms or conditions communicated by You unless expressly agreed.
346
+
347
+ b. Any arrangements, understandings, or agreements regarding the
348
+ Licensed Material not stated herein are separate from and
349
+ independent of the terms and conditions of this Public License.
350
+
351
+
352
+ Section 8 -- Interpretation.
353
+
354
+ a. For the avoidance of doubt, this Public License does not, and
355
+ shall not be interpreted to, reduce, limit, restrict, or impose
356
+ conditions on any use of the Licensed Material that could lawfully
357
+ be made without permission under this Public License.
358
+
359
+ b. To the extent possible, if any provision of this Public License is
360
+ deemed unenforceable, it shall be automatically reformed to the
361
+ minimum extent necessary to make it enforceable. If the provision
362
+ cannot be reformed, it shall be severed from this Public License
363
+ without affecting the enforceability of the remaining terms and
364
+ conditions.
365
+
366
+ c. No term or condition of this Public License will be waived and no
367
+ failure to comply consented to unless expressly agreed to by the
368
+ Licensor.
369
+
370
+ d. Nothing in this Public License constitutes or may be interpreted
371
+ as a limitation upon, or waiver of, any privileges and immunities
372
+ that apply to the Licensor or You, including from the legal
373
+ processes of any jurisdiction or authority.
374
+
375
+
376
+ =======================================================================
377
+
378
+ Creative Commons is not a party to its public
379
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
380
+ its public licenses to material it publishes and in those instances
381
+ will be considered the “Licensor.” The text of the Creative Commons
382
+ public licenses is dedicated to the public domain under the CC0 Public
383
+ Domain Dedication. Except for the limited purpose of indicating that
384
+ material is shared under a Creative Commons public license or as
385
+ otherwise permitted by the Creative Commons policies published at
386
+ creativecommons.org/policies, Creative Commons does not authorize the
387
+ use of the trademark "Creative Commons" or any other trademark or logo
388
+ of Creative Commons without its prior written consent including,
389
+ without limitation, in connection with any unauthorized modifications
390
+ to any of its public licenses or any other arrangements,
391
+ understandings, or agreements concerning use of licensed material. For
392
+ the avoidance of doubt, this paragraph does not form part of the
393
+ public licenses.
394
+
395
+ Creative Commons may be contacted at creativecommons.org.
396
+
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: Mostly Basic Python Problems (MBPP) in Lance
3
+ license: cc-by-4.0
4
+ language:
5
+ - en
6
+ task_categories:
7
+ - text-generation
8
+ tags:
9
+ - lance
10
+ - vector-search
11
+ - python
12
+ - code-generation
13
+ - benchmark
14
+ size_categories:
15
+ - 1K<n<10K
16
+ configs:
17
+ - config_name: full
18
+ data_files:
19
+ - split: train
20
+ path: viewer/full/train-00000-of-00001.parquet
21
+ - split: validation
22
+ path: viewer/full/validation-00000-of-00001.parquet
23
+ - split: test
24
+ path: viewer/full/test-00000-of-00001.parquet
25
+ - split: prompt
26
+ path: viewer/full/prompt-00000-of-00001.parquet
27
+ - config_name: sanitized
28
+ data_files:
29
+ - split: train
30
+ path: viewer/sanitized/train-00000-of-00001.parquet
31
+ - split: validation
32
+ path: viewer/sanitized/validation-00000-of-00001.parquet
33
+ - split: test
34
+ path: viewer/sanitized/test-00000-of-00001.parquet
35
+ - split: prompt
36
+ path: viewer/sanitized/prompt-00000-of-00001.parquet
37
+ ---
38
+
39
+ # Mostly Basic Python Problems (MBPP) in Lance
40
+
41
+ Search English descriptions of entry-level Python exercises and identify matching benchmark tasks by their original IDs. [Original dataset at the converted revision](https://huggingface.co/datasets/google-research-datasets/mbpp/tree/4bb6404fdc6cacfda99d4ac4205087b89d32030c)
42
+
43
+ ## Data and splits
44
+
45
+ The `full` configuration has 974 rows. The `sanitized` configuration preserves 427 reviewed versions of tasks from the full benchmark. Both retain the original split membership, row order, code, and test fields. The `prompt` split contains few-shot examples.
46
+
47
+ | Configuration | Train | Validation | Test | Prompt |
48
+ |---|---:|---:|---:|---:|
49
+ | `full` | 374 | 90 | 500 | 10 |
50
+ | `sanitized` | 120 | 43 | 257 | 7 |
51
+
52
+ Open each split at `data/<configuration>/<split>.lance`. Hugging Face Data Studio uses byte-identical copies of the original Parquet files in `viewer/`. The [conversion metadata](meta/conversion.json) records every split's path, row count, columns, and checksum.
53
+
54
+ ## Search in Python
55
+
56
+ This release generated normalized 256-dimensional float32 vectors from the original English task description in `text` (full) or `prompt` (sanitized). The encoder is `sentence-transformers/static-retrieval-mrl-en-v1` at revision `f60985c706f192d45d218078e49e5a8b6f15283a`. The code uses the compatible query encoder and an exact cosine search over the chosen split. It prints cosine similarity and identifying fields for five matches. [Pinned encoder](https://huggingface.co/sentence-transformers/static-retrieval-mrl-en-v1/tree/f60985c706f192d45d218078e49e5a8b6f15283a)
57
+
58
+ ```bash
59
+ pip install pylance==14.0.3 sentence-transformers==6.3.0
60
+ ```
61
+
62
+ ```python
63
+ import lance
64
+ from sentence_transformers import SentenceTransformer
65
+
66
+ encoder = SentenceTransformer(
67
+ "sentence-transformers/static-retrieval-mrl-en-v1",
68
+ revision="f60985c706f192d45d218078e49e5a8b6f15283a",
69
+ truncate_dim=256,
70
+ device="cpu",
71
+ )
72
+ query = "Given a list of strings, find the longest prefix shared by every string."
73
+ vector = encoder.encode_query(query, normalize_embeddings=True)
74
+ tasks = lance.dataset("hf://datasets/lance-format/mbpp-lance/data/full/test.lance")
75
+ hits = tasks.to_table(
76
+ columns=["task_id", "text", "_distance"],
77
+ nearest={"column": "task_embedding", "q": vector, "k": 5, "metric": "cosine"},
78
+ ).to_pylist()
79
+ for hit in hits:
80
+ print(f"{1.0 - hit['_distance']:.4f}\t{hit['task_id']}\t{hit['text']}")
81
+ ```
82
+
83
+ ## Attribution and license
84
+
85
+ Credit Google Research, Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, and Charles Sutton. The source and this release are distributed under [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/). The conversion adds the Lance format and description embeddings. The published Parquet copies preserve the source bytes. The release retains the [original dataset card](source/README.md) and [license text](LICENSE.txt). [Project repository](https://github.com/google-research/google-research/tree/master/mbpp) · [Benchmark paper](https://arxiv.org/abs/2108.07732)
data/full/prompt.lance/_transactions/0-7c5c759c-432b-47e7-9042-c1285cd43ddd.txn ADDED
Binary file (465 Bytes). View file
 
data/full/prompt.lance/_versions/18446744073709551614.manifest ADDED
Binary file (1.01 kB). View file
 
data/full/prompt.lance/_versions/latest_version_hint.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":1}
data/full/prompt.lance/data/00001101101010001100000143e0ed4b8c838e6f87617aa02b.lance ADDED
Binary file (16.8 kB). View file
 
data/full/test.lance/_transactions/0-a7168706-15de-4541-bbdf-5d153f96af5c.txn ADDED
Binary file (466 Bytes). View file
 
data/full/test.lance/_versions/18446744073709551614.manifest ADDED
Binary file (1.01 kB). View file
 
data/full/test.lance/_versions/latest_version_hint.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":1}
data/full/test.lance/data/10101000001111101010101061a57944169c49af5726b8023a.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76d07f90cf13fe4ff23949677c409bf52031eed382fef69a81832a5436897a7c
3
+ size 653094
data/full/train.lance/_transactions/0-548ffa26-4975-4ade-b65c-f378587c94b5.txn ADDED
Binary file (466 Bytes). View file
 
data/full/train.lance/_versions/18446744073709551614.manifest ADDED
Binary file (1.01 kB). View file
 
data/full/train.lance/_versions/latest_version_hint.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":1}
data/full/train.lance/data/100100001001011000101110af36d44644ba36eb5e6bccb7be.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d7cb4f73177c7451b416116e4d39b612a6251d01c7aa9059355a83a28d2ff6e
3
+ size 503408
data/full/validation.lance/_transactions/0-29820f4e-56c1-422e-abf8-9aa305b108dd.txn ADDED
Binary file (465 Bytes). View file
 
data/full/validation.lance/_versions/18446744073709551614.manifest ADDED
Binary file (1.01 kB). View file
 
data/full/validation.lance/_versions/latest_version_hint.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":1}
data/full/validation.lance/data/100100101011000011000000466c284038a6cd962173459e1c.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:410382c9fc487e73b53cb004a4ab3a831910cf0724c057cd65ad6784bb963521
3
+ size 136621
data/sanitized/prompt.lance/_transactions/0-d03a7d42-3d2d-4d1c-8718-65a1774434ad.txn ADDED
Binary file (455 Bytes). View file
 
data/sanitized/prompt.lance/_versions/18446744073709551614.manifest ADDED
Binary file (988 Bytes). View file
 
data/sanitized/prompt.lance/_versions/latest_version_hint.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":1}
data/sanitized/prompt.lance/data/00000010000111000100011045837d48c3b11496911753ca6f.lance ADDED
Binary file (12.6 kB). View file
 
data/sanitized/test.lance/_transactions/0-c919ae0a-5e46-414c-9f6e-ee845562d294.txn ADDED
Binary file (457 Bytes). View file
 
data/sanitized/test.lance/_versions/18446744073709551614.manifest ADDED
Binary file (992 Bytes). View file
 
data/sanitized/test.lance/_versions/latest_version_hint.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":1}
data/sanitized/test.lance/data/0010010100001110110000008d54df474cbf6288554ca49cb9.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e98ae5a787dd8c6e3097e463b484544807ec3f442f890fcb0a03b96690c6cbd1
3
+ size 346069
data/sanitized/train.lance/_transactions/0-65cd2ac9-7c44-45b1-a7cb-0fd0ab3ad9d8.txn ADDED
Binary file (456 Bytes). View file
 
data/sanitized/train.lance/_versions/18446744073709551614.manifest ADDED
Binary file (990 Bytes). View file
 
data/sanitized/train.lance/_versions/latest_version_hint.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":1}
data/sanitized/train.lance/data/01101101111001100101101001dc4d459e8eeb51ef2d6d5a1c.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:018196e997efabfa6e2be3e60c03311ce91ae727d69fa25f82da6e36943feabc
3
+ size 184118
data/sanitized/validation.lance/_transactions/0-a94021c9-2fcf-4a69-a031-3db9e1f9019d.txn ADDED
Binary file (456 Bytes). View file
 
data/sanitized/validation.lance/_versions/18446744073709551614.manifest ADDED
Binary file (990 Bytes). View file
 
data/sanitized/validation.lance/_versions/latest_version_hint.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":1}
data/sanitized/validation.lance/data/10100111001100111111111058621d489cbc5e2f49b983440d.lance ADDED
Binary file (66.3 kB). View file
 
meta/conversion.json ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source": "google-research-datasets/mbpp",
3
+ "source_revision": "4bb6404fdc6cacfda99d4ac4205087b89d32030c",
4
+ "source_license": "cc-by-4.0",
5
+ "source_card_sha256": "6377d5c76ba46b9e650daa6d5eb592e671c9b15586e39f23f50ed9bf2ac54cf6",
6
+ "embedding": {
7
+ "model": "sentence-transformers/static-retrieval-mrl-en-v1",
8
+ "revision": "f60985c706f192d45d218078e49e5a8b6f15283a",
9
+ "dimensions": 256,
10
+ "normalized": true,
11
+ "input": "the original English task description in `text` (full) or `prompt` (sanitized)",
12
+ "metric": "cosine"
13
+ },
14
+ "tables": {
15
+ "full/train": {
16
+ "rows": 374,
17
+ "columns": [
18
+ "task_id",
19
+ "text",
20
+ "code",
21
+ "test_list",
22
+ "test_setup_code",
23
+ "challenge_test_list"
24
+ ],
25
+ "lance": "data/full/train.lance",
26
+ "source_path": "full/train-00000-of-00001.parquet",
27
+ "parquet": "viewer/full/train-00000-of-00001.parquet",
28
+ "parquet_sha256": "09d125ca31edacb7800be8c67c45abff618faf0214ff551291817d06bdb914ae"
29
+ },
30
+ "full/validation": {
31
+ "rows": 90,
32
+ "columns": [
33
+ "task_id",
34
+ "text",
35
+ "code",
36
+ "test_list",
37
+ "test_setup_code",
38
+ "challenge_test_list"
39
+ ],
40
+ "lance": "data/full/validation.lance",
41
+ "source_path": "full/validation-00000-of-00001.parquet",
42
+ "parquet": "viewer/full/validation-00000-of-00001.parquet",
43
+ "parquet_sha256": "3f0ec060987432d99fe8fb409d31e6c67445b208a01741c5583517c80a10fe80"
44
+ },
45
+ "full/test": {
46
+ "rows": 500,
47
+ "columns": [
48
+ "task_id",
49
+ "text",
50
+ "code",
51
+ "test_list",
52
+ "test_setup_code",
53
+ "challenge_test_list"
54
+ ],
55
+ "lance": "data/full/test.lance",
56
+ "source_path": "full/test-00000-of-00001.parquet",
57
+ "parquet": "viewer/full/test-00000-of-00001.parquet",
58
+ "parquet_sha256": "566fd53060ffba5766dace1d1e2f4c38906781526de222b0dfbdbc325b696c77"
59
+ },
60
+ "full/prompt": {
61
+ "rows": 10,
62
+ "columns": [
63
+ "task_id",
64
+ "text",
65
+ "code",
66
+ "test_list",
67
+ "test_setup_code",
68
+ "challenge_test_list"
69
+ ],
70
+ "lance": "data/full/prompt.lance",
71
+ "source_path": "full/prompt-00000-of-00001.parquet",
72
+ "parquet": "viewer/full/prompt-00000-of-00001.parquet",
73
+ "parquet_sha256": "a053e4bb85ceb77430ae80592addb4ca4dc6ba087592f9e04537800ee88b7431"
74
+ },
75
+ "sanitized/train": {
76
+ "rows": 120,
77
+ "columns": [
78
+ "source_file",
79
+ "task_id",
80
+ "prompt",
81
+ "code",
82
+ "test_imports",
83
+ "test_list"
84
+ ],
85
+ "lance": "data/sanitized/train.lance",
86
+ "source_path": "sanitized/train-00000-of-00001.parquet",
87
+ "parquet": "viewer/sanitized/train-00000-of-00001.parquet",
88
+ "parquet_sha256": "d95f8ad6d2fff08fe4826122d6e3e31f75716825d0c5c340d297aca5e9e0de0e"
89
+ },
90
+ "sanitized/validation": {
91
+ "rows": 43,
92
+ "columns": [
93
+ "source_file",
94
+ "task_id",
95
+ "prompt",
96
+ "code",
97
+ "test_imports",
98
+ "test_list"
99
+ ],
100
+ "lance": "data/sanitized/validation.lance",
101
+ "source_path": "sanitized/validation-00000-of-00001.parquet",
102
+ "parquet": "viewer/sanitized/validation-00000-of-00001.parquet",
103
+ "parquet_sha256": "27e065fcab3c863959933328a7fdbf404e1bcb5464b1be6fe0dcd9530e420204"
104
+ },
105
+ "sanitized/test": {
106
+ "rows": 257,
107
+ "columns": [
108
+ "source_file",
109
+ "task_id",
110
+ "prompt",
111
+ "code",
112
+ "test_imports",
113
+ "test_list"
114
+ ],
115
+ "lance": "data/sanitized/test.lance",
116
+ "source_path": "sanitized/test-00000-of-00001.parquet",
117
+ "parquet": "viewer/sanitized/test-00000-of-00001.parquet",
118
+ "parquet_sha256": "e9e9efa2c0d59ef5e55537a9d126b8f875d5ac010a8d75628d76824884e15850"
119
+ },
120
+ "sanitized/prompt": {
121
+ "rows": 7,
122
+ "columns": [
123
+ "source_file",
124
+ "task_id",
125
+ "prompt",
126
+ "code",
127
+ "test_imports",
128
+ "test_list"
129
+ ],
130
+ "lance": "data/sanitized/prompt.lance",
131
+ "source_path": "sanitized/prompt-00000-of-00001.parquet",
132
+ "parquet": "viewer/sanitized/prompt-00000-of-00001.parquet",
133
+ "parquet_sha256": "73c623309b7b5d65fd5661204b35f779f8e66301aa9832d1ad4b8fc3b21151fd"
134
+ }
135
+ }
136
+ }
source/README.md ADDED
@@ -0,0 +1,276 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - crowdsourced
4
+ - expert-generated
5
+ language_creators:
6
+ - crowdsourced
7
+ - expert-generated
8
+ language:
9
+ - en
10
+ license:
11
+ - cc-by-4.0
12
+ multilinguality:
13
+ - monolingual
14
+ size_categories:
15
+ - n<1K
16
+ source_datasets:
17
+ - original
18
+ task_categories:
19
+ - text2text-generation
20
+ task_ids: []
21
+ pretty_name: Mostly Basic Python Problems
22
+ tags:
23
+ - code-generation
24
+ dataset_info:
25
+ - config_name: full
26
+ features:
27
+ - name: task_id
28
+ dtype: int32
29
+ - name: text
30
+ dtype: string
31
+ - name: code
32
+ dtype: string
33
+ - name: test_list
34
+ sequence: string
35
+ - name: test_setup_code
36
+ dtype: string
37
+ - name: challenge_test_list
38
+ sequence: string
39
+ splits:
40
+ - name: train
41
+ num_bytes: 176879
42
+ num_examples: 374
43
+ - name: test
44
+ num_bytes: 244104
45
+ num_examples: 500
46
+ - name: validation
47
+ num_bytes: 42405
48
+ num_examples: 90
49
+ - name: prompt
50
+ num_bytes: 4550
51
+ num_examples: 10
52
+ download_size: 236069
53
+ dataset_size: 467938
54
+ - config_name: sanitized
55
+ features:
56
+ - name: source_file
57
+ dtype: string
58
+ - name: task_id
59
+ dtype: int32
60
+ - name: prompt
61
+ dtype: string
62
+ - name: code
63
+ dtype: string
64
+ - name: test_imports
65
+ sequence: string
66
+ - name: test_list
67
+ sequence: string
68
+ splits:
69
+ - name: train
70
+ num_bytes: 63453
71
+ num_examples: 120
72
+ - name: test
73
+ num_bytes: 132720
74
+ num_examples: 257
75
+ - name: validation
76
+ num_bytes: 20050
77
+ num_examples: 43
78
+ - name: prompt
79
+ num_bytes: 3407
80
+ num_examples: 7
81
+ download_size: 115422
82
+ dataset_size: 219630
83
+ configs:
84
+ - config_name: full
85
+ data_files:
86
+ - split: train
87
+ path: full/train-*
88
+ - split: test
89
+ path: full/test-*
90
+ - split: validation
91
+ path: full/validation-*
92
+ - split: prompt
93
+ path: full/prompt-*
94
+ default: true
95
+ - config_name: sanitized
96
+ data_files:
97
+ - split: train
98
+ path: sanitized/train-*
99
+ - split: test
100
+ path: sanitized/test-*
101
+ - split: validation
102
+ path: sanitized/validation-*
103
+ - split: prompt
104
+ path: sanitized/prompt-*
105
+ ---
106
+
107
+ # Dataset Card for Mostly Basic Python Problems (mbpp)
108
+
109
+ ## Table of Contents
110
+ - [Dataset Card for Mostly Basic Python Problems (mbpp)](#dataset-card-for-mostly-basic-python-problems-(mbpp))
111
+ - [Table of Contents](#table-of-contents)
112
+ - [Dataset Description](#dataset-description)
113
+ - [Dataset Summary](#dataset-summary)
114
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
115
+ - [Languages](#languages)
116
+ - [Dataset Structure](#dataset-structure)
117
+ - [Data Instances](#data-instances)
118
+ - [Data Fields](#data-fields)
119
+ - [Data Splits](#data-splits)
120
+ - [Dataset Creation](#dataset-creation)
121
+ - [Curation Rationale](#curation-rationale)
122
+ - [Source Data](#source-data)
123
+ - [Initial Data Collection and Normalization](#initial-data-collection-and-normalization)
124
+ - [Who are the source language producers?](#who-are-the-source-language-producers)
125
+ - [Annotations](#annotations)
126
+ - [Annotation process](#annotation-process)
127
+ - [Who are the annotators?](#who-are-the-annotators)
128
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
129
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
130
+ - [Social Impact of Dataset](#social-impact-of-dataset)
131
+ - [Discussion of Biases](#discussion-of-biases)
132
+ - [Other Known Limitations](#other-known-limitations)
133
+ - [Additional Information](#additional-information)
134
+ - [Dataset Curators](#dataset-curators)
135
+ - [Licensing Information](#licensing-information)
136
+ - [Citation Information](#citation-information)
137
+ - [Contributions](#contributions)
138
+
139
+ ## Dataset Description
140
+ - **Repository:** https://github.com/google-research/google-research/tree/master/mbpp
141
+ - **Paper:** [Program Synthesis with Large Language Models](https://arxiv.org/abs/2108.07732)
142
+
143
+ ### Dataset Summary
144
+ The benchmark consists of around 1,000 crowd-sourced Python programming problems, designed to be solvable by entry level programmers, covering programming fundamentals, standard library functionality, and so on. Each problem consists of a task description, code solution and 3 automated test cases. As described in the paper, a subset of the data has been hand-verified by us.
145
+
146
+ Released [here](https://github.com/google-research/google-research/tree/master/mbpp) as part of [Program Synthesis with Large Language Models, Austin et. al., 2021](https://arxiv.org/abs/2108.07732).
147
+
148
+ ### Supported Tasks and Leaderboards
149
+ This dataset is used to evaluate code generations.
150
+
151
+ ### Languages
152
+ English - Python code
153
+
154
+ ## Dataset Structure
155
+
156
+ ```python
157
+ dataset_full = load_dataset("mbpp")
158
+ DatasetDict({
159
+ test: Dataset({
160
+ features: ['task_id', 'text', 'code', 'test_list', 'test_setup_code', 'challenge_test_list'],
161
+ num_rows: 974
162
+ })
163
+ })
164
+
165
+ dataset_sanitized = load_dataset("mbpp", "sanitized")
166
+ DatasetDict({
167
+ test: Dataset({
168
+ features: ['source_file', 'task_id', 'prompt', 'code', 'test_imports', 'test_list'],
169
+ num_rows: 427
170
+ })
171
+ })
172
+ ```
173
+
174
+ ### Data Instances
175
+
176
+ #### mbpp - full
177
+ ```
178
+ {
179
+ 'task_id': 1,
180
+ 'text': 'Write a function to find the minimum cost path to reach (m, n) from (0, 0) for the given cost matrix cost[][] and a position (m, n) in cost[][].',
181
+ 'code': 'R = 3\r\nC = 3\r\ndef min_cost(cost, m, n): \r\n\ttc = [[0 for x in range(C)] for x in range(R)] \r\n\ttc[0][0] = cost[0][0] \r\n\tfor i in range(1, m+1): \r\n\t\ttc[i][0] = tc[i-1][0] + cost[i][0] \r\n\tfor j in range(1, n+1): \r\n\t\ttc[0][j] = tc[0][j-1] + cost[0][j] \r\n\tfor i in range(1, m+1): \r\n\t\tfor j in range(1, n+1): \r\n\t\t\ttc[i][j] = min(tc[i-1][j-1], tc[i-1][j], tc[i][j-1]) + cost[i][j] \r\n\treturn tc[m][n]',
182
+ 'test_list': [
183
+ 'assert min_cost([[1, 2, 3], [4, 8, 2], [1, 5, 3]], 2, 2) == 8',
184
+ 'assert min_cost([[2, 3, 4], [5, 9, 3], [2, 6, 4]], 2, 2) == 12',
185
+ 'assert min_cost([[3, 4, 5], [6, 10, 4], [3, 7, 5]], 2, 2) == 16'],
186
+ 'test_setup_code': '',
187
+ 'challenge_test_list': []
188
+ }
189
+ ```
190
+ #### mbpp - sanitized
191
+ ```
192
+ {
193
+ 'source_file': 'Benchmark Questions Verification V2.ipynb',
194
+ 'task_id': 2,
195
+ 'prompt': 'Write a function to find the shared elements from the given two lists.',
196
+ 'code': 'def similar_elements(test_tup1, test_tup2):\n res = tuple(set(test_tup1) & set(test_tup2))\n return (res) ',
197
+ 'test_imports': [],
198
+ 'test_list': [
199
+ 'assert set(similar_elements((3, 4, 5, 6),(5, 7, 4, 10))) == set((4, 5))',
200
+ 'assert set(similar_elements((1, 2, 3, 4),(5, 4, 3, 7))) == set((3, 4))',
201
+ 'assert set(similar_elements((11, 12, 14, 13),(17, 15, 14, 13))) == set((13, 14))'
202
+ ]
203
+ }
204
+ ```
205
+ ### Data Fields
206
+
207
+ - `source_file`: unknown
208
+ - `text`/`prompt`: description of programming task
209
+ - `code`: solution for programming task
210
+ - `test_setup_code`/`test_imports`: necessary code imports to execute tests
211
+ - `test_list`: list of tests to verify solution
212
+ - `challenge_test_list`: list of more challenging test to further probe solution
213
+
214
+ ### Data Splits
215
+ There are two version of the dataset (full and sanitized), each with four splits:
216
+ - train
217
+ - evaluation
218
+ - test
219
+ - prompt
220
+
221
+ The `prompt` split corresponds to samples used for few-shot prompting and not for training.
222
+
223
+ ## Dataset Creation
224
+ See section 2.1 of original [paper](https://arxiv.org/abs/2108.07732).
225
+
226
+ ### Curation Rationale
227
+ In order to evaluate code generation functions a set of simple programming tasks as well as solutions is necessary which this dataset provides.
228
+
229
+ ### Source Data
230
+
231
+ #### Initial Data Collection and Normalization
232
+ The dataset was manually created from scratch.
233
+
234
+ #### Who are the source language producers?
235
+ The dataset was created with an internal crowdsourcing effort at Google.
236
+
237
+ ### Annotations
238
+
239
+ #### Annotation process
240
+ The full dataset was created first and a subset then underwent a second round to improve the task descriptions.
241
+
242
+ #### Who are the annotators?
243
+ The dataset was created with an internal crowdsourcing effort at Google.
244
+
245
+ ### Personal and Sensitive Information
246
+ None.
247
+
248
+ ## Considerations for Using the Data
249
+ Make sure you execute generated Python code in a safe environment when evauating against this dataset as generated code could be harmful.
250
+
251
+ ### Social Impact of Dataset
252
+ With this dataset code generating models can be better evaluated which leads to fewer issues introduced when using such models.
253
+
254
+ ### Discussion of Biases
255
+
256
+ ### Other Known Limitations
257
+ Since the task descriptions might not be expressive enough to solve the task. The `sanitized` split aims at addressing this issue by having a second round of annotators improve the dataset.
258
+
259
+ ## Additional Information
260
+
261
+ ### Dataset Curators
262
+ Google Research
263
+
264
+ ### Licensing Information
265
+ CC-BY-4.0
266
+
267
+ ### Citation Information
268
+ ```
269
+ @article{austin2021program,
270
+ title={Program Synthesis with Large Language Models},
271
+ author={Austin, Jacob and Odena, Augustus and Nye, Maxwell and Bosma, Maarten and Michalewski, Henryk and Dohan, David and Jiang, Ellen and Cai, Carrie and Terry, Michael and Le, Quoc and others},
272
+ journal={arXiv preprint arXiv:2108.07732},
273
+ year={2021}
274
+ ```
275
+ ### Contributions
276
+ Thanks to [@lvwerra](https://github.com/lvwerra) for adding this dataset.
source/hub-gitattributes.txt ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.model filter=lfs diff=lfs merge=lfs -text
12
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
13
+ *.onnx filter=lfs diff=lfs merge=lfs -text
14
+ *.ot filter=lfs diff=lfs merge=lfs -text
15
+ *.parquet filter=lfs diff=lfs merge=lfs -text
16
+ *.pb filter=lfs diff=lfs merge=lfs -text
17
+ *.pt filter=lfs diff=lfs merge=lfs -text
18
+ *.pth filter=lfs diff=lfs merge=lfs -text
19
+ *.rar filter=lfs diff=lfs merge=lfs -text
20
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
22
+ *.tflite filter=lfs diff=lfs merge=lfs -text
23
+ *.tgz filter=lfs diff=lfs merge=lfs -text
24
+ *.xz filter=lfs diff=lfs merge=lfs -text
25
+ *.zip filter=lfs diff=lfs merge=lfs -text
26
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
27
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
viewer/full/prompt-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a053e4bb85ceb77430ae80592addb4ca4dc6ba087592f9e04537800ee88b7431
3
+ size 7878
viewer/full/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:566fd53060ffba5766dace1d1e2f4c38906781526de222b0dfbdbc325b696c77
3
+ size 115824
viewer/full/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09d125ca31edacb7800be8c67c45abff618faf0214ff551291817d06bdb914ae
3
+ size 87223
viewer/full/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f0ec060987432d99fe8fb409d31e6c67445b208a01741c5583517c80a10fe80
3
+ size 25144
viewer/sanitized/prompt-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73c623309b7b5d65fd5661204b35f779f8e66301aa9832d1ad4b8fc3b21151fd
3
+ size 6717
viewer/sanitized/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9e9efa2c0d59ef5e55537a9d126b8f875d5ac010a8d75628d76824884e15850
3
+ size 60864
viewer/sanitized/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d95f8ad6d2fff08fe4826122d6e3e31f75716825d0c5c340d297aca5e9e0de0e
3
+ size 33854
viewer/sanitized/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27e065fcab3c863959933328a7fdbf404e1bcb5464b1be6fe0dcd9530e420204
3
+ size 13987