Update README.md
Browse files
README.md
CHANGED
|
@@ -5,21 +5,24 @@ language:
|
|
| 5 |
- en
|
| 6 |
tags:
|
| 7 |
- code
|
| 8 |
-
pretty_name: FIM transformed
|
| 9 |
size_categories:
|
| 10 |
- 10K<n<100K
|
| 11 |
license: cc-by-4.0
|
| 12 |
---
|
| 13 |
-
This dataset consists of 22,118 Solidity constructs, namely functions, mappings, structs, modifiers, errors, enums, events, imports, constructors, SPDX-License-Identifiers, using statements and contract definitions with imports and pragmas. The entries in the JSON-file are file_name, size_bytes, code, fim_transformed, and secure. The entry fim_transformed (fill-in-the-middle transformed) is 0 for non-
|
| 14 |
|
| 15 |
The dataset was created using the fbnhnsl/Preprocessed_Solidity_Dataset_V1 dataset, but three additional steps were applied:
|
| 16 |
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
If you wish to use this dataset, you can cite it as follows:
|
| 19 |
|
| 20 |
```latex
|
| 21 |
@misc{hensel2025fim_solidity_dataset,
|
| 22 |
-
title = {FIM transformed
|
| 23 |
author={Fabian Hensel},
|
| 24 |
year={2025}
|
| 25 |
}
|
|
|
|
| 5 |
- en
|
| 6 |
tags:
|
| 7 |
- code
|
| 8 |
+
pretty_name: FIM transformed Solidity constructs.
|
| 9 |
size_categories:
|
| 10 |
- 10K<n<100K
|
| 11 |
license: cc-by-4.0
|
| 12 |
---
|
| 13 |
+
This dataset consists of 22,118 Solidity constructs, namely functions, mappings, structs, modifiers, errors, enums, events, imports, constructors, SPDX-License-Identifiers, using statements and contract definitions with imports and pragmas. It is splitted into 18,118 training examples, 2,000 validation examples and 2,000 test examples. The entries in the JSON-file are "file_name", "size_bytes", "code", "fim_transformed", and "secure". The entry "fim_transformed" (fill-in-the-middle transformed) is 0 for non-FIM transformed examples and 1 for FIM transformed examples. The entry "secure" is 0 for vulnerable examples, 1 for secure examples and 2 for examples for which no special security token is specified.
|
| 14 |
|
| 15 |
The dataset was created using the fbnhnsl/Preprocessed_Solidity_Dataset_V1 dataset, but three additional steps were applied:
|
| 16 |
|
| 17 |
+
- Constructs Extraction: Constructs such as functions, modifiers and enums were extracted from each file.
|
| 18 |
+
- FIM Transformation: Some of the constructs were FIM transformed (7,499 functions, 1,446 Constructors, 643 Modifiers, 2,698 Imports). The FIM ratio used was 0.4.
|
| 19 |
+
- Token Insertion: Special Tokens were inserted into each file that mark the end of a sequence (<|endoftext|>), secure code (<|secure_function|>, <|secure_constructor|>) and FIM code (<|fim_begin|>, <|fim_hole|>, <|fim_end|>)
|
| 20 |
|
| 21 |
If you wish to use this dataset, you can cite it as follows:
|
| 22 |
|
| 23 |
```latex
|
| 24 |
@misc{hensel2025fim_solidity_dataset,
|
| 25 |
+
title = {FIM transformed Solidity constructs},
|
| 26 |
author={Fabian Hensel},
|
| 27 |
year={2025}
|
| 28 |
}
|