GitHub Score Formula: $$rank = 1 - \frac{1}{W} \sum_{i=1}^{n} w_i \cdot f_i \left( \frac{x_i}{m_i} \right)$$ Where:
exponential_cdf
or log_normal_cdf
)Calculate the total score (rank
) using this formula, and then determine the user's level based on the rank
value.
Weights for parameters:
COMMITS_WEIGHT
, PRS_WEIGHT
, ISSUES_WEIGHT
, REVIEWS_WEIGHT
, STARS_WEIGHT
, FOLLOWERS_WEIGHT
) are 2, 3, 1, 1, 4, 1 respectively.modify index.js to yourself, then run:
node index.js