arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.07508cs.SE
收藏

揭示仓库中心性在开源软件项目生命周期预测中的价值

Revealing the value of Repository Centrality in lifespan prediction of Open Source Software Projects

Runzhi He, Hengzhi Ye, Minghui Zhou

AI总结:

本研究提出仓库中心性这一基于HITS权重的新度量,结合生存分析模型预测开源项目生命周期,验证其为预测弃用风险的核心特征,为开源生态健康监测提供新方法。

摘要:

背景:开源软件是现代软件的基础组成部分。然而,开源领域中项目弃用的普遍现象削弱了下游系统及整个生态的完整性,因此需要投入力量监测和预测项目弃用情况,帮助相关方采取主动应对措施。挑战:现有技术主要依赖某一时间点的静态特征进行预测,效果存在局限。目标:我们从用户-仓库网络中提出一种新度量指标,利用该指标训练项目弃用预测器,并证明其实际应用价值。方法:我们构建了一个包含2011年至2023年间103,354个非复刻GitHub开源项目的综合数据集。我们提出仓库中心性,这是一类HITS权重,能够捕捉仓库在仓库-用户星标网络中的人气变化。进一步结合该度量指标,我们利用梯度提升和深度学习领域的进展训练生存分析模型,用于预测项目生命周期或其生存风险。结果:研究揭示了HITS中心性度量与仓库弃用风险之间的相关性。仓库HITS权重下降表明其中心性和流行度降低,会导致弃用风险上升、预期生命周期缩短。由仓库中心性和其他仓库特征驱动的预测模型在测试集上取得了令人满意的准确率,其中仓库中心性是所有特征中最重要的特征。意义:本研究为理解流行度对开源仓库弃用的影响提供了全新视角。我们提出的仓库弃用预测方法有助于检测项目健康状态并提前采取行动,推动构建更具韧性的开源生态系统。

英文摘要:

Background: Open Source Software is the building block of modern software. However, the prevalence of project deprecation in the open source world weakens the integrity of the downstream systems and the broad ecosystem. Therefore it calls for efforts in monitoring and predicting project deprecations, empowering stakeholders to take proactive measures. Challenge: Existing techniques mainly focus on static features on a point in time to make predictions, resulting in limited effects. Goal: We propose a novel metric from the user-repository network, and leverage the metric to fit project deprecation predictors and prove its real-life implications. Method: We establish a comprehensive dataset containing 103,354 non-fork GitHub OSS projects spanning from 2011 to 2023. We propose repository centrality, a family of HITS weights that captures shifts in the popularity of a repository in the repository-user star network. Further with the metric, we utilize the advancements in gradient boosting and deep learning to fit survival analysis models to predict project lifespan or its survival hazard. Results: Our study reveals a correlation between the HITS centrality metrics and the repository deprecation risk. A drop in the HITS weights of a repository indicates a decline in its centrality and prevalence, leading to an increase in its deprecation risk and a decrease in its expected lifespan. Our predictive models powered by repository centrality and other repository features achieve satisfactory accuracy on the test set, with repository centrality being the most significant feature among all. Implications: This research offers a novel perspective on understanding the effect of prevalence on the deprecation of OSS repositories. Our approach to predict repository deprecation help detect health status of project and take actions in advance, fostering a more resilient OSS ecosystem.

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

↑