Felix6326727 commited on
Commit
a202ec3
·
verified ·
1 Parent(s): 2446a95

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +85 -27
README.md CHANGED
@@ -1,27 +1,85 @@
1
- ---
2
- dataset_info:
3
- features:
4
- - name: method_name
5
- dtype: string
6
- - name: sample_id
7
- dtype: string
8
- - name: input
9
- dtype: string
10
- - name: input_types
11
- dtype: string
12
- - name: output
13
- dtype: string
14
- - name: output_type
15
- dtype: string
16
- splits:
17
- - name: train
18
- num_bytes: 568062502
19
- num_examples: 2840000
20
- download_size: 71133925
21
- dataset_size: 568062502
22
- configs:
23
- - config_name: default
24
- data_files:
25
- - split: train
26
- path: data/train-*
27
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AutoStub Training Dataset
2
+
3
+ This dataset contains input-output pairs used for training the AutoStub system, which automatically generates symbolic stubs for external functions during symbolic execution.
4
+
5
+ ## Dataset Description
6
+
7
+ The dataset consists of input-output pairs for 273 methods from Java standard libraries, focusing on primitive types and string operations. It was generated using a stratified sampling approach to ensure diverse inputs across different data types.
8
+
9
+ ### Dataset Structure
10
+
11
+ The dataset is organized as a single CSV file with the following columns:
12
+
13
+ - `method_name`: The name of the Java method
14
+ - `sample_id`: Unique identifier for each sample (method_name + sample index)
15
+ - `input`: Input values provided to the method (as string representation)
16
+ - `input_types`: Types of input parameters
17
+ - `output`: Output value returned by the method
18
+ - `output_type`: Return type of the method
19
+
20
+ ### Method Coverage
21
+
22
+ The dataset covers methods from the following Java classes:
23
+ - `java.lang.Boolean`
24
+ - `java.lang.Double`
25
+ - `java.lang.Float`
26
+ - `java.lang.String`
27
+ - `java.lang.Byte`
28
+ - `java.lang.Short`
29
+ - `java.lang.Character`
30
+ - `java.lang.Integer`
31
+ - `java.lang.Long`
32
+ - `java.lang.Math`
33
+ - `java.lang.StrictMath`
34
+
35
+ ### Dataset Creation
36
+
37
+ The dataset was created by:
38
+ 1. Identifying suitable methods in Java standard libraries
39
+ 2. Using reflection to dynamically invoke methods with random inputs
40
+ 3. Collecting input-output pairs for each method
41
+ 4. Applying stratified sampling to ensure diverse inputs
42
+
43
+ ## Usage
44
+
45
+ ### Loading the Dataset
46
+
47
+ ```python
48
+ from datasets import load_dataset
49
+
50
+ # Load the dataset
51
+ dataset = load_dataset("username/autostub-dataset")
52
+
53
+ # Get samples for a specific method
54
+ method_samples = dataset["train"].filter(lambda x: x["method_name"] == "public_boolean_java_lang_Boolean_booleanValue__")
55
+
56
+ # Access a specific sample
57
+ sample = dataset["train"][0]
58
+ print(f"Method: {sample['method_name']}")
59
+ print(f"Input: {sample['input']}")
60
+ print(f"Output: {sample['output']}")
61
+ ```
62
+
63
+ ### Applications
64
+
65
+ This dataset can be used to:
66
+ - Train machine learning models to approximate Java method behavior
67
+ - Evaluate the accuracy of symbolic stubs for symbolic execution
68
+ - Study the behavior of Java standard library methods across diverse inputs
69
+
70
+ ## Citation
71
+
72
+ If you use this dataset, please cite:
73
+
74
+ ```bibtex
75
+ @inproceedings{maechtle2025autostub,
76
+ title={AutoStub: Genetic Programming-Based Stub Creation for Symbolic Execution},
77
+ author={Felix M{"a}chtle, Nils Loose, Jan-Niclas Serr, Jonas Sander, Thomas Eisenbarth},
78
+ booktitle={Proceedings of the 18th ACM/IEEE International Workshop on Search-Based and Fuzz Testing, SBFT 2025},
79
+ year={2025}
80
+ }
81
+ ```
82
+
83
+ ## Source
84
+
85
+ This dataset is derived from the [AutoStub](https://github.com/UzL-ITS/AutoStub) project.