arrow
Return

Recommending API Function Calls and Code Snippets to Support Software Development

delete2022-07-01
delete24
delete
OA
AI
P
Phuong T. Nguyen
J
Juri Di Rocco
C
Claudio Di Sipio
D
Davide Di Ruscio *
M
Massimiliano Di Penta
DOI:10.1109/TSE.2021.3059907delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Software development activity has reached a high degree of complexity, guided by the heterogeneity of the components, data sources, and tasks. The proliferation of open-source software (OSS) repositories has stressed the need to reuse available software artifacts efficiently. To this aim, it is necessary to explore approaches to mine data from software repositories and leverage it to produce helpful recommendations. We designed and implemented FOCUS as a novel approach to provide developers with API calls and source code while they are programming. The system works on the basis of a context-aware collaborative filtering technique to extract API usages from OSS projects. In this work, we show the suitability of FOCUS for Android programming by evaluating it on a dataset of 2,600 mobile apps. The empirical evaluation results show that our approach outperforms two state-of-the-art API recommenders, UP-Miner and PAM, in terms of prediction accuracy. We also point out that there is no significant relationship between the categories for apps defined in Google Play and their API usages. Finally, we show that participants of a user study positively perceive the API and source code recommended by FOCUS as relevant to the current development context.
Keywords:
Recommender systems
Libraries
Tools
Data mining
Task analysis
Software engineering
Documentation
Recommender systems
API calls
source code recommendations
android programming

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.9K
Citations:
1.1W

Organization

University of LAquila cover
University of LAquila
Scholars:
7.4K
Papers: 6.6K
Citations: 6.7K
University of Sannio cover
University of Sannio
Scholars:
2.3K
Papers: 2.2K
Citations: 2.3K
Cited Papers

Cited Papers

Dear Editor
err1988-07-01
err0
PREAI
errCarl L. Stanitski
errShare
errSave
Dual Hole Transport Layers Heterojunction and Band Alignment Engineered Mo:BiVO4 Photoanodes for Efficient Water Splitting (Small 37/2024)
err2024-09-13
err0
PREAI
errGuilin Wang; Tongxin Tang; Kai‐Hang Ye; Xin Ding; Junwei Chen; WenHao Zou; Yushen Xiao; JieYu Li; Long Zhao; Chaojie Chen; Sitong Ge; Lei Li; Xiujuan Wei; Chao Chen; Yang Cao; Zhan Lin; Shanqing Zhang
errShare
errSave
How API Documentation Fails
err2015-07-01
err136
PREAI
errUddin, Gias; Robillard, Martin P.
errShare
errSave
errShare
errSave
errShare
errSave
Relationship between insulin‐like growth factor‐1 receptor and human papillomavirus in patients with oropharyngeal cancer
err2014-06-27
err0
PREAI
errFumihiko Matsumoto; Mitsuhisa Fujimaki; Shinichi Ohba; Masataka Kojima; Junkichi Yokoyama; Katsuhisa Ikeda
errShare
errSave
researcher View more