_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c172000
validation
// bashScript forms content of bash script to clone or update a repo using ssh
{ "resource": "" }
c172001
validation
// handleToken checks for an optional token in the request. GitLab's webhook tokens are just // simple strings that get sent as a header with the hook request. If one // exists, verify that it matches the secret in the Caddy configuration.
{ "resource": "" }
c172002
validation
// Handle satisfies hookhandler.
{ "resource": "" }
c172003
validation
// Check for an optional signature in the request // if it is signed, verify the signature.
{ "resource": "" }
c172004
validation
// setup configures a new Git service routine.
{ "resource": "" }
c172005
validation
// parseURL validates if repoUrl is a valid git url.
{ "resource": "" }
c172006
validation
// Start starts a new background service to pull periodically.
{ "resource": "" }
c172007
validation
// add adds a new service to list of services.
{ "resource": "" }
c172008
validation
// Repo retrieves repository at i or nil if not found.
{ "resource": "" }
c172009
validation
// String satisfies stringer and attempts to strip off authentication // info from url if it exists.
{ "resource": "" }
c172010
validation
// Val returns git friendly Val that can be // passed to git clone.
{ "resource": "" }
c172011
validation
// Pull attempts a git pull. // It retries at most numRetries times if error occurs
{ "resource": "" }
c172012
validation
// pull performs git pull, or git clone if repository does not exist.
{ "resource": "" }
c172013
validation
// checkoutCommit checks out the specified commitHash.
{ "resource": "" }
c172014
validation
// gitCmd performs a git command.
{ "resource": "" }
c172015
validation
// Prepare prepares for a git pull // and validates the configured directory
{ "resource": "" }
c172016
validation
// getMostRecentCommit gets the hash of the most recent commit to the // repository. Useful for checking if changes occur.
{ "resource": "" }
c172017
validation
// originURL retrieves remote origin url for the git repository at path
{ "resource": "" }
c172018
validation
// execThen executes r.Then. // It is trigged after successful git pull
{ "resource": "" }
c172019
validation
// Stdin sets the process's standard input.
{ "resource": "" }
c172020
validation
// Stdout sets the process's standard output.
{ "resource": "" }
c172021
validation
// Stderr sets the process's standard output.
{ "resource": "" }
c172022
validation
// Mkdir calls os.Mkdir.
{ "resource": "" }
c172023
validation
// MkdirAll calls os.MkdirAll.
{ "resource": "" }
c172024
validation
// Stat calls os.Stat.
{ "resource": "" }
c172025
validation
// LookPath calls exec.LookPath.
{ "resource": "" }
c172026
validation
// TempFile calls ioutil.TempFile.
{ "resource": "" }
c172027
validation
// ReadDir calls ioutil.ReadDir.
{ "resource": "" }
c172028
validation
// Command calls exec.Command.
{ "resource": "" }
c172029
validation
// NewTicker calls time.NewTicker.
{ "resource": "" }
c172030
validation
// TimeSince calls time.Since
{ "resource": "" }
c172031
validation
// Check for an authorization signature in the request. Reject if not present. If validation required, check the sha
{ "resource": "" }
c172032
validation
// Error satisfies error interface
{ "resource": "" }
c172033
validation
// hookName returns the name of the hookHanlder h.
{ "resource": "" }
c172034
validation
// ServeHTTP implements the middlware.Handler interface.
{ "resource": "" }
c172035
validation
// contains code taken from go1.8, for purposes of backwards compatability with // older go versions. // hostname returns u.Host, without any port number. // // If Host is an IPv6 literal with a port number, Hostname returns the // IPv6 literal without the square brackets. IPv6 literals may include // a zone identifier...
{ "resource": "" }
c172036
validation
// genOptionsODBC is a util wrapper around genOptions that uses the fixed settings // for ODBC style connection strings.
{ "resource": "" }
c172037
validation
// genQueryOptions generates standard query options.
{ "resource": "" }
c172038
validation
// convertOptions converts an option value based on name, value pairs.
{ "resource": "" }
c172039
validation
// mode returns the mode of the path.
{ "resource": "" }
c172040
validation
// registerAlias registers a alias for an already registered Scheme.
{ "resource": "" }
c172041
validation
// Register registers a Scheme.
{ "resource": "" }
c172042
validation
// Unregister unregisters a Scheme and all associated aliases.
{ "resource": "" }
c172043
validation
// has is a util func to determine if a contains b.
{ "resource": "" }
c172044
validation
// SchemeDriverAndAliases returns the registered driver and aliases for a // database scheme.
{ "resource": "" }
c172045
validation
// GenFromURL returns a func that generates a DSN using urlstr as the default // URL parameters, overriding the values only if when in the passed URL.
{ "resource": "" }
c172046
validation
// GenOpaque generates a opaque file path DSN from the passed URL.
{ "resource": "" }
c172047
validation
// GenPostgres generates a postgres DSN from the passed URL.
{ "resource": "" }
c172048
validation
// GenSQLServer generates a mssql DSN from the passed URL.
{ "resource": "" }
c172049
validation
// GenMyMySQL generates a MyMySQL MySQL DSN from the passed URL.
{ "resource": "" }
c172050
validation
// GenOracle generates a ora DSN from the passed URL.
{ "resource": "" }
c172051
validation
// GenFirebird generates a firebirdsql DSN from the passed URL.
{ "resource": "" }
c172052
validation
// GenADODB generates a adodb DSN from the passed URL.
{ "resource": "" }
c172053
validation
// GenODBC generates a odbc DSN from the passed URL.
{ "resource": "" }
c172054
validation
// GenOLEODBC generates a oleodbc DSN from the passed URL.
{ "resource": "" }
c172055
validation
// GenClickhouse generates a clickhouse DSN from the passed URL.
{ "resource": "" }
c172056
validation
// GenVoltDB generates a VoltDB DSN from the passed URL.
{ "resource": "" }
c172057
validation
// GenPresto generates a Presto DSN from the passed URL.
{ "resource": "" }
c172058
validation
// GenCassandra generates a cassandra DSN from the passed URL.
{ "resource": "" }
c172059
validation
// GenSnowflake generates a snowflake DSN from the passed URL.
{ "resource": "" }
c172060
validation
// String satisfies the stringer interface.
{ "resource": "" }
c172061
validation
// Short provides a short description of the user, host, and database.
{ "resource": "" }
c172062
validation
// Normalize returns the driver, host, port, database, and user name of a URL, // joined with sep, populating blank fields with empty.
{ "resource": "" }
c172063
validation
// NewLimiter creates a new instance of a rate limiter.
{ "resource": "" }
c172064
validation
// Has returns whether the rate limiter has seen a request for a specific id // during the current period.
{ "resource": "" }
c172065
validation
// Attempted returns the number of attempted requests for an id in the current // period. Attempted does not count attempts that exceed the max requests in an // interval and only returns the max count after this is reached.
{ "resource": "" }
c172066
validation
// Left returns the number of remaining requests for id during a current // period.
{ "resource": "" }
c172067
validation
// Attempt attempts to perform a request for an id and returns whether it was // successful or not.
{ "resource": "" }
c172068
validation
// IsPublicIP returns true if the given IP can be routed on the Internet
{ "resource": "" }
c172069
validation
// ParseForwarded parses the value of the X-Forwarded-For Header and returns the // IP address.
{ "resource": "" }
c172070
validation
// In returns true if the parameter field is an input field.
{ "resource": "" }
c172071
validation
// Out returns true if the parameter field is an output field.
{ "resource": "" }
c172072
validation
// SetLobReader sets the io.Reader if a Lob parameter field.
{ "resource": "" }
c172073
validation
// Error implements the Error interface.
{ "resource": "" }
c172074
validation
// SetIdx implements the driver.Error interface.
{ "resource": "" }
c172075
validation
// Code implements the driver.Error interface.
{ "resource": "" }
c172076
validation
// Position implements the driver.Error interface.
{ "resource": "" }
c172077
validation
// Level implements the driver.Error interface.
{ "resource": "" }
c172078
validation
// Text implements the driver.Error interface.
{ "resource": "" }
c172079
validation
// IsWarning implements the driver.Error interface.
{ "resource": "" }
c172080
validation
// IsError implements the driver.Error interface.
{ "resource": "" }
c172081
validation
// IsFatal implements the driver.Error interface.
{ "resource": "" }
c172082
validation
// Size returns the amount of bytes needed to encode an UTF-8 byte slice to CESU-8.
{ "resource": "" }
c172083
validation
// StringSize is like Size with a string as parameter.
{ "resource": "" }
c172084
validation
// FullRune reports whether the bytes in p begin with a full CESU-8 encoding of a rune.
{ "resource": "" }
c172085
validation
// DecodeRune unpacks the first CESU-8 encoding in p and returns the rune and its width in bytes.
{ "resource": "" }
c172086
validation
// RuneLen returns the number of bytes required to encode the rune.
{ "resource": "" }
c172087
validation
// On returns if tracing methods output is active.
{ "resource": "" }
c172088
validation
// SetOn sets tracing methods output active or inactive.
{ "resource": "" }
c172089
validation
// reply || error
{ "resource": "" }
c172090
validation
// Go starts the protocol request and response logging.
{ "resource": "" }
c172091
validation
// Write implements the io.Writer interface.
{ "resource": "" }
c172092
validation
// NewSession creates a new database session.
{ "resource": "" }
c172093
validation
// QueryDirect executes a query without query parameters.
{ "resource": "" }
c172094
validation
// ExecDirect executes a sql statement without statement parameters.
{ "resource": "" }
c172095
validation
// Prepare prepares a sql statement.
{ "resource": "" }
c172096
validation
// Exec executes a sql statement.
{ "resource": "" }
c172097
validation
// DropStatementID releases the hdb statement handle.
{ "resource": "" }
c172098
validation
// Call executes a stored procedure.
{ "resource": "" }
c172099
validation
// Query executes a query.
{ "resource": "" }