_id
stringlengths
2
7
title
stringlengths
1
118
partition
stringclasses
3 values
text
stringlengths
17
51.2k
language
stringclasses
1 value
meta_information
dict
c100
SetAssigning
train
s.Assigning = &v return s }
go
{ "resource": "" }
c101
SetBooting
train
int64) *InstancesCount { s.Booting = &v return s }
go
{ "resource": "" }
c102
SetConnectionLost
train
s.ConnectionLost = &v return s }
go
{ "resource": "" }
c103
SetDeregistering
train
s.Deregistering = &v return s }
go
{ "resource": "" }
c104
SetOnline
train
int64) *InstancesCount { s.Online = &v return s }
go
{ "resource": "" }
c105
SetRebooting
train
s.Rebooting = &v return s }
go
{ "resource": "" }
c106
SetRegistered
train
s.Registered = &v return s }
go
{ "resource": "" }
c107
SetRegistering
train
s.Registering = &v return s }
go
{ "resource": "" }
c108
SetRequested
train
s.Requested = &v return s }
go
{ "resource": "" }
c109
SetRunningSetup
train
s.RunningSetup = &v return s }
go
{ "resource": "" }
c110
SetSetupFailed
train
s.SetupFailed = &v return s }
go
{ "resource": "" }
c111
SetShuttingDown
train
s.ShuttingDown = &v return s }
go
{ "resource": "" }
c112
SetStartFailed
train
s.StartFailed = &v return s }
go
{ "resource": "" }
c113
SetStopFailed
train
s.StopFailed = &v return s }
go
{ "resource": "" }
c114
SetStopping
train
s.Stopping = &v return s }
go
{ "resource": "" }
c115
SetTerminated
train
s.Terminated = &v return s }
go
{ "resource": "" }
c116
SetTerminating
train
s.Terminating = &v return s }
go
{ "resource": "" }
c117
SetUnassigning
train
s.Unassigning = &v return s }
go
{ "resource": "" }
c118
SetDefaultRecipes
train
s.DefaultRecipes = v return s }
go
{ "resource": "" }
c119
SetDefaultSecurityGroupNames
train
s.DefaultSecurityGroupNames = v return s }
go
{ "resource": "" }
c120
SetConfigurationManagers
train
*OperatingSystem { s.ConfigurationManagers = v return s }
go
{ "resource": "" }
c121
SetReportedName
train
s.ReportedName = &v return s }
go
{ "resource": "" }
c122
SetReportedVersion
train
s.ReportedVersion = &v return s }
go
{ "resource": "" }
c123
SetSupported
train
s.Supported = &v return s }
go
{ "resource": "" }
c124
SetDbInstanceIdentifier
train
s.DbInstanceIdentifier = &v return s }
go
{ "resource": "" }
c125
SetMissingOnRds
train
s.MissingOnRds = &v return s }
go
{ "resource": "" }
c126
SetConfigure
train
*Recipes { s.Configure = v return s }
go
{ "resource": "" }
c127
SetDeploy
train
*Recipes { s.Deploy = v return s }
go
{ "resource": "" }
c128
SetSetup
train
*Recipes { s.Setup = v return s }
go
{ "resource": "" }
c129
SetUndeploy
train
*Recipes { s.Undeploy = v return s }
go
{ "resource": "" }
c130
SetRsaPublicKey
train
{ s.RsaPublicKey = &v return s }
go
{ "resource": "" }
c131
SetRsaPublicKeyFingerprint
train
s.RsaPublicKeyFingerprint = &v return s }
go
{ "resource": "" }
c132
SetServiceErrorId
train
s.ServiceErrorId = &v return s }
go
{ "resource": "" }
c133
SetDelayUntilElbConnectionsDrained
train
s.DelayUntilElbConnectionsDrained = &v return s }
go
{ "resource": "" }
c134
SetExecutionTimeout
train
int64) *ShutdownEventConfiguration { s.ExecutionTimeout = &v return s }
go
{ "resource": "" }
c135
SetChain
train
{ s.Chain = &v return s }
go
{ "resource": "" }
c136
SetAppsCount
train
s.AppsCount = &v return s }
go
{ "resource": "" }
c137
SetInstancesCount
train
*StackSummary { s.InstancesCount = v return s }
go
{ "resource": "" }
c138
SetLayersCount
train
s.LayersCount = &v return s }
go
{ "resource": "" }
c139
SetFriday
train
*WeeklyAutoScalingSchedule { s.Friday = v return s }
go
{ "resource": "" }
c140
SetMonday
train
*WeeklyAutoScalingSchedule { s.Monday = v return s }
go
{ "resource": "" }
c141
SetSaturday
train
*WeeklyAutoScalingSchedule { s.Saturday = v return s }
go
{ "resource": "" }
c142
SetSunday
train
*WeeklyAutoScalingSchedule { s.Sunday = v return s }
go
{ "resource": "" }
c143
SetThursday
train
*WeeklyAutoScalingSchedule { s.Thursday = v return s }
go
{ "resource": "" }
c144
SetTuesday
train
*WeeklyAutoScalingSchedule { s.Tuesday = v return s }
go
{ "resource": "" }
c145
SetWednesday
train
*WeeklyAutoScalingSchedule { s.Wednesday = v return s }
go
{ "resource": "" }
c146
NewCredentials
train
Duration: DefaultDuration, Timeout: DefaultTimeout, MaxBufSize: DefaultBufSize, } for _, option := range options { option(p) } return credentials.NewCredentials(p) }
go
{ "resource": "" }
c147
NewCredentialsTimeout
train
NewCredentials(command, func(opt *ProcessProvider) { opt.Timeout = timeout }) return p }
go
{ "resource": "" }
c148
Retrieve
train
errMsgProcessProviderMissKey, nil) } if len(resp.SecretAccessKey) == 0 { return credentials.Value{ProviderName: ProviderName}, awserr.New( ErrCodeProcessProviderRequired, errMsgProcessProviderMissSecret, nil) } // Handle expiration p.staticCreds = resp.Expiration == nil if resp.Expiration != nil { p.SetExpiration(*resp.Expiration, p.ExpiryWindow) } return credentials.Value{ ProviderName: ProviderName, AccessKeyID: resp.AccessKeyID, SecretAccessKey: resp.SecretAccessKey, SessionToken: resp.SessionToken, }, nil }
go
{ "resource": "" }
c149
prepareCommand
train
"%s: %s", errMsgProcessProviderPrepareCmd, errMsgProcessProviderEmptyCmd), nil) } } cmdArgs = append(cmdArgs, p.originalCommand...) p.command = exec.Command(cmdArgs[0], cmdArgs[1:]...) p.command.Env = os.Environ() return nil }
go
{ "resource": "" }
c150
executeCredentialProcess
train
errors = appendError(errors, execError) if errors != nil { return output.Bytes(), awserr.NewBatchError( ErrCodeProcessProviderExecution, errMsgProcessProviderProcess, errors) } case <-time.After(p.Timeout): finished = true return output.Bytes(), awserr.NewBatchError( ErrCodeProcessProviderExecution, errMsgProcessProviderTimeout, errors) // errors can be nil } } out := output.Bytes() if runtime.GOOS == "windows" { // windows adds slashes to quotes out = []byte(strings.Replace(string(out), `\"`, `"`, -1)) } return out, nil }
go
{ "resource": "" }
c151
appendError
train
return append(errors, err) } return errors }
go
{ "resource": "" }
c152
Retrieve
train
Value{ProviderName: p.ProviderName}, p.Err }
go
{ "resource": "" }
c153
SetExpiration
train
0 { e.expiration = e.expiration.Add(-window) } }
go
{ "resource": "" }
c154
ExpiresAt
train
c.forceRefresh { // set expiration time to the distant past return time.Time{}, nil } return expirer.ExpiresAt(), nil }
go
{ "resource": "" }
c155
SetQos
train
int64) *PublishInput { s.Qos = &v return s }
go
{ "resource": "" }
c156
SetAccessLoggingEnabled
train
s.AccessLoggingEnabled = &v return s }
go
{ "resource": "" }
c157
SetRepositoriesNotFound
train
[]*string) *BatchGetRepositoriesOutput { s.RepositoriesNotFound = v return s }
go
{ "resource": "" }
c158
SetAdditionalData
train
s.AdditionalData = &v return s }
go
{ "resource": "" }
c159
SetCommitter
train
*Commit { s.Committer = v return s }
go
{ "resource": "" }
c160
SetAuthorName
train
string) *CreateCommitInput { s.AuthorName = &v return s }
go
{ "resource": "" }
c161
SetDeleteFiles
train
*CreateCommitInput { s.DeleteFiles = v return s }
go
{ "resource": "" }
c162
SetPutFiles
train
*CreateCommitInput { s.PutFiles = v return s }
go
{ "resource": "" }
c163
SetSetFileModes
train
*CreateCommitInput { s.SetFileModes = v return s }
go
{ "resource": "" }
c164
SetFilesAdded
train
*CreateCommitOutput { s.FilesAdded = v return s }
go
{ "resource": "" }
c165
SetFilesDeleted
train
[]*FileMetadata) *CreateCommitOutput { s.FilesDeleted = v return s }
go
{ "resource": "" }
c166
SetFilesUpdated
train
[]*FileMetadata) *CreateCommitOutput { s.FilesUpdated = v return s }
go
{ "resource": "" }
c167
SetDeletedBranch
train
{ s.DeletedBranch = v return s }
go
{ "resource": "" }
c168
SetPullRequestEvents
train
[]*PullRequestEvent) *DescribePullRequestEventsOutput { s.PullRequestEvents = v return s }
go
{ "resource": "" }
c169
SetAfterBlob
train
*Difference { s.AfterBlob = v return s }
go
{ "resource": "" }
c170
SetBeforeBlob
train
*Difference { s.BeforeBlob = v return s }
go
{ "resource": "" }
c171
SetCommentsForComparedCommitData
train
[]*CommentsForComparedCommit) *GetCommentsForComparedCommitOutput { s.CommentsForComparedCommitData = v return s }
go
{ "resource": "" }
c172
SetCommentsForPullRequestData
train
[]*CommentsForPullRequest) *GetCommentsForPullRequestOutput { s.CommentsForPullRequestData = v return s }
go
{ "resource": "" }
c173
SetCommit
train
{ s.Commit = v return s }
go
{ "resource": "" }
c174
SetAfterCommitSpecifier
train
s.AfterCommitSpecifier = &v return s }
go
{ "resource": "" }
c175
SetAfterPath
train
{ s.AfterPath = &v return s }
go
{ "resource": "" }
c176
SetBeforeCommitSpecifier
train
s.BeforeCommitSpecifier = &v return s }
go
{ "resource": "" }
c177
SetBeforePath
train
{ s.BeforePath = &v return s }
go
{ "resource": "" }
c178
SetDifferences
train
[]*Difference) *GetDifferencesOutput { s.Differences = v return s }
go
{ "resource": "" }
c179
SetSubFolders
train
{ s.SubFolders = v return s }
go
{ "resource": "" }
c180
SetSubModules
train
{ s.SubModules = v return s }
go
{ "resource": "" }
c181
SetSymbolicLinks
train
*GetFolderOutput { s.SymbolicLinks = v return s }
go
{ "resource": "" }
c182
SetDestinationCommitSpecifier
train
s.DestinationCommitSpecifier = &v return s }
go
{ "resource": "" }
c183
SetMergeOption
train
string) *GetMergeConflictsInput { s.MergeOption = &v return s }
go
{ "resource": "" }
c184
SetSourceCommitSpecifier
train
s.SourceCommitSpecifier = &v return s }
go
{ "resource": "" }
c185
SetMergeable
train
bool) *GetMergeConflictsOutput { s.Mergeable = &v return s }
go
{ "resource": "" }
c186
SetPullRequestIds
train
[]*string) *ListPullRequestsOutput { s.PullRequestIds = v return s }
go
{ "resource": "" }
c187
SetFilePosition
train
s.FilePosition = &v return s }
go
{ "resource": "" }
c188
SetRelativeFileVersion
train
s.RelativeFileVersion = &v return s }
go
{ "resource": "" }
c189
SetIsMerged
train
s.IsMerged = &v return s }
go
{ "resource": "" }
c190
SetMergedBy
train
s.MergedBy = &v return s }
go
{ "resource": "" }
c191
SetLastActivityDate
train
s.LastActivityDate = &v return s }
go
{ "resource": "" }
c192
SetPullRequestTargets
train
*PullRequest { s.PullRequestTargets = v return s }
go
{ "resource": "" }
c193
SetPullRequestCreatedEventMetadata
train
s.PullRequestCreatedEventMetadata = v return s }
go
{ "resource": "" }
c194
SetPullRequestMergedStateChangedEventMetadata
train
*PullRequestEvent { s.PullRequestMergedStateChangedEventMetadata = v return s }
go
{ "resource": "" }
c195
SetPullRequestSourceReferenceUpdatedEventMetadata
train
*PullRequestEvent { s.PullRequestSourceReferenceUpdatedEventMetadata = v return s }
go
{ "resource": "" }
c196
SetPullRequestStatusChangedEventMetadata
train
*PullRequestEvent { s.PullRequestStatusChangedEventMetadata = v return s }
go
{ "resource": "" }
c197
SetDestinationCommit
train
s.DestinationCommit = &v return s }
go
{ "resource": "" }
c198
SetSourceCommit
train
string) *PullRequestTarget { s.SourceCommit = &v return s }
go
{ "resource": "" }
c199
SetCloneUrlHttp
train
string) *RepositoryMetadata { s.CloneUrlHttp = &v return s }
go
{ "resource": "" }