A Naive Approach for Automatic Line-level Code Completion

Coding is an integral aspect of programming. A programmer can automatically complete a code fragment after writing a few tokens and the process of automatically completing a code fragment is known as code completion. A number of research on code completion have previously been conducted for method b...

Full description

Saved in:
Bibliographic Details
Published inIEEE International WIE Conference on Electrical and Computer Engineering (Online) pp. 137 - 142
Main Authors Naznin, Shamima, Mondal, Manishankar
Format Conference Proceeding
LanguageEnglish
Published IEEE 25.11.2023
Subjects
Online AccessGet full text
ISSN2837-8245
DOI10.1109/WIECON-ECE60392.2023.10456476

Cover

Abstract Coding is an integral aspect of programming. A programmer can automatically complete a code fragment after writing a few tokens and the process of automatically completing a code fragment is known as code completion. A number of research on code completion have previously been conducted for method body completion and method parameter completion. However, this fundamental study explores the idea of automatically completing any program statement that might not even be part of a method. The goal of this study is to provide a number of suggestions to the programmer for completing code throughout the codebase by identifying and analyzing code similarities. The proposed methodology of this study can be regarded as a fundamental framework for code completion in the field of 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% of code statements with an average accuracy of 87% that a programmer writes during development which will accelerate software development time. This paper's empirical analysis further demonstrated that the proposed 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.
AbstractList Coding is an integral aspect of programming. A programmer can automatically complete a code fragment after writing a few tokens and the process of automatically completing a code fragment is known as code completion. A number of research on code completion have previously been conducted for method body completion and method parameter completion. However, this fundamental study explores the idea of automatically completing any program statement that might not even be part of a method. The goal of this study is to provide a number of suggestions to the programmer for completing code throughout the codebase by identifying and analyzing code similarities. The proposed methodology of this study can be regarded as a fundamental framework for code completion in the field of 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% of code statements with an average accuracy of 87% that a programmer writes during development which will accelerate software development time. This paper's empirical analysis further demonstrated that the proposed 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.
Author Naznin, Shamima
Mondal, Manishankar
Author_xml – sequence: 1
  givenname: Shamima
  surname: Naznin
  fullname: Naznin, Shamima
  email: shamimanaznin21@gmail.com
  organization: Bangladesh University of Engineering and Technology,Department of Computer Science and Engineering,Dhaka,Bangladesh
– sequence: 2
  givenname: Manishankar
  surname: Mondal
  fullname: Mondal, Manishankar
  email: mshankar@cseku.ac.bd
  organization: Khulna University,Computer Science and Engineering Discipline,Khulna,Bangladesh
BookMark eNo1j0tLw0AUhUdRsNb-AxfZuEy9d6bzuMsQohZCu1FclmlyB0fyIo0F_70BdXPO4oPzcW7FVdd3LMQDwhoR6PF9W-T7XVrkhQFFci1BqjXCRpuNNRdiRZac0qCQjMZLsZBO2dTJjb4Rq9PpE2BG1hpUC0FZsvPxzEk2DGPvq48k9GOSfU1966dYJWXsOG34zE2S9zXP0Q4NT7Hv7sR18M2JV3-9FG9PxWv-kpb7522elWlEpCkN5NE7tm7WaS_piBxAO5KWwRhZWWQVPKDmmgMZsP4YqPbElZMaalZLcf-7G5n5MIyx9eP34f-t-gHL6kvX
ContentType Conference Proceeding
DBID 6IE
6IL
CBEJK
RIE
RIL
DOI 10.1109/WIECON-ECE60392.2023.10456476
DatabaseName IEEE Electronic Library (IEL) Conference Proceedings
IEEE Proceedings Order Plan All Online (POP All Online) 1998-present by volume
IEEE Xplore All Conference Proceedings
IEEE Electronic Library (IEL)
IEEE Proceedings Order Plans (POP All) 1998-Present
DatabaseTitleList
Database_xml – sequence: 1
  dbid: RIE
  name: IEEE Electronic Library (IEL)
  url: https://proxy.k.utb.cz/login?url=https://ieeexplore.ieee.org/
  sourceTypes: Publisher
DeliveryMethod fulltext_linktorsrc
EISBN 9798350319651
EISSN 2837-8245
EndPage 142
ExternalDocumentID 10456476
Genre orig-research
GroupedDBID 6IE
6IF
6IK
6IL
6IN
AAJGR
ABLEC
ADZIZ
ALMA_UNASSIGNED_HOLDINGS
BEFXN
BFFAM
BGNUA
BKEBE
BPEOZ
CBEJK
CHZPO
IEGSK
IPLJI
OCL
RIE
RIL
ID FETCH-LOGICAL-i119t-f9a1a8e786135a29b1ef058927e0662c71e3fa015edef9607abf9da9ec8250de3
IEDL.DBID RIE
IngestDate Wed Aug 27 02:11:23 EDT 2025
IsPeerReviewed false
IsScholarly false
Language English
LinkModel DirectLink
MergedId FETCHMERGED-LOGICAL-i119t-f9a1a8e786135a29b1ef058927e0662c71e3fa015edef9607abf9da9ec8250de3
PageCount 6
ParticipantIDs ieee_primary_10456476
PublicationCentury 2000
PublicationDate 2023-Nov.-25
PublicationDateYYYYMMDD 2023-11-25
PublicationDate_xml – month: 11
  year: 2023
  text: 2023-Nov.-25
  day: 25
PublicationDecade 2020
PublicationTitle IEEE International WIE Conference on Electrical and Computer Engineering (Online)
PublicationTitleAbbrev WIECON-ECE
PublicationYear 2023
Publisher IEEE
Publisher_xml – name: IEEE
SSID ssj0003177613
Score 1.8536777
Snippet Coding is an integral aspect of programming. A programmer can automatically complete a code fragment after writing a few tokens and the process of...
SourceID ieee
SourceType Publisher
StartPage 137
SubjectTerms Automatic
Code Completion
Codes
Computer languages
Encoding
Java
Line-level
Programmer
Programming
Similarities
Software
Suggestions
Writing
Title A Naive Approach for Automatic Line-level Code Completion
URI https://ieeexplore.ieee.org/document/10456476
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
link http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwjV1NS8NAEB1sD-JJxYrf7EGPG_O1m-RYSksVLB4s9lZ2k1kQJRFJLv56Z5K0oiB4CzmE_crOm9157wFc-05p1IGTBaFRGadopGV_E2VtrqNIFWlLFH5Y6Pkyvl-pVU9Wb7kwiNgWn6HHj-1dflHlDR-V0R_O4ieJHsCA1llH1toeqFAgpJQ82oWbXkfz9vmOzQDldDLVPsEAj53Cvc03friptMFktg-LTTO6GpJXr6mtl3_-Umj8dzsPYPTN2xOP24h0CDtYHkE2FgtDe5oY9_LhgnCqGDd11aq1CspGUb5x7ZCYVAUK3iFYkbsqR7CcTZ8mc9kbJsiXIMhq6TITmBSTlMZBmTCzATq2DQwTZKH3PAkwcoYAABboKHVJjHVZYTLMKU_0C4yOYVhWJZ6AUATzKFCFYeCS2KSpISiRahv5IcZcLXUKI-73-r3TxFhvunz2x_tz2OPhZxZfqC5gWH80eEnhvLZX7TR-AY4CnEc
linkProvider IEEE
linkToHtml http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwjV1NS8NAFFy0gnpSseK3e9DjxnxtsjmW0tJqGzy02FvZTd6CKIlIcvHX-16aVhQEbyGHsJslO_M2b2YYu3WtjCDyrMiRjYpQgRaG8k2kMVkUBDJXjVB4mkajefiwkItWrN5oYQCgaT4Dhy6bf_l5mdV0VIZfOJmfxNE220HgD-VKrrU5UkEoxKI82GV3rZPm_fOY4gDFoD-IXCQCDmWFO-un_MhTaeBkeMDS9UBWXSSvTl0ZJ_v85dH475Eesu63co8_bTDpiG1BccySHk817mq81xqIc2SqvFdXZePXyrEeBfFG3UO8X-bAaY8gT-6y6LL5cDDrj0QbmSBePC-phE20pxXECt-D1H5iPLAUHOjHQFbvWexBYDVSAMjBYvESa2OTXCeQYaXo5hCcsE5RFnDKuESih1Dl-56NQ62URjKhIhO4PoTUL3XGujTv5fvKFWO5nvL5H_dv2N5oNp0sJ-P08YLt01KQps-Xl6xTfdRwheBemetmSb8A87yflA
openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=proceeding&rft.title=IEEE+International+WIE+Conference+on+Electrical+and+Computer+Engineering+%28Online%29&rft.atitle=A+Naive+Approach+for+Automatic+Line-level+Code+Completion&rft.au=Naznin%2C+Shamima&rft.au=Mondal%2C+Manishankar&rft.date=2023-11-25&rft.pub=IEEE&rft.eissn=2837-8245&rft.spage=137&rft.epage=142&rft_id=info:doi/10.1109%2FWIECON-ECE60392.2023.10456476&rft.externalDocID=10456476