Datasets:
Update e.py
Browse files
e.py
CHANGED
|
@@ -73,4 +73,4 @@ class EDataset(datasets.GeneratorBasedBuilder):
|
|
| 73 |
for archive_iterator in archive_iterators:
|
| 74 |
for code_path, code_f in archive_iterator:
|
| 75 |
if code_path.endswith(".sol.txt") or code_path.endswith(".sol"):
|
| 76 |
-
yield code_path, {"
|
|
|
|
| 73 |
for archive_iterator in archive_iterators:
|
| 74 |
for code_path, code_f in archive_iterator:
|
| 75 |
if code_path.endswith(".sol.txt") or code_path.endswith(".sol"):
|
| 76 |
+
yield code_path, {"train": re.sub("\n\n\n+", "\n\n", code_f.read().decode("utf-8")).strip()}
|