arrow
返回

Automated Commit Intelligence by Pre-training

delete2024-07-01
delete0
PRE
AI
S
Shangqing Liu
Y
Yanzhou Li
X
Xiaofei Xie
W
Wei Ma *
G
Guozhu Meng
刘
刘洋 (Yang Liu)
DOI:10.1145/3674731delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
GitHub commits, which record the code changes with natural language messages for description, play a critical role in software developers' comprehension of software evolution. Due to their importance in software development, several learning-based works are conducted for GitHub commits, such as commit message generation and security patch identification. However, most existing works focus on customizing specialized neural networks for different tasks. Inspired by the superiority of code pre-trained models, which has confirmed their effectiveness across different downstream tasks, to promote the development of open-source software community, we first collect a large-scale commit benchmark including over 7.99 million commits across 7 programming languages. Based on this benchmark, we present CommitBART, a pre-trained encoder- decoder Transformer model for GitHub commits. The model is pre-trained by three categories (i.e., denoizing objectives, cross-modal generation, and contrastive learning) for six pre-training tasks to learn commit fragment representations. Our model is evaluated on one understanding task and three generation tasks for commits. The comprehensive experiments on these tasks demonstrate that CommitBART significantly outperforms previous pre-trained works for code. Further analysis also reveals that each pre-training task enhances the model performance.
Keyword:
GitHub commit
code pre-training model

期刊

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
论文数:
1.2K
被引数:
3.4K

机构

S
Singapore Management University
学者数:
1.5K
论文数: 2.5K
被引数: 3.5K
N
Nanyang Technological University
学者数:
4.9W
论文数: 4.8W
被引数: 8.1W
引用论文

引用论文

CODEEDITOR: Learning to Edit Source Code with Pre-trained Models
err2023-09-30
err15
errOAAI
errLi, Jia; Li, Ge; Li, Zhuo; Jin, Zhi; Hu, Xing; Zhang, Kechi; Fu, Zhiyi
err分享
err收藏
SPI: Automated Identification of Security Patches via Commits
err2021-09-28
err28
errOAAI
errZhou, Yaqin; Siow, Jing Kai; Wang, Chenyu; Liu, Shangqing; Liu, Yang
err分享
err收藏
err分享
err收藏