A Naive Approach for Automatic Line-level Code Completion
2023 IEEE 9th International Women in Engineering (WIE) Conference on Electrical and Computer Engineering (WIECON-ECE)(2024)
摘要
Coding is an integral aspect of programming. A programmer can automatically
complete a code fragment after writing a few tokens, and the process of
automatic completion is known as code completion. Several research studies on
code completion have previously been conducted for method body completion and
method parameter completion. However, this fundamental study explores the
automatic completion of any program statement that might not even be part of a
method.
The goal is to provide suggestions to the programmer for completing code
throughout the codebase by identifying and analyzing code similarities. The
proposed methodology can be regarded as a fundamental framework for automated
code completion. From the investigation of hundreds of revisions of four
subject systems written in C and Java, it is observed that the proposed method
can automatically complete around 22
accuracy of 87
software development time. The empirical analysis further demonstrates that the
approach can be used with programming language neutrality.
The study concludes by illustrating that taking 10 characters as prefixes
before invoking completion provides maximum precision.
更多查看译文
关键词
Code Completion,Programmer,Line-level,Similarities,Suggestions,Automatic,Software
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要