_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c11600
train
// ReportRequest creates a request object for making a report
{ "resource": "" }
c11601
train
// CheckInterval is used to check for a response on a given interval duration. // The interval is not exact, and checks are randomized to prevent a thundering // herd. However, it is expected that on average one check is performed per // interval. The returned channel may be closed to stop background checks.
{ "resource": "" }
c11602
train
// Versions returns the version constrains for a given service and product.
{ "resource": "" }
c11603
train
// Return a new Constrain and sets operator and version to compare
{ "resource": "" }
c11604
train
// Match a given version againts the constraint
{ "resource": "" }
c11605
train
// Return a string representation
{ "resource": "" }
c11606
train
// Adds a Contraint to the group
{ "resource": "" }
c11607
train
// NewWithConfig returns a Grok object that is configured to behave according // to the supplied Config structure.
{ "resource": "" }
c11608
train
// AddPattern adds a new pattern to the list of loaded patterns.
{ "resource": "" }
c11609
train
// AddPattern adds a named pattern to grok
{ "resource": "" }
c11610
train
// AddPatternsFromMap loads a map of named patterns
{ "resource": "" }
c11611
train
// AddPatternsFromMap adds new patterns from the specified map to the list of // loaded patterns.
{ "resource": "" }
c11612
train
// AddPatternsFromPath adds new patterns from the files in the specified // directory to the list of loaded patterns.
{ "resource": "" }
c11613
train
// Match returns true if the specified text matches the pattern.
{ "resource": "" }
c11614
train
// compiledParse parses the specified text and returns a map with the results.
{ "resource": "" }
c11615
train
// Parse the specified text and return a map with the results.
{ "resource": "" }
c11616
train
// ParseToMultiMap parses the specified text and returns a map with the // results. Values are stored in an string slice, so values from captures with // the same name don't get overridden.
{ "resource": "" }
c11617
train
// ParseStream will match the given pattern on a line by line basis from the reader // and apply the results to the process function
{ "resource": "" }
c11618
train
// Bytes produces a raw binary format of the CID.
{ "resource": "" }
c11619
train
// Has returns if the Set contains a given Cid.
{ "resource": "" }
c11620
train
// Keys returns the Cids in the set.
{ "resource": "" }
c11621
train
// Visit adds a Cid to the set only if it is // not in it already.
{ "resource": "" }
c11622
train
// ForEach allows to run a custom function on each // Cid in the set.
{ "resource": "" }
c11623
train
// NewCidV0 returns a Cid-wrapped multihash. // They exist to allow IPFS to work with Cids while keeping // compatibility with the plain-multihash format used used in IPFS. // NewCidV1 should be used preferentially.
{ "resource": "" }
c11624
train
// NewCidV1 returns a new Cid using the given multicodec-packed // content type.
{ "resource": "" }
c11625
train
// Extract the encoding from a Cid. If Decode on the same string did // not return an error neither will this function.
{ "resource": "" }
c11626
train
// Version returns the Cid version.
{ "resource": "" }
c11627
train
// Type returns the multicodec-packed content type of a Cid.
{ "resource": "" }
c11628
train
// String returns the string representation of a Cid // encoded is selected base
{ "resource": "" }
c11629
train
// Encode return the string representation of a Cid in a given base // when applicable. Version 0 Cid's are always in Base58 as they do // not take a multibase prefix.
{ "resource": "" }
c11630
train
// Hash returns the multihash contained by a Cid.
{ "resource": "" }
c11631
train
// UnmarshalJSON parses the JSON representation of a Cid.
{ "resource": "" }
c11632
train
// PrefixFromBytes parses a Prefix-byte representation onto a // Prefix.
{ "resource": "" }
c11633
train
//Tag generates the pagination html Tag
{ "resource": "" }
c11634
train
//Pagination builds pagination Tag based on a passed pagintation interface
{ "resource": "" }
c11635
train
//SetAuthenticityToken allows tags to work smoothly with Buffalo, it receives the auth token and creates an input hidden with it.
{ "resource": "" }
c11636
train
//Label permits to create a label inside a Form
{ "resource": "" }
c11637
train
//New creates a new form from passed options, it sets defaults for method and also handles other methods as PUT by adding _method hidden input.
{ "resource": "" }
c11638
train
//CheckboxTag builds a checkbox from the options passed
{ "resource": "" }
c11639
train
//RadioButton creates a radio button for a form with the passed options
{ "resource": "" }
c11640
train
//RadioButtonTag creates a radio button for a form with the passed options
{ "resource": "" }
c11641
train
//CheckboxTag builds a bootstrap checkbox with passed options
{ "resource": "" }
c11642
train
//TextArea builds a bootstrap textarea with passed options
{ "resource": "" }
c11643
train
//HiddenTag adds a hidden input to the form
{ "resource": "" }
c11644
train
//TextAreaTag creates a textarea for a form with passed options
{ "resource": "" }
c11645
train
//InputTag generates an input tag with passed options, by default will be type=text.
{ "resource": "" }
c11646
train
//HiddenTag generates and input tag with type hidden
{ "resource": "" }
c11647
train
// NewFormFor creates a new Formfor with passed options, it also creates the id of the form from the struct name and adds errors if present.
{ "resource": "" }
c11648
train
// InputTag creates an input for a field on the form Struct
{ "resource": "" }
c11649
train
// HiddenTag adds a wrappter for input type hidden on the form
{ "resource": "" }
c11650
train
// RadioButton creates a radio button for a struct field
{ "resource": "" }
c11651
train
// TextArea creates text area for the specified struct field
{ "resource": "" }
c11652
train
// SubmitTag adds a submit button to the form
{ "resource": "" }
c11653
train
// New creates a new Tag with given name and options.
{ "resource": "" }
c11654
train
//CheckboxTag adds a checkbox to a form wrapped with a form-control and a label
{ "resource": "" }
c11655
train
//NewFormFor builds a form for a passed model
{ "resource": "" }
c11656
train
//JavascriptTag builds JS tags based in passed options
{ "resource": "" }
c11657
train
// GetMergeBase checks and returns merge base of two branches.
{ "resource": "" }
c11658
train
// GetPullRequestInfo generates and returns pull request information // between base and head branches of repositories.
{ "resource": "" }
c11659
train
// GetPatch generates and returns patch data between given revisions.
{ "resource": "" }
c11660
train
// IsValidHookName returns true if given name is a valid Git hook.
{ "resource": "" }
c11661
train
// GetHook returns a Git hook by given name and repository.
{ "resource": "" }
c11662
train
// Update updates content hook file.
{ "resource": "" }
c11663
train
// ListHooks returns a list of Git hooks of given repository.
{ "resource": "" }
c11664
train
// RefURL guesses and returns reference URL.
{ "resource": "" }
c11665
train
// Version returns current Git version from shell.
{ "resource": "" }
c11666
train
// Fsck verifies the connectivity and validity of the objects in the database
{ "resource": "" }
c11667
train
// Find the tree object in the repository.
{ "resource": "" }
c11668
train
// AddEnvs adds new environment variables to the command.
{ "resource": "" }
c11669
train
// RunInDirTimeoutPipeline executes the command in given directory with given timeout, // it pipes stdout and stderr to given io.Writer.
{ "resource": "" }
c11670
train
// RunInDirPipeline executes the command in given directory, // it pipes stdout and stderr to given io.Writer.
{ "resource": "" }
c11671
train
// IsReferenceExist returns true if given reference exists in the repository.
{ "resource": "" }
c11672
train
// GetHEADBranch returns corresponding branch of HEAD.
{ "resource": "" }
c11673
train
// SetDefaultBranch sets default branch of repository.
{ "resource": "" }
c11674
train
// GetBranches returns all branches of the repository.
{ "resource": "" }
c11675
train
// DeleteBranch deletes a branch from given repository path.
{ "resource": "" }
c11676
train
// DeleteBranch deletes a branch from repository.
{ "resource": "" }
c11677
train
// AddRemote adds a new remote to repository.
{ "resource": "" }
c11678
train
// RemoveRemote removes a remote from repository.
{ "resource": "" }
c11679
train
// Data gets content of blob all at once and wrap it as io.Reader. // This can be very slow and memory consuming for huge content.
{ "resource": "" }
c11680
train
// MustIDFromString always creates a new sha from a ID with no validation of input.
{ "resource": "" }
c11681
train
// NewIDFromString creates a new sha1 from a ID string of length 40.
{ "resource": "" }
c11682
train
// GetDiffRange returns a parsed diff object between given commits.
{ "resource": "" }
c11683
train
// GetRawDiff dumps diff results of repository in given commit ID to io.Writer.
{ "resource": "" }
c11684
train
// GetDiffCommit returns a parsed diff object of given commit.
{ "resource": "" }
c11685
train
// GetCommitByPath return the commit of relative path object.
{ "resource": "" }
c11686
train
// AddChanges marks local changes to be ready for commit.
{ "resource": "" }
c11687
train
// CommitChanges commits local changes with given committer, author and message. // If author is nil, it will be the same as committer.
{ "resource": "" }
c11688
train
// GetCommitFileStatus returns file status of commit in given repository.
{ "resource": "" }
c11689
train
// FileStatus returns file status of commit.
{ "resource": "" }
c11690
train
// GetBranchCommitID returns last commit ID string of given branch.
{ "resource": "" }
c11691
train
// GetTagCommitID returns last commit ID string of given tag.
{ "resource": "" }
c11692
train
// GetRemoteBranchCommitID returns last commit ID string of given remote branch.
{ "resource": "" }
c11693
train
// GetCommit returns commit object of by ID string.
{ "resource": "" }
c11694
train
// GetBranchCommit returns the last commit of given branch.
{ "resource": "" }
c11695
train
// GetTagCommit returns the commit of given tag.
{ "resource": "" }
c11696
train
// GetRemoteBranchCommit returns the last commit of given remote branch.
{ "resource": "" }
c11697
train
// GetCommitByPath returns the last commit of relative path.
{ "resource": "" }
c11698
train
// CommitsBetween returns a list that contains commits between [last, before).
{ "resource": "" }
c11699
train
// The limit is depth, not total number of returned commits.
{ "resource": "" }