2016
DOI: 10.1002/smr.1791
|View full text |Cite
|
Sign up to set email alerts
|

A Simple, Efficient, Context‐sensitive Approach for Code Completion

Abstract: Code completion helps developers use application programming interfaces (APIs) and frees them from remembering every detail. In this paper, we first describe a novel technique called Context‐sensitive Code Completion (CSCC) for improving the performance of API method call completion. CSCC is context sensitive in that it uses new sources of information as the context of a target method call. CSCC indexes method calls in code examples by their context. To recommend completion proposals, CSCC ranks candidate meth… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
10
0

Year Published

2017
2017
2021
2021

Publication Types

Select...
4
1
1

Relationship

0
6

Authors

Journals

citations
Cited by 17 publications
(10 citation statements)
references
References 34 publications
0
10
0
Order By: Relevance
“…Completions may simply be method calls for a given object [74,[76][77][78][79] or can be complete method code for a given partial code snippet [75]. Code completion is an integral feature of modern IDEs [79]. Most of the proposed techniques enable the integration of the code completion recommendations into the active user context, typically within their Integrated Development Environment (IDE).…”
Section: Code Completion Systemsmentioning
confidence: 99%
“…Completions may simply be method calls for a given object [74,[76][77][78][79] or can be complete method code for a given partial code snippet [75]. Code completion is an integral feature of modern IDEs [79]. Most of the proposed techniques enable the integration of the code completion recommendations into the active user context, typically within their Integrated Development Environment (IDE).…”
Section: Code Completion Systemsmentioning
confidence: 99%
“…The initial values of parameters α, β, γ, δ, and θ are set as 0.0, 0.0, 1.0, 1.0, and 1.0. In each iteration, we go through the five parameters and check the 101 possible values (Lines [6][7][8][9][10][11][12][13][14]. The function eval() is used to check the effectiveness of a specific parameter with respect to the criteria from online evaluation.…”
Section: Algorithm 1 Greedy Weight Tuning Algorithmmentioning
confidence: 99%
“…The online evaluation is often infeasible due to the high cost of human labor [10]. To overcome these limitations, many researchers turn to offline evaluation [11][12][13][14][15][16]. However, offline evaluations cannot always reflect the accurate quality of the system due to the lack of mature evaluation model [17].…”
Section: Introductionmentioning
confidence: 99%
“…Unlike our parameter concretization technique, their technique does not consider the relation between the current method call and the code context. Some approaches [26,27] consider the similarity between the current code context and previous code examples for code completion. Other example approaches include [4,6,8,[28][29][30].…”
Section: Related Workmentioning
confidence: 99%