arrow
Return

Code completion with statistical language models

delete2014-06-09
delete0
PRE
AI
DOI:10.1145/2666356.2594321delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
We address the problem of synthesizing code completions for programs using APIs. Given a program with holes, we synthesize completions for holes with the most likely sequences of method calls. Our main idea is to reduce the problem of code completion to a natural-language processing problem of predicting probabilities of sentences. We design a simple and scalable static analysis that extracts sequences of method calls from a large codebase, and index these into a statistical language model. We then employ the language model to find the highest ranked sentences, and use them to synthesize a code completion. Our approach is able to synthesize sequences of calls across multiple objects together with their arguments. Experiments show that our approach is fast and effective. Virtually all computed completions typecheck, and the desired completion appears in the top 3 results in 90% of the cases.
Large language models for code completion: A systematic literature review
err2025-03-01
err0
errOAAI
errHusein, Rasha Ahmad; Aburajouh, Hala; Catal, Cagatay
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
A Survey on Large Language Models for Code Generation
err2026-02-01
err33
PREAI
errJiang, Juyong; Wang, Fan; Shen, Jiasi; Kim, Sungju; Kim, Sunghun
errShare
errSave
Leveraging pre-trained language models for code generation
err2024-02-29
err2
errOAAI
errSoliman, Ahmed; Shaheen, Samir; Hadhoud, Mayada
errShare
errSave
Pitfalls in Language Models for Code Intelligence: A Taxonomy and Survey
err2026-03-01
err0
PREAI
errShe, Xinyu; Liu, Yue; Zhao, Yanjie; He, Yiling; Li, Li; Tantithamthavorn, Chakkrit; Qin, Zhan; Wang, Haoyu
errShare
errSave

Journal

No journal information available

Organization

No organization information available
Cited Papers

Cited Papers

No cited papers available