Add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
dataset_info:
|
| 4 |
+
dataset_name: LineVul Dataset Splits
|
| 5 |
+
description: |
|
| 6 |
+
This dataset contains splits (train, validation, test) of the LineVul dataset, originally designed for transformer-based line-level vulnerability prediction in C/C++ code. It includes processed functions, vulnerability labels, and fixed versions of vulnerable functions.
|
| 7 |
+
version: 1.0.0
|
| 8 |
+
license: MIT
|
| 9 |
+
splits:
|
| 10 |
+
- name: train
|
| 11 |
+
description: Training split of the LineVul dataset.
|
| 12 |
+
- name: validation
|
| 13 |
+
description: Validation split of the LineVul dataset.
|
| 14 |
+
- name: test
|
| 15 |
+
description: Test split of the LineVul dataset.
|
| 16 |
+
features:
|
| 17 |
+
- name: processed_func
|
| 18 |
+
dtype: string
|
| 19 |
+
description: The original function written in C/C++.
|
| 20 |
+
- name: target
|
| 21 |
+
dtype: int
|
| 22 |
+
description: Function-level label (1 for vulnerable, 0 for non-vulnerable).
|
| 23 |
+
- name: vul_func_with_fix
|
| 24 |
+
dtype: string
|
| 25 |
+
description: The fixed function with added/deleted lines labeled.
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
# LineVul Dataset Splits
|
| 29 |
+
|
| 30 |
+
This dataset provides the train, validation, and test splits of the LineVul dataset, originally introduced in the paper "LineVul: A Transformer-based Line-Level Vulnerability Prediction" by Michael Fu and Chakkrit Tantithamthavorn. The dataset is designed for predicting software vulnerabilities at the line level in C/C++ code using transformer-based models. It was sourced from the LineVul replication package available at [https://github.com/awsm-research/LineVul](https://github.com/awsm-research/LineVul).
|
| 31 |
+
|
| 32 |
+
## Dataset Description
|
| 33 |
+
|
| 34 |
+
The LineVul dataset consists of C/C++ functions with associated vulnerability labels and fixed versions. Each split (train, validation, test) contains 39 columns, but the key columns used for vulnerability prediction are:
|
| 35 |
+
|
| 36 |
+
- **processed_func** (string): The original function written in C/C++.
|
| 37 |
+
- **target** (int): A binary label indicating whether the function is vulnerable (1) or not (0).
|
| 38 |
+
- **vul_func_with_fix** (string): The fixed version of the function, with added and deleted lines labeled.
|
| 39 |
+
|
| 40 |
+
The dataset is intended for training and evaluating models that predict vulnerabilities in software code, particularly at the line level.
|
| 41 |
+
|
| 42 |
+
## Citation
|
| 43 |
+
|
| 44 |
+
The original dataset and methodology are detailed in the following paper:
|
| 45 |
+
|
| 46 |
+
```bibtex
|
| 47 |
+
@inproceedings{fu2022linevul,
|
| 48 |
+
title={LineVul: A Transformer-based Line-Level Vulnerability Prediction},
|
| 49 |
+
author={Fu, Michael and Tantithamthavorn, Chakkrit},
|
| 50 |
+
booktitle={2022 IEEE/ACM 19th International Conference on Mining Software Repositories (MSR)},
|
| 51 |
+
year={2022},
|
| 52 |
+
organization={IEEE}
|
| 53 |
+
}
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
Please cite this paper if you use this dataset in your research.
|
| 57 |
+
|
| 58 |
+
## License
|
| 59 |
+
|
| 60 |
+
The dataset is released under the [MIT License](https://opensource.org/licenses/MIT), consistent with the original LineVul replication package.
|
| 61 |
+
|
| 62 |
+
|