update load script
Browse files- the-vault-inline.py +15 -15
the-vault-inline.py
CHANGED
@@ -175,20 +175,20 @@ class TheVaultFunction(datasets.GeneratorBasedBuilder):
|
|
175 |
row = pa_table.slice(row_index, 1).to_pydict()
|
176 |
|
177 |
yield key, {
|
178 |
-
"hexsha": row['hexsha'],
|
179 |
-
"repo": row['repo'],
|
180 |
-
"path": row['path'],
|
181 |
-
"license": row['license'],
|
182 |
-
"language": row['language'],
|
183 |
-
"identifier": row['identifier'],
|
184 |
-
"code": row['code'],
|
185 |
-
"code_tokens": row['code_tokens'],
|
186 |
-
"original_comment": row['original_comment'],
|
187 |
-
"comment": row['comment'],
|
188 |
-
"comment_tokens": row['comment_tokens'],
|
189 |
-
"start_point": row['start_point'],
|
190 |
-
"end_point": row['end_point'],
|
191 |
-
"prev_context": row['prev_context'],
|
192 |
-
"next_context": row['next_context']
|
193 |
}
|
194 |
key += 1
|
|
|
175 |
row = pa_table.slice(row_index, 1).to_pydict()
|
176 |
|
177 |
yield key, {
|
178 |
+
"hexsha": row['hexsha'][0],
|
179 |
+
"repo": row['repo'][0],
|
180 |
+
"path": row['path'][0],
|
181 |
+
"license": row['license'][0],
|
182 |
+
"language": row['language'][0],
|
183 |
+
"identifier": row['identifier'][0],
|
184 |
+
"code": row['code'][0],
|
185 |
+
"code_tokens": row['code_tokens'][0],
|
186 |
+
"original_comment": row['original_comment'][0],
|
187 |
+
"comment": row['comment'][0],
|
188 |
+
"comment_tokens": row['comment_tokens'][0],
|
189 |
+
"start_point": row['start_point'][0],
|
190 |
+
"end_point": row['end_point'][0],
|
191 |
+
"prev_context": row['prev_context'][0],
|
192 |
+
"next_context": row['next_context'][0]
|
193 |
}
|
194 |
key += 1
|