Documentation
¶
Overview ¶
Package identity provides identity constants and types for author tracking.
Index ¶
Constants ¶
View Source
const ( // AuthorMissing is the internal author index which denotes any unmatched identities // (Detector.Consume()). It may *not* be (1 << 18) - 1, see BurndownAnalysis.packPersonWithDay(). AuthorMissing = (1 << authorMissingShift) - 2 // AuthorMissingName is the string name which corresponds to AuthorMissing. AuthorMissingName = "<unmatched>" // FactIdentityDetectorPeopleDict is the name of the fact which is inserted in // Detector.Configure(). It corresponds to Detector.PeopleDict - the mapping // from the signatures to the author indices. FactIdentityDetectorPeopleDict = "IdentityDetector.PeopleDict" // FactIdentityDetectorReversedPeopleDict is the name of the fact which is inserted in // Detector.Configure(). It corresponds to Detector.ReversedPeopleDict - // the mapping from the author indices to the main signature. FactIdentityDetectorReversedPeopleDict = "IdentityDetector.ReversedPeopleDict" // ConfigIdentityDetectorPeopleDictPath is the name of the configuration option // (Detector.Configure()) which allows to set the external PeopleDict mapping from a file. ConfigIdentityDetectorPeopleDictPath = "IdentityDetector.PeopleDictPath" // ConfigIdentityDetectorExactSignatures is the name of the configuration option // (Detector.Configure()) which changes the matching algorithm to exact signature (name + email) // correspondence. ConfigIdentityDetectorExactSignatures = "IdentityDetector.ExactSignatures" // FactIdentityDetectorPeopleCount is the name of the fact which is inserted in // Detector.Configure(). It is equal to the overall number of unique authors // (the length of ReversedPeopleDict). FactIdentityDetectorPeopleCount = "IdentityDetector.PeopleCount" // DependencyAuthor is the name of the dependency provided by Detector. DependencyAuthor = "author" )
Variables ¶
This section is empty.
Functions ¶
func SplitIdentity ¶
SplitIdentity splits a pipe-delimited or exact-format identity string into a canonical name and email.
Pipe-delimited format: "name1|name2|email1|email2" → first non-email part, first email part. Exact format: "name <email>" → name and email. Plain name: "name" → name and empty email.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.