arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.22544cs.SE
收藏

SIEVE:面向软件工程研究的参数化GitHub语料库构建工具

SIEVE: A Parameterized GitHub Corpus Builder for Software Engineering Research

Concordia University(康科迪亚大学)

Musfiqur Rahman, Mahi Begoug, Emad Shihab

AI总结:

SIEVE是一款开源参数化GitHub语料库构建工具,以代码粒度构建标注语料库,支持多语言、多标准筛选,可用于软件工程研究与LLM评估,经人工验证准确率优异且公开可用。

摘要:

软件工程研究越来越依赖带有丰富标注的大规模真实代码语料库,但研究人员通常使用临时脚本或静态预构建数据集来组装这些语料库,无法控制语料库的组成,因此需要一种可复用的工具,该工具能深入到仓库级别以下,按照研究人员指定的标准构建带有标注的函数级和类级代码语料库。我们提出SIEVE(Software Ingestion & Extraction for Verifiable Evaluation,用于可验证评估的软件摄取与提取工具),这是一个开源的参数化GitHub语料库构建工具,与仓库级挖掘工具不同,它以代码粒度工作:在仓库中定位单个函数、方法和类,并将它们提取为记录,研究人员可根据多种标准直接控制语料库的构建,包括广泛使用的编程语言(Python、Java、JavaScript、C++)、仓库质量和创建日期。为支持软件工程研究和基于真实代码的大语言模型(LLM)评估,SIEVE会提取与CodeSearchNet和OpenClassGen兼容的记录,每条记录都带有22个结构指标和抽象语法树(AST)衍生特征的标注,还可选择性添加基于CodeBERT的P(AI生成)分数(F1值为0.9478,AUROC为0.9902),以及每个仓库的包清单中声明的第三方依赖项。这些标注使研究人员能够开展结构分析、研究代码依赖关系、评估AI生成的代码,并构建定制化基准来评估LLM,包括在时间约束下的评估。对四种语言和两种粒度的400条记录进行的人工验证显示,代码指标和导入检测的准确率为100%,源代码完整性的准确率为99.0%,元数据准确率为99.5%。SIEVE已公开提供,可在该httpsURL查看在线演示。

英文摘要:

Software engineering research increasingly relies on large, richly annotated corpora of real-world code. Still, researchers typically assemble these with ad-hoc scripts or static, pre-built datasets that offer no control over corpus composition. This leaves a gap for a reusable tool that goes below the repository level and builds annotated, function- and class-level code corpora under researcher-specified criteria. We present SIEVE (Software Ingestion & Extraction for Verifiable Evaluation), an open-source, parameterized GitHub corpus builder that, unlike repository-level mining tools, works at code granularity: it locates individual functions, methods, and classes in repositories and extracts them as records, giving direct control over corpus construction based on several criteria, including widely used programming languages (Python, Java, JavaScript, C++), repository quality, and creation date. To support software engineering research and LLM evaluation on real-world code, SIEVE extracts CodeSearchNet- and OpenClassGen-compatible records, each annotated with 22 structural metrics and AST-derived features, and optionally with a CodeBERT-based P(AI-generated) score (F1=0.9478, AUROC=0.9902), alongside the third-party dependencies declared in each repository's package manifest. These annotations enable researchers to conduct structural analyses, investigate code dependencies, assess AI-generated code, and construct customized benchmarks for evaluating LLMs, including under temporal constraints. A manual validation of 400 records in four languages and two granularities shows 100% accuracy in code metrics and import detection, 99.0% in source completeness, and 99.5% in metadata accuracy. SIEVE is publicly available with a live demo at https://mrahman2025-sieve.hf.space.

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

↑