in src/main/scala/com/googlesource/gerrit/plugins/analytics/common/AggregatedCommitHistogram.scala [39:53]
override def include(commit: RevCommit, user: PersonIdent): AggregatedCommitHistogram = {
val key = aggregationStrategy.mapping(user, commit.getAuthorIdent.getWhen)
val keyString = key.toString
val activity = Option(users.get(keyString)) match {
case None =>
val newActivity = new AggregatedUserCommitActivity(key,
user.getName, user.getEmailAddress)
users.put(keyString, newActivity)
newActivity
case Some(foundActivity) => foundActivity
}
activity.include(commit, user)
this
}