2013 · 194 citations · 20 references
ComputingComputer ScienceData MiningProgramming LanguagesSoftware EngineeringApplication Programming InterfacesPattern EvaluationSoftware MetricsApplication Programming Interface (Api)BarriersSoftware Development Methodology
Developers often need to discover API usage patterns, but existing documentation is sparse and mining approaches produce many redundant patterns without quality metrics, hindering practical adoption. This paper introduces two quality metrics—succinctness and coverage—and proposes the Usage Pattern Miner (UP‑Miner) to extract succinct, high‑coverage API usage patterns from source code. UP‑Miner was evaluated on a large Microsoft codebase. Results show UP‑Miner outperforms the MAPO baseline and Microsoft developers report its usefulness in practice.
During software development, a developer often needs to discover specific usage patterns of Application Programming Interface (API) methods. However, these usage patterns are often not well documented. To help developers to get such usage patterns, there are approaches proposed to mine client code of the API methods. However, they lack metrics to measure the quality of the mined usage patterns, and the API usage patterns mined by the existing approaches tend to be many and redundant, posing significant barriers for being practical adoption. To address these issues, in this paper, we propose two quality metrics (succinctness and coverage) for mined usage patterns, and further propose a novel approach called Usage Pattern Miner (UP-Miner) that mines succinct and high-coverage usage patterns of API methods from source code. We have evaluated our approach on a large-scale Microsoft codebase. The results show that our approach is effective and outperforms an existing representative approach MAPO. The user studies conducted with Microsoft developers confirm the usefulness of the proposed approach in practice.
20
Data mining: concepts and techniques
Jiawei Han, Micheline Kamber · Choice Reviews Online · 2012 · 28.9K citations
Introduction to information retrieval
Choice Reviews Online · 2009 · 12.6K citations
Frequent pattern mining: current status and future directions
Jiawei Han, Hong Cheng, Dong Xin et al. · Data Mining and Knowledge Discovery · 2007 · 1.4K citations · Full text
Sequential PAttern mining using a bitmap representation
Jay Ayres, Jason Flannick, Johannes Gehrke et al. · 2002 · 1.1K citations
Glenn Ammons, Rastislav Bodík, James R. Larus · 2002 · 669 citations · Full text