fals3 commited on
Commit
17a4aae
1 Parent(s): 751aa2d

Add initial version

Browse files
Files changed (46) hide show
  1. .gitignore +131 -0
  2. README.md +455 -0
  3. data/fm+fc+c+m+f+t+tc/test-00000-of-00001.parquet +3 -0
  4. data/fm+fc+c+m+f+t+tc/train-00000-of-00001.parquet +3 -0
  5. data/fm+fc+c+m+f+t+tc/validation-00000-of-00001.parquet +3 -0
  6. data/fm+fc+c+m+f/test-00000-of-00001.parquet +3 -0
  7. data/fm+fc+c+m+f/train-00000-of-00001.parquet +3 -0
  8. data/fm+fc+c+m+f/validation-00000-of-00001.parquet +3 -0
  9. data/fm+fc+c+m+t+tc/test-00000-of-00001.parquet +3 -0
  10. data/fm+fc+c+m+t+tc/train-00000-of-00001.parquet +3 -0
  11. data/fm+fc+c+m+t+tc/validation-00000-of-00001.parquet +3 -0
  12. data/fm+fc+c+m/test-00000-of-00001.parquet +3 -0
  13. data/fm+fc+c+m/train-00000-of-00001.parquet +3 -0
  14. data/fm+fc+c+m/validation-00000-of-00001.parquet +3 -0
  15. data/fm+fc+c+t+tc/test-00000-of-00001.parquet +3 -0
  16. data/fm+fc+c+t+tc/train-00000-of-00001.parquet +3 -0
  17. data/fm+fc+c+t+tc/validation-00000-of-00001.parquet +3 -0
  18. data/fm+fc+c/test-00000-of-00001.parquet +3 -0
  19. data/fm+fc+c/train-00000-of-00001.parquet +3 -0
  20. data/fm+fc+c/validation-00000-of-00001.parquet +3 -0
  21. data/fm+fc+t+tc/test-00000-of-00001.parquet +3 -0
  22. data/fm+fc+t+tc/train-00000-of-00001.parquet +3 -0
  23. data/fm+fc+t+tc/validation-00000-of-00001.parquet +3 -0
  24. data/fm+fc/test-00000-of-00001.parquet +3 -0
  25. data/fm+fc/train-00000-of-00001.parquet +3 -0
  26. data/fm+fc/validation-00000-of-00001.parquet +3 -0
  27. data/fm+t/test-00000-of-00000.parquet +3 -0
  28. data/fm+t/train-00000-of-00000.parquet +3 -0
  29. data/fm+t/validation-00000-of-00000.parquet +3 -0
  30. data/fm/test-00000-of-00001.parquet +3 -0
  31. data/fm/train-00000-of-00001.parquet +3 -0
  32. data/fm/validation-00000-of-00001.parquet +3 -0
  33. data/fm_indented/test-00000-of-00001.parquet +3 -0
  34. data/fm_indented/train-00000-of-00001.parquet +3 -0
  35. data/fm_indented/validation-00000-of-00001.parquet +3 -0
  36. data/t+tc/test-00000-of-00000.parquet +3 -0
  37. data/t+tc/train-00000-of-00000.parquet +3 -0
  38. data/t+tc/validation-00000-of-00000.parquet +3 -0
  39. data/t/test-00000-of-00001.parquet +3 -0
  40. data/t/train-00000-of-00001.parquet +3 -0
  41. data/t/validation-00000-of-00001.parquet +3 -0
  42. data/t_indented/test-00000-of-00001.parquet +3 -0
  43. data/t_indented/train-00000-of-00001.parquet +3 -0
  44. data/t_indented/validation-00000-of-00001.parquet +3 -0
  45. focal_context.pdf +0 -0
  46. focal_context.png +3 -0
.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,455 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 4696431
130
+ num_examples: 7440
131
+ - name: test
132
+ num_bytes: 642347
133
+ num_examples: 1017
134
+ - name: validation
135
+ num_bytes: 662917
136
+ num_examples: 953
137
+ download_size: 2633268
138
+ dataset_size: 6001695
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: 5387123
148
+ num_examples: 7440
149
+ - name: test
150
+ num_bytes: 738049
151
+ num_examples: 1017
152
+ - name: validation
153
+ num_bytes: 757167
154
+ num_examples: 953
155
+ download_size: 2925807
156
+ dataset_size: 6882339
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: 5906873
166
+ num_examples: 7440
167
+ - name: test
168
+ num_bytes: 820149
169
+ num_examples: 1017
170
+ - name: validation
171
+ num_bytes: 824441
172
+ num_examples: 953
173
+ download_size: 3170873
174
+ dataset_size: 7551463
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: 11930672
184
+ num_examples: 7440
185
+ - name: test
186
+ num_bytes: 1610045
187
+ num_examples: 1017
188
+ - name: validation
189
+ num_bytes: 1553249
190
+ num_examples: 953
191
+ download_size: 5406454
192
+ dataset_size: 15093966
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: 12722890
202
+ num_examples: 7440
203
+ - name: test
204
+ num_bytes: 1713683
205
+ num_examples: 1017
206
+ - name: validation
207
+ num_bytes: 1654607
208
+ num_examples: 953
209
+ download_size: 5753116
210
+ dataset_size: 16091180
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: 18332635
222
+ num_examples: 7440
223
+ - name: test
224
+ num_bytes: 2461169
225
+ num_examples: 1017
226
+ - name: validation
227
+ num_bytes: 2510969
228
+ num_examples: 953
229
+ download_size: 8280985
230
+ dataset_size: 23304773
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: 17537661
242
+ num_examples: 7440
243
+ - name: test
244
+ num_bytes: 2357359
245
+ num_examples: 1017
246
+ - name: validation
247
+ num_bytes: 2409506
248
+ num_examples: 953
249
+ download_size: 8178222
250
+ dataset_size: 22304526
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: 11445562
262
+ num_examples: 7440
263
+ - name: test
264
+ num_bytes: 1565365
265
+ num_examples: 1017
266
+ - name: validation
267
+ num_bytes: 1676986
268
+ num_examples: 953
269
+ download_size: 5944482
270
+ dataset_size: 14687913
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: 10923038
282
+ num_examples: 7440
283
+ - name: test
284
+ num_bytes: 1483265
285
+ num_examples: 1017
286
+ - name: validation
287
+ num_bytes: 1609296
288
+ num_examples: 953
289
+ download_size: 5715335
290
+ dataset_size: 14015599
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: 8889443
302
+ num_examples: 7440
303
+ - name: test
304
+ num_bytes: 1207763
305
+ num_examples: 1017
306
+ - name: validation
307
+ num_bytes: 1336798
308
+ num_examples: 953
309
+ download_size: 4898458
310
+ dataset_size: 11434004
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: 5054397
320
+ num_examples: 7440
321
+ - name: test
322
+ num_bytes: 692948
323
+ num_examples: 1017
324
+ - name: validation
325
+ num_bytes: 714462
326
+ num_examples: 953
327
+ download_size: 2703115
328
+ dataset_size: 6461807
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: 4316096
340
+ num_examples: 7440
341
+ - name: test
342
+ num_bytes: 582266
343
+ num_examples: 1017
344
+ - name: validation
345
+ num_bytes: 689647
346
+ num_examples: 953
347
+ download_size: 2434024
348
+ dataset_size: 5588009
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: 5648321
360
+ num_examples: 7440
361
+ - name: test
362
+ num_bytes: 761386
363
+ num_examples: 1017
364
+ - name: validation
365
+ num_bytes: 867350
366
+ num_examples: 953
367
+ download_size: 3024686
368
+ dataset_size: 7277057
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: 4606253
380
+ num_examples: 7440
381
+ - name: test
382
+ num_bytes: 623576
383
+ num_examples: 1017
384
+ - name: validation
385
+ num_bytes: 734221
386
+ num_examples: 953
387
+ download_size: 2496661
388
+ dataset_size: 5964050
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 their corresponding focal methods.
397
+ It contains 780k pairs of JUnit test cases and focal methods which were extracted from a total of 91K Java open-source projects hosted on GitHub.
398
+
399
+ This is a smaller subset of the assembled version of the methods2test dataset.
400
+ 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
+ The subset is created by randomly selecting only one sample from each of the 91k projects.
402
+
403
+ The mapping between test case and focal methods is based on heuristics rules and Java developer's best practice.
404
+ More information can 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_CLASS_NAME> <TEST_CASE>
412
+ fm: <FOCAL_METHOD>
413
+ fm+t: <FOCAL_METHOD>
414
+ fm+fc: <FOCAL_CLASS_NAME> <FOCAL_METHOD>
415
+ fm+fc: <FOCAL_CLASS_NAME> <FOCAL_METHOD> <TEST_CLASS_NAME> <TEST_CASE>
416
+ fm+fc+c: <FOCAL_CLASS_NAME> <FOCAL_METHOD> <CONTRSUCTORS>
417
+ fm+fc+c: <FOCAL_CLASS_NAME> <FOCAL_METHOD> <CONTRSUCTORS> <TEST_CLASS_NAME> <TEST_CASE>
418
+ fm+fc+c+m: <FOCAL_CLASS_NAME> <FOCAL_METHOD> <CONTRSUCTORS> <METHOD_SIGNATURES>
419
+ fm+fc+c+m: <FOCAL_CLASS_NAME> <FOCAL_METHOD> <CONTRSUCTORS> <METHOD_SIGNATURES> <TEST_CLASS_NAME> <TEST_CASE>
420
+ fm+fc+c+m+f: <FOCAL_CLASS_NAME> <FOCAL_METHOD> <CONTRSUCTORS> <METHOD_SIGNATURES> <FIELDS>
421
+ fm+fc+c+m+f+t+tc: <FOCAL_CLASS_NAME> <FOCAL_METHOD> <CONTRSUCTORS> <METHOD_SIGNATURES> <FIELDS> <TEST_CLASS_NAME> <TEST_CASE>
422
+ ```
423
+
424
+ ## Focal Context
425
+ - fm: this representation incorporates exclusively the source
426
+ code of the focal method. Intuitively, this contains the most
427
+ important information for generating accurate test cases for
428
+ the given method.
429
+ - fm+fc: this representation adds the focal class name, which
430
+ can provide meaningful semantic information to the model.
431
+ - fm+fc+c: this representation adds the signatures of the constructor methods of the focal class. The idea behind this
432
+ augmentation is that the test case may require instantiating
433
+ an object of the focal class in order to properly test the focal
434
+ method.
435
+ - fm+fc+c+m: this representation adds the signatures of the
436
+ other public methods in the focal class. The rationale that motivated this inclusion is that the test case may need to
437
+ invoke other auxiliary methods within the class (e.g., getters,
438
+ setters) to set up or tear down the testing environment.
439
+ - fm+fc+c+m+f: this representation adds the public fields of
440
+ the focal class. The motivation is that test cases may need to
441
+ inspect the status of the public fields to properly test a focal
442
+ method.
443
+
444
+ The test case along with the class name is also provided for each focal context.
445
+
446
+ ![image/pdf](https://huggingface.co/datasets/fals3/methods2test/resolve/main/focal_context.png)
447
+
448
+ The different levels of focal contexts are the following:
449
+ ```
450
+ fm: focal method
451
+ fm+fc: focal method + focal class name
452
+ fm+fc+c: focal method + focal class name + constructor signatures
453
+ fm+fc+c+m: focal method + focal class name + constructor signatures + public method signatures
454
+ fm+fc+c+m+f: focal method + focal class name + constructor signatures + public method signatures + public fields
455
+ ```
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:b918d272a7e713ed9de795c2d6b53b7c92540b5619fda638e2fd00da0943aec6
3
+ size 889678
data/fm+fc+c+m+f+t+tc/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcf60df63b3aed4a444c87c6de75be9cad9e7fdbced641311d3ba6d98e64fe36
3
+ size 6522761
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:7a0956aea38239e1b8d811b59b3223d8da8f2b7aa89536564d9f21babc835489
3
+ size 868546
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:794b41aae7370bb3533692db6bcb19c2e350082054d0b718ef9b435207bf4d2f
3
+ size 619024
data/fm+fc+c+m+f/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e2a37d222dbd9d46a02c8815bd499426b5981d94c587e387fff00b5d87f5a5b
3
+ size 4552195
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:407fe47c33a3cf68cad35a0d5e0b1cefd7ba905b7cf50bf6c78ac16944969c97
3
+ size 581897
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:b5908d3a67a35523693af1b9afadf13d50fd90e44e8e8cb8b378390235ffc9ce
3
+ size 878549
data/fm+fc+c+m+t+tc/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:384225cf60bf90f3e2ee632fc75d655287a64adbb37348ceca92d710a7e63aac
3
+ size 6441625
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:5821ae673b4bd136ba90be49feb76d016770136735ee8218d91dcb073a2c8f94
3
+ size 858048
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:b72c85341f94ca11d94cc8d4b58c8f3b2d0c810a9bbe326d7e65eba856e0305c
3
+ size 583103
data/fm+fc+c+m/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b029520727ce2e05b31838c66d3a0e67b0596f176646091934e7e3e6c629b02b
3
+ size 4277375
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:8a91e3a1b1cb966e685bc701eed5fa00c646374c4f8bee409099184d0f208f35
3
+ size 545976
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:6afe56a777ce58361a44630f024786e27f28abf18b5291299eeb4ac00de966a5
3
+ size 640191
data/fm+fc+c+t+tc/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce81de11ff859e598078657dccad6358ac5322997e6eb5d4869b1e779544d104
3
+ size 4663717
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:0fc9ef9461448f54805755b8f4157c9ee90ce0aba15600aaaec3f2e22158df52
3
+ size 640574
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:9a26eb0c58d5b271411cc7f97ff4e593b8f02c080440489874c8ba37f212677a
3
+ size 345254
data/fm+fc+c/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:454222de93888cfd5fc87763f4f69860e0c9f7e0964bf7dafd67757db9ec097f
3
+ size 2494953
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:2fa320647fc26cf817b037adf96b0c352f9c552d77c726557e83305323dbe0fc
3
+ size 330666
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:16cf648b1c52d7a1a07c3c3cd6b57fa95b2fd6023535a3cf92cb9d1cfacaf23f
3
+ size 613824
data/fm+fc+t+tc/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43db66a59acc2223b3b94505c8c12ed4f9fdd91bda9ed8e8c6fc328a62448ffc
3
+ size 4484983
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:5402b1048786b693959dd6b644ff9dcb7efe95d648649cfe3dd8d24f4da83d50
3
+ size 616528
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:df0ed8c42355134009ed27e2a340ba8b51e7a2eb38fec802e58980ede2f6d1cb
3
+ size 316412
data/fm+fc/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c428fac5e1ac3d6591e95e69c4c3de5d0905900a1ca8cae8f5324b2890a3785
3
+ size 2304796
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:06355e54513e4c73b35d4c71c37dca5c288afaf681f207154f6a1fcc102c4f73
3
+ size 304599
data/fm+t/test-00000-of-00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8803a53d8aa562efc9363dad4179b27af7cf8e2f230300c8a1d095483d6c1011
3
+ size 528184
data/fm+t/train-00000-of-00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37bd79aaeb3f012cadcbbde5631821d0bacbeceeeef3d30ab323fa092f5d6021
3
+ size 3846158
data/fm+t/validation-00000-of-00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0430cf38ddb233fc878f17b102405ff588f1561224f784bf4109a6c5496064c1
3
+ size 524116
data/fm/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16e26efc84c08823ba7fb2b810429af943503b7bee9248ad37c5cca7c42e724b
3
+ size 289632
data/fm/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e5ba992a2f2b97f1bc7e4e05d329a34e9938abcbaf3426de556b298f6de47d3
3
+ size 2073718
data/fm/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe8427fe987f3b90614b50c8f031753a6f6388fbabaea5e2e2aeeb3a03acb545
3
+ size 269918
data/fm_indented/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21edf8fde06e86b26006fc8e51b18109afbc5736d6a1fa5dcc09e229c8163c31
3
+ size 291886
data/fm_indented/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:661460bd5f4705f76a6b648a2a3ce42e4d72c794924978650bdd86fe0d55859e
3
+ size 2128823
data/fm_indented/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75a9d51d7fad850dcecdce743cb78b1a5e4ba3e78b156f76e9d6a9d1776be58c
3
+ size 282406
data/t+tc/test-00000-of-00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d42080a49caacc740be69a259822b3e212781ff8a1edfe02d23668c3bfeb67c
3
+ size 325010
data/t+tc/train-00000-of-00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fb67e5f92575f535313183f5dc07bb7f2ebad451aaa81f583252f3f24bd1df8
3
+ size 2367064
data/t+tc/validation-00000-of-00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04827659d4d430ed8508de7b84e6e998047d6baeb574e19d1b969c0cbd2be3e3
3
+ size 332612
data/t/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a2da573f87392f0e18f00b6456f8a86bf8c69af1b27c0b883dbe4067de417a0
3
+ size 262046
data/t/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5bb2256183008cb43afe87cc0eb9ffc52bef42bd7c8266c1a164bf6c568efd4
3
+ size 1900484
data/t/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cd48594379def5bfeb24a4ee026b75026494431df0d9502077dc7e331d4f573
3
+ size 271494
data/t_indented/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e07c324a29059fd49f5a392f9476fb9170f473536e378bb140fb05e925537008
3
+ size 269125
data/t_indented/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4596d6aadb88d6892b3c2e13b305e3d26dd21757a26f8b42b3e8e23e8b41e7eb
3
+ size 1948198
data/t_indented/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a79ea987bed15461a48cb857afe451360c422a003d5ca53ec65f4845558620d7
3
+ size 279338
focal_context.pdf ADDED
Binary file (188 kB). View file
 
focal_context.png ADDED

Git LFS Details

  • SHA256: bb6f64157f992dccdaea78a417ff726b90d1c6097db6e6588154e058dfd0d1f7
  • Pointer size: 130 Bytes
  • Size of remote file: 18.7 kB