_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c17200
train
//pretty much copy the json code from here.
{ "resource": "" }
c17201
train
// Publish a message to a redis server.
{ "resource": "" }
c17202
train
// DigestSHA256Sum uses SHA256 digest to create the key which is the default behaviour since OpenSSL 1.1.0c
{ "resource": "" }
c17203
train
// EncryptBytes encrypts a slice of bytes that are base64 encoded in a manner compatible to OpenSSL encryption // functions using AES-256-CBC as encryption algorithm. This function generates // a random salt on every execution.
{ "resource": "" }
c17204
train
// EncryptBinaryBytes encrypts a slice of bytes in a manner compatible to OpenSSL encryption // functions using AES-256-CBC as encryption algorithm. This function generates // a random salt on every execution.
{ "resource": "" }
c17205
train
// MustGenerateSalt is a wrapper around GenerateSalt which will panic on an error. // This allows you to use this function as a parameter to EncryptBytesWithSaltAndDigestFunc
{ "resource": "" }
c17206
train
// pkcs7Unpad returns slice of the original data without padding.
{ "resource": "" }
c17207
train
// Setns sets namespace using syscall. Note that this should be a method // in syscall but it has not been added.
{ "resource": "" }
c17208
train
// New creates a new network namespace and returns a handle to it.
{ "resource": "" }
c17209
train
// GetFromPath gets a handle to a network namespace // identified by the path
{ "resource": "" }
c17210
train
// GetFromThread gets a handle to the network namespace of a given pid and tid.
{ "resource": "" }
c17211
train
// GetFromDocker gets a handle to the network namespace of a docker container. // Id is prefixed matched against the running docker containers, so a short // identifier can be used as long as it isn't ambiguous.
{ "resource": "" }
c17212
train
// Equal determines if two network handles refer to the same network // namespace. This is done by comparing the device and inode that the // file descriptors point to.
{ "resource": "" }
c17213
train
// String shows the file descriptor number and its dev and inode.
{ "resource": "" }
c17214
train
// ParseInt parse hex string value to int
{ "resource": "" }
c17215
train
// ParseBigInt parse hex string value to big.Int
{ "resource": "" }
c17216
train
// BigToHex covert big.Int to hexadecimal representation
{ "resource": "" }
c17217
train
// MarshalJSON implements the json.Unmarshaler interface.
{ "resource": "" }
c17218
train
// New create new rpc client with given url
{ "resource": "" }
c17219
train
// NewEthRPC create new rpc client with given url
{ "resource": "" }
c17220
train
// Call returns raw response of method call
{ "resource": "" }
c17221
train
// Web3ClientVersion returns the current client version.
{ "resource": "" }
c17222
train
// NetVersion returns the current network protocol version.
{ "resource": "" }
c17223
train
// NetListening returns true if client is actively listening for network connections.
{ "resource": "" }
c17224
train
// EthProtocolVersion returns the current ethereum protocol version.
{ "resource": "" }
c17225
train
// EthSyncing returns an object with data about the sync status or false.
{ "resource": "" }
c17226
train
// EthCoinbase returns the client coinbase address
{ "resource": "" }
c17227
train
// EthMining returns true if client is actively mining new blocks.
{ "resource": "" }
c17228
train
// EthGasPrice returns the current price per gas in wei.
{ "resource": "" }
c17229
train
// EthAccounts returns a list of addresses owned by client.
{ "resource": "" }
c17230
train
// EthBlockNumber returns the number of most recent block.
{ "resource": "" }
c17231
train
// EthGetBalance returns the balance of the account of given address in wei.
{ "resource": "" }
c17232
train
// EthGetStorageAt returns the value from a storage position at a given address.
{ "resource": "" }
c17233
train
// EthGetTransactionCount returns the number of transactions sent from an address.
{ "resource": "" }
c17234
train
// EthGetBlockTransactionCountByHash returns the number of transactions in a block from a block matching the given block hash.
{ "resource": "" }
c17235
train
// EthGetBlockTransactionCountByNumber returns the number of transactions in a block from a block matching the given block
{ "resource": "" }
c17236
train
// EthGetCode returns code at a given address.
{ "resource": "" }
c17237
train
// EthSendTransaction creates new message call transaction or a contract creation, if the data field contains code.
{ "resource": "" }
c17238
train
// EthSendRawTransaction creates new message call transaction or a contract creation for signed transactions.
{ "resource": "" }
c17239
train
// EthCall executes a new message call immediately without creating a transaction on the block chain.
{ "resource": "" }
c17240
train
// EthEstimateGas makes a call or transaction, which won't be added to the blockchain and returns the used gas, which can be used for estimating the used gas.
{ "resource": "" }
c17241
train
// EthGetBlockByHash returns information about a block by hash.
{ "resource": "" }
c17242
train
// EthGetBlockByNumber returns information about a block by block number.
{ "resource": "" }
c17243
train
// EthGetTransactionByHash returns the information about a transaction requested by transaction hash.
{ "resource": "" }
c17244
train
// EthGetTransactionByBlockHashAndIndex returns information about a transaction by block hash and transaction index position.
{ "resource": "" }
c17245
train
// EthGetTransactionByBlockNumberAndIndex returns information about a transaction by block number and transaction index position.
{ "resource": "" }
c17246
train
// EthGetTransactionReceipt returns the receipt of a transaction by transaction hash. // Note That the receipt is not available for pending transactions.
{ "resource": "" }
c17247
train
// EthGetCompilers returns a list of available compilers in the client.
{ "resource": "" }
c17248
train
// EthNewFilter creates a new filter object.
{ "resource": "" }
c17249
train
// EthNewBlockFilter creates a filter in the node, to notify when a new block arrives. // To check if the state has changed, call EthGetFilterChanges.
{ "resource": "" }
c17250
train
// EthNewPendingTransactionFilter creates a filter in the node, to notify when new pending transactions arrive. // To check if the state has changed, call EthGetFilterChanges.
{ "resource": "" }
c17251
train
// EthUninstallFilter uninstalls a filter with given id.
{ "resource": "" }
c17252
train
// EthGetFilterChanges polling method for a filter, which returns an array of logs which occurred since last poll.
{ "resource": "" }
c17253
train
// EthGetLogs returns an array of all logs matching a given filter object.
{ "resource": "" }
c17254
train
// WithHttpClient set custom http client
{ "resource": "" }
c17255
train
// WithLogger set custom logger
{ "resource": "" }
c17256
train
// WithDebug set debug flag
{ "resource": "" }
c17257
train
// Flag is shorthand for CommandLine.Flag.
{ "resource": "" }
c17258
train
// FlagLong is shorthand for CommandLine.LongFlag.
{ "resource": "" }
c17259
train
// Flag calls FlagLong with only a short flag name.
{ "resource": "" }
c17260
train
// genericValue returns the object underlying the generic Value v, or nil if v // is not a generic Value.
{ "resource": "" }
c17261
train
// Uint64 creates an option that parses its value as a uint64.
{ "resource": "" }
c17262
train
// List creates an option that returns a slice of strings. The parameters // passed are converted from a comma seperated value list into a slice. // Subsequent occurrences append to the list.
{ "resource": "" }
c17263
train
// ListVar creats a list option and places the values in p. If p is pointing // to a list of values then those are considered the default values. The first // time name is seen in the options the list will be set to list specified by // the parameter to the option. Subsequent instances of the option will append // t...
{ "resource": "" }
c17264
train
// Var creates an option of the specified name. The type and value of the option // are represented by the first argument, of type Value, which typically holds a // user-defined implementation of Value. All options are ultimately created // as a Var.
{ "resource": "" }
c17265
train
// Uint16 creates an option that parses its value as an uint16.
{ "resource": "" }
c17266
train
// List creates an option that returns a slice of strings. The parameters // passed are converted from a comma separated value list into a slice. // Subsequent occurrences append to the list.
{ "resource": "" }
c17267
train
// Int32 creates an option that parses its value as an int32.
{ "resource": "" }
c17268
train
// Int creates an option that parses its value as an integer.
{ "resource": "" }
c17269
train
// Int16 creates an option that parses its value as a 16 bit integer.
{ "resource": "" }
c17270
train
// Int64 creates an option that parses its value as a 64 bit integer.
{ "resource": "" }
c17271
train
// Uint creates an option that parses its value as an unsigned integer.
{ "resource": "" }
c17272
train
// Uint32 creates an option that parses its value as a 32 bit unsigned integer.
{ "resource": "" }
c17273
train
// PrintUsage prints the usage line and set of options of set S to w.
{ "resource": "" }
c17274
train
// UsageLine returns the usage line for the set s. The set's program name and // parameters, if any, are not included.
{ "resource": "" }
c17275
train
// breakup breaks s up into strings no longer than max bytes.
{ "resource": "" }
c17276
train
// Parse uses Getopt to parse args using the options set for s. The first // element of args is used to assign the program for s if it is not yet set. On // error, Parse displays the error message as well as a usage message on // standard error and then exits the program.
{ "resource": "" }
c17277
train
// PrintUsage prints the usage of the program to w.
{ "resource": "" }
c17278
train
// New returns a newly created option set.
{ "resource": "" }
c17279
train
// Visit visits the options in s in lexicographical order, calling fn // for each. It visits only those options that have been set.
{ "resource": "" }
c17280
train
// VisitAll visits the command-line flags in lexicographical order, calling fn // for each. It visits all flags, even those not set.
{ "resource": "" }
c17281
train
// String returns a value option that stores is value as a string. The // initial value of the string is passed in value.
{ "resource": "" }
c17282
train
// init initializes thisPackage to our full package with the trailing . // included.
{ "resource": "" }
c17283
train
// calledFrom returns a string containing the file and linenumber of the first // stack frame above us that is not part of this package and is not a test. // This is used to determine where a flag was initialized.
{ "resource": "" }
c17284
train
// unknownOption returns an Error indicating an unknown option was // encountered.
{ "resource": "" }
c17285
train
// missingArg returns an Error inidicating option o was not passed // a required paramter.
{ "resource": "" }
c17286
train
// extraArg returns an Error inidicating option o was passed the // unexpected paramter value.
{ "resource": "" }
c17287
train
// setError returns an Error inidicating option o and the specified // error while setting it to value.
{ "resource": "" }
c17288
train
// Enum creates an option that can only be set to one of the enumerated strings // passed in values. Passing nil or an empty slice results in an option that // will always fail.
{ "resource": "" }
c17289
train
// Duration creates an option that parses its value as a time.Duration.
{ "resource": "" }
c17290
train
// sortName returns the name to sort the option on.
{ "resource": "" }
c17291
train
// Reset rests an option so that it appears it has not yet been seen.
{ "resource": "" }
c17292
train
// AddOption add the option o to set s if o is not already in set s.
{ "resource": "" }
c17293
train
// WithTTL sets the cache TTL
{ "resource": "" }
c17294
train
// isValid checks if the service is valid
{ "resource": "" }
c17295
train
// cp copies a service. Because we're caching handing back pointers would // create a race condition, so we do this instead its fast enough
{ "resource": "" }
c17296
train
// run starts the cache watcher loop // it creates a new watcher if there's a problem
{ "resource": "" }
c17297
train
// watch loops the next event and calls update // it returns if there's an error
{ "resource": "" }
c17298
train
// New returns a new cache
{ "resource": "" }
c17299
train
// ListAppEvents returns all app events based on eventType
{ "resource": "" }