arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.05406cs.SEcs.AI
收藏

代码库管理员:一个软件包推荐系统

Code Librarian: A Software Package Recommendation System

JP Morgan Chase(摩根大通)

Lili Tao, Alexandru-Petre Cazan, Senad Ibraimoski, Sean Moran

摘要:

使用打包库可以通过提高代码的质量和可读性来显著缩短软件开发周期。在本文中,我们提出了一个推荐引擎称为Librarian的开源图书馆。推荐一个候选库包用于给定的上下文,如果:1)它经常与程序中导入的库一起使用; 2)它与程序中导入的库具有相似的功能; 3)它与开发人员的实现具有相似的功能; 4)它可以在所提供的代码的上下文中有效地使用。我们应用最先进的基于CodeBERT的模型来分析源代码的上下文,以向用户提供相关的库建议。

英文摘要:

The use of packaged libraries can significantly shorten the software development cycle by improving the quality and readability of code. In this paper, we present a recommendation engine called Librarian for open source libraries. A candidate library package is recommended for a given context if: 1) it has been frequently used with the imported libraries in the program; 2) it has similar functionality to the imported libraries in the program; 3) it has similar functionality to the developer's implementation, and 4) it can be used efficiently in the context of the provided code. We apply the state-of-the-art CodeBERT-based model for analysing the context of the source code to deliver relevant library recommendations to users.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑