_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c160700
train
// This runs when we are waiting to run a job but will shut itself down if we // have no work.
{ "resource": "" }
c160701
train
// currLocked returns the current exclusion state, or nil if there is // none.
{ "resource": "" }
c160702
train
// getExclusionType returns returns the exclusionType for the given // MutexLevel, or nonExclusion if there is none.
{ "resource": "" }
c160703
train
// MakeLeveledMutex makes a mutex with the given level, backed by the // given locker.
{ "resource": "" }
c160704
train
// Unlock locks the associated locker.
{ "resource": "" }
c160705
train
// MakeLeveledRWMutex makes a reader-writer mutex with the given // level, backed by the given rwLocker.
{ "resource": "" }
c160706
train
// Unlock unlocks the associated locker.
{ "resource": "" }
c160707
train
// RLock locks the associated locker for reading.
{ "resource": "" }
c160708
train
// RUnlock unlocks the associated locker for reading.
{ "resource": "" }
c160709
train
// AssertRLocked does nothing if m is r-locked with respect to the // given LockState. Otherwise, it panics.
{ "resource": "" }
c160710
train
// AssertAnyLocked does nothing if m is locked or r-locked with // respect to the given LockState. Otherwise, it panics.
{ "resource": "" }
c160711
train
// NewFileData makes a new file data object for the given `file` // within the given `kmd`.
{ "resource": "" }
c160712
train
// read fills the `dest` buffer with data from the file, starting at // `startOff`. Returns the number of bytes copied. If the read // operation nears the deadline set in `ctx`, it returns as big a // prefix as possible before reaching the deadline.
{ "resource": "" }
c160713
train
// GetBytes returns a buffer containing data from the file, in the // half-inclusive range `[startOff, endOff)`. If `endOff` == -1, it // returns data until the end of the file.
{ "resource": "" }
c160714
train
// GetFileBlockAtOffset returns the leaf file block responsible for // the given offset.
{ "resource": "" }
c160715
train
// Ready readies, if given an indirect top-block, all the dirty child // blocks, and updates their block IDs in their parent block's list of // indirect pointers. It returns a map pointing from the new block // info from any readied block to its corresponding old block pointer.
{ "resource": "" }
c160716
train
// GetIndirectFileBlockInfosWithTopBlock returns the block infos // contained in all the indirect blocks in this file tree, given an // already-fetched top block.
{ "resource": "" }
c160717
train
// GetIndirectFileBlockInfos returns the block infos contained in all // the indirect blocks in this file tree.
{ "resource": "" }
c160718
train
// FindIPtrsAndClearSize looks for the given set of indirect pointers, // and returns whether they could be found. As a side effect, it also // clears the encoded size for those indirect pointers.
{ "resource": "" }
c160719
train
// Add indicates that a number of tasks have begun.
{ "resource": "" }
c160720
train
// Wait blocks until either the underlying task count goes to 0, or // the given context is canceled.
{ "resource": "" }
c160721
train
// WaitUnlessPaused works like Wait, except it can return early if the // wait group is paused. It returns whether it was paused with // outstanding work still left in the group.
{ "resource": "" }
c160722
train
// Pause causes any current or future callers of `WaitUnlessPaused` to // return immediately.
{ "resource": "" }
c160723
train
// Resume unpauses the wait group, allowing future callers of // `WaitUnlessPaused` to wait until all the outstanding work is // completed.
{ "resource": "" }
c160724
train
// NewTemplate creates a Template engine.
{ "resource": "" }
c160725
train
// PadBlock adds zero padding to an encoded block.
{ "resource": "" }
c160726
train
// DepadBlock extracts the actual block data from a padded block.
{ "resource": "" }
c160727
train
// ParseArgv parses arguments for the prove command.
{ "resource": "" }
c160728
train
// NewCmdProve makes a new prove command from the given CLI parameters.
{ "resource": "" }
c160729
train
// NewCmdProveRooterRunner creates a CmdProve for proving rooter in tests.
{ "resource": "" }
c160730
train
// GetUsage specifics the library features that the prove command needs.
{ "resource": "" }
c160731
train
// String implements the fmt.Stringer interface for HandleExtensionType
{ "resource": "" }
c160732
train
// parseHandleExtensionString parses an extension type and optional username from a string.
{ "resource": "" }
c160733
train
// NewHandleExtension returns a new HandleExtension struct // populated with the date from the given time and conflict number.
{ "resource": "" }
c160734
train
// Helper to instantiate a HandleExtension object.
{ "resource": "" }
c160735
train
// parseHandleExtension parses a HandleExtension array of string fields.
{ "resource": "" }
c160736
train
// ParseHandleExtensionSuffix parses a TLF handle extension suffix string.
{ "resource": "" }
c160737
train
// newHandleExtensionSuffix creates a suffix string given a set of extensions.
{ "resource": "" }
c160738
train
// Set both values to msgid
{ "resource": "" }
c160739
train
// Write implements the fs.HandleWriter interface for UpdatesFile.
{ "resource": "" }
c160740
train
// ExtensionForceGC Forces a gc
{ "resource": "" }
c160741
train
// NewIdentify2Cache creates a Identify2Cache and sets the object max age to // maxAge. Once a user is inserted, after maxAge duration passes, // the user will be removed from the cache.
{ "resource": "" }
c160742
train
// Get returns a user object. If none exists for uid, it will return nil.
{ "resource": "" }
c160743
train
// Insert adds a user to the cache, keyed on UID.
{ "resource": "" }
c160744
train
// NewBlockSplitterSimple creates a new BlockSplittleSimple and // adjusts the max size to try to match the desired size for file // blocks, given the overhead of encoding a file block and the // round-up padding we do.
{ "resource": "" }
c160745
train
// NewBlockSplitterSimpleExact returns a BlockSplitterSimple with the // max block size set to an exact value.
{ "resource": "" }
c160746
train
// SetMaxDirEntriesByBlockSize sets the maximum number of directory // entries per directory block, based on the maximum block size. If // the `KEYBASE_BSPLIT_MAX_DIR_ENTRIES` is set, this function does // nothing.
{ "resource": "" }
c160747
train
// CopyUntilSplit implements the BlockSplitter interface for // BlockSplitterSimple.
{ "resource": "" }
c160748
train
// SplitDirIfNeeded implements the BlockSplitter interface for // BlockSplitterSimple.
{ "resource": "" }
c160749
train
// Debugf forwards to Logger.Debug
{ "resource": "" }
c160750
train
// Infof forwards to Logger.Info
{ "resource": "" }
c160751
train
// Warningf forwards to Logger.Warning
{ "resource": "" }
c160752
train
// Errorf forwards to Logger.Errorf
{ "resource": "" }
c160753
train
// Make the "per_user_key" section of an API arg. // Requires one or more `pukBoxes` // `pukPrev` is optional. // Modifies `serverArg`.
{ "resource": "" }
c160754
train
// Make the "user_ek_rebox" and "device_eks" section of an API arg. Modifies // `serverArg` unless arg is nil.
{ "resource": "" }
c160755
train
// ScanProofs creates a ScanProofsEngine and runs it.
{ "resource": "" }
c160756
train
// New creates a new S3. Optional client argument allows for custom http.clients to be used.
{ "resource": "" }
c160757
train
// GetReader retrieves an object from an S3 bucket, // returning the body of the HTTP response. // It is the caller's responsibility to call Close on rc when // finished reading.
{ "resource": "" }
c160758
train
// GetReaderWithRange retrieves an object from an S3 bucket using the specified range, // returning the body of the HTTP response. // It is the caller's responsibility to call Close on rc when // finished reading.
{ "resource": "" }
c160759
train
// GetResponse retrieves an object from an S3 bucket, // returning the HTTP response. // It is the caller's responsibility to call Close on rc when // finished reading
{ "resource": "" }
c160760
train
// GetReaderWithHeaders retrieves an object from an S3 bucket // Accepts custom headers to be sent as the second parameter // returning the body of the HTTP response. // It is the caller's responsibility to call Close on rc when // finished reading
{ "resource": "" }
c160761
train
// Exists checks whether or not an object exists on an S3 bucket using a HEAD request.
{ "resource": "" }
c160762
train
// PutCopy puts a copy of an object given by the key path into bucket b using b.Path as the target key
{ "resource": "" }
c160763
train
// PutReader inserts an object into the S3 bucket by consuming data // from r until EOF.
{ "resource": "" }
c160764
train
// Returns a mapping of all key names in this bucket to Key objects
{ "resource": "" }
c160765
train
// prepare sets up req to be delivered to S3.
{ "resource": "" }
c160766
train
// getRequestorToken returns the syscall.Token associated with // the requestor of this file system operation. Remember to // call Close on the Token.
{ "resource": "" }
c160767
train
// isRequestorUserSidEqualTo returns true if the sid passed as // the argument is equal to the sid of the user associated with // the filesystem request.
{ "resource": "" }
c160768
train
// unmount a drive mounted by dokan.
{ "resource": "" }
c160769
train
// stringToUtf16Buffer pokes a string into a Windows wide string buffer. // On overflow does not poke anything and returns false.
{ "resource": "" }
c160770
train
// stringToUtf16Ptr return a pointer to the string as utf16 with zero // termination.
{ "resource": "" }
c160771
train
// StringToRunMode turns a string into a run-mode
{ "resource": "" }
c160772
train
// ParseArgv parses the command args.
{ "resource": "" }
c160773
train
// GetUsage says what this command needs to operate.
{ "resource": "" }
c160774
train
// LockedLocalSecretKey looks in the local keyring to find a key // for the given user. Returns non-nil if one was found, and nil // otherwise.
{ "resource": "" }
c160775
train
// GetSecretKeyLocked gets a secret key for the current user by first // looking for keys synced from the server, and if that fails, tries // those in the local Keyring that are also active for the user. // In any case, the key will be locked.
{ "resource": "" }
c160776
train
// NewSharedKeybaseConnection returns a connection that tries to // connect to the local keybase daemon.
{ "resource": "" }
c160777
train
// Dial is an implementation of the ConnectionTransport interface.
{ "resource": "" }
c160778
train
// IsConnected is an implementation of the ConnectionTransport interface.
{ "resource": "" }
c160779
train
// Finalize is an implementation of the ConnectionTransport interface.
{ "resource": "" }
c160780
train
// NewMDOpsStandard returns a new MDOpsStandard
{ "resource": "" }
c160781
train
// convertVerifyingKeyError gives a better error when the TLF was // signed by a key that is no longer associated with the last writer.
{ "resource": "" }
c160782
train
// startOfValidatedChainForLeaf returns the earliest revision in the // chain leading up to `leafRev` that's been validated so far. If no // validations have occurred yet, it returns `leafRev`.
{ "resource": "" }
c160783
train
// GetIDForHandle implements the MDOps interface for MDOpsStandard.
{ "resource": "" }
c160784
train
// GetForTLF implements the MDOps interface for MDOpsStandard.
{ "resource": "" }
c160785
train
// GetForTLFByTime implements the MDOps interface for MDOpsStandard.
{ "resource": "" }
c160786
train
// GetUnmergedForTLF implements the MDOps interface for MDOpsStandard.
{ "resource": "" }
c160787
train
// GetRange implements the MDOps interface for MDOpsStandard.
{ "resource": "" }
c160788
train
// GetUnmergedRange implements the MDOps interface for MDOpsStandard.
{ "resource": "" }
c160789
train
// Put implements the MDOps interface for MDOpsStandard.
{ "resource": "" }
c160790
train
// PutUnmerged implements the MDOps interface for MDOpsStandard.
{ "resource": "" }
c160791
train
// PruneBranch implements the MDOps interface for MDOpsStandard.
{ "resource": "" }
c160792
train
// ResolveBranch implements the MDOps interface for MDOpsStandard.
{ "resource": "" }
c160793
train
// OutputSignatureSuccess prints the details of a successful verification.
{ "resource": "" }
c160794
train
// OutputSignatureSuccessNonKeybase prints the details of successful signature verification // when signing key is not known to keybase.
{ "resource": "" }
c160795
train
// NewWalletUpkeepBackground creates a WalletUpkeepBackground engine.
{ "resource": "" }
c160796
train
// unboxThread transforms a chat1.ThreadViewBoxed to a keybase1.ThreadView.
{ "resource": "" }
c160797
train
// We use this constant key when we already have pairwiseMACs providing // authentication. Creating a keypair requires a curve multiply, so we cache it // here, in case someone uses it in a tight loop.
{ "resource": "" }
c160798
train
// BoxMessage encrypts a keybase1.MessagePlaintext into a chat1.MessageBoxed. It // finds the most recent key for the TLF.
{ "resource": "" }
c160799
train
// Attach a merkle root to the message to send. // Modifies msg. // For MessageBoxedV1 makes sure there is no MR. // For MessageBoxedV2 attaches a MR that is no more out of date than ChatBoxerMerkleFreshness.
{ "resource": "" }