DeepClone: Modeling Clones to Generate Code Predictions

ICSR(2020)

引用 7|浏览12
暂无评分
摘要
During software development, programmers often tend to reuse the code for common functionalities, available in other source code repositories. This activity helps them to reduce time and effort to develop code, instead of building it from scratch. Code clones are candidates for reuse in an exploratory or rapid development, as they represent often repeated functionality in software systems. To facilitate code clone reuse, we propose a novel approach, Deep-Clone, where we utilize a deep learning algorithm for modeling code clones and predicting the next possible set of tokens (up to the cloned method body) based on the user input so far. The generated predictions aim to potentially help developers to write code rapidly with minimum tuning of values later on. DeepClone applies natural language processing techniques to learn from a large code corpus (the BigCloneBench dataset), and generates code tokens (full clone methods where applicable) using the model learned. We have quantitatively evaluated our solution to assess (1) our model's quality and its accuracy in token prediction, and (2) its performance and effectiveness in clone method prediction. With a high quality and accurate model as the foundation, we further discuss scenarios for exploiting our approach.
更多
查看译文
关键词
Language modeling, Deep learning, Code clone, Code prediction
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要