Skip to main content
construction release_alert
Scholars@Duke will be undergoing maintenance April 11-15. Some features may be unavailable during this time.
cancel

MAPO: Mining API usages from open source repositories

Publication ,  Conference
Xie, T; Pei, J
Published in: Proceedings - International Conference on Software Engineering
December 1, 2006

To improve software productivity, when constructing new software systems, developers often reuse existing class libraries or frameworks by invoking their APIs. Those APIs, however, are often complex and not well documented, posing barriers for developers to use them in new client code. To get familiar with how those APIs are used, developers may search the Web using a general search engine to find relevant documents or code examples. Developers can also use a source code search engine to search open source repositories for source files that use the same APIs. Nevertheless, the number of returned source files is often large. It is difficult for developers to learn API usages from a large number of returned results. In order to help developers understand API usages and write API client code more effectively, we have developed an API usage mining framework and its supporting tool called MAPO (for Mining API usages from Open source repositories). Given a query that describes a method, class, or package for an API, MAPO leverages the existing source code search engines to gather relevant source files and conducts data mining. The mining leads to a short list of frequent API usages for developers to inspect. MAPO currently consists of five components: a code search engine, a source code analyzer, a sequence preprocessor, a frequent sequence miner, and a frequent sequence post processor. We have examined the effectiveness of MAPO using a set of various queries. The preliminary results show that the framework is practical for providing informative and succinct API usage patterns. Copyright 2006 ACM.

Duke Scholars

Altmetric Attention Stats
Dimensions Citation Stats

Published In

Proceedings - International Conference on Software Engineering

DOI

ISSN

0270-5257

ISBN

9781595933973

Publication Date

December 1, 2006

Start / End Page

54 / 57
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Xie, T., & Pei, J. (2006). MAPO: Mining API usages from open source repositories. In Proceedings - International Conference on Software Engineering (pp. 54–57). https://doi.org/10.1145/1137983.1137997
Xie, T., and J. Pei. “MAPO: Mining API usages from open source repositories.” In Proceedings - International Conference on Software Engineering, 54–57, 2006. https://doi.org/10.1145/1137983.1137997.
Xie T, Pei J. MAPO: Mining API usages from open source repositories. In: Proceedings - International Conference on Software Engineering. 2006. p. 54–7.
Xie, T., and J. Pei. “MAPO: Mining API usages from open source repositories.” Proceedings - International Conference on Software Engineering, 2006, pp. 54–57. Scopus, doi:10.1145/1137983.1137997.
Xie T, Pei J. MAPO: Mining API usages from open source repositories. Proceedings - International Conference on Software Engineering. 2006. p. 54–57.

Published In

Proceedings - International Conference on Software Engineering

DOI

ISSN

0270-5257

ISBN

9781595933973

Publication Date

December 1, 2006

Start / End Page

54 / 57