Datasets:
Tasks:
Question Answering
Modalities:
Text
Sub-tasks:
extractive-qa
Languages:
code
Size:
100K - 1M
License:
Test commit
Browse files- codequeries.py +2 -1
codequeries.py
CHANGED
@@ -226,8 +226,9 @@ class Codequeries(datasets.GeneratorBasedBuilder):
|
|
226 |
for fp in filepath:
|
227 |
with open(fp, encoding="utf-8") as f:
|
228 |
for line in f:
|
|
|
229 |
row = json.loads(line)
|
230 |
-
|
231 |
instance_key = str(key) + "_" + row["query_name"] + "_" + row["code_file_path"]
|
232 |
yield instance_key, {
|
233 |
"query_name": row["query_name"],
|
|
|
226 |
for fp in filepath:
|
227 |
with open(fp, encoding="utf-8") as f:
|
228 |
for line in f:
|
229 |
+
print(line)
|
230 |
row = json.loads(line)
|
231 |
+
print(row)
|
232 |
instance_key = str(key) + "_" + row["query_name"] + "_" + row["code_file_path"]
|
233 |
yield instance_key, {
|
234 |
"query_name": row["query_name"],
|