models

package
v0.0.0-...-7e0250b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2018 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitCount

type CommitCount struct {
	Author     string `json:"author"`
	NumCommits int    `json:"numCommits"`
}

CommitCount represents a count and author

type RepoStats

type RepoStats struct {
	RepoName    string        `json:"repoName"`
	RepoURL     string        `json:"repoUrl"`
	Commits     []CommitCount `json:"commits"`
	DateUpdated time.Time     `json:"dateUpdated"`

	//
	// Server-side stats:
	TotalCommits int `json:"totalCommits"`
	// Number of authors
	AuthorCount     int `json:"authorCount"`
	LeadAuthorTotal int `json:"leadAuthorTotal"`
	// Percent out of total number of commits
	LeadAuthorPercent float64 `json:"leadAuthorPercent"`
	// Average number of commits per author
	AverageAuthorCommits float64 `json:"averageAuthorCommits"`
	// The standard deviation of commits
	// https://www.mathsisfun.com/data/standard-deviation.html
	CommitDeviation float64 `json:"commitDeviation"`
	// https://en.wikipedia.org/wiki/Coefficient_of_variation
	CoefficientVariation float64 `json:"coefficientVariation"`
}

RepoStats contains stats for a git repo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL