作者
Anh Tuan Nguyen, Michael Hilton, Mihai Codoban, Hoan Anh Nguyen, Lily Mast, Eli Rademacher, Tien N Nguyen, Danny Dig
发表日期
2016/11/1
图书
Proceedings of the 2016 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering
页码范围
511-522
简介
Learning and remembering how to use APIs is difficult. While code-completion tools can recommend API methods, browsing a long list of API method names and their documentation is tedious. Moreover, users can easily be overwhelmed with too much information. We present a novel API recommendation approach that taps into the predictive power of repetitive code changes to provide relevant API recommendations for developers. Our approach and tool, APIREC, is based on statistical learning from fine-grained code changes and from the context in which those changes were made. Our empirical evaluation shows that APIREC correctly recommends an API call in the first position 59% of the time, and it recommends the correct API call in the top five positions 77% of the time. This is a significant improvement over the state-of-the-art approaches by 30-160% for top-1 accuracy, and 10-30% for top-5 accuracy …
引用总数
20172018201920202021202220232024927362838213213
学术搜索中的文章
AT Nguyen, M Hilton, M Codoban, HA Nguyen, L Mast… - Proceedings of the 2016 24th ACM SIGSOFT …, 2016