princeton-nlp/SWE-bench
收藏资源简介:
SWE-bench是一个用于测试系统自动解决GitHub问题能力的数据集。该数据集收集了来自12个流行Python项目的2,294个Issue-Pull Request对。评估通过单元测试验证进行,使用PR后的行为作为参考解决方案。数据集包含多个特征,如repo、instance_id、base_commit、patch等,每个特征都有详细的描述。数据集的结构包括dev、test和train三个分割,分别包含225、2294和19008个示例。
SWE-bench is a dataset that tests systems’ ability to solve GitHub issues automatically. The dataset collects 2,294 Issue-Pull Request pairs from 12 popular Python projects. Evaluation is performed by unit test verification using post-PR behavior as the reference solution. The dataset includes multiple features such as repo, instance_id, base_commit, patch, etc., each with detailed descriptions. The dataset structure includes dev, test, and train splits, containing 225, 2294, and 19008 examples respectively.
数据集概述
数据集名称: SWE-bench
数据集目的: 测试系统自动解决GitHub问题的能力。该数据集收集了来自12个流行Python项目的2,294个Issue-Pull Request对。评估通过单元测试验证进行,使用Pull Request后的行为作为参考解决方案。
数据集特征
- repo (字符串): GitHub仓库所有者/名称标识。
- instance_id (字符串): 格式化的实例标识符,通常为repo_owner__repo_name-PR-number。
- base_commit (字符串): 解决方案Pull Request应用前仓库的提交哈希。
- patch (字符串): 由Pull Request生成的解决问题的黄金补丁(不包括测试相关代码)。
- test_patch (字符串): 解决方案Pull Request贡献的测试文件补丁。
- problem_statement (字符串): 问题标题和正文。
- hints_text (字符串): 解决方案Pull Request的第一个提交创建日期之前在问题上的评论。
- created_at (字符串): Pull Request的创建日期。
- version (字符串): 运行评估使用的安装版本。
- environment_setup_commit (字符串): 用于环境和安装设置的提交哈希。
- FAIL_TO_PASS (字符串): 由Pull Request解决并与问题解决相关联的测试集合的JSON列表。
- PASS_TO_PASS (字符串): 应用Pull Request前后应通过的测试的JSON列表。
数据集划分
- dev
- 字节数: 4783179
- 示例数: 225
- test
- 字节数: 44142926
- 示例数: 2294
- train
- 字节数: 367610377
- 示例数: 19008
数据集大小
- 下载大小: 120092029字节
- 数据集大小: 416536482字节
配置
- config_name: default
- dev: data/dev-*
- test: data/test-*
- train: data/train-*
语言
- 主要语言: 英语
数据实例结构
- 每个实例包含上述特征的详细信息,用于描述GitHub问题的解决过程和结果。




