princeton-nlp/SWE-bench_bm25_13k_cl100k
收藏资源简介:
--- dataset_info: features: - name: base_commit dtype: string - name: hints_text dtype: string - name: created_at dtype: string - name: test_patch dtype: string - name: repo dtype: string - name: problem_statement dtype: string - name: version dtype: string - name: instance_id dtype: string - name: FAIL_TO_PASS dtype: string - name: PASS_TO_PASS dtype: string - name: environment_setup_commit dtype: string - name: text dtype: string - name: input_ids sequence: int32 - name: labels sequence: int64 - name: patch dtype: string splits: - name: test num_bytes: 278496488 num_examples: 2294 download_size: 114205622 dataset_size: 278496488 configs: - config_name: default data_files: - split: test path: data/test-* --- ### Dataset Summary 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. Evaluation is performed by unit test verification using post-PR behavior as the reference solution. ### Supported Tasks and Leaderboards SWE-bench proposes a new task: issue resolution provided a full repository and GitHub issue. The leaderboard can be found at www.swebench.com ### Languages The text of the dataset is primarily English, but we make no effort to filter or otherwise clean based on language type. ## Dataset Structure ### Data Instances An example of a SWE-bench datum is as follows: ``` instance_id: (str) - A formatted instance identifier, usually as repo_owner__repo_name-PR-number. patch: (str) - The gold patch, the patch generated by the PR (minus test-related code), that resolved the issue. repo: (str) - The repository owner/name identifier from GitHub. base_commit: (str) - The commit hash of the repository representing the HEAD of the repository before the solution PR is applied. hints_text: (str) - Comments made on the issue prior to the creation of the solution PR’s first commit creation date. created_at: (str) - The creation date of the pull request. test_patch: (str) - A test-file patch that was contributed by the solution PR. Problem_statement: (str) - The issue title and body. Version: (str) - Installation version to use for running evaluation. environment_setup_commit: (str) - commit hash to use for environment setup and installation. FAIL_TO_PASS: (str) - A json list of strings that represent the set of tests resolved by the PR and tied to the issue resolution. PASS_TO_PASS: (str) - A json list of strings that represent tests that should pass before and after the PR application. text: (str) - The generated text according to the retrieval criterion and the style-2 prompt found in [github:SWE-bench](https://github.com/princeton-nlp/SWE-bench). input_ids: (List[int]) - The cl100k_base tokens for each text. ``` [More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
--- dataset_info: 特征: - 名称: base_commit 数据类型: 字符串 - 名称: hints_text 数据类型: 字符串 - 名称: created_at 数据类型: 字符串 - 名称: test_patch 数据类型: 字符串 - 名称: repo 数据类型: 字符串 - 名称: problem_statement 数据类型: 字符串 - 名称: version 数据类型: 字符串 - 名称: instance_id 数据类型: 字符串 - 名称: FAIL_TO_PASS 数据类型: 字符串 - 名称: PASS_TO_PASS 数据类型: 字符串 - 名称: environment_setup_commit 数据类型: 字符串 - 名称: text 数据类型: 字符串 - 名称: input_ids 序列类型: int32 - 名称: labels 序列类型: int64 - 名称: patch 数据类型: 字符串 划分集: - 名称: test 字节数: 278496488 样本数量: 2294 下载大小: 114205622 数据集总大小: 278496488 配置项: - 配置名称: default 数据文件: - 划分集: test 路径: data/test-* --- ### 数据集概述 SWE-bench基准测试集(SWE-bench)用于评估系统自动解决GitHub议题的能力。该数据集从12个主流Python开源仓库中收集了2294组议题-拉取请求(Issue-Pull Request)对。评估环节采用单元测试验证,以拉取请求(PR)合并后的行为作为参考解决方案。 ### 支持任务与排行榜 SWE-bench基准测试集提出了一项全新任务:在提供完整代码仓库与GitHub议题的前提下完成议题修复。相关排行榜可访问www.swebench.com。 ### 语言说明 该数据集的文本以英文为主,且未针对语言类型进行过滤或清洗处理。 ## 数据集结构 ### 数据样例 SWE-bench的单条数据样例如下: instance_id: (字符串) - 格式化的实例标识符,通常格式为 repo_owner__repo_name-PR-number。 patch: (字符串) - 黄金补丁(gold patch),即由拉取请求(PR)生成的(剔除测试相关代码的)补丁,该补丁成功解决了对应议题。 repo: (字符串) - GitHub上的仓库所有者/名称标识符。 base_commit: (字符串) - 应用解决方案PR前,代表仓库HEAD的提交哈希值。 hints_text: (字符串) - 在解决方案PR的首次提交创建日期之前,议题下的评论内容。 created_at: (字符串) - 拉取请求的创建日期。 test_patch: (字符串) - 由解决方案PR贡献的测试文件补丁。 Problem_statement: (字符串) - 议题的标题与正文内容。 Version: (字符串) - 运行评估时需使用的安装版本。 environment_setup_commit: (字符串) - 用于环境搭建与安装的提交哈希值。 FAIL_TO_PASS: (字符串) - 一个JSON格式的字符串列表,代表由该PR解决并与议题修复相关的测试用例集合。 PASS_TO_PASS: (字符串) - 一个JSON格式的字符串列表,代表在PR应用前后均应通过的测试用例。 text: (字符串) - 根据检索准则与[github:SWE-bench](https://github.com/princeton-nlp/SWE-bench)中样式2提示生成的文本。 input_ids: (整数列表) - 对应text的cl100k_base分词Token(Token)序列。 [更多信息请参阅](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
数据集概述
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 上的仓库所有者/名称标识符。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]) - 每个文本的 cl100k_base 令牌。
数据分割
test分割包含 2294 个样本,总字节数为 278496488。
数据集大小
- 下载大小:114205622 字节
- 数据集大小:278496488 字节
配置
default配置包含test分割的数据文件路径为data/test-*。




