Datasets:

ArXiv:
License:
NamCyan commited on
Commit
aa36ffa
1 Parent(s): 21d0652

update load script

Browse files
Files changed (1) hide show
  1. the-vault-function.py +2 -8
the-vault-function.py CHANGED
@@ -94,13 +94,13 @@ class TheVaultFunction(datasets.GeneratorBasedBuilder):
94
  return datasets.DatasetInfo(
95
  description=_DESCRIPTION,
96
  features=datasets.Features({
97
- # "original_string": datasets.Value("string"),
98
  "repo": datasets.Value("string"),
99
  "path": datasets.Value("string"),
100
  "license": datasets.Value("string"),
101
  "language": datasets.Value("string"),
102
  "identifier": datasets.Value("string"),
103
  "return_type": datasets.Value("string"),
 
104
  "original_docstring": datasets.Value("string"),
105
  "docstring": datasets.Value("string"),
106
  "code": datasets.Value("string"),
@@ -183,10 +183,4 @@ class TheVaultFunction(datasets.GeneratorBasedBuilder):
183
  "short_docstring_tokens": row['short_docstring_tokens'][0],
184
  "comment": row['comment'][0]
185
  }
186
- key += 1
187
-
188
-
189
- # def lang_from_name(name):
190
- # for extension in _EXTENSION_TO_LANG:
191
- # if name.endswith(extension):
192
- # return _EXTENSION_TO_LANG[extension]
 
94
  return datasets.DatasetInfo(
95
  description=_DESCRIPTION,
96
  features=datasets.Features({
 
97
  "repo": datasets.Value("string"),
98
  "path": datasets.Value("string"),
99
  "license": datasets.Value("string"),
100
  "language": datasets.Value("string"),
101
  "identifier": datasets.Value("string"),
102
  "return_type": datasets.Value("string"),
103
+ # "original_string": datasets.Value("string"),
104
  "original_docstring": datasets.Value("string"),
105
  "docstring": datasets.Value("string"),
106
  "code": datasets.Value("string"),
 
183
  "short_docstring_tokens": row['short_docstring_tokens'][0],
184
  "comment": row['comment'][0]
185
  }
186
+ key += 1