{"modulePath":"github-proxy.voidd.workers.dev/src-d/hercules","version":"v10.3.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Constants\n\n```go\nconst (\n\tConfigChurnTrackPeople = \"Churn.TrackPeople\"\n)\n```\n\n## Types\n\n```go\ntype ChurnAnalysis struct {\n\t// No special merge logic is required\n\thercules.NoopMerger\n\t// Process each merge only once\n\thercules.OneShotMergeProcessor\n\tTrackPeople bool\n\t// contains filtered or unexported fields\n}\n```\nChurnAnalysis contains the intermediate state which is mutated by Consume(). It should implement hercules.LeafPipelineItem.\n\n```go\nfunc (churn *ChurnAnalysis) Configure(facts map[string]interface{}) error\n```\nConfigure applies the parameters specified in the command line. Map keys correspond to \"Name\".\n\n```go\nfunc (churn *ChurnAnalysis) Consume(deps map[string]interface{}) (map[string]interface{}, error)\n```\n\n```go\nfunc (churn *ChurnAnalysis) Description() string\n```\nDescription returns the text which explains what the analysis is doing.\n\n```go\nfunc (churn *ChurnAnalysis) Finalize() interface{}\n```\n\n```go\nfunc (churn *ChurnAnalysis) Flag() string\n```\nFlag returns the command line switch which activates the analysis.\n\n```go\nfunc (churn *ChurnAnalysis) Fork(n int) []hercules.PipelineItem\n```\nFork clones the same item several times on branches.\n\n```go\nfunc (churn *ChurnAnalysis) Initialize(repository *git.Repository) error\n```\nInitialize resets the internal temporary data structures and prepares the object for Consume().\n\n```go\nfunc (churn *ChurnAnalysis) ListConfigurationOptions() []hercules.ConfigurationOption\n```\nListConfigurationOptions tells the engine which parameters can be changed through the command line.\n\n```go\nfunc (churn *ChurnAnalysis) Name() string\n```\nAnalysis' name in the graph is usually the same as the type's name, however, does not have to.\n\n```go\nfunc (churn *ChurnAnalysis) Provides() []string\n```\nLeafPipelineItem-s normally do not act as intermediate nodes and thus we return an empty slice.\n\n```go\nfunc (churn *ChurnAnalysis) Requires() []string\n```\nRequires returns the list of dependencies which must be supplied in Consume(). file\\_diff - line diff for each commit change changes - list of changed files for each commit blob\\_cache - set of blobs affected by each commit tick - number of ticks since start for each commit author - author of the commit\n\n```go\nfunc (churn *ChurnAnalysis) Serialize(result interface{}, binary bool, writer io.Writer) error\n```\n\n```go\ntype ChurnAnalysisResult struct {\n\tGlobal Edits\n\tPeople map[string]Edits\n}\n```\nChurnAnalysisResult is returned by Finalize() and represents the analysis result.\n\n```go\ntype Edits struct {\n\tTicks     []int\n\tAdditions []int\n\tRemovals  []int\n}\n```\n\n","path":"github-proxy.voidd.workers.dev/src-d/hercules/contrib/_plugin_example","name":"main","synopsis":"","isRedistributable":true}
