kirancodes.me
To Proof Maintenance & Beyond!

Boosting Neural Commit Message Generation with Code Semantic Analysis

Shuyao Jiang

Abstract

It has been long suggested that commit messages can greatly facilitate code comprehension. However, developers may not write good commit messages in practice. Neural machine translation (NMT) has been suggested to automatically generate commit messages. Despite the efforts in improving NMT algorithms, the quality of the generated commit messages is not yet satisfactory. This paper, instead of improving NMT algorithms, suggests that proper preprocessing of code changes into concise inputs is quite critical to train NMT. We approach it with semantic analysis of code changes. We collect a real-world dataset with 50k+ commits of popular Java projects, and verify our idea with comprehensive experiments. The results show that preprocessing inputs with code semantic analysis can improve NMT significantly. This work sheds light to how to apply existing DNNs designed by the machine learning community, e.g., NMT models, to complete software engineering tasks.

BibTeX
@inproceedings{Jiang:ASE19,
  author    = {Shuyao Jiang},
  title     = {Boosting Neural Commit Message Generation with Code Semantic Analysis},
  booktitle = {ASE},
  pages     = {1280--1282},
  publisher = {{IEEE}},
  year      = {2019},
}

Related papers