Skip to content

Commit 75da8e4

Browse files
rlronan2ndset bot
andauthored
Remove percentile and references to it (#35)
Co-authored-by: 2ndset bot <bot@2ndset.ai>
1 parent 4f957dc commit 75da8e4

5 files changed

Lines changed: 6 additions & 7 deletions

File tree

docs/library.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ the following fields:
179179
| `raw_score` | `float` | Pre-normalization score: graph score (v1) or logit (v2) |
180180
| `normalized_score` | `float` | Normalized score (0.0 - 1.0) |
181181
| `trust_level` | `TrustLevel` | HIGH, MEDIUM, LOW, UNKNOWN, BOT, or EXISTING_CONTRIBUTOR |
182-
| `percentile` | `float` | Percentile rank (0.0 - 1.0) |
183182
| `account_age_days` | `int` | Age of the GitHub account in days |
184183
| `total_merged_prs` | `int` | Total number of merged pull requests |
185184
| `unique_repos_contributed` | `int` | Number of distinct repositories |

docs/mcp-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Returns the full trust score as JSON, including all fields from the
8686
| `force_score` | `boolean` | No | Force full scoring even for known contributors (default: `false`) |
8787

8888
**Returns:** Full `TrustScore` JSON with all fields (user_login,
89-
context_repo, raw_score, normalized_score, trust_level, percentile,
89+
context_repo, raw_score, normalized_score, trust_level,
9090
account_age_days, total_merged_prs, unique_repos_contributed,
9191
top_contributions, language_match, flags, scoring_model, component_scores,
9292
scoring_metadata). When `scoring_model` is `v2`, the response includes

src/good_egg/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class TrustScore(BaseModel):
8484
raw_score: float = 0.0
8585
normalized_score: float = 0.0
8686
trust_level: TrustLevel = TrustLevel.UNKNOWN
87-
percentile: float = 0.0
87+
8888
account_age_days: int = 0
8989
total_merged_prs: int = 0
9090
unique_repos_contributed: int = 0

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def sample_trust_score() -> TrustScore:
149149
raw_score=0.0045,
150150
normalized_score=0.72,
151151
trust_level=TrustLevel.HIGH,
152-
percentile=85.0,
152+
153153
account_age_days=1800,
154154
total_merged_prs=3,
155155
unique_repos_contributed=3,
@@ -186,7 +186,7 @@ def sample_v2_trust_score() -> TrustScore:
186186
raw_score=0.0045,
187187
normalized_score=0.72,
188188
trust_level=TrustLevel.HIGH,
189-
percentile=85.0,
189+
190190
account_age_days=1800,
191191
total_merged_prs=3,
192192
unique_repos_contributed=3,

tests/test_formatter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _make_score(**kwargs) -> TrustScore:
2222
"raw_score": 0.65,
2323
"normalized_score": 0.72,
2424
"trust_level": TrustLevel.HIGH,
25-
"percentile": 85.0,
25+
2626
"account_age_days": 365,
2727
"total_merged_prs": 42,
2828
"unique_repos_contributed": 10,
@@ -199,7 +199,7 @@ def _make_v2_score(self, **kwargs) -> TrustScore:
199199
"raw_score": 0.65,
200200
"normalized_score": 0.72,
201201
"trust_level": TrustLevel.HIGH,
202-
"percentile": 85.0,
202+
203203
"account_age_days": 1825,
204204
"total_merged_prs": 42,
205205
"unique_repos_contributed": 10,

0 commit comments

Comments
 (0)