arrow
Return

A code completion approach combining pointer network and Transformer-XL network

delete2025-02-14
delete0
PRE
AI
X
Xiangping Zhang *
刘
刘建勋 (Jianxun Liu)
T
Teng Long
H
Haize Hu
DOI:10.1007/s10489-025-06315-6delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Code completion is a crucial aspect of contemporary integrated development environments (IDEs), as it not only streamlines the software development process but also bolsters the quality of software products. By leveraging large-scale codes to learn the probability distribution among code token units, deep learning methods have demonstrated significant improvements in the accuracy of token unit recommendations. However, the efficacy of code completion employing deep learning is often compromised by information loss. To mitigate this issue, we introduce a novel code language model that incorporates both the pointer network and the Transformer-XL architecture to surpass the constraints of current approaches in code completion. Our proposed model accepts as input the original code snippet and its corresponding abstract syntax tree (AST), utilizing the Transformer-XL model as the foundational architecture for capturing long-term dependencies. Additionally, we incorporate a pointer network as an adjunct component to forecast Out-of-Vocabulary (OoV) words. Our approach has been rigorously evaluated on the authentic PY150 and JS150 datasets. The comparative experimental results demonstrate the effectiveness of our model in improving the accuracy of the code completion task at the token unit level.
Keywords:
Code completion
Transformer-XL
Pointer network
Out-of-vocabulary

Journal

Applied Intelligence cover
Applied Intelligence
IF:
3.5
Papers:
7.6K
Citations:
1.7W

Organization

H
hunan automotive engineering vocational university
Scholars:
58
Papers: 46
Citations: 0
Cited Papers

Cited Papers

Pre-eclampsia: Molecular events to biomarkers
err2017-04-01
err0
errOAAI
errKavita Sahai; Seema Saraswathy; Tribhuvan Pal Yadav; Devendra Arora; Manu Krishnan
errShare
errSave
Intelligent Code Completion with Bayesian Networks
err2015-12-02
err54
PREAI
errProksch, Sebastian; Lerch, Johannes; Mezini, Mira
errShare
errSave
Impurity effects on ionic-liquid-based supercapacitors
err2016-12-27
err0
errOAAI
errKun Liu; Cheng Lian; Douglas Henderson; Jianzhong Wu
errShare
errSave
THE DIALECTICS OF SPATIAL ANALYSIS
err2006-05-29
err0
PREAI
errGunnar Olsson
errShare
errSave
Comparison of sub‐ versus suprafascially raised anterolateral thigh free flaps with regard to donor‐site morbidity, function and aesthetics
err2017-11-20
err0
PREAI
errSebastian Fischer; Yannick Diehm; Christoph Hirche; Thomas Kremer; Adrien Daigeler; Ulrich Kneser; J. Frederick Hernekamp
errShare
errSave
On the Naturalness of Software
err2016-04-26
err164
PREAI
errHindle, Abram; Barr, Earl T.; Gabel, Mark; Su, Zhendong; Devanbu, Premkumar
errShare
errSave
Growth and production of the African catfish, Clarias lazera (C. & V.)
err1983-08-01
err0
PREAI
errH. Hogendoorn; J.A.J. Jansen; W.J. Koops; M.A.M. Machiels; P.H. van Ewijk; J.P. van Hees
errShare
errSave
researcher View more