Could We Infer Unordered API Usage Patterns Only Using the Library Source Code?
Authors:
- 1 May 2015
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 10928138,p. 71-81
Abstract
Learning to use existing or new software libraries is a difficult task for software developers, which would impede their productivity. Much existing work has provided different techniques to mine API usage patterns from client programs in order to help developers on understanding and using existing libraries. However, considering only client programs to identify API usage patterns is a strong constraint as the client programs source code is not always available or the clients themselves do not exist yet for newly released APIs. In this paper, we propose a technique for mining Non Client-based Usage Patterns (NCBUP miner). We detect unordered API usage patterns as distinct groups of API methods that are structurally and semantically related and thus may contribute together to the implementation of a particular functionality for potential client programs. We evaluated our technique through four APIs. The obtained results are comparable to those of client-based approaches in terms of usage-patterns cohesion.Keywords
This publication has 31 references indexed in Scilit:
- How do API changes trigger stack overflow discussions? a study on the Android SDK2014
- ExPort: Detecting and visualizing API usages in large source code repositories2013
- Mining branching-time scenarios2013
- Documenting APIs with examples: Lessons learned with the APIMiner platform2013
- API change and fault proneness: a threat to the success of Android apps2013
- Synthesizing API usage examples2012
- Scenario-based and value-based specification mining: better togetherAutomated Software Engineering, 2012
- Learning from examples to improve code completion systems2009
- Mining API patterns as partial orders from source code2007
- Efficient mining of iterative patterns for software specification discovery2007