On the Creation of Representative Samples of Software Repositories
June Gorostidi, Adem Ait, Jordi Cabot, Javier Luis Cánovas Izquierdo
备注:
The paper has been accepted for publication in the Proceedings of the 18th International Symposium on Empirical Software Engineering and Measurement (ESEM 2024)
针对软件仓库抽样常依赖随机选择或无关变量的问题,提出一种兼顾仓库总体特征与实证研究需求的代表性样本创建方法,并以 Hugging Face 仓库用例验证。
摘要:
软件仓库是实证软件工程中的数据来源之一,主要体现在挖掘软件仓库领域,旨在从软件项目的动态和实践中提取知识。随着 GitHub 等社交编码平台的出现,研究人员如今可以访问数百万个软件仓库,将其用作研究的源数据。面对如此海量的数据,需要采用抽样技术来创建更易于管理的数据集。这些数据集的创建是关键步骤,研究人员必须谨慎选择仓库,以便根据一组感兴趣的变量创建具有代表性的样本。然而,当前的抽样方法通常基于随机选择,或依赖可能与研究无关的变量(例如流行度或活跃度)。在本文中,我们提出了一种创建软件仓库代表性样本的方法,其中这种代表性与仓库总体的特征以及实证研究的需求都适当地保持一致。我们通过基于 Hugging Face 仓库的用例来说明我们的方法。
英文摘要:
Software repositories is one of the sources of data in Empirical Software Engineering, primarily in the Mining Software Repositories field, aimed at extracting knowledge from the dynamics and practice of software projects. With the emergence of social coding platforms such as GitHub, researchers have now access to millions of software repositories to use as source data for their studies. With this massive amount of data, sampling techniques are needed to create more manageable datasets. The creation of these datasets is a crucial step, and researchers have to carefully select the repositories to create representative samples according to a set of variables of interest. However, current sampling methods are often based on random selection or rely on variables which may not be related to the research study (e.g., popularity or activity). In this paper, we present a methodology for creating representative samples of software repositories, where such representativeness is properly aligned with both the characteristics of the population of repositories and the requirements of the empirical study. We illustrate our approach with use cases based on Hugging Face repositories.
University of Rennes, Inria, CNRS, IRISA(雷恩大学、Inria、CNRS、IRISA);McGill University(麦吉尔大学);INSA Rennes, University of Rennes, Inria, CNRS, IRISA(雷恩国立应用科学学院、雷恩大学、Inria、CNRS、IRISA);DIRO, Université de Montréal(蒙特利尔大学DISO)
Forking Without Clicking: on How to Identify Software Repository Forks
随着时间的推移,软件“分叉”的概念已经从社区分歧的(负面)现象转变为使用分布式版本控制系统(Distributed Version Control System,简称DCS)存储库来协作改进单个产品而不会踩到彼此的脚趾。在这两种情况下,参与fork的Linux存储库共享共同开发历史的一部分。对软件分叉的研究通常依赖于托管平台元数据,如GitHub,作为构成分叉的真实来源。然而,这些“forge forks”只能识别为在平台上创建的forks存储库,例如,通过点击平台用户界面上的“fork”按钮。代码托管平台的多样性增加(例如,GitLab)和重要开发社区的习惯(例如,Linux内核,它主要不是托管在任何单一平台上)对信任代码托管平台来识别fork的可靠性提出了质疑。这样做可能会在实证研究中引入选择和方法上的偏见。在本文中,我们将探讨“软件分叉”的各种定义,试图捕捉现实世界中存在的分叉工作流。我们根据不同的定义量化了GitHub上有多少仓库被识别为fork的差异,确认了一个重要的数字可以通过只考虑forge fork而被忽略。我们研究了分叉网络的结构和规模,观察它们如何受到所提出的定义的影响,并讨论了对实证研究的潜在影响。
Survey Results on Threats To External Validity, Generalizability Concerns, Data Sharing and University-Industry Collaboration in Mining Software Repository (MSR) Research
Kyushu University(九州大学);Nara Institute of Science and Technology(奈良先端科学技术大学院大学);University of Bari(巴里大学);Singapore Management University(新加坡管理大学);University of Osaka(大阪大学);Shinshu University(信州大学);Heidelberg University(海德堡大学)
SWE-QA-Pro: A Representative Benchmark and Scalable Training Recipe for Repository-Level Code Understanding
University of Waterloo(滑铁卢大学);University of Toronto(多伦多大学);The Hong Kong University of Science and Technology(香港科学与技术大学);McGill University & MILA(麦吉尔大学及MILA);Verdent AI, Inc.(Verdent AI公司)
One-off Events? An Empirical Study of Hackathon Code Creation and Reuse
背景:黑客松已经成为团队合作项目和开发软件原型的热门活动。大多数现有的研究集中在事件期间的活动,对黑客代码的演变关注有限。目的:我们的目标是了解在黑客攻击事件中使用和创建的代码的演变,特别关注代码blob,具体来说,黑客攻击团队重用已有代码的频率,他们开发了多少新代码,如果代码在之后被重用,以及影响重用的因素。方法:我们从DevPost收集了22,183个黑客项目的信息,并从World of Code获得了相关的代码blob、作者、项目特征、原作者、代码创建时间、语言和大小信息。我们通过识别所有包含在黑客马拉松期间创建的blob的提交并识别所有包含这些提交的项目来跟踪代码blob的重用。我们还进行了一系列的调查,以更深入地了解黑客代码的演变,我们发送给黑客参与者的代码被重用,其代码没有被重用,以及重用一些黑客代码的开发人员。测试结果:在hacksons仓库中,9.14%的代码blob和8%的代码行(codelines)是在hacksons中创建的,大约三分之一的hacksons代码在其他项目中被blob和codelines重用。相关技术的数量和黑客松参与者的数量增加了重用概率。结论:我们的研究结果表明,黑客马拉松并不总是像常识所指示的那样是“一次性”的事件,它们可以作为这一领域进一步研究的起点。