Datasets:

Modalities:
Text
Languages:
code
Size:
< 1K
Libraries:
Datasets
License:
loubnabnl HF staff commited on
Commit
bb9db15
1 Parent(s): b1e3d2c

update dataset split

Browse files
Files changed (1) hide show
  1. 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
- urls = {"test": f"data/{name}/data/humaneval.jsonl"}
32
- return urls
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(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}),
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("2.1.0", ""), **kwargs)
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