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

大规模OSS许可证识别:基于World of Code的综合数据集

OSS License Identification at Scale: A Comprehensive Dataset Using World of Code

Mahmoud Jahanshahi, David Reid, Adam McDaniel, Audris Mockus

AI总结:

本研究利用World of Code构建了包含550万个许可证blob的OSS许可证数据集,通过winnowing近似匹配实现高精度识别,准确率达92.08%,支持合规检测与许可趋势研究。

摘要:

开源软件(OSS)的激增以及不同类型的复用方式,使得在软件供应链中执行一项至关重要的法律与合规任务——准确识别许可证——变得极其困难。本研究利用World of Code(WoC)基础设施,构建了一个可复用且全面的OSS许可证数据集。通过扫描文件路径中包含“license”的所有文件,并应用winnowing算法进行近似匹配,以从SPDX列表中识别最相似的许可证,我们在OSS项目中找到并识别出550万个不同的许可证blob。该数据集包含一个带有提交时间戳的详细项目到许可证(P2L)映射,从而能够对许可证的采用和随时间的变化进行动态分析。为验证数据集的准确性,我们采用分层抽样和人工审查,最终准确率达到92.08%,精确率为87.14%,召回率为95.45%,F1分数为91.11%。该数据集旨在支持一系列研究和实践任务,包括检测许可证不合规、调查许可证变更、研究许可趋势以及开发合规工具。该数据集是开放的,为OSS社区中的开发者、研究人员和法律专业人士提供了宝贵的资源。

英文摘要:

The proliferation of open source software (OSS) and different types of reuse has made it incredibly difficult to perform an essential legal and compliance task of accurate license identification within the software supply chain. This study presents a reusable and comprehensive dataset of OSS licenses, created using the World of Code (WoC) infrastructure. By scanning all files containing "license" in their file paths, and applying the approximate matching via winnowing algorithm to identify the most similar license from the SPDX list, we found and identified 5.5 million distinct license blobs in OSS projects. The dataset includes a detailed project-to-license (P2L) map with commit timestamps, enabling dynamic analysis of license adoption and changes over time. To verify the accuracy of the dataset we use stratified sampling and manual review, achieving a final accuracy of 92.08%, with precision of 87.14%, recall of 95.45%, and an F1 score of 91.11%. This dataset is intended to support a range of research and practical tasks, including the detection of license noncompliance, the investigations of license changes, study of licensing trends, and the development of compliance tools. The dataset is open, providing a valuable resource for developers, researchers, and legal professionals in the OSS community.

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

↑