_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c160000
train
// computeFreshLoad computes a shopping list from a fresh load of the state.
{ "resource": "" }
c160001
train
// applicationsToString converts the list of applications to a comma-separated string.
{ "resource": "" }
c160002
train
// generationsToString converts the list of generations to a comma-separated string.
{ "resource": "" }
c160003
train
// makeHTTPRequest hits the HTTP GET endpoint for the team data.
{ "resource": "" }
c160004
train
// checkPrevs checks the previous pointers on the new links that came down from the server. It // only checks prevs for links that are newer than the last link gotten in this chain. // We assume the rest are expanding hashes for links we've previously downloaded.
{ "resource": "" }
c160005
train
// audit runs probabilistic merkle tree audit on the new links, to make sure that the server isn't // running odd-even-style attacks against members in a group.
{ "resource": "" }
c160006
train
// readMerkleRoot reads the merkle root out of the link if this link is unstubbed.
{ "resource": "" }
c160007
train
// readPerTeamKey reads a PerTeamKey section, if it exists, out of the given unpacked chainlink.
{ "resource": "" }
c160008
train
// putLinks takes the links we just downloaded from the server, and stores them to the state. // It also fills in unstubbed fields for those links that have come back with payloads that // were previously stubbed. There are several error cases that can come up, when reading down // or up pointers from the reply.
{ "resource": "" }
c160009
train
// putRKMs stores the new reader key masks loaded from the server to the state structure.
{ "resource": "" }
c160010
train
// putSeeds stores the crypto seeds to the PeterTeamKeySeedsUnverified slot of the state. It returns // the last n seeds, counting backwards. We exploit this fact to infer the seed generations from their // order.
{ "resource": "" }
c160011
train
// mutateState takes the groceries fetched from the server and applies them to our current state.
{ "resource": "" }
c160012
train
// makeState does a clone on a non-nil state, or makes a new state if nil.
{ "resource": "" }
c160013
train
// updateCache puts the new version of the state into the cache on the team's ID.
{ "resource": "" }
c160014
train
// loadLocked is the inner loop for loading team. Should be called when holding the lock // this teamID.
{ "resource": "" }
c160015
train
// OnLogout is called when the user logs out, which purges the LRU.
{ "resource": "" }
c160016
train
// Discover which named TTY we have open as FD=0. Will return empty string if nothing // was found, and a non-nil error if there was a problem. Will noop on Windows.
{ "resource": "" }
c160017
train
// KeybaseServiceStatus returns service status for Keybase service
{ "resource": "" }
c160018
train
// KBFSServiceStatus returns service status for KBFS
{ "resource": "" }
c160019
train
// UpdaterServiceStatus returns service status for the Updater service
{ "resource": "" }
c160020
train
// ListServices returns status for all services
{ "resource": "" }
c160021
train
// DefaultLaunchdEnvVars returns default environment vars for launchd
{ "resource": "" }
c160022
train
// DefaultUpdaterLabel returns the default label for the update service in launchd
{ "resource": "" }
c160023
train
// NewServiceLabel constructs a service label
{ "resource": "" }
c160024
train
// ComponentName returns the component name for a service label
{ "resource": "" }
c160025
train
// ServiceStatus returns status for a service named by label
{ "resource": "" }
c160026
train
// InstallAuto installs everything it can without asking for privileges or // extensions. If the user has already installed Fuse, we install everything.
{ "resource": "" }
c160027
train
// InstallService installs the launchd service
{ "resource": "" }
c160028
train
// InstallKBFS installs the KBFS launchd service
{ "resource": "" }
c160029
train
// InstallKBNM installs the Keybase NativeMessaging whitelist
{ "resource": "" }
c160030
train
// UninstallKBFS uninstalls all KBFS services, unmounts and optionally removes the mount directory
{ "resource": "" }
c160031
train
// AutoInstallWithStatus runs the auto install and returns a result
{ "resource": "" }
c160032
train
// AutoInstall runs the auto install
{ "resource": "" }
c160033
train
// isPathInDMG errors if the path is inside dmg
{ "resource": "" }
c160034
train
// OSVersion returns the OS version
{ "resource": "" }
c160035
train
// InstallUpdater installs the updater launchd service
{ "resource": "" }
c160036
train
// UninstallUpdaterService removes updater launchd service
{ "resource": "" }
c160037
train
// RunApp starts the app
{ "resource": "" }
c160038
train
// SimpleSign signs the given data stream, outputs an armored string which is // the attached signature of the input data
{ "resource": "" }
c160039
train
// MakeRandomTLFCryptKeyServerHalf generates the server-side of a // top-level folder crypt key.
{ "resource": "" }
c160040
train
// MakeTLFCryptKeyServerHalfID creates a unique ID for this particular // TLFCryptKeyServerHalf.
{ "resource": "" }
c160041
train
// VerifyTLFCryptKeyServerHalfID verifies the ID is the proper HMAC result.
{ "resource": "" }
c160042
train
// DecryptTLFCryptKeyClientHalf decrypts a // TLFCryptKeyClientHalf using the given device private key // and the TLF's ephemeral public key.
{ "resource": "" }
c160043
train
// MakeRandomTLFCryptKey returns a random top-level folder crypt key.
{ "resource": "" }
c160044
train
// MakeRandomBlockCryptKeyServerHalf generates the server-side of a // block crypt key.
{ "resource": "" }
c160045
train
// ParseBlockCryptKeyServerHalf returns a BlockCryptKeyServerHalf // containing the given hex-encoded data, or an error.
{ "resource": "" }
c160046
train
// MaskTLFCryptKey returns the client side of a top-level folder crypt // key.
{ "resource": "" }
c160047
train
// UnmaskTLFCryptKey returns the top-level folder crypt key.
{ "resource": "" }
c160048
train
// UnmaskBlockCryptKey returns the block crypt key.
{ "resource": "" }
c160049
train
// MakeBlockHashKey makes a key used for encryption and decryption for // the v2 block encryption scheme.
{ "resource": "" }
c160050
train
// Do decides whether to block on a fetch, launch a background fetch // and use existing cached value, or simply use the existing cached // value with no more fetching. The caller can provide a positive // tolerance, to accept stale LimitBytes and UsageBytes data. If // tolerance is 0 or negative, this always makes a b...
{ "resource": "" }
c160051
train
// NewUnwrappedFS returns a new FS instance, chroot'd to the given TLF // and subdir within that TLF, but all the nodes are unwrapped. // `subdir` must exist, and point to a directory, before this function // is called. `uniqID` needs to uniquely identify this instance among // all users of this TLF globally; for exam...
{ "resource": "" }
c160052
train
// lookupOrCreateEntryNoFollow looks up the entry for a file in a // given parent node. If the entry is a symlink, it will return a nil // Node and a nil error. If the entry doesn't exist and O_CREATE is // set in `flag`, it will create the entry as a file.
{ "resource": "" }
c160053
train
// lookupParentWithDepth looks up the parent node of the given // filename. It follows symlinks in the path, but doesn't resolve the // final base name. If `exitEarly` is true, it returns on the first // not-found error and `base` will contain the subpath of filename not // yet found.
{ "resource": "" }
c160054
train
// OpenFile implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160055
train
// Create implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160056
train
// Open implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160057
train
// Stat implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160058
train
// Rename implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160059
train
// Remove implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160060
train
// Join implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160061
train
// TempFile implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160062
train
// ReadDir implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160063
train
// MkdirAll implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160064
train
// Lstat implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160065
train
// Symlink implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160066
train
// Readlink implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160067
train
// Chmod implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160068
train
// Chown implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160069
train
// Chtimes implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160070
train
// Chroot implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160071
train
// Root implements the billy.Filesystem interface for FS.
{ "resource": "" }
c160072
train
// SyncAll syncs any outstanding buffered writes to the KBFS journal.
{ "resource": "" }
c160073
train
// SetLockNamespace sets the namespace used in locking.
{ "resource": "" }
c160074
train
// ShowPendingRekeyStatus shows either pending gregor-initiated rekey harassments // or nothing if none were pending.
{ "resource": "" }
c160075
train
// GetPendingRekeyStatus returns the pending ProblemSetDevices.
{ "resource": "" }
c160076
train
// DebugShowRekeyStatus is used by the CLI to kick off a "ShowRekeyStatus" window for // the current user.
{ "resource": "" }
c160077
train
// RekeyStatusFinish is called when work is completed on a given RekeyStatus window. The Outcome // can be Fixed or Ignored.
{ "resource": "" }
c160078
train
// RekeySync flushes the current rekey loop and gets to a good stopping point // to assert state. Good for race-free testing, not very useful in production. // Force overrides a long-snooze.
{ "resource": "" }
c160079
train
// GetRevokeWarning computes the TLFs that will be endangered if actingDevice // revokes targetDevice.
{ "resource": "" }
c160080
train
// FileVersion concatenates FileVersionMS and FileVersionLS to a uint64 value.
{ "resource": "" }
c160081
train
// Performs self provision. If the current device is clone, this function // will provision it as a new device.
{ "resource": "" }
c160082
train
// LogTagsFromContext returns the log tags being passed along with the // given context.
{ "resource": "" }
c160083
train
// ConvertRPCTagsToLogTags takes any RPC tags in the context and makes // them log tags. It uses the string representation of the tag key, // rather than the original uniquely typed key, since the latter isn't // available in the RPC tags.
{ "resource": "" }
c160084
train
// NewWithCallDepth creates a new Standard logger for module, and when // printing file names and line numbers, it goes extraCallDepth up the // stack from where logger was invoked.
{ "resource": "" }
c160085
train
// tail the logs that start with the stem `stem`, which are of type `which`. // Get the most recent `numBytes` from the concatenation of the files.
{ "resource": "" }
c160086
train
// findFirstNewline first the first newline in the given byte array, and then returns the // rest of the byte array. Should be safe to use on utf-8 strings.
{ "resource": "" }
c160087
train
// Get logs from the systemd journal. Currently we don't use this for most of // our logging, since it's not persisted across boot on some systems. But we do // use it for startup logs.
{ "resource": "" }
c160088
train
// LogSend sends the tails of log files to kb, and also the last // few trace output files.
{ "resource": "" }
c160089
train
// mergeExtendedStatus adds the extended status to the given status json blob. // If any errors occur the original status is returned unmodified.
{ "resource": "" }
c160090
train
// context returns the context stored in the protectedContext.
{ "resource": "" }
c160091
train
// upper bounds takes higher priority
{ "resource": "" }
c160092
train
// AggRateLimitsP takes a list of rate limit responses and dedups them to the last one received // of each category
{ "resource": "" }
c160093
train
// ReorderParticipants based on the order in activeList. // Only allows usernames from tlfname in the output. // This never fails, worse comes to worst it just returns the split of tlfname.
{ "resource": "" }
c160094
train
// Drive splitAndNormalizeTLFName with one attempt to follow TlfNameNotCanonical.
{ "resource": "" }
c160095
train
// GetConversationStatusBehavior gives information about what is allowed for a conversation status. // When changing these, be sure to update gregor's postMessage as well
{ "resource": "" }
c160096
train
// Which convs show in the inbox.
{ "resource": "" }
c160097
train
// FilterByType filters messages based on a query. // If includeAllErrors then MessageUnboxedError are all returned. Otherwise, they are filtered based on type. // Messages whose type cannot be determined are considered errors.
{ "resource": "" }
c160098
train
// GetSupersedes must be called with a valid msg
{ "resource": "" }
c160099
train
// Sender prefix for msg snippets. Will show if a conversation has > 2 members // or is of type TEAM
{ "resource": "" }