text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (n *Numbers) ValidateText() (err error) {
if len(n.TextNumbers) != 3 {
err = fmt.Errorf("No manches, no voy a poder interpretar los numeros, detecté %d lineas\n%s", len(n.TextNumbers), n.ToString())
} else if len(n.TextNumbers[0]) != len(n.TextNumbers[1]) || len(n.TextNumbers[0]) != len(n.TextNumbers[2]) {... | [
-0.04471559450030327,
0.4998316764831543,
0.6990258097648621,
-0.2156510353088379,
0.21096618473529816,
0.3698916435241699,
-0.9721312522888184,
-0.09348989278078079,
0.21696513891220093,
-0.1933571994304657,
0.07462899386882782,
-0.520351767539978,
-0.35324981808662415,
0.8964976668357849... |
func ReadConfig(file string) (*Setting, error) {
configFile, err := os.Open(file)
config, err := ioutil.ReadAll(configFile)
if err != nil {
return nil, err
}
configFile.Close()
setting := &Setting{}
if err := json.Unmarshal(config, setting); err != nil {
return nil, err
}
return setting, err
} | [
-0.6972845792770386,
-0.0020245839841663837,
0.6746330261230469,
-0.3902294635772705,
-0.6994816064834595,
0.1313372701406479,
0.0015170505503192544,
0.22259701788425446,
-1.4579824209213257,
1.3631300926208496,
-0.25269439816474915,
-0.24316717684268951,
-0.034276608377695084,
0.151912942... |
func (s *OutputStream) WriteWithTimestamp(timestamp time.Time, data []byte) error {
s.mux.RLock()
defer s.mux.RUnlock()
if s.closed {
return nil
}
select {
case <-s.ctx.Done():
s.sendError(timestamp, s.ctx.Err())
s.sentCtxErr = true
return s.ctx.Err()
default:
s.sendData(timestamp, string(data))
re... | [
-0.2394958883523941,
-0.49540388584136963,
0.6937767863273621,
0.2211017608642578,
-0.18210500478744507,
-0.6930336356163025,
-0.17802420258522034,
-1.3101710081100464,
0.8006538152694702,
-0.27153280377388,
-0.5742448568344116,
-0.294735312461853,
-0.10635239630937576,
0.08979681879281998... |
func SendMoneyAccounts(cfg *tool.Config, rpc *tool.RpcClient) {
csvContent := tool.ReadCsv(cfg.AddressFile, 0, 999)
csvContent1 := make([][]string, 0)
keys := make([]int, 0)
for k := range csvContent {
keys = append(keys, k)
}
sort.Ints(keys)
for _, index := range keys {
pk := csvContent[index][0]
fromAdd... | [
-0.03755597025156021,
0.09571798890829086,
0.7122538089752197,
-0.17929446697235107,
-0.46457791328430176,
-0.5211220383644104,
0.7401254773139954,
0.22164811193943024,
0.20303381979465485,
0.5957621932029724,
-0.6522909998893738,
-0.02405473031103611,
-0.5900976061820984,
-0.3634940385818... |
func CreateTransform(lowerLeft, upperRight *Point, width, height int,
gd *GridDef) *PointTransform {
worldNx := math.Abs(lowerLeft.X() - upperRight.X())
worldNy := math.Abs(lowerLeft.Y() - upperRight.Y())
dx := worldNx / float64(width)
dy := worldNy / float64(height)
maxx := math.Max(lowerLeft.X(), upperRight.X()... | [
0.32273176312446594,
-0.40154311060905457,
0.5479146242141724,
-0.3618609309196472,
-0.30904898047447205,
-0.47048062086105347,
-1.0387942790985107,
-1.0305944681167603,
-0.07440853118896484,
-0.2848806381225586,
-0.3921619951725006,
-0.4658917188644409,
-0.1498035341501236,
-0.16420327126... |
func (pt *PointTransform) Transform(p *Point) *image.Point {
return pt.TransformXY(p.X(), p.Y())
} | [
-0.6720474362373352,
-0.000181916358997114,
0.15861183404922485,
-0.2841222286224365,
-0.16931873559951782,
0.34604695439338684,
-0.27676570415496826,
-0.01885348930954933,
0.3530953824520111,
-0.5098826289176941,
-0.5452050566673279,
0.07228159159421921,
-0.13201457262039185,
-0.527734398... |
func (pt *PointTransform) TransformCoord(c []float64) *image.Point {
return pt.TransformXY(c[0], c[1])
} | [
0.16509661078453064,
-0.3310825526714325,
0.31440284848213196,
-0.2591734826564789,
0.08516663312911987,
0.04078133404254913,
-0.35380926728248596,
-0.2167631834745407,
-0.1894405037164688,
-0.3607366383075714,
-0.9225292205810547,
0.14790275692939758,
-0.08313460648059845,
0.2697834074497... |
func (pt *PointTransform) TransformXY(x, y float64) *image.Point {
rawX := (pt.Max.X() - x) / pt.Dx
if pt.gd.xIncreasesRight {
rawX = float64(pt.Width) - rawX
}
xpix := int(math.Floor(rawX))
rawY := (pt.Max.Y() - y) / pt.Dy
if !pt.gd.yIncreasesUp {
rawY = float64(pt.Height) - rawY
}
ypix := int(math.Floor(r... | [
-0.645054042339325,
0.6910491585731506,
0.7592310309410095,
-0.6635465621948242,
-0.669583261013031,
-0.6170462965965271,
-0.6601175665855408,
-0.6298675537109375,
0.16731031239032745,
-0.5671054124832153,
-0.20553283393383026,
0.10645890235900879,
0.16918061673641205,
-0.26917383074760437... |
func (pt *PointTransform) Reverse(p *image.Point) *Point {
tmpX := float64(p.X)
if pt.gd.xIncreasesRight {
tmpX += float64(pt.Width)
}
tmpX *= pt.Dx
tmpX -= pt.Max.X()
tmpX = -tmpX
tmpY := float64(p.Y)
if !pt.gd.yIncreasesUp {
tmpY += float64(pt.Height)
}
tmpY *= pt.Dy
tmpY -= pt.Max.Y()
tmpY = -tmpY
... | [
-0.7095751166343689,
0.35780099034309387,
0.7985355257987976,
-0.400300532579422,
-0.39464321732521057,
0.11368277668952942,
-0.44512939453125,
0.4072270095348358,
-0.4249245822429657,
-0.4345157742500305,
-0.2126545011997223,
-0.24655215442180634,
-0.0684547871351242,
-0.967187225818634,
... |
func (c *Client) ListAvailabilityConfigurations(ctx context.Context, params *ListAvailabilityConfigurationsInput, optFns ...func(*Options)) (*ListAvailabilityConfigurationsOutput, error) {
if params == nil {
params = &ListAvailabilityConfigurationsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListAva... | [
-1.4601142406463623,
0.09345942735671997,
0.808526873588562,
0.9128386378288269,
0.1108269989490509,
-0.27755051851272583,
0.419778048992157,
-0.05012185871601105,
0.9498504400253296,
0.7720669507980347,
-0.8899403810501099,
0.32396170496940613,
0.08496648073196411,
0.060025669634342194,
... |
func NewListAvailabilityConfigurationsPaginator(client ListAvailabilityConfigurationsAPIClient, params *ListAvailabilityConfigurationsInput, optFns ...func(*ListAvailabilityConfigurationsPaginatorOptions)) *ListAvailabilityConfigurationsPaginator {
if params == nil {
params = &ListAvailabilityConfigurationsInput{}
... | [
-1.249999761581421,
-0.4330286383628845,
0.5786845088005066,
-0.4958559274673462,
-0.963973343372345,
-0.2640650272369385,
0.36928582191467285,
0.7707642316818237,
0.7426720857620239,
0.3086455166339874,
-0.09164679050445557,
-0.9463174343109131,
0.3519728183746338,
0.9074159264564514,
0... |
func (p *ListAvailabilityConfigurationsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
} | [
-0.13990651071071625,
-0.2631336748600006,
0.2885546386241913,
-0.7765420079231262,
0.5224118828773499,
-0.9551022052764893,
-1.5141568183898926,
0.3116455674171448,
0.6288115382194519,
-0.22418901324272156,
-0.43435579538345337,
-1.0640454292297363,
0.07919289916753769,
1.5722131729125977... |
func (p *ListAvailabilityConfigurationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAvailabilityConfigurationsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options... | [
-0.8888171911239624,
0.15006333589553833,
0.6512743234634399,
-0.15333041548728943,
-0.03040153905749321,
-0.25959041714668274,
0.20776939392089844,
0.005061466246843338,
0.38184455037117004,
0.22612722218036652,
0.6878291964530945,
-0.43593427538871765,
-0.5673440098762512,
0.243205398321... |
func (mis *MsgIdStor) Present(msgid string) bool {
_, ex := mis.buff[msgid]
return ex
} | [
-0.13676707446575165,
0.05375712364912033,
0.20931179821491241,
-1.5104502439498901,
-0.2456115037202835,
-0.1906428039073944,
0.08384228497743607,
-0.4823008179664612,
0.37670716643333435,
-0.3967047929763794,
0.31181150674819946,
-0.6286622285842896,
-0.875092089176178,
0.563093185424804... |
func (mis *MsgIdStor) Discard(msgid string) bool {
ret := mis.Present(msgid)
mis.Pop(msgid)
return ret
} | [
0.23369081318378448,
0.18314848840236664,
0.2759021520614624,
-1.2147942781448364,
-0.8822904229164124,
0.03814935311675072,
-0.31171897053718567,
-0.19657951593399048,
0.47618037462234497,
0.20387102663516998,
0.14171633124351501,
0.2745770514011383,
-1.0778056383132935,
1.085224747657775... |
func (s *Executor) prepare(tx *model.LaunchTransaction) error {
if tx.Nonce == nil {
return errors.New("missing nonce")
}
limit := conf.Conf.GasLimit
tx.GasLimit = &limit
price := s.gasMonitor.GasPriceGwei().BigInt().Uint64()
tx.GasPrice = &price
return nil
} | [
0.524486243724823,
0.5853554010391235,
0.4555072784423828,
0.7192725539207458,
-0.28287792205810547,
-0.669306218624115,
-0.8622329235076904,
0.22128862142562866,
-0.2766907215118408,
-0.016742950305342674,
-0.47909101843833923,
-0.29869210720062256,
0.3103238046169281,
0.5543710589408875,... |
func WriteAppArmorProfile(out io.Writer, specifiedDeclarations []string, declarationsDirectory string) error {
Declarations, err := readDeclarationFiles(specifiedDeclarations, declarationsDirectory)
if err != nil {
return err
}
_, apparmorProfile, err := createProfiles(Declarations)
if err != nil {
return err... | [
0.5250262022018433,
0.028715696185827255,
0.5679948329925537,
0.1738569140434265,
0.38549596071243286,
0.3942231237888336,
0.4352726936340332,
0.3545445203781128,
-0.20566527545452118,
-0.24717067182064056,
-0.303658127784729,
-0.1976650208234787,
0.1753135323524475,
0.8628591299057007,
... |
func (m *PoliciesRequestBuilder) ActivityBasedTimeoutPolicies()(*ActivityBasedTimeoutPoliciesRequestBuilder) {
return NewActivityBasedTimeoutPoliciesRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
-0.7372450232505798,
-0.48778533935546875,
0.21610847115516663,
-0.2822798192501068,
-0.08896945416927338,
1.1275116205215454,
0.12963898479938507,
-0.6709334254264832,
0.46596986055374146,
0.062396325170993805,
0.734322190284729,
-0.0762619748711586,
-0.6757822036743164,
-0.49747371673583... |
func (m *PoliciesRequestBuilder) ActivityBasedTimeoutPoliciesById(id string)(*ActivityBasedTimeoutPoliciesActivityBasedTimeoutPolicyItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.pathParameters {
urlTplParams[idx] = item
}
if id != "" {
urlTplParam... | [
-0.6013041138648987,
-0.8708911538124084,
-0.09291886538267136,
-0.37412747740745544,
-0.5393735766410828,
0.8391463160514832,
0.1125258207321167,
-0.5059556365013123,
0.38079336285591125,
0.6079709529876709,
0.2560010254383087,
-0.17212355136871338,
-0.6492919921875,
-0.3239162266254425,
... |
func (m *PoliciesRequestBuilder) AdminConsentRequestPolicy()(*AdminConsentRequestPolicyRequestBuilder) {
return NewAdminConsentRequestPolicyRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
-0.30253463983535767,
0.3294652998447418,
0.40807241201400757,
-0.32226210832595825,
0.17549610137939453,
1.0383431911468506,
-0.8381842970848083,
-0.9063494801521301,
-0.039743173867464066,
0.02633264847099781,
0.9058045744895935,
0.3418433666229248,
-1.1934694051742554,
-0.27918654680252... |
func (m *PoliciesRequestBuilder) AppManagementPolicies()(*AppManagementPoliciesRequestBuilder) {
return NewAppManagementPoliciesRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
-0.5059970021247864,
0.41029566526412964,
0.3260272741317749,
0.11330810189247131,
-0.21812260150909424,
0.5547730326652527,
-1.106316328048706,
-0.7479819059371948,
0.5089508295059204,
-0.7986704111099243,
1.1741689443588257,
0.15189440548419952,
-0.2227185070514679,
0.555502712726593,
... |
func (m *PoliciesRequestBuilder) AppManagementPoliciesById(id string)(*AppManagementPoliciesAppManagementPolicyItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.pathParameters {
urlTplParams[idx] = item
}
if id != "" {
urlTplParams["appManagementPolic... | [
-0.1940406709909439,
-0.11173728108406067,
-0.10155510902404785,
-0.1322125494480133,
-0.5999418497085571,
0.5104279518127441,
-0.9716697335243225,
-0.8189460039138794,
0.3542235791683197,
0.14392833411693573,
0.6994206309318542,
0.2211989164352417,
-0.3410625755786896,
0.6942015290260315,... |
func (m *PoliciesRequestBuilder) AuthenticationFlowsPolicy()(*AuthenticationFlowsPolicyRequestBuilder) {
return NewAuthenticationFlowsPolicyRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
-0.37317755818367004,
0.208705335855484,
0.1546604037284851,
0.25364112854003906,
0.09567013382911682,
0.8543090224266052,
0.017260640859603882,
-0.7376582026481628,
1.2104802131652832,
-1.2429771423339844,
0.15272724628448486,
0.10966579616069794,
-0.4846264123916626,
-0.1308085322380066,... |
func (m *PoliciesRequestBuilder) AuthenticationMethodsPolicy()(*AuthenticationMethodsPolicyRequestBuilder) {
return NewAuthenticationMethodsPolicyRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
-0.5786679983139038,
0.5974401235580444,
0.09551668167114258,
0.546096682548523,
-0.44983041286468506,
0.6136981248855591,
-0.001882926095277071,
-0.8889307379722595,
0.7313101887702942,
-0.5007303357124329,
0.38955262303352356,
-0.07890035212039948,
-0.259514719247818,
-0.2558045983314514... |
func (m *PoliciesRequestBuilder) AuthorizationPolicy()(*AuthorizationPolicyRequestBuilder) {
return NewAuthorizationPolicyRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
0.39260318875312805,
0.5665605068206787,
0.39325442910194397,
0.8444150686264038,
-0.23770104348659515,
0.7459602355957031,
0.23781506717205048,
0.02441365271806717,
-0.05119917541742325,
-0.6581323146820068,
1.1916285753250122,
0.08771294355392456,
0.30989718437194824,
-0.0919639766216278... |
func (m *PoliciesRequestBuilder) ClaimsMappingPolicies()(*ClaimsMappingPoliciesRequestBuilder) {
return NewClaimsMappingPoliciesRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
-0.9465934634208679,
0.6169525980949402,
0.4616601765155792,
-0.4064352512359619,
-0.5040373206138611,
0.7448309659957886,
-0.8526386618614197,
0.2859306335449219,
1.1751646995544434,
-1.245131015777588,
0.22531703114509583,
0.3899575471878052,
0.33257344365119934,
-0.22383807599544525,
... |
func (m *PoliciesRequestBuilder) ClaimsMappingPoliciesById(id string)(*ClaimsMappingPoliciesClaimsMappingPolicyItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.pathParameters {
urlTplParams[idx] = item
}
if id != "" {
urlTplParams["claimsMappingPolic... | [
-0.536562979221344,
-0.16269510984420776,
-0.16036869585514069,
-0.5754042267799377,
-0.7790193557739258,
0.719271183013916,
-0.6533733010292053,
-0.09419199824333191,
1.0252270698547363,
-0.2521747648715973,
-0.02638409286737442,
0.2698002755641937,
-0.07859503477811813,
0.034933865070343... |
func (m *PoliciesRequestBuilder) ConditionalAccessPolicies()(*ConditionalAccessPoliciesRequestBuilder) {
return NewConditionalAccessPoliciesRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
0.002122329082340002,
-0.46831214427948,
0.23251284658908844,
-0.2993718087673187,
-0.7970547080039978,
0.9539307355880737,
0.35287341475486755,
-0.6373654007911682,
1.1396369934082031,
-0.602872371673584,
1.35645592212677,
0.056302111595869064,
-0.1978142261505127,
-0.018798300996422768,
... |
func (m *PoliciesRequestBuilder) ConditionalAccessPoliciesById(id string)(*ConditionalAccessPoliciesConditionalAccessPolicyItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.pathParameters {
urlTplParams[idx] = item
}
if id != "" {
urlTplParams["condit... | [
0.08229883760213852,
-0.8024346828460693,
-0.11600455641746521,
-0.5841992497444153,
-0.9437815546989441,
0.8791816830635071,
0.20085033774375916,
-0.609293520450592,
0.9081714749336243,
0.3709505498409271,
0.4819323718547821,
0.07284027338027954,
-0.3018043339252472,
0.16839753091335297,
... |
func NewPoliciesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PoliciesRequestBuilder) {
m := &PoliciesRequestBuilder{
}
m.urlTemplate = "{+baseurl}/policies{?%24select,%24expand}";
urlTplParams :... | [
-0.9325187802314758,
-0.20965108275413513,
0.4432870149612427,
-0.5689529776573181,
-0.872951090335846,
0.8627184629440308,
-0.370166152715683,
-0.3186880946159363,
0.32338419556617737,
-0.7129669785499573,
0.8317492604255676,
0.14201048016548157,
-0.7970680594444275,
-0.026229823008179665... |
func NewPoliciesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PoliciesRequestBuilder) {
urlParams := make(map[string]string)
urlParams["request-raw-url"] = rawUrl
return NewPoliciesRequestBuilderInternal(urlParams, requestAdap... | [
-1.2479723691940308,
-0.1011471226811409,
0.42038384079933167,
0.14723552763462067,
-1.004967212677002,
0.5166484117507935,
-0.7192932963371277,
-0.36027979850769043,
1.0471673011779785,
-0.9637603759765625,
0.753192126750946,
-0.06912223994731903,
-0.1908324807882309,
-0.18534301221370697... |
func (m *PoliciesRequestBuilder) CrossTenantAccessPolicy()(*CrossTenantAccessPolicyRequestBuilder) {
return NewCrossTenantAccessPolicyRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
0.4340287446975708,
-0.01843501627445221,
0.20070582628250122,
-0.44530028104782104,
-0.11453480273485184,
0.8000850677490234,
0.44483909010887146,
-0.4149581491947174,
-0.11330834776163101,
0.16570965945720673,
1.1815767288208008,
-0.08785739541053772,
0.4750499725341797,
0.07069330662488... |
func (m *PoliciesRequestBuilder) DefaultAppManagementPolicy()(*DefaultAppManagementPolicyRequestBuilder) {
return NewDefaultAppManagementPolicyRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
-0.46432042121887207,
0.4354504644870758,
0.38977792859077454,
0.4014270007610321,
0.8508796095848083,
0.8309435844421387,
-0.49141401052474976,
-0.44467031955718994,
0.21433629095554352,
-0.6828750371932983,
0.5111205577850342,
-0.38414984941482544,
-0.4447406232357025,
0.9530736207962036... |
func (m *PoliciesRequestBuilder) FeatureRolloutPolicies()(*FeatureRolloutPoliciesRequestBuilder) {
return NewFeatureRolloutPoliciesRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
-0.9857639074325562,
0.3114599883556366,
0.20229575037956238,
0.12474020570516586,
-0.576702892780304,
0.7103016376495361,
-0.19537653028964996,
0.556505560874939,
0.3520716428756714,
-0.6706092953681946,
0.7198993563652039,
0.12934422492980957,
0.15140393376350403,
-0.14431244134902954,
... |
func (m *PoliciesRequestBuilder) FeatureRolloutPoliciesById(id string)(*FeatureRolloutPoliciesFeatureRolloutPolicyItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.pathParameters {
urlTplParams[idx] = item
}
if id != "" {
urlTplParams["featureRolloutP... | [
-0.8424434661865234,
-0.12264260649681091,
-0.1003287062048912,
-0.018124626949429512,
-1.13314950466156,
0.39546018838882446,
-0.10965940356254578,
0.1309918761253357,
0.321764200925827,
0.22070853412151337,
0.11947277188301086,
0.01903270184993744,
-0.058264657855033875,
-0.0124271437525... |
func (m *PoliciesRequestBuilder) HomeRealmDiscoveryPolicies()(*HomeRealmDiscoveryPoliciesRequestBuilder) {
return NewHomeRealmDiscoveryPoliciesRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
0.079824298620224,
0.33852899074554443,
0.4149533212184906,
0.33845555782318115,
0.1312655657529831,
0.7548937797546387,
-0.0692630186676979,
-0.2000417411327362,
0.8021553754806519,
-1.1353087425231934,
0.7595179080963135,
0.3486332297325134,
-0.1887679100036621,
0.3000872731208801,
0.2... |
func (m *PoliciesRequestBuilder) HomeRealmDiscoveryPoliciesById(id string)(*HomeRealmDiscoveryPoliciesHomeRealmDiscoveryPolicyItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.pathParameters {
urlTplParams[idx] = item
}
if id != "" {
urlTplParams["hom... | [
-0.005558396223932505,
-0.026920773088932037,
0.15354269742965698,
0.19923445582389832,
-0.38890793919563293,
0.63404381275177,
-0.14192721247673035,
-0.14398188889026642,
0.6753955483436584,
-0.37481823563575745,
0.1611180454492569,
0.21925345063209534,
-0.20054350793361664,
0.40444183349... |
func (m *PoliciesRequestBuilder) IdentitySecurityDefaultsEnforcementPolicy()(*IdentitySecurityDefaultsEnforcementPolicyRequestBuilder) {
return NewIdentitySecurityDefaultsEnforcementPolicyRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
-0.32358747720718384,
0.542115330696106,
0.1325758993625641,
0.24348793923854828,
1.5562547445297241,
0.40783852338790894,
-0.08259458094835281,
-0.18211118876934052,
0.4854585528373718,
0.06759916245937347,
-0.610505223274231,
-0.894518256187439,
-0.8398495316505432,
0.16813892126083374,
... |
func (m *PoliciesRequestBuilder) PermissionGrantPolicies()(*PermissionGrantPoliciesRequestBuilder) {
return NewPermissionGrantPoliciesRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
-0.44648054242134094,
0.5477535724639893,
0.3580673336982727,
0.3918532133102417,
-0.8725103139877319,
1.1755212545394897,
-0.15068691968917847,
-0.21930243074893951,
0.43776243925094604,
-0.6656445860862732,
1.1316425800323486,
0.3144487142562866,
-1.3041858673095703,
0.18974676728248596,... |
func (m *PoliciesRequestBuilder) PermissionGrantPoliciesById(id string)(*PermissionGrantPoliciesPermissionGrantPolicyItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.pathParameters {
urlTplParams[idx] = item
}
if id != "" {
urlTplParams["permissionGr... | [
-0.2156093865633011,
-0.1687256544828415,
-0.06313209980726242,
-0.027361782267689705,
-1.1478793621063232,
1.0128775835037231,
-0.1087689995765686,
-0.2587023079395294,
0.47800329327583313,
0.23412135243415833,
0.6950605511665344,
0.15330620110034943,
-1.4004539251327515,
0.46527233719825... |
func (m *PoliciesRequestBuilder) RoleManagementPolicies()(*RoleManagementPoliciesRequestBuilder) {
return NewRoleManagementPoliciesRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
-1.083861231803894,
-0.2624795734882355,
0.269544780254364,
-0.7217338681221008,
0.3212192952632904,
0.49126648902893066,
-0.5767934918403625,
-0.23221640288829803,
0.8382347226142883,
-0.5508882999420166,
0.6233075857162476,
0.4218156039714813,
-0.7821318507194519,
0.12646405398845673,
... |
func (m *PoliciesRequestBuilder) RoleManagementPoliciesById(id string)(*RoleManagementPoliciesUnifiedRoleManagementPolicyItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.pathParameters {
urlTplParams[idx] = item
}
if id != "" {
urlTplParams["unifiedR... | [
-0.8884475231170654,
-0.6030320525169373,
0.07883588969707489,
-1.016843318939209,
-0.30789467692375183,
0.7185025811195374,
-0.284692645072937,
-0.056170642375946045,
1.0146613121032715,
0.2987743616104126,
0.14870187640190125,
0.4878561794757843,
-0.6433862447738647,
0.34122517704963684,... |
func (m *PoliciesRequestBuilder) RoleManagementPolicyAssignments()(*RoleManagementPolicyAssignmentsRequestBuilder) {
return NewRoleManagementPolicyAssignmentsRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
-0.3012085556983948,
-0.6078080534934998,
0.57269686460495,
-0.7000520825386047,
0.14355695247650146,
0.4363125264644623,
-0.11556872725486755,
-0.10054584592580795,
0.47585055232048035,
-0.04557972773909569,
0.6924875974655151,
0.026038916781544685,
-0.28813931345939636,
1.239793300628662... |
func (m *PoliciesRequestBuilder) RoleManagementPolicyAssignmentsById(id string)(*RoleManagementPolicyAssignmentsUnifiedRoleManagementPolicyAssignmentItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.pathParameters {
urlTplParams[idx] = item
}
if id != "" {
... | [
-0.5675557851791382,
-0.5749354958534241,
0.36590954661369324,
-0.6708306074142456,
-0.6707665920257568,
0.6037331819534302,
0.31339019536972046,
0.07935545593500137,
0.8460507988929749,
0.5533215403556824,
0.15221205353736877,
0.17211966216564178,
-0.182516410946846,
1.0938005447387695,
... |
func (m *PoliciesRequestBuilder) TokenIssuancePolicies()(*TokenIssuancePoliciesRequestBuilder) {
return NewTokenIssuancePoliciesRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
-0.7025703191757202,
0.049874331802129745,
-0.1292930543422699,
-0.08834321796894073,
-0.4574601650238037,
0.523867666721344,
-0.9877886176109314,
-0.48198214173316956,
0.606677770614624,
-0.847686767578125,
0.158228799700737,
0.42255106568336487,
-0.5147885084152222,
-0.5387262105941772,
... |
func (m *PoliciesRequestBuilder) TokenIssuancePoliciesById(id string)(*TokenIssuancePoliciesTokenIssuancePolicyItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.pathParameters {
urlTplParams[idx] = item
}
if id != "" {
urlTplParams["tokenIssuancePolic... | [
-0.42078742384910583,
-0.39727672934532166,
-0.3716210722923279,
-0.43437325954437256,
-0.8132802844047546,
0.37808266282081604,
-0.8763557076454163,
-0.5456254482269287,
0.718455970287323,
0.10821311920881271,
-0.07611287385225296,
0.1914590746164322,
-0.46197324991226196,
-0.342022567987... |
func (m *PoliciesRequestBuilder) TokenLifetimePolicies()(*TokenLifetimePoliciesRequestBuilder) {
return NewTokenLifetimePoliciesRequestBuilderInternal(m.pathParameters, m.requestAdapter)
} | [
-0.02981661632657051,
0.07598515599966049,
0.04938949644565582,
-1.0664846897125244,
-0.17504924535751343,
0.5695986151695251,
-1.6955058574676514,
-0.9574674963951111,
0.9732348322868347,
-0.6277568340301514,
0.23641429841518402,
0.03946791961789131,
-0.796675443649292,
-0.200644195079803... |
func (m *PoliciesRequestBuilder) TokenLifetimePoliciesById(id string)(*TokenLifetimePoliciesTokenLifetimePolicyItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.pathParameters {
urlTplParams[idx] = item
}
if id != "" {
urlTplParams["tokenLifetimePolic... | [
0.10078471899032593,
-0.5377000570297241,
-0.2879302203655243,
-1.196384310722351,
-0.6181246638298035,
0.4217568039894104,
-1.398087978363037,
-0.9780486822128296,
0.8444964289665222,
0.2387624979019165,
-0.3092808723449707,
0.19512422382831573,
-0.529116153717041,
0.0371227040886879,
-... |
func NewClient(sock string) *Client {
return &Client{
http: &http.Client{
Transport: &http.Transport{
Dial: func(proto, addr string) (conn net.Conn, err error) {
return net.Dial("unix", sock)
},
},
Timeout: time.Second * 5,
},
}
} | [
0.17522811889648438,
0.11159560084342957,
0.3013087511062622,
-0.10197832435369492,
-1.0447078943252563,
0.21599850058555603,
0.08904026448726654,
-0.6282387971878052,
-0.04859623685479164,
-0.6318894624710083,
-0.6931010484695435,
0.878686249256134,
0.0876137763261795,
-0.7210316061973572... |
func (c *Client) Ping() bool {
endpoint := fmt.Sprintf("%s/_ping", baseAddr)
r, err := c.http.Get(endpoint)
if err != nil {
return false
}
return statusCode(r.StatusCode, http.StatusOK) == nil
} | [
-0.654737114906311,
0.6668362021446228,
0.531987190246582,
0.49676957726478577,
0.35646629333496094,
-0.001074781990610063,
-0.31639084219932556,
0.3111421763896942,
-0.2641051709651947,
0.6948058009147644,
0.5406767129898071,
-0.5944676399230957,
-0.4245607852935791,
-0.7712538838386536,
... |
func (c *Client) ContainerIDByName(name string) (string, error) {
endpoint := fmt.Sprintf("%scontainers/json", baseAddr)
r, err := c.http.Get(endpoint)
if err != nil {
return "", err
}
containers := []struct {
ID string `json:"ID"`
Status string `json:"Status"`
Image string `json:"Image"`
Nam... | [
-0.1990431547164917,
-0.8024467825889587,
0.8819251656532288,
-0.7523817420005798,
-0.9108845591545105,
-0.936238169670105,
-0.10858587920665741,
-1.01569664478302,
0.18194249272346497,
1.578187108039856,
-0.7266713380813599,
-0.3401065766811371,
-0.49848857522010803,
1.143449306488037,
... |
func (c *Client) CreateContainer(name, image string, cmd, exposedPorts, mounts []string) (string, error) {
endpoint := fmt.Sprintf("%scontainers/create?name=%s", baseAddr, name)
type Mount struct {
Target string `json:"Target"`
Source string `json:"Source"`
ReadOnly bool `json:"ReadOnly"`
Type... | [
-0.39035484194755554,
-0.09678462147712708,
1.0599008798599243,
-0.10677497088909149,
-0.13048295676708221,
-0.38558197021484375,
0.059574879705905914,
-0.5784164667129517,
-0.27372169494628906,
0.5226837396621704,
-0.6027750968933105,
0.21489813923835754,
-0.5137876868247986,
0.8628778457... |
func (c *Client) DeleteContainer(id string) error {
endpoint := fmt.Sprintf("%scontainers/%s", baseAddr, id)
r, err := http.NewRequest("DELETE", endpoint, nil)
if err != nil {
return err
}
resp, err := c.http.Do(r)
if err != nil {
return err
}
return statusCode(resp.StatusCode, http.StatusNoContent)
} | [
-0.7026268839836121,
0.20105205476284027,
0.6007540225982666,
-0.38251161575317383,
0.29860422015190125,
-0.4925902187824249,
0.2687235176563263,
-0.7521365284919739,
0.44572076201438904,
-0.4441092312335968,
0.08830435574054718,
0.7325335144996643,
-0.4559580087661743,
1.2241911888122559,... |
func (c *Client) StartContainer(id string) error {
endpoint := fmt.Sprintf("%scontainers/%s/start", baseAddr, id)
r, err := c.http.Post(endpoint, "application/json", nil)
if err != nil {
return err
}
return statusCode(r.StatusCode, http.StatusNoContent)
} | [
-0.7653018832206726,
-0.3322100341320038,
0.460921972990036,
0.1476588100194931,
0.048540350049734116,
-0.22976252436637878,
0.43899768590927124,
-0.16448132693767548,
0.11429710686206818,
-0.11674386262893677,
-0.5900712013244629,
1.2445485591888428,
-0.32804277539253235,
1.28326380252838... |
func (c *Client) StopContainer(id string) error {
endpoint := fmt.Sprintf("%scontainers/%s/stop", baseAddr, id)
r, err := c.http.Post(endpoint, "application/json", nil)
if err != nil {
return err
}
return statusCode(r.StatusCode, http.StatusNoContent)
} | [
-1.9921411275863647,
-0.43590113520622253,
0.34113001823425293,
-0.6479427218437195,
0.14609894156455994,
-0.1052192822098732,
0.4410765469074249,
-0.740351140499115,
-0.30772802233695984,
0.28994566202163696,
-0.7154450416564941,
0.5937408208847046,
-0.6425210237503052,
0.506246030330658,... |
func (c *Client) NetworkIDByName(name string) (string, error) {
endpoint := fmt.Sprintf("%snetworks", baseAddr)
r, err := c.http.Get(endpoint)
if err != nil {
return "", err
}
if err = statusCode(r.StatusCode, http.StatusOK); err != nil {
return "", err
}
networks := []struct {
Driver string `json:"Drive... | [
0.03901847451925278,
-0.5492525696754456,
0.6707801818847656,
-0.4867047667503357,
-0.38557401299476624,
-0.5487362742424011,
0.15353477001190186,
-1.058578610420227,
0.3286663591861725,
1.0852572917938232,
-0.9404592514038086,
-0.954176664352417,
-0.6663585305213928,
0.6897717118263245,
... |
func (c *Client) CreateNetwork(name string) (string, error) {
endpoint := fmt.Sprintf("%snetworks/create", baseAddr)
min := struct {
Name string `json:"Name"`
Driver string `json:"Driver"`
Attachable bool `json:"Attachable"`
}{
Name: name,
Driver: "bridge",
Attachable: true,
}
b... | [
-0.7656410932540894,
0.298520565032959,
0.9648694396018982,
0.013638319447636604,
0.23184144496917725,
-0.09735578298568726,
-0.7396441698074341,
-0.6677069664001465,
0.236540287733078,
0.6695605516433716,
-1.625763177871704,
-0.8358145356178284,
-0.7661364078521729,
0.447280615568161,
0... |
func (c *Client) DeleteNetwork(id string) error {
endpoint := fmt.Sprintf("%snetworks/%s", baseAddr, id)
r, err := http.NewRequest("DELETE", endpoint, nil)
if err != nil {
return err
}
resp, err := c.http.Do(r)
if err != nil {
return err
}
return statusCode(resp.StatusCode, http.StatusNoContent)
} | [
-1.1597683429718018,
0.5556055903434753,
0.35271719098091125,
-0.05209832265973091,
0.8622118830680847,
-0.5620978474617004,
-0.3895215690135956,
-0.42042335867881775,
0.4685102701187134,
-0.41887176036834717,
-1.1292628049850464,
-0.29119792580604553,
-0.7288067936897278,
0.05636915192008... |
func (c *Client) ConnectNetwork(nwid string, cid string, aliases []string) error {
endpoint := fmt.Sprintf("%snetworks/%s/connect", baseAddr, nwid)
type endpointConfig struct {
Aliases []string `json:"Aliases"`
}
min := struct {
Container string `json:"Container"`
EndpointConfig *endpointConfi... | [
-1.4331291913986206,
0.10318627208471298,
0.5935802459716797,
-0.020581180229783058,
0.43246787786483765,
0.08950721472501755,
-0.562240719795227,
-0.38238584995269775,
-0.2153543382883072,
0.3639761209487915,
-0.7068835496902466,
-1.0039966106414795,
-0.33924710750579834,
0.63161230087280... |
func (c *Client) DisconnectNetwork(nwid string, cid string) error {
endpoint := fmt.Sprintf("%snetworks/%s/disconnect", baseAddr, nwid)
min := struct {
Container string `json:"Container"`
}{
Container: cid,
}
b, err := json.Marshal(&min)
if err != nil {
return err
}
r, err := c.http.Post(endpoint, "appli... | [
-1.35958993434906,
0.29561418294906616,
0.4199523627758026,
-0.3752855062484741,
0.49384957551956177,
-0.32041633129119873,
-0.350595086812973,
-1.1745264530181885,
0.4491181969642639,
0.5794532299041748,
-0.9092755913734436,
-1.0144175291061401,
-1.26848304271698,
0.2686474919319153,
-0... |
func (c *Client) Labels(containerID string) (map[string]string, error) {
r, err := c.http.Get(fmt.Sprintf("%scontainers/%s/json", baseAddr, containerID))
if err != nil {
return nil, err
}
if err = statusCode(r.StatusCode, http.StatusOK); err != nil {
return nil, err
}
inspect := struct {
Config struct {
... | [
-1.4736603498458862,
-0.12961970269680023,
0.5309869647026062,
-1.5093395709991455,
-0.05524631217122078,
-0.25832682847976685,
-1.7695872783660889,
-0.4994494318962097,
0.013038933277130127,
1.0222461223602295,
-0.6855461597442627,
-0.023060493171215057,
-0.2234608232975006,
0.74590361118... |
func NewEdgeServer(hostname string, port int, hostnameGw string, portGw int) *FrontendServer {
s := &FrontendServer{
localSt: etcdclient.NewClient(true),
globalSt: etcdclient.NewClient(false),
hostname: hostname,
port: port,
hostnameGw: hostnameGw,
portGw: portGw,
}
return s
} | [
-1.0031050443649292,
-0.15480828285217285,
0.5604168772697449,
-1.3640910387039185,
-0.12698179483413696,
0.30725324153900146,
-0.4864821434020996,
-0.13153134286403656,
-0.7948267459869385,
-0.07972680032253265,
-0.3147892653942108,
0.49750587344169617,
-1.0278117656707764,
0.039376616477... |
func (s *FrontendServer) SetGateway(addr string) {
s.gateway = dht.NewRemoteNode(addr, "", nil, nil)
} | [
0.1958381086587906,
1.0104589462280273,
0.3586476743221283,
-0.5378917455673218,
-0.37936511635780334,
0.6047405004501343,
-0.002364177256822586,
0.8392161130905151,
-0.5072755813598633,
-0.5356870889663696,
-1.076108455657959,
1.638879418373108,
-0.6822372674942017,
1.8050137758255005,
... |
func (s *FrontendServer) Get(ctx context.Context, req *pb.GetRequest) (*pb.GetResponse, error) {
var err error
var returnErr error = nil
var returnRes *pb.GetResponse
var res *clientv3.GetResponse
var val string
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
key := req.Ge... | [
-1.1344892978668213,
-0.028040258213877678,
0.9107170701026917,
-0.6051793098449707,
0.5158481001853943,
-0.0659976601600647,
-0.35913920402526855,
-0.8274112343788147,
-0.43724194169044495,
0.5585579872131348,
0.5677698254585266,
0.9162213206291199,
-1.4621706008911133,
0.8155637979507446... |
func (s *FrontendServer) Put(ctx context.Context, req *pb.PutRequest) (*pb.PutResponse, error) {
var returnErr error = nil
var err error
var returnRes *pb.PutResponse
key := req.GetKey()
// var res *clientv3.PutResponse
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
switc... | [
-1.365865707397461,
0.052157871425151825,
0.8363960385322571,
-0.7134627103805542,
0.24545422196388245,
0.7660218477249146,
0.5689594745635986,
-0.40391984581947327,
-0.4536907374858856,
0.865441083908081,
0.1637841761112213,
0.6503190398216248,
-1.490484595298767,
0.563934862613678,
0.1... |
func (s *FrontendServer) Del(ctx context.Context, req *pb.DeleteRequest) (*pb.DeleteResponse, error) {
var returnErr error = nil
var err error
var returnRes *pb.DeleteResponse
// var res *clientv3.DeleteResponse
key := req.GetKey()
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
defer cance... | [
-0.1990855634212494,
-0.2265828251838684,
1.1037559509277344,
-0.21753129363059998,
-0.3105025589466095,
0.36942195892333984,
-0.3504661023616791,
-0.19547362625598907,
0.24390870332717896,
0.6814829111099243,
1.049203634262085,
0.290842205286026,
-0.7194164991378784,
0.6754750609397888,
... |
func (s *FrontendServer) RangeGet(req *pb.RangeRequest, stream pb.Frontend_RangeGetServer) error {
var err error
var returnErr error = nil
var res, res2, res3 *clientv3.GetResponse
var kvRes *pb.KV
var more bool
startKey := req.GetStart()
endKey := req.GetEnd()
ctx, cancel := context.WithTimeout(context.Backgro... | [
-1.2199018001556396,
-0.042688410729169846,
0.8941544890403748,
-0.06922685354948044,
0.6261664628982544,
-0.05561065301299095,
-0.7598469257354736,
-0.509177565574646,
-1.0949352979660034,
0.18754924833774567,
0.552105724811554,
0.6361908912658691,
-0.4479202926158905,
0.4220556914806366,... |
func (s *FrontendServer) RangeDel(ctx context.Context, req *pb.RangeRequest) (*pb.EmptyRes, error) {
var err error
var returnErr error = nil
var returnRes = &pb.EmptyRes{}
startKey := req.GetStart()
endKey := req.GetEnd()
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
defer cancel()
switc... | [
-1.100189208984375,
-0.33609387278556824,
0.890400767326355,
-0.23750795423984528,
0.3780975639820099,
0.15996183454990387,
-0.408478707075119,
-0.19262582063674927,
-0.4097035825252533,
0.7459438443183899,
0.726409375667572,
0.5476326942443848,
-0.5394651293754578,
0.29948246479034424,
... |
func (s *FrontendServer) Run(tls bool, certFile string,
keyFile string) error {
lis, err := net.Listen("tcp", fmt.Sprintf("%s:%d", s.hostname, s.port))
if err != nil {
log.Fatalf("failed to listen: %v", err)
}
var lis2 net.Listener
if (s.hostnameGw != "") && (s.portGw != 0) {
lis2, err = net.Listen("tcp", fmt... | [
-0.43503808975219727,
0.30182141065597534,
1.010852336883545,
-0.06369860470294952,
0.6617678999900818,
0.6007286310195923,
0.445909321308136,
0.5327727794647217,
-1.080505132675171,
0.10118269920349121,
-0.25088614225387573,
0.43869826197624207,
-0.6131967306137085,
0.6936182975769043,
... |
func (s *FrontendServer) RunInsecure() error {
return s.Run(false, "", "")
} | [
-1.2512675523757935,
0.07038577646017075,
0.5227066278457642,
0.6150608658790588,
0.042108241468667984,
-0.4120559096336365,
-0.29821139574050903,
-0.7947590351104736,
-1.1245579719543457,
-0.3876388669013977,
-0.7734739184379578,
1.0070170164108276,
-1.3072470426559448,
-0.151709899306297... |
func (s *FrontendServer) Close() error {
err1 := s.localSt.Close()
err2 := s.globalSt.Close()
if (err1 != nil) || (err2 != nil) {
return fmt.Errorf("failed to close etcd client %v, %v", err1, err2)
}
return nil
} | [
-0.37299561500549316,
0.1146981343626976,
0.358513742685318,
-1.0722134113311768,
-0.5909097790718079,
0.6404268741607666,
-0.2991563081741333,
-0.43471187353134155,
-1.4894996881484985,
-0.2928774952888489,
0.5502600073814392,
0.8828356266021729,
-0.18770729005336761,
0.8235980868339539,
... |
func GetStringFlagFromEnv(flagName string) (string, error) {
value, lookup := os.LookupEnv(flagName)
if !lookup {
return "", fmt.Errorf("failed to get flag %s from env", flagName)
}
return value, nil
} | [
0.08827043324708939,
-0.37321534752845764,
0.5011290311813354,
-0.18344970047473907,
-0.25514018535614014,
0.4571608006954193,
-1.0082000494003296,
-0.42174839973449707,
-0.6993809938430786,
0.517901599407196,
-0.07885812222957611,
0.8097852468490601,
-0.462362676858902,
0.1084284335374832... |
func MustGetStringFlagFromEnv(flagName string) string {
value, err := GetStringFlagFromEnv(flagName)
if err != nil {
log.Logger().Panic().Err(err).Msg("failed to load string flag from env")
}
return value
} | [
0.14194431900978088,
-0.361040323972702,
0.5039166808128357,
0.12227162718772888,
-0.2804435193538666,
0.9308112859725952,
-1.2043787240982056,
-0.8428764939308167,
-0.6232427954673767,
0.055926285684108734,
0.00024022997240535915,
0.9505411982536316,
-0.5853991508483887,
0.367239594459533... |
func NewEnvValueHolder(name string, value *string) *EnvValueHolder {
return &EnvValueHolder{
N: name,
V: value,
}
} | [
-0.390677273273468,
-0.7612971663475037,
-0.030745815485715866,
0.10628346353769302,
-1.7557260990142822,
0.9007905125617981,
-1.1990488767623901,
-0.15543091297149658,
-0.8206169009208679,
0.34662264585494995,
-0.2298840433359146,
0.6993206739425659,
-0.006288839504122734,
0.3089076578617... |
func (h *EnvValueHolder) Default(value string) *EnvValueHolder {
h.def = &value
return h
} | [
-0.04755670577287674,
0.6220998764038086,
0.04959581792354584,
0.7058132886886597,
0.6025043725967407,
1.2309844493865967,
-0.12924808263778687,
0.5624542236328125,
-0.44130444526672363,
-0.3103853166103363,
-0.5971972942352295,
0.578740119934082,
0.13487350940704346,
1.2138442993164062,
... |
func MustGetStringFlagsFromEnv(flagPrefix string, vars ...*EnvValueHolder) {
for _, k := range vars {
value, err := GetStringFlagFromEnv(flagPrefix + k.N)
if err != nil && !k.hasDefault() {
log.Logger().Panic().Err(err).Msg("failed to load string flag from env")
}
k.assign(value)
}
} | [
-0.5659738779067993,
-0.07213707268238068,
0.4646835923194885,
0.49220797419548035,
0.6788344383239746,
0.5355310440063477,
-1.1065315008163452,
-0.24418118596076965,
-0.773561954498291,
-0.29652807116508484,
-0.3818899989128113,
0.6791238784790039,
-0.02486606128513813,
0.6548799872398376... |
func GetStringFlagFromEnvWithDefault(flagName string, defaultValue string) string {
value, err := GetStringFlagFromEnv(flagName)
if err != nil {
return defaultValue
}
return value
} | [
0.41652438044548035,
-0.20422488451004028,
0.5399582982063293,
0.5891246795654297,
0.7481139302253723,
-0.03201104700565338,
-1.3752862215042114,
-0.14335554838180542,
-0.6491050720214844,
0.18492461740970612,
-0.17400328814983368,
0.3163106143474579,
-0.5865266919136047,
-0.03569525107741... |
func (instance SQS) NextMessages(queue string) ([]*sqs.Message, error) {
params := &sqs.ReceiveMessageInput{
QueueUrl: aws.String(instance.cfg.SQSURL),
MaxNumberOfMessages: aws.Int64(cfg.Connections),
WaitTimeSeconds: aws.Int64(instance.cfg.WaitTime),
}
resp, err := instance.sqsService.ReceiveM... | [
-0.5799096822738647,
-0.07712213695049286,
0.48220109939575195,
-0.3890805244445801,
-0.3901072144508362,
-0.30230098962783813,
-0.9061237573623657,
-1.3002798557281494,
1.1104856729507446,
0.07655683904886246,
-0.08360130339860916,
-0.03451869264245033,
-0.8686245679855347,
0.622599542140... |
func (instance SQS) Complete(queue, messageID string) (err error) {
params := &sqs.DeleteMessageInput{
QueueUrl: aws.String(instance.cfg.SQSURL),
ReceiptHandle: aws.String(messageID),
}
_, err = instance.sqsService.DeleteMessage(params)
if err != nil {
return err
}
return nil
} | [
0.06720060855150223,
-0.6447708010673523,
0.6506524085998535,
-0.7067487835884094,
-0.3396034240722656,
-0.026340315118432045,
-0.26160722970962524,
-0.42532652616500854,
0.5567724704742432,
0.7976072430610657,
0.06671346724033356,
0.5013094544410706,
-0.37635335326194763,
0.32979273796081... |
func (s AuthSentCode) construct() AuthSentCodeClass { return &s } | [
0.3982747793197632,
-0.45176807045936584,
-0.00038722361205145717,
-0.4120619297027588,
0.0719786286354065,
-0.09984543174505234,
0.1801270842552185,
-0.12262345850467682,
0.6902062296867371,
-0.3866156041622162,
0.4817894697189331,
0.6691519618034363,
0.3337746560573578,
0.771912574768066... |
func (s *AuthSentCode) FillFrom(from interface {
GetType() (value AuthSentCodeTypeClass)
GetPhoneCodeHash() (value string)
GetNextType() (value AuthCodeTypeClass, ok bool)
GetTimeout() (value int, ok bool)
}) {
s.Type = from.GetType()
s.PhoneCodeHash = from.GetPhoneCodeHash()
if val, ok := from.GetNextType(); ok... | [
-0.06957102566957474,
0.10524400323629379,
0.4288385510444641,
0.29006603360176086,
-0.1473376601934433,
0.012448569759726524,
0.35875850915908813,
-0.7694209814071655,
0.9515101313591003,
0.10596077144145966,
-0.1176529973745346,
0.5104279518127441,
-0.0714220255613327,
1.094435691833496,... |
func (*AuthSentCode) TypeID() uint32 {
return AuthSentCodeTypeID
} | [
0.26722463965415955,
-0.5142585635185242,
0.2911347448825836,
0.052812881767749786,
0.4635941684246063,
0.8412013649940491,
0.6055000424385071,
-0.5532220005989075,
1.4327964782714844,
0.24385768175125122,
-0.38249364495277405,
1.430164098739624,
-1.598287582397461,
0.904121458530426,
1.... |
func (*AuthSentCode) TypeName() string {
return "auth.sentCode"
} | [
-0.2637445628643036,
-0.3754037320613861,
0.4588027000427246,
0.01828271523118019,
0.24657541513442993,
0.25992652773857117,
0.5455224514007568,
-0.36288079619407654,
0.7894136309623718,
0.7182202339172363,
-0.4539428949356079,
1.0134947299957275,
-0.5381137728691101,
0.09119297564029694,
... |
func (s *AuthSentCode) TypeInfo() tdp.Type {
typ := tdp.Type{
Name: "auth.sentCode",
ID: AuthSentCodeTypeID,
}
if s == nil {
typ.Null = true
return typ
}
typ.Fields = []tdp.Field{
{
Name: "Type",
SchemaName: "type",
},
{
Name: "PhoneCodeHash",
SchemaName: "phone_code_hash",
... | [
0.10285888612270355,
0.21036748588085175,
0.26401233673095703,
-0.6563025712966919,
0.34049680829048157,
0.08937375992536545,
0.6805938482284546,
-0.7175226211547852,
0.26052623987197876,
0.5516408085823059,
-0.7631756067276001,
-0.141062393784523,
-0.5713880658149719,
0.09643255174160004,... |
func (s *AuthSentCode) SetFlags() {
if !(s.NextType == nil) {
s.Flags.Set(1)
}
if !(s.Timeout == 0) {
s.Flags.Set(2)
}
} | [
-0.22722604870796204,
1.029824137687683,
0.13632336258888245,
0.25882843136787415,
0.9081606864929199,
0.23585444688796997,
0.4262290596961975,
-0.007384586613625288,
-0.3766822814941406,
0.3159518539905548,
-0.49359241127967834,
0.7977406978607178,
-1.302908182144165,
1.9675124883651733,
... |
func (s *AuthSentCode) GetType() (value AuthSentCodeTypeClass) {
if s == nil {
return
}
return s.Type
} | [
-0.14621488749980927,
0.9877855181694031,
-0.01945832371711731,
1.0006200075149536,
1.2165828943252563,
0.038709357380867004,
0.5189862251281738,
-0.5884179472923279,
1.5498799085617065,
-0.10493849217891693,
0.09633302688598633,
0.5991496443748474,
-0.4390900433063507,
0.8514886498451233,... |
func (s *AuthSentCode) GetPhoneCodeHash() (value string) {
if s == nil {
return
}
return s.PhoneCodeHash
} | [
0.7842124700546265,
0.4494120478630066,
-0.26957276463508606,
0.5765767097473145,
-0.35771629214286804,
0.16030392050743103,
-1.0690524578094482,
-0.12653721868991852,
1.0865660905838013,
-0.3885625898838043,
0.2812122106552124,
-0.5353773236274719,
-0.9224119782447815,
0.324095219373703,
... |
func (s *AuthSentCode) SetNextType(value AuthCodeTypeClass) {
s.Flags.Set(1)
s.NextType = value
} | [
-0.41719383001327515,
0.6310263276100159,
0.1671822965145111,
0.8936182260513306,
-0.21932433545589447,
0.5259006023406982,
0.9391433596611023,
-0.7953374981880188,
0.5064216256141663,
0.23529288172721863,
-0.23260483145713806,
0.4260185658931732,
-0.609900951385498,
1.5624198913574219,
... |
func (s *AuthSentCode) GetNextType() (value AuthCodeTypeClass, ok bool) {
if s == nil {
return
}
if !s.Flags.Has(1) {
return value, false
}
return s.NextType, true
} | [
-0.3277415633201599,
1.0518887042999268,
0.5818759799003601,
1.2728172540664673,
0.05172397941350937,
0.13387875258922577,
0.34165486693382263,
-0.4506276845932007,
0.6845740675926208,
-0.008403785526752472,
-0.2731618881225586,
0.40483763813972473,
-0.6598344445228577,
1.288303017616272,
... |
func (s *AuthSentCode) SetTimeout(value int) {
s.Flags.Set(2)
s.Timeout = value
} | [
0.310960978269577,
0.8583900332450867,
0.15259265899658203,
0.6036391258239746,
-0.02114587090909481,
0.8660557270050049,
1.2034473419189453,
0.08608400821685791,
0.22177894413471222,
0.6399280428886414,
-0.5337074398994446,
0.5331577062606812,
0.21869531273841858,
1.0654531717300415,
0.... |
func (s *AuthSentCode) GetTimeout() (value int, ok bool) {
if s == nil {
return
}
if !s.Flags.Has(2) {
return value, false
}
return s.Timeout, true
} | [
0.10465709120035172,
1.3355844020843506,
0.5328201055526733,
0.5408642888069153,
0.26224470138549805,
-0.24163129925727844,
0.6211463809013367,
0.5056509971618652,
0.20818598568439484,
0.8876373171806335,
-0.585436224937439,
0.36650919914245605,
-0.2048766165971756,
0.6070499420166016,
0... |
func (s AuthSentCodeSuccess) construct() AuthSentCodeClass { return &s } | [
0.06971374154090881,
-0.380109965801239,
0.02697530947625637,
-0.277452677488327,
-0.49951162934303284,
0.05796292796730995,
0.16525904834270477,
-0.1410064548254013,
0.5696128010749817,
-0.43564122915267944,
0.09309640526771545,
0.4204023778438568,
0.5786811113357544,
0.5962316989898682,
... |
func (s *AuthSentCodeSuccess) FillFrom(from interface {
GetAuthorization() (value AuthAuthorizationClass)
}) {
s.Authorization = from.GetAuthorization()
} | [
0.08556155115365982,
0.5001950263977051,
0.4036498963832855,
1.096688151359558,
-0.2489967793226242,
0.22021453082561493,
0.5718987584114075,
-0.22927752137184143,
1.2063753604888916,
0.23048822581768036,
-0.15511640906333923,
0.7841910123825073,
1.0248738527297974,
0.591943621635437,
0.... |
func (*AuthSentCodeSuccess) TypeID() uint32 {
return AuthSentCodeSuccessTypeID
} | [
0.055740177631378174,
-0.3888131082057953,
0.2488647699356079,
0.19897282123565674,
0.12930171191692352,
1.1321433782577515,
0.525794267654419,
-0.30368828773498535,
1.0907080173492432,
0.3899098336696625,
-1.0095679759979248,
1.1246895790100098,
-0.9648901224136353,
0.5140615701675415,
... |
func (*AuthSentCodeSuccess) TypeName() string {
return "auth.sentCodeSuccess"
} | [
-0.3568646013736725,
-0.14408567547798157,
0.43520790338516235,
0.17039045691490173,
-0.13746118545532227,
0.6265159845352173,
0.2854628264904022,
-0.20900481939315796,
0.5204089283943176,
0.795209527015686,
-1.0950978994369507,
0.38515812158584595,
-0.26291021704673767,
-0.356552213430404... |
func (s *AuthSentCodeSuccess) TypeInfo() tdp.Type {
typ := tdp.Type{
Name: "auth.sentCodeSuccess",
ID: AuthSentCodeSuccessTypeID,
}
if s == nil {
typ.Null = true
return typ
}
typ.Fields = []tdp.Field{
{
Name: "Authorization",
SchemaName: "authorization",
},
}
return typ
} | [
0.14201731979846954,
0.20584774017333984,
0.17283926904201508,
-0.563037097454071,
-0.14162109792232513,
0.36782851815223694,
0.42958682775497437,
-0.605595052242279,
0.2678033709526062,
0.9164195656776428,
-1.0050395727157593,
0.02587289921939373,
-0.13783876597881317,
-0.0948490276932716... |
func (s *AuthSentCodeSuccess) GetAuthorization() (value AuthAuthorizationClass) {
if s == nil {
return
}
return s.Authorization
} | [
-0.44659432768821716,
1.0219870805740356,
0.02248859591782093,
1.0994830131530762,
0.22881658375263214,
-0.6219311356544495,
1.0118223428726196,
-0.4745568633079529,
1.1631287336349487,
-0.08619841933250427,
0.0506158247590065,
-0.23523379862308502,
0.499895840883255,
0.34248822927474976,
... |
func DecodeAuthSentCode(buf *bin.Buffer) (AuthSentCodeClass, error) {
id, err := buf.PeekID()
if err != nil {
return nil, err
}
switch id {
case AuthSentCodeTypeID:
// Decoding auth.sentCode#5e002502.
v := AuthSentCode{}
if err := v.Decode(buf); err != nil {
return nil, fmt.Errorf("unable to decode Auth... | [
-0.03892471641302109,
-0.9842385053634644,
0.10613270848989487,
-0.4890133738517761,
-0.38748523592948914,
-0.6168579459190369,
0.5459297299385071,
-0.8815975189208984,
0.6549966335296631,
0.15894025564193726,
-0.45418497920036316,
0.846737265586853,
-0.3382968604564667,
0.3624740540981293... |
func (b *AuthSentCodeBox) Decode(buf *bin.Buffer) error {
if b == nil {
return fmt.Errorf("unable to decode AuthSentCodeBox to nil")
}
v, err := DecodeAuthSentCode(buf)
if err != nil {
return fmt.Errorf("unable to decode boxed value: %w", err)
}
b.SentCode = v
return nil
} | [
-0.013802285306155682,
0.0916881412267685,
0.2996410131454468,
-0.1666359305381775,
-0.15173695981502533,
-0.43602117896080017,
0.4254932999610901,
-0.3915209472179413,
0.4504152238368988,
-0.24092170596122742,
-0.7196024060249329,
1.387819528579712,
-0.7186838388442993,
0.688622236251831,... |
func (b *AuthSentCodeBox) Encode(buf *bin.Buffer) error {
if b == nil || b.SentCode == nil {
return fmt.Errorf("unable to encode AuthSentCodeClass as nil")
}
return b.SentCode.Encode(buf)
} | [
-0.44752171635627747,
0.10933411866426468,
0.2510724365711212,
0.19822585582733154,
0.2835044860839844,
-0.11467082798480988,
0.5255951285362244,
-0.6305946707725525,
0.6318496465682983,
-0.1513177752494812,
-0.07033222168684006,
1.1793068647384644,
-0.6209699511528015,
0.9451213479042053,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.