Datasets:
Tasks:
Text Generation
Modalities:
Text
Sub-tasks:
language-modeling
Languages:
code
Size:
< 1K
License:
update dataset split
Browse files- humaneval-x.py +10 -6
humaneval-x.py
CHANGED
@@ -28,22 +28,26 @@ It consists of 820 high-quality human-crafted data samples (each with test cases
|
|
28 |
_HOMEPAGE = "https://github.com/THUDM/CodeGeeX"
|
29 |
|
30 |
def get_url(name):
|
31 |
-
|
32 |
-
return
|
33 |
|
34 |
def split_generator(dl_manager, name):
|
35 |
downloaded_files = get_url(name)
|
36 |
downloaded_files = dl_manager.download(get_url(name))
|
37 |
return [
|
38 |
-
|
39 |
-
|
40 |
-
|
|
|
|
|
|
|
|
|
41 |
|
42 |
class HumanEvalXConfig(datasets.BuilderConfig):
|
43 |
"""BuilderConfig """
|
44 |
|
45 |
def __init__(self, name, description, features, **kwargs):
|
46 |
-
super(HumanEvalXConfig, self).__init__(version=datasets.Version("
|
47 |
self.name = name
|
48 |
self.description = description
|
49 |
self.features = features
|
|
|
28 |
_HOMEPAGE = "https://github.com/THUDM/CodeGeeX"
|
29 |
|
30 |
def get_url(name):
|
31 |
+
url = f"data/{name}/data/humaneval.jsonl"
|
32 |
+
return url
|
33 |
|
34 |
def split_generator(dl_manager, name):
|
35 |
downloaded_files = get_url(name)
|
36 |
downloaded_files = dl_manager.download(get_url(name))
|
37 |
return [
|
38 |
+
datasets.SplitGenerator(
|
39 |
+
name=datasets.Split.TEST,
|
40 |
+
gen_kwargs={
|
41 |
+
"filepath": downloaded_files,
|
42 |
+
},
|
43 |
+
)
|
44 |
+
]
|
45 |
|
46 |
class HumanEvalXConfig(datasets.BuilderConfig):
|
47 |
"""BuilderConfig """
|
48 |
|
49 |
def __init__(self, name, description, features, **kwargs):
|
50 |
+
super(HumanEvalXConfig, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
|
51 |
self.name = name
|
52 |
self.description = description
|
53 |
self.features = features
|