princeton-nlp/SWE-bench_oracle_cl100k
收藏资源简介:
SWE-bench是一个用于测试系统自动解决GitHub问题能力的数据集。该数据集收集了来自12个流行Python项目的2,294个Issue-Pull Request对,并通过单元测试验证来评估系统的性能。数据集的每个实例包含多个特征,如instance_id、patch、repo、base_commit等,这些特征详细描述了GitHub问题的解决过程。数据集的主要语言是英语,但未进行语言过滤或清理。
SWE-bench is a dataset for evaluating the ability of automated systems to solve GitHub issues. This dataset compiles 2,294 Issue-Pull Request pairs from 12 popular Python projects, and assesses system performance via unit test validation. Each instance in the dataset contains multiple features such as instance_id, patch, repo, base_commit, and others, which elaborate on the resolution process of the corresponding GitHub issues. The primary language of the dataset is English, and no language filtering or cleaning has been performed.
数据集概述
SWE-bench 是一个测试系统自动解决 GitHub 问题的数据集。该数据集收集了 2,294 个 Issue-Pull Request 对,来自 12 个流行的 Python 项目。评估通过单元测试验证进行,使用 PR 后的行为作为参考解决方案。
支持的任务和排行榜
SWE-bench 提出了一项新任务:在提供完整仓库和 GitHub Issue 的情况下解决 Issue。排行榜可以在 www.swebench.com 找到。
语言
数据集的文本主要是英语,但没有进行基于语言类型的过滤或清理。
数据集结构
数据实例
SWE-bench 数据实例的示例如下:
instance_id(str) - 格式化的实例标识符,通常为 repo_owner__repo_name-PR-number。patch(str) - 解决问题的黄金补丁,即 PR 生成的补丁(减去与测试相关的代码)。repo(str) - GitHub 仓库的 owner/name 标识符。base_commit(str) - 表示解决方案 PR 应用前仓库 HEAD 的提交哈希。hints_text(str) - 解决方案 PR 的第一个提交创建日期之前的 Issue 评论。created_at(str) - Pull Request 的创建日期。test_patch(str) - 解决方案 PR 贡献的测试文件补丁。problem_statement(str) - Issue 的标题和正文。version(str) - 用于运行评估的安装版本。environment_setup_commit(str) - 用于环境设置和安装的提交哈希。FAIL_TO_PASS(str) - 表示 PR 解决的与 Issue 相关的测试集的 JSON 字符串列表。PASS_TO_PASS(str) - 表示 PR 应用前后应通过的测试的 JSON 字符串列表。text(str) - 根据检索标准和 github:SWE-bench 中找到的 style-2 提示生成的文本。input_ids(List[int]) - 每个文本的 llama 令牌。
数据分割
test分割包含 2294 个样本,总字节数为 463914453。
数据集大小
- 下载大小:189998853 字节
- 数据集大小:463914453 字节
配置
default配置包含test分割的数据文件,路径为data/test-*。




