Mining succinct and high-coverage API usage patterns from source code

165Citations
Citations of this article
97Readers
Mendeley users who have this article in their library.
Get full text

Abstract

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. © 2013 IEEE.

Cite

CITATION STYLE

APA

Wang, J., Dang, Y., Zhang, H., Chen, K., Xie, T., & Zhang, D. (2013). Mining succinct and high-coverage API usage patterns from source code. In IEEE International Working Conference on Mining Software Repositories (pp. 319–328). https://doi.org/10.1109/MSR.2013.6624045

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free