Datasets:
|
Download docs/benchmark_details.md from omidiu/SCRBench: direct link, hf CLI and curl.
- Browser
- Download file 2.64 kB
-
https://huggingface.co/datasets/omidiu/SCRBench/resolve/main/docs/benchmark_details.md
- Command line
-
hf download hf://datasets/omidiu/SCRBench/docs/benchmark_details.md
-
curl -L -o benchmark_details.md https://huggingface.co/datasets/omidiu/SCRBench/resolve/main/docs/benchmark_details.md
2.64 kB
| # 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). | |