返回
COMET: Generating commit messages using delta graph context representation
DOI:10.1016/j.jss.2024.112307.png)
摘要
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总结
对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。
期刊
IF:
4.1
论文数:
5.5K
被引数:
1.0W
机构
引用论文
So what if ChatGPT wrote it? Multidisciplinary perspectives on opportunities, challenges and implications of generative conversational AI for research, practice and policy如果ChatGPT写了呢?多学科视角的机遇,挑战和生成会话AI对研究,实践和政策的影响
CoreGen: Contextualized Code Representation Learning for Commit Message Generation
NEUROCOMPUTING
IF6.5

