_id stringlengths 2 7 | title stringlengths 1 118 | partition stringclasses 3
values | text stringlengths 52 85.5k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q166000 | SetBitOrder | train | func (s *AudioCodecOptions) SetBitOrder(v string) *AudioCodecOptions {
s.BitOrder = &v
return s
} | go | {
"resource": ""
} |
q166001 | SetSigned | train | func (s *AudioCodecOptions) SetSigned(v string) *AudioCodecOptions {
s.Signed = &v
return s
} | go | {
"resource": ""
} |
q166002 | SetAudioPackingMode | train | func (s *AudioParameters) SetAudioPackingMode(v string) *AudioParameters {
s.AudioPackingMode = &v
return s
} | go | {
"resource": ""
} |
q166003 | SetTimeOffset | train | func (s *CaptionSource) SetTimeOffset(v string) *CaptionSource {
s.TimeOffset = &v
return s
} | go | {
"resource": ""
} |
q166004 | SetCaptionFormats | train | func (s *Captions) SetCaptionFormats(v []*CaptionFormat) *Captions {
s.CaptionFormats = v
return s
} | go | {
"resource": ""
} |
q166005 | SetKeyStoragePolicy | train | func (s *HlsContentProtection) SetKeyStoragePolicy(v string) *HlsContentProtection {
s.KeyStoragePolicy = &v
return s
} | go | {
"resource": ""
} |
q166006 | SetTiming | train | func (s *Job) SetTiming(v *Timing) *Job {
s.Timing = v
return s
} | go | {
"resource": ""
} |
q166007 | SetArtwork | train | func (s *JobAlbumArt) SetArtwork(v []*Artwork) *JobAlbumArt {
s.Artwork = v
return s
} | go | {
"resource": ""
} |
q166008 | SetDetectedProperties | train | func (s *JobInput) SetDetectedProperties(v *DetectedProperties) *JobInput {
s.DetectedProperties = v
return s
} | go | {
"resource": ""
} |
q166009 | SetInputCaptions | train | func (s *JobInput) SetInputCaptions(v *InputCaptions) *JobInput {
s.InputCaptions = v
return s
} | go | {
"resource": ""
} |
q166010 | SetInterlaced | train | func (s *JobInput) SetInterlaced(v string) *JobInput {
s.Interlaced = &v
return s
} | go | {
"resource": ""
} |
q166011 | SetAppliedColorSpaceConversion | train | func (s *JobOutput) SetAppliedColorSpaceConversion(v string) *JobOutput {
s.AppliedColorSpaceConversion = &v
return s
} | go | {
"resource": ""
} |
q166012 | SetPresetWatermarkId | train | func (s *JobWatermark) SetPresetWatermarkId(v string) *JobWatermark {
s.PresetWatermarkId = &v
return s
} | go | {
"resource": ""
} |
q166013 | SetPresets | train | func (s *ListPresetsOutput) SetPresets(v []*Preset) *ListPresetsOutput {
s.Presets = v
return s
} | go | {
"resource": ""
} |
q166014 | SetProgressing | train | func (s *Notifications) SetProgressing(v string) *Notifications {
s.Progressing = &v
return s
} | go | {
"resource": ""
} |
q166015 | SetAccess | train | func (s *Permission) SetAccess(v []*string) *Permission {
s.Access = v
return s
} | go | {
"resource": ""
} |
q166016 | SetHorizontalAlign | train | func (s *PresetWatermark) SetHorizontalAlign(v string) *PresetWatermark {
s.HorizontalAlign = &v
return s
} | go | {
"resource": ""
} |
q166017 | SetHorizontalOffset | train | func (s *PresetWatermark) SetHorizontalOffset(v string) *PresetWatermark {
s.HorizontalOffset = &v
return s
} | go | {
"resource": ""
} |
q166018 | SetVerticalAlign | train | func (s *PresetWatermark) SetVerticalAlign(v string) *PresetWatermark {
s.VerticalAlign = &v
return s
} | go | {
"resource": ""
} |
q166019 | SetVerticalOffset | train | func (s *PresetWatermark) SetVerticalOffset(v string) *PresetWatermark {
s.VerticalOffset = &v
return s
} | go | {
"resource": ""
} |
q166020 | SetFinishTimeMillis | train | func (s *Timing) SetFinishTimeMillis(v int64) *Timing {
s.FinishTimeMillis = &v
return s
} | go | {
"resource": ""
} |
q166021 | SetStartTimeMillis | train | func (s *Timing) SetStartTimeMillis(v int64) *Timing {
s.StartTimeMillis = &v
return s
} | go | {
"resource": ""
} |
q166022 | SetSubmitTimeMillis | train | func (s *Timing) SetSubmitTimeMillis(v int64) *Timing {
s.SubmitTimeMillis = &v
return s
} | go | {
"resource": ""
} |
q166023 | SetDisplayAspectRatio | train | func (s *VideoParameters) SetDisplayAspectRatio(v string) *VideoParameters {
s.DisplayAspectRatio = &v
return s
} | go | {
"resource": ""
} |
q166024 | SetFixedGOP | train | func (s *VideoParameters) SetFixedGOP(v string) *VideoParameters {
s.FixedGOP = &v
return s
} | go | {
"resource": ""
} |
q166025 | SetKeyframesMaxDist | train | func (s *VideoParameters) SetKeyframesMaxDist(v string) *VideoParameters {
s.KeyframesMaxDist = &v
return s
} | go | {
"resource": ""
} |
q166026 | SetMaxFrameRate | train | func (s *VideoParameters) SetMaxFrameRate(v string) *VideoParameters {
s.MaxFrameRate = &v
return s
} | go | {
"resource": ""
} |
q166027 | NewEventReader | train | func NewEventReader(
reader io.ReadCloser,
payloadUnmarshaler protocol.PayloadUnmarshaler,
unmarshalerForEventType func(string) (Unmarshaler, error),
) *EventReader {
return &EventReader{
reader: reader,
decoder: eventstream.NewDecoder(reader),
payloadUnmarshaler: payload... | go | {
"resource": ""
} |
q166028 | UseLogger | train | func (r *EventReader) UseLogger(logger aws.Logger, logLevel aws.LogLevelType) {
if logger != nil && logLevel.Matches(aws.LogDebugWithEventStreamBody) {
r.decoder.UseLogger(logger)
}
} | go | {
"resource": ""
} |
q166029 | ReadEvent | train | func (r *EventReader) ReadEvent() (event interface{}, err error) {
msg, err := r.decoder.Decode(r.payloadBuf)
if err != nil {
return nil, err
}
defer func() {
// Reclaim payload buffer for next message read.
r.payloadBuf = msg.Payload[0:0]
}()
typ, err := GetHeaderString(msg, MessageTypeHeader)
if err != ... | go | {
"resource": ""
} |
q166030 | GetHeaderString | train | func GetHeaderString(msg eventstream.Message, headerName string) (string, error) {
headerVal := msg.Headers.Get(headerName)
if headerVal == nil {
return "", fmt.Errorf("error header %s not present", headerName)
}
v, ok := headerVal.Get().(string)
if !ok {
return "", fmt.Errorf("error header value is not a str... | go | {
"resource": ""
} |
q166031 | SetQueryable | train | func (s *ActionConfigurationProperty) SetQueryable(v bool) *ActionConfigurationProperty {
s.Queryable = &v
return s
} | go | {
"resource": ""
} |
q166032 | SetRunOrder | train | func (s *ActionDeclaration) SetRunOrder(v int64) *ActionDeclaration {
s.RunOrder = &v
return s
} | go | {
"resource": ""
} |
q166033 | SetLastStatusChange | train | func (s *ActionExecution) SetLastStatusChange(v time.Time) *ActionExecution {
s.LastStatusChange = &v
return s
} | go | {
"resource": ""
} |
q166034 | SetExecutionResult | train | func (s *ActionExecutionOutput) SetExecutionResult(v *ActionExecutionResult) *ActionExecutionOutput {
s.ExecutionResult = v
return s
} | go | {
"resource": ""
} |
q166035 | SetExternalExecutionSummary | train | func (s *ActionExecutionResult) SetExternalExecutionSummary(v string) *ActionExecutionResult {
s.ExternalExecutionSummary = &v
return s
} | go | {
"resource": ""
} |
q166036 | SetRevisionChangeId | train | func (s *ActionRevision) SetRevisionChangeId(v string) *ActionRevision {
s.RevisionChangeId = &v
return s
} | go | {
"resource": ""
} |
q166037 | SetActionConfigurationProperties | train | func (s *ActionType) SetActionConfigurationProperties(v []*ActionConfigurationProperty) *ActionType {
s.ActionConfigurationProperties = v
return s
} | go | {
"resource": ""
} |
q166038 | SetEntityUrlTemplate | train | func (s *ActionTypeSettings) SetEntityUrlTemplate(v string) *ActionTypeSettings {
s.EntityUrlTemplate = &v
return s
} | go | {
"resource": ""
} |
q166039 | SetExecutionUrlTemplate | train | func (s *ActionTypeSettings) SetExecutionUrlTemplate(v string) *ActionTypeSettings {
s.ExecutionUrlTemplate = &v
return s
} | go | {
"resource": ""
} |
q166040 | SetRevisionUrlTemplate | train | func (s *ActionTypeSettings) SetRevisionUrlTemplate(v string) *ActionTypeSettings {
s.RevisionUrlTemplate = &v
return s
} | go | {
"resource": ""
} |
q166041 | SetThirdPartyConfigurationUrl | train | func (s *ActionTypeSettings) SetThirdPartyConfigurationUrl(v string) *ActionTypeSettings {
s.ThirdPartyConfigurationUrl = &v
return s
} | go | {
"resource": ""
} |
q166042 | SetS3location | train | func (s *ArtifactDetail) SetS3location(v *S3Location) *ArtifactDetail {
s.S3location = v
return s
} | go | {
"resource": ""
} |
q166043 | SetMaximumCount | train | func (s *ArtifactDetails) SetMaximumCount(v int64) *ArtifactDetails {
s.MaximumCount = &v
return s
} | go | {
"resource": ""
} |
q166044 | SetMinimumCount | train | func (s *ArtifactDetails) SetMinimumCount(v int64) *ArtifactDetails {
s.MinimumCount = &v
return s
} | go | {
"resource": ""
} |
q166045 | SetRevisionChangeIdentifier | train | func (s *ArtifactRevision) SetRevisionChangeIdentifier(v string) *ArtifactRevision {
s.RevisionChangeIdentifier = &v
return s
} | go | {
"resource": ""
} |
q166046 | SetChangeIdentifier | train | func (s *CurrentRevision) SetChangeIdentifier(v string) *CurrentRevision {
s.ChangeIdentifier = &v
return s
} | go | {
"resource": ""
} |
q166047 | SetPipelineExecution | train | func (s *GetPipelineExecutionOutput) SetPipelineExecution(v *PipelineExecution) *GetPipelineExecutionOutput {
s.PipelineExecution = v
return s
} | go | {
"resource": ""
} |
q166048 | SetStageStates | train | func (s *GetPipelineStateOutput) SetStageStates(v []*StageState) *GetPipelineStateOutput {
s.StageStates = v
return s
} | go | {
"resource": ""
} |
q166049 | SetActionExecutionDetails | train | func (s *ListActionExecutionsOutput) SetActionExecutionDetails(v []*ActionExecutionDetail) *ListActionExecutionsOutput {
s.ActionExecutionDetails = v
return s
} | go | {
"resource": ""
} |
q166050 | SetActionOwnerFilter | train | func (s *ListActionTypesInput) SetActionOwnerFilter(v string) *ListActionTypesInput {
s.ActionOwnerFilter = &v
return s
} | go | {
"resource": ""
} |
q166051 | SetActionTypes | train | func (s *ListActionTypesOutput) SetActionTypes(v []*ActionType) *ListActionTypesOutput {
s.ActionTypes = v
return s
} | go | {
"resource": ""
} |
q166052 | SetPipelineExecutionSummaries | train | func (s *ListPipelineExecutionsOutput) SetPipelineExecutionSummaries(v []*PipelineExecutionSummary) *ListPipelineExecutionsOutput {
s.PipelineExecutionSummaries = v
return s
} | go | {
"resource": ""
} |
q166053 | SetLastTriggered | train | func (s *ListWebhookItem) SetLastTriggered(v time.Time) *ListWebhookItem {
s.LastTriggered = &v
return s
} | go | {
"resource": ""
} |
q166054 | SetWebhooks | train | func (s *ListWebhooksOutput) SetWebhooks(v []*ListWebhookItem) *ListWebhooksOutput {
s.Webhooks = v
return s
} | go | {
"resource": ""
} |
q166055 | SetArtifactStore | train | func (s *PipelineDeclaration) SetArtifactStore(v *ArtifactStore) *PipelineDeclaration {
s.ArtifactStore = v
return s
} | go | {
"resource": ""
} |
q166056 | SetArtifactStores | train | func (s *PipelineDeclaration) SetArtifactStores(v map[string]*ArtifactStore) *PipelineDeclaration {
s.ArtifactStores = v
return s
} | go | {
"resource": ""
} |
q166057 | SetStages | train | func (s *PipelineDeclaration) SetStages(v []*StageDeclaration) *PipelineDeclaration {
s.Stages = v
return s
} | go | {
"resource": ""
} |
q166058 | SetArtifactRevisions | train | func (s *PipelineExecution) SetArtifactRevisions(v []*ArtifactRevision) *PipelineExecution {
s.ArtifactRevisions = v
return s
} | go | {
"resource": ""
} |
q166059 | SetSourceRevisions | train | func (s *PipelineExecutionSummary) SetSourceRevisions(v []*SourceRevision) *PipelineExecutionSummary {
s.SourceRevisions = v
return s
} | go | {
"resource": ""
} |
q166060 | SetQueryParam | train | func (s *PollForJobsInput) SetQueryParam(v map[string]*string) *PollForJobsInput {
s.QueryParam = v
return s
} | go | {
"resource": ""
} |
q166061 | SetActionRevision | train | func (s *PutActionRevisionInput) SetActionRevision(v *ActionRevision) *PutActionRevisionInput {
s.ActionRevision = v
return s
} | go | {
"resource": ""
} |
q166062 | SetNewRevision | train | func (s *PutActionRevisionOutput) SetNewRevision(v bool) *PutActionRevisionOutput {
s.NewRevision = &v
return s
} | go | {
"resource": ""
} |
q166063 | SetApprovedAt | train | func (s *PutApprovalResultOutput) SetApprovedAt(v time.Time) *PutApprovalResultOutput {
s.ApprovedAt = &v
return s
} | go | {
"resource": ""
} |
q166064 | SetRetryMode | train | func (s *RetryStageExecutionInput) SetRetryMode(v string) *RetryStageExecutionInput {
s.RetryMode = &v
return s
} | go | {
"resource": ""
} |
q166065 | SetObjectKey | train | func (s *S3ArtifactLocation) SetObjectKey(v string) *S3ArtifactLocation {
s.ObjectKey = &v
return s
} | go | {
"resource": ""
} |
q166066 | SetBlockers | train | func (s *StageDeclaration) SetBlockers(v []*BlockerDeclaration) *StageDeclaration {
s.Blockers = v
return s
} | go | {
"resource": ""
} |
q166067 | SetActionStates | train | func (s *StageState) SetActionStates(v []*ActionState) *StageState {
s.ActionStates = v
return s
} | go | {
"resource": ""
} |
q166068 | SetInboundTransitionState | train | func (s *StageState) SetInboundTransitionState(v *TransitionState) *StageState {
s.InboundTransitionState = v
return s
} | go | {
"resource": ""
} |
q166069 | SetDisabledReason | train | func (s *TransitionState) SetDisabledReason(v string) *TransitionState {
s.DisabledReason = &v
return s
} | go | {
"resource": ""
} |
q166070 | SetLastChangedAt | train | func (s *TransitionState) SetLastChangedAt(v time.Time) *TransitionState {
s.LastChangedAt = &v
return s
} | go | {
"resource": ""
} |
q166071 | SetLastChangedBy | train | func (s *TransitionState) SetLastChangedBy(v string) *TransitionState {
s.LastChangedBy = &v
return s
} | go | {
"resource": ""
} |
q166072 | SetAllowedIPRange | train | func (s *WebhookAuthConfiguration) SetAllowedIPRange(v string) *WebhookAuthConfiguration {
s.AllowedIPRange = &v
return s
} | go | {
"resource": ""
} |
q166073 | SetSecretToken | train | func (s *WebhookAuthConfiguration) SetSecretToken(v string) *WebhookAuthConfiguration {
s.SecretToken = &v
return s
} | go | {
"resource": ""
} |
q166074 | SetAuthenticationConfiguration | train | func (s *WebhookDefinition) SetAuthenticationConfiguration(v *WebhookAuthConfiguration) *WebhookDefinition {
s.AuthenticationConfiguration = v
return s
} | go | {
"resource": ""
} |
q166075 | SetTargetAction | train | func (s *WebhookDefinition) SetTargetAction(v string) *WebhookDefinition {
s.TargetAction = &v
return s
} | go | {
"resource": ""
} |
q166076 | SetTargetPipeline | train | func (s *WebhookDefinition) SetTargetPipeline(v string) *WebhookDefinition {
s.TargetPipeline = &v
return s
} | go | {
"resource": ""
} |
q166077 | SetMatchEquals | train | func (s *WebhookFilterRule) SetMatchEquals(v string) *WebhookFilterRule {
s.MatchEquals = &v
return s
} | go | {
"resource": ""
} |
q166078 | UnmarshalJSON | train | func UnmarshalJSON(v interface{}, stream io.Reader) error {
var out interface{}
err := json.NewDecoder(stream).Decode(&out)
if err == io.EOF {
return nil
} else if err != nil {
return err
}
return unmarshalAny(reflect.ValueOf(v), out, "")
} | go | {
"resource": ""
} |
q166079 | WaitUntilServicesInactive | train | func (c *ECS) WaitUntilServicesInactive(input *DescribeServicesInput) error {
return c.WaitUntilServicesInactiveWithContext(aws.BackgroundContext(), input)
} | go | {
"resource": ""
} |
q166080 | WaitUntilServicesStable | train | func (c *ECS) WaitUntilServicesStable(input *DescribeServicesInput) error {
return c.WaitUntilServicesStableWithContext(aws.BackgroundContext(), input)
} | go | {
"resource": ""
} |
q166081 | WaitUntilTasksRunning | train | func (c *ECS) WaitUntilTasksRunning(input *DescribeTasksInput) error {
return c.WaitUntilTasksRunningWithContext(aws.BackgroundContext(), input)
} | go | {
"resource": ""
} |
q166082 | WaitUntilTasksStopped | train | func (c *ECS) WaitUntilTasksStopped(input *DescribeTasksInput) error {
return c.WaitUntilTasksStoppedWithContext(aws.BackgroundContext(), input)
} | go | {
"resource": ""
} |
q166083 | UnmarshalPayload | train | func (h HandlerPayloadUnmarshal) UnmarshalPayload(r io.Reader, v interface{}) error {
req := &request.Request{
HTTPRequest: &http.Request{},
HTTPResponse: &http.Response{
StatusCode: 200,
Header: http.Header{},
Body: ioutil.NopCloser(r),
},
Data: v,
}
h.Unmarshalers.Run(req)
return req.... | go | {
"resource": ""
} |
q166084 | MarshalPayload | train | func (h HandlerPayloadMarshal) MarshalPayload(w io.Writer, v interface{}) error {
req := request.New(
aws.Config{},
metadata.ClientInfo{},
request.Handlers{},
nil,
&request.Operation{HTTPMethod: "GET"},
v,
nil,
)
h.Marshalers.Run(req)
if req.Error != nil {
return req.Error
}
io.Copy(w, req.GetB... | go | {
"resource": ""
} |
q166085 | SetQueryParameters | train | func (s *DiscoverInstancesInput) SetQueryParameters(v map[string]*string) *DiscoverInstancesInput {
s.QueryParameters = v
return s
} | go | {
"resource": ""
} |
q166086 | SetRoutingPolicy | train | func (s *DnsConfig) SetRoutingPolicy(v string) *DnsConfig {
s.RoutingPolicy = &v
return s
} | go | {
"resource": ""
} |
q166087 | SetInstance | train | func (s *GetInstanceOutput) SetInstance(v *Instance) *GetInstanceOutput {
s.Instance = v
return s
} | go | {
"resource": ""
} |
q166088 | SetHttpName | train | func (s *HttpProperties) SetHttpName(v string) *HttpProperties {
s.HttpName = &v
return s
} | go | {
"resource": ""
} |
q166089 | SetNamespaces | train | func (s *ListNamespacesOutput) SetNamespaces(v []*NamespaceSummary) *ListNamespacesOutput {
s.Namespaces = v
return s
} | go | {
"resource": ""
} |
q166090 | SetDnsProperties | train | func (s *NamespaceProperties) SetDnsProperties(v *DnsProperties) *NamespaceProperties {
s.DnsProperties = v
return s
} | go | {
"resource": ""
} |
q166091 | SetHttpProperties | train | func (s *NamespaceProperties) SetHttpProperties(v *HttpProperties) *NamespaceProperties {
s.HttpProperties = v
return s
} | go | {
"resource": ""
} |
q166092 | concatenate | train | func (c *client) concatenate(key1, key2, key3 string, uploadID *string) (*string, *string, error) {
// The first part to be uploaded which is represented as part number 1
foo, err := c.s3Client.UploadPartCopy(&s3.UploadPartCopyInput{
Bucket: c.bucket,
CopySource: aws.String(url.QueryEscape(*c.bucket + "/" + k... | go | {
"resource": ""
} |
q166093 | Push | train | func (ch *metricChan) Push(m metric) bool {
if ch.IsPaused() {
return false
}
select {
case ch.ch <- m:
return true
default:
return false
}
} | go | {
"resource": ""
} |
q166094 | SetEmitInterval | train | func (s *AccessLog) SetEmitInterval(v int64) *AccessLog {
s.EmitInterval = &v
return s
} | go | {
"resource": ""
} |
q166095 | SetS3BucketPrefix | train | func (s *AccessLog) SetS3BucketPrefix(v string) *AccessLog {
s.S3BucketPrefix = &v
return s
} | go | {
"resource": ""
} |
q166096 | SetIdleTimeout | train | func (s *ConnectionSettings) SetIdleTimeout(v int64) *ConnectionSettings {
s.IdleTimeout = &v
return s
} | go | {
"resource": ""
} |
q166097 | SetPolicyAttributes | train | func (s *CreateLoadBalancerPolicyInput) SetPolicyAttributes(v []*PolicyAttribute) *CreateLoadBalancerPolicyInput {
s.PolicyAttributes = v
return s
} | go | {
"resource": ""
} |
q166098 | SetLoadBalancerPorts | train | func (s *DeleteLoadBalancerListenersInput) SetLoadBalancerPorts(v []*int64) *DeleteLoadBalancerListenersInput {
s.LoadBalancerPorts = v
return s
} | go | {
"resource": ""
} |
q166099 | SetPolicyDescriptions | train | func (s *DescribeLoadBalancerPoliciesOutput) SetPolicyDescriptions(v []*PolicyDescription) *DescribeLoadBalancerPoliciesOutput {
s.PolicyDescriptions = v
return s
} | go | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.