CSQ: A synthesized code smells and quality dataset
收藏资源简介:
The dataset contains synthesized code smells, quality, source code metrics information of 60 versions under 10 different repositories. The dataset is extracted into 3 levels: (1) Class (2) Method (3) Package. The dataset is created upon analyzing 9,420,246 lines of code and 173,237 classes. The provided dataset contains three folders: codesmells, quality attributes, synthesized and four associated Comma Separated Values (CSV) files: repositories.csv, versions.csv, codesmells.csv and attribute − details.csv. The first file (repositories.csv) contains general information (repository name, URL, number of commits, stars, forks, etc.) to understand the size, popularity, and maintainability. File versions.csv contains general information (version unique ID, number of classes, packages, external classes, external packages, version repository link) to provide an overview of versions and how over time the repository continues to grow. File attribute-details.csv contains detailed information (attribute name, attribute short form, category, and description) about extracted static analysis metrics and code quality attributes. The short form is used in the real dataset as a unique identifier to show value for packages, classes, and methods. File codesmells.csv provides the information (Rule, Code Smell, Rule Description) of code smells analyzed from each version.
本数据集包含10个不同代码仓库下60个版本的合成代码坏味(Code Smell)、代码质量及源代码度量指标信息。本数据集按三个层级进行提取:(1) 类(Class) (2) 方法(Method) (3) 包(Package)。该数据集基于对9,420,246行代码与173,237个类的分析构建而成。本次提供的数据集包含三个子文件夹:codesmells、quality attributes、synthesized,以及四个配套逗号分隔值(Comma Separated Values, CSV)文件:repositories.csv、versions.csv、codesmells.csv与attribute-details.csv。其中repositories.csv收录仓库通用信息(仓库名称、URL、提交次数、星标数、复刻数等),用于体现仓库的规模、受欢迎程度与可维护性。versions.csv收录版本通用信息(版本唯一ID、类数量、包数量、外部类数量、外部包数量、版本仓库链接),用于展示各版本概况以及仓库随时间的迭代增长情况。attribute-details.csv收录提取得到的静态分析度量指标与代码质量属性的详细信息(属性名称、属性缩写、分类与描述),其中缩写将作为唯一标识符在真实数据集中用于标识包、类与方法的对应指标值。codesmells.csv提供各版本分析得到的代码坏味相关信息(规则、代码坏味名称、规则描述)。




