arrow
Return

MULAPI: Improving API method recommendation with API usage location

delete2018-08-01
delete38
PRE
AI
C
Congying Xu
X
Xiaobing Sun *
B
Bin Li
X
Xintong Lu
H
Hongjing Guo
DOI:10.1016/j.jss.2018.04.060delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
During the evolution of a software system, a large number of feature requests are continuously proposed by users. To implement these feature requests, developers often utilize existing third-party libraries and make use of Application Programming Interfaces (APIs) to accelerate the feature implementation process. However, it is not always obvious which API methods are suitable and where these API methods can be used in the target program. In this paper, we propose an approach, MULAPI (Method Usage and Location for API), to recommend API methods and figure out the API usage location where these API methods would be used. MULAPI employs feature location to identify feature related files as API usage location. Further, these feature related files are taken into account to recommend API methods by exploring the source code repository and API libraries as well. We evaluate MULAPI on more than 1000 feature requests of eight Java projects (Axis/Java, CXF, Hadoop Common, Hbase, Struts2, Hadoop HDFS, Hive and Hadoop Map/Reduce), and recommend API methods from ten third party libraries. The empirical results show that MULAPI can accurately recommend API methods and usage location, and moreover, MULAPI improves the effectiveness of API method recommendation, compared with the state-of-the-art approach.
Keywords:
API method recommendation
API usage location
Feature request
Feature location
Enabling Feature Location for API Method Recommendation and Usage Location
err2019-01-01
err9
errOAAI
errSun, Xiaobing; Xu, Congying; Li, Bin; Duan, Yucong; Lu, Xintong
errShare
errSave
FACER: An API usage-based code-example recommender for opportunistic reuse
err2021-08-18
err10
PREAI
errAbid, Shamsa; Shamail, Shafay; Basit, Hamid Abdul; Nadi, Sarah
errShare
errSave
Graph Link-Based Prediction for API Usage Recommendation
err2026-05-01
err0
PREAI
errGuo, Junxia; Tao, Yingjie; Lai, Baoqiang; Yu, Bowen; Li, Zheng
errShare
errSave
Understanding the API usage in Java
err2016-05-01
err45
PREAI
errQiu, Dong; Li, Bixin; Leung, Hareton
errShare
errSave
errShare
errSave
errShare
errSave

Journal

Journal of Systems and Software cover
Journal of Systems and Software
IF:
4.1
Papers:
5.5K
Citations:
1.0W

Organization

Yangzhou University cover
Yangzhou University
Scholars:
3.5K
Papers: 912
Citations: 1.5W
Cited Papers

Cited Papers

Stepwise API usage assistance using n-gram language models
err2017-09-01
err6
errOAAI
errSantos, Andre L.; Prendi, Goncalo; Sousa, Hugo; Ribeiro, Ricardo
errShare
errSave
API usage pattern recommendation for software development
err2017-07-01
err43
PREAI
errNiu, Haoran; Keivanloo, Iman; Zou, Ying
errShare
errSave
no more