_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c171100
validation
// AggregateIssueChan reads issues from a channel, aggregates issues which have // the same file, line, vol, and message, and returns aggregated issues on // a new channel.
{ "resource": "" }
c171101
validation
// StaticCallee returns the callee if this is a trivially static // "call"-mode call to a function.
{ "resource": "" }
c171102
validation
// Func returns the package-level function of the specified name, // or nil if not found. //
{ "resource": "" }
c171103
validation
// Var returns the package-level variable of the specified name, // or nil if not found. //
{ "resource": "" }
c171104
validation
// Const returns the package-level constant of the specified name, // or nil if not found. //
{ "resource": "" }
c171105
validation
// Type returns the package-level type of the specified name, // or nil if not found. //
{ "resource": "" }
c171106
validation
// Go 1.8 compatible GOPATH.
{ "resource": "" }
c171107
validation
// addPath appends path to paths if path does not already exist in paths. Returns // the new paths.
{ "resource": "" }
c171108
validation
// configureEnvironmentForInstall sets GOPATH and GOBIN so that vendored linters // can be installed
{ "resource": "" }
c171109
validation
// UnmarshalStrict is like Unmarshal except that any fields that are found // in the data that do not have corresponding struct members, or mapping // keys that are duplicates, will result in // an error.
{ "resource": "" }
c171110
validation
// Decode reads the next YAML-encoded value from its input // and stores it in the value pointed to by v. // // See the documentation for Unmarshal for details about the // conversion of YAML into a Go value.
{ "resource": "" }
c171111
validation
// Close closes the encoder by writing any remaining data. // It does not write a stream terminating string "...".
{ "resource": "" }
c171112
validation
// Check if a simple key may start at the current position and add it if // needed.
{ "resource": "" }
c171113
validation
// align returns the smallest y >= x such that y % a == 0.
{ "resource": "" }
c171114
validation
// lintName returns a different name if it should be different.
{ "resource": "" }
c171115
validation
// sanityCheck performs integrity checking of the SSA representation // of the function fn and returns true if it was valid. Diagnostics // are written to reporter if non-nil, os.Stderr otherwise. Some // diagnostics are only warnings and do not imply a negative result. // // Sanity-checking is intended to facilitate...
{ "resource": "" }
c171116
validation
// mustSanityCheck is like sanityCheck but panics instead of returning // a negative result. //
{ "resource": "" }
c171117
validation
// findDuplicate returns an arbitrary basic block that appeared more // than once in blocks, or nil if all were unique.
{ "resource": "" }
c171118
validation
// newIssuePathFromAbsPath returns a new issuePath from a path that may be // an absolute path. root must be an absolute path.
{ "resource": "" }
c171119
validation
// NewIssue returns a new issue. Returns an error if formatTmpl is not a valid // template for an Issue.
{ "resource": "" }
c171120
validation
// SortIssueChan reads issues from one channel, sorts them, and returns them to another // channel
{ "resource": "" }
c171121
validation
// logicalBinop emits code to fn to evaluate e, a &&- or // ||-expression whose reified boolean value is wanted. // The value is returned. //
{ "resource": "" }
c171122
validation
// expr lowers a single-result expression e to SSA form, emitting code // to fn and returning the Value defined by the expression. //
{ "resource": "" }
c171123
validation
// stmtList emits to fn code for all statements in list.
{ "resource": "" }
c171124
validation
// assignOp emits to fn code to perform loc += incr or loc -= incr.
{ "resource": "" }
c171125
validation
// localValueSpec emits to fn code to define all of the vars in the // function-local ValueSpec, spec. //
{ "resource": "" }
c171126
validation
// arrayLen returns the length of the array whose composite literal elements are elts.
{ "resource": "" }
c171127
validation
// switchStmt emits to fn code for the switch statement s, optionally // labelled by label. //
{ "resource": "" }
c171128
validation
// typeSwitchStmt emits to fn code for the type switch statement s, optionally // labelled by label. //
{ "resource": "" }
c171129
validation
// forStmt emits to fn code for the for statement s, optionally // labelled by label. //
{ "resource": "" }
c171130
validation
// rangeStmt emits to fn code for the range statement s, optionally // labelled by label. //
{ "resource": "" }
c171131
validation
// buildFunction builds SSA code for the body of function fn. Idempotent.
{ "resource": "" }
c171132
validation
// buildFuncDecl builds SSA code for the function or method declared // by decl in package pkg. //
{ "resource": "" }
c171133
validation
// Build calls Package.Build for each package in prog. // Building occurs in parallel unless the BuildSerially mode flag was set. // // Build is intended for whole-program analysis; a typical compiler // need only build a single package. // // Build is idempotent and thread-safe. //
{ "resource": "" }
c171134
validation
// Like ObjectOf, but panics instead of returning nil. // Only valid during p's create and build phases.
{ "resource": "" }
c171135
validation
// Like TypeOf, but panics instead of returning nil. // Only valid during p's create and build phases.
{ "resource": "" }
c171136
validation
// expect consumes an event from the event stream and // checks that it's of the expected type.
{ "resource": "" }
c171137
validation
// peek peeks at the next event in the event stream, // puts the results into p.event and returns the event type.
{ "resource": "" }
c171138
validation
// d.prepare initializes and dereferences pointers and calls UnmarshalYAML // if a value is found to implement it. // It returns the initialized and dereferenced out value, whether // unmarshalling was already done by UnmarshalYAML, and if so whether // its types unmarshalled appropriately. // // If n holds a null valu...
{ "resource": "" }
c171139
validation
// Parse parses f and returns a list of actions. // An action may either be a literal string, or a Verb.
{ "resource": "" }
c171140
validation
// ParseVerb parses the verb at the beginning of f. // It returns the verb, how much of the input was consumed, and an error, if any.
{ "resource": "" }
c171141
validation
// terminates reports whether fn is supposed to return, that is if it // has at least one theoretic path that returns from the function. // Explicit panics do not count as terminating.
{ "resource": "" }
c171142
validation
// Reader read handler.
{ "resource": "" }
c171143
validation
// Create a new emitter object.
{ "resource": "" }
c171144
validation
// yaml_writer_write_handler uses emitter.output_writer to write the // emitted text.
{ "resource": "" }
c171145
validation
// Create MAPPING-START.
{ "resource": "" }
c171146
validation
// Flush the output buffer.
{ "resource": "" }
c171147
validation
// processConversion marks fields as used if they're part of a type conversion.
{ "resource": "" }
c171148
validation
// processCompositeLiteral marks fields as used if the struct is used // in a composite literal.
{ "resource": "" }
c171149
validation
// processCgoExported marks functions as used if they're being // exported to cgo.
{ "resource": "" }
c171150
validation
// WritePackage writes to buf a human-readable summary of p.
{ "resource": "" }
c171151
validation
// NewLinter returns a new linter from a config
{ "resource": "" }
c171152
validation
// IsStub reports whether a function is a stub. A function is // considered a stub if it has no instructions or exactly one // instruction, which must be either returning only constant values or // a panic.
{ "resource": "" }
c171153
validation
// CheckUnexportedReturn checks that exported functions on exported // types do not return unexported types.
{ "resource": "" }
c171154
validation
// CreateProgram returns a new program in SSA form, given a program // loaded from source. An SSA package is created for each transitively // error-free package of lprog. // // Code for bodies of functions is not built until Build is called // on the result. // // mode controls diagnostics and checking during SSA cons...
{ "resource": "" }
c171155
validation
// IsIgnored returns true if the given linter issue is ignored by a linter directive.
{ "resource": "" }
c171156
validation
// Unmatched returns all the ranges which were never used to ignore an issue
{ "resource": "" }
c171157
validation
// LoadFiles from a list of directories
{ "resource": "" }
c171158
validation
// ForArch returns a correct Sizes for the given architecture.
{ "resource": "" }
c171159
validation
// ConvertedFrom reports whether value v was converted from type typ.
{ "resource": "" }
c171160
validation
// Expect a node.
{ "resource": "" }
c171161
validation
// isBlank returns whether id is the blank identifier "_". // If id == nil, the answer is false.
{ "resource": "" }
c171162
validation
// Dereference returns a pointer's element type; otherwise it returns // T.
{ "resource": "" }
c171163
validation
// TCPDialCheck returns a Check that checks TCP connectivity to the provided // endpoint.
{ "resource": "" }
c171164
validation
// HTTPGetCheck returns a Check that performs an HTTP GET request against the // specified URL. The check fails if the response times out or returns a non-200 // status code.
{ "resource": "" }
c171165
validation
// DNSResolveCheck returns a Check that makes sure the provided host can resolve // to at least one IP address within the specified timeout.
{ "resource": "" }
c171166
validation
// NewHandler creates a new basic Handler
{ "resource": "" }
c171167
validation
// NewMetricsHandler returns a healthcheck Handler that also exposes metrics // into the provided Prometheus registry.
{ "resource": "" }
c171168
validation
// Timeout adds a timeout to a Check. If the underlying check takes longer than // the timeout, it returns an error.
{ "resource": "" }
c171169
validation
// Network sets a network endpoints for ICMP ping and returns the previous // setting. network arg should be "ip" or "udp" string or if others are // specified, it returns an error. If this function isn't called, Pinger // uses "ip" as default.
{ "resource": "" }
c171170
validation
// AddIP adds an IP address to Pinger. ipaddr arg should be a string like // "192.0.2.1".
{ "resource": "" }
c171171
validation
// AddIPAddr adds an IP address to Pinger. ip arg should be a net.IPAddr // pointer.
{ "resource": "" }
c171172
validation
// RemoveIP removes an IP address from Pinger. ipaddr arg should be a string // like "192.0.2.1".
{ "resource": "" }
c171173
validation
// RemoveIPAddr removes an IP address from Pinger. ip arg should be a net.IPAddr // pointer.
{ "resource": "" }
c171174
validation
// MakeLang returns slug generated from provided string and will use provided // language for chars substitution.
{ "resource": "" }
c171175
validation
// Substitute returns string with superseded all substrings from // provided substitution map. Substitution map will be applied in alphabetic // order. Many passes, on one substitution another one could apply.
{ "resource": "" }
c171176
validation
// SubstituteRune substitutes string chars with provided rune // substitution map. One pass.
{ "resource": "" }
c171177
validation
// Parse parses the command line arguments including the global flags and, if any, the cmdflag and its flags. // // If the VersionBoolFlag is defined as a global boolean flag, then the program version is displayed and the program stops.
{ "resource": "" }
c171178
validation
// Sum appends the current hash to b and returns the resulting slice. // It does not change the underlying hash state.
{ "resource": "" }
c171179
validation
// Reset resets the Hash to its initial state.
{ "resource": "" }
c171180
validation
// Write adds input bytes to the Hash. // It never returns an error.
{ "resource": "" }
c171181
validation
// ChecksumZero returns the 32bits Hash value.
{ "resource": "" }
c171182
validation
// Uint32Zero hashes x with seed 0.
{ "resource": "" }
c171183
validation
// UncompressBlock uncompresses the source buffer into the destination one, // and returns the uncompressed size. // // The destination buffer must be sized appropriately. // // An error is returned if the source data is invalid or the destination buffer is too small.
{ "resource": "" }
c171184
validation
// NewReader returns a new LZ4 frame decoder. // No access to the underlying io.Reader is performed.
{ "resource": "" }
c171185
validation
// Reset discards the Reader's state and makes it equivalent to the // result of its original state from NewReader, but reading from r instead. // This permits reusing a Reader rather than allocating a new one.
{ "resource": "" }
c171186
validation
// readUint32 reads an uint32 into the supplied buffer. // The idea is to make use of the already allocated buffers avoiding additional allocations.
{ "resource": "" }
c171187
validation
// Write compresses data from the supplied buffer into the underlying io.Writer. // Write does not return until the data has been written.
{ "resource": "" }
c171188
validation
// compressBlock compresses a block.
{ "resource": "" }
c171189
validation
// Flush flushes any pending compressed data to the underlying writer. // Flush does not return until the data has been written. // If the underlying writer returns an error, Flush returns that error.
{ "resource": "" }
c171190
validation
// Close closes the Writer, flushing any unwritten data to the underlying io.Writer, but does not close the underlying io.Writer.
{ "resource": "" }
c171191
validation
// Reset clears the state of the Writer z such that it is equivalent to its // initial state from NewWriter, but instead writing to w. // No access to the underlying io.Writer is performed.
{ "resource": "" }
c171192
validation
// writeUint32 writes a uint32 to the underlying writer.
{ "resource": "" }
c171193
validation
// Uncompress uncompresses a set of files or from stdin to stdout.
{ "resource": "" }
c171194
validation
// Compress compresses a set of files or from stdin to stdout.
{ "resource": "" }
c171195
validation
// lz4.Reader fuzz function
{ "resource": "" }
c171196
validation
// NewClient - create a client object with the address and server path
{ "resource": "" }
c171197
validation
//Subscribe subscribes to a topic in a remote event bus
{ "resource": "" }
c171198
validation
// Start - starts the client service to listen to remote events
{ "resource": "" }
c171199
validation
// PushEvent - exported service to listening to remote events
{ "resource": "" }