Datasets:

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

update load script

Browse files
Files changed (1) hide show
  1. the-vault-function.py +8 -6
the-vault-function.py CHANGED
@@ -95,19 +95,20 @@ class TheVaultFunction(datasets.GeneratorBasedBuilder):
95
  description=_DESCRIPTION,
96
  features=datasets.Features({
97
  # "original_string": datasets.Value("string"),
 
 
 
 
 
 
98
  "original_docstring": datasets.Value("string"),
99
- "code": datasets.Value("string"),
100
  "docstring": datasets.Value("string"),
 
101
  "code_tokens": datasets.Value("string"),
102
  "docstring_tokens": datasets.Value("string"),
103
  "short_docstring": datasets.Value("string"),
104
  "short_docstring_tokens": datasets.Value("string"),
105
  "comment": datasets.Value("string"),
106
- "return_type": datasets.Value("string"),
107
- "identifier": datasets.Value("string"),
108
- "repo": datasets.Value("string"),
109
- "path": datasets.Value("string"),
110
- "language": datasets.Value("string"),
111
  }),
112
  supervised_keys=None,
113
  homepage=_HOMEPAGE,
@@ -168,6 +169,7 @@ class TheVaultFunction(datasets.GeneratorBasedBuilder):
168
  yield key, {
169
  "repo": row['repo'][0],
170
  "path": row['path'][0],
 
171
  "language": row['language'][0],
172
  "identifier": row['identifier'][0],
173
  "return_type": row['return_type'][0],
 
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"),
107
  "code_tokens": datasets.Value("string"),
108
  "docstring_tokens": datasets.Value("string"),
109
  "short_docstring": datasets.Value("string"),
110
  "short_docstring_tokens": datasets.Value("string"),
111
  "comment": datasets.Value("string"),
 
 
 
 
 
112
  }),
113
  supervised_keys=None,
114
  homepage=_HOMEPAGE,
 
169
  yield key, {
170
  "repo": row['repo'][0],
171
  "path": row['path'][0],
172
+ "license": row['license'][0],
173
  "language": row['language'][0],
174
  "identifier": row['identifier'][0],
175
  "return_type": row['return_type'][0],