Datasets:
Upload 3 files
Browse files- .gitattributes +1 -0
- README.md +43 -0
- comment_code.jsonl +0 -0
- requirement_fsm_code.jsonl +3 -0
.gitattributes
CHANGED
|
@@ -57,3 +57,4 @@ saved_model/**/* 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
|
|
|
|
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
requirement_fsm_code.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text2text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
size_categories:
|
| 8 |
+
- 10K<n<100K
|
| 9 |
+
configs:
|
| 10 |
+
- config_name: requirement_fsm_code
|
| 11 |
+
description: Dataset with user requirements, FSMs, and code
|
| 12 |
+
data_files:
|
| 13 |
+
- split: train
|
| 14 |
+
path: "requirement_fsm_code.jsonl"
|
| 15 |
+
columns: ["user_requirement", "FSM", "code", "version"]
|
| 16 |
+
- config_name: comment_code
|
| 17 |
+
description: Dataset with function comments and code
|
| 18 |
+
data_files:
|
| 19 |
+
- split: train
|
| 20 |
+
path: "comment_code.jsonl"
|
| 21 |
+
columns: ["function_code", "comment", "version"]
|
| 22 |
+
---
|
| 23 |
+
## Overview
|
| 24 |
+
This is a dataset designed for smart contract generation. It includes two subsets:
|
| 25 |
+
1. **Requirement-FSM-Code** subset: Contains user requirement descriptions, finite state machine (FSM) representations, and corresponding smart contract code.
|
| 26 |
+
2. **Comment-Code** subset: Includes functional comments and their corresponding implementation code.
|
| 27 |
+
|
| 28 |
+
## Dataset Structure
|
| 29 |
+
|
| 30 |
+
### Subset 1: Requirement-FSM-Code
|
| 31 |
+
- **Description**: Contains natural language descriptions of user requirements, FSM representations, and code implementations.
|
| 32 |
+
- **Fields**:
|
| 33 |
+
- `user_requirement`: Natural language descriptions of user requirements.
|
| 34 |
+
- `FSM`: FSM representations of the requirements.
|
| 35 |
+
- `code`: Corresponding smart contract code implementations.
|
| 36 |
+
- `version`: Solidity version.
|
| 37 |
+
|
| 38 |
+
### Subset 2: Comment-Code
|
| 39 |
+
- **Description**: Includes functional comments describing the purpose of the code and the corresponding code snippets.
|
| 40 |
+
- **Fields**:
|
| 41 |
+
- `function_code`: Smart contract code snippets.
|
| 42 |
+
- `comment`: Functional comments describing the code.
|
| 43 |
+
- `version`: Solidity version.
|
comment_code.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
requirement_fsm_code.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:881a31f4ced7150bb5870a1778fb6487f8d8d9848ad7b027f0cdcc927cf762a2
|
| 3 |
+
size 192074022
|