_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c171800
// equal returns true on if both call stacks are exactly equal.
c171801
// similar returns true if the two Stack are equal or almost but not quite // equal.
c171802
// merge merges two similar Stack, zapping out differences.
c171803
// less compares two Stack, where the ones that are less are more // important, so they come up front. // // A Stack with more private functions is 'less' so it is at the top. // Inversely, a Stack with only public functions is 'more' so it is at the // bottom.
c171804
// equal returns true only if both signatures are exactly equal.
c171805
// similar returns true if the two Signature are equal or almost but not quite // equal.
c171806
// merge merges two similar Signature, zapping out differences.
c171807
// less compares two Signature, where the ones that are less are more // important, so they come up front. A Signature with more private functions is // 'less' so it is at the top. Inversely, a Signature with only public // functions is 'more' so it is at the bottom.
c171808
// CreatedByString return a short context about the origin of this goroutine // signature.
c171809
// Private stuff. // nameArguments is a post-processing step where Args are 'named' with numbers.
c171810
// CalcLengths returns the maximum length of the source lines and package names.
c171811
// functionColor returns the color to be used for the function name based on // the type of package the function is in.
c171812
// routineColor returns the color for the header of the goroutines bucket.
c171813
// BucketHeader prints the header of a goroutine signature.
c171814
// callLine prints one stack line.
c171815
// StackLines prints one complete stack trace, without the header.
c171816
// augmentGoroutine processes source files to improve call to be more // descriptive. // // It modifies the routine.
c171817
// Private stuff. // load loads a source file and parses the AST tree. Failures are ignored.
c171818
// getFuncAST gets the callee site function AST representation for the code // inside the function f at line l.
c171819
// fieldToType returns the type name and whether if it's an ellipsis.
c171820
// extractArgumentsType returns the name of the type of each input argument.
c171821
// Reset resets the template t to new one defined by // template, startTag and endTag. // // Reset allows Template object re-use. // // Reset may be called only if no other goroutines call t methods at the moment.
c171822
// Unlock unlocks the mutex. // It is a run-time error if m is not locked on entry to Unlock. // // A locked Mutex is not associated with a particular goroutine. // It is allowed for one goroutine to lock a Mutex and then // arrange for another goroutine to unlock it.
c171823
// RUnlock undoes a single RLock call; // it does not affect other simultaneous readers. // It is a run-time error if rw is not locked for reading // on entry to RUnlock.
c171824
// Under lo.mu Locked.
c171825
// Reads souce file lines from disk if not cached already.
c171826
// Stacktraces for all goroutines.
c171827
// NewWithAlphabet returns a new UUIDv4, encoded with base57 using the // alternative alphabet abc.
c171828
// numToString converts a number a string using the given alpabet.
c171829
// stringToNum converts a string a number using the given alpabet.
c171830
// Remove duplicates and sort it to ensure reproducability.
c171831
// Index returns the index of the first instance of t in the alphabet, or an error if t is not present.
c171832
// dudupe removes duplicate characters from s.
c171833
// Is detects whether the error is equal to a given error. Errors // are considered equal by this function if they are the same object, // or if they both contain the same error inside an errors.Error.
c171834
// Error returns the underlying error's message.
c171835
// ErrorStack returns a string that contains both the // error message and the callstack.
c171836
// TextStyle styles the given string using the desired text style.
c171837
// NewPointsIndex creates new PointsIndex that maintains the points in each cell.
c171838
// NewExpiringPointsIndex creates new PointIndex that expires the points in each cell after expiration minutes.
c171839
// Get gets a point from the index given an id.
c171840
// GetAll get all Points from the index as a map from id to point
c171841
// Add adds a point to the index. If a point with the same Id already exists it gets replaced.
c171842
// Remove removes a point from the index.
c171843
// Range returns the points within the range defined by top left and bottom right.
c171844
// KNearest returns the k nearest points near point within maxDistance that match the accept criteria.
c171845
// PointsWithin returns all points with distance of point that match the accept criteria.
c171846
// Multi value counter.
c171847
// Average accumulating counter. Expect adding and removing CountPoints.
c171848
// Creates new geo index with resolution a function that returns a new entry that is stored in each cell.
c171849
// AddEntryAt adds an entry if missing, returns the entry at specific position.
c171850
// GetEntryAt gets an entry from the geoindex, if missing returns an empty entry without changing the index.
c171851
// Range returns the index entries within lat, lng range.
c171852
// NewClusteringIndex creates index that clusters the points at three levels with cell size 0.5, 5 and 500km. // Useful for creating maps.
c171853
// NewExpiringClusteringIndex creates index that clusters the points at three levels with cell size 0.5, 5 and 500km and // expires them after expiration minutes.
c171854
// Range returns points or count points depending on the size of the topLeft and bottomRight range.
c171855
// KNearest returns the K-Nearest points near point within maxDistance, that match the accept function.
c171856
// Push adds an element at the end of the queue.
c171857
// Pop removes an element from the front of the queue.
c171858
// Peek returns the element at the front of the queue.
c171859
// PeekBack returns the element at the back of the queue.
c171860
// ForEach calls process for each element in the queue.
c171861
// Clone creates a copy of the set where the values in clone set point to the same underlying reference as the original set
c171862
// NewCountIndex creates an index which counts the points in each cell.
c171863
// NewExpiringCountIndex creates an index, which maintains an expiring counter for each cell.
c171864
// Range returns the counters within some lat, lng range.
c171865
// KNearest just to satisfy an interface. Doesn't make much sense for count index.
c171866
// DirectionTo returns the direction from p1 to p2
c171867
// BearingTo returns the bearing from p1 to p2
c171868
// Calculates approximate distance between two points using euclidian distance. The assumption here // is that the points are relatively close to each other.
c171869
// newResult creates and returns a result.
c171870
// NewSource creates and returns source.
c171871
// newHelperMethodYield creates and returns a helper method yield.
c171872
// newHelperMethodDoctype creates and returns a helper method doctype.
c171873
// NewFile creates and returns a file.
c171874
// Load loads and returns an HTML template. Each Ace templates are parsed only once // and cached if the "DynamicReload" option are not set.
c171875
// getCache returns the cached template.
c171876
// setCache sets the template to the cache.
c171877
// FlushCache clears all cached templates.
c171878
// newPlainTextInner creates and returns a plain text.
c171879
// newEmpty creates and returns an empty element.
c171880
// helperMethodJavascript creates and returns a helper method javascript.
c171881
// ParseSource parses the source and returns the result.
c171882
// parseBytes parses the byte data and returns the elements.
c171883
// appendChildren parses the lines and appends the children to the element.
c171884
// newHTMLComment creates and returns an HTML comment.
c171885
// newHelperMethodInclude creates and returns a helper method include.
c171886
// newHelperMethodConditionalComment creates and returns an HTML comment.
c171887
// CompileResult compiles the parsed result to the template.Template.
c171888
// CompileResultWithTemplate compiles the parsed result and associates it with t.
c171889
// AppendChild appends the child element to the element.
c171890
// writeChildren writes the children's HTML.
c171891
// readFiles reads files and returns source for the parsing process.
c171892
// readFile reads a file and returns a file struct.
c171893
// findIncludes finds and adds include files.
c171894
// findIncludePaths finds and returns include paths.
c171895
// hasFile return if files has a file which has the path specified by the parameter.
c171896
// helperMethodCSS creates and returns a helper method css.
c171897
// newHelperMethodContent creates and returns a helper method content.
c171898
// setAttributes parses the tokens and set attributes to the element.
c171899
// noCloseTag returns true is the HTML tag has no close tag.