princeton-nlp/SWE-bench_oracle_llama
收藏资源简介:
--- 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: 552504241 num_examples: 2294 download_size: 199998643 dataset_size: 552504241 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 llama 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: 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: 552504241 num_examples: 2294 download_size: 199998643 dataset_size: 552504241 configs: - config_name: default data_files: - split: test path: data/test-* --- ### 数据集概述 SWE-bench是一款用于评估系统自动解决GitHub议题能力的数据集。该数据集从12个热门Python项目中收集了2294条议题-拉取请求(Pull Request,简称PR)对。评估环节采用单元测试验证方式,以拉取请求合并后的代码行为作为参考解决方案。 ### 支持任务与排行榜 SWE-bench提出了一项全新任务:在提供完整代码仓库与GitHub议题的前提下完成议题修复。其官方排行榜可通过www.swebench.com访问。 ### 语言说明 该数据集的文本以英文为主,且未针对语言类型进行任何过滤或清洗操作。 ## 数据集结构 ### 数据样本 SWE-bench的单条数据样本示例如下: instance_id: (str) - 格式化的样本标识符,通常格式为 repo_owner__repo_name-PR-编号。 patch: (str) - 黄金补丁(gold patch),即由拉取请求生成的、用于修复该议题的代码补丁(已剔除与测试相关的代码)。 repo: (str) - 来自GitHub的代码仓库所有者/名称标识符。 base_commit: (str) - 该仓库的提交哈希值,代表解决方案拉取请求应用前的仓库HEAD版本。 hints_text: (str) - 在解决方案拉取请求的首次提交创建日期之前,针对该议题发布的评论内容。 created_at: (str) - 拉取请求的创建日期。 test_patch: (str) - 由解决方案拉取请求贡献的测试文件补丁。 problem_statement: (str) - 议题的标题与正文内容。 version: (str) - 运行评估时所需使用的安装版本。 environment_setup_commit: (str) - 用于环境搭建与安装的提交哈希值。 FAIL_TO_PASS: (str) - JSON格式的字符串列表,代表该拉取请求所修复的、与议题修复相关的测试集合。 PASS_TO_PASS: (str) - JSON格式的字符串列表,代表在拉取请求应用前后均应通过测试的集合。 text: (str) - 依据检索准则与[github:SWE-bench](https://github.com/princeton-nlp/SWE-bench)中所述的风格2提示生成的文本。 input_ids: (List[int]) - 对应每条文本的Llama模型Token序列。 labels: (sequence: int64) - 对应每条文本的int64类型标签序列。 [更多信息待补充](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
数据集概述
SWE-bench 是一个测试系统自动解决 GitHub 问题的能力的数据集。该数据集收集了来自 12 个流行 Python 项目的 2,294 个 Issue-Pull Request 对。评估通过使用 PR 后的行为作为参考解决方案的单元测试验证进行。
支持的任务和排行榜
SWE-bench 提出了一项新任务:在提供完整仓库和 GitHub 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) - 拉取请求的创建日期。test_patch(str) - 解决方案 PR 贡献的测试文件补丁。problem_statement(str) - Issue 的标题和正文。version(str) - 用于运行评估的安装版本。environment_setup_commit(str) - 用于环境和安装设置的提交哈希。FAIL_TO_PASS(str) - 表示由 PR 解决并与问题解决相关联的测试集的 JSON 字符串列表。PASS_TO_PASS(str) - 表示在 PR 应用前后应通过的测试的 JSON 字符串列表。text(str) - 根据检索标准和 github:SWE-bench 中找到的 style-2 提示生成的文本。input_ids(List[int]) - 每个文本的 llama 令牌。
数据分割
test分割包含 2294 个样本,总字节数为 552504241。
数据集大小
- 下载大小:199998643 字节
- 数据集大小:552504241 字节




