Datasets:
File size: 2,145 Bytes
3ecf9d6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | ---
pretty_name: SCRBench
license: cc-by-4.0
language:
- en
tags:
- code
- semantic-equivalence
configs:
- config_name: full
default: true
data_files:
- split: corpus
path: data/corpus.parquet
- config_name: t1_t3
data_files:
- split: test
path: data/t1_t3_test.parquet
- config_name: t2
data_files:
- split: test
path: data/t2_test.parquet
---
# SCRBench
**SCRBench: Beyond Equivalence Checking for Semantic Change Reasoning in Code**
67,658 pairs of Python programs derived from 418 preprocessed MBPP programs,
with test-based equivalence labels and recorded transformation sequences.
The benchmark supports detecting equivalence (T1), identifying an altering
transformation (T2), and reconstructing transformation sequences (T3).
[Paper](https://arxiv.org/abs/2610.41562) · [Code and reproduction](https://github.com/omidiu/SCRBench) · [Saved model responses](https://huggingface.co/datasets/omidiu/SCRBench-results)
## Data
| Configuration / split | Rows | Use |
| --- | ---: | --- |
| `full` / `corpus` | 67,658 | Full corpus |
| `t1_t3` / `test` | 4,500 | Shared T1/T3 evaluation subset |
| `t2` / `test` | 2,250 | Non-equivalent rows of T1/T3 |
The evaluation subsets are included in the full corpus; they are not held-out
splits. See the [dataset details](docs/benchmark_details.md)
for schema, transformations, and limitations.
## Load the data
The examples load the current `main` version. Add `revision="<commit SHA>"`
to each call when you need to reproduce a specific release or paper result.
```python
from datasets import load_dataset
corpus = load_dataset("omidiu/SCRBench", name="full", split="corpus")
t1_t3 = load_dataset("omidiu/SCRBench", name="t1_t3", split="test")
t2 = load_dataset("omidiu/SCRBench", name="t2", split="test")
```
## Citation and license
Cite [the SCRBench paper](https://arxiv.org/abs/2610.41562). The programs derive from [MBPP](https://huggingface.co/datasets/google-research-datasets/mbpp);
also credit [Austin et al. (2021)](https://arxiv.org/abs/2108.07732).
The data use [CC BY 4.0](LICENSE); the [source code](https://github.com/omidiu/SCRBench) uses MIT.
|