_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c159100
train
// AssimilateDeferredNewBytes is called to indicate that any deferred // bytes should be included in the count of the next sync.
{ "resource": "" }
c159101
train
// simulateServiceRestart simulates what happens when a service restarts for the // purposes of testing.
{ "resource": "" }
c159102
train
// Shutdown is called exactly once per-process and does whatever // cleanup is necessary to shut down the server.
{ "resource": "" }
c159103
train
// LogoutSelfCheck checks with the API server to see if this uid+device pair should // logout.
{ "resource": "" }
c159104
train
// GetPerUserKeyring recreates PerUserKeyring if the uid changes or this is none installed.
{ "resource": "" }
c159105
train
// ShouldCreateMissedLookup implements the Node interface for // specialFileNode.
{ "resource": "" }
c159106
train
// WrapChild implements the Node interface for specialFileNode.
{ "resource": "" }
c159107
train
// AddRootWrapper should be called on startup by any KBFS interface // that wants to handle special files.
{ "resource": "" }
c159108
train
// NewDelegateUICtlHandler creates a new handler for setting up notification // channels
{ "resource": "" }
c159109
train
// ToHashType returns the type of the hash that should be used for the // given encryption version.
{ "resource": "" }
c159110
train
// encryptDataWithNonce encrypts the given data with the given // symmetric key and nonce.
{ "resource": "" }
c159111
train
// encryptData encrypts the given data with the given symmetric key.
{ "resource": "" }
c159112
train
// decryptData decrypts the given encrypted data with the given // symmetric key and nonce.
{ "resource": "" }
c159113
train
// EncryptTLFCryptKeyClientHalf encrypts a TLFCryptKeyClientHalf // using both a TLF's ephemeral private key and a device pubkey.
{ "resource": "" }
c159114
train
// EncryptEncodedPrivateMetadata encrypts an encoded PrivateMetadata // object.
{ "resource": "" }
c159115
train
// DecryptPrivateMetadata decrypts a PrivateMetadata object, but does // not decode it.
{ "resource": "" }
c159116
train
// EncryptPaddedEncodedBlock encrypts a padded, encoded block.
{ "resource": "" }
c159117
train
// DecryptBlock decrypts a block, but does not unpad or decode it.
{ "resource": "" }
c159118
train
// EncryptTLFCryptKeys encrypts a TLFCryptKey array.
{ "resource": "" }
c159119
train
// DecryptTLFCryptKeys decrypts a TLFCryptKey array, but does not // decode it.
{ "resource": "" }
c159120
train
// MakeEncryptedMerkleLeaf constructs an EncryptedMerkleLeaf.
{ "resource": "" }
c159121
train
// PrepareMerkleLeaf verifies the correctness of the given leaf, and // returns its nonce.
{ "resource": "" }
c159122
train
// DecryptMerkleLeaf decrypts an EncryptedMerkleLeaf using the given // private TLF key and ephemeral public key.
{ "resource": "" }
c159123
train
// NewPerUserKeyUpkeep creates a PerUserKeyUpkeep engine.
{ "resource": "" }
c159124
train
// Whether we should roll the per-user-key.
{ "resource": "" }
c159125
train
// Read all the uninstall subkeys and find the ones with DisplayName starting with "Dokan Library" // and containing "Bundle"
{ "resource": "" }
c159126
train
// GetBlock implements the DiskBlockCacheInterface interface for // DiskBlockCacheService.
{ "resource": "" }
c159127
train
// GetPrefetchStatus implements the DiskBlockCacheInterface interface // for DiskBlockCacheService.
{ "resource": "" }
c159128
train
// PutBlock implements the DiskBlockCacheInterface interface for // DiskBlockCacheService.
{ "resource": "" }
c159129
train
// DeleteBlocks implements the DiskBlockCacheInterface interface for // DiskBlockCacheService.
{ "resource": "" }
c159130
train
// UpdateBlockMetadata implements the DiskBlockCacheInterface interface for // DiskBlockCacheService.
{ "resource": "" }
c159131
train
// BoxAndEncode encrypts and encodes a Bundle object.
{ "resource": "" }
c159132
train
// unboxParent unboxes an encrypted parent bundle and decodes the visual portion of the bundle. // It validates the visible hash in the secret portion.
{ "resource": "" }
c159133
train
// decryptParent decrypts an encrypted parent bundle with the provided puk.
{ "resource": "" }
c159134
train
// decode decodes a base64-encoded encrypted account bundle.
{ "resource": "" }
c159135
train
// unbox unboxes an encrypted account bundle and decodes the visual portion of the bundle. // It validates the visible hash in the secret portion.
{ "resource": "" }
c159136
train
// decrypt decrypts an encrypted account bundle with the provided puk.
{ "resource": "" }
c159137
train
// merge combines the versioned secret account bundle and the visible account bundle into // a stellar1.AccountBundle for local use.
{ "resource": "" }
c159138
train
// NewSaltpackVerify creates a SaltpackVerify engine.
{ "resource": "" }
c159139
train
// CheckUsername returns true if the given string can be a Keybase // username.
{ "resource": "" }
c159140
train
// Eq returns true if the given normalized usernames are equal
{ "resource": "" }
c159141
train
// deleteOldVersions purges old disk structures so we don't error out on msg // pack decode or strand indexes with ephemeral content.
{ "resource": "" }
c159142
train
// addTokens add the given tokens to the index under the given message // id, when ingesting EDIT messages the msgID is of the superseded msg but the // tokens are from the EDIT itself.
{ "resource": "" }
c159143
train
// NewDeviceHandler creates a DeviceHandler for the xp transport.
{ "resource": "" }
c159144
train
// DeviceList returns a list of all the devices for a user.
{ "resource": "" }
c159145
train
// DeviceHistoryList returns a list of all the devices for a user, // with detailed history and provisioner, revoker information.
{ "resource": "" }
c159146
train
// CheckDeviceNameFormat verifies that the device name has a valid // format.
{ "resource": "" }
c159147
train
// NewCmdCtlStart constructs ctl start command
{ "resource": "" }
c159148
train
// MakeImmutableBareRootMetadata makes a new ImmutableBareRootMetadata // from the given BareRootMetadata and its corresponding MdID.
{ "resource": "" }
c159149
train
// MakeBareTlfHandleWithExtra makes a BareTlfHandle for this // ImmutableBareRootMetadata. Should be used only by servers and MDOps.
{ "resource": "" }
c159150
train
// getExtraMetadata gets the extra metadata corresponding to the given // IDs, if any, after checking them.
{ "resource": "" }
c159151
train
// getEarliestWithExtra returns a kbfsmd.MutableRootMetadata so that it // can be put in a RootMetadataSigned object.
{ "resource": "" }
c159152
train
// clearHelper removes all the journal entries starting from // earliestBranchRevision and deletes the corresponding MD // updates. All MDs from earliestBranchRevision onwards must have // branch equal to the given one, which must not be kbfsmd.NullBranchID. This // means that, if bid != kbfsmd.PendingLocalSquashBranch...
{ "resource": "" }
c159153
train
// clear removes all the journal entries, and deletes the // corresponding MD updates. If the branch is a pending local squash, // it preserves the MD updates corresponding to the prefix of existing // local squashes, so they can be re-used in the newly-resolved // journal.
{ "resource": "" }
c159154
train
// Error implements the error interface for MDRevisionMismatch.
{ "resource": "" }
c159155
train
// Error implements the error interface for InvalidNonPrivateTLFOperation.
{ "resource": "" }
c159156
train
// Error implements the error interface for InvalidKeyGenerationError.
{ "resource": "" }
c159157
train
// Error implements the error interface for NewKeyGenerationError.
{ "resource": "" }
c159158
train
// Error implements the error interface for InvalidMetadataVersionError.
{ "resource": "" }
c159159
train
// Error implements the error interface for NewMetadataVersionError.
{ "resource": "" }
c159160
train
// Returns a simplified UserAgent that's used as the kb_ua GET param.
{ "resource": "" }
c159161
train
// isDismissedAt returns true if item i is dismissed at time t. It will always return // true if the `dismissedImmediate` flag was turned out.
{ "resource": "" }
c159162
train
// isDismissedAt returns true if the log message has an associated item // and that item was dismissed at time t.
{ "resource": "" }
c159163
train
// addItem adds an item for this user
{ "resource": "" }
c159164
train
// logMessage logs a message for this user and potentially associates an item
{ "resource": "" }
c159165
train
// getUser gets or makes a new user object for the given UID.
{ "resource": "" }
c159166
train
// Rollback reloads config from unchanged config file, bringing its // state back to from before the transaction changes. Note that it // only works for changes that do not affect UserConfig, which caches // values, and has to be reloaded manually.
{ "resource": "" }
c159167
train
// NewCmdDevice creates the device command, which is just a holder // for subcommands.
{ "resource": "" }
c159168
train
// NewPaperKeyGen creates a PaperKeyGen engine.
{ "resource": "" }
c159169
train
// newChatLocal constructs a new local chat implementation.
{ "resource": "" }
c159170
train
// CryptKeys returns TLF crypt keys from all generations.
{ "resource": "" }
c159171
train
// debugServiceToString returns the name of a service or number string if it is invalid.
{ "resource": "" }
c159172
train
// WalletInitLocal creates and posts an initial stellar bundle for a user. // Only succeeds if they do not already have one. // Safe to call even if the user has a bundle already.
{ "resource": "" }
c159173
train
// getLocalCurrencyAndExchangeRate gets display currency setting // for accountID and fetches exchange rate is set. // // Arguments `account` and `exchangeRates` may end up mutated.
{ "resource": "" }
c159174
train
// check that the display amount is within 1% of current exchange rates
{ "resource": "" }
c159175
train
// AddConnection adds a new connection to the table of Connection object, with a // related closeListener. We'll listen for a close on that channel, and when one occurs, // we'll remove the connection from the pool.
{ "resource": "" }
c159176
train
// LookupConnection looks up a connection given a connectionID, or returns nil // if no such connection was found.
{ "resource": "" }
c159177
train
// WaitForClientType returns true if client type is connected, or waits until timeout for the connection
{ "resource": "" }
c159178
train
// ApplyAll applies the given function f to all connections in the table. // If you're going to do something blocking, please do it in a GoRoutine, // since we're holding the lock for all connections as we do this.
{ "resource": "" }
c159179
train
// ApplyAllDetails applies the given function f to all connections in the table. // If you're going to do something blocking, please do it in a GoRoutine, // since we're holding the lock for all connections as we do this.
{ "resource": "" }
c159180
train
// newBlockServerDisk constructs a new BlockServerDisk that stores // its data in the given directory.
{ "resource": "" }
c159181
train
// NewBlockServerDir constructs a new BlockServerDisk that stores // its data in the given directory.
{ "resource": "" }
c159182
train
// NewBlockServerTempDir constructs a new BlockServerDisk that stores its // data in a temp directory which is cleaned up on shutdown.
{ "resource": "" }
c159183
train
// Get implements the BlockServer interface for BlockServerDisk.
{ "resource": "" }
c159184
train
// Put implements the BlockServer interface for BlockServerDisk.
{ "resource": "" }
c159185
train
// AddBlockReference implements the BlockServer interface for BlockServerDisk.
{ "resource": "" }
c159186
train
// RemoveBlockReferences implements the BlockServer interface for // BlockServerDisk.
{ "resource": "" }
c159187
train
// ArchiveBlockReferences implements the BlockServer interface for // BlockServerDisk.
{ "resource": "" }
c159188
train
// IsUnflushed implements the BlockServer interface for BlockServerDisk.
{ "resource": "" }
c159189
train
// Shutdown implements the BlockServer interface for BlockServerDisk.
{ "resource": "" }
c159190
train
// GetUserQuotaInfo implements the BlockServer interface for BlockServerDisk.
{ "resource": "" }
c159191
train
// GetTeamQuotaInfo implements the BlockServer interface for BlockServerDisk.
{ "resource": "" }
c159192
train
// newLoginProvision creates a loginProvision engine.
{ "resource": "" }
c159193
train
// paper attempts to provision the device via a paper key.
{ "resource": "" }
c159194
train
// pgpProvision attempts to provision with a synced pgp key. It // needs to get a session first to look for a synced pgp key.
{ "resource": "" }
c159195
train
// makeDeviceWrapArgs creates a base set of args for DeviceWrap. // It ensures that LKSec is created. It also gets a new device // name for this device.
{ "resource": "" }
c159196
train
// ensureLKSec ensures we have LKSec for saving device keys.
{ "resource": "" }
c159197
train
// ppStream gets the passphrase stream, either cached or via // SecretUI.
{ "resource": "" }
c159198
train
// deviceName gets a new device name from the user.
{ "resource": "" }
c159199
train
// makeDeviceKeys uses DeviceWrap to generate device keys.
{ "resource": "" }