SWE-bench_Verified
收藏资源简介:
SWE-bench Verified是SWE-bench测试集的一个子集,包含500个经过人工验证的样本,用于测试系统自动解决GitHub问题的能力。该数据集收集了来自流行Python仓库的500个测试问题-拉取请求对,评估通过使用拉取请求后的行为作为参考解决方案的单元测试验证进行。原始SWE-bench数据集是作为SWE-bench: Can Language Models Resolve Real-World GitHub Issues?的一部分发布的。数据集主要包含问题描述、基础提交、补丁、测试补丁等特征,支持的任务是给定完整仓库和GitHub问题的问题解决。数据集文本主要为英文。
SWE-bench Verified is a subset of the SWE-bench benchmark dataset, which comprises 500 manually verified samples for evaluating a system's ability to automatically resolve GitHub issues. This dataset gathers 500 test problem-pull request pairs from popular Python repositories, with evaluation performed via unit test validation that uses the behavior post the pull request's application as the reference solution. The original SWE-bench dataset was released as part of the academic paper *SWE-bench: Can Language Models Resolve Real-World GitHub Issues?*. The dataset primarily includes features such as problem descriptions, base commits, patches, test patches and other related items, and supports the task of solving problems given a complete code repository and a GitHub issue. The textual content of this dataset is predominantly in English.
SWE-bench Verified 数据集概述
数据集简介
SWE-bench Verified 是 SWE-bench 测试集的一个子集,包含 500 个经过人工验证的样本。该数据集用于测试系统自动解决 GitHub 问题的能力。数据收集自流行的 Python 仓库,包含 500 个测试用的 Issue-Pull Request 对。评估通过单元测试验证进行,以 PR 后的行为作为参考解决方案。
数据集结构
- 数据格式:包含 13 个特征字段。
- 数据划分:仅包含一个
test划分,共有 500 个样本。 - 下载大小:2,090,700 字节。
- 数据集大小:7,784,544 字节。
特征字段说明
- repo:GitHub 仓库所有者/名称标识符。
- instance_id:格式化的实例标识符,通常为
repo_owner__repo_name-PR-number。 - base_commit:应用解决方案 PR 前,仓库 HEAD 的提交哈希。
- patch:解决该问题的黄金补丁(由 PR 生成,不含测试相关代码)。
- test_patch:解决方案 PR 贡献的测试文件补丁。
- problem_statement:问题的标题和正文。
- hints_text:在解决方案 PR 的第一个提交创建日期之前,对该问题发表的评论。
- created_at:拉取请求的创建日期。
- version:用于运行评估的安装版本。
- environment_setup_commit:用于环境设置和安装的提交哈希。
- FAIL_TO_PASS:一个 JSON 字符串列表,表示由 PR 解决并与问题解决相关的测试集合。
- PASS_TO_PASS:一个 JSON 字符串列表,表示在 PR 应用前后都应通过的测试。
- difficulty:难度等级。
支持的任务与排行榜
- 主要任务:在给定完整仓库和 GitHub Issue 的情况下进行问题解决。
- 排行榜:https://www.swebench.com
相关资源
- 原始论文:SWE-bench: Can Language Models Resolve Real-World GitHub Issues?
- 用于推理的其他数据集:
princeton-nlp/SWE-bench_Lite_oracleprinceton-nlp/SWE-bench_Lite_bm25_13Kprinceton-nlp/SWE-bench_Lite_bm25_27K
语言
数据集文本主要为英文,未进行基于语言类型的过滤或清洗。




