_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c15500
// CollectWkrSizeOption sets the collector worker pool size // and returns the previous collector worker pool state.
c15501
// ProcessWkrSizeOption sets the processor worker pool size // and return the previous processor worker pool state.
c15502
// PublishWkrSizeOption sets the publisher worker pool size // and returns the previous previous publisher worker pool state.
c15503
// Start workManager's loop just handles queuing errors.
c15504
// Stop closes the collector queue and worker
c15505
// Work dispatches jobs to worker pools for processing. // // Returns a queued job to the caller, which will be // completed by the work queue aubsystem.
c15506
// AddCollectWorker adds a new worker to // the collector worker pool
c15507
// AddPublishWorker adds a new worker to // the publisher worker pool
c15508
// AddProcessWorker adds a new worker to // the processor worker pool
c15509
// sendToWorker is the handler given to the queue. // it dispatches work to the worker pool.
c15510
// UnmarshalJSON unmarshals JSON into a ConfigPolicy
c15511
// MarshalJSON marshals a ConfigPolicy into JSON
c15512
// Adds a ConfigPolicyNode at the provided namespace.
c15513
// Returns a ConfigPolicyNode that is a merged version of the namespace provided.
c15514
// NewMetricType returns a Constructor
c15515
// SwapMetricContentType swaps a payload with one content type to another one.
c15516
// Read response body into a byte slice.
c15517
// Read response body into string.
c15518
// Prepare a request.
c15519
// Prepare a redirect policy.
c15520
// Prepare a cookie jar.
c15521
// Create an HTTP client.
c15522
// Set default options and headers.
c15523
// Begin marks the begining of a request, it's necessary for concurrent // requests.
c15524
// Reset the client state so that other requests can begin.
c15525
// Temporarily specify an option of the current request.
c15526
// Temporarily specify multiple options of the current request.
c15527
// Temporarily specify a header of the current request.
c15528
// Temporarily specify multiple headers of the current request.
c15529
// Specify cookies of the current request.
c15530
// Start a request, and get the response. // // Usually we just need the Get and Post method.
c15531
// The HEAD request
c15532
// The PUT request
c15533
// The TRACE request
c15534
// Get cookies of the client jar.
c15535
// Get cookie value of a specified cookie name.
c15536
// Implement the error interface
c15537
// Check a timeout error.
c15538
// Check a redirect error
c15539
// Add params to a url string.
c15540
// Add a file to a multipart writer.
c15541
// Convert options with string keys to desired format.
c15542
// Does the params contain a file?
c15543
// Is opt in options?
c15544
// Parse the Map, return options and headers
c15545
// AddDanishHolidays adds all Danish holidays to the Calendar
c15546
// AddBritishHolidays adds all British holidays to the Calender
c15547
// NewYearsDay is the 1st of January unless the 1st is a Saturday or Sunday // in which case it occurs on the following Monday.
c15548
// AddNewZealandHoliday adds all New Zeland holidays
c15549
// AddAustralianHolidays adds all Australian holidays
c15550
// closestMonday returns the closest Monday from a giving date
c15551
// AddUsHolidays adds all US holidays to the Calendar
c15552
// AddNorwegianHolidays adds all Norwegian holidays to Calendar
c15553
// NewHoliday creates a new Holiday instance for an exact day of a month.
c15554
// NewHolidayExact creates a new Holiday instance for an exact day of a month and year.
c15555
// NewHolidayFloat creates a new Holiday instance for an offset-based day of // a month.
c15556
// matches determines whether the given date is the one referred to by the // Holiday.
c15557
// AddSwedishHolidays adds all Swedish holidays to the Calendar
c15558
// AddBelgiumHolidays adds all Belgium holidays to the Calendar
c15559
// AddEcbHolidays adds all ECB Target2 holidays to the calendar
c15560
// AddDutchHolidays adds all Dutch holidays to the Calendar
c15561
// IsWeekend reports whether the given date falls on a weekend.
c15562
// MonthStart reports the starting day of the month in t. The time portion is // unchanged.
c15563
// NewCalendar creates a new Calendar with no holidays defined // and work days of Monday through Friday.
c15564
// AddHoliday adds a holiday to the calendar's list.
c15565
// SetWorkday changes the given day's status as a standard working day
c15566
// IsHoliday reports whether a given date is a holiday. It does not account // for the observation of holidays on alternate days.
c15567
// countWorkdays reports the number of workdays from the given date to the end // of the month.
c15568
// Workdays reports the total number of workdays for the given year and month.
c15569
// WorkdaysRemain reports the total number of remaining workdays in the month // for the given date.
c15570
// CountHolidayHoursWithOffset returns the number of working hours in a range starting from the consumed start date // to the end date set by the offset
c15571
//CountWorkdays return amount of workdays between start and end dates
c15572
// AddSkipNonWorkdays returns start time plus d woking duration
c15573
// NewWithDicPath create a tokenizer with a dictionary that loads from path.
c15574
// Tokenize analyze a sentence in standard tokenize mode.
c15575
// Analyze tokenizes a sentence in the specified mode.
c15576
// Dot returns morphs of a sentence and exports a lattice graph to dot format in standard tokenize mode.
c15577
// ScanSentences is a split function for a bufio.Scanner that returns each sentence of text.
c15578
// ScanSentences is a split function for a Scanner that returns each sentence of text.
c15579
// BuildIndexTable constructs a index table from keywords.
c15580
// Search finds the given keyword and returns the id if found.
c15581
// WriteTo saves a index table.
c15582
// ReadIndexTable loads a index table.
c15583
//OptionCheck receives a slice of args and returns an error if it was not successfully parsed
c15584
// Run receives the slice of args and executes the lattice tool
c15585
// LoadMorphSlice loads morph data from io.Reader
c15586
//Usage prints to stdout information about the tool
c15587
// NewUserDicRecords loads user dictionary data from io.Reader.
c15588
// NewUserDic builds a user dictionary.
c15589
// CharacterCategory returns the category of a rune.
c15590
// Load loads a dictionary from a file.
c15591
// LoadSimple loads a dictionary from a file without contents.
c15592
// WriteTo saves a POS table.
c15593
// ReadPOSTable loads a POS table.
c15594
// Add adds part of speech item to the POS control table and returns it's id.
c15595
// List returns a list whose index is POS ID and value is its name.
c15596
// BuildWithIDs constructs a double array from given keywords and ids.
c15597
// Find searches TRIE by a given keyword and returns the id if found.
c15598
// PrefixSearch returns the longest common prefix keyword in an input if found.
c15599
// WriteTo saves a double array.