Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorStats ¶
type AuthorStats struct { AuthorshipInfo // DefCount is the number of defs that this author contributed (where // "contributed" means "committed any hunk of code to source code files"). DefCount int `db:"def_count"` DefsProportion float64 `db:"defs_proportion"` // ExportedDefCount is the number of exported defs that this author // contributed (where "contributed to" means "committed any hunk of code to // source code files"). ExportedDefCount int `db:"exported_def_count"` ExportedDefsProportion float64 `db:"exported_defs_proportion"` }
type AuthorshipInfo ¶
type ClientStats ¶
type ClientStats struct { AuthorshipInfo // DefRepo is the repository that defines defs that this client // referred to. DefRepo repo.URI `db:"def_repo"` // DefUnitType and DefUnit are the unit in DefRepo that defines // defs that this client referred to. If DefUnitType == "" and // DefUnit == "", then this ClientStats is an aggregate of this client's // refs to all units in DefRepo. DefUnitType nnz.String `db:"def_unit_type"` DefUnit nnz.String `db:"def_unit"` // RefCount is the number of references this client made in this repository // to DefRepo. RefCount int `db:"ref_count"` }
type ComputeUnitAuthorshipRule ¶ added in v0.0.9
type ComputeUnitAuthorshipRule struct { Unit *unit.SourceUnit BlameOutput string GraphOutput string // contains filtered or unexported fields }
func (*ComputeUnitAuthorshipRule) Prereqs ¶ added in v0.0.9
func (r *ComputeUnitAuthorshipRule) Prereqs() []string
func (*ComputeUnitAuthorshipRule) Recipes ¶ added in v0.0.9
func (r *ComputeUnitAuthorshipRule) Recipes() []string
func (*ComputeUnitAuthorshipRule) Target ¶ added in v0.0.9
func (r *ComputeUnitAuthorshipRule) Target() string
type DefAuthor ¶ added in v0.0.9
type DefAuthor struct { UID nnz.Int Email nnz.String DefAuthorship }
type DefAuthorship ¶ added in v0.0.9
type DefAuthorship struct { AuthorshipInfo // Exported is whether the def is exported. Exported bool Chars int `db:"chars"` CharsProportion float64 `db:"chars_proportion"` }
type RefAuthorship ¶
type RefAuthorship struct { graph.RefKey AuthorshipInfo }
RefAuthorship describes the authorship information (author email, date, and commit ID) of a ref. A ref may only have one author.
type RepoAuthor ¶
type RepoAuthor struct { UID nnz.Int Email nnz.String AuthorStats }
type RepoClient ¶
type RepoClient struct { UID nnz.Int Email nnz.String ClientStats }
type RepoContribution ¶
type RepoContribution struct { RepoURI repo.URI `db:"repo"` AuthorStats }
type RepoUsageByClient ¶
type RepoUsageByClient struct { // DefRepo is the repository that defines the code that was referenced. // It's called DefRepo because "Repo" usually refers to the repository // whose analysis created this linkage (i.e., the repository that contains // the reference). DefRepo repo.URI `db:"def_repo"` RefCount int `db:"ref_count"` AuthorshipInfo }
RepoUsageByClient describes a repository whose code is referenced by a specific person.
type RepoUsageOfAuthor ¶
RepoUsageOfAuthor describes a repository referencing code committed by a specific person.
type SourceUnitOutput ¶ added in v0.0.9
type SourceUnitOutput struct { Defs map[graph.DefPath][]*DefAuthorship Refs []*RefAuthorship Authors []*AuthorStats ClientsOfOtherUnits []*ClientStats }
func ComputeSourceUnit ¶ added in v0.0.9
func ComputeSourceUnit(g *grapher.Output, b *vcsutil.BlameOutput) (*SourceUnitOutput, error)
Click to show internal directories.
Click to hide internal directories.