Update README.md
Browse files
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
|
| 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("
|
| 52 |
-
|
| 53 |
-
#
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
print(f"
|
| 59 |
-
print(f"
|
| 60 |
-
print(f"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.
|