text
stringlengths
11
6.3k
embedding
listlengths
768
768
func TimestampString(ts *tspb.Timestamp) string { t, err := Timestamp(ts) if err != nil { return fmt.Sprintf("(%v)", err) } return t.Format(time.RFC3339Nano) }
[ -0.3676643967628479, 0.5551207661628723, 0.4745500385761261, -0.21291746199131012, -0.03095349296927452, 0.4992007613182068, -0.9862971901893616, -0.7118496894836426, 0.8997407555580139, 1.0302791595458984, -0.019857535138726234, -0.6875634789466858, 0.5184857249259949, -0.2672631740570068...
func TimestampAdd(ts *tspb.Timestamp, d time.Duration) (*tspb.Timestamp, error) { sums := ts.GetSeconds() + int64(d/time.Second) sumn := ts.GetNanos() + int32(d%time.Second) var sumts *tspb.Timestamp if sumn >= 1e9 { sumts = &tspb.Timestamp{sums + 1, sumn - 1e9} } else if d < 0 && sumn < 0 { sumts = &tspb.Time...
[ 0.0016518987249583006, 0.39263132214546204, 0.9314338564872742, -0.05060756206512451, -0.4547576904296875, 0.23695197701454163, -0.1568216234445572, -0.239850714802742, 1.0248808860778809, -0.0036289698909968138, 0.342266708612442, 0.2743968367576599, 0.7229267358779907, 0.5188119411468506...
func TimestampSub(ts *tspb.Timestamp, uts *tspb.Timestamp) (time.Duration, error) { const ( maxDuration = int64(1<<63 - 1) minDuration = int64(-1 << 63) maxSecondsOfDuration = maxDuration / int64(time.Second) maxNanosOfDuration = int32(maxDuration % int64(time.Second)) minSecondsOfDuratio...
[ -0.4428289532661438, 0.6672049164772034, 0.7706614136695862, -0.23359842598438263, -1.0356110334396362, 0.03883812576532364, -0.1046510860323906, 0.007922394201159477, 0.9017813801765442, -0.08409759402275085, 0.3721542954444885, 0.3070595860481262, 0.5883195400238037, -0.9370915293693542,...
func TimestampSince(ts *tspb.Timestamp) (time.Duration, error) { return TimestampSub(TimestampNow(), ts) }
[ 0.4900535047054291, 0.8960787653923035, 0.627933144569397, 0.5900077819824219, -1.2664602994918823, 0.3274781405925751, 0.4606730341911316, 0.39698901772499084, 1.1770554780960083, 0.038081057369709015, -0.5802230834960938, -0.7445656061172485, 0.11238279193639755, -0.3755142092704773, -...
func TimestampUntil(ts *tspb.Timestamp) (time.Duration, error) { return TimestampSub(ts, TimestampNow()) }
[ 0.1357778012752533, 0.19845613837242126, 0.5765298008918762, -0.14251354336738586, -0.5796598196029663, -0.1761058270931244, -0.48975303769111633, 0.8151265382766724, 0.6734545826911926, 1.0964487791061401, -0.7214568853378296, -0.32716765999794006, 0.7035117745399475, -0.4385371506214142,...
func TimestampAfter(ts *tspb.Timestamp, uts *tspb.Timestamp) bool { return ts.GetSeconds() > uts.GetSeconds() || ts.GetSeconds() == uts.GetSeconds() && ts.GetNanos() > uts.GetNanos() }
[ 0.07457666844129562, -0.04682759568095207, 0.5262734889984131, 0.3906232416629791, -1.2184407711029053, 0.5750113129615784, -1.0795423984527588, -0.3728233575820923, 0.5676507949829102, 0.11001653969287872, 0.2599330246448517, -0.15385252237319946, 0.8523989319801331, -0.01816185563802719,...
func TimestampBefore(ts *tspb.Timestamp, uts *tspb.Timestamp) bool { return ts.GetSeconds() < uts.GetSeconds() || ts.GetSeconds() == uts.GetSeconds() && ts.GetNanos() < uts.GetNanos() }
[ 0.10999544709920883, 0.5007163882255554, 0.5233752131462097, 0.4240545630455017, -0.13951507210731506, 0.04858129099011421, -0.8341835737228394, -0.7308403849601746, 0.6128908395767212, 0.2884261906147003, 0.4476129412651062, 0.09953837096691132, 0.5585781931877136, -0.6363183856010437, ...
func TimestampEqual(ts *tspb.Timestamp, uts *tspb.Timestamp) bool { return ts.GetSeconds() == uts.GetSeconds() && ts.GetNanos() == uts.GetNanos() }
[ -0.4158068299293518, -0.23825421929359436, 0.36472517251968384, 0.07189442217350006, 0.09302081167697906, 0.08268050104379654, -1.2269254922866821, -0.05389418452978134, 0.32475942373275757, 0.9257700443267822, -0.7630642056465149, 0.20196233689785004, 0.44104868173599243, -0.6921420097351...
func Score(s string) int { count := 0 for _, r := range strings.ToUpper(s) { count += letterValue[r] } return count }
[ -0.6947349309921265, -0.2723442316055298, 0.6205013990402222, -0.485574871301651, -0.14827948808670044, -0.010000109672546387, 0.39048850536346436, 0.41595524549484253, 0.20113518834114075, 0.5935857892036438, -0.6016044616699219, -0.1192391961812973, -0.3805105686187744, -0.17263229191303...
func readJson(filename string) (jsonData []Pattern) { file, err := ioutil.ReadFile(filename) if err != nil { log.Fatal(err) } err = json.Unmarshal(file, &jsonData) if err != nil { log.Fatal(err) } return }
[ -1.2327827215194702, -0.35818201303482056, 0.9686947464942932, -0.5009618997573853, -0.5683380365371704, 0.8336631059646606, 0.5546159148216248, 0.5830643773078918, -0.5482821464538574, 0.30652496218681335, -0.1795351356267929, 1.1116865873336792, 0.10714252293109894, 0.07411906868219376, ...
func formatTable(h, c, o string) []byte { tbl, err := prettytable.NewTable([]prettytable.Column{ {Header: "Host", MinWidth: 10}, {Header: "Check", MinWidth: 8}, {Header: "Output"}, }...) if err != nil { panic(err) } tbl.Separator = " | " tbl.AddRow(h, c, o) return tbl.Bytes() }
[ 0.8328810930252075, 0.1525719165802002, 0.8999305963516235, 0.585027277469635, -0.5692452192306519, -0.3955518901348114, 0.3415399193763733, -0.89413982629776, -1.2649997472763062, -0.019610999152064323, 0.37522265315055847, 0.16828741133213043, -0.02487820014357567, 0.29197654128074646, ...
func (h *Handler) FileShareHandler(w http.ResponseWriter, r *http.Request) { contentType := r.Header.Get("Content-Type") if contentType != jsonContentType { h.logger.Errorf("file share: invalid request body type") jsonhttp.BadRequest(w, "file share: invalid request body type") return } decoder := json.NewDec...
[ -0.7790392637252808, -0.4079906642436981, 0.8001958727836609, 0.8496662378311157, 0.06944587826728821, -0.6501869559288025, 0.5095296502113342, -0.2012150138616562, -0.9319331645965576, 0.23006775975227356, 0.4305354654788971, -0.102601557970047, -0.15519464015960693, 0.537197470664978, ...
func NewMerkelTree(data [][]byte) *MerkelTree { var nodes []MerkelNode if len(data)%2 != 0 { data = append(data, data[len(data)-1]) } for _, dat := range data { temp := NewMerkelNode(nil, nil, dat) nodes = append(nodes, *temp) } for i := 0; i < len(data)/2; i++ { var lvl []MerkelNode for j := 0; j < len...
[ -0.0998869389295578, -0.24853955209255219, 0.5857943296432495, -0.07800225913524628, -1.3514620065689087, -0.4602322280406952, -0.1895373910665512, -0.7005132436752319, 0.8437291979789734, 0.26414018869400024, -0.6779468655586243, 0.22729355096817017, -1.3350024223327637, 1.367714047431945...
func (o *SetPlanReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSetPlanOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 400: ...
[ -0.20472504198551178, -0.8601343035697937, 0.5276706218719482, 0.4569821357727051, -0.504465639591217, -0.5996675491333008, 0.12081678956747055, -0.7713530659675598, 0.38548702001571655, 0.3494303822517395, 0.1765994131565094, -0.10465370118618011, -0.6496073603630066, -0.14389380812644958...
func NewSetPlanOK() *SetPlanOK { return &SetPlanOK{} }
[ -0.3546483516693115, -0.03682805597782135, -0.24612097442150116, 1.2152446508407593, -1.2726186513900757, -0.9460451006889343, 0.9995067119598389, -0.16287466883659363, -0.4139137864112854, -0.1297350823879242, -1.135138750076294, 0.26589715480804443, 0.7844736576080322, -0.126836881041526...
func NewSetPlanBadRequest() *SetPlanBadRequest { return &SetPlanBadRequest{} }
[ -0.7552911639213562, -0.2506457567214966, -0.47310322523117065, 0.9610691666603088, -0.5958462357521057, -0.07562724500894547, -0.8184425830841064, -0.03218189999461174, -0.5898388028144836, -0.6507608294487, -0.7620007395744324, 0.7208850979804993, 0.2940381169319153, 0.5994893312454224, ...
func NewSetPlanForbidden() *SetPlanForbidden { return &SetPlanForbidden{} }
[ 0.22415171563625336, 0.22030961513519287, -0.494316965341568, 1.281548261642456, -1.1334933042526245, 0.41704410314559937, 0.3762344419956207, -0.6829655170440674, -0.6294118762016296, -0.598432183265686, -1.0642845630645752, 1.0213276147842407, 0.10641476511955261, -0.6702460050582886, ...
func NewSetPlanServiceUnavailable() *SetPlanServiceUnavailable { return &SetPlanServiceUnavailable{} }
[ -0.8599370718002319, -0.5940358638763428, -0.12532322108745575, 0.4020569324493408, -0.6339776515960693, 0.10065049678087234, -0.1572522521018982, 0.492525190114975, -0.18585896492004395, -0.12426809221506119, -0.7223716378211975, 0.4469097852706909, 0.3957177996635437, -0.2887077927589416...
func (dev *Source) FlatMapModelChanges(ctx context.Context) <-chan Model { model := Model{} output := make(chan Model) go func(output chan<- Model) { defer close(output) for { nextModel, err := dev.Update(model) if err != nil { dev.Err = err return } if nextModel == model { continue ...
[ -1.1014055013656616, -0.3520680367946625, 0.5707858800888062, -0.10750675201416016, -0.6453796625137329, 0.9251953363418579, 0.24191370606422424, -1.5945707559585571, 0.7481162548065186, -0.3897067606449127, -0.08888649195432663, -0.11587592214345932, -0.26330694556236267, 0.17389535903930...
func Health(c *gin.Context) { fmt.Println("Service healthy") c.JSON(http.StatusOK, gin.H{"status": http.StatusOK, "message": "Loan service is healthy!"}) }
[ 0.4231439232826233, -1.112709403038025, 0.5627281665802002, -0.25291165709495544, -0.41864317655563354, 1.6840786933898926, -0.6049500703811646, -0.29618820548057556, -0.26434338092803955, -0.23486590385437012, 0.3893283009529114, 1.329978346824646, 0.011947163380682468, 0.3919609785079956...
func StartLoan(c *gin.Context) { fmt.Println("Starting new loan") l := loan.GetLoanInstance(true) e := c.BindJSON(l) if e != nil { msgs := customErrMsg(e) sendErrorResponse(c, http.StatusBadRequest, "StartLoan :: "+msgs) return } l.Start() fmt.Println("Payment:", l.Principal, "Rate :", l.Rate, "Start Date...
[ 0.25303658843040466, -0.6104125380516052, 0.6215418577194214, 0.3490282893180847, 0.05774912238121033, 0.8272844552993774, -0.3798174262046814, 0.4583725929260254, -0.36485910415649414, -0.16205087304115295, 0.10498378425836563, 1.548933744430542, -0.46392765641212463, 0.9639930129051208, ...
func AddPayment(c *gin.Context) { fmt.Println("Adding Payment") l := loan.GetLoanInstance(false) if l.Principal == 0 { sendErrorResponse(c, http.StatusNotFound, "AddPayment :: Loan is not started") return } installment := loan.NewInstallment() e := c.BindJSON(&installment) if e != nil { msgs := customErrMs...
[ 0.325855016708374, -0.4665888249874115, 0.8855974674224854, 0.11602993309497833, -0.05866112560033798, 0.672142505645752, -0.12804703414440155, 0.5334523916244507, 0.013171598315238953, 0.14992859959602356, 1.0095330476760864, -0.10154527425765991, -0.7140195965766907, 0.812222421169281, ...
func GetBalance(c *gin.Context) { fmt.Println("Getting balanace") l := loan.GetLoanInstance(false) if l.Principal == 0 { sendErrorResponse(c, http.StatusBadRequest, "GetBalance :: Loan is not started") return } params := c.Request.URL.Query() dateStr := params.Get("date") if len(dateStr) == 0 { sendErrorRe...
[ -0.23093551397323608, -0.1892135739326477, 1.1373790502548218, 0.7031566500663757, 0.21931779384613037, 0.15570871531963348, -0.5342845916748047, -0.9182663559913635, -0.17611899971961975, 0.20875772833824158, 0.7336769700050354, 0.7496375441551208, -0.30280572175979614, 0.8115068674087524...
func main() { // Go requires an absolute path to the binary we want to execute, so we’ll use exec.LookPath to find it (probably /bin/ls). // Exec requires arguments in slice form (as apposed to one big string). binary, lookErr := exec.LookPath("ls") if lookErr != nil { panic(lookErr) } ...
[ 1.3569579124450684, 0.13403454422950745, 0.8063046336174011, 0.43597322702407837, 0.40566667914390564, 0.2629135549068451, -0.3964732885360718, 0.744061291217804, -0.6290655136108398, 0.18851381540298462, -0.26213324069976807, 0.4833177328109741, 0.20363865792751312, 0.1174672320485115, ...
func Add(a, b int) int { return a + b }
[ -0.5449399948120117, -0.5072119235992432, 0.5894508957862854, -0.48793360590934753, -0.41255342960357666, 0.9414482116699219, -0.5295965671539307, -0.23536944389343262, 0.09356329590082169, -0.28089639544487, 0.27487531304359436, 1.0427489280700684, -0.5067827105522156, 0.19436423480510712...
func NewWorker(host string, in <-chan Image, done chan<- struct{}, path string, grByRes bool, l *rate.Limiter, hc *http.Client) *ImageWorker { if hc == nil { hc = http.DefaultClient } return &ImageWorker{ host, in, done, path, grByRes, hc, l, } }
[ -0.2379080206155777, 0.5065540671348572, 0.5573593378067017, 0.17886146903038025, 0.023546354845166206, -0.17887799441814423, 0.03463273495435715, 0.09132792055606842, -0.1590602546930313, 0.3080219626426697, -0.5047211647033691, 0.322764128446579, -0.6292338967323303, 0.9630270004272461, ...
func (w *ImageWorker) Run(ctx context.Context) { for { select { case <-ctx.Done(): return case img := <-w.in: if err := w.limit.Wait(ctx); err != nil { if !errors.Is(err, context.Canceled) { log.Err(err).Send() } } err := w.imageDownload(img) if err != nil { log.Err(err).Send() ...
[ -0.8025404810905457, -0.23350828886032104, 0.8494377136230469, -0.16782976686954498, 0.01630079373717308, -0.10303276032209396, 0.3304116725921631, -0.08523674309253693, -0.021119147539138794, 0.050513189285993576, -0.41197288036346436, 0.029272418469190598, -0.6136276125907898, 0.67059355...
func (w *ImageWorker) imageDownload(img Image) error { url := fmt.Sprintf(imageURLTpl, w.hostname, img.Hash, img.Ext) res, err := w.http.Get(url) if err != nil { return err } if res.StatusCode >= 400 { return errors.New(res.Status) } body, err := ioutil.ReadAll(res.Body) if err != nil { panic(err) } ip...
[ -0.6777666211128235, 0.39182960987091064, 1.0664713382720947, -0.3187789022922516, -0.03216352313756943, 0.22504502534866333, 0.5605615973472595, -0.19920197129249573, 0.06802669912576675, 0.20331864058971405, -0.24931949377059937, -0.6506456732749939, -0.4541921615600586, 0.17412824928760...
func (set Set) Match(caps [][]string) []string { if set == nil { return nil } anyof: for _, andList := range caps { for _, cap := range andList { if _, ok := set[cap]; !ok { continue anyof } } return andList } // match anything return nil }
[ -0.17018021643161774, -0.6985345482826233, 0.6364536285400391, 0.9277776479721069, -0.6437243223190308, -0.42408016324043274, -0.7282524108886719, -0.4747769236564636, 0.41449183225631714, 0.4456976056098938, 0.38990694284439087, -0.20245981216430664, -0.6259639859199524, 0.650029778480529...
func NewTestABI(address common.Address, backend bind.ContractBackend) (*TestABI, error) { contract, err := bindTestABI(address, backend, backend, backend) if err != nil { return nil, err } return &TestABI{TestABICaller: TestABICaller{contract: contract}, TestABITransactor: TestABITransactor{contract: contract}, T...
[ -0.21751734614372253, -0.568391740322113, 0.3711031675338745, 0.09169245511293411, -0.8124619126319885, -0.2642034888267517, 0.28662168979644775, -0.6913737058639526, 0.2176235169172287, 0.8678958415985107, -0.13528768718242645, 0.2206881046295166, -1.2866266965866089, -0.05201370269060135...
func NewTestABICaller(address common.Address, caller bind.ContractCaller) (*TestABICaller, error) { contract, err := bindTestABI(address, caller, nil, nil) if err != nil { return nil, err } return &TestABICaller{contract: contract}, nil }
[ -0.32143497467041016, -0.08244281262159348, 0.488150030374527, 0.06407495588064194, -0.8919706344604492, 0.22489328682422638, 0.0995238870382309, -0.5636171698570251, 0.4163482189178467, 0.6501021385192871, -0.27388638257980347, -0.18585889041423798, -1.0967177152633667, 0.6740291714668274...
func NewTestABITransactor(address common.Address, transactor bind.ContractTransactor) (*TestABITransactor, error) { contract, err := bindTestABI(address, nil, transactor, nil) if err != nil { return nil, err } return &TestABITransactor{contract: contract}, nil }
[ -0.04611368477344513, -0.42586907744407654, 0.26754772663116455, -0.4394832253456116, -1.0437393188476562, -0.28424420952796936, 0.4207294285297394, -0.6425579190254211, 0.2647301256656647, 0.7392237186431885, -1.0972319841384888, 0.12052731215953827, -0.6836355328559875, -0.17129057645797...
func NewTestABIFilterer(address common.Address, filterer bind.ContractFilterer) (*TestABIFilterer, error) { contract, err := bindTestABI(address, nil, nil, filterer) if err != nil { return nil, err } return &TestABIFilterer{contract: contract}, nil }
[ -0.497128963470459, -0.15503093600273132, 0.36793407797813416, 0.11263302713632584, -0.8172229528427124, -0.17682869732379913, 0.22440235316753387, -0.6597146987915039, -0.05008746311068535, 0.5834630727767944, -0.13382700085639954, 0.19265778362751007, -0.8503082394599915, 0.6858664155006...
func bindTestABI(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := abi.JSON(strings.NewReader(TestABIABI)) if err != nil { return nil, err } return bind.NewBoundContract(address, parsed, caller, tra...
[ -0.39878201484680176, -0.8654780983924866, 0.5010307431221008, -0.4009796679019928, -0.5028942227363586, -0.3437657058238983, 0.07033821940422058, -0.3725786805152893, 0.7816670536994934, 0.047315556555986404, 0.04805709421634674, 0.824694812297821, -1.0207951068878174, -0.1955541670322418...
func (_TestABI *TestABIRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error { return _TestABI.Contract.TestABICaller.contract.Call(opts, result, method, params...) }
[ -0.6277065277099609, 0.5839618444442749, 0.5419394373893738, 0.8740246891975403, -0.7577932476997375, 0.4197079539299011, -0.15358537435531616, -0.8678973317146301, 0.5047869682312012, 0.3037182092666626, 0.5693144202232361, -0.06387350708246231, -0.8271401524543762, 0.22776518762111664, ...
func (_TestABI *TestABIRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _TestABI.Contract.TestABITransactor.contract.Transfer(opts) }
[ -0.26593080163002014, -0.04268135130405426, 0.327566921710968, 0.7124456167221069, 0.05877608060836792, 0.24456487596035004, 0.734979510307312, -0.5954383611679077, 0.8080893754959106, -0.030575348064303398, 0.09611880034208298, 0.22216206789016724, -0.6622471213340759, -0.4428443908691406...
func (_TestABI *TestABIRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _TestABI.Contract.TestABITransactor.contract.Transact(opts, method, params...) }
[ -0.24745941162109375, 0.20798803865909576, 0.4850543737411499, -0.16226138174533844, 0.46692147850990295, -0.04259635880589485, 1.138745665550232, -0.5363855957984924, 0.3628058433532715, 0.11961574107408524, 0.08336903154850006, 0.5226255059242249, -0.3084731996059418, 0.05578530207276344...
func (_TestABI *TestABICallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error { return _TestABI.Contract.contract.Call(opts, result, method, params...) }
[ -0.6048680543899536, 0.7156382203102112, 0.5411242246627808, 0.8121947050094604, -0.8642439246177673, 0.5227189064025879, -0.13736948370933533, -0.7833223342895508, 0.5664503574371338, 0.18837739527225494, 0.42666736245155334, -0.026003360748291016, -0.6755930781364441, 0.19739311933517456...
func (_TestABI *TestABITransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _TestABI.Contract.contract.Transfer(opts) }
[ -0.2422095388174057, 0.06460084766149521, 0.26297101378440857, 0.8326432704925537, 0.06287643313407898, 0.29352906346321106, 0.715951144695282, -0.6306150555610657, 0.9158392548561096, -0.1540261059999466, 0.2429460734128952, 0.12917642295360565, -0.47971203923225403, -0.48110827803611755,...
func (_TestABI *TestABITransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _TestABI.Contract.contract.Transact(opts, method, params...) }
[ -0.26065775752067566, 0.29532361030578613, 0.4421955347061157, -0.12640345096588135, 0.4252387583255768, -0.07589619606733322, 1.0507858991622925, -0.6273472309112549, 0.5006730556488037, 0.04894071817398071, 0.16038347780704498, 0.46893739700317383, -0.13830271363258362, -0.16746620833873...
func (_TestABI *TestABICaller) GetResult(opts *bind.CallOpts) ([]*big.Int, error) { var ( ret0 = new([]*big.Int) ) out := ret0 err := _TestABI.contract.Call(opts, out, "getResult") return *ret0, err }
[ -0.23504731059074402, 1.6635267734527588, 1.0319526195526123, 1.0182100534439087, 1.1360118389129639, -0.688960611820221, 0.8682112097740173, -0.7871688008308411, 0.7878161072731018, -0.31587323546409607, -1.1781901121139526, 0.24325671792030334, -0.8770591020584106, 0.4961681067943573, ...
func (_TestABI *TestABISession) GetResult() ([]*big.Int, error) { return _TestABI.Contract.GetResult(&_TestABI.CallOpts) }
[ -0.005835896823555231, 2.031374931335449, 0.700147271156311, 0.8130632638931274, 1.264923334121704, -1.0533770322799683, 0.7528560161590576, -1.0399322509765625, 0.9289261102676392, -0.030263710767030716, -0.17494089901447296, 0.38374030590057373, -1.0720196962356567, 0.29138240218162537, ...
func (_TestABI *TestABICallerSession) GetResult() ([]*big.Int, error) { return _TestABI.Contract.GetResult(&_TestABI.CallOpts) }
[ 0.0712464228272438, 2.0300405025482178, 0.7219923138618469, 0.7918320894241333, 1.075527548789978, -0.8547819256782532, 0.5517980456352234, -1.152543544769287, 1.0238723754882812, -0.13388879597187042, -0.20033226907253265, 0.3588936924934387, -0.9891456961631775, 0.3064367473125458, 0.8...
func (_TestABI *TestABITransactor) ClearRes(opts *bind.TransactOpts) (*types.Transaction, error) { return _TestABI.contract.Transact(opts, "clearRes") }
[ 0.021464211866259575, 1.032598614692688, 0.2519574463367462, 0.31853440403938293, 0.005244872532784939, -0.1514647901058197, 0.12449515610933304, -1.2978748083114624, 0.9614814519882202, 0.41919928789138794, 0.28798115253448486, 0.1544051319360733, -0.10091835260391235, -1.346300721168518,...
func (_TestABI *TestABISession) ClearRes() (*types.Transaction, error) { return _TestABI.Contract.ClearRes(&_TestABI.TransactOpts) }
[ 0.5009353756904602, 1.0367913246154785, 0.14208213984966278, 0.08802540600299835, 0.12433940917253494, -0.7795700430870056, 0.4269905090332031, -1.3053549528121948, 0.8252935409545898, 0.411720871925354, 0.5191617012023926, -0.23925171792507172, -0.20956829190254211, -1.1320714950561523, ...
func (_TestABI *TestABITransactorSession) ClearRes() (*types.Transaction, error) { return _TestABI.Contract.ClearRes(&_TestABI.TransactOpts) }
[ 0.43403029441833496, 1.1515681743621826, 0.1455419361591339, 0.06495027244091034, 0.2016855627298355, -0.7040629386901855, 0.34125280380249023, -1.3771575689315796, 0.7665013074874878, 0.437544584274292, 0.3394390940666199, -0.3584596514701843, -0.013329618610441685, -1.141358733177185, ...
func (_TestABI *TestABITransactor) Search(opts *bind.TransactOpts, ct Struct0) (*types.Transaction, error) { return _TestABI.contract.Transact(opts, "search", ct) }
[ -0.13906390964984894, 0.9540369510650635, 0.23752178251743317, -0.0935613140463829, 0.42874643206596375, 0.16495205461978912, 0.6942780017852783, -1.2895032167434692, 0.6445900201797485, 0.14196744561195374, -0.3763774037361145, -0.24379771947860718, -0.7706894278526306, -0.190005511045455...
func (_TestABI *TestABISession) Search(ct Struct0) (*types.Transaction, error) { return _TestABI.Contract.Search(&_TestABI.TransactOpts, ct) }
[ 0.09638302028179169, 0.7651320099830627, 0.20227424800395966, -0.061878010630607605, 0.3288545310497284, -0.30518868565559387, 0.9918156266212463, -1.2815483808517456, 0.5383337736129761, 0.3891811966896057, -0.1686406135559082, -0.5305805206298828, -0.7175472974777222, 0.07652954012155533...
func (_TestABI *TestABITransactorSession) Search(ct Struct0) (*types.Transaction, error) { return _TestABI.Contract.Search(&_TestABI.TransactOpts, ct) }
[ 0.12088406831026077, 0.8060108423233032, 0.21137496829032898, -0.07852691411972046, 0.4550815224647522, -0.18466804921627045, 0.9329043030738831, -1.343202829360962, 0.46453529596328735, 0.29400601983070374, -0.24365302920341492, -0.6219342350959778, -0.5984286665916443, -0.020893540233373...
func (_TestABI *TestABITransactor) Store(opts *bind.TransactOpts, cipher []Struct1) (*types.Transaction, error) { return _TestABI.contract.Transact(opts, "store", cipher) }
[ -0.5363143682479858, 0.7087852954864502, 0.31620118021965027, 0.24558404088020325, -0.14532144367694855, 0.34977808594703674, 1.256309986114502, -1.1804841756820679, 1.3718643188476562, 0.2804271876811981, -1.072021722793579, 0.3426765203475952, -1.0323766469955444, -0.36751630902290344, ...
func (_TestABI *TestABISession) Store(cipher []Struct1) (*types.Transaction, error) { return _TestABI.Contract.Store(&_TestABI.TransactOpts, cipher) }
[ -0.44493210315704346, 0.6669958233833313, 0.18482007086277008, 0.19479967653751373, -0.05616528168320656, -0.11627296358346939, 1.3216941356658936, -1.4043898582458496, 1.4401029348373413, 0.5140141248703003, -1.304206132888794, -0.23628990352153778, -1.3868749141693115, -0.366695404052734...
func (_TestABI *TestABITransactorSession) Store(cipher []Struct1) (*types.Transaction, error) { return _TestABI.Contract.Store(&_TestABI.TransactOpts, cipher) }
[ -0.4333481788635254, 0.7296751737594604, 0.2138804942369461, 0.14284366369247437, 0.09170902520418167, -0.019982539117336273, 1.2390469312667847, -1.4390767812728882, 1.3725374937057495, 0.47851306200027466, -1.3398884534835815, -0.3218260705471039, -1.1851649284362793, -0.4626424014568329...
func ListOfDepth(root *BTNode) []*list.List { if root == nil { return nil } var res []*list.List queue := list.New() queue.PushFront(root) for queue.Len() > 0 { res = append(res, cloneList(queue)) nextQueue := list.New() for queue.Len() > 0 { elm := queue.Back() queue.Remove(elm) btNode := elm.V...
[ 0.1320979744195938, -0.3749981224536896, 0.8225958943367004, -0.07386089116334915, -0.3378540575504303, -0.09118407964706421, -0.15563929080963135, 0.014437912963330746, 1.267311453819275, 0.26402461528778076, -0.5718889236450195, 0.45059460401535034, 0.49329638481140137, 1.598587274551391...
func WithHttpClient(c HttpClient) OptFunc { return func(d *Downloader) { d.client = c } }
[ 0.36081865429878235, -0.781421959400177, 0.4543868601322174, -0.7792588472366333, -0.5979966521263123, -0.12697242200374603, 0.16339373588562012, -0.14458860456943512, -0.19585955142974854, -0.8065267205238342, -0.5093399882316589, 0.4743148684501648, 0.951589047908783, 0.1439894735813141,...
func WithTimeout(t time.Duration) OptFunc { return func(d *Downloader) { d.timeout = t } }
[ 0.4867919087409973, -0.16190460324287415, 0.5079215168952942, -0.3302783668041229, -0.3190172612667084, -0.27219143509864807, -0.38897278904914856, 0.434807687997818, 0.18894611299037933, 0.4820685386657715, -0.05526905134320259, 0.38232123851776123, 1.7293651103973389, 0.2650569677352905,...
func WithThreads(t int) OptFunc { return func(d *Downloader) { d.threads = t } }
[ 0.33203789591789246, 0.1995781511068344, 0.38180553913116455, -1.2807726860046387, -0.31158822774887085, -0.401062935590744, -0.4072449505329132, -0.7980959415435791, 0.7778351902961731, -0.6246198415756226, 0.38385719060897827, -0.33907297253608704, 0.5735816359519958, -0.1333920657634735...
func WithUserAgent(a string) OptFunc { return func(d *Downloader) { d.userAgent = a } }
[ 0.5299539566040039, -0.8496273159980774, 0.35436782240867615, -0.747925877571106, -0.9899160265922546, -0.2616986334323883, 0.827877402305603, 0.17705129086971283, 1.1889556646347046, -0.4100969731807709, -0.6940184235572815, 0.27901414036750793, 1.078489065170288, 0.0014633843675255775, ...
func CountPathsV1(rows, cols int) int { // No path if rows <= 0 || cols <= 0 { return 0 } // Can only go in one direction if rows <= 1 || cols <= 1 { return 1 } return CountPathsV1(rows-1, cols) + CountPathsV1(rows, cols-1) }
[ -0.4374679923057556, 0.4905194044113159, 0.5954596996307373, 1.2036535739898682, -0.2850028872489929, 0.4852577745914459, 0.7485642433166504, 1.0718218088150024, 0.25574955344200134, 0.655442476272583, -0.08546318113803864, 0.212827667593956, 0.01716158352792263, 0.323606938123703, -0.33...
func CountPathsV2(rows, cols int) int { if rows <= 0 || cols <= 0 { return 0 } // Allocate matrix mat := make([][]int, rows) for row := 0; row < rows; row++ { mat[row] = make([]int, cols) } // Initialize matrix at boundary for col := 0; col < cols; col++ { mat[0][col] = 1 } for row := 0; row < rows; r...
[ 0.20778365433216095, -0.09428366273641586, 1.1011505126953125, 0.1844969242811203, -0.44635340571403503, -0.12106353789567947, 0.7335466146469116, 0.321471631526947, 0.2880551517009735, 0.5974160432815552, 0.4117647409439087, 0.17731761932373047, -0.15946802496910095, 0.1877211481332779, ...
func conf_ISOlanguages() []string { conf = createorreturnconfig(conf) languages := []string{} for key, _ := range conf.Languages { languages = append(languages, key) } sort.Strings(languages) return languages }
[ -0.12296456843614578, -0.4692590832710266, 0.33778348565101624, 0.4077039062976837, -0.27034488320350647, 0.1843206286430359, -0.3463643491268158, 0.784941554069519, -0.1783732771873474, 1.2571409940719604, -0.1709291785955429, -0.5769639015197754, -0.2855154573917389, 0.28658822178840637,...
func TestNasaParser(t *testing.T) { json := `{"copyright":"Amir H. Abolfath","date":"2019-12-06","explanation":"This frame.","hdurl":"https://apod.nasa.gov/apod/image/1912/TaurusAbolfath.jpg","media_type":"image","service_version":"v1","title":"Pleiades to Hyades","url":"https://apod.nasa.gov/apod/image/1912/TaurusAbo...
[ -0.404112309217453, -0.049452248960733414, 0.7794734239578247, -0.6696544885635376, -0.15433618426322937, 0.4314429461956024, -0.4436753988265991, -0.07454365491867065, 1.1490716934204102, -0.6916094422340393, -0.5770450830459595, 0.4946422278881073, 0.20669744908809662, 0.3632364571094513...
func TestNasaParserWrongInterval(t *testing.T) { json := `{code: 400, msg: "Date must be between Jun 16, 1995 and Jun 20, 2021.",service_version: "v1"}` r := ioutil.NopCloser(bytes.NewReader([]byte(json))) client := &mocks.MockClient{} client.GetFunc = func(url string) (*http.Response, error) { return &http.Resp...
[ 0.08344227075576782, 0.1494142860174179, 0.7592642903327942, -0.03830328956246376, -0.14351621270179749, 1.2618744373321533, -0.7394673228263855, -0.775353193283081, -0.05483899265527725, -0.5198166966438293, -0.7081637382507324, 0.6216269135475159, -0.3970775604248047, 0.32937899231910706...
func TestNasaParserOverRateLimit(t *testing.T) { json := `<html> <body> <h1>OVER_RATE_LIMIT</h1> <p>You have exceeded your rate limit. Try again later or contact us at https:&#x2F;&#x2F;api.nasa.gov:443&#x2F;contact&#x2F; for assistance</p> </body> </html>` r := ioutil.NopCloser(bytes.NewReader([]byte(jso...
[ 0.38890084624290466, 0.811561107635498, 0.8225749731063843, -0.5095683932304382, -0.6499982476234436, 0.13544729351997375, -0.8406913876533508, -0.3619527220726013, 1.0424572229385376, -0.30822303891181946, -0.15814171731472015, 1.1906784772872925, -0.19990399479866028, -0.3861998319625854...
func ListOf(elementTypeDef TypeDefinition) ListTypeDefinition { return listTypeDefinitionOf{ elementTypeDef: elementTypeDef, } }
[ 0.23243558406829834, -0.18107548356056213, 0.5897113680839539, -0.022875254973769188, -0.09667662531137466, -0.30777832865715027, -1.2708849906921387, 0.06168118119239807, 1.269452691078186, 0.03574129566550255, -1.5412927865982056, 0.2302810251712799, 0.9959185719490051, 0.933372139930725...
func ListOfType(elementType Type) ListTypeDefinition { return listTypeDefinitionOfType{ elementType: elementType, } }
[ -0.25910598039627075, -0.2351340502500534, 0.3487623333930969, 0.16656413674354553, -0.22652514278888702, -0.8517560362815857, -1.1374999284744263, -0.5727009773254395, 1.8779382705688477, 0.26707354187965393, -1.3405781984329224, -0.45321691036224365, 0.361067533493042, 1.188308835029602,...
func NewListOfType(elementType Type) (List, error) { return NewList(ListOfType(elementType)) }
[ -1.0099917650222778, -0.5939544439315796, 0.2268112599849701, 0.8491169214248657, -0.13032637536525726, -0.7008247375488281, -0.9329636693000793, -1.0718417167663574, 1.4070590734481812, 0.5257577300071716, -1.2247341871261597, -0.7478054165840149, 0.08954549580812454, 1.1232410669326782, ...
func MustNewListOfType(elementType Type) List { return MustNewList(ListOfType(elementType)) }
[ -0.9228178858757019, 0.028124334290623665, 0.4640137553215027, 0.9131596088409424, -0.32146671414375305, 1.1002098321914673, -1.429486632347107, -1.0534932613372803, 0.5715104937553406, 0.37470152974128723, -1.761781096458435, -0.33121007680892944, 0.46710309386253357, 2.269913911819458, ...
func NewListOf(elementTypeDef TypeDefinition) (List, error) { return NewList(ListOf(elementTypeDef)) }
[ -0.3352280259132385, -0.46666428446769714, 0.4092428386211395, 0.7449750304222107, -0.11474849283695221, -0.3578932583332062, -0.9592206478118896, -0.1712668240070343, 0.8375632166862488, 0.5483413934707642, -1.3893134593963623, 0.005801193881779909, 0.6499614715576172, 1.3275090456008911,...
func MustNewListOf(elementTypeDef TypeDefinition) List { return MustNewList(ListOf(elementTypeDef)) }
[ -0.40725189447402954, 0.10508548468351364, 0.445478230714798, 0.6525176167488098, -0.3936079442501068, 1.0999749898910522, -1.1195279359817505, -0.2833652198314667, 0.0659463107585907, 0.6686715483665466, -2.2910585403442383, 0.37732958793640137, 0.44476622343063354, 1.9237531423568726, ...
func NewList(typeDef ListTypeDefinition) (List, error) { t, err := newTypeImpl(&listTypeCreator{ typeDef: typeDef, }) if err != nil { return nil, err } return t.(List), nil }
[ -0.10612507909536362, 0.06757166981697083, 0.26301562786102295, 0.3199585974216461, -0.02170368656516075, 0.03394654765725136, -0.4963260591030121, 0.14247927069664001, 0.6011653542518616, 0.7256357073783875, -1.4410086870193481, 0.1583142727613449, 0.003782023675739765, 0.6073115468025208...
func MustNewList(typeDef ListTypeDefinition) List { l, err := NewList(typeDef) if err != nil { panic(err) } return l }
[ -0.7447814345359802, 0.06135443225502968, 0.20461736619472504, 0.5605993866920471, -0.40705540776252747, 1.456931471824646, -1.8031606674194336, 0.08532214909791946, 0.7931143641471863, 1.400117039680481, -1.8006908893585205, 0.41747692227363586, 0.2092529982328415, 1.0585342645645142, -...
func (config Config) VRMe() int { for idx, url := range config.VRPeerURLs { if url == config.VRURL() { return idx } } return -1 }
[ -1.1991745233535767, -0.3364391326904297, 0.5193486213684082, 0.2006181925535202, -0.4314597249031067, -0.44042980670928955, 0.34589651226997375, 0.9457663297653198, -0.27298155426979065, 0.7869919538497925, 0.11595851927995682, -0.7827321887016296, -1.6197402477264404, -0.6144495010375977...
func main () { /*name := utilidades.GetName() LasName := "Boso" var miNumero = utilidades.Suma(40, 60) x, y, z := utilidades.GetMultiplesVariables() decimal32, decimal64 := utilidades.GetDecimal() hola := "Hola" fmt.Println("hola ", name) fmt.Printf(holaMundo, name, LasName) fmt.Println("") fmt.Println(mi...
[ 0.3912229537963867, -0.6686413884162903, 1.1660441160202026, 0.3010353446006775, -0.42779627442359924, 0.7913351058959961, 0.27534717321395874, -0.2569759488105774, -0.29155233502388, -0.8180447816848755, -0.5836668610572815, -0.1810702234506607, 0.09950493276119232, -0.587855339050293, ...
func NewHardwareComponentGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*HardwareComponentGroupsClient, error) { cl, err := arm.NewClient(moduleName+".HardwareComponentGroupsClient", moduleVersion, credential, options) if err != nil { return nil, err } client :...
[ 0.8527122735977173, 0.048503678292036057, -0.08437132090330124, -0.4726228713989258, -0.0932101458311081, -0.1472819745540619, 0.10822431743144989, -0.4625244736671448, -1.407205581665039, 0.4012802541255951, -0.5742253065109253, 0.6140402555465698, -1.372309923171997, -0.12089747935533524...
func (client *HardwareComponentGroupsClient) changeControllerPowerStateCreateRequest(ctx context.Context, deviceName string, hardwareComponentGroupName string, resourceGroupName string, managerName string, parameters ControllerPowerStateChangeRequest, options *HardwareComponentGroupsClientBeginChangeControllerPowerStat...
[ -0.5264639854431152, -0.17115874588489532, 0.26766425371170044, -0.30792945623397827, -0.256286084651947, -0.04979758709669113, -0.25563400983810425, 0.21294257044792175, -1.0091807842254639, 0.15576985478401184, 0.1225854903459549, 0.5454340577125549, -0.6874938011169434, 0.99211579561233...
func (client *HardwareComponentGroupsClient) NewListByDevicePager(deviceName string, resourceGroupName string, managerName string, options *HardwareComponentGroupsClientListByDeviceOptions) *runtime.Pager[HardwareComponentGroupsClientListByDeviceResponse] { return runtime.NewPager(runtime.PagingHandler[HardwareCompone...
[ -0.33689987659454346, -0.10634980350732803, 0.1917571872472763, -0.8068132400512695, -0.6224554777145386, -0.2853790521621704, 0.4985412061214447, -0.6618430614471436, -0.27383705973625183, 0.445787250995636, 0.5406472682952881, -0.35998520255088806, -0.6887311339378357, 1.3546881675720215...
func (client *HardwareComponentGroupsClient) listByDeviceCreateRequest(ctx context.Context, deviceName string, resourceGroupName string, managerName string, options *HardwareComponentGroupsClientListByDeviceOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupNam...
[ -0.546309769153595, 0.6914868950843811, 0.37830236554145813, -0.6037625670433044, -0.5057286620140076, -0.4386952221393585, 0.5230705738067627, -0.5508980751037598, -0.37260887026786804, -0.030478032305836678, 0.1087673157453537, 0.5850443840026855, -0.13701722025871277, 0.8699466586112976...
func (client *HardwareComponentGroupsClient) listByDeviceHandleResponse(resp *http.Response) (HardwareComponentGroupsClientListByDeviceResponse, error) { result := HardwareComponentGroupsClientListByDeviceResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.HardwareComponentGroupList); err != nil { return Har...
[ -0.4821079969406128, -0.05346421152353287, 0.10251738876104355, -1.019184947013855, -0.6801846027374268, -0.24358689785003662, 1.3077876567840576, -0.6667122840881348, -0.023211468011140823, -0.05699115991592407, -0.8828831911087036, -0.9669761061668396, -0.8491590619087219, 0.158997252583...
func (o *GetCallQueueitemsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewGetCallQueueitemsOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result,...
[ -0.32825782895088196, -1.112502932548523, 0.6453500390052795, 0.3049664795398712, 0.06583546102046967, -0.6468490958213806, -0.4696800112724304, -0.3374641537666321, 0.6856282353401184, -0.0670558512210846, 0.5442309975624084, -0.4739580750465393, -0.8428718447685242, -0.10630802065134048,...
func NewGetCallQueueitemsOK() *GetCallQueueitemsOK { return &GetCallQueueitemsOK{} }
[ 0.49295467138290405, -1.0801020860671997, 0.32370632886886597, 0.19309335947036743, -0.2656831741333008, 0.16006475687026978, -0.5924566984176636, -0.1028842106461525, -0.26743507385253906, 0.3121213912963867, -1.0140190124511719, -0.3460710942745209, 0.27685198187828064, 0.144334554672241...
func (s ListQueuesInput) String() string { return awsutil.Prettify(s) }
[ 0.6928865313529968, -1.1002254486083984, 0.2003301978111267, -1.1234557628631592, -1.010372281074524, 0.7758990526199341, -0.139673113822937, -1.172481894493103, 0.6921445727348328, -0.46279317140579224, -0.04151542857289314, 1.1071003675460815, 0.31822097301483154, 0.11137451976537704, ...
func (s ListQueuesOutput) String() string { return awsutil.Prettify(s) }
[ 1.3102916479110718, -1.3708641529083252, 0.2369527965784073, -0.9927418231964111, -1.2697842121124268, -0.08979173004627228, 0.05557994171977043, -0.9527148008346558, 0.17549291253089905, -0.5810611248016357, 0.23377926647663116, 0.5753576159477234, 0.7053438425064087, -0.0811929926276207,...
func (r ListQueuesRequest) Send(ctx context.Context) (*ListQueuesResponse, error) { r.Request.SetContext(ctx) err := r.Request.Send() if err != nil { return nil, err } resp := &ListQueuesResponse{ ListQueuesOutput: r.Request.Data.(*ListQueuesOutput), response: &aws.Response{Request: r.Request}, } ...
[ -0.08805930614471436, -0.6938571929931641, 0.40116918087005615, -0.5155682563781738, -0.037091802805662155, -0.62318354845047, -1.0992319583892822, -1.087059497833252, 0.976405680179596, -0.05612730234861374, -0.07997550070285797, 0.7662411332130432, 0.020155666396021843, 0.330701440572738...
func (r *ListQueuesResponse) SDKResponseMetdata() *aws.Response { return r.response }
[ 1.2440223693847656, -1.2587611675262451, 0.4068787097930908, -1.3538802862167358, -0.5004726648330688, -0.44431445002555847, -1.3080618381500244, -0.9240504503250122, 1.646612286567688, -0.5392894148826599, -0.3413645923137665, 0.13490594923496246, 0.4440658688545227, -0.6044588088989258, ...
func NewPLMNID(mcc, mnc string) *IE { encoded, err := utils.EncodePLMN(mcc, mnc) if err != nil { return nil } return New(PLMNID, 0x00, encoded) }
[ 0.8627461194992065, -0.7669283151626587, 0.08449454605579376, -0.5442203283309937, -0.689721941947937, 0.16622896492481232, -1.4620931148529053, -0.29464974999427795, 0.9906834363937378, -0.5450460910797119, -0.6608009934425354, 0.7867379188537598, -1.089428424835205, -0.15832075476646423,...
func (i *IE) PLMNID() (string, error) { if i.Type != PLMNID { return "", &InvalidTypeError{Type: i.Type} } if len(i.Payload) < 3 { return "", io.ErrUnexpectedEOF } mcc, mnc, err := utils.DecodePLMN(i.Payload) if err != nil { return "", err } return mcc + mnc, nil }
[ 0.19539913535118103, -0.6838234663009644, 0.3048018217086792, -0.8846460580825806, -0.11808816343545914, 0.43307214975357056, -1.124484896659851, -0.6333179473876953, 1.2330682277679443, -0.29068073630332947, -0.3699512183666229, 0.3837414085865021, -0.8824150562286377, -0.257318377494812,...
func (i *IE) MustPLMNID() string { v, _ := i.PLMNID() return v }
[ -0.16982245445251465, -0.8487050533294678, 0.2404695451259613, -0.56092369556427, -0.02243761345744133, 0.9031931757926941, -1.4865620136260986, -0.024067945778369904, 0.7582036256790161, -0.2640041410923004, -0.28818753361701965, 0.41614723205566406, -0.5625762343406677, 0.663583397865295...
func CacheGet(key string) (interface{}, error) { val, err := gcacheGet(key) if err == nil { fmt.Println("[cache] hit!! gcache : ", key, " / ", val) return val, nil } val, err = redisGet(key) if err == nil { fmt.Println("[cache] hit!! redis : ", key, " / ", val) gcacheSet(key, val) return val, nil } ret...
[ -0.591025710105896, 0.4519290328025818, 0.9608185291290283, -0.34931400418281555, -0.24133692681789398, -0.03231414780020714, -0.772987961769104, -1.1761480569839478, -0.1664169430732727, 0.2150292694568634, 0.6395071148872375, 0.21378326416015625, -0.3486146032810211, 0.5468791127204895, ...
func CacheSet(key string, val interface{}) { var wait sync.WaitGroup wait.Add(1) go func() { defer wait.Done() redisSet(key, val) fmt.Println("[cache] set redis") }() gcacheSet(key, val) fmt.Println("[cache] set gcache") wait.Wait() }
[ -0.49963411688804626, 0.9401770830154419, 0.5652143359184265, 0.11705069988965988, -0.2639005482196808, 0.4367016553878784, -0.3967894911766052, -1.153373122215271, -0.559748113155365, 0.328763484954834, 0.09992869198322296, 0.9065613746643066, -0.19333665072917938, 0.7915372848510742, 0...
func (r *Route) RemoteAddress() tcpip.Address { return r.routeInfo.RemoteAddress }
[ 0.3843948543071747, -1.3677092790603638, 0.709473729133606, -0.728571355342865, 0.1576017141342163, 0.8346033692359924, -0.2926161587238312, 0.678912878036499, 1.0536611080169678, 0.037735044956207275, -0.20893558859825134, 1.3033676147460938, -1.062267780303955, -0.6499112844467163, -0....
func (r *Route) LocalAddress() tcpip.Address { return r.routeInfo.LocalAddress }
[ 0.8296542763710022, -1.2776495218276978, 0.4674327075481415, -0.4812032878398895, 0.1623338907957077, -0.16118685901165009, 0.02268374338746071, 1.0391087532043457, 1.0264430046081543, 0.07189511507749557, 0.6385824680328369, 0.5396795868873596, -0.8623791337013245, -0.23694667220115662, ...
func (r *Route) LocalLinkAddress() tcpip.LinkAddress { return r.routeInfo.LocalLinkAddress }
[ 0.6636798977851868, -1.1538761854171753, 0.36542752385139465, -0.7146531343460083, 0.5592854619026184, -0.5882242321968079, -0.2689766585826874, 0.9749239087104797, 1.6292699575424194, -0.817625880241394, 0.20605070888996124, 1.1305354833602905, -1.0331722497940063, -0.13786309957504272, ...
func (r *Route) NextHop() tcpip.Address { return r.routeInfo.NextHop }
[ -0.9146388173103333, 0.2992419898509979, 0.38447847962379456, 0.9445105791091919, -0.7776381969451904, 0.9215094447135925, 0.032199423760175705, -0.0421062596142292, 0.9442247748374939, 0.26396316289901733, 0.9391033053398132, 0.3767346441745758, -0.3676709234714508, -0.5741426944732666, ...
func (r *Route) NetProto() tcpip.NetworkProtocolNumber { return r.routeInfo.NetProto }
[ 0.02502296306192875, 0.27232247591018677, 0.3913702666759491, -0.15167385339736938, 0.19290034472942352, 0.17041350901126862, -0.1868307888507843, -0.4035690426826477, -0.1908174455165863, 0.04017997533082962, -0.6144077181816101, -0.6478096842765808, -0.14372825622558594, 0.17782156169414...
func (r *Route) Loop() PacketLooping { return r.routeInfo.Loop }
[ -0.5784697532653809, -0.032791439443826675, 0.2768571674823761, -0.527932345867157, -0.44238367676734924, 1.1381149291992188, -0.3891071677207947, -0.5881154537200928, 0.10182952880859375, 0.2684619426727295, -0.26748791337013245, -0.027925534173846245, -0.21559040248394012, 0.190191119909...
func (r *Route) OutgoingNIC() tcpip.NICID { return r.outgoingNIC.id }
[ 0.7569687366485596, -0.16077955067157745, 0.3184787333011627, -0.310486763715744, -1.0178691148757935, 0.10602982342243195, -0.046840958297252655, -0.06830132007598877, -0.458858847618103, 0.2420600950717926, -0.45746591687202454, 0.28969329595565796, -0.2748643755912781, 0.012837571091949...
func (r *Route) Fields() RouteInfo { r.mu.RLock() defer r.mu.RUnlock() return r.fieldsLocked() }
[ -0.7858938574790955, 0.4648266136646271, 0.3565862476825714, -1.034163475036621, 0.3728048801422119, 0.21613843739032745, 0.4672936499118805, -1.1701269149780273, -0.2307588905096054, -1.0027503967285156, -0.5689454078674316, -0.5607670545578003, -0.7980462908744812, -0.39739447832107544, ...
func constructAndValidateRoute(netProto tcpip.NetworkProtocolNumber, addressEndpoint AssignableAddressEndpoint, localAddressNIC, outgoingNIC *nic, gateway, localAddr, remoteAddr tcpip.Address, handleLocal, multicastLoop bool) *Route { if localAddr.BitLen() == 0 { localAddr = addressEndpoint.AddressWithPrefix().Addre...
[ 0.4775783121585846, -0.6233913898468018, 0.48543086647987366, -0.420226514339447, -0.034049320966005325, 0.25691211223602295, -0.16240371763706207, 0.8894186019897461, -0.031151864677667618, -0.4921642243862152, 0.5090634822845459, -0.4619755148887634, -0.06865527480840683, 0.6657334566116...
func makeRoute(netProto tcpip.NetworkProtocolNumber, gateway, localAddr, remoteAddr tcpip.Address, outgoingNIC, localAddressNIC *nic, localAddressEndpoint AssignableAddressEndpoint, handleLocal, multicastLoop bool) *Route { if localAddressNIC.stack != outgoingNIC.stack { panic(fmt.Sprintf("cannot create a route with...
[ 0.6069405674934387, 0.2612745463848114, 0.5905728340148926, -0.3888912796974182, -0.14653046429157257, -0.1428689956665039, 0.2337847352027893, -0.13890595734119415, 0.03570117801427841, -0.4248400032520294, 0.5119702219963074, -0.08315244317054749, -0.7038452625274658, 0.4732378423213959,...
func makeLocalRoute(netProto tcpip.NetworkProtocolNumber, localAddr, remoteAddr tcpip.Address, outgoingNIC, localAddressNIC *nic, localAddressEndpoint AssignableAddressEndpoint) *Route { loop := PacketLoop // TODO(gvisor.dev/issue/4689): Loopback interface loops back packets at the // link endpoint level. We can rem...
[ 1.1372904777526855, -0.471819132566452, 0.30367547273635864, -0.736829400062561, -0.7823100686073303, 0.45809823274612427, -0.22972115874290466, 0.27605608105659485, 0.14481425285339355, 0.1274189054965973, 0.08428093791007996, -0.10534751415252686, -0.2586825489997864, 0.16567452251911163...