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