Convert dataset to Parquet (#12)
Browse files- Convert dataset to Parquet (f77fd1bea1eae17842ecbcae7da2a98a89166c61)
- Add 'js' config data files (5734aef79db99c1497bdee43c460190f1f2a794d)
- Add 'java' config data files (ac882256a3df6248dc81c00549c766e30e785472)
- Add 'go' config data files (209a1da2deb34da45e4ce286304c9c4483babee7)
- Add 'cpp' config data files (e39ce1a076267358395a13c248a857a5e31986b3)
- Add 'rust' config data files (6f18c8d7e8c40eb5e273da7e8ce82c839de2914c)
- Delete loading script (7c7dd8323aada82ab77eeb815a4a0386c80dc5d5)
- Delete data file (d8fe1056edad58d1bdbfedc8640d0985e8e44b85)
- Delete data file (06e385cd551cdc464a18f0414307e2012d8bc546)
- Delete data file (010f7e359d716d241177f88dd3b97cf9c027bba6)
- Delete data file (faaaf87d394af7ae3ee978597d6161eb9c6b8222)
- Delete data file (94b5397ffb6bec4f35822fdcaa71c13ea07899ca)
- Delete data file (da40ffdd8ded0833d7075902d13eb071000c7171)
Co-authored-by: Arjun Guha <[email protected]>
- README.md +255 -0
- cpp/test-00000-of-00001.parquet +3 -0
- data/cpp/data/humanevalpack.jsonl +0 -0
- data/go/data/humanevalpack.jsonl +0 -0
- data/java/data/humanevalpack.jsonl +0 -0
- data/js/data/humanevalpack.jsonl +0 -0
- data/python/data/humanevalpack.jsonl +0 -0
- data/rust/data/humanevalpack.jsonl +0 -0
- go/test-00000-of-00001.parquet +3 -0
- humanevalpack.py +0 -151
- java/test-00000-of-00001.parquet +3 -0
- js/test-00000-of-00001.parquet +3 -0
- python/test-00000-of-00001.parquet +3 -0
- rust/test-00000-of-00001.parquet +3 -0
|
@@ -9,6 +9,261 @@ language:
|
|
| 9 |
- code
|
| 10 |
tags:
|
| 11 |
- code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |

|
|
|
|
| 9 |
- code
|
| 10 |
tags:
|
| 11 |
- code
|
| 12 |
+
dataset_info:
|
| 13 |
+
- config_name: cpp
|
| 14 |
+
features:
|
| 15 |
+
- name: task_id
|
| 16 |
+
dtype: string
|
| 17 |
+
- name: prompt
|
| 18 |
+
dtype: string
|
| 19 |
+
- name: declaration
|
| 20 |
+
dtype: string
|
| 21 |
+
- name: canonical_solution
|
| 22 |
+
dtype: string
|
| 23 |
+
- name: buggy_solution
|
| 24 |
+
dtype: string
|
| 25 |
+
- name: bug_type
|
| 26 |
+
dtype: string
|
| 27 |
+
- name: failure_symptoms
|
| 28 |
+
dtype: string
|
| 29 |
+
- name: entry_point
|
| 30 |
+
dtype: string
|
| 31 |
+
- name: import
|
| 32 |
+
dtype: string
|
| 33 |
+
- name: test_setup
|
| 34 |
+
dtype: string
|
| 35 |
+
- name: test
|
| 36 |
+
dtype: string
|
| 37 |
+
- name: example_test
|
| 38 |
+
dtype: string
|
| 39 |
+
- name: signature
|
| 40 |
+
dtype: string
|
| 41 |
+
- name: docstring
|
| 42 |
+
dtype: string
|
| 43 |
+
- name: instruction
|
| 44 |
+
dtype: string
|
| 45 |
+
splits:
|
| 46 |
+
- name: test
|
| 47 |
+
num_bytes: 469111
|
| 48 |
+
num_examples: 164
|
| 49 |
+
download_size: 193981
|
| 50 |
+
dataset_size: 469111
|
| 51 |
+
- config_name: go
|
| 52 |
+
features:
|
| 53 |
+
- name: task_id
|
| 54 |
+
dtype: string
|
| 55 |
+
- name: prompt
|
| 56 |
+
dtype: string
|
| 57 |
+
- name: declaration
|
| 58 |
+
dtype: string
|
| 59 |
+
- name: canonical_solution
|
| 60 |
+
dtype: string
|
| 61 |
+
- name: buggy_solution
|
| 62 |
+
dtype: string
|
| 63 |
+
- name: bug_type
|
| 64 |
+
dtype: string
|
| 65 |
+
- name: failure_symptoms
|
| 66 |
+
dtype: string
|
| 67 |
+
- name: entry_point
|
| 68 |
+
dtype: string
|
| 69 |
+
- name: import
|
| 70 |
+
dtype: string
|
| 71 |
+
- name: test_setup
|
| 72 |
+
dtype: string
|
| 73 |
+
- name: test
|
| 74 |
+
dtype: string
|
| 75 |
+
- name: example_test
|
| 76 |
+
dtype: string
|
| 77 |
+
- name: signature
|
| 78 |
+
dtype: string
|
| 79 |
+
- name: docstring
|
| 80 |
+
dtype: string
|
| 81 |
+
- name: instruction
|
| 82 |
+
dtype: string
|
| 83 |
+
splits:
|
| 84 |
+
- name: test
|
| 85 |
+
num_bytes: 463234
|
| 86 |
+
num_examples: 164
|
| 87 |
+
download_size: 198394
|
| 88 |
+
dataset_size: 463234
|
| 89 |
+
- config_name: java
|
| 90 |
+
features:
|
| 91 |
+
- name: task_id
|
| 92 |
+
dtype: string
|
| 93 |
+
- name: prompt
|
| 94 |
+
dtype: string
|
| 95 |
+
- name: declaration
|
| 96 |
+
dtype: string
|
| 97 |
+
- name: canonical_solution
|
| 98 |
+
dtype: string
|
| 99 |
+
- name: buggy_solution
|
| 100 |
+
dtype: string
|
| 101 |
+
- name: bug_type
|
| 102 |
+
dtype: string
|
| 103 |
+
- name: failure_symptoms
|
| 104 |
+
dtype: string
|
| 105 |
+
- name: entry_point
|
| 106 |
+
dtype: string
|
| 107 |
+
- name: import
|
| 108 |
+
dtype: string
|
| 109 |
+
- name: test_setup
|
| 110 |
+
dtype: string
|
| 111 |
+
- name: test
|
| 112 |
+
dtype: string
|
| 113 |
+
- name: example_test
|
| 114 |
+
dtype: string
|
| 115 |
+
- name: signature
|
| 116 |
+
dtype: string
|
| 117 |
+
- name: docstring
|
| 118 |
+
dtype: string
|
| 119 |
+
- name: instruction
|
| 120 |
+
dtype: string
|
| 121 |
+
splits:
|
| 122 |
+
- name: test
|
| 123 |
+
num_bytes: 589440
|
| 124 |
+
num_examples: 164
|
| 125 |
+
download_size: 210440
|
| 126 |
+
dataset_size: 589440
|
| 127 |
+
- config_name: js
|
| 128 |
+
features:
|
| 129 |
+
- name: task_id
|
| 130 |
+
dtype: string
|
| 131 |
+
- name: prompt
|
| 132 |
+
dtype: string
|
| 133 |
+
- name: declaration
|
| 134 |
+
dtype: string
|
| 135 |
+
- name: canonical_solution
|
| 136 |
+
dtype: string
|
| 137 |
+
- name: buggy_solution
|
| 138 |
+
dtype: string
|
| 139 |
+
- name: bug_type
|
| 140 |
+
dtype: string
|
| 141 |
+
- name: failure_symptoms
|
| 142 |
+
dtype: string
|
| 143 |
+
- name: entry_point
|
| 144 |
+
dtype: string
|
| 145 |
+
- name: import
|
| 146 |
+
dtype: string
|
| 147 |
+
- name: test_setup
|
| 148 |
+
dtype: string
|
| 149 |
+
- name: test
|
| 150 |
+
dtype: string
|
| 151 |
+
- name: example_test
|
| 152 |
+
dtype: string
|
| 153 |
+
- name: signature
|
| 154 |
+
dtype: string
|
| 155 |
+
- name: docstring
|
| 156 |
+
dtype: string
|
| 157 |
+
- name: instruction
|
| 158 |
+
dtype: string
|
| 159 |
+
splits:
|
| 160 |
+
- name: test
|
| 161 |
+
num_bytes: 435189
|
| 162 |
+
num_examples: 164
|
| 163 |
+
download_size: 194044
|
| 164 |
+
dataset_size: 435189
|
| 165 |
+
- config_name: python
|
| 166 |
+
features:
|
| 167 |
+
- name: task_id
|
| 168 |
+
dtype: string
|
| 169 |
+
- name: prompt
|
| 170 |
+
dtype: string
|
| 171 |
+
- name: declaration
|
| 172 |
+
dtype: string
|
| 173 |
+
- name: canonical_solution
|
| 174 |
+
dtype: string
|
| 175 |
+
- name: buggy_solution
|
| 176 |
+
dtype: string
|
| 177 |
+
- name: bug_type
|
| 178 |
+
dtype: string
|
| 179 |
+
- name: failure_symptoms
|
| 180 |
+
dtype: string
|
| 181 |
+
- name: entry_point
|
| 182 |
+
dtype: string
|
| 183 |
+
- name: import
|
| 184 |
+
dtype: string
|
| 185 |
+
- name: test_setup
|
| 186 |
+
dtype: string
|
| 187 |
+
- name: test
|
| 188 |
+
dtype: string
|
| 189 |
+
- name: example_test
|
| 190 |
+
dtype: string
|
| 191 |
+
- name: signature
|
| 192 |
+
dtype: string
|
| 193 |
+
- name: docstring
|
| 194 |
+
dtype: string
|
| 195 |
+
- name: instruction
|
| 196 |
+
dtype: string
|
| 197 |
+
splits:
|
| 198 |
+
- name: test
|
| 199 |
+
num_bytes: 423013
|
| 200 |
+
num_examples: 164
|
| 201 |
+
download_size: 191279
|
| 202 |
+
dataset_size: 423013
|
| 203 |
+
- config_name: rust
|
| 204 |
+
features:
|
| 205 |
+
- name: task_id
|
| 206 |
+
dtype: string
|
| 207 |
+
- name: prompt
|
| 208 |
+
dtype: string
|
| 209 |
+
- name: declaration
|
| 210 |
+
dtype: string
|
| 211 |
+
- name: canonical_solution
|
| 212 |
+
dtype: string
|
| 213 |
+
- name: buggy_solution
|
| 214 |
+
dtype: string
|
| 215 |
+
- name: bug_type
|
| 216 |
+
dtype: string
|
| 217 |
+
- name: failure_symptoms
|
| 218 |
+
dtype: string
|
| 219 |
+
- name: entry_point
|
| 220 |
+
dtype: string
|
| 221 |
+
- name: import
|
| 222 |
+
dtype: string
|
| 223 |
+
- name: test_setup
|
| 224 |
+
dtype: string
|
| 225 |
+
- name: test
|
| 226 |
+
dtype: string
|
| 227 |
+
- name: example_test
|
| 228 |
+
dtype: string
|
| 229 |
+
- name: signature
|
| 230 |
+
dtype: string
|
| 231 |
+
- name: docstring
|
| 232 |
+
dtype: string
|
| 233 |
+
- name: instruction
|
| 234 |
+
dtype: string
|
| 235 |
+
splits:
|
| 236 |
+
- name: test
|
| 237 |
+
num_bytes: 450539
|
| 238 |
+
num_examples: 164
|
| 239 |
+
download_size: 168464
|
| 240 |
+
dataset_size: 450539
|
| 241 |
+
configs:
|
| 242 |
+
- config_name: cpp
|
| 243 |
+
data_files:
|
| 244 |
+
- split: test
|
| 245 |
+
path: cpp/test-*
|
| 246 |
+
- config_name: go
|
| 247 |
+
data_files:
|
| 248 |
+
- split: test
|
| 249 |
+
path: go/test-*
|
| 250 |
+
- config_name: java
|
| 251 |
+
data_files:
|
| 252 |
+
- split: test
|
| 253 |
+
path: java/test-*
|
| 254 |
+
- config_name: js
|
| 255 |
+
data_files:
|
| 256 |
+
- split: test
|
| 257 |
+
path: js/test-*
|
| 258 |
+
- config_name: python
|
| 259 |
+
data_files:
|
| 260 |
+
- split: test
|
| 261 |
+
path: python/test-*
|
| 262 |
+
default: true
|
| 263 |
+
- config_name: rust
|
| 264 |
+
data_files:
|
| 265 |
+
- split: test
|
| 266 |
+
path: rust/test-*
|
| 267 |
---
|
| 268 |
|
| 269 |

|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd2eed15063bf883952fb3b0a23a372eeaa9b9e58932a496667a0c2595145779
|
| 3 |
+
size 193981
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5cbb0e8152b5c9d2b595a1fa9d540c87cde7a306e9fc7f63febe24825bc20c74
|
| 3 |
+
size 198394
|
|
@@ -1,151 +0,0 @@
|
|
| 1 |
-
import json
|
| 2 |
-
|
| 3 |
-
import datasets
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
_DESCRIPTION = """
|
| 7 |
-
"""
|
| 8 |
-
|
| 9 |
-
_HOMEPAGE = "https://github.com/bigcode-project/octopack"
|
| 10 |
-
|
| 11 |
-
def get_url(name):
|
| 12 |
-
url = f"data/{name}/data/humanevalpack.jsonl"
|
| 13 |
-
return url
|
| 14 |
-
|
| 15 |
-
def split_generator(dl_manager, name):
|
| 16 |
-
downloaded_files = dl_manager.download(get_url(name))
|
| 17 |
-
return [
|
| 18 |
-
datasets.SplitGenerator(
|
| 19 |
-
name=datasets.Split.TEST,
|
| 20 |
-
gen_kwargs={
|
| 21 |
-
"filepath": downloaded_files,
|
| 22 |
-
},
|
| 23 |
-
)
|
| 24 |
-
]
|
| 25 |
-
|
| 26 |
-
class HumanEvalPackConfig(datasets.BuilderConfig):
|
| 27 |
-
"""BuilderConfig """
|
| 28 |
-
|
| 29 |
-
def __init__(self, name, description, features, **kwargs):
|
| 30 |
-
super(HumanEvalPackConfig, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
|
| 31 |
-
self.name = name
|
| 32 |
-
self.description = description
|
| 33 |
-
self.features = features
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
class HumanEvalPack(datasets.GeneratorBasedBuilder):
|
| 37 |
-
VERSION = datasets.Version("1.0.0")
|
| 38 |
-
BUILDER_CONFIGS = [
|
| 39 |
-
HumanEvalPackConfig(
|
| 40 |
-
name="python",
|
| 41 |
-
description="Python HumanEvalPack",
|
| 42 |
-
features=[
|
| 43 |
-
"task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "import", "test_setup", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
|
| 44 |
-
]
|
| 45 |
-
),
|
| 46 |
-
HumanEvalPackConfig(
|
| 47 |
-
name="js",
|
| 48 |
-
description="JavaScript HumanEvalPack",
|
| 49 |
-
features=[
|
| 50 |
-
"task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "import", "test_setup", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
|
| 51 |
-
]
|
| 52 |
-
),
|
| 53 |
-
HumanEvalPackConfig(
|
| 54 |
-
name="java",
|
| 55 |
-
description="Java HumanEvalPack",
|
| 56 |
-
features=[
|
| 57 |
-
"task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "import", "test_setup", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
|
| 58 |
-
]
|
| 59 |
-
),
|
| 60 |
-
HumanEvalPackConfig(
|
| 61 |
-
name="go",
|
| 62 |
-
description="Go HumanEvalPack",
|
| 63 |
-
features=[
|
| 64 |
-
"task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "import", "test_setup", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
|
| 65 |
-
]
|
| 66 |
-
),
|
| 67 |
-
HumanEvalPackConfig(
|
| 68 |
-
name="cpp",
|
| 69 |
-
description="C++ HumanEvalPack",
|
| 70 |
-
features=[
|
| 71 |
-
"task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "import", "test_setup", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
|
| 72 |
-
]
|
| 73 |
-
),
|
| 74 |
-
HumanEvalPackConfig(
|
| 75 |
-
name="rust",
|
| 76 |
-
description="Rust HumanEvalPack",
|
| 77 |
-
features=[
|
| 78 |
-
"task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "import", "test_setup", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
|
| 79 |
-
]
|
| 80 |
-
),
|
| 81 |
-
]
|
| 82 |
-
DEFAULT_CONFIG_NAME = "python"
|
| 83 |
-
|
| 84 |
-
def _info(self):
|
| 85 |
-
return datasets.DatasetInfo(
|
| 86 |
-
description=_DESCRIPTION,
|
| 87 |
-
features=datasets.Features(
|
| 88 |
-
{
|
| 89 |
-
"task_id": datasets.Value("string"),
|
| 90 |
-
"prompt": datasets.Value("string"),
|
| 91 |
-
"declaration": datasets.Value("string"),
|
| 92 |
-
"canonical_solution": datasets.Value("string"),
|
| 93 |
-
"buggy_solution": datasets.Value("string"),
|
| 94 |
-
"bug_type": datasets.Value("string"),
|
| 95 |
-
"failure_symptoms": datasets.Value("string"),
|
| 96 |
-
"entry_point": datasets.Value("string"),
|
| 97 |
-
"import": datasets.Value("string"),
|
| 98 |
-
"test_setup": datasets.Value("string"),
|
| 99 |
-
"test": datasets.Value("string"),
|
| 100 |
-
"example_test": datasets.Value("string"),
|
| 101 |
-
"signature": datasets.Value("string"),
|
| 102 |
-
"docstring": datasets.Value("string"),
|
| 103 |
-
"instruction": datasets.Value("string"),
|
| 104 |
-
}
|
| 105 |
-
),
|
| 106 |
-
homepage=_HOMEPAGE,
|
| 107 |
-
)
|
| 108 |
-
|
| 109 |
-
def _split_generators(self, dl_manager):
|
| 110 |
-
if self.config.name == "python":
|
| 111 |
-
return split_generator(dl_manager, self.config.name)
|
| 112 |
-
|
| 113 |
-
elif self.config.name == "cpp":
|
| 114 |
-
return split_generator(dl_manager, self.config.name)
|
| 115 |
-
|
| 116 |
-
elif self.config.name == "go":
|
| 117 |
-
return split_generator(dl_manager, self.config.name)
|
| 118 |
-
|
| 119 |
-
elif self.config.name == "java":
|
| 120 |
-
return split_generator(dl_manager, self.config.name)
|
| 121 |
-
|
| 122 |
-
elif self.config.name == "js":
|
| 123 |
-
return split_generator(dl_manager, self.config.name)
|
| 124 |
-
|
| 125 |
-
elif self.config.name == "rust":
|
| 126 |
-
return split_generator(dl_manager, self.config.name)
|
| 127 |
-
|
| 128 |
-
def _generate_examples(self, filepath):
|
| 129 |
-
key = 0
|
| 130 |
-
with open(filepath) as f:
|
| 131 |
-
for line in f:
|
| 132 |
-
row = json.loads(line)
|
| 133 |
-
key += 1
|
| 134 |
-
yield key, {
|
| 135 |
-
"task_id": row["task_id"],
|
| 136 |
-
"prompt": row["prompt"],
|
| 137 |
-
"declaration": row["declaration"],
|
| 138 |
-
"canonical_solution": row["canonical_solution"],
|
| 139 |
-
"buggy_solution": row["buggy_solution"],
|
| 140 |
-
"bug_type": row["bug_type"],
|
| 141 |
-
"failure_symptoms": row["failure_symptoms"],
|
| 142 |
-
"import": row.get("import", ""), # Only for Go
|
| 143 |
-
"test_setup": row.get("test_setup", ""), # Only for Go
|
| 144 |
-
"test": row["test"],
|
| 145 |
-
"example_test": row["example_test"],
|
| 146 |
-
"entry_point": row["entry_point"],
|
| 147 |
-
"signature": row["signature"],
|
| 148 |
-
"docstring": row["docstring"],
|
| 149 |
-
"instruction": row["instruction"],
|
| 150 |
-
}
|
| 151 |
-
key += 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0be942d715894e3b350149f1cde6593e95eda495aa4bd1750f09428c0b3e3e9c
|
| 3 |
+
size 210440
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:52d6aada9ff62c22ba139aaa64431cca461fbca3cb0625521a988ffeef250855
|
| 3 |
+
size 194044
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed5f15d789156e21222bfcd556c425a39042355c84ae1e8b058abd6a3d7f8075
|
| 3 |
+
size 191279
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:02570ed6a11d8801d26a9aae0db87cdc0fc6f4a7eb68adb3a9e37fb4f752da57
|
| 3 |
+
size 168464
|