# PrivacyPR: A Dataset of Real-World Privacy Fixes for Benchmarking Privacy-Aware Code Review

arXiv: https://arxiv.org/abs/2611.18293 · HTML: https://mlsanity.com/paper/2611.18293/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 16 of its 24 references that are in the map.
- Submitted 13 Nov 2026.

## Placed in

- LLM agents and tool use

## Builds on (most cited first, 16 of 16)

- [SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering](https://mlsanity.com/paper/2405.15793/) (2024)
- [AutoCodeRover: Autonomous Program Improvement](https://mlsanity.com/paper/2404.05427/) (2024)
- [CVEfixes: Automated Collection of Vulnerabilities and Their Fixes from Open-Source Software](https://mlsanity.com/paper/2107.08760/) (2021)
- [SWR-Bench: Assessing LLM Performance in Real-World Code Review Comment Generation](https://mlsanity.com/paper/2509.01494/) (2025)
- [RovoDev Code Reviewer: A Large-Scale Online Evaluation of LLM-based Code Review Automation at Atlassian](https://mlsanity.com/paper/2601.01129/) (2026)
- [Is It a Trap? A Large-scale Empirical Study And Comprehensive Assessment of Online Automated Privacy Policy Generators for Mobile Apps](https://mlsanity.com/paper/2305.03271/) (2023)
- [Privacy Bills of Materials: A Transparent Privacy Information Inventory for Collaborative Privacy Notice Generation in Mobile App Development](https://mlsanity.com/paper/2501.01131/) (2025)
- [SecureReviewer: Enhancing Large Language Models for Secure Code Review through Secure-aware Fine-tuning](https://mlsanity.com/paper/2510.26457/) (2025)
- [Code Review Agent Benchmark](https://mlsanity.com/paper/2603.23448/) (2026)
- [GDPR-Bench-Android: A Benchmark for Evaluating Automated GDPR Compliance Detection in Android](https://mlsanity.com/paper/2511.00619/) (2025)
- [The whos, whats, and whys of issues related to personal data and data protection in open-source projects on GitHub](https://mlsanity.com/paper/2304.06367/) (2023)
- [Helping Code Reviewer Prioritize: Pinpointing Personal Data and its Processing](https://mlsanity.com/paper/2306.11495/) (2023)
- [An Exploratory Mixed-Methods Study on General Data Protection Regulation (GDPR) Compliance in Open-Source Software](https://mlsanity.com/paper/2406.14724/) (2024)
- [Evolution of repositories and privacy laws: commit activities in the GDPR and CCPA era](https://mlsanity.com/paper/2505.22234/) (2025)
- [Analyzing developer discussions on EU and US privacy legislation compliance in GitHub repositories](https://mlsanity.com/paper/2512.10618/) (2025)
- [SeRe: A Security-Related Code Review Dataset Aligned with Real-World Review Activities](https://mlsanity.com/paper/2601.01042/) (2026)

## Abstract (arXiv)

Coding agents increasingly review code, yet whether they catch the privacy defects that laws such as the GDPR require software to avoid remains largely untested, partly because few datasets connect real privacy defects to their accepted fixes and review context. We present PrivacyPR, a dataset of 4,131 merged GitHub pull requests (PRs) from 1,469 repositories, created between June 2018 and January 2024. Each PR includes its commits, diffs, review discussion, and LLM-generated labels for privacy relevance, fix type, and GDPR principles. PrivacyPR provides 1,169 high-confidence privacy fixes and 1,643 non-fix PRs, together with Verified, a manually checked split of 250 privacy fixes and 250 non-fix PRs, and Small, a 100 + 100 subset for evaluation. On Verified, both annotators endorsed 72% of the LLM's GDPR-principle assignments. Beyond supporting empirical study of how privacy defects arise and are fixed, PrivacyPR provides a benchmark for privacy-aware code review on real, developer-accepted fixes. Its evaluation harness reverts each fix to reintroduce the defect. On Small, two coding agents detect only 42-51% of defects under a generic review prompt, but 88-91% when explicitly asked to check privacy, while flagging 11-15% of non-fix PRs. These results show that privacy defects can be detected by coding agents, but that detection depends strongly on review intent and comes with false alarms. Data, code, reviews, judge verdicts, and an extensible evaluation harness are publicly available at https://doi.org/10.5281/zenodo.23744765.
