id stringlengths 2 7 | text stringlengths 17 51.2k | title stringclasses 1 value |
|---|---|---|
c0 | nil {
return 0, err
}
b[i-1] = c
b = append(b[:i], b[i+1:]...)
i--*/
continue
}
}
if !endQuote {
return 0, NewParseError("missing '\"' in string value")
}
return i + 1, nil
} | |
c1 |
if isLitValue(lv, b) {
n = len(lv)
}
}
if n == 0 {
return 0, NewParseError("invalid boolean value")
}
return n, nil
} | |
c2 | return 0, 0, err
}
negativeIndex = 0
case 'b':
if helper.numberFormat == hex {
break
}
fallthrough
case 'o', 'x':
if i == 0 && b[i] != '0' {
return 0, 0, NewParseError("incorrect base format, expected leading '0'")
}
if i != 1 {
return 0, 0, NewParseError(fmt.Sprintf("incorrect base format found %s at %d index", string(b[i]), i))
}
if err := helper.Determine(b[i]); err != nil {
return 0, 0, err
}
default:
if isWhitespace(b[i]) {
break loop
}
if isNewline(b[i:]) {
break loop
}
if !(helper.numberFormat == hex && isHexByte(b[i])) {
if i+2 < len(b) && !isNewline(b[i:i+2]) {
return 0, 0, NewParseError("invalid numerical character")
} else if !isNewline([]rune{b[i]}) {
return 0, 0, NewParseError("invalid numerical character")
}
break loop
}
}
}
}
return helper.Base(), i, nil
} | |
c3 | if !isDigit(b[i]) {
return i
}
}
return i
} | |
c4 | case '\\': // backslash
default:
return false
}
return value[len(value)-1] == '\\'
} | |
c5 | Sections{}, awserr.New(ErrCodeUnableToReadFile, "unable to open file", err)
}
defer f.Close()
return Parse(f)
} | |
c6 |
if err = Walk(tree, v); err != nil {
return Sections{}, err
}
return v.Sections, nil
} | |
c7 |
if err = Walk(tree, v); err != nil {
return Sections{}, err
}
return v.Sections, nil
} | |
c8 | b.GoType(ref, true),
b.BuildShape(ref, c.Input, false),
)
} | |
c9 | s.MessageVersion = &v
return s
} | |
c10 | {
s.Prompt = v
return s
} | |
c11 | *CodeHook) *FulfillmentActivity {
s.CodeHook = v
return s
} | |
c12 | *GetBotAliasesOutput {
s.BotAliases = v
return s
} | |
c13 | []*BotChannelAssociation) *GetBotChannelAssociationsOutput {
s.BotChannelAssociations = v
return s
} | |
c14 | s.VersionOrAlias = &v
return s
} | |
c15 | []*string) *GetUtterancesViewInput {
s.BotVersions = v
return s
} | |
c16 | s.IntentVersion = &v
return s
} | |
c17 | s.GroupNumber = &v
return s
} | |
c18 | s.ProcessBehavior = &v
return s
} | |
c19 | s.SlotConstraint = &v
return s
} | |
c20 | *Slot {
s.SlotType = &v
return s
} | |
c21 | s.SlotTypeVersion = &v
return s
} | |
c22 | s.ValueElicitationPrompt = v
return s
} | |
c23 | s.DistinctUsers = &v
return s
} | |
c24 | s.FirstUtteredDate = &v
return s
} | |
c25 | s.LastUtteredDate = &v
return s
} | |
c26 | s.UtteranceString = &v
return s
} | |
c27 | return nil, awserr.New("MissingCMKIDError", "Material description is missing CMK ID", nil)
}
kp.CipherData.MaterialDescription = m
kp.cmkID = cmkID
kp.WrapAlgorithm = KMSWrap
return &kp, nil
} | |
c28 | GrantTokens: []*string{},
})
if err != nil {
return nil, err
}
return out.Plaintext, nil
} | |
c29 | Key: out.Plaintext,
IV: iv,
WrapAlgorithm: KMSWrap,
MaterialDescription: kp.CipherData.MaterialDescription,
EncryptedKey: out.CiphertextBlob,
}
return cd, nil
} | |
c30 | error) {
reader := cc.Cipher.Decrypt(src)
return &CryptoReadCloser{Body: src, Decrypter: reader}, nil
} | |
c31 | {
s.UpdateId = &v
return s
} | |
c32 | {
s.UpdateIds = v
return s
} | |
c33 | *Logging {
s.ClusterLogging = v
return s
} | |
c34 | *Update {
s.Params = v
return s
} | |
c35 | return v.IsSeeker()
case io.ReadSeeker:
return true
default:
return false
}
} | |
c36 | io.Reader:
return t.Read(p)
}
return 0, nil
} | |
c37 | ok := r.r.(io.Seeker)
return ok
} | |
c38 | a io.Readers might not actually be seekable.
switch v := s.(type) {
case ReaderSeekerCloser:
return v.GetLen()
case *ReaderSeekerCloser:
return v.GetLen()
}
return seekerLen(s)
} | |
c39 |
case io.Closer:
return t.Close()
}
return nil
} | |
c40 | if int64(cap(b.buf)) < expLen {
if b.GrowthCoeff < 1 {
b.GrowthCoeff = 1
}
newBuf := make([]byte, expLen, int64(b.GrowthCoeff*float64(expLen)))
copy(newBuf, b.buf)
b.buf = newBuf
}
b.buf = b.buf[:expLen]
}
copy(b.buf[pos:], p)
return pLen, nil
} | |
c41 | defer b.m.Unlock()
return b.buf
} | |
c42 | {
s.CpuThreshold = &v
return s
} | |
c43 | int64) *AutoScalingThresholds {
s.IgnoreMetricsTime = &v
return s
} | |
c44 | {
s.LoadThreshold = &v
return s
} | |
c45 | {
s.MemoryThreshold = &v
return s
} | |
c46 | s.ThresholdsWaitTime = &v
return s
} | |
c47 | *BlockDeviceMapping {
s.Ebs = v
return s
} | |
c48 | s.BerkshelfVersion = &v
return s
} | |
c49 | s.ManageBerkshelf = &v
return s
} | |
c50 | []*string) *CloneStackInput {
s.CloneAppIds = v
return s
} | |
c51 | s.ClonePermissions = &v
return s
} | |
c52 | s.SourceStackId = &v
return s
} | |
c53 | int64) *CloudWatchLogsLogStream {
s.BatchCount = &v
return s
} | |
c54 | {
s.BufferDuration = &v
return s
} | |
c55 | {
s.DatetimeFormat = &v
return s
} | |
c56 | string) *CloudWatchLogsLogStream {
s.FileFingerprintLines = &v
return s
} | |
c57 | {
s.InitialPosition = &v
return s
} | |
c58 | string) *CloudWatchLogsLogStream {
s.MultiLineStartPattern = &v
return s
} | |
c59 | s.AcknowledgedAt = &v
return s
} | |
c60 | s.DeleteElasticIp = &v
return s
} | |
c61 | bool) *DeleteInstanceInput {
s.DeleteVolumes = &v
return s
} | |
c62 | []*AgentVersion) *DescribeAgentVersionsOutput {
s.AgentVersions = v
return s
} | |
c63 | []*string) *DescribeCommandsInput {
s.CommandIds = v
return s
} | |
c64 | []*string) *DescribeEcsClustersInput {
s.EcsClusterArns = v
return s
} | |
c65 | []*EcsCluster) *DescribeEcsClustersOutput {
s.EcsClusters = v
return s
} | |
c66 | []*string) *DescribeElasticIpsInput {
s.Ips = v
return s
} | |
c67 | []*ElasticIp) *DescribeElasticIpsOutput {
s.ElasticIps = v
return s
} | |
c68 | []*ElasticLoadBalancer) *DescribeElasticLoadBalancersOutput {
s.ElasticLoadBalancers = v
return s
} | |
c69 | *DescribeLoadBasedAutoScalingOutput {
s.LoadBasedAutoScalingConfigurations = v
return s
} | |
c70 | *SelfUserProfile) *DescribeMyUserProfileOutput {
s.UserProfile = v
return s
} | |
c71 | []*OperatingSystem) *DescribeOperatingSystemsOutput {
s.OperatingSystems = v
return s
} | |
c72 | []*string) *DescribeRaidArraysInput {
s.RaidArrayIds = v
return s
} | |
c73 | []*RaidArray) *DescribeRaidArraysOutput {
s.RaidArrays = v
return s
} | |
c74 | []*string) *DescribeRdsDbInstancesInput {
s.RdsDbInstanceArns = v
return s
} | |
c75 | []*RdsDbInstance) *DescribeRdsDbInstancesOutput {
s.RdsDbInstances = v
return s
} | |
c76 | []*string) *DescribeServiceErrorsInput {
s.ServiceErrorIds = v
return s
} | |
c77 | []*ServiceError) *DescribeServiceErrorsOutput {
s.ServiceErrors = v
return s
} | |
c78 | string) *DescribeStackProvisioningParametersOutput {
s.AgentInstallerUrl = &v
return s
} | |
c79 | *StackSummary) *DescribeStackSummaryOutput {
s.StackSummary = v
return s
} | |
c80 | []*string) *DescribeStacksInput {
s.StackIds = v
return s
} | |
c81 | []*Stack) *DescribeStacksOutput {
s.Stacks = v
return s
} | |
c82 | *DescribeTimeBasedAutoScalingOutput {
s.TimeBasedAutoScalingConfigurations = v
return s
} | |
c83 | []*string) *DescribeUserProfilesInput {
s.IamUserArns = v
return s
} | |
c84 | []*string) *DescribeVolumesInput {
s.VolumeIds = v
return s
} | |
c85 | s.EcsClusterName = &v
return s
} | |
c86 | {
s.Ec2InstanceIds = v
return s
} | |
c87 | bool) *EnvironmentVariable {
s.Secure = &v
return s
} | |
c88 | *GrantAccessOutput {
s.TemporaryCredential = v
return s
} | |
c89 | s.EcsContainerInstanceArn = &v
return s
} | |
c90 | s.InfrastructureClass = &v
return s
} | |
c91 | s.LastServiceErrorId = &v
return s
} | |
c92 | s.PrivateDns = &v
return s
} | |
c93 | s.PublicDns = &v
return s
} | |
c94 | s.RegisteredBy = &v
return s
} | |
c95 | s.ReportedAgentVersion = &v
return s
} | |
c96 | *Instance {
s.ReportedOs = v
return s
} | |
c97 | s.RootDeviceVolumeId = &v
return s
} | |
c98 | s.SshHostDsaKeyFingerprint = &v
return s
} | |
c99 | s.SshHostRsaKeyFingerprint = &v
return s
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.