CoChat

Spotting working code examples

Keivanloo, Iman, Rilling, Juergen, Zou, Ying · 2014 · Proceedings of the 36th International Conference on Software Engineering
Cited by 145

The DOI matches its Crossref record; 5 of the 5 references it cites were found in a registry or an index.

Abstract

Working code examples are useful resources for pragmatic reuse in software development. A working code example provides a solution to a specific programming problem. Earlier studies have shown that existing code search engines are not successful in finding working code examples. They fail in ranking high quality code examples at the top of the result set. To address this shortcoming, a variety of pattern-based solutions are proposed in the literature. However, these solutions cannot be integrated seamlessly in Internet-scale source code engines due to their high time complexity or query language restrictions. In this paper, we propose an approach for spotting working code examples which can be adopted by Internet-scale source code search engines. The time complexity of our approach is as low as the complexity of existing code search engines on the Internet and considerably lower than the pattern-based approaches supporting free-form queries. We study the performance of our approach using a representative corpus of 25,000 open source Java projects. Our findings support the feasibility of our approach for Internet-scale code search. We also found that our approach outperforms Ohloh Code search engine, previously known as Koders, in spotting working code examples.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1145/2568225.2568292

Cites

5 of 5 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 5 references

Research works printed but not linked: 33

  1. 10.1145/1287624.1287630 · DOI · Paper page
  2. 10.1145/1882291.1882316 · DOI
  3. 10.1145/167088.167115 · DOI
  4. 10.1109/TSE.2007.70725 · DOI · Paper page
  5. 10.1002/widm.1074 · DOI · Paper page
  6. 10.1145/1133905.1133907 · DOI · Paper page
  7. Buse , R. P. , and Weimer , W . 2012. Synthesizing API usage examples . In Proceedings of the International Conference on Software Engineering. 782-792 . Buse, R. P., and Weimer, W. 2012. Synthesizing API usage examples. In Proceedings of the International Conference on Software Engineering. 782-792.
  8. Carter , S. , Frank , R. J. , and Tansley , D. S. W. 1993. Clone detection in telecommunications software systems: A neural net approach . In Proceedings of International Workshop on Applications of Neural Networks to Telecommunications, 273-287 . Carter, S., Frank, R. J., and Tansley, D. S. W. 1993. Clone detection in telecommunications software systems: A neural net approach. In Proceedings of International Workshop on Applications of Neural Networks to Telecommunications, 273-287.
  9. 10.1007/978-3-642-00593-0_26 · DOI
  10. Cox , R. 2012. Regular expression matching with a trigram index or how Google code search worked. Online resource: http://swtch.com/~rsc/regexp/regexp4.html (January 2012 ). Cox, R. 2012. Regular expression matching with a trigram index or how Google code search worked. Online resource: http://swtch.com/~rsc/regexp/regexp4.html (January 2012).
  11. 10.1109/SUITE.2009.5070022 · DOI
  12. 10.1145/1081706.1081744 · DOI · Paper page
  13. Holmes , R. , Cottrell , R. , Walker , R. J. , and Denzinger , J . 2009. The end-to-end use of source code examples: An exploratory study . In Proceedings of International Conference on Software Maintenance. 555-558 . Holmes, R., Cottrell, R., Walker, R. J., and Denzinger, J. 2009. The end-to-end use of source code examples: An exploratory study. In Proceedings of International Conference on Software Maintenance. 555-558.
  14. Inoue , K. , Sasaki , Y. , Xia , P. , and Manabe , Y . 2012. Where does this code come from and where does it go? - integrated code history tracker for open source systems . In Proceedings of the International Conference on Software Engineering. 331-341 . Inoue, K., Sasaki, Y., Xia, P., and Manabe, Y. 2012. Where does this code come from and where does it go? - integrated code history tracker for open source systems. In Proceedings of the International Conference on Software Engineering. 331-341.
  15. 10.1145/141936.141943 · DOI
  16. Kim , J. , Lee , S. , Hwang , S. W. , and Kim , S . 2010. Towards an intelligent code search engine . In Proceedings of the AAAI Conference on Artificial Intelligence. 1358- 1363 . Kim, J., Lee, S., Hwang, S. W., and Kim, S. 2010. Towards an intelligent code search engine. In Proceedings of the AAAI Conference on Artificial Intelligence. 1358- 1363.
  17. 10.1109/CSMR.2012.37 · DOI
  18. 10.1145/1985793.1985809 · DOI · Paper page
  19. 10.1145/1065010.1065018 · DOI · Paper page
  20. 10.1109/SUITE.2009.5070018 · doi:10.1109/suite.2009.5070018
  21. 10.1145/2384616.2384689 · DOI
  22. 10.1145/584955.584976 · DOI · Paper page
  23. 10.1145/1985429.1985438 · DOI
  24. 10.1109/MS.2009.193 · DOI · Paper page
  25. 10.1109/MS.2009.161 · DOI · Paper page
  26. 10.1109/ICSE.2009.5070525 · DOI · Paper page
  27. 10.1016/j.scico.2009.02.007 · DOI · Paper page
  28. 10.1145/1167473.1167508 · DOI · Paper page
  29. 10.1108/eb026562 · DOI · Paper page
  30. 10.5555/850947.853305 · doi:10.5555/850947.853305
  31. 10.1145/1321631.1321663 · DOI · Paper page
  32. Wang , J. , Yingnong , D. , Hongyu , Z. , Kai , C. , Xie , T. , and Dongmei , Z . 2013. Mining succinct and high-coverage API usage patterns from source code . In Proceedings of Working Conference on Mining Software Repositories, 319-328 . Wang, J., Yingnong, D., Hongyu, Z., Kai, C., Xie, T., and Dongmei, Z. 2013. Mining succinct and high-coverage API usage patterns from source code. In Proceedings of Working Conference on Mining Software Repositories, 319-328.
  33. 10.1145/1137983.1137997 · DOI · Paper page

Cited by

See all 145

Metadata

Authors
Keivanloo, I., Rilling, J., & Zou, Y.
Venue
Proceedings of the 36th International Conference on Software Engineering
Publisher
ACM
Published
2014-05-31
Pages
664-675
ISSN
0270-5257 (ISSN-L)
OpenAlex
W1986601961
Cited by
145
References
5
FWCI
10.54
Type
conference paper
Language
en
Open access
closed

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: Spotting working code examples. https://app.cochat.ai/papers/10.1145/2568225.2568292
The paper
Keivanloo, I., Rilling, J., & Zou, Y. (2014). Spotting working code examples. Proceedings of the 36th International Conference on Software Engineering. https://doi.org/10.1145/2568225.2568292

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.