_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c5400 | train | // Email returns a random email | {
"resource": ""
} | ||
c5401 | train | // Country returns a random country, countryStyle decides what kind of format the returned country will have | {
"resource": ""
} | ||
c5402 | train | // State returns a random american state | {
"resource": ""
} | ||
c5403 | train | // Street returns a random fake street name | {
"resource": ""
} | ||
c5404 | train | // StreetForCountry returns a random fake street name typical to the supplied country.
// If the country is not supported it will return an empty string. | {
"resource": ""
} | ||
c5405 | train | // Address returns an american style address | {
"resource": ""
} | ||
c5406 | train | // StringSample returns a random string from a list of strings | {
"resource": ""
} | ||
c5407 | train | // IpV4Address returns a valid IPv4 address as string | {
"resource": ""
} | ||
c5408 | train | // IpV6Address returns a valid IPv6 address as net.IP | {
"resource": ""
} | ||
c5409 | train | // MacAddress returns an mac address string | {
"resource": ""
} | ||
c5410 | train | // FullDate returns full date | {
"resource": ""
} | ||
c5411 | train | // Flush pending advertising settings to the device. | {
"resource": ""
} | ||
c5412 | train | // LnxDeviceID specifies which HCI device to use.
// If n is set to -1, all the available HCI devices will be probed.
// If chk is set to true, LnxDeviceID checks the LE support in the feature list of the HCI device.
// This is to filter devices that does not support LE. In case some LE driver that doesn't correctly
//... | {
"resource": ""
} | ||
c5413 | train | // LnxMaxConnections is an optional parameter.
// If set, it overrides the default max connections supported.
// This option can only be used with NewDevice on Linux implementation. | {
"resource": ""
} | ||
c5414 | train | // LnxSetAdvertisingEnable sets the advertising data to the HCI device.
// This option can be used with Option on Linux implementation. | {
"resource": ""
} | ||
c5415 | train | // LnxSetAdvertisingData sets the advertising data to the HCI device.
// This option can be used with NewDevice or Option on Linux implementation. | {
"resource": ""
} | ||
c5416 | train | // LnxSetScanResponseData sets the scan response data to the HXI device.
// This option can be used with NewDevice or Option on Linux implementation. | {
"resource": ""
} | ||
c5417 | train | // LnxSetAdvertisingParameters sets the advertising parameters to the HCI device.
// This option can be used with NewDevice or Option on Linux implementation. | {
"resource": ""
} | ||
c5418 | train | // LnxSendHCIRawCommand sends a raw command to the HCI device
// This option can be used with NewDevice or Option on Linux implementation. | {
"resource": ""
} | ||
c5419 | train | // MacDeviceRole specify the XPC connection type to connect blued.
// THis option can only be used with NewDevice on OS X implementation. | {
"resource": ""
} | ||
c5420 | train | // IoW used for an ioctl that writes data to the device driver. | {
"resource": ""
} | ||
c5421 | train | // IoRW a combination of IoR and IoW. That is, data is both written to the driver and then read back from the driver by the client. | {
"resource": ""
} | ||
c5422 | train | // NewCharacteristic creates and returns a Characteristic. | {
"resource": ""
} | ||
c5423 | train | // NewDescriptor creates and returns a Descriptor. | {
"resource": ""
} | ||
c5424 | train | // xpcToGo converts an xpc object to a go object
//
// note that not all the types are supported, but only the subset required for Blued | {
"resource": ""
} | ||
c5425 | train | // This is only used in Linux port. | {
"resource": ""
} | ||
c5426 | train | // Bytes returns an 31-byte array, which contains up to 31 bytes of the packet. | {
"resource": ""
} | ||
c5427 | train | // Len returns the length of the packets with a maximum of 31. | {
"resource": ""
} | ||
c5428 | train | // AppendFlags appends a flag field to the packet. | {
"resource": ""
} | ||
c5429 | train | // AppendFlags appends a name field to the packet.
// If the name fits in the space, it will be append as a complete name field, otherwise a short name field. | {
"resource": ""
} | ||
c5430 | train | // AppendManufacturerData appends a manufacturer data field to the packet. | {
"resource": ""
} | ||
c5431 | train | // AppendUUIDFit appends a BLE advertised service UUID
// packet field if it fits in the packet, and reports whether the UUID fit. | {
"resource": ""
} | ||
c5432 | train | // Close disconnects the connection by sending HCI disconnect command to the device. | {
"resource": ""
} | ||
c5433 | train | // Signal Packets
// 0x00 Reserved Any
// 0x01 Command reject 0x0001 and 0x0005
// 0x02 Connection request 0x0001
// 0x03 Connection response 0x0001
// 0x04 Configure request 0x0001
// 0x05 Configure response 0x0001
// 0x06 Disconnection request 0x0001 and 0x0005
// 0x07 Disconnecti... | {
"resource": ""
} | ||
c5434 | train | // ParseUUID parses a standard-format UUID string, such
// as "1800" or "34DA3AD1-7110-41A1-B1EF-4430F509CDE7". | {
"resource": ""
} | ||
c5435 | train | // MustParseUUID parses a standard-format UUID string,
// like ParseUUID, but panics in case of error. | {
"resource": ""
} | ||
c5436 | train | // Equal returns a boolean reporting whether v represent the same UUID as u. | {
"resource": ""
} | ||
c5437 | train | // reverse returns a reversed copy of u. | {
"resource": ""
} | ||
c5438 | train | // Handle registers the specified handlers. | {
"resource": ""
} | ||
c5439 | train | // CentralConnected returns a Handler, which sets the specified function to be called when a device connects to the server. | {
"resource": ""
} | ||
c5440 | train | // CentralDisconnected returns a Handler, which sets the specified function to be called when a device disconnects from the server. | {
"resource": ""
} | ||
c5441 | train | // PeripheralDiscovered returns a Handler, which sets the specified function to be called when a remote peripheral device is found during scan procedure. | {
"resource": ""
} | ||
c5442 | train | // PeripheralConnected returns a Handler, which sets the specified function to be called when a remote peripheral device connects. | {
"resource": ""
} | ||
c5443 | train | // PeripheralDisconnected returns a Handler, which sets the specified function to be called when a remote peripheral device disconnects. | {
"resource": ""
} | ||
c5444 | train | // Option sets the options specified.
// Some options can only be set before the device is initialized; they are best used with NewDevice instead of Option. | {
"resource": ""
} | ||
c5445 | train | // At returns attr a. | {
"resource": ""
} | ||
c5446 | train | // Chunk starts writing a new chunk. This chunk
// is not committed until Commit is called.
// Chunk panics if another chunk has already been
// started and not committed. | {
"resource": ""
} | ||
c5447 | train | // Commit writes the current chunk and reports whether the
// write succeeded. The write succeeds iff there is enough room.
// Commit panics if no chunk has been started. | {
"resource": ""
} | ||
c5448 | train | // CommitFit writes as much of the current chunk as possible,
// truncating as needed.
// CommitFit panics if no chunk has been started. | {
"resource": ""
} | ||
c5449 | train | // WriteByteFit writes b.
// It reports whether the write succeeded,
// using the criteria of WriteFit. | {
"resource": ""
} | ||
c5450 | train | // Writeable returns the number of bytes from b
// that would be written if pad bytes were written,
// then as much of b as fits were written. When
// writing to a chunk, any amount of bytes may be
// written. | {
"resource": ""
} | ||
c5451 | train | // ChunkSeek discards the first offset bytes from the
// current chunk. It reports whether there were at least
// offset bytes available to discard.
// It panics if a chunked write is not in progress. | {
"resource": ""
} | ||
c5452 | train | // Validate a HOTP passcode given a counter and secret.
// This is a shortcut for ValidateCustom, with parameters that
// are compataible with Google-Authenticator. | {
"resource": ""
} | ||
c5453 | train | // GenerateCode creates a HOTP passcode given a counter and secret.
// This is a shortcut for GenerateCodeCustom, with parameters that
// are compataible with Google-Authenticator. | {
"resource": ""
} | ||
c5454 | train | // GenerateCodeCustom uses a counter and secret value and options struct to
// create a passcode. | {
"resource": ""
} | ||
c5455 | train | // Generate creates a new HOTP Key. | {
"resource": ""
} | ||
c5456 | train | // Validate a TOTP using the current time.
// A shortcut for ValidateCustom, Validate uses a configuration
// that is compatible with Google-Authenticator and most clients. | {
"resource": ""
} | ||
c5457 | train | // GenerateCode creates a TOTP token using the current time.
// A shortcut for GenerateCodeCustom, GenerateCode uses a configuration
// that is compatible with Google-Authenticator and most clients. | {
"resource": ""
} | ||
c5458 | train | // Issuer returns the name of the issuing organization. | {
"resource": ""
} | ||
c5459 | train | // AccountName returns the name of the user's account. | {
"resource": ""
} | ||
c5460 | train | // Secret returns the opaque secret for this Key. | {
"resource": ""
} | ||
c5461 | train | // Format converts an integer into the zero-filled size for this Digits. | {
"resource": ""
} | ||
c5462 | train | // Run `go build` and print the output if something's gone wrong. | {
"resource": ""
} | ||
c5463 | train | // Accept build jobs and start building when there are no jobs rushing in.
// The inrush protection is WorkDelay milliseconds long, in this period
// every incoming job will reset the timer. | {
"resource": ""
} | ||
c5464 | train | // Start the supplied command and return stdout and stderr pipes for logging. | {
"resource": ""
} | ||
c5465 | train | // Run the command in the given string and restart it after
// a message was received on the buildDone channel. | {
"resource": ""
} | ||
c5466 | train | // Sort functions by the struct to which they're attached first, then the name of the method itself. If the function isn't attached to a struct, put it at the bottom | {
"resource": ""
} | ||
c5467 | train | // Create a new Writer wrapping the provided io.Writer with the given Codec and number of records per block.
// The Writer will lazily write the container file header when WriteRecord is called the first time.
// You must call Flush on the Writer before closing the underlying io.Writer, to ensure the final block is ... | {
"resource": ""
} | ||
c5468 | train | // Write an AvroRecord to the container file. All gogen-avro generated structs
// fulfill the AvroRecord interface. Note that all records in a given container file
// must be of the same Avro type. | {
"resource": ""
} | ||
c5469 | train | // Write the current block to the file if it has been filled. It is
// best-practise to always call this before the underlying io.Writer is closed. | {
"resource": ""
} | ||
c5470 | train | // NewNamespaceNamer returns a namespace-aware namer. | {
"resource": ""
} | ||
c5471 | train | // ToPublicName implements the go-idiomatic public name as in DefaultNamer's
// struct, but with additional treatment applied in order to remove possible
// invalid tokens from it. Final string is then converted to camel-case. | {
"resource": ""
} | ||
c5472 | train | // At the beginning of a block, read the length into the Long register
// If the block length is 0, jump past the block body because we're done
// If the block length is negative, read the byte count, throw it away, multiply the length by -1
// Once we've figured out the number of iterations, push the loop length onto ... | {
"resource": ""
} | ||
c5473 | train | // At the end of a block, pop the loop count and decrement it. If it's zero, go back to the very
// top to read a new block. otherwise jump to start + 7, which pushes the value back on the loop stack | {
"resource": ""
} | ||
c5474 | train | // RegisterDefinition adds a new type definition to the namespace. Returns an error if the type is already defined. | {
"resource": ""
} | ||
c5475 | train | // Given a map representing a record definition, validate the definition and build the RecordDefinition struct. | {
"resource": ""
} | ||
c5476 | train | // decodeEnumDefinition accepts a namespace and a map representing an enum definition,
// it validates the definition and build the EnumDefinition struct. | {
"resource": ""
} | ||
c5477 | train | // decodeFixedDefinition accepts a namespace and a map representing a fixed definition,
// it validates the definition and build the FixedDefinition struct. | {
"resource": ""
} | ||
c5478 | train | // parseAliases parses out all the aliases from a definition map - returns an empty slice if no aliases exist.
// Returns an error if the aliases key exists but the value isn't a list of strings. | {
"resource": ""
} | ||
c5479 | train | // parseCmdLine takes care of building the flagset and checking if the
// number of arguments matches the required ones | {
"resource": ""
} | ||
c5480 | train | // Given two parsed Avro schemas, compile them into a program which can read the data
// written by `writer` and store it in the structs generated for `reader`. | {
"resource": ""
} | ||
c5481 | train | // Insert all the records from m2 into m1, unless the key already exists in m1 | {
"resource": ""
} | ||
c5482 | train | // UpdateMeta updates meta table | {
"resource": ""
} | ||
c5483 | train | // MakeNvdMetaURLs returns a URL of NVD Feed | {
"resource": ""
} | ||
c5484 | train | // NewRDB return RDB driver | {
"resource": ""
} | ||
c5485 | train | // CloseDB close Database | {
"resource": ""
} | ||
c5486 | train | // getMatchingCpes returns matching CPEs by pseudo-CPE | {
"resource": ""
} | ||
c5487 | train | // GetCveIDsByCpeURI Select Cve Ids by by pseudo-CPE | {
"resource": ""
} | ||
c5488 | train | // GetFetchedFeedMeta selects fetchmeta of the year | {
"resource": ""
} | ||
c5489 | train | // UpsertFeedHash selects sha1 in metafile of the year | {
"resource": ""
} | ||
c5490 | train | //FetchFeedFiles fetches vulnerability feed file concurrently | {
"resource": ""
} | ||
c5491 | train | // GenWorkers generate workders | {
"resource": ""
} | ||
c5492 | train | // GetDefaultLogDir returns default log directory | {
"resource": ""
} | ||
c5493 | train | // ParseCpeURI parses cpe22uri and set to models.CpeBase | {
"resource": ""
} | ||
c5494 | train | // StringToFloat cast string to float64 | {
"resource": ""
} | ||
c5495 | train | // NewDB return DB accessor. | {
"resource": ""
} | ||
c5496 | train | // Validate validates configuration | {
"resource": ""
} | ||
c5497 | train | // Fetch fetches vulnerability information from JVN and convert it to model | {
"resource": ""
} | ||
c5498 | train | // FetchConvert fetches vulnerability information from JVN and convert it to model | {
"resource": ""
} | ||
c5499 | train | // FetchConvert Fetch CVE vulnerability informatino from JVN | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.