MCPcopy Index your code

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

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

↓ 7 callersFunctionNewRBTree
NewRBTree creates a new red-black binary tree.
internal/rbtree/rbtree.go:308
↓ 7 callersFunctionfixtureTicksSinceStart
(config ...map[string]interface{})
internal/plumbing/ticks_test.go:15
↓ 7 callersFunctiongetCouplesMap
(vals ...int)
leaves/couples_test.go:591
↓ 7 callersFunctiongetRegistry
()
internal/core/registry_test.go:15
↓ 7 callersMethodget_header
(self)
python/labours/readers.py:24
↓ 7 callersMethodget_name
(self)
python/labours/readers.py:21
↓ 7 callersFunctionloadRepository
(uri string, cachePath string, disableStatus bool, sshIdentity string)
cmd/hercules/root.go:70
↓ 7 callersMethodread
(self, fileobj: BinaryIO)
python/labours/readers.py:18
↓ 7 callersFunctiontestNewIntSet
Create a tree storing a set of integers
internal/rbtree/rbtree_test.go:15
↓ 7 callersFunctionupdateStatusFile
(status map[int]int64, _, previousTime, delta int)
internal/burndown/file_test.go:12
↓ 6 callersMethodAddNode
AddNode inserts a new node into the graph.
internal/toposort/toposort.go:45
↓ 6 callersMethodConsume
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/line_stats.go:81
↓ 6 callersMethodDeployItem
DeployItem inserts a PipelineItem into the pipeline. It also recursively creates all of it's dependencies (PipelineItem.Requires()). Returns the same
internal/core/pipeline.go:381
↓ 6 callersMethodDeserialize
Deserialize reads a hibernated allocator from disk.
internal/rbtree/rbtree.go:209
↓ 6 callersMethodHibernate
Hibernate compresses the allocated memory.
internal/rbtree/rbtree.go:73
↓ 6 callersMethodLen
()
internal/rbtree/rbtree_test.go:131
↓ 6 callersFunctionMergeReversedDictsIdentities
MergeReversedDictsIdentities joins two identity lists together, excluding duplicates. The strings are split by "|" and we find the connected component
internal/plumbing/identity/identity.go:361
↓ 6 callersMethodShouldConsumeCommit
ShouldConsumeCommit returns true on regular commits. It also returns true upon the first occurrence of a particular merge commit.
internal/core/forks.go:27
↓ 6 callersMethodString
()
cmd/hercules/root.go:127
↓ 6 callersMethodpackPersonWithTick
We do a hack and store the tick in the first 14 bits and the author index in the last 18. Strictly speaking, int can be 64-bit and then the author ind
leaves/burndown.go:1114
↓ 6 callersFunctionparse_date
(text: None, default: 'Timestamp')
python/labours/utils.py:23
↓ 6 callersFunctionroundTime
(t time.Time, d time.Duration, dir bool)
leaves/burndown.go:760
↓ 5 callersMethodBoot
Boot performs the opposite of Hibernate() - decompresses and restores the allocated memory.
internal/rbtree/rbtree.go:129
↓ 5 callersMethodConfigure
Configure sets the properties previously published by ListConfigurationOptions().
leaves/burndown.go:259
↓ 5 callersMethodDispose
Dispose frees any previously allocated unmanaged resources. No Consume() calls are possible afterwards. The item needs to be Initialize()-d again. Thi
internal/core/pipeline.go:139
↓ 5 callersMethodDistance
Distance calculates the Levenshtein distance between two strings which is defined as the minimum number of edits needed to transform one string into t
internal/levenshtein/levenshtein.go:29
↓ 5 callersFunctionForkCopyPipelineItem
ForkCopyPipelineItem clones items by copying them by value from the origin.
internal/core/forks.go:58
↓ 5 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
internal/plumbing/renames.go:129
↓ 5 callersFunctionLoadCommitsFromFile
LoadCommitsFromFile reads the file by the specified FS path and generates the sequence of commits by interpreting each line as a Git commit hash.
internal/core/pipeline.go:930
↓ 5 callersFunctionMax64
Max64 calculates the maximum of two 64-bit integers.
internal/math.go:31
↓ 5 callersMethodMergeResults
MergeResults combines two BurndownResult-s together.
leaves/burndown.go:648
↓ 5 callersMethodNext
()
internal/rbtree/rbtree_test.go:229
↓ 5 callersMethodPrev
()
internal/rbtree/rbtree_test.go:233
↓ 5 callersMethodRemoveEdge
RemoveEdge deletes the link from "from" node to "to" node. Call ReindexNode(from) after you finish modifying the edges.
internal/toposort/toposort.go:101
↓ 5 callersMethod_parse_burndown_matrix
(self, matrix)
python/labours/readers.py:198
↓ 5 callersFunctionapply_plot_style
(figure, axes, legend, background, font_size, axes_size)
python/labours/plotting.py:17
↓ 5 callersMethodcheckLanguage
checkLanguage returns whether the blob corresponds to the list of required languages.
internal/plumbing/tree_diff.go:266
↓ 5 callersFunctionfixtureCommentSentiment
()
leaves/comment_sentiment_test.go:27
↓ 5 callersFunctionfixtureImportsPerDev
()
leaves/imports_printer_test.go:18
↓ 5 callersFunctionfixtureUASTChangesSaver
()
internal/plumbing/uast/uast_test.go:365
↓ 5 callersMethodget_devs
(self)
python/labours/readers.py:60
↓ 5 callersFunctionloadUast
(t *testing.T, name string)
leaves/shotness_test.go:78
↓ 5 callersFunctionloadUast
(t *testing.T, name string)
internal/plumbing/uast/diff_refiner_test.go:60
↓ 5 callersMethodrotateLeft
* X Y A Y => X C B C A B */
internal/rbtree/rbtree.go:1018
↓ 5 callersMethodrotateRight
* Y X X C => A Y A B B C */
internal/rbtree/rbtree.go:1044
↓ 5 callersMethodserializeBinary
(result *BurndownResult, writer io.Writer)
leaves/burndown.go:1050
↓ 4 callersMethodBoot
Boot signals that the item is needed again and must be de-hibernate-d.
internal/core/pipeline.go:173
↓ 4 callersMethodCommits
Commits returns the list of commits from the history similar to `git log` over the HEAD. `firstParent` specifies whether to leave only the first paren
internal/core/pipeline.go:450
↓ 4 callersMethodConfigure
Configure sets the properties previously published by ListConfigurationOptions().
leaves/shotness.go:136
↓ 4 callersMethodConfigure
Configure sets the properties previously published by ListConfigurationOptions().
leaves/comment_sentiment.go:118
↓ 4 callersMethodCopy
Copy clones the graph and returns the independent copy.
internal/toposort/toposort.go:29
↓ 4 callersMethodDeserialize
Deserialize loads the result from Protocol Buffers blob.
internal/core/pipeline.go:161
↓ 4 callersMethodExtract
Extract returns the list of (inserted, removed) UAST nodes filtered by XPath.
internal/plumbing/uast/changes_xpather.go:26
↓ 4 callersMethodFormatDefault
FormatDefault converts the default value of ConfigurationOption to string. Used in the command line interface to show the argument's default value.
internal/core/pipeline.go:80
↓ 4 callersMethodGeneratePeopleDict
GeneratePeopleDict loads author signatures from the specified list of Git commits.
internal/plumbing/identity/identity.go:202
↓ 4 callersMethodGet
Get is a convenience function for finding an element equal to Key. Returns nil if not found.
internal/rbtree/rbtree.go:379
↓ 4 callersMethodHibernate
Hibernate signals that the item is temporarily not needed and it's memory can be optimized.
internal/core/pipeline.go:171
↓ 4 callersMethodLoadPeopleDict
LoadPeopleDict loads author signatures from a text file. The format is one signature per line, and the signature consists of several keys separated by
internal/plumbing/identity/identity.go:177
↓ 4 callersFunctionMax
Max calculates the maximum of two 32-bit integers.
internal/math.go:23
↓ 4 callersMethodMax
Max creates an iterator that points at the maximum item in the tree. If the tree is empty, returns NegativeLimit().
internal/rbtree/rbtree.go:396
↓ 4 callersMethodMergeResults
MergeResults joins two results together. Common-s are specified as the global state.
internal/core/pipeline.go:163
↓ 4 callersFunctionNewFile
NewFile initializes a new instance of File struct. time is the starting value of the first node; length is the starting length of the tree (the key
internal/burndown/file.go:65
↓ 4 callersFunctionPathifyFlagValue
PathifyFlagValue changes the type of a string command line argument to "path".
internal/core/registry.go:171
↓ 4 callersFunctionPrintMatrix
PrintMatrix outputs a rectangular integer matrix in YAML text format. `indent` is the current YAML indentation level - the number of spaces. `name` i
internal/yaml/utils.go:22
↓ 4 callersMethodRequires
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/burndown.go:202
↓ 4 callersMethodRequires
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/line_stats.go:52
↓ 4 callersMethodSerialize
Serialize converts the analysis result as returned by Finalize() to text or bytes. The text format is YAML and the bytes format is Protocol Buffers.
leaves/burndown.go:583
↓ 4 callersMethodSet
(val string)
internal/core/registry.go:156
↓ 4 callersMethodSetFeature
SetFeature sets the value of the feature with the specified name. See also: FeaturedPipelineItem.
internal/core/pipeline.go:358
↓ 4 callersMethodSetFeaturesFromFlags
SetFeaturesFromFlags enables the features which were specified through the command line flags which belong to the given PipelineItemRegistry instance.
internal/core/pipeline.go:365
↓ 4 callersMethodToposort
Toposort sorts the nodes in the graph in topological order.
internal/toposort/toposort.go:110
↓ 4 callersMethodWrite
(p []byte)
cmd/hercules/root.go:47
↓ 4 callersFunction_int64s
(xs)
python/labours/embeddings.py:69
↓ 4 callersFunctionbakeBurndownForSerialization
(t *testing.T, firstAuthor, secondAuthor int)
leaves/burndown_test.go:476
↓ 4 callersFunctionbakeShotness
(t *testing.T, eraseEndPosition bool)
leaves/shotness_test.go:91
↓ 4 callersFunctiondecay
(start_index: int, start_val: float)
python/labours/modes/burndown.py:189
↓ 4 callersMethoddetectLanguage
detectLanguage returns the programming language of a blob.
internal/plumbing/languages.go:103
↓ 4 callersMethodfindGE
Find a node whose item >= Key. The 2nd return Value is true iff the node.item==Key. Returns (nil, false) if all nodes in the tree are < Key.
internal/rbtree/rbtree.go:797
↓ 4 callersFunctionfixtureFileDiffRefiner
()
internal/plumbing/uast/diff_refiner_test.go:21
↓ 4 callersFunctionfixtureUASTExtractor
()
internal/plumbing/uast/uast_test.go:25
↓ 4 callersMethodfree
(n uint32)
internal/rbtree/rbtree.go:272
↓ 4 callersMethodget_burndown_parameters
(self)
python/labours/readers.py:27
↓ 4 callersFunctioniterToString
(i Iterator)
internal/rbtree/rbtree_test.go:81
↓ 4 callersMethodmergeMatrices
mergeMatrices takes two [number of samples][number of bands] matrices, resamples them to ticks so that they become square, sums and resamples back to
leaves/burndown.go:774
↓ 4 callersFunctionmin
(a, b, c int)
internal/levenshtein/levenshtein.go:70
↓ 4 callersFunctionnewNodeWithType
(name string)
internal/plumbing/uast/uast_test.go:267
↓ 4 callersFunctionprepareRunPlan
prepareRunPlan schedules the actions for Pipeline.Run().
internal/core/forks.go:162
↓ 4 callersFunctionswap
(a []int, i, j int)
internal/plumbing/bsdiff.go:33
↓ 4 callersFunctiontrain_embeddings
( index: List[str], matrix: csr_matrix, tmpdir: None, shard_size: int = IDEAL_SHARD_SIZE, )
python/labours/embeddings.py:15
↓ 4 callersMethodupdateTime
(currentTime, previousTime, delta int)
internal/burndown/file.go:41
↓ 4 callersFunctionwrite_embeddings
( name: str, output: str, run_server: bool, index: List[Tuple[str, numpy.int64]], embeddin
python/labours/embeddings.py:154
↓ 3 callersFunctionAbs64
Abs64 calculates the absolute value of a 64-bit integer.
internal/math.go:39
↓ 3 callersMethodAddFlags
AddFlags inserts the cmdline options from PipelineItem.ListConfigurationOptions(), FeaturedPipelineItem().Features() and LeafPipelineItem.Flag() into
internal/core/registry.go:204
↓ 3 callersFunctionAddHash
(t *testing.T, cache map[plumbing.Hash]*items.CachedBlob, hash string)
leaves/research/typos_test.go:70
↓ 3 callersMethodCloneDeep
CloneDeep copies the file. It performs a deep copy of the tree.
internal/burndown/file.go:115
↓ 3 callersMethodCloneShallow
CloneShallow copies the file. It performs a shallow copy of the tree: the allocator must be Clone()-d beforehand.
internal/burndown/file.go:110
↓ 3 callersMethodClose
()
leaves/burndown_test.go:798
↓ 3 callersMethodCollectAllDependencies
CollectAllDependencies recursively builds the list of all the items on which the specified item depends.
internal/core/registry.go:117
↓ 3 callersFunctionCompressUInt32Slice
CompressUInt32Slice compresses a slice of uint32-s with LZ4.
internal/rbtree/lz4.go:13
↓ 3 callersMethodConfigure
Configure sets the properties previously published by ListConfigurationOptions().
leaves/research/typos.go:103
← previousnext →101–200 of 1,629, ranked by callers