_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c28400
train
// Configure configures a global Jaeger tracer
{ "resource": "" }
c28401
train
// NewConfig creates a new config with a given viper config if given
{ "resource": "" }
c28402
train
// GetDuration returns a duration from the inner config
{ "resource": "" }
c28403
train
// GetString returns a string from the inner config
{ "resource": "" }
c28404
train
// GetInt returns an int from the inner config
{ "resource": "" }
c28405
train
// GetBool returns an boolean from the inner config
{ "resource": "" }
c28406
train
// GetStringSlice returns a string slice from the inner config
{ "resource": "" }
c28407
train
// GetStringMapString returns a string map string from the inner config
{ "resource": "" }
c28408
train
// UnmarshalKey unmarshals key into v
{ "resource": "" }
c28409
train
// NewEtcdGroupService returns a new group instance
{ "resource": "" }
c28410
train
// GroupCreate creates a group struct inside ETCD, without TTL
{ "resource": "" }
c28411
train
// GroupCreateWithTTL creates a group struct inside ETCD, with TTL, using leaseID
{ "resource": "" }
c28412
train
// GroupContainsMember checks whether a UID is contained in current group or not
{ "resource": "" }
c28413
train
// GroupRemoveAll clears all UIDs in the group
{ "resource": "" }
c28414
train
// GroupRenewTTL will renew ETCD lease TTL
{ "resource": "" }
c28415
train
// Report sends periodic of worker reports
{ "resource": "" }
c28416
train
// Pcall calls a method that returns an interface and an error and recovers in case of panic
{ "resource": "" }
c28417
train
// SliceContainsString returns true if a slice contains the string
{ "resource": "" }
c28418
train
// SerializeOrRaw serializes the interface if its not an array of bytes already
{ "resource": "" }
c28419
train
// GetErrorPayload creates and serializes an error payload
{ "resource": "" }
c28420
train
// ConvertProtoToMessageType converts a protos.MsgType to a message.Type
{ "resource": "" }
c28421
train
// CtxWithDefaultLogger inserts a default logger on ctx to be used on handlers and remotes. // If using logrus, userId, route and requestId will be added as fields. // Otherwise the pitaya logger will be used as it is.
{ "resource": "" }
c28422
train
// GetContextFromRequest gets the context from a request
{ "resource": "" }
c28423
train
// SetStatusFlag sets the session server status variable. // If on is ture sets the flag in session status, // otherwise removes the flag.
{ "resource": "" }
c28424
train
// GetWarnings gets warnings.
{ "resource": "" }
c28425
train
// AppendWarning appends a warning.
{ "resource": "" }
c28426
train
// Clone clones TableInfo.
{ "resource": "" }
c28427
train
// Clone clones IndexInfo.
{ "resource": "" }
c28428
train
// Clone clones DBInfo.
{ "resource": "" }
c28429
train
// NewCIStr creates a new CIStr.
{ "resource": "" }
c28430
train
// Output concurrently collects outputs from previous step to the driver.
{ "resource": "" }
c28431
train
// Fprintf formats using the format for each row and writes to writer.
{ "resource": "" }
c28432
train
// Fprintlnf add "\n" at the end of each format
{ "resource": "" }
c28433
train
// Printf prints to os.Stdout in the specified format
{ "resource": "" }
c28434
train
// Printlnf prints to os.Stdout in the specified format, // adding an "\n" at the end of each format
{ "resource": "" }
c28435
train
// SaveFirstRowTo saves the first row's values into the operands.
{ "resource": "" }
c28436
train
// runStmt executes the ast.Statement and commit or rollback the current transaction.
{ "resource": "" }
c28437
train
// CoGroupPartitionedSorted joins 2 datasets that are sharded // by the same key and already locally sorted within each shard.
{ "resource": "" }
c28438
train
// NewAggFunction creates a new AggregationFunction.
{ "resource": "" }
c28439
train
// Equal implements AggregationFunction interface.
{ "resource": "" }
c28440
train
// Clear implements AggregationFunction interface.
{ "resource": "" }
c28441
train
// Error prints errors, with a formatted string.
{ "resource": "" }
c28442
train
// NewErr generates a SQL error, with an error code and default format specifier defined in MySQLErrName.
{ "resource": "" }
c28443
train
// NewErrf creates a SQL error, with an error code and a format specifier.
{ "resource": "" }
c28444
train
// DoLocalLimit streamingly get the n items starting from offset
{ "resource": "" }
c28445
train
// exprHasSetVar checks if the expression has set-var function. If do, we should not prune it.
{ "resource": "" }
c28446
train
// NewSegmentMap creates a new SegmentMap.
{ "resource": "" }
c28447
train
// GetSegment gets the map specific by index.
{ "resource": "" }
c28448
train
// Set if key not exists, returns whether already exists.
{ "resource": "" }
c28449
train
// GetStatusVars gets registered statistics status variables.
{ "resource": "" }
c28450
train
// tryToGetJoinGroup tries to fetch a whole join group, which all joins is cartesian join.
{ "resource": "" }
c28451
train
// walkGraph implements a dfs algorithm. Each time it picks a edge with lowest rate, which has been sorted before.
{ "resource": "" }
c28452
train
// FindCols finds columns in cols by names.
{ "resource": "" }
c28453
train
// CheckOnce checks if there are duplicated column names in cols.
{ "resource": "" }
c28454
train
// buildIndexRanges build index ranges from range points. // Only the first column in the index is built, extra column ranges will be appended by // appendIndexRanges.
{ "resource": "" }
c28455
train
// Less implements sort.Interface Less interface.
{ "resource": "" }
c28456
train
// Flush the buffer to file if it is full.
{ "resource": "" }
c28457
train
// Fetch the next row given the source file index.
{ "resource": "" }
c28458
train
// Perform external file sort.
{ "resource": "" }
c28459
train
// ToString returns the string representation for hexadecimal literal.
{ "resource": "" }
c28460
train
// Exec implements the ast.Statement Exec interface. // This function builds an Executor from a plan. If the Executor doesn't return result, // like the INSERT, UPDATE statements, it executes in this function, if the Executor returns // result, execution is done after this function returns, in the returned ast.RecordSe...
{ "resource": "" }
c28461
train
// Union union multiple Datasets as one Dataset
{ "resource": "" }
c28462
train
// Cleanup remove all files related to a particular flow
{ "resource": "" }
c28463
train
// Execute executes a request and stream stdout and stderr back
{ "resource": "" }
c28464
train
// Collect stat from "gleam execute" process
{ "resource": "" }
c28465
train
// Delete deletes a particular dataset shard
{ "resource": "" }
c28466
train
// may be more efficient to map stepId=>size
{ "resource": "" }
c28467
train
// DateDiff calculates number of days between two days.
{ "resource": "" }
c28468
train
// Handle escapes and wild cards convert pattern characters and pattern types.
{ "resource": "" }
c28469
train
// peeks the first encoded value from b and returns its length.
{ "resource": "" }
c28470
train
// Hint adds options for previous dataset.
{ "resource": "" }
c28471
train
// TotalSize hints the total size in MB for all the partitions. // This is usually used when sorting is needed.
{ "resource": "" }
c28472
train
// PartitionSize hints the partition size in MB. // This is usually used when sorting is needed.
{ "resource": "" }
c28473
train
// OnDisk ensure the intermediate dataset are persisted to disk. // This allows executors to run not in parallel if executors are limited.
{ "resource": "" }
c28474
train
// Accept implements Node Accpet interface.
{ "resource": "" }
c28475
train
// Full returns an Ident which set schema to the current schema if it is empty.
{ "resource": "" }
c28476
train
// String implements fmt.Stringer interface
{ "resource": "" }
c28477
train
// error creates a new ParseError based on err.
{ "resource": "" }
c28478
train
// ReadAll reads all the remaining records from r. // Each record is a slice of fields. // A successful call returns err == nil, not err == EOF. Because ReadAll is // defined to read until EOF, it does not treat end of file as an error to be // reported.
{ "resource": "" }
c28479
train
// readRune reads one rune from r, folding \r\n to \n and keeping track // of how far into the line we have read. r.column will point to the start // of this rune, not the end of this rune.
{ "resource": "" }
c28480
train
// skip reads runes up to and including the rune delim or until error.
{ "resource": "" }
c28481
train
// parseRecord reads and parses a single csv record from r.
{ "resource": "" }
c28482
train
// NewFunction creates a new scalar function or constant.
{ "resource": "" }
c28483
train
// retChan should be a buffered channel
{ "resource": "" }
c28484
train
// TsvPrintf reads TSV lines from reader, // and formats according to a format specifier and writes to writer.
{ "resource": "" }
c28485
train
// Fprintf reads MessagePack encoded messages from reader, // and formats according to a format specifier and writes to writer.
{ "resource": "" }
c28486
train
// PrintDelimited Reads and formats MessagePack encoded messages // with delimiter and lineSeparator.
{ "resource": "" }
c28487
train
// matchPropColumn checks if the idxCol match one of columns in required property and return the matched index. // If no column is matched, return -1.
{ "resource": "" }
c28488
train
// SetRow sets row value.
{ "resource": "" }
c28489
train
// GetMysqlBit gets Bit value
{ "resource": "" }
c28490
train
// SetMysqlBit sets Bit value
{ "resource": "" }
c28491
train
// GetMysqlEnum gets Enum value
{ "resource": "" }
c28492
train
// SetMysqlHex sets Hex value
{ "resource": "" }
c28493
train
// Cast casts datum to certain types.
{ "resource": "" }
c28494
train
// ToString gets the string representation of the datum.
{ "resource": "" }
c28495
train
// CoerceDatum changes type. // If a or b is Float, changes the both to Float. // Else if a or b is Decimal, changes the both to Decimal. // Else if a or b is Uint and op is not div, mod, or intDiv changes the both to Uint.
{ "resource": "" }
c28496
train
// DatumsToInterfaces converts a datum slice to interface slice.
{ "resource": "" }
c28497
train
// SortDatums sorts a slice of datum.
{ "resource": "" }
c28498
train
// errorOrWarning reports error or warning depend on the context.
{ "resource": "" }
c28499
train
// BuiltinValuesFactory generates values builtin function.
{ "resource": "" }