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
↓ 2 callers
Function
calcLinePositions
(text string)
internal/plumbing/renames.go:512
↓ 2 callers
Function
compareContentsFull
(t *testing.T, o *oracle, tree *RBTree)
internal/rbtree/rbtree_test.go:287
↓ 2 callers
Function
countNodesInInterval
(occupiedMap [][]nodes.Node, start, end int)
internal/plumbing/uast/diff_refiner.go:187
↓ 2 callers
Method
currentFiles
currentFiles return the list of files in the last consumed commit.
leaves/couples.go:559
↓ 2 callers
Method
doDelete
Delete N from the tree.
internal/rbtree/rbtree.go:829
↓ 2 callers
Function
doNext
Return the minimum node that's larger than N. Return nil if no such node is found.
internal/rbtree/rbtree.go:644
↓ 2 callers
Function
doPrev
Return the maximum node that's smaller than N. Return nil if no such node is found.
internal/rbtree/rbtree.go:668
↓ 2 callers
Function
dropPositions
(root nodes.Node, target string)
leaves/research/typos_test.go:169
↓ 2 callers
Function
editInfosToEdits
(eis []editInfo)
contrib/_plugin_example/churn_analysis.go:235
↓ 2 callers
Function
editsToEditsMessage
(edits Edits)
contrib/_plugin_example/churn_analysis.go:281
↓ 2 callers
Function
embeddings_with_init
Creates and initializes the embedding tensors.
python/labours/_vendor/swivel.py:114
↓ 2 callers
Method
filter
(root nodes.Node, origin plumbing.Hash)
internal/plumbing/uast/changes_xpather.go:51
↓ 2 callers
Function
fixtureCommits
()
leaves/commits_test.go:192
↓ 2 callers
Function
fixtureTyposDataset
()
leaves/research/typos_test.go:212
↓ 2 callers
Function
floor_datetime
(dt: datetime, duration: float)
python/labours/utils.py:11
↓ 2 callers
Function
getCommitParents
getCommitParents returns the list of *unique* commit parents. Yes, it *is* possible to have several identical parents, and Hercules used to crash beca
internal/core/forks.go:214
↓ 2 callers
Method
get_ownership_burndown
(self)
python/labours/readers.py:39
↓ 2 callers
Method
get_people_coocc
(self)
python/labours/readers.py:48
↓ 2 callers
Method
get_people_interaction
(self)
python/labours/readers.py:42
↓ 2 callers
Method
handleDeletion
( change *object.Change, author int, cache map[plumbing.Hash]*items.CachedBlob)
leaves/burndown.go:1262
↓ 2 callers
Method
handleRename
(from, to string)
leaves/burndown.go:1437
↓ 2 callers
Method
hash
(nodesToHash []nodes.Node)
internal/plumbing/uast/changes_xpather.go:67
↓ 2 callers
Function
hdbscan_cluster_routed_series
( dists: numpy.ndarray, route: List[int] )
python/labours/modes/devs.py:220
↓ 2 callers
Function
index
(s []string, v string)
internal/toposort/toposort_test.go:8
↓ 2 callers
Function
insertHibernateBoot
(plan []runAction, hibernationDistance int)
internal/core/forks.go:738
↓ 2 callers
Function
leaveRootComponent
leaveRootComponent runs connected components analysis and throws away everything but the part which grows from the root.
internal/core/forks.go:261
↓ 2 callers
Function
load_burndown
( header: Tuple[int, int, int, int, float], name: str, matrix: numpy.ndarray, resample: str,
python/labours/modes/burndown.py:298
↓ 2 callers
Function
load_overwrites_matrix
(people, matrix, max_people, normalize=True)
python/labours/modes/overwrites.py:9
↓ 2 callers
Method
logStacktraceToErr
logStacktraceToErr prints a stacktrace to the logger's error output. It skips 4 levels that aren't meaningful to a logged stacktrace: * debug.Stack()
internal/core/logger.go:79
↓ 2 callers
Function
matchlen
(a, b []byte)
internal/plumbing/bsdiff.go:176
↓ 2 callers
Function
maxPredecessor
Return the predecessor of "n".
internal/rbtree/rbtree.go:687
↓ 2 callers
Function
mergeDag
mergeDag turns sequences of consecutive commits into single nodes.
internal/core/forks.go:376
↓ 2 callers
Method
onNewTick
()
leaves/burndown.go:1136
↓ 2 callers
Function
order_commits
( chosen_people: Set[str], days: Dict[int, Dict[int, DevDay]], people: List[str] )
python/labours/modes/devs.py:160
↓ 2 callers
Function
plot_burndown
( args: Namespace, target: str, name: str, matrix: numpy.ndarray, date_range_sampling: 'Da
python/labours/modes/burndown.py:21
↓ 2 callers
Function
plot_many_burndown
(args: Namespace, target: str, header, parts)
python/labours/modes/burndown.py:113
↓ 2 callers
Function
printAction
printAction prints the specified action to stderr.
internal/core/forks.go:192
↓ 2 callers
Function
printEdits
(edits Edits, writer io.Writer, indent int)
contrib/_plugin_example/churn_analysis.go:264
↓ 2 callers
Method
propagateRenames
propagateRenames applies `renames` over the files from `lastCommit`.
leaves/couples.go:576
↓ 2 callers
Function
read_marginals_file
Reads text file with one number per line to an array.
python/labours/_vendor/swivel.py:162
↓ 2 callers
Method
replaceNode
(oldn, newn uint32)
internal/rbtree/rbtree.go:997
↓ 2 callers
Function
reverseNodeMap
(nodes map[string]uast_nodes.Node)
leaves/shotness.go:483
↓ 2 callers
Function
sortedKeys
(m map[string]DenseHistory)
leaves/burndown.go:1095
↓ 2 callers
Method
start
(self)
python/labours/cors_web_server.py:26
↓ 2 callers
Function
strToLiteralRunes
(s string)
internal/plumbing/renames.go:530
↓ 2 callers
Function
stripWhitespace
(str string, ignoreWhitespace bool)
internal/plumbing/diff.go:123
↓ 2 callers
Method
unsafeRemoveEdge
(from, to string)
internal/toposort/toposort.go:94
↓ 2 callers
Method
validate
()
leaves/comment_sentiment.go:133
↓ 2 callers
Function
write_embedding_tensor_to_disk
Writes tensor to output_path as tsv
python/labours/_vendor/swivel.py:168
↓ 1 callers
Method
Allocator
Allocator returns the bound nodes allocator.
internal/rbtree/rbtree.go:317
↓ 1 callers
Method
Configure
Configure sets the properties previously published by ListConfigurationOptions().
leaves/devs.go:101
↓ 1 callers
Method
Configure
Configure sets the properties previously published by ListConfigurationOptions().
internal/plumbing/line_stats.go:62
↓ 1 callers
Method
Configure
Configure sets the properties previously published by ListConfigurationOptions().
internal/plumbing/ticks.go:75
↓ 1 callers
Method
Configure
Configure sets the properties previously published by ListConfigurationOptions().
internal/plumbing/tree_diff.go:125
↓ 1 callers
Method
Configure
Configure sets the properties previously published by ListConfigurationOptions().
internal/plumbing/uast/uast.go:396
↓ 1 callers
Method
Configure
Configure sets the properties previously published by ListConfigurationOptions().
internal/plumbing/identity/identity.go:100
↓ 1 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/blob_cache.go:161
↓ 1 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/diff.go:136
↓ 1 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/languages.go:71
↓ 1 callers
Method
Copy
Copy produces a deep clone of the object.
internal/core/pipeline.go:191
↓ 1 callers
Method
Delete
(key int)
internal/rbtree/rbtree_test.go:188
↓ 1 callers
Function
DenseToCompressedSparseRowMatrix
DenseToCompressedSparseRowMatrix takes an integer matrix and converts it to a Protobuf CSR. CSR format: https://en.wikipedia.org/wiki/Sparse_matrix#Co
internal/pb/utils.go:46
↓ 1 callers
Method
Deserialize
Deserialize converts the specified protobuf bytes to BurndownResult.
leaves/burndown.go:596
↓ 1 callers
Method
Deserialize
Deserialize converts the specified protobuf bytes to CouplesResult.
leaves/couples.go:291
↓ 1 callers
Function
DiffBytes
DiffBytes calculates the approximated number of different bytes between two binary buffers. We are not interested in the diff script itself. Instead,
internal/plumbing/bsdiff.go:204
↓ 1 callers
Method
Features
Features returns the Hercules features required to deploy this leaf.
leaves/shotness.go:123
↓ 1 callers
Method
FindGE
FindGE finds the smallest element N such that N >= Key, and returns the iterator pointing to the element. If no such element is found, returns tree.Li
internal/rbtree/rbtree.go:416
↓ 1 callers
Method
FindLE
FindLE finds the largest element N such that N <= Key, and returns the iterator pointing to the element. If no such element is found, returns iter.Neg
internal/rbtree/rbtree.go:424
↓ 1 callers
Method
Flag
Flag for the command line switch which enables this analysis.
leaves/burndown.go:304
↓ 1 callers
Method
Flag
Flag returns the command line switch which activates the analysis.
leaves/comment_sentiment.go:106
↓ 1 callers
Method
Flag
Flag for the command line switch which enables this analysis.
leaves/commits.go:91
↓ 1 callers
Method
Flag
Flag for the command line switch which enables this analysis.
leaves/research/typos.go:114
↓ 1 callers
Function
FloorTime
FloorTime is the missing implementation of time.Time.Floor() - round to the nearest less than or equal.
internal/plumbing/ticks.go:167
↓ 1 callers
Method
Fork
(n int)
internal/core/forks_test.go:55
↓ 1 callers
Method
Fork
Fork clones this PipelineItem.
internal/plumbing/line_stats.go:159
↓ 1 callers
Method
GetIdentities
GetIdentities returns the list of developer identities used to generate this burndown analysis result. The format is |-joined keys, see internals/plum
leaves/burndown.go:1551
↓ 1 callers
Method
GetIdentities
GetIdentities returns the list of developer identities used to generate this devs analysis result. The format is |-joined keys, see internals/plumbing
leaves/devs.go:438
↓ 1 callers
Method
GetTickSize
GetTickSize returns the tick size used to generate this burndown analysis result.
leaves/burndown.go:1545
↓ 1 callers
Method
GetTickSize
GetTickSize returns the tick size used to generate this devs analysis result.
leaves/devs.go:432
↓ 1 callers
Method
Info
(...interface{})
internal/core/logger.go:15
↓ 1 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/devs.go:129
↓ 1 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/couples.go:126
↓ 1 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/imports_printer.go:100
↓ 1 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/comment_sentiment.go:148
↓ 1 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/file_history.go:90
↓ 1 callers
Method
Initialize
(repository *git.Repository)
internal/core/forks_test.go:46
↓ 1 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/ticks.go:94
↓ 1 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/languages.go:61
↓ 1 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/tree_diff.go:150
↓ 1 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/imports/extractor.go:105
↓ 1 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/diff_refiner.go:64
↓ 1 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:536
↓ 1 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/identity/identity.go:140
↓ 1 callers
Method
Len
Len returns the number of elements in the tree.
internal/rbtree/rbtree.go:322
↓ 1 callers
Method
ListConfigurationOptions
ListConfigurationOptions returns the list of changeable public properties of this PipelineItem.
leaves/burndown.go:209
↓ 1 callers
Method
ListConfigurationOptions
ListConfigurationOptions returns the list of changeable public properties of this PipelineItem.
leaves/comment_sentiment.go:88
↓ 1 callers
Method
ListConfigurationOptions
ListConfigurationOptions returns the list of changeable public properties of this PipelineItem.
leaves/commits.go:75
↓ 1 callers
Method
ListConfigurationOptions
ListConfigurationOptions returns the list of changeable public properties of this PipelineItem.
leaves/research/typos.go:90
↓ 1 callers
Method
ListConfigurationOptions
ListConfigurationOptions returns the list of changeable public properties of this PipelineItem.
internal/plumbing/line_stats.go:57
↓ 1 callers
Method
ListConfigurationOptions
ListConfigurationOptions returns the list of changeable public properties of this PipelineItem.
internal/plumbing/languages.go:47
← previous
next →
301–400 of 1,629, ranked by callers