计算机科学 > 软件工程
[提交于 2020年3月12日]
标题:CC2Vec: Distributed Representations of Code Changes
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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. To evaluate if CC2Vec can produce a distributed representation of code changes that is general and useful for multiple tasks on software patches, we use the vectors produced by CC2Vec for three tasks: log message generation, bug fixing patch identification, and just-in-time defect prediction. In all tasks, the models using CC2Vec outperform the state-of-the-art techniques.
提交历史
来自:Thong Hoang[v1] 2020年3月12日 星期四 05:03:46 UTC