All benchmarks

Code-QA-Bench

A fully automated repository-level code understanding benchmark. Closed-book, code-only, and documented conditions separate genuine code reading from documentation recall and pretraining memorization. The paper reports 528 code-derivable and 100 doc-dependent tasks across ten pinned Python repositories.

Release status
Released
Domain
Code & Repo Agents
Total tasks
628
Models evaluated
4
Primary metric
Normalized mean / 100
01

Leaderboard

The default view is the paper's primary metric: normalized mean score on 528 code-derivable tasks in the code-only condition. Every value shown comes from paper v1.

95% confidence intervalHigher is better
02

Tasks & Verification

This section answers two questions: what the model receives, and how its answer is judged. The leaderboard above aggregates this Task × Verify contract.

628 public tasks

Code-derivable

528 tasks (84%)

Doc-dependent

100 tasks (16%)

01 / TASK 628 repository tasks

528 code-derivable primary tasks and 100 doc-dependent diagnostics across ten pinned Python repository commits.

02 / VERIFY GPT-5.4 · three-axis judge

Each answer is compared with the gold answer and rubric, then scored 0–5 on Accuracy, Completeness, and Specificity.

03 / SCORE 89.2 / 100 top score

The primary leaderboard averages code-only scores over 528 code-derivable tasks; 4 models currently span 77.2–89.2.

Back to leaderboard
Representative taskFrom public task files
Task inputPublic example

Where does `ipartfrac` get called, and how does its data flow through `migcdex`, `igcdex`, and `gcdext`?

Where does `ipartfrac` get called, and how does its data flow through `migcdex`, `igcdex`, and `gcdext`?

Verify mechanism · Gold rubric
  1. 1Identify that ipartfrac is called in cos._eval_rewrite_as_sqrt, not directly in the sin implementation.
  2. 2Explain that ipartfrac uses functools.reduce with a multiplication function to compute the denominator product.
  3. 3Explain that complement values are constructed with denom // x and passed to migcdex.

The judge compares each model answer with the gold answer and rubric, scores Accuracy, Completeness, and Specificity from 0–5, then normalizes the result into the leaderboard above.

03

Analysis

Use score distribution and evidence coverage to show what current results support, and state what they cannot establish yet.

Three experimental conditions

Code-derivable · 528 tasks

Closed-book / Code-only / Documented. Higher is better.

Three experimental conditions

Doc-dependent · 100 tasks

Closed-book / Code-only / Documented. Higher is better.

Primary-set category scores

Code-derivable · 528 tasks

Paper Table 8, pooled across four models.
04

Data Card

A concise account of what the dataset measures, how it is verified and scored, and whether it can be reused. Exact run parameters live in the technical record.

Public dataset record

Code-QA-Bench

A repository-level Python code understanding dataset that separates memorization, source reading, and documentation use through three context conditions.

Paper released · evidence partially reproducible
Tasks & scale
628 repository-level QA tasks

528 code-derivable primary tasks + 100 doc-dependent diagnostics

Coverage
Python · 10 public repositories

Each repository is pinned to a reproducible commit snapshot

Verification
Gold answer + rubric

GPT-5.4 scores Accuracy, Completeness, and Specificity

Leaderboard metric
Code-only mean · 0–100

Normalized mean over 528 code-derivable tasks

Public licenses
Repository MIT · paper CC BY 4.0

Task files ship with the repository; no separate task license is declared

Current version
Paper v1 · 2026-05-28

Repository snapshot d615139

Evidence boundary

Tasks and aggregate results are publicly inspectable; per-task model outputs, judge records, and human validation are not yet fully public.

Open data and reproduction
Construction & scoring

Four steps summarize how tasks are built, verified, and turned into leaderboard scores.

  1. 1

    Answer first

    A documentation chunk sets the topic; a tool-equipped agent explores real source and writes a code-evidenced gold answer before deriving the question and rubric.

  2. 2

    Code-only audit

    AST and tokenize remove docstrings, comments, and documentation files, followed by an audit of whether each gold answer remains code-recoverable.

  3. 3

    Three conditions

    Each task runs closed-book, code-only, and documented to separate memorization, code reading, and documentation use.

  4. 4

    Three-axis judge

    GPT-5.4 scores Accuracy, Completeness, and Specificity from 0-5; normalized per-task scores are averaged equally.