学习推荐API级别的第三方库迁移机会
Learning to Recommend Third-Party Library Migration Opportunities at the API Level
摘要:
不同第三方库之间的手动迁移对软件开发人员来说是一个挑战。开发人员通常需要探索这两个库应用程序编程接口,以及阅读它们的文档,以便在替换和被替换的方法之间找到合适的映射。在本文中,我们介绍了RAPIM,一种新的机器学习方法,建议从两个不同的库的方法之间的映射。我们的模型从以前的迁移中学习,在挖掘的软件系统中手动执行,并提取一组与方法签名和方法文本文档之间的相似性相关的特征。我们使用从57,447个开源Java项目中收集的8个流行迁移来评估我们的模型。结果表明,RAPIM能够推荐相关的库API映射,平均准确率为87%。最后,我们为社区提供了一个API推荐Web服务,可用于支持迁移过程。
英文摘要:
The manual migration between different third-party libraries represents a challenge for software developers. Developers typically need to explore both libraries Application Programming Interfaces, along with reading their documentation, in order to locate the suitable mappings between replacing and replaced methods. In this paper, we introduce RAPIM, a novel machine learning approach that recommends mappings between methods from two different libraries. Our model learns from previous migrations, manually performed in mined software systems, and extracts a set of features related to the similarity between method signatures and method textual documentation. We evaluate our model using 8 popular migrations, collected from 57,447 open-source Java projects. Results show that RAPIM is able to recommend relevant library API mappings with an average accuracy score of 87%. Finally, we provide the community with an API recommendation web service that could be used to support the migration process.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。