_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c16000 | train | // DefaultOptions returns the default encoding options. | {
"resource": ""
} | ||
c16001 | train | // Unmarshal parses the Hjson-encoded data and stores the result
// in the value pointed to by v.
//
// Unmarshal uses the inverse of the encodings that
// Marshal uses, allocating maps, slices, and pointers as necessary.
// | {
"resource": ""
} | ||
c16002 | train | // Sprint returns a string representation of the given value according to cfg. | {
"resource": ""
} | ||
c16003 | train | // Fprint writes the representation of the given value to the writer according to the DefaultConfig. | {
"resource": ""
} | ||
c16004 | train | // Fprint writes the representation of the given value to the writer according to the cfg. | {
"resource": ""
} | ||
c16005 | train | // Compare returns a string containing a line-by-line unified diff of the
// values in got and want according to the cfg. | {
"resource": ""
} | ||
c16006 | train | // Diff returns a string containing a line-by-line unified diff of the linewise
// changes required to make A into B. Each line is prefixed with '+', '-', or
// ' ' to indicate if it should be added, removed, or is correct respectively. | {
"resource": ""
} | ||
c16007 | train | // ValidatedStatusCode returns the HTTP response status code. If the code is not 4xx
// or 5xx, an InternalServerError will be returned instead. | {
"resource": ""
} | ||
c16008 | train | // AppendErrorMessage returns an error with the message updated. All other properties are preserved. | {
"resource": ""
} | ||
c16009 | train | // NewFailureResponseBuilder returns a pointer to a newly instantiated FailureResponseBuilder
// Accepts required arguments to create a FailureResponse. | {
"resource": ""
} | ||
c16010 | train | // WithErrorKey adds a custom ErrorKey which will be used in FailureResponse to add an `Error`
// field to the JSON HTTP response body | {
"resource": ""
} | ||
c16011 | train | // Build returns the generated FailureResponse built using previously configured variables. | {
"resource": ""
} | ||
c16012 | train | // DecodeFrame decodes a dca frame from an io.Reader and returns the raw opus audio ready to be sent to discord | {
"resource": ""
} | ||
c16013 | train | // NewDecoder returns a new dca decoder | {
"resource": ""
} | ||
c16014 | train | // ReadMetadata reads the first metadata frame
// OpusFrame will call this automatically if | {
"resource": ""
} | ||
c16015 | train | // OpusFrame returns the next audio frame
// If this is the first frame it will also check for metadata in it | {
"resource": ""
} | ||
c16016 | train | // FrameDuration implements OpusReader, returnining the specified duration per frame | {
"resource": ""
} | ||
c16017 | train | // PlaybackPosition returns the the duration of content we have transmitted so far | {
"resource": ""
} | ||
c16018 | train | // Finished returns wether the stream finished or not, and any error that caused it to stop | {
"resource": ""
} | ||
c16019 | train | // Paused returns wether the sream is paused or not | {
"resource": ""
} | ||
c16020 | train | // Validate returns an error if the options are not correct | {
"resource": ""
} | ||
c16021 | train | // EncodedMem encodes data from memory | {
"resource": ""
} | ||
c16022 | train | // Stop stops the encoding session | {
"resource": ""
} | ||
c16023 | train | // OpusFrame implements OpusReader, returning the next opus frame | {
"resource": ""
} | ||
c16024 | train | // Running returns true if running | {
"resource": ""
} | ||
c16025 | train | // FrameDuration implements OpusReader, retruning the duratio of each frame | {
"resource": ""
} | ||
c16026 | train | // Error returns any error that occured during the encoding process | {
"resource": ""
} | ||
c16027 | train | // FFMPEGMessages returns messages printed by ffmpeg to stderr, you can use this to see what ffmpeg is saying if your encoding fails | {
"resource": ""
} | ||
c16028 | train | // init configures and parses the command line arguments | {
"resource": ""
} | ||
c16029 | train | // very simple program that wraps ffmpeg and outputs raw opus data frames
// with a uint16 header for each frame with the frame length in bytes | {
"resource": ""
} | ||
c16030 | train | //WithSuitableAuthentication handles basic authentication and guest quota processing | {
"resource": ""
} | ||
c16031 | train | // Parse creates a UUID object from given bytes slice. | {
"resource": ""
} | ||
c16032 | train | // Generate a UUID based on the MD5 hash of a namespace identifier
// and a name. | {
"resource": ""
} | ||
c16033 | train | // Generate a random UUID. | {
"resource": ""
} | ||
c16034 | train | // Generate a UUID based on the SHA-1 hash of a namespace identifier
// and a name. | {
"resource": ""
} | ||
c16035 | train | // Generate a MD5 hash of a namespace and a name, and copy it to the
// UUID slice. | {
"resource": ""
} | ||
c16036 | train | // ListVhosts returns a list of virtual hosts. | {
"resource": ""
} | ||
c16037 | train | // Creates or updates a virtual host. | {
"resource": ""
} | ||
c16038 | train | // Creates a client with a transport; it is up to the developer to make that layer secure. | {
"resource": ""
} | ||
c16039 | train | // ListPermissions returns permissions for all users and virtual hosts. | {
"resource": ""
} | ||
c16040 | train | // Updates permissions of user in virtual host. | {
"resource": ""
} | ||
c16041 | train | // ListTopicPermissions returns topic-permissions for all users and virtual hosts. | {
"resource": ""
} | ||
c16042 | train | // Updates topic-permissions of user in virtual host. | {
"resource": ""
} | ||
c16043 | train | // ListBindings returns all bindings | {
"resource": ""
} | ||
c16044 | train | // NewDecoder Creates a new Decoder object | {
"resource": ""
} | ||
c16045 | train | // Read out the object bytes to decode | {
"resource": ""
} | ||
c16046 | train | // Decode decodes the stream to an object | {
"resource": ""
} | ||
c16047 | train | // New makes a new error | {
"resource": ""
} | ||
c16048 | train | // Wrap wraps an error with a new error | {
"resource": ""
} | ||
c16049 | train | // InnerMost returns the innermost error wrapped by this error | {
"resource": ""
} | ||
c16050 | train | // sprintByteHex returns a formatted string of the byte array in hexadecimal
// with a nicely formatted human-readable output | {
"resource": ""
} | ||
c16051 | train | // driverArgsToMap turns driver.Value list into a parameter map
// for neo4j parameters | {
"resource": ""
} | ||
c16052 | train | // Commit commits and closes the transaction | {
"resource": ""
} | ||
c16053 | train | // Open opens a new Bolt connection to the Neo4J database | {
"resource": ""
} | ||
c16054 | train | // NewDriverPool creates a new Driver object with connection pooling | {
"resource": ""
} | ||
c16055 | train | // NewClosableDriverPool create a closable driver pool | {
"resource": ""
} | ||
c16056 | train | // OpenPool opens a returns a Bolt connection from the pool to the Neo4J database. | {
"resource": ""
} | ||
c16057 | train | // Close all connections in the pool | {
"resource": ""
} | ||
c16058 | train | // newBoltConn Creates a new bolt connection | {
"resource": ""
} | ||
c16059 | train | // newPooledBoltConn Creates a new bolt connection with a pooled driver | {
"resource": ""
} | ||
c16060 | train | // Read reads the data from the underlying connection | {
"resource": ""
} | ||
c16061 | train | // Write writes the data to the underlying connection | {
"resource": ""
} | ||
c16062 | train | // Close closes the connection
// Driver may allow for pooling in the future, keeping connections alive | {
"resource": ""
} | ||
c16063 | train | // Prepare prepares a new statement for a query | {
"resource": ""
} | ||
c16064 | train | // PreparePipeline prepares a new pipeline statement for a query. | {
"resource": ""
} | ||
c16065 | train | // Begin begins a new transaction with the Neo4J Database | {
"resource": ""
} | ||
c16066 | train | // NewRunMessage Gets a new RunMessage struct | {
"resource": ""
} | ||
c16067 | train | // Columns returns the columns from the result | {
"resource": ""
} | ||
c16068 | train | // Close closes the rows | {
"resource": ""
} | ||
c16069 | train | // Next gets the next row result | {
"resource": ""
} | ||
c16070 | train | // NextNeo gets the next row result
// When the rows are completed, returns the success metadata
// and io.EOF | {
"resource": ""
} | ||
c16071 | train | // NextPipeline gets the next row result
// When the rows are completed, returns the success metadata and the next
// set of rows.
// When all rows are completed, returns io.EOF | {
"resource": ""
} | ||
c16072 | train | // NewInitMessage Gets a new InitMessage struct | {
"resource": ""
} | ||
c16073 | train | // SetLevel sets the logging level of this package. levelStr should be one of "trace", "info", or "error | {
"resource": ""
} | ||
c16074 | train | // Tracef writes a trace log in the format of Printf | {
"resource": ""
} | ||
c16075 | train | // Infof writes an info log in the format of Printf | {
"resource": ""
} | ||
c16076 | train | // Errorf writes an error log in the format of Printf | {
"resource": ""
} | ||
c16077 | train | // NewEncoder Creates a new Encoder object | {
"resource": ""
} | ||
c16078 | train | // Marshal is used to marshal an object to the bolt interface encoded bytes | {
"resource": ""
} | ||
c16079 | train | // write writes to the writer. Buffers the writes using chunkSize. | {
"resource": ""
} | ||
c16080 | train | // flush finishes the encoding stream by flushing it to the writer | {
"resource": ""
} | ||
c16081 | train | // Read from the net conn, recording the interaction | {
"resource": ""
} | ||
c16082 | train | // Close the net conn, outputting the recording | {
"resource": ""
} | ||
c16083 | train | // Write to the net conn, recording the interaction | {
"resource": ""
} | ||
c16084 | train | // Called to initialize | {
"resource": ""
} | ||
c16085 | train | // Called to initialize the FastHttpServer | {
"resource": ""
} | ||
c16086 | train | // The root handler | {
"resource": ""
} | ||
c16087 | train | // Handle an event generated from Revel | {
"resource": ""
} | ||
c16088 | train | // Create a new context | {
"resource": ""
} | ||
c16089 | train | // Called to set the context | {
"resource": ""
} | ||
c16090 | train | // Gets the value from the request | {
"resource": ""
} | ||
c16091 | train | // Returns the query string | {
"resource": ""
} | ||
c16092 | train | // Called when request is done | {
"resource": ""
} | ||
c16093 | train | // gets the key from the response | {
"resource": ""
} | ||
c16094 | train | // Sets the key with the value | {
"resource": ""
} | ||
c16095 | train | // Writes a stream to the response | {
"resource": ""
} | ||
c16096 | train | // Called to reset this response | {
"resource": ""
} | ||
c16097 | train | // Sets the context | {
"resource": ""
} | ||
c16098 | train | // Sets a cookie | {
"resource": ""
} | ||
c16099 | train | // Deletes a header key | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.