_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c8700
train
// SetDefaultLoggerName sets the default logger name.
{ "resource": "" }
c8701
train
// SetSampleRate sets how much sampling we want on client side
{ "resource": "" }
c8702
train
// Capture asynchronously delivers a packet to the Sentry server. It is a no-op // when client is nil. A channel is provided if it is important to check for a // send's success.
{ "resource": "" }
c8703
train
// CaptureMessage formats and delivers a string message to the Sentry server.
{ "resource": "" }
c8704
train
// CaptureMessageAndWait is identical to CaptureMessage except it blocks and waits for the message to be sent.
{ "resource": "" }
c8705
train
// CaptureError formats and delivers an error to the Sentry server. // Adds a stacktrace to the packet, excluding the call to this method.
{ "resource": "" }
c8706
train
// CaptureErrorAndWait is identical to CaptureError, except it blocks and assures that the event was sent
{ "resource": "" }
c8707
train
// CapturePanicAndWait is identical to CapturePanic, except it blocks and assures that the event was sent
{ "resource": "" }
c8708
train
// URL returns configured url of given client
{ "resource": "" }
c8709
train
// ProjectID returns configured ProjectID of given client
{ "resource": "" }
c8710
train
// Release returns configured Release of given client
{ "resource": "" }
c8711
train
// IncludePaths returns configured includePaths of given client
{ "resource": "" }
c8712
train
// SetIncludePaths updates includePaths config on given client
{ "resource": "" }
c8713
train
// SetUserContext updates User of Context interface on given client
{ "resource": "" }
c8714
train
// SetHttpContext updates Http of Context interface on given client
{ "resource": "" }
c8715
train
// SetTagsContext updates Tags of Context interface on given client
{ "resource": "" }
c8716
train
// ClearContext clears Context interface on given client by removing tags, user and request information
{ "resource": "" }
c8717
train
// Send uses HTTPTransport to send a Packet to configured Sentry's DSN endpoint
{ "resource": "" }
c8718
train
// NewHttp creates new HTTP object that follows Sentry's HTTP interface spec and will be attached to the Packet
{ "resource": "" }
c8719
train
// Write formats the byte slice p into a string, and sends a message to // Sentry at the severity level indicated by the Writer w.
{ "resource": "" }
c8720
train
// roundUpPower2 rounds a number to the next power of 2.
{ "resource": "" }
c8721
train
// log2 computes the binary logarithm of x, rounded up to the next integer.
{ "resource": "" }
c8722
train
// getKeyHash returns a hash for the key. Only string and number types are supported.
{ "resource": "" }
c8723
train
// New returns a new HashMap instance with a specific initialization size.
{ "resource": "" }
c8724
train
// Fillrate returns the fill rate of the map as an percentage integer.
{ "resource": "" }
c8725
train
// DelHashedKey deletes the hashed key from the map.
{ "resource": "" }
c8726
train
// deleteElement deletes an element from index
{ "resource": "" }
c8727
train
// Insert sets the value under the specified key to the map if it does not exist yet. // If a resizing operation is happening concurrently while calling Set, the item might show up in the map only after the resize operation is finished. // Returns true if the item was inserted or false if it existed.
{ "resource": "" }
c8728
train
// Set sets the value under the specified key to the map. An existing item for this key will be overwritten. // If a resizing operation is happening concurrently while calling Set, the item might show up in the map only after the resize operation is finished.
{ "resource": "" }
c8729
train
// SetHashedKey sets the value under the specified hash key to the map. An existing item for this key will be overwritten. // You can use this function if your keys are already hashes and you want to avoid another hashing of the key. // Do not use non hashes as keys for this function, the performance would decrease! //...
{ "resource": "" }
c8730
train
// CasHashedKey performs a compare and swap operation sets the value under the specified hash key to the map. An existing item for this key will be overwritten.
{ "resource": "" }
c8731
train
// Cas performs a compare and swap operation sets the value under the specified hash key to the map. An existing item for this key will be overwritten.
{ "resource": "" }
c8732
train
// adds an item to the index if needed and returns the new item counter if it changed, otherwise 0
{ "resource": "" }
c8733
train
// Grow resizes the hashmap to a new size, gets rounded up to next power of 2. // To double the size of the hashmap use newSize 0. // This function returns immediately, the resize operation is done in a goroutine. // No resizing is done in case of another resize operation already being in progress.
{ "resource": "" }
c8734
train
// String returns the map as a string, only hashed keys are printed.
{ "resource": "" }
c8735
train
// Iter returns an iterator which could be used in a for range loop. // The order of the items is sorted by hash keys.
{ "resource": "" }
c8736
train
// GetUintKey retrieves an element from the map under given integer key.
{ "resource": "" }
c8737
train
// GetHashedKey retrieves an element from the map under given hashed key.
{ "resource": "" }
c8738
train
// GetOrInsert returns the existing value for the key if present. // Otherwise, it stores and returns the given value. // The loaded result is true if the value was loaded, false if stored.
{ "resource": "" }
c8739
train
// Len returns the number of elements within the list.
{ "resource": "" }
c8740
train
// First returns the first item of the list.
{ "resource": "" }
c8741
train
// Add adds an item to the list and returns false if an item for the hash existed. // searchStart = nil will start to search at the head item
{ "resource": "" }
c8742
train
// AddOrUpdate adds or updates an item to the list.
{ "resource": "" }
c8743
train
// Cas compares and swaps the value of an item in the list.
{ "resource": "" }
c8744
train
// Delete deletes an element from the list.
{ "resource": "" }
c8745
train
// setValue sets the value of the item. // The value needs to be wrapped in unsafe.Pointer already.
{ "resource": "" }
c8746
train
// casValue compares and swaps the values of the item. // The to value needs to be wrapped in unsafe.Pointer already.
{ "resource": "" }
c8747
train
// NewCookie return a http.Cookie via give name and value
{ "resource": "" }
c8748
train
// Get return http.Cookie via key
{ "resource": "" }
c8749
train
// Set set a http.Cookie
{ "resource": "" }
c8750
train
// Expire let a cookie named key when expire address
{ "resource": "" }
c8751
train
// Del del cookie by key
{ "resource": "" }
c8752
train
// String get cookie as string
{ "resource": "" }
c8753
train
// Int get cookie as int
{ "resource": "" }
c8754
train
// Int32 get cookie as int32
{ "resource": "" }
c8755
train
// Int64 get cookie as int64
{ "resource": "" }
c8756
train
// Uint get cookie as uint
{ "resource": "" }
c8757
train
// Uint32 get cookie as uint32
{ "resource": "" }
c8758
train
// Uint64 get cookie as uint64
{ "resource": "" }
c8759
train
// Float32 get cookie as float32
{ "resource": "" }
c8760
train
// Float64 get cookie as float64
{ "resource": "" }
c8761
train
// Bool get cookie as bool
{ "resource": "" }
c8762
train
// MustString get cookie as string with default
{ "resource": "" }
c8763
train
// MustEscape get cookie as escaped string with default
{ "resource": "" }
c8764
train
// MustInt get cookie as int with default
{ "resource": "" }
c8765
train
// MustInt32 get cookie as int32 with default
{ "resource": "" }
c8766
train
// MustInt64 get cookie as int64 with default
{ "resource": "" }
c8767
train
// MustUint get cookie as uint with default
{ "resource": "" }
c8768
train
// MustUint32 get cookie as uint32 with default
{ "resource": "" }
c8769
train
// MustUint64 get cookie as uint64 with default
{ "resource": "" }
c8770
train
// MustFloat32 get cookie as float32 with default
{ "resource": "" }
c8771
train
// MustFloat64 get cookie as float64 with default
{ "resource": "" }
c8772
train
// MustBool get cookie as bool with default
{ "resource": "" }
c8773
train
// Cookie returns cookie as string with default
{ "resource": "" }
c8774
train
// CookieEscape returns cookie as escaped string with default
{ "resource": "" }
c8775
train
// CookieInt returns cookie as int with default
{ "resource": "" }
c8776
train
// CookieInt32 returns cookie as int32 with default
{ "resource": "" }
c8777
train
// CookieInt64 returns cookie as int64 with default
{ "resource": "" }
c8778
train
// CookieUint returns cookie as uint with default
{ "resource": "" }
c8779
train
// CookieUint32 returns cookie as uint32 with default
{ "resource": "" }
c8780
train
// CookieUint64 returns cookie as uint64 with default
{ "resource": "" }
c8781
train
// CookieFloat32 returns cookie as float32 with default
{ "resource": "" }
c8782
train
// CookieFloat64 returns cookie as float64 with default
{ "resource": "" }
c8783
train
// CookieBool returns cookie as bool with default
{ "resource": "" }
c8784
train
// Int32 gets int32 data
{ "resource": "" }
c8785
train
// Int64 gets int64 data
{ "resource": "" }
c8786
train
// Uint gets uint data
{ "resource": "" }
c8787
train
// Uint64 gets unit64 data
{ "resource": "" }
c8788
train
// Float32 gets float32 data
{ "resource": "" }
c8789
train
// Float64 gets float64 data
{ "resource": "" }
c8790
train
// Bool gets bool data
{ "resource": "" }
c8791
train
// MustString gets data
{ "resource": "" }
c8792
train
// MustEscape gets data escaped
{ "resource": "" }
c8793
train
// MustInt gets data int
{ "resource": "" }
c8794
train
// MustInt32 gets data int32
{ "resource": "" }
c8795
train
// MustUint gets data unit type
{ "resource": "" }
c8796
train
// MustFloat32 gets data float32 type
{ "resource": "" }
c8797
train
// MustBool gets data bool type
{ "resource": "" }
c8798
train
// NewSecureCookie generates a new secure cookie
{ "resource": "" }
c8799
train
// Expire sets key expire time
{ "resource": "" }