_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c15900
train
// Identifier returns the string's name
{ "resource": "" }
c15901
train
// Matches returns all matches that have been recorded for the string.
{ "resource": "" }
c15902
train
// FromBytes takes a byte slice corresponding to a MaxMind DB file and returns // a Reader structure or an error.
{ "resource": "" }
c15903
train
// Lookup takes an IP address as a net.IP structure and a pointer to the // result value to Decode into.
{ "resource": "" }
c15904
train
// LookupOffset maps an argument net.IP to a corresponding record offset in the // database. NotFound is returned if no such record is found, and a record may // otherwise be extracted by passing the returned offset to Decode. LookupOffset // is an advanced API, which exists to provide clients with a means to cache // ...
{ "resource": "" }
c15905
train
// Networks returns an iterator that can be used to traverse all networks in // the database. // // Please note that a MaxMind DB may map IPv4 networks into several locations // in in an IPv6 database. This iterator will iterate over all of these // locations separately.
{ "resource": "" }
c15906
train
// Next prepares the next network for reading with the Network method. It // returns true if there is another network to be processed and false if there // are no more networks or if there is an error.
{ "resource": "" }
c15907
train
// Network returns the current network or an error if there is a problem // decoding the data for the network. It takes a pointer to a result value to // decode the network's data into.
{ "resource": "" }
c15908
train
// This function is used to skip ahead to the next value without decoding // the one at the offset passed in. The size bits have different meanings for // different data types
{ "resource": "" }
c15909
train
// Verify checks that the database is valid. It validates the search tree, // the data section, and the metadata section. This verifier is stricter than // the specification and may return errors on databases that are readable.
{ "resource": "" }
c15910
train
// Close unmaps the database file from virtual memory and returns the // resources to the system. If called on a Reader opened using FromBytes // or Open on Google App Engine, this method does nothing.
{ "resource": "" }
c15911
train
// TarballDirectory - rootdir is equivalent to tar -C 'rootdir'
{ "resource": "" }
c15912
train
// GetSettings returns setting even if it fails to resolve IPs for dynamic networks.
{ "resource": "" }
c15913
train
// NewMockAgentClientFactory creates a new mock instance
{ "resource": "" }
c15914
train
// NewAgentClient mocks base method
{ "resource": "" }
c15915
train
// NewAgentClient indicates an expected call of NewAgentClient
{ "resource": "" }
c15916
train
// Jobs returns a list of pre-rendered job templates // extracted from a single tarball provided by BOSH director.
{ "resource": "" }
c15917
train
// toInterfaceAddresses bulk converts customNetworks to InterfaceAddresses
{ "resource": "" }
c15918
train
// condMonitor, returns a Monitor that broadcasts on cond on each update.
{ "resource": "" }
c15919
train
// createProfile, creates the profile and home directory of the user identified // by Security Identifier sid.
{ "resource": "" }
c15920
train
// deleteProfile, deletes the profile and home directory of the user identified // by Security Identifier sid.
{ "resource": "" }
c15921
train
// generatePassword, returns a 14 char ascii85 encoded password. // // DO NOT CALL THIS DIRECTLY, use randomPassword instead as it // returns a valid Windows password.
{ "resource": "" }
c15922
train
// randomPassword, returns a ascii85 encoded 14 char password // if the password is longer than 14 chars NET.exe will ask // for confirmation due to backwards compatibility issues with // Windows prior to Windows 2000.
{ "resource": "" }
c15923
train
// Dial establishes a connection to a log daemon by connecting to // address raddr on the specified network. Each write to the returned // writer sends a log message with the given facility, severity and // tag.
{ "resource": "" }
c15924
train
// Err logs a message with severity LOG_ERR, ignoring the severity // passed to New.
{ "resource": "" }
c15925
train
// Warning logs a message with severity LOG_WARNING, ignoring the // severity passed to New.
{ "resource": "" }
c15926
train
// Notice logs a message with severity LOG_NOTICE, ignoring the // severity passed to New.
{ "resource": "" }
c15927
train
// itoa, cheap integer to fixed-width decimal ASCII.
{ "resource": "" }
c15928
train
// NewHTTPClient creates a new monit client // // status & start use the shortClient // unmonitor & stop use the longClient
{ "resource": "" }
c15929
train
// Environ strips program specific variables from the environment.
{ "resource": "" }
c15930
train
// Get reads and marshals the file contents.
{ "resource": "" }
c15931
train
// Set unmarshals and writes to the file.
{ "resource": "" }
c15932
train
// Connect returns a new Mgr that will monitor all services with descriptions // matched by match. If match is nil all services are matched.
{ "resource": "" }
c15933
train
// serviceDescription, returns the description of service s.
{ "resource": "" }
c15934
train
// services, returns all of the services that match the Mgr's match function.
{ "resource": "" }
c15935
train
// iter, calls function fn concurrently on each service matched by Mgr. // The service is closed for fn and the first error, if any, is returned. // // fn must be safe for concurrent use and must not block indefinitely.
{ "resource": "" }
c15936
train
// querySvc, queries the service status of service s. This is really here to // return a formated error message.
{ "resource": "" }
c15937
train
// calculateWaitHint, converts a service's WaitHint into a time duration and // calculates the interval the caller should wait for before rechecking the // service's status. // // If no WaitHint is provided the default of 10 seconds is returned. As per // Microsoft's recommendations he returned interval will be betwee...
{ "resource": "" }
c15938
train
// waitPending, waits for service s to transition out of pendingState, which // must be either StartPending or StopPending. A two minute time limit is // enforced for the state transition. // // See calculateWaitHint for an explanation of how the service's WaitHint is // used to check progress.
{ "resource": "" }
c15939
train
// Status returns the name and status for all of the services monitored.
{ "resource": "" }
c15940
train
// Unmonitor disable start for all the Mgr m's services.
{ "resource": "" }
c15941
train
// DisableAgentAutoStart sets the start type of the bosh-agent to manual.
{ "resource": "" }
c15942
train
//NewChannel spawns and returns a new channel sharing the underlying buffer.
{ "resource": "" }
c15943
train
// for all buffered cases
{ "resource": "" }
c15944
train
// Compile compiles GCSS data which is read from src and // Writes the result CSS data to the dst.
{ "resource": "" }
c15945
train
// CompileFile parses the GCSS file specified by the path parameter, // generates a CSS file and returns the path of the generated CSS file // and an error when it occurs.
{ "resource": "" }
c15946
train
// convertExt converts path's extension into ext.
{ "resource": "" }
c15947
train
// WriteTo writes the variable to the writer.
{ "resource": "" }
c15948
train
// variableNV extracts a variable name and value // from the line.
{ "resource": "" }
c15949
train
// newVariable creates and returns a variable.
{ "resource": "" }
c15950
train
// mixinNP extracts a mixin name and parameters from the line.
{ "resource": "" }
c15951
train
// newMixinDeclaration creates and returns a mixin declaration.
{ "resource": "" }
c15952
train
// newElement creates and returns an element.
{ "resource": "" }
c15953
train
// WriteTo writes the declaration to the writer.
{ "resource": "" }
c15954
train
// writeTo writes the declaration to the writer.
{ "resource": "" }
c15955
train
// writeParam writes the param to the writer.
{ "resource": "" }
c15956
train
// declarationPV extracts a declaration property and value // from the line.
{ "resource": "" }
c15957
train
// newDeclaration creates and returns a declaration.
{ "resource": "" }
c15958
train
// AppendChild appends a child element to the element.
{ "resource": "" }
c15959
train
// Context returns the top element's context.
{ "resource": "" }
c15960
train
// hasMixinDecs returns true if the element has a mixin // which has declarations.
{ "resource": "" }
c15961
train
// hasMixinSels returns true if the element has a mixin // which has selectors.
{ "resource": "" }
c15962
train
// writeDecsTo writes the element's declarations to w.
{ "resource": "" }
c15963
train
// newElementBase creates and returns an element base.
{ "resource": "" }
c15964
train
// writeTo writes s to w.
{ "resource": "" }
c15965
train
// write writes the input byte data to the CSS file.
{ "resource": "" }
c15966
train
// decsParams returns the mixin's declarations and params.
{ "resource": "" }
c15967
train
// selsParams returns the mixin's selectors and params.
{ "resource": "" }
c15968
train
// newMixinInvocation creates and returns a mixin invocation.
{ "resource": "" }
c15969
train
// childOf returns true if the line is a child of the parent.
{ "resource": "" }
c15970
train
// isDeclaration returns true if the line is a declaration.
{ "resource": "" }
c15971
train
// isAtRule returns true if the line is an at-rule.
{ "resource": "" }
c15972
train
// isVariable returns true if the line is a variable.
{ "resource": "" }
c15973
train
// isMixinDeclaration returns true if the line is a mixin declaration.
{ "resource": "" }
c15974
train
// isMixinInvocation returns true if the line is a mixin invocation.
{ "resource": "" }
c15975
train
// isComment returns true if the line is a comment.
{ "resource": "" }
c15976
train
// newLine creates and returns a line.
{ "resource": "" }
c15977
train
// indent returns the string's indent.
{ "resource": "" }
c15978
train
// WriteTo writes the at-rule to the writer.
{ "resource": "" }
c15979
train
// newAtRule creates and returns a at-rule.
{ "resource": "" }
c15980
train
// WriteTo writes the selector to the writer.
{ "resource": "" }
c15981
train
// writeTo writes the selector to the writer.
{ "resource": "" }
c15982
train
// names returns the selector names.
{ "resource": "" }
c15983
train
// newSelector creates and returns a selector.
{ "resource": "" }
c15984
train
// newContext creates and returns a context.
{ "resource": "" }
c15985
train
// newComment creates and returns a comment.
{ "resource": "" }
c15986
train
// appendChildren parses the lines and appends the child elements // to the parent element.
{ "resource": "" }
c15987
train
// formatLF replaces the line feed codes with LF and // returns the result string.
{ "resource": "" }
c15988
train
// Unmarshal decodes JSON-RPC params.
{ "resource": "" }
c15989
train
// RequestID takes request id from context.
{ "resource": "" }
c15990
train
// WithRequestID adds request id to context.
{ "resource": "" }
c15991
train
// ServeHTTP provides basic JSON-RPC handling.
{ "resource": "" }
c15992
train
// InvokeMethod invokes JSON-RPC method.
{ "resource": "" }
c15993
train
// TakeMethod takes jsonrpc.Func in MethodRepository.
{ "resource": "" }
c15994
train
// RegisterMethod registers jsonrpc.Func to MethodRepository.
{ "resource": "" }
c15995
train
// Methods returns registered methods.
{ "resource": "" }
c15996
train
// ParseRequest parses a HTTP request to JSON-RPC request.
{ "resource": "" }
c15997
train
// NewResponse generates a JSON-RPC response.
{ "resource": "" }
c15998
train
// SendResponse writes JSON-RPC response.
{ "resource": "" }
c15999
train
// ServeDebug views registered method list.
{ "resource": "" }