_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c18400 | train | // GetAlert returns the information about a specific network alert. | {
"resource": ""
} | ||
c18401 | train | // DeleteAlert removes the specified network alert. | {
"resource": ""
} | ||
c18402 | train | // GetAccountProfile returns information about the Shodan account linked to the API key | {
"resource": ""
} | ||
c18403 | train | // GetServicesForHost returns all services that have been found on the given host IP | {
"resource": ""
} | ||
c18404 | train | // BreakQueryIntoTokens determines which filters are being used by the query string
// and what parameters were provided to the filters. | {
"resource": ""
} | ||
c18405 | train | // GetProtocols returns an object containing all the protocols that can be
// used when launching an Internet scan. | {
"resource": ""
} | ||
c18406 | train | // NewClient creates new Shodan client | {
"resource": ""
} | ||
c18407 | train | // SetDebug toggles the debug mode. | {
"resource": ""
} | ||
c18408 | train | // NewExploitRequest prepares new request to exploit shodan api. | {
"resource": ""
} | ||
c18409 | train | // GetDNSResolve looks up the IP address for the provided list of hostnames | {
"resource": ""
} | ||
c18410 | train | // GetDNSReverse looks up the hostnames that have been defined for the given list of IP addresses | {
"resource": ""
} | ||
c18411 | train | // ScanInternet requests Shodan to crawl the Internet for a specific port.
// This method is restricted to security researchers and companies with a Shodan Data license. | {
"resource": ""
} | ||
c18412 | train | // GetScanStatus checks the progress of a previously submitted scan request. | {
"resource": ""
} | ||
c18413 | train | // UnmarshalJSON handles either a string or a number
// and casts it to string. | {
"resource": ""
} | ||
c18414 | train | // GetAPIInfo returns information about the API plan belonging to the given API key. | {
"resource": ""
} | ||
c18415 | train | // GetMyIP returns your current IP address as seen from the Internet
// API key for this method is unnecessary. | {
"resource": ""
} | ||
c18416 | train | // GetHTTPHeaders shows the HTTP headers that your client sends
// when connecting to a webserver. | {
"resource": ""
} | ||
c18417 | train | // GetServices returns an object containing all the services that the Shodan crawlers look at
// It can also be used as a quick and practical way to resolve a port number to the name of a service | {
"resource": ""
} | ||
c18418 | train | // NewStreamingRequest prepares new request to streaming api. | {
"resource": ""
} | ||
c18419 | train | // DoStream executes streaming request. | {
"resource": ""
} | ||
c18420 | train | // startStreaming creates new streaming request and sends it. | {
"resource": ""
} | ||
c18421 | train | // GetBannersByASN provides a filtered, bandwidth-saving view of the Banners stream in case
// you are only interested in devices located in certain ASNs. | {
"resource": ""
} | ||
c18422 | train | // GetBannersByCountries provides a filtered, bandwidth-saving view of the Banners
// stream in case you are only interested in devices located in certain countries. | {
"resource": ""
} | ||
c18423 | train | // GetBannersByPorts returns only banner data for the list of specified hosts.
// This stream provides a filtered, bandwidth-saving view of the Banners stream
// in case you are only interested in a specific list of ports. | {
"resource": ""
} | ||
c18424 | train | // GetBannersByAlert subscribes to banners discovered on the IP range defined
// in a specific network alert. | {
"resource": ""
} | ||
c18425 | train | // GetBannersByAlerts subscribes to banners discovered on all IP ranges described
// in the network alerts. | {
"resource": ""
} | ||
c18426 | train | // GetPorts returns a list of port numbers that the crawlers are looking for | {
"resource": ""
} | ||
c18427 | train | // SearchExploits searches across a variety of data sources for exploits and
// use facets to get summary information. | {
"resource": ""
} | ||
c18428 | train | // GetQueryTags obtains a list of popular tags for the saved search queries in Shodan. | {
"resource": ""
} | ||
c18429 | train | // GetQueries obtains a list of search queries that users have saved in Shodan. | {
"resource": ""
} | ||
c18430 | train | // SearchQueries searches the directory of search queries that users have saved in Shodan. | {
"resource": ""
} | ||
c18431 | train | // NewWatcher creates a new Watcher instance for asynchronous inputs | {
"resource": ""
} | ||
c18432 | train | // removePin is only a wrapper around removeFd
// it finds fd given pin and then calls removeFd | {
"resource": ""
} | ||
c18433 | train | // AddPin adds a new pin to be watched for changes.
// The pin is configured with logic level "active high"
// and watched for both rising and falling edges.
// The pin provided should be the pin known by the kernel | {
"resource": ""
} | ||
c18434 | train | // AddPinWithEdgeAndLogic adds a new pin to be watched for changes.
// Edges can be configured to be either rising, falling, or both.
// Logic level can be active high or active low.
// The pin provided should be the pin known by the kernel. | {
"resource": ""
} | ||
c18435 | train | // RemovePin stops the watcher from watching the specified pin | {
"resource": ""
} | ||
c18436 | train | // Close stops the watcher and releases all resources | {
"resource": ""
} | ||
c18437 | train | // NewInput opens the given pin number for reading. The number provided should be the pin number known by the kernel | {
"resource": ""
} | ||
c18438 | train | // Read returns the value read at the pin as reported by the kernel. This should only be used for input pins | {
"resource": ""
} | ||
c18439 | train | // High sets the value of an output pin to logic high | {
"resource": ""
} | ||
c18440 | train | // Go runs the MailHog sendmail replacement. | {
"resource": ""
} | ||
c18441 | train | // ByCreatingContainer is the execution strategy where a new container with specified
// options is created to execute the command.
//
// The container will be created and started with Cmd.Start and will be deleted
// before Cmd.Wait returns. | {
"resource": ""
} | ||
c18442 | train | // Command returns the Cmd struct to execute the named program with given
// arguments using specified execution method.
//
// For each new Cmd, you should create a new instance for "method" argument. | {
"resource": ""
} | ||
c18443 | train | // Start starts the specified command but does not wait for it to complete. | {
"resource": ""
} | ||
c18444 | train | // StdoutPipe returns a pipe that will be connected to the command's standard output when
// the command starts.
//
// Wait will close the pipe after seeing the command exit or in error conditions. | {
"resource": ""
} | ||
c18445 | train | // StderrPipe returns a pipe that will be connected to the command's standard error when
// the command starts.
//
// Wait will close the pipe after seeing the command exit or in error conditions. | {
"resource": ""
} | ||
c18446 | train | // Return the first non-loopback address as a 4 byte IP address. This address
// is used for sending packets out. | {
"resource": ""
} | ||
c18447 | train | // Given a host name convert it to a 4 byte IP address. | {
"resource": ""
} | ||
c18448 | train | // goRun runs Go code src with build tags. | {
"resource": ""
} | ||
c18449 | train | // Generate Go code that statically implements input filesystem,
// write the output to a file specified in opt. | {
"resource": ""
} | ||
c18450 | train | // findAndWriteFiles recursively finds all the file paths in the given directory tree.
// They are added to the given map as keys. Values will be safe function names
// for each file, which will be used when generating the output code. | {
"resource": ""
} | ||
c18451 | train | // readDirPaths reads the directory named by dirname and returns
// a sorted list of directory paths. | {
"resource": ""
} | ||
c18452 | train | // writeCompressedFileInfo writes CompressedFileInfo.
// It returns errCompressedNotSmaller if compressed file is not smaller than original. | {
"resource": ""
} | ||
c18453 | train | // Write FileInfo. | {
"resource": ""
} | ||
c18454 | train | // stringValue returns the string value of string literal e. | {
"resource": ""
} | ||
c18455 | train | // parseTagFlag parses the "-tag" flag value. It must be a single build tag. | {
"resource": ""
} | ||
c18456 | train | // lookupNameAndComment imports package using provided build context, and
// returns the package name and variable comment. | {
"resource": ""
} | ||
c18457 | train | // computeDoc computes the package documentation for the given package. | {
"resource": ""
} | ||
c18458 | train | // fillMissing sets default values for mandatory options that are left empty. | {
"resource": ""
} | ||
c18459 | train | // Dir returns the home directory for the executing user.
//
// This uses an OS-specific method for discovering the home directory.
// An error is returned if a home directory cannot be detected. | {
"resource": ""
} | ||
c18460 | train | // Expand expands the path to include the home directory if the path
// is prefixed with `~`. If it isn't prefixed with `~`, the path is
// returned as-is. | {
"resource": ""
} | ||
c18461 | train | // Version to string | {
"resource": ""
} | ||
c18462 | train | // IncrementPatch increments the patch version | {
"resource": ""
} | ||
c18463 | train | // IncrementMinor increments the minor version | {
"resource": ""
} | ||
c18464 | train | // Validate validates v and returns error in case | {
"resource": ""
} | ||
c18465 | train | // New is an alias for Parse and returns a pointer, parses version string and returns a validated Version or error | {
"resource": ""
} | ||
c18466 | train | // MustParse is like Parse but panics if the version cannot be parsed. | {
"resource": ""
} | ||
c18467 | train | // NewPRVersion creates a new valid prerelease version | {
"resource": ""
} | ||
c18468 | train | // PreRelease version to string | {
"resource": ""
} | ||
c18469 | train | // NewBuildVersion creates a new valid build version | {
"resource": ""
} | ||
c18470 | train | // rangeFunc creates a Range from the given versionRange. | {
"resource": ""
} | ||
c18471 | train | // OR combines the existing Range with another Range using logical OR. | {
"resource": ""
} | ||
c18472 | train | // AND combines the existing Range with another Range using logical AND. | {
"resource": ""
} | ||
c18473 | train | // splitORParts splits the already cleaned parts by '||'.
// Checks for invalid positions of the operator and returns an
// error if found. | {
"resource": ""
} | ||
c18474 | train | // inArray checks if a byte is contained in an array of bytes | {
"resource": ""
} | ||
c18475 | train | // splitAndTrim splits a range string by spaces and cleans whitespaces | {
"resource": ""
} | ||
c18476 | train | // splitComparatorVersion splits the comparator from the version.
// Input must be free of leading or trailing spaces. | {
"resource": ""
} | ||
c18477 | train | // getWildcardType will return the type of wildcard that the
// passed version contains | {
"resource": ""
} | ||
c18478 | train | // createVersionFromWildcard will convert a wildcard version
// into a regular version, replacing 'x's with '0's, handling
// special cases like '1.x.x' and '1.x' | {
"resource": ""
} | ||
c18479 | train | // incrementMajorVersion will increment the major version
// of the passed version | {
"resource": ""
} | ||
c18480 | train | // MustParseRange is like ParseRange but panics if the range cannot be parsed. | {
"resource": ""
} | ||
c18481 | train | // Get gets a value from the cache | {
"resource": ""
} | ||
c18482 | train | // Set sets a value in the cache | {
"resource": ""
} | ||
c18483 | train | // Delete deletes and item in the cache | {
"resource": ""
} | ||
c18484 | train | // WithWait sets the amount of time to wait before triggering a batch.
// Default duration is 16 milliseconds. | {
"resource": ""
} | ||
c18485 | train | // WithClearCacheOnBatch allows batching of items but no long term caching.
// It accomplishes this by clearing the cache after each batch operation. | {
"resource": ""
} | ||
c18486 | train | // NewBatchedLoader constructs a new Loader with given options. | {
"resource": ""
} | ||
c18487 | train | // Clear clears the value at `key` from the cache, it it exsits. Returs self for method chaining | {
"resource": ""
} | ||
c18488 | train | // ClearAll clears the entire cache. To be used when some event results in unknown invalidations.
// Returns self for method chaining. | {
"resource": ""
} | ||
c18489 | train | // Prime adds the provided key and value to the cache. If the key already exists, no change is made.
// Returns self for method chaining | {
"resource": ""
} | ||
c18490 | train | // newBatcher returns a batcher for the current requests
// all the batcher methods must be protected by a global batchLock | {
"resource": ""
} | ||
c18491 | train | // stop receiving input and process batch function | {
"resource": ""
} | ||
c18492 | train | // execute the batch of all items in queue | {
"resource": ""
} | ||
c18493 | train | // wait the appropriate amount of time for the provided batcher | {
"resource": ""
} | ||
c18494 | train | // Set sets an item in the cache | {
"resource": ""
} | ||
c18495 | train | // Delete deletes an item in the cache | {
"resource": ""
} | ||
c18496 | train | // Keys returns the list of strings. One for each "Key" in the list | {
"resource": ""
} | ||
c18497 | train | // TraceLoad will trace a call to dataloader.LoadMany with Open Tracing | {
"resource": ""
} | ||
c18498 | train | // TraceLoadMany will trace a call to dataloader.LoadMany with Open Tracing | {
"resource": ""
} | ||
c18499 | train | // TraceBatch will trace a call to dataloader.LoadMany with Open Tracing | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.