Datasets:
File size: 2,640 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 | # Benchmark details
[Back to SCRBench](../README.md) · [Paper](https://arxiv.org/abs/2610.41562) · [Generation and evaluation code](https://github.com/omidiu/SCRBench)
## Tasks and subsets
| Task | Input | Correct answer |
| --- | --- | --- |
| T1 · Detect equivalence | 4,500 pairs in `t1_t3` | Test-based equivalence label |
| T2 · Diagnose change | 2,250 non-equivalent pairs in `t2` | Altering transformation ID |
| T3 · Reconstruct a sequence | 4,500 pairs in `t1_t3` | Any ordered sequence recorded in `paths` |
The `t2` rows are exactly the non-equivalent `t1_t3` rows, in the same order.
Both evaluation subsets are contained in the 67,658-pair `full` corpus. They
are **not held-out splits**; training on `full` and testing on either subset
would leak evaluation pairs. Pairs may also share the same original program.
## Files and schema
| File | Configuration / split | Rows |
| --- | --- | ---: |
| `data/corpus.parquet` | `full` / `corpus` | 67,658 |
| `data/t1_t3_test.parquet` | `t1_t3` / `test` | 4,500 |
| `data/t2_test.parquet` | `t2` / `test` | 2,250 |
All three files have the same columns:
| Column | Meaning |
| --- | --- |
| `id` | Pair ID |
| `source`, `destination` | Original and modified Python programs |
| `paths` | Recorded valid ordered transformation sequences, as nested integer lists |
| `is_semantically_equivalent` | Equivalence label based on the recorded tests |
| `k` | Length of each recorded sequence, from 1 to 5 |
## Transformation IDs
| ID | Transformation | Effect |
| --- | --- | --- |
| 1 | Arithmetic Operators Misuse | Altering |
| 2 | Boolean Literals Misuse | Altering |
| 3 | Logical Operators Misuse | Altering |
| 4 | Comparison Operators Misuse | Altering |
| 5 | Rename Variables | Preserving |
| 6 | Dead Code Insertion V1 | Preserving |
| 7 | Dead Code Insertion V2 | Preserving |
| 8 | Operand Swap | Preserving |
| 9 | Loop Transformation | Preserving |
Each recorded sequence uses distinct IDs. Equivalent pairs have no altering ID;
non-equivalent pairs have exactly one, shared by all recorded paths for that pair.
## Limitations
Passing recorded tests does not prove equivalence on every input. The programs
are short Python examples with nine transformation operators. The balanced
evaluation subset does not reflect the full corpus's label distribution.
## Attribution
The source programs derive from [MBPP](https://huggingface.co/datasets/google-research-datasets/mbpp)
([Austin et al., 2021](https://arxiv.org/abs/2108.07732)). Cite the
[SCRBench paper](https://arxiv.org/abs/2610.41562) when using these pairs.
The dataset uses [CC BY 4.0](../LICENSE).
|