IEEE Transactions on Software Engineering · 2006 · 159 citations · 27 references
ComputingComputer ScienceProgramming LanguagesRecommender SystemsSoftware EngineeringApplication Programming InterfacesSoftware ArchitectureSoftware DesignSoftware DocumentationSoftware ReuseStatic Code AnalysisCode ComprehensionHandcrafted FeaturesSource Code AnalysisSource Code Structure
When coding to an application programming interface (API), developers often encounter difficulties, unsure of which class to subclass, which objects to instantiate, and which methods to call. Example source code that demonstrates the use of the API can help developers make progress on their task. This paper describes an approach to provide such examples in which the structure of the source code that the developer is writing is matched heuristically to a repository of source code that uses the API. The structural context needed to query the repository is extracted automatically from the code, freeing the developer from learning a query language or from writing their code in a particular style. The repository is generated automatically from existing applications, avoiding the need for handcrafted examples. We demonstrate that the approach is effective, efficient, and more reliable than traditional alternatives through four empirical studies
27
Clone detection using abstract syntax trees
Ira D. Baxter, A. Yahin, Leonardo de Moura et al. · 2002 · 1.3K citations
Documenting frameworks using patterns
Ralph E. Johnson · 1992 · 420 citations · Full text
David Mandelin, Lin Xu, Rastislav Bodík et al. · ACM SIGPLAN Notices · 2005 · 393 citations
Using structural context to recommend source code examples
Reid Holmes, Gail C. Murphy · 2005 · 385 citations · Full text