_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c18100
train
// SendHostEvent send an event on the current host
{ "resource": "" }
c18101
train
// NewTracerWithOptions Get a new Tracer with the specified options.
{ "resource": "" }
c18102
train
// NewTracerWithEverything Get a new Tracer with the works.
{ "resource": "" }
c18103
train
// RecordSpan accepts spans to be recorded and and added to the span queue // for eventual reporting to the host agent.
{ "resource": "" }
c18104
train
// QueuedSpansCount returns the number of queued spans // Used only in tests currently.
{ "resource": "" }
c18105
train
// GetQueuedSpans returns a copy of the queued spans and clears the queue.
{ "resource": "" }
c18106
train
// Retrieve the queued spans and post them to the host agent asynchronously.
{ "resource": "" }
c18107
train
// CutText tells the server that the client has new text in its cut buffer. // The text string MUST only contain Latin-1 characters. This encoding // is compatible with Go's native string format, but can only use up to // unicode.MaxLatin values. // // See RFC 6143 Section 7.5.6
{ "resource": "" }
c18108
train
// Requests a framebuffer update from the server. There may be an indefinite // time between the request and the actual framebuffer update being // received. // // See RFC 6143 Section 7.5.3
{ "resource": "" }
c18109
train
// KeyEvent indiciates a key press or release and sends it to the server. // The key is indicated using the X Window System "keysym" value. Use // Google to find a reference of these values. To simulate a key press, // you must send a key with both a down event, and a non-down event. // // See 7.5.4.
{ "resource": "" }
c18110
train
// PointerEvent indicates that pointer movement or a pointer button // press or release. // // The mask is a bitwise mask of various ButtonMask values. When a button // is set, it is pressed, when it is unset, it is released. // // See RFC 6143 Section 7.5.5
{ "resource": "" }
c18111
train
// SetEncodings sets the encoding types in which the pixel data can // be sent from the server. After calling this method, the encs slice // given should not be modified. // // See RFC 6143 Section 7.5.2
{ "resource": "" }
c18112
train
// SetPixelFormat sets the format in which pixel values should be sent // in FramebufferUpdate messages from the server. // // See RFC 6143 Section 7.5.1
{ "resource": "" }
c18113
train
// mainLoop reads messages sent from the server and routes them to the // proper channels for users of the client to read.
{ "resource": "" }
c18114
train
// unixDialer uses the unixSyslog method to open a connection to the syslog // daemon running on the local machine.
{ "resource": "" }
c18115
train
// tlsDialer connects to TLS over TCP, and is used for the "tcp+tls" network // type.
{ "resource": "" }
c18116
train
// basicDialer is the most common dialer for syslog, and supports both TCP and // UDP connections.
{ "resource": "" }
c18117
train
// customDialer uses the custom dialer when the Writer was created // giving developers total control over how connections are made and returned. // Note it does not check if cdialer is nil, as it should only be referenced from getDialer.
{ "resource": "" }
c18118
train
// getConn provides access to the internal conn, protected by a mutex. The // conn is threadsafe, so it can be used while unlocked, but we want to avoid // race conditions on grabbing a reference to it.
{ "resource": "" }
c18119
train
// setConn updates the internal conn, protected by a mutex.
{ "resource": "" }
c18120
train
// connect makes a connection to the syslog server.
{ "resource": "" }
c18121
train
// WriteWithPriority sends a log message with a custom priority.
{ "resource": "" }
c18122
train
// writeAndRetry takes a severity and the string to write. Any facility passed to // it as part of the severity Priority will be ignored.
{ "resource": "" }
c18123
train
// writeAndRetryWithPriority differs from writeAndRetry in that it allows setting // of both the facility and the severity.
{ "resource": "" }
c18124
train
// write generates and writes a syslog formatted string. It formats the // message based on the current Formatter and Framer.
{ "resource": "" }
c18125
train
// writeString formats syslog messages using time.RFC3339 and includes the // hostname, and sends the message to the connection.
{ "resource": "" }
c18126
train
// UnixFormatter omits the hostname, because it is only used locally.
{ "resource": "" }
c18127
train
// if string's length is greater than max, then use the last part
{ "resource": "" }
c18128
train
// RFC5424Formatter provides an RFC 5424 compliant message.
{ "resource": "" }
c18129
train
// Dial establishes a connection to a log daemon by connecting to // address raddr on the specified network. Each write to the returned // Writer sends a log message with the given facility, severity and // tag. // If network is empty, Dial will connect to the local syslog server.
{ "resource": "" }
c18130
train
// DialWithCustomDialer establishes a connection by calling customDial. // Each write to the returned Writer sends a log message with the given facility, severity and tag. // Network must be "custom" in order for this package to use customDial. // While network and raddr will be passed to customDial, it is allowed for ...
{ "resource": "" }
c18131
train
// DialWithTLSCertPath establishes a secure connection to a log daemon by connecting to // address raddr on the specified network. It uses certPath to load TLS certificates and configure // the secure connection.
{ "resource": "" }
c18132
train
// DialWIthTLSCert establishes a secure connection to a log daemon by connecting to // address raddr on the specified network. It uses serverCert to load a TLS certificate // and configure the secure connection.
{ "resource": "" }
c18133
train
// DialWithTLSConfig establishes a secure connection to a log daemon by connecting to // address raddr on the specified network. It uses tlsConfig to configure the secure connection.
{ "resource": "" }
c18134
train
// implementation of the various functions above
{ "resource": "" }
c18135
train
// NewLogger creates a log.Logger whose output is written to // the system log service with the specified priority. The logFlag // argument is the flag set passed through to log.New to create // the Logger.
{ "resource": "" }
c18136
train
// unixSyslog opens a connection to the syslog daemon running on the // local machine using a Unix domain socket. This function exists because of // Solaris support as implemented by gccgo. On Solaris you can not // simply open a TCP connection to the syslog daemon. The gccgo // sources have a syslog_solaris.go file ...
{ "resource": "" }
c18137
train
// GetSocketFromTCPConnection will try to get socket path by connecting to MySQL localhost TCP port. // This is not reliable as TCP connections may be not allowed.
{ "resource": "" }
c18138
train
// GetSocket tries to detect and return path to the MySQL socket.
{ "resource": "" }
c18139
train
// AddEvent adds the event to the aggregator, automatically creating new classes // as needed.
{ "resource": "" }
c18140
train
// Finalize calculates all metric statistics and returns a Result. // Call this function when done adding events to the aggregator.
{ "resource": "" }
c18141
train
// NewSlowLogParser returns a new SlowLogParser that reads from the open file.
{ "resource": "" }
c18142
train
// Stop stops the parser before parsing the next event or while blocked on // sending the current event to the event channel.
{ "resource": "" }
c18143
train
// Start starts the parser. Events are sent to the unbuffered event channel. // Parsing stops on EOF, error, or call to Stop. The event channel is closed // when parsing stops. The file is not closed.
{ "resource": "" }
c18144
train
// NewClass returns a new Class for the class ID and fingerprint. // If sample is true, the query with the greatest Query_time is saved.
{ "resource": "" }
c18145
train
// AddEvent adds an event to the query class.
{ "resource": "" }
c18146
train
// AddClass adds a Class to the current class. This is used with Performance // Schema which returns pre-aggregated classes instead of events.
{ "resource": "" }
c18147
train
// Finalize calculates all metric statistics. Call this function when done // adding events to the class.
{ "resource": "" }
c18148
train
// NewEvent returns a new Event with initialized metric maps.
{ "resource": "" }
c18149
train
// Id returns the right-most 16 characters of the MD5 checksum of fingerprint. // Query IDs are the shortest way to uniquely identify queries.
{ "resource": "" }
c18150
train
// NewMetrics returns a pointer to an initialized Metrics structure.
{ "resource": "" }
c18151
train
// AddEvent saves all the metrics of the event.
{ "resource": "" }
c18152
train
// Finalize calculates the statistics of the added metrics. Call this function // when done adding events.
{ "resource": "" }
c18153
train
// String implement Stringer interface.
{ "resource": "" }
c18154
train
// GetHandshakeDuration specify signal duration necessary // to initiate sensor response.
{ "resource": "" }
c18155
train
// Activate sensor and get back bunch of pulses for further decoding. // C function call wrapper.
{ "resource": "" }
c18156
train
// decodeByte decode data byte from specific pulse array position.
{ "resource": "" }
c18157
train
// converts a list of subnets' string to a list of net.IPNet.
{ "resource": "" }
c18158
train
// checks if a net.IP is in a list of net.IPNet
{ "resource": "" }
c18159
train
// IsPublicIP returns true if the given IP can be routed on the Internet.
{ "resource": "" }
c18160
train
// Parse parses the value of the X-Forwarded-For Header and returns the IP address.
{ "resource": "" }
c18161
train
// GetRemoteAddr parses the given request, resolves the X-Forwarded-For header // and returns the resolved remote address.
{ "resource": "" }
c18162
train
// GetRemoteAddrIfAllowed parses the given request, resolves the X-Forwarded-For header // and returns the resolved remote address if allowed.
{ "resource": "" }
c18163
train
// New creates a new XFF handler with the provided options.
{ "resource": "" }
c18164
train
// Handler updates RemoteAdd from X-Fowarded-For Headers.
{ "resource": "" }
c18165
train
// Negroni compatible interface
{ "resource": "" }
c18166
train
// checks that the IP is allowed.
{ "resource": "" }
c18167
train
// Errorf calls Error on t with a colorized message
{ "resource": "" }
c18168
train
// Fatalf calls Fatal on t with a colorized message
{ "resource": "" }
c18169
train
// Dump is a convenient method to log the full contents of a request and its response.
{ "resource": "" }
c18170
train
// SkipUnless will Skip the test unless the LABELS environment variable includes any of the provided labels. // // LABELS=integration,nightly go test -v //
{ "resource": "" }
c18171
train
// Logf formats its arguments according to the format, analogous to Printf, and records the text in the error log. // The text will be printed only if the test fails or the -test.v flag is set.
{ "resource": "" }
c18172
train
// Fatal is equivalent to Log followed by FailNow.
{ "resource": "" }
c18173
train
// CheckError simply tests the error and fail is not undefined. // This is implicity called after sending a Http request. // Return true if there was an error.
{ "resource": "" }
c18174
train
// ExpectHeader inspects the header of the response. // Return true if the header matches.
{ "resource": "" }
c18175
train
// ExpectJSONHash tries to unmarshal the response body into a Go map callback parameter. // Fail if the body could not be read or if unmarshalling was not possible. // Returns true if the callback was executed with a map.
{ "resource": "" }
c18176
train
// ExpectJSONArray tries to unmarshal the response body into a Go slice callback parameter. // Fail if the body could not be read or if unmarshalling was not possible. // Returns true if the callback was executed with an array.
{ "resource": "" }
c18177
train
// ExpectString reads the response body into a Go string callback parameter. // Fail if the body could not be read or unmarshalled. // Returns true if a response body was read.
{ "resource": "" }
c18178
train
// NewConfig returns a new RequestConfig with initialized empty headers and query parameters. // See Path for an explanation of the function parameters.
{ "resource": "" }
c18179
train
// Do calls the one-argument function parameter with the receiver. // This allows for custom convenience functions without breaking the fluent programming style.
{ "resource": "" }
c18180
train
// Query adds a name=value pair to the list of query parameters.
{ "resource": "" }
c18181
train
// Header adds a name=value pair to the list of header parameters.
{ "resource": "" }
c18182
train
// Body sets the playload as is. No content type is set. // It sets the BodyReader field of the RequestConfig.
{ "resource": "" }
c18183
train
// Read sets the BodyReader for content to send with the request.
{ "resource": "" }
c18184
train
// ProcessTemplate creates a new text Template and executes it using the provided value. // Returns the string result of applying this template. // Failures in the template are reported using t.
{ "resource": "" }
c18185
train
// structToMapString converts struct as map string
{ "resource": "" }
c18186
train
// valueToString converts supported type of f as slice string
{ "resource": "" }
c18187
train
// Shortcut for sending SMS with no optional parameters support.
{ "resource": "" }
c18188
train
// NewClient returns a new Twilio API client. This will load default http.Client if httpClient is nil.
{ "resource": "" }
c18189
train
// get an int array using whatever the appropriate sized type is
{ "resource": "" }
c18190
train
// Get an int array using the default 'int' type. DEPRECATED because all rpm // integers are unsigned, so some int32 values might not fit. Returns an error // in case of overflow.
{ "resource": "" }
c18191
train
// Get an int array as a uint32 slice. This can accomodate any int type other // than INT64.
{ "resource": "" }
c18192
train
// Get an int array as a uint64 slice. This can accomodate all int types.
{ "resource": "" }
c18193
train
// Get longTag if it exists, otherwise intTag
{ "resource": "" }
c18194
train
// Return the approximate disk space needed to install the package
{ "resource": "" }
c18195
train
// Return the size of the uncompressed payload in bytes
{ "resource": "" }
c18196
train
// Read an RPM and sign it, returning the set of headers updated with the new signature.
{ "resource": "" }
c18197
train
// SignRpmFileIntoStream signs the rpmfile represented by infile with the // provided private key and sig options. The entire signed RPM file is then // written to the outstream.
{ "resource": "" }
c18198
train
// Wrap RPM payload with uncompress reader, assumes that header has // already been read.
{ "resource": "" }
c18199
train
// Less reports wheather the element with index i should sort before the // element with index j.
{ "resource": "" }