DeepClone: Modeling Clones to Generate Code Predictions

Onderzoeksoutput: Hoofdstuk in Boek/Rapport/CongresprocedureConferentiebijdrageAcademicpeer review

11 Citaten (Scopus)

Samenvatting

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’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.

Originele taal-2Engels
TitelReuse in Emerging Software Engineering Practices
Subtitel19th International Conference on Software and Systems Reuse, ICSR 2020, Hammamet, Tunisia, December 2–4, 2020, Proceedings
RedacteurenSihem Ben Sassi, Stéphane Ducasse, Hafedh Mili
UitgeverijSpringer
Pagina's135-151
Aantal pagina's17
ISBN van elektronische versie978-3-030-64694-3
ISBN van geprinte versie978-3-030-64693-6
DOI's
StatusGepubliceerd - 1 dec. 2020

Publicatie series

NaamLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume12541 LNCS
ISSN van geprinte versie0302-9743
ISSN van elektronische versie1611-3349

Vingerafdruk

Duik in de onderzoeksthema's van 'DeepClone: Modeling Clones to Generate Code Predictions'. Samen vormen ze een unieke vingerafdruk.

Citeer dit