#
# Should be accessed from `Repo::contrib_stats`.
#
# See <https://developer.github.com/v3/repos/statistics/>.
class ContributorStats
super Comparable
serialize
redef type OTHER: ContributorStats
# User these statistics are about.
var author: User is writable
# Total number of commit.
var total: Int is writable
# Array of weeks of activity with detailed statistics.
var weeks: Array[ContributorWeek] is writable
# ContributorStats can be compared on the total amount of commits.
redef fun <(o) do return total < o.total
end
lib/github/api.nit:1011,1--1032,3