_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c160100
train
// We don't want to display the contents of an exploding message in notifications
{ "resource": "" }
c160101
train
// AssetsForMessage gathers all assets on a message
{ "resource": "" }
c160102
train
// GetQueryRe returns a regex to match the query string on message text. This // is used for result highlighting.
{ "resource": "" }
c160103
train
// Init a RemoteStatus and register it with libkbfs.
{ "resource": "" }
c160104
train
// ExtraFileName returns the extra file name or an empty string for none.
{ "resource": "" }
c160105
train
// ExtraFileNameAndSize returns the extra file name or an empty string for none and the size of the extra file.
{ "resource": "" }
c160106
train
// humanReadableBytesNeedsLock should be called with lock already held.
{ "resource": "" }
c160107
train
// NewSpecialReadFunc implements a special read file that contains human readable // current status.
{ "resource": "" }
c160108
train
// secWordListN returns n random words from secwords.
{ "resource": "" }
c160109
train
// NewPath constructs a Path from a string
{ "resource": "" }
c160110
train
// DirAndBasename returns directory and base filename
{ "resource": "" }
c160111
train
// Join will append a path to this path
{ "resource": "" }
c160112
train
// ParseTlfHandle is a wrapper around libkbfs.ParseTlfHandle that // automatically resolves non-canonical names.
{ "resource": "" }
c160113
train
// GetNode returns a node
{ "resource": "" }
c160114
train
// GetFileNode returns a file node
{ "resource": "" }
c160115
train
// GetDirNode returns a nil node if this doesn't have type TLFPathType
{ "resource": "" }
c160116
train
// The number of proofs that failed.
{ "resource": "" }
c160117
train
// The number of proofs that actually worked
{ "resource": "" }
c160118
train
// A "Track Failure" is when we previously tracked this user, and // some aspect of their proof changed. Like their key changed, or // they changed Twitter names
{ "resource": "" }
c160119
train
// A "Track Change" isn't necessary a failure, maybe they upgraded // a proof from HTTP to HTTPS. But we still should retrack if we can.
{ "resource": "" }
c160120
train
// Get a team with no stubbed links if we are an admin. Use this instead of NeedAdmin when you don't // know whether you are an admin. This always causes roundtrips. Doesn't work for implicit admins.
{ "resource": "" }
c160121
train
// loadDirAllowNonexistent loads a TLF if it's not already loaded. If // the TLF doesn't yet exist, it still returns a nil error and // indicates that the calling function should pretend it's an empty // folder.
{ "resource": "" }
c160122
train
// Attr implements the fs.Node interface for TLF.
{ "resource": "" }
c160123
train
// Lookup implements the fs.NodeRequestLookuper interface for TLF.
{ "resource": "" }
c160124
train
// Create implements the fs.NodeCreater interface for TLF.
{ "resource": "" }
c160125
train
// Mkdir implements the fs.NodeMkdirer interface for TLF.
{ "resource": "" }
c160126
train
// Symlink implements the fs.NodeSymlinker interface for TLF.
{ "resource": "" }
c160127
train
// Rename implements the fs.NodeRenamer interface for TLF.
{ "resource": "" }
c160128
train
// Remove implements the fs.NodeRemover interface for TLF.
{ "resource": "" }
c160129
train
// ReadDirAll implements the fs.NodeReadDirAller interface for TLF.
{ "resource": "" }
c160130
train
// Setattr implements the fs.NodeSetattrer interface for TLF.
{ "resource": "" }
c160131
train
// Fsync implements the fs.NodeFsyncer interface for TLF.
{ "resource": "" }
c160132
train
// Open implements the fs.NodeOpener interface for TLF.
{ "resource": "" }
c160133
train
// Start reachability checks and return current status, which // may be cached.
{ "resource": "" }
c160134
train
// Performs a reachability check. This is not a cached response.
{ "resource": "" }
c160135
train
// findAllFileBlocks adds all file blocks found under this block to // the blockSizes map, if the given path represents an indirect block.
{ "resource": "" }
c160136
train
// findAllBlocksInPath adds all blocks found within this directory to // the blockSizes map, and then recursively checks all // subdirectories.
{ "resource": "" }
c160137
train
// PrefetchStatus returns the overall prefetch status corresponding to // this metadata.
{ "resource": "" }
c160138
train
// Check s using checker, respond with checker.Hint if check // fails.
{ "resource": "" }
c160139
train
// Check a paper key format. Will return a detailed error message // specific to the problems found in s.
{ "resource": "" }
c160140
train
// GetTriplesecMaybePrompt will try to get the user's current triplesec. // It will either pluck it out of the environment or prompt the user for // a passphrase if it can't be found. The secret store is of no use here, // so skip it. Recall that the full passphrase stream isn't stored to // the secret store, only the ...
{ "resource": "" }
c160141
train
// GetPassphraseStreamViaPrompt prompts the user for a passphrase and on // success returns a PassphraseStream and Triplesec derived from the user's // passphrase. As a side effect, it stores the full LKSec in the secret store.
{ "resource": "" }
c160142
train
// GetFullPassphraseStreamViaPrompt gets the user's passphrase stream either cached from the // LoginContext or from the prompt. It doesn't involve the secret store at all, since // the full passphrase stream isn't stored in the secret store. And also it doesn't // write the secret store because this function is called...
{ "resource": "" }
c160143
train
// VerifyPassphraseGetFullStream verifies the current passphrase is a correct login // and if so, will return a full passphrase stream derived from it. Assumes the caller // made a non-nil LoginContext for us to operate in.
{ "resource": "" }
c160144
train
// VerifyPassphraseForLoggedInUser verifies that the current passphrase is correct for the logged // in user, returning nil if correct, and an error if not. Only used in tests right now, but // it's fine to use in production code if it seems appropriate.
{ "resource": "" }
c160145
train
// ComputeLoginPackage2 computes the login package for the given UID as dictated by // the context. It assumes that a passphrase stream has already been loaded. A LoginSession // is optional. If not available, a new one is requested. Eventually we will kill ComputeLoginPackage // and rename this to that.
{ "resource": "" }
c160146
train
// UnverifiedPassphraseStream takes a passphrase as a parameter and // also the salt from the Account and computes a Triplesec and // a passphrase stream. It's not verified through a Login.
{ "resource": "" }
c160147
train
// NewPerUserKeyRoll creates a PerUserKeyRoll engine.
{ "resource": "" }
c160148
train
// Get the receivers of the new per-user-key boxes. // Includes all the user's device subkeys.
{ "resource": "" }
c160149
train
// newDiskBlockMetadataStore creates a new disk BlockMetadata storage.
{ "resource": "" }
c160150
train
// Shutdown shuts done this storae.
{ "resource": "" }
c160151
train
// GetMetadata implements the BlockMetadataStore interface.
{ "resource": "" }
c160152
train
// UpdateMetadata implements the BlockMetadataStore interface.
{ "resource": "" }
c160153
train
// NewXattrStoreFromBlockMetadataStore returns a XattrStore which is a wrapper // around the passed in store.
{ "resource": "" }
c160154
train
// GetXattr implements the XattrStore interface.
{ "resource": "" }
c160155
train
// SetXattr implements the XattrStore interface.
{ "resource": "" }
c160156
train
// GetMetadata always returns ldberrors.ErrNotFound.
{ "resource": "" }
c160157
train
// UpdateMetadata returns nil error but does nothing.
{ "resource": "" }
c160158
train
// NewCryptoClientRPC constructs a new RPC based Crypto implementation.
{ "resource": "" }
c160159
train
// newCryptoClientWithClient should only be used for testing.
{ "resource": "" }
c160160
train
// NewOwnAccountLookupCache fetches the list of accounts in the background and stores them.
{ "resource": "" }
c160161
train
// Fetch populates the cache in the background.
{ "resource": "" }
c160162
train
// OwnAccount queries the cache. Blocks until the populating RPC returns.
{ "resource": "" }
c160163
train
// New creates a new MinTerm and opens the terminal file. Any // errors that happen while opening or getting the terminal size // are returned.
{ "resource": "" }
c160164
train
// Shutdown closes the terminal.
{ "resource": "" }
c160165
train
// Prompt gets a line of input from the terminal. It displays the text in // the prompt parameter first.
{ "resource": "" }
c160166
train
// PromptPassword gets a line of input from the terminal, but // nothing is echoed to the terminal to hide the text.
{ "resource": "" }
c160167
train
// checkConversationRekey looks for rekey finished notifications and tries to // find any conversations associated with the rekeyed TLF. If it finds any, // it will send ChatThreadsStale notifications for them.
{ "resource": "" }
c160168
train
// getKeyFn returns a function that gets an encryption key for storing // favorites.
{ "resource": "" }
c160169
train
// EncryptFavorites encrypts cached favorites to store on disk.
{ "resource": "" }
c160170
train
// Eq compares two TLFIDs
{ "resource": "" }
c160171
train
// EqString is like EqualsTo, except that it accepts a fmt.Stringer. This // can be useful for comparing keybase1.TLFID and chat1.TLFID.
{ "resource": "" }
c160172
train
// ParseableVersion checks if this error has a version that is now able to be // understood by our client.
{ "resource": "" }
c160173
train
// TLFNameExpandedSummary returns a TLF name with a summary of the // account reset if there was one. // This version is for display purposes only and cannot be used to lookup the TLF.
{ "resource": "" }
c160174
train
// ExpandTLFName returns a TLF name with a reset suffix if it exists. // This version can be used in requests to lookup the TLF.
{ "resource": "" }
c160175
train
// FirstPage returns true if the pagination object is not pointing in any direction
{ "resource": "" }
c160176
train
// tlfKey generates a TLF cache key from a tlf.ID and a binary-encoded block // ID.
{ "resource": "" }
c160177
train
// updateMetadataLocked updates the LRU time of a block in the LRU cache to // the current time.
{ "resource": "" }
c160178
train
// getLRULocked retrieves the LRU time for a block in the cache, or returns // leveldb.ErrNotFound and a zero-valued time.Time otherwise.
{ "resource": "" }
c160179
train
// decodeBlockCacheEntry decodes a disk block cache entry buffer into an // encoded block and server half.
{ "resource": "" }
c160180
train
// encodeBlockCacheEntry encodes an encoded block and serverHalf into a single // buffer.
{ "resource": "" }
c160181
train
// Get implements the DiskBlockCache interface for DiskBlockCacheLocal.
{ "resource": "" }
c160182
train
// GetMetadata implements the DiskBlockCache interface for // DiskBlockCacheLocal.
{ "resource": "" }
c160183
train
// UpdateMetadata implements the DiskBlockCache interface for // DiskBlockCacheLocal.
{ "resource": "" }
c160184
train
// deleteLocked deletes a set of blocks from the disk block cache.
{ "resource": "" }
c160185
train
// Delete implements the DiskBlockCache interface for DiskBlockCacheLocal.
{ "resource": "" }
c160186
train
// evictSomeBlocks tries to evict `numBlocks` blocks from the cache. If // `blockIDs` doesn't have enough blocks, we evict them all and report how many // we evicted.
{ "resource": "" }
c160187
train
// shuffleTLFsAtPriorityWeighted shuffles the TLFs at a given priority, // weighting by per-TLF block count.
{ "resource": "" }
c160188
train
// evictLocked evicts a number of blocks from the cache. We search the lowest // eviction priority level for blocks to evict first, then the next highest // priority and so on until enough blocks have been evicted. Within each // priority, we first shuffle the TLFs, weighting by how many blocks they // contain, and the...
{ "resource": "" }
c160189
train
// ClearAllTlfBlocks implements the DiskBlockCache interface for // DiskBlockCacheLocal.
{ "resource": "" }
c160190
train
// GetLastUnrefRev implements the DiskBlockCache interface for // DiskBlockCacheLocal.
{ "resource": "" }
c160191
train
// PutLastUnrefRev implements the DiskBlockCache interface for // DiskBlockCacheLocal.
{ "resource": "" }
c160192
train
// Status implements the DiskBlockCache interface for DiskBlockCacheLocal.
{ "resource": "" }
c160193
train
// DoesCacheHaveSpace returns true if we have more than 1% of space // left in the cache.
{ "resource": "" }
c160194
train
// Mark updates the metadata of the given block with the tag.
{ "resource": "" }
c160195
train
// DeleteUnmarked deletes all the blocks without the given tag.
{ "resource": "" }
c160196
train
// AddHomeTLF implements this DiskBlockCache interace for DiskBlockCacheLocal.
{ "resource": "" }
c160197
train
// ClearHomeTLFs implements this DiskBlockCache interace for // DiskBlockCacheLocal.
{ "resource": "" }
c160198
train
// GetTlfSize returns the number of bytes stored for the given TLF in // the cache.
{ "resource": "" }
c160199
train
// GetTlfIDs returns the IDs of all the TLFs with blocks stored in // the cache.
{ "resource": "" }