Update README.md
Browse files
README.md
CHANGED
|
@@ -2,89 +2,152 @@
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
pretty_name: Active-SWE
|
|
|
|
| 5 |
task_categories:
|
| 6 |
-
-
|
| 7 |
tags:
|
| 8 |
- code
|
| 9 |
- bug-fixing
|
| 10 |
- code-review
|
| 11 |
- software-engineering
|
|
|
|
| 12 |
- docker
|
| 13 |
-
configs:
|
| 14 |
-
- config_name: main
|
| 15 |
-
data_files:
|
| 16 |
-
- split: main
|
| 17 |
-
path: data/Active-SWE.parquet
|
| 18 |
-
- config_name: extend
|
| 19 |
-
data_files:
|
| 20 |
-
- split: extend
|
| 21 |
-
path: data/Active-SWE-Extend.parquet
|
| 22 |
---
|
| 23 |
|
| 24 |
# Active-SWE
|
| 25 |
|
| 26 |
-
Active-SWE is a
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
- **simple**: an instance centered on one source bug.
|
| 35 |
-
- **hard**: an instance
|
| 36 |
-
|
| 37 |
|
| 38 |
The `set` column identifies the instance type. The same `instance_id` can occur
|
| 39 |
-
once in each
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
-
##
|
| 43 |
|
| 44 |
-
|
| 45 |
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
| --- | --- | ---: | ---: | ---: | --- |
|
| 48 |
-
| `main`
|
| 49 |
-
| `extend`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
-
The
|
| 52 |
-
|
|
|
|
| 53 |
|
| 54 |
-
##
|
| 55 |
|
| 56 |
| Field | Description |
|
| 57 |
| --- | --- |
|
| 58 |
| `instance_id` | Public instance identifier |
|
| 59 |
| `repo` | Source repository in `owner/name` form |
|
| 60 |
| `base_commit` | Repository commit used as the evaluation base |
|
| 61 |
-
| `
|
| 62 |
-
| `set` | `simple` or `hard` |
|
| 63 |
| `language` | Main programming language |
|
| 64 |
-
| `merged_at` | Source change timestamp, when available |
|
| 65 |
-
| `image` | Docker image used by the evaluation harness |
|
| 66 |
| `files_pending_review` | Files provided to the proactive review stage |
|
| 67 |
-
| `major_category` | Bug taxonomy labels |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
| `test_framework` | Test framework used by the instance |
|
| 69 |
-
| `log_parser` | Harness log parser for
|
| 70 |
| `template` | Template used to render the evaluation command |
|
| 71 |
| `eval_script` | Instance-specific evaluation script |
|
| 72 |
| `FAIL_TO_PASS` | Tests expected to pass after the ground-truth fix |
|
| 73 |
| `PASS_TO_PASS` | Tests expected to remain passing |
|
|
|
|
| 74 |
| `source_f2p` | Source-level F2P mapping, mainly used for hard instances |
|
| 75 |
| `source_p2p` | Source-level P2P mapping, mainly used for hard instances |
|
| 76 |
| `edit_hunks` | Changed-file and hunk metadata |
|
|
|
|
| 77 |
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
`FAIL_TO_PASS`, `PASS_TO_PASS`, and source-level oracle fields are evaluation
|
| 82 |
-
inputs, not prompt fields for the proactive review model.
|
| 83 |
|
| 84 |
-
## Images
|
| 85 |
|
| 86 |
-
The `image` column contains the exact Docker image reference used by the
|
| 87 |
-
|
| 88 |
`docker.io/biningbin/active-swe` and are tagged with the `simple-` or `hard-`
|
| 89 |
prefix. The dataset does not contain image layers; pull the referenced image
|
| 90 |
before running an evaluation.
|
|
@@ -95,33 +158,12 @@ For example:
|
|
| 95 |
docker pull docker.io/biningbin/active-swe:simple-pylint-dev__pylint-5417
|
| 96 |
```
|
| 97 |
|
| 98 |
-
##
|
| 99 |
-
|
| 100 |
-
```python
|
| 101 |
-
from datasets import load_dataset
|
| 102 |
-
|
| 103 |
-
dataset = load_dataset(
|
| 104 |
-
"parquet",
|
| 105 |
-
data_files={
|
| 106 |
-
"main": "https://huggingface.co/datasets/XLearning-SCU/Active-SWE/resolve/main/data/Active-SWE.parquet",
|
| 107 |
-
"extend": "https://huggingface.co/datasets/XLearning-SCU/Active-SWE/resolve/main/data/Active-SWE-Extend.parquet",
|
| 108 |
-
},
|
| 109 |
-
)
|
| 110 |
-
```
|
| 111 |
-
|
| 112 |
-
Or download one file with the Hugging Face CLI:
|
| 113 |
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
## Evaluation protocol
|
| 120 |
-
|
| 121 |
-
The release harness runs the benchmark stages locally with Docker. The model
|
| 122 |
-
first receives the files pending review and generates a code patch. Later
|
| 123 |
-
stages can generate and validate tests, and the harness runs the rendered
|
| 124 |
-
evaluation scripts inside the referenced image.
|
| 125 |
|
| 126 |
The primary paper-facing metrics are:
|
| 127 |
|
|
@@ -129,13 +171,26 @@ The primary paper-facing metrics are:
|
|
| 129 |
LR | LP | Resolved | Count | TV | Revealed
|
| 130 |
```
|
| 131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
The denominator is the number of rows supplied to the corresponding run. The
|
| 133 |
-
release harness preserves one output row per input instance, including rows
|
| 134 |
-
|
|
|
|
|
|
|
| 135 |
|
| 136 |
-
|
|
|
|
|
|
|
|
|
|
| 137 |
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
|
|
|
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
pretty_name: Active-SWE
|
| 5 |
+
license: other
|
| 6 |
task_categories:
|
| 7 |
+
- text-generation
|
| 8 |
tags:
|
| 9 |
- code
|
| 10 |
- bug-fixing
|
| 11 |
- code-review
|
| 12 |
- software-engineering
|
| 13 |
+
- proactive-bug-fixing
|
| 14 |
- docker
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
# Active-SWE
|
| 18 |
|
| 19 |
+
Active-SWE is a benchmark for evaluating coding agents on **proactive bug
|
| 20 |
+
fixing without issue reports**. Unlike issue-driven benchmarks that provide a
|
| 21 |
+
complete problem statement, Active-SWE asks an agent to inspect a set of
|
| 22 |
+
`files_pending_review`, discover functional bugs, and generate corresponding
|
| 23 |
+
fixes.
|
| 24 |
|
| 25 |
+
Active-SWE contains 1,663 tasks from real-world open-source repositories,
|
| 26 |
+
covering six major bug categories and eight programming languages. The release
|
| 27 |
+
provides a compact 400-instance main set for efficient evaluation and a larger
|
| 28 |
+
1,663-instance extended set for broader-scale experiments.
|
| 29 |
+
|
| 30 |
+
- **GitHub**: https://github.com/XLearning-SCU/Active-SWE
|
| 31 |
+
- **Dataset**: https://huggingface.co/datasets/XLearning-SCU/Active-SWE
|
| 32 |
+
- **Leaderboard**: https://hbinli.github.io/Active-SWE/
|
| 33 |
+
|
| 34 |
+
## Dataset Summary
|
| 35 |
+
|
| 36 |
+
Each Active-SWE instance provides a repository snapshot, a list of files to
|
| 37 |
+
review, Docker-based evaluation metadata, and oracle fields used by the
|
| 38 |
+
evaluation harness. The model-facing task is to perform proactive bug fixing
|
| 39 |
+
from the review scope, not to solve a supplied issue report.
|
| 40 |
+
|
| 41 |
+
The benchmark evaluates two settings:
|
| 42 |
|
| 43 |
- **simple**: an instance centered on one source bug.
|
| 44 |
+
- **hard**: an instance combining multiple source bugs, designed for multi-bug
|
| 45 |
+
validation.
|
| 46 |
|
| 47 |
The `set` column identifies the instance type. The same `instance_id` can occur
|
| 48 |
+
once in each setting, so use `(set, instance_id)` as the stable key when joining
|
| 49 |
+
or comparing results.
|
| 50 |
+
|
| 51 |
+
## Supported Tasks
|
| 52 |
+
|
| 53 |
+
Active-SWE supports repository-level proactive bug-fixing evaluation. Given the
|
| 54 |
+
repository at `base_commit` and the `files_pending_review`, an agent should
|
| 55 |
+
identify high-impact functional bugs and produce a code patch.
|
| 56 |
+
|
| 57 |
+
The benchmark reports two complementary evaluation tracks:
|
| 58 |
+
|
| 59 |
+
- **Recorded bug repair**: whether the agent locates and resolves the known
|
| 60 |
+
recorded bugs.
|
| 61 |
+
- **Potential bug discovery**: whether additional bugs revealed by the agent are
|
| 62 |
+
valid and supported by fail-to-pass test evidence.
|
| 63 |
|
| 64 |
+
## Languages
|
| 65 |
|
| 66 |
+
Active-SWE covers eight programming language groups:
|
| 67 |
|
| 68 |
+
```text
|
| 69 |
+
Python | Go | Rust | PHP | Ruby | JavaScript/TypeScript | Java | C/C++
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
## Dataset Structure
|
| 73 |
+
|
| 74 |
+
This dataset repository contains Parquet files only:
|
| 75 |
+
|
| 76 |
+
| Split | File | Rows | simple | hard | Use |
|
| 77 |
| --- | --- | ---: | ---: | ---: | --- |
|
| 78 |
+
| `main` | `Active-SWE.parquet` | 400 | 300 | 100 | Main evaluation set |
|
| 79 |
+
| `extend` | `Active-SWE-Extend.parquet` | 1663 | 1411 | 252 | Extended evaluation set |
|
| 80 |
+
|
| 81 |
+
The main set is intended for a smaller and faster evaluation run. The extended
|
| 82 |
+
set contains the larger evaluation pool.
|
| 83 |
+
|
| 84 |
+
## Loading the Dataset
|
| 85 |
+
|
| 86 |
+
```python
|
| 87 |
+
from datasets import load_dataset
|
| 88 |
+
|
| 89 |
+
dataset = load_dataset(
|
| 90 |
+
"parquet",
|
| 91 |
+
data_files={
|
| 92 |
+
"main": "https://huggingface.co/datasets/XLearning-SCU/Active-SWE/resolve/main/Active-SWE.parquet",
|
| 93 |
+
"extend": "https://huggingface.co/datasets/XLearning-SCU/Active-SWE/resolve/main/Active-SWE-Extend.parquet",
|
| 94 |
+
},
|
| 95 |
+
)
|
| 96 |
+
|
| 97 |
+
main_set = dataset["main"]
|
| 98 |
+
extend_set = dataset["extend"]
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
Or download a file with the Hugging Face CLI:
|
| 102 |
+
|
| 103 |
+
```bash
|
| 104 |
+
hf download XLearning-SCU/Active-SWE Active-SWE.parquet \
|
| 105 |
+
--repo-type dataset --local-dir ./active_swe_data
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
## Data Fields
|
| 109 |
|
| 110 |
+
The Parquet files include both model-facing fields and evaluation-only oracle
|
| 111 |
+
fields. Oracle fields are required by the harness to compute benchmark metrics,
|
| 112 |
+
but they should **not** be exposed as model input during generation.
|
| 113 |
|
| 114 |
+
### Model-facing fields
|
| 115 |
|
| 116 |
| Field | Description |
|
| 117 |
| --- | --- |
|
| 118 |
| `instance_id` | Public instance identifier |
|
| 119 |
| `repo` | Source repository in `owner/name` form |
|
| 120 |
| `base_commit` | Repository commit used as the evaluation base |
|
| 121 |
+
| `set` | Instance setting: `simple` or `hard` |
|
|
|
|
| 122 |
| `language` | Main programming language |
|
|
|
|
|
|
|
| 123 |
| `files_pending_review` | Files provided to the proactive review stage |
|
| 124 |
+
| `major_category` | Bug taxonomy label or labels |
|
| 125 |
+
|
| 126 |
+
### Evaluation and harness fields
|
| 127 |
+
|
| 128 |
+
| Field | Description |
|
| 129 |
+
| --- | --- |
|
| 130 |
+
| `image` | Docker image used by the evaluation harness |
|
| 131 |
| `test_framework` | Test framework used by the instance |
|
| 132 |
+
| `log_parser` | Harness log parser for test output |
|
| 133 |
| `template` | Template used to render the evaluation command |
|
| 134 |
| `eval_script` | Instance-specific evaluation script |
|
| 135 |
| `FAIL_TO_PASS` | Tests expected to pass after the ground-truth fix |
|
| 136 |
| `PASS_TO_PASS` | Tests expected to remain passing |
|
| 137 |
+
| `patch` | Ground-truth patch for oracle and evaluation use |
|
| 138 |
| `source_f2p` | Source-level F2P mapping, mainly used for hard instances |
|
| 139 |
| `source_p2p` | Source-level P2P mapping, mainly used for hard instances |
|
| 140 |
| `edit_hunks` | Changed-file and hunk metadata |
|
| 141 |
+
| `merged_at` | Source change timestamp, when available |
|
| 142 |
|
| 143 |
+
In particular, `patch`, `eval_script`, `FAIL_TO_PASS`, `PASS_TO_PASS`,
|
| 144 |
+
`source_f2p`, `source_p2p`, and other oracle metadata are evaluation inputs,
|
| 145 |
+
not prompt fields for the proactive review model.
|
|
|
|
|
|
|
| 146 |
|
| 147 |
+
## Docker Images
|
| 148 |
|
| 149 |
+
The `image` column contains the exact Docker image reference used by the release
|
| 150 |
+
harness. Images are hosted in the public Docker Hub repository
|
| 151 |
`docker.io/biningbin/active-swe` and are tagged with the `simple-` or `hard-`
|
| 152 |
prefix. The dataset does not contain image layers; pull the referenced image
|
| 153 |
before running an evaluation.
|
|
|
|
| 158 |
docker pull docker.io/biningbin/active-swe:simple-pylint-dev__pylint-5417
|
| 159 |
```
|
| 160 |
|
| 161 |
+
## Evaluation Protocol
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
|
| 163 |
+
The release harness runs Active-SWE locally with Docker. An agent first receives
|
| 164 |
+
the `files_pending_review` and generates a code patch. The harness then applies
|
| 165 |
+
the patch in the corresponding Docker image and runs the rendered evaluation
|
| 166 |
+
script.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
|
| 168 |
The primary paper-facing metrics are:
|
| 169 |
|
|
|
|
| 171 |
LR | LP | Resolved | Count | TV | Revealed
|
| 172 |
```
|
| 173 |
|
| 174 |
+
- `LR` and `LP` measure localization recall and precision against recorded bug
|
| 175 |
+
edit locations.
|
| 176 |
+
- `Resolved` measures whether the recorded bugs are fully repaired by the
|
| 177 |
+
generated patch.
|
| 178 |
+
- `Count`, `TV`, and `Revealed` summarize potential bug discovery using
|
| 179 |
+
generated fail-to-pass tests and judge validation.
|
| 180 |
+
|
| 181 |
The denominator is the number of rows supplied to the corresponding run. The
|
| 182 |
+
release harness preserves one output row per input instance, including rows that
|
| 183 |
+
fail during generation or evaluation.
|
| 184 |
+
|
| 185 |
+
## License
|
| 186 |
|
| 187 |
+
Active-SWE is built from public GitHub repositories. The original source code,
|
| 188 |
+
commits, patches, tests, and other upstream repository materials retain their
|
| 189 |
+
respective project licenses. Users are responsible for complying with those
|
| 190 |
+
licenses when inspecting, using, or redistributing upstream-derived content.
|
| 191 |
|
| 192 |
+
The Active-SWE authors additionally reformulate task instructions/problem
|
| 193 |
+
statements and construct benchmark-specific metadata, review scopes, evaluation
|
| 194 |
+
artifacts, and synthetic components for proactive bug-fixing evaluation. These
|
| 195 |
+
Active-SWE-specific materials are released as part of this dataset repository
|
| 196 |
+
for research and benchmarking use.
|