SCRBench / README.md
omidiu's picture
Publish SCRBench benchmark
3ecf9d6
|
Raw History Blame Contribute Delete
2.15 kB
metadata
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 · Code and reproduction · Saved model responses

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 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.

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. The programs derive from MBPP; also credit Austin et al. (2021). The data use CC BY 4.0; the source code uses MIT.