kristian-a commited on
Commit
e3f1ad2
·
verified ·
1 Parent(s): fbc1984

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -18
README.md CHANGED
@@ -15,23 +15,16 @@ size_categories:
15
  - 1K<n<10K
16
  ---
17
 
18
- # 1. Smart Contract Vulnerabilities with Explanations (`vulnerable-w-explanations`)
 
19
 
 
20
  This repository offers two datasets of `Solidity` functions,
21
  This dataset comprises vulnerable `Solidity` functions audited by 5 auditing companies:
22
 
23
  ([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/)). These audits are compiled by [Solodit](https://solodit.xyz/).
24
 
25
- **Fields**:
26
- 1. `name` - Title of audit report
27
- 2. `severity` - Severity of vulnerabiliy (`Low`, `Medium`, `High`)
28
- 3. `description` - Description/Explanation of the vulnerability
29
- 4. `recommendation` - Recommended mitigation of the vulnerability
30
- 5. `impact` (Optional) - Explains how the vulnerability affects the smart contract
31
- 6. `function` - Raw vulnerable *solidity* code (*Sometimes this could be inaccurate. Best efforts were made to clean-up the dataset but some rows might include other programming languages e.g. javascript*)
32
-
33
  ## Usage
34
-
35
  ```python
36
  from datasets import load_dataset
37
  dataset = load_dataset(
@@ -40,17 +33,21 @@ dataset = load_dataset(
40
  )
41
  ```
42
 
43
- # 2. Verified functions (`verified-functions`)
 
 
 
 
 
 
 
44
 
45
- This repository also includes a dataset with functions with no known vulnerabilities. They were scraped-off from [Etherscan](https://etherscan.io).
46
 
 
 
47
  Specifically, the functions are a part of the top 500 auditted contracts holding at least `1 ETH`.
48
 
49
- **Fields**:
50
- 1. `function` - Raw solidity code
51
-
52
  ## Usage
53
-
54
  ```python
55
  from datasets import load_dataset
56
  dataset = load_dataset(
@@ -60,6 +57,9 @@ dataset = load_dataset(
60
  )
61
  ```
62
 
63
- # Additional Info
 
 
64
 
65
- This dataset serves as basis for the other datasets in this family which are built for tasks s.a. Classification or Seq2Seq generation.
 
 
15
  - 1K<n<10K
16
  ---
17
 
18
+ These datasets serve as a basis for other datasets in this family which are built for tasks like *Classification* or *Seq2Seq generation*.
19
+
20
 
21
+ # 1. Smart Contract Vulnerabilities with Explanations (`vulnerable-w-explanations`)
22
  This repository offers two datasets of `Solidity` functions,
23
  This dataset comprises vulnerable `Solidity` functions audited by 5 auditing companies:
24
 
25
  ([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/)). These audits are compiled by [Solodit](https://solodit.xyz/).
26
 
 
 
 
 
 
 
 
 
27
  ## Usage
 
28
  ```python
29
  from datasets import load_dataset
30
  dataset = load_dataset(
 
33
  )
34
  ```
35
 
36
+ | Field | Description |
37
+ |-|-|
38
+ | 1. `name` | Title of audit report |
39
+ | 2. `severity` | Severity of vulnerability (`Low`, `Medium`, `High`) |
40
+ | 3. `description` | Description/Explanation of the vulnerability |
41
+ | 4. `recommendation` | Recommended mitigation of the vulnerability |
42
+ | 5. `impact` | Explains how the vulnerability affects the smart contract (Optional) |
43
+ | 6. `function` | Raw vulnerable *solidity* code (*Sometimes this could be inaccurate. Best efforts were made to clean-up the dataset but some rows might include other programming languages e.g. javascript*) |
44
 
 
45
 
46
+ # 2. Verified functions (`verified-functions`)
47
+ This repository also includes a dataset with functions with no known vulnerabilities. They were scraped-off from [Etherscan](https://etherscan.io).
48
  Specifically, the functions are a part of the top 500 auditted contracts holding at least `1 ETH`.
49
 
 
 
 
50
  ## Usage
 
51
  ```python
52
  from datasets import load_dataset
53
  dataset = load_dataset(
 
57
  )
58
  ```
59
 
60
+ | Field | Description |
61
+ |-|-|
62
+ | 1. `function` | Raw solidity code |
63
 
64
+ # Additional Info
65
+ - The newline characters are escaped (i.e. `\\n`)