Replication Package for the Paper: "An Empirical Analysis of the Manual Detection of Code Smells via Code Review"
<p>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.</p> <p> </p> <p><strong>1. "data.zip" contains the following three folders: </strong></p> <p> </p> <p><strong>1). data folder</strong></p> <p>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.</p> <p> </p> <p><strong>2). scripts folder</strong></p> <p>The scripts folder contains the Python script that was used to search for code smell terms and the list of code smell terms.</p> <ul> <li><em>keywords.txt</em> contains the keywords associated with code smells, such as "smell, duplication, and dead".</li> <li><em>get_changes.py</em> is used for getting code changes from OpenStack.</li> <li><em>get_comments.py</em> is used for getting review comments for each code change.</li> <li><em>keywords_search.py</em> is used for searching review comments that contain at least one keyword.</li> <li><em>keywords_improve.py</em> is used for improving the keyword-based mining approach.</li> <li><em>tools.py</em> is used for supporting the process of keywords improving.</li> </ul> <p> </p> <p><strong>3). project folder</strong></p> <p>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.</p> <ul> <li><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.</li> <li><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.</li> </ul> <p> </p> <p><strong>2. Keywords associated with code smells.pdf</strong></p> <p>This file contains the final set of keywords associated 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.</p>
ShareScore
12/100
Overall dataset sharing score
Score breakdown
These five areas show where the dataset supports — or may limit — practical reuse.
- Stewardship
- 8
- Harmonization
- 4
- Access
- 0
- Reuse readiness
- 0
- Engagement
- 0