text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (tracer *Tracer) Remove(ctx context.Context, start *wire.OutPoint) { for i, trace := range tracer.traces { if bytes.Equal(trace.outpoint.Hash[:], start.Hash[:]) && trace.outpoint.Index == start.Index { tracer.traces = append(tracer.traces[:i], tracer.traces[i+1:]...) return } } }
[ 0.6028084754943848, -0.6138595342636108, 0.6005740761756897, 0.16032063961029053, -0.6822801828384399, 0.028942057862877846, 0.6556694507598877, 0.010701203718781471, 0.6773350834846497, 0.7444506883621216, -0.5171524882316589, 0.23689043521881104, -1.2903462648391724, -0.31288909912109375...
func (tracer *Tracer) AddTx(ctx context.Context, tx *wire.MsgTx) bool { result := false for _, trace := range tracer.traces { if trace.addTx(tx) { result = true } } return result }
[ 0.0879766047000885, 0.9999641180038452, 0.6639217138290405, -0.009461935609579086, 0.20600342750549316, 0.6784987449645996, -0.3063177466392517, -1.0753982067108154, 0.684903621673584, 0.1781686246395111, -0.4458243250846863, -0.8971792459487915, -0.8732208609580994, 0.5606657266616821, ...
func (tracer *Tracer) RevertTx(ctx context.Context, txid *bitcoin.Hash32) { for _, trace := range tracer.traces { trace.revertTx(txid) } }
[ 0.8889983296394348, -0.02719241753220558, 0.2690431773662567, -1.028591275215149, 0.7835991382598877, 0.6234806180000305, 0.25550973415374756, -0.14298342168331146, 0.3369341790676117, 0.36717450618743896, -0.737328052520752, -0.04627451300621033, -0.5518811941146851, 0.14115595817565918, ...
func (tracer *Tracer) Contains(ctx context.Context, tx *wire.MsgTx) bool { for _, trace := range tracer.traces { if trace.contains(tx) { return true } } return false }
[ 1.1433831453323364, -0.06288287043571472, 0.30042004585266113, -0.4188483953475952, -0.17274455726146698, 0.4594014883041382, -0.21388311684131622, -1.1701890230178833, 0.13916772603988647, 0.23791050910949707, -0.14725643396377563, 0.5612938404083252, -0.6056249141693115, 0.58943974971771...
func (tracer *Tracer) Retrace(ctx context.Context, tx *wire.MsgTx) *bitcoin.Hash32 { for i, trace := range tracer.traces { if trace.contains(tx) { tracer.traces = append(tracer.traces[:i], tracer.traces[i+1:]...) return &trace.outpoint.Hash } } return nil }
[ 1.5642285346984863, 0.7229878306388855, 0.5497028231620789, 0.3706064522266388, -0.20372478663921356, -0.4581845998764038, 0.3606395721435547, -1.3849879503250122, 0.07559354603290558, 0.7575032114982605, 0.24611085653305054, -0.6095221042633057, -1.081501841545105, -0.48885825276374817, ...
func If(condition bool, validations []Func) Func { return func() error { if !condition { return nil } for _, validation := range validations { if err := validation(); err != nil { return errgo.Mask(err) } } return nil } }
[ 0.009947098791599274, 0.9534773826599121, 0.5267117619514465, 0.9989709854125977, -0.42423611879348755, 0.2659410238265991, 0.3894418478012085, -0.37850505113601685, -0.6005992889404297, 0.20152591168880463, 0.20855942368507385, -0.41042980551719666, 0.39461076259613037, 0.0346663743257522...
func NewReservationServiceItemModel(service ServiceModel, totalAmount AmountModel, dates []ServiceDateItemModel) *ReservationServiceItemModel { this := ReservationServiceItemModel{} this.Service = service this.TotalAmount = totalAmount this.Dates = dates return &this }
[ -0.06925918906927109, 0.6574616432189941, 0.38741302490234375, 0.9421442151069641, -0.47342920303344727, 0.8957509994506836, 0.09579183161258698, 0.029853815212845802, -0.390240341424942, 0.2257353961467743, -0.29317334294319153, -0.7102668881416321, -0.10160311311483383, -0.57054340839385...
func NewReservationServiceItemModelWithDefaults() *ReservationServiceItemModel { this := ReservationServiceItemModel{} return &this }
[ -0.07968953251838684, 0.7928044199943542, 0.3125375807285309, 0.9815335869789124, 0.7674593925476074, 0.24767254292964935, -0.5462440252304077, -0.23953022062778473, -0.2991374135017395, -0.47269806265830994, -1.018777847290039, -1.9165481328964233, -0.2597815990447998, -0.4055002629756927...
func (o *ReservationServiceItemModel) GetService() ServiceModel { if o == nil { var ret ServiceModel return ret } return o.Service }
[ 0.18320105969905853, 0.20790636539459229, -0.1732989400625229, 1.320006012916565, 0.46998322010040283, 0.914411187171936, 0.6713356971740723, -0.22155842185020447, 0.33634355664253235, -0.8822713494300842, -0.08932472765445709, -1.0448654890060425, -0.8200235962867737, 0.17277398705482483,...
func (o *ReservationServiceItemModel) GetServiceOk() (*ServiceModel, bool) { if o == nil { return nil, false } return &o.Service, true }
[ -0.5031039714813232, 0.6918424963951111, 0.1329156756401062, 1.160981297492981, 0.33051159977912903, -0.015684518963098526, 1.0247588157653809, 0.601882815361023, -0.22720757126808167, -0.04664915055036545, -1.1228893995285034, -0.6500533819198608, 0.16085770726203918, 0.1846383512020111, ...
func (o *ReservationServiceItemModel) SetService(v ServiceModel) { o.Service = v }
[ -0.36962684988975525, 0.5862643122673035, -0.17318791151046753, 1.2158631086349487, -0.5730711817741394, 0.8106503486633301, -0.04005720466375351, -0.5532100200653076, -0.5260761976242065, 0.07281729578971863, -0.6019303202629089, -0.36003559827804565, -0.414201021194458, 0.263303190469741...
func (o *ReservationServiceItemModel) GetTotalAmount() AmountModel { if o == nil { var ret AmountModel return ret } return o.TotalAmount }
[ 0.6173335313796997, -0.22476986050605774, 0.23513439297676086, 1.0655077695846558, 0.10067078471183777, 0.7248506546020508, 0.746444582939148, 0.44742363691329956, 1.0095633268356323, -0.09426780790090561, -0.3462572991847992, -0.6975259780883789, -0.03712756186723709, -0.4459032416343689,...
func (o *ReservationServiceItemModel) GetTotalAmountOk() (*AmountModel, bool) { if o == nil { return nil, false } return &o.TotalAmount, true }
[ -0.28416478633880615, -0.5119791626930237, 0.5339540839195251, 0.8856769800186157, -0.39200839400291443, 0.04963419958949089, 1.2989180088043213, 1.7288544178009033, 0.34672701358795166, 1.175140619277954, -0.9855738878250122, -1.6934537887573242, 0.6950989961624146, 0.5871695280075073, ...
func (o *ReservationServiceItemModel) SetTotalAmount(v AmountModel) { o.TotalAmount = v }
[ -0.2562352418899536, -0.29497382044792175, 0.0620955266058445, 0.6977664232254028, -1.008557915687561, 0.3027556538581848, 0.771945059299469, 0.21753868460655212, 0.23368622362613678, 0.5871856212615967, -0.7885284423828125, -0.4658375382423401, 0.3570494055747986, -0.43198081851005554, ...
func (o *ReservationServiceItemModel) GetDates() []ServiceDateItemModel { if o == nil { var ret []ServiceDateItemModel return ret } return o.Dates }
[ 0.2226201593875885, 1.106531023979187, -0.19740091264247894, 0.6469886302947998, 0.5361937284469604, 1.0561482906341553, 0.02040218375623226, -0.2907284200191498, 1.100890874862671, -0.9449267387390137, 0.16511094570159912, -0.5648652911186218, -0.6119700074195862, 0.3633959889411926, -0...
func (o *ReservationServiceItemModel) GetDatesOk() (*[]ServiceDateItemModel, bool) { if o == nil { return nil, false } return &o.Dates, true }
[ 0.21982939541339874, 1.1412566900253296, 0.3272956609725952, 0.7209170460700989, -0.052387334406375885, 0.757982075214386, 0.43073731660842896, 0.38533127307891846, 0.19291287660598755, 0.22655104100704193, -0.727942943572998, -0.7470906376838684, 0.006004298105835915, 0.7407229542732239, ...
func (o *ReservationServiceItemModel) SetDates(v []ServiceDateItemModel) { o.Dates = v }
[ -0.7768058180809021, 1.2110300064086914, -0.1807994246482849, 0.32850393652915955, -0.23934300243854523, 1.0109279155731201, -0.3661670684814453, 0.08401373028755188, 0.08081865310668945, -0.12351108342409134, -0.5467529296875, -0.4351567327976227, -0.11481472104787827, 0.6323913335800171,...
func addOptions(s string, opts interface{}) (string, error) { v := reflect.ValueOf(opts) if v.Kind() == reflect.Ptr && v.IsNil() { return s, nil } u, err := url.Parse(s) if err != nil { return s, err } qs, err := query.Values(opts) if err != nil { return s, err } u.RawQuery = qs.Encode() return u.St...
[ -0.44532233476638794, 0.4118889272212982, 0.45788800716400146, -0.4507087469100952, -0.48038041591644287, -0.6589198708534241, -0.4714314043521881, -0.6839878559112549, 1.3048756122589111, 0.14834503829479218, 0.8245601058006287, 0.1634739637374878, -0.558838427066803, 0.30014774203300476,...
func Bool(v bool) *bool { return &v }
[ 0.7720222473144531, 0.3260751962661743, 0.16432711482048035, 0.18467295169830322, -0.5295900702476501, 0.29863306879997253, 0.5673143863677979, 0.3433564305305481, 0.774019718170166, -0.24670791625976562, -0.09243576973676682, 1.2557083368301392, 0.4564785361289978, -1.4713518619537354, ...
func (c *rolloutContext) completedPrePromotionAnalysis() bool { if c.rollout.Spec.Strategy.BlueGreen == nil || c.rollout.Spec.Strategy.BlueGreen.PrePromotionAnalysis == nil { return true } currentAr := c.currentArs.BlueGreenPrePromotion if currentAr != nil && currentAr.Status.Phase == v1alpha1.AnalysisPhaseSucces...
[ -0.8562201261520386, -0.22750115394592285, 0.9070426225662231, 0.30445656180381775, -0.18629808723926544, 0.2566514015197754, 0.7263088822364807, -0.39247697591781616, 0.22888235747814178, 0.8816379904747009, -0.03794872760772705, 0.09953755885362625, 0.022399259731173515, 0.07958203554153...
func (pCtx *pauseContext) CompletedBlueGreenPause() bool { rollout := pCtx.rollout if pCtx.HasAddPause() { // return false if we just added a pause condition as part of this reconciliation return false } if rollout.Status.BlueGreen.ScaleUpPreviewCheckPoint { return true } if !needsBlueGreenControllerPause(r...
[ 0.07457451522350311, -0.721619725227356, 0.9631322622299194, 0.0730750560760498, -0.22305046021938324, -0.13566116988658905, -0.2943337559700012, 0.6322566866874695, -0.090924471616745, 0.5633355975151062, -0.24154032766819, 0.15380987524986267, -0.6798210144042969, -0.016632171347737312, ...
func convertTxs(txs []*rpcpb.Transaction) []FlatTx { return nil }
[ -0.8822222948074341, -0.4620628356933594, 0.4865800142288208, 0.027364030480384827, -0.41575556993484497, 0.15497273206710815, -0.2957803010940552, -0.6201428174972534, 1.0049169063568115, 0.6175094246864319, -0.5136644840240479, -0.538216769695282, -1.062264084815979, 0.0796293169260025, ...
func NewClusterManagerAdapter(clusterManager *cluster.Manager) *ClusterManagerAdapter { return &ClusterManagerAdapter{ clusterManager: clusterManager, } }
[ -0.4642629325389862, -1.0957555770874023, 0.21508021652698517, -0.13632890582084656, -1.9742687940597534, -0.5140624046325684, -0.3575841188430786, -0.05785084515810013, 0.6358377933502197, 0.4468734562397003, 0.7586771845817566, 1.16238272190094, -0.6052696704864502, 0.9963083267211914, ...
func (a *ClusterManagerAdapter) GetCluster(ctx context.Context, id uint) (workflow.EksCluster, error) { commonCluster, err := a.clusterManager.GetClusterByIDOnly(ctx, id) if err != nil { return nil, err } eksCluster := commonCluster.(*cluster.EKSCluster) return &Cluster{*eksCluster}, nil }
[ -0.2516062259674072, 0.2344685196876526, 0.38258615136146545, 0.3406684696674347, 0.8659870028495789, -0.3820582628250122, 0.27377742528915405, -0.5195603966712952, 1.3777878284454346, -0.5006358623504639, 0.9172896146774292, 0.9776411056518555, 0.054609909653663635, 0.2830507457256317, ...
func (in *NopOperator) DeepCopyInto(out *NopOperator) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) out.Status = in.Status return }
[ -0.33292680978775024, -0.3865203857421875, 0.46339496970176697, -0.20262722671031952, -1.1800777912139893, 0.3300503194332123, 0.3651803433895111, 0.3635500967502594, -1.5941282510757446, -0.13585536181926727, -0.6299742460250854, 0.9063685536384583, -0.14836689829826355, 0.388708710670471...
func (in *NopOperator) DeepCopy() *NopOperator { if in == nil { return nil } out := new(NopOperator) in.DeepCopyInto(out) return out }
[ -1.55465829372406, 0.19698211550712585, 0.2847689390182495, 0.605398416519165, -1.8262406587600708, -0.10743605345487595, 0.44131457805633545, -0.21220117807388306, -0.7349154353141785, -0.23084604740142822, -0.4314541220664978, -0.37087807059288025, -1.320723533630371, 0.5190810561180115,...
func (in *NopOperator) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ -0.7635449171066284, -0.05965808033943176, 0.5945309400558472, 0.2423800528049469, -0.9985265135765076, 0.38608598709106445, 1.2415064573287964, -0.009444350376725197, -0.9678099155426025, -0.5124543309211731, -0.39877939224243164, -0.4140041172504425, -0.27179503440856934, -0.047251719981...
func (in *NopOperatorList) DeepCopyInto(out *NopOperatorList) { *out = *in out.TypeMeta = in.TypeMeta out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]NopOperator, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return }
[ -0.7821902632713318, 0.20606489479541779, 0.4979136884212494, 0.20875446498394012, -0.9138214588165283, -0.07585690915584564, -0.06687977910041809, 0.6440823674201965, -1.4478732347488403, 0.3456997275352478, -0.9159928560256958, 0.24066093564033508, -0.647092342376709, 0.5777006149291992,...
func (in *NopOperatorList) DeepCopy() *NopOperatorList { if in == nil { return nil } out := new(NopOperatorList) in.DeepCopyInto(out) return out }
[ -1.8057655096054077, 0.2189570516347885, -0.012252959422767162, 1.0132933855056763, -0.703933596611023, 0.10576269030570984, -0.016979504376649857, 0.08176662027835846, -1.0019036531448364, 0.17483986914157867, -0.8186309933662415, -0.7878621816635132, -0.9973965287208557, 0.70887613296508...
func (in *NopOperatorList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ -1.2486413717269897, 0.10240297019481659, 0.45039916038513184, 0.3050154745578766, -0.784587562084198, 0.34724777936935425, 0.937109649181366, 0.21272778511047363, -0.9787532091140747, -0.3386901021003723, -0.8188812136650085, -0.6509793996810913, -0.5167599320411682, 0.3725026547908783, ...
func (in *NopOperatorSpec) DeepCopyInto(out *NopOperatorSpec) { *out = *in if in.Operators != nil { in, out := &in.Operators, &out.Operators *out = make([]OperatorChannel, len(*in)) copy(*out, *in) } return }
[ -0.14388607442378998, 0.2828025817871094, 0.5678510069847107, -0.44952863454818726, -0.8352673053741455, 0.13575033843517303, 0.20576444268226624, 0.28329476714134216, -1.6554054021835327, 0.22074322402477264, 0.10873650759458542, 0.5864197611808777, -0.49008241295814514, 0.134572267532348...
func (in *NopOperatorSpec) DeepCopy() *NopOperatorSpec { if in == nil { return nil } out := new(NopOperatorSpec) in.DeepCopyInto(out) return out }
[ -1.425506591796875, 0.21437853574752808, 0.0981454998254776, 0.034416962414979935, -0.7552407383918762, 0.3019694983959198, 0.8602681756019592, 0.009574479423463345, -1.0273618698120117, 0.2267545908689499, 0.2789434790611267, 0.08553168177604675, -0.42595013976097107, 0.2327978014945984, ...
func (in *NopOperatorStatus) DeepCopyInto(out *NopOperatorStatus) { *out = *in return }
[ 0.2101459503173828, -0.07155108451843262, 0.052548620849847794, 0.001445552334189415, -1.247002124786377, 0.41779303550720215, 0.003840592922642827, 0.6552409529685974, -1.508628010749817, -0.3726597726345062, -0.5159186124801636, 0.5173714756965637, -0.1812564730644226, -0.105529971420764...
func (in *NopOperatorStatus) DeepCopy() *NopOperatorStatus { if in == nil { return nil } out := new(NopOperatorStatus) in.DeepCopyInto(out) return out }
[ -1.089315414428711, -0.0758933424949646, -0.4751380681991577, 0.06917916238307953, -0.8255653977394104, -0.01616639271378517, 0.16231194138526917, -0.210743248462677, -0.6595731377601624, -0.27328988909721375, -0.4607771933078766, -0.3249070346355438, -0.3845804035663605, 0.305311471223831...
func (in *OperatorChannel) DeepCopyInto(out *OperatorChannel) { *out = *in return }
[ -0.14967024326324463, 0.21573850512504578, 0.5270432233810425, -0.25520041584968567, -0.7467642426490784, 0.512785792350769, -0.023816848173737526, 0.5740943551063538, -1.061095952987671, -0.40821772813796997, -0.36578497290611267, 0.9361538290977478, -0.5660631656646729, -0.43026810884475...
func (in *OperatorChannel) DeepCopy() *OperatorChannel { if in == nil { return nil } out := new(OperatorChannel) in.DeepCopyInto(out) return out }
[ -1.0350850820541382, 0.26013168692588806, 0.35595881938934326, 0.2636564075946808, -0.29060840606689453, 0.5563763380050659, 0.38200151920318604, -0.7228125333786011, -0.12293930351734161, 0.0004895560559816658, 0.4536266624927521, -0.1660933941602707, -1.4702506065368652, -0.5353069305419...
func NewActivitiesController(router gin.IRouter, client *ent.Client) *ActivitiesController { uc := &ActivitiesController{ client: client, router: router, } uc.register() return uc }
[ 0.37003830075263977, 0.5553880929946899, -0.027219004929065704, -0.5313771963119507, 0.1986932009458542, -0.43336647748947144, 0.35168391466140747, -0.5677725076675415, 0.3838661313056946, -0.18462620675563812, -0.22628997266292572, 0.6903173923492432, -0.12220674753189087, 0.7847262024879...
func (ctl *ActivitiesController) register() { activities := ctl.router.Group("/activities") activities.GET("", ctl.ListActivities) // CRUD activities.POST("", ctl.CreateActivities) activities.GET(":id", ctl.GetActivities) activities.PUT(":id", ctl.UpdateActivities) activities.DELETE(":id", ctl.DeleteActivities)...
[ -0.5113304257392883, 0.4920414686203003, 0.48878052830696106, 0.26856449246406555, 1.4909453392028809, -0.29854363203048706, 0.9741215109825134, 0.1756250560283661, -0.025651881471276283, -0.6008101105690002, 0.08873981982469559, 0.20734329521656036, -0.24822919070720673, 0.085422955453395...
func NewConnectionHost( uri string, connectionName string, connectionID uint64, heartbeat time.Duration, connectionTimeout time.Duration, maxChannel uint64, maxAckChannelCount uint64) (*ConnectionHost, error) { var amqpConn *amqp.Connection var err error amqpConn, err = amqp.DialConfig(uri, amqp.Config{ H...
[ 0.6338082551956177, -0.34358716011047363, 0.6029895544052124, 0.38013091683387756, -1.1031049489974976, -0.23261931538581848, -1.0256456136703491, -0.1684505045413971, -0.3610003888607025, 0.8302159905433655, 0.3319297432899475, -0.36198556423187256, -0.2786465585231781, -0.461233645677566...
func NewConnectionHostWithTLS( certServerName string, connectionName string, connectionID uint64, heartbeat time.Duration, connectionTimeout time.Duration, maxChannel uint64, maxAckChannelCount uint64, tlsConfig *tls.Config) (*ConnectionHost, error) { var amqpConn *amqp.Connection var err error amqpConn, e...
[ 1.1569311618804932, -0.6017391085624695, 0.49348658323287964, 0.1572876125574112, -1.2582045793533325, -0.0032840443309396505, -1.4905930757522583, -0.3115886151790619, -0.2900184094905853, 0.6577309966087341, 0.2611618638038635, -0.4804922640323639, 0.20810186862945557, -0.111862175166606...
func (ch *ConnectionHost) CanAddChannel() bool { ch.chanRWLock.RLock() defer ch.chanRWLock.RUnlock() return ch.channelCount < ch.maxChannelCount }
[ 0.1656067818403244, 0.05231744796037674, 0.4897090792655945, -0.23065471649169922, -0.22446689009666443, 0.7321439981460571, -0.3446081876754761, -0.5105100274085999, -0.6607595086097717, -0.6423951387405396, 0.29555565118789673, 0.24663980305194855, -0.5642804503440857, 0.6680253744125366...
func (ch *ConnectionHost) AddChannel() { ch.chanRWLock.Lock() defer ch.chanRWLock.Unlock() ch.channelCount++ }
[ -0.37466034293174744, -0.21493738889694214, 0.5628852248191833, 0.004958814010024071, 0.7902169227600098, 0.7598204612731934, -0.11164578795433044, -0.025524800643324852, -0.3486858308315277, -1.6034678220748901, 0.21576450765132904, 0.7515266537666321, -0.7632051110267639, 0.8427096605300...
func (ch *ConnectionHost) RemoveChannel() error { ch.chanRWLock.Lock() defer ch.chanRWLock.Unlock() if ch.channelCount == 0 { return errors.New("can't remove any more channels from this connection host") } ch.channelCount-- return nil }
[ -0.15703386068344116, 0.13780081272125244, 0.45542237162590027, -0.3255874812602997, 0.40397369861602783, -0.12902282178401947, 0.16511404514312744, 0.366676926612854, -0.6091528534889221, -0.8271031379699707, 0.24458567798137665, 0.12609493732452393, -1.1068511009216309, 0.473669588565826...
func (ch *ConnectionHost) CanAddAckChannel() bool { ch.ackChanRWLock.RLock() defer ch.ackChanRWLock.RUnlock() return ch.ackChannelCount < ch.maxAckChannelCount }
[ -0.03316623345017433, 0.402521014213562, 0.5089128017425537, -0.013250881806015968, -0.515366792678833, -0.0527099147439003, 0.071865014731884, -0.5046217441558838, -0.5837957859039307, -0.31074512004852295, 0.5389947891235352, 0.39934104681015015, -0.24272803962230682, 0.7120318412780762,...
func (ch *ConnectionHost) AddAckChannel() { ch.ackChanRWLock.Lock() defer ch.ackChanRWLock.Unlock() ch.ackChannelCount++ }
[ -0.13730816543102264, -0.3267514109611511, 0.6648916006088257, -0.33880698680877686, 0.27066609263420105, -0.26860788464546204, 0.208024799823761, -0.49109652638435364, -0.21667413413524628, -0.486359179019928, 0.19748897850513458, 0.7135393023490906, -0.04345458373427391, 1.19383525848388...
func (ch *ConnectionHost) RemoveAckChannel() error { ch.ackChanRWLock.Lock() defer ch.ackChanRWLock.Unlock() if ch.ackChannelCount == 0 { return errors.New("can't remove any more channels from this connection host") } ch.ackChannelCount-- return nil }
[ 0.2619784474372864, 0.009122442454099655, 0.5520668625831604, -0.37881016731262207, -0.3026798367500305, -0.9952850937843323, 0.4412637948989868, -0.007901676930487156, -0.46313533186912537, 0.19458946585655212, 0.4594827890396118, 0.15620113909244537, -1.0797648429870605, 0.96599853038787...
func CreateUser(context *fiber.Ctx) error { new_user := new(models.User) if err := context.BodyParser(new_user); err != nil { return context.Status(503).SendString(err.Error()) } hash, err := hashPassword(new_user.Pswd) if err != nil { my_error := new(my_error) my_error.My_error = "failed to make a hash for...
[ -0.42847201228141785, -0.36883649230003357, 0.7891352772712708, 0.838938295841217, 0.39716440439224243, 0.4945579171180725, -0.16753937304019928, -0.5684376955032349, 0.07298673689365387, -0.07295685261487961, -0.49864551424980164, -0.6369924545288086, -0.2593551278114319, 0.73548281192779...
func GetUser(c *fiber.Ctx) error { claims, err := utils.ExtractTokenMetadata(c) username := claims.Username // check if the user requested is equel to JWT user if username != c.Params("user_name") { return c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{ "error": true, "msg": "Forbidden, requeste...
[ -0.5857849717140198, -0.34113216400146484, 0.8942912817001343, 0.4176240861415863, -0.443217933177948, -0.05876965448260307, -0.4190598130226135, -0.5365884304046631, -0.46279171109199524, -0.34275415539741516, -0.9623973965644836, 0.2782093286514282, -0.04220989719033241, 0.45356556773185...
func WordCount(s string) map[string]int { wcount := make(map[string]int) for _, v := range strings.Fields(s) { wcount[v] = wcount[v] + 1 } return wcount }
[ 0.4662039279937744, -0.4157574474811554, 0.5329901576042175, -1.500773549079895, -0.8695716261863708, -0.3065662682056427, 0.8309882283210754, 0.2809523642063141, -0.13336066901683807, 0.7033851742744446, -0.7400596141815186, 0.4349164068698883, 0.8716355562210083, 0.3572966456413269, -0...
func proc_exit(exitcode uint32)
[ 0.5409954786300659, -0.09767506271600723, 0.474077969789505, -0.5027823448181152, 0.2456171065568924, 0.0864962711930275, 0.7132014036178589, -0.08491986244916916, -0.5469537973403931, 0.4954623878002167, 0.15114891529083252, -0.015877828001976013, 0.005776607431471348, -0.3378110826015472...
func abort() { trap() }
[ 0.3581666052341461, 0.157786026597023, 0.22930476069450378, 0.10711902379989624, -0.2933211922645569, 1.0179545879364014, 0.23351873457431793, -1.340164303779602, 0.029257774353027344, -0.6504724025726318, 1.1590576171875, 0.40572449564933777, 0.37356993556022644, 0.3666944205760956, 1.1...
func procPin() { }
[ 0.4833524525165558, -0.671850860118866, 0.3653835356235504, 1.060863971710205, -0.21944104135036469, 0.21623125672340393, 0.8235121965408325, -1.030109167098999, 0.042929310351610184, -0.552271842956543, 0.21817053854465485, 0.8368527293205261, -0.6030405163764954, -0.2608916163444519, 0...
func YAMLForComponentSource(ctx context.Context, source ComponentSource) ([]byte, error) { var data []byte switch source.Type { case URLSource: resp, err := http.Get(source.Value) if err != nil { return nil, err } defer resp.Body.Close() buf, err := ioutil.ReadAll(resp.Body) if err != nil { return...
[ 0.2969273626804352, -0.03340288996696472, 0.41137686371803284, -0.5914409160614014, -0.16110800206661224, -0.7885810732841492, -0.4072544574737549, 0.3239564597606659, 0.1739673912525177, 0.514896035194397, -0.1383419930934906, 0.658186674118042, 0.2780526578426361, 0.7041494846343994, 1...
func ComponentGeneratorForComponentSource(source ComponentSource) ComponentGenerator { return componentSourceGenerator{ComponentSource: source} }
[ -0.392713338136673, -0.4542500376701355, 0.0014622015878558159, -1.609082818031311, -0.6291801333427429, -0.41585811972618103, -0.7625328898429871, 1.0938538312911987, 0.7185102701187134, -0.48609647154808044, -0.21026308834552765, -0.6292151212692261, 0.08307936042547226, 0.40071818232536...
func (g componentSourceGenerator) GetName() string { return g.Name }
[ -0.351872056722641, -0.016685426235198975, 0.3495774567127228, -0.9785766005516052, -0.3451208174228668, -0.09745714068412781, 0.33317604660987854, 0.589368462562561, -0.06767783313989639, -0.07805142551660538, -0.5614229440689087, -0.8547691106796265, 0.21746382117271423, 0.42102313041687...
func (g componentSourceGenerator) Manifests(ctx context.Context) ([]byte, error) { return YAMLForComponentSource(ctx, g.ComponentSource) }
[ -0.28348982334136963, -0.09431283175945282, 0.07620105147361755, -0.6436955332756042, -1.100398063659668, -0.5020588636398315, -0.3203606903553009, 0.4704709053039551, 0.8916283845901489, -0.5799851417541504, -0.25405585765838623, 0.036223262548446655, 0.0456351600587368, 0.823732078075408...
func NewGetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams() *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams { var () return &GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams{ timeout: cr.DefaultTimeout, } }
[ 0.8073790073394775, -1.0869888067245483, 0.5079829096794128, 0.4627320170402527, -0.6111090779304504, 0.307435005903244, 0.23469017446041107, -0.06032383441925049, -0.3388981819152832, -0.6150628328323364, -0.6136655211448669, 1.194579839706421, 0.2801562249660492, 0.12262475490570068, 0...
func NewGetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParamsWithTimeout(timeout time.Duration) *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams { var () return &GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams{ timeout: timeout, } }
[ 1.199121356010437, -0.8633547425270081, 0.53355473279953, 0.41455426812171936, -0.6749944686889648, 0.6955857872962952, -0.18807780742645264, -0.07966674864292145, -0.3009433448314667, -0.0012742113322019577, -0.34500056505203247, 1.4004566669464111, 0.323527455329895, 0.3839440643787384, ...
func NewGetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParamsWithContext(ctx context.Context) *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams { var () return &GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams{ Context: ctx, } }
[ 0.6346482038497925, -0.7647786736488342, 0.5430980324745178, 0.1686358004808426, -0.47900694608688354, 0.5684695839881897, -0.15720628201961517, -0.6843432188034058, 0.20402242243289948, -0.29204705357551575, -0.4958658814430237, 0.9254670143127441, 0.07520432025194168, 0.02239728346467018...
func NewGetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParamsWithHTTPClient(client *http.Client) *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams { var () return &GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams{ HTTPClient: client, } }
[ 0.8026061654090881, -1.0293320417404175, 0.5638784170150757, 0.27118033170700073, -0.2644543945789337, 0.7743950486183167, 0.49081680178642273, -0.03082897700369358, -0.49508267641067505, -0.6739675998687744, -0.5222712159156799, 1.1285642385482788, 0.06228291615843773, -0.1524939835071563...
func (o *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams) WithTimeout(timeout time.Duration) *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams { o.SetTimeout(timeout) return o }
[ 0.9809101819992065, -0.6750587821006775, 0.4102576673030853, 0.13288192451000214, -0.9726545810699463, 0.2658005654811859, 0.034803010523319244, -0.3557335138320923, 0.333682119846344, 0.14210925996303558, 0.09131886065006256, 1.0851876735687256, 1.0356119871139526, 0.04788472503423691, ...
func (o *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams) SetTimeout(timeout time.Duration) { o.timeout = timeout }
[ 0.9248279333114624, -0.5137960910797119, 0.3255497217178345, 0.29508405923843384, -0.5482102632522583, 0.8140739798545837, 0.19946643710136414, 0.161463662981987, -0.17121219635009766, 0.06628262251615524, -0.11325395852327347, 1.3680058717727661, 0.45120394229888916, -0.15945133566856384,...
func (o *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams) WithContext(ctx context.Context) *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams { o.SetContext(ctx) return o }
[ 0.28092384338378906, -0.7040244340896606, 0.4822154641151428, 0.07002219557762146, -0.8344223499298096, 0.20269258320331573, -0.1932029128074646, -0.7895542979240417, 0.8504785299301147, -0.3808038830757141, -0.11331120133399963, 0.7782260179519653, 0.48189660906791687, -0.4578223824501037...
func (o *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams) SetContext(ctx context.Context) { o.Context = ctx }
[ 0.28656864166259766, -0.5038984417915344, 0.3281612992286682, 0.5074551105499268, -0.3566105365753174, 0.6758760213851929, 0.0010942565277218819, -0.3541279137134552, 0.6698782444000244, -0.24034525454044342, -0.399835467338562, 1.085337519645691, 0.29721617698669434, -0.45327919721603394,...
func (o *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams) WithHTTPClient(client *http.Client) *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams { o.SetHTTPClient(client) return o }
[ 0.5259429216384888, -1.4035825729370117, 0.4525294601917267, -0.15182004868984222, -0.6489027142524719, 0.34521856904029846, 0.33384963870048523, -0.420699805021286, -0.010752939619123936, -0.8713610172271729, -0.08498872071504593, 0.83882075548172, 0.6980046033859253, -0.6570041179656982,...
func (o *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client }
[ 0.9798457026481628, -0.9407238960266113, 0.2742614150047302, -0.3241807520389557, -0.6966004371643066, 0.16093888878822327, 0.43642839789390564, -0.3240380883216858, -0.44130799174308777, -0.4846689701080322, -0.1992758810520172, 1.327683687210083, 0.3313004672527313, -0.8679229021072388, ...
func (o *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams) WithForce(force bool) *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams { o.SetForce(force) return o }
[ 0.13222713768482208, -0.48015281558036804, 0.42644137144088745, 0.059010040014982224, -0.26107847690582275, -0.0767546221613884, 0.11362010985612869, -0.31832385063171387, 0.36677324771881104, -0.7495489120483398, 0.051649075001478195, 0.6888843178749084, 0.1831357330083847, 0.152967527508...
func (o *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams) SetForce(force bool) { o.Force = force }
[ 0.09005070477724075, -0.31417328119277954, 0.34744027256965637, 0.34476736187934875, 0.1109895408153534, 0.20993652939796448, 0.2725815176963806, 0.2190784215927124, -0.035648565739393234, -0.5882580876350403, -0.4306461811065674, 0.8840857148170471, -0.39652958512306213, 0.253919869661331...
func (o *GetLolAcsV2RecentlyPlayedChampionsCurrentSummonerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // query param force qrForce := o.Force qForce := swag.FormatBool(qrForce) if qForce != "" { if...
[ -0.7133995890617371, -0.25050222873687744, 0.6691038012504578, -0.41671109199523926, 0.6704180836677551, -0.07835404574871063, 0.7127825617790222, 0.04053521528840065, -0.09587626904249191, -0.15740442276000977, 0.2586692273616791, 0.8462619185447693, -0.20883215963840485, -0.0542947985231...
func diffIdsTupleSlices(a []IdsTuple, b []IdsTuple) []IdsTuple { index := 0 diff := []IdsTuple(nil) for _, n := range a { for index < len(b) && CompareIdsTuple(&n, &b[index]) == 1 { index++ } if index >= len(b) || CompareIdsTuple(&n, &b[index]) == -1 { diff = append(diff, n) } } return diff }
[ -1.5075064897537231, -0.3954465687274933, 0.6588814854621887, -0.2346634566783905, 0.24434532225131989, 0.44398993253707886, 0.4754357635974884, -0.8261277079582214, 0.3758832812309265, 0.41959699988365173, -0.05856969580054283, 0.45513975620269775, -0.260945588350296, 0.7454338073730469, ...
func DeleteFromTable(info TableInfo, ids []IdsTuple, local *sql.DB) (int64, error) { // start := time.Now() // defer func() { // utils.Profile("DeleteFromTable", time.Now().Sub(start)) // }() if affected, err := deleteRows(info, ids, local); err != nil { return 0, err } else { return affected, nil } }
[ 0.23837924003601074, -0.5642460584640503, 0.5844114422798157, 1.1803642511367798, -0.35463371872901917, -0.3221457302570343, 0.8325719237327576, -0.18114352226257324, -0.0306038036942482, 0.2528085708618164, -0.23710942268371582, -0.6710431575775146, -0.1435585767030716, 0.4055268466472626...
func addScopeId(table string, id IdsTuple, scope map[string]*ScopeIds, isLocal bool) { if _, ok := scope[table]; !ok { scope[table] = &ScopeIds{nil, nil} } scopeIds := scope[table] if isLocal { if i := sort.Search(len(scopeIds.local), func(i int) bool { return CompareIdsTuple(&scopeIds.local[i], &id) != -1 ...
[ -0.8921115398406982, -0.651952862739563, 0.939494788646698, -0.8099448084831238, 0.1807631254196167, 0.3357662558555603, -0.4501567780971527, 0.49392062425613403, 0.782412588596344, 1.583260178565979, -0.20812471210956573, 0.6770943999290466, -1.0081263780593872, 0.3229309320449829, -0.1...
func PushController(c *gin.Context) { config := config.GetConfig() userID := c.Query("userId") tagKey := c.Query("tagKey") tagValue := c.Query("tagValue") if userID == "" { userID = util.GetRandomUser() } if tagKey == "" { tagKey = config.GetString("tagKey") } if tagValue == "" { tagValue = config.GetSt...
[ 0.35362744331359863, 0.6486887335777283, 0.7210549116134644, 0.21097396314144135, 0.2689644396305084, 0.4134378433227539, -0.0028903295751661062, -0.6071769595146179, -0.9593704342842102, 1.0910580158233643, 0.031241444870829582, 0.00901095848530531, -0.22192400693893433, 0.922148048877716...
func PushMetricToCloudWatch(namespace string, name string, value float64, metaInfo MetricMetaData) error { // Acquire aws session s := session.Must(session.NewSessionWithOptions(session.Options{ SharedConfigState: session.SharedConfigEnable, })) // create a cloudwatch service handler svc := cloudwatch.New(s) ...
[ 0.5859612226486206, 0.6169999837875366, 0.5449894666671753, -0.472925066947937, -0.3832036256790161, 0.788267970085144, -0.41941535472869873, -1.3381162881851196, -0.8802822828292847, 0.7305641770362854, 0.22542062401771545, 1.0791339874267578, 0.44125309586524963, 0.3432011604309082, 0....
func UpdateMetrics() error { // err is aggregation of errors while running each of the MetricFetchers var err error // wg is go's way of concurrency control essentially a way to say when the main thread can resume execution var wg sync.WaitGroup // main thread after spawning go routines should resume only once al...
[ 0.3023901879787445, 1.0024559497833252, 0.8957002758979797, 0.3430640995502472, 0.7546785473823547, 0.8419151902198792, 0.3750447928905487, -0.9981271624565125, -1.2550313472747803, 0.3785489499568939, 0.5343671441078186, 0.14498497545719147, -0.29553747177124023, 0.8453598022460938, -0....
func Run(s *options.MCMServer) error { // To help debugging, immediately log version klog.V(4).Infof("Version: %+v", version.Get()) if err := s.Validate(); err != nil { return err } var err error //kubeconfig for the cluster for which machine-controller-manager will create machines. targetkubeconfig, err := ...
[ -0.08781901746988297, -0.528811514377594, 0.7541965246200562, -0.03774740546941757, -0.0756978839635849, 0.34297385811805725, -0.023320484906435013, -0.1276324838399887, -0.7972902059555054, -0.2536504864692688, -0.4800417125225067, 0.22688940167427063, -0.8453009128570557, 0.5679100155830...
func StartControllers(s *options.MCMServer, controlCoreKubeconfig *rest.Config, targetCoreKubeconfig *rest.Config, controlMachineClientBuilder machinecontroller.ClientBuilder, controlCoreClientBuilder corecontroller.ClientBuilder, targetCoreClientBuilder corecontroller.ClientBuilder, recorder record.EventRecorder...
[ 0.008109360933303833, 0.13481390476226807, 0.5806372761726379, -0.10186409205198288, 0.11491868644952774, 0.16913112998008728, 0.49887868762016296, 0.27979686856269836, -0.33623576164245605, -0.10287820547819138, 0.08652014285326004, 0.5539898872375488, -0.9725272059440613, 0.5505287647247...
func getAvailableResources(clientBuilder corecontroller.ClientBuilder) (map[schema.GroupVersionResource]bool, error) { var discoveryClient discovery.DiscoveryInterface var healthzContent string // If apiserver is not running we should wait for some time and fail only then. This is particularly // important when we...
[ -0.757188081741333, -0.6025261878967285, 0.8941916823387146, 0.3163091242313385, -0.19878588616847992, 0.23339828848838806, 0.5207928419113159, 0.26026394963264465, -0.7111218571662903, 0.7581115961074829, -0.3931465446949005, 0.21932964026927948, -0.600585401058197, 0.9337324500083923, ...
func (sf *TWindow) Draw() { WindowManager().BeginUpdate() defer WindowManager().EndUpdate() PushAttributes() defer PopAttributes() fg, bg := RealColor(sf.fg, sf.Style(), ColorViewText), RealColor(sf.bg, sf.Style(), ColorViewBack) SetBackColor(bg) FillRect(sf.pos.GetX(), sf.pos.GetY(), int(sf.width.Get()), int(...
[ -0.30310651659965515, 0.006785436999052763, 0.7304294109344482, -0.7269526124000549, -0.08041532337665558, 0.11126489192247391, 0.5560702681541443, -0.4448384940624237, -0.4732080101966858, -0.7142135500907898, 0.013539769686758518, 0.7927225828170776, 0.5003015995025635, 1.149891853332519...
func (sf *TWindow) HitTest(x types.ACoordX, y types.ACoordY) HitResult { if x > sf.pos.GetX() && x < sf.pos.GetX()+types.ACoordX(sf.width.Get()-1) && y > sf.pos.GetY() && y < sf.pos.GetY()+types.ACoordY(sf.height.Get()-1) { return HitInside } hResult := HitOutside switch { case x == sf.pos.GetX() && y == sf....
[ 0.07179958373308182, -0.2108883410692215, 1.0691083669662476, -0.5965429544448853, -0.49361610412597656, -0.296322226524353, 0.8133572936058044, -1.465488076210022, -0.02009906806051731, -0.213936910033226, 0.327400267124176, -0.02400721237063408, 0.14295321702957153, 0.09682288765907288, ...
func (sf *TWindow) OnClose(fn func(Event) bool) { sf.onClose = fn }
[ 0.11455309391021729, -0.04776909202337265, 0.678648054599762, 0.2525221109390259, -1.17314875125885, 0.2842710614204407, 0.4476235806941986, -0.5910683870315552, -0.28719982504844666, -0.3540326654911041, -0.013757823966443539, -0.5523496866226196, 0.4923469126224518, 0.955014705657959, ...
func (sf *TWindow) OnKeyDown(fn func(Event, interface{}) bool, data interface{}) { if fn == nil { sf.onKeyDown = nil } else { sf.onKeyDown = &keyDownCb{data: data, fn: fn} } }
[ 1.0384520292282104, 0.014550683088600636, 0.5505651235580444, 0.30316102504730225, -0.6820896863937378, 0.15944038331508636, 0.029602592810988426, 0.4670857787132263, 0.2740064859390259, -0.31864526867866516, -0.05361759290099144, -0.08053804188966751, 0.2284315824508667, 1.189829587936401...
func (sf *TWindow) OnScreenResize(fn func(Event)) { sf.onScreenResize = fn }
[ 0.0839778259396553, -0.04339340329170227, 0.5555985569953918, 0.31256169080734253, -0.8113741278648376, -0.9497774839401245, 0.0885927751660347, -0.6217801570892334, 0.42212504148483276, -0.41393640637397766, -0.5670995712280273, 0.031880125403404236, 0.6762110590934753, 1.0043799877166748...
func (sf *TWindow) Border() BorderStyle { return sf.border }
[ 0.926059901714325, 0.009502722881734371, 0.29173117876052856, 0.8941105008125305, -0.6506689786911011, 0.4266369044780731, 0.8540927767753601, -0.597209095954895, 0.5027484893798828, -0.7749574780464172, -0.22687701880931854, 1.1024888753890991, -0.05019555240869522, 1.0460700988769531, ...
func (sf *TWindow) SetBorder(border BorderStyle) { sf.border = border }
[ 0.5367698073387146, 0.21375495195388794, 0.18647000193595886, 0.6705149412155151, 0.01756611093878746, 0.2743622660636902, 0.4819679260253906, -0.6145907640457153, 0.7858028411865234, -1.2333577871322632, -1.1056852340698242, 0.7114433646202087, 0.38285478949546814, 1.9270514249801636, -...
func (sf *TWindow) SetMaximized(maximize bool) { if maximize == sf.maximized { return } if maximize { x, y := sf.pos.Get() sf.posOrig.X().Set(x) sf.posOrig.Y().Set(y) sf.origWidth, sf.origHeight = sf.Size() sf.maximized = true sf.SetPos(0, 0) width, height := ScreenSize() sf.SetSize(width, height)...
[ -0.17836616933345795, 0.21017639338970184, 0.5589913725852966, -0.32713258266448975, -0.035582512617111206, -0.3477496802806854, 0.5117650628089905, -0.010983853600919247, 0.590447723865509, -0.3681648075580597, -1.0766136646270752, 0.26411470770835876, 0.5580090880393982, 0.93683677911758...
func (sf *TWindow) Maximized() bool { return sf.maximized }
[ 0.45488879084587097, -0.011525414884090424, 0.5606608390808105, 0.376179575920105, 0.025341028347611427, 0.9347705841064453, -0.22459575533866882, 0.19445756077766418, 0.5025750398635864, -0.9207238554954529, -0.9146385192871094, 0.11977633833885193, 0.6663413047790527, 0.9691016674041748,...
func (sf *TWindow) Visible() bool { return !sf.hidden }
[ -0.09627406299114227, 0.06786786764860153, 0.4343925714492798, -0.5430479049682617, -0.6526750326156616, 0.45900335907936096, 0.9007034301757812, -0.33981895446777344, -1.047961711883545, 0.3573682904243469, -0.8789744973182678, 0.34248271584510803, 0.7713530659675598, 0.9157931208610535, ...
func (sf *TWindow) SetVisible(visible bool) { if sf.hidden != visible { return } sf.hidden = !visible if sf.hidden { sf.SetModal(false) if WindowManager().topWindow() == sf { WindowManager().moveActiveWindowToBottom() } } else { WindowManager().activateWindow(sf) } }
[ -0.0911092609167099, -0.045104801654815674, 0.6173527240753174, 0.5257105827331543, -0.4350508153438568, 0.013495707884430885, 1.3810844421386719, -0.012078596279025078, -0.43466639518737793, 0.5323602557182312, -0.47668927907943726, 0.9892066717147827, -0.2094716727733612, 1.2068847417831...
func (sf *TWindow) Movable() bool { return !sf.immovable }
[ -0.8051803708076477, -0.27790820598602295, 0.7752244472503662, -0.270882248878479, -0.5661681890487671, 1.193111777305603, 0.11603787541389465, -0.09997198730707169, -0.9595493078231812, 0.3587588965892792, -0.7021632194519043, 0.012485996820032597, 0.15005862712860107, 0.8827489018440247,...
func (sf *TWindow) Sizable() bool { return !sf.fixedSize }
[ -0.17953984439373016, 0.06663522869348526, 0.3879539668560028, -0.6963179111480713, -0.24900950491428375, 0.3162641227245331, 0.736513078212738, -0.7139108180999756, -0.28437894582748413, -0.6698046326637268, -0.5152419805526733, -0.3313007950782776, 0.46790066361427307, 1.1946560144424438...
func (sf *TWindow) SetMovable(movable bool) { sf.immovable = !movable }
[ -0.5872015953063965, 0.20036359131336212, 0.6110759377479553, -0.0869198739528656, -0.4396524131298065, 1.0307155847549438, 0.19624029099941254, -0.3241833746433258, -1.5783703327178955, 0.27942925691604614, -0.6395105719566345, 0.3566393554210663, -0.3725055754184723, 1.3265665769577026, ...
func (sf *TWindow) SetSizable(sizable bool) { sf.fixedSize = !sizable }
[ 0.1471155881881714, 0.33537906408309937, 0.5125218033790588, -0.0014683891786262393, -0.5248119235038757, 0.4694419205188751, 1.4503061771392822, -0.49648863077163696, -0.8272989392280579, -0.3454606235027313, -0.8409591317176819, -0.4806880056858063, -0.11941155791282654, 1.27761554718017...
func (sf *TWindow) TitleButtons() ViewButton { return sf.buttons }
[ -0.19917511940002441, 0.3193308115005493, 0.541850209236145, -0.06300610303878784, -1.0742454528808594, 0.059596799314022064, -0.632866621017456, -0.8738359212875366, 1.4488967657089233, -0.4799579083919525, -1.3422553539276123, 0.4524405002593994, -0.2785189151763916, -0.6080977916717529,...
func (sf *TWindow) SetTitleButtons(buttons ViewButton) { sf.buttons = buttons }
[ -0.5291345715522766, 0.2854030132293701, 0.42998847365379333, -0.12803369760513306, -0.8348079323768616, 0.30047550797462463, -0.5784978866577148, -0.9678929448127747, 0.9347674250602722, -0.4268651604652405, -2.0440328121185303, 0.5915152430534363, 0.10585201531648636, 0.05395369976758957...
func testHttpClient() *http.Client { return &http.Client{ CheckRedirect: func(req *http.Request, via []*http.Request) error { return http.ErrUseLastResponse }, } }
[ 0.21553324162960052, -0.7442638874053955, 0.42076489329338074, 0.11292638629674911, -0.17713062465190887, 0.49029403924942017, 0.778344988822937, -0.6311553716659546, 0.8967067003250122, -1.1874679327011108, 0.005716018844395876, 0.10902764648199081, 0.0139154102653265, -0.4003211855888366...
func doRedirectTest(t *testing.T, uri string, expected_location_uri string) { client := testHttpClient() res, err := client.Get(testServer.URL + uri) if err != nil { t.Fatal(err) } if res.StatusCode != 301 { t.Errorf("GET %s : Expected HTTP Status Code 301, got %d\n", uri, res.StatusCode) } if res.Header.Get...
[ -0.29353487491607666, -0.3946230113506317, 0.938720703125, -0.1738315224647522, 0.5040359497070312, 0.7393819689750671, 0.6064212918281555, -0.1571822166442871, 0.8318429589271545, -0.7003675103187561, 0.7320489287376404, 0.8102854490280151, -0.2026037573814392, -1.4132349491119385, -0.1...
func doNotAllowedTest(t *testing.T, method string, uri string, expected_allow_header string) { client := testHttpClient() req, err := http.NewRequest(method, testServer.URL+uri, nil) if err != nil { t.Fatal(err) } res, err := client.Do(req) if err != nil { t.Fatal(err) } if res.StatusCode != 405 { t.Error...
[ -0.0010592859471216798, 0.2841280996799469, 0.9315682053565979, -0.0031884994823485613, -0.17161478102207184, 0.48609769344329834, 0.8405038714408875, -0.6556040644645691, -0.18052317202091217, -0.4926590919494629, 0.9159340858459473, 0.4599957764148712, -1.0334620475769043, -0.62725192308...
func doNotFoundTest(t *testing.T, method string, uri string) { client := testHttpClient() req, err := http.NewRequest(method, testServer.URL+uri, nil) if err != nil { t.Fatal(err) } res, err := client.Do(req) if err != nil { t.Fatal(err) } if res.StatusCode != 404 { t.Errorf("%s %s : Expected HTTP Status ...
[ -0.5476200580596924, 0.6808580160140991, 0.4353754222393036, -0.1356462687253952, 1.1052818298339844, 0.8025057315826416, 0.5781517028808594, -0.5300155878067017, -0.2972727119922638, -0.6634531021118164, 0.43105921149253845, 0.41214433312416077, -0.8257385492324829, -0.24353480339050293, ...
func TestLatestMetaDataProfile(t *testing.T) { expected_body := `default-hvm` doBodyTest(t, "GET", "/latest/meta-data/profile", expected_body) doBodyTest(t, "GET", "/latest/meta-data/profile/", expected_body) }
[ 0.4107806980609894, 0.913849949836731, 0.6551967859268188, 0.3959200084209442, 1.393898367881775, 0.9908959865570068, -0.7721651792526245, -0.5860382914543152, -0.31512561440467834, 0.03608406335115433, -0.1807834804058075, 0.5705966353416443, 0.04145272821187973, -0.19813542068004608, -...