AlfredPros/smart-contracts-instructions
收藏Hugging Face2024-04-30 更新2024-03-04 收录
下载链接:
https://hf-mirror.com/datasets/AlfredPros/smart-contracts-instructions
下载链接
链接失效反馈官方服务:
资源简介:
---
task_categories:
- question-answering
language:
- en
tags:
- code
- blockchain
- smart contract
- solidity
size_categories:
- 1K<n<10K
viewer: true
license: mit
---
# Smart Contracts Instructions
A dataset containing 6,003 GPT-generated human instruction and Solidity source code data pairs.
GPT models used to make this data are GPT-3.5 turbo, GPT-3.5 turbo 16k context, and GPT-4. Solidity source codes are used from mwritescode's Slither Audited Smart Contracts (https://huggingface.co/datasets/mwritescode/slither-audited-smart-contracts).
Distributions of the GPT models used to make this dataset:
- GPT-3.5 Turbo: 5,276
- GPT-3.5 Turbo 16k Context: 678
- GPT-4: 49
Solidity source codes in this dataset has been processed to replace triple or more newline characters with double newline characters and delete "Submitted for verification at " comments.
# Example Usage
```py
from datasets import load_dataset
# Load dataset
dataset = load_dataset("AlfredPros/smart-contracts-instructions", split="train")
# Print the first row instruction
print(dataset["instruction"][0])
```
提供机构:
AlfredPros
原始信息汇总
数据集概述
基本信息
- 任务类别: 问答
- 语言: 英语
- 标签: 代码, 区块链, 智能合约, Solidity
- 数据规模: 1K<n<10K
- 许可证: MIT
数据内容
- 数据集包含: 6,003个由GPT生成的指令和Solidity源代码数据对
- 使用的GPT模型:
- GPT-3.5 Turbo: 5,276
- GPT-3.5 Turbo 16k Context: 678
- GPT-4: 49
- Solidity源代码来源: mwritescode的Slither Audited Smart Contracts
- 数据处理:
- 替换三个或更多换行符为双换行符
- 删除"Submitted for verification at "的注释
示例用法
python from datasets import load_dataset
加载数据集
dataset = load_dataset("AlfredPros/smart-contracts-instructions", split="train")
打印第一行指令
print(dataset["instruction"][0])



