lohoz's picture
Upload 3 files
ba50a76 verified
---
license: mit
task_categories:
- text2text-generation
language:
- en
size_categories:
- 10K<n<100K
configs:
- config_name: requirement_fsm_code
description: Dataset with user requirements, FSMs, and code
data_files:
- split: train
path: "requirement_fsm_code.jsonl"
columns: ["user_requirement", "FSM", "code", "version"]
- config_name: comment_code
description: Dataset with function comments and code
data_files:
- split: train
path: "comment_code.jsonl"
columns: ["function_code", "comment", "version"]
---
## Overview
This is a dataset designed for smart contract generation. It includes two subsets:
1. **Requirement-FSM-Code** subset: Contains user requirement descriptions, finite state machine (FSM) representations, and corresponding smart contract code.
2. **Comment-Code** subset: Includes functional comments and their corresponding implementation code.
## Dataset Structure
### Subset 1: Requirement-FSM-Code
- **Description**: Contains natural language descriptions of user requirements, FSM representations, and code implementations.
- **Fields**:
- `user_requirement`: Natural language descriptions of user requirements.
- `FSM`: FSM representations of the requirements.
- `code`: Corresponding smart contract code implementations.
- `version`: Solidity version.
### Subset 2: Comment-Code
- **Description**: Includes functional comments describing the purpose of the code and the corresponding code snippets.
- **Fields**:
- `function_code`: Smart contract code snippets.
- `comment`: Functional comments describing the code.
- `version`: Solidity version.