Title :
APIExample: An effective web search based usage example recommendation system for java APIs
Author :
Wang, Lijie ; Fang, Lu ; Wang, Leye ; Li, Ge ; Xie, Bing ; Yang, Fuqing
Author_Institution :
Sch. of Electron. Eng. & Comput. Sci., Peking Univ., Beijing, China
Abstract :
Programmers often learn how to use an API by studying its usage examples. There are many usage examples scattered in web pages on the Internet. However, it often takes programmers much effort to find out the desired examples from a large number of web pages by web search. This paper proposes a tool named APIExample that can extract usage examples for java APIs from web pages on the Internet and recommend them to programmers. Given a java API, the tool collects its related web pages from the Internet, extracts java code snippets and their surrounding descriptive texts embedded in the pages, then assembles them into usage examples for programmers. Furthermore, in order to help programmers capture more kinds of usages of the target API by browsing fewer examples, our tool clusters and ranks the listed examples based on the target API´s usage. Besides, as a practical tool, APIExample provides multiple aspects of frequently-used information about using the target API in a concise user interface with friendly user experience. Two kinds of user-interaction style, a web search portal and an Eclipse plug-in, are now both publicly available.
Keywords :
Internet; Java; application program interfaces; portals; search engines; user interfaces; Eclipse plug-in; Internet; Java API; Java code; Web pages; Web search portal; example recommendation system; friendly user experience; tool clusters; user interface; Data mining; Internet; Java; Portals; Programming; Web pages; Web search; API; recommendation; usage example; web search;
Conference_Titel :
Automated Software Engineering (ASE), 2011 26th IEEE/ACM International Conference on
Conference_Location :
Lawrence, KS
Print_ISBN :
978-1-4577-1638-6
DOI :
10.1109/ASE.2011.6100133