Datasets:
Tasks:
Question Answering
Modalities:
Text
Sub-tasks:
extractive-qa
Languages:
code
Size:
100K - 1M
License:
Update data script - cast key to string
Browse files- codequeries.py +1 -1
codequeries.py
CHANGED
@@ -214,7 +214,7 @@ class Codequeries(datasets.GeneratorBasedBuilder):
|
|
214 |
for line in f:
|
215 |
row = json.loads(line)
|
216 |
|
217 |
-
instance_key = key + "_" + row["query_name"] + "_" + row["code_file_path"]
|
218 |
yield instance_key, {
|
219 |
"query_name": row["query_name"],
|
220 |
"context_blocks": row["context_blocks"],
|
|
|
214 |
for line in f:
|
215 |
row = json.loads(line)
|
216 |
|
217 |
+
instance_key = str(key) + "_" + row["query_name"] + "_" + row["code_file_path"]
|
218 |
yield instance_key, {
|
219 |
"query_name": row["query_name"],
|
220 |
"context_blocks": row["context_blocks"],
|