Skip to content
Back to skills

Repobench C Eval

ASecurity

Evaluates autoregressive language models on predicting the next line of code using provided in-file and cross-file contexts. Use when the user wants to benchmark on RepoBench-C, or asks about evaluating this task. Reports Exact Match (EM).

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
researchpythongojavaperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill repobench-c-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Repobench C Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Repobench C Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-repobench-c-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-repobench-c-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: repobench-c-eval
description: Evaluates autoregressive language models on predicting the next line of code using provided in-file and cross-file contexts. Use when the user wants to benchmark on RepoBench-C, or asks about evaluating this task. Reports Exact Match (EM).
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2306.03091
  bibtex_key: [REDACTED]
  confidence: high
---

# repobench-c-eval

> RepoBench: Benchmarking Repository-Level Code Auto-Completion Systems — Liu et al. (2023) (arXiv:2306.03091, 2023)

## What this evaluates

Evaluates autoregressive language models on predicting the next line of code using provided in-file and cross-file contexts.

## Datasets

- **RepoBench-C** — total ?; splits: test (-1)

## Metrics

- `Exact Match (EM)` **(primary)** — range: [0, 1]
  - 1 if the predicted line exactly matches the gold line, 0 otherwise.
- `Edit Similarity (ES)` — range: [0, 1]
  - Token-level edit similarity between predicted and gold lines.

## Input / output format

**Input**: In-file context (import statements and preceding lines) and cross-file context (snippets from other files parsed by import statements).

**Output**: Predicted next line of code.

## Scoring recipe

```python
def score(pred, gold):
    em = 1.0 if pred.strip() == gold.strip() else 0.0
    es = edit_similarity(pred, gold)  # token-level
    return em, es
```

## Common pitfalls

- Model-language pairings must be strictly matched (e.g., CodeGen-Mono for Python, CodeGen-Multi for Java).
- Context length limits (2k vs 8k) significantly impact performance and can cause out-of-distribution issues.

## Evidence (verbatim from paper)

> Table 3: RepoBench-C performance ... evaluated using Exact Match (EM), Edit Similarity (ES).

## Citation

```bibtex
@misc{liu2023repobench,
  title={RepoBench: Benchmarking Repository-Level Code Auto-Completion Systems},
  author={Liu et al. (2023)},
  year={2023},
  note={arXiv:2306.03091}
}
```

- arXiv: 2306.03091

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.