Title
Code template inference using language models
Abstract
This paper investigates the use of a natural language processing technique that automatically detects project-specific code templates (i.e., frequently used code blocks), which can be made available to software developers within an integrated development environment. During software development, programmers often and in some cases unknowingly rewrite the same code block that represents some functionality. These frequently used code blocks can inform the existence and possible use of code templates. Many existing code editors support code templates, but programmers are expected to manually define these templates and subsequently add them as templates in the editor. Furthermore, the support of editors to provide templates based on the editing context is still limited. The use of n-gram language models within the context of software development is described and evaluated to overcome these restrictions. The technique can search for project-specific code templates and present these templates to the programmer based on the current editing context.
Year
DOI
Venue
2010
10.1145/1900008.1900143
ACM Southeast Regional Conference 2005
Keywords
Field
DocType
code template inference,current editing context,possible use,language model,integrated development environment,code block,software development,project-specific code template,existing code editors support,detects project-specific code template,editing context,code template,source code,template,natural language processing
Object code,Static program analysis,Programming language,Source code,Template metaprogramming,Computer science,Code generation,Theoretical computer science,Redundant code,Software development,Code review
Conference
Citations 
PageRank 
References 
12
0.85
6
Authors
2
Name
Order
Citations
PageRank
Ferosh Jacob1829.60
Robert Tairas215310.25