Portfolio: A Search Engine for Finding Functions and Their Usages Collin McMillan Mark Grechanik Denys Poshyvanyk Qing Xie, Chen Fu College of William & Mary Accenture and UIC College of William & Mary Accenture Technology Lab Williamsburg, VA 23185 Chicago, IL 60601 Williamsburg, VA 23185 Chicago, IL 60601
[email protected] [email protected] [email protected] [email protected] ABSTRACT Consider the situation where a programmer wants to accomplish In this demonstration, we present a code search system called Port- the complete task of editing and saving a PDF file. He or she may edit save pdf file folio that retrieves and visualizes relevant functions and their us- enter the query “ ” into a search engine. ages. We will show how chains of relevant functions and their us- Existing source code search engines would return some functions ages can be visualized to users in response to their queries. that create PDF files, some functions that write data in the PDF file format, and some functions that manipulate PDF files. Typi- Categories and Subject Descriptors cally, programmers investigate these functions to determine which D.2.13 [Reusable Libraries]: Reusable Libraries of them are relevant and to determine how to compose the concepts in these functions into complete tasks. Unfortunately, the results General Terms from existing engines do not show to programmers how isolated Algorithms, Experimentation functions interact in the context of other functions, despite the fact Keywords that the programmer wants to see the code for the whole task of how to edit PDF data and save it. A search engine can support pro- source code search engines, information retrieval grammers efficiently if it incorporates in its user ranking how these 1.