_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c5500 | train | // SetLogger set logger | {
"resource": ""
} | ||
c5501 | train | // Fatalf is wrapper function | {
"resource": ""
} | ||
c5502 | train | // Start starts CVE dictionary HTTP Server. | {
"resource": ""
} | ||
c5503 | train | // NewRedis return Redis driver | {
"resource": ""
} | ||
c5504 | train | // InsertJvn insert items fetched from JVN. | {
"resource": ""
} | ||
c5505 | train | // GetFetchedFeedMeta selects hash in metafile of the year | {
"resource": ""
} | ||
c5506 | train | // UpsertFeedHash selects hash in metafile of the year | {
"resource": ""
} | ||
c5507 | train | // UpToDate checks whether last fetched feed is up to date | {
"resource": ""
} | ||
c5508 | train | // OutDated checks whether last fetched feed is out dated | {
"resource": ""
} | ||
c5509 | train | // StatusForStdout returns a status of fetched feed | {
"resource": ""
} | ||
c5510 | train | // Year returns year, whether xml or not of the feed | {
"resource": ""
} | ||
c5511 | train | // ToTableWriterRow generate data for table writer | {
"resource": ""
} | ||
c5512 | train | // FetchConvert Fetch CVE vulnerability information from NVD | {
"resource": ""
} | ||
c5513 | train | // Register registers new database migration. Must be called
// from a file with name like "1_initialize_db.go". | {
"resource": ""
} | ||
c5514 | train | // RegisterTx is like Register, but migration will be run in a transaction. | {
"resource": ""
} | ||
c5515 | train | // DiscoverSQLMigrations scan the dir for files with .sql extension
// and adds discovered SQL migrations to the collection. | {
"resource": ""
} | ||
c5516 | train | // Format formats stats result. | {
"resource": ""
} | ||
c5517 | train | // WithHTTPStat is a wrapper of httptrace.WithClientTrace. It records the
// time of each httptrace hooks. | {
"resource": ""
} | ||
c5518 | train | // Start crawling the host. | {
"resource": ""
} | ||
c5519 | train | // Checks if the given URL can be fetched based on robots.txt policies. | {
"resource": ""
} | ||
c5520 | train | // Process the specified URL. | {
"resource": ""
} | ||
c5521 | train | // Process the robots.txt URL. | {
"resource": ""
} | ||
c5522 | train | // Get the robots.txt group for this crawler. | {
"resource": ""
} | ||
c5523 | train | // Set the crawl delay between this request and the next. | {
"resource": ""
} | ||
c5524 | train | // Request the specified URL and return the response. | {
"resource": ""
} | ||
c5525 | train | // Send a response to the crawler. | {
"resource": ""
} | ||
c5526 | train | // Process the response for a URL. | {
"resource": ""
} | ||
c5527 | train | // Scrape the document's content to gather all links | {
"resource": ""
} | ||
c5528 | train | // Log prints to the standard error by default, based on the requested log verbosity. | {
"resource": ""
} | ||
c5529 | train | // ComputeDelay returns the delay specified in the Crawler's Options, unless a
// crawl-delay is specified in the robots.txt file, which has precedence. | {
"resource": ""
} | ||
c5530 | train | // Visit asks the worker to harvest the links in this page. | {
"resource": ""
} | ||
c5531 | train | // NewCrawlerWithOptions returns a Crawler initialized with the
// provided Options. | {
"resource": ""
} | ||
c5532 | train | // Initialize the Crawler's internal fields before a crawling execution. | {
"resource": ""
} | ||
c5533 | train | // Set the Enqueue channel on the extender, based on the naming convention. | {
"resource": ""
} | ||
c5534 | train | // Launch a new worker goroutine for a given host. | {
"resource": ""
} | ||
c5535 | train | // Check if the specified URL is from the same host as its source URL, or if
// nil, from the same host as one of the seed URLs. | {
"resource": ""
} | ||
c5536 | train | // Enqueue the URLs returned from the worker, as long as it complies with the
// selection policies. | {
"resource": ""
} | ||
c5537 | train | // This is the main loop of the crawler, waiting for responses from the workers
// and processing these responses. | {
"resource": ""
} | ||
c5538 | train | // Stop terminates the crawler. | {
"resource": ""
} | ||
c5539 | train | // Error implements of the error interface for CrawlError. | {
"resource": ""
} | ||
c5540 | train | // Create a new CrawlError based on a source error. | {
"resource": ""
} | ||
c5541 | train | // Create a new CrawlError with the specified message. | {
"resource": ""
} | ||
c5542 | train | // cloneForRedirect returns a new URLContext with the given
// destination URL with the same sourceURL and normalizedSourceURL. | {
"resource": ""
} | ||
c5543 | train | // NewOptions creates a new set of Options with default values
// using the provided Extender. The RobotUserAgent option should
// be set to the name of your crawler, it is used to find the matching
// entry in the robots.txt file. | {
"resource": ""
} | ||
c5544 | train | // Converts a string to CamelCase | {
"resource": ""
} | ||
c5545 | train | // ToLowerCamel converts a string to lowerCamelCase | {
"resource": ""
} | ||
c5546 | train | // combine Command and Run | {
"resource": ""
} | ||
c5547 | train | // unmarshal shell output to decode json | {
"resource": ""
} | ||
c5548 | train | // unmarshal command output into xml | {
"resource": ""
} | ||
c5549 | train | // NewEncoder creates a new encoder to create a new wav file.
// Don't forget to add Frames to the encoder before writing. | {
"resource": ""
} | ||
c5550 | train | // AddLE serializes and adds the passed value using little endian | {
"resource": ""
} | ||
c5551 | train | // AddBE serializes and adds the passed value using big endian | {
"resource": ""
} | ||
c5552 | train | // WriteFrame writes a single frame of data to the underlying writer. | {
"resource": ""
} | ||
c5553 | train | // DecodeCueChunk decodes the optional cue chunk and extracts cue points. | {
"resource": ""
} | ||
c5554 | train | // NewDecoder creates a decoder for the passed wav reader.
// Note that the reader doesn't get rewinded as the container is processed. | {
"resource": ""
} | ||
c5555 | train | // Seek provides access to the cursor position in the PCM data | {
"resource": ""
} | ||
c5556 | train | // Err returns the first non-EOF error that was encountered by the Decoder. | {
"resource": ""
} | ||
c5557 | train | // EOF returns positively if the underlying reader reached the end of file. | {
"resource": ""
} | ||
c5558 | train | // ReadMetadata parses the file for extra metadata such as the INFO list chunk.
// The entire file will be read and should be rewinded if more data must be
// accessed. | {
"resource": ""
} | ||
c5559 | train | // Duration returns the time duration for the current audio container | {
"resource": ""
} | ||
c5560 | train | // readHeaders is safe to call multiple times | {
"resource": ""
} | ||
c5561 | train | // sampleDecodeFloat64Func returns a function that can be used to convert
// a byte range into a float64 value based on the amount of bits used per sample. | {
"resource": ""
} | ||
c5562 | train | // Diff returns a slice where each element describes
// a difference between a and b. | {
"resource": ""
} | ||
c5563 | train | // Fdiff writes to w a description of the differences between a and b. | {
"resource": ""
} | ||
c5564 | train | // Pdiff prints to p a description of the differences between a and b.
// It calls Printf once for each difference, with no trailing newline.
// The standard library log.Logger is a Printfer. | {
"resource": ""
} | ||
c5565 | train | // Ldiff prints to l a description of the differences between a and b.
// It calls Logf once for each difference, with no trailing newline.
// The standard library testing.T and testing.B are Logfers. | {
"resource": ""
} | ||
c5566 | train | // keyEqual compares a and b for equality.
// Both a and b must be valid map keys. | {
"resource": ""
} | ||
c5567 | train | // TokenErrorf is a convenient wrapper around Errorf that uses the
// position of the given token. | {
"resource": ""
} | ||
c5568 | train | // ParseWithPosition is like Parse except that it overrides the source
// row and column position of the first character in the string, which should
// be 1-based.
//
// This can be used when HIL is embedded in another language and the outer
// parser knows the row and column where the HIL expression started within
// ... | {
"resource": ""
} | ||
c5569 | train | // Peek returns the next token in the stream without consuming it. A
// subsequent call to Read will return the same token. | {
"resource": ""
} | ||
c5570 | train | // Read consumes the next token in the stream and returns it. | {
"resource": ""
} | ||
c5571 | train | // Close ensures that the token stream has been exhausted, to prevent
// the goroutine in the underlying scanner from leaking.
//
// It's not necessary to call this if the caller reads the token stream
// to EOF, since that implicitly closes the scanner. | {
"resource": ""
} | ||
c5572 | train | // parseInterpolationSeq parses either the top-level sequence of literals
// and interpolation expressions or a similar sequence within a quoted
// string inside an interpolation expression. The latter case is requested
// by setting 'quoted' to true. | {
"resource": ""
} | ||
c5573 | train | // parseStringToken takes a token of either LITERAL or STRING type and
// returns the interpreted string, after processing any relevant
// escape sequences. | {
"resource": ""
} | ||
c5574 | train | // parseBinaryOps calls itself recursively to work through all of the
// operator precedence groups, and then eventually calls ParseExpressionTerm
// for each operand. | {
"resource": ""
} | ||
c5575 | train | // Eval evaluates the given AST tree and returns its output value, the type
// of the output, and any error that occurred. | {
"resource": ""
} | ||
c5576 | train | // evalNode is a private function that returns an EvalNode for built-in
// types as well as any other EvalNode implementations. | {
"resource": ""
} | ||
c5577 | train | // NewLiteralNode returns a new literal node representing the given
// literal Go value, which must correspond to one of the primitive types
// supported by HIL. Lists and maps cannot currently be constructed via
// this function.
//
// If an inappropriately-typed value is provided, this function will
// return an erro... | {
"resource": ""
} | ||
c5578 | train | // MustNewLiteralNode wraps NewLiteralNode and panics if an error is
// returned, thus allowing valid literal nodes to be easily assigned to
// global variables. | {
"resource": ""
} | ||
c5579 | train | // IsUnknown returns true either if the node's value is itself unknown
// of if it is a collection containing any unknown elements, deeply. | {
"resource": ""
} | ||
c5580 | train | // IsUnknown reports whether a variable is unknown or contains any value
// that is unknown. This will recurse into lists and maps and so on. | {
"resource": ""
} | ||
c5581 | train | // Walk will walk an arbitrary Go structure and parse any string as an
// HIL program and call the callback cb to determine what to replace it
// with.
//
// This function is very useful for arbitrary HIL program interpolation
// across a complex configuration structure. Due to the heavy use of
// reflection in this fu... | {
"resource": ""
} | ||
c5582 | train | // Scan returns a channel that recieves Tokens from the given input string.
//
// The scanner's job is just to partition the string into meaningful parts.
// It doesn't do any transformation of the raw input string, so the caller
// must deal with any further interpretation required, such as parsing INTEGER
// tokens i... | {
"resource": ""
} | ||
c5583 | train | // scanIdentifier returns the extent of the prefix of the string that
// represents a valid identifier, along with the length of that prefix
// in runes.
//
// Identifiers may contain utf8-encoded non-Latin letters, which will
// cause the returned "rune length" to be shorter than the byte length
// of the returned str... | {
"resource": ""
} | ||
c5584 | train | // NewVariable creates a new Variable for the given value. This will
// attempt to infer the correct type. If it can't, an error will be returned. | {
"resource": ""
} | ||
c5585 | train | // String implements Stringer on Variable, displaying the type and value
// of the Variable. | {
"resource": ""
} | ||
c5586 | train | // NewAvx512 - initialize sha256 Avx512 implementation. | {
"resource": ""
} | ||
c5587 | train | // Reset - reset sha digest to its initial values | {
"resource": ""
} | ||
c5588 | train | // Write to digest | {
"resource": ""
} | ||
c5589 | train | // Sum - Return sha256 sum in bytes | {
"resource": ""
} | ||
c5590 | train | // Interface function to assembly ode | {
"resource": ""
} | ||
c5591 | train | // NewAvx512Server - Create new object for parallel processing handling | {
"resource": ""
} | ||
c5592 | train | // Process - Sole handler for reading from the input channel | {
"resource": ""
} | ||
c5593 | train | // Do a reset for this calculation | {
"resource": ""
} | ||
c5594 | train | // Invoke assembly and send results back | {
"resource": ""
} | ||
c5595 | train | // Sum - return sha256 sum in bytes for a given sum id. | {
"resource": ""
} | ||
c5596 | train | // Reset digest back to default | {
"resource": ""
} | ||
c5597 | train | // New returns a new hash.Hash computing the SHA256 checksum. | {
"resource": ""
} | ||
c5598 | train | // Sum256 - single caller sha256 helper | {
"resource": ""
} | ||
c5599 | train | // Return sha256 sum in bytes | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.