计算机科学 > 软件工程
[提交于 2019年7月18日]
标题:Logical Segmentation of Source Code
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Many software analysis methods have come to rely on machine learning approaches. Code segmentation - the process of decomposing source code into meaningful blocks - can augment these methods by featurizing code, reducing noise, and limiting the problem space. Traditionally, code segmentation has been done using syntactic cues; current approaches do not intentionally capture logical content. We develop a novel deep learning approach to generate logical code segments regardless of the language or syntactic correctness of the code. Due to the lack of logically segmented source code, we introduce a unique data set construction technique to approximate ground truth for logically segmented code. Logical code segmentation can improve tasks such as automatically commenting code, detecting software vulnerabilities, repairing bugs, labeling code functionality, and synthesizing new code.
提交历史
来自:Ben Gelman[v1] 2019年7月18日 星期四 18:23:26 UTC