2013 · 66 citations · 7 references
ComputingComputer ScienceComputational LinguisticsNatural Language ProcessingProgramming LanguagesAbstract Syntax TreesApplication Programming InterfacesInformation ExtractionApi Call AnalysisApi DesignSource Code AnalysisSource Code StructureSource Code Stylometry
Stack Overflow contains a large number of high-quality source code snippets. The quality of these snippets has been verified by users marking them as solving a specific problem. Stack Overflow treats source code snippets as plain text and searches surface snippets as they would any other text. Unfortunately, plain text does not capture the structural qualities of these snippets; for example, snippets frequently refer to specific API (e.g., Android), but by treating the snippets as text, linkage to the Android API is not always apparent. We perform snippet analysis to extract structural information from short plain-text snippets that are often found in Stack Overflow. This analysis is able to identify 253,137 method calls and type references from 21,250 Stack Overflow code snippets. We show how identifying these structural relationships from snippets could perform better than lexical search over code blocks in practice.
7
Suresh Thummalapenta, Tao Xie · 2007 · 397 citations
David Mandelin, Lin Xu, Rastislav Bodík et al. · ACM SIGPLAN Notices · 2005 · 393 citations
David Mandelin, Lin Xu, Rastislav Bodík et al. · 2005 · 260 citations
Enabling static analysis for partial java programs
Barthélémy Dagenais, Laurie Hendren · 2008 · 143 citations
Measuring API documentation on the web
Chris Parnin, Christoph Treude · 2011 · 122 citations