2016 · 66 citations · 41 references
ComputingComputer ScienceMachine LearningMobile ComputingSoftware EngineeringApplication Programming InterfacesMobile Application DevelopmentMobile Application Reverse EngineeringMobile Human-computer InteractionMobile LearningAccuracyAndroid Application AnalysisApi Call AnalysisApi Call Sequence AnalysisApi DesignApi DocumentationEmpirical EvaluationMobile Application Programming Interfaces
Mobile app developers rely heavily on standard API frameworks and libraries. However, learning API usages is often challenging due to the fast-changing nature of API frameworks for mobile systems and the insufficiency of API documentation and source code examples. In this paper, we propose a novel approach to learn API usages from bytecode of Android mobile apps. Our core contributions include HAPI, a statistical model of API usages and three algorithms to extract method call sequences from apps' bytecode, to train HAPI based on those sequences, and to recommend method calls in code completion using the trained HAPIs. Our empirical evaluation shows that our prototype tool can effectively learn API usages from 200 thousand apps containing 350 million method sequences. It recommends next method calls with top-3 accuracy of 90% and outperforms baseline approaches on average 10--20%.
41
An introduction to hidden Markov models
L. R. Rabiner, Biing‐Hwang Juang · IEEE ASSP Magazine · 1986 · 4.8K citations
On the naturalness of software
Abram Hindle, Earl T. Barr, Zhendong Su et al. · 2012 · 569 citations
Using structural context to recommend source code examples
Reid Holmes, Gail C. Murphy · 2005 · 385 citations · Full text