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

Software Heritage 许可证数据集(2022版)

The Software Heritage License Dataset (2022 Edition)

Jesús M. González-Barahona, Sergio Montes-Leon, Gregorio Robles, Stefano Zacchiroli

AI总结:

本研究从Software Heritage归档库中构建了含690万个唯一许可证文件的2022版开放数据集,附多维度元数据与人工标注真值,可用于许可研究、分类器训练及检测工具改进。

摘要:

研究背景:当软件公开发布时,通常会随附其发布所依据的一个或多个许可证的全文,或是对这些许可证的详细说明。因此,包括FOSS(自由开源软件)许可证在内的公共许可证,通常可在源代码仓库中公开获取。\n研究目标:构建一个尽可能多地包含软件许可证文本或许可条款引用的文档数据集,并在构建完成后对数据集进行特征刻画,使其可用于后续研究或许可证分析相关的实际应用。\n研究方法:从Software Heritage——全球最大的公开FOSS源代码归档库——中检索所有文件名通常用于传达许可条款的文件的所有版本。通过自动化分析与人工分析相结合的方式,从多个维度对所有检索到的文档进行特征刻画。\n研究结果:该数据集包含690万个唯一的许可证文件。数据集还提供了随附许可证文件的额外元数据,使其可直接应用于多种场景,元数据包括:文件长度指标、MIME类型、SPDX许可证(通过ScanCode检测得到)以及最早出现时间。数据集还包含对8102份文档的人工分析结果,可为后续分析提供基准真值。该数据集以开放数据形式发布,内容为包含所有去重后许可证文件的归档包,外加若干便携的CSV元数据文件,通过加密校验和引用对应文件。\n研究结论:得益于Software Heritage的广泛覆盖范围,本文提出的数据集覆盖了公共代码中绝大部分软件许可证。我们整合了大量软件许可证,对其进行了定量与定性的特征刻画,并验证了数据集主要由许可信息构成,且几乎包含所有已知的许可证文本。该数据集可用于开展开源许可的实证研究、自动化许可证分类器的训练、法律文本的自然语言处理(NLP)分析,以及FOSS许可的历史与演化谱系研究。它还可在实际应用中用于改进源代码中的许可证检测工具。

英文摘要:

Context: When software is released publicly, it is common to include with it either the full text of the license or licenses under which it is published, or a detailed reference to them. Therefore public licenses, including FOSS (free, open source software) licenses, are usually publicly available in source code repositories.Objective: To compile a dataset containing as many documents as possible that contain the text of software licenses, or references to the license terms. Once compiled, characterize the dataset so that it can be used for further research, or practical purposes related to license analysis.Method: Retrieve from Software Heritage-the largest publicly available archive of FOSS source code-all versions of all files whose names are commonly used to convey licensing terms. All retrieved documents will be characterized in various ways, using automated and manual analyses.Results: The dataset consists of 6.9 million unique license files. Additional metadata about shipped license files is also provided, making the dataset ready to use in various contexts, including: file length measures, MIME type, SPDX license (detected using ScanCode), and oldest appearance. The results of a manual analysis of 8102 documents is also included, providing a ground truth for further analysis. The dataset is released as open data as an archive file containing all deduplicated license files, plus several portable CSV files with metadata, referencing files via cryptographic checksums.Conclusions: Thanks to the extensive coverage of Software Heritage, the dataset presented in this paper covers a very large fraction of all software licenses for public code. We have assembled a large body of software licenses, characterized it quantitatively and qualitatively, and validated that it is mostly composed of licensing information and includes almost all known license texts. The dataset can be used to conduct empirical studies on open source licensing, training of automated license classifiers, natural language processing (NLP) analyses of legal texts, as well as historical and phylogenetic studies on FOSS licensing. It can also be used in practice to improve tools detecting licenses in source code.

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

↑