MCPcopy Index your code

hub / github.com/src-d/hercules / functions

Functions1,629 in github.com/src-d/hercules

↓ 1,307 callersMethodEqual
Equal checks for the underlying nodes equality.
internal/rbtree/rbtree.go:537
↓ 163 callersMethodLen
()
leaves/couples.go:513
↓ 148 callersMethodName
Name returns the name of the analysis.
internal/core/pipeline.go:93
↓ 131 callersMethodUpdate
Update modifies the underlying tree to adapt to the specified line changes. time is the time when the requested changes are made. Sets the values of
internal/burndown/file.go:150
↓ 103 callersMethodConsume
Consume processes the next commit. deps contains the required entities which match Depends(). Besides, it always includes DependencyCommit and Depende
internal/core/pipeline.go:111
↓ 102 callersMethodLen
()
internal/plumbing/renames.go:577
↓ 81 callersMethodDescriptor
()
internal/pb/pb.pb.go:1352
↓ 79 callersFunctionls
(added, removed, changed int)
leaves/devs_test.go:277
↓ 69 callersMethodString
()
internal/core/forks.go:102
↓ 54 callersMethodErrorf
(string, ...interface{})
internal/core/logger.go:20
↓ 53 callersMethodMerge
Merge combines several branches together. Each is supposed to have been created with Fork(). The result is stored in the called item, thus this functi
internal/core/pipeline.go:120
↓ 49 callersMethodError
(...interface{})
internal/core/logger.go:19
↓ 49 callersFunctionNewLogger
NewLogger returns a configured default logger.
internal/core/logger.go:34
↓ 43 callersMethodAddEdge
AddEdge inserts the link from "from" node to "to" node.
internal/toposort/toposort.go:65
↓ 43 callersMethodDump
Dump formats the underlying line interval tree into a string. Useful for error messages, panic()-s and debugging.
internal/burndown/file.go:330
↓ 43 callersMethodProvides
Provides returns the list of keys of reusable calculated entities. Other items may depend on them.
internal/core/pipeline.go:96
↓ 43 callersMethodRequires
Requires returns the list of keys of needed entities which must be supplied in Consume().
internal/core/pipeline.go:98
↓ 43 callersMethodSummon
Summon searches for PipelineItem-s which provide the specified entity or named after the specified string. It materializes all the found types and ret
internal/core/registry.go:41
↓ 42 callersMethodRegister
Register adds another PipelineItem to the registry.
internal/core/registry.go:23
↓ 39 callersMethodConfigure
Configure performs the initial setup of the object by applying parameters from facts. It allows to create PipelineItems in a universal way.
internal/core/pipeline.go:103
↓ 35 callersFunctionAddHash
(t *testing.T, cache map[plumbing.Hash]*items.CachedBlob, hash string)
leaves/burndown_test.go:27
↓ 35 callersMethodString
()
leaves/shotness.go:75
↓ 31 callersMethodSize
()
internal/plumbing/identity/identity_test.go:297
↓ 30 callersFunctionfixtureFile
()
internal/burndown/file_test.go:16
↓ 29 callersMethodListConfigurationOptions
ListConfigurationOptions returns the list of available options which can be consumed by Configure().
internal/core/pipeline.go:100
↓ 29 callersFunctiontestAssert
(t *testing.T, b bool, message string)
internal/rbtree/rbtree_test.go:19
↓ 28 callersMethodFlag
Flag returns the cmdline switch to run the analysis. Should be dash-lower-case without the leading dashes.
internal/core/pipeline.go:147
↓ 27 callersMethodString
()
internal/pb/pb.pb.go:1350
↓ 27 callersFunctionsibling
(n uint32, allocator []node)
internal/rbtree/rbtree.go:634
↓ 25 callersMethodInsert
Insert an item. If the item is already in the tree, do nothing and return false. Else return true.
internal/rbtree/rbtree.go:440
↓ 25 callersMethodItem
Item returns the current element. Allows mutating the node (key to be changed with care!). The result is nil if iter.Limit() || iter.NegativeLimit().
internal/rbtree/rbtree.go:565
↓ 24 callersMethodClose
()
internal/dummies.go:22
↓ 24 callersFunctionNewAllocator
NewAllocator creates a new allocator for RBTree's nodes.
internal/rbtree/rbtree.go:35
↓ 24 callersMethodNext
Next creates a new iterator that points to the successor of the current element. REQUIRES: !iter.Limit()
internal/rbtree/rbtree.go:575
↓ 24 callersMethodSize
Size returns the currently allocated size.
internal/rbtree/rbtree.go:43
↓ 23 callersFunctionNewPipeline
NewPipeline initializes a new instance of Pipeline struct.
internal/core/pipeline.go:329
↓ 23 callersMethodSerialize
Serialize encodes the object returned by Finalize() to YAML or Protocol Buffers.
internal/core/pipeline.go:154
↓ 23 callersMethodstorage
()
internal/rbtree/rbtree.go:312
↓ 22 callersMethodLen
Len returns the number of items in the pipeline.
internal/core/pipeline.go:443
↓ 21 callersMethodWarnf
(string, ...interface{})
internal/core/logger.go:18
↓ 19 callersMethodFinalize
Finalize returns the result of the analysis.
internal/core/pipeline.go:152
↓ 19 callersFunctiongetColor
Internal node attribute accessors
internal/rbtree/rbtree.go:619
↓ 18 callersMethodInitialize
Initialize prepares the pipeline for the execution (Run()). This function resolves the execution DAG, Configure()-s and Initialize()-s the items in it
internal/core/pipeline.go:668
↓ 18 callersMethodItem
()
internal/rbtree/rbtree_test.go:225
↓ 18 callersMethodRun
Run method executes the pipeline. `commits` is a slice with the git commits to analyse. Multiple branches are supported. Returns the mapping from ea
internal/core/pipeline.go:750
↓ 18 callersMethodblobsAreClose
(blob1 *CachedBlob, blob2 *CachedBlob)
internal/plumbing/renames.go:414
↓ 17 callersFunctionForkSamePipelineItem
ForkSamePipelineItem clones items by referencing the same origin.
internal/core/forks.go:49
↓ 16 callersMethodCache
Cache reads the underlying blob object and sets CachedBlob.Data.
internal/plumbing/blob_cache.go:35
↓ 16 callersMethodFork
Fork clones the item the requested number of times. The data links between the clones are up to the implementation. Needed to handle Git branches. See
internal/core/pipeline.go:115
↓ 16 callersFunctionfixtureBlobCache
()
internal/plumbing/blob_cache_test.go:14
↓ 16 callersFunctionfixtureIdentityDetector
()
internal/plumbing/identity/identity_test.go:21
↓ 15 callersMethodAddItem
AddItem inserts a PipelineItem into the pipeline. It does not check any dependencies. See also: DeployItem().
internal/core/pipeline.go:427
↓ 15 callersFunctionFileDiff
FileDiff initializes a new plumbing.FileDiff item for testing.
internal/test/fixtures/fixtures.go:9
↓ 15 callersFunctionfixtureTreeDiff
()
internal/plumbing/tree_diff_test.go:14
↓ 14 callersMethodCountLines
CountLines returns the number of lines in the blob or (0, ErrorBinary) if it is binary.
internal/plumbing/blob_cache.go:56
↓ 14 callersFunctionNewGraph
NewGraph initializes a new Graph.
internal/toposort/toposort.go:21
↓ 13 callersMethodFindGE
(t *testing.T, key int)
internal/rbtree/rbtree_test.go:167
↓ 13 callersMethodGetLeaves
GetLeaves returns all LeafPipelineItem-s registered.
internal/core/registry.go:57
↓ 13 callersMethodLimit
()
internal/rbtree/rbtree_test.go:209
↓ 13 callersFunctionSafeString
SafeString returns a string which is sufficiently quoted and escaped for YAML.
internal/yaml/utils.go:11
↓ 13 callersMethodWrite
(p []byte)
internal/dummies.go:18
↓ 12 callersMethodInitialize
Initialize prepares and resets the item. Consume() requires Initialize() to be called at least once beforehand.
internal/core/pipeline.go:106
↓ 12 callersFunctionlog
(message, *args, **kwargs)
python/labours/_vendor/swivel.py:105
↓ 12 callersMethodmalloc
()
internal/rbtree/rbtree.go:245
↓ 11 callersMethodLen
Len returns the File's size - that is, the maximum key in the tree of line intervals.
internal/burndown/file.go:126
↓ 11 callersMethodNegativeLimit
()
internal/rbtree/rbtree_test.go:217
↓ 11 callersFunctiondoAssert
(b bool)
internal/rbtree/rbtree.go:598
↓ 11 callersMethodgetBlob
Returns the blob which corresponds to the specified ChangeEntry.
internal/plumbing/blob_cache.go:281
↓ 10 callersMethodClone
Clone copies an existing RBTree allocator.
internal/rbtree/rbtree.go:56
↓ 10 callersMethodDeleteWithKey
DeleteWithKey deletes an item with the given Key. Returns true iff the item was found.
internal/rbtree/rbtree.go:508
↓ 10 callersMethodLimit
Limit creates an iterator that points beyond the maximum item in the tree.
internal/rbtree/rbtree.go:404
↓ 10 callersMethodUsed
Used returns the number of nodes contained in the allocator.
internal/rbtree/rbtree.go:48
↓ 10 callersFunctiongenerateChanges
(names ...string)
leaves/couples_test.go:58
↓ 10 callersFunctionget_plot_path
(base: str, name: str)
python/labours/plotting.py:45
↓ 9 callersMethodAddNodes
AddNodes inserts multiple nodes into the graph at once.
internal/toposort/toposort.go:55
↓ 9 callersMethodBeginTimeAsTime
BeginTimeAsTime converts the UNIX timestamp of the beginning to Go time.
internal/core/pipeline.go:201
↓ 9 callersFunctionCreateDummyBlob
CreateDummyBlob constructs a fake object.Blob with empty contents. Optionally returns an error if read or written.
internal/dummies.go:65
↓ 9 callersMethodFindLE
(t *testing.T, key int)
internal/rbtree/rbtree_test.go:180
↓ 9 callersMethodForEach
ForEach visits each node in the underlying tree, in ascending key order.
internal/burndown/file.go:368
↓ 9 callersMethodInitialize
Initialize resets the temporary caches and prepares this PipelineItem for a series of Consume() calls. The repository which is going to be analysed is
leaves/burndown.go:316
↓ 9 callersFunctionfixtureCouples
()
leaves/couples_test.go:21
↓ 9 callersFunctionfixtureRenameAnalysis
()
internal/plumbing/renames_test.go:20
↓ 9 callersFunctionisLeftChild
(n uint32, allocator []node)
internal/rbtree/rbtree.go:626
↓ 9 callersMethodunpackPersonWithTick
(value int)
leaves/burndown.go:1129
↓ 8 callersFunctionAddHash
(t *testing.T, cache map[plumbing.Hash]*items.CachedBlob, hash string)
internal/plumbing/uast/uast_test.go:34
↓ 8 callersMethodConsume
Consume runs this PipelineItem on the next commit's data. `deps` contain all the results from upstream PipelineItem-s as requested by Requires(). Addi
leaves/burndown.go:363
↓ 8 callersMethodCritical
(...interface{})
internal/core/logger.go:21
↓ 8 callersMethodGetFeature
GetFeature returns the state of the feature with the specified name (enabled/disabled) and whether it exists. See also: FeaturedPipelineItem.
internal/core/pipeline.go:351
↓ 8 callersMethodMin
Min creates an iterator that points to the minimum item in the tree. If the tree is empty, returns Limit()
internal/rbtree/rbtree.go:389
↓ 8 callersMethodReset
()
internal/pb/pb.pb.go:1349
↓ 8 callersMethodValidate
Validate checks the underlying line interval tree integrity. The checks are as follows: 1. The minimum key must be 0 because the first line index is
internal/burndown/file.go:347
↓ 8 callersFunctionaddBurndownMatrix
Explode `matrix` so that it is daily sampled and has daily bands, shift by `offset` ticks and add to the accumulator. `daily` size is square and is gu
leaves/burndown.go:829
↓ 8 callersFunctionboolInsert
(tree *RBTree, item int)
internal/rbtree/rbtree_test.go:23
↓ 8 callersFunctiondeploy_plot
(title: str, output: str, background: str, tight: bool = True)
python/labours/plotting.py:54
↓ 8 callersFunctionfixtureDevs
()
leaves/devs_test.go:20
↓ 8 callersFunctionimport_pyplot
(backend, style)
python/labours/plotting.py:5
↓ 8 callersMethodsizesAreClose
(size1 int64, size2 int64)
internal/plumbing/renames.go:409
↓ 8 callersFunctiontestPanicFile
(t *testing.T, method func(*File), msg string)
internal/burndown/file_test.go:35
↓ 7 callersMethodFeatures
Features returns the list of names which enable this item to be automatically inserted in Pipeline.DeployItem().
internal/core/pipeline.go:128
↓ 7 callersFunctionNewFileFromTree
NewFileFromTree is an alternative constructor for File which is used in tests. The resulting tree is validated with Validate() to ensure the initial i
internal/burndown/file.go:89
next →1–100 of 1,629, ranked by callers