match beginning and end of line correctly #3575
All Vouch review confidence checks passed
Residual risk 0.11 = Change Risk (0.29) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.29 · 77 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.261
Real PR Conversation Timeline
1 comments
"Review active on #3575"
general
weight: 0.35
matthias314
When searching with
buf:FindNext, the start of the search region currently always matches^and the end of the region$, no matter if they are the indeed the start or end of a line. Similar problems exist with other empty-string pattern like\b. The goal of this PR is to fix this. This is done by modifying the search pattern for the first and last lines (prepending and/or appending..Code common to
findDownandfindUphas been moved to separate functions. One could tweak the specific way it's done, but maybe it's better to first get some feedback if you are willing to go in this direction at all.