arrow
Return

Intelligent Code Completion with Bayesian Networks

delete2015-12-02
delete54
PRE
AI
Sebastian Proksch cover
Sebastian Proksch (Sebastian Proksch) *
J
Johannes Lerch
Mira Mezini cover
Mira Mezini (Mira Mezini)
DOI:10.1145/2744200delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Code completion is an integral part of modern Integrated Development Environments (IDEs). Developers often use it to explore Application Programming Interfaces (APIs). It is also useful to reduce the required amount of typing and to help avoid typos. Traditional code completion systems propose all type-correct methods to the developer. Such a list is often very long with many irrelevant items. More intelligent code completion systems have been proposed in prior work to reduce the list of proposed methods to relevant items. This work extends one of these existing approaches, the Best Matching Neighbor (BMN) algorithm. We introduce Bayesian networks as an alternative underlying model, use additional context information for more precise recommendations, and apply clustering techniques to improve model sizes. We compare our new approach, Pattern-based Bayesian Networks (PBN), to the existing BMN algorithm. We extend previously used evaluation methodologies and, in addition to prediction quality, we also evaluate model size and inference speed. Our results show that the additional context information we collect improves prediction quality, especially for queries that do not contain method calls. We also show that PBN can obtain comparable prediction quality to BMN, while model size and inference speed scale better with large input sizes.
Keywords:
Algorithms
Experimentation
Measurement
Performance
Content assist
code completion
integrated development environments
machine learning
evaluation
code recommender
productivity
Learning to Predict Code Review Completion Time In Modern Code Review
err2023-05-20
err5
PREAI
errChouchen, Moataz; Ouni, Ali; Olongo, Jefferson; Mkaouer, Mohamed Wiem
errShare
errSave
Syntax-aware on-the-fly code completion
err2024-01-01
err3
errOAAI
errTakerngsaksiri, Wannita; Tantithamthavorn, Chakkrit; Li, Yuan-Fang
errShare
errSave
Evolutionary Computation-Enhanced Large Language Models for Intelligent Code Completion
err2026-08-01
err1
PREAI
errLiu, Dongbo; Tan, Ziqi; Yen, Gary G.; Duan, Suling; Zhou, Yimin; He, Zhenan
errShare
errSave
Does Your Neural Code Completion Model Use My Code? A Membership Inference Approach
err2026-03-01
err0
PREAI
errWan, Yao; Wan, Guanghua; Zhang, Shijie; Zhang, Hongyu; Sui, Yulei; Zhou, Pan; Jin, Hai; Sun, Lichao
errShare
errSave
Linear complete symmetric rank-distance codes
err2026-01-26
err0
PREAI
errAlnajjarine, Nour; Lavrauw, Michel
errShare
errSave
Learning to rank code examples for code search engines
err2016-01-21
err56
PREAI
errNiu, Haoran; Keivanloo, Iman; Zou, Ying
errShare
errSave

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.4K
Citations:
4.5K

Organization

T
Technical University of Darmstadt
Scholars:
367
Papers: 132
Citations: 6.6K
Cited Papers

Cited Papers

err
IF0
err
err0
PREAI
err
errShare
errSave
errShare
errSave
errShare
errSave
Nighttime Kidney Transplant From Donor With Controlled Cardiac Death: Greater Functionality at the Cost of More Complications?
err2021-11-01
err0
PREAI
errEstefania Ruiz Guerrero; Rodrigo García-Baquero; Cristina Salvatierra Pérez; Cristina Margarita Fernández-Ávila; Auxiliadora Blanca Mazuecos; José Luis Álvarez-Ossorio
errShare
errSave
Abnormal Contrast Responses in the Extrastriate Cortex of Blindsight Patients
err2015-05-27
err0
errOAAI
errSara Ajina; Geraint Rees; Christopher Kennard; Holly Bridge
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
Advanced Business Analytics
err
IF0
err2015-01-01
err0
PREAI
err
errShare
errSave
researcher View more