SWIM: synthesizing what i mean: code search and idiomatic snippet synthesis
Open accessThe DOI matches its Crossref record; 1 of the 1 references it cites were found in a registry or an index.
Abstract
Modern programming frameworks come with large libraries, with diverse applications such as for matching regular expressions, parsing XML files and sending email. Programmers often use search engines such as Google and Bing to learn about existing APIs. In this paper, we describe SWIM, a tool which suggests code snippets given API-related natural language queries such as "generate md5 hash code". The query does not need to contain framework-specific trivia such as the type names or methods of interest.
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
Code completion with statistical language models
Raychev, V., Vechev, M., & Yahav, E. (2014) · Proceedings of the 35th ACM SIGPLAN Conference on Programming Language Design and Implementation · doi:10.1145/2594291.2594321 · Cited by 555
Research works printed but not linked: 25
- Apache Lucene . https://lucene.apache.org , 2015 . Accessed on August 18, 2015. Apache Lucene. https://lucene.apache.org, 2015. Accessed on August 18, 2015.
- A. Allamanis , D. Tarlow , A. Gordon , and Y. Wei . Bimodal modelling of source code and natural language . In Proceedings of the 32th International Conference on Machine Learning, ICML 2015 , 2015 . A. Allamanis, D. Tarlow, A. Gordon, and Y. Wei. Bimodal modelling of source code and natural language. In Proceedings of the 32th International Conference on Machine Learning, ICML 2015, 2015.
- 10.5555/2487085.2487127 · doi:10.5555/2487085.2487127
- 10.1145/1040305.1040314 · DOI · Paper page
- 10.5555/972470.972474 · doi:10.5555/972470.972474
- 10.1007/978-3-642-00593-0_26 · DOI
- 10.1145/2568225.2568250 · DOI · Paper page
- 10.1145/2396761.2530275 · DOI
- 10.1145/1831708.1831723 · DOI
- 10.5555/2819009.2819139 · doi:10.5555/2819009.2819139
- 10.1145/2491956.2462192 · DOI · Paper page
- 10.5555/2032305.2032338 · doi:10.5555/2032305.2032338
- 10.1109/52.2023 · DOI
- 10.1145/2568225.2568292 · DOI · Paper page
- 10.1145/2462456.2464443 · DOI · Paper page
- 10.1145/1065010.1065018 · DOI · Paper page
- 10.1145/2384616.2384689 · DOI
- 10.1145/2430536.2430541 · DOI
- K. Ng , M. Warren , P. Golde , and A. Hejlsberg . The Roslyn project: Exposing the C# and VB compiler's code analysis. Microsoft white paper , Oct. 2011 . K. Ng, M. Warren, P. Golde, and A. Hejlsberg. The Roslyn project: Exposing the C# and VB compiler's code analysis. Microsoft white paper, Oct. 2011.
- 10.5555/2818754.2818858 · doi:10.5555/2818754.2818858
- 10.1145/1595696.1595767 · DOI · Paper page
- 10.1145/2254064.2254098 · DOI
- 10.1145/2676726.2677009 · DOI · Paper page
- 10.1109/TSE.1986.6312929 · DOI · Paper page
- 10.5555/645893.671612 · doi:10.5555/645893.671612
Cited by
A Syntactic Neural Model for General-Purpose Code Generation
Yin, P., & Neubig, G. (2017) · Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/p17-1041 · Cited by 623
A Syntactic Neural Model for General-Purpose Code Generation
Yin, P., & Neubig, G. (2017) · arXiv · doi:10.48550/arxiv.1704.01696 · Cited by 585
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
Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programming
Kazemitabaar, M., Chow, J., Ma, C. K. T., Ericson, B. J., Weintrop, D., & Grossman, T. (2023) · Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems · doi:10.1145/3544548.3580919 · Cited by 366
Are deep neural networks the best choice for modeling source code?
Hellendoorn, V. J., & Devanbu, P. (2017) · Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering · doi:10.1145/3106237.3106290 · Cited by 292
“Similarly, in a source code environment, language migration [20, 27], synthesis of code from natural language and vice versa [5, 14, 28, 30] as well as code suggestion engines [15, 33] all need models that score code fragments accurately.”
BackgroundBug Localization with Combination of Deep Learning and Information Retrieval
Lam, A. N., Nguyen, A. T., Nguyen, H. A., & Nguyen, T. N. (2017) · 2017 IEEE/ACM 25th International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc.2017.24 · Cited by 194
API method recommendation without worrying about the task-API knowledge gap
Huang, Q., Xia, X., Xing, Z., Lo, D., & Wang, X. (2018) · Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering · doi:10.1145/3238147.3238191 · Cited by 192
“Raghothaman et al. [33] proposed SWIM , a tool that learns common API usage patterns from open-source code repositories and synthesize idiomatic code describing the use of these APIs.”
Big code != big vocabulary: open-vocabulary models for source code
Karampatsis, R.-M., Babii, H., Robbes, R., Sutton, C., & Janes, A. (2020) · Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering · doi:10.1145/3377811.3380342 · Cited by 182
“Precise scoring of code fragments is essential for tasks such as translating a program from one programming language to another [54, 66], code completion [32, 76], and code synthesis from natural language and vice versa [7, 27, 67, 73].”
BackgroundIn-IDE Code Generation from Natural Language: Promise and Challenges
Xu, F. F., Vasilescu, B., & Neubig, G. (2022) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3487569 · Cited by 154
In-IDE Code Generation from Natural Language: Promise and Challenges
Xu, F. F., Vasilescu, B., & Neubig, G. (2021) · arXiv · doi:10.48550/arxiv.2101.11149 · Cited by 153
NLP2Code: Code Snippet Content Assist via Natural Language Tasks
Campbell, B. A., & Treude, C. (2017) · 2017 IEEE International Conference on Software Maintenance and Evolution (ICSME) · doi:10.1109/icsme.2017.56 · Cited by 65
Evaluating how developers use general-purpose web-search for code retrieval
Rahman, M. M., Barson, J., Paul, S., Kayani, J., Lois, F. A., Quezada, S. F., Parnin, C., Stolee, K. T., & Ray, B. (2018) · Proceedings of the 15th International Conference on Mining Software Repositories · doi:10.1145/3196398.3196425 · Cited by 62
Kuttal, S. K., Ong, B., Kwasny, K., & Robe, P. (2021) · Proceedings of the 2021 CHI Conference on Human Factors in Computing Systems · doi:10.1145/3411764.3445659 · Cited by 44
Metadata
- Authors
- Raghothaman, M., Wei, Y., & Hamadi, Y.
- Venue
- Proceedings of the 38th International Conference on Software Engineering
- Publisher
- ACM
- Published
- 2016-05-14
- Pages
- 357-367
- ISSN
- 0270-5257 (ISSN-L)
- OpenAlex
- W2175297521
- Cited by
- 132
- References
- 1
- FWCI
- 13.68
- Type
- conference paper
- Language
- en
- Open access
- green
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
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.