Title A Multi-Metric Ranking Approach for Library Migration Recommendations
Authors He, Hao
Xu, Yulin
Ma, Yixiao
Xu, Yifei
Liang, Guangtai
Zhou, Minghui
Affiliation Peking Univ, Dept Comp Sci & Technol, Beijing, Peoples R China
Minist Educ, Key Lab High Confidence Software Technol, Beijing, Peoples R China
Huawei Technol Co Ltd, Software Anal Lab, Shenzhen, Guangdong, Peoples R China
Keywords SOFTWARE
PRODUCTIVITY
QUALITY
REUSE
Issue Date 2021
Publisher 2021 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER 2021)
Abstract The wide adoption of third-party libraries in software projects is beneficial but also risky. An already-adopted third-party library may be abandoned by its maintainers, may have license incompatibilities, or may no longer align with current project requirements. Under such circumstances, developers need to migrate the library to another library with similar functionalities, but the migration decisions are often opinion-based and sub-optimal with limited information at hand. Therefore, several filtering-based approaches have been proposed to mine library migrations from existing software data to leverage "the wisdom of crowd," but they suffer from either low precision or low recall with different thresholds, which limits their usefulness in supporting migration decisions. In this paper, we present a novel approach that utilizes multiple metrics to rank and therefore recommend library migrations. Given a library to migrate, our approach first generates candidate target libraries from a large corpus of software repositories, and then ranks them by combining the following four metrics to capture different dimensions of evidence from development histories: Rule Support, Message Support, Distance Support, and API Support. We evaluate the performance of our approach with 773 migration rules (190 source libraries) that we borrow from previous work and recover from 21,358 Java GitHub projects. The experiments show that our metrics are effective to help identify real migration targets, and our approach significantly outperforms existing works, with MRR of 0.8566, top-1 precision of 0.7947, top-10 NDCG of 0.7702, and top-20 recall of 0.8939. To demonstrate the generality of our approach, we manually verify the recommendation results of 480 popular libraries not included in prior work, and we confirm 661 new migration rules from 231 of the 480 libraries with comparable performance. The source code, data, and supplementary materials are provided at: https://github.com/hehao98/MigrationHelper.
URI http://hdl.handle.net/20.500.11897/622912
ISBN 978-1-7281-9630-5
DOI 10.1109/SANER50967.2021.00016
Indexed EI
CPCI-S(ISTP)
Appears in Collections: 信息科学技术学院

Files in This Work
There are no files associated with this item.

Web of Science®


0

Checked on Last Week

Scopus®



Checked on Current Time

百度学术™


0

Checked on Current Time

Google Scholar™





License: See PKU IR operational policies.