Update dataset/dataset.py
Browse files- dataset/dataset.py +1 -4
dataset/dataset.py
CHANGED
|
@@ -35,10 +35,7 @@ class BugLocalization(datasets.GeneratorBasedBuilder):
|
|
| 35 |
"""Infer schema from a sample of JSONL data."""
|
| 36 |
schema = {}
|
| 37 |
with open(sample_file, encoding="utf-8") as f:
|
| 38 |
-
for
|
| 39 |
-
line = f.readline()
|
| 40 |
-
if not line:
|
| 41 |
-
break
|
| 42 |
data = json.loads(line)
|
| 43 |
for key, value in data.items():
|
| 44 |
if key not in schema:
|
|
|
|
| 35 |
"""Infer schema from a sample of JSONL data."""
|
| 36 |
schema = {}
|
| 37 |
with open(sample_file, encoding="utf-8") as f:
|
| 38 |
+
for line in f:
|
|
|
|
|
|
|
|
|
|
| 39 |
data = json.loads(line)
|
| 40 |
for key, value in data.items():
|
| 41 |
if key not in schema:
|