Datasets:

Languages:
English
ArXiv:
Tags:
code
License:
gabeorlanski commited on
Commit
51c8a8b
1 Parent(s): 5cf5163

Update bc-mbpp.py

Browse files
Files changed (1) hide show
  1. bc-mbpp.py +4 -1
bc-mbpp.py CHANGED
@@ -47,7 +47,7 @@ _LICENSE = "CC-BY-4.0"
47
  _VERSION = "1.0.0"
48
 
49
  _KEYS_REMOVE = {
50
- "header","test_list", "test_case_ids",
51
  }
52
 
53
  class BCMBPP(datasets.GeneratorBasedBuilder):
@@ -85,6 +85,7 @@ class BCMBPP(datasets.GeneratorBasedBuilder):
85
  "entry_fn_name": datasets.Value("string"),
86
  "entry_cls_name": datasets.Value("string"),
87
  "test_code": datasets.Value("string"),
 
88
  }
89
  )
90
  description = _DESCRIPTION
@@ -146,6 +147,8 @@ class BCMBPP(datasets.GeneratorBasedBuilder):
146
  idx = int(d['title'].split('/')[-1])
147
  if not (idx_range[0] <= idx <= idx_range[1]):
148
  continue
 
 
149
  for k in _KEYS_REMOVE:
150
  d.pop(k)
151
  yield id_, d
 
47
  _VERSION = "1.0.0"
48
 
49
  _KEYS_REMOVE = {
50
+ "header"
51
  }
52
 
53
  class BCMBPP(datasets.GeneratorBasedBuilder):
 
85
  "entry_fn_name": datasets.Value("string"),
86
  "entry_cls_name": datasets.Value("string"),
87
  "test_code": datasets.Value("string"),
88
+ "solution":datasets.Value("string")
89
  }
90
  )
91
  description = _DESCRIPTION
 
147
  idx = int(d['title'].split('/')[-1])
148
  if not (idx_range[0] <= idx <= idx_range[1]):
149
  continue
150
+
151
+ d['solution'] = d.pop('solution_python')
152
  for k in _KEYS_REMOVE:
153
  d.pop(k)
154
  yield id_, d