_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c20100 | train | // List collaborators on a team app. | {
"resource": ""
} | ||
c20101 | train | // Lists permissions available to teams. | {
"resource": ""
} | ||
c20102 | train | // Info for an existing team feature. | {
"resource": ""
} | ||
c20103 | train | // List existing team features. | {
"resource": ""
} | ||
c20104 | train | // Create Team Invitation | {
"resource": ""
} | ||
c20105 | train | // Revoke a team invitation. | {
"resource": ""
} | ||
c20106 | train | // Accept Team Invitation | {
"resource": ""
} | ||
c20107 | train | // Create a new team member, or update their role. | {
"resource": ""
} | ||
c20108 | train | // Create a new team member. | {
"resource": ""
} | ||
c20109 | train | // Update a team member. | {
"resource": ""
} | ||
c20110 | train | // Remove a member from the team. | {
"resource": ""
} | ||
c20111 | train | // List members of the team. | {
"resource": ""
} | ||
c20112 | train | // List the apps of a team member. | {
"resource": ""
} | ||
c20113 | train | // Retrieve Team Preferences | {
"resource": ""
} | ||
c20114 | train | // Update Team Preferences | {
"resource": ""
} | ||
c20115 | train | // Retrieve User Preferences | {
"resource": ""
} | ||
c20116 | train | // Update User Preferences | {
"resource": ""
} | ||
c20117 | train | // Create a new VPN connection in a private space. | {
"resource": ""
} | ||
c20118 | train | // Destroy existing VPN Connection | {
"resource": ""
} | ||
c20119 | train | // List VPN connections for a space. | {
"resource": ""
} | ||
c20120 | train | // Info for an existing vpn-connection. | {
"resource": ""
} | ||
c20121 | train | // List all whitelisted Add-on Services for an Organization | {
"resource": ""
} | ||
c20122 | train | // List all whitelisted Add-on Services for a Team | {
"resource": ""
} | ||
c20123 | train | // Forward CancelRequest to underlying Transport | {
"resource": ""
} | ||
c20124 | train | // NewContextManager returns a brand new ContextManager. It also registers the
// new ContextManager in the ContextManager registry which is used by the Go
// method. ContextManagers are typically defined globally at package scope. | {
"resource": ""
} | ||
c20125 | train | // Unregister removes a ContextManager from the global registry, used by the
// Go method. Only intended for use when you're completely done with a
// ContextManager. Use of Unregister at all is rare. | {
"resource": ""
} | ||
c20126 | train | // GetValue will return a previously set value, provided that the value was set
// by SetValues somewhere higher up the stack. If the value is not found, ok
// will be false. | {
"resource": ""
} | ||
c20127 | train | // Go preserves ContextManager values and Goroutine-local-storage across new
// goroutine invocations. The Go method makes a copy of all existing values on
// all registered context managers and makes sure they are still set after
// kicking off the provided function in a new goroutine. If you don't use this
// Go meth... | {
"resource": ""
} | ||
c20128 | train | // GenSym will return a brand new, never-before-used ContextKey | {
"resource": ""
} | ||
c20129 | train | // Will call cb with the current goroutine identifier. If one hasn't already
// been generated, one will be created and set first. The goroutine identifier
// might be invalid after cb returns. | {
"resource": ""
} | ||
c20130 | train | // handler is where the real magic of proxying happens.
// It is invoked like any gRPC server stream and uses the gRPC server framing to get and receive bytes from the wire,
// forwarding it to a ClientStream established against the relevant ClientConn. | {
"resource": ""
} | ||
c20131 | train | // AddRef increases the ref count on this footer | {
"resource": ""
} | ||
c20132 | train | // DecRef decreases the ref count on this footer | {
"resource": ""
} | ||
c20133 | train | // Length returns the length of this footer | {
"resource": ""
} | ||
c20134 | train | // Stats returns stats for this collection. | {
"resource": ""
} | ||
c20135 | train | // statsSegmentsLOCKED retrieves stats related to segments. | {
"resource": ""
} | ||
c20136 | train | // buildNewFooter will construct a new Footer for the store by combining
// the given storeFooter's segmentLocs with that of the incoming snapshot. | {
"resource": ""
} | ||
c20137 | train | // persistSegments will recursively write out all the segments of the
// current collection as well as any of its child collections. | {
"resource": ""
} | ||
c20138 | train | // removeFileOnClose will setup the callback to wipe out the file safely
// when all references to it are closed. | {
"resource": ""
} | ||
c20139 | train | // pageOffset returns the page offset for a given pos. | {
"resource": ""
} | ||
c20140 | train | // Stats returns a map of stats. | {
"resource": ""
} | ||
c20141 | train | // Histograms returns a snapshot of the histograms for this store. | {
"resource": ""
} | ||
c20142 | train | // Close synchronously stops background goroutines. | {
"resource": ""
} | ||
c20143 | train | // Snapshot returns a stable snapshot of the key-value entries. | {
"resource": ""
} | ||
c20144 | train | // newSnapshotLOCKED creates a new stable snapshot of the key-value
// entries. | {
"resource": ""
} | ||
c20145 | train | // Get retrieves a value by iterating over all the segments within
// the collection, if the key is not found a nil val is returned. | {
"resource": ""
} | ||
c20146 | train | // NewBatch returns a new Batch instance with hinted amount of
// resources expected to be required. | {
"resource": ""
} | ||
c20147 | train | // appendChildLLSnapshot recursively appends lower level child snapshots. | {
"resource": ""
} | ||
c20148 | train | // appendChildStacks recursively appends child segment stacks. | {
"resource": ""
} | ||
c20149 | train | // nextDelta advances the cursor position by 'delta' steps. | {
"resource": ""
} | ||
c20150 | train | // currentKey returns the array position and the key pointed to by the cursor. | {
"resource": ""
} | ||
c20151 | train | // Searches for the key within the in-memory index of the segment
// if available. Returns left and right positions between which
// the key likely exists. | {
"resource": ""
} | ||
c20152 | train | // FullMerge performs the full merge of a string append operation | {
"resource": ""
} | ||
c20153 | train | // PartialMerge performs the partial merge of a string append operation | {
"resource": ""
} | ||
c20154 | train | // OnAfterClose registers event callback func's that are invoked after the
// file is closed. | {
"resource": ""
} | ||
c20155 | train | // AddRef increases the ref-count on the file ref. | {
"resource": ""
} | ||
c20156 | train | // DecRef decreases the ref-count on the file ref, and closing the
// underlying file when the ref-count reaches zero. | {
"resource": ""
} | ||
c20157 | train | // FetchRefCount fetches the ref-count on the file ref. | {
"resource": ""
} | ||
c20158 | train | // ToOsFile provides the underlying os.File for a File, if available. | {
"resource": ""
} | ||
c20159 | train | // Adds a qualified entry to the index. Returns true if space
// still available, false otherwise. | {
"resource": ""
} | ||
c20160 | train | // Fetches the range of offsets between which the key exists,
// if present at all. The returned leftPos and rightPos can
// directly be used as the left and right extreme cursors
// while binary searching over the source segment. | {
"resource": ""
} | ||
c20161 | train | // AddTo adds the values from this SegmentStackStats to the dest
// SegmentStackStats. | {
"resource": ""
} | ||
c20162 | train | // Stats returns the stats for this segment stack. | {
"resource": ""
} | ||
c20163 | train | // ensureFullySorted recursively ensures that all child segmentStacks
// are sorted from 0 to end. | {
"resource": ""
} | ||
c20164 | train | // Get returns the key from the underlying snapshot. | {
"resource": ""
} | ||
c20165 | train | // StartIterator initiates a start iterator over the underlying snapshot. | {
"resource": ""
} | ||
c20166 | train | // AddRef increases the ref count on each SegmentLoc in this SegmentLocs | {
"resource": ""
} | ||
c20167 | train | // DecRef decreases the ref count on each SegmentLoc in this SegmentLocs | {
"resource": ""
} | ||
c20168 | train | // AddRef increases the ref count on this store | {
"resource": ""
} | ||
c20169 | train | // Close decreases the ref count on this store, and if the count is 0
// proceeds to actually close the store. | {
"resource": ""
} | ||
c20170 | train | // CloseEx provides more advanced closing options. | {
"resource": ""
} | ||
c20171 | train | // Creates an action func based on a callback, used for moving the curXxxx properties. | {
"resource": ""
} | ||
c20172 | train | // HandleRequest handles the HTTP request. | {
"resource": ""
} | ||
c20173 | train | // handleError is the error handler for handling any unhandled errors. | {
"resource": ""
} | ||
c20174 | train | // Patch adds a PATCH route to the router with the given route path and handlers. | {
"resource": ""
} | ||
c20175 | train | // URL creates a URL using the named route and the parameter values.
// The parameters should be given in the sequence of name1, value1, name2, value2, and so on.
// If a parameter in the route is not provided a value, the parameter token will remain in the resulting URL.
// Parameter values will be properly URL encode... | {
"resource": ""
} | ||
c20176 | train | // Serialize converts the given data into a byte array.
// If the data is neither a byte array nor a string, it will call fmt.Sprint to convert it into a string. | {
"resource": ""
} | ||
c20177 | train | // add registers the route, the specified HTTP method and the handlers to the router.
// The handlers will be combined with the handlers of the route group. | {
"resource": ""
} | ||
c20178 | train | // buildURLTemplate converts a route pattern into a URL template by removing regular expressions in parameter tokens. | {
"resource": ""
} | ||
c20179 | train | // ioctl system call manipulates the underlying device parameters of special files. | {
"resource": ""
} | ||
c20180 | train | // Notify sends desktop notification.
//
// On Web, in Firefox it just works, in Chrome you must call it from some "user gesture" like `onclick`,
// and you must use TLS certificate, it doesn't work with plain http. | {
"resource": ""
} | ||
c20181 | train | // Alert displays a desktop notification and plays a beep. | {
"resource": ""
} | ||
c20182 | train | // Notify sends desktop notification.
//
// On Linux it tries to send notification via D-Bus and it will fallback to `notify-send` binary. | {
"resource": ""
} | ||
c20183 | train | // Notify sends desktop notification. | {
"resource": ""
} | ||
c20184 | train | // LooksLikeIPv6 returns true if the IP looks like it's IPv6. This does not
// validate whether the string is a valid IP address. | {
"resource": ""
} | ||
c20185 | train | // NewHostname creates a new Hostname struct and automatically sets the IPv6
// field based on the IP you pass in. | {
"resource": ""
} | ||
c20186 | train | // MustHostname calls NewHostname but panics if there is an error parsing it. | {
"resource": ""
} | ||
c20187 | train | // Equal compares two Hostnames. Note that only the Domain and IP fields are
// compared because Enabled is transient state, and IPv6 should be set
// automatically based on IP. | {
"resource": ""
} | ||
c20188 | train | // EqualIP compares an IP against this Hostname. | {
"resource": ""
} | ||
c20189 | train | // AnyBool checks whether a boolean CLI flag is set either globally or on this
// individual command. This provides more flexible flag parsing behavior. | {
"resource": ""
} | ||
c20190 | train | // MaybeErrorln will print an error message unless -s is passed | {
"resource": ""
} | ||
c20191 | train | // MaybeError will print an error message unless -s is passed and then exit | {
"resource": ""
} | ||
c20192 | train | // MaybePrintln will print a message unless -q or -s is passed | {
"resource": ""
} | ||
c20193 | train | // MaybeLoadHostFile will try to load, parse, and return a Hostfile. If we
// encounter errors we will terminate, unless -f is passed. | {
"resource": ""
} | ||
c20194 | train | // AlwaysLoadHostFile will load, parse, and return a Hostfile. If we encouter
// errors they will be printed to the terminal, but we'll try to continue. | {
"resource": ""
} | ||
c20195 | train | // MaybeSaveHostFile will output or write the Hostfile, or exit 1 and error. | {
"resource": ""
} | ||
c20196 | train | // StrPadRight adds spaces to the right of a string until it reaches l length.
// If the input string is already that long, do nothing. | {
"resource": ""
} | ||
c20197 | train | // Has command indicates whether a hostname is present in the hosts file | {
"resource": ""
} | ||
c20198 | train | // Ls command shows a list of hostnames in the hosts file | {
"resource": ""
} | ||
c20199 | train | // Fix command removes duplicates and conflicts from the hosts file | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.