sps commited on
Commit
8e0f46c
1 Parent(s): ab2edcb

Update data script - cast key to string

Browse files
Files changed (1) hide show
  1. 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"],