TY - GEN
T1 - Mining succinct and high-coverage API usage patterns from source code
AU - Wang, Jue
AU - Dang, Yingnong
AU - Zhang, Hongyu
AU - Chen, Kai
AU - Xie, Tao
AU - Zhang, Dongmei
PY - 2013
Y1 - 2013
N2 - 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.
AB - 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.
KW - API usage
KW - Mining software repositories
KW - Sequence mining
KW - Software reuse
KW - Usage pattern
UR - http://www.scopus.com/inward/record.url?scp=84889004632&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=84889004632&partnerID=8YFLogxK
U2 - 10.1109/MSR.2013.6624045
DO - 10.1109/MSR.2013.6624045
M3 - Conference contribution
AN - SCOPUS:84889004632
SN - 9781467329361
T3 - IEEE International Working Conference on Mining Software Repositories
SP - 319
EP - 328
BT - 2013 10th Working Conference on Mining Software Repositories, MSR 2013 - Proceedings
T2 - 10th International Working Conference on Mining Software Repositories, MSR 2013
Y2 - 18 May 2013 through 19 May 2013
ER -