论文标题
代码图书馆员:软件包推荐系统
Code Librarian: A Software Package Recommendation System
论文作者
论文摘要
包装库的使用可以通过提高代码的质量和可读性来大大缩短软件开发周期。在本文中,我们提出了一个名为开源库图书馆员的推荐引擎。如果以下情况,建议在给定上下文中使用候选库软件包,则经常与程序中的导入库一起使用; 2)它具有与程序中导入的库相似的功能; 3)它具有与开发人员的实现相似的功能,4)可以在提供的代码的上下文中有效地使用它。我们应用基于最先进的代码伯特的模型来分析源代码的上下文,以向用户提供相关的库建议。
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.