text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (ctl *Ctl) CanUpdate() (bool, error) { return true, nil }
[ -0.04368967190384865, -1.3929740190505981, 0.6721092462539673, 1.3527190685272217, -0.8467421531677246, 1.0190260410308838, 0.24634647369384766, 0.7465381622314453, 0.4642421007156372, 0.47910550236701965, -0.4457704722881317, -0.5250589847564697, -0.5324549078941345, -0.05997251719236374,...
func ReadAllCars(w http.ResponseWriter, r *http.Request) { // Set the way we will serve data between frontend and backend w.Header().Set("Content-Type", "application/json") // Allow cross origin connections making the routes accessible for everyone w.Header().Set("Access-Control-Allow-Origin", "*") payload := read...
[ -0.1567821204662323, -0.9471292495727539, 0.8174877762794495, 0.2180921733379364, -0.08740231394767761, -0.4707340598106384, -1.6126632690429688, -0.06514424830675125, -1.4169387817382812, 0.07079959660768509, 0.5316729545593262, 0.44012385606765747, -0.09905030578374863, 0.662554085254669...
func ReadCar(w http.ResponseWriter, r *http.Request) { // Set the way we will serve data between frontend and backend w.Header().Set("Content-Type", "application/json") // Allow cross origin connections making the routes accessible for everyone w.Header().Set("Access-Control-Allow-Origin", "*") // Get all params f...
[ -0.6103262901306152, -1.0173144340515137, 0.7619869709014893, 0.312970370054245, -0.029888276010751724, -0.18700242042541504, -0.8272658586502075, -0.5085302591323853, -1.8698809146881104, 0.221287339925766, 0.6717097759246826, 0.40382087230682373, -0.07422856241464615, 0.27013272047042847...
func CreateCar(w http.ResponseWriter, r *http.Request) { // Set the way we will serve data between frontend and backend w.Header().Set("Content-Type", "application/json") // Allow cross origin connections making the routes accessible for everyone w.Header().Set("Access-Control-Allow-Origin", "*") // Allow the serv...
[ -0.3025391101837158, -0.53923100233078, 0.8626340627670288, -0.44836729764938354, 0.2077246904373169, 0.2716541588306427, -0.5057360529899597, -0.46290403604507446, -1.5684844255447388, 0.23995642364025116, 0.11287210881710052, 0.034304745495319366, -0.6170766949653625, 0.39551278948783875...
func UpdateCar(w http.ResponseWriter, r *http.Request) { // Set the way we will serve data between frontend and backend w.Header().Set("Content-Type", "application/json") // Allow cross origin connections making the routes accessible for everyone w.Header().Set("Access-Control-Allow-Origin", "*") // Allow the serv...
[ -0.9630738496780396, -0.9567083120346069, 0.8599591851234436, -0.2953827381134033, -0.2665913701057434, -0.07783340662717819, -0.3637009859085083, -0.3337806463241577, -1.5867397785186768, 0.46429678797721863, -0.14685103297233582, 0.3295041620731354, -0.7126444578170776, 0.250596314668655...
func DeleteCar(w http.ResponseWriter, r *http.Request) { // Set the way we will serve data between frontend and backend w.Header().Set("Content-Type", "application/json") // Allow cross origin connections making the routes accessible for everyone w.Header().Set("Access-Control-Allow-Origin", "*") // Allow the serv...
[ -0.39868706464767456, -1.0807969570159912, 0.9247276782989502, 0.26502910256385803, -0.24718156456947327, -0.2700532376766205, -0.15626850724220276, -0.5834406614303589, -1.177230954170227, 0.20258505642414093, 0.472139447927475, 0.33225980401039124, -0.1271512657403946, 0.8812638521194458...
func mount( ctx context.Context, bucketName string, flags *FlagStorage) (fs *Goofys, mfs *fuse.MountedFileSystem, err error) { // XXX really silly copy here! in goofys.Mount we will copy it // back to FlagStorage. But I don't see a easier way to expose // Config in the api package var config goofys.Config copi...
[ -0.32973530888557434, -0.5768444538116455, 0.4056053161621094, 0.4799778163433075, -0.014429903589189053, -0.3165067434310913, -0.5529618859291077, -0.662521243095398, 0.7197226881980896, -0.9929386973381042, -0.3387991786003113, 0.20300619304180145, -0.41687798500061035, -0.03181498497724...
func (in *CASignedConfig) DeepCopyInto(out *CASignedConfig) { *out = *in out.SecretRef = in.SecretRef }
[ 0.6282091736793518, -0.26390960812568665, 0.31063228845596313, -0.12930718064308167, -0.8543500304222107, 0.6392614245414734, 0.2307824045419693, 1.5056312084197998, -1.060455560684204, -0.07559516280889511, -1.4684571027755737, 1.1393766403198242, 0.05552868917584419, -0.19153288006782532...
func (in *CASignedConfig) DeepCopy() *CASignedConfig { if in == nil { return nil } out := new(CASignedConfig) in.DeepCopyInto(out) return out }
[ -0.11676745116710663, -0.08157861232757568, 0.07196895033121109, 0.611351490020752, -0.4783996343612671, 0.23868653178215027, 0.4568142294883728, 1.0168228149414062, -0.32554513216018677, -0.2834016978740692, -1.5224897861480713, -0.12748177349567413, -0.4115554392337799, 0.079562008380889...
func (in *CertificateOptions) DeepCopyInto(out *CertificateOptions) { *out = *in out.Duration = in.Duration }
[ 0.5050507187843323, 0.33403095602989197, 0.596950352191925, 0.6508328318595886, -0.3124072551727295, 0.7018697261810303, 0.09916463494300842, 0.21192002296447754, -0.8726820349693298, 0.23096469044685364, -0.9348231554031372, 1.0628244876861572, 0.07795510441064835, -0.6125761270523071, ...
func (in *CertificateOptions) DeepCopy() *CertificateOptions { if in == nil { return nil } out := new(CertificateOptions) in.DeepCopyInto(out) return out }
[ -0.3944871723651886, 0.29109856486320496, 0.33026066422462463, 1.4936646223068237, 0.4166586399078369, 0.11395403742790222, 0.6769953966140747, -0.6450425982475281, 0.06421860307455063, -0.08576443791389465, -0.8528264164924622, 0.2757730185985565, -1.0425916910171509, -0.0615098737180233,...
func (in *CertificateRenewalConfig) DeepCopyInto(out *CertificateRenewalConfig) { *out = *in }
[ 0.9194162487983704, 0.6283064484596252, 0.3533460199832916, -0.2999321520328522, -0.942002534866333, 0.5137096047401428, -0.35451552271842957, 1.5132299661636353, -1.0052286386489868, 0.028074152767658234, -1.194985270500183, 1.1150251626968384, -0.26210758090019226, -0.5600335001945496, ...
func (in *CertificateRenewalConfig) DeepCopy() *CertificateRenewalConfig { if in == nil { return nil } out := new(CertificateRenewalConfig) in.DeepCopyInto(out) return out }
[ 0.17616266012191772, 0.9444933533668518, 0.1435592770576477, 0.12565255165100098, -0.8762832283973694, 0.4133981168270111, -0.3287889361381531, 1.2655013799667358, -0.18598541617393494, 0.26053449511528015, -1.1220499277114868, 0.5537599921226501, -0.5283596515655518, -0.5908595323562622, ...
func (in *DiscoveryService) DeepCopyInto(out *DiscoveryService) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) }
[ 0.2969900667667389, -0.3956390619277954, 0.4419717788696289, 0.24254176020622253, -0.6104797720909119, 0.2926556468009949, -0.01184666994959116, 0.24335527420043945, -0.9251975417137146, -0.7960509657859802, -0.4795255661010742, 1.5138359069824219, 0.4274478554725647, -0.05802885815501213,...
func (in *DiscoveryService) DeepCopy() *DiscoveryService { if in == nil { return nil } out := new(DiscoveryService) in.DeepCopyInto(out) return out }
[ -0.024096082895994186, 0.47891268134117126, -0.1357230395078659, 1.270826816558838, -0.4347965121269226, -0.32029029726982117, -0.13104276359081268, -0.8874474763870239, -0.4064949154853821, -1.1922390460968018, 0.08971232175827026, 0.1365251988172531, -0.5780760645866394, -0.0536190010607...
func (in *DiscoveryService) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ -0.08740504086017609, -0.0037267410662025213, 0.6118482947349548, 0.6225615739822388, -0.5842378735542297, 0.26652029156684875, 0.7940461039543152, 0.04060649871826172, -0.2648557126522064, -1.1740809679031372, -0.12597455084323883, 0.18112678825855255, 0.2519499659538269, -0.0976328104734...
func (in *DiscoveryServiceCertificate) DeepCopyInto(out *DiscoveryServiceCertificate) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) }
[ 0.36315417289733887, 0.05461714416742325, 0.4270823001861572, -0.06730934232473373, -0.48280566930770874, -0.030254345387220383, 0.0514116995036602, 0.6446841955184937, -1.306013822555542, -0.7112729549407959, -0.7905234098434448, 0.9652237892150879, 0.2618285119533539, -0.0988310575485229...
func (in *DiscoveryServiceCertificate) DeepCopy() *DiscoveryServiceCertificate { if in == nil { return nil } out := new(DiscoveryServiceCertificate) in.DeepCopyInto(out) return out }
[ -0.38800397515296936, 0.3340076804161072, 0.16067373752593994, 0.41336047649383545, 0.19522178173065186, -0.4177756607532501, 0.2223379909992218, 0.23721060156822205, -0.3072701692581177, -0.7106046676635742, -0.3671737313270569, -0.22979651391506195, 0.21246227622032166, 0.200483262538909...
func (in *DiscoveryServiceCertificate) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ -0.10089273005723953, 0.2964837849140167, 0.5908277630805969, 0.42816904187202454, -0.43275392055511475, 0.17029185593128204, 0.7420454025268555, 0.4490360915660858, -0.4872203767299652, -0.9361204504966736, -0.5414096117019653, -0.15027223527431488, 0.18574397265911102, -0.165688231587409...
func (in *DiscoveryServiceCertificateList) DeepCopyInto(out *DiscoveryServiceCertificateList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]DiscoveryServiceCertificate, len(*in)) for i := range *in { (*in)...
[ -0.196384459733963, 0.5123061537742615, 0.4280356168746948, 0.4704633057117462, -0.28564316034317017, -0.22635912895202637, -0.17736384272575378, 0.9941623210906982, -1.033831000328064, 0.15438692271709442, -0.9983856081962585, 0.13075561821460724, 0.17433620989322662, 0.33406877517700195,...
func (in *DiscoveryServiceCertificateList) DeepCopy() *DiscoveryServiceCertificateList { if in == nil { return nil } out := new(DiscoveryServiceCertificateList) in.DeepCopyInto(out) return out }
[ -0.5617310404777527, 0.7422634959220886, 0.07438330352306366, 1.0331887006759644, -0.001965782605111599, -0.26474469900131226, 0.18540947139263153, 0.5917302370071411, -0.42039576172828674, 0.05801590159535408, -0.896392822265625, -0.5424269437789917, 0.391475111246109, 0.9276374578475952,...
func (in *DiscoveryServiceCertificateList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ -0.4648018479347229, 0.35303694009780884, 0.4048355221748352, 0.7597886323928833, -0.3403661847114563, 0.16912664473056793, 0.747612714767456, 0.6310157179832458, -0.43514201045036316, -0.4675123989582062, -1.0733563899993896, -0.5499355792999268, 0.3353538513183594, 0.5785050988197327, ...
func (in *DiscoveryServiceCertificateSigner) DeepCopyInto(out *DiscoveryServiceCertificateSigner) { *out = *in if in.SelfSigned != nil { in, out := &in.SelfSigned, &out.SelfSigned *out = new(SelfSignedConfig) **out = **in } if in.CASigned != nil { in, out := &in.CASigned, &out.CASigned *out = new(CASigned...
[ -0.46185511350631714, -0.02238011360168457, 0.32211095094680786, 0.1175837367773056, -0.9339609742164612, 0.3866846263408661, 0.2214551866054535, 0.9241911768913269, -1.1378973722457886, -0.1920292228460312, -0.728895366191864, 0.6726624369621277, -0.26018115878105164, 0.7908058166503906, ...
func (in *DiscoveryServiceCertificateSigner) DeepCopy() *DiscoveryServiceCertificateSigner { if in == nil { return nil } out := new(DiscoveryServiceCertificateSigner) in.DeepCopyInto(out) return out }
[ -0.833548367023468, -0.10107330232858658, 0.11746551841497421, 0.7642726302146912, -0.49909982085227966, 0.29471442103385925, 0.4360969364643097, 0.7657957673072815, -0.7314068675041199, -0.28424620628356934, -0.5762290358543396, -0.1224275603890419, 0.016707025468349457, 0.654302537441253...
func (in *DiscoveryServiceCertificateSpec) DeepCopyInto(out *DiscoveryServiceCertificateSpec) { *out = *in if in.IsServerCertificate != nil { in, out := &in.IsServerCertificate, &out.IsServerCertificate *out = new(bool) **out = **in } if in.IsCA != nil { in, out := &in.IsCA, &out.IsCA *out = new(bool) *...
[ 0.4750094413757324, 0.2510063946247101, 0.4258372485637665, 0.20144477486610413, -0.3240383565425873, 0.10792466253042221, 0.06395071744918823, 0.5275279879570007, -1.4131124019622803, 0.0008092427742667496, -1.036183476448059, 0.8397477865219116, 0.25915056467056274, 0.1454496532678604, ...
func (in *DiscoveryServiceCertificateSpec) DeepCopy() *DiscoveryServiceCertificateSpec { if in == nil { return nil } out := new(DiscoveryServiceCertificateSpec) in.DeepCopyInto(out) return out }
[ 0.4866405427455902, 0.4012785851955414, -0.020208578556776047, 0.3266522288322449, 0.399209588766098, 0.3981795608997345, 0.4109845757484436, 0.32196328043937683, -0.757005512714386, 0.2930719256401062, -0.45608222484588623, 0.11431225389242172, 1.147644281387329, 0.031051907688379288, 0...
func (in *DiscoveryServiceCertificateStatus) DeepCopyInto(out *DiscoveryServiceCertificateStatus) { *out = *in if in.Ready != nil { in, out := &in.Ready, &out.Ready *out = new(bool) **out = **in } if in.NotBefore != nil { in, out := &in.NotBefore, &out.NotBefore *out = (*in).DeepCopy() } if in.NotAfter ...
[ -0.020271429792046547, -0.16071125864982605, 0.5157697200775146, -0.20060229301452637, -0.7959523797035217, -0.010616186074912548, -0.10633303970098495, 0.5040203332901001, -1.083125114440918, 0.08587703108787537, -1.0166242122650146, 0.40603387355804443, 0.05164211615920067, -0.2007682174...
func (in *DiscoveryServiceCertificateStatus) DeepCopy() *DiscoveryServiceCertificateStatus { if in == nil { return nil } out := new(DiscoveryServiceCertificateStatus) in.DeepCopyInto(out) return out }
[ -0.1500280350446701, -0.24510008096694946, 0.01757345162332058, -0.22538435459136963, -0.03675255924463272, -0.05207478627562523, -0.042396027594804764, 0.5424924492835999, -0.2957451343536377, 0.07801328599452972, -0.8834837675094604, 0.16584815084934235, 0.6505827903747559, 0.10620368272...
func (in *DiscoveryServiceList) DeepCopyInto(out *DiscoveryServiceList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]DiscoveryService, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } ...
[ -0.3248418867588043, 0.36958813667297363, 0.5197290778160095, 0.5531955361366272, -0.4631054699420929, 0.2474927306175232, -0.18747363984584808, 0.4329640567302704, -0.8119040131568909, -0.6829668879508972, -0.25551432371139526, 0.5170257687568665, 0.1453186720609665, -0.059373293071985245...
func (in *DiscoveryServiceList) DeepCopy() *DiscoveryServiceList { if in == nil { return nil } out := new(DiscoveryServiceList) in.DeepCopyInto(out) return out }
[ -0.9808581471443176, 0.7100110650062561, 0.14580072462558746, 0.9833176732063293, -0.28970110416412354, 0.3726705312728882, 0.2823561728000641, -0.6229038834571838, -0.287977010011673, -1.1359694004058838, 0.08236397057771683, -0.09696629643440247, -0.13653036952018738, 0.2632646858692169,...
func (in *DiscoveryServiceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ -0.6024091243743896, 0.35332709550857544, 0.5222864151000977, 0.5187736749649048, -0.41920194029808044, 0.3490610122680664, 0.8090826869010925, 0.10515853762626648, -0.26009857654571533, -1.0564631223678589, -0.26083239912986755, -0.25838685035705566, 0.057127248495817184, 0.12162554264068...
func (in *DiscoveryServiceSpec) DeepCopyInto(out *DiscoveryServiceSpec) { *out = *in if in.Image != nil { in, out := &in.Image, &out.Image *out = new(string) **out = **in } if in.Debug != nil { in, out := &in.Debug, &out.Debug *out = new(bool) **out = **in } if in.Resources != nil { in, out := &in.R...
[ 0.2135895937681198, 0.164462149143219, 0.6513555645942688, -0.27762895822525024, -0.5220856070518494, -0.05395721271634102, 0.16730250418186188, -0.061053089797496796, -1.08054518699646, -0.4527142345905304, -0.2002744972705841, 0.6103637218475342, 0.4720768630504608, 0.16165639460086823, ...
func (in *DiscoveryServiceSpec) DeepCopy() *DiscoveryServiceSpec { if in == nil { return nil } out := new(DiscoveryServiceSpec) in.DeepCopyInto(out) return out }
[ -0.23334194719791412, 0.6902838945388794, 0.03560170903801918, 0.36328282952308655, -0.20020322501659393, 0.1963265985250473, 0.64627605676651, -0.3653394877910614, -0.6275491714477539, -0.41466188430786133, 0.5203834772109985, -0.2933216691017151, 0.9538147449493408, -0.1849096566438675, ...
func (in *DiscoveryServiceStatus) DeepCopyInto(out *DiscoveryServiceStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make(status.Conditions, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } }
[ -0.11827350407838821, 0.259981632232666, 0.41032344102859497, 0.1879948377609253, -0.7595142126083374, 0.10543732345104218, -0.20385657250881195, 0.6225335597991943, -1.078659176826477, -0.4614749550819397, -0.2291235327720642, 0.31532424688339233, 0.003239990444853902, -0.4144945740699768...
func (in *DiscoveryServiceStatus) DeepCopy() *DiscoveryServiceStatus { if in == nil { return nil } out := new(DiscoveryServiceStatus) in.DeepCopyInto(out) return out }
[ -0.6630752086639404, 0.3297988474369049, -0.21186207234859467, 0.12114953994750977, -0.391643762588501, 0.14315290749073029, 0.08365188539028168, -0.7117044925689697, -0.4460645318031311, -1.034913420677185, 0.046050384640693665, -0.598770022392273, -0.011483184061944485, -0.23564085364341...
func (in *PKIConfig) DeepCopyInto(out *PKIConfig) { *out = *in if in.RootCertificateAuthority != nil { in, out := &in.RootCertificateAuthority, &out.RootCertificateAuthority *out = new(CertificateOptions) **out = **in } if in.ServerCertificate != nil { in, out := &in.ServerCertificate, &out.ServerCertificat...
[ 0.28420111536979675, 0.3542633056640625, 0.5615230202674866, 0.6730602383613586, -0.84161776304245, 0.39163586497306824, 0.009142040275037289, 0.6323147416114807, -1.2921955585479736, 0.09008133411407471, -0.7569783329963684, 0.4367896616458893, -0.4651074707508087, 0.032895829528570175, ...
func (in *PKIConfig) DeepCopy() *PKIConfig { if in == nil { return nil } out := new(PKIConfig) in.DeepCopyInto(out) return out }
[ -0.7450512051582336, 0.834002673625946, 0.13765203952789307, 1.4260003566741943, -0.9805527329444885, 0.3569882810115814, 0.0013058781623840332, 0.8788817524909973, -0.9717428088188171, 0.9226210713386536, -1.0057029724121094, -0.946721613407135, -0.45984524488449097, -0.5747904777526855, ...
func (in *SelfSignedConfig) DeepCopyInto(out *SelfSignedConfig) { *out = *in }
[ 0.42469754815101624, 0.27403387427330017, 0.25854235887527466, 0.2573184370994568, -1.2206346988677979, 0.45213866233825684, 0.051498230546712875, 1.1368192434310913, -0.8677788972854614, 0.002561460481956601, -1.4528456926345825, 0.8524982333183289, 0.10685744136571884, 0.3057771623134613...
func (in *SelfSignedConfig) DeepCopy() *SelfSignedConfig { if in == nil { return nil } out := new(SelfSignedConfig) in.DeepCopyInto(out) return out }
[ -0.14033086597919464, 0.07556960731744766, 0.17107875645160675, 0.8240542411804199, -0.7762589454650879, -0.02191030979156494, 0.258797287940979, 0.4714498519897461, 0.02963150292634964, 0.23294119536876678, -1.3106193542480469, -0.10168389976024628, -0.4521336257457733, 0.7350992560386658...
func (in *ServiceConfig) DeepCopyInto(out *ServiceConfig) { *out = *in }
[ 0.25580012798309326, 0.4402425289154053, 0.40544289350509644, -0.10707130283117294, -1.4216904640197754, 0.7131350636482239, -0.1556626409292221, 0.8871469497680664, -1.4666718244552612, -0.06612148135900497, -1.346994400024414, 1.0406551361083984, -0.1274910420179367, 0.056366175413131714...
func (in *ServiceConfig) DeepCopy() *ServiceConfig { if in == nil { return nil } out := new(ServiceConfig) in.DeepCopyInto(out) return out }
[ -0.1630062758922577, 0.46247029304504395, 0.14463144540786743, 0.7649533152580261, -1.1476655006408691, 0.1682528704404831, 0.4352167546749115, 0.16693322360515594, -0.4191890358924866, 0.24246534705162048, -0.9827017784118652, 0.4817647933959961, -0.9899004101753235, 0.29761064052581787, ...
func GetBuffer() Buffer { return pool.get() }
[ 0.15391755104064941, -0.08842970430850983, 0.2969856560230255, 0.44321972131729126, 0.3570243716239929, 0.6428934335708618, 0.4873824715614319, -0.7189041376113892, 0.30219346284866333, -1.7135086059570312, 0.3439030647277832, 1.5893707275390625, -1.0379739999771118, -0.0033001545816659927...
func ReleaseBuffer(buffer Buffer) { pool.put(buffer) }
[ -0.23642750084400177, 0.6069072484970093, 0.1804598718881607, -1.349569320678711, -0.039192717522382736, 0.6615676879882812, 0.5489915013313293, -0.6871721744537354, 0.034273479133844376, -0.7970992922782898, -1.1558717489242554, 1.1858428716659546, -1.5905240774154663, -0.0053927232511341...
func newBuffer() Buffer { return &buffer{ bytes: make([]byte, 0, 64), } }
[ 0.30583566427230835, 0.18715900182724, 0.2619609236717224, 0.8370724320411682, -0.7524256110191345, 0.12251913547515869, -0.723534882068634, -0.1560337394475937, 0.9109717011451721, -1.3146512508392334, 0.1558082550764084, 1.0678424835205078, -0.26353904604911804, 0.06344588845968246, 0....
func (s *ISideChain) Init(size int) { sidechain := IblockChain{} ReadIot() sidechain.Init() sidechain.GenerateBlocks(size - 1) s.Chain = sidechain //s.chain.PrintBlockChain() }
[ -0.21425171196460724, 0.5524135231971741, 0.6013399362564087, -0.19135700166225433, 0.5009923577308655, 0.5288116931915283, -0.24071605503559113, -0.4163290858268738, -0.14012113213539124, -0.3134478032588959, -1.1143651008605957, 0.5832324624061584, -1.384581208229065, 0.00801589526236057...
func (m *IMainChain) Init() { //problem ReadIot() mainchain := IblockChain{} mainchain.Init() mainchain.GenerateBlocks(180) m.Chain = mainchain m.Chain.PrintIBlockChain() }
[ -0.7877182364463806, -0.5872520208358765, 0.5078015327453613, -0.15765869617462158, 0.5410465002059937, 0.8373650908470154, -0.2438584268093109, -0.03646906465291977, -0.45955222845077515, -0.32949215173721313, -0.34150782227516174, 0.8157317638397217, -1.3306950330734253, 0.26066383719444...
func (s *ISideChain) AddTransaction(data IotRow) { s.addedTransactions = append(s.addedTransactions, data) //fmt.Println("added") }
[ -0.042190298438072205, -0.02254333347082138, 0.510907769203186, -0.21594864130020142, 0.9509953260421753, -0.10806025564670563, 0.009330409578979015, -0.34625089168548584, 0.7745899558067322, -0.38769903779029846, -0.8897345662117004, -0.27384325861930847, -1.0253127813339233, -0.162113666...
func VerifyTransfer(lc []BlockHeader, index int, t *ITransfer) bool { // make a slice of hashes up that follow up to the genesis hashSlice := []string{lc[index].Hash} for index > 0 { start := time.Now() prevLevelIndex := FindPrevLevelBlockIndex(lc, index) if lc[index].LevelPrevHash == lc[prevLevelIndex].Hash {...
[ 0.33416932821273804, 0.13957209885120392, 0.8268854022026062, 0.35692262649536133, 0.17959994077682495, 0.3554026186466217, -0.20851346850395203, -0.3475729525089264, -0.42225074768066406, 0.07739410549402237, -1.2099746465682983, -0.1195039302110672, -1.280774712562561, 0.4025000929832458...
func GenerateCertificate(b *Iblock, lc []BlockHeader, index int) string { // make a slice of hashes up that follow up to the genesis hashSlice := []string{b.HashFromBlock()} for index > 0 { prevLevelIndex := FindPrevLevelBlockIndex(lc, index) if lc[index].LevelPrevHash == lc[prevLevelIndex].Hash { index = pr...
[ 0.8423609733581543, -0.09700233489274979, 0.8003696799278259, 0.27591177821159363, -0.2365260124206543, 0.11253893375396729, -0.31865257024765015, 0.41801413893699646, -1.0137757062911987, 0.6125950217247009, -0.603554368019104, -0.3780374825000763, -0.9267087578773499, -0.4257706701755523...
func VerifyTransferSPV(lc []BlockHeader, index int, t *ITransfer) bool { // make a slice of hashes up that follow up to the genesis hashSlice := []string{lc[index].Hash} for index > 0 { start := time.Now() if lc[index].PrevHash == lc[index-1].Hash { hashSlice = append(hashSlice, lc[index-1].Hash) index-- ...
[ 0.20849812030792236, 0.1500919908285141, 0.873676061630249, 0.6030439734458923, 0.18283537030220032, 0.5530414581298828, -0.2736275792121887, -0.20448531210422516, -0.09506228566169739, 0.061935730278491974, -0.6616575121879578, -0.2588416337966919, -1.278725266456604, 0.002543917158618569...
func GenerateCertificateSPV(b *Iblock, lc []BlockHeader, index int) string { // make a slice of hashes up that follow up to the genesis hashSlice := []string{b.HashFromBlock()} for index > 0 { if lc[index].PrevHash == lc[index-1].Hash { hashSlice = append(hashSlice, lc[index-1].Hash) index-- } } // gen...
[ 0.7085629105567932, 0.12897171080112457, 0.7935516834259033, 0.4997910261154175, -0.5176034569740295, 0.14694742858409882, -0.39960822463035583, 0.3624928891658783, -0.43828678131103516, 0.3942146897315979, -0.45434272289276123, -0.11395680159330368, -0.5507667660713196, -0.697182297706604...
func NewSlowHandler(handler http.Handler, delay time.Duration) *SlowHandler { return &SlowHandler{handler: handler, delay: delay} }
[ 0.6000475883483887, -0.691500186920166, 0.3428088426589966, -0.7490872740745544, -1.33821439743042, -0.04602455720305443, -0.7792317271232605, -0.1060677021741867, -0.2649631202220917, -1.0526105165481567, -0.480054646730423, 0.8461502194404602, -0.596784770488739, 1.0015968084335327, -0...
func GeneratePromReadRequest() *prompb.ReadRequest { req := &prompb.ReadRequest{ Queries: []*prompb.Query{{ Matchers: []*prompb.LabelMatcher{ {Type: prompb.LabelMatcher_EQ, Name: "eq", Value: "a"}, }, StartTimestampMs: time.Now().Add(-1*time.Hour*24).UnixNano() / int64(time.Millisecond), EndTimestamp...
[ -0.8436082005500793, -0.6056251525878906, 0.8451120853424072, -0.23622463643550873, -0.42879679799079895, 0.6879374384880066, -0.6534979343414307, 0.5977100729942322, -0.1436547338962555, -0.2218102663755417, 0.839041531085968, 0.5613358616828918, -0.33426064252853394, 0.40858012437820435,...
func GeneratePromReadBody(t *testing.T) io.Reader { req := GeneratePromReadRequest() data, err := proto.Marshal(req) if err != nil { t.Fatal("couldn't marshal prometheus request") } compressed := snappy.Encode(nil, data) // Uncomment the line below to write the data into a file useful for integration testing ...
[ -0.26385483145713806, 0.04563123732805252, 0.6128300428390503, -0.42928948998451233, -0.0636497214436531, 0.7480453252792358, -0.4985162913799286, -0.04873820021748543, 0.32100528478622437, -0.8394594192504883, -0.12770788371562958, 0.5344132781028748, -0.5239654183387756, -0.0153583064675...
func NewPgoutputEventHandler(s RowSink) *PgoutputEventHandler { return &PgoutputEventHandler{ sink: s, log: pkglog.NewLogger("replication-event-handler"), relations: &relationSet{}, } }
[ 0.09459038078784943, -0.15568596124649048, 0.19653496146202087, -0.08362754434347153, -1.0504183769226074, -0.6320388317108154, 0.9209483861923218, -0.2090272605419159, -0.25162965059280396, -0.024735791608691216, 0.42061248421669006, -0.19661293923854828, -0.23724336922168732, -1.09179818...
func (h *PgoutputEventHandler) Handle(ctx context.Context, msg pgoutput.Message) error { switch v := msg.(type) { case pgoutput.Relation: h.log.Debug("received RELATION message") h.relations.Add(v) case pgoutput.Insert: h.log.Debug("received INSERT message") return h.handleCreate(ctx, v.RelationID, v.Row) ...
[ 0.4346647262573242, 0.4450860023498535, 0.7026587724685669, -0.38360026478767395, 0.5074982047080994, -0.07392151653766632, 0.7843530774116516, -0.7743801474571228, -0.4723365902900696, -0.5468091368675232, 0.5755904316902161, -0.7724016904830933, -1.0559804439544678, -0.014173783361911774...
func NewCanalEventHandler(s RowSink) *CanalEventHandler { return &CanalEventHandler{ sink: s, log: pkglog.NewLogger("canal-event-handler"), } }
[ 0.8962218761444092, -0.9393690824508667, -0.028896834701299667, -0.04001038894057274, -1.5328816175460815, -0.09533144533634186, 0.8052286505699158, 0.24129129946231842, 1.028362512588501, -0.3771709203720093, -0.23746232688426971, -0.08938480168581009, -0.30354195833206177, -0.38902306556...
func (h *CanalEventHandler) OnRow(e *canal.RowsEvent) error { h.log.WithFields(logrus.Fields{ "action": e.Action, "table": e.Table.Name, "rows": e.Rows, // verbose logging for development phase "columns": fmt.Sprintf("%+v", e.Table.Columns), // verbose logging for development...
[ 0.14950944483280182, 0.12219031155109406, 0.5680415034294128, 0.1780044436454773, -0.2569493353366852, -0.43726497888565063, 0.5499187111854553, 0.0394381619989872, 1.0062767267227173, -0.25765010714530945, 0.36849915981292725, -0.7809024453163147, 0.6444854140281677, 0.8189371228218079, ...
func (h *CanalEventHandler) handleCreate(ctx context.Context, rows [][]interface{}, t *schema.Table) error { for _, row := range rows { pk, err := getPrimaryKeyValue(row, t) if err != nil { return err } kvs, err := getKeyValues(row, t.Columns) if err != nil { return fmt.Errorf("table %s error: %s", t, ...
[ -0.25586768984794617, 0.9026268124580383, 0.5641584992408752, 0.5598635077476501, 1.0407646894454956, -0.45773351192474365, 0.20640090107917786, -0.42383408546447754, -0.7216694951057434, 0.2497619390487671, 0.36115360260009766, -1.2881321907043457, -0.21222655475139618, 0.6412922739982605...
func (h *CanalEventHandler) handleUpdate(ctx context.Context, rows [][]interface{}, t *schema.Table) error { for _, row := range rows { pk, err := getPrimaryKeyValue(row, t) if err != nil { return err } kvs, err := getKeyValues(row, t.Columns) if err != nil { return fmt.Errorf("table %s error: %s", t, ...
[ -0.6068706512451172, 0.05345664173364639, 0.5851489901542664, 0.31341877579689026, 0.27443817257881165, -0.5221335887908936, 0.08845963329076767, 0.2157130092382431, -0.053807150572538376, 0.4731244146823883, 0.44563746452331543, -1.3635746240615845, -0.19109822809696198, 0.350339174270629...
func getKeyValues(row []interface{}, columns []schema.TableColumn) (map[string]interface{}, error) { kvs := make(map[string]interface{}, len(columns)) for i, c := range columns { v, err := getValue(row[i], c.Type) if err != nil { return nil, fmt.Errorf("cannot retrieve value of field %q with DB type %q: %s", ...
[ -0.7095587253570557, 0.8672224879264832, 0.7296893000602722, 0.9226166009902954, -0.20059041678905487, -0.5873722434043884, -0.4727141857147217, -0.5257470011711121, -1.1377085447311401, -0.14937663078308105, -0.5162935853004456, -0.30831629037857056, 0.22672028839588165, 0.772553026676178...
func (h *CanalEventHandler) OnRotate(*replication.RotateEvent) error { h.log.Debug("Skipping OnRotate event") return nil }
[ 0.7493863701820374, -0.07221238315105438, 0.41908976435661316, 0.1077374592423439, -0.03827647864818573, -0.21002444624900818, 0.3976362943649292, -0.192209854722023, 0.5063450932502747, 0.07421797513961792, -0.2225104719400406, -0.17071938514709473, -1.4414697885513306, -0.488857358694076...
func (h *CanalEventHandler) OnDDL(mysql.Position, *replication.QueryEvent) error { h.log.Debug("Skipping OnDDL event") return nil }
[ 0.34156984090805054, -0.5968600511550903, 0.41525590419769287, -0.059220634400844574, -0.6861858367919922, 0.7083857655525208, 0.39417895674705505, 0.0525757297873497, 1.1879549026489258, -0.011838460341095924, -0.22709256410598755, -1.0528587102890015, -0.06885939836502075, -0.46838098764...
func (h *CanalEventHandler) OnXID(mysql.Position) error { h.log.Debug("Skipping OnXID event") return nil }
[ 1.0970239639282227, -0.8430255651473999, 0.5360881686210632, 0.03689771890640259, -0.37081536650657654, 0.9557172656059265, -0.34511321783065796, -0.03325554355978966, 0.7319358587265015, -0.053617652505636215, 0.09452645480632782, -0.8064019083976746, -0.7963445782661438, 0.09857092052698...
func (h *CanalEventHandler) OnGTID(mysql.GTIDSet) error { h.log.Debug("Skipping OnGTID event") return nil }
[ 0.8187527060508728, -0.9773136973381042, 0.3773251175880432, -0.6738474369049072, -0.30451861023902893, 0.9590933322906494, -0.023024996742606163, -0.5937377214431763, -0.2838035225868225, 0.679042398929596, 0.3208233714103699, 0.06213078275322914, -0.4765438437461853, -0.10546781867742538...
func (h *CanalEventHandler) OnPosSynced(mysql.Position, bool) error { h.log.Debug("Skipping OnPosSynced event") return nil }
[ 0.6054207682609558, -0.03858489915728569, 0.5699402689933777, 0.13279561698436737, -0.2886391878128052, 0.11406395584344864, -0.23482118546962738, 0.2264157384634018, 0.1816440373659134, 0.3861573338508606, -1.1511602401733398, -1.1538580656051636, 0.039657849818468094, -0.1306125223636627...
func (h *CanalEventHandler) String() string { return "canalEventHandler" }
[ 0.9455503821372986, -1.4193025827407837, 0.18546119332313538, -0.3531913757324219, -0.23393653333187103, 1.6503262519836426, 0.9060242772102356, -0.2475394606590271, -0.2109452337026596, -0.5788812637329102, -0.6494287252426147, -0.06058655306696892, 0.06638278812170029, -0.473618417978286...
func NewOptions(streams genericclioptions.IOStreams) *Options { configFlags := &genericclioptions.ConfigFlags{ KubeConfig: stringptr(""), } return &Options{ configFlags: configFlags, IOStreams: streams, } }
[ 0.36832863092422485, 0.056689560413360596, 0.3253682851791382, -0.017552491277456284, 0.27625223994255066, -0.4023328721523285, -0.2838960886001587, -0.9542790651321411, -0.06665147095918655, 0.5293919444084167, 0.5410863161087036, 0.5059550404548645, -0.6582893133163452, 0.538558483123779...
func NewCmd(streams genericclioptions.IOStreams) *cobra.Command { o := NewOptions(streams) cmd := &cobra.Command{ Use: "aad login [flags]", Short: "login to azure active directory and populate kubeconfig with AAD tokens", Example: fmt.Sprintf(cmdExample, "kubectl"), SilenceUsage: true, ...
[ 0.19830437004566193, -1.0297045707702637, 0.8457485437393188, -0.4636406898498535, -0.37101319432258606, 0.7007990479469299, 0.24993619322776794, -0.4354800283908844, 0.25822246074676514, 0.05728951096534729, 1.3625291585922241, 0.7919811010360718, 0.09015090018510818, 0.3791389763355255, ...
func (o *Options) Complete(cmd *cobra.Command, args []string) error { o.args = args clientConfig := o.configFlags.ToRawKubeConfigLoader() var err error o.rawConfig, err = clientConfig.RawConfig() if err != nil { return err } currentContext, exists := o.rawConfig.Contexts[o.rawConfig.CurrentContext] if !exis...
[ -0.25173109769821167, -0.7181056141853333, 0.8067247271537781, -0.04056796804070473, 0.0722159668803215, 0.30840831995010376, 0.46534010767936707, -0.29422664642333984, -0.12096904218196869, 1.006826400756836, -0.11631716787815094, 0.41996729373931885, 0.025742458179593086, 0.1690992563962...
func (o *Options) Validate() error { if len(o.args) > 0 { return errors.New("no argument is allowed") } if o.useServicePrincipal && o.useUserPrincipal { return errors.New("service principal and user principal cannot be used at the same time") } return nil }
[ -0.1375848799943924, 0.8177313208580017, 0.6698564291000366, 0.1890525221824646, 0.9320194721221924, 0.7499671578407288, 0.1062508299946785, -0.6607486605644226, -0.5245855450630188, -0.10069543123245239, 1.3565858602523804, 0.05679454281926155, -1.38898503780365, 0.5853923559188843, 0.1...
func (_m *UidService) Generate() string { ret := _m.Called() var r0 string if rf, ok := ret.Get(0).(func() string); ok { r0 = rf() } else { r0 = ret.Get(0).(string) } return r0 }
[ -1.0849950313568115, 0.2513914406299591, 0.37466520071029663, 0.23175428807735443, 0.07908838242292404, -0.025709645822644234, 0.43579909205436707, 0.4526093900203705, -0.18159204721450806, -0.4395340383052826, -0.18023410439491272, -0.004270326346158981, -0.00659964419901371, 0.1328032016...
func NewUidService(t mockConstructorTestingTNewUidService) *UidService { mock := &UidService{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }
[ -0.9409528374671936, -0.458972692489624, -0.19486340880393982, -0.46912649273872375, -0.21641892194747925, 0.3606421649456024, 0.07042831927537918, 0.011447339318692684, 0.6277174353599548, -1.086155652999878, 0.25024503469467163, 0.10206611454486847, -0.6682191491127014, 0.839726984500885...
func TestRun(t *testing.T) { Run() }
[ 0.3624913990497589, -0.2609051465988159, 0.13301119208335876, 0.409021258354187, 0.6016871333122253, 1.256042718887329, 1.0344572067260742, -0.00777580076828599, -0.09658859670162201, -0.7916008234024048, -0.9093039631843567, 0.27696913480758667, -0.634844958782196, 0.029070410877466202, ...
func (r WADORequest) Validate() bool { switch r.Type { case StudyRaw: return r.StudyInstanceUID != "" && r.SeriesInstanceUID == "" && r.SOPInstanceUID == "" case StudyRendered: return r.StudyInstanceUID != "" && r.SeriesInstanceUID == "" && r.SOPInstanceUID == "" case SeriesRaw: return r.StudyInstanceUID != "...
[ -0.5908183455467224, -0.47381454706192017, 1.0322790145874023, -0.6749270558357239, -0.17322994768619537, 0.5955508947372437, 0.181529238820076, -0.40461012721061707, 0.811011016368866, -0.802013635635376, 0.809816837310791, 0.3831199109554291, -1.1385577917099, 0.7866151928901672, -0.58...
func (*M4) Descriptor() ([]byte, []int) { return file_cmd_protoc_gen_go_peptide_testdata_imports_test_a_2_m4_proto_rawDescGZIP(), []int{0} }
[ -0.4232804477214813, -0.3759690821170807, 0.24913179874420166, -0.39392217993736267, -0.25324028730392456, -0.2439507097005844, 0.3573404550552368, 0.750911295413971, -0.7477671504020691, -0.41730570793151855, -0.3545534014701843, -0.08603008091449738, -0.7190971374511719, 1.11596000194549...
func (*ClientMonitoringConfig) Descriptor() ([]byte, []int) { return file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDescGZIP(), []int{0} }
[ 0.35037311911582947, 0.3255774974822998, -0.22325961291790009, -0.1798439621925354, 0.039238594472408295, 0.14697928726673126, 0.35224008560180664, 0.29670917987823486, -1.1313527822494507, 0.3069390058517456, -0.9304089546203613, -0.28651562333106995, 0.013979976996779442, 1.0328743457794...
func (*ClientMonitoringWhitelist) Descriptor() ([]byte, []int) { return file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDescGZIP(), []int{1} }
[ -0.18467240035533905, 0.4141813814640045, -0.2582819163799286, -1.2077046632766724, 0.6550090312957764, -0.07611344754695892, 0.47867709398269653, -0.5120874643325806, -0.5922393798828125, 0.2916438579559326, -0.4678628742694855, 0.26344960927963257, -0.4638105630874634, 0.9080722332000732...
func (*BootstrapConfigFile) Descriptor() ([]byte, []int) { return file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDescGZIP(), []int{2} }
[ -0.0013029734836891294, 0.3648075461387634, 0.42113345861434937, 0.23953253030776978, -0.4192090928554535, -0.14642445743083954, 0.35519903898239136, 0.9771277904510498, -1.6541197299957275, 0.6876202821731567, -0.5692771673202515, -0.26235732436180115, -0.2570895850658417, 0.7771096229553...
func (*BootstrapConfig) Descriptor() ([]byte, []int) { return file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDescGZIP(), []int{3} }
[ 0.24003367125988007, 0.5270370244979858, 0.4147222936153412, -0.27682048082351685, -0.4715869128704071, -0.40066906809806824, 0.12505093216896057, 0.9312030076980591, -0.7085124850273132, 0.47288990020751953, -0.9190863966941833, 0.15513907372951508, 0.10801345854997635, 0.9502324461936951...
func NewUpdateNetworkHTTPServerParams() *UpdateNetworkHTTPServerParams { var () return &UpdateNetworkHTTPServerParams{ timeout: cr.DefaultTimeout, } }
[ -1.0628299713134766, -0.5166435241699219, 0.06472637504339218, 0.926055371761322, -0.10663598030805588, 0.6749653816223145, -0.4505420923233032, 0.16804419457912445, -0.7470672726631165, 0.5481560826301575, -1.0571733713150024, -0.09061207622289658, -1.2272748947143555, 1.1728564500808716,...
func NewUpdateNetworkHTTPServerParamsWithTimeout(timeout time.Duration) *UpdateNetworkHTTPServerParams { var () return &UpdateNetworkHTTPServerParams{ timeout: timeout, } }
[ -0.3340236246585846, -0.49302688241004944, 0.33783233165740967, 0.7706415057182312, -0.4664377272129059, 1.2544914484024048, -0.9975260496139526, 0.10746647417545319, -0.6038865447044373, 1.3836418390274048, -0.5402918457984924, 0.4787006080150604, -1.1807199716567993, 1.075074553489685, ...
func NewUpdateNetworkHTTPServerParamsWithContext(ctx context.Context) *UpdateNetworkHTTPServerParams { var () return &UpdateNetworkHTTPServerParams{ Context: ctx, } }
[ -0.9660054445266724, -0.24807943403720856, 0.5490960478782654, 0.39903494715690613, -0.12712284922599792, 1.2843759059906006, -0.7587457299232483, -0.4101019501686096, -0.20407506823539734, 0.9752808213233948, -0.9588707089424133, 0.0453549288213253, -1.2372946739196777, 0.4336220622062683...
func NewUpdateNetworkHTTPServerParamsWithHTTPClient(client *http.Client) *UpdateNetworkHTTPServerParams { var () return &UpdateNetworkHTTPServerParams{ HTTPClient: client, } }
[ -0.9438821077346802, -0.7206771373748779, 0.3402141332626343, 0.35620248317718506, -0.10831994563341141, 1.0013312101364136, 0.062388937920331955, -0.015955956652760506, -0.6390721797943115, 0.5478692054748535, -1.0353808403015137, -0.13400575518608093, -0.764914870262146, 0.57309204339981...
func (o *UpdateNetworkHTTPServerParams) WithTimeout(timeout time.Duration) *UpdateNetworkHTTPServerParams { o.SetTimeout(timeout) return o }
[ -0.48178285360336304, -0.2865508496761322, 0.34586653113365173, 0.03237294405698776, -0.40184640884399414, 0.5554937124252319, -0.3735097348690033, -0.1950424760580063, 0.185491144657135, 0.8666508197784424, -0.5011472105979919, 0.10136102139949799, -0.49644923210144043, 0.8588563203811646...
func (o *UpdateNetworkHTTPServerParams) SetTimeout(timeout time.Duration) { o.timeout = timeout }
[ -0.9046702980995178, -0.042263299226760864, 0.2265935242176056, -0.06933180242776871, -0.048495445400476456, 1.1481819152832031, -0.2183893322944641, 0.06128685548901558, -0.1984359323978424, 0.9745310544967651, -0.45788416266441345, 0.10058175027370453, -0.950414776802063, 0.9889996647834...
func (o *UpdateNetworkHTTPServerParams) WithContext(ctx context.Context) *UpdateNetworkHTTPServerParams { o.SetContext(ctx) return o }
[ -1.303421974182129, -0.23687654733657837, 0.47138914465904236, -0.11654111742973328, -0.2595474421977997, 0.4770994782447815, -0.5101291537284851, -0.8613160848617554, 0.6117918491363525, 0.4327169358730316, -0.8015164136886597, -0.23473738133907318, -1.0636985301971436, 0.1632978320121765...
func (o *UpdateNetworkHTTPServerParams) SetContext(ctx context.Context) { o.Context = ctx }
[ -1.4517004489898682, 0.035025641322135925, 0.2847669720649719, 0.007111966144293547, 0.253368616104126, 0.89260333776474, -0.33811554312705994, -0.6823930740356445, 0.6836197972297668, 0.5123321413993835, -0.711061418056488, -0.24605341255664825, -1.1975821256637573, 0.4937868118286133, ...
func (o *UpdateNetworkHTTPServerParams) WithHTTPClient(client *http.Client) *UpdateNetworkHTTPServerParams { o.SetHTTPClient(client) return o }
[ -0.9262571930885315, -1.0328103303909302, 0.35098206996917725, -0.3792743384838104, -0.22497503459453583, 0.23948487639427185, 0.27784910798072815, -0.6977148652076721, -0.0830192118883133, -0.10252752900123596, -0.7436143159866333, -0.3720564842224121, -0.21684011816978455, -0.16793657839...
func (o *UpdateNetworkHTTPServerParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client }
[ -0.6865985989570618, -0.70482337474823, 0.2818044126033783, -0.8141393661499023, -0.43023496866226196, 0.419655978679657, 0.29494306445121765, -0.5889667272567749, -0.8013575673103333, 0.23639626801013947, -0.9122467041015625, -0.1754312813282013, -1.0176728963851929, 0.06104326993227005, ...
func (o *UpdateNetworkHTTPServerParams) WithID(id string) *UpdateNetworkHTTPServerParams { o.SetID(id) return o }
[ -0.7896931171417236, -0.9460785388946533, 0.2806940972805023, 0.18984994292259216, -0.15662284195423126, 0.8380548357963562, -0.4207545816898346, -0.3296931982040405, 0.8653109669685364, 0.6334685683250427, -0.9048529267311096, -0.467258095741272, -1.26447594165802, 0.8852684497833252, -...
func (o *UpdateNetworkHTTPServerParams) SetID(id string) { o.ID = id }
[ -1.1705763339996338, -0.8273565769195557, 0.16614119708538055, 0.1681451052427292, 0.15106330811977386, 1.2765965461730957, -0.395026832818985, -0.2965707778930664, 0.6509773135185242, 0.41412898898124695, -1.0127182006835938, -0.5028461813926697, -1.4779635667800903, 1.181579351425171, ...
func (o *UpdateNetworkHTTPServerParams) WithNetworkID(networkID string) *UpdateNetworkHTTPServerParams { o.SetNetworkID(networkID) return o }
[ -0.4379379153251648, -0.79421067237854, 0.3419727683067322, 0.2193944901227951, -0.16470490396022797, 0.6999387145042419, -0.05864629149436951, -0.4476583003997803, 1.1267752647399902, 1.021287441253662, -0.4902850091457367, -0.6378138065338135, -0.41456612944602966, 1.0342833995819092, ...
func (o *UpdateNetworkHTTPServerParams) SetNetworkID(networkID string) { o.NetworkID = networkID }
[ -0.9566913843154907, -0.6866709589958191, 0.34851619601249695, 0.5314448475837708, -0.018597254529595375, 1.0830572843551636, 0.28842848539352417, -0.10787063837051392, 0.8144016265869141, 0.8781430125236511, -0.8871985673904419, -0.24507038295269012, -1.004544973373413, 1.610321283340454,...
func (o *UpdateNetworkHTTPServerParams) WithUpdateNetworkHTTPServer(updateNetworkHTTPServer *models.UpdateNetworkHTTPServer) *UpdateNetworkHTTPServerParams { o.SetUpdateNetworkHTTPServer(updateNetworkHTTPServer) return o }
[ -1.7309534549713135, -1.3994438648223877, 0.49139559268951416, -0.11112090200185776, -0.1139807477593422, 0.5903490781784058, -0.5189340710639954, -0.6054731607437134, 0.26478350162506104, 0.49632254242897034, -0.7928990125656128, -0.5356920957565308, -0.6514027118682861, 0.327358692884445...
func (o *UpdateNetworkHTTPServerParams) SetUpdateNetworkHTTPServer(updateNetworkHTTPServer *models.UpdateNetworkHTTPServer) { o.UpdateNetworkHTTPServer = updateNetworkHTTPServer }
[ -1.5856525897979736, -1.2395800352096558, 0.360188752412796, -0.3100084662437439, 0.3937661051750183, 0.8884490728378296, -0.35168880224227905, -0.5142005085945129, 0.20443479716777802, 0.4807106852531433, -0.8361977934837341, -0.30497923493385315, -0.9055740833282471, 0.36261922121047974,...
func (o *UpdateNetworkHTTPServerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param id if err := r.SetPathParam("id", o.ID); err != nil { return err } // path param networkId if err := r.Se...
[ -1.4010717868804932, -0.2540646493434906, 0.8975169658660889, -0.5362110733985901, 1.0101182460784912, 0.20608027279376984, 0.7355740666389465, -0.31123554706573486, -0.19819684326648712, 0.35896655917167664, -0.13666623830795288, 0.15387876331806183, -0.9437615275382996, 0.503238201141357...
func doTestRequest(target string, req *http.Request, handlerFunc http.HandlerFunc, w *httptest.ResponseRecorder) *httptest.ResponseRecorder { if w == nil { w = httptest.NewRecorder() } router := mux.NewRouter() router.HandleFunc(target, handlerFunc) router.ServeHTTP(w, req) return w }
[ -0.4248858392238617, 0.07952090352773666, 0.6728343963623047, 0.07845290005207062, 0.24851898849010468, -0.3536025583744049, 0.38088905811309814, 0.05183108523488045, 0.5975985527038574, -0.5759934782981873, 1.0118211507797241, 0.8794997334480286, 0.45127207040786743, 0.18235132098197937, ...
func New(cfg *Config) (*Handler, error) { handler := new(Handler) uri := fmt.Sprintf(`amqp://%s`, cfg.Username) uri += fmt.Sprintf(`:%s`, cfg.Password) uri += fmt.Sprintf(`@%s:5672`, cfg.Host) if cfg.Vhost != "/" { uri += fmt.Sprintf(`/%s`, cfg.Vhost) } conn, err := amqp.Dial(uri) if err != nil { return ni...
[ 0.07689021527767181, -0.7264715433120728, 0.5109354853630066, 0.31171560287475586, -1.281240463256836, 0.3605794906616211, -0.478206604719162, 0.5954875946044922, -1.051528811454773, 0.5394466519355774, -0.2464570552110672, 0.2123919427394867, -0.004105632193386555, 0.13119091093540192, ...
func main() { // Open the iris dataset file. f, err := os.Open("data/iris_multiple_mixed_types.csv") if err != nil { log.Fatal(err) } defer f.Close() // Create a new CSV reader reading from the opened file. reader := csv.NewReader(f) // Create a slice value that will hold all of the successfully parsed //...
[ 0.5658165812492371, 0.2209017276763916, 0.8691737651824951, 0.35269665718078613, 0.7821099162101746, 0.2722513973712921, 0.2924575209617615, 1.1214672327041626, -0.9489179849624634, -0.15147556364536285, 0.4573078453540802, 0.496060311794281, 0.011076021939516068, -0.43694961071014404, 0...