Datasets:
wroks?
Browse files- repobench-p.py +5 -2
repobench-p.py
CHANGED
|
@@ -18,7 +18,6 @@ import gzip
|
|
| 18 |
import pickle
|
| 19 |
import textwrap
|
| 20 |
import datasets
|
| 21 |
-
from typing import Dict
|
| 22 |
|
| 23 |
_CITATION = """\
|
| 24 |
@misc{liu2023repobench,
|
|
@@ -76,7 +75,11 @@ class RepoBenchP(datasets.GeneratorBasedBuilder):
|
|
| 76 |
{
|
| 77 |
"repo_name": datasets.Value("string"),
|
| 78 |
"file_path": datasets.Value("string"),
|
| 79 |
-
"context":
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
"import_statement": datasets.Value("string"),
|
| 81 |
"code": datasets.Value("string"),
|
| 82 |
"next_line": datasets.Value("string"),
|
|
|
|
| 18 |
import pickle
|
| 19 |
import textwrap
|
| 20 |
import datasets
|
|
|
|
| 21 |
|
| 22 |
_CITATION = """\
|
| 23 |
@misc{liu2023repobench,
|
|
|
|
| 75 |
{
|
| 76 |
"repo_name": datasets.Value("string"),
|
| 77 |
"file_path": datasets.Value("string"),
|
| 78 |
+
"context": [{
|
| 79 |
+
"path": datasets.Value("string"),
|
| 80 |
+
"identifier": datasets.Value("string"),
|
| 81 |
+
"snippet": datasets.Value("string")
|
| 82 |
+
}],
|
| 83 |
"import_statement": datasets.Value("string"),
|
| 84 |
"code": datasets.Value("string"),
|
| 85 |
"next_line": datasets.Value("string"),
|