File size: 6,815 Bytes
899d5aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1f42811
 
 
899d5aa
 
 
c9e63cd
 
 
 
1f42811
 
c9e63cd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
---
dataset_info:
  features:
  - name: hexsha
    dtype: string
  - name: repo
    dtype: string
  - name: path
    dtype: string
  - name: license
    sequence: string
  - name: language
    dtype: string
  - name: identifier
    dtype: string
  - name: return_type
    dtype: string
  - name: original_string
    dtype: string
  - name: original_docstring
    dtype: string
  - name: docstring
    dtype: string
  - name: docstring_tokens
    sequence: string
  - name: code
    dtype: string
  - name: code_tokens
    sequence: string
  - name: short_docstring
    dtype: string
  - name: short_docstring_tokens
    sequence: string
  - name: comment
    sequence: string
  - name: parameters
    list:
    - name: param
      dtype: string
    - name: type
      dtype: string
  - name: docstring_params
    struct:
    - name: returns
      list:
      - name: docstring
        dtype: string
      - name: docstring_tokens
        sequence: string
      - name: type
        dtype: string
    - name: raises
      list:
      - name: docstring
        dtype: string
      - name: docstring_tokens
        sequence: string
      - name: type
        dtype: string
    - name: params
      list:
      - name: identifier
        dtype: string
      - name: type
        dtype: string
      - name: docstring
        dtype: string
      - name: docstring_tokens
        sequence: string
      - name: default
        dtype: string
      - name: is_optional
        dtype: bool
    - name: outlier_params
      list:
      - name: identifier
        dtype: string
      - name: type
        dtype: string
      - name: docstring
        dtype: string
      - name: docstring_tokens
        sequence: string
      - name: default
        dtype: string
      - name: is_optional
        dtype: bool
    - name: others
      list:
      - name: identifier
        dtype: string
      - name: docstring
        dtype: string
      - name: docstring_tokens
        sequence: string
  - name: code_with_imports
    dtype: string
  - name: idxs
    dtype: int64
  - name: cluster
    dtype: int64
  splits:
  - name: train
    num_bytes: 1555988881.6663418
    num_examples: 544627
  download_size: 773215769
  dataset_size: 1555988881.6663418
license: mit
task_categories:
- text-generation
---
# Dataset Card for "thevault-filtered"

Filtered version of [The Vault (function)](https://huggingface.co/datasets/Fsoft-AIC/the-vault-function). Restricted only to Python, then:
- Light AST filtering for self-contained functions
- Run through CodeBERT embeddings, clustered with k-means to 1024 clusters, and then the clusters were manually skimmed for seemingly uninformative functions.

The clusters excluded and their reasons are as follows:
```
  excluded = [
    4, # biochem stuff? DEcompiled code
    9, # Empty functions
    33, # Empty functions
    34, # UI stuff, just returns arguments
    37, # Empty functions
    40, # Empty functions
    42, # Empty functions
    44, # _namespace_SIO stuff
    55, # Trivial, e.g. add(a, b) = a + b
    66, # find_by class methods
    67, # Mostly methods, seems not very informative
    77, # openapi_types, returns a fixed dictionary
    78, # Minimal, method stuff
    83, # Locale configuration
    87, # Just returns argument
    101, # Incomplete
    102, # Class methods
    108, # openapi_types
    156, # Empty functions
    164, # Trivial, function aliases
    168, # Class methods
    172, # Empty functions
    173, # Class methods
    175, # Class methods
    181, # Empty functions
    182, # Fixed API stuff
    190, # Fixed specific stuff
    197, # from_dictionary class methods
    198, # Empty functions
    234, # Unimplemented
    246, # Fixed specific stuff
    277, # Empty functions
    280, # Empty functions
    282, # Empty functions
    287, # Trivial, e.g. helloWorld()
    299, # Mostly unfinished
    304, # Empty functions
    310, # Fixed API stuff
    313, # Just modifies globals
    320, # Empty functions
    329, # Takes a credentials object, and runs methods on it
    332, # MangoPi bot
    334, # Empty
    338, # namespace_SIO nonsense
    339, # fn(x) = x
    363, # Empty functions
    370, # Empty
    379, # Empty
    388, # Empty
    392, # Empty functions
    393, # Fixed lists
    409, # Fixed dictionaries
    416, # Aliases to print
    428, # Empty functions
    437, # Empty functions
    444, # Empty
    454, # Mostly just calls methods on arguments
    463, # Mostly just calls methods on arguments
    470, # Fixed dictionaries
    474, # Mostly fixed printing
    465, # OpenAPI fixed dictionaries
    476, # Empty
    477, # Fixed dictionaries
    491, # Trivial
    494, # Lots of fixed string stuff
    496, # Empty
    511, # Empty
    518, # OpenAPI
    521, # Fixed API stuff
    536, # Empty
    540, # Fixed API stuff
    553, # Empty
    555, # Empty
    564, # Empty
    566, # Empty
    568, # cls methods
    573, # Mostly fixed dict stuff
    574, # namespace_SO stuff, more biochem?
    582, # namespace_SO stuff, more biochem?
    602, # Fixed lists
    608, # Mostly cls methods
    617, # Mostly cls methods
    629, # cls methods, fixed lists
    641, # Fixed API stuff
    642, # Empty
    647, # Windows API stuff
    648, # jupyter stuff
    649, # mostly fixed dicts
    652, # Empty
    660, # Empty
    665, # cls methods
    666, # Empty
    672, # Empty
    680, # fixed dicts
    682, # Empty
    686, # Empty
    687, # Fixed lists elements_sequence
    692, # cls methods
    693, # ASCII art
    704, # Empty
    709, # mqtt send message
    712, # Empty
    715, # Fixed data recoding
    717, # Empty
    722, # cls methods
    725, # cls methods
    734, # cls methods
    737, # Empty
    741, # Trivial cls methods
    742, # Empty
    745, # Fixed strings
    752, # Empty
    758, # Mostly fixed printing
    768, # Empty
    783, # Empty
    784, # Mostly fixed dicts
    802, # Fixed printing
    806, # Empty
    821, # Empty
    824, # stuff like load_performance_win_x64_win_x64_vs2017_settings
    825, # Trivial
    835, # Empty
    851, # Empty
    862, # Empty
    876, # Trivial
    878, # Empty
    887, # Empty
    888, # Mostly fixed dicts
    890, # Mostly fixed dicts
    893, # Empty
    898, # cls methods
    899, # Fixed ['str'] stuff
    906, # Auto-generated or something
    912, # Empty
    924, # Empty
    933, # namespace_SO biochem stuff
    938, # Trivial
    959, # Mostly fixed printing
    963, # API-specific
    965, # cls methods
    967, # cls methods
    970, # Mostly fixed printing
    971, # cls methods
    972, # cls methods
    973, # Empty
    979, # cls methods
    982, # Empty
    983, # Empty
    989, # cls methods
    990, # API specific
    1007, # API specific
    1014, # Empty
]
```

MIT licensed, like the original dataset