Improve release file labels #20935
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.32) × (1 − Review Confidence (0.91)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 38 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 2 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
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
Diff Size
diff_size
0.219
Real PR Conversation Timeline
4 items
This sadly feels like something pluralize could have handled, I guess it's not that strong yet?
Approved
Nice clarification - that's what they are termed on the database level in a release_files table, the Python Model is File, so I totally see how this can happen.
Claude says no:
Sadly no. pluralize maps to ngettext, which only switches on the target language's plural categories. English has just "one" and "other", so there's no slot for 2. Languages with a dual form (e.g. Arabic, Welsh) get that slot per locale, but we can't express "both" from the English source string. "Both" is also a word choice rather than a grammatical plural, so the explicit == 2 branch is the only way to get it.
miketheman
nlhkabu
I've noticed some users confusing release files with files in a repository.
This PR addresses this by renaming "files" to "release files" where appropriate.
This PR also closes https://github.com/pypi/warehouse/issues/20851 at the same time.