ibragim-bad
commited on
Commit
•
da415d7
1
Parent(s):
772829a
Update README.md
Browse files
README.md
CHANGED
@@ -1,48 +1,106 @@
|
|
1 |
-
---
|
2 |
-
license: mit
|
3 |
-
configs:
|
4 |
-
- config_name: default
|
5 |
-
data_files:
|
6 |
-
- split: train
|
7 |
-
path: data/train-*
|
8 |
-
dataset_info:
|
9 |
-
features:
|
10 |
-
- name: instance_id
|
11 |
-
dtype: string
|
12 |
-
- name: patch
|
13 |
-
dtype: string
|
14 |
-
- name: repo
|
15 |
-
dtype: string
|
16 |
-
- name: base_commit
|
17 |
-
dtype: string
|
18 |
-
- name: hints_text
|
19 |
-
dtype: string
|
20 |
-
- name: created_at
|
21 |
-
dtype: string
|
22 |
-
- name: test_patch
|
23 |
-
dtype: string
|
24 |
-
- name: problem_statement
|
25 |
-
dtype: string
|
26 |
-
- name: version
|
27 |
-
dtype: string
|
28 |
-
- name: environment_setup_commit
|
29 |
-
dtype: string
|
30 |
-
- name: FAIL_TO_PASS
|
31 |
-
sequence: string
|
32 |
-
- name: PASS_TO_PASS
|
33 |
-
sequence: string
|
34 |
-
- name: meta
|
35 |
-
struct:
|
36 |
-
- name: failed_lite_validators
|
37 |
-
sequence: string
|
38 |
-
- name: has_test_patch
|
39 |
-
dtype: bool
|
40 |
-
- name: is_lite
|
41 |
-
dtype: bool
|
42 |
-
splits:
|
43 |
-
- name: train
|
44 |
-
num_bytes: 101732749
|
45 |
-
num_examples: 6426
|
46 |
-
download_size: 27722795
|
47 |
-
dataset_size: 101732749
|
48 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
configs:
|
4 |
+
- config_name: default
|
5 |
+
data_files:
|
6 |
+
- split: train
|
7 |
+
path: data/train-*
|
8 |
+
dataset_info:
|
9 |
+
features:
|
10 |
+
- name: instance_id
|
11 |
+
dtype: string
|
12 |
+
- name: patch
|
13 |
+
dtype: string
|
14 |
+
- name: repo
|
15 |
+
dtype: string
|
16 |
+
- name: base_commit
|
17 |
+
dtype: string
|
18 |
+
- name: hints_text
|
19 |
+
dtype: string
|
20 |
+
- name: created_at
|
21 |
+
dtype: string
|
22 |
+
- name: test_patch
|
23 |
+
dtype: string
|
24 |
+
- name: problem_statement
|
25 |
+
dtype: string
|
26 |
+
- name: version
|
27 |
+
dtype: string
|
28 |
+
- name: environment_setup_commit
|
29 |
+
dtype: string
|
30 |
+
- name: FAIL_TO_PASS
|
31 |
+
sequence: string
|
32 |
+
- name: PASS_TO_PASS
|
33 |
+
sequence: string
|
34 |
+
- name: meta
|
35 |
+
struct:
|
36 |
+
- name: failed_lite_validators
|
37 |
+
sequence: string
|
38 |
+
- name: has_test_patch
|
39 |
+
dtype: bool
|
40 |
+
- name: is_lite
|
41 |
+
dtype: bool
|
42 |
+
splits:
|
43 |
+
- name: train
|
44 |
+
num_bytes: 101732749
|
45 |
+
num_examples: 6426
|
46 |
+
download_size: 27722795
|
47 |
+
dataset_size: 101732749
|
48 |
+
---
|
49 |
+
|
50 |
+
# Dataset Summary
|
51 |
+
SWE-bench Extra is a dataset that can be used to train or evaluate agentic systems specializing in resolving GitHub issues. It is based on the methodology used to build SWE-bench benchmark and includes 6,448 Issue-Pull Request pairs sourced from 2,133 Python repositories.
|
52 |
+
|
53 |
+
# Dataset Description
|
54 |
+
The SWE-bench Extra dataset supports the development of software engineering agents capable of autonomously solving GitHub issues. The data collection process, based on the SWE-bench methodology, involves the following steps:
|
55 |
+
|
56 |
+
1. **Issue and Pull Request Collection**: Issues are gathered and linked with pull requests that successfully resolve them.
|
57 |
+
2. **Filtering**: Instances are filtered based on attributes such as issue descriptions, relevant code paths, and test patches.
|
58 |
+
3. **Execution-based Validation**: The project environments are set up and tests are run to verify that they execute correctly.
|
59 |
+
|
60 |
+
For a more detailed description of the data collection process, please refer to our blog post. [link]
|
61 |
+
|
62 |
+
As an example use case of this dataset, we’ve used SWE-bench-extra instances to generate a dataset of 84,480 trajectories (`nebius/swe-agent-trajectories` [link]). We’ve then trained an action generator model, that achieves a score of 19.2% on the subset of 50 random instances from the SWE-bench Verified benchmark, outperforming its parent model `Qwen2.5-72B-Instruct` by 30% relative improvement. Further augmenting the action generator with a guided search based on a critic model, also trained on this data, achieves 40.6% on the full SWE-bench Verified benchmark, which is state-of-the-art among agents using solely open-weight models. You can read more about this agent in our blog post, *“Leveraging Training and Search for Better Software Engineering Agents”* [https://nebius.com/blog/posts/training-and-search-for-software-engineering-agents].
|
63 |
+
|
64 |
+
# How to Use
|
65 |
+
|
66 |
+
```python
|
67 |
+
from datasets import load_dataset
|
68 |
+
ds = load_dataset('nebius/SWE-bench-extra')
|
69 |
+
```
|
70 |
+
|
71 |
+
# Dataset Statistics
|
72 |
+
Average, 75th percentile, and maximum values characterizing various attributes of the collected instances. Statistics are micro-averaged without grouping by repository.
|
73 |
+
|
74 |
+
| Data | Type | Mean | p75 | Max |
|
75 |
+
|---------------|--------------------|----------|----------|-----------|
|
76 |
+
| Issue text | Length (words) | 111.5 | 146 | 1,294 |
|
77 |
+
| Code base | Files (Non-test) | 71.71 | 72.00 | 2,264 |
|
78 |
+
| | Lines (Non-test) | 15,163.38| 13,777 | 1,039,288 |
|
79 |
+
| Gold patch | Files edited | 2.6 | 3 | 7 |
|
80 |
+
| | Lines edited | 56 | 76 | 300 |
|
81 |
+
| Tests | Fail to Pass | 10.94 | 5 | 4,941 |
|
82 |
+
| | Total | 58.5 | 49 | 7,820 |
|
83 |
+
|
84 |
+
# Dataset Structure
|
85 |
+
The dataset contains the following fields. It includes all fields from SWE-bench and adds a `meta` column, which indicates whether the instance meets the "lite" criteria and, if not, lists the failed validators.
|
86 |
+
|
87 |
+
| Field name | Type | Description |
|
88 |
+
|----------------------------|--------|-------------------------------------------------------------------------------------------------|
|
89 |
+
| `instance_id` | str | A formatted instance identifier, usually as `repo_owner__repo_name-PR-number`. |
|
90 |
+
| `patch` | str | The gold patch, the patch generated by the PR (minus test-related code), that resolved the issue. |
|
91 |
+
| `repo` | str | The repository owner/name identifier from GitHub. |
|
92 |
+
| `base_commit` | str | The commit hash of the repository representing the HEAD of the repository before the solution PR is applied. |
|
93 |
+
| `hints_text` | str | Comments made on the issue prior to the creation of the solution PR’s first commit creation date. |
|
94 |
+
| `created_at` | str | The creation date of the pull request. |
|
95 |
+
| `test_patch` | str | A test-file patch that was contributed by the solution PR. |
|
96 |
+
| `problem_statement` | str | The issue title and body. |
|
97 |
+
| `version` | str | Installation version to use for running evaluation. |
|
98 |
+
| `environment_setup_commit` | str | Commit hash to use for environment setup and installation. |
|
99 |
+
| `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. |
|
100 |
+
| `PASS_TO_PASS` | str | A JSON list of strings that represent tests that should pass before and after the PR application. |
|
101 |
+
| `meta` | str | A JSON dictionary indicating whether the instance is lite, along with a list of failed lite validators if it is not. |
|
102 |
+
|
103 |
+
To execute instances within SWE-bench, you need to provide a default recipe for dependency installation. The constants required for running these instances are described in this [link].
|
104 |
+
|
105 |
+
# Licensing Information
|
106 |
+
All dataset contents are available under the MIT license.
|