{"url":"/dataset/disl","name":"DISL","full_name":"Fueling Research with A Large Dataset of Solidity Smart Contracts","description_markdown":"# DISL\r\n\r\nThe full dataset report is available at: https://arxiv.org/abs/2403.16861\r\n\r\nThe 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.\r\n\r\n- **Curated by:** Gabriele Morello\r\n- **License:** [MIT]\r\n\r\n\r\n\r\n## Instructions to explore the dataset\r\n\r\n```python\r\nfrom datasets import load_dataset\r\n\r\n# Load the raw dataset\r\ndataset = load_dataset(\"ASSERT-KTH/DISL\", \"raw\")\r\n\r\n# OR\r\n\r\n# Load the decomposed dataset\r\ndataset = load_dataset(\"ASSERT-KTH/DISL\", \"decomposed\")\r\n\r\n# number of rows and columns\r\nnum_rows = len(dataset[\"train\"])\r\nnum_columns = len(dataset[\"train\"].column_names)\r\n\r\n# random row\r\nimport random\r\nrandom_row = random.choice(dataset[\"train\"])\r\n\r\n# random source code\r\nrandom_sc = random.choice(dataset[\"train\"])['source_code']\r\nprint(random_sc)\r\n```","description_withheld":null,"homepage":"https://huggingface.co/datasets/ASSERT-KTH/DISL","introduced_date":"2024-03-25","introduced_date_note":null,"introduced_by":{"paper":"/paper/disl-fueling-research-with-a-large-dataset-of","title":"DISL: Fueling Research with A Large Dataset of Solidity Smart Contracts","first_author":"Gabriele Morello","url":null},"license":{"name":"MIT","url":"https://opensource.org/license/mit"},"modalities":[{"name":"Texts","url":"/datasets/modality/texts"}],"tasks":[{"name":"Code Generation","url":"/task/code-generation","datasets_with_task":"/datasets/task/code-generation"},{"name":"Code Repair","url":"/task/code-repair","datasets_with_task":"/datasets/task/code-repair"}],"languages":[{"name":"English","url":"/datasets/language/english"}],"variants":["DISL"],"data_loaders":[{"repo":"https://github.com/huggingface/datasets","url":"https://huggingface.co/datasets/ASSERT-KTH/DISL","frameworks":["tf","pytorch","jax"]}],"num_papers_in_archive":2,"source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28"},"benchmarks":[],"papers_with_a_benchmark_row":[],"syntology_totals":{"read_at":"2026-09-24T18:15:14+00:00","papers_with_samples":0,"samples_harvested":0,"samples_ran":0,"samples_unverified":0,"pointer_only_for_licence":0,"papers_with_no_sample_that_ran":0,"note":"the per-paper counts above, summed; not a rate"},"papers_note":"The archive never published its papers-using-dataset list; these are papers with a leaderboard row on this dataset's benchmarks."}