Replication Package for the Paper: "An Empirical Analysis of the Manual Detection of Code Smells via Code Review"
收藏资源简介:
This repository contains the data and results from the paper "An Empirical Analysis of the Manual Detection of Code Smells via Code Review" submitted to SANER 2021. <strong>1. "data.zip" file contains the following three folders: </strong> <strong>1). data folder</strong> The data folder contains the retrieved 1,174 reviews that discuss code smells. Each review includes four parts: Code Change URL, Code Smell, Code Smell Discussion, and Source Code URL. <strong>2). scripts folder</strong> The scripts folder contains the Python script that was used to search for code smell terms and the list of code smell terms. <em>keywords.txt</em> contains the keywords keywords asociated with code smells, such as "smell, duplication, and dead". <em>get_changes.py</em> is used for getting code changes from OpenStack. <em>get_comments.py</em> is used for getting review comments for each code change. <em>keywords_search.py</em> is used for searching review comments that contain at least one keyword. keywords_improve.py is used for improving the keyword-based mining approach. tools.py is used for supporting the process of keywords improving. <strong>3). project folder</strong> The project folder contains the MAXQDA project files. The files can be opened by MAXQDA 12 or higher versions, which are available at https://www.maxqda.com/ for download. You may also use the free 14-day trial version of MAXQDA 2018, which is available at https://www.maxqda.com/trial for download. <em>Data Labeling & Encoding for RQ2.mx12</em> is the results of data labeling and encoding for RQ2, which were analyzed by the MAXQDA tool. <em>Data Labeling & Encoding for RQ3.mx12</em> is the results of data labeling and encoding for RQ3, which were analyzed by the MAXQDA tool. <strong>2. Keywords associated with code smells.pdf</strong> This file contains the final set of keywords asociated with code smells that we identified by following the systematic approach proposed by Bosu and his colleagues in their paper: Identifying the Characteristics of Vulnerable Code Changes: An Empirical Study, FSE 2014.



