Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/src-d/hercules
/ functions
Functions
1,629 in github.com/src-d/hercules
⨍
Functions
1,629
◇
Types & classes
153
↓ 1,307 callers
Method
Equal
Equal checks for the underlying nodes equality.
internal/rbtree/rbtree.go:537
↓ 163 callers
Method
Len
()
leaves/couples.go:513
↓ 148 callers
Method
Name
Name returns the name of the analysis.
internal/core/pipeline.go:93
↓ 131 callers
Method
Update
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 callers
Method
Consume
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 callers
Method
Len
()
internal/plumbing/renames.go:577
↓ 81 callers
Method
Descriptor
()
internal/pb/pb.pb.go:1352
↓ 79 callers
Function
ls
(added, removed, changed int)
leaves/devs_test.go:277
↓ 69 callers
Method
String
()
internal/core/forks.go:102
↓ 54 callers
Method
Errorf
(string, ...interface{})
internal/core/logger.go:20
↓ 53 callers
Method
Merge
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 callers
Method
Error
(...interface{})
internal/core/logger.go:19
↓ 49 callers
Function
NewLogger
NewLogger returns a configured default logger.
internal/core/logger.go:34
↓ 43 callers
Method
AddEdge
AddEdge inserts the link from "from" node to "to" node.
internal/toposort/toposort.go:65
↓ 43 callers
Method
Dump
Dump formats the underlying line interval tree into a string. Useful for error messages, panic()-s and debugging.
internal/burndown/file.go:330
↓ 43 callers
Method
Provides
Provides returns the list of keys of reusable calculated entities. Other items may depend on them.
internal/core/pipeline.go:96
↓ 43 callers
Method
Requires
Requires returns the list of keys of needed entities which must be supplied in Consume().
internal/core/pipeline.go:98
↓ 43 callers
Method
Summon
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 callers
Method
Register
Register adds another PipelineItem to the registry.
internal/core/registry.go:23
↓ 39 callers
Method
Configure
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 callers
Function
AddHash
(t *testing.T, cache map[plumbing.Hash]*items.CachedBlob, hash string)
leaves/burndown_test.go:27
↓ 35 callers
Method
String
()
leaves/shotness.go:75
↓ 31 callers
Method
Size
()
internal/plumbing/identity/identity_test.go:297
↓ 30 callers
Function
fixtureFile
()
internal/burndown/file_test.go:16
↓ 29 callers
Method
ListConfigurationOptions
ListConfigurationOptions returns the list of available options which can be consumed by Configure().
internal/core/pipeline.go:100
↓ 29 callers
Function
testAssert
(t *testing.T, b bool, message string)
internal/rbtree/rbtree_test.go:19
↓ 28 callers
Method
Flag
Flag returns the cmdline switch to run the analysis. Should be dash-lower-case without the leading dashes.
internal/core/pipeline.go:147
↓ 27 callers
Method
String
()
internal/pb/pb.pb.go:1350
↓ 27 callers
Function
sibling
(n uint32, allocator []node)
internal/rbtree/rbtree.go:634
↓ 25 callers
Method
Insert
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 callers
Method
Item
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 callers
Method
Close
()
internal/dummies.go:22
↓ 24 callers
Function
NewAllocator
NewAllocator creates a new allocator for RBTree's nodes.
internal/rbtree/rbtree.go:35
↓ 24 callers
Method
Next
Next creates a new iterator that points to the successor of the current element. REQUIRES: !iter.Limit()
internal/rbtree/rbtree.go:575
↓ 24 callers
Method
Size
Size returns the currently allocated size.
internal/rbtree/rbtree.go:43
↓ 23 callers
Function
NewPipeline
NewPipeline initializes a new instance of Pipeline struct.
internal/core/pipeline.go:329
↓ 23 callers
Method
Serialize
Serialize encodes the object returned by Finalize() to YAML or Protocol Buffers.
internal/core/pipeline.go:154
↓ 23 callers
Method
storage
()
internal/rbtree/rbtree.go:312
↓ 22 callers
Method
Len
Len returns the number of items in the pipeline.
internal/core/pipeline.go:443
↓ 21 callers
Method
Warnf
(string, ...interface{})
internal/core/logger.go:18
↓ 19 callers
Method
Finalize
Finalize returns the result of the analysis.
internal/core/pipeline.go:152
↓ 19 callers
Function
getColor
Internal node attribute accessors
internal/rbtree/rbtree.go:619
↓ 18 callers
Method
Initialize
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 callers
Method
Item
()
internal/rbtree/rbtree_test.go:225
↓ 18 callers
Method
Run
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 callers
Method
blobsAreClose
(blob1 *CachedBlob, blob2 *CachedBlob)
internal/plumbing/renames.go:414
↓ 17 callers
Function
ForkSamePipelineItem
ForkSamePipelineItem clones items by referencing the same origin.
internal/core/forks.go:49
↓ 16 callers
Method
Cache
Cache reads the underlying blob object and sets CachedBlob.Data.
internal/plumbing/blob_cache.go:35
↓ 16 callers
Method
Fork
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 callers
Function
fixtureBlobCache
()
internal/plumbing/blob_cache_test.go:14
↓ 16 callers
Function
fixtureIdentityDetector
()
internal/plumbing/identity/identity_test.go:21
↓ 15 callers
Method
AddItem
AddItem inserts a PipelineItem into the pipeline. It does not check any dependencies. See also: DeployItem().
internal/core/pipeline.go:427
↓ 15 callers
Function
FileDiff
FileDiff initializes a new plumbing.FileDiff item for testing.
internal/test/fixtures/fixtures.go:9
↓ 15 callers
Function
fixtureTreeDiff
()
internal/plumbing/tree_diff_test.go:14
↓ 14 callers
Method
CountLines
CountLines returns the number of lines in the blob or (0, ErrorBinary) if it is binary.
internal/plumbing/blob_cache.go:56
↓ 14 callers
Function
NewGraph
NewGraph initializes a new Graph.
internal/toposort/toposort.go:21
↓ 13 callers
Method
FindGE
(t *testing.T, key int)
internal/rbtree/rbtree_test.go:167
↓ 13 callers
Method
GetLeaves
GetLeaves returns all LeafPipelineItem-s registered.
internal/core/registry.go:57
↓ 13 callers
Method
Limit
()
internal/rbtree/rbtree_test.go:209
↓ 13 callers
Function
SafeString
SafeString returns a string which is sufficiently quoted and escaped for YAML.
internal/yaml/utils.go:11
↓ 13 callers
Method
Write
(p []byte)
internal/dummies.go:18
↓ 12 callers
Method
Initialize
Initialize prepares and resets the item. Consume() requires Initialize() to be called at least once beforehand.
internal/core/pipeline.go:106
↓ 12 callers
Function
log
(message, *args, **kwargs)
python/labours/_vendor/swivel.py:105
↓ 12 callers
Method
malloc
()
internal/rbtree/rbtree.go:245
↓ 11 callers
Method
Len
Len returns the File's size - that is, the maximum key in the tree of line intervals.
internal/burndown/file.go:126
↓ 11 callers
Method
NegativeLimit
()
internal/rbtree/rbtree_test.go:217
↓ 11 callers
Function
doAssert
(b bool)
internal/rbtree/rbtree.go:598
↓ 11 callers
Method
getBlob
Returns the blob which corresponds to the specified ChangeEntry.
internal/plumbing/blob_cache.go:281
↓ 10 callers
Method
Clone
Clone copies an existing RBTree allocator.
internal/rbtree/rbtree.go:56
↓ 10 callers
Method
DeleteWithKey
DeleteWithKey deletes an item with the given Key. Returns true iff the item was found.
internal/rbtree/rbtree.go:508
↓ 10 callers
Method
Limit
Limit creates an iterator that points beyond the maximum item in the tree.
internal/rbtree/rbtree.go:404
↓ 10 callers
Method
Used
Used returns the number of nodes contained in the allocator.
internal/rbtree/rbtree.go:48
↓ 10 callers
Function
generateChanges
(names ...string)
leaves/couples_test.go:58
↓ 10 callers
Function
get_plot_path
(base: str, name: str)
python/labours/plotting.py:45
↓ 9 callers
Method
AddNodes
AddNodes inserts multiple nodes into the graph at once.
internal/toposort/toposort.go:55
↓ 9 callers
Method
BeginTimeAsTime
BeginTimeAsTime converts the UNIX timestamp of the beginning to Go time.
internal/core/pipeline.go:201
↓ 9 callers
Function
CreateDummyBlob
CreateDummyBlob constructs a fake object.Blob with empty contents. Optionally returns an error if read or written.
internal/dummies.go:65
↓ 9 callers
Method
FindLE
(t *testing.T, key int)
internal/rbtree/rbtree_test.go:180
↓ 9 callers
Method
ForEach
ForEach visits each node in the underlying tree, in ascending key order.
internal/burndown/file.go:368
↓ 9 callers
Method
Initialize
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 callers
Function
fixtureCouples
()
leaves/couples_test.go:21
↓ 9 callers
Function
fixtureRenameAnalysis
()
internal/plumbing/renames_test.go:20
↓ 9 callers
Function
isLeftChild
(n uint32, allocator []node)
internal/rbtree/rbtree.go:626
↓ 9 callers
Method
unpackPersonWithTick
(value int)
leaves/burndown.go:1129
↓ 8 callers
Function
AddHash
(t *testing.T, cache map[plumbing.Hash]*items.CachedBlob, hash string)
internal/plumbing/uast/uast_test.go:34
↓ 8 callers
Method
Consume
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 callers
Method
Critical
(...interface{})
internal/core/logger.go:21
↓ 8 callers
Method
GetFeature
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 callers
Method
Min
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 callers
Method
Reset
()
internal/pb/pb.pb.go:1349
↓ 8 callers
Method
Validate
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 callers
Function
addBurndownMatrix
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 callers
Function
boolInsert
(tree *RBTree, item int)
internal/rbtree/rbtree_test.go:23
↓ 8 callers
Function
deploy_plot
(title: str, output: str, background: str, tight: bool = True)
python/labours/plotting.py:54
↓ 8 callers
Function
fixtureDevs
()
leaves/devs_test.go:20
↓ 8 callers
Function
import_pyplot
(backend, style)
python/labours/plotting.py:5
↓ 8 callers
Method
sizesAreClose
(size1 int64, size2 int64)
internal/plumbing/renames.go:409
↓ 8 callers
Function
testPanicFile
(t *testing.T, method func(*File), msg string)
internal/burndown/file_test.go:35
↓ 7 callers
Method
Features
Features returns the list of names which enable this item to be automatically inserted in Pipeline.DeployItem().
internal/core/pipeline.go:128
↓ 7 callers
Function
NewFileFromTree
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