@inproceedings{1bbc47a625e94e37b94090dbea788996,
title = "DeepClone: Modeling Clones to Generate Code Predictions",
abstract = "Programmers often reuse code from source code repositories to reduce the development effort. Code clones are candidates for reuse in exploratory or rapid development, as they represent often repeated functionality in software systems. To facilitate code clone reuse, we propose DeepClone, a novel approach utilizing a deep learning algorithm for modeling code clones to predict the next set of tokens (possibly a complete clone method body) based on the code written so far. The predicted tokens require minimal customization to fit the context. DeepClone applies natural language processing techniques to learn from a large code corpus, and generates code tokens using the model learned. We have quantitatively evaluated our solution to assess (1) our model{\textquoteright}s quality and its accuracy in token prediction, and (2) its performance and effectiveness in clone method prediction. We also discuss various application scenarios for our approach.",
keywords = "Code clone, Code prediction, Deep learning, Language modeling",
author = "Muhammad Hammad and {\"O}nder Babur and {Abdul Basit}, Hamid and Brand, {Mark Van Den}",
year = "2020",
month = dec,
day = "1",
doi = "10.1007/978-3-030-64694-3_9",
language = "English",
isbn = "9783030646936",
volume = "12541",
series = "Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)",
publisher = "Springer",
pages = "135--151",
editor = "{Ben Sassi}, Sihem and St{\'e}phane Ducasse and Hafedh Mili",
booktitle = "Reuse in Emerging Software Engineering Practices - 19th International Conference on Software and Systems Reuse, ICSR 2020, Proceedings",
address = "Germany",
}