Datasets:
instance_id stringlengths 8 8 | repo stringlengths 7 27 | pr_number int64 215 87.5k | pr_url stringlengths 35 56 | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | pr_title stringlengths 8 160 | pr_description stringlengths 12 24.3k ⌀ | patch stringlengths 553 10.4M | source_archive dict | review_language stringclasses 8
values | defects listlengths 0 25 |
|---|---|---|---|---|---|---|---|---|---|---|---|
BCR-0007 | internetarchive/openlibrary | 9,991 | https://github.com/internetarchive/openlibrary/pull/9991 | b8cea030784732e5ce02895b56b9344426f6e9fa | a96700cd5d3b1469ec3846a96af15011923be801 | add Wikipedia links from Wikidata | <!-- What issue does this PR close? -->
Closes #9360
<!-- What does this PR achieve? [feature|hotfix|fix|refactor] -->
This PR does three things:
1. Add the (language aware) Wikipedia link
2. Adds the Wikidata link
3. Add the Google Scholar link
Originally, this was just going to be for Wikipedia but I quick... | diff --git a/openlibrary/core/models.py b/openlibrary/core/models.py
index d4956e8d82774b6feb8c5e79ac2ef0b197fb07dc..7b90d3a533d94c1a561dc30e759b026f61f52b20 100644
--- a/openlibrary/core/models.py
+++ b/openlibrary/core/models.py
@@ -777,7 +777,6 @@ class Author(Thing):
def wikidata(
self, bust_cache: bo... | {
"path": "sources/BCR-0007.tar.gz",
"sha256": "ed21730c7117e0310adad3c76bc50ef34977eb0f35f8a4a788d8a3efb9bdb75c",
"size_bytes": 16539065
} | Python | [
{
"id": "BCR-0007-D01",
"claim": "Author rendering makes an unbounded, uncaught Wikidata request",
"category": "Removing the Author.wikidata guard exposes a synchronous requests.get call that supplies neither a timeout nor exception handling; connection, HTTP-client, and JSON-decoding exceptions propaga... |
BCR-0014 | qutebrowser/qutebrowser | 5,947 | https://github.com/qutebrowser/qutebrowser/pull/5947 | 2e65f731b1b615b5cd60417c00b6993c2295e9f8 | 96b997802e942937e81d2b8a32d08f00d3f4bc4e | Time units added to :later command | The :later command is modified to accept either an integer or time
duration with properly formatted units.
The expected format is XhYmZs, where X, Y and Z are integers
corresponding to hours, minutes or seconds respectively.
The user needs to specify at least one of the units for the command to
work.
In case of i... | diff --git a/qutebrowser/misc/utilcmds.py b/qutebrowser/misc/utilcmds.py
index 56138c798f4e153670730174d887d653fc4748ed..95302488af9a3e0a5c4f28b39ab902d9e6ff49f7 100644
--- a/qutebrowser/misc/utilcmds.py
+++ b/qutebrowser/misc/utilcmds.py
@@ -42,15 +42,16 @@ from qutebrowser.qt import sip
@cmdutils.register(maxsplit... | {
"path": "sources/BCR-0014.tar.gz",
"sha256": "6d07d113d29950e96d08814cd3c3d10de2e3784d103d157ee06d56a441284c45",
"size_bytes": 3507019
} | Python | [
{
"id": "BCR-0014-D01",
"claim": "Bare :later delays are rescaled from milliseconds to seconds",
"category": "The new parser labels an all-digit duration as seconds and multiplies it by 1000 before later passes the result unchanged to the timer's millisecond interface.",
"priority": "P1",
"subst... |
BCR-0065 | flipt-io/flipt | 1,139 | https://github.com/flipt-io/flipt/pull/1139 | 7f35121b888589c35636bdda3a0d7a56648f058c | 878c8a440ac28a7533f17bab0a4edac6e89c2d12 | feat(server/auth): validate flipt_client_token cookie in middleware | Supports #779
Fixes FLI-50
This adds support for passing a Flipt client token via the `flipt_client_token` key in the `Cookie` header.
This is necessary to support browser/cookie-based sessions.
The middleware now checks for the presence of either header key `Authorization` or `Cookie`.
Depending on which k... | diff --git a/internal/server/auth/middleware.go b/internal/server/auth/middleware.go
index 2e83a406975813540ead5ab3bd5101122ca6f6c8..98145144a7be18a023431faddfcb165e9b1cf569 100644
--- a/internal/server/auth/middleware.go
+++ b/internal/server/auth/middleware.go
@@ -2,9 +2,11 @@ package auth
import (
"context"
+ "... | {
"path": "sources/BCR-0065.tar.gz",
"sha256": "7a325a3a06ade14c2174da27ce8c0186f3e342b2f168ff12f7f6045c6878b717",
"size_bytes": 3364985
} | Go | [
{
"id": "BCR-0065-D01",
"claim": "Expired client tokens reach protected handlers",
"category": "security/authorization: the request-time expiration guard was deleted without moving enforcement to token lookup",
"priority": "P1",
"substantive": true,
"trigger": "Authentication enforcement is ... |
BCR-0076 | flipt-io/flipt | 1,458 | https://github.com/flipt-io/flipt/pull/1458 | 1628eca0293661a8819a0fae02c06ac6e06f9a2e | 500c96f6fc1169d0a6427520679f7ea56853bf76 | feat: otel implementation for audit sinks | Experimenting with using OTEL as an event source for sending audit logs to configured sinks via configuration.
This PR [here](https://github.com/flipt-io/flipt/pull/1405) represents our homegrown solution for sending audit logs to configured sinks.
The more interesting of this PR is implementing the `trace.SpanEx... | diff --git a/go.mod b/go.mod
index f4e814a4c2607cf85c3ab8a47e1465430bd50605..ca110b8fe28c9b700e3c5525301a6c6468d4c32c 100644
--- a/go.mod
+++ b/go.mod
@@ -58,6 +58,7 @@ require (
google.golang.org/protobuf v1.29.0
gopkg.in/segmentio/analytics-go.v3 v3.1.0
gopkg.in/yaml.v2 v2.4.0
+ gotest.tools v2.2.0+incompatible... | {
"path": "sources/BCR-0076.tar.gz",
"sha256": "7b8799af35fd6507a6ee715432f00a4500a11615325a6668d504c6a8bc4a3322",
"size_bytes": 4607886
} | Go | [
{
"id": "BCR-0076-D01",
"claim": "Opening the audit logfile truncates prior audit history",
"category": "The enabled-sink startup path calls NewLogFileSink, whose os.Create call opens an existing file with truncation instead of append semantics.",
"priority": "P1",
"substantive": true,
"trig... |
BCR-0136 | internetarchive/openlibrary | 9,003 | https://github.com/internetarchive/openlibrary/pull/9003 | 7755d8cc3a392740cca35e8539eccc23749270fc | ad25558a95912efb407bcaee02158dc37f073a14 | Improve author name resolution | <!-- What issue does this PR close? -->
Partially closes #7349
Related: internetarchive/infogami#217
<!-- What does this PR achieve? [feature|hotfix|fix|refactor] -->
Feature.
### Technical
<!-- What should be noted about the implementation? -->
This PR does three things:
- Make name search case insensitiv... | diff --git a/openlibrary/catalog/add_book/__init__.py b/openlibrary/catalog/add_book/__init__.py
index 72c679d72f5bc24c3add59083c0d0daab747c26c..2e391dda5c274e0936929c806af5ec70797311a2 100644
--- a/openlibrary/catalog/add_book/__init__.py
+++ b/openlibrary/catalog/add_book/__init__.py
@@ -936,7 +936,7 @@ def update_wo... | {
"path": "sources/BCR-0136.tar.gz",
"sha256": "eed54ea2a05afe744cca5522254fee4be584c51736b7f9edfd18dba7b29932bf",
"size_bytes": 16412008
} | Python | [
{
"id": "BCR-0136-D01",
"claim": "Honorific matching truncates ordinary names without a token boundary",
"category": "The target accepts any case-folded startswith match and slices that many characters without checking that the honorific ends at a name-token boundary.",
"priority": "P1",
"substa... |
BCR-0138 | qutebrowser/qutebrowser | 5,317 | https://github.com/qutebrowser/qutebrowser/pull/5317 | 6d3afbc196cacdc9d09c7e148dbe3aecf7473611 | f436af34c7ba9f7d06f272385b859e7179b2f982 | More sophisticated adblocking using Brave's Rust adblocker | "Closes #29 \r\n\r\nThis work-in-progress PR uses [`python-adblock`](https://github.com/ArniDagur/py(...TRUNCATED) | "diff --git a/.flake8 b/.flake8\nindex e913647f9676917c6f62972cccee32d8784b652c..6f49baf990b8131ee78(...TRUNCATED) | {"path":"sources/BCR-0138.tar.gz","sha256":"25410f9705316cdd4bd827b3a7435d72dda8d8aa2a5fbd1f5e22b92e(...TRUNCATED) | Python | [{"id":"BCR-0138-D01","claim":"Startup reloads a cache after the configured ABP lists are cleared","(...TRUNCATED) |
BCR-0282 | gravitational/teleport | 7,955 | https://github.com/gravitational/teleport/pull/7955 | 346941c7552871c682ff1a0331c82e56ed5e2a9b | 81c40989cc0788daaddc8f05b378129b7f9764e8 | Mask token in logs | "- Refactored existing key-masking logic to be more reusable\r\n- Added `apiutils.MaskSubString` whi(...TRUNCATED) | "diff --git a/api/utils/strings.go b/api/utils/strings.go\nindex 38ea24a325a521c5408819fce8ffee81be0(...TRUNCATED) | {"path":"sources/BCR-0282.tar.gz","sha256":"721c00d84b54a5136600ffd448de1c0b4dff96d8b4e9fd0739d46232(...TRUNCATED) | Go | [{"id":"BCR-0282-D01","claim":"Registration failures are discarded and reported as success","categor(...TRUNCATED) |
BCR-0309 | navidrome/navidrome | 1,152 | https://github.com/navidrome/navidrome/pull/1152 | bebfe296a5ac6dcbba7ecc939c9a840852453add | 776bc06add44bbda399750f0638547f144a921bc | feat(auth): reverse proxy authentication support - #176 | "This is an attempt to address an issue described in #176 . Basically it allows auto-login user usin(...TRUNCATED) | "diff --git a/conf/configuration.go b/conf/configuration.go\nindex 5e3f55cbbf45fe7a12783fd0851a09545(...TRUNCATED) | {"path":"sources/BCR-0309.tar.gz","sha256":"eb09bdb29670d2a522be5a5e9989c80537b90d2698fee9d4ce24e06a(...TRUNCATED) | Go | [{"id":"BCR-0309-D01","claim":"RealIP rewrites the address used as the reverse-proxy trust boundary"(...TRUNCATED) |
BCR-0461 | ansible/ansible | 82,770 | https://github.com/ansible/ansible/pull/82770 | 3e82ed307b4786ebe4dd5bb820d1c24877ad3b32 | e0af523beb07973d670e7fe890a7a7bab63a7cd2 | Don't inherit stdio | "##### SUMMARY\r\n\r\nDon't inherit stdio\r\n\r\n##### ISSUE TYPE\r\n\r\n- Feature Pull Request\r\n\(...TRUNCATED) | "diff --git a/changelogs/fragments/no-inherit-stdio.yml b/changelogs/fragments/no-inherit-stdio.yml\(...TRUNCATED) | {"path":"sources/BCR-0461.tar.gz","sha256":"87107de6cf818995e1c4f307ce3dda501cf57b5647ead4ed4a0b13f4(...TRUNCATED) | Python | [{"id":"BCR-0461-D01","claim":"stdio setup failure calls a nonexistent warning method","category":"T(...TRUNCATED) |
BCR-0470 | flipt-io/flipt | 3,021 | https://github.com/flipt-io/flipt/pull/3021 | 168f61194a4cd0f515a589511183bb1bd4f87507 | 043fc7cefcfab95311ebc6d6096bb36907e56755 | feat: Oltp metrics exporter | Fixes: #2997 | "diff --git a/config/flipt.schema.cue b/config/flipt.schema.cue\nindex 041a8153c2f73b10823906ab1b0fc(...TRUNCATED) | {"path":"sources/BCR-0470.tar.gz","sha256":"17b92823c6822e8a6f1a928f328e2a614708c5c70986e8950561511f(...TRUNCATED) | Go | [{"id":"BCR-0470-D01","claim":"Early no-op provider permanently captures package-level instruments",(...TRUNCATED) |
LegoReview-Bench contains 75 expert-reviewed tasks from 46 repositories, with 430 reference findings across eight programming languages. Its 64 defect and 11 clean tasks evaluate finding recovery and review decisions on repository-level code changes.
Load
from datasets import load_dataset
bench = load_dataset("Lego-X/LegoReview-Bench", split="test")
Each row contains a pull request, its code diff, and the expert findings in defects. Clean tasks have an empty findings list. Use tools/restore_instance.py to recreate the baseline and reviewed source trees.
Evaluation
Finding-level precision, recall, and F1 measure reference recovery. Clean Rate is the share of clean-task runs with a valid report and no high-priority finding.
See the evaluation guide, schema, and dataset statistics.
License
Project-owned annotations and tools: Apache-2.0. Source snapshots: upstream licenses.
Acknowledgements
Built with SWE-Review, OpenHands, Harbor, LegoFlow, and Martian Code Review Benchmark.
Citation
If you use our code, data, or model, please cite the two papers below.
@misc{wang2026legoreviewscalingcodereview,
title={LegoReview: Scaling Code Review Data with Verification from Pull Request Histories},
author={Ruoyu Wang and Jierun Chen and Yuxin Jiang and Chaofan Tao and Shaowei Wang and Sidi Yang and Conghao Xiong and Yiming Du and Tiezheng Yu and Kim-Hui Yap and Lifeng Shang and Xiao-Hui Li and Haoli Bai},
year={2026},
eprint={2612.00862},
archivePrefix={arXiv},
primaryClass={cs.SE},
url={https://arxiv.org/abs/2612.00862},
}
@misc{wang2026swereview,
title = {SWE-Review: Closing the Loop on Issue Resolution with Agentic Code Review},
author = {Ruoyu Wang and Jierun Chen and Shaowei Wang and Chaofan Tao and Sidi Yang and Yuxin Jiang and Kim-Hui Yap and Lifeng Shang and Xiaohui Li and Haoli Bai},
year = {2026},
url = {https://github.com/LegoX/SWE-Review}
}
- Downloads last month
- 44