← Back to Pull requests

Fixes for windows #72

Merged
arionik merged 3 files (12 lines) on Feb 28, 2017 08:00 UTC
View on GitHub
arionik arionik commented on Feb 28, 2017 07:53 UTC
Author

Use generic path separator and do not mess with unicode/str.

Diff: 12 lines (+7 / -5) across 3 files Reviewer: thtrieu Review duration: 7m
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.31) × (1 − Review Confidence (0.86)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 12 lines diff across 3 files
0.31
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.94 · 3 substantive comment(s)
0.94
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
86%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Diff Size diff_size
0.153
Rapid Merge rapid_merge
0.100
Real PR Conversation Timeline
4 items
thtrieu thtrieu commented on code on Feb 28, 2017 07:56 UTC
Code Review
cfg/process.py:1
@@ -286,9 +286,9 @@ def cfg_yielder(model, binary):
 		#-----------------------------------------------------
 		elif d['type'] == '[route]': # add new layer here
 			routes = d['layers']
-			if type(routes) is str:
-				routes = [int(x.strip()) for x in routes.split(',')]
-			else: routes = [routes]
+			if type(routes) is int:

wondering are you using python2?

arionik arionik commented on code on Feb 28, 2017 07:58 UTC
Code Review
cfg/process.py:1
@@ -286,9 +286,9 @@ def cfg_yielder(model, binary):
 		#-----------------------------------------------------
 		elif d['type'] == '[route]': # add new layer here
 			routes = d['layers']
-			if type(routes) is str:
-				routes = [int(x.strip()) for x in routes.split(',')]
-			else: routes = [routes]
+			if type(routes) is int:

yes; but I thought a test for int is less error prone than the one against str.

thtrieu thtrieu commented on code on Feb 28, 2017 08:00 UTC
Code Review
cfg/process.py:1
@@ -286,9 +286,9 @@ def cfg_yielder(model, binary):
 		#-----------------------------------------------------
 		elif d['type'] == '[route]': # add new layer here
 			routes = d['layers']
-			if type(routes) is str:
-				routes = [int(x.strip()) for x in routes.split(',')]
-			else: routes = [routes]
+			if type(routes) is int:

Agreed. But Python2 would potentially cause other types of error down the line. Hope you upgrade to Python3 soon.

Reviewers
Assignees
arionik arionik
Labels
risk: low confidence: 86.2% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 31.3% (LOW) · Higher = larger blast radius
31.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 86.2% · Lower = rushed or shallow review
86.2%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 4.3% · Safe to merge
4.3%