--- license: mit task_categories: - text-generation language: - en - code tags: - code-review - benchmark - code-generation - software-engineering size_categories: - 10K= 0.5 | | Comment length | >= 50 characters | | Code context | >= 10 lines (before and after) | | Comment types | bug, security, performance, refactor, suggestion | Excluded: nitpick, style, question, and negative examples. ## Schema ### Code Editing | Column | Type | Role | |--------|------|------| | `before_code` | string | Input | | `reviewer_comment` | string | Input | | `language` | string | Input | | `diff_context` | string | Input | | `after_code` | string | Target | | `repo_name` | string | Metadata | | `file_path` | string | Metadata | | `comment_type` | string | Metadata | | `quality_score` | float | Metadata | ### Comment Generation | Column | Type | Role | |--------|------|------| | `before_code` | string | Input | | `after_code` | string | Input | | `diff_context` | string | Input | | `language` | string | Input | | `reviewer_comment` | string | Target | | `repo_name` | string | Metadata | | `file_path` | string | Metadata | | `comment_type` | string | Metadata | | `quality_score` | float | Metadata | ## Evaluation ### Code Editing - **CodeBLEU**: Measures structural and syntactic similarity of generated code - **Exact match**: Percentage of outputs matching the target exactly - **Edit similarity**: Normalized edit distance between generated and target code ### Comment Generation - **BERTScore**: Semantic similarity between generated and reference comments - **ROUGE-L**: Longest common subsequence overlap - **Human evaluation**: Recommended for final assessment — automated metrics correlate poorly with review quality ## Splits | Split | Description | |-------|-------------| | train | Training data (90%) | | test | Held-out evaluation (5%) | | validation | Development/tuning (5%) | Splits are repo-deterministic — no repo appears in multiple splits. ## Citation ```bibtex @dataset{takizawa2026codereviewbench, title={CodeReview-Bench: A Benchmark for Review-Driven Code Changes}, author={Takizawa, Ronan}, year={2026}, publisher={Hugging Face}, url={https://huggingface.co/datasets/ronantakizawa/codereview-bench} } ```