skip to main content
10.1145/1321631.1321726acmconferencesArticle/Chapter ViewAbstractPublication PagesaseConference Proceedingsconference-collections
demonstration

CodeGenie: using test-cases to search and reuse source code

Published: 05 November 2007 Publication History

Abstract

We present CodeGenie, a tool that implements a test-driven approachto search and reuse of code available on large-scale coderepositories. While using CodeGenie developers design test cases fora desired feature first, similar to Test-driven Development (TDD).However, instead of implementing the feature as in TDD, CodeGenieautomatically searches for it based on information available in thetests. To check the suitability of the candidate results in thelocal context, each result is automatically woven into thedeveloper's project and tested using the original tests. Thedeveloper can then reuse the most suitable result. Later, reusedcode can also be unwoven from the project as wished. For the codesearching and wrapping facilities, CodeGenie relies on Sourcerer, anInternet-scale source code infrastructure that we have developed

References

[1]
Koders web site. http://www.koders.com.
[2]
Krugle web site. http://www.krugle.com.
[3]
Codase web site. http://www.Codase.com.
[4]
csourcesearch web site. http://csourcesearch.net/.
[5]
Google Code Search. http://www.google.com/codesearch.
[6]
Sourcerer project web site. http://sourcerer.ics.uci.edu.
[7]
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 OOPSLA '06: Companion to the 21st ACM SIGPLAN conference on Object-oriented programming systems, languages, and applications, pages 681--682, New York, NY, USA, 2006. ACM Press.
[8]
K. Beck. Test Driven Development: By Example. Addison-Wesley Professional, November 2002.

Cited By

View all
  • (2023)Review to unfold the role of Machine Learning Algorithms in Natural Language ProcessingJournal of Policy Research10.61506/02.001369:4(152-162)Online publication date: 31-Dec-2023
  • (2023)Survey on Sketch-to-photo TranslationACM Computing Surveys10.1145/360669456:1(1-25)Online publication date: 26-Aug-2023
  • (2023)A Survey on Hypergraph Representation LearningACM Computing Surveys10.1145/360577656:1(1-38)Online publication date: 22-Jun-2023
  • Show More Cited By

Recommendations

Comments

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. source code reuse
  2. source code search
  3. test-driven development
  4. test-first

Qualifiers

  • Demonstration

Conference

ASE07

Acceptance Rates

Overall Acceptance Rate 82 of 337 submissions, 24%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)12
  • Downloads (Last 6 weeks)0
Reflects downloads up to 28 Feb 2025

Other Metrics

Citations

Cited By

View all
  • (2023)Review to unfold the role of Machine Learning Algorithms in Natural Language ProcessingJournal of Policy Research10.61506/02.001369:4(152-162)Online publication date: 31-Dec-2023
  • (2023)Survey on Sketch-to-photo TranslationACM Computing Surveys10.1145/360669456:1(1-25)Online publication date: 26-Aug-2023
  • (2023)A Survey on Hypergraph Representation LearningACM Computing Surveys10.1145/360577656:1(1-38)Online publication date: 22-Jun-2023
  • (2023)Offloading Machine Learning to Programmable Data Planes: A Systematic SurveyACM Computing Surveys10.1145/360515356:1(1-34)Online publication date: 26-Aug-2023
  • (2023)Big Code Search: A BibliographyACM Computing Surveys10.1145/360490556:1(1-49)Online publication date: 26-Aug-2023
  • (2023)Review on Query-focused Multi-document Summarization (QMDS) with Comparative AnalysisACM Computing Surveys10.1145/359729956:1(1-38)Online publication date: 16-May-2023
  • (2023)Code Search: A Survey of Techniques for Finding CodeACM Computing Surveys10.1145/356597155:11(1-31)Online publication date: 9-Feb-2023
  • (2023)EDAssistant: Supporting Exploratory Data Analysis in Computational Notebooks with In Situ Code Search and RecommendationACM Transactions on Interactive Intelligent Systems10.1145/354599513:1(1-27)Online publication date: 9-Mar-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
  • (2022)SenatusProceedings of the 19th International Conference on Mining Software Repositories10.1145/3524842.3527947(511-523)Online publication date: 23-May-2022
  • 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

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media