_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c27000
train
// UnsubscribeAll just stop listening for all messages
{ "resource": "" }
c27001
train
// Sets whether the CaptureLogger is forwarding log lines sent to it through // to its output logger. Concurrently safe.
{ "resource": "" }
c27002
train
// Gets whether the CaptureLogger is forwarding log lines sent to through to its // OutputLogger. Concurrently Safe.
{ "resource": "" }
c27003
train
// Dump an example logging configuration
{ "resource": "" }
c27004
train
// Create an InfoTraceLogger by passing the initial outputLogger.
{ "resource": "" }
c27005
train
// Hot swap the underlying outputLogger with another one to re-route messages
{ "resource": "" }
c27006
train
// Record structured Info lo`g line with a message
{ "resource": "" }
c27007
train
// Record structured Trace log line with a message
{ "resource": "" }
c27008
train
// Establish or extend the scope of this logger by appending scopeName to the Scope vector. // Like With the logging scope is append only but can be used to provide parenthetical scopes by hanging on to the // parent scope and using once the scope has been exited. The scope mechanism does is agnostic to the type of sco...
{ "resource": "" }
c27009
train
// Record a structured log line with a message
{ "resource": "" }
c27010
train
// unalignedAbsorb is a helper function for Write, which absorbs data that isn't aligned with an // 8-byte lane. This requires shifting the individual bytes into position in a uint64.
{ "resource": "" }
c27011
train
// Sum applies padding to the hash state and then squeezes out the desired nubmer of output bytes.
{ "resource": "" }
c27012
train
// Lifecycle provides a canonical source for burrow loggers. Components should use the functions here // to set up their root logger and capture any other logging output. // Obtain a logger from a LoggingConfig
{ "resource": "" }
c27013
train
// Hot swap logging config by replacing output loggers of passed InfoTraceLogger // with those built from loggingConfig
{ "resource": "" }
c27014
train
// MergeAbiSpec takes multiple AbiSpecs and merges them into once structure. Note that // the same function name or event name can occur in different abis, so there might be // some information loss.
{ "resource": "" }
c27015
train
// UnpackRevert decodes the revert reason if a contract called revert. If no // reason was given, message will be nil else it will point to the string
{ "resource": "" }
c27016
train
// quick helper padding
{ "resource": "" }
c27017
train
// Gets the permission value. // ErrValueNotSet is returned if the permission's set bits are not all on, // and should be caught by caller so the global permission can be fetched
{ "resource": "" }
c27018
train
// Set a permission bit. Will set the permission's set bit to true.
{ "resource": "" }
c27019
train
// Set the permission's set bits to false
{ "resource": "" }
c27020
train
// Check if the permission is set
{ "resource": "" }
c27021
train
// Returns a BasePermission that matches any permissions set on this BasePermission // and falls through to any permissions set on the bpFallthrough
{ "resource": "" }
c27022
train
// NewKernel initializes an empty kernel
{ "resource": "" }
c27023
train
// SetLogger initializes the kernel with the provided logger
{ "resource": "" }
c27024
train
// LoadState starts from scratch or previous chain
{ "resource": "" }
c27025
train
// LoadDump restores chain state from the given dump file
{ "resource": "" }
c27026
train
// GetNodeView builds and returns a wrapper of our tendermint node
{ "resource": "" }
c27027
train
// AddExecutionOptions extends our execution options
{ "resource": "" }
c27028
train
// AddProcesses extends the services that we launch at boot
{ "resource": "" }
c27029
train
// Boot the kernel starting Tendermint and RPC layers
{ "resource": "" }
c27030
train
// Supervise kernel once booted
{ "resource": "" }
c27031
train
// Shutdown stops the kernel allowing for a graceful shutdown of components in order
{ "resource": "" }
c27032
train
// Runs an individual nametx.
{ "resource": "" }
c27033
train
// decodeEvent unpacks & decodes event data
{ "resource": "" }
c27034
train
// Wraps a cache of what is variously known as the 'check cache' and 'mempool'
{ "resource": "" }
c27035
train
// Commit the current state - optionally pass in the tendermint ABCI header for that to be included with the BeginBlock // StreamEvent
{ "resource": "" }
c27036
train
// Capture public keys and update sequence numbers
{ "resource": "" }
c27037
train
// PublicKey extensions // Return the ABCI PubKey. See Tendermint protobuf.go for the go-crypto conversion this is based on
{ "resource": "" }
c27038
train
// SpecLoader loads spec files and parses them
{ "resource": "" }
c27039
train
// getBlockTxTablesDefinition returns block & transaction structures
{ "resource": "" }
c27040
train
// DecodeFunctionReturnFromFile ABI decodes the return value from a contract function call.
{ "resource": "" }
c27041
train
// LoadPath loads one abi file or finds all files in a directory
{ "resource": "" }
c27042
train
// Pass -1 to get all available transactions
{ "resource": "" }
c27043
train
// Files here can be used as starting points for building various 'chain types' but are otherwise // a fairly unprincipled collection of GenesisSpecs that we find useful in testing and development
{ "resource": "" }
c27044
train
// Merge accounts by adding to base list or updating previously named account
{ "resource": "" }
c27045
train
// return addr from name or addr
{ "resource": "" }
c27046
train
// RunPlaybooks starts workers, and loads the playbooks in parallel in the workers, and executes them.
{ "resource": "" }
c27047
train
// LoadOrNewBlockchain returns true if state already exists
{ "resource": "" }
c27048
train
// NewBlockchain returns a pointer to blockchain state initialised from genesis
{ "resource": "" }
c27049
train
// IsNumeric determines if an sqlColumnType is numeric
{ "resource": "" }
c27050
train
// ConvertMapStringIntToPermissions converts a map of string-bool pairs and a slice of // strings for the roles to an AccountPermissions type. If the value in the // permissions map is true for a particular permission string then the permission // will be set in the AccountsPermissions. For all unmentioned permissions ...
{ "resource": "" }
c27051
train
// convertPermissionsMapStringIntToBasePermissions converts a map of string-bool // pairs to BasePermissions.
{ "resource": "" }
c27052
train
// Builds a composite BasePermission by creating a PermFlag from permissions strings and // setting them all
{ "resource": "" }
c27053
train
// Builds a composite PermFlag by mapping each permission string in permissions to its // flag and composing them with binary or
{ "resource": "" }
c27054
train
// Creates a list of individual permission flag strings from a possibly composite PermFlag // by projecting out each bit and adding its permission string if it is set
{ "resource": "" }
c27055
train
// Service provides an internal query and information service with serialisable return types on which can accomodate // a number of transport front ends
{ "resource": "" }
c27056
train
// Returns the current blockchain height and metadata for a range of blocks // between minHeight and maxHeight. Only returns maxBlockLookback block metadata // from the top of the range of blocks. // Passing 0 for maxHeight sets the upper height of the range to the current // blockchain height.
{ "resource": "" }
c27057
train
// Generates deterministic pseudo-random genesis state
{ "resource": "" }
c27058
train
// GovTx provides a set of TemplateAccounts and GovernanceContext tries to alter the chain state to match the // specification given
{ "resource": "" }
c27059
train
// findTable checks if a table exists in the default schema
{ "resource": "" }
c27060
train
// getTableDef returns the structure of a given SQL table
{ "resource": "" }
c27061
train
// alterTable alters the structure of a SQL table & add info to the dictionary
{ "resource": "" }
c27062
train
// createTable creates a new table
{ "resource": "" }
c27063
train
// getSelectQuery builds a select query for a specific SQL table and a given block
{ "resource": "" }
c27064
train
// getBlockTables return all SQL tables that have been involved // in a given batch transaction for a specific block
{ "resource": "" }
c27065
train
// safe sanitizes a parameter
{ "resource": "" }
c27066
train
//getJSON returns marshaled json from JSON single column
{ "resource": "" }
c27067
train
//getJSONFromValues returns marshaled json from query values
{ "resource": "" }
c27068
train
//getValuesFromJSON returns query values from unmarshaled JSON column
{ "resource": "" }
c27069
train
// Wraps any error as a Exception
{ "resource": "" }
c27070
train
// Currently this is a stub that reads the raw bytes returned by key_client and returns // an ed25519 public key.
{ "resource": "" }
c27071
train
// Reinitialise after serialisation
{ "resource": "" }
c27072
train
// Ensures the last 32 bytes of the ed25519 private key is the public key derived from the first 32 private bytes
{ "resource": "" }
c27073
train
// These function match those used in Hoard // Put data in the database by saving data with a key that is its sha256 hash
{ "resource": "" }
c27074
train
// Push a path sequence of sinks onto the stack
{ "resource": "" }
c27075
train
// NewConsumer constructs a new consumer configuration. // The event channel will be passed a collection of rows generated from all of the events in a single block // It will be closed by the consumer when it is finished
{ "resource": "" }
c27076
train
// Health returns the health status for the consumer
{ "resource": "" }
c27077
train
// Shutdown gracefully shuts down the events consumer
{ "resource": "" }
c27078
train
// NewBlockData returns a pointer to an empty BlockData structure
{ "resource": "" }
c27079
train
// AddRow appends a row to a specific table name in structure
{ "resource": "" }
c27080
train
// GetRows gets data rows for a given table name from structure
{ "resource": "" }
c27081
train
// PendingRows returns true if the given block has at least one pending row to upsert
{ "resource": "" }
c27082
train
// Get a new DynamicMemory (note that although we take a maximumCapacity of uint64 we currently // limit the maximum to int32 at runtime because we are using a single slice which we cannot guarantee // to be indexable above int32 or all validators
{ "resource": "" }
c27083
train
// Run a contract's code on an isolated and unpersisted state // Cannot be used to create new contracts
{ "resource": "" }
c27084
train
// Run the given code on an isolated and unpersisted state // Cannot be used to create new contracts.
{ "resource": "" }
c27085
train
// LoadKeysFromConfig sets the keyClient & keyStore based on the given config
{ "resource": "" }
c27086
train
// LoadLoggerFromConfig adds a logging configuration to the kernel
{ "resource": "" }
c27087
train
// LoadExecutionOptionsFromConfig builds the execution options for the kernel
{ "resource": "" }
c27088
train
// LoadTendermintFromConfig loads our consensus engine into the kernel
{ "resource": "" }
c27089
train
// LoadKernelFromConfig builds and returns a Kernel based solely on the supplied configuration
{ "resource": "" }
c27090
train
// Converts a possibly negative big int x into a positive big int encoding a twos complement representation of x // truncated to 32 bytes
{ "resource": "" }
c27091
train
// Treats the positive big int x as if it contains an embedded a back + 1 byte signed integer in its least significant // bits and extends that sign
{ "resource": "" }
c27092
train
// HealthCheck returns nil if the keys instance is healthy, error otherwise
{ "resource": "" }
c27093
train
// NewRemoteKeyClient returns a new keys client for provided rpc location
{ "resource": "" }
c27094
train
// NewLocalKeyClient returns a new keys client, backed by the local filesystem
{ "resource": "" }
c27095
train
// AddressableSigner creates a signer that assumes the address holds an Ed25519 key
{ "resource": "" }
c27096
train
// Open connects to a SQLiteQL database, opens it & create default schema if provided
{ "resource": "" }
c27097
train
// AlterColumnQuery returns a query for adding a new column to a table
{ "resource": "" }
c27098
train
// Returns the string name of a single bit non-composite PermFlag, or otherwise UnknownString // See BasePermissionsToStringList to generate a string representation of a composite PermFlag
{ "resource": "" }
c27099
train
// PermStringToFlag maps camel- and snake case strings to the // the corresponding permission flag.
{ "resource": "" }