Class RepoStats

java.lang.Object
io.github.jbastgen.stemma.app.git.RepoStats

public final class RepoStats extends Object
The numbers behind the statistics view (feature 8), computed from the commits of GitRepository.commitStats(int). Pure: no display, no repository. People who are one user in the user mapping (feature 26) are added together.
  • Field Details

    • commits

      public final int commits
    • merges

      public final int merges
    • averageGapHours

      public final double averageGapHours
      Average time between two commits in hours, 0 with fewer than two commits.
    • perDay

      public final Map<LocalDate,Integer> perDay
    • busiestDay

      public final LocalDate busiestDay
    • busiestDayCommits

      public final int busiestDayCommits
    • longestStreak

      public final int longestStreak
    • perWeekday

      public final int[] perWeekday
    • perHour

      public final int[] perHour
    • committers

      public final List<RepoStats.Committer> committers
    • hotFiles

      public final List<RepoStats.Hot> hotFiles
    • hotFolders

      public final List<RepoStats.Hot> hotFolders
    • coupled

      public final List<RepoStats.Coupled> coupled
    • perMonth

      public final Map<YearMonth,Integer> perMonth
  • Constructor Details

    • RepoStats

      public RepoStats(List<io.github.jbastgen.stemma.git.api.CommitStat> stats, LocalDate since, UserBook users, ZoneId zone)
      Parameters:
      stats - the commits, newest first
      since - only commits from this day on count; null = all
      users - who is one person; may be empty
  • Method Details

    • weekday

      public static DayOfWeek weekday(int index)
      The day of the week for the index used in perWeekday: 0 is Monday.
    • committersCsv

      public String committersCsv()
      The committers as CSV.
    • filesCsv

      public String filesCsv()
      The most modified files as CSV.