_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c176100
test
// undo merged presets from loaded presubmit and its children
{ "resource": "" }
c176101
test
// these are unnecessary, and make the config larger so we strip them out
{ "resource": "" }
c176102
test
// monitorDiskAndEvict loops monitoring the disk, evicting cache entries // when the disk passes either minPercentBlocksFree until the disk is above // evictUntilPercentBlocksFree
{ "resource": "" }
c176103
test
// difference returns a new orgRepoConfig that represents the set difference of // the repos specified by the receiver and the parameter orgRepoConfigs.
{ "resource": "" }
c176104
test
// union returns a new orgRepoConfig that represents the set union of the // repos specified by the receiver and the parameter orgRepoConfigs
{ "resource": "" }
c176105
test
// clearStaleComments deletes old comments that are no longer applicable.
{ "resource": "" }
c176106
test
// determineReleaseNoteLabel returns the label to be added based on the contents of the 'release-note' // section of a PR's body text.
{ "resource": "" }
c176107
test
// getReleaseNote returns the release note from a PR body // assumes that the PR body followed the PR template
{ "resource": "" }
c176108
test
// NewClient creates a new client from a boskosClient interface
{ "resource": "" }
c176109
test
// Acquire gets a resource with associated leased resources
{ "resource": "" }
c176110
test
// ReleaseOne will release a resource as well as leased resources associated to it
{ "resource": "" }
c176111
test
// UpdateAll updates all the acquired resources with a given state
{ "resource": "" }
c176112
test
// GetGitHubClient creates a client for each token
{ "resource": "" }
c176113
test
// GetUsername finds the login for each token
{ "resource": "" }
c176114
test
// CreateTokenHandler parses the token and create a handler
{ "resource": "" }
c176115
test
// CreateTokenHandlers goes through the list of token files, and create handlers
{ "resource": "" }
c176116
test
// String returns the string representation of a prow job identifier
{ "resource": "" }
c176117
test
// TerminateOlderPresubmitJobs aborts all presubmit jobs from the given list that have a newer version. It calls // the cleanup callback for each job before updating its status as aborted.
{ "resource": "" }
c176118
test
// PushMetrics is meant to run in a goroutine and continuously push // metrics to the provided endpoint.
{ "resource": "" }
c176119
test
// RateLimiter creates a ratelimiting queue for a given prow controller.
{ "resource": "" }
c176120
test
// checkExistingStatus will retrieve the current status of the DCO context for // the provided SHA.
{ "resource": "" }
c176121
test
// checkExistingLabels will check the provided PR for the dco sign off labels, // returning bool's indicating whether the 'yes' and the 'no' label are present.
{ "resource": "" }
c176122
test
// 1. Check commit messages in the pull request for the sign-off string // 2. Check the existing status context value // 3. Check the existing PR labels // 4. If signed off, apply appropriate labels and status context. // 5. If not signed off, apply appropriate labels and status context and add a comment.
{ "resource": "" }
c176123
test
// MardkownSHAList prints the list of commits in a markdown-friendly way.
{ "resource": "" }
c176124
test
// PathForSpec determines the GCS path prefix for files uploaded // for a specific job spec
{ "resource": "" }
c176125
test
// AliasForSpec determines the GCS path aliases for a job spec
{ "resource": "" }
c176126
test
// RootForSpec determines the root GCS path for storing artifacts about // the provided job.
{ "resource": "" }
c176127
test
// NewSingleDefaultRepoPathBuilder returns a builder that handles the legacy path // encoding where a path will contain org and repo for all but one default repo
{ "resource": "" }
c176128
test
// NewExplicitRepoPathBuilder returns a builder that handles the path encoding // where a path will always have an explicit "org_repo" path segment
{ "resource": "" }
c176129
test
// RegisterSourceOrDie registers a source of auto-filed issues.
{ "resource": "" }
c176130
test
// CreateAndSync is the main workhorse function of IssueCreator. It initializes the IssueCreator, // asks each source for its issues to sync, and syncs the issues.
{ "resource": "" }
c176131
test
// loadCache loads the valid labels for the repo, the currently authenticated user, and the issue cache from github.
{ "resource": "" }
c176132
test
// setIntersect removes any elements from the first list that are not in the second, returning the // new set and the removed elements.
{ "resource": "" }
c176133
test
// sync checks to see if an issue is already on github and tries to create a new issue for it if it is not. // True is returned iff a new issue is created.
{ "resource": "" }
c176134
test
// GetAWSCreds tries to fetch AWS credentials from a resource
{ "resource": "" }
c176135
test
// stopper returns a channel that remains open until an interrupt is received.
{ "resource": "" }
c176136
test
// newPipelineConfig returns a client and informer capable of mutating and monitoring the specified config.
{ "resource": "" }
c176137
test
// KubeClient returns a Kubernetes client.
{ "resource": "" }
c176138
test
// ProwJobClient returns a Kubernetes client.
{ "resource": "" }
c176139
test
// resolve sym links into the actual log directory for a particular test run
{ "resource": "" }
c176140
test
// reads specified JSON file in to `data`
{ "resource": "" }
c176141
test
// Lists the GCS "directory paths" immediately under prefix.
{ "resource": "" }
c176142
test
// Lists all GCS keys with given prefix.
{ "resource": "" }
c176143
test
// Gets all build ids for a job.
{ "resource": "" }
c176144
test
// FilterProfilePaths produces a new profile that removes either everything matching or everything // not matching the provided paths, depending on the value of include. // Paths are interpreted as regular expressions. // If include is true, paths is treated as a whitelist; otherwise it is treated as a blacklist.
{ "resource": "" }
c176145
test
// LoadSecrets loads multiple paths of secrets and add them in a map.
{ "resource": "" }
c176146
test
// LoadSingleSecret reads and returns the value of a single file.
{ "resource": "" }
c176147
test
// Set the bool according to the string.
{ "resource": "" }
c176148
test
// NewOpener returns an opener that can read GCS and local paths.
{ "resource": "" }
c176149
test
// IsNotExist will return true if the error is because the object does not exist.
{ "resource": "" }
c176150
test
// LogClose will attempt a close an log any error
{ "resource": "" }
c176151
test
// Writer returns a writer that overwrites the path.
{ "resource": "" }
c176152
test
// InitGitHubOAuthConfig creates an OAuthClient using GitHubOAuth config and a Cookie Store // to retain user credentials.
{ "resource": "" }
c176153
test
// deltaDisplayed converts a coverage ratio delta into a string value to be displayed by coverage robot
{ "resource": "" }
c176154
test
// makeTable checks each coverage change and produce the table content for coverage bot post // It also report on whether any coverage fells below the given threshold
{ "resource": "" }
c176155
test
// ContentForGitHubPost constructs the message covbot posts
{ "resource": "" }
c176156
test
// AddFlags parses options for github client
{ "resource": "" }
c176157
test
// CheckFlags looks for organization and project flags to configure the client
{ "resource": "" }
c176158
test
// getGitHubClient create the github client that we use to communicate with github
{ "resource": "" }
c176159
test
// limitsCheckAndWait make sure we have not reached the limit or wait
{ "resource": "" }
c176160
test
// FetchIssues from GitHub, until 'latest' time
{ "resource": "" }
c176161
test
// hasID look for a specific id in a list of events
{ "resource": "" }
c176162
test
// FetchIssueEvents from github and return the full list, until it matches 'latest' // The entire last page will be included so you can have redundancy.
{ "resource": "" }
c176163
test
// These are the only actions indicating the code diffs may have changed.
{ "resource": "" }
c176164
test
// NewFetcher creates a new Fetcher and initializes the output channels
{ "resource": "" }
c176165
test
// fetchRecentIssues retrieves issues from DB, but only fetches issues modified since last call
{ "resource": "" }
c176166
test
// fetchRecentEventsAndComments retrieves events from DB, but only fetches events created since last call
{ "resource": "" }
c176167
test
// Fetch retrieves all types of events, and push them to output channels
{ "resource": "" }
c176168
test
// Issues is the main work method of FlakyJobReporter. It fetches and parses flaky job data, // then syncs the top issues to github with the IssueCreator.
{ "resource": "" }
c176169
test
// Title yields the initial title text of the github issue.
{ "resource": "" }
c176170
test
// Labels returns the labels to apply to the issue created for this flaky job on github.
{ "resource": "" }
c176171
test
// ReadHTTP fetches file contents from a URL with retries.
{ "resource": "" }
c176172
test
// Return valid json.
{ "resource": "" }
c176173
test
// NewJobSpec converts a prowapi.ProwJobSpec invocation into a JobSpec
{ "resource": "" }
c176174
test
// ResolveSpecFromEnv will determine the Refs being // tested in by parsing Prow environment variable contents
{ "resource": "" }
c176175
test
// EnvForSpec returns a mapping of environment variables // to their values that should be available for a job spec
{ "resource": "" }
c176176
test
// EnvForType returns the slice of environment variables to export for jobType
{ "resource": "" }
c176177
test
// getRevisionFromRef returns a ref or sha from a refs object
{ "resource": "" }
c176178
test
// GetRevisionFromSpec returns a main ref or sha from a spec object
{ "resource": "" }
c176179
test
// helpProvider provides information on the plugin
{ "resource": "" }
c176180
test
// Use load to read a generated files config file, and populate g with the commands. // "paths-from-repo" commands are aggregated into repoPaths. It is the caller's // responsibility to fetch these and load them via g.loadPaths.
{ "resource": "" }
c176181
test
// Use loadPaths to load a file of new-line delimited paths, such as // resolving file data referenced in a "paths-from-repo" command.
{ "resource": "" }
c176182
test
// Match determines whether a file, given here by its full path // is included in the generated files group.
{ "resource": "" }
c176183
test
// CreateDatabase creates and connects a new instance of an InfluxDB // It is created based on the fields set in the configuration.
{ "resource": "" }
c176184
test
// mergeTags merges the default tags with the exta tags. Default will be overridden if it conflicts.
{ "resource": "" }
c176185
test
// tagsToWhere creates a where query to match tags element
{ "resource": "" }
c176186
test
// Push a point to the database. This appends to current batchpoint
{ "resource": "" }
c176187
test
// artifact constructs an artifact handle for the given job build
{ "resource": "" }
c176188
test
// serve starts a http server and serves prometheus metrics. // Meant to be called inside a goroutine.
{ "resource": "" }
c176189
test
// gather metrics from plank. // Meant to be called inside a goroutine.
{ "resource": "" }
c176190
test
// makeRequest renders a branch protection policy into the corresponding GitHub api request.
{ "resource": "" }
c176191
test
// makeReviews renders review policy into the corresponding GitHub api object. // // Returns nil if the policy is nil, or approvals is nil or 0.
{ "resource": "" }
c176192
test
// Header executes the "header" section of the template.
{ "resource": "" }
c176193
test
// Callback is used to retrieve new log segments
{ "resource": "" }
c176194
test
// logLinesAll reads all of an artifact and splits it into lines.
{ "resource": "" }
c176195
test
// LogViewTemplate executes the log viewer template ready for rendering
{ "resource": "" }
c176196
test
// DeepCopyObject implements runtime.Object interface
{ "resource": "" }
c176197
test
// FromItem implements Object interface
{ "resource": "" }
c176198
test
// SetItems implements Collection interface
{ "resource": "" }
c176199
test
// DeepCopyObject implements Collection interface
{ "resource": "" }