Datasets:
added data loader
Browse files- code_clippy_github.py +2 -2
code_clippy_github.py
CHANGED
@@ -182,12 +182,12 @@ class CodeClippyGithub(datasets.GeneratorBasedBuilder):
|
|
182 |
key = 0
|
183 |
for file_idx, file in enumerate(files):
|
184 |
with gzip.open(file, "rb") as f:
|
185 |
-
|
186 |
uncompressed_data = f.readlines()
|
187 |
|
188 |
for batch_idx, code_base in enumerate(uncompressed_data):
|
189 |
j_dict = json.loads(code_base.decode('utf-8'))
|
190 |
-
|
191 |
|
192 |
|
193 |
lang = lang_from_name(j_dict['path'])
|
|
|
182 |
key = 0
|
183 |
for file_idx, file in enumerate(files):
|
184 |
with gzip.open(file, "rb") as f:
|
185 |
+
|
186 |
uncompressed_data = f.readlines()
|
187 |
|
188 |
for batch_idx, code_base in enumerate(uncompressed_data):
|
189 |
j_dict = json.loads(code_base.decode('utf-8'))
|
190 |
+
|
191 |
|
192 |
|
193 |
lang = lang_from_name(j_dict['path'])
|