fals3 commited on
Commit
f1f339d
·
verified ·
1 Parent(s): 2a382ef

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +0 -4
  2. .gitignore +131 -0
  3. README.md +461 -0
  4. data/fm+fc+c+m+f+t+tc/test-00000-of-00001.parquet +3 -0
  5. data/fm+fc+c+m+f+t+tc/train-00000-of-00003.parquet +3 -0
  6. data/fm+fc+c+m+f+t+tc/train-00001-of-00003.parquet +3 -0
  7. data/fm+fc+c+m+f+t+tc/train-00002-of-00003.parquet +3 -0
  8. data/fm+fc+c+m+f+t+tc/validation-00000-of-00001.parquet +3 -0
  9. data/fm+fc+c+m+f/test-00000-of-00001.parquet +3 -0
  10. data/fm+fc+c+m+f/train-00000-of-00003.parquet +3 -0
  11. data/fm+fc+c+m+f/train-00001-of-00003.parquet +3 -0
  12. data/fm+fc+c+m+f/train-00002-of-00003.parquet +3 -0
  13. data/fm+fc+c+m+f/validation-00000-of-00001.parquet +3 -0
  14. data/fm+fc+c+m+t+tc/test-00000-of-00001.parquet +3 -0
  15. data/fm+fc+c+m+t+tc/train-00000-of-00003.parquet +3 -0
  16. data/fm+fc+c+m+t+tc/train-00001-of-00003.parquet +3 -0
  17. data/fm+fc+c+m+t+tc/train-00002-of-00003.parquet +3 -0
  18. data/fm+fc+c+m+t+tc/validation-00000-of-00001.parquet +3 -0
  19. data/fm+fc+c+m/test-00000-of-00001.parquet +3 -0
  20. data/fm+fc+c+m/train-00000-of-00003.parquet +3 -0
  21. data/fm+fc+c+m/train-00001-of-00003.parquet +3 -0
  22. data/fm+fc+c+m/train-00002-of-00003.parquet +3 -0
  23. data/fm+fc+c+m/validation-00000-of-00001.parquet +3 -0
  24. data/fm+fc+c+t+tc/test-00000-of-00001.parquet +3 -0
  25. data/fm+fc+c+t+tc/train-00000-of-00003.parquet +3 -0
  26. data/fm+fc+c+t+tc/train-00001-of-00003.parquet +3 -0
  27. data/fm+fc+c+t+tc/train-00002-of-00003.parquet +3 -0
  28. data/fm+fc+c+t+tc/validation-00000-of-00001.parquet +3 -0
  29. data/fm+fc+c/test-00000-of-00001.parquet +3 -0
  30. data/fm+fc+c/train-00000-of-00003.parquet +3 -0
  31. data/fm+fc+c/train-00001-of-00003.parquet +3 -0
  32. data/fm+fc+c/train-00002-of-00003.parquet +3 -0
  33. data/fm+fc+c/validation-00000-of-00001.parquet +3 -0
  34. data/fm+fc+t+tc/test-00000-of-00001.parquet +3 -0
  35. data/fm+fc+t+tc/train-00000-of-00003.parquet +3 -0
  36. data/fm+fc+t+tc/train-00001-of-00003.parquet +3 -0
  37. data/fm+fc+t+tc/train-00002-of-00003.parquet +3 -0
  38. data/fm+fc+t+tc/validation-00000-of-00001.parquet +3 -0
  39. data/fm+fc/test-00000-of-00001.parquet +3 -0
  40. data/fm+fc/train-00000-of-00003.parquet +3 -0
  41. data/fm+fc/train-00001-of-00003.parquet +3 -0
  42. data/fm+fc/train-00002-of-00003.parquet +3 -0
  43. data/fm+fc/validation-00000-of-00001.parquet +3 -0
  44. data/fm+t/test-00000-of-00001.parquet +3 -0
  45. data/fm+t/train-00000-of-00003.parquet +3 -0
  46. data/fm+t/train-00001-of-00003.parquet +3 -0
  47. data/fm+t/train-00002-of-00003.parquet +3 -0
  48. data/fm+t/validation-00000-of-00001.parquet +3 -0
  49. data/fm/test-00000-of-00001.parquet +3 -0
  50. data/fm/train-00000-of-00003.parquet +3 -0
.gitattributes CHANGED
@@ -9,7 +9,6 @@
9
  *.joblib filter=lfs diff=lfs merge=lfs -text
10
  *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
  *.lz4 filter=lfs diff=lfs merge=lfs -text
12
- *.mds filter=lfs diff=lfs merge=lfs -text
13
  *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
  *.model filter=lfs diff=lfs merge=lfs -text
15
  *.msgpack filter=lfs diff=lfs merge=lfs -text
@@ -54,6 +53,3 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
54
  *.jpg filter=lfs diff=lfs merge=lfs -text
55
  *.jpeg filter=lfs diff=lfs merge=lfs -text
56
  *.webp filter=lfs diff=lfs merge=lfs -text
57
- # Video files - compressed
58
- *.mp4 filter=lfs diff=lfs merge=lfs -text
59
- *.webm filter=lfs diff=lfs merge=lfs -text
 
9
  *.joblib filter=lfs diff=lfs merge=lfs -text
10
  *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
  *.lz4 filter=lfs diff=lfs merge=lfs -text
 
12
  *.mlmodel filter=lfs diff=lfs merge=lfs -text
13
  *.model filter=lfs diff=lfs merge=lfs -text
14
  *.msgpack filter=lfs diff=lfs merge=lfs -text
 
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
 
 
 
.gitignore ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .DS_Store
2
+
3
+ # Byte-compiled / optimized / DLL files
4
+ __pycache__/
5
+ *.py[cod]
6
+ *$py.class
7
+
8
+ # C extensions
9
+ *.so
10
+
11
+ # Distribution / packaging
12
+ .Python
13
+ build/
14
+ develop-eggs/
15
+ dist/
16
+ downloads/
17
+ eggs/
18
+ .eggs/
19
+ lib/
20
+ lib64/
21
+ parts/
22
+ sdist/
23
+ var/
24
+ wheels/
25
+ pip-wheel-metadata/
26
+ share/python-wheels/
27
+ *.egg-info/
28
+ .installed.cfg
29
+ *.egg
30
+ MANIFEST
31
+
32
+ # PyInstaller
33
+ # Usually these files are written by a python script from a template
34
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
35
+ *.manifest
36
+ *.spec
37
+
38
+ # Installer logs
39
+ pip-log.txt
40
+ pip-delete-this-directory.txt
41
+
42
+ # Unit test / coverage reports
43
+ htmlcov/
44
+ .tox/
45
+ .nox/
46
+ .coverage
47
+ .coverage.*
48
+ .cache
49
+ nosetests.xml
50
+ coverage.xml
51
+ *.cover
52
+ *.py,cover
53
+ .hypothesis/
54
+ .pytest_cache/
55
+
56
+ # Translations
57
+ *.mo
58
+ *.pot
59
+
60
+ # Django stuff:
61
+ *.log
62
+ local_settings.py
63
+ db.sqlite3
64
+ db.sqlite3-journal
65
+
66
+ # Flask stuff:
67
+ instance/
68
+ .webassets-cache
69
+
70
+ # Scrapy stuff:
71
+ .scrapy
72
+
73
+ # Sphinx documentation
74
+ docs/_build/
75
+
76
+ # PyBuilder
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ .python-version
88
+
89
+ # pipenv
90
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
91
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
92
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
93
+ # install all needed dependencies.
94
+ #Pipfile.lock
95
+
96
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
97
+ __pypackages__/
98
+
99
+ # Celery stuff
100
+ celerybeat-schedule
101
+ celerybeat.pid
102
+
103
+ # SageMath parsed files
104
+ *.sage.py
105
+
106
+ # Environments
107
+ .env
108
+ .venv
109
+ env/
110
+ venv/
111
+ ENV/
112
+ env.bak/
113
+ venv.bak/
114
+
115
+ # Spyder project settings
116
+ .spyderproject
117
+ .spyproject
118
+
119
+ # Rope project settings
120
+ .ropeproject
121
+
122
+ # mkdocs documentation
123
+ /site
124
+
125
+ # mypy
126
+ .mypy_cache/
127
+ .dmypy.json
128
+ dmypy.json
129
+
130
+ # Pyre type checker
131
+ .pyre/
README.md ADDED
@@ -0,0 +1,461 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: mit
5
+ task_categories:
6
+ - text-generation
7
+ configs:
8
+ - config_name: fm
9
+ data_files:
10
+ - split: train
11
+ path: data/fm/train-*
12
+ - split: test
13
+ path: data/fm/test-*
14
+ - split: validation
15
+ path: data/fm/validation-*
16
+ - config_name: fm_indented
17
+ data_files:
18
+ - split: train
19
+ path: data/fm_indented/train-*
20
+ - split: test
21
+ path: data/fm_indented/test-*
22
+ - split: validation
23
+ path: data/fm_indented/validation-*
24
+ - config_name: fm+t
25
+ data_files:
26
+ - split: train
27
+ path: data/fm+t/train-*
28
+ - split: test
29
+ path: data/fm+t/test-*
30
+ - split: validation
31
+ path: data/fm+t/validation-*
32
+ - config_name: fm+fc
33
+ data_files:
34
+ - split: train
35
+ path: data/fm+fc/train-*
36
+ - split: test
37
+ path: data/fm+fc/test-*
38
+ - split: validation
39
+ path: data/fm+fc/validation-*
40
+ - config_name: fm+fc+t+tc
41
+ data_files:
42
+ - split: train
43
+ path: data/fm+fc+t+tc/train-*
44
+ - split: test
45
+ path: data/fm+fc+t+tc/test-*
46
+ - split: validation
47
+ path: data/fm+fc+t+tc/validation-*
48
+ - config_name: fm+fc+c
49
+ data_files:
50
+ - split: train
51
+ path: data/fm+fc+c/train-*
52
+ - split: test
53
+ path: data/fm+fc+c/test-*
54
+ - split: validation
55
+ path: data/fm+fc+c/validation-*
56
+ - config_name: fm+fc+c+t+tc
57
+ data_files:
58
+ - split: train
59
+ path: data/fm+fc+c+t+tc/train-*
60
+ - split: test
61
+ path: data/fm+fc+c+t+tc/test-*
62
+ - split: validation
63
+ path: data/fm+fc+c+t+tc/validation-*
64
+ - config_name: fm+fc+c+m
65
+ data_files:
66
+ - split: train
67
+ path: data/fm+fc+c+m/train-*
68
+ - split: test
69
+ path: data/fm+fc+c+m/test-*
70
+ - split: validation
71
+ path: data/fm+fc+c+m/validation-*
72
+ - config_name: fm+fc+c+m+t+tc
73
+ data_files:
74
+ - split: train
75
+ path: data/fm+fc+c+m+t+tc/train-*
76
+ - split: test
77
+ path: data/fm+fc+c+m+t+tc/test-*
78
+ - split: validation
79
+ path: data/fm+fc+c+m+t+tc/validation-*
80
+ - config_name: fm+fc+c+m+f
81
+ data_files:
82
+ - split: train
83
+ path: data/fm+fc+c+m+f/train-*
84
+ - split: test
85
+ path: data/fm+fc+c+m+f/test-*
86
+ - split: validation
87
+ path: data/fm+fc+c+m+f/validation-*
88
+ - config_name: fm+fc+c+m+f+t+tc
89
+ data_files:
90
+ - split: train
91
+ path: data/fm+fc+c+m+f+t+tc/train-*
92
+ - split: test
93
+ path: data/fm+fc+c+m+f+t+tc/test-*
94
+ - split: validation
95
+ path: data/fm+fc+c+m+f+t+tc/validation-*
96
+ - config_name: t
97
+ data_files:
98
+ - split: train
99
+ path: data/t/train-*
100
+ - split: test
101
+ path: data/t/test-*
102
+ - split: validation
103
+ path: data/t/validation-*
104
+ - config_name: t_indented
105
+ data_files:
106
+ - split: train
107
+ path: data/t_indented/train-*
108
+ - split: test
109
+ path: data/t_indented/test-*
110
+ - split: validation
111
+ path: data/t_indented/validation-*
112
+ - config_name: t+tc
113
+ data_files:
114
+ - split: train
115
+ path: data/t+tc/train-*
116
+ - split: test
117
+ path: data/t+tc/test-*
118
+ - split: validation
119
+ path: data/t+tc/validation-*
120
+ dataset_info:
121
+ - config_name: fm
122
+ features:
123
+ - name: id
124
+ dtype: string
125
+ - name: text
126
+ dtype: string
127
+ splits:
128
+ - name: train
129
+ num_bytes: 440444124
130
+ num_examples: 624022
131
+ - name: test
132
+ num_bytes: 59407291
133
+ num_examples: 78388
134
+ - name: validation
135
+ num_bytes: 57170315
136
+ num_examples: 78534
137
+ download_size: 99172217
138
+ dataset_size: 557021730
139
+ - config_name: fm+fc
140
+ features:
141
+ - name: id
142
+ dtype: string
143
+ - name: text
144
+ dtype: string
145
+ splits:
146
+ - name: train
147
+ num_bytes: 506130678
148
+ num_examples: 624022
149
+ - name: test
150
+ num_bytes: 68407490
151
+ num_examples: 78388
152
+ - name: validation
153
+ num_bytes: 65318956
154
+ num_examples: 78534
155
+ download_size: 109141139
156
+ dataset_size: 639857124
157
+ - config_name: fm+fc+c
158
+ features:
159
+ - name: id
160
+ dtype: string
161
+ - name: text
162
+ dtype: string
163
+ splits:
164
+ - name: train
165
+ num_bytes: 569209100
166
+ num_examples: 624022
167
+ - name: test
168
+ num_bytes: 75552573
169
+ num_examples: 78388
170
+ - name: validation
171
+ num_bytes: 73101169
172
+ num_examples: 78534
173
+ download_size: 117996353
174
+ dataset_size: 717862842
175
+ - config_name: fm+fc+c+m
176
+ features:
177
+ - name: id
178
+ dtype: string
179
+ - name: text
180
+ dtype: string
181
+ splits:
182
+ - name: train
183
+ num_bytes: 1354004338
184
+ num_examples: 624022
185
+ - name: test
186
+ num_bytes: 187724929
187
+ num_examples: 78388
188
+ - name: validation
189
+ num_bytes: 184349299
190
+ num_examples: 78534
191
+ download_size: 222922572
192
+ dataset_size: 1726078566
193
+ - config_name: fm+fc+c+m+f
194
+ features:
195
+ - name: id
196
+ dtype: string
197
+ - name: text
198
+ dtype: string
199
+ splits:
200
+ - name: train
201
+ num_bytes: 1476073209
202
+ num_examples: 624022
203
+ - name: test
204
+ num_bytes: 201686811
205
+ num_examples: 78388
206
+ - name: validation
207
+ num_bytes: 201259950
208
+ num_examples: 78534
209
+ download_size: 240405885
210
+ dataset_size: 1879019970
211
+ - config_name: fm+fc+c+m+f+t+tc
212
+ features:
213
+ - name: id
214
+ dtype: string
215
+ - name: source
216
+ dtype: string
217
+ - name: target
218
+ dtype: string
219
+ splits:
220
+ - name: train
221
+ num_bytes: 2019918359
222
+ num_examples: 624022
223
+ - name: test
224
+ num_bytes: 269021331
225
+ num_examples: 78388
226
+ - name: validation
227
+ num_bytes: 272958781
228
+ num_examples: 78534
229
+ download_size: 371500476
230
+ dataset_size: 2561898471
231
+ - config_name: fm+fc+c+m+t+tc
232
+ features:
233
+ - name: id
234
+ dtype: string
235
+ - name: source
236
+ dtype: string
237
+ - name: target
238
+ dtype: string
239
+ splits:
240
+ - name: train
241
+ num_bytes: 1897682665
242
+ num_examples: 624022
243
+ - name: test
244
+ num_bytes: 255053799
245
+ num_examples: 78388
246
+ - name: validation
247
+ num_bytes: 256030595
248
+ num_examples: 78534
249
+ download_size: 360175965
250
+ dataset_size: 2408767059
251
+ - config_name: fm+fc+c+t+tc
252
+ features:
253
+ - name: id
254
+ dtype: string
255
+ - name: source
256
+ dtype: string
257
+ - name: target
258
+ dtype: string
259
+ splits:
260
+ - name: train
261
+ num_bytes: 1109827485
262
+ num_examples: 624022
263
+ - name: test
264
+ num_bytes: 142558255
265
+ num_examples: 78388
266
+ - name: validation
267
+ num_bytes: 144523616
268
+ num_examples: 78534
269
+ download_size: 251861137
270
+ dataset_size: 1396909356
271
+ - config_name: fm+fc+t+tc
272
+ features:
273
+ - name: id
274
+ dtype: string
275
+ - name: source
276
+ dtype: string
277
+ - name: target
278
+ dtype: string
279
+ splits:
280
+ - name: train
281
+ num_bytes: 1046592848
282
+ num_examples: 624022
283
+ - name: test
284
+ num_bytes: 135403379
285
+ num_examples: 78388
286
+ - name: validation
287
+ num_bytes: 136729952
288
+ num_examples: 78534
289
+ download_size: 243052074
290
+ dataset_size: 1318726179
291
+ - config_name: fm+t
292
+ features:
293
+ - name: id
294
+ dtype: string
295
+ - name: source
296
+ dtype: string
297
+ - name: target
298
+ dtype: string
299
+ splits:
300
+ - name: train
301
+ num_bytes: 868034154
302
+ num_examples: 624022
303
+ - name: test
304
+ num_bytes: 114371187
305
+ num_examples: 78388
306
+ - name: validation
307
+ num_bytes: 112688219
308
+ num_examples: 78534
309
+ download_size: 217267853
310
+ dataset_size: 1095093560
311
+ - config_name: fm_indented
312
+ features:
313
+ - name: id
314
+ dtype: string
315
+ - name: text
316
+ dtype: string
317
+ splits:
318
+ - name: train
319
+ num_bytes: 473170158
320
+ num_examples: 624022
321
+ - name: test
322
+ num_bytes: 64280367
323
+ num_examples: 78388
324
+ - name: validation
325
+ num_bytes: 61093848
326
+ num_examples: 78534
327
+ download_size: 103174190
328
+ dataset_size: 598544373
329
+ - config_name: t
330
+ features:
331
+ - name: id
332
+ dtype: string
333
+ - name: source
334
+ dtype: string
335
+ - name: target
336
+ dtype: string
337
+ splits:
338
+ - name: train
339
+ num_bytes: 380207303
340
+ num_examples: 624022
341
+ - name: test
342
+ num_bytes: 47993188
343
+ num_examples: 78388
344
+ - name: validation
345
+ num_bytes: 49808813
346
+ num_examples: 78534
347
+ download_size: 113820250
348
+ dataset_size: 478009304
349
+ - config_name: t+tc
350
+ features:
351
+ - name: id
352
+ dtype: string
353
+ - name: source
354
+ dtype: string
355
+ - name: target
356
+ dtype: string
357
+ splits:
358
+ - name: train
359
+ num_bytes: 550955294
360
+ num_examples: 624022
361
+ - name: test
362
+ num_bytes: 68323462
363
+ num_examples: 78388
364
+ - name: validation
365
+ num_bytes: 72740770
366
+ num_examples: 78534
367
+ download_size: 136767271
368
+ dataset_size: 692019526
369
+ - config_name: t_indented
370
+ features:
371
+ - name: id
372
+ dtype: string
373
+ - name: source
374
+ dtype: string
375
+ - name: target
376
+ dtype: string
377
+ splits:
378
+ - name: train
379
+ num_bytes: 405853738
380
+ num_examples: 624022
381
+ - name: test
382
+ num_bytes: 51457514
383
+ num_examples: 78388
384
+ - name: validation
385
+ num_bytes: 52970428
386
+ num_examples: 78534
387
+ download_size: 117732776
388
+ dataset_size: 510281680
389
+ tags:
390
+ - unit test
391
+ - java
392
+ - code
393
+ ---
394
+
395
+ ## Dataset Description
396
+ Microsoft created the methods2test dataset, consisting of Java Junit test cases with its corresponding focal methods.
397
+ It contains 780k pairs of JUnit test cases and focal methods which were extracted from a total of 91K
398
+ Java open source project hosted on GitHub.
399
+
400
+ This is an assembled version of the methods2test dataset. It provides convenient access to the different context levels based on the raw source code (e.g. newlines are preserved). The test cases and associated classes are also made available.
401
+
402
+ The mapping between test case and focal methods are based heuristics rules and Java developer's best practice.
403
+
404
+ More information could be found here:
405
+ - [methods2test Github repo](https://github.com/microsoft/methods2test)
406
+ - [Methods2Test: A dataset of focal methods mapped to test cases](https://arxiv.org/pdf/2203.12776.pdf)
407
+
408
+ ## Dataset Schema
409
+ ```
410
+ t: <TEST_CASE>
411
+ t_tc: <TEST_CASE> <TEST_CLASS_NAME>
412
+ fm: <FOCAL_METHOD>
413
+ fm_fc: <FOCAL_CLASS_NAME> <FOCAL_METHOD>
414
+ fm_fc_c: <FOCAL_CLASS_NAME> <FOCAL_METHOD> <CONTRSUCTORS>
415
+ fm_fc_c_m: <FOCAL_CLASS_NAME> <FOCAL_METHOD> <CONTRSUCTORS> <METHOD_SIGNATURES>
416
+ fm_fc_c_m_f: <FOCAL_CLASS_NAME> <FOCAL_METHOD> <CONTRSUCTORS> <METHOD_SIGNATURES> <FIELDS>
417
+ ```
418
+
419
+ ## Focal Context
420
+ - fm: this representation incorporates exclusively the source
421
+ code of the focal method. Intuitively, this contains the most
422
+ important information for generating accurate test cases for
423
+ the given method.
424
+ - fm+fc: this representations adds the focal class name, which
425
+ can provide meaningful semantic information to the model.
426
+ - fm+fc+c: this representation adds the signatures of the constructor methods of the focal class. The idea behind this
427
+ augmentation is that the test case may require instantiating
428
+ an object of the focal class in order to properly test the focal
429
+ method.
430
+ - fm+fc+c+m: this representation adds the signatures of the
431
+ other public methods in the focal class. The rationale which
432
+ motivated this inclusion is that the test case may need to
433
+ invoke other auxiliary methods within the class (e.g., getters,
434
+ setters) to set up or tear down the testing environment.
435
+ - fm+fc+c+m+f : this representation adds the public fields of
436
+ the focal class. The motivation is that test cases may need to
437
+ inspect the status of the public fields to properly test a focal
438
+ method.
439
+
440
+ ![image/png](https://huggingface.co/datasets/fals3/methods2test/resolve/main/figure-1-focal-context.png)
441
+
442
+ The different levels of focal contexts are the following:
443
+ ```
444
+ T: test case
445
+ T_TC: test case + test class name
446
+ FM: focal method
447
+ FM_FC: focal method + focal class name
448
+ FM_FC_C: focal method + focal class name + constructor signatures
449
+ FM_FC_C_M: focal method + focal class name + constructor signatures + public method signatures
450
+ FM_FC_C_M_F: focal method + focal class name + constructor signatures + public method signatures + public fields
451
+ ```
452
+
453
+ ## Limitations
454
+ The original authors validate the heuristics by inspecting a
455
+ statistically significant sample (confidence level of 95% within 10%
456
+ margin of error) of 97 samples from the training set. Two authors
457
+ independently evaluated the sample, then met to discuss the disagreements. We found that 90.72% of the samples have a correct
458
+ link between the test case and the corresponding focal method
459
+
460
+ ## Contribution
461
+ All thanks to the original authors.
data/fm+fc+c+m+f+t+tc/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee0ee9e4116d30069770882eb000fa16ea6241a6a7c11d31520bed59b75e20b3
3
+ size 39201754
data/fm+fc+c+m+f+t+tc/train-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27306a09978af2ac743b36895b5758be6fe293dddfe1e00757406c3e9e61e088
3
+ size 111221962
data/fm+fc+c+m+f+t+tc/train-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fcbdb0f38f45b244f37c622f7839c5d64fc9ddcfb3d90b16cc50a59bb4fbdc99
3
+ size 117369887
data/fm+fc+c+m+f+t+tc/train-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dab9446ba145ec5ac595735ba8bdde24852bffd245fc9c4375e2d54ee90efcbf
3
+ size 64065976
data/fm+fc+c+m+f+t+tc/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e337207c59097c2c023ab1f017902b3b9f5e543d3ddfc556862b6546e0d668a
3
+ size 39640897
data/fm+fc+c+m+f/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0166ec9541751ba1d94b2329e86aed45db607de4fbf38d404b70e64c94bd0e2
3
+ size 26087969
data/fm+fc+c+m+f/train-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36a280f86c86085de0dc9110e9c51685ed2e38aa3686558f4d5a0f5aac14b9e0
3
+ size 70042918
data/fm+fc+c+m+f/train-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e59adbd1f394ae09410f147220d50ba71e4e33a2e9c4792bbc457c0ab4c9a34
3
+ size 76344027
data/fm+fc+c+m+f/train-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:752749449422cac963d3caf8286967145a182f584e85360a56af75060bca98ae
3
+ size 42140297
data/fm+fc+c+m+f/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6a4747aec967197555b6da5e18d8e1513ad3c076ace1acbe2cd26895a04dc24
3
+ size 25790674
data/fm+fc+c+m+t+tc/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb7d63a6f56456b6d10b898fc7a2869aa385725090819e24e3d64ca99182cb3b
3
+ size 38126354
data/fm+fc+c+m+t+tc/train-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:060a216d7de3bf5f25f2ef74305de673df467e846e26f56ddb43f9857dbf442a
3
+ size 108470283
data/fm+fc+c+m+t+tc/train-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeed2d345330cb8bb8aa2e9dbf4b3de71b5247e8dddb5606c68375025fdc2af4
3
+ size 113613870
data/fm+fc+c+m+t+tc/train-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de72a52e7306fda88245f67318486719e54276092b05cba774fd4bb5b3661899
3
+ size 61606242
data/fm+fc+c+m+t+tc/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e06bd976b8efbdf58c7eeb95f2e62c8b790a8d0cb1a1ad1543f0df62eccd5da
3
+ size 38359216
data/fm+fc+c+m/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb778984cb1426f9b407b8c85753596ddf1e1c4a53ffbe21ac508fb767d2bab5
3
+ size 24349190
data/fm+fc+c+m/train-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8dae3b3693e544a3fd52e8170f706897582ee6ec60dbb6e29b1a3c405c91ca17
3
+ size 65628950
data/fm+fc+c+m/train-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dda3e4152de240ec76d20d0b43e4d830b8c07140fdc8ef01d95502a4495d8b19
3
+ size 70746454
data/fm+fc+c+m/train-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82ed9a24c733b49b3d61c9f70153686e5510dfe947f5d210f076d84837255c3a
3
+ size 38303354
data/fm+fc+c+m/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6addce24ab091af51f9d88b7b589a87322b78cb4691128f49eabfca49a20f970
3
+ size 23894624
data/fm+fc+c+t+tc/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf97d9622a751e7946881d788d288b3f2e722574e84d1dd9c884af36973fcdcd
3
+ size 25725806
data/fm+fc+c+t+tc/train-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a9a3b38ebf074eab02c73dd75a7b596986c5badbbe90b4802a7751c8ec09db4
3
+ size 80169685
data/fm+fc+c+t+tc/train-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d50ef6af71ad2ac74ec78144d2b272f72b6eb5e5c16ef2dff5053f20fa8ed18d
3
+ size 78216337
data/fm+fc+c+t+tc/train-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7af087df235a8c0b53af9b5cb95959c6d4471fed099730bf3b50047d1e42794a
3
+ size 41349944
data/fm+fc+c+t+tc/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56077e989f5f6ebb0bb028e01c16976079641678857ceb39deb57a9363e9d9de
3
+ size 26399365
data/fm+fc+c/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d75f918f993a4b042556d3b39f998557666fdda7803b1b4739c81755bbf3356
3
+ size 12355162
data/fm+fc+c/train-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78865fc46aae143ee57f02ecb2697830cc062f9089c2f5a8785c24497eadb08f
3
+ size 38141619
data/fm+fc+c/train-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb9d4a69f90e3db5bb7c9a3b0641626d0d44d371d8b557cc78b4eccebadb84fa
3
+ size 36441180
data/fm+fc+c/train-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ada366f243933a119b30a6618deeee22778380c15cddb251632bba35114171fe
3
+ size 18750895
data/fm+fc+c/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f72bca85c357a0bc2cf6f64b7cb5f9537709ea765e2c347a17b9c55c2f93dfa0
3
+ size 12307497
data/fm+fc+t+tc/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52456f61eb9f1e1b284d436197284c0d7184259d359389a7432a9dc6c73b2293
3
+ size 24925530
data/fm+fc+t+tc/train-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85322ac5d0ee9a503a7ad870aa4dba0d17e371c269f4664aa465c9b616d77ab7
3
+ size 77473362
data/fm+fc+t+tc/train-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df0938b1ec2f9e5d397e865f59a465c9b16de01214a8c474214bf3d58a91b714
3
+ size 75433547
data/fm+fc+t+tc/train-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:987b0ccbe5b540d5e5d13c25ede19012da53ef7fd06ba1df9740156bca059871
3
+ size 39708836
data/fm+fc+t+tc/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abd94f1e2bc54befe43e612473b3025b9c8d2bb7e942c4102d806c3b17e0cfda
3
+ size 25510799
data/fm+fc/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:789f0c7a524b67d272b82fa6e27ab12d15c233a41b6c6e82802c89046b9e91db
3
+ size 11554925
data/fm+fc/train-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d51ca5ca71e95b315dff88e7e6339f9879cc4141e5bef2dc50b2320669d0a175
3
+ size 35467194
data/fm+fc/train-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a6b662a83934e627ff93af281d50b48679a7b2b5f37a91e65fa78211c01712f
3
+ size 33623839
data/fm+fc/train-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ebf17c5b52a3bd09392f3e217bb18f32a160b14cf07caabe25bed2ec740e000
3
+ size 17081765
data/fm+fc/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:788fcec133b0e74d1af968836e0cc31ac43f3ceb721ef63d70a27ddaccdef452
3
+ size 11413416
data/fm+t/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:694cc049a73e912956a22d4e2003962af7d2ef1b5579baf9075063a63db79f3f
3
+ size 22491306
data/fm+t/train-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fbde33924a07068dd2ad21be4783b7ca1e8e7e513229da589214057c051f9a1
3
+ size 69989261
data/fm+t/train-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6bd67b029067d531db0c345e1cea191780bebcbd1f7488f6369446fa8341929
3
+ size 67220174
data/fm+t/train-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1582c66eec5d8b773d4018a26da2e91f1c4fb2a08ed454fd8d675c1a1df5d3f8
3
+ size 34737056
data/fm+t/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:912c86fcd00c3df20fd2e8d6bad489bbbcee813972585a0e9fe7156925fef2b2
3
+ size 22830056
data/fm/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed63a9036aa5b2f5e97f7e84190905df70becba509bf7262ad17b798f4d46a8b
3
+ size 10463506
data/fm/train-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64185ccd9114e4a545c81b75640d0675721c4f0b64e0d86a29b3c020f20c4d1a
3
+ size 32178276