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

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -12
README.md CHANGED
@@ -1,10 +1,15 @@
 
 
 
 
 
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
 
@@ -48,16 +53,20 @@ The dataset was created by:
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
@@ -82,4 +91,4 @@ If you use this dataset, please cite:
82
 
83
  ## Source
84
 
85
- This dataset is derived from the [AutoStub](https://github.com/UzL-ITS/AutoStub) project.
 
1
+ ---
2
+ license: cc-by-4.0
3
+ tags:
4
+ - code
5
+ ---
6
  # AutoStub Training Dataset
7
 
8
  This dataset contains input-output pairs used for training the AutoStub system, which automatically generates symbolic stubs for external functions during symbolic execution.
9
 
10
  ## Dataset Description
11
 
12
+ The dataset consists of input-output pairs 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.
13
 
14
  ### Dataset Structure
15
 
 
53
  from datasets import load_dataset
54
 
55
  # Load the dataset
56
+ dataset = load_dataset("Felix6326727/AutoStub")
57
+
58
+ # Loop through the dataset and print the first 5 samples
59
+ for i, sample in enumerate(dataset["train"]):
60
+ if i >= 5:
61
+ break
62
+
63
+ print(f"Sample {i}:")
64
+ print(f"Method Name: {sample['method_name']}")
65
+ print(f"Input: {sample['input']}")
66
+ print(f"Input Types: {sample['input_types']}")
67
+ print(f"Output: {sample['output']}")
68
+ print(f"Output Type: {sample['output_type']}")
69
+ print()
70
  ```
71
 
72
  ### Applications
 
91
 
92
  ## Source
93
 
94
+ This dataset is derived from the [AutoStub](https://github.com/UzL-ITS/AutoStub) project.