Intelligent Code Completion with Bayesian Networks

被引:47
|
作者
Proksch, Sebastian [1 ]
Lerch, Johannes [1 ]
Mezini, Mira [1 ]
机构
[1] Tech Univ Darmstadt, D-64289 Darmstadt, Germany
关键词
Algorithms; Experimentation; Measurement; Performance; Content assist; code completion; integrated development environments; machine learning; evaluation; code recommender; productivity; RECOMMENDATION;
D O I
10.1145/2744200
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页数:31
相关论文
共 50 条
  • [31] Auto diagnosing: Aln intelligent assessment system based on Bayesian networks
    Zhang, Liang
    Zhuang, Yue-ting
    Yuan, Zhen-ming
    Zhan, Guo-hua
    2007 37TH ANNUAL FRONTIERS IN EDUCATION CONFERENCE, GLOBAL ENGINEERING : KNOWLEDGE WITHOUT BORDERS - OPPORTUNITIES WITHOUT PASSPORTS, VOLS 1- 4, 2007, : 109 - +
  • [32] Using Bayesian Networks for Knowledge Representation and Evaluation in Intelligent Tutoring Systems
    Alan, Ramirez-Noriega
    Reyes, Juarez-Ramirez
    Yobani, Martinez-Ramirez
    Samantha, Jimenez
    Sergio, Inzunza
    NEW ADVANCES IN INFORMATION SYSTEMS AND TECHNOLOGIES, VOL 1, 2016, 444 : 169 - 178
  • [33] Estimating problem value in an intelligent tutoring system using Bayesian networks
    Mayo, M
    Mitrovic, A
    ADVANCED TOPICS IN ARTIFICIAL INTELLIGENCE, 1999, 1747 : 472 - 473
  • [34] Intelligent Drilling and Completion: A Review
    Li, Gensheng
    Song, Xianzhi
    Tian, Shouceng
    Zhu, Zhaopeng
    ENGINEERING, 2022, 18 : 33 - 48
  • [35] Intelligent Drilling and Completion:A Review
    Gensheng Li
    Xianzhi Song
    Shouceng Tian
    Zhaopeng Zhu
    Engineering, 2022, 18 (11) : 33 - 48
  • [36] Don't Complete It! Preventing Unhelpful Code Completion for Productive and Sustainable Neural Code Completion Systems
    Sun, Zhensu
    Du, Xiaoning
    Song, Fu
    Wang, Shangwen
    Ni, Mingze
    Li, Li
    2023 IEEE/ACM 45TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS, ICSE-COMPANION, 2023, : 324 - 325
  • [37] Don't Complete It! Preventing Unhelpful Code Completion for Productive and Sustainable Neural Code Completion Systems
    Sun, Zhensu
    Du, Xiaoning
    Song, Fu
    Wang, Shangwen
    Ni, Mingze
    Li, Li
    Lo, David
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2025, 34 (01)
  • [38] An intelligent model based on fuzzy Bayesian networks to predict astrocytoma malignant degree
    Lin, Chun-Yi
    Yin, Jun-Xun
    Ma, Li-Hong
    Chen, Jian-Yu
    2006 IEEE Conference on Cybernetics and Intelligent Systems, Vols 1 and 2, 2006, : 175 - 179
  • [39] Intelligent web interface using flexible conversational agent with semantic Bayesian networks
    Kim, KM
    Hong, JH
    Cho, SB
    International Conference on Next Generation Web Services Practices, 2005, : 313 - 318
  • [40] Intelligent Backpropagation Networks with Bayesian Regularization for Mathematical Models of Environmental Economic Systems
    Kiani, Adiqa Kausar
    Khan, Wasim Ullah
    Raja, Muhammad Asif Zahoor
    He, Yigang
    Sabir, Zulqurnain
    Shoaib, Muhammad
    SUSTAINABILITY, 2021, 13 (17)