_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c158500
train
// ConflictRenameHelper is a helper for ConflictRename especially useful from // tests.
{ "resource": "" }
c158501
train
// splitExtension splits filename into a base name and the extension.
{ "resource": "" }
c158502
train
// Preview creates preview assets from src. It returns an in-memory BufferSource // and the content type of the preview asset.
{ "resource": "" }
c158503
train
// previewVideoBlank previews a video by inserting a black rectangle with a play button on it.
{ "resource": "" }
c158504
train
// previewImage will resize a single-frame image.
{ "resource": "" }
c158505
train
// gifDuration returns the duration of one loop of an animated gif // in milliseconds.
{ "resource": "" }
c158506
train
// NewPGPKeyGen creates a PGPKeyGen engine.
{ "resource": "" }
c158507
train
// NotifyTrackingSuccess notifies listeners that a target user has been found to satisfy tracking. // This could be through // - An identify call that heeded the active user's tracking of the target. // - A user tracked or untracked the target. // When the active user is the target all bets are off.
{ "resource": "" }
c158508
train
// Subscribe to notifications. // `unsubscribe` releases resources associated with the subscription and should be called asap.
{ "resource": "" }
c158509
train
// OnLogout drops all subscriptions.
{ "resource": "" }
c158510
train
// Returns empty name if not found
{ "resource": "" }
c158511
train
// If the daemon is already running, we need to be able to check what version // it is, in case the client has been updated.
{ "resource": "" }
c158512
train
// ReleaseLock releases the locking pidfile by closing, unlocking and // deleting it.
{ "resource": "" }
c158513
train
// GetExclusiveLock grabs the exclusive lock over running keybase // and then installs a shutdown hook to release the lock automatically // on shutdown.
{ "resource": "" }
c158514
train
// configurePath is a somewhat unfortunate hack, but as it currently stands, // when the keybase service is run out of launchd, its path is minimal and // often can't find the GPG location. We have hacks around this for CLI operation, // in which the CLI forwards its path to the service, and the service enlarges // its...
{ "resource": "" }
c158515
train
// tryLogin runs LoginOffline which will load the local session file and unlock the // local device keys without making any network requests. // // If that fails for any reason, LoginProvisionedDevice is used, which should get // around any issue where the session.json file is out of date or missing since the // last t...
{ "resource": "" }
c158516
train
// WriteExt implements the codec.Ext interface for ext.
{ "resource": "" }
c158517
train
// ReadExt implements the codec.Ext interface for ext.
{ "resource": "" }
c158518
train
// WriteExt implements the codec.Ext interface for extSlice.
{ "resource": "" }
c158519
train
// ReadExt implements the codec.Ext interface for extSlice.
{ "resource": "" }
c158520
train
// newCodecMsgpackHelper constructs a new CodecMsgpack that may or may // not handle unknown fields.
{ "resource": "" }
c158521
train
// Decode implements the Codec interface for CodecMsgpack
{ "resource": "" }
c158522
train
// Encode implements the Codec interface for CodecMsgpack
{ "resource": "" }
c158523
train
// RegisterType implements the Codec interface for CodecMsgpack
{ "resource": "" }
c158524
train
// RegisterIfaceSliceType implements the Codec interface for CodecMsgpack
{ "resource": "" }
c158525
train
// SaferDLLLoading sets DLL load path to be safer.
{ "resource": "" }
c158526
train
// NewFile returns a File
{ "resource": "" }
c158527
train
// NewKBFSService creates a new KBFSService.
{ "resource": "" }
c158528
train
// registerProtocols registers protocols for this KBFSService.
{ "resource": "" }
c158529
train
// handle creates a server on an established connection.
{ "resource": "" }
c158530
train
// listenLoop listens on a passed-in listener and calls `handle` for any // connection that is established on the listener.
{ "resource": "" }
c158531
train
// SetCurrentUID sets the current UID.
{ "resource": "" }
c158532
train
// Resolve implements the KeybaseService interface for DaemonLocal.
{ "resource": "" }
c158533
train
// Identify implements the KeybaseService interface for DaemonLocal.
{ "resource": "" }
c158534
train
// NormalizeSocialAssertion implements the KeybaseService interface // for DaemonLocal.
{ "resource": "" }
c158535
train
// ResolveImplicitTeamByID implements the KeybaseService interface // for DaemonLocal.
{ "resource": "" }
c158536
train
// LoadUserPlusKeys implements the KeybaseService interface for // DaemonLocal.
{ "resource": "" }
c158537
train
// LoadTeamPlusKeys implements the KeybaseService interface for // DaemonLocal.
{ "resource": "" }
c158538
train
// CreateTeamTLF implements the KeybaseService interface for // DaemonLocal.
{ "resource": "" }
c158539
train
// GetTeamSettings implements the KeybaseService interface for // DaemonLocal.
{ "resource": "" }
c158540
train
// GetCurrentMerkleRoot implements the MerkleRootGetter interface for // DaemonLocal.
{ "resource": "" }
c158541
train
// VerifyMerkleRoot implements the MerkleRootGetter interface for // DaemonLocal.
{ "resource": "" }
c158542
train
// SetCurrentMerkleRoot is a helper function, useful for tests, to set // the current Merkle root.
{ "resource": "" }
c158543
train
// CurrentSession implements the KeybaseService interface for // DaemonLocal.
{ "resource": "" }
c158544
train
// GetLocalUser returns the `LocalUser` object for the given UID.
{ "resource": "" }
c158545
train
// SetLocalUser sets the `LocalUser` object for the given UID.
{ "resource": "" }
c158546
train
// GetIDForAssertion returns the UID associated with the given // assertion.
{ "resource": "" }
c158547
train
// GetLocalUsers returns all of the users tracked by this daemon.
{ "resource": "" }
c158548
train
// NewDaemonLocal constructs a new DaemonLocal, initialized to contain // the given users and teams.
{ "resource": "" }
c158549
train
// NewHandle returns a simple new Handle based on the given fields. // This is probably most useful for testing.
{ "resource": "" }
c158550
train
// IsWriter returns whether or not the given user is a writer for the // top-level folder represented by this TlfHandle.
{ "resource": "" }
c158551
train
// IsReader returns whether or not the given user is a reader for the // top-level folder represented by this TlfHandle.
{ "resource": "" }
c158552
train
// ResolvedUsersMap returns a map of resolved users from uid to usernames.
{ "resource": "" }
c158553
train
// ResolvedWriters returns the handle's resolved writer IDs in sorted // order.
{ "resource": "" }
c158554
train
// ResolvedReaders returns the handle's resolved reader IDs in sorted // order. If the handle is public, nil will be returned.
{ "resource": "" }
c158555
train
// UnresolvedWriters returns the handle's unresolved writers in sorted // order.
{ "resource": "" }
c158556
train
// UnresolvedReaders returns the handle's unresolved readers in sorted // order. If the handle is public, nil will be returned.
{ "resource": "" }
c158557
train
// ConflictInfo returns the handle's conflict info, if any.
{ "resource": "" }
c158558
train
// FinalizedInfo returns the handle's finalized info, if any.
{ "resource": "" }
c158559
train
// SetResolvedWriter resolves the given `id` to the given `name`. // Useful for testing.
{ "resource": "" }
c158560
train
// EqualsIgnoreName returns whether h and other contain the same info ignoring the name.
{ "resource": "" }
c158561
train
// Equals returns whether h and other contain the same info.
{ "resource": "" }
c158562
train
// ToBareHandle returns a tlf.Handle corresponding to this handle.
{ "resource": "" }
c158563
train
// ToBareHandleOrBust returns a tlf.Handle corresponding to this // handle, and panics if there's an error. Used by tests.
{ "resource": "" }
c158564
train
// DeepCopy makes a deep copy of this `Handle`.
{ "resource": "" }
c158565
train
// GetCanonicalName returns the canonical name of this TLF.
{ "resource": "" }
c158566
train
// ToFavorite converts a TlfHandle into a Favorite, suitable for // Favorites calls.
{ "resource": "" }
c158567
train
// FavoriteData converts a TlfHandle into FavoriteData, suitable for // Favorites calls.
{ "resource": "" }
c158568
train
// ToFavToAdd converts a TlfHandle into a Favorite to be added, and // sets internal state about whether the corresponding folder was just // created or not.
{ "resource": "" }
c158569
train
// CheckHandleOffline does light checks whether a TLF handle looks ok, // it avoids all network calls.
{ "resource": "" }
c158570
train
// GetPreferredFormat returns a TLF name formatted with the username given // as the parameter first. // This calls tlf.CanonicalToPreferredName with the canonical // tlf name which will be reordered into the preferred format. // An empty username is allowed here and results in the canonical ordering.
{ "resource": "" }
c158571
train
// IsSeitany is a very conservative check of whether a given string looks // like a Seitan token. We want to err on the side of considering strings // Seitan tokens, since we don't mistakenly want to send botched Seitan // tokens to the server.
{ "resource": "" }
c158572
train
// ParseIKeyV2FromString safely creates SeitanIKey value from // plaintext string. Only format is checked - any 18-character token // with '+' character at position 6 can be "Invite Key". Alphabet is // not checked, as it is only a hint for token generation and it can // change over time, but we assume that token lengt...
{ "resource": "" }
c158573
train
// findKeybaseBinary returns the path to a Keybase binary, if it finds it.
{ "resource": "" }
c158574
train
// StripRevocations returns a copy of the key with revocations removed
{ "resource": "" }
c158575
train
// firstPrivateKey scans s for a private key block.
{ "resource": "" }
c158576
train
// ReadPrivateKeyFromString finds the first private key block in s // and decodes it into a PGPKeyBundle. It is useful in the case // where s contains multiple key blocks and you want the private // key block. For example, the result of gpg export.
{ "resource": "" }
c158577
train
// XXX for now this is OK but probably we need a PGP uid parser // as in pgp-utils
{ "resource": "" }
c158578
train
// FindPGPPrivateKey checks if supposed secret key PGPKeyBundle // contains any valid PrivateKey entities. Sometimes primary private // key is stoopped out but there are subkeys with secret keys.
{ "resource": "" }
c158579
train
// CheckIdentity finds the foo_user@keybase.io PGP identity and figures out when it // was created and when it's slated to expire. We plan to start phasing out use of // PGP-specified Expiration times as far as sigchain walking is concerned. But for now, // there are a few places where it's still used (see ComputedKeyI...
{ "resource": "" }
c158580
train
// DecryptFromString fails for this type of key, since we haven't implemented it yet
{ "resource": "" }
c158581
train
// NewTrackHandler creates a TrackHandler for the xp transport.
{ "resource": "" }
c158582
train
// Track creates a TrackEngine and runs it.
{ "resource": "" }
c158583
train
// Untrack creates an UntrackEngine and runs it.
{ "resource": "" }
c158584
train
// NewSaltpackSign creates a SaltpackSign engine.
{ "resource": "" }
c158585
train
// getReminders gets the reminders waiting to be sent out as a batch. Get at most // maxReminders back.
{ "resource": "" }
c158586
train
// deleteReminders deletes all of the reminders by ReminderID
{ "resource": "" }
c158587
train
// sendRekeyEvent sends notification of a rekey event to the UI. It's largely // used for testing.
{ "resource": "" }
c158588
train
// currentDeviceSolvesProblemSet returns true if the current device can fix all // of the folders in the ProblemSet.
{ "resource": "" }
c158589
train
// Run the Delegator, performing all necessary internal operations. Return err // on failure and nil on success.
{ "resource": "" }
c158590
train
// MarshalText implements the encoding.TextMarshaler interface for ID.
{ "resource": "" }
c158591
train
// NewKeybaseDaemonRPC makes a new KeybaseDaemonRPC that makes RPC // calls using the socket of the given Keybase context.
{ "resource": "" }
c158592
train
// AddProtocols adds protocols that are registered on server connect
{ "resource": "" }
c158593
train
// Shutdown implements the KeybaseService interface for KeybaseDaemonRPC.
{ "resource": "" }
c158594
train
// newNotifyServiceHandler makes a new NotifyServiceHandler
{ "resource": "" }
c158595
train
// FavoritesChanged implements keybase1.NotifyFavoritesClient
{ "resource": "" }
c158596
train
// updateSemaphoreMax must be called whenever bt.used or bt.free // changes.
{ "resource": "" }
c158597
train
// newBackpressureDiskLimiter constructs a new backpressureDiskLimiter // with the given params.
{ "resource": "" }
c158598
train
// defaultDoDelay uses a timer to delay by the given duration.
{ "resource": "" }
c158599
train
// CreateWalletGated may create a wallet for the user. // Taking into account settings from the server. // It should be speedy to call repeatedly _if_ the user gets a wallet.
{ "resource": "" }