pr_vul_dataset
收藏资源简介:
该数据集是一个函数级代码分析数据集,包含多个子集:1k_1200子集包含从ffmgep目标中提取的1,000个函数,每个函数长度限制在1,200字符以内;5k子集包含5,000个函数,无额外长度限制;full子集为完整的devign数据集。每个子集均包含四个子文件夹:raw存储原始JSON格式数据,input、tokens和cpg可能分别对应预处理后的输入、分词表示和代码属性图(CPG)表示。数据集适用于代码漏洞检测、程序分析或机器学习模型训练等任务。
This dataset is a function-level code analysis dataset containing multiple subsets: the 1k_1200 subset includes 1,000 functions extracted from ffmgep targets, with each function limited to 1,200 characters; the 5k subset includes 5,000 functions without additional length restrictions; and the full subset is the complete devign dataset. Each subset includes four subfolders: raw stores raw JSON format data, while input, tokens, and cpg likely correspond to preprocessed input, token representations, and code property graph (CPG) representations, respectively. The dataset is suitable for tasks such as code vulnerability detection, program analysis, or machine learning model training.
数据集概述
数据集名称
pr_vul_dataset
许可证
MIT
数据集组成
该数据集包含三个主要子集:
-
1k_1200
- 从目标中提取的1000个函数
- 每个函数长度限制在1200字符以内
-
5k
- 包含5000个函数
- 无额外长度限制
-
full
- 完整的Devign数据集
子文件夹结构
每个子集均包含以下四个子文件夹:
- raw:原始JSON格式数据集
- input:输入数据
- tokens:分词结果
- cpg:代码属性图数据




