File size: 1,740 Bytes
67aff75 57c80f9 67aff75 dc4edc2 57c80f9 dc4edc2 57c80f9 3a166fd 676654a 3a166fd 57c80f9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
---
dataset_info:
features:
- name: function
dtype: string
- name: severity
dtype: string
splits:
- name: train
num_bytes: 1327573
num_examples: 2473
- name: test
num_bytes: 237962
num_examples: 437
download_size: 670552
dataset_size: 1565535
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
- split: test
path: data/test-*
license: mit
task_categories:
- text-classification
language:
- en
tags:
- finance
pretty_name: Severity of Vulnerable Solidity Functions
size_categories:
- 1K<n<10K
---
This dataset combines vulnerable functions (scraped from 5 auditting companies: [Codehawks](https://www.codehawks.com/), [ConsenSys](https://consensys.io/), [Cyfrin](https://www.cyfrin.io/), [Sherlock](https://www.sherlock.xyz/), [Trust Security](https://www.trust-security.xyz/)) and auddited functions with no vulnerabilities (scraped from [Etherscan](https://etherscan.io))
The purpose of the dataset is to enable training of classification models to discriminate between the 4 classes: `none`, `low`, `medium` and `high`.
| Field | Description |
|-|-|
| 1. `function` | Raw solidity code |
| 2. `severity` | Severity of vulnerability ('none', `low`, `medium`, `high`) |
# Data Analysis
<img src="https://huggingface.co/datasets/msc-smart-contract-audition/vulnerability-severity-classification/resolve/main/figures/severity-distribution.png">
<img src="https://huggingface.co/datasets/msc-smart-contract-audition/vulnerability-severity-classification/resolve/main/figures/length-severity-distribution.png">
# Additional Info
- The newline characters are escaped (i.e. `\\n`) |