_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c179300
test
// isModeEnable returns the level has already turned on the logging
{ "resource": "" }
c179301
test
// CaptureMetrics wraps the given hnd, executes it with the given w and r, and // returns the metrics it captured from it.
{ "resource": "" }
c179302
test
// Get value by key, insert the key if not exist
{ "resource": "" }
c179303
test
// Save saves the cedar to an io.Writer, // where dataType is either "json" or "gob".
{ "resource": "" }
c179304
test
// SaveToFile saves the cedar to a file, // where dataType is either "json" or "gob".
{ "resource": "" }
c179305
test
// Load loads the cedar from an io.Writer, // where dataType is either "json" or "gob".
{ "resource": "" }
c179306
test
// LoadFromFile loads the cedar from a file, // where dataType is either "json" or "gob".
{ "resource": "" }
c179307
test
// Key returns the key of the node with the given `id`. // It will return ErrNoPath, if the node does not exist.
{ "resource": "" }
c179308
test
// Value returns the value of the node with the given `id`. // It will return ErrNoValue, if the node does not have a value.
{ "resource": "" }
c179309
test
// Delete removes a key-value pair from the cedar. // It will return ErrNoPath, if the key has not been added.
{ "resource": "" }
c179310
test
// Set parses and updates v from the given version string. Implements flag.Value
{ "resource": "" }
c179311
test
// Compare tests if v is less than, equal to, or greater than versionB, // returning -1, 0, or +1 respectively.
{ "resource": "" }
c179312
test
// Slice converts the comparable parts of the semver into a slice of integers.
{ "resource": "" }
c179313
test
// BumpMajor increments the Major field by 1 and resets all other fields to their default values
{ "resource": "" }
c179314
test
// BumpMinor increments the Minor field by 1 and resets all other fields to their default values
{ "resource": "" }
c179315
test
// BumpPatch increments the Patch field by 1 and resets all other fields to their default values
{ "resource": "" }
c179316
test
// validateIdentifier makes sure the provided identifier satisfies semver spec
{ "resource": "" }
c179317
test
// newStream returns a new stream
{ "resource": "" }
c179318
test
// addSubscriber will create a new subscriber on a stream
{ "resource": "" }
c179319
test
// New will create a server and setup defaults
{ "resource": "" }
c179320
test
// Close shuts down the server, closes all of the streams and connections
{ "resource": "" }
c179321
test
// CreateStream will create a new stream and register it
{ "resource": "" }
c179322
test
// RemoveStream will remove a stream
{ "resource": "" }
c179323
test
// StreamExists checks whether a stream by a given id exists
{ "resource": "" }
c179324
test
// Publish sends a mesage to every client in a streamID
{ "resource": "" }
c179325
test
// NewClient creates a new client
{ "resource": "" }
c179326
test
// Subscribe to a data stream
{ "resource": "" }
c179327
test
// SubscribeChan sends all events to the provided channel
{ "resource": "" }
c179328
test
// SubscribeRaw to an sse endpoint
{ "resource": "" }
c179329
test
// Unsubscribe unsubscribes a channel
{ "resource": "" }
c179330
test
// NewEventStreamReader creates an instance of EventStreamReader.
{ "resource": "" }
c179331
test
// ReadEvent scans the EventStream for events.
{ "resource": "" }
c179332
test
// HTTPHandler serves new connections with events for a given stream ...
{ "resource": "" }
c179333
test
// Add event to eventlog
{ "resource": "" }
c179334
test
// Replay events to a subscriber
{ "resource": "" }
c179335
test
// readKey reads a private rsa key from path. // The key is expected to be in PEM format.
{ "resource": "" }
c179336
test
// writeKey writes k to the specified path in PEM format. // If file does not exists, it will be created with 0600 mod.
{ "resource": "" }
c179337
test
// anyKey reads the key from file or generates a new one if gen == true. // It returns an error if filename exists but cannot be read. // A newly generated key is also stored to filename.
{ "resource": "" }
c179338
test
// sameDir returns filename path placing it in the same dir as existing file.
{ "resource": "" }
c179339
test
// printAccount outputs account into into w using tabwriter.
{ "resource": "" }
c179340
test
// tmpl executes the given template text on data, writing the result to w.
{ "resource": "" }
c179341
test
// printUsage prints usageTemplate to w.
{ "resource": "" }
c179342
test
// FromRequest return client's real public IP address from http request headers.
{ "resource": "" }
c179343
test
// Do executes DOMStorage.clear against the provided context.
{ "resource": "" }
c179344
test
// Do executes DOMStorage.disable against the provided context.
{ "resource": "" }
c179345
test
// Do executes DOMStorage.removeDOMStorageItem against the provided context.
{ "resource": "" }
c179346
test
// Do executes DOMStorage.setDOMStorageItem against the provided context.
{ "resource": "" }
c179347
test
// Do executes ServiceWorker.deliverPushMessage against the provided context.
{ "resource": "" }
c179348
test
// Do executes ServiceWorker.dispatchSyncEvent against the provided context.
{ "resource": "" }
c179349
test
// Do executes ServiceWorker.inspectWorker against the provided context.
{ "resource": "" }
c179350
test
// Do executes ServiceWorker.setForceUpdateOnPageLoad against the provided context.
{ "resource": "" }
c179351
test
// Do executes ServiceWorker.skipWaiting against the provided context.
{ "resource": "" }
c179352
test
// Do executes ServiceWorker.startWorker against the provided context.
{ "resource": "" }
c179353
test
// Do executes ServiceWorker.stopAllWorkers against the provided context.
{ "resource": "" }
c179354
test
// Do executes ServiceWorker.stopWorker against the provided context.
{ "resource": "" }
c179355
test
// Do executes ServiceWorker.unregister against the provided context.
{ "resource": "" }
c179356
test
// Do executes ServiceWorker.updateRegistration against the provided context.
{ "resource": "" }
c179357
test
// Do executes Tethering.bind against the provided context.
{ "resource": "" }
c179358
test
// Do executes Tethering.unbind against the provided context.
{ "resource": "" }
c179359
test
// Error satisfies the error interface.
{ "resource": "" }
c179360
test
// Do executes Animation.releaseAnimations against the provided context.
{ "resource": "" }
c179361
test
// Do executes Animation.seekAnimations against the provided context.
{ "resource": "" }
c179362
test
// Do executes Animation.setPaused against the provided context.
{ "resource": "" }
c179363
test
// Do executes Animation.setPlaybackRate against the provided context.
{ "resource": "" }
c179364
test
// Do executes Animation.setTiming against the provided context.
{ "resource": "" }
c179365
test
// Do executes Memory.prepareForLeakDetection against the provided context.
{ "resource": "" }
c179366
test
// Do executes Memory.forciblyPurgeJavaScriptMemory against the provided context.
{ "resource": "" }
c179367
test
// Do executes Memory.setPressureNotificationsSuppressed against the provided context.
{ "resource": "" }
c179368
test
// Do executes Memory.simulatePressureNotification against the provided context.
{ "resource": "" }
c179369
test
// WithSamplingInterval average number of bytes between samples.
{ "resource": "" }
c179370
test
// WithSuppressRandomness do not randomize intervals between samples.
{ "resource": "" }
c179371
test
// Do executes Memory.startSampling against the provided context.
{ "resource": "" }
c179372
test
// Do executes Memory.stopSampling against the provided context.
{ "resource": "" }
c179373
test
// Do executes DeviceOrientation.clearDeviceOrientationOverride against the provided context.
{ "resource": "" }
c179374
test
// Do executes DeviceOrientation.setDeviceOrientationOverride against the provided context.
{ "resource": "" }
c179375
test
// Do executes Log.startViolationsReport against the provided context.
{ "resource": "" }
c179376
test
// Do executes Log.stopViolationsReport against the provided context.
{ "resource": "" }
c179377
test
// String returns the Modifier as string value.
{ "resource": "" }
c179378
test
// WithNodeID identifier of the node to get the partial accessibility tree // for.
{ "resource": "" }
c179379
test
// WithBackendNodeID identifier of the backend node to get the partial // accessibility tree for.
{ "resource": "" }
c179380
test
// WithObjectID JavaScript object id of the node wrapper to get the partial // accessibility tree for.
{ "resource": "" }
c179381
test
// WithFetchRelatives whether to fetch this nodes ancestors, siblings and // children. Defaults to true.
{ "resource": "" }
c179382
test
// Do executes Performance.setTimeDomain against the provided context.
{ "resource": "" }
c179383
test
// WithClipRect the clip rectangle to apply when replaying the snapshot.
{ "resource": "" }
c179384
test
// Do executes LayerTree.releaseSnapshot against the provided context.
{ "resource": "" }
c179385
test
// Do executes IndexedDB.clearObjectStore against the provided context.
{ "resource": "" }
c179386
test
// Do executes IndexedDB.deleteDatabase against the provided context.
{ "resource": "" }
c179387
test
// Do executes IndexedDB.deleteObjectStoreEntries against the provided context.
{ "resource": "" }
c179388
test
// WithKeyRange key range.
{ "resource": "" }
c179389
test
// Do executes Profiler.setSamplingInterval against the provided context.
{ "resource": "" }
c179390
test
// Do executes Profiler.start against the provided context.
{ "resource": "" }
c179391
test
// WithCallCount collect accurate call counts beyond simple 'covered' or 'not // covered'.
{ "resource": "" }
c179392
test
// WithDetailed collect block-based coverage.
{ "resource": "" }
c179393
test
// Do executes Profiler.startPreciseCoverage against the provided context.
{ "resource": "" }
c179394
test
// Do executes Profiler.startTypeProfile against the provided context.
{ "resource": "" }
c179395
test
// Do executes Profiler.stopPreciseCoverage against the provided context.
{ "resource": "" }
c179396
test
// Do executes Profiler.stopTypeProfile against the provided context.
{ "resource": "" }
c179397
test
// Do executes Security.setIgnoreCertificateErrors against the provided context.
{ "resource": "" }
c179398
test
// Do executes HeapProfiler.addInspectedHeapObject against the provided context.
{ "resource": "" }
c179399
test
// Do executes HeapProfiler.collectGarbage against the provided context.
{ "resource": "" }