arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.08332cs.SEcs.IRcs.LGcs.SI
收藏

面向开源软件开发者的代码推荐

Code Recommendation for Open Source Software Developers

Georgia Institute of Technology(佐治亚理工学院);University of California, Los Angeles(加利福尼亚大学洛杉矶分校)

Yiqiao Jin, Yunsheng Bai, Yanqiao Zhu, Yizhou Sun, Wei Wang

AI总结:

本文形式化代码推荐问题,提出基于异质图与文件结构聚合的 CODER 框架,联合建模用户—代码和用户—项目交互,并构建三个大规模数据集,在多场景下验证其优越性能。

摘要:

开源软件(OSS)正在构成技术基础设施的支柱,吸引了数以百万计的人才参与贡献。值得注意的是,在向 OSS 开发者推荐合适的开发任务时,同时考虑开发者的兴趣和项目代码的语义特征既具有挑战性,又十分关键。本文中,我们形式化定义了代码推荐这一新问题,其目标是在给定开发者交互历史、源代码语义特征以及项目层级文件结构的情况下,预测开发者未来的贡献行为。考虑到系统内多方之间复杂的交互关系,我们提出了 CODER,这是一种面向开源软件开发者的新型基于图的代码推荐框架。CODER 通过异质图联合建模微观的用户—代码交互和宏观的用户—项目交互,并进一步在反映项目层级的文件结构图上进行聚合,从而桥接两个层级的信息。此外,由于缺乏可靠的基准,我们构建了三个大规模数据集,以促进该方向的未来研究。大量实验表明,我们的 CODER 框架在项目内推荐、跨项目推荐和冷启动推荐等多种实验设置下均取得了优越性能。本工作被接收后,我们将发布所有数据集、代码以及用于数据检索的实用工具。

英文摘要:

Open Source Software (OSS) is forming the spines of technology infrastructures, attracting millions of talents to contribute. Notably, it is challenging and critical to consider both the developers' interests and the semantic features of the project code to recommend appropriate development tasks to OSS developers. In this paper, we formulate the novel problem of code recommendation, whose purpose is to predict the future contribution behaviors of developers given their interaction history, the semantic features of source code, and the hierarchical file structures of projects. Considering the complex interactions among multiple parties within the system, we propose CODER, a novel graph-based code recommendation framework for open source software developers. CODER jointly models microscopic user-code interactions and macroscopic user-project interactions via a heterogeneous graph and further bridges the two levels of information through aggregation on file-structure graphs that reflect the project hierarchy. Moreover, due to the lack of reliable benchmarks, we construct three large-scale datasets to facilitate future research in this direction. Extensive experiments show that our CODER framework achieves superior performance under various experimental settings, including intra-project, cross-project, and cold-start recommendation. We will release all the datasets, code, and utilities for data retrieval upon the acceptance of this work.

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

↑