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
↓ 3 callers
Method
Consume
Consume runs this PipelineItem on the next commit data. `deps` contain all the results from upstream PipelineItem-s as requested by Requires(). Additi
leaves/research/typos.go:146
↓ 3 callers
Function
DecompressUInt32Slice
DecompressUInt32Slice decompresses a slice of uint32-s previously compressed with LZ4. `result` must be preallocated.
internal/rbtree/lz4.go:29
↓ 3 callers
Method
Delete
Delete deallocates the file.
internal/burndown/file.go:120
↓ 3 callers
Method
DeleteWithIterator
DeleteWithIterator deletes the current item. REQUIRES: !iter.Limit() && !iter.NegativeLimit()
internal/rbtree/rbtree.go:520
↓ 3 callers
Method
Description
Description returns the text which explains what the analysis is doing. Should start with a capital letter and end with a dot.
internal/core/pipeline.go:150
↓ 3 callers
Method
EndTimeAsTime
EndTimeAsTime converts the UNIX timestamp of the ending to Go time.
internal/core/pipeline.go:206
↓ 3 callers
Method
Erase
Erase removes all the nodes from the tree.
internal/rbtree/rbtree.go:363
↓ 3 callers
Method
FillMetadata
FillMetadata copies the data to a Protobuf message.
internal/core/pipeline.go:231
↓ 3 callers
Method
Finalize
Finalize returns the result of the analysis. Further Consume() calls are not expected.
leaves/burndown.go:514
↓ 3 callers
Method
FindChildren
FindChildren returns the other ends of outgoing edges.
internal/toposort/toposort.go:227
↓ 3 callers
Method
FindCycle
FindCycle returns the cycle in the graph which contains "seed" node.
internal/toposort/toposort.go:180
↓ 3 callers
Method
FindParents
FindParents returns the other ends of incoming edges.
internal/toposort/toposort.go:216
↓ 3 callers
Method
HeadCommit
HeadCommit returns the latest commit in the repository (HEAD).
internal/core/pipeline.go:485
↓ 3 callers
Method
Infof
(string, ...interface{})
internal/core/logger.go:16
↓ 3 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/research/typos.go:125
↓ 3 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
internal/plumbing/uast/uast.go:189
↓ 3 callers
Method
Less
(i, j int)
internal/plumbing/renames.go:558
↓ 3 callers
Method
Less
(other *sortableBlob)
internal/plumbing/renames.go:573
↓ 3 callers
Method
Less
(i, j int)
internal/plumbing/renames.go:581
↓ 3 callers
Method
Limit
Limit checks if the iterator points beyond the max element in the tree.
internal/rbtree/rbtree.go:542
↓ 3 callers
Method
ListConfigurationOptions
ListConfigurationOptions returns the list of changeable public properties of this PipelineItem.
leaves/shotness.go:99
↓ 3 callers
Function
MergeReversedDictsLiteral
MergeReversedDictsLiteral joins two string lists together, excluding duplicates, in-order. The string comparisons are the usual ones. The returned map
internal/plumbing/identity/identity.go:330
↓ 3 callers
Function
Min64
Min64 calculates the minimum of two 64-bit integers.
internal/math.go:15
↓ 3 callers
Method
NegativeLimit
NegativeLimit checks if the iterator points before the minimum element in the tree.
internal/rbtree/rbtree.go:557
↓ 3 callers
Function
ParseMailmap
ParseMailmap parses the contents of .mailmap and returns the mapping between signature parts. It does *not* follow the full signature matching convent
internal/plumbing/identity/mailmap.go:13
↓ 3 callers
Method
Prev
Prev creates a new iterator that points to the predecessor of the current node. REQUIRES: !iter.NegativeLimit()
internal/rbtree/rbtree.go:587
↓ 3 callers
Method
Read
(p []byte)
internal/dummies.go:14
↓ 3 callers
Method
ReindexNode
ReindexNode updates the internal representation of the node after edge removals.
internal/toposort/toposort.go:79
↓ 3 callers
Method
Requires
Requires returns the list of names of entities which are needed by this PipelineItem. Each requested entity will be inserted into `deps` of Consume().
leaves/shotness.go:94
↓ 3 callers
Method
Requires
Requires returns the list of names of entities which are needed by this PipelineItem. Each requested entity will be inserted into `deps` of Consume().
leaves/commits.go:69
↓ 3 callers
Method
Requires
Requires returns the list of names of entities which are needed by this PipelineItem. Each requested entity will be inserted into `deps` of Consume().
internal/plumbing/languages.go:42
↓ 3 callers
Method
Serialize
Serialize writes the hibernated allocator on disk.
internal/rbtree/rbtree.go:177
↓ 3 callers
Method
String
String() returns an empty string for the boolean type, "int" for integers and "string" for strings. It is used in the command line interface to show t
internal/core/pipeline.go:45
↓ 3 callers
Function
ToBurndownSparseMatrix
ToBurndownSparseMatrix converts a rectangular integer matrix to the corresponding Protobuf object. It is specific to hercules.BurndownAnalysis.
internal/pb/utils.go:9
↓ 3 callers
Method
Type
()
internal/core/registry.go:159
↓ 3 callers
Method
_parse_burndown_matrix
(self, matrix)
python/labours/readers.py:340
↓ 3 callers
Method
_parse_sparse_matrix
(self, matrix)
python/labours/readers.py:349
↓ 3 callers
Function
bakeFileHistoryForSerialization
(t *testing.T)
leaves/file_history_test.go:138
↓ 3 callers
Function
buildParents
inverts `dag`
internal/core/forks.go:360
↓ 3 callers
Function
cloneItems
(origin []PipelineItem, n int)
internal/core/forks.go:124
↓ 3 callers
Function
compareContents
(t *testing.T, oiter oracleIterator, titer Iterator)
internal/rbtree/rbtree_test.go:237
↓ 3 callers
Method
extractNodes
(root uast_nodes.Node)
leaves/shotness.go:443
↓ 3 callers
Method
filterDiffs
(diffs object.Changes)
internal/plumbing/tree_diff.go:225
↓ 3 callers
Function
fixtureExtractor
()
internal/plumbing/imports/extractor_test.go:16
↓ 3 callers
Function
fixtureFileHistory
()
leaves/file_history_test.go:19
↓ 3 callers
Function
fixtureShotness
()
leaves/shotness_test.go:25
↓ 3 callers
Function
fixtureUASTChanges
()
internal/plumbing/uast/uast_test.go:230
↓ 3 callers
Method
flatten
flatten represents the file as a slice of lines, each line's value being the corresponding day.
internal/burndown/file.go:383
↓ 3 callers
Function
getSlice
(vals ...int)
leaves/couples_test.go:587
↓ 3 callers
Method
groupSparseHistory
( history sparseHistory, lastTick int)
leaves/burndown.go:1497
↓ 3 callers
Function
grow
(finish_index: int, finish_val: float)
python/labours/modes/burndown.py:201
↓ 3 callers
Method
handleInsertion
( change *object.Change, author int, cache map[plumbing.Hash]*items.CachedBlob)
leaves/burndown.go:1236
↓ 3 callers
Function
import_pandas
()
python/labours/utils.py:59
↓ 3 callers
Function
isRightChild
(n uint32, allocator []node)
internal/rbtree/rbtree.go:630
↓ 3 callers
Function
loadData
(t *testing.T, name string)
internal/plumbing/renames_test.go:333
↓ 3 callers
Function
reverseIterToString
(i Iterator)
internal/rbtree/rbtree_test.go:92
↓ 3 callers
Function
sortRenameCandidates
(candidates []int, origin string, nameGetter func(int) string)
internal/plumbing/renames.go:594
↓ 3 callers
Method
unexplodeWithException
(File file, String message)
internal/test_data/1.java:206
↓ 3 callers
Method
unexplodeWithException
(File file, String message)
internal/test_data/2.java:248
↓ 2 callers
Method
BreadthSort
BreadthSort sorts the nodes in the graph in BFS order.
internal/toposort/toposort.go:153
↓ 2 callers
Method
CloneDeep
CloneDeep performs a deep copy of the tree - the nodes are created from scratch.
internal/rbtree/rbtree.go:334
↓ 2 callers
Method
CloneShallow
CloneShallow performs a shallow copy of the tree - the nodes are assumed to already exist in the allocator.
internal/rbtree/rbtree.go:327
↓ 2 callers
Method
Configure
Configure sets the properties previously published by ListConfigurationOptions().
leaves/commits.go:80
↓ 2 callers
Method
Configure
Configure sets the properties previously published by ListConfigurationOptions().
internal/plumbing/languages.go:52
↓ 2 callers
Method
Consume
Consume runs this PipelineItem on the next commit data. `deps` contain all the results from upstream PipelineItem-s as requested by Requires(). Additi
leaves/commits.go:112
↓ 2 callers
Method
Consume
Consume runs this PipelineItem on the next commit data. `deps` contain all the results from upstream PipelineItem-s as requested by Requires(). Additi
internal/plumbing/uast/uast.go:248
↓ 2 callers
Method
Consume
Consume runs this PipelineItem on the next commit data. `deps` contain all the results from upstream PipelineItem-s as requested by Requires(). Additi
internal/plumbing/uast/uast.go:416
↓ 2 callers
Method
Criticalf
(string, ...interface{})
internal/core/logger.go:22
↓ 2 callers
Function
EnablePathFlagTypeMasquerade
EnablePathFlagTypeMasquerade changes the type of all "path" command line arguments from "string" to "path". This operation cannot be canceled and is i
internal/core/registry.go:144
↓ 2 callers
Function
FakeChangeForName
FakeChangeForName creates an artificial Git Change from a file name and two arbitrary hashes.
internal/test/repository.go:19
↓ 2 callers
Method
GetFact
GetFact returns the value of the fact with the specified name.
internal/core/pipeline.go:340
↓ 2 callers
Method
GetFeaturedItems
GetFeaturedItems returns all FeaturedPipelineItem-s registered.
internal/core/registry.go:88
↓ 2 callers
Method
GetLanguage
()
internal/pb/pb.pb.go:1216
↓ 2 callers
Method
GetPlumbingItems
GetPlumbingItems returns all non-LeafPipelineItem-s registered.
internal/core/registry.go:71
↓ 2 callers
Function
GetSensibleRemote
GetSensibleRemote extracts a remote URL of the repository to identify it.
internal/core/pipeline.go:959
↓ 2 callers
Method
Hash
()
internal/plumbing/identity/identity_test.go:287
↓ 2 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/shotness.go:155
↓ 2 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/commits.go:102
↓ 2 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
internal/plumbing/blob_cache.go:148
↓ 2 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
internal/plumbing/diff.go:118
↓ 2 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
internal/plumbing/uast/uast.go:405
↓ 2 callers
Method
Insert
(key int)
internal/rbtree/rbtree_test.go:146
↓ 2 callers
Function
MapToCompressedSparseRowMatrix
MapToCompressedSparseRowMatrix takes an integer matrix and converts it to a Protobuf CSR. In contrast to DenseToCompressedSparseRowMatrix, a matrix he
internal/pb/utils.go:72
↓ 2 callers
Function
MetadataToCommonAnalysisResult
MetadataToCommonAnalysisResult copies the data from a Protobuf message.
internal/core/pipeline.go:244
↓ 2 callers
Function
Min
The ugly side of Go. template <typename T> please! Min calculates the minimum of two 32-bit integers.
internal/math.go:7
↓ 2 callers
Method
Min
()
internal/rbtree/rbtree_test.go:213
↓ 2 callers
Method
NegativeLimit
NegativeLimit creates an iterator that points before the minimum item in the tree.
internal/rbtree/rbtree.go:409
↓ 2 callers
Method
Provides
Provides returns the list of names of entities which are produced by this PipelineItem. Each produced entity will be inserted into `deps` of dependent
internal/plumbing/line_stats.go:45
↓ 2 callers
Method
Provides
Provides returns the list of names of entities which are produced by this PipelineItem. Each produced entity will be inserted into `deps` of dependent
internal/plumbing/languages.go:35
↓ 2 callers
Method
Reader
()
internal/dummies.go:49
↓ 2 callers
Method
Reader
Reader returns a reader allow the access to the content of the blob
internal/plumbing/blob_cache.go:30
↓ 2 callers
Method
Serialize
Serialize outputs the graph in Graphviz format.
internal/toposort/toposort.go:237
↓ 2 callers
Method
SetFact
SetFact sets the value of the fact with the specified name.
internal/core/pipeline.go:345
↓ 2 callers
Method
String
()
internal/core/registry.go:166
↓ 2 callers
Function
_format_number
(n: Number)
python/labours/utils.py:31
↓ 2 callers
Method
_parse_coocc_matrix
(self, matrix)
python/labours/readers.py:203
↓ 2 callers
Method
_read_next_chunk
(self, max_length)
python/labours/readers.py:389
↓ 2 callers
Method
add
(self, dd: 'DevDay')
python/labours/objects.py:7
↓ 2 callers
Function
bakeTyposDeps
(t *testing.T)
leaves/research/typos_test.go:80
↓ 2 callers
Function
buildDag
buildDag generates the raw commit DAG and the commit hash map.
internal/core/forks.go:232
← previous
next →
201–300 of 1,629, ranked by callers