arrow
Return

Fitting missing API puzzles with machine translation techniques

delete2023-04-01
delete4
PRE
AI
P
Phuong T. Nguyen
C
Claudio Di Sipio
J
Juri Di Rocco
D
Davide Di Ruscio *
M
Massimiliano Di Penta
DOI:10.1016/j.eswa.2022.119477delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
While implementing software projects, developers do not reinvent the wheel but try to reuse existing API calls and source code. In recent years, the problems related to recommending APIs and code snippets have been intensively investigated. Although current approaches have achieved encouraging performance, there is still the need to improve the recommendation process's effectiveness and efficiency. In this work, we reformulate the problem of API recommendations by proposing learning and recommending API sequences relevant to a given coding context. We present LUPE, a novel approach to API and code recommendation, exploiting cutting-edge deep learning techniques. Thanks to the underlying Encoder-Decoder architecture specialized in transforming sequences, LUPE can effectively learn the order in which invocations occur. The approach has been evaluated on two Android datasets and compared with GAPI and FACER, two state-of-the-art API recommender systems. Being fed with augmented training data, our conceived approach can obtain a high prediction accuracy, and produce a perfect match in several cases, hence outperforming the baselines.
Keywords:
API recommendation
Source code recommendation
Encoder-Decoder LSTM
Machine translation

Journal

Expert Systems with Applications cover
Expert Systems with Applications
IF:
7.5
Papers:
2.9W
Citations:
10.2W

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