Treffer: C# Dataset of Data Class, Feature Envy and Refused Bequest code smells

Title:
C# Dataset of Data Class, Feature Envy and Refused Bequest code smells
Publisher Information:
Zenodo
Publication Year:
2024
Collection:
Zenodo
Document Type:
dataset
Language:
English
DOI:
10.5281/zenodo.10475432
Rights:
Creative Commons Attribution 4.0 International ; cc-by-4.0 ; https://creativecommons.org/licenses/by/4.0/legalcode
Accession Number:
edsbas.89997B53
Database:
BASE

Weitere Informationen

This dataset includes open-source projects written in C# programming language, annotated for the presence of Data Class, Feature Envy and Refused Bequest code smells. Each code snippet was manually annotated by at least two annotators. The dataset contains three excel datasheets: DataSet_Data_Class.xlsx - C# classes annotated for the Data Class code smell DataSet_Feature_Envy.xlsx - C# methods annotated for the Feature Envy code smell DataSet_Refused_Bequest.xlsx - C# classes annotated for the Refused Bequest code smell The columns in the datasheet represent: Code Snippet ID - the full name of the code snippet. for classes, this is the package/namespace name followed by the class name. The full name of inner classes also contains the names of any outer classes (e.g., namespace.subnamespace.outerclass.innerclass). for methods, this is the full name of the class and the method's signature (e.g., namespace.class.method(param1Type, param2Type)) Link - the Github link to the code snippet, including the commit and the start and end LOC. Code Smell - code smell for which the code snippet is examined (Data Class, Feature Envy or Refused Bequest) Project Link - the link to the version of the code repository that was annotated Metrics – a list of metrics for the code snippet, calculated by our platform. Our dataset provides 31 class-level metrics for Data Class and Refused Bequest detection and 19 method-level metrics for Feature Envy detection. The list of metrics and their definitions is available here. Final annotation – a single severity score calculated by a majority vote. Annotators – each annotator's (1, 2, or 3) assigned severity score. To help guide their reasoning for evaluating the presence and the severity of a code smell, three annotators independently annotated whether the considered heuristics apply to an evaluated code snippet. We provide these results in three separate excel datasheets: DataClass_Heuristics.xlsx - C# classes annotated for the presence of heuristics relevant for the Data Class code smell. ...