-
-
Notifications
You must be signed in to change notification settings - Fork 202
Implement Heuristics Service for DevIndex #9144
Copy link
Copy link
Closed
Labels
Description
Create a new service apps/devindex/services/Heuristics.mjs that implements statistical analysis on user contribution data.
Responsibilities:
- Analyze(user): Takes a minified user object.
- Calculate Metrics:
velocity: Max contributions per day (Max Yearly / 365).acceleration: Growth factor (Max Year / Median of Non-Zero Years).consistency: Count of years with significant activity (>100 commits).
- Return: A minified object
hcontaining{ v, a, c }.
Constraints:
- Pure math, no external dependencies.
- Robust handling of zero-division or empty histories.
- Optimized for performance (called in tight loop).
Reactions are currently unavailable