跨生态系统分类:一种依据Python PyPI主题对Java Maven库进行分类的人工策展协议
Cross-ecosystem categorization: A manual-curation protocol for the categorization of Java Maven libraries along Python PyPI Topics
AI总结:
本研究针对不同软件生态系统类别名称不统一、难以跨生态比较库数据集的问题,设计了一套人工引导的通用分类协议,参照PyPI主题对256个有严重漏洞的Java/Maven库分类,验证了可行性,为跨生态实证研究的机器学习提供基准真值。
摘要:
研究背景与问题:不同功能类别的软件(如文本处理与网络软件)在安全性、更新频率等指标上呈现不同特征。仅用流行度比较Java与Python等不同语言的库可能产生偏差,因为不同生态系统中最流行软件的类别分布存在差异。当不同软件生态系统甚至连类别名称都不统一时,如何跨生态系统比较库数据集?\n研究目标:本研究旨在生成一种不受语言限制、按功能用途划分的软件分类体系,以支持跨生态系统的库数据集研究,为软件指标比较提供所需的功能指纹信息。\n研究方法:我们设计并实现了一套人工引导的协议,用于对软件生态系统中的库进行分类。类别名称参照PyPI Topic(Python包索引主题)分类器,但该协议具有通用性,可应用于任何生态系统。我们通过对256个存在严重安全漏洞的Java/Maven库进行分类,验证了该协议的可行性。\n实验结果:该协议支持3人及以上团队对任意数量的库进行分类,生成的分类以功能为导向且不受语言限制。Java/Maven数据集的分类结果显示,互联网相关类别的库占多数,这与样本按严重漏洞筛选的标准一致。为支持研究复现与更新,我们将数据集及协议的具体步骤作为开放数据公开。\n研究结论与意义:通过本协议按功能用途对库进行分类是可行的,我们已借助其生成了包含256个库的Java数据集功能指纹。尽管该过程耗费人力,但人类在所需的推理任务中表现更优,因此暂不考虑实现流程的完全自动化。不过,分类结果可为大规模跨生态系统实证研究中的机器学习模型提供所需的基准真值。
英文摘要:
Context: Software of different functional categories, such as text processing vs. networking, has different profiles in terms of metrics like security and updates. Using popularity to compare e.g. Java vs. Python libraries might give a skewed perspective, as the categories of the most popular software vary from one ecosystem to the next. How can one compare libraries datasets across software ecosystems, when not even the category names are uniform among them? Objective: We study how to generate a language-agnostic categorisation of software by functional purpose, that enables cross-ecosystem studies of libraries datasets. This provides the functional fingerprint information needed for software metrics comparisons. Method: We designed and implemented a human-guided protocol to categorise libraries from software ecosystems. Category names mirror PyPI Topic classifiers, but the protocol is generic and can be applied to any ecosystem. We demonstrate it by categorising 256 Java/Maven libraries with severe security vulnerabilities. Results: The protocol allows three or more people to categorise any number of libraries. The categorisation produced is functional-oriented and language-agnostic. The Java/Maven dataset demonstration resulted in a majority of Internet-oriented libraries, coherent with its selection by severe vulnerabilities. To allow replication and updates, we make the dataset and the protocol individual steps available as open data. Conclusions: Libraries categorisation by functional purpose is feasible with our protocol, which produced the fingerprint of a 256-libraries Java dataset. While this was labour intensive, humans excel in the required inference tasks, so full automation of the process is not envisioned. However, results can provide the ground truth needed for machine learning in large-scale cross-ecosystem empirical studies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。