FOCUS: A Recommender System for Mining API Function Calls and Usage Patterns
- 1 May 2019
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1050-1060
Abstract
Software developers interact with APIs on a daily basis and, therefore, often face the need to learn how to use new APIs suitable for their purposes. Previous work has shown that recommending usage patterns to developers facilitates the learning process. Current approaches to usage pattern recommendation, however, still suffer from high redundancy and poor run-time performance. In this paper, we reformulate the problem of usage pattern recommendation in terms of a collaborative-filtering recommender system. We present a new tool, FOCUS, which mines open-source project repositories to recommend API method invocations and usage patterns by analyzing how APIs are used in projects similar to the current project. We evaluate FOCUS on a large number of Java projects extracted from GitHub and Maven Central and find that it outperforms the state-of-the-art approach PAM with regards to success rate, accuracy, and execution time. Results indicate the suitability of context-aware collaborative-filtering recommender systems to provide API usage patterns.Keywords
This publication has 34 references indexed in Scilit:
- Performance evaluation of classification algorithms by k-fold and leave-one-out cross validationPattern Recognition, 2015
- How API Documentation FailsIEEE Software, 2015
- Could We Infer Unordered API Usage Patterns Only Using the Library Source Code?2015
- Code completion with statistical language models2014
- Mining StackOverflow to turn the IDE into a self-confident programming prompter2014
- Leveraging Crowd Knowledge for Software Comprehension and Development2013
- Collaborative Filtering Recommender Systems2007
- Context-Aware Collaborative Filtering System: Predicting the User’s Preference in the Ubiquitous Computing Environment2005
- Item-based collaborative filtering recommendation algorithms2001
- CONFIDENCE LIMITS FOR A CROSS‐PRODUCT RATIOAustralian Journal of Statistics, 1962