Spotting working code examples
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.
Integrity signals
Registry
Cites
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.
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
The anatomy of a large-scale hypertextual Web search engine
Brin, S., & Page, L. (1998) · Computer Networks and ISDN Systems · doi:10.1016/s0169-7552(98)00110-x · Cited by 16,004
Introduction to information retrieval
(2009) · Choice Reviews Online · doi:10.5860/choice.46-2715 · Cited by 12,278
Introduction to Information Retrieval
Manning, C. D., Raghavan, P., & Schütze, H. (2008) · doi:10.1017/cbo9780511809071 · Cited by 11,288
Example-centric programming: integrating web search into the development environment
Brandt, J., Dontcheva, M., Weskamp, M., & Klemmer, S. R. (2010) · Proceedings of the SIGCHI Conference on Human Factors in Computing Systems · doi:10.1145/1753326.1753402 · Cited by 324
Analyzing and mining a code search engine usage log
Bajracharya, S. K., & Lopes, C. V. (2012) · Empirical Software Engineering · doi:10.1007/s10664-010-9144-6 · Cited by 90
Research works printed but not linked: 33
- 10.1145/1287624.1287630 · DOI · Paper page
- 10.1145/1882291.1882316 · DOI
- 10.1145/167088.167115 · DOI
- 10.1109/TSE.2007.70725 · DOI · Paper page
- 10.1002/widm.1074 · DOI · Paper page
- 10.1145/1133905.1133907 · DOI · Paper page
- 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.
- 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.
- 10.1007/978-3-642-00593-0_26 · DOI
- 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).
- 10.1109/SUITE.2009.5070022 · DOI
- 10.1145/1081706.1081744 · DOI · Paper page
- 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.
- 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.
- 10.1145/141936.141943 · DOI
- 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.
- 10.1109/CSMR.2012.37 · DOI
- 10.1145/1985793.1985809 · DOI · Paper page
- 10.1145/1065010.1065018 · DOI · Paper page
- 10.1109/SUITE.2009.5070018 · doi:10.1109/suite.2009.5070018
- 10.1145/2384616.2384689 · DOI
- 10.1145/584955.584976 · DOI · Paper page
- 10.1145/1985429.1985438 · DOI
- 10.1109/MS.2009.193 · DOI · Paper page
- 10.1109/MS.2009.161 · DOI · Paper page
- 10.1109/ICSE.2009.5070525 · DOI · Paper page
- 10.1016/j.scico.2009.02.007 · DOI · Paper page
- 10.1145/1167473.1167508 · DOI · Paper page
- 10.1108/eb026562 · DOI · Paper page
- 10.5555/850947.853305 · doi:10.5555/850947.853305
- 10.1145/1321631.1321663 · DOI · Paper page
- 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.
- 10.1145/1137983.1137997 · DOI · Paper page
Cited by
Gu, X., Zhang, H., & Kim, S. (2018) · Proceedings of the 40th International Conference on Software Engineering · doi:10.1145/3180155.3180167 · Cited by 547
Gu, X., Zhang, H., Zhang, D., & Kim, S. (2016) · Proceedings of the 2016 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering · doi:10.1145/2950290.2950334 · Cited by 485
Towards a Big Data Curated Benchmark of Inter-project Code Clones
Svajlenko, J., Islam, J. F., Keivanloo, I., Roy, C. K., & Mia, M. M. (2014) · 2014 IEEE International Conference on Software Maintenance and Evolution · doi:10.1109/icsme.2014.77 · Cited by 339
Self-citationDeepSim: deep learning code functional similarity
Zhao, G., & Huang, J. (2018) · Proceedings of the 2018 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3236024.3236068 · Cited by 261
Chen, C., Su, T., Meng, G., Xing, Z., & Liu, Y. (2018) · Proceedings of the 40th International Conference on Software Engineering · doi:10.1145/3180155.3180240 · Cited by 188
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.