dataset_name stringclasses 2
values | language stringclasses 6
values | query_id stringlengths 2 7 | query stringlengths 22 373k | corpus_id stringlengths 2 7 | corpus stringlengths 3 140k |
|---|---|---|---|---|---|
CoIR-Retrieval/CodeSearchNet | go | q0 | func getStringValue(b []rune) (int, error) {
if b[0] != '"' {
return 0, NewParseError("strings must start with '\"'")
}
endQuote := false
i := 1
for ; i < len(b) && !endQuote; i++ {
if escaped := isEscaped(b[:i], b[i]); b[i] == '"' && !escaped {
endQuote = true
break
} else if escaped {
/*c, err :... | c0 | // getStringValue will return a quoted string and the amount
// of bytes read
//
// an error will be returned if the string is not properly formatted |
CoIR-Retrieval/CodeSearchNet | go | q1 | func getBoolValue(b []rune) (int, error) {
if len(b) < 4 {
return 0, NewParseError("invalid boolean value")
}
n := 0
for _, lv := range literalValues {
if len(lv) > len(b) {
continue
}
if isLitValue(lv, b) {
n = len(lv)
}
}
if n == 0 {
return 0, NewParseError("invalid boolean value")
}
ret... | c1 | // getBoolValue will return a boolean and the amount
// of bytes read
//
// an error will be returned if the boolean is not of a correct
// value |
CoIR-Retrieval/CodeSearchNet | go | q2 | func getNumericalValue(b []rune) (int, int, error) {
if !isDigit(b[0]) {
return 0, 0, NewParseError("invalid digit value")
}
i := 0
helper := numberHelper{}
loop:
for negativeIndex := 0; i < len(b); i++ {
negativeIndex++
if !isDigit(b[i]) {
switch b[i] {
case '-':
if helper.IsNegative() || negat... | c2 | // getNumericalValue will return a numerical string, the amount
// of bytes read, and the base of the number
//
// an error will be returned if the number is not of a correct
// value |
CoIR-Retrieval/CodeSearchNet | go | q3 | func getNegativeNumber(b []rune) int {
if b[0] != '-' {
return 0
}
i := 1
for ; i < len(b); i++ {
if !isDigit(b[i]) {
return i
}
}
return i
} | c3 | // getNegativeNumber will return a negative number from a
// byte slice. This will iterate through all characters until
// a non-digit has been found. |
CoIR-Retrieval/CodeSearchNet | go | q4 | func isEscaped(value []rune, b rune) bool {
if len(value) == 0 {
return false
}
switch b {
case '\'': // single quote
case '"': // quote
case 'n': // newline
case 't': // tab
case '\\': // backslash
default:
return false
}
return value[len(value)-1] == '\\'
} | c4 | // isEscaped will return whether or not the character is an escaped
// character. |
CoIR-Retrieval/CodeSearchNet | go | q5 | func OpenFile(path string) (Sections, error) {
f, err := os.Open(path)
if err != nil {
return Sections{}, awserr.New(ErrCodeUnableToReadFile, "unable to open file", err)
}
defer f.Close()
return Parse(f)
} | c5 | // OpenFile takes a path to a given file, and will open and parse
// that file. |
CoIR-Retrieval/CodeSearchNet | go | q6 | func Parse(f io.Reader) (Sections, error) {
tree, err := ParseAST(f)
if err != nil {
return Sections{}, err
}
v := NewDefaultVisitor()
if err = Walk(tree, v); err != nil {
return Sections{}, err
}
return v.Sections, nil
} | c6 | // Parse will parse the given file using the shared config
// visitor. |
CoIR-Retrieval/CodeSearchNet | go | q7 | func ParseBytes(b []byte) (Sections, error) {
tree, err := ParseASTBytes(b)
if err != nil {
return Sections{}, err
}
v := NewDefaultVisitor()
if err = Walk(tree, v); err != nil {
return Sections{}, err
}
return v.Sections, nil
} | c7 | // ParseBytes will parse the given bytes and return the parsed sections. |
CoIR-Retrieval/CodeSearchNet | go | q8 | func (c SmokeTestCase) BuildInputShape(ref *ShapeRef) string {
var b ShapeValueBuilder
return fmt.Sprintf("&%s{\n%s\n}",
b.GoType(ref, true),
b.BuildShape(ref, c.Input, false),
)
} | c8 | // BuildInputShape returns the Go code as a string for initializing the test
// case's input shape. |
CoIR-Retrieval/CodeSearchNet | go | q9 | func (s *CodeHook) SetMessageVersion(v string) *CodeHook {
s.MessageVersion = &v
return s
} | c9 | // SetMessageVersion sets the MessageVersion field's value. |
CoIR-Retrieval/CodeSearchNet | go | q10 | func (s *FollowUpPrompt) SetPrompt(v *Prompt) *FollowUpPrompt {
s.Prompt = v
return s
} | c10 | // SetPrompt sets the Prompt field's value. |
CoIR-Retrieval/CodeSearchNet | go | q11 | func (s *FulfillmentActivity) SetCodeHook(v *CodeHook) *FulfillmentActivity {
s.CodeHook = v
return s
} | c11 | // SetCodeHook sets the CodeHook field's value. |
CoIR-Retrieval/CodeSearchNet | go | q12 | func (s *GetBotAliasesOutput) SetBotAliases(v []*BotAliasMetadata) *GetBotAliasesOutput {
s.BotAliases = v
return s
} | c12 | // SetBotAliases sets the BotAliases field's value. |
CoIR-Retrieval/CodeSearchNet | go | q13 | func (s *GetBotChannelAssociationsOutput) SetBotChannelAssociations(v []*BotChannelAssociation) *GetBotChannelAssociationsOutput {
s.BotChannelAssociations = v
return s
} | c13 | // SetBotChannelAssociations sets the BotChannelAssociations field's value. |
CoIR-Retrieval/CodeSearchNet | go | q14 | func (s *GetBotInput) SetVersionOrAlias(v string) *GetBotInput {
s.VersionOrAlias = &v
return s
} | c14 | // SetVersionOrAlias sets the VersionOrAlias field's value. |
CoIR-Retrieval/CodeSearchNet | go | q15 | func (s *GetUtterancesViewInput) SetBotVersions(v []*string) *GetUtterancesViewInput {
s.BotVersions = v
return s
} | c15 | // SetBotVersions sets the BotVersions field's value. |
CoIR-Retrieval/CodeSearchNet | go | q16 | func (s *Intent) SetIntentVersion(v string) *Intent {
s.IntentVersion = &v
return s
} | c16 | // SetIntentVersion sets the IntentVersion field's value. |
CoIR-Retrieval/CodeSearchNet | go | q17 | func (s *Message) SetGroupNumber(v int64) *Message {
s.GroupNumber = &v
return s
} | c17 | // SetGroupNumber sets the GroupNumber field's value. |
CoIR-Retrieval/CodeSearchNet | go | q18 | func (s *PutBotInput) SetProcessBehavior(v string) *PutBotInput {
s.ProcessBehavior = &v
return s
} | c18 | // SetProcessBehavior sets the ProcessBehavior field's value. |
CoIR-Retrieval/CodeSearchNet | go | q19 | func (s *Slot) SetSlotConstraint(v string) *Slot {
s.SlotConstraint = &v
return s
} | c19 | // SetSlotConstraint sets the SlotConstraint field's value. |
CoIR-Retrieval/CodeSearchNet | go | q20 | func (s *Slot) SetSlotType(v string) *Slot {
s.SlotType = &v
return s
} | c20 | // SetSlotType sets the SlotType field's value. |
CoIR-Retrieval/CodeSearchNet | go | q21 | func (s *Slot) SetSlotTypeVersion(v string) *Slot {
s.SlotTypeVersion = &v
return s
} | c21 | // SetSlotTypeVersion sets the SlotTypeVersion field's value. |
CoIR-Retrieval/CodeSearchNet | go | q22 | func (s *Slot) SetValueElicitationPrompt(v *Prompt) *Slot {
s.ValueElicitationPrompt = v
return s
} | c22 | // SetValueElicitationPrompt sets the ValueElicitationPrompt field's value. |
CoIR-Retrieval/CodeSearchNet | go | q23 | func (s *UtteranceData) SetDistinctUsers(v int64) *UtteranceData {
s.DistinctUsers = &v
return s
} | c23 | // SetDistinctUsers sets the DistinctUsers field's value. |
CoIR-Retrieval/CodeSearchNet | go | q24 | func (s *UtteranceData) SetFirstUtteredDate(v time.Time) *UtteranceData {
s.FirstUtteredDate = &v
return s
} | c24 | // SetFirstUtteredDate sets the FirstUtteredDate field's value. |
CoIR-Retrieval/CodeSearchNet | go | q25 | func (s *UtteranceData) SetLastUtteredDate(v time.Time) *UtteranceData {
s.LastUtteredDate = &v
return s
} | c25 | // SetLastUtteredDate sets the LastUtteredDate field's value. |
CoIR-Retrieval/CodeSearchNet | go | q26 | func (s *UtteranceData) SetUtteranceString(v string) *UtteranceData {
s.UtteranceString = &v
return s
} | c26 | // SetUtteranceString sets the UtteranceString field's value. |
CoIR-Retrieval/CodeSearchNet | go | q27 | func (kp kmsKeyHandler) decryptHandler(env Envelope) (CipherDataDecrypter, error) {
m := MaterialDescription{}
err := m.decodeDescription([]byte(env.MatDesc))
if err != nil {
return nil, err
}
cmkID, ok := m["kms_cmk_id"]
if !ok {
return nil, awserr.New("MissingCMKIDError", "Material description is missing C... | c27 | // decryptHandler initializes a KMS keyprovider with a material description. This
// is used with Decrypting kms content, due to the cmkID being in the material description. |
CoIR-Retrieval/CodeSearchNet | go | q28 | func (kp *kmsKeyHandler) DecryptKey(key []byte) ([]byte, error) {
out, err := kp.kms.Decrypt(&kms.DecryptInput{
EncryptionContext: map[string]*string(kp.CipherData.MaterialDescription),
CiphertextBlob: key,
GrantTokens: []*string{},
})
if err != nil {
return nil, err
}
return out.Plaintext, nil
} | c28 | // DecryptKey makes a call to KMS to decrypt the key. |
CoIR-Retrieval/CodeSearchNet | go | q29 | func (kp *kmsKeyHandler) GenerateCipherData(keySize, ivSize int) (CipherData, error) {
out, err := kp.kms.GenerateDataKey(&kms.GenerateDataKeyInput{
EncryptionContext: kp.CipherData.MaterialDescription,
KeyId: kp.cmkID,
KeySpec: aws.String("AES_256"),
})
if err != nil {
return CipherDat... | c29 | // GenerateCipherData makes a call to KMS to generate a data key, Upon making
// the call, it also sets the encrypted key. |
CoIR-Retrieval/CodeSearchNet | go | q30 | func (cc *aesGCMContentCipher) DecryptContents(src io.ReadCloser) (io.ReadCloser, error) {
reader := cc.Cipher.Decrypt(src)
return &CryptoReadCloser{Body: src, Decrypter: reader}, nil
} | c30 | // DecryptContents will use the symmetric key provider to instantiate a new GCM cipher.
// We grab a decrypt reader from gcm and wrap it in a CryptoReadCloser. The only error
// expected here is when the key or iv is of invalid length. |
CoIR-Retrieval/CodeSearchNet | go | q31 | func (s *DescribeUpdateInput) SetUpdateId(v string) *DescribeUpdateInput {
s.UpdateId = &v
return s
} | c31 | // SetUpdateId sets the UpdateId field's value. |
CoIR-Retrieval/CodeSearchNet | go | q32 | func (s *ListUpdatesOutput) SetUpdateIds(v []*string) *ListUpdatesOutput {
s.UpdateIds = v
return s
} | c32 | // SetUpdateIds sets the UpdateIds field's value. |
CoIR-Retrieval/CodeSearchNet | go | q33 | func (s *Logging) SetClusterLogging(v []*LogSetup) *Logging {
s.ClusterLogging = v
return s
} | c33 | // SetClusterLogging sets the ClusterLogging field's value. |
CoIR-Retrieval/CodeSearchNet | go | q34 | func (s *Update) SetParams(v []*UpdateParam) *Update {
s.Params = v
return s
} | c34 | // SetParams sets the Params field's value. |
CoIR-Retrieval/CodeSearchNet | go | q35 | func IsReaderSeekable(r io.Reader) bool {
switch v := r.(type) {
case ReaderSeekerCloser:
return v.IsSeeker()
case *ReaderSeekerCloser:
return v.IsSeeker()
case io.ReadSeeker:
return true
default:
return false
}
} | c35 | // IsReaderSeekable returns if the underlying reader type can be seeked. A
// io.Reader might not actually be seekable if it is the ReaderSeekerCloser
// type. |
CoIR-Retrieval/CodeSearchNet | go | q36 | func (r ReaderSeekerCloser) Read(p []byte) (int, error) {
switch t := r.r.(type) {
case io.Reader:
return t.Read(p)
}
return 0, nil
} | c36 | // Read reads from the reader up to size of p. The number of bytes read, and
// error if it occurred will be returned.
//
// If the reader is not an io.Reader zero bytes read, and nil error will be returned.
//
// Performs the same functionality as io.Reader Read |
CoIR-Retrieval/CodeSearchNet | go | q37 | func (r ReaderSeekerCloser) IsSeeker() bool {
_, ok := r.r.(io.Seeker)
return ok
} | c37 | // IsSeeker returns if the underlying reader is also a seeker. |
CoIR-Retrieval/CodeSearchNet | go | q38 | func SeekerLen(s io.Seeker) (int64, error) {
// Determine if the seeker is actually seekable. ReaderSeekerCloser
// hides the fact that a io.Readers might not actually be seekable.
switch v := s.(type) {
case ReaderSeekerCloser:
return v.GetLen()
case *ReaderSeekerCloser:
return v.GetLen()
}
return seekerLe... | c38 | // SeekerLen attempts to get the number of bytes remaining at the seeker's
// current position. Returns the number of bytes remaining or error. |
CoIR-Retrieval/CodeSearchNet | go | q39 | func (r ReaderSeekerCloser) Close() error {
switch t := r.r.(type) {
case io.Closer:
return t.Close()
}
return nil
} | c39 | // Close closes the ReaderSeekerCloser.
//
// If the ReaderSeekerCloser is not an io.Closer nothing will be done. |
CoIR-Retrieval/CodeSearchNet | go | q40 | func (b *WriteAtBuffer) WriteAt(p []byte, pos int64) (n int, err error) {
pLen := len(p)
expLen := pos + int64(pLen)
b.m.Lock()
defer b.m.Unlock()
if int64(len(b.buf)) < expLen {
if int64(cap(b.buf)) < expLen {
if b.GrowthCoeff < 1 {
b.GrowthCoeff = 1
}
newBuf := make([]byte, expLen, int64(b.GrowthC... | c40 | // WriteAt writes a slice of bytes to a buffer starting at the position provided
// The number of bytes written will be returned, or error. Can overwrite previous
// written slices if the write ats overlap. |
CoIR-Retrieval/CodeSearchNet | go | q41 | func (b *WriteAtBuffer) Bytes() []byte {
b.m.Lock()
defer b.m.Unlock()
return b.buf
} | c41 | // Bytes returns a slice of bytes written to the buffer. |
CoIR-Retrieval/CodeSearchNet | go | q42 | func (s *AutoScalingThresholds) SetCpuThreshold(v float64) *AutoScalingThresholds {
s.CpuThreshold = &v
return s
} | c42 | // SetCpuThreshold sets the CpuThreshold field's value. |
CoIR-Retrieval/CodeSearchNet | go | q43 | func (s *AutoScalingThresholds) SetIgnoreMetricsTime(v int64) *AutoScalingThresholds {
s.IgnoreMetricsTime = &v
return s
} | c43 | // SetIgnoreMetricsTime sets the IgnoreMetricsTime field's value. |
CoIR-Retrieval/CodeSearchNet | go | q44 | func (s *AutoScalingThresholds) SetLoadThreshold(v float64) *AutoScalingThresholds {
s.LoadThreshold = &v
return s
} | c44 | // SetLoadThreshold sets the LoadThreshold field's value. |
CoIR-Retrieval/CodeSearchNet | go | q45 | func (s *AutoScalingThresholds) SetMemoryThreshold(v float64) *AutoScalingThresholds {
s.MemoryThreshold = &v
return s
} | c45 | // SetMemoryThreshold sets the MemoryThreshold field's value. |
CoIR-Retrieval/CodeSearchNet | go | q46 | func (s *AutoScalingThresholds) SetThresholdsWaitTime(v int64) *AutoScalingThresholds {
s.ThresholdsWaitTime = &v
return s
} | c46 | // SetThresholdsWaitTime sets the ThresholdsWaitTime field's value. |
CoIR-Retrieval/CodeSearchNet | go | q47 | func (s *BlockDeviceMapping) SetEbs(v *EbsBlockDevice) *BlockDeviceMapping {
s.Ebs = v
return s
} | c47 | // SetEbs sets the Ebs field's value. |
CoIR-Retrieval/CodeSearchNet | go | q48 | func (s *ChefConfiguration) SetBerkshelfVersion(v string) *ChefConfiguration {
s.BerkshelfVersion = &v
return s
} | c48 | // SetBerkshelfVersion sets the BerkshelfVersion field's value. |
CoIR-Retrieval/CodeSearchNet | go | q49 | func (s *ChefConfiguration) SetManageBerkshelf(v bool) *ChefConfiguration {
s.ManageBerkshelf = &v
return s
} | c49 | // SetManageBerkshelf sets the ManageBerkshelf field's value. |
CoIR-Retrieval/CodeSearchNet | go | q50 | func (s *CloneStackInput) SetCloneAppIds(v []*string) *CloneStackInput {
s.CloneAppIds = v
return s
} | c50 | // SetCloneAppIds sets the CloneAppIds field's value. |
CoIR-Retrieval/CodeSearchNet | go | q51 | func (s *CloneStackInput) SetClonePermissions(v bool) *CloneStackInput {
s.ClonePermissions = &v
return s
} | c51 | // SetClonePermissions sets the ClonePermissions field's value. |
CoIR-Retrieval/CodeSearchNet | go | q52 | func (s *CloneStackInput) SetSourceStackId(v string) *CloneStackInput {
s.SourceStackId = &v
return s
} | c52 | // SetSourceStackId sets the SourceStackId field's value. |
CoIR-Retrieval/CodeSearchNet | go | q53 | func (s *CloudWatchLogsLogStream) SetBatchCount(v int64) *CloudWatchLogsLogStream {
s.BatchCount = &v
return s
} | c53 | // SetBatchCount sets the BatchCount field's value. |
CoIR-Retrieval/CodeSearchNet | go | q54 | func (s *CloudWatchLogsLogStream) SetBufferDuration(v int64) *CloudWatchLogsLogStream {
s.BufferDuration = &v
return s
} | c54 | // SetBufferDuration sets the BufferDuration field's value. |
CoIR-Retrieval/CodeSearchNet | go | q55 | func (s *CloudWatchLogsLogStream) SetDatetimeFormat(v string) *CloudWatchLogsLogStream {
s.DatetimeFormat = &v
return s
} | c55 | // SetDatetimeFormat sets the DatetimeFormat field's value. |
CoIR-Retrieval/CodeSearchNet | go | q56 | func (s *CloudWatchLogsLogStream) SetFileFingerprintLines(v string) *CloudWatchLogsLogStream {
s.FileFingerprintLines = &v
return s
} | c56 | // SetFileFingerprintLines sets the FileFingerprintLines field's value. |
CoIR-Retrieval/CodeSearchNet | go | q57 | func (s *CloudWatchLogsLogStream) SetInitialPosition(v string) *CloudWatchLogsLogStream {
s.InitialPosition = &v
return s
} | c57 | // SetInitialPosition sets the InitialPosition field's value. |
CoIR-Retrieval/CodeSearchNet | go | q58 | func (s *CloudWatchLogsLogStream) SetMultiLineStartPattern(v string) *CloudWatchLogsLogStream {
s.MultiLineStartPattern = &v
return s
} | c58 | // SetMultiLineStartPattern sets the MultiLineStartPattern field's value. |
CoIR-Retrieval/CodeSearchNet | go | q59 | func (s *Command) SetAcknowledgedAt(v string) *Command {
s.AcknowledgedAt = &v
return s
} | c59 | // SetAcknowledgedAt sets the AcknowledgedAt field's value. |
CoIR-Retrieval/CodeSearchNet | go | q60 | func (s *DeleteInstanceInput) SetDeleteElasticIp(v bool) *DeleteInstanceInput {
s.DeleteElasticIp = &v
return s
} | c60 | // SetDeleteElasticIp sets the DeleteElasticIp field's value. |
CoIR-Retrieval/CodeSearchNet | go | q61 | func (s *DeleteInstanceInput) SetDeleteVolumes(v bool) *DeleteInstanceInput {
s.DeleteVolumes = &v
return s
} | c61 | // SetDeleteVolumes sets the DeleteVolumes field's value. |
CoIR-Retrieval/CodeSearchNet | go | q62 | func (s *DescribeAgentVersionsOutput) SetAgentVersions(v []*AgentVersion) *DescribeAgentVersionsOutput {
s.AgentVersions = v
return s
} | c62 | // SetAgentVersions sets the AgentVersions field's value. |
CoIR-Retrieval/CodeSearchNet | go | q63 | func (s *DescribeCommandsInput) SetCommandIds(v []*string) *DescribeCommandsInput {
s.CommandIds = v
return s
} | c63 | // SetCommandIds sets the CommandIds field's value. |
CoIR-Retrieval/CodeSearchNet | go | q64 | func (s *DescribeEcsClustersInput) SetEcsClusterArns(v []*string) *DescribeEcsClustersInput {
s.EcsClusterArns = v
return s
} | c64 | // SetEcsClusterArns sets the EcsClusterArns field's value. |
CoIR-Retrieval/CodeSearchNet | go | q65 | func (s *DescribeEcsClustersOutput) SetEcsClusters(v []*EcsCluster) *DescribeEcsClustersOutput {
s.EcsClusters = v
return s
} | c65 | // SetEcsClusters sets the EcsClusters field's value. |
CoIR-Retrieval/CodeSearchNet | go | q66 | func (s *DescribeElasticIpsInput) SetIps(v []*string) *DescribeElasticIpsInput {
s.Ips = v
return s
} | c66 | // SetIps sets the Ips field's value. |
CoIR-Retrieval/CodeSearchNet | go | q67 | func (s *DescribeElasticIpsOutput) SetElasticIps(v []*ElasticIp) *DescribeElasticIpsOutput {
s.ElasticIps = v
return s
} | c67 | // SetElasticIps sets the ElasticIps field's value. |
CoIR-Retrieval/CodeSearchNet | go | q68 | func (s *DescribeElasticLoadBalancersOutput) SetElasticLoadBalancers(v []*ElasticLoadBalancer) *DescribeElasticLoadBalancersOutput {
s.ElasticLoadBalancers = v
return s
} | c68 | // SetElasticLoadBalancers sets the ElasticLoadBalancers field's value. |
CoIR-Retrieval/CodeSearchNet | go | q69 | func (s *DescribeLoadBasedAutoScalingOutput) SetLoadBasedAutoScalingConfigurations(v []*LoadBasedAutoScalingConfiguration) *DescribeLoadBasedAutoScalingOutput {
s.LoadBasedAutoScalingConfigurations = v
return s
} | c69 | // SetLoadBasedAutoScalingConfigurations sets the LoadBasedAutoScalingConfigurations field's value. |
CoIR-Retrieval/CodeSearchNet | go | q70 | func (s *DescribeMyUserProfileOutput) SetUserProfile(v *SelfUserProfile) *DescribeMyUserProfileOutput {
s.UserProfile = v
return s
} | c70 | // SetUserProfile sets the UserProfile field's value. |
CoIR-Retrieval/CodeSearchNet | go | q71 | func (s *DescribeOperatingSystemsOutput) SetOperatingSystems(v []*OperatingSystem) *DescribeOperatingSystemsOutput {
s.OperatingSystems = v
return s
} | c71 | // SetOperatingSystems sets the OperatingSystems field's value. |
CoIR-Retrieval/CodeSearchNet | go | q72 | func (s *DescribeRaidArraysInput) SetRaidArrayIds(v []*string) *DescribeRaidArraysInput {
s.RaidArrayIds = v
return s
} | c72 | // SetRaidArrayIds sets the RaidArrayIds field's value. |
CoIR-Retrieval/CodeSearchNet | go | q73 | func (s *DescribeRaidArraysOutput) SetRaidArrays(v []*RaidArray) *DescribeRaidArraysOutput {
s.RaidArrays = v
return s
} | c73 | // SetRaidArrays sets the RaidArrays field's value. |
CoIR-Retrieval/CodeSearchNet | go | q74 | func (s *DescribeRdsDbInstancesInput) SetRdsDbInstanceArns(v []*string) *DescribeRdsDbInstancesInput {
s.RdsDbInstanceArns = v
return s
} | c74 | // SetRdsDbInstanceArns sets the RdsDbInstanceArns field's value. |
CoIR-Retrieval/CodeSearchNet | go | q75 | func (s *DescribeRdsDbInstancesOutput) SetRdsDbInstances(v []*RdsDbInstance) *DescribeRdsDbInstancesOutput {
s.RdsDbInstances = v
return s
} | c75 | // SetRdsDbInstances sets the RdsDbInstances field's value. |
CoIR-Retrieval/CodeSearchNet | go | q76 | func (s *DescribeServiceErrorsInput) SetServiceErrorIds(v []*string) *DescribeServiceErrorsInput {
s.ServiceErrorIds = v
return s
} | c76 | // SetServiceErrorIds sets the ServiceErrorIds field's value. |
CoIR-Retrieval/CodeSearchNet | go | q77 | func (s *DescribeServiceErrorsOutput) SetServiceErrors(v []*ServiceError) *DescribeServiceErrorsOutput {
s.ServiceErrors = v
return s
} | c77 | // SetServiceErrors sets the ServiceErrors field's value. |
CoIR-Retrieval/CodeSearchNet | go | q78 | func (s *DescribeStackProvisioningParametersOutput) SetAgentInstallerUrl(v string) *DescribeStackProvisioningParametersOutput {
s.AgentInstallerUrl = &v
return s
} | c78 | // SetAgentInstallerUrl sets the AgentInstallerUrl field's value. |
CoIR-Retrieval/CodeSearchNet | go | q79 | func (s *DescribeStackSummaryOutput) SetStackSummary(v *StackSummary) *DescribeStackSummaryOutput {
s.StackSummary = v
return s
} | c79 | // SetStackSummary sets the StackSummary field's value. |
CoIR-Retrieval/CodeSearchNet | go | q80 | func (s *DescribeStacksInput) SetStackIds(v []*string) *DescribeStacksInput {
s.StackIds = v
return s
} | c80 | // SetStackIds sets the StackIds field's value. |
CoIR-Retrieval/CodeSearchNet | go | q81 | func (s *DescribeStacksOutput) SetStacks(v []*Stack) *DescribeStacksOutput {
s.Stacks = v
return s
} | c81 | // SetStacks sets the Stacks field's value. |
CoIR-Retrieval/CodeSearchNet | go | q82 | func (s *DescribeTimeBasedAutoScalingOutput) SetTimeBasedAutoScalingConfigurations(v []*TimeBasedAutoScalingConfiguration) *DescribeTimeBasedAutoScalingOutput {
s.TimeBasedAutoScalingConfigurations = v
return s
} | c82 | // SetTimeBasedAutoScalingConfigurations sets the TimeBasedAutoScalingConfigurations field's value. |
CoIR-Retrieval/CodeSearchNet | go | q83 | func (s *DescribeUserProfilesInput) SetIamUserArns(v []*string) *DescribeUserProfilesInput {
s.IamUserArns = v
return s
} | c83 | // SetIamUserArns sets the IamUserArns field's value. |
CoIR-Retrieval/CodeSearchNet | go | q84 | func (s *DescribeVolumesInput) SetVolumeIds(v []*string) *DescribeVolumesInput {
s.VolumeIds = v
return s
} | c84 | // SetVolumeIds sets the VolumeIds field's value. |
CoIR-Retrieval/CodeSearchNet | go | q85 | func (s *EcsCluster) SetEcsClusterName(v string) *EcsCluster {
s.EcsClusterName = &v
return s
} | c85 | // SetEcsClusterName sets the EcsClusterName field's value. |
CoIR-Retrieval/CodeSearchNet | go | q86 | func (s *ElasticLoadBalancer) SetEc2InstanceIds(v []*string) *ElasticLoadBalancer {
s.Ec2InstanceIds = v
return s
} | c86 | // SetEc2InstanceIds sets the Ec2InstanceIds field's value. |
CoIR-Retrieval/CodeSearchNet | go | q87 | func (s *EnvironmentVariable) SetSecure(v bool) *EnvironmentVariable {
s.Secure = &v
return s
} | c87 | // SetSecure sets the Secure field's value. |
CoIR-Retrieval/CodeSearchNet | go | q88 | func (s *GrantAccessOutput) SetTemporaryCredential(v *TemporaryCredential) *GrantAccessOutput {
s.TemporaryCredential = v
return s
} | c88 | // SetTemporaryCredential sets the TemporaryCredential field's value. |
CoIR-Retrieval/CodeSearchNet | go | q89 | func (s *Instance) SetEcsContainerInstanceArn(v string) *Instance {
s.EcsContainerInstanceArn = &v
return s
} | c89 | // SetEcsContainerInstanceArn sets the EcsContainerInstanceArn field's value. |
CoIR-Retrieval/CodeSearchNet | go | q90 | func (s *Instance) SetInfrastructureClass(v string) *Instance {
s.InfrastructureClass = &v
return s
} | c90 | // SetInfrastructureClass sets the InfrastructureClass field's value. |
CoIR-Retrieval/CodeSearchNet | go | q91 | func (s *Instance) SetLastServiceErrorId(v string) *Instance {
s.LastServiceErrorId = &v
return s
} | c91 | // SetLastServiceErrorId sets the LastServiceErrorId field's value. |
CoIR-Retrieval/CodeSearchNet | go | q92 | func (s *Instance) SetPrivateDns(v string) *Instance {
s.PrivateDns = &v
return s
} | c92 | // SetPrivateDns sets the PrivateDns field's value. |
CoIR-Retrieval/CodeSearchNet | go | q93 | func (s *Instance) SetPublicDns(v string) *Instance {
s.PublicDns = &v
return s
} | c93 | // SetPublicDns sets the PublicDns field's value. |
CoIR-Retrieval/CodeSearchNet | go | q94 | func (s *Instance) SetRegisteredBy(v string) *Instance {
s.RegisteredBy = &v
return s
} | c94 | // SetRegisteredBy sets the RegisteredBy field's value. |
CoIR-Retrieval/CodeSearchNet | go | q95 | func (s *Instance) SetReportedAgentVersion(v string) *Instance {
s.ReportedAgentVersion = &v
return s
} | c95 | // SetReportedAgentVersion sets the ReportedAgentVersion field's value. |
CoIR-Retrieval/CodeSearchNet | go | q96 | func (s *Instance) SetReportedOs(v *ReportedOs) *Instance {
s.ReportedOs = v
return s
} | c96 | // SetReportedOs sets the ReportedOs field's value. |
CoIR-Retrieval/CodeSearchNet | go | q97 | func (s *Instance) SetRootDeviceVolumeId(v string) *Instance {
s.RootDeviceVolumeId = &v
return s
} | c97 | // SetRootDeviceVolumeId sets the RootDeviceVolumeId field's value. |
CoIR-Retrieval/CodeSearchNet | go | q98 | func (s *Instance) SetSshHostDsaKeyFingerprint(v string) *Instance {
s.SshHostDsaKeyFingerprint = &v
return s
} | c98 | // SetSshHostDsaKeyFingerprint sets the SshHostDsaKeyFingerprint field's value. |
CoIR-Retrieval/CodeSearchNet | go | q99 | func (s *Instance) SetSshHostRsaKeyFingerprint(v string) *Instance {
s.SshHostRsaKeyFingerprint = &v
return s
} | c99 | // SetSshHostRsaKeyFingerprint sets the SshHostRsaKeyFingerprint field's value. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.