CoChat

Intelligent Code Completion with Bayesian Networks

Proksch, Sebastian, Lerch, Johannes, Mezini, Mira · 2015 · ACM Transactions on Software Engineering and Methodology
Cited by 81

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

Abstract

Code completion is an integral part of modern Integrated Development Environments (IDEs). Developers often use it to explore Application Programming Interfaces (APIs). It is also useful to reduce the required amount of typing and to help avoid typos. Traditional code completion systems propose all type-correct methods to the developer. Such a list is often very long with many irrelevant items. More intelligent code completion systems have been proposed in prior work to reduce the list of proposed methods to relevant items. This work extends one of these existing approaches, the Best Matching Neighbor (BMN) algorithm. We introduce Bayesian networks as an alternative underlying model, use additional context information for more precise recommendations, and apply clustering techniques to improve model sizes. We compare our new approach, Pattern-based Bayesian Networks (PBN), to the existing BMN algorithm. We extend previously used evaluation methodologies and, in addition to prediction quality, we also evaluate model size and inference speed. Our results show that the additional context information we collect improves prediction quality, especially for queries that do not contain method calls. We also show that PBN can obtain comparable prediction quality to BMN, while model size and inference speed scale better with large input sizes.

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/2744200

Cites

1 of 1 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

Research works printed but not linked: 30

  1. 10.1145/1454247.1454267 · doi:10.1145/1454247.1454267
  2. 10.1145/1595696.1595728 · DOI · Paper page
  3. 10.1145/1188835.1188847 · DOI
  4. Raymond P., Proceedings of the International Conference on Software Engineering (ICSE'12)
  5. 10.1145/1526709.1526711 · DOI · Paper page
  6. 10.3115/981863.981904 · DOI · Paper page
  7. 10.1109/TIT.1967.1053964 · DOI · Paper page
  8. 10.1145/2491956.2462192 · DOI · Paper page
  9. 10.1109/CSMR.2012.14 · DOI
  10. 10.5555/2337223.2337322 · doi:10.5555/2337223.2337322
  11. 10.1145/1081706.1081755 · DOI · Paper page
  12. 10.1145/1081706.1081754 · DOI · Paper page
  13. Robert Cecil Martin. 2003. Agile Software Development: Principles Patterns and Practices. Prentice Hall PTR Upper Saddle River NJ. Robert Cecil Martin. 2003. Agile Software Development: Principles Patterns and Practices. Prentice Hall PTR Upper Saddle River NJ.
  14. 10.1145/347090.347123 · DOI · Paper page
  15. 10.1145/337180.337200 · doi:10.1145/337180.337200
  16. 10.5555/1883978.1883982 · doi:10.5555/1883978.1883982
  17. 10.1145/2491411.2491415 · DOI · Paper page
  18. Nguyen Anh Tuan, Proceedings of the International Conference on Software Engineering (ICSE'12)
  19. 10.1145/1595696.1595767 · DOI · Paper page
  20. 10.1145/2593822.2593827 · DOI
  21. Rish Irina, 2001, Proceedings of the Workshop on Empirical Methods in Artificial Intelligence (IJCAI'01)
  22. 10.1109/TSE.2012.63 · DOI · Paper page
  23. Michael Schultz J., 1999, Proceedings of the DARPA Broadcast News Workshop. Morgan Kaufmann Publishers, 189--192
  24. 10.1145/53990.54007 · DOI
  25. Shivers Olin, Topics in Advanced Language Implementation
  26. 10.1145/115865.115884 · DOI
  27. Strehl Alexander, 2000, Proceedings of the Workshop on Artificial Intelligence for Web Search (AAAI'00)
  28. 10.1109/INFCOM.2011.5935224 · DOI
  29. 10.5555/2337223.2337321 · doi:10.5555/2337223.2337321
  30. 10.1109/APSEC.2008.54 · DOI

Cited by

See all 81

Metadata

Authors
Proksch, S., Lerch, J., & Mezini, M.
Venue
ACM Transactions on Software Engineering and Methodology
Published
2015-12-02
Volume
25
Issue
1
Pages
1-31
ISSN
  • 1049-331X (ISSN-L)
  • 1557-7392
OpenAlex
W2266912522
Cited by
81
References
1
FWCI
17.12
Type
journal article
Language
en
Open access
closed
Funders
German Federal Ministry of Education and Research (01IS12054 and EC SPRIDE)

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.