[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.1145/1321631.1321663acmconferencesArticle/Chapter ViewAbstractPublication PagesaseConference Proceedingsconference-collections
research-article

Parseweb: a programmer assistant for reusing open source code on the web

Published: 05 November 2007 Publication History

Abstract

Programmers commonly reuse existing frameworks or libraries to reduce software development efforts. One common problem in reusing the existing frameworks or libraries is that the programmers know what type of object that they need, but do not know how to get that object with a specific method sequence. To help programmers to address this issue, we have developed an approach that takes queries of the form "Source object type → Destination object type" as input, and suggests relevant method-invocation sequences that can serve as solutions that yield the destination object from the source object given in the query. Our approach interacts with a code search engine (CSE) to gather relevant code samples and performs static analysis over the gathered samples to extract required sequences. As code samples are collected on demand through CSE, our approach is not limited to queries of any specific set of frameworks or libraries. We have implemented our approach with a tool called PARSEWeb, and conducted four different evaluations to show that our approach is effective in addressing programmer's queries. We also show that PARSEWeb performs better than existing related tools: Prospector and Strathcona

References

[1]
J. Anjou, S. Fairbrother, D. Kehn, J. Kellerman, and P. McCarthy. The Java Developer's Guide to Eclipse. Addison-Wesley Professional, 2004.
[2]
S. Bajracharya, T. Ngo, E. Linstead, Y. Dou, P. Rigor, P. Baldi, and C. Lopes. Sourcerer: A search engine for open source code supporting structure based search. In Proc. of OOPSLA Companion, 2006.
[3]
Jakarta BCEL user forum, 2001. http://mail-archives.apache.org/mod_mbox/jakarta-bcel-user/200609.mbox/thread.
[4]
Dev2Dev Newsgroups by developers, for developers, 2006. http://forums.bea.com/bea/message.jspa? messageID=202265042&tstart=0.
[5]
Google Code Search Engine, 2006. http://www.google.com/codesearch.
[6]
R. Holmes and G. Murphy. Using structural context to recommend source code examples. In Proc. of ICSE, pages 117--125, 2005.
[7]
Jung the Java Universal Network/Graph Framework, 2005. http://jung.sourceforge.net/.
[8]
The Koders source code search engine, 2005. http://www.koders.com.
[9]
T. Lethbridge, J. Singer, and A. Forward. How software engineers use documentation: The state of the practice. In IEEE Software, pages 35--39, 2003.
[10]
Logic Project based on Eclipse GEF, 2006. http://www.eclipse.org/downloads/download.php? file=/tools/gef/downloads/drops/R-3.2.1-&200609211617/GEF-examples-3.2.1.zip.
[11]
D. Mandelin, L. Xu, R. Bodik, and D. Kimelman. Jungloid mining: helping to navigate the API jungle. In Proc. of PLDI, pages 48--61, 2005.
[12]
Y. Matsumoto. A Software Factory: An Overall Approach to Software Production. In P. Freeman ed., Software Reusability. IEEE CS Press, 1987.
[13]
T. Sager, A. Bernstein, M. Pinzger, and C. Kiefer. Detecting similar Java classes using tree algorithms. In Proc. of MSR, pages 65--71, 2006.
[14]
N. Sahavechaphan and K. Claypool. XSnippet: Mining for sample code. In Proc. of OOPSLA, pages 413--430, 2006.
[15]
T. Xie and J. Pei. MAPO: Mining API usages from open source repositories. In Proc. of MSR, pages 54--57, 2006.
[16]
Y. Ye and G. Fischer. Supporting reuse by delivering taskrelevant and personalized information. In Proc. of ICSE, pages 513--523, 2002.

Cited By

View all
  • (2024)Harnessing Test-Oriented Knowledge Graphs for Enhanced Test Function RecommendationElectronics10.3390/electronics1308154713:8(1547)Online publication date: 18-Apr-2024
  • (2024)An Analysis of the Costs and Benefits of Autocomplete in IDEsProceedings of the ACM on Software Engineering10.1145/36607651:FSE(1284-1306)Online publication date: 12-Jul-2024
  • (2024)SE Factual Knowledge in Frozen Giant Code Model: A Study on FQN and Its RetrievalIEEE Transactions on Knowledge and Data Engineering10.1109/TKDE.2024.343688336:12(9220-9234)Online publication date: Dec-2024
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
ASE '07: Proceedings of the 22nd IEEE/ACM International Conference on Automated Software Engineering
November 2007
590 pages
ISBN:9781595938824
DOI:10.1145/1321631
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 05 November 2007

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. code examples
  2. code reuse
  3. code search engine
  4. ranking code samples

Qualifiers

  • Research-article

Conference

ASE07

Acceptance Rates

Overall Acceptance Rate 82 of 337 submissions, 24%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)39
  • Downloads (Last 6 weeks)7
Reflects downloads up to 17 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2024)Harnessing Test-Oriented Knowledge Graphs for Enhanced Test Function RecommendationElectronics10.3390/electronics1308154713:8(1547)Online publication date: 18-Apr-2024
  • (2024)An Analysis of the Costs and Benefits of Autocomplete in IDEsProceedings of the ACM on Software Engineering10.1145/36607651:FSE(1284-1306)Online publication date: 12-Jul-2024
  • (2024)SE Factual Knowledge in Frozen Giant Code Model: A Study on FQN and Its RetrievalIEEE Transactions on Knowledge and Data Engineering10.1109/TKDE.2024.343688336:12(9220-9234)Online publication date: Dec-2024
  • (2024)Ask Me Any Type: Type Inference Plugin for Partial Code on the Web and in the Integrated Development EnvironmentWuhan University Journal of Natural Sciences10.1051/wujns/202429434929:4(349-356)Online publication date: 4-Sep-2024
  • (2024)Web Platform as Path-Guide for Professional Students: A One-Stop SolutionJournal of The Institution of Engineers (India): Series B10.1007/s40031-024-01143-7Online publication date: 9-Sep-2024
  • (2023)An Intelligent Platform for Software Component Mining and RetrievalSensors10.3390/s2301052523:1(525)Online publication date: 3-Jan-2023
  • (2023)FQN Inference in Partial Code by Prompt-tuned Language Model of CodeACM Transactions on Software Engineering and Methodology10.1145/361717433:2(1-32)Online publication date: 24-Aug-2023
  • (2023)How Practitioners Expect Code Completion?Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering10.1145/3611643.3616280(1294-1306)Online publication date: 30-Nov-2023
  • (2023)Big Code Search: A BibliographyACM Computing Surveys10.1145/360490556:1(1-49)Online publication date: 26-Aug-2023
  • (2023)An empirical study on API usages from code search engine and local libraryEmpirical Software Engineering10.1007/s10664-023-10304-z28:3Online publication date: 13-Apr-2023
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media