_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c16600
train
// FSet is like Set but accepts a os.File instead of a file path.
{ "resource": "" }
c16601
train
// SetWithFlags associates name and data together as an attribute of path. // Forwards the flags parameter to the syscall layer.
{ "resource": "" }
c16602
train
// LSetWithFlags is like SetWithFlags but does not follow a symlink at // the end of the path.
{ "resource": "" }
c16603
train
// FSetWithFlags is like SetWithFlags but accepts a os.File instead of a file path.
{ "resource": "" }
c16604
train
// Remove removes the attribute associated with the given path.
{ "resource": "" }
c16605
train
// LRemove is like Remove but does not follow a symlink at the end of the // path.
{ "resource": "" }
c16606
train
// FRemove is like Remove but accepts a os.File instead of a file path.
{ "resource": "" }
c16607
train
// List retrieves a list of names of extended attributes associated // with the given path in the file system.
{ "resource": "" }
c16608
train
// LList is like List but does not follow a symlink at the end of the // path.
{ "resource": "" }
c16609
train
// FList is like List but accepts a os.File instead of a file path.
{ "resource": "" }
c16610
train
// list contains the buffer allocation logic used by both List and LList.
{ "resource": "" }
c16611
train
// bytePtrFromSlice returns a pointer to array of bytes and a size.
{ "resource": "" }
c16612
train
// AddrFamily returns the address family of an IP address.
{ "resource": "" }
c16613
train
// InterfaceIPs returns a slice of interface IP addresses.
{ "resource": "" }
c16614
train
// Validate fills missing fields and validates virtual service configuration.
{ "resource": "" }
c16615
train
// Validate fills missing fields and validates backend configuration.
{ "resource": "" }
c16616
train
// Validate fills missing fields and validates Pulse configuration.
{ "resource": "" }
c16617
train
// NewMetrics creates a new instance of metrics.
{ "resource": "" }
c16618
train
// Update updates metrics based on Pulse status message.
{ "resource": "" }
c16619
train
// ParseInterval parses an interval string and returns the corresponding duration.
{ "resource": "" }
c16620
train
// MustMarshal will try to convert the given object to JSON or panic if there's an error.
{ "resource": "" }
c16621
train
// New creates a new Discovery from the provided options.
{ "resource": "" }
c16622
train
// New creates a new Pulse from the provided endpoint and options.
{ "resource": "" }
c16623
train
// Loop starts the Pulse.
{ "resource": "" }
c16624
train
// Get returns a typed option or a default value if the option is not set.
{ "resource": "" }
c16625
train
// NewContext creates a new Context and initializes IPVS.
{ "resource": "" }
c16626
train
// Close shuts down IPVS and closes the Context.
{ "resource": "" }
c16627
train
// ListServices returns a list of all registered services.
{ "resource": "" }
c16628
train
// GetService returns information about a virtual service.
{ "resource": "" }
c16629
train
// GetBackend returns information about a backend.
{ "resource": "" }
c16630
train
// ParseJsonFacets will assign facets and build sr.jsonfacets if there is a facet_counts
{ "resource": "" }
c16631
train
// ParseJsonFacets will assign facets and build sr.jsonfacets if there is a facets
{ "resource": "" }
c16632
train
// ParseFacetCounts will assign facet_counts to sr if there is one. // No modification done here
{ "resource": "" }
c16633
train
// ParseHighlighting will assign highlighting to sr if there is one. // No modification done here
{ "resource": "" }
c16634
train
// Parse stats if there is in response
{ "resource": "" }
c16635
train
// Set basic auth in case solr require login
{ "resource": "" }
c16636
train
// HTTPPost make a POST request to path which also includes domain, headers are optional
{ "resource": "" }
c16637
train
// HTTPGet make a GET request to url, headers are optional
{ "resource": "" }
c16638
train
// NewConnection will parse solrUrl and return a connection object, solrUrl must be a absolute url or path
{ "resource": "" }
c16639
train
// Update take optional params which can use to specify addition parameters such as commit=true
{ "resource": "" }
c16640
train
// NewSearch takes c and q as optional
{ "resource": "" }
c16641
train
// Return query params including debug and indent if Debug is set
{ "resource": "" }
c16642
train
// Result will create a StandardResultParser if no parser specified. // parser must be an implementation of ResultParser interface
{ "resource": "" }
c16643
train
// NewSchema will parse solrUrl and return a schema object, solrUrl must be a absolute url or path
{ "resource": "" }
c16644
train
// Start sets start value which is the offset of result
{ "resource": "" }
c16645
train
// Rows sets value for rows which means set the limit for how many rows to return
{ "resource": "" }
c16646
train
// Has check if a key exist in document
{ "resource": "" }
c16647
train
// Get returns value of a key
{ "resource": "" }
c16648
train
// Return a new instance of SolrInterface
{ "resource": "" }
c16649
train
// Return a new instace of Search, q is optional and one can set it later
{ "resource": "" }
c16650
train
// makeAddChunks splits the documents into chunks. If chunk_size is less than one it will be default to 100
{ "resource": "" }
c16651
train
// Add will insert documents in batch of chunk_size. success is false as long as one chunk failed. // The result in SolrUpdateResponse is summery of response from all chunks // with key chunk_%d
{ "resource": "" }
c16652
train
// DeleteAll will remove all documents and commit
{ "resource": "" }
c16653
train
// Commit the changes since the last commit
{ "resource": "" }
c16654
train
// Return new instance of CoreAdmin with provided solrUrl and basic auth
{ "resource": "" }
c16655
train
// Return new instance of Schema with provided solrUrl and basic auth
{ "resource": "" }
c16656
train
// Return 'status' and QTime from solr, if everything is fine status should have value 'OK' // QTime will have value -1 if can not determine
{ "resource": "" }
c16657
train
// Vectorize generates 64 dimension vectors given a set of features. // Vectors are initialized to zero. The i-th element of the vector is then // incremented by weight of the i-th feature if the i-th bit of the feature // is set, and decremented by the weight of the i-th feature otherwise.
{ "resource": "" }
c16658
train
// Returns a new feature representing the given byte slice, using a weight of 1
{ "resource": "" }
c16659
train
// Returns a new feature representing the given byte slice with the given weight
{ "resource": "" }
c16660
train
// ReceiveFile copies a single remote file to the local machine with // the specified name. The time and permission will be set to the same value // of the source file.
{ "resource": "" }
c16661
train
// SendFile copies a single local file to the remote server. // The time and permission will be set with the value of the source file.
{ "resource": "" }
c16662
train
// SendDir copies files and directories under the local srcDir to // to the remote destDir. You can filter the files and directories to be copied with acceptFn. // However this filtering is done at the receiver side, so all file bodies are transferred // over the network even if some files are filtered out. If you need...
{ "resource": "" }
c16663
train
// AddPlural adds a plural inflection
{ "resource": "" }
c16664
train
// AddSingular adds a singular inflection
{ "resource": "" }
c16665
train
// AddIrregular adds an irregular inflection
{ "resource": "" }
c16666
train
// GetPlural retrieves the plural inflection values
{ "resource": "" }
c16667
train
// GetSingular retrieves the singular inflection values
{ "resource": "" }
c16668
train
// GetIrregular retrieves the irregular inflection values
{ "resource": "" }
c16669
train
// GetUncountable retrieves the uncountable inflection values
{ "resource": "" }
c16670
train
// Plural converts a word to its plural form
{ "resource": "" }
c16671
train
// Singular converts a word to its singular form
{ "resource": "" }
c16672
train
// Handler returns a http.Handler that accepts JSON-encoded // HTTP requests for a webhook, invokes the underlying webhook // plugin, and writes the JSON-encoded data to the HTTP response. // // The handler verifies the authenticity of the HTTP request // using the http-signature, and returns a 400 Bad Request if // th...
{ "resource": "" }
c16673
train
// New returns a new http.Client with signature verification.
{ "resource": "" }
c16674
train
// Do makes an http.Request to the target endpoint.
{ "resource": "" }
c16675
train
// New returns a client at the specified url.
{ "resource": "" }
c16676
train
// Self returns the currently authenticated user.
{ "resource": "" }
c16677
train
// User returns a user by login.
{ "resource": "" }
c16678
train
// UserList returns a list of all registered users.
{ "resource": "" }
c16679
train
// UserCreate creates a new user account.
{ "resource": "" }
c16680
train
// UserUpdate updates a user account.
{ "resource": "" }
c16681
train
// UserDelete deletes a user account.
{ "resource": "" }
c16682
train
// Repo returns a repository by name.
{ "resource": "" }
c16683
train
// RepoList returns a list of all repositories to which // the user has explicit access in the host system.
{ "resource": "" }
c16684
train
// RepoListSync returns a list of all repositories to which // the user has explicit access in the host system.
{ "resource": "" }
c16685
train
// RepoEnable activates a repository.
{ "resource": "" }
c16686
train
// RepoDisable disables a repository.
{ "resource": "" }
c16687
train
// RepoUpdate updates a repository.
{ "resource": "" }
c16688
train
// RepoRepair repais the repository hooks.
{ "resource": "" }
c16689
train
// Build returns a repository build by number.
{ "resource": "" }
c16690
train
// Build returns the latest repository build by branch.
{ "resource": "" }
c16691
train
// BuildList returns a list of recent builds for the // the specified repository.
{ "resource": "" }
c16692
train
// BuildRestart re-starts a stopped build.
{ "resource": "" }
c16693
train
// BuildCancel cancels the running job.
{ "resource": "" }
c16694
train
// BuildPurge purges the build history.
{ "resource": "" }
c16695
train
// Roolback reverts the target environment to an previous build.
{ "resource": "" }
c16696
train
// Approve approves a blocked build stage.
{ "resource": "" }
c16697
train
// BuildLogs returns the build logs for the specified job.
{ "resource": "" }
c16698
train
// LogsPurge purges the build logs for the specified build.
{ "resource": "" }
c16699
train
// Sign signs the yaml file.
{ "resource": "" }