Pubs / Interactive Code Snippet Synthesis Through Repository Mining


Interactive Code Snippet Synthesis Through Repository Mining

[HTML] [PDF] [PS] [PS.BZ2] [VIEW]

Bibtex:
@techreport{pb13insyrem,
    Author = {Zvonimir Pavlinovi\'c and Babi\'c, Domagoj},
    Title = {Interactive Code Snippet Synthesis Through Repository Mining},
    Institution = {EECS Department, University of California, Berkeley},
    Year = {2013},
    Month = {Mar},
    Number = {UCB/EECS-2013-23},
}

Abstract: Programmers repeatedly reuse code snippets. Retyping boilerplate code, and rediscovering how to correctly sequence API calls, programmers waste time. In this paper, we develop techniques that automatically synthesize code snippets upon a programmer’s request. Our approach is based on discovering snippets located in repositories; we mine repositories offline and suggest discovered snippets to programmers. Upon request, our synthesis procedure uses programmer’s current code to find the best fitting snippets, which are then presented to the programmer. The programmer can then either learn the proper API usage or integrate the synthesized snippets directly into her code. We call this approach interactive code snippet synthesis through repository mining. We show that this approach reduces the time spent developing code for 32% in our experiments.

Page last modified on March 31, 2013, at 09:43 PM