text
stringlengths
11
6.3k
embedding
listlengths
768
768
func NewMockDraOp(ctrl *gomock.Controller) *MockDraOp { mock := &MockDraOp{ctrl: ctrl} mock.recorder = &MockDraOpMockRecorder{mock} return mock }
[ -0.5354828834533691, 0.7685666084289551, 0.3856683671474457, 0.31045904755592346, -0.01359737291932106, 0.07191165536642075, 0.9830301403999329, -0.1513012945652008, 0.49981820583343506, 0.04229593649506569, -0.2886045277118683, -0.5482120513916016, -0.15284667909145355, 0.1266338378190994...
func (_m *MockDraOp) EXPECT() *MockDraOpMockRecorder { return _m.recorder }
[ -0.655799150466919, 0.8141363859176636, 0.44203969836235046, 0.35096874833106995, -0.05345264822244644, 0.20971548557281494, 0.39451315999031067, 0.5208863615989685, 0.21650461852550507, -0.347638875246048, 0.8095146417617798, 0.40746209025382996, -0.18559801578521729, 0.18138980865478516,...
func (_m *MockDraOp) LookupFileById(id string) (*File, error) { ret := _m.ctrl.Call(_m, "LookupFileById", id) ret0, _ := ret[0].(*File) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.15361230075359344, 0.09922278672456741, 0.18889032304286957, 0.4613179862499237, 0.2587035000324249, 0.3784453570842743, 0.6705007553100586, -0.7669641971588135, -0.7692618370056152, -0.45135045051574707, -0.68295818567276, -1.415076732635498, -0.28489333391189575, 0.778616189956665, ...
func (_mr *MockDraOpMockRecorder) LookupFileById(arg0 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "LookupFileById", reflect.TypeOf((*MockDraOp)(nil).LookupFileById), arg0) }
[ 0.32201242446899414, 0.4017808437347412, 0.06532887369394302, 0.2013150006532669, -0.10047630965709686, 0.17018771171569824, -0.5120552182197571, -0.8898304104804993, 0.5064610838890076, 0.37637045979499817, 0.1129475012421608, -0.5539164543151855, -0.36669042706489563, 1.0816291570663452,...
func (_m *MockDraOp) LookupFileByMd5(md5 string, domain int64) (*File, error) { ret := _m.ctrl.Call(_m, "LookupFileByMd5", md5, domain) ret0, _ := ret[0].(*File) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.07719504088163376, 0.6112521290779114, 0.2805144786834717, 0.3717685043811798, -0.16318726539611816, 0.262050062417984, 1.568905234336853, -0.31755000352859497, -1.277633547782898, -0.07705431431531906, -0.6587424278259277, -1.126321792602539, -0.4258793592453003, 0.48990967869758606, ...
func (_mr *MockDraOpMockRecorder) LookupFileByMd5(arg0, arg1 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "LookupFileByMd5", reflect.TypeOf((*MockDraOp)(nil).LookupFileByMd5), arg0, arg1) }
[ 0.1623888611793518, 0.8304498791694641, 0.26907864212989807, -0.20793190598487854, -0.974707841873169, 0.3378547430038452, 0.4542030394077301, -0.5806410312652588, -0.34730014204978943, 0.7168248295783997, -0.013688132166862488, -0.36264222860336304, -0.4525453746318817, 0.6782490611076355...
func (_m *MockDraOp) SaveFile(f *File) error { ret := _m.ctrl.Call(_m, "SaveFile", f) ret0, _ := ret[0].(error) return ret0 }
[ -0.53021240234375, 0.7732308506965637, 0.2661714553833008, 0.8265548348426819, 1.5244381427764893, 0.8761915564537048, 1.5933442115783691, 0.7607572674751282, -1.450766921043396, 0.0458642840385437, -0.18372225761413574, -1.6667454242706299, -0.8848384618759155, 0.7592447400093079, -0.47...
func (_mr *MockDraOpMockRecorder) SaveFile(arg0 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "SaveFile", reflect.TypeOf((*MockDraOp)(nil).SaveFile), arg0) }
[ -0.04761992767453194, 1.0008280277252197, 0.23018839955329895, 0.35457471013069153, 0.5056747198104858, 0.8321360945701599, 0.4884873032569885, 0.11290048062801361, 0.09160059690475464, 0.37822186946868896, 0.4221930205821991, -0.2875671982765198, -1.003551959991455, 1.0607612133026123, ...
func (_m *MockDraOp) RemoveFile(id string) error { ret := _m.ctrl.Call(_m, "RemoveFile", id) ret0, _ := ret[0].(error) return ret0 }
[ -0.5485391616821289, 0.4723864197731018, 0.20968107879161835, 0.3673507273197174, 1.2692840099334717, 0.23120157420635223, 1.2847769260406494, 0.1863146722316742, -1.1327521800994873, -0.29565054178237915, -0.11361135542392731, -1.51126229763031, -1.1179052591323853, 0.6096314787864685, ...
func (_mr *MockDraOpMockRecorder) RemoveFile(arg0 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "RemoveFile", reflect.TypeOf((*MockDraOp)(nil).RemoveFile), arg0) }
[ -0.20706303417682648, 0.9445075988769531, 0.29167601466178894, 0.12946665287017822, 0.08222219347953796, 0.34748485684394836, 0.5713710784912109, 0.16704094409942627, -0.011511050164699554, 0.12767601013183594, 0.7591096758842468, -0.2389494776725769, -0.7448976635932922, 0.866915643215179...
func (_m *MockDraOp) SaveDupl(dupl *Dupl) error { ret := _m.ctrl.Call(_m, "SaveDupl", dupl) ret0, _ := ret[0].(error) return ret0 }
[ -0.667784571647644, 0.10734070837497711, 0.5930991768836975, 0.5394580960273743, 0.5048204660415649, 0.12003306299448013, 1.8347744941711426, 0.3992740213871002, 0.03510870784521103, 0.21534495055675507, -1.4623786211013794, -0.9394608736038208, -0.6669476628303528, 0.45494988560676575, ...
func (_mr *MockDraOpMockRecorder) SaveDupl(arg0 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "SaveDupl", reflect.TypeOf((*MockDraOp)(nil).SaveDupl), arg0) }
[ -0.29881513118743896, 0.6272420287132263, 0.5950229167938232, 0.36171984672546387, -0.08405183255672455, 0.4167773127555847, 0.6893830895423889, 0.27304607629776, 1.3232790231704712, 0.49559885263442993, -0.9696235656738281, 0.0672476515173912, -0.6195054054260254, 0.721924364566803, 0.2...
func (_m *MockDraOp) LookupDuplById(id string) (*Dupl, error) { ret := _m.ctrl.Call(_m, "LookupDuplById", id) ret0, _ := ret[0].(*Dupl) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.23667670786380768, 0.20338690280914307, 0.45210760831832886, 0.5629158020019531, 0.008958189748227596, 0.09988506883382797, 0.7243225574493408, -0.49040526151657104, 0.0340515673160553, 0.21448113024234772, -1.5607491731643677, -0.48505517840385437, 0.06121421977877617, 0.98870080709457...
func (_mr *MockDraOpMockRecorder) LookupDuplById(arg0 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "LookupDuplById", reflect.TypeOf((*MockDraOp)(nil).LookupDuplById), arg0) }
[ 0.20342668890953064, 0.5630075335502625, 0.20957663655281067, 0.030571017414331436, -0.24802672863006592, 0.0677139014005661, -0.27806153893470764, -0.8364413976669312, 1.2250906229019165, 1.0655258893966675, -0.8211724758148193, 0.21641167998313904, -0.18415802717208862, 1.112799406051635...
func (_m *MockDraOp) LookupDuplByRefid(rid string) []*Dupl { ret := _m.ctrl.Call(_m, "LookupDuplByRefid", rid) ret0, _ := ret[0].([]*Dupl) return ret0 }
[ -0.03905508294701576, 0.4162212014198303, 0.39108601212501526, -0.0069109657779335976, 0.3929811120033264, 0.1672467440366745, 0.668185830116272, -0.9243011474609375, 0.3452164828777313, 0.458746075630188, -0.7020953893661499, -0.23592470586299896, -0.2716082036495209, 1.2953559160232544, ...
func (_mr *MockDraOpMockRecorder) LookupDuplByRefid(arg0 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "LookupDuplByRefid", reflect.TypeOf((*MockDraOp)(nil).LookupDuplByRefid), arg0) }
[ 0.1712784618139267, 0.5909495949745178, 0.27729466557502747, -0.45760828256607056, 0.026249181479215622, -0.04559968039393425, -0.14793527126312256, -1.1857798099517822, 1.342113971710205, 1.2069554328918457, -0.0039634401910007, 0.7652093172073364, -0.19365258514881134, 1.3347511291503906...
func (_m *MockDraOp) RemoveDupl(id string) error { ret := _m.ctrl.Call(_m, "RemoveDupl", id) ret0, _ := ret[0].(error) return ret0 }
[ -0.26416510343551636, 0.2075161188840866, 0.5568876266479492, 0.2615252435207367, -0.22286413609981537, -0.2208482176065445, 1.5718575716018677, 0.7323728203773499, 0.5238520503044128, -0.2837875187397003, -1.2207872867584229, -0.7211545705795288, -1.116245985031128, 0.16162040829658508, ...
func (_mr *MockDraOpMockRecorder) RemoveDupl(arg0 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "RemoveDupl", reflect.TypeOf((*MockDraOp)(nil).RemoveDupl), arg0) }
[ -0.06555590778589249, 0.7817192077636719, 0.7319902181625366, 0.07617876678705215, -1.1099117994308472, 0.3150860369205475, 0.5262479186058044, 0.7046602368354797, 1.4596918821334839, 0.2959253191947937, -0.5245500206947327, 0.1672368347644806, -0.7968459129333496, 0.5505737066268921, 0....
func (_m *MockDraOp) SaveRef(ref *Ref) error { ret := _m.ctrl.Call(_m, "SaveRef", ref) ret0, _ := ret[0].(error) return ret0 }
[ -0.30431029200553894, -0.02050645463168621, 0.16087090969085693, 0.33243003487586975, 1.3631861209869385, 0.42283308506011963, 1.2889299392700195, -0.1431826651096344, -0.336580365896225, 0.8374388813972473, -0.6698751449584961, -0.6589546203613281, -1.000905990600586, 1.2029750347137451, ...
func (_mr *MockDraOpMockRecorder) SaveRef(arg0 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "SaveRef", reflect.TypeOf((*MockDraOp)(nil).SaveRef), arg0) }
[ -0.23191630840301514, 0.7872840762138367, 0.32123124599456787, 0.2941690683364868, 0.3685048520565033, 0.4576229453086853, 0.43662288784980774, -0.3140304982662201, 0.7839145660400391, 1.354079008102417, -0.22495011985301971, 0.30385035276412964, -0.7205317616462708, 1.379115343093872, 0...
func (_m *MockDraOp) LookupRefById(id string) (*Ref, error) { ret := _m.ctrl.Call(_m, "LookupRefById", id) ret0, _ := ret[0].(*Ref) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.19642485678195953, 0.2760240435600281, 0.20841623842716217, 0.035588588565588, 0.9437146186828613, -0.37332209944725037, -0.01907622069120407, -1.4508646726608276, -0.7944055199623108, -0.3623740077018738, -0.7521843910217285, -0.5243033766746521, -0.5610285997390747, 0.8713506460189819...
func (_mr *MockDraOpMockRecorder) LookupRefById(arg0 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "LookupRefById", reflect.TypeOf((*MockDraOp)(nil).LookupRefById), arg0) }
[ 0.15201744437217712, 0.7882934212684631, 0.16614995896816254, -0.17276810109615326, 0.485365629196167, -0.28120157122612, -0.8959137797355652, -1.525543451309204, 0.3737095296382904, 0.6252350211143494, -0.02600284293293953, 0.17843273282051086, -0.5917943120002747, 0.8538450598716736, 0...
func (_m *MockDraOp) RemoveRef(id string) error { ret := _m.ctrl.Call(_m, "RemoveRef", id) ret0, _ := ret[0].(error) return ret0 }
[ -0.255761057138443, 0.13929320871829987, 0.04179256036877632, 0.048069704324007034, 0.8773631453514099, -0.24494682252407074, 1.097609281539917, -0.13909034430980682, -0.4364205300807953, 0.4778844714164734, -0.5132399201393127, -0.6339884400367737, -0.701967179775238, 0.6262738108634949, ...
func (_mr *MockDraOpMockRecorder) RemoveRef(arg0 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "RemoveRef", reflect.TypeOf((*MockDraOp)(nil).RemoveRef), arg0) }
[ -0.2085767686367035, 0.8918729424476624, 0.35124871134757996, 0.024235758930444717, -0.2926652729511261, 0.01959298364818096, 0.43983206152915955, -0.021630896255373955, 0.5485210418701172, 1.1016265153884888, 0.19023878872394562, 0.40090835094451904, -0.4645094573497772, 1.014212608337402...
func (_m *MockDraOp) IncRefCnt(id string) (*Ref, error) { ret := _m.ctrl.Call(_m, "IncRefCnt", id) ret0, _ := ret[0].(*Ref) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.15176773071289062, -0.06068098917603493, 0.07879691570997238, 0.2067883461713791, 0.37117844820022583, -0.4611606001853943, 1.2855881452560425, -0.3710421621799469, -0.7035973072052002, -0.15818361937999725, -0.6162936687469482, -0.41688454151153564, 0.015532237477600574, 0.863858401775...
func (_mr *MockDraOpMockRecorder) IncRefCnt(arg0 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "IncRefCnt", reflect.TypeOf((*MockDraOp)(nil).IncRefCnt), arg0) }
[ 0.13409295678138733, 0.7417936325073242, 0.01078283041715622, 0.1941913664340973, -0.6219576597213745, -0.16619712114334106, 0.4766228199005127, -0.08640065044164658, 0.20844443142414093, 0.38723111152648926, 0.28310051560401917, 0.4382154047489166, 0.007241423707455397, 0.7087814807891846...
func (_m *MockDraOp) DecRefCnt(id string) (*Ref, error) { ret := _m.ctrl.Call(_m, "DecRefCnt", id) ret0, _ := ret[0].(*Ref) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.031859077513217926, 0.1929541379213333, 0.0787021815776825, -0.2068561166524887, 0.8907655477523804, -0.6856386065483093, 1.2334749698638916, -0.322232723236084, -1.0313618183135986, -0.43536168336868286, -0.5667794942855835, -0.5072252154350281, 0.18409551680088043, 1.0891464948654175,...
func (_mr *MockDraOpMockRecorder) DecRefCnt(arg0 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "DecRefCnt", reflect.TypeOf((*MockDraOp)(nil).DecRefCnt), arg0) }
[ 0.34457096457481384, 1.077576994895935, 0.09871732443571091, -0.3239596486091614, 0.26781123876571655, -0.14210009574890137, 0.18902090191841125, -0.09403864294290543, 0.05213392898440361, 0.08368232101202011, 0.24394491314888, 0.4147914946079254, 0.15739376842975616, 1.0815110206604004, ...
func (_m *MockDraOp) HealthCheck(node string) error { ret := _m.ctrl.Call(_m, "HealthCheck", node) ret0, _ := ret[0].(error) return ret0 }
[ -0.05732113495469093, 0.7552255988121033, 0.1886584609746933, 0.5271238684654236, 1.312957525253296, 0.3380882143974304, 1.3024766445159912, -0.19813230633735657, -1.2702479362487793, -0.7191566824913025, 0.42267149686813354, -0.257764607667923, 0.32737529277801514, 0.3676934242248535, 0...
func (_mr *MockDraOpMockRecorder) HealthCheck(arg0 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "HealthCheck", reflect.TypeOf((*MockDraOp)(nil).HealthCheck), arg0) }
[ 0.45779675245285034, 0.9188355207443237, 0.08937925100326538, 0.40070226788520813, 0.4250161945819855, 0.5506144762039185, 0.5390664935112, -0.9098851084709167, 0.5698670744895935, 0.06082145497202873, 0.9758543968200684, 0.8426888585090637, 0.15862955152988434, 0.6857740879058838, 0.122...
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router) { registerQueryRoutes(cliCtx, r) registerTxRoutes(cliCtx, r) }
[ -0.27243292331695557, 1.3494940996170044, 0.21927303075790405, -0.5208966135978699, -0.01947941817343235, 0.3970155715942383, -0.7508671283721924, 0.3642658293247223, 0.1575954258441925, 0.1897260993719101, -0.19613677263259888, -0.3936476707458496, 0.11040069162845612, 0.17390479147434235...
func (t Task) ApplyLabel(node *cgraph.Node) { if t.Driver == Driver_GitHub { for _, label := range t.HasLabel { s, _ := strings.CutPrefix(label.String(), t.HasOwner.String()+"/labels/") for _, dl := range depvizLabels { if s == dl.label { node.SetStyle(cgraph.NodeStyle(dl.style)) node.SetColor(dl...
[ -0.355918288230896, -0.20375783741474152, 0.500274121761322, -0.18916141986846924, 0.6200367212295532, 0.6109757423400879, 0.24979080259799957, 1.5010206699371338, 0.20594695210456848, 0.3388965427875519, 0.9122084379196167, 0.18398833274841309, 0.5625433325767517, 1.1034928560256958, -0...
func IsSuperset(one Set, other Set) bool { if one == nil || other == nil { return false } oneLen := one.Len() otherLen := other.Len() if oneLen == 0 || oneLen == otherLen { return false } if oneLen > 0 && otherLen == 0{ return true } for _, v := range other.Elements() { if !one.Contains(v){ return f...
[ -0.5833160877227783, 0.34597301483154297, 0.8881450891494751, 0.22784028947353363, -0.3372872769832611, -0.3983788788318634, -0.5125231146812439, -0.04735972359776497, 0.5246700644493103, -0.47256264090538025, -0.7343175411224365, 0.9269646406173706, -0.11572515219449997, 0.423775851726532...
func Union(one Set, other Set) Set { if other == nil && one == nil { return nil } if other == nil { return one.Copy() } if one == nil { return other.Copy() } oneLen := one.Len() otherLen := other.Len() if oneLen == 0{ return other.Copy() } if otherLen == 0{ return one.Copy() } copyset := other.Co...
[ -0.6327183246612549, 0.3171311616897583, 0.9153730869293213, 0.08487822115421295, -0.7048652768135071, -0.9070876240730286, -0.2503148019313812, -0.2323472946882248, 0.7493772506713867, -0.22843524813652039, 0.16153505444526672, 0.9298060536384583, 0.10874440521001816, -0.2444126307964325,...
func Intersect(one Set, other Set) Set { if one == nil || other == nil { return nil } oneLen := one.Len() otherLen := other.Len() if oneLen == 0 || otherLen == 0{ return nil } if oneLen >= otherLen { copyset := other.Copy() for _, key := range copyset.Elements(){ if !one.Contains(key){ copyset.Rem...
[ 0.3168911635875702, 0.14631247520446777, 1.1237437725067139, 0.27712157368659973, -1.3662841320037842, -0.5301210880279541, -0.8509292602539062, -0.5632754564285278, -0.144764244556427, 0.6765186786651611, 0.45566701889038086, -0.06439785659313202, -0.382241815328598, 0.14066004753112793, ...
func Difference(one Set, other Set) Set { if other == nil && one == nil { return nil } if other == nil { return one.Copy() } if one == nil { return nil } oneLen := one.Len() otherLen := other.Len() if oneLen == 0 || otherLen == 0{ return one.Copy() } copyset := one.Copy() for _, key := range copyset...
[ -0.3046860694885254, 0.09603230655193329, 0.8790177702903748, 0.3683379292488098, -0.9895247220993042, -0.657430112361908, -0.15272989869117737, -0.3480761647224426, 0.8503293395042419, -0.294413685798645, 0.1474212110042572, 0.4513428509235382, 0.21114754676818848, 0.3784388601779938, 1...
func SummetricDifference(one Set, other Set) Set { if other == nil && one == nil { return nil } if other == nil { return one.Copy() } if one == nil { return other.Copy() } oneLen := one.Len() otherLen := other.Len() if oneLen == 0 { return other.Copy() } if otherLen == 0{ return one.Copy() } unio...
[ -0.3896482586860657, 0.6007246375083923, 0.9743949174880981, 0.5817298293113708, -0.18261703848838806, -0.03199215605854988, 0.40741056203842163, -0.823797881603241, -0.18889330327510834, 0.01998469978570938, 0.3959750235080719, 0.23118676245212555, -0.8308295607566833, -0.557028591632843,...
func (p PlatziCourse) Subscribe(name string){ fmt.Printf("La persona %s se ha registrado al curso %s", name, p.Name) }
[ 0.5958115458488464, -0.2462179809808731, 0.49109402298927307, 0.11133306473493576, 0.035227201879024506, 0.5435661673545837, -0.8508078455924988, 0.1723422259092331, -0.12394979596138, -0.04959447681903839, -0.579042375087738, 0.7086964845657349, -0.08805007487535477, -0.17768658697605133,...
func (p PlatziCareer) Subscribe(name string){ fmt.Printf("La persona %s se ha registrado a la carrera %s", name, p.Name) }
[ 0.52464359998703, -0.24414031207561493, 0.47860395908355713, 0.350985050201416, -0.37141525745391846, 0.3640691637992859, -1.2763642072677612, 0.07835659384727478, -0.3445245623588562, -0.18163231015205383, -0.5621474981307983, 0.412150502204895, -0.29842090606689453, 0.10693547129631042, ...
func NewOperationGenerator(recorder record.EventRecorder) OperationGenerator { return &operationGenerator{ recorder: recorder, } }
[ -0.33865052461624146, 0.3720718324184418, 0.43852120637893677, 0.4034772217273712, -1.6817901134490967, -1.0244430303573608, 0.3580479323863983, 0.3081606328487396, 0.25851354002952576, 0.04061593860387802, -0.1833975464105606, -2.155925750732422, -0.27668896317481995, 0.49349409341812134,...
func dial(unixSocketPath string, timeout time.Duration) (registerapi.RegistrationClient, *grpc.ClientConn, error) { ctx, cancel := context.WithTimeout(context.Background(), timeout) defer cancel() c, err := grpc.DialContext(ctx, unixSocketPath, grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.With...
[ -0.331978976726532, 0.584618091583252, 0.8470454216003418, 0.02978353574872017, 0.07874594628810883, 0.1239609494805336, -0.4147699773311615, 0.2618364691734314, 0.35691314935684204, 0.2472742646932602, 0.053659919649362564, 1.9515247344970703, -0.27052026987075806, -0.4004089832305908, ...
func (mc *manifestCache) Get(db string) (contents manifestContents, t time.Time, present bool) { mc.mu.Lock() defer mc.mu.Unlock() if entry, ok := mc.entry(db); ok { contents, t, present = entry.contents, entry.t, true } return }
[ -0.5665621161460876, -0.6827613711357117, 0.4654157757759094, -0.4916175305843353, -0.6855480074882507, -0.4088154435157776, -1.2817398309707642, 0.41471338272094727, -0.43520259857177734, 0.5994300246238708, 0.09939936548471451, -0.840932309627533, 0.042214274406433105, 0.4358023703098297...
func (mc *manifestCache) entry(key string) (manifestCacheEntry, bool) { entry, ok := mc.cache[key] if !ok { return manifestCacheEntry{}, false } mc.lru.MoveToBack(entry.lruEntry) return entry, true }
[ 0.02234426699578762, -0.5165479779243469, 0.5195990800857544, -0.6138588786125183, -0.6700637936592102, -0.08927187323570251, -0.45051881670951843, 0.1346684694290161, 0.5982415080070496, 0.9360453486442566, 0.4383733868598938, 0.29482731223106384, -0.46854549646377563, 0.32158610224723816...
func (mc *manifestCache) Put(db string, contents manifestContents, t time.Time) error { mc.mu.Lock() defer mc.mu.Unlock() if entry, ok := mc.entry(db); ok { mc.totalSize -= entry.contents.size() mc.lru.Remove(entry.lruEntry) delete(mc.cache, db) } if contents.size() <= mc.maxSize { newEl := mc.lru.PushBa...
[ -0.030023086816072464, 0.11058187484741211, 0.5137391686439514, -1.011908769607544, -1.2824620008468628, 0.07495439052581787, -0.7707016468048096, 0.9059783816337585, -0.28953874111175537, 0.3798336386680603, 0.2620231509208679, -0.3763573169708252, -0.7058190703392029, 0.0822979286313057,...
func (mc *manifestCache) Delete(db string) { mc.mu.Lock() defer mc.mu.Unlock() if entry, ok := mc.entry(db); ok { mc.totalSize -= entry.contents.size() mc.lru.Remove(entry.lruEntry) delete(mc.cache, db) } return }
[ 0.8519050478935242, 0.09397171437740326, 0.3831092417240143, -0.29394567012786865, -0.8285247683525085, -0.16956114768981934, -0.24103404581546783, 0.9189128279685974, 0.8179419636726379, 0.40535417199134827, 0.3897927701473236, -0.554068922996521, -1.2936718463897705, 0.7113251090049744, ...
func (o *CreateAwsCloudAccountAsyncReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewCreateAwsCloudAccountAsyncAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, ...
[ 0.2976185083389282, -0.621637761592865, 0.6130282878875732, 0.34486785531044006, 0.49291688203811646, -1.0562127828598022, 0.3353729248046875, -0.46126577258110046, 0.6048441529273987, 0.5181592702865601, 1.0638580322265625, 0.0011401267256587744, -0.3720957636833191, -0.41886740922927856,...
func NewCreateAwsCloudAccountAsyncAccepted() *CreateAwsCloudAccountAsyncAccepted { return &CreateAwsCloudAccountAsyncAccepted{} }
[ 1.1311935186386108, 0.38486000895500183, 0.11440974473953247, -0.24809613823890686, -0.7045630216598511, 0.02930350974202156, 0.8185155391693115, 0.0027261171489953995, 0.36616966128349304, 0.21685321629047394, 0.18058466911315918, 0.7139245271682739, 1.0640789270401, 0.6807840466499329, ...
func (o *CreateAwsCloudAccountAsyncAccepted) IsSuccess() bool { return true }
[ 0.8783178925514221, 0.5240129232406616, 0.48173773288726807, 0.09687463194131851, -0.22514021396636963, 0.38582900166511536, 0.4393102526664734, 0.15969328582286835, 0.9265589118003845, 0.6690195202827454, 0.12450703233480453, 0.6233895421028137, 0.9325076341629028, 0.2879100739955902, 1...
func (o *CreateAwsCloudAccountAsyncAccepted) IsRedirect() bool { return false }
[ 0.6274191737174988, 0.5805631875991821, 0.42135703563690186, 0.19569571316242218, -0.28822043538093567, 0.7229032516479492, 0.8438035845756531, -0.1533723920583725, 1.4585726261138916, -0.08036769926548004, 0.45976248383522034, 0.8527836203575134, 0.12199082970619202, 0.2640824317932129, ...
func (o *CreateAwsCloudAccountAsyncAccepted) IsCode(code int) bool { return code == 202 }
[ 0.3195280134677887, 0.2833250164985657, 0.36406999826431274, -0.24547621607780457, -0.07917176932096481, 0.0015401385026052594, 0.20220361649990082, -0.12819284200668335, 1.1850136518478394, 0.6413717865943909, 0.5357198119163513, 0.940696120262146, 0.2852161228656769, 0.6040501594543457, ...
func NewCreateAwsCloudAccountAsyncBadRequest() *CreateAwsCloudAccountAsyncBadRequest { return &CreateAwsCloudAccountAsyncBadRequest{} }
[ 0.33973240852355957, 0.5154436826705933, 0.4210173785686493, 0.30881744623184204, 0.40874946117401123, -0.5154818296432495, 0.2396266758441925, -0.3242339789867401, 0.16830678284168243, 0.5187411904335022, 0.9377943277359009, 0.4882129430770874, 0.6703523993492126, 0.9906185865402222, 1....
func (o *CreateAwsCloudAccountAsyncBadRequest) IsSuccess() bool { return false }
[ -0.21708448231220245, 0.40132880210876465, 0.42154741287231445, 0.6207677721977234, 0.9371883869171143, 0.20545393228530884, -0.06373593211174011, -0.734705924987793, 0.33974188566207886, 0.3790079951286316, 0.9862197041511536, 0.6320972442626953, 0.2953609526157379, 0.23680205643177032, ...
func (o *CreateAwsCloudAccountAsyncBadRequest) IsRedirect() bool { return false }
[ -0.2795744836330414, 0.39928895235061646, 0.4632435142993927, 0.6049351096153259, 0.8903138637542725, 0.48870235681533813, 0.401478111743927, -0.9103436470031738, 0.9507231712341309, -0.323914110660553, 1.1397815942764282, 0.8609546422958374, -0.43171632289886475, 0.21144750714302063, 1....
func (o *CreateAwsCloudAccountAsyncBadRequest) IsCode(code int) bool { return code == 400 }
[ -0.3247491121292114, 0.407392680644989, 0.4013727903366089, 0.18613989651203156, 1.2040252685546875, 0.03762751445174217, -0.5029408931732178, -0.938006579875946, 0.7655914425849915, 0.46506956219673157, 1.2144367694854736, 0.9535865783691406, -0.4359873831272125, 0.7441924214363098, 1.0...
func NewCreateAwsCloudAccountAsyncForbidden() *CreateAwsCloudAccountAsyncForbidden { return &CreateAwsCloudAccountAsyncForbidden{} }
[ 0.9299013018608093, 1.0053353309631348, 0.23969940841197968, 0.45651260018348694, 0.05370417609810829, -0.0693202018737793, 1.0845752954483032, -0.933601438999176, 0.3295406401157379, -0.48610255122184753, 0.385916531085968, 0.5244228839874268, 0.9576659798622131, 0.19287274777889252, 1....
func (o *CreateAwsCloudAccountAsyncForbidden) IsSuccess() bool { return false }
[ 0.7305544018745422, 0.8840639591217041, 0.5158633589744568, 0.6809697151184082, 0.30872780084609985, 0.3866634964942932, 0.5388321280479431, -1.0406228303909302, 0.49578937888145447, -0.12484465539455414, 0.41211140155792236, 0.6725291609764099, 0.6889040470123291, -0.09908138960599899, ...
func (o *CreateAwsCloudAccountAsyncForbidden) IsRedirect() bool { return false }
[ 0.7412608861923218, 0.9700747728347778, 0.4720624089241028, 0.7272413969039917, 0.24083305895328522, 0.5360512137413025, 0.8879626989364624, -1.0560319423675537, 1.007890224456787, -0.6257586479187012, 0.7463273406028748, 0.917438805103302, 0.08640070259571075, -0.011196165345609188, 1.4...
func (o *CreateAwsCloudAccountAsyncForbidden) IsCode(code int) bool { return code == 403 }
[ 0.5684977173805237, 0.7569031715393066, 0.3379892408847809, 0.09327778965234756, 0.759893000125885, 0.03971005976200104, 0.4834645092487335, -1.1671236753463745, 0.6395671963691711, 0.07548805326223373, 0.9093909859657288, 0.9325089454650879, 0.01987445168197155, 0.21476420760154724, 1.4...
func hasHorizontalPodAutoscaler(obj base.KComponent) sets.String { return sets.NewString( "webhook", "activator", "3scale-kourier-gateway", ) }
[ 0.6284953951835632, -0.6200569272041321, 0.43093442916870117, 0.508903443813324, 0.32054004073143005, 0.44676336646080017, -1.1270349025726318, 0.10220850259065628, -0.7459530234336853, 0.7259681820869446, -0.7440957427024841, 0.05744362249970436, 0.3418329358100891, 0.44672954082489014, ...
func HighAvailabilityTransform(obj base.KComponent, log *zap.SugaredLogger) mf.Transformer { return func(u *unstructured.Unstructured) error { // Use spec.deployments.replicas for the deployment instead of spec.high-availability. for _, override := range obj.GetSpec().GetWorkloadOverrides() { if override.Replic...
[ -0.3295831084251404, -0.17043158411979675, 0.7012627720832825, -0.34056633710861206, 0.3141421675682068, -0.25855740904808044, 0.3397243916988373, 0.6081861853599548, 0.5096431970596313, 0.35703665018081665, -0.7232431173324585, -0.005229426547884941, 0.725998044013977, 0.312420129776001, ...
func Minify(m *minify.M, w io.Writer, r io.Reader, params map[string]string) error { return (&Minifier{}).Minify(m, w, r, params) }
[ -0.0862404853105545, -0.887467086315155, 0.2970730662345886, 0.003946265205740929, 0.21571387350559235, -0.7837284207344055, -0.7442331314086914, 0.02182202972471714, -1.0759204626083374, 0.20466424524784088, -0.23140591382980347, -0.03807637467980385, -0.5603891015052795, 1.04471158981323...
func (t Token) Equal(t2 Token) bool { if t.TokenType == t2.TokenType && bytes.Equal(t.Data, t2.Data) && len(t.Args) == len(t2.Args) { for i := 0; i < len(t.Args); i++ { if t.Args[i].TokenType != t2.Args[i].TokenType || !bytes.Equal(t.Args[i].Data, t2.Args[i].Data) { return false } } return true } ret...
[ -0.9336940050125122, -0.11014445126056671, 0.6825810074806213, -0.8811407685279846, 0.6776829957962036, 0.16965621709823608, -0.7750562429428101, -0.6125016808509827, -1.5851722955703735, 0.4300379157066345, -1.5625494718551636, 0.8212272524833679, -0.7132570147514343, 0.8210304975509644, ...
func (t Token) IsZero() bool { // as each number is already minified, starting with a zero means it is zero return (t.TokenType == css.DimensionToken || t.TokenType == css.PercentageToken || t.TokenType == css.NumberToken) && t.Data[0] == '0' }
[ -0.3058930039405823, -0.6310491561889648, 0.34900328516960144, 0.6904929876327515, 0.220675989985466, -0.053820256143808365, -0.7869419455528259, 0.33480146527290344, 0.25882986187934875, -0.0048484522849321365, -0.8547220230102539, 0.4751327931880951, -0.3721081614494324, 0.75985503196716...
func (t Token) IsLength() bool { if t.TokenType == css.DimensionToken { return true } else if t.TokenType == css.NumberToken && t.Data[0] == '0' { return true } else if t.TokenType == css.FunctionToken { fun := ToHash(t.Data[:len(t.Data)-1]) if fun == Calc || fun == Min || fun == Max || fun == Clamp || fun =...
[ 0.41784587502479553, -0.33496788144111633, 0.5058964490890503, -0.2802557051181793, -0.15440812706947327, 0.4177345633506775, -0.8458753824234009, -0.522506058216095, 0.5168276429176331, -0.15791930258274078, -0.7541841268539429, 0.12899182736873627, 0.03457231819629669, 0.6353228092193604...
func (t Token) IsLengthPercentage() bool { return t.TokenType == css.PercentageToken || t.IsLength() }
[ 0.4220786988735199, -0.39297720789909363, 0.17059320211410522, -0.7127638459205627, 0.03764873370528221, 0.44952592253685, -1.3714741468429565, -0.6249291896820068, 0.5617521405220032, 1.287570834159851, -0.03312205523252487, -1.6286367177963257, -0.49288710951805115, 0.5238277316093445, ...
func (o *Minifier) Minify(m *minify.M, w io.Writer, r io.Reader, params map[string]string) error { o.newPrecision = o.Precision if o.newPrecision <= 0 || 15 < o.newPrecision { o.newPrecision = 15 // minimum number of digits a double can represent exactly } z := parse.NewInput(r) defer z.Restore() isInline := ...
[ -0.385553240776062, -0.04969062656164169, 0.5660386085510254, 0.07372455298900604, -0.34150633215904236, -0.35336729884147644, 0.3527340292930603, 0.06175873056054115, -0.6621394753456116, 0.024643143638968468, -0.9885252118110657, 0.09536811709403992, -0.3132779896259308, 0.78808587789535...
func List(client *gophercloud.ServiceClient) pagination.Pager { createPage := func(r pagination.PageResult) pagination.Page { return RolePage{pagination.SinglePageBase(r)} } return pagination.NewPager(client, rootURL(client), createPage) }
[ 0.3637681305408478, -0.527753472328186, 0.6360381245613098, -1.1026297807693481, 1.154126763343811, -0.42016106843948364, -0.5239688158035278, 0.6283007264137268, -0.06771674007177353, 0.5382499098777771, 0.4328451156616211, 0.27096250653266907, 0.011114141903817654, 1.4387454986572266, ...
func AddUserRole(client *gophercloud.ServiceClient, tenantID, userID, roleID string) UserRoleResult { var result UserRoleResult _, result.Err = client.Put(userRoleURL(client, tenantID, userID, roleID), nil, nil, nil) return result }
[ -0.23705002665519714, 0.5925952792167664, 0.48008033633232117, 0.36929070949554443, -0.1637285053730011, 0.19921699166297913, -0.6024543046951294, -0.21729156374931335, 0.0805019661784172, -0.026409225538372993, -0.023528004065155983, -0.04893418774008751, -0.9642380475997925, 0.3611605167...
func DeleteUserRole(client *gophercloud.ServiceClient, tenantID, userID, roleID string) UserRoleResult { var result UserRoleResult _, result.Err = client.Delete(userRoleURL(client, tenantID, userID, roleID), nil) return result }
[ -0.007078803610056639, -0.025966664776206017, 0.18791665136814117, 0.6736649870872498, -0.1875799000263214, -0.3312060236930847, -0.0031128248665481806, -0.44220003485679626, 0.2885080575942993, 0.012022976763546467, 0.09244661033153534, 0.40223434567451477, -0.7812739014625549, 0.60384738...
func TestPackDataNsec(t *testing.T) { type args struct { bitmap []uint16 msg []byte off int } tests := []struct { name string args args want int wantErr bool wantErrMsg string }{ { name: "overflow", args: args{ bitmap: []uint16{ 8962, 8963, 8970, 8971, 897...
[ 1.05246102809906, 0.46061187982559204, 0.9834082722663879, -0.5357945561408997, 0.21492193639278412, -0.24996629357337952, 0.703389048576355, -1.1776949167251587, 0.58141028881073, -0.5159967541694641, -0.7731246948242188, 0.2822457551956177, -0.07097206264734268, 0.8560383319854736, 0.4...
func Atol(level string) logging.Level { var logLevel logging.Level switch strings.ToLower(level) { case "error": logLevel = logging.Error case "info": logLevel = logging.Info case "warn": logLevel = logging.Warn case "debug": logLevel = logging.Debug case "trace": logLevel = logging.Trace default: l...
[ 0.722846269607544, -0.843706488609314, 0.783379316329956, -1.5045751333236694, -0.4099360704421997, 0.28481656312942505, -0.4600931704044342, -0.6179495453834534, -0.05027032271027565, 0.3981247544288635, -0.7093791365623474, 0.16161035001277924, 0.781866729259491, -0.9472283124923706, 0...
func NewItems() *Items { return &Items{ Stack: make([]*pageloader.Request, 0, 1), Seen: make(map[string]bool), } }
[ -0.5079476237297058, -0.17414334416389465, 0.14872010052204132, 0.10949576646089554, -0.4657045602798462, -0.39661988615989685, -0.24801784753799438, -0.6047707796096802, -0.316240519285202, -0.201772078871727, -0.132003515958786, 0.2503665089607239, 0.05244061350822449, 0.5586416125297546...
func (qi *Items) Add(r *pageloader.Request) { if qi.haveSeen(r.URL) { return } qi.Lock() log.Println("adding request to the queue") qi.Stack = append(qi.Stack, r) qi.Seen[r.URL] = true qi.Length++ log.Printf("queue length now: %d\n", qi.Length) qi.Unlock() }
[ -1.1162110567092896, -0.029032917693257332, 0.49932774901390076, -0.6313645243644714, 0.38875171542167664, 0.41914087533950806, -0.501887321472168, -0.45911693572998047, 0.6026904582977295, -0.5643231272697449, -0.23189346492290497, 0.19817489385604858, -0.1647469699382782, 0.9599182009696...
func (qi *Items) Next() *pageloader.Request { qi.Lock() log.Println("pulling request from the queue") if qi.Length == 0 { log.Println("nothing in the queue") return nil } t := qi.Stack[0] tCopy := *t qi.Stack = qi.Stack[1:] qi.Length-- log.Printf("queue length now: %d\n", qi.Length) qi.Unlock() return &t...
[ -0.6290327906608582, -0.008133876137435436, 0.5286087989807129, -0.04022541642189026, -0.792743980884552, -0.1822914332151413, -1.0851209163665771, -0.8615356683731079, 0.4553057849407196, -0.22358261048793793, 0.5308544635772705, 0.48629826307296753, -0.47079458832740784, -0.0012579432222...
func (qi *Items) Len() int { qi.RLock() c := qi.Length log.Printf("queue length: %d\n", c) qi.RUnlock() return c }
[ -0.3249693214893341, -0.40541568398475647, 0.08542338013648987, -0.7251707911491394, 0.25064367055892944, -0.6691071391105652, 0.9087607264518738, 0.32304343581199646, -0.41584932804107666, -0.6581014394760132, -1.0690486431121826, 0.19200927019119263, 0.07804078608751297, -0.1941584348678...
func (m *MockSession) Auth() error { args := m.Mock.Called() return args.Error(0) }
[ -0.7674666047096252, -0.15641242265701294, 0.421522855758667, 1.292155385017395, 0.6196208000183105, 0.6068055033683777, 1.6089388132095337, 0.1812571883201599, 0.36912181973457336, -0.07325582951307297, -0.06727635860443115, 0.7830238342285156, 0.05786534771323204, -0.2678082585334778, ...
func (m *MockSession) ReadMap(name string) (map[string]interface{}, error) { args := m.Mock.Called(name) return args.Get(0).(map[string]interface{}), args.Error(1) }
[ -0.939730703830719, -0.8365238308906555, 1.0119444131851196, 0.3265696167945862, -0.2915450930595398, 0.4682299792766571, 0.37542375922203064, 0.20822957158088684, 0.5829671621322632, 0.6316999793052673, 0.4401918053627014, -0.2321595996618271, -0.08668240159749985, -0.30381256341934204, ...
func (m *MockSession) ReadData(name string) (*api.Secret, error) { args := m.Mock.Called(name) return args.Get(0).(*api.Secret), args.Error(1) }
[ -1.1206450462341309, -0.341560959815979, 0.7899934649467468, 0.23616287112236023, -0.23093484342098236, 0.6742992401123047, -0.21393239498138428, 0.13113948702812195, 0.395877867937088, 0.028270844370126724, -0.5607679486274719, 0.29271119832992554, -0.07473090291023254, -0.201261639595031...
func (m *MockSession) Renew(id string, interval int) (*api.Secret, error) { args := m.Mock.Called(id, interval) return args.Get(0).(*api.Secret), args.Error(1) }
[ -0.44770246744155884, -0.6991782188415527, 0.6217862963676453, 0.615639865398407, -0.23884394764900208, 0.17430716753005981, -1.17854905128479, -0.19583573937416077, -0.4731319546699524, -0.1847003996372223, -1.0339049100875854, 0.8076579570770264, -0.22018128633499146, -0.2218651175498962...
func (m *MockSession) RenewDataForever(secret *api.Secret, interval int, callback func()) { m.Mock.Called(secret, interval, callback) return }
[ 0.42191922664642334, -0.002608885057270527, 0.6044834852218628, 0.781602144241333, 0.22369006276130676, 0.6834244132041931, -0.9584937691688538, -0.05507725849747658, -0.31452780961990356, -0.7544547319412231, -0.7148278951644897, 0.3395405411720276, -0.08061359822750092, 0.349914997816085...
func (m *MockSession) WriteMapData(name string, data map[string]interface{}) error { args := m.Mock.Called(name, data) return args.Error(0) }
[ -2.0323143005371094, -1.2425451278686523, 0.7326374650001526, -0.3511868715286255, -0.25767797231674194, 0.8309766054153442, -0.16859982907772064, 0.366934210062027, 0.713030993938446, -0.2595677673816681, -1.0163201093673706, -0.563539981842041, -0.4985158145427704, 0.4079785645008087, ...
func (m *MockSession) GetVaultClient() *api.Client { args := m.Mock.Called() return args.Get(0).(*api.Client) }
[ 0.3837260901927948, -0.3815774917602539, 0.40795931220054626, 1.0930428504943848, 0.14645841717720032, -0.09332729876041412, 1.0559500455856323, -1.073988914489746, 0.17019909620285034, 0.002415865194052458, -0.5287117958068848, 1.0870182514190674, -0.09534250199794769, -0.6156591176986694...
func New() (*Client, error) { cs, err := newClients() if err != nil { return nil, err } return &Client{ cs: cs, }, nil }
[ 0.18374593555927277, -0.8966590762138367, -0.13194610178470612, 0.2969145178794861, -0.14949952065944672, -0.030635995790362358, 0.37199193239212036, -0.6128160357475281, -0.7035762071609497, -0.4010689854621887, -0.29060304164886475, 0.7542036771774292, 0.36338329315185547, 0.091476552188...
func newClients() ([]wgClient, error) { var cs []wgClient // TODO(mdlayher): smarter detection logic than just the OS in use. if runtime.GOOS == "linux" { nlc, err := wgnl.New() if err != nil { return nil, err } // Netlink devices seem to appear first in wg(8). cs = append(cs, nlc) } cfgc, err := wg...
[ -0.6918670535087585, -0.2762826383113861, 0.3044527471065521, 0.39204171299934387, 0.11796408146619797, -0.4679037034511566, 0.2652110159397125, -0.8580153584480286, -0.04762430116534233, 0.022384539246559143, 0.5189882516860962, 0.6763271689414978, -0.4343104064464569, 1.2666994333267212,...
func (c *Client) Close() error { for _, wgc := range c.cs { if err := wgc.Close(); err != nil { return err } } return nil }
[ -0.3219900131225586, 0.2596047818660736, 0.49383047223091125, 0.31385180354118347, 0.36913466453552246, 0.4586001932621002, 0.6464787721633911, -1.2901617288589478, -1.666583776473999, 0.04916750639677048, 0.8699371814727783, -0.11680959910154343, -0.8525155186653137, 1.3249549865722656, ...
func (c *Client) Devices() ([]*wgtypes.Device, error) { var out []*wgtypes.Device for _, wgc := range c.cs { devs, err := wgc.Devices() if err != nil { return nil, err } out = append(out, devs...) } return out, nil }
[ -1.1348745822906494, 0.17076855897903442, 0.2480224370956421, 0.7254495024681091, 0.7430299520492554, 0.3342529535293579, 0.6857374906539917, -0.5892584919929504, -0.3134002685546875, -0.2442273050546646, 0.3303717374801636, 0.8759544491767883, -0.44683125615119934, 1.6113616228103638, 0...
func (c *Client) Device(name string) (*wgtypes.Device, error) { for _, wgc := range c.cs { d, err := wgc.Device(name) switch { case err == nil: return d, nil case os.IsNotExist(err): continue default: return nil, err } } return nil, os.ErrNotExist }
[ -0.9823561906814575, 0.1231364980340004, 0.4556766450405121, 0.7150794267654419, 0.06616582721471786, 0.15312054753303528, 0.7595707178115845, -1.3337539434432983, -0.5524953007698059, -0.16328133642673492, 0.47762322425842285, 0.3835848271846771, -0.24854595959186554, 1.074440360069275, ...
func (c *Client) ConfigureDevice(name string, cfg wgtypes.Config) error { for _, wgc := range c.cs { err := wgc.ConfigureDevice(name, cfg) switch { case err == nil: return nil case os.IsNotExist(err): continue default: return err } } return os.ErrNotExist }
[ -1.0095304250717163, 0.28427356481552124, 0.5813791155815125, 0.6223263740539551, 0.42199406027793884, -0.5533282160758972, 0.29947322607040405, -0.416441410779953, -0.9399968981742859, 0.3424700200557709, 0.1528073251247406, -0.7967368364334106, -0.6174168586730957, 1.424882411956787, 0...
func mockPasswordHasher(x string) *crypto.PasswordHasher { return &crypto.PasswordHasher{ Swapper: passwap.NewSwapper(plainHasher{x: x}), Prefixes: []string{"$plain$"}, } }
[ -0.9550391435623169, 0.2009367048740387, 0.35276347398757935, -0.652917742729187, -1.553298830986023, 0.8472408652305603, -0.4913872480392456, 0.7665694952011108, 0.5755788683891296, -0.14615273475646973, -0.9349228739738464, -0.6166268587112427, -0.45144447684288025, 0.23068867623806, 0...
func New(config *connect.Config) Db { var db Db // first find db in dbMap by DatabaseName db = dbMap[config.DatabaseName] // find if db != nil { return db } // not find in dbMap - New switch config.DbType { case connect.MONGODB: // init mongodb db = mongo.New(config) } dbMap[config.DatabaseName] = db ...
[ -0.09551961719989777, -0.12756235897541046, 0.5866174101829529, 0.5158923864364624, -0.07859105616807938, 0.2778472304344177, 0.1549827754497528, -0.06658770889043808, 0.27882012724876404, 0.688429594039917, -0.003102453425526619, -0.32156381011009216, -0.7957454919815063, 1.30422329902648...
func decodeDNS(data []byte, p gopacket.PacketBuilder) error { d := &DNS{} err := d.DecodeFromBytes(data, p) if err != nil { return err } p.AddLayer(d) p.SetApplicationLayer(d) return nil }
[ -0.033221419900655746, 1.2004159688949585, 0.1501031070947647, -0.47202762961387634, -0.20644722878932953, 0.20067818462848663, -1.0568851232528687, -0.08002154529094696, 1.8684465885162354, -1.3598402738571167, -0.8944206833839417, 1.154310703277588, 0.23992197215557098, 0.237956479191780...
func (d *DNS) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { d.buffer = d.buffer[:0] if len(data) < 12 { df.SetTruncated() return errDNSPacketTooShort } // since there are no further layers, the baselayer's content is // pointing to this layer d.BaseLayer = BaseLayer{Contents: data[:len(da...
[ 0.43922048807144165, -0.028788041323423386, 0.6379406452178955, -0.8741658926010132, 0.11337091028690338, 0.06037389487028122, 0.19907376170158386, -0.9569303393363953, 1.3205739259719849, -0.9756568074226379, -0.4227558374404907, -0.19916418194770813, -0.059834759682416916, 0.042554393410...
func (d *DNS) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error { dsz := 0 for _, q := range d.Questions { dsz += len(q.Name) + 6 } dsz += computeSize(d.Answers) dsz += computeSize(d.Authorities) dsz += computeSize(d.Additionals) bytes, err := b.PrependBytes(12 + dsz) if err != ni...
[ 0.09768279641866684, 0.8732732534408569, 0.7912457585334778, -1.6108142137527466, -0.07943536341190338, 0.16703447699546814, 0.46602821350097656, -1.3150572776794434, 0.7643186450004578, -0.5204432010650635, -0.7274799942970276, -0.15210162103176117, -0.18581528961658478, 0.058901071548461...
func (rr *DNSResourceRecord) decode(data []byte, offset int, df gopacket.DecodeFeedback, buffer *[]byte) (int, error) { name, endq, err := decodeName(data, offset, buffer, 1) if err != nil { return 0, err } rr.Name = name rr.Type = DNSType(binary.BigEndian.Uint16(data[endq : endq+2])) rr.Class = DNSClass(binar...
[ -0.0937555804848671, 0.8865510821342468, 0.6883314251899719, -1.423794150352478, -0.24021703004837036, -0.3021298944950104, -0.1873818039894104, 0.015472142957150936, 0.020192410796880722, -0.32057249546051025, -1.1074563264846802, 0.22370193898677826, -0.9389588236808777, 0.00096051808213...
func (g Generator) Generate(ctx *genall.GenerationContext) error { objs := generateFeatures(ctx) if len(objs) == 0 { return nil } for _, obj := range objs { if err := ctx.WriteYAML(obj.(corev1alpha2.Feature).Name+".yaml", obj); err != nil { return err } } return nil }
[ -0.7139219641685486, -0.5866191387176514, 0.5489541888237, 0.7114344835281372, 0.37983882427215576, 0.15960827469825745, 0.8171411156654358, 0.7687317728996277, -0.5300125479698181, -0.07753941416740417, -1.0790433883666992, -0.2591908276081085, 0.38197943568229675, 1.3431333303451538, -...
func (Generator) RegisterMarkers(reg *markers.Registry) error { if err := reg.Register(RuleDefinition); err != nil { return err } reg.AddHelp(RuleDefinition, &markers.DefinitionHelp{ Category: "feature", DetailedHelp: markers.DetailedHelp{ Summary: "is the output type of the marker value", Details: "", ...
[ -0.6498857736587524, 0.23927439749240875, 0.3658316731452942, -0.0010752803646028042, 1.8702490329742432, 0.14999254047870636, 0.5910054445266724, 0.31105750799179077, -0.8721588253974915, -0.2338937371969223, -0.6619294881820679, 0.4042741656303406, -0.09194457530975342, 1.577014088630676...
func stringInSlice(a string, list []string) bool { for _, b := range list { if b == a { return true } } return false }
[ 0.1872318536043167, -1.2441215515136719, 0.33633801341056824, 0.2545374035835266, -0.6286222338676453, -0.49445807933807373, -0.8293318152427673, 0.6134192943572998, 0.006875546183437109, 0.880862295627594, -0.6804824471473694, 0.20464710891246796, -0.6598539352416992, 0.15983858704566956,...
func hasValidSavedQuery(query interface{}) error { queryConverted := query.(map[string]interface{}) listQueryTypes := []string{"count/entity", "count/event", "count/entity/total", "aggregation", "top_values"} if !stringInSlice(queryConverted["type"].(string), listQueryTypes) { return errors.New("Saved Query Valida...
[ 0.1836451292037964, -0.07692679017782211, 0.581557035446167, -0.1148010790348053, 0.2528153955936432, 0.20849713683128357, -0.26801520586013794, -0.2943587303161621, 0.5588178634643555, 0.16021695733070374, 0.029020298272371292, -0.09094247221946716, 0.38008952140808105, 1.018588662147522,...
func hasValidCountQuery(query interface{}) error { switch query.(type) { case []interface{}: querySize := len(query.([]interface{})) if querySize > 10 { return errors.New("Count Query Validator: the query count entity has a limit of 10 queries by request.") } } return nil }
[ 1.006809949874878, 0.17144758999347687, 0.567910373210907, -0.19034212827682495, 0.8847984075546265, -0.05830955505371094, 0.06605507433414459, -0.061037011444568634, 0.3882506191730499, -0.260478138923645, 0.6384104490280151, -0.5422846078872681, 0.38347283005714417, 1.2210479974746704, ...
func hasValidTopValuesQuery(query interface{}) error { queryConverted := query.(map[string]interface{}) // check query limit if len(queryConverted) > 5 { return errors.New("Top Values Validator: the top values query has a limit of 5 queries by request.") } // check column limit for _, value := range queryConver...
[ -0.39612123370170593, -0.19524574279785156, 0.42719748616218567, -0.2813398838043213, -0.6124362349510193, 0.2097618132829666, -0.6544636487960815, -0.742943525314331, 0.005872795358300209, -1.0788625478744507, 0.79385906457901, -0.4215489625930786, 0.824085533618927, 1.2408437728881836, ...