arrow
返回

COMET: Generating commit messages using delta graph context representation

delete2025-04-01
delete0
delete
OA
AI
A
Abhinav Reddy Mandli
S
Saurabhsingh Rajput *
T
Tushar Sharma
DOI:10.1016/j.jss.2024.112307delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Commit messages explain code changes in a commit and facilitate collaboration among developers. Several commit message generation approaches have been proposed; however, they exhibit limited success in capturing the context of code changes. We propose COMET (Context-Aware Commit Message Generation), a novel approach that captures context of code changes using a graph-based representation and leverages a transformer- based model to generate high-quality commit messages. Our proposed method utilizes delta graph that we developed to effectively represent code differences. We also introduce a customizable quality assurance module to identify optimal messages, mitigating subjectivity in commit messages. Experiments show that COMET outperforms state-of-the-art techniques in terms of BLEU-norm and METEOR metrics while being comparable in terms of ROUGE-L. Additionally, we compare the proposed approach with the popular gpt-3.5-turbo model, along with gpt-4-the most capable GPT model, over zero-shot, one-shot, and multi-shot settings. We found COMET outperforming the GPT models, on five and four metrics respectively and provide competitive results with the two other metrics. The study has implications for researchers, tool developers, and software developers. Software developers may utilize COMET to generate context-aware commit messages. Researchers and tool developers can apply the proposed delta graph technique in similar contexts, like code review summarization.
Keyword:
Commit message generation
Large language models
Code property graphs
Graph neural networks
Convolutional neural networks
Code change representation
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

err分享
err收藏
CoreGen: Contextualized Code Representation Learning for Commit Message Generation
err2021-10-01
err25
errOAAI
errNie, Lun Yiu; Gao, Cuiyun; Zhong, Zhicong; Lam, Wai; Liu, Yang; Xu, Zenglin
err分享
err收藏
Polarized message-passing in graph neural networks图神经网络中的极化消息传递
err2024-06-01
err6
errOAAI
errHe, Tiantian; Liu, Yang; Ong, Yew-Soon; Wu, Xiaohu; Luo, Xin
err分享
err收藏
err分享
err收藏

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.5K
被引数:
1.0W

机构

D
Dalhousie University
学者数:
950
论文数: 450
被引数: 1.2W
引用论文

引用论文

HTK versus UW Solution for Myocardial Protection during Moderate Hypothermia
err1997-01-01
err0
PREAI
errI.M. Kober; R.P. Obermayr; N. Ehsani; B. Schneider; P.G. Spieckermann
err分享
err收藏
So what if ChatGPT wrote it? Multidisciplinary perspectives on opportunities, challenges and implications of generative conversational AI for research, practice and policy如果ChatGPT写了呢?多学科视角的机遇,挑战和生成会话AI对研究,实践和政策的影响
err2023-08-01
err1.0K
errOAAI
errDwivedi, Yogesh K.; Kshetri, Nir; Hughes, Laurie; Slade, Emma Louise; Jeyaraj, Anand; Kar, Arpan Kumar; Baabdullah, Abdullah M.; Koohang, Alex; Raghavan, Vishnupriya; Ahuja, Manju; Albanna, Hanaa; Albashrawi, Mousa Ahmad; Al-Busaidi, Adil S.; Balakrishnan, Janarthanan; Barlette, Yves; Basu, Sriparna; Bose, Indranil; Brooks, Laurence; Buhalis, Dimitrios; Carter, Lemuria; Chowdhury, Soumyadeb; Crick, Tom; Cunningham, Scott W.; Davies, Gareth H.; Davison, Robert M.; De, Rahul; Dennehy, Denis; Duan, Yanqing; Dubey, Rameshwar; Dwivedi, Rohita; Edwards, John S.; Flavian, Carlos; Gauld, Robin; Grover, Varun; Hu, Mei-Chih; Janssen, Marijn; Jones, Paul; Junglas, Iris; Khorana, Sangeeta; Kraus, Sascha; Larsen, Kai R.; Latreille, Paul; Laumer, Sven; Malik, F. Tegwen; Mardani, Abbas; Mariani, Marcello; Mithas, Sunil; Mogaji, Emmanuel; Nord, Jeretta Horn; O'Connor, Siobhan; Okumus, Fevzi; Pagani, Margherita; Pandey, Neeraj; Papagiannidis, Savvas; Pappas, Ilias O.; Pathak, Nishith; Pries-Heje, Jan; Raman, Ramakrishnan; Rana, Nripendra P.; Rehm, Sven-Volker; Ribeiro-Navarrete, Samuel; Richter, Alexander; Rowe, Frantz; Sarker, Suprateek; Stahl, Bernd Carsten; Tiwari, Manoj Kumar; van der Aalst, Wil; Venkatesh, Viswanath; Viglia, Giampaolo; Wade, Michael; Walton, Paul; Wirtz, Jochen; Wright, Ryan
err分享
err收藏
CoreGen: Contextualized Code Representation Learning for Commit Message Generation
err2021-10-01
err25
errOAAI
errNie, Lun Yiu; Gao, Cuiyun; Zhong, Zhicong; Lam, Wai; Liu, Yang; Xu, Zenglin
err分享
err收藏
Enzymatic analysis of total- and HDL-cholesterol: Comparison with the standardized Liebermann-Burchard method used by the lipid research clinics program
err1988-06-01
err0
errOAAI
errPaul S. Bachorik; Donna G. Virgil; Carol Derby; David Widman; Robert McMahon; Robinson P. Fulwood; Trena Ezzati
err分享
err收藏
Poorer self-rated health in residential areas with limited healthcare supply
err2014-02-12
err0
PREAI
errSigríður Haraldsdóttir; Unnur A Valdimarsdóttir; Sigurður Guðmundsson
err分享
err收藏
err分享
err收藏
A survey on machine learning techniques applied to source code机器学习技术在源代码中的应用综述
err2024-03-01
err16
errOAAI
errSharma, Tushar; Kechagia, Maria; Georgiou, Stefanos; Tiwari, Rohit; Vats, Indira; Moazen, Hadi; Sarro, Federica
err分享
err收藏
Human Leukocyte Antigen-G Inhibits Human Coronary Artery Smooth Muscle Cell Proliferation
err2013-04-01
err0
errOAAI
errA.G. Mociornita; L.C. Tumiati; P.C. Papageorgiou; L. Grosman; A. Ghashghai; H.J. Ross; R.-K. Li; D.H. Delgado; V. Rao
err分享
err收藏
err分享
err收藏
err分享
err收藏
学者 查看更多内容