kirancodes.me
To Proof Maintenance & Beyond!

CC2Vec: distributed representations of code changes

Thong Hoang, Hong Jin Kang, David Lo, Julia Lawall

Abstract

Existing work on software patches often use features specific to a single task. These works often rely on manually identified features, and human effort is required to identify these features for each task. In this work, we propose CC2Vec, a neural network model that learns a representation of code changes guided by their accompanying log messages, which represent the semantic intent of the code changes. CC2Vec models the hierarchical structure of a code change with the help of the attention mechanism and uses multiple comparison functions to identify the differences between the removed and added code.

BibTeX
@inproceedings{Hoang-al:ICSE20,
  author    = {Thong Hoang and
               Hong Jin Kang and
               David Lo and
               Julia Lawall},
  title     = {{CC2Vec:} distributed representations of code changes},
  booktitle = {ICSE},
  pages     = {518--529},
  publisher = {{ACM}},
  year      = {2020},
}

Related papers