Effective API Recommendation without Historical Software Repositories

被引:34
|
作者
Liu, Xiaoyu [1 ]
Huang, LiGuo [1 ]
Ng, Vincent [2 ]
机构
[1] Southern Methodist Univ, Dept Comp Sci & Engn, Dallas, TX 75205 USA
[2] Univ Texas Dallas, Human Language Technol Res Inst, Richardson, TX 75083 USA
关键词
API Recommendation; Machine Learning; CODE; CONTEXT;
D O I
10.1145/3238147.3238216
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
It is time-consuming and labor-intensive to learn and locate the correct API for programming tasks. Thus, it is beneficial to perform API recommendation automatically. The graph-based statistical model has been shown to recommend top-10 API candidates effectively. It falls short, however, in accurately recommending an actual top-1 API. To address this weakness, we propose RecRank, an approach and tool that applies a novel ranking-based discriminative approach leveraging API usage path features to improve top-1 API recommendation. Empirical evaluation on a large corpus of (1385+8) open source projects shows that RecRank significantly improves top-1 API recommendation accuracy and mean reciprocal rank when compared to state-of-the-art API recommendation approaches.
引用
收藏
页码:282 / 292
页数:11
相关论文
共 50 条
  • [1] API Recommendation System for Software Development
    Thung, Ferdian
    [J]. 2016 31ST IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE), 2016, : 896 - 899
  • [2] Mining Software Repositories for Automatic Interface Recommendation
    Sun, Xiaobing
    Li, Bin
    Duan, Yucong
    Shi, Wei
    Liu, Xiangyue
    [J]. SCIENTIFIC PROGRAMMING, 2016, 2016
  • [3] API usage pattern recommendation for software development
    Niu, Haoran
    Keivanloo, Iman
    Zou, Ying
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2017, 129 : 127 - 139
  • [4] Effective experience repositories for software engineering
    Schneider, K
    von Hunnius, JP
    [J]. 25TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2003, : 534 - 539
  • [5] ARisT: An effective API argument recommendation approach✩
    Nguyen, Son
    Manh, Cuong Tran
    Tran, Kien T.
    Nguyen, Tan M.
    Nguyen, Thu-Trang
    Ngo, Kien-Tuan
    Vo, Hieu Dinh
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2023, 204
  • [6] Detecting API Usage Patterns from Software Repositories Using Method Categorization
    Akbar, Rizky Januar
    Omori, Takayuki
    Maruyama, Katsuhisa
    [J]. KNOWLEDGE-BASED SOFTWARE ENGINEERING, 2012, 240 : 237 - +
  • [7] Evolutionary approach to constructing effective software reuse repositories
    Univ of Nebraska-Lincoln, Lincoln, United States
    [J]. ACM Trans Software Eng Methodol, 2 (111-140):
  • [8] API Method Recommendation without Worrying about the Task-API Knowledge Gap
    Huang, Qiao
    Xia, Xin
    Xing, Zhenchang
    Lo, David
    Wang, Xinyu
    [J]. PROCEEDINGS OF THE 2018 33RD IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMTED SOFTWARE ENGINEERING (ASE' 18), 2018, : 293 - 304
  • [9] Designing an Effective User Interface for Analyzing Software Repositories
    Tutko, Adam
    [J]. 2020 IEEE SYMPOSIUM ON VISUAL LANGUAGES AND HUMAN-CENTRIC COMPUTING (VL/HCC 2020), 2020,
  • [10] Historical Data Repositories in Software Engineering: Status and Possible Improvements
    Lavazza, Luigi
    Santillo, Luca
    [J]. PROCEEDINGS OF THE 2012 JOINT CONFERENCE OF THE 22ND INTERNATIONAL WORKSHOP ON SOFTWARE MEASUREMENT AND THE 2012 SEVENTH INTERNATIONAL CONFERENCE ON SOFTWARE PROCESS AND PRODUCT MEASUREMENT (IWSM-MENSURA 2012), 2012, : 221 - 225