Calculation Methods

Key Metrics & Definitions

Average Coding Days (Active Days Per Week)

Formula:
(distinctActiveCommitDays × 7) / totalDaysInWindow

  • An Active Day is any day with commits, PRs, reviews, or comments.
  • The totalDaysInWindow measures from the first activity to the last activity (or the specified date range).

Merge Rate Percentage

Formula:
(pullRequestsMergedCount / pullRequestsAuthoredCount) × 100

  • pullRequestsMergedCount: Number of PRs successfully merged.
  • pullRequestsAuthoredCount: Number of PRs an individual has authored.

Active Developer Count

An Active Developer is an individual with commits, PRs, reviews, or comments within the provided date window.

Lines Contributed

Formula:
Number of Lines Added + Number of Lines Deleted

Average Lines Per Commit

Formula:
Lines Contributed / Commit Count