- Title
- Mining succinct and high-coverage API usage patterns from source code
- Creator
- Wang, Jue; Dang, Yingnong; Zhang, Hongyu; Chen, Kai; Xie, Tao; Zhang, Dongmei
- Relation
- 2013 10th Working Conference on Mining Software Repositories (MSR) . Proceedings of the 2013 10th Working Conference on Mining Software Repositories (San Francisco, CA 18-19 May, 2013) p. 319-328
- Publisher Link
- http://dx.doi.org/10.1109/MSR.2013.6624045
- Publisher
- Institute of Electrical and Electronics Engineers (IEEE)
- Resource Type
- conference paper
- Date
- 2013
- Description
- 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.
- Subject
- API usage; usage pattern; sequence mining; software reuse; mining software repositories
- Identifier
- http://hdl.handle.net/1959.13/1356829
- Identifier
- uon:31799
- Identifier
- ISBN:9781467329351
- Language
- eng
- Reviewed
- Hits: 2299
- Visitors: 2285
- Downloads: 0
Thumbnail | File | Description | Size | Format |
---|