ICT-TIME-and-Querit/ICT-TIME-and-Querit-embedding-v1
Sentence Similarity • 4B • Updated • 125
query stringlengths 43 373k | pos listlengths 1 1 | neg listlengths 8 8 | prompt stringclasses 4
values | type stringclasses 1
value |
|---|---|---|---|---|
CodeSearchNet-ccr_go_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 es... | [
"nil {\n\t\t\t\treturn 0, err\n\t\t\t}\n\n\t\t\tb[i-1] = c\n\t\t\tb = append(b[:i], b[i+1:]...)\n\t\t\ti--*/\n\n\t\t\tcontinue\n\t\t}\n\t}\n\n\tif !endQuote {\n\t\treturn 0, NewParseError(\"missing '\\\"' in string value\")\n\t}\n\n\treturn i + 1, nil\n}"
] | [
"bytes to \\uFFFD (replacement char).\n\treturn string(bytes.Runes(b))\n}",
").Call(0, uintptr(unsafe.Pointer(&b[0])), uintptr(size))\n\tn = uint32(r0)\n\tif n == 0 {\n\t\treturn \"\", e1\n\t}\n\treturn string(utf16.Decode(b[0:n])), nil\n}",
"Character values allowed in ETags.\n\t\tcase c == 0x21 || c >= 0x23 &... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_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\t\t\tn = len(lv)\n\t\t}\n\t}\n\n\tif n == 0 {\n\t\treturn 0, NewParseError(\"invalid boolean value\")\n\t}\n\n\treturn n, nil\n}"
] | [
"false {\n\t\treturn false, false\n\t}\n\tif n, ok := value.(bool); ok {\n\t\treturn n, true\n\t}\n\treturn false, false\n}",
"string is treated as valid.\n\t\t\t*bf = b\n\t\t} else if b, err = ParseBoolFlag(s); err == nil {\n\t\t\t*bf = b\n\t\t}\n\t}\n\n\treturn err\n}",
"return false, err\n\t}\n\treturn value... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_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.... | [
"return 0, 0, err\n\t\t\t\t}\n\n\t\t\t\tnegativeIndex = 0\n\t\t\tcase 'b':\n\t\t\t\tif helper.numberFormat == hex {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tfallthrough\n\t\t\tcase 'o', 'x':\n\t\t\t\tif i == 0 && b[i] != '0' {\n\t\t\t\t\treturn 0, 0, NewParseError(\"incorrect base format, expected leading '0'\")\n\t\t\... | [
"ch = s.next()\n\t\t}\n\t\tch = s.scanMantissa(ch)\n\t}\n\treturn ch\n}",
"prec = len(str)\n\t}\n\tval, _, err := big.ParseFloat(str, 10, uint(prec), big.ToZero)\n\tif err != nil {\n\t\titer.Error = err\n\t\treturn nil\n\t}\n\treturn val\n}",
"}\n\t\tlength++\n\n\t\tresult |= uint64((uint(b) & 0x7f) << shift)\n... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func getNegativeNumber(b []rune) int {
if b[0] != '-' {
return 0
}
i := 1
for ; i < len(b); i++ {
| [
"if !isDigit(b[i]) {\n\t\t\treturn i\n\t\t}\n\t}\n\n\treturn i\n}"
] | [
"== utf8.RuneError {\n\t\treturn -1\n\t}\n\treturn r\n}",
"}\n\t\tlength++\n\n\t\tresult |= uint64((uint(b) & 0x7f) << shift)\n\n\t\t// If high order bit is 1.\n\t\tif b&0x80 == 0 {\n\t\t\tbreak\n\t\t}\n\n\t\tshift += 7\n\t}\n\n\treturn result, length\n}",
"nil, CorruptInputError(i)\n\t\t}\n\t\tn.Mul(n, radix)\... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_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\n\tdefault:\n\t\treturn false\n\t}\n\n\treturn value[len(value)-1] == '\\\\'\n}"
] | [
"`unfinished backslash escape sequence`,\n\t\t\t\t)\n\t\t\t}\n\t\t\tescapeType := raw[i+1]\n\t\t\tswitch escapeType {\n\t\t\tcase '\\\\':\n\t\t\t\t// skip over the second slash\n\t\t\t\ti++\n\t\t\tcase 'n':\n\t\t\t\tb = '\\n'\n\t\t\t\ti++\n\t\t\tcase '\"':\n\t\t\t\tb = '\"'\n\t\t\t\ti++\n\t\t\tdefault:\n\t\t\t\tret... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func OpenFile(path string) (Sections, error) {
f, err := os.Open(path)
if err != nil {
return | [
"Sections{}, awserr.New(ErrCodeUnableToReadFile, \"unable to open file\", err)\n\t}\n\tdefer f.Close()\n\n\treturn Parse(f)\n}"
] | [
"return nil, errors.Wrapf(err, \"failed to open %q\", name)\n\t}\n\n\treturn f, nil\n}",
":= ioutil.ReadFile(path)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn loadIndex(b)\n}",
"error) {\n\treturn os.Open(name)\n}",
"return nil, err\n\t}\n\tdefer file.Close()\n\treturn Read(file, opts...)\n}",
"e... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_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 {\n\t\treturn Sections{}, err\n\t}\n\n\treturn v.Sections, nil\n}"
] | [
"n.FirstChild; c != nil; c = c.NextSibling {\n\t\t\twalkNodes(c, f)\n\t\t}\n\t}\n}",
"p.caps,\n\t\tcapnumlist: p.capnumlist,\n\t\tcaptop: p.captop,\n\t\tCapnames: p.capnames,\n\t\tCaplist: p.capnamelist,\n\t\toptions: op,\n\t}\n\n\tif tree.options&Debug > 0 {\n\t\tos.Stdout.WriteString(tree.Dump())\n\... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_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 {\n\t\treturn Sections{}, err\n\t}\n\n\treturn v.Sections, nil\n}"
] | [
"NewParserWithStorage(NewScanner(packfile), s)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\t_, err = p.Parse()\n\treturn err\n}",
"the tree\n\tast.Inspect(rootAstNode, treeCursor.insert)\n\n\t// Return the actual root\n\treturn treeCursor.root.Children[0]\n}",
"if err != nil {\n\t\tpanic(err.Error())\n\t}\n\tt,... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (c SmokeTestCase) BuildInputShape(ref *ShapeRef) string {
var b ShapeValueBuilder
return fmt.Sprintf("&%s{\n%s\n}",
| [
"b.GoType(ref, true),\n\t\tb.BuildShape(ref, c.Input, false),\n\t)\n}"
] | [
"}\n\treturn map[string]interface{}{\"Ref\": ref}\n}",
"types = append(types, []string{\"*http.Response\", \"error\"}...)\n\n\treturn fmt.Sprintf(\"(%v)\", strings.Join(types, \",\"))\n}",
"BinaryReference{}\n\tref.Name = name\n\tref.Value.ID = id\n\treturn ref\n}",
"s.ShapeName, err),\n\t\t\t)\n\t\t}\n\tcase... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *CodeHook) SetMessageVersion(v string) *CodeHook {
| [
"s.MessageVersion = &v\n\treturn s\n}"
] | [
"s.VersionOrAlias = &v\n\treturn s\n}",
"string) *DecodeAuthorizationMessageOutput {\n\ts.DecodedMessage = &v\n\treturn s\n}",
"string) *ServiceSoftwareOptions {\n\ts.NewVersion = &v\n\treturn s\n}",
"}\n\tp.message.SetHeader(k, v)\n\treturn p\n}",
"string) *DecodeAuthorizationMessageInput {\n\ts.EncodedMes... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *FollowUpPrompt) SetPrompt(v *Prompt) *FollowUpPrompt | [
"{\n\ts.Prompt = v\n\treturn s\n}"
] | [
"s.PrivateRepository = &v\n\treturn s\n}",
"s.Feature = &v\n\treturn s\n}",
"s.CcAddresses = v\n\treturn s\n}",
"s.NameUpdate = &v\n\treturn s\n}",
"s.TargetPipeline = &v\n\treturn s\n}",
"{\n\ts.ServiceCodeList = v\n\treturn s\n}",
"s.PropertyNameHint = &v\n\treturn s\n}",
"s.CurrentRole = &v\n\tretu... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *FulfillmentActivity) SetCodeHook(v | [
"*CodeHook) *FulfillmentActivity {\n\ts.CodeHook = v\n\treturn s\n}"
] | [
"*Run {\n\ts.ResultCode = &v\n\treturn s\n}",
"*Task {\n\ts.StopCode = &v\n\treturn s\n}",
"*Activity {\n\ts.CommentMetadata = v\n\treturn s\n}",
"s.HttpStatus = &v\n\treturn s\n}",
"*UpdateUserAttributesOutput {\n\ts.CodeDeliveryDetailsList = v\n\treturn s\n}",
"s.CredentialProvider = &v\n\treturn s\n}",... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *GetBotAliasesOutput) SetBotAliases(v []*BotAliasMetadata) | [
"*GetBotAliasesOutput {\n\ts.BotAliases = v\n\treturn s\n}"
] | [
"[]*NetworkProfile) *ListNetworkProfilesOutput {\n\ts.NetworkProfiles = v\n\treturn s\n}",
"[]*VpcPeeringConnection) *DescribeVpcPeeringConnectionsOutput {\n\ts.VpcPeeringConnections = v\n\treturn s\n}",
"s.ToAddresses = v\n\treturn s\n}",
"*GetAppsOutput {\n\ts.ApplicationsResponse = v\n\treturn s\n}",
"[]... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *GetBotChannelAssociationsOutput) SetBotChannelAssociations(v | [
"[]*BotChannelAssociation) *GetBotChannelAssociationsOutput {\n\ts.BotChannelAssociations = v\n\treturn s\n}"
] | [
"s.Response = &v\n\treturn s\n}",
"[]*CreatedArtifact) *ListCreatedArtifactsOutput {\n\ts.CreatedArtifactList = v\n\treturn s\n}",
"*ListAssociationVersionsOutput {\n\ts.AssociationVersions = v\n\treturn s\n}",
"[]*string) *StartAssociationsOnceInput {\n\ts.AssociationIds = v\n\treturn s\n}",
"*CodeDestinat... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *GetBotInput) SetVersionOrAlias(v string) *GetBotInput {
| [
"s.VersionOrAlias = &v\n\treturn s\n}"
] | [
"s.ZookeeperVersion = &v\n\treturn s\n}",
"s.Replacement = &v\n\treturn s\n}",
"s.ZipFileContent = v\n\treturn s\n}",
"s.OptionGroupOptionVersions = v\n\treturn s\n}",
"s.MessageVersion = &v\n\treturn s\n}",
"string) {\n\tg.initConfig()\n\tg.Config.Version = s\n}",
"s.ExecutedVersion = &v\n\treturn s\n}... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *GetUtterancesViewInput) SetBotVersions(v | [
"[]*string) *GetUtterancesViewInput {\n\ts.BotVersions = v\n\treturn s\n}"
] | [
"s.CacheEngineVersionDescription = &v\n\treturn s\n}",
"s.WriterVersion = &v\n\treturn s\n}",
"[]*string) *BatchDeleteTableVersionInput {\n\ts.VersionIds = v\n\treturn s\n}",
"{\n\ts.CoreDefinitionVersionId = &v\n\treturn s\n}",
"{\n\ts.IndexNames = v\n\treturn s\n}",
"s.ExecutedVersion = &v\n\treturn s\n... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Intent) SetIntentVersion(v string) *Intent {
| [
"s.IntentVersion = &v\n\treturn s\n}"
] | [
"{\n\ts.SourceCode = v\n\treturn s\n}",
"s.DrcRf = &v\n\treturn s\n}",
"{\n\ts.NextVersionIdMarker = &v\n\treturn s\n}",
"*CodeContent) *ApplicationCodeConfiguration {\n\ts.CodeContent = v\n\treturn s\n}",
"s.ZipFileContent = v\n\treturn s\n}",
"*ApplicationResourceLifecycleConfig {\n\ts.VersionLifecycleC... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Message) SetGroupNumber(v int64) *Message {
| [
"s.GroupNumber = &v\n\treturn s\n}"
] | [
"s.MaxNumberOfAutoScalingGroups = &v\n\treturn s\n}",
"s.PortNumber = &v\n\treturn s\n}",
"s.CloneGroupId = &v\n\treturn s\n}",
"s.NumberOfLabels = &v\n\treturn s\n}",
"if num < 0 {\n\t\treturn nil\n\t}\n\treturn m.GroupByNumber(num)\n}",
"s.DiagnosticCode = &v\n\treturn s\n}",
"{\n\ts.PhoneTypeCode = &... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *PutBotInput) SetProcessBehavior(v string) *PutBotInput {
| [
"s.ProcessBehavior = &v\n\treturn s\n}"
] | [
"string) *SearchAvailablePhoneNumbersInput {\n\ts.AreaCode = &v\n\treturn s\n}",
"*CodeContentDescription) *ApplicationCodeConfigurationDescription {\n\ts.CodeContentDescription = v\n\treturn s\n}",
"s.ScalingPolicyUpdateBehavior = &v\n\treturn s\n}",
"string) *MsSmoothGroupSettings {\n\ts.EventStopBehavior =... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Slot) SetSlotConstraint(v string) *Slot {
| [
"s.SlotConstraint = &v\n\treturn s\n}"
] | [
"s.CurrentRole = &v\n\treturn s\n}",
"s.Rows = v\n\treturn s\n}",
"s.RecordColumns = v\n\treturn s\n}",
"constraints,\n\t}\n\treturn c.facade.FacadeCall(\"SetConstraints\", args, nil)\n}",
"*AttributeValue {\n\ts.SL = v\n\treturn s\n}",
"s.Specification = &v\n\treturn s\n}",
"*SizeConstraint) *SizeConst... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Slot) SetSlotType(v string) | [
"*Slot {\n\ts.SlotType = &v\n\treturn s\n}"
] | [
"s.SearchInstanceType = &v\n\treturn s\n}",
"s.ThresholdType = &v\n\treturn s\n}",
"{\n\ts.Room = v\n\treturn s\n}",
"s.DecisionType = &v\n\treturn s\n}",
"*AccountSettings {\n\ts.MaxSlots = v\n\treturn s\n}",
"s.AttachmentType = &v\n\treturn s\n}",
"*DeviceType {\n\ts.DeviceAttributes = v\n\treturn s\n... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Slot) SetSlotTypeVersion(v string) *Slot {
| [
"s.SlotTypeVersion = &v\n\treturn s\n}"
] | [
"s.OperationType = &v\n\treturn s\n}",
"s.EventTypeCode = &v\n\treturn s\n}",
"s.AppVersionCode = &v\n\treturn s\n}",
"s.DrcRf = &v\n\treturn s\n}",
"s.InputType = &v\n\treturn s\n}",
"s.CollectionType = &v\n\treturn s\n}",
"s.TypeIdentifier = &v\n\treturn s\n}",
"s.ToolsVersion = &v\n\treturn s\n}"
] | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Slot) SetValueElicitationPrompt(v *Prompt) *Slot {
| [
"s.ValueElicitationPrompt = v\n\treturn s\n}"
] | [
"{\n\ts.S = &v\n\treturn s\n}",
"s.IncludeCredit = &v\n\treturn s\n}",
"s.DrcLine = &v\n\treturn s\n}",
"*AttributeValue {\n\ts.SL = v\n\treturn s\n}",
"s.Identifer = &v\n\treturn s\n}",
"*CodeContentDescription) *ApplicationCodeConfigurationDescription {\n\ts.CodeContentDescription = v\n\treturn s\n}",
... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *UtteranceData) SetDistinctUsers(v int64) *UtteranceData {
| [
"s.DistinctUsers = &v\n\treturn s\n}"
] | [
"s.MaxSpeakerLabels = &v\n\treturn s\n}",
"s.RecordColumns = v\n\treturn s\n}",
"s.ChannelsOut = &v\n\treturn s\n}",
"{\n\ts.ResourceRecord = v\n\treturn s\n}",
"*Coverage {\n\ts.CoverageNormalizedUnits = v\n\treturn s\n}",
"s.AllowAdminCreateUserOnly = &v\n\treturn s\n}",
"int64) *GetObjectOutput {\n\t... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *UtteranceData) SetFirstUtteredDate(v time.Time) *UtteranceData {
| [
"s.FirstUtteredDate = &v\n\treturn s\n}"
] | [
"*AttributeValue {\n\ts.SS = v\n\treturn s\n}",
"s.DiagnosticCode = &v\n\treturn s\n}",
"s.FunctionCount = &v\n\treturn s\n}",
"s.EventCode = &v\n\treturn s\n}",
"*CodeContentDescription) *ApplicationCodeConfigurationDescription {\n\ts.CodeContentDescription = v\n\treturn s\n}",
"s.DateImported = &v\n\tre... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *UtteranceData) SetLastUtteredDate(v time.Time) *UtteranceData {
| [
"s.LastUtteredDate = &v\n\treturn s\n}"
] | [
"s.ThreatIntelIndicatorLastObservedAt = v\n\treturn s\n}",
"s.StateLastUpdatedDateTime = &v\n\treturn s\n}",
"[]*ContactData) *SearchContactsOutput {\n\ts.Contacts = v\n\treturn s\n}",
"s.ConfigCred = &v\n\treturn s\n}",
"s.VersionCode = &v\n\treturn s\n}",
"s.ServerTimestamp = &v\n\treturn s\n}",
"{\n\... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *UtteranceData) SetUtteranceString(v string) *UtteranceData {
| [
"s.UtteranceString = &v\n\treturn s\n}"
] | [
"s.Response = &v\n\treturn s\n}",
"*EmailContent {\n\ts.Raw = v\n\treturn s\n}",
"s.DataURI = &v\n\treturn s\n}",
"s.SourceText = &v\n\treturn s\n}",
"{\n\ts.Chain = &v\n\treturn s\n}",
"string) *RtmpGroupSettings {\n\ts.CaptionData = &v\n\treturn s\n}",
"s.VersionCode = &v\n\treturn s\n}",
"s.Diagnos... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_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 CMK ID\", nil)\n\t}\n\n\tkp.CipherData.MaterialDescription = m\n\tkp.cmkID = cmkID\n\tkp.WrapAlgorithm = KMSWrap\n\treturn &kp, nil\n}"
] | [
"cast5.NewCipher(key)\n\tcase CipherAES128, CipherAES192, CipherAES256:\n\t\tblock, _ = aes.NewCipher(key)\n\t}\n\treturn\n}",
"nil, errors.New(\"encrypt: SSE-C key must be 256 bit long\")\n\t}\n\tsse := ssec{}\n\tcopy(sse[:], key)\n\treturn sse, nil\n}",
"gcm, err := cipher.NewGCM(aesCipher)\n\tif err != nil {... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_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{},\n\t})\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn out.Plaintext, nil\n}"
] | [
"%d, got %d)\",\n\t\t\texpectedlen,\n\t\t\tlen(enckey),\n\t\t)\n\t}\n\n\tvar err error\n\n\tbk, err := d.generator.KeyGenerate()\n\tif err != nil {\n\t\treturn nil, errors.New(\"failed to generate key\")\n\t}\n\tcek := bk.Bytes()\n\n\t// When decrypting an RSA-PKCS1v1.5 payload, we must take precautions to\n\t// pr... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_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... | [
"Key: out.Plaintext,\n\t\tIV: iv,\n\t\tWrapAlgorithm: KMSWrap,\n\t\tMaterialDescription: kp.CipherData.MaterialDescription,\n\t\tEncryptedKey: out.CiphertextBlob,\n\t}\n\treturn cd, nil\n}"
] | [
"err = tspiError(C.Tspi_Data_Unbind(encdata, key.handle, &dataLen, &cData))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tblob := C.GoBytes(unsafe.Pointer(cData), (C.int(dataLen)))\n\tC.Tspi_Context_FreeMemory(key.context, cData)\n\treturn blob, nil\n}",
"if err != nil {\n\t\treturn EncryptedPrivateMetadata{}... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (cc *aesGCMContentCipher) DecryptContents(src io.ReadCloser) (io.ReadCloser, | [
"error) {\n\treader := cc.Cipher.Decrypt(src)\n\treturn &CryptoReadCloser{Body: src, Decrypter: reader}, nil\n}"
] | [
"break\n\t\t}\n\t\tresult = append(result, subPacket)\n\t\tcontents = contents[subHeaderLen+len(subPacket.Contents):]\n\t}\n\treturn\n}",
"nil)\n\tif err == nil {\n\t\tmsg.Raw = decrypted\n\t}\n\treturn err\n}",
"by the AES_DECRYPT() function.\n\tdata, err := PKCS7Pad(str, blockSize)\n\tif err != nil {\n\t\tret... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeUpdateInput) SetUpdateId(v string) *DescribeUpdateInput | [
"{\n\ts.UpdateId = &v\n\treturn s\n}"
] | [
"{\n\ts.ResourceAwsS3BucketOwnerId = v\n\treturn s\n}",
"s.DeviceCertificateId = &v\n\treturn s\n}",
"string) *UpdateApplicationInput {\n\ts.NewApplicationName = &v\n\treturn s\n}",
"*UpdateDestinationInput {\n\ts.RedshiftDestinationUpdate = v\n\treturn s\n}",
"s.RootDeviceVolumeId = &v\n\treturn s\n}",
"... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *ListUpdatesOutput) SetUpdateIds(v []*string) *ListUpdatesOutput | [
"{\n\ts.UpdateIds = v\n\treturn s\n}"
] | [
"[]*IdentityInfo) *ListEmailIdentitiesOutput {\n\ts.EmailIdentities = v\n\treturn s\n}",
"s.ApplicationCodeUpdate = &v\n\treturn s\n}",
"*CodeContentUpdate {\n\ts.S3ContentLocationUpdate = v\n\treturn s\n}",
"s.ConstraintId = &v\n\treturn s\n}",
"*ApplicationUpdate) *UpdateApplicationInput {\n\ts.Applicatio... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Logging) SetClusterLogging(v []*LogSetup) | [
"*Logging {\n\ts.ClusterLogging = v\n\treturn s\n}"
] | [
"{\n\ts.ServiceCodeList = v\n\treturn s\n}",
":= m.ctrl.Call(m, \"SetClusterConf\", arg0)\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}",
"s.GeneralLogGroup = &v\n\treturn s\n}",
"[]*LogSubscription) *ListLogSubscriptionsOutput {\n\ts.LogSubscriptions = v\n\treturn s\n}",
"[]*CacheCluster) *DescribeCacheCl... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Update) SetParams(v []*UpdateParam) | [
"*Update {\n\ts.Params = v\n\treturn s\n}"
] | [
"s.CacheNodes = v\n\treturn s\n}",
"*RecordFormat {\n\ts.MappingParameters = v\n\treturn s\n}",
"s.Networking = v\n\treturn s\n}",
"{\n\ts.UpdateIds = v\n\treturn s\n}",
"string) *SetAttributesAsTextParams {\n\tp.Name = name\n\treturn &p\n}",
"s.CategoricalParameterRanges = v\n\treturn s\n}",
"string) *... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func IsReaderSeekable(r io.Reader) bool {
switch v := r.(type) {
case ReaderSeekerCloser:
return v.IsSeeker()
case *ReaderSeekerCloser:
| [
"return v.IsSeeker()\n\tcase io.ReadSeeker:\n\t\treturn true\n\tdefault:\n\t\treturn false\n\t}\n}"
] | [
"reflect.Slice:\n\t\treturn v.IsNil()\n\t}\n\treturn false\n}",
"false\n\tcase finfo.IsDir():\n\t\treturn true\n\tdefault:\n\t\treturn false\n\t}\n}",
"&Reader{src: src}\n\treturn r\n}",
"rc: r,\n\t\tr: bufio.NewReader(r),\n\t}\n}",
"w.ResponseWriter.(http.CloseNotifier)\n\treturn notifier, supportsCloseNo... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (r ReaderSeekerCloser) Read(p []byte) (int, error) {
switch t := r.r.(type) {
case | [
"io.Reader:\n\t\treturn t.Read(p)\n\t}\n\treturn 0, nil\n}"
] | [
"if r < utf8.RuneSelf {\n\t\t\treturn r, nil\n\t\t}\n\t\tcr.buffer.WriteRune(rune(r))\n\t}\n\treturn cr.buffer.ReadByte()\n}",
"&limitedReader{r: r, n: n}\n}",
"{\n\tn, err := r.fr.Read(p)\n\tr.off += int64(n)\n\treturn n, err\n}",
"return r.conn.Read(buf)\n}",
"return io.Copy(dst, NewReader(ctx, src))\n}",... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (r ReaderSeekerCloser) IsSeeker() bool {
_, | [
"ok := r.r.(io.Seeker)\n\treturn ok\n}"
] | [
"getImplementer(err).(ErrDeadline)\n\treturn ok\n}",
"return e.ErrorCode == ErrIO\n\tcase *MarshalError:\n\t\treturn e.ErrorCode == ErrIO\n\t}\n\treturn false\n}",
"return f.Buffer.Seek(offset, whence)\n}",
"ok := err.(nf)\n\tif !ok {\n\t\treturn os.IsNotExist(err)\n\t}\n\treturn ok\n}",
"||\n\t\tt.Implemen... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_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.\n\tswitch v := s.(type) {\n\tcase ReaderSeekerCloser:\n\t\treturn v.GetLen()\n\tcase *ReaderSeekerCloser:\n\t\treturn v.GetLen()\n\t}\n\n\treturn seekerLen(s)\n}"
] | [
"} else {\n\t\tvar n32 int32\n\t\tn32, err = fpInt32(o.lo.fp.CallFn(\"lo_tell\", []fpArg{fpIntArg(o.fd)}))\n\t\tn = int64(n32)\n\t}\n\treturn\n}",
"err := sr.Seek(nr, os.SEEK_CUR); err == nil {\n\t\t\treturn\n\t\t}\n\t}\n\n\t_, ar.err = io.CopyN(ioutil.Discard, ar.r, nr)\n}",
"return 0, err\n\t}\n\treturn f.Siz... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (r ReaderSeekerCloser) Close() error {
switch t := r.r.(type) { | [
"case io.Closer:\n\t\treturn t.Close()\n\t}\n\treturn nil\n}"
] | [
"err := r.rc.Close()\n\tr.rc = nil\n\treturn err\n}",
"close(s.closer)\n\ts.ro.Unlock()\n\treturn s.wo.Conn.Close()\n}",
"{ close(f.c) })\n\treturn nil\n}",
"switch conn.(type) {\n\tcase *CpConn:\n\t\treturn conn.(*CpConn).Destroy()\n\tdefault:\n\t\treturn conn.Close()\n\t}\n\treturn nil\n}",
"return nil\n\... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_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 {\n\t\t\tif b.GrowthCoeff < 1 {\n\t\t\t\tb.GrowthCoeff = 1\n\t\t\t}\n\t\t\tnewBuf := make([]byte, expLen, int64(b.GrowthCoeff*float64(expLen)))\n\t\t\tcopy(newBuf, b.buf)\n\t\t\tb.buf = newBuf\n\t\t}\n\t\tb.buf = b.buf[:expLen]\n\t}\n\tcopy(b.buf[pos:], p)\n\treturn pLen, nil\n}"
] | [
"err = ErrTooLarge\n\t\t\treturn\n\t\t}\n\t}()\n\tb = make([]byte, n)\n\treturn\n}",
"nil {\n\t\treturn 0, err\n\t}\n\treturn p.bufReader.Read(b)\n}",
"return n, err\n\t\t\t}\n\t\t\tn = i\n\t\t}\n\n\t\tif err := w.encode(b); err != nil {\n\t\t\treturn n, err\n\t\t}\n\t\tn++\n\t}\n\n\tif n == len(p) {\n\t\tretur... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (b *WriteAtBuffer) Bytes() []byte {
b.m.Lock()
| [
"defer b.m.Unlock()\n\treturn b.buf\n}"
] | [
"v.b != nil {\n\t\treturn cloneBytes(v.b)\n\t}\n\treturn []byte(v.s)\n}",
"b.mu.Unlock()\n\n\tout := b.buf.String()\n\tif b.truncated {\n\t\tout = out + \"...\"\n\t}\n\treturn out\n}",
"defer d.mu.RUnlock()\n\n\treturn d.b.b, nil\n}",
"Data: uintptr(unsafe.Pointer(&m.header)),\n\t\tLen: l,\n\t\tCap: l,\n\t}... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *AutoScalingThresholds) SetCpuThreshold(v float64) *AutoScalingThresholds | [
"{\n\ts.CpuThreshold = &v\n\treturn s\n}"
] | [
"s.Percent = &v\n\treturn s\n}",
"s.HttpCode = &v\n\treturn s\n}",
"s.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate = v\n\treturn s\n}",
"s.Company = &v\n\treturn s\n}",
"s.Value = value\n\treturn s\n}",
"s.CacheSize = &v\n\treturn s\n}",
"s.CustomPlatformQuota = v\n\treturn s\n}",
"s.R... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *AutoScalingThresholds) SetIgnoreMetricsTime(v | [
"int64) *AutoScalingThresholds {\n\ts.IgnoreMetricsTime = &v\n\treturn s\n}"
] | [
"s.ExpressionValue = &v\n\treturn s\n}",
"*Activity {\n\ts.TimeStamp = &v\n\treturn s\n}",
"[]*string) *GetCrawlerMetricsInput {\n\ts.CrawlerNameList = v\n\treturn s\n}",
"error) {\n\tvar v PerformanceSetTimeDomainParams\n\tv.TimeDomain = timeDomain\n\treturn c.SetTimeDomainWithParams(&v)\n}",
"s.ConfigRule... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *AutoScalingThresholds) SetLoadThreshold(v float64) *AutoScalingThresholds | [
"{\n\ts.LoadThreshold = &v\n\treturn s\n}"
] | [
"s.HighCount = &v\n\treturn s\n}",
"s.SyncThreshold = &v\n\treturn s\n}",
"s.DrcProfile = &v\n\treturn s\n}",
"s.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate = v\n\treturn s\n}",
"{\n\ts.SourceCode = v\n\treturn s\n}",
"s.ChannelConfiguration = &v\n\treturn s\n}",
"s.DrcLine = &v\n\tretu... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *AutoScalingThresholds) SetMemoryThreshold(v float64) *AutoScalingThresholds | [
"{\n\ts.MemoryThreshold = &v\n\treturn s\n}"
] | [
"s.DiskAllocationResource = &v\n\treturn s\n}",
"*AutoScalingSettingsUpdate {\n\ts.ScalingPolicyUpdate = v\n\treturn s\n}",
"s.VersionCode = &v\n\treturn s\n}",
"{\n\ts.SizeInGB = &v\n\treturn s\n}",
"g.Config.Linux.Resources.Memory.Limit = &limit\n}",
"s.ClusterStatus = &v\n\treturn s\n}",
"*Computer) ... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *AutoScalingThresholds) SetThresholdsWaitTime(v int64) *AutoScalingThresholds {
| [
"s.ThresholdsWaitTime = &v\n\treturn s\n}"
] | [
"s.AutoApprovalTime = &v\n\treturn s\n}",
"s.NitInterval = &v\n\treturn s\n}",
"[]*string) *DescribeAutoScalingNotificationTypesOutput {\n\ts.AutoScalingNotificationTypes = v\n\treturn s\n}",
"*SizeConstraintSet {\n\ts.SizeConstraints = v\n\treturn s\n}",
"*Action {\n\ts.CloudwatchAlarm = v\n\treturn s\n}",... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *BlockDeviceMapping) SetEbs(v *EbsBlockDevice) | [
"*BlockDeviceMapping {\n\ts.Ebs = v\n\treturn s\n}"
] | [
"*EC2TagSet {\n\ts.Ec2TagSetList = v\n\treturn s\n}",
"*DeviceDescription) *DescribeDeviceOutput {\n\ts.DeviceDescription = v\n\treturn s\n}",
"{\n\ts.Chain = &v\n\treturn s\n}",
"[]*ElasticIp) *DescribeElasticIpsOutput {\n\ts.ElasticIps = v\n\treturn s\n}",
"s.Company = &v\n\treturn s\n}",
"s.Reference =... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *ChefConfiguration) SetBerkshelfVersion(v string) *ChefConfiguration {
| [
"s.BerkshelfVersion = &v\n\treturn s\n}"
] | [
"s.HTTPVersion = &v\n\treturn s\n}",
"s.versionType = versionType\n\treturn s\n}",
"s.versionType = versionType\n\treturn s\n}",
"s.CcDescriptor = &v\n\treturn s\n}",
"*CodeContent {\n\ts.S3ContentLocation = v\n\treturn s\n}",
"s.DrcProfile = &v\n\treturn s\n}",
"{\n\ts.Get = v\n\treturn s\n}",
"{\n\t... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *ChefConfiguration) SetManageBerkshelf(v bool) *ChefConfiguration {
| [
"s.ManageBerkshelf = &v\n\treturn s\n}"
] | [
"{\n\ts.Chain = &v\n\treturn s\n}",
"s.CredentialProvider = &v\n\treturn s\n}",
"s.CodeBuildServiceRole = &v\n\treturn s\n}",
"*Cluster {\n\ts.RestoreStatus = v\n\treturn s\n}",
"s.KeyManager = &v\n\treturn s\n}",
"s.IsMaster = &v\n\treturn s\n}",
"*CodeContentUpdate {\n\ts.S3ContentLocationUpdate = v\n... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *CloneStackInput) SetCloneAppIds(v | [
"[]*string) *CloneStackInput {\n\ts.CloneAppIds = v\n\treturn s\n}"
] | [
"{\n\ts.AppSpecContent = v\n\treturn s\n}",
"{\n\ts.ClusterStates = v\n\treturn s\n}",
"s.AppIdClientRegex = &v\n\treturn s\n}",
"{\n\ts.LogicalResourceIds = v\n\treturn s\n}",
"{\n\ts.ClusterInfoList = v\n\treturn s\n}",
"{\n\ts.nodeId = make([]string, 0)\n\ts.nodeId = append(s.nodeId, nodeId...)\n\tretu... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *CloneStackInput) SetClonePermissions(v bool) *CloneStackInput {
| [
"s.ClonePermissions = &v\n\treturn s\n}"
] | [
"int64) *CreateReplicationGroupInput {\n\ts.NumCacheClusters = &v\n\treturn s\n}",
"*InputUpdate {\n\ts.InputParallelismUpdate = v\n\treturn s\n}",
"{\n\to.SetCidr(cidr)\n\treturn o\n}",
"*CodeContentUpdate) *ApplicationCodeConfigurationUpdate {\n\ts.CodeContentUpdate = v\n\treturn s\n}",
"s.IsCollection = ... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *CloneStackInput) SetSourceStackId(v string) *CloneStackInput {
| [
"s.SourceStackId = &v\n\treturn s\n}"
] | [
"s.CcDescriptor = &v\n\treturn s\n}",
"s.SearchedFaceId = &v\n\treturn s\n}",
"string) *RestoreDBInstanceToPointInTimeInput {\n\ts.SourceDbiResourceId = &v\n\treturn s\n}",
"{\n\ts.SourceEnvironmentName = &v\n\treturn s\n}",
"s.SourceOptionGroupIdentifier = &v\n\treturn s\n}",
"s.ServiceErrorId = &v\n\tre... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *CloudWatchLogsLogStream) SetBatchCount(v | [
"int64) *CloudWatchLogsLogStream {\n\ts.BatchCount = &v\n\treturn s\n}"
] | [
"s.ActiveGameSessionCount = &v\n\treturn s\n}",
"s.ConnectionRefusedCount = &v\n\treturn s\n}",
"a.batchSize = size\n\treturn a\n}",
"int64) *TerminologyProperties {\n\ts.TermCount = &v\n\treturn s\n}",
"s.RequestedInstanceCount = &v\n\treturn s\n}",
"*ChangeBatch) *ChangeResourceRecordSetsInput {\n\ts.Ch... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *CloudWatchLogsLogStream) SetBufferDuration(v int64) *CloudWatchLogsLogStream | [
"{\n\ts.BufferDuration = &v\n\treturn s\n}"
] | [
"s.TableMaxWriteCapacityUnits = &v\n\treturn s\n}",
"*HealthCheck {\n\ts.CloudWatchAlarmConfiguration = v\n\treturn s\n}",
"s.EmitInterval = &v\n\treturn s\n}",
"s.BytesPerSecond = &v\n\treturn s\n}",
"{\n\ts.DeleteStream = &v\n\treturn s\n}",
"*ScalingTrigger {\n\ts.CloudWatchAlarmDefinition = v\n\tretur... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *CloudWatchLogsLogStream) SetDatetimeFormat(v string) *CloudWatchLogsLogStream | [
"{\n\ts.DatetimeFormat = &v\n\treturn s\n}"
] | [
"*Captions {\n\ts.CaptionFormats = v\n\treturn s\n}",
"*Action {\n\ts.CloudwatchMetric = v\n\treturn s\n}",
"s.ProgramDateTimePeriod = &v\n\treturn s\n}",
"k.TimeFormat(time.RFC3339)\n}",
"s.TimeExpression = &v\n\treturn s\n}",
"s.AlbumArtFormat = &v\n\treturn s\n}",
"s.CloudWatchEncryptionMode = &v\n\t... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *CloudWatchLogsLogStream) SetFileFingerprintLines(v | [
"string) *CloudWatchLogsLogStream {\n\ts.FileFingerprintLines = &v\n\treturn s\n}"
] | [
"*CodeContentUpdate {\n\ts.S3ContentLocationUpdate = v\n\treturn s\n}",
"{\n\ts.EfsFilesystemArn = &v\n\treturn s\n}",
"*CodeContentDescription) *ApplicationCodeConfigurationDescription {\n\ts.CodeContentDescription = v\n\treturn s\n}",
"*CreateCommitInput {\n\ts.SetFileModes = v\n\treturn s\n}",
"*Describe... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *CloudWatchLogsLogStream) SetInitialPosition(v string) *CloudWatchLogsLogStream | [
"{\n\ts.InitialPosition = &v\n\treturn s\n}"
] | [
"*DeliveryChannelStatus {\n\ts.ConfigStreamDeliveryInfo = v\n\treturn s\n}",
"{\n\ts.DeliveryStreamStatus = &v\n\treturn s\n}",
"s.S3OutputLocation = &v\n\treturn s\n}",
"s.ConfigCred = &v\n\treturn s\n}",
"s.ReadWriteType = &v\n\treturn s\n}",
"s.InputFilter = &v\n\treturn s\n}",
"string) *UploadPartCo... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *CloudWatchLogsLogStream) SetMultiLineStartPattern(v | [
"string) *CloudWatchLogsLogStream {\n\ts.MultiLineStartPattern = &v\n\treturn s\n}"
] | [
"s.LogGroup = &v\n\treturn s\n}",
"string) *MetricFilterMatchRecord {\n\ts.EventMessage = &v\n\treturn s\n}",
"*CodeContentDescription) *ApplicationCodeConfigurationDescription {\n\ts.CodeContentDescription = v\n\treturn s\n}",
"string) *ListGeoLocationsInput {\n\ts.StartContinentCode = &v\n\treturn s\n}",
... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Command) SetAcknowledgedAt(v string) *Command {
| [
"s.AcknowledgedAt = &v\n\treturn s\n}"
] | [
"s.OnlyAttached = &v\n\treturn s\n}",
"s.CertificateCreationDate = &v\n\treturn s\n}",
"{\n\ts.ZoneAwarenessEnabled = &v\n\treturn s\n}",
"s.AddedDateTime = &v\n\treturn s\n}",
"{\n\ts.ResourceRecord = v\n\treturn s\n}",
"s.Verified = &v\n\treturn s\n}",
"*Job {\n\ts.Timing = v\n\treturn s\n}",
"s.Dat... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DeleteInstanceInput) SetDeleteElasticIp(v bool) *DeleteInstanceInput {
| [
"s.DeleteElasticIp = &v\n\treturn s\n}"
] | [
"*UpdateDestinationInput {\n\ts.ElasticsearchDestinationUpdate = v\n\treturn s\n}",
"{\n\ts.InstanceTarget = v\n\treturn s\n}",
"int32) *DeleteVMParams {\n\to.SetCid(cid)\n\treturn o\n}",
"s.ResourceAwsEc2InstanceIpV4Addresses = v\n\treturn s\n}",
"s.CcDescriptor = &v\n\treturn s\n}",
"*Instance) *GetInst... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DeleteInstanceInput) SetDeleteVolumes(v | [
"bool) *DeleteInstanceInput {\n\ts.DeleteVolumes = &v\n\treturn s\n}"
] | [
"*InstanceDetails {\n\ts.ESInstanceDetails = v\n\treturn s\n}",
"[]*DiskSnapshot) *GetDiskSnapshotsOutput {\n\ts.DiskSnapshots = v\n\treturn s\n}",
"[]*VPCEConfiguration) *ListVPCEConfigurationsOutput {\n\ts.VpceConfigurations = v\n\treturn s\n}",
"s.SchemaDeleteOption = &v\n\treturn s\n}",
"[]*string) *Lis... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeAgentVersionsOutput) SetAgentVersions(v | [
"[]*AgentVersion) *DescribeAgentVersionsOutput {\n\ts.AgentVersions = v\n\treturn s\n}"
] | [
"string) *ApplicationVersionDescription {\n\ts.ApplicationVersionArn = &v\n\treturn s\n}",
"*CodeContentDescription) *ApplicationCodeConfigurationDescription {\n\ts.CodeContentDescription = v\n\treturn s\n}",
"s.CcAddresses = v\n\treturn s\n}",
"s.ClusterCsr = &v\n\treturn s\n}",
"[]*NetworkProfile) *ListNe... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeCommandsInput) SetCommandIds(v | [
"[]*string) *DescribeCommandsInput {\n\ts.CommandIds = v\n\treturn s\n}"
] | [
"*ListPipelinesOutput {\n\ts.PipelineIdList = v\n\treturn s\n}",
"[]*string) *BatchDeleteImportDataInput {\n\ts.ImportTaskIds = v\n\treturn s\n}",
"[]*string) *DeleteFacesInput {\n\ts.FaceIds = v\n\treturn s\n}",
"[]*string) *CloneStackInput {\n\ts.CloneAppIds = v\n\treturn s\n}",
"[]*string) *DescribeWorks... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeEcsClustersInput) SetEcsClusterArns(v | [
"[]*string) *DescribeEcsClustersInput {\n\ts.EcsClusterArns = v\n\treturn s\n}"
] | [
"[]*string) *DescribeVTLDevicesInput {\n\ts.VTLDeviceARNs = v\n\treturn s\n}",
"[]*ClusterVersion) *DescribeClusterVersionsOutput {\n\ts.ClusterVersions = v\n\treturn s\n}",
"{\n\ts.Ec2InstanceIds = v\n\treturn s\n}",
"[]*string) *ListElasticsearchInstanceTypesOutput {\n\ts.ElasticsearchInstanceTypes = v\n\tr... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeEcsClustersOutput) SetEcsClusters(v | [
"[]*EcsCluster) *DescribeEcsClustersOutput {\n\ts.EcsClusters = v\n\treturn s\n}"
] | [
"[]*DBClusterParameterGroup) *DescribeDBClusterParameterGroupsOutput {\n\ts.DBClusterParameterGroups = v\n\treturn s\n}",
"s.Ec2KeyPair = &v\n\treturn s\n}",
"[]*ClientPropertiesResult) *DescribeClientPropertiesOutput {\n\ts.ClientPropertiesList = v\n\treturn s\n}",
"[]*RoomData) *SearchRoomsOutput {\n\ts.Roo... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeElasticIpsInput) SetIps(v | [
"[]*string) *DescribeElasticIpsInput {\n\ts.Ips = v\n\treturn s\n}"
] | [
"[]*string) *ListElasticsearchInstanceTypesOutput {\n\ts.ElasticsearchInstanceTypes = v\n\treturn s\n}",
"{\n\ts.EcsTarget = v\n\treturn s\n}",
"string) *Organization {\n\ts.Isp = &v\n\treturn s\n}",
"[]*string) *DescribeVolumesInput {\n\ts.VolumeIds = v\n\treturn s\n}",
"*ResourceRecordSet {\n\ts.ResourceR... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeElasticIpsOutput) SetElasticIps(v | [
"[]*ElasticIp) *DescribeElasticIpsOutput {\n\ts.ElasticIps = v\n\treturn s\n}"
] | [
"[]*Backup) *DescribeBackupsOutput {\n\ts.Backups = v\n\treturn s\n}",
"[]*Job) *ListBackupJobsOutput {\n\ts.BackupJobs = v\n\treturn s\n}",
"[]*SourceCredentialsInfo) *ListSourceCredentialsOutput {\n\ts.SourceCredentialsInfos = v\n\treturn s\n}",
"{\n\ts.Ec2InstanceIds = v\n\treturn s\n}",
"[]*VolumeInfo) ... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeElasticLoadBalancersOutput) SetElasticLoadBalancers(v | [
"[]*ElasticLoadBalancer) *DescribeElasticLoadBalancersOutput {\n\ts.ElasticLoadBalancers = v\n\treturn s\n}"
] | [
"[]*ReservedElasticsearchInstance) *DescribeReservedElasticsearchInstancesOutput {\n\ts.ReservedElasticsearchInstances = v\n\treturn s\n}",
"s.Networking = v\n\treturn s\n}",
"[]*VPCEConfiguration) *ListVPCEConfigurationsOutput {\n\ts.VpceConfigurations = v\n\treturn s\n}",
"[]*Sample) *ListSamplesOutput {\n\... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeLoadBasedAutoScalingOutput) SetLoadBasedAutoScalingConfigurations(v []*LoadBasedAutoScalingConfiguration) | [
"*DescribeLoadBasedAutoScalingOutput {\n\ts.LoadBasedAutoScalingConfigurations = v\n\treturn s\n}"
] | [
"[]*ConfigRuleEvaluationStatus) *DescribeConfigRuleEvaluationStatusOutput {\n\ts.ConfigRulesEvaluationStatus = v\n\treturn s\n}",
"[]*Connection) *GetConnectionsOutput {\n\ts.ConnectionList = v\n\treturn s\n}",
"*SizeConstraintSet {\n\ts.SizeConstraints = v\n\treturn s\n}",
"*ListEndpointConfigsOutput {\n\ts.... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeMyUserProfileOutput) SetUserProfile(v | [
"*SelfUserProfile) *DescribeMyUserProfileOutput {\n\ts.UserProfile = v\n\treturn s\n}"
] | [
"string) *RegisterUserInput {\n\ts.SessionName = &v\n\treturn s\n}",
"*CodeContent {\n\ts.S3ContentLocation = v\n\treturn s\n}",
"{\n\ts.ResourceRecord = v\n\treturn s\n}",
"string) *Organization {\n\ts.Org = &v\n\treturn s\n}",
"s.ContentUrl = &v\n\treturn s\n}",
"s.Mpeg2FourCCControl = &v\n\treturn s\n}... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeOperatingSystemsOutput) SetOperatingSystems(v | [
"[]*OperatingSystem) *DescribeOperatingSystemsOutput {\n\ts.OperatingSystems = v\n\treturn s\n}"
] | [
"[]*VoiceConnector) *ListVoiceConnectorsOutput {\n\ts.VoiceConnectors = v\n\treturn s\n}",
"[]*CacheEngineVersion) *DescribeCacheEngineVersionsOutput {\n\ts.CacheEngineVersions = v\n\treturn s\n}",
"[]*DirectoryDescription) *DescribeDirectoriesOutput {\n\ts.DirectoryDescriptions = v\n\treturn s\n}",
"s.Custom... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeRaidArraysInput) SetRaidArrayIds(v | [
"[]*string) *DescribeRaidArraysInput {\n\ts.RaidArrayIds = v\n\treturn s\n}"
] | [
"s.CustomerAwsId = &v\n\treturn s\n}",
"{\n\ts.IdentityIdsToDelete = v\n\treturn s\n}",
"[]*string) *BatchDeleteTableVersionInput {\n\ts.VersionIds = v\n\treturn s\n}",
"s.Reference = &v\n\treturn s\n}",
"[]*string) *DescribeMatchmakingInput {\n\ts.TicketIds = v\n\treturn s\n}",
"[]*string) *BatchDeletePh... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeRaidArraysOutput) SetRaidArrays(v | [
"[]*RaidArray) *DescribeRaidArraysOutput {\n\ts.RaidArrays = v\n\treturn s\n}"
] | [
"s.Claim = &v\n\treturn s\n}",
"{\n\ts.ResourceRecord = v\n\treturn s\n}",
"s.Registered = &v\n\treturn s\n}",
"[]*string) *ListRoleAliasesOutput {\n\ts.RoleAliases = v\n\treturn s\n}",
"s.RadiusServers = v\n\treturn s\n}",
"s.ToAddresses = v\n\treturn s\n}",
"s.NodeARN = &v\n\treturn s\n}",
"s.Callin... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeRdsDbInstancesInput) SetRdsDbInstanceArns(v | [
"[]*string) *DescribeRdsDbInstancesInput {\n\ts.RdsDbInstanceArns = v\n\treturn s\n}"
] | [
"[]*string) *RemoveIpRoutesInput {\n\ts.CidrIps = v\n\treturn s\n}",
"[]*ConfigRule) *DescribeConfigRulesOutput {\n\ts.ConfigRules = v\n\treturn s\n}",
"[]*ReplicationInstance) *DescribeReplicationInstancesOutput {\n\ts.ReplicationInstances = v\n\treturn s\n}",
"*RDSDataSpec) *CreateDataSourceFromRDSInput {\n... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeRdsDbInstancesOutput) SetRdsDbInstances(v | [
"[]*RdsDbInstance) *DescribeRdsDbInstancesOutput {\n\ts.RdsDbInstances = v\n\treturn s\n}"
] | [
"[]*OrderableReplicationInstance) *DescribeOrderableReplicationInstancesOutput {\n\ts.OrderableReplicationInstances = v\n\treturn s\n}",
"[]*VpcPeeringConnection) *DescribeVpcPeeringConnectionsOutput {\n\ts.VpcPeeringConnections = v\n\treturn s\n}",
"*StackInstance) *DescribeStackInstanceOutput {\n\ts.StackInst... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeServiceErrorsInput) SetServiceErrorIds(v | [
"[]*string) *DescribeServiceErrorsInput {\n\ts.ServiceErrorIds = v\n\treturn s\n}"
] | [
"[]*string) *NotifyWorkersInput {\n\ts.WorkerIds = v\n\treturn s\n}",
"[]*string) *DescribeSharedDirectoriesInput {\n\ts.SharedDirectoryIds = v\n\treturn s\n}",
"s.ErrorInformation = v\n\treturn s\n}",
"{\n\ts.ConnectionErrorCode = &v\n\treturn s\n}",
"[]*string) *DescribeScalingActivitiesInput {\n\ts.Activ... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeServiceErrorsOutput) SetServiceErrors(v | [
"[]*ServiceError) *DescribeServiceErrorsOutput {\n\ts.ServiceErrors = v\n\treturn s\n}"
] | [
"s.ProcessingResult = &v\n\treturn s\n}",
"[]*ResourceRecordSet) *ListResourceRecordSetsOutput {\n\ts.ResourceRecordSets = v\n\treturn s\n}",
"*CodeContentDescription {\n\ts.S3ApplicationCodeLocationDescription = v\n\treturn s\n}",
"[]*ContactData) *SearchContactsOutput {\n\ts.Contacts = v\n\treturn s\n}",
... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeStackProvisioningParametersOutput) SetAgentInstallerUrl(v | [
"string) *DescribeStackProvisioningParametersOutput {\n\ts.AgentInstallerUrl = &v\n\treturn s\n}"
] | [
"s.ConnectorArn = &v\n\treturn s\n}",
"s.ActiveAgents = &v\n\treturn s\n}",
"string) *ProvisionedProductAttribute {\n\ts.UserArnSession = &v\n\treturn s\n}",
"s.AgentHealths = v\n\treturn s\n}",
"s.DefaultConferenceProviderArn = &v\n\treturn s\n}",
"{\n\ts.ProviderAttributeValue = &v\n\treturn s\n}",
"s... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeStackSummaryOutput) SetStackSummary(v | [
"*StackSummary) *DescribeStackSummaryOutput {\n\ts.StackSummary = v\n\treturn s\n}"
] | [
"*Toolchain {\n\ts.StackParameters = v\n\treturn s\n}",
"s.SourceStackId = &v\n\treturn s\n}",
"[]*UserSummary) *ListUsersOutput {\n\ts.UserSummaryList = v\n\treturn s\n}",
"[]*CacheSubnetGroup) *DescribeCacheSubnetGroupsOutput {\n\ts.CacheSubnetGroups = v\n\treturn s\n}",
"s.ErrorStackTrace = &v\n\treturn ... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeStacksInput) SetStackIds(v | [
"[]*string) *DescribeStacksInput {\n\ts.StackIds = v\n\treturn s\n}"
] | [
"[]*string) *DescribeMatchmakingInput {\n\ts.TicketIds = v\n\treturn s\n}",
"[]*string) *AddInstanceGroupsOutput {\n\ts.InstanceGroupIds = v\n\treturn s\n}",
"s.ConstraintId = &v\n\treturn s\n}",
"*BatchDeleteClusterSnapshotsInput {\n\ts.Identifiers = v\n\treturn s\n}",
"[]*string) *StartAssociationsOnceInp... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeStacksOutput) SetStacks(v | [
"[]*Stack) *DescribeStacksOutput {\n\ts.Stacks = v\n\treturn s\n}"
] | [
"s.Networking = v\n\treturn s\n}",
"s.Products = v\n\treturn s\n}",
"s.ErrorStackTrace = &v\n\treturn s\n}",
"*ListVaultsOutput {\n\ts.VaultList = v\n\treturn s\n}",
"[]*CodeRepositorySummary) *ListCodeRepositoriesOutput {\n\ts.CodeRepositorySummaryList = v\n\treturn s\n}",
"*CodeDestination {\n\ts.CodeCo... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeTimeBasedAutoScalingOutput) SetTimeBasedAutoScalingConfigurations(v []*TimeBasedAutoScalingConfiguration) | [
"*DescribeTimeBasedAutoScalingOutput {\n\ts.TimeBasedAutoScalingConfigurations = v\n\treturn s\n}"
] | [
"*CodeContentUpdate) *ApplicationCodeConfigurationUpdate {\n\ts.CodeContentUpdate = v\n\treturn s\n}",
"[]*ScalingPlanResource) *DescribeScalingPlanResourcesOutput {\n\ts.ScalingPlanResources = v\n\treturn s\n}",
"[]*SourceRegion) *DescribeSourceRegionsOutput {\n\ts.SourceRegions = v\n\treturn s\n}",
"[]*Proc... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeUserProfilesInput) SetIamUserArns(v | [
"[]*string) *DescribeUserProfilesInput {\n\ts.IamUserArns = v\n\treturn s\n}"
] | [
"string) *DescribeCollectionOutput {\n\ts.CollectionARN = &v\n\treturn s\n}",
"s.ServerArn = &v\n\treturn s\n}",
"[]*ContactData) *SearchContactsOutput {\n\ts.Contacts = v\n\treturn s\n}",
"s.NotificationArn = &v\n\treturn s\n}",
"s.BranchArn = &v\n\treturn s\n}",
"s.Cidrs = v\n\treturn s\n}",
"*ListUse... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *DescribeVolumesInput) SetVolumeIds(v | [
"[]*string) *DescribeVolumesInput {\n\ts.VolumeIds = v\n\treturn s\n}"
] | [
"[]*string) *GetLifecyclePoliciesInput {\n\ts.PolicyIds = v\n\treturn s\n}",
"{\n\ts.NeighborConfigurationIds = v\n\treturn s\n}",
"[]*string) *DeleteFacesInput {\n\ts.FaceIds = v\n\treturn s\n}",
"[]*string) *BatchStopJobRunInput {\n\ts.JobRunIds = v\n\treturn s\n}",
"[]*string) *BatchDeletePhoneNumberInpu... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *EcsCluster) SetEcsClusterName(v string) *EcsCluster {
| [
"s.EcsClusterName = &v\n\treturn s\n}"
] | [
"s.IdentityName = &v\n\treturn s\n}",
"{\n\ts.ResourceAwsEc2InstanceKeyName = v\n\treturn s\n}",
"string) *GeoLocationDetails {\n\ts.ContinentName = &v\n\treturn s\n}",
"s.NewGlobalClusterIdentifier = &v\n\treturn s\n}",
"string) *GetClusterCredentialsInput {\n\ts.DbName = &v\n\treturn s\n}",
"s.AccountQu... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *ElasticLoadBalancer) SetEc2InstanceIds(v []*string) *ElasticLoadBalancer | [
"{\n\ts.Ec2InstanceIds = v\n\treturn s\n}"
] | [
"[]*string) *DescribeVolumesInput {\n\ts.VolumeIds = v\n\treturn s\n}",
"[]*string) *ListContainerInstancesOutput {\n\ts.ContainerInstanceArns = v\n\treturn s\n}",
"[]*string) *DescribeStacksInput {\n\ts.StackIds = v\n\treturn s\n}",
"[]*string) *ListCollectionsOutput {\n\ts.CollectionIds = v\n\treturn s\n}",... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *EnvironmentVariable) SetSecure(v | [
"bool) *EnvironmentVariable {\n\ts.Secure = &v\n\treturn s\n}"
] | [
"string) *ServiceSpecificCredential {\n\ts.ServicePassword = &v\n\treturn s\n}",
"s.ClusterCertificate = &v\n\treturn s\n}",
"}\n\n\treturn json.Marshal(&unencryptedEnvironmentVariable{\n\t\tName: v.Name,\n\t\tSecure: v.Secure,\n\t\tValue: v.Value,\n\t})\n}",
"*connection) { sasl(c).SetAllowInsecureMechs(b... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *GrantAccessOutput) SetTemporaryCredential(v *TemporaryCredential) | [
"*GrantAccessOutput {\n\ts.TemporaryCredential = v\n\treturn s\n}"
] | [
"ch.setCredential(name, \"value\", value, &cred)\n\n\treturn cred, err\n}",
"s.TemporalAq = &v\n\treturn s\n}",
"string) *ServiceSpecificCredential {\n\ts.ServicePassword = &v\n\treturn s\n}",
"string) *GetCredentialReportOutput {\n\ts.ReportFormat = &v\n\treturn s\n}",
"*CodeContentUpdate) *ApplicationCode... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Instance) SetEcsContainerInstanceArn(v string) *Instance {
| [
"s.EcsContainerInstanceArn = &v\n\treturn s\n}"
] | [
"s.KeyArn = &v\n\treturn s\n}",
"s.Ec2KeyPair = &v\n\treturn s\n}",
"{\n\ts.CollectionArn = &v\n\treturn s\n}",
"{\n\ts.ResourceAwsEc2InstanceSubnetId = v\n\treturn s\n}",
"*InstanceDetails {\n\ts.ProductCodes = v\n\treturn s\n}",
"{\n\ts.NetworkProfileArn = &v\n\treturn s\n}",
"s.SubnetArn = &v\n\tretu... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Instance) SetInfrastructureClass(v string) *Instance {
| [
"s.InfrastructureClass = &v\n\treturn s\n}"
] | [
"*ClassifierMetadata) *DocumentClassifierProperties {\n\ts.ClassifierMetadata = v\n\treturn s\n}",
"*InstanceDetails {\n\ts.EC2InstanceDetails = v\n\treturn s\n}",
"s.ResourceAwsEc2InstanceIamInstanceProfileArn = v\n\treturn s\n}",
"*ApplicationConfigurationDescription {\n\ts.ApplicationCodeConfigurationDescr... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Instance) SetLastServiceErrorId(v string) *Instance {
| [
"s.LastServiceErrorId = &v\n\treturn s\n}"
] | [
"s.ErrorStackTrace = &v\n\treturn s\n}",
"s.CustomerAwsId = &v\n\treturn s\n}",
"{\n\ts.ServerCertificateId = &v\n\treturn s\n}",
"s.InstanceClass = &v\n\treturn s\n}",
"instance string) {\n\tif err := m.SetInstance(val, instance); err != nil {\n\t\tpanic(err)\n\t}\n}",
"{\n\ts.EventIdMode = &v\n\treturn ... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Instance) SetPrivateDns(v string) *Instance {
| [
"s.PrivateDns = &v\n\treturn s\n}"
] | [
"*ResourceDetails {\n\ts.AwsEc2Instance = v\n\treturn s\n}",
"s.PrivateRepository = &v\n\treturn s\n}",
"string) *ESInstanceDetails {\n\ts.InstanceSize = &v\n\treturn s\n}",
"s.DbClusterOrInstanceArn = &v\n\treturn s\n}",
"s.CustomDomains = v\n\treturn s\n}",
"{\n\ts.FQDN = &v\n\treturn s\n}",
"s.Instan... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Instance) SetPublicDns(v string) *Instance {
| [
"s.PublicDns = &v\n\treturn s\n}"
] | [
"string) *ESInstanceDetails {\n\ts.InstanceSize = &v\n\treturn s\n}",
"s.ClientSubnet = &v\n\treturn s\n}",
"s.DrcRf = &v\n\treturn s\n}",
"}\n\ts.selfInstance.Placement.AvailabilityZone = aws.String(az)\n\treturn s\n}",
"*InstanceInfo) *GetOnPremisesInstanceOutput {\n\ts.InstanceInfo = v\n\treturn s\n}",
... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Instance) SetRegisteredBy(v string) *Instance {
| [
"s.RegisteredBy = &v\n\treturn s\n}"
] | [
"s.SearchedCompletely = &v\n\treturn s\n}",
"s.Verified = &v\n\treturn s\n}",
"{\n\ts.InstanceTarget = v\n\treturn s\n}",
"*ProjectEnvironment {\n\ts.RegistryCredential = v\n\treturn s\n}",
"s.ReportedName = &v\n\treturn s\n}",
"s.CertificateOwner = &v\n\treturn s\n}",
"{\n\ts.WhoIsServer = &v\n\treturn... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Instance) SetReportedAgentVersion(v string) *Instance {
| [
"s.ReportedAgentVersion = &v\n\treturn s\n}"
] | [
"string) *ServiceSoftwareOptions {\n\ts.NewVersion = &v\n\treturn s\n}",
"s.ClientSdkVersion = &v\n\treturn s\n}",
"*ApplicationResourceLifecycleConfig {\n\ts.VersionLifecycleConfig = v\n\treturn s\n}",
"s.InstanceRequestCount = &v\n\treturn s\n}",
"string) *CreateSoftwareUpdateJobInput {\n\ts.UpdateAgentLo... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Instance) SetReportedOs(v *ReportedOs) | [
"*Instance {\n\ts.ReportedOs = v\n\treturn s\n}"
] | [
"{\n\to.SetCidr(cidr)\n\treturn o\n}",
"{\n\ts.Crawler = v\n\treturn s\n}",
"s.ApplicationConfigurationDescription = v\n\treturn s\n}",
"*Computer) *CreateComputerOutput {\n\ts.Computer = v\n\treturn s\n}",
"s.ClientVersion = &v\n\treturn s\n}",
"s.ReferencedByResources = v\n\treturn s\n}",
"s.Supported... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Instance) SetRootDeviceVolumeId(v string) *Instance {
| [
"s.RootDeviceVolumeId = &v\n\treturn s\n}"
] | [
"s.DrcRf = &v\n\treturn s\n}",
"s.InstanceProfileId = &v\n\treturn s\n}",
"{\n\ts.ErrorId = &v\n\treturn s\n}",
"s.ResourceIdList = v\n\treturn s\n}",
"return ga.cinderClient.SetVolumeMetadata(volumeId, metadata)\n}",
"*ResourceDataContainer {\n\ts.LocalDeviceResourceData = v\n\treturn s\n}",
"string) *... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Instance) SetSshHostDsaKeyFingerprint(v string) *Instance {
| [
"s.SshHostDsaKeyFingerprint = &v\n\treturn s\n}"
] | [
"{\n\ts.ResourceAwsEc2InstanceVpcId = v\n\treturn s\n}",
"s.AwsHardwareCertificate = &v\n\treturn s\n}",
"s.ClusterCertificate = &v\n\treturn s\n}",
"s.PublicDns = &v\n\treturn s\n}",
"{\n\ts.RsaPublicKey = &v\n\treturn s\n}",
"s.Identifer = &v\n\treturn s\n}",
"{\n\ts.KeyProviderServer = v\n\treturn s\... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |
CodeSearchNet-ccr_go_func (s *Instance) SetSshHostRsaKeyFingerprint(v string) *Instance {
| [
"s.SshHostRsaKeyFingerprint = &v\n\treturn s\n}"
] | [
"s.InstanceLabel = &v\n\treturn s\n}",
"*InstanceDetails {\n\ts.RDSInstanceDetails = v\n\treturn s\n}",
"s.CertificateOwner = &v\n\treturn s\n}",
"{\n\to.SetCidr(cidr)\n\treturn o\n}",
"*HsmClientCertificate) *CreateHsmClientCertificateOutput {\n\ts.HsmClientCertificate = v\n\treturn s\n}",
"string) *Clou... | Given a code comment, retrieve the code snippet corresponding to that comment. | normal |