DISL / README.md
GGmorello's picture
Update README.md
a3111c2 verified
|
raw
history blame
1.39 kB
metadata
task_categories:
  - text-generation
language:
  - en
configs:
  - config_name: raw
    data_files: data/raw/*
  - config_name: decomposed
    data_files: data/decomposed/*
license: mit
tags:
  - code
  - solidity
  - smart contracts
  - webdataset
pretty_name: >-
  FLAMES: Fine-tuning of LArge language Models for Efficient Smart contract
  devleopment
size_categories:
  - 1M<n<10M

DISL

The DISL dataset features a collection of 514, 506 unique Solidity files that have been deployed to Ethereum mainnet. It caters to the need for a large and diverse dataset of real-world smart contracts. DISL serves as a resource for developing machine learning systems and for benchmarking software engineering tools designed for smart contracts.

  • Curated by: Gabriele Morello
  • License: [MIT]

TODO: list of commands to browse the data on the command line

Instructions to explore the dataset

from datasets import load_dataset

# Load the raw dataset
dataset = load_dataset("ASSERT-KTH/DISL", "raw")

# OR

# Load the decomposed dataset
dataset = load_dataset("ASSERT-KTH/DISL", "decomposed")

# number of rows and columns
num_rows = len(dataset["train"])
num_columns = len(dataset["train"].column_names)

# random row
import random
random_row = random.choice(dataset["train"])

# random source code
random_sc = random.choice(dataset["train"])['source_code']
print(random_sc)