_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c16900
train
// parseCloudConfig parses the provided config into a node structure and logs // any parsing issues into the provided report. Unrecoverable errors are // returned as an error.
{ "resource": "" }
c16901
train
// normalizeNodeNames replaces all occurences of '-' with '_' within key names // and makes a note of each replacement in the report.
{ "resource": "" }
c16902
train
// Walk takes an arbitrary value and an interface and traverses the // value, calling callbacks on the interface if they are supported. // The interface should implement one or more of the walker interfaces // in this package, such as PrimitiveWalker, StructWalker, etc.
{ "resource": "" }
c16903
train
// EqualTo returns true if headers are equivalent, false otherwise.
{ "resource": "" }
c16904
train
// WriteTo renders a proxy protocol header in a format to write over the wire.
{ "resource": "" }
c16905
train
// Read identifies the proxy protocol version and reads the remaining of // the header, accordingly. // // If proxy protocol header signature is not present, the reader buffer remains untouched // and is safe for reading outside of this code. // // If proxy protocol header signature is present but an error is raised wh...
{ "resource": "" }
c16906
train
// ReadTimeout acts as Read but takes a timeout. If that timeout is reached, it's assumed // there's no proxy protocol header.
{ "resource": "" }
c16907
train
// NewImage allocates and returns RGB image
{ "resource": "" }
c16908
train
// At implements image.Image.At
{ "resource": "" }
c16909
train
// RGBA implements Color.RGBA
{ "resource": "" }
c16910
train
// Decode reads a JPEG data stream from r and returns decoded image as an image.Image. // Output image has YCbCr colors or 8bit Grayscale.
{ "resource": "" }
c16911
train
// DecodeIntoRGB reads a JPEG data stream from r and returns decoded image as an rgb.Image with RGB colors.
{ "resource": "" }
c16912
train
// DecodeIntoRGBA reads a JPEG data stream from r and returns decoded image as an image.RGBA with RGBA colors. // This function only works with libjpeg-turbo, not libjpeg.
{ "resource": "" }
c16913
train
// DecodeConfig returns the color model and dimensions of a JPEG image without decoding the entire image.
{ "resource": "" }
c16914
train
// NewGrayAligned Allocates Grey image with padding. // This func add an extra padding to cover overflow from decoding image.
{ "resource": "" }
c16915
train
// Encode encodes src image and writes into w as JPEG format data.
{ "resource": "" }
c16916
train
// encode image.YCbCr
{ "resource": "" }
c16917
train
// encode image.RGBA
{ "resource": "" }
c16918
train
// encode image.Gray
{ "resource": "" }
c16919
train
// SetTaskLostBehavior sets the residency behavior
{ "resource": "" }
c16920
train
// SetRelaunchEscalationTimeout sets the residency relaunch escalation timeout with seconds precision
{ "resource": "" }
c16921
train
// SetBackoff sets the base backoff interval for failed pod launches, in seconds
{ "resource": "" }
c16922
train
// SetBackoffFactor sets the backoff interval growth factor for failed pod launches
{ "resource": "" }
c16923
train
// SetMaxLaunchDelay sets the maximum backoff interval for failed pod launches, in seconds
{ "resource": "" }
c16924
train
// SetMinimumHealthCapacity sets the minimum amount of pod instances for healthy operation, expressed as a fraction of instance count
{ "resource": "" }
c16925
train
// SetMaximumOverCapacity sets the maximum amount of pod instances above the instance count, expressed as a fraction of instance count
{ "resource": "" }
c16926
train
// SetBackoff sets the pod's backoff settings
{ "resource": "" }
c16927
train
// SetUpgrade sets the pod's upgrade settings
{ "resource": "" }
c16928
train
// SetPlacement sets the pod's placement settings
{ "resource": "" }
c16929
train
// SetKillSelection sets the pod's kill selection criteria when terminating pod instances
{ "resource": "" }
c16930
train
// SetUnreachableStrategy sets the pod's unreachable strategy for lost instances
{ "resource": "" }
c16931
train
// SetUnreachableStrategyDisabled disables the pod's unreachable strategy
{ "resource": "" }
c16932
train
// UnmarshalJSON unmarshals the given JSON into an UnreachableStrategy. It // populates parameters for present strategies, and otherwise only sets the // absence reason.
{ "resource": "" }
c16933
train
// MarshalJSON marshals the unreachable strategy.
{ "resource": "" }
c16934
train
// SetInactiveAfterSeconds sets the period after which instance will be marked as inactive.
{ "resource": "" }
c16935
train
// SetExpungeAfterSeconds sets the period after which instance will be expunged.
{ "resource": "" }
c16936
train
// SetCommand sets the given command on the health check.
{ "resource": "" }
c16937
train
// SetPortIndex sets the given port index on the health check.
{ "resource": "" }
c16938
train
// SetPort sets the given port on the health check.
{ "resource": "" }
c16939
train
// SetPath sets the given path on the health check.
{ "resource": "" }
c16940
train
// SetMaxConsecutiveFailures sets the maximum consecutive failures on the health check.
{ "resource": "" }
c16941
train
// SetIgnoreHTTP1xx sets ignore http 1xx on the health check.
{ "resource": "" }
c16942
train
// NewDefaultHealthCheck creates a default application health check
{ "resource": "" }
c16943
train
// SetGracePeriod sets the health check initial grace period, in seconds
{ "resource": "" }
c16944
train
// SetInterval sets the health check polling interval, in seconds
{ "resource": "" }
c16945
train
// SetMaxConsecutiveFailures sets the maximum consecutive failures on the health check
{ "resource": "" }
c16946
train
// SetTimeout sets the length of time the health check will await a result, in seconds
{ "resource": "" }
c16947
train
// SetDelay sets the length of time a pod will delay running health checks on initial launch, in seconds
{ "resource": "" }
c16948
train
// SetPath sets the HTTP path of the pod health check endpoint
{ "resource": "" }
c16949
train
// SetScheme sets the HTTP scheme of the pod health check endpoint
{ "resource": "" }
c16950
train
// SetCommand sets a CommandHealthCheck's underlying PodCommand
{ "resource": "" }
c16951
train
// NewPod create an empty pod
{ "resource": "" }
c16952
train
// EmptyLabels empties the labels in a pod
{ "resource": "" }
c16953
train
// AddLabel adds a label to a pod
{ "resource": "" }
c16954
train
// SetLabels sets the labels for a pod
{ "resource": "" }
c16955
train
// EmptyEnvs empties the environment variables for a pod
{ "resource": "" }
c16956
train
// AddContainer adds a container to a pod
{ "resource": "" }
c16957
train
// EmptySecrets empties the secret sources in a pod
{ "resource": "" }
c16958
train
// GetSecretSource gets the source of the named secret
{ "resource": "" }
c16959
train
// AddSecret adds the secret to the pod
{ "resource": "" }
c16960
train
// AddVolume adds a volume to a pod
{ "resource": "" }
c16961
train
// AddNetwork adds a PodNetwork to a pod
{ "resource": "" }
c16962
train
// Count sets the count of the pod
{ "resource": "" }
c16963
train
// SetPodSchedulingPolicy sets the PodSchedulingPolicy of a pod
{ "resource": "" }
c16964
train
// SetExecutorResources sets the resources for the pod executor
{ "resource": "" }
c16965
train
// SupportsPods determines if this version of marathon supports pods // If HEAD returns 200 it does
{ "resource": "" }
c16966
train
// Pod gets a pod object from marathon by name
{ "resource": "" }
c16967
train
// Pods gets all pods from marathon
{ "resource": "" }
c16968
train
// CreatePod creates a new pod in Marathon
{ "resource": "" }
c16969
train
// DeletePod deletes a pod from marathon
{ "resource": "" }
c16970
train
// UpdatePod creates a new pod in Marathon
{ "resource": "" }
c16971
train
// PodVersions gets all the deployed versions of a pod
{ "resource": "" }
c16972
train
// PodByVersion gets a pod by a version identifier
{ "resource": "" }
c16973
train
// SetPersistentVolume defines persistent properties for volume
{ "resource": "" }
c16974
train
// NewDockerContainer creates a default docker container for you
{ "resource": "" }
c16975
train
// SetMinimumHealthCapacity sets the minimum health capacity.
{ "resource": "" }
c16976
train
// SetMaximumOverCapacity sets the maximum over capacity.
{ "resource": "" }
c16977
train
// Subscriptions retrieves a list of registered subscriptions
{ "resource": "" }
c16978
train
// SubscriptionURL retrieves the subscription callback URL used when registering
{ "resource": "" }
c16979
train
// registerSubscription registers ourselves with Marathon to receive events from configured transport facility
{ "resource": "" }
c16980
train
// registerSSESubscription starts a go routine that continuously tries to // connect to the SSE stream and to process the received events. To establish // the connection it tries the active cluster members until no more member is // active. When this happens it will retry to get a connection every 5 seconds.
{ "resource": "" }
c16981
train
// Queue retrieves content of the marathon launch queue
{ "resource": "" }
c16982
train
// newCluster returns a new marathon cluster
{ "resource": "" }
c16983
train
// retrieve the current member, i.e. the current endpoint in use
{ "resource": "" }
c16984
train
// markDown marks down the current endpoint
{ "resource": "" }
c16985
train
// healthCheckNode performs a health check on the node and when active updates the status
{ "resource": "" }
c16986
train
// memberList returns a list of members of a specified status
{ "resource": "" }
c16987
train
// String returns a string representation
{ "resource": "" }
c16988
train
// NewPodNetwork creates an empty PodNetwork
{ "resource": "" }
c16989
train
// NewContainerPodNetwork creates a PodNetwork for a container
{ "resource": "" }
c16990
train
// SetName sets the name of a PodNetwork
{ "resource": "" }
c16991
train
// SetMode sets the mode of a PodNetwork
{ "resource": "" }
c16992
train
// Label sets a label of a PodNetwork
{ "resource": "" }
c16993
train
// SetName sets the name for a PodEndpoint
{ "resource": "" }
c16994
train
// SetContainerPort sets the container port for a PodEndpoint
{ "resource": "" }
c16995
train
// SetHostPort sets the host port for a PodEndpoint
{ "resource": "" }
c16996
train
// AddProtocol appends a protocol for a PodEndpoint
{ "resource": "" }
c16997
train
// Label sets a label for a PodEndpoint
{ "resource": "" }
c16998
train
// DeletePodInstances deletes all instances of the named pod
{ "resource": "" }
c16999
train
// DeletePodInstance deletes a specific instance of a pod
{ "resource": "" }