Duplicate pull request detection: when time matters

Qingye Wang, Bowen Xu, Xin Xia, Ting Wang, Shanping Li

Research output: Chapter in Book/Report/Conference proceedingConference PaperResearch

Abstract

In open source communities (e.g., GitHub), developers frequently submit pull requests to fix bugs or add new features during development process. Since the process of pull request is uncoordinated and distributed, it causes massive duplication. Usually, only the first pull request qualified by reviewers can be merged to the main branch of the repository, and the others are regarded as duplication by maintainers. Since the duplication largely aggravates workloads of project reviewers and maintainers, the evolutionary process of open source repositories is delayed. To identify the duplicate pull requests automatically, Ren et al. proposed a state-of-the-art approach that models a pull request by nine features and determine whether a given request is duplicate with the other existing requests or not. Nevertheless, we notice that their approach overlooked the time factor which is a significant feature for the task. In this study, we investigate the influence of time factor and improve the pull request representation. We assume that two pull requests are more likely duplicate when their created time are close to each other. We verify the assumption based on 26 open source repositories from GitHub with over 100,000 pairs of pull requests. We integrate the time feature to the nine features proposed by Ren et al. and the experimental results show that it can substantially improve the performance of Ren et al.'s work by 14.36% and 11.93% in terms of F1-score@1 and F1-score@5, respectively.

Original languageEnglish
Title of host publication11th Asia-Pacific Symposium on Internetware, Internetware 2019
EditorsHausi Muller, Gang Huang
Place of PublicationNew York NY USA
PublisherAssociation for Computing Machinery (ACM)
Number of pages10
ISBN (Electronic)9781450377010
DOIs
Publication statusPublished - 2019
EventAsia-Pacific Symposium on Internetware 2019 - Fukuoka, Japan
Duration: 28 Oct 201929 Oct 2019
Conference number: 11th
https://internetware2019.github.io/

Conference

ConferenceAsia-Pacific Symposium on Internetware 2019
Abbreviated titleInternetware 2019
CountryJapan
CityFukuoka
Period28/10/1929/10/19
Internet address

Keywords

  • Duplicate Pull Request
  • GitHub
  • Time Factor

Cite this