_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c13700
train
// Indeterminate satisfies ProgressDisplay interface.
{ "resource": "" }
c13701
train
// Set sets the key in this context to value.
{ "resource": "" }
c13702
train
// Keys returns all keys in the context.
{ "resource": "" }
c13703
train
// rlPrompt returns the proper prompt for readline based on showPrompt and // prompt members.
{ "resource": "" }
c13704
train
// Push adds a new State at the front of the history.
{ "resource": "" }
c13705
train
// Pop removes and returns the State at the front of the history.
{ "resource": "" }
c13706
train
// Top returns the State at the front of the history without removing it.
{ "resource": "" }
c13707
train
// Has returns a boolean value indicating whether a bookmark exists with the given name.
{ "resource": "" }
c13708
train
// writeToFile writes the bookmarks to the file.
{ "resource": "" }
c13709
train
// Download writes the asset to the given io.Writer type.
{ "resource": "" }
c13710
train
// DownloadAsync downloads the asset asynchronously.
{ "resource": "" }
c13711
train
// DownloadAsset copies a remote file to the given writer.
{ "resource": "" }
c13712
train
// DownloadAssetAsync downloads an asset asynchronously and notifies the given channel // when the download is complete.
{ "resource": "" }
c13713
train
// New creates and returns an Error type.
{ "resource": "" }
c13714
train
// NewPageNotFound creates and returns a NotFound type.
{ "resource": "" }
c13715
train
// NewLinkNotFound creates and returns a LinkNotFound type.
{ "resource": "" }
c13716
train
// NewAttributeNotFound creates and returns a AttributeNotFound type.
{ "resource": "" }
c13717
train
// NewLocation creates and returns a Location type.
{ "resource": "" }
c13718
train
// NewPageNotLoaded creates and returns a PageNotLoaded type.
{ "resource": "" }
c13719
train
// NewElementNotFound creates and returns a ElementNotFound type.
{ "resource": "" }
c13720
train
// NewInvalidFormValue creates and returns a InvalidFormValue type.
{ "resource": "" }
c13721
train
// Input sets the value of a form field. // it returns an ElementNotFound error if the field does not exist
{ "resource": "" }
c13722
train
// File sets the value for an form input type file, // it returns an ElementNotFound error if the field does not exists
{ "resource": "" }
c13723
train
// SetFile sets the value for a form input type file. // It will add the field to the form if necessary
{ "resource": "" }
c13724
train
// Check sets the checkbox value to its active state.
{ "resource": "" }
c13725
train
// UnCheck sets the checkbox value to inactive state.
{ "resource": "" }
c13726
train
// IsChecked returns the current state of the checkbox
{ "resource": "" }
c13727
train
// Value returns the current value of a form element whose name matches. If name is not // found, error is returned. For multiple value form element such as select multiple, // the first value is returned.
{ "resource": "" }
c13728
train
// RemoveValue will remove a single instance of a form value whose name and value match. // This is valuable for removing a single value from a select multiple.
{ "resource": "" }
c13729
train
// SelectByOptionLabel sets the current value of a select form element acording to the // options label. If the element is a select multiple, multiple options may be selected.
{ "resource": "" }
c13730
train
// SelectByOptionValue sets the current value of a select form element acording to the // options value. If the element is a select multiple, multiple options may be selected.
{ "resource": "" }
c13731
train
// SelectValues returns the current values of a form element whose name matches. If name is not // found, error is returned. For select multiple elements, all values are returned.
{ "resource": "" }
c13732
train
// SelectLabels returns the labels for the selected options for a select form element whose name // matches. If name is not found, error is returned.
{ "resource": "" }
c13733
train
// Click submits the form by clicking the button with the given name and value.
{ "resource": "" }
c13734
train
// Open requests the given URL using the GET method.
{ "resource": "" }
c13735
train
// Head requests the given URL using the HEAD method.
{ "resource": "" }
c13736
train
// OpenForm appends the data values to the given URL and sends a GET request.
{ "resource": "" }
c13737
train
// Post requests the given URL using the POST method.
{ "resource": "" }
c13738
train
// PostForm requests the given URL using the POST method with the given data.
{ "resource": "" }
c13739
train
// Back loads the previously requested page. // // Returns a boolean value indicating whether a previous page existed, and was // successfully loaded.
{ "resource": "" }
c13740
train
// Reload duplicates the last successful request.
{ "resource": "" }
c13741
train
// Bookmark saves the page URL in the bookmarks with the given name.
{ "resource": "" }
c13742
train
// Click clicks on the page element matched by the given expression. // // Currently this is only useful for click on links, which will cause the browser // to load the page pointed at by the link. Future versions of Surf may support // JavaScript and clicking on elements will fire the click event.
{ "resource": "" }
c13743
train
// Form returns the form in the current page that matches the given expr.
{ "resource": "" }
c13744
train
// Forms returns an array of every form in the page.
{ "resource": "" }
c13745
train
// Links returns an array of every link found in the page.
{ "resource": "" }
c13746
train
// Images returns an array of every image found in the page.
{ "resource": "" }
c13747
train
// Stylesheets returns an array of every stylesheet linked to the document.
{ "resource": "" }
c13748
train
// Scripts returns an array of every script linked to the document.
{ "resource": "" }
c13749
train
// SiteCookies returns the cookies for the current site.
{ "resource": "" }
c13750
train
// SetCookieJar is used to set the cookie jar the browser uses.
{ "resource": "" }
c13751
train
// SetAttribute sets a browser instruction attribute.
{ "resource": "" }
c13752
train
// SetTransport sets the http library transport mechanism for each request. // SetTimeout sets the timeout for requests.
{ "resource": "" }
c13753
train
// SetTransport sets the http library transport mechanism for each request.
{ "resource": "" }
c13754
train
// AddRequestHeader sets a header the browser sends with each request.
{ "resource": "" }
c13755
train
// ResolveUrl returns an absolute URL for a possibly relative URL.
{ "resource": "" }
c13756
train
// ResolveStringUrl works just like ResolveUrl, but the argument and return value are strings.
{ "resource": "" }
c13757
train
// Download writes the contents of the document to the given writer.
{ "resource": "" }
c13758
train
// Url returns the page URL as a string.
{ "resource": "" }
c13759
train
// Body returns the page body as a string of html.
{ "resource": "" }
c13760
train
// Find returns the dom selections matching the given expression.
{ "resource": "" }
c13761
train
// httpGET makes an HTTP GET request for the given URL. // When via is not nil, and AttributeSendReferer is true, the Referer header will // be set to ref.
{ "resource": "" }
c13762
train
// httpPOST makes an HTTP POST request for the given URL. // When via is not nil, and AttributeSendReferer is true, the Referer header will // be set to ref.
{ "resource": "" }
c13763
train
// postSend sets browser state after sending a request.
{ "resource": "" }
c13764
train
// shouldRedirect is used as the value to http.Client.CheckRedirect.
{ "resource": "" }
c13765
train
// attributeToUrl reads an attribute from an element and returns a url.
{ "resource": "" }
c13766
train
// attributeOrDefault reads an attribute and returns it or the default value when it's empty.
{ "resource": "" }
c13767
train
// PKCS5Padding PKCS5 Padding
{ "resource": "" }
c13768
train
// PKCS5UnPadding PKCS5 UnPadding
{ "resource": "" }
c13769
train
// Errorf sends an error to Rollbar with the given level using the format string and arguments.
{ "resource": "" }
c13770
train
// ErrorWithExtras asynchronously sends an error to Rollbar with the given // severity level with extra custom data.
{ "resource": "" }
c13771
train
// ErrorWithExtrasAndContext asynchronously sends an error to Rollbar with the given // severity level with extra custom data, within the given context.
{ "resource": "" }
c13772
train
// RequestError asynchronously sends an error to Rollbar with the given // severity level and request-specific information.
{ "resource": "" }
c13773
train
// RequestErrorWithExtras asynchronously sends an error to Rollbar with the given // severity level and request-specific information with extra custom data.
{ "resource": "" }
c13774
train
// RequestErrorWithExtrasAndContext asynchronously sends an error to Rollbar with the given // severity level and request-specific information with extra custom data.
{ "resource": "" }
c13775
train
// ErrorWithStackSkip asynchronously sends an error to Rollbar with the given // severity level and a given number of stack trace frames skipped.
{ "resource": "" }
c13776
train
// ErrorWithStackSkipWithExtras asynchronously sends an error to Rollbar with the given // severity level and a given number of stack trace frames skipped with extra custom data.
{ "resource": "" }
c13777
train
// ErrorWithStackSkipWithExtrasAndContext asynchronously sends an error to Rollbar with the given // severity level and a given number of stack trace frames skipped with extra custom data, within // the given context.
{ "resource": "" }
c13778
train
// RequestErrorWithStackSkip asynchronously sends an error to Rollbar with the // RequestErrorWithStackSkip asynchronously sends an error to Rollbar with the // given severity level and a given number of stack trace frames skipped, in // addition to extra request-specific information.
{ "resource": "" }
c13779
train
// RequestErrorWithStackSkipWithExtras asynchronously sends an error to Rollbar // with the given severity level and a given number of stack trace frames skipped, // in addition to extra request-specific information and extra custom data.
{ "resource": "" }
c13780
train
// RequestErrorWithStackSkipWithExtrasAndContext asynchronously sends an error to Rollbar // with the given severity level and a given number of stack trace frames skipped, // in addition to extra request-specific information and extra custom data, within the given context.
{ "resource": "" }
c13781
train
// MessageWithExtras asynchronously sends a message to Rollbar with the given severity // level with extra custom data. Rollbar request is asynchronous.
{ "resource": "" }
c13782
train
// MessageWithExtrasAndContext asynchronously sends a message to Rollbar with the given severity // level with extra custom data, within the given context. Rollbar request is asynchronous.
{ "resource": "" }
c13783
train
// RequestMessage asynchronously sends a message to Rollbar with the given // severity level and request-specific information.
{ "resource": "" }
c13784
train
// RequestMessageWithExtras asynchronously sends a message to Rollbar with the given severity // level with extra custom data in addition to extra request-specific information. // Rollbar request is asynchronous.
{ "resource": "" }
c13785
train
// RequestMessageWithExtrasAndContext asynchronously sends a message to Rollbar with the given severity // level with extra custom data in addition to extra request-specific information, within the given // context. Rollbar request is asynchronous.
{ "resource": "" }
c13786
train
// remoteIP attempts to extract the real remote IP address by looking first at the headers X-Real-IP // and X-Forwarded-For, and then falling back to RemoteAddr defined in http.Request
{ "resource": "" }
c13787
train
// filterFlatten filters sensitive information like passwords from being sent to Rollbar, and // also lifts any values with length one up to be a standalone string. The optional specialKeys map // will force strings that exist in that map and also in values to have a single string value in the // resulting map by takin...
{ "resource": "" }
c13788
train
// flattenValues takes a map from strings to lists of strings and performs a lift // on values which have length 1.
{ "resource": "" }
c13789
train
// filterIp takes an ip address string and a capture policy and returns a possibly // transformed ip address string.
{ "resource": "" }
c13790
train
// Build an error inner-body for the given error. If skip is provided, that // number of stack trace frames will be skipped. If the error has a Cause // method, the causes will be traversed until nil.
{ "resource": "" }
c13791
train
// builds one trace element in trace_chain
{ "resource": "" }
c13792
train
// gets stack frames from errors that provide one of their own // otherwise, builds a new stack trace
{ "resource": "" }
c13793
train
// NewSyncTransport builds a synchronous transport which sends data to the Rollbar API at the // specified endpoint using the given access token.
{ "resource": "" }
c13794
train
// Send the body to Rollbar. // Returns errors associated with the http request if any. // If the access token has not been set or is empty then this will // not send anything and will return nil.
{ "resource": "" }
c13795
train
// New returns the default implementation of a Client. // This uses the AsyncTransport.
{ "resource": "" }
c13796
train
// NewAsync builds a Client with the asynchronous implementation of the transport interface.
{ "resource": "" }
c13797
train
// NewSync builds a Client with the synchronous implementation of the transport interface.
{ "resource": "" }
c13798
train
// SetToken sets the token used by this client. // The value is a Rollbar access token with scope "post_server_item". // It is required to set this value before any of the other functions herein will be able to work // properly. This also configures the underlying Transport.
{ "resource": "" }
c13799
train
// SetEndpoint sets the endpoint to post items to. This also configures the underlying Transport.
{ "resource": "" }