DeepMig: A transformer-based approach to support coupled library and code migrations

被引:0
|
作者
机构
[1] Di Rocco, Juri
[2] Nguyen, Phuong T.
[3] Di Sipio, Claudio
[4] Rubei, Riccardo
[5] Di Ruscio, Davide
[6] Di Penta, Massimiliano
关键词
Application programs;
D O I
10.1016/j.infsof.2024.107588
中图分类号
学科分类号
摘要
Context: While working on software projects, developers often replace third-party libraries (TPLs) with different ones offering similar functionalities. However, choosing a suitable TPL to migrate to is a complex task. As TPLs provide developers with Application Programming Interfaces (APIs) to allow for the invocation of their functionalities after adopting a new TPL, projects need to be migrated by the methods containing the affected API calls. Altogether, the coupled migration of TPLs and code is a strenuous process, requiring massive development effort. Most of the existing approaches either deal with library or API call migration but usually fail to solve both problems coherently simultaneously. Objective: This paper presents DeepMig, a novel approach to the coupled migration of TPLs and API calls. We aim to support developers in managing their projects, at the library and API level, allowing them to increase their productivity. Methods: DeepMig is based on a transformer architecture, accepts a set of libraries to predict a new set of libraries. Then, it looks for the changed API calls and recommends a migration plan for the affected methods. We evaluate DeepMig using datasets of Java projects collected from the Maven Central Repository, ensuring an assessment based on real-world dependency configurations. Results: Our evaluation reveals promising outcomes: DeepMig recommends both libraries and code; by several projects, it retrieves a perfect match for the recommended items, obtaining an accuracy of 1.0. Moreover, being fed with proper training data, DeepMig provides comparable code migration steps of a static API migrator, a baseline for the code migration task. Conclusion: We conclude that DeepMig is capable of recommending both TPL and API migration, providing developers with a practical tool to migrate the entire project. © 2024 Elsevier B.V.
引用
收藏
相关论文
共 50 条
  • [41] Transformer-Based Approach to Pathology Diagnosis Using Audio Spectrogram
    Tami, Mohammad
    Masri, Sari
    Hasasneh, Ahmad
    Tadj, Chakib
    INFORMATION, 2024, 15 (05)
  • [42] A Transformer-based network intrusion detection approach for cloud security
    Zhenyue Long
    Huiru Yan
    Guiquan Shen
    Xiaolu Zhang
    Haoyang He
    Long Cheng
    Journal of Cloud Computing, 13
  • [43] Smart Home Notifications in Croatian Language: A Transformer-Based Approach
    Simunec, Magdalena
    Soic, Renato
    2023 17TH INTERNATIONAL CONFERENCE ON TELECOMMUNICATIONS, CONTEL, 2023,
  • [44] Molecular Descriptors Property Prediction Using Transformer-Based Approach
    Tran, Tuan
    Ekenna, Chinwe
    INTERNATIONAL JOURNAL OF MOLECULAR SCIENCES, 2023, 24 (15)
  • [45] A Transformer-based network intrusion detection approach for cloud security
    Long, Zhenyue
    Yan, Huiru
    Shen, Guiquan
    Zhang, Xiaolu
    He, Haoyang
    Cheng, Long
    JOURNAL OF CLOUD COMPUTING-ADVANCES SYSTEMS AND APPLICATIONS, 2024, 13 (01):
  • [46] A Transformer-Based Approach to Leakage Detection in Water Distribution Networks
    Luo, Juan
    Wang, Chongxiao
    Yang, Jielong
    Zhong, Xionghu
    Sensors, 2024, 24 (19)
  • [47] RTIDS: A Robust Transformer-Based Approach for Intrusion Detection System
    Wu, Zihan
    Zhang, Hong
    Wang, Penghai
    Sun, Zhibo
    IEEE ACCESS, 2022, 10 : 64375 - 64387
  • [48] Transformer-Based Approach for Automatic Semantic Financial Document Verification
    Toprak, Ahmet
    Turan, Metin
    IEEE Access, 2024, 12 : 184327 - 184349
  • [49] A transformer-based approach for Arabic offline handwritten text recognition
    Saleh Momeni
    Bagher BabaAli
    Signal, Image and Video Processing, 2024, 18 : 3053 - 3062
  • [50] Uncovering suggestions in MOOC discussion forums: a transformer-based approach
    Reina Sánchez, Karen
    Vaca Serrano, Gonzalo
    Arbáizar Gómez, Juan Pedro
    Duran-Heras, Alfonso
    Artificial Intelligence Review, 2025, 58 (01)