跳到主要导航 跳到搜索 跳到主要内容

基于改动树检索的拉取请求描述生成方法

  • Beihang University
  • Nanjing University

科研成果: 期刊稿件 › 文章 › 同行评审

摘要

As the scale of open-source artificial intelligence (AI) systems expands, software development and maintenance become difficult. GitHub is one of the most important hosting platforms for open-source projects in the open-source community. Developers can easily participate in the development of open-source projects through pull request systems provided by GitHub. The description of pull requests can help the core teams of the project understand the content of the pull requests and the intention of the developers and promote the acceptance of the pull request. At present, a considerable proportion of developers do not provide a description for the pull request, which not only increases the workload of the core team but also is not conducive to the maintenance of the project in the future. This study proposes a method named PRSim to automatically generate descriptions for pull requests. This method extracts features including commit messages, comment updates, and code changes from pull requests, builds a syntax modification tree, and uses a tree-structured autoencoder to find other pull requests with similar code changes. Then, with the help of the description of a similar pull request, it summarizes commit messages and comment updates through an encoder-decoder network to generate the description of a new pull request. The experimental results show that the generation effect of PRSim reaches 36.47%, 27.69%, and 35.37% in terms of the F1 score of metrics Rouge-1, Rouge-2, and Rouge-L, respectively, which is 34.3%, 75.2%, and 55.3% higher than LeadCM, 16.2%, 22.9%, and 16.8% higher than Attn+PG+RL, and 23.5%, 72.0%, and 24.8% higher than PRHAN.

投稿的翻译标题Description Generation Method for Pull Requests Based on Retrieval of Modification Tree
源语言繁体中文
页(从-至)5065-5082
页数18
期刊Ruan Jian Xue Bao/Journal of Software
卷35
期11
DOI
出版状态已出版 - 2024

关键词

  • automatic summarization
  • open-source community
  • pull request
  • similarity calculation
  • syntax modification tree

学术指纹

探究 '基于改动树检索的拉取请求描述生成方法' 的科研主题。它们共同构成独一无二的学术指纹。

引用此