_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c158200 | train | // Topics returns a list of topics, as registered with SetMetadata | {
"resource": ""
} | ||
c158201 | train | // Partitions returns the list of parititons for the given topic, as registered with SetMetadata | {
"resource": ""
} | ||
c158202 | train | // Close implements the Close method from the sarama.Consumer interface. It will close
// all registered PartitionConsumer instances. | {
"resource": ""
} | ||
c158203 | train | // Close implements the Close method from the sarama.PartitionConsumer interface. It will
// verify whether the partition consumer was actually started. | {
"resource": ""
} | ||
c158204 | train | // YieldError will yield an error on the Errors channel of this partition consumer
// when it is consumed. By default, the mock consumer will not verify whether this error was
// consumed from the Errors channel, because there are legitimate reasons for this
// not to happen. You can call ExpectErrorsDrainedOnClose so ... | {
"resource": ""
} | ||
c158205 | train | // Add assigns a topic with a number partitions to a member. | {
"resource": ""
} | ||
c158206 | train | // Plan implements BalanceStrategy. | {
"resource": ""
} | ||
c158207 | train | // NewClusterAdmin creates a new ClusterAdmin using the given broker addresses and configuration. | {
"resource": ""
} | ||
c158208 | train | // Encode takes an Encoder and turns it into bytes while potentially recording metrics. | {
"resource": ""
} | ||
c158209 | train | // Decode takes bytes and a Decoder and fills the fields of the decoder from the bytes,
// interpreted using Kafka's encoding rules. | {
"resource": ""
} | ||
c158210 | train | // SendMessages corresponds with the SendMessages method of sarama's SyncProducer implementation.
// You have to set expectations on the mock producer before calling SendMessages, so it knows
// how to handle them. If there is no more remaining expectations when SendMessages is called,
// the mock producer will write a... | {
"resource": ""
} | ||
c158211 | train | // Close corresponds with the Close method of sarama's SyncProducer implementation.
// By closing a mock syncproducer, you also tell it that no more SendMessage calls will follow,
// so it will write an error to the test state if there's any remaining expectations. | {
"resource": ""
} | ||
c158212 | train | // ExpectSendMessageWithCheckerFunctionAndFail sets an expectation on the mock producer that SendMessage will be
// called. The mock producer will first call the given function to check the message value.
// It will cascade the error of the function, if any, or handle the message as if it failed
// to produce successfu... | {
"resource": ""
} | ||
c158213 | train | //ParseKafkaVersion parses and returns kafka version or error from a string | {
"resource": ""
} | ||
c158214 | train | // ExpectInputWithCheckerFunctionAndFail sets an expectation on the mock producer that a message
// will be provided on the input channel. The mock producer will first call the given function to
// check the message value. If an error is returned it will be made available on the Errors channel
// otherwise the mock wil... | {
"resource": ""
} | ||
c158215 | train | // toCaseInsensitiveValue checks if the value is a map;
// if so, create a copy and lower-case the keys recursively. | {
"resource": ""
} | ||
c158216 | train | // copyAndInsensitiviseMap behaves like insensitiviseMap, but creates a copy of
// any map it makes case insensitive. | {
"resource": ""
} | ||
c158217 | train | // parseSizeInBytes converts strings like 1GB or 12 mb into an unsigned integer number of bytes | {
"resource": ""
} | ||
c158218 | train | // Error returns the formatted configuration error. | {
"resource": ""
} | ||
c158219 | train | // New returns an initialized Viper instance. | {
"resource": ""
} | ||
c158220 | train | // UnmarshalKey takes a single key and unmarshals it into a Struct. | {
"resource": ""
} | ||
c158221 | train | // defaultDecoderConfig returns default mapsstructure.DecoderConfig with suppot
// of time.Duration values & string slices | {
"resource": ""
} | ||
c158222 | train | // A wrapper around mapstructure.Decode that mimics the WeakDecode functionality | {
"resource": ""
} | ||
c158223 | train | // UnmarshalExact unmarshals the config into a Struct, erroring if a field is nonexistent
// in the destination struct. | {
"resource": ""
} | ||
c158224 | train | // Unmarshal a Reader into a map.
// Should probably be an unexported function. | {
"resource": ""
} | ||
c158225 | train | // Marshal a map into Writer. | {
"resource": ""
} | ||
c158226 | train | // mergeFlatMap merges the given maps, excluding values of the second map
// shadowed by values from the first map. | {
"resource": ""
} | ||
c158227 | train | // Next returns the next time this should be run.
// This rounds so that the next activation time will be on the second. | {
"resource": ""
} | ||
c158228 | train | // NewWithLocation returns a new Cron job runner. | {
"resource": ""
} | ||
c158229 | train | // AddFunc adds a func to the Cron to be run on the given schedule. | {
"resource": ""
} | ||
c158230 | train | // AddJob adds a Job to the Cron to be run on the given schedule. | {
"resource": ""
} | ||
c158231 | train | // Schedule adds a Job to the Cron to be run on the given schedule. | {
"resource": ""
} | ||
c158232 | train | // Entries returns a snapshot of the cron entries. | {
"resource": ""
} | ||
c158233 | train | // Start the cron scheduler in its own go-routine, or no-op if already started. | {
"resource": ""
} | ||
c158234 | train | // Run the cron scheduler, or no-op if already running. | {
"resource": ""
} | ||
c158235 | train | // Run the scheduler. this is private just due to the need to synchronize
// access to the 'running' state variable. | {
"resource": ""
} | ||
c158236 | train | // Logs an error to stderr or to the configured error log | {
"resource": ""
} | ||
c158237 | train | // entrySnapshot returns a copy of the current cron entry list. | {
"resource": ""
} | ||
c158238 | train | // now returns current time in c location | {
"resource": ""
} | ||
c158239 | train | // Parse returns a new crontab schedule representing the given spec.
// It returns a descriptive error if the spec is not valid.
// It accepts crontab specs and features configured by NewParser. | {
"resource": ""
} | ||
c158240 | train | // getField returns an Int with the bits set representing all of the times that
// the field represents or error parsing field value. A "field" is a comma-separated
// list of "ranges". | {
"resource": ""
} | ||
c158241 | train | // mustParseInt parses the given expression as an int or returns an error. | {
"resource": ""
} | ||
c158242 | train | // parseDescriptor returns a predefined schedule for the expression, or error if none matches. | {
"resource": ""
} | ||
c158243 | train | // Next returns the next time this schedule is activated, greater than the given
// time. If no time can be found to satisfy the schedule, return the zero time. | {
"resource": ""
} | ||
c158244 | train | // dayMatches returns true if the schedule's day-of-week and day-of-month
// restrictions are satisfied by the given time. | {
"resource": ""
} | ||
c158245 | train | // deleteCalcChain provides a function to remove cell reference on the
// calculation chain. | {
"resource": ""
} | ||
c158246 | train | // Filter provides a function to filter calculation chain. | {
"resource": ""
} | ||
c158247 | train | // Save provides a function to override the xlsx file with origin path. | {
"resource": ""
} | ||
c158248 | train | // SaveAs provides a function to create or update to an xlsx file at the
// provided path. | {
"resource": ""
} | ||
c158249 | train | // Write provides a function to write to an io.Writer. | {
"resource": ""
} | ||
c158250 | train | // WriteTo implements io.WriterTo to write the file. | {
"resource": ""
} | ||
c158251 | train | // WriteToBuffer provides a function to get bytes.Buffer from the saved file. | {
"resource": ""
} | ||
c158252 | train | // parseFormatPictureSet provides a function to parse the format settings of
// the picture with default value. | {
"resource": ""
} | ||
c158253 | train | // addDrawingPicture provides a function to add picture by given sheet,
// drawingXML, cell, file name, width, height relationship index and format
// sets. | {
"resource": ""
} | ||
c158254 | train | // setContentTypePartImageExtensions provides a function to set the content
// type for relationship parts and the Main Document part. | {
"resource": ""
} | ||
c158255 | train | // setContentTypePartVMLExtensions provides a function to set the content type
// for relationship parts and the Main Document part. | {
"resource": ""
} | ||
c158256 | train | // GetCellValue provides a function to get formatted value from cell by given
// worksheet name and axis in XLSX file. If it is possible to apply a format
// to the cell value, it will do so, if not then an error will be returned,
// along with the raw value of the cell. | {
"resource": ""
} | ||
c158257 | train | // setCellIntFunc is a wrapper of SetCellInt. | {
"resource": ""
} | ||
c158258 | train | // setCellTimeFunc provides a method to process time type of value for
// SetCellValue. | {
"resource": ""
} | ||
c158259 | train | // SetCellInt provides a function to set int type value of a cell by given
// worksheet name, cell coordinates and cell value. | {
"resource": ""
} | ||
c158260 | train | // SetCellBool provides a function to set bool type value of a cell by given
// worksheet name, cell name and cell value. | {
"resource": ""
} | ||
c158261 | train | // SetCellStr provides a function to set string type value of a cell. Total
// number of characters that a cell can contain 32767 characters. | {
"resource": ""
} | ||
c158262 | train | // GetCellFormula provides a function to get formula from cell by given
// worksheet name and axis in XLSX file. | {
"resource": ""
} | ||
c158263 | train | // SetCellFormula provides a function to set cell formula by given string and
// worksheet name. | {
"resource": ""
} | ||
c158264 | train | // formattedValue provides a function to returns a value after formatted. If
// it is possible to apply a format to the cell value, it will do so, if not
// then an error will be returned, along with the raw value of the cell. | {
"resource": ""
} | ||
c158265 | train | // prepareCellStyle provides a function to prepare style index of cell in
// worksheet by given column index and style index. | {
"resource": ""
} | ||
c158266 | train | // mergeCellsParser provides a function to check merged cells in worksheet by
// given axis. | {
"resource": ""
} | ||
c158267 | train | // checkCellInArea provides a function to determine if a given coordinate is
// within an area. | {
"resource": ""
} | ||
c158268 | train | // getSharedForumula find a cell contains the same formula as another cell,
// the "shared" value can be used for the t attribute and the si attribute can
// be used to refer to the cell containing the formula. Two formulas are
// considered to be the same when their respective representations in
// R1C1-reference nota... | {
"resource": ""
} | ||
c158269 | train | // parseFormatCommentsSet provides a function to parse the format settings of
// the comment with default value. | {
"resource": ""
} | ||
c158270 | train | // GetComments retrieves all comments and returns a map of worksheet name to
// the worksheet comments. | {
"resource": ""
} | ||
c158271 | train | // getSheetComments provides the method to get the target comment reference by
// given worksheet index. | {
"resource": ""
} | ||
c158272 | train | // countComments provides a function to get comments files count storage in
// the folder xl. | {
"resource": ""
} | ||
c158273 | train | // getColWidth provides a function to get column width in pixels by given
// sheet name and column index. | {
"resource": ""
} | ||
c158274 | train | // GetColWidth provides a function to get column width by given worksheet name
// and column index. | {
"resource": ""
} | ||
c158275 | train | // convertColWidthToPixels provieds function to convert the width of a cell
// from user's units to pixels. Excel rounds the column width to the nearest
// pixel. If the width hasn't been set by the user we use the default value.
// If the column is hidden it has a value of zero. | {
"resource": ""
} | ||
c158276 | train | // getSheetPrOption implements the SheetPrOptionPtr interface and get the
// stable name of the sheet. | {
"resource": ""
} | ||
c158277 | train | // setSheetPrOption implements the SheetPrOption interface and flag indicating
// whether the conditional formatting calculations shall be evaluated. | {
"resource": ""
} | ||
c158278 | train | // getSheetPrOption implements the SheetPrOptionPtr interface and get the
// settings of whether the conditional formatting calculations shall be
// evaluated. | {
"resource": ""
} | ||
c158279 | train | // setSheetPrOption implements the SheetPrOption interface and flag indicating
// whether the worksheet is published. | {
"resource": ""
} | ||
c158280 | train | // getSheetPrOption implements the SheetPrOptionPtr interface and get the
// settings of whether the worksheet is published. | {
"resource": ""
} | ||
c158281 | train | // getSheetView returns the SheetView object | {
"resource": ""
} | ||
c158282 | train | // OpenFile take the name of an XLSX file and returns a populated XLSX file
// struct for it. | {
"resource": ""
} | ||
c158283 | train | // OpenReader take an io.Reader and return a populated XLSX file. | {
"resource": ""
} | ||
c158284 | train | // setDefaultTimeStyle provides a function to set default numbers format for
// time.Time type cell value by given worksheet name, cell coordinates and
// number format code. | {
"resource": ""
} | ||
c158285 | train | // workSheetReader provides a function to get the pointer to the structure
// after deserialization by given worksheet name. | {
"resource": ""
} | ||
c158286 | train | // checkSheet provides a function to fill each row element and make that is
// continuous in a worksheet of XML. | {
"resource": ""
} | ||
c158287 | train | // adjustColDimensions provides a function to update column dimensions when
// inserting or deleting rows or columns. | {
"resource": ""
} | ||
c158288 | train | // adjustRowDimensions provides a function to update row dimensions when
// inserting or deleting rows or columns. | {
"resource": ""
} | ||
c158289 | train | // ajustSingleRowDimensions provides a function to ajust single row dimensions. | {
"resource": ""
} | ||
c158290 | train | // adjustHyperlinks provides a function to update hyperlinks when inserting or
// deleting rows or columns. | {
"resource": ""
} | ||
c158291 | train | // adjustAutoFilter provides a function to update the auto filter when
// inserting or deleting rows or columns. | {
"resource": ""
} | ||
c158292 | train | // adjustMergeCells provides a function to update merged cells when inserting
// or deleting rows or columns. | {
"resource": ""
} | ||
c158293 | train | // GetMergeCells provides a function to get all merged cells from a worksheet currently. | {
"resource": ""
} | ||
c158294 | train | // parseFormatTableSet provides a function to parse the format settings of the
// table with default value. | {
"resource": ""
} | ||
c158295 | train | // addTable provides a function to add table by given worksheet name,
// coordinate area and format set. | {
"resource": ""
} | ||
c158296 | train | // parseAutoFilterSet provides a function to parse the settings of the auto
// filter. | {
"resource": ""
} | ||
c158297 | train | // autoFilter provides a function to extract the tokens from the filter
// expression. The tokens are mainly non-whitespace groups. | {
"resource": ""
} | ||
c158298 | train | // writeAutoFilter provides a function to check for single or double custom
// filters as default filters and handle them accordingly. | {
"resource": ""
} | ||
c158299 | train | // parseFilterTokens provides a function to parse the 3 tokens of a filter
// expression and return the operator and token. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.