_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c160400
train
// GetHello2Arg implements GetHello2Arg in kex2.Provisioner.
{ "resource": "" }
c160401
train
// CounterSign implements CounterSign in kex2.Provisioner.
{ "resource": "" }
c160402
train
// CounterSign2 implements CounterSign in kex2.Provisioner.
{ "resource": "" }
c160403
train
// skeletonProof generates a partial key proof structure that device Y can // fill in. When verifying the reverse signature we fill in the values from Y // to check the reverse signature
{ "resource": "" }
c160404
train
// rememberDeviceInfo saves the device name and type in // Kex2Provisioner for later use.
{ "resource": "" }
c160405
train
// Returns nil if there are no per-user-keys.
{ "resource": "" }
c160406
train
// AddNewBlock implements the blockPutState interface for blockPutStateDisk.
{ "resource": "" }
c160407
train
// SwitchUserNewConfigActiveDevice creates a new config file stanza and an // active device for the given user, all while holding the switchUserMu lock.
{ "resource": "" }
c160408
train
// SwitchUserLoggedOut clears the active device and the current_user stanza of // the config file, all while holding the switchUserMu
{ "resource": "" }
c160409
train
// SetActiveDevice sets the active device to have the UserVersion, deviceID, // sigKey, encKey and deviceName as specified, and does so while grabbing the // global switchUser lock, since it should be sycnhronized with attempts to // switch the global logged in user. It does not, however, change the // `current_user` i...
{ "resource": "" }
c160410
train
// LogoutAndDeprovisionIfRevoked loads the user and checks if the current // device keys have been revoked. If so, it calls Logout and then runs the // ClearSecretsOnDeprovision
{ "resource": "" }
c160411
train
// SpawnDetachedProcess spawns a background process and detech from the calling // process.
{ "resource": "" }
c160412
train
// Attr implements the fs.Node interface for SpecialReadFile.
{ "resource": "" }
c160413
train
// Open implements the fs.NodeOpener interface for SpecialReadFile.
{ "resource": "" }
c160414
train
// NewCmdSimpleFSStat creates a new cli.Command.
{ "resource": "" }
c160415
train
// Error implements the error interface for HandleMismatchError
{ "resource": "" }
c160416
train
// Error implements the error interface for ReadAccessError
{ "resource": "" }
c160417
train
// NewReadAccessError constructs a ReadAccessError for the given // directory and user.
{ "resource": "" }
c160418
train
// Error implements the error interface for WriteAccessError
{ "resource": "" }
c160419
train
// NewWriteAccessError is an access error trying to write a file
{ "resource": "" }
c160420
train
// Equals returns true if the given BlockChanges is equal to this // BlockChanges. Currently does not check for equality at the // operation level.
{ "resource": "" }
c160421
train
// AddRefBlock adds the newly-referenced block to this BlockChanges // and updates the size estimate.
{ "resource": "" }
c160422
train
// AddUpdate adds the newly updated block to this BlockChanges // and updates the size estimate.
{ "resource": "" }
c160423
train
// SizeEstimate calculates the estimated size of the encoded version // of this BlockChanges.
{ "resource": "" }
c160424
train
// ToProtocolStatus returns a prefetch status that can be send over // the keybase1 protocol.
{ "resource": "" }
c160425
train
// UnmarshalJSON converts a PrefetchStatus from JSON
{ "resource": "" }
c160426
train
// ToProtocol transforms a PrefetchStatus to a kbgitkbfs.PrefetchStatus, while // validating its value.
{ "resource": "" }
c160427
train
// PrefetchStatusFromProtocol transforms a kbgitkbfs.PrefetchStatus to a // PrefetchStatus, while validating its value.
{ "resource": "" }
c160428
train
// Combine returns a new action by taking `other` into account.
{ "resource": "" }
c160429
train
// Prefetch returns true if the action indicates the block should // trigger a prefetch.
{ "resource": "" }
c160430
train
// ChildAction returns the action that should propagate down to any // children of this block.
{ "resource": "" }
c160431
train
// ToProtocolProgress creates a progress suitable of being sent over // the keybase1 protocol to the service.
{ "resource": "" }
c160432
train
// ToProtocolStatus creates a status suitable of being sent over the // keybase1 protocol to the service. It never generates NOT_STARTED // since that doesn't make sense once you already have a prefetch // progress created.
{ "resource": "" }
c160433
train
// MakeRandomRequestID generates a random ID suitable for tagging a // request in KBFS, and very likely to be universally unique.
{ "resource": "" }
c160434
train
// VersionString returns semantic version string
{ "resource": "" }
c160435
train
// CtxWithRandomIDReplayable returns a replayable context with a // random id associated with the given log key.
{ "resource": "" }
c160436
train
// checkDataVersion validates that the data version for a // block pointer is valid for the given version validator
{ "resource": "" }
c160437
train
// IsWriterFromHandle checks whether the given UID is a writer for the // given handle. It understands team-keyed handles as well as // classically-keyed handles.
{ "resource": "" }
c160438
train
// IsOnlyWriterInNonTeamTlf returns true if and only if the TLF described by h // is a non-team TLF, and the currently logged-in user is the only writer for // the TLF. In case of any error false is returned.
{ "resource": "" }
c160439
train
// SimpleFSListRecursiveToDepth - Begin recursive list of items in directory at // path to a given depth.
{ "resource": "" }
c160440
train
// SimpleFSSymlink - Make a symlink from KBFS to either elsewhere in KBFS or in the regular filesystem
{ "resource": "" }
c160441
train
// SimpleFSGetRevisions - Get revision info for a directory entry
{ "resource": "" }
c160442
train
// SimpleFSReadRevisions - Get list of revisions in progress. Can // indicate status of pending to get more entries.
{ "resource": "" }
c160443
train
// SimpleFSGetHTTPAddressAndToken implements the SimpleFSInterface.
{ "resource": "" }
c160444
train
// SimpleFSUserEditHistory implements the SimpleFSInterface.
{ "resource": "" }
c160445
train
// SimpleFSFolderEditHistory implements the SimpleFSInterface.
{ "resource": "" }
c160446
train
// SimpleFSReset implements the SimpleFSInterface.
{ "resource": "" }
c160447
train
// SimpleFSGetUserQuotaUsage implements the SimpleFSInterface.
{ "resource": "" }
c160448
train
// SimpleFSGetTeamQuotaUsage implements the SimpleFSInterface.
{ "resource": "" }
c160449
train
// GetNeedUpdate returns true if updater says we have a new update available. // This runs `updater need-update`, which ignores the snooze.
{ "resource": "" }
c160450
train
// Flip takes all the completed PlayerStates from the game, makes sure they don't have // an error, and if not, outputs a PRNG from which arbirarily many ints, or bools, // can be deterministically plucked. If there's an error, PRNG will be nil.
{ "resource": "" }
c160451
train
// FlipOneBig takes all the completed PlayerStates, and checks them. If no error, // then outputs one random number between 0 and the given modulus, which is an arbitrarily // big number. If there was an error in the game setup, then it will return nil and the error.
{ "resource": "" }
c160452
train
// FlipOneInt takes all the completed PlayerStates, and checks them. If no error, // then outputs one random number between 0 and the given modulus, a signed 64-bit int. // If there was an error in the game setup, then it will return 0 and the error.
{ "resource": "" }
c160453
train
// FlipOneBool takes all the completed PlayerStates, and checks them. If no error, // then outputs one random bool. If there was an error in the game setup, then it will // return false and the error.
{ "resource": "" }
c160454
train
// NewSaltpackDecrypt creates a SaltpackDecrypt engine.
{ "resource": "" }
c160455
train
// UserReacjis returns the user's most frequently used reacjis falling back to // `DefaultTopReacjis` if there is not enough history. Results are ordered by // frequency and then alphabetically.
{ "resource": "" }
c160456
train
// Attr implements the fs.Node interface for Symlink
{ "resource": "" }
c160457
train
// Readlink implements the fs.NodeReadlinker interface for Symlink
{ "resource": "" }
c160458
train
// DeserializeTLFWriterKeyBundleV3 deserializes a TLFWriterKeyBundleV3 // from the given path and returns it.
{ "resource": "" }
c160459
train
// IsWriter returns true if the given user device is in the device set.
{ "resource": "" }
c160460
train
// TLFWriterKeyBundleIDFromBytes creates a new TLFWriterKeyBundleID from the given bytes. // If the returned error is nil, the returned TLFWriterKeyBundleID is valid.
{ "resource": "" }
c160461
train
// TLFWriterKeyBundleIDFromString creates a new TLFWriterKeyBundleID from the given string. // If the returned error is nil, the returned TLFWriterKeyBundleID is valid.
{ "resource": "" }
c160462
train
// MarshalBinary implements the encoding.BinaryMarshaler interface for // TLFWriterKeyBundleID. Returns an error if the TLFWriterKeyBundleID is invalid and not the // zero TLFWriterKeyBundleID.
{ "resource": "" }
c160463
train
// UnmarshalBinary implements the encoding.BinaryUnmarshaler interface // for TLFWriterKeyBundleID. Returns an error if the given byte array is non-empty and // the TLFWriterKeyBundleID is invalid.
{ "resource": "" }
c160464
train
// MakeTLFWriterKeyBundleID hashes a TLFWriterKeyBundleV3 to create an ID.
{ "resource": "" }
c160465
train
// DeserializeTLFReaderKeyBundleV3 deserializes a TLFReaderKeyBundleV3 // from the given path and returns it.
{ "resource": "" }
c160466
train
// TLFReaderKeyBundleIDFromBytes creates a new TLFReaderKeyBundleID from the given bytes. // If the returned error is nil, the returned TLFReaderKeyBundleID is valid.
{ "resource": "" }
c160467
train
// TLFReaderKeyBundleIDFromString creates a new TLFReaderKeyBundleID from the given string. // If the returned error is nil, the returned TLFReaderKeyBundleID is valid.
{ "resource": "" }
c160468
train
// MarshalBinary implements the encoding.BinaryMarshaler interface for // TLFReaderKeyBundleID. Returns an error if the TLFReaderKeyBundleID is invalid and not the // zero TLFReaderKeyBundleID.
{ "resource": "" }
c160469
train
// UnmarshalBinary implements the encoding.BinaryUnmarshaler interface // for TLFReaderKeyBundleID. Returns an error if the given byte array is non-empty and // the TLFReaderKeyBundleID is invalid.
{ "resource": "" }
c160470
train
// MakeTLFReaderKeyBundleID hashes a TLFReaderKeyBundleV3 to create an ID.
{ "resource": "" }
c160471
train
// NewMDServerMemory constructs a new MDServerMemory object that stores // all data in-memory.
{ "resource": "" }
c160472
train
// GetForHandle implements the MDServer interface for MDServerMemory.
{ "resource": "" }
c160473
train
// GetForTLF implements the MDServer interface for MDServerMemory.
{ "resource": "" }
c160474
train
// GetForTLFByTime implements the MDServer interface for MDServerMemory.
{ "resource": "" }
c160475
train
// Lock implements the MDServer interface for MDServerMemory.
{ "resource": "" }
c160476
train
// ReleaseLock implements the MDServer interface for MDServerMemory.
{ "resource": "" }
c160477
train
// PruneBranch implements the MDServer interface for MDServerMemory.
{ "resource": "" }
c160478
train
// RegisterForUpdate implements the MDServer interface for MDServerMemory.
{ "resource": "" }
c160479
train
// CancelRegistration implements the MDServer interface for MDServerMemory.
{ "resource": "" }
c160480
train
// TruncateLock implements the MDServer interface for MDServerMemory.
{ "resource": "" }
c160481
train
// Shutdown implements the MDServer interface for MDServerMemory.
{ "resource": "" }
c160482
train
// GetKeyBundles implements the MDServer interface for MDServerMemory.
{ "resource": "" }
c160483
train
// NewUsageStat creates a new UsageStat
{ "resource": "" }
c160484
train
// NonZero checks whether UsageStat has accumulated any usage info
{ "resource": "" }
c160485
train
//AccumOne records the usage of one block, whose size is denoted by change //A positive change means the block is newly added, negative means the block //is deleted. If archive is true, it means the block is archived.
{ "resource": "" }
c160486
train
// AccumOne combines one quota charge to the existing QuotaInfo
{ "resource": "" }
c160487
train
// ToBytes marshals this QuotaInfo
{ "resource": "" }
c160488
train
// QuotaInfoDecode decodes b into a QuotaInfo
{ "resource": "" }
c160489
train
// NewDirtyBlockCacheStandard constructs a new BlockCacheStandard // instance. The min and max buffer capacities define the possible // range of how many bytes we'll try to sync in any one sync, and the // start size defines the initial buffer size.
{ "resource": "" }
c160490
train
// Get implements the DirtyBlockCache interface for // DirtyBlockCacheStandard.
{ "resource": "" }
c160491
train
// Put implements the DirtyBlockCache interface for // DirtyBlockCacheStandard.
{ "resource": "" }
c160492
train
// Delete implements the DirtyBlockCache interface for // DirtyBlockCacheStandard.
{ "resource": "" }
c160493
train
// IsDirty implements the DirtyBlockCache interface for // DirtyBlockCacheStandard.
{ "resource": "" }
c160494
train
// IsAnyDirty implements the DirtyBlockCache interface for // DirtyBlockCacheStandard.
{ "resource": "" }
c160495
train
// calcBackpressure returns how much longer a given request should be // blocked, as a function of its deadline and how past full the // syncing buffer is. In its lifetime, the request should be blocked // by roughly the same fraction of its total deadline as how past full // the buffer is. This will let KBFS slow do...
{ "resource": "" }
c160496
train
// RequestPermissionToDirty implements the DirtyBlockCache interface // for DirtyBlockCacheStandard.
{ "resource": "" }
c160497
train
// UpdateUnsyncedBytes implements the DirtyBlockCache interface for // DirtyBlockCacheStandard.
{ "resource": "" }
c160498
train
// UpdateSyncingBytes implements the DirtyBlockCache interface for // DirtyBlockCacheStandard.
{ "resource": "" }
c160499
train
// SyncFinished implements the DirtyBlockCache interface for // DirtyBlockCacheStandard.
{ "resource": "" }