Year: 2019
Type: dissertation
Abstract: Software code review is a well-recognized approach to assure software quality.In recent years, the concept of tool-based code review is proposed which is a light variant of code inspection.It is popular both in the industry and the open source project.Due to the asynchronous collaboration of tool-based code review, developers risk submitting patches that attempt to achieve similar objectives ( defined as similar patches), which potentially causes extra efforts for both contributors and reviewers.Although researches on other duplicate software artifact and code review field exist, there is no prior work that explores the impact and detection of similar patches in tool-based code review.This study aims to understand the phenomenon of similar patches.Results of the exploratory study confirm that similar patches have an impact.Then I calculate textual similarity between similar patch pairs by using Jaccard index and Wordnet to test if textual features are important or not.Moreover, the results visually show that textual similarity has a relationship with the revisions of the patch.Finally, I construct detection model (TF-IDF and Filepath model) for similar patches.The evaluation shows that 50% -72% of similar patches can be found when we use the combination of title and description similarity.Overall, Filepath model outperforms than TF-IDF model.This thesis envision that the results of this study will lead to further work on the early detection of similar patches in code review.
Author: Dong Wang
Institution: Nara Institute of Science and Technology
Language: English
Subfield: Information Systems
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W2942152540
