thepurpleowl commited on
Commit
816d7d8
1 Parent(s): c3ca1f8

Update codequeries.py

Browse files
Files changed (1) hide show
  1. codequeries.py +3 -3
codequeries.py CHANGED
@@ -119,7 +119,7 @@ class Codequeries(datasets.GeneratorBasedBuilder):
119
  "subtokenized_input_sequence", "label_sequence"],
120
  citation=_CODEQUERIES_CITATION,
121
  data_url={
122
- "test": "twostep_relevance/"
123
  },
124
  url="",
125
  ),
@@ -212,8 +212,8 @@ class Codequeries(datasets.GeneratorBasedBuilder):
212
 
213
  if self.config.name == "twostep":
214
  key = 0
215
- for i in range(10):
216
- with open(filepath + str(i) + '.json', encoding="utf-8") as f:
217
  for line in f:
218
  row = json.loads(line)
219
 
 
119
  "subtokenized_input_sequence", "label_sequence"],
120
  citation=_CODEQUERIES_CITATION,
121
  data_url={
122
+ "test": ["twostep_relevance/" + " twostep_relevance_test_" + str(i) + ".json" for i in range(0,10)]
123
  },
124
  url="",
125
  ),
 
212
 
213
  if self.config.name == "twostep":
214
  key = 0
215
+ for fp in filepath:
216
+ with open(fp, encoding="utf-8") as f:
217
  for line in f:
218
  row = json.loads(line)
219