Datasets:

Languages:
English
ArXiv:
system HF staff commited on
Commit
384fce2
1 Parent(s): dd675de

Update files from the datasets library (from 1.5.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.5.0

Files changed (1) hide show
  1. math_dataset.py +3 -3
math_dataset.py CHANGED
@@ -232,9 +232,9 @@ class MathDataset(datasets.GeneratorBasedBuilder):
232
  with open(data_file, encoding="utf-8") as f:
233
  ls = f.read().split("\n")
234
 
235
- for l in ls[::-1]:
236
- if not l:
237
- ls.remove(l)
238
 
239
  lines.extend(ls)
240
 
 
232
  with open(data_file, encoding="utf-8") as f:
233
  ls = f.read().split("\n")
234
 
235
+ for line in ls[::-1]:
236
+ if not line:
237
+ ls.remove(line)
238
 
239
  lines.extend(ls)
240