realvul/RealVul
收藏资源简介:
这是一个C++漏洞检测数据集,遵循现实设置。数据集包含多个特征,如文件名、易受攻击的代码行号、数据集类型、提交哈希、唯一ID、项目名称、目标值、仓库URL、日期、代码、CVE、CWE、提交链接、严重性等。数据集分为训练集和测试集,分别包含128705和142214个样本。目标列表示代码是否易受攻击,代码列包含代码片段。数据集的总大小为3108776334字节,下载大小为1076557341字节。
This is a C++ vulnerability detection dataset following realistic settings. The dataset includes features such as file name, vulnerable line numbers, dataset type, commit hash, unique ID, project name, target, repo URL, date, code, CVE, CWE, commit link, severity, etc. The dataset is divided into training and test sets, containing 128705 and 142214 samples respectively. The target column indicates whether the code is vulnerable, and the code column contains the code segment. The total size of the dataset is 3108776334 bytes, and the download size is 1076557341 bytes.
数据集概述
数据集信息
特征
- file_name: 文件名,数据类型为
int64 - vulnerable_line_numbers: 易受攻击的行号,数据类型为
string - dataset_type: 数据集类型,数据类型为
string - commit_hash: 提交哈希,数据类型为
string - unique_id: 唯一标识符,数据类型为
int64 - project: 项目名称,数据类型为
string - target: 是否易受攻击,数据类型为
int64 - repo_url: 仓库URL,数据类型为
string - date: 日期,数据类型为
string - code: 代码片段,数据类型为
string - CVE: CVE编号,数据类型为
string - CWE: CWE编号,数据类型为
string - commit_link: 提交链接,数据类型为
string - severity: 严重性,数据类型为
string - index_level_0: 索引级别,数据类型为
int64
数据集分割
- train: 训练集,包含 128705 个样本,大小为 1440079604 字节
- test: 测试集,包含 142214 个样本,大小为 1668696730 字节
数据集大小
- 下载大小: 1076557341 字节
- 总大小: 3108776334 字节
配置
- default: 默认配置
- train: 数据路径为
data/train-* - test: 数据路径为
data/test-*
- train: 数据路径为
重要列
- target: 是否易受攻击,数据类型为
int - code: 代码片段,数据类型为
str




