_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c173800
validation
// Dx returns r's width.
{ "resource": "" }
c173801
validation
// Dy returns r's height.
{ "resource": "" }
c173802
validation
// In reports whether Rectangle r is contained in s.
{ "resource": "" }
c173803
validation
// Approx returns true if x ~= y
{ "resource": "" }
c173804
validation
// ApproxEpsilon returns true if x ~= y, using provided epsilon value.
{ "resource": "" }
c173805
validation
// SetXYZ sets the 3 components at once.
{ "resource": "" }
c173806
validation
// Vec3Dist2DSqr derives the square of the distance between v1 and v2 on the // xz-plane. // // The vectors are projected onto the xz-plane, so the y-values are ignored.
{ "resource": "" }
c173807
validation
// Vec3 methods // Copy copies the 3 vector components into dst.
{ "resource": "" }
c173808
validation
// Assign assign the component of v1 to v. v = v1
{ "resource": "" }
c173809
validation
// Dist2D derives the distance between v and v2 on the xz-plane. // // The vectors are projected onto the xz-plane, so the y-values are ignored.
{ "resource": "" }
c173810
validation
// Dist2DSqr derives the square of the distance between v and v2 on the // xz-plane. // // The vectors are projected onto the xz-plane, so the y-values are ignored.
{ "resource": "" }
c173811
validation
// Cross returns the cross product of two vectors. v x v1
{ "resource": "" }
c173812
validation
// Dot2D derives the dot product of two vectors on the xz-plane. u . v // // The vectors are projected onto the xz-plane, so the y-values are ignored.
{ "resource": "" }
c173813
validation
// NewRay creates a new Ray having the o as origin and v as direction of the // line.
{ "resource": "" }
c173814
validation
// IntersectRect indicates wether the ray intersects with the rectangle b.
{ "resource": "" }
c173815
validation
// SupportedFunc returns a function that checks if the server can // support a specific request.
{ "resource": "" }
c173816
validation
// NewSigner creates a new RSA backed Signer
{ "resource": "" }
c173817
validation
// NewVerifier creates a new RSA backed Verifier
{ "resource": "" }
c173818
validation
// Request makes a performs a new GDPR request.
{ "resource": "" }
c173819
validation
// Status checks the status of an existing GDPR request.
{ "resource": "" }
c173820
validation
// Cancel cancels an existing GDPR request.
{ "resource": "" }
c173821
validation
// Discovery describes the remote OpenGDPR speciication.
{ "resource": "" }
c173822
validation
// NewClient returns a new OpenGDPR client.
{ "resource": "" }
c173823
validation
// Push pushes a new item on top of the stack.
{ "resource": "" }
c173824
validation
// Pop removes the topmost item from the stack and return its value. // // If the stack is empty, Pop returns nil.
{ "resource": "" }
c173825
validation
// PopLast removes the bottommost item. // // PopLast does nothing if the stack does not contain at least 2 items.
{ "resource": "" }
c173826
validation
// Peek returns the topmost item without removing it from the stack.
{ "resource": "" }
c173827
validation
// PeekN returns at max the N topmost item without removing them from the stack.
{ "resource": "" }
c173828
validation
// Vecf32 creates a Vec from float32 values.
{ "resource": "" }
c173829
validation
// Veci creates a Vec from int values.
{ "resource": "" }
c173830
validation
// Add returns the vector v+v2.
{ "resource": "" }
c173831
validation
// Sub returns the vector v-v2.
{ "resource": "" }
c173832
validation
// In reports whether p is in r.
{ "resource": "" }
c173833
validation
// Len returns the vector's length.
{ "resource": "" }
c173834
validation
// ApproxFuncEqual takes in a func that compares two floats, and uses it to do // an element-wise comparison of the vector to another. // // This is intended to be used with FloatEqualFunc
{ "resource": "" }
c173835
validation
// Merge merges another HandlerMap into itself.
{ "resource": "" }
c173836
validation
// respCode maps any successful request with a // specific status code or returns 200.
{ "resource": "" }
c173837
validation
// NewServer returns a server type that statisfies the // http.Handler interface.
{ "resource": "" }
c173838
validation
// Callback sends the CallbackRequest type to the configured // StatusCallbackUrl. If it fails to deliver in n attempts or // the request is invalid it will return an error.
{ "resource": "" }
c173839
validation
// ErrNotFound indicates a request could // not be found by the processor.
{ "resource": "" }
c173840
validation
// ErrUnsupportedRequestType indicates the processor // cannot fullfil a request for the given RequestType.
{ "resource": "" }
c173841
validation
// ErrUnsupportedIdentity indicates the processor // does not support the given identity type.
{ "resource": "" }
c173842
validation
// ErrMissingRequiredField indicates the request // is missing a required field.
{ "resource": "" }
c173843
validation
// ErrInvalidRequestSignature indicates the payload could not // be verified with the given signature.
{ "resource": "" }
c173844
validation
// DatabaseServers retrieves a list of all database servers
{ "resource": "" }
c173845
validation
// SnapshotDatabaseServer requests a snapshot of an existing database server.
{ "resource": "" }
c173846
validation
// ResetPasswordForDatabaseServer requests a snapshot of an existing database server.
{ "resource": "" }
c173847
validation
// Servers retrieves a list of all servers
{ "resource": "" }
c173848
validation
// Server retrieves a detailed view of one server
{ "resource": "" }
c173849
validation
// DestroyServer issues a request to destroy the server
{ "resource": "" }
c173850
validation
// LockServer locks an existing server, preventing it's destruction without // first unlocking. Deprecated, use LockResource instead.
{ "resource": "" }
c173851
validation
// UnlockServer unlocks a previously locked existing server, allowing // destruction again. Deprecated, use UnLockResource instead.
{ "resource": "" }
c173852
validation
// SnapshotServer issues a request to snapshot the disk of an existing // server. The snapshot is allocated an Image Id which is returned within an // instance of Image.
{ "resource": "" }
c173853
validation
// FullConsoleUrl returns the console url for the server with the token in the // query string. Server needs a ConsoleUrl and ConsoleToken, retrieved using // ActivateConsoleForServer
{ "resource": "" }
c173854
validation
// FirewallRule retrieves a detailed view of one firewall rule
{ "resource": "" }
c173855
validation
// ServerGroups retrieves a list of all server groups
{ "resource": "" }
c173856
validation
// ServerGroup retrieves a detailed view on one server group
{ "resource": "" }
c173857
validation
// AddServersToServerGroup adds servers to an existing server group. // // The identifier parameter specifies the destination group. // // The serverIds paramater specifies the identifiers of the servers you want to add.
{ "resource": "" }
c173858
validation
// MoveServersToServerGroup atomically moves servers from one group to another. // // The src parameter specifies the group to which the servers currently belong // // The dst parameter specifies the group to which you want to move the servers. // // The serverIds parameter specifies the identifiers of the servers you ...
{ "resource": "" }
c173859
validation
// LoadBalancers retrieves a list of all load balancers
{ "resource": "" }
c173860
validation
// LoadBalancer retrieves a detailed view of one load balancer
{ "resource": "" }
c173861
validation
// AddNodesToLoadBalancer adds nodes to an existing load balancer.
{ "resource": "" }
c173862
validation
// RemoveListenersFromLoadBalancer removes listeners to an existing load balancer.
{ "resource": "" }
c173863
validation
// LockResource locks a resource against destroy requests. Support brightbox.CloudIP, brightbox.Server, brightbox.Image and brightbox.LoadBalancer
{ "resource": "" }
c173864
validation
// FirewallPolicies retrieves a list of all firewall policies
{ "resource": "" }
c173865
validation
// FirewallPolicy retrieves a detailed view of one firewall policy
{ "resource": "" }
c173866
validation
// ApplyFirewallPolicy issues a request to apply the given firewall policy to // the given server group. //
{ "resource": "" }
c173867
validation
// Extract is a method that attempts to interpret any Swauth authentication // response as a AuthResult struct.
{ "resource": "" }
c173868
validation
// ApiClients retrieves a list of all API clients
{ "resource": "" }
c173869
validation
// ApiClient retrieves a detailed view of one API client
{ "resource": "" }
c173870
validation
// ResetSecretForApiClient requests a snapshot of an existing api client
{ "resource": "" }
c173871
validation
// Images retrieves a list of all images
{ "resource": "" }
c173872
validation
// Image retrieves a detailed view of one image
{ "resource": "" }
c173873
validation
// Accounts retrieves a list of all accounts associated with the client. // // API Clients are only ever associated with one single account. User clients // can have multiple accounts, through collaborations.
{ "resource": "" }
c173874
validation
// Account retrieves a detailed view of one account
{ "resource": "" }
c173875
validation
// CloudIPs retrieves a list of all cloud ips
{ "resource": "" }
c173876
validation
// CloudIP retrieves a detailed view of one cloud ip
{ "resource": "" }
c173877
validation
// MapCloudIPtoServer is a convenience method to map a Cloud IP to a // server. First looks up the server to get the network interface id. Uses the // first interface found.
{ "resource": "" }
c173878
validation
// setAuthHeader sets the Swift Authorization header to r using the access // token in t. //
{ "resource": "" }
c173879
validation
// Auth performs an authentication request for a Swauth-based user.
{ "resource": "" }
c173880
validation
// Collaborations retrieves a list of all the current user's collaborations
{ "resource": "" }
c173881
validation
// Collaboration retrieves a detailed view of one of the current user's // collaborations
{ "resource": "" }
c173882
validation
// DatabaseSnapshots retrieves a list of all database snapshot
{ "resource": "" }
c173883
validation
// DatabaseSnapshot retrieves a detailed view of one database snapshot
{ "resource": "" }
c173884
validation
// Scan ping to hosts in CIDR range.
{ "resource": "" }
c173885
validation
// ToFile downloads the specified `src` URL to `dest` file using // the specified `FileOptions`.
{ "resource": "" }
c173886
validation
// ToWriter downloads the specified `src` URL to `w` writer using // the specified `Options`.
{ "resource": "" }
c173887
validation
// FromURL downloads the specified `src` URL to `w` writer using // the specified `Options`.
{ "resource": "" }
c173888
validation
// Return the time-based OTP for the given period.
{ "resource": "" }
c173889
validation
// Return the data to be contained in a QR Code for this TOTP with the given label.
{ "resource": "" }
c173890
validation
// Generate a Random secret encoded as a b32 string // If the length is <= 0, a default length of 10 bytes will // be used, which will generate a secret of length 16.
{ "resource": "" }
c173891
validation
// DefaultPeerConfig returns the default config.
{ "resource": "" }
c173892
validation
// PubKey returns peer's public key.
{ "resource": "" }
c173893
validation
// Send msg to the channel identified by chID byte. Returns false if the send // queue is full after timeout, specified by MConnection.
{ "resource": "" }
c173894
validation
// WriteTo writes the peer's public key to w.
{ "resource": "" }
c173895
validation
// Equals reports whenever 2 peers are actually represent the same node.
{ "resource": "" }
c173896
validation
// FuzzConnAfter creates a new FuzzedConnection. Fuzzing starts when the // duration elapses.
{ "resource": "" }
c173897
validation
// Creates a new msgPacket to send. // Not goroutine-safe
{ "resource": "" }
c173898
validation
// Writes next msgPacket to w. // Not goroutine-safe
{ "resource": "" }
c173899
validation
// Handles incoming msgPackets. Returns a msg bytes if msg is complete. // Not goroutine-safe
{ "resource": "" }