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.
翻译:软件包图书馆的使用可提高软件编码的质量和可读性,从而大大缩短软件开发周期。在本文件中,我们提出了一个名为开放源码图书馆图书管理员的建议引擎。建议为特定背景使用一个候选图书馆包,条件是:(1) 软件包在方案进口图书馆中经常使用;(2) 软件包的功能与方案进口图书馆相似;(3) 软件包的功能与开发商的功能相类似;(4) 软件包可以在提供代码的范围内有效使用。我们采用基于最新技术的代码库模型分析源码的背景,向用户提供相关的图书馆建议。