File size: 5,944 Bytes
a08c17e
 
 
 
 
 
0b92607
 
 
a08c17e
 
04eb3f1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0b92607
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
---
license: mit
tags:
- ai
- modeltraining
- machinelearning
language:
- en
pretty_name: 'AI code review benchmark dataset '
---

# PR_Review-Benchmark-Dataset
A High-Signal Dataset for Evaluating AI Code Review & Test Generation Systems

## Overview
PR_Review-Benchmark-Dataset is a curated dataset of merged GitHub Pull Requests, code patches, and human review comments, designed for benchmarking:

 1. AI Code Review Systems
2. Test Case Generation Models
3. Software Engineering LLMs

All data is derived from publicly available open-source repositories under permissive licenses and processed using a privacy-preserving pipeline.
This dataset is suitable for academic research, open benchmarking, and commercial evaluation.

## Dataset Contents
Each entry contains:
1. Pull request metadata
2. Code patches
3. Human review comments
4. Anonymized contributor identifiers
5. Repository license information
6. Derived evaluation metadata
   
### Example:
```md
```json
{
  "_id": "...",
  "repo": "psf/requests",
  "license_spdx": "Apache-2.0",
  "title": "...",
  "files": [...],
  "reviews": [...],
  "review_comments": [...],
  "meta": {...}
}
```


### Schema Overview
| Field                           | Description                   |
| ------------------------------- | ----------------------------- |
| `_id`                           | Unique salted hash identifier |
| `_schema_version`               | Dataset schema version        |
| `_cleaned_at`                   | Processing timestamp          |
| `repo`                          | Repository name               |
| `license_spdx`                  | SPDX license identifier       |
| `files`                         | Modified files with patches   |
| `reviews`                       | Pull request reviews          |
| `review_comments`               | Inline reviewer comments      |
| `meta.touches_tests`            | Test-modifying PR flag        |
| `meta.meaningful_comment_count` | Review signal strength        |
| `meta.review_state_summary`     | Review status summary         |

## Legal & Privacy Compliance
This dataset follows a Privacy by Design approach and complies with applicable data protection regulations.
🇮🇳 India: Digital Personal Data Protection Act (DPDP), 2023
Data is processed under Section 3(c)(ii) exemption:
       Publicly available personal data made available by the data principal.
       
#### Privacy Measures
| Measure           | Description                                       |
| ----------------- | ------------------------------------------------- |
| Anonymization     | Usernames are replaced with salted SHA-256 hashes |
| Redaction         | Names, emails, URLs, and PII are removed          |
| Content Filtering | Private/non-public repos excluded                 |
| License Filtering | Only permissive licenses allowed                  |

#### Data Processing Pipeline
1. Multi-pass regex filtering
2. NLP-based name detection
3. Stable pseudonym mapping
4. Patch-level sanitization
5. Deduplication
No original personal identifiers are retained.

## Attribution & Provenance

### Dataset Attribution Manifest

Generated on: 2026-02-12
This dataset contains code snippets, pull request metadata, and human review comments derived from the following public open-source repositories.
All data was collected from repositories explicitly using permissive licenses.

#### Repositories Included
| # | Repository                | License      | URL                                                                                          |
| - | ------------------------- | ------------ | -------------------------------------------------------------------------------------------- |
| 1 | psf/requests              | Apache-2.0   | [https://github.com/psf/requests](https://github.com/psf/requests)                           |
| 2 | django/django             | BSD-3-Clause | [https://github.com/django/django](https://github.com/django/django)                         |
| 3 | tiangolo/fastapi          | MIT          | [https://github.com/tiangolo/fastapi](https://github.com/tiangolo/fastapi)                   |
| 4 | numpy/numpy               | BSD-3-Clause | [https://github.com/numpy/numpy](https://github.com/numpy/numpy)                             |
| 5 | pandas-dev/pandas         | BSD-3-Clause | [https://github.com/pandas-dev/pandas](https://github.com/pandas-dev/pandas)                 |
| 6 | scikit-learn/scikit-learn | BSD-3-Clause | [https://github.com/scikit-learn/scikit-learn](https://github.com/scikit-learn/scikit-learn) |
| 7 | pytorch/pytorch           | BSD-3-Clause | [https://github.com/pytorch/pytorch](https://github.com/pytorch/pytorch)                     |
| 8 | tensorflow/tensorflow     | Apache-2.0   | [https://github.com/tensorflow/tensorflow](https://github.com/tensorflow/tensorflow)         |
| 9 | python/cpython            | PSF License  | [https://github.com/python/cpython](https://github.com/python/cpython)                       |
### Legal Notice
All original code is copyright (c) its respective contributors.
This dataset is a derived work for machine learning research and benchmarking.
No ownership of original content is claimed.

## Limitations & Biases

1. Focuses on large, mature OSS projects
2. Underrepresents small/private repos
3. English-centric discussions
4. Limited to merged PRs

This dataset reflects real-world OSS workflows, not all software development contexts.

## Recommended Citation
* PR Review Benchmark Dataset (2026).
* Curated for Code-LLM Evaluation.

## Responsible Use
#### This dataset is intended for:
* Improving developer tools
* Advancing ML research
* Supporting open-source ecosystems
#### Users must not:
* Attempt deanonymization
* Extract personal identities
* Misrepresent authorship
* Violate upstream licenses

## Contact & Maintenance
For issues, improvements, or corrections:
* Open a GitHub Issue
* Submit a Pull Request