_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c29300 | train | // Next returns the next non-filtered result from the wrapped iterator | {
"resource": ""
} | ||
c29301 | train | // render prints the template to stdout. | {
"resource": ""
} | ||
c29302 | train | // Validate validates the schema. | {
"resource": ""
} | ||
c29303 | train | // Validate is used to validate the table schema | {
"resource": ""
} | ||
c29304 | train | // NewMemDB creates a new MemDB with the given schema | {
"resource": ""
} | ||
c29305 | train | // getRoot is used to do an atomic load of the root pointer | {
"resource": ""
} | ||
c29306 | train | // Txn is used to start a new transaction, in either read or write mode.
// There can only be a single concurrent writer, but any number of readers. | {
"resource": ""
} | ||
c29307 | train | // Snapshot is used to capture a point-in-time snapshot
// of the database that will not be affected by any write
// operations to the existing DB. | {
"resource": ""
} | ||
c29308 | train | // initialize is used to setup the DB for use after creation. This should
// be called only once after allocating a MemDB. | {
"resource": ""
} | ||
c29309 | train | // IsIntType returns whether the passed type is a type of int and the number
// of bytes needed to encode the type. | {
"resource": ""
} | ||
c29310 | train | // IsUintType returns whether the passed type is a type of uint and the number
// of bytes needed to encode the type. | {
"resource": ""
} | ||
c29311 | train | // parseString parses a UUID from the string. If enforceLength is false, it will
// parse a partial UUID. An error is returned if the input, stripped of hyphens,
// is not even length. | {
"resource": ""
} | ||
c29312 | train | // fromBoolArgs is a helper that expects only a single boolean argument and
// returns a single length byte array containing either a one or zero depending
// on whether the passed input is true or false respectively. | {
"resource": ""
} | ||
c29313 | train | // watchFew is used if there are only a few watchers as a performance
// optimization. | {
"resource": ""
} | ||
c29314 | train | // Add appends a watchCh to the WatchSet if non-nil. | {
"resource": ""
} | ||
c29315 | train | // Watch is used to wait for either the watch set to trigger or a timeout.
// Returns true on timeout. | {
"resource": ""
} | ||
c29316 | train | // WatchCtx is used to wait for either the watch set to trigger or for the
// context to be cancelled. Watch with a timeout channel can be mimicked by
// creating a context with a deadline. WatchCtx should be preferred over Watch. | {
"resource": ""
} | ||
c29317 | train | // watchMany is used if there are many watchers. | {
"resource": ""
} | ||
c29318 | train | // and returns the query q AND r, possibly reusing q's and r's storage. | {
"resource": ""
} | ||
c29319 | train | // or returns the query q OR r, possibly reusing q's and r's storage. | {
"resource": ""
} | ||
c29320 | train | // implies reports whether q implies r.
// It is okay for it to return false negatives. | {
"resource": ""
} | ||
c29321 | train | // maybeRewrite rewrites q to use op if it is possible to do so
// without changing the meaning. It also simplifies if the node
// is an empty OR or AND. | {
"resource": ""
} | ||
c29322 | train | // andTrigrams returns q AND the OR of the AND of the trigrams present in each string. | {
"resource": ""
} | ||
c29323 | train | // RegexpQuery returns a Query for the given regexp. | {
"resource": ""
} | ||
c29324 | train | // anyMatch returns the regexpInfo describing a regexp that
// matches any string. | {
"resource": ""
} | ||
c29325 | train | // fold is the usual higher-order function. | {
"resource": ""
} | ||
c29326 | train | // concat returns the regexp info for xy given x and y. | {
"resource": ""
} | ||
c29327 | train | // alternate returns the regexpInfo for x|y given x and y. | {
"resource": ""
} | ||
c29328 | train | // addExact adds to the match query the trigrams for matching info.exact. | {
"resource": ""
} | ||
c29329 | train | // simplify simplifies the regexpInfo when the exact set gets too large. | {
"resource": ""
} | ||
c29330 | train | // contains reports whether s contains str. | {
"resource": ""
} | ||
c29331 | train | // clean removes duplicates from the stringSet. | {
"resource": ""
} | ||
c29332 | train | // minLen returns the length of the shortest string in s. | {
"resource": ""
} | ||
c29333 | train | // maxLen returns the length of the longest string in s. | {
"resource": ""
} | ||
c29334 | train | // union returns the union of s and t, reusing s's storage. | {
"resource": ""
} | ||
c29335 | train | // cross returns the cross product of s and t. | {
"resource": ""
} | ||
c29336 | train | // isSubsetOf returns true if all strings in s are also in t.
// It assumes both sets are sorted. | {
"resource": ""
} | ||
c29337 | train | // appendRange returns the result of appending the range lo-hi to the class r. | {
"resource": ""
} | ||
c29338 | train | // appendFoldedRange returns the result of appending the range lo-hi
// and its case folding-equivalent runes to the class r. | {
"resource": ""
} | ||
c29339 | train | // Compile parses a regular expression and returns, if successful,
// a Regexp object that can be used to match against lines of text. | {
"resource": ""
} | ||
c29340 | train | // Add adds x to the set if it is not already there. | {
"resource": ""
} | ||
c29341 | train | // Has reports whether x is in the set. | {
"resource": ""
} | ||
c29342 | train | // stepEmpty steps runq to nextq expanding according to flag. | {
"resource": ""
} | ||
c29343 | train | // stepByte steps runq to nextq consuming c and then expanding according to flag.
// It returns true if a match ends immediately before c.
// c is either an input byte or endText. | {
"resource": ""
} | ||
c29344 | train | // addq adds id to the queue, expanding according to flag. | {
"resource": ""
} | ||
c29345 | train | // slice returns the slice of index data starting at the given byte offset.
// If n >= 0, the slice must have length at least n and is truncated to length n. | {
"resource": ""
} | ||
c29346 | train | // uint32 returns the uint32 value at the given offset in the index data. | {
"resource": ""
} | ||
c29347 | train | // uvarint returns the varint value at the given offset in the index data. | {
"resource": ""
} | ||
c29348 | train | // Paths returns the list of indexed paths. | {
"resource": ""
} | ||
c29349 | train | // NameBytes returns the name corresponding to the given fileid. | {
"resource": ""
} | ||
c29350 | train | // Name returns the name corresponding to the given fileid. | {
"resource": ""
} | ||
c29351 | train | // listAt returns the index list entry at the given offset. | {
"resource": ""
} | ||
c29352 | train | // mmap maps the given file into memory. | {
"resource": ""
} | ||
c29353 | train | // Create returns a new IndexWriter that will write the index to file. | {
"resource": ""
} | ||
c29354 | train | // AddPaths adds the given paths to the index's list of paths. | {
"resource": ""
} | ||
c29355 | train | // Add adds the file f to the index under the given name.
// It logs errors using package log. | {
"resource": ""
} | ||
c29356 | train | // Flush flushes the index entry to the target file. | {
"resource": ""
} | ||
c29357 | train | // addName adds the file with the given name to the index.
// It returns the assigned file ID number. | {
"resource": ""
} | ||
c29358 | train | // flushPost writes ix.post to a new temporary file and
// clears the slice. | {
"resource": ""
} | ||
c29359 | train | // mergePost reads the flushed index entries and merges them
// into posting lists, writing the resulting lists to out. | {
"resource": ""
} | ||
c29360 | train | // step reads the next entry from ch and saves it in ch.e.
// It returns false if ch is over. | {
"resource": ""
} | ||
c29361 | train | // add adds the chunk to the postHeap.
// All adds must be called before the first call to next. | {
"resource": ""
} | ||
c29362 | train | // next returns the next entry from the postHeap.
// It returns a postEntry with trigram == 1<<24 - 1 if h is empty. | {
"resource": ""
} | ||
c29363 | train | // bufCreate creates a new file with the given name and returns a
// corresponding bufWriter. If name is empty, bufCreate uses a
// temporary file. | {
"resource": ""
} | ||
c29364 | train | // offset returns the current write offset. | {
"resource": ""
} | ||
c29365 | train | // finish flushes the file to disk and returns an open file ready for reading. | {
"resource": ""
} | ||
c29366 | train | // validUTF8 reports whether the byte pair can appear in a
// valid sequence of UTF-8-encoded code points. | {
"resource": ""
} | ||
c29367 | train | // NewCCPolicyProvider creates new chaincode policy data provider | {
"resource": ""
} | ||
c29368 | train | // NewMockIdentity creates new mock identity | {
"resource": ""
} | ||
c29369 | train | // Validate returns nil if this instance is a valid identity or an error otherwise | {
"resource": ""
} | ||
c29370 | train | // NewStreamConnection creates a new connection with stream | {
"resource": ""
} | ||
c29371 | train | // CreateConfigSignature creates a ConfigSignature for the current context | {
"resource": ""
} | ||
c29372 | train | // ExtractChannelConfig extracts the protobuf 'ConfigUpdate' object out of the 'ConfigEnvelope'. | {
"resource": ""
} | ||
c29373 | train | // CreateConfigEnvelope creates configuration envelope proto | {
"resource": ""
} | ||
c29374 | train | // GetLastConfigFromBlock returns the LastConfig data from the given block | {
"resource": ""
} | ||
c29375 | train | //ConfigFromBackend returns CryptoSuite config implementation for given backend | {
"resource": ""
} | ||
c29376 | train | // IsSecurityEnabled config used enable and disable security in cryptosuite | {
"resource": ""
} | ||
c29377 | train | // SecurityAlgorithm returns cryptoSuite config hash algorithm | {
"resource": ""
} | ||
c29378 | train | // SecurityLevel returns cryptSuite config security level | {
"resource": ""
} | ||
c29379 | train | //SecurityProvider provider SW or PKCS11 | {
"resource": ""
} | ||
c29380 | train | //SecurityProviderLibPath will be set only if provider is PKCS11 | {
"resource": ""
} | ||
c29381 | train | // KeyStorePath returns the keystore path used by BCCSP | {
"resource": ""
} | ||
c29382 | train | // NewDiscoveryFilterService return discovery service with filter | {
"resource": ""
} | ||
c29383 | train | // GetPeers is used to get peers | {
"resource": ""
} | ||
c29384 | train | // filterTargets is helper method to filter peers | {
"resource": ""
} | ||
c29385 | train | // NewMockChannelProvider returns a mock ChannelProvider | {
"resource": ""
} | ||
c29386 | train | // ChannelService returns a mock ChannelService | {
"resource": ""
} | ||
c29387 | train | // EventService returns a mock event service | {
"resource": ""
} | ||
c29388 | train | // Transactor returns a mock transactor | {
"resource": ""
} | ||
c29389 | train | // Membership returns member identification | {
"resource": ""
} | ||
c29390 | train | //ChannelConfig returns channel config | {
"resource": ""
} | ||
c29391 | train | // NewMockConnection returns a new MockConnection using the given options | {
"resource": ""
} | ||
c29392 | train | // Close implements the MockConnection interface | {
"resource": ""
} | ||
c29393 | train | // Result returns the result for the given operation | {
"resource": ""
} | ||
c29394 | train | // Connection returns the connection | {
"resource": ""
} | ||
c29395 | train | // Provider returns a connection provider that always returns the given connection | {
"resource": ""
} | ||
c29396 | train | // FlakeyProvider creates a connection provider that returns a connection according to the given
// connection attempt results. The results tell the connection provider whether or not to fail,
// to return a connection, what authorization to give the connection, etc. | {
"resource": ""
} | ||
c29397 | train | // NewConnectResult returns a new ConnectResult | {
"resource": ""
} | ||
c29398 | train | // NewConnectResults returns a new ConnectAttemptResults | {
"resource": ""
} | ||
c29399 | train | // NewResult returns a new OperationResult | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.