
A review on statistical language and neural network based code completion
- 1 Christ Church Grammar School
* Author to whom correspondence should be addressed.
Abstract
Code completion, also referred to as intellisense, is a prevalent feature of Integrated Development Environments (IDEs) and code editors. It aids developers by automatically recommending and inserting code segments, variable names, and method names, among other things. With the accelerated growth of the software industry and the process of digitalization in recent years, the demand for software engineers has reached a record-high level. Thus, the advancement of code completion is encouraged and has become a popular topic in software engineering. This paper examines and summarizes the development of a statistical language and neural network-based code completion system. The main contents consist of introducing the concepts of code completion system, summarizing the general process of code completion and the evaluation metrics used for performance benchmarking, reviewing and summarizing the existing work conducted on statistical language approach and neural network approach respectively, as well as the limitations and challenges of existing code completion method, and finally forecasting the future development of code completion techniques.
Keywords
code generation, code completion, statistical language model, neural network
[1]. Abram Hindle, E. T. (2012). On the Naturalness of Software. IEEE, In: Proc. of the 2012 34th Int’l Conf. on Software Engineering (ICSE).
[2]. Lalit Bahl, F. J. (1983). A maximum likelihood approach to continuous speech recognition. IEEE Trans. on Pattern Analysis & Machine Intelligence, 5(2):179−190.
[3]. Yoshua Bengio, R. D. (2003). A Neural Probabilistic Language Model. Journal of Machine Learning Research, 3(6):1137−1155.
[4]. Christopher Manning, H. S. (1999). Foundations of Statistical Natural Language Processing. The MIT Press.
[5]. Nguyen, T. T. (2013). A statistical semantic language model for source code. ESEC/FSE.
[6]. Raychev V, V. M. (2014). Code completion with statistical language models. ACM SIGPLAN Notices, 49(6):419−428.
[7]. Nicolas Bettenburg, M. N. (2015). Towards improving statistical modeling of software engineering data: think locally, act globally! Empir Software Eng, 20:294–335.
[8]. Son Nguyen, T. N. (2019). Combining Program Analysis and Statistical Language Model for Code Statement Completion. Proceedings of the 34th IEEE/ACM International Conference on Automated Software Engineering Conference (ASE 2019).
[9]. Martin White, C. V.-V. (2015). Toward Deep Learning Software Repositories. 2015 IEEE/ACM 12th Working Conference on Mining Software Repositories (MSR), IEEE.
[10]. Oriol Vinyals, M. F. (2015). Pointer Networks. Advances in Neural Information Processing Systems 28 (NIPS 2015).
[11]. Avishkar Bhoopchand, T. R. (2016). LEARNING PYTHON CODE SUGGESTION WITH A SPARSE POINTER NETWORK. arXiv:1611.08307.
[12]. Seohyun Kim, J. Z. (2021). Code Prediction by Feeding Trees to Transformers. IEEE, In 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE) (pp. 150-162).
[13]. Matteo Ciniselli, N. C. (2021). An Empirical Study on the Usage of BERT Models for Code Completion. IEEE, In 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE) (pp. 150-162).
[14]. Tony Beltramelli. (2017). pix2code: Generating Code from a Graphical User Interface Screenshot. arXiv:1705.07962.
[15]. Miltiadis Allamanis, M. B. (2017). Learning to represent programs with graphs. arXiv preprint arXiv:1711.00740.
[16]. Jian Li, Y. W. (2018). Code Completion with Neural Attention and Pointer Networks. arXiv:1711.09573v2.
[17]. Georgios Nikitopoulos, K. D. (2021). CrossVul: A Cross-Language Vulnerability Dataset with Commit Data. ESEC/FSE2021.
[18]. Tao Yu, R. Z. (2018). Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task. arXiv:1809.08887v5 cnncs.CL].
[19]. Frank F. Xu, B. V. (2022). In-IDE Code Generation from Natural Language: Promise and Challenges. ACM Trans. Softw.Eng. Methodol, vol. 31, no. 2, pp. 29:1–29:47.
[20]. Eman Abdullah AlOmar, A. I. (2021). AntiCopyPaster: Extracting Code Duplicates As Soon As They Are Introduced in the IDE. arXiv:2112.15230v2 [cs.SE].
[21]. Pengcheng Yin, G. N. (2017). A Syntactic Neural Model for General-Purpose Code Generation. Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, pages 440–450.
[22]. Pengcheng Yin, G. N. (2018). TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generation. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing (System Demonstrations), pages 7-12.
[23]. Maxim Rabinovich, M. S. (2017). Abstract Syntax Networks for Code Generation and Semantic Parsing. Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, pages 1139–1149.
[24]. Ashish Vaswani, N. S. (2017). Attention is all you need. Advances in neural information processing systems, vol. 30.
Cite this article
Gao,Z. (2023). A review on statistical language and neural network based code completion. Applied and Computational Engineering,22,233-239.
Data availability
The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.
Disclaimer/Publisher's Note
The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of EWA Publishing and/or the editor(s). EWA Publishing and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
About volume
Volume title: Proceedings of the 5th International Conference on Computing and Data Science
© 2024 by the author(s). Licensee EWA Publishing, Oxford, UK. This article is an open access article distributed under the terms and
conditions of the Creative Commons Attribution (CC BY) license. Authors who
publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons
Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this
series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series's published
version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial
publication in this series.
3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and
during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See
Open access policy for details).