text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (a *Lisp_address) lisp_exact_match(addr Lisp_address) (bool) { if (len(a.address) != len(addr.address)) { return(false) } if (a.mask_len != addr.mask_len) { return(false) } if (a.instance_id != addr.instance_id) { return(false) } if (a.address.Equal(addr.address) == false) { return(false) } return...
[ -0.4220515191555023, -0.567832887172699, 0.7228051424026489, -0.7684049606323242, -0.3023168742656708, 0.9500671625137329, 0.05339600890874863, -0.09126552194356918, 1.1134282350540161, 0.9450580477714539, -0.315933495759964, 0.11187334358692169, -0.4523966610431671, 0.02910558134317398, ...
func (a *Lisp_address) lisp_more_specific(addr Lisp_address) (bool) { if (len(a.address) != len(addr.address)) { return(false) } if (a.instance_id != addr.instance_id) { return(false) } if (a.mask_len > addr.mask_len) { return(false) } for i := 0; i < len(a.address); i++ { if (a.mask_address[i] == 0) { ...
[ -0.7427651286125183, -0.5802652835845947, 0.9440345168113708, -0.6282827854156494, -0.5125789046287537, 0.2034488320350647, 0.04196465015411377, -0.18753258883953094, 1.4919068813323975, 0.693640410900116, -0.061708636581897736, 1.1575028896331787, 0.4835178554058075, 0.40567100048065186, ...
func (a *Lisp_address) lisp_hash_address() uint16 { var hash uint = 0 for i := 0; i < len(a.address); i++ { hash = hash ^ uint(a.address[i]) } // // Fold result into a short. // return(uint16(hash >> 16) ^ uint16(hash & 0xffff)) }
[ 0.7780325412750244, 0.1831025779247284, 0.622795820236206, -0.6947001218795776, -0.18676862120628357, -0.24157996475696564, 0.06893675774335861, 0.26085928082466125, 1.4478130340576172, -0.2579618990421295, -0.10805793106555939, 0.5399128198623657, -0.13923107087612152, -0.2122433334589004...
func lisp_count(stats *Lisp_stats, key_name string, packet []byte) { if (stats == nil) { s, ok := lisp_decap_stats[key_name] if (!ok) { s = new(Lisp_stats) lisp_decap_stats[key_name] = s } s.packets += 1 s.bytes += uint64(len(packet)) s.last_packet = time.Now() } else { stats.packets += 1 stats....
[ 0.14755822718143463, 0.21088643372058868, 0.6877195239067078, -1.2498645782470703, -0.10725405067205429, -0.5003659129142761, -0.8068996667861938, 0.22031165659427643, 1.0531692504882812, 0.36805805563926697, -0.9155756235122681, -0.7244214415550232, 0.40190258622169495, 0.4976232051849365...
func (mc *Lisp_map_cache) lisp_find_rloc(rloc_addr Lisp_address) (*Lisp_rloc) { for _, rloc := range mc.rloc_set { if (rloc_addr.lisp_exact_match(rloc.rloc)) { return(&rloc) } } return(nil) }
[ 0.07342420518398285, -0.8645341396331787, 0.6549369692802429, -0.9279276728630066, -0.7763444185256958, -0.4012724459171295, 0.9189883470535278, -0.6170583367347717, 0.7921684384346008, 0.5936519503593445, 0.5666564106941223, 0.0034190176520496607, -0.5860140323638916, 0.10423239320516586,...
func lprint(format string, args ...interface{}) { if (!lisp_debug_logging) { return } ts := time.Now() ms := ts.Nanosecond() / 1000000 ds := fmt.Sprintf("%02d/%02d/%02d %02d:%02d:%02d.%03d", ts.Month(), ts.Day(), ts.Year(), ts.Hour(), ts.Minute(), ts.Second(), ms) f := ds + ": xtr: " + format + "\n" fmt.Pri...
[ 0.6743564605712891, -0.24669158458709717, 0.9798197746276855, -1.341465950012207, 0.11697930842638016, 0.07728276401758194, -1.153497338294983, -0.5856749415397644, -0.3064967691898346, -0.653020441532135, 0.8040867447853088, 0.5869858264923096, -0.20361211895942688, 0.3469858467578888, ...
func dprint(format string, args ...interface{}) { if (!lisp_data_plane_logging) { return } ts := time.Now() ms := ts.Nanosecond() / 1000000 ds := fmt.Sprintf("%02d/%02d/%02d %02d:%02d:%02d.%03d", ts.Month(), ts.Day(), ts.Year(), ts.Hour(), ts.Minute(), ts.Second(), ms) f := ds + ": xtr: " + format + "\n" fm...
[ 0.25435999035835266, -0.05082811042666435, 1.0421793460845947, -0.8124148845672607, 0.024942437186837196, 0.08655738830566406, -0.9152914881706238, -0.37333008646965027, -0.7448076605796814, -0.4902743101119995, 0.4822617769241333, 0.4470788538455963, 0.22899925708770752, 0.228275865316391...
func debug(format string, args ...interface{}) { f := red(">>>") + format + red("<<<") + "\n" fmt.Printf(f, args...) }
[ 0.3931044042110443, -0.08400702476501465, 0.6235024333000183, -0.1835106909275055, 0.8757825493812561, 0.4641864001750946, -1.4075069427490234, 0.586653470993042, -0.1632501631975174, -1.0836052894592285, 0.29472818970680237, 0.9195443391799927, 0.4726349711418152, 1.0505632162094116, 0....
func debugv(args interface{}) { debug("%#v", args) }
[ -0.052476588636636734, 0.0821884423494339, 0.2773786783218384, -0.0008014504564926028, 0.5916900634765625, -0.12958648800849915, 0.06765428930521011, -0.2294417917728424, 0.03615095466375351, -0.13061632215976715, -0.2224821001291275, 1.2945572137832642, 0.002158533316105604, 0.68823474645...
func lisp_command_output(command string) string { cmd := exec.Command(command) out, err := cmd.CombinedOutput() if (err != nil) { return("") } output := string(out) return(output[0:len(output)-1]) }
[ 0.20477378368377686, -0.4985659718513489, 0.5419082641601562, -0.015469470992684364, -0.2565847337245941, -0.2601315677165985, -0.2041163444519043, -0.8088781237602234, 0.2971358597278595, -0.14911538362503052, 0.4062223434448242, -0.6914684176445007, -0.27381014823913574, 0.24802388250827...
func lisp_read_file(filename string) string { fd, err := os.Open(filename) if (err != nil) { return("") } scanner := bufio.NewScanner(fd) scanner.Scan() fd.Close() return(scanner.Text()) }
[ 0.09674052149057388, -0.5786864757537842, 0.6684715151786804, -0.951759934425354, -1.050842046737671, 0.5005324482917786, -0.646207869052887, 0.31424883008003235, -0.42835351824760437, 0.1631752848625183, 0.20053716003894806, -0.8387977480888367, -0.03414217010140419, -0.7487152814865112, ...
func lisp_write_file(filename string, text string) { fd, err := os.Create(filename) if (err != nil) { lprint("Could not create file %s", filename) return } _, err = fd.WriteString(text) if (err != nil) { lprint("Could not write string to file %s", filename) return } fd.Close() }
[ 0.3916141092777252, -0.7809548377990723, 0.4027692973613739, -1.0799882411956787, 0.3045250177383423, 0.8234638571739197, -0.3094075918197632, 0.48241281509399414, -0.8032044768333435, 0.3299556374549866, 0.2608446180820465, -0.49554476141929626, 0.00018145170179195702, -0.4249312877655029...
func bold(str string) string { return("\033[1m" + str + "\033[0m") }
[ 0.9385157823562622, -1.0561566352844238, 0.41884544491767883, 0.34090232849121094, -0.41608622670173645, 1.215678095817566, -1.1038298606872559, -0.3279261589050293, 0.40592512488365173, -0.7509310841560364, 0.5030537843704224, 1.0436601638793945, 0.3431790769100189, -0.6513882875442505, ...
func green(str string) string { return("\033[92m" + bold(str) + "\033[0m") }
[ 0.25132080912590027, -0.39881235361099243, 0.6216676235198975, 0.18667000532150269, -0.6699715852737427, 2.001533269882202, -1.7375643253326416, 0.5882060527801514, -0.23542420566082, -0.1618199497461319, 0.10452296584844589, 0.7791391611099243, 0.022711416706442833, -0.8042156100273132, ...
func red(str string) string { return("\033[91m" + bold(str) + "\033[0m") }
[ 0.36444613337516785, -0.07371548563241959, 0.44546982645988464, -0.1526428759098053, -0.7582201957702637, 1.2459602355957031, -1.2113226652145386, 0.11757425963878632, 0.4236118197441101, 0.17615555226802826, -0.008843060582876205, 1.4525591135025024, -0.1565835326910019, 0.133904904127120...
func lisp_log_packet(prefix_string string, packet []byte, is_lisp bool) { var num int var udp, lisp []byte ip := true if (packet[0] == 0x45) { num = 20 } else if (packet[0] == 0x60) { num = 40 } else { num = 8 if (packet[8] == 0x45) { num += 20 } if (packet[8] == 0x60) { num += 40 } ip = false ...
[ -0.10119696706533432, 0.20074455440044403, 1.1293203830718994, -1.5687837600708008, -0.5482019186019897, -0.12784527242183685, -1.0071219205856323, 0.3672652244567871, 0.9968499541282654, -0.0918252170085907, -0.4614109992980957, 0.1758999079465866, -0.1582135558128357, -0.8298453688621521...
func lisp_get_local_address(device string) (string, string) { var ipv4 string = "" var ipv6 string = "" intf, _ := net.InterfaceByName(device) addrs, _ := intf.Addrs() for _, a := range addrs { addr := strings.Split(a.String(), "/")[0] if (addr == "::1") { continue } if (strings.Contains(addr, "fe80")) { c...
[ -0.05368628725409508, -1.0888798236846924, 0.6797029972076416, -0.0036108114290982485, -0.8964908719062805, -1.0551292896270752, 0.5265323519706726, 0.13376379013061523, 0.8268594741821289, 0.8857918381690979, -0.26107272505760193, 0.2736463248729706, 0.13368961215019226, -0.01496869418770...
func (r *Lisp_keys) lisp_setup_keys(crypto_key string, icv_key string) { r.crypto_key = crypto_key r.icv_key = icv_key // // Allocate an IV used for encryption during encapsulation. AES-GCM wants // a 12-byte IV/nonce. // r.iv = make([]byte, 12) binary.BigEndian.PutUint32(r.iv[0:4], rand.Uint32()) binary.BigE...
[ -0.1798338145017624, -0.11886943131685257, 0.7267760038375854, -0.825167179107666, 0.7530174851417542, -0.16805516183376312, 0.1975620687007904, -0.19365116953849792, 0.029224805533885956, 1.3205387592315674, -0.44109147787094116, -0.058704011142253876, -0.2452591061592102, 0.2924725115299...
func (disturbia *Disturbia) GetProductsURL(doc *goquery.Document) (productsURL []string) { products := doc.Find("ul.products > li") productsURL = products.Map(func(i int, product *goquery.Selection) string { href, _ := product.Find("a").First().Attr("href") return "https://www.disturbia.co.uk" + href }) return ...
[ -1.2414826154708862, -0.08762568980455399, 0.6202414035797119, 0.5891779065132141, 1.5041491985321045, -0.17842476069927216, 0.6629972457885742, -0.5753758549690247, 0.23502561450004578, 0.7684810757637024, -0.6206938028335571, -0.394618958234787, 0.49574604630470276, 0.3948734700679779, ...
func (disturbia *Disturbia) GetProductURL(doc *goquery.Document) (productURL string) { urlSelector := doc.Find(`meta[property="og:url"]`) productURL, _ = urlSelector.Attr("content") return }
[ -0.7143669724464417, 0.07048847526311874, 0.56303471326828, 1.1234339475631714, 0.5727171897888184, 0.32642507553100586, 1.1066241264343262, -1.1115949153900146, -0.11881546676158905, 1.2011969089508057, 0.3721477687358856, 0.3830893337726593, 0.4122749865055084, -0.12922288477420807, -0...
func (disturbia *Disturbia) GetProductName(doc *goquery.Document) (name string) { nameSelector := doc.Find("h1") name = nameSelector.First().Text() return }
[ -0.7402953505516052, -0.2725995182991028, 0.5237890481948853, 0.40249425172805786, -0.0032156759407371283, 0.09037351608276367, 0.7462002038955688, -0.694698691368103, -0.062078822404146194, 1.4351081848144531, 0.0656045526266098, -0.5439161658287048, -0.1873411238193512, -0.33422788977622...
func (disturbia *Disturbia) GetProductPrice(doc *goquery.Document) (price float64) { price = disturbia.getProductPrice(doc, false) return }
[ -0.7167875170707703, 0.39848780632019043, 0.3797805905342102, 1.0360565185546875, 0.32430440187454224, -0.02252107672393322, 0.3042371869087219, -0.7776092290878296, 0.2277020663022995, 0.7145209312438965, 0.35153162479400635, -0.28450602293014526, -0.5819472074508667, 0.36687883734703064,...
func (disturbia *Disturbia) GetProductSalePrice(doc *goquery.Document) (salePrice float64) { salePrice = disturbia.getProductPrice(doc, true) return }
[ -0.613386332988739, 0.14848314225673676, 0.1328292340040207, 1.0107436180114746, -0.5036793947219849, 0.07859518378973007, -0.1363621950149536, -0.7111239433288574, 0.7952293753623962, 0.41982194781303406, 0.18568719923496246, -0.1629922240972519, -0.026557499542832375, 0.20865429937839508...
func (disturbia *Disturbia) GetProductImages(doc *goquery.Document) (images []models.ProductImage) { selector := doc.Find("ul.photos li img") thumbnails := selector.Map(func(i int, s *goquery.Selection) string { src, _ := s.Attr("src") return "https://www.disturbia.co.uk" + src }) images = funk.Map(thumbnails...
[ -2.0216007232666016, 0.2162448912858963, 0.5293512344360352, 0.9380093216896057, 0.725298285484314, -0.25687339901924133, 0.6080394387245178, -0.16901236772537231, 0.4462627172470093, 0.8787868022918701, -0.5042662620544434, 0.05637228861451149, 0.2677730619907379, 0.9306238293647766, -0...
func (disturbia *Disturbia) GetProductSizes(doc *goquery.Document) (sizes []models.ProductSize) { selector := doc.Find("select.stock option") existSizes := selector. FilterFunction(func(i int, s *goquery.Selection) bool { name := s.Text() return name != "" }). Map(func(i int, s *goquery.Selection) string...
[ -1.390373706817627, -0.11891473084688187, 0.5258765816688538, -0.15505272150039673, 0.5757307410240173, -0.10236282646656036, 0.5882664322853088, -0.9911729097366333, 0.058859776705503464, 1.1977828741073608, -0.7125125527381897, -0.2240574210882187, -0.12470149993896484, 0.990599155426025...
func (yad *yandexDisk) GetOperationStatus(operationID string, fields []string) (s *OperationStatus, e error) { values := url.Values{} values.Add("fields", strings.Join(fields, ",")) req, e := yad.client.request(http.MethodGet, "/disk/operations/"+operationID+"?"+values.Encode(), nil) if e != nil { return } s ...
[ -0.918928861618042, 0.7603957056999207, 0.7050498723983765, -0.059122633188962936, 0.6281458139419556, -0.7387862205505371, 0.6053100824356079, -0.24784031510353088, -0.2031584084033966, -0.15323394536972046, -0.6606811285018921, -0.04729064553976059, -0.37465253472328186, -0.4419637322425...
func NewConfigurator(client network.Client, fileManager files.FileManager, firewall firewall.Configurator, logger logging.Logger) Configurator { return &configurator{client, fileManager, firewall, logger, random.NewRandom(), verification.NewVerifier().VerifyPort, net.LookupIP} }
[ 0.1276083141565323, -0.5480571389198303, 0.11156588792800903, -0.014753502793610096, -0.7185178995132446, -0.394402414560318, 0.17136862874031067, 0.3632620573043823, 0.451922208070755, -0.6257555484771729, -0.15019023418426514, -0.7270607352256775, -0.3091197609901428, 1.514567494392395, ...
func NewTriangle(b float64, h float64) *Triangle { return &Triangle{base: b, height: h} }
[ 0.6683525443077087, -0.0974438264966011, 0.0377119705080986, 0.37263059616088867, 0.6083815693855286, 0.19846290349960327, -0.747394859790802, 0.18779534101486206, -0.7418232560157776, -0.5515398979187012, -0.38067197799682617, 1.0476617813110352, -0.4582180082798004, -0.5218058228492737, ...
func (t *Triangle) Area() float64 { return (t.base * t.height) / 2 }
[ -0.4800407886505127, -0.7497058510780334, 0.14631131291389465, 0.2224082499742508, -0.08359886705875397, 0.7253290414810181, 0.5801425576210022, -0.30846652388572693, -0.07965891808271408, 0.4988560080528259, 0.6977906227111816, -0.3733358085155487, 0.6574781537055969, 0.7518567442893982, ...
func T() tracing.Trace { return gtrace.SyntaxTracer }
[ 0.8862387537956238, 0.3477212190628052, 0.16098962724208832, -0.6498308777809143, 0.27002301812171936, 0.15871350467205048, 0.03229021281003952, 0.06093594804406166, 0.07570172101259232, -0.4453117549419403, -1.1147706508636475, -0.744232714176178, 0.12674342095851898, -0.3432706296443939,...
func newDSSNode(state int, sym lr.Symbol) *DSSNode { n := &DSSNode{} n.State = state n.Sym = sym return n }
[ -0.21915754675865173, 0.1125473827123642, 0.16904141008853912, -0.8190702199935913, -0.37715548276901245, -0.7332046627998352, -0.5250447988510132, 0.3093198239803314, 0.1523962765932083, -0.4683322310447693, -1.4083532094955444, 1.2345972061157227, 0.3790818750858307, 0.10250553488731384,...
func (n *DSSNode) String() string { return fmt.Sprintf("<-(%v)-[%d]", n.Sym, n.State) }
[ -0.45878177881240845, 0.002401454374194145, 0.18586300313472748, -1.2457910776138306, -0.13141901791095734, -0.33998903632164, 0.1444109082221985, -0.23878727853298187, -0.19166871905326843, -0.566331148147583, -0.4253973960876465, 1.3020128011703491, 0.852638840675354, 0.20899750292301178...
func (n *DSSNode) clone() *DSSNode { nn := newDSSNode(n.State, n.Sym) for _, p := range n.preds { nn.prepend(p) } for _, s := range n.succs { nn.append(s) } return nn }
[ -0.46314582228660583, 0.18166878819465637, 0.4938199818134308, 0.019543476402759552, -0.5834037661552429, 0.3326003849506378, -0.1427997350692749, -0.02531961351633072, 0.44628533720970154, -0.5388416051864624, -0.8000317215919495, 1.3053253889083862, 0.5303425788879395, -0.422640144824981...
func (n *DSSNode) append(succ *DSSNode) { if n.succs == nil { n.succs = make([]*DSSNode, 0, 3) } n.succs = append(n.succs, succ) }
[ -0.4771973490715027, 1.118895173072815, 0.19031885266304016, -0.2368946522474289, -0.6215488314628601, 0.29814812541007996, -0.10888677090406418, 0.9779528975486755, 0.6201037168502808, -0.9586628675460815, -1.423863410949707, 1.0535163879394531, 0.6738421320915222, 1.1795499324798584, 0...
func (n *DSSNode) prepend(pred *DSSNode) { if n.preds == nil { n.preds = make([]*DSSNode, 0, 3) } n.preds = append(n.preds, pred) }
[ -0.369001567363739, 0.9415297508239746, 0.2924823462963104, -0.6780907511711121, -0.34059104323387146, 0.6202604174613953, -0.568145751953125, 1.3830013275146484, 0.4823852777481079, -0.5343399047851562, 0.10872213542461395, 1.2782461643218994, 0.5128747820854187, 0.9591068029403687, 0.7...
func NewRoot(name string, invalidState int) *DSSRoot { root := &DSSRoot{Name: name} root.bottom = newDSSNode(invalidState, &pseudo{"bottom"}) root.bottom.pathcnt = 1 root.stacks = make([]*Stack, 0, 10) root.reservoir = ssl.New() return root }
[ 0.33027246594429016, 0.4232599139213562, 0.4693458676338196, 0.1911098062992096, -0.9305469393730164, -0.7021223306655884, 0.009670507162809372, -0.37096214294433594, 0.6056528687477112, -0.22761884331703186, -0.6396678686141968, 1.239996075630188, -0.08682388067245483, -0.0365170687437057...
func (root *DSSRoot) ActiveStacks() []*Stack { dup := make([]*Stack, len(root.stacks)) copy(dup, root.stacks) return dup }
[ 0.2546914517879486, -1.146071195602417, 0.6262912750244141, 0.9186100363731384, 0.10630036890506744, -0.4735291302204132, 0.7789830565452576, -0.9638234972953796, 0.6573358178138733, -0.6885097622871399, -0.4738980829715729, 0.24696801602840424, -0.12472634762525558, -0.244932621717453, ...
func (root *DSSRoot) removeStack(stack *Stack) { for i, s := range root.stacks { if s == stack { root.stacks[i] = root.stacks[len(root.stacks)-1] root.stacks[len(root.stacks)-1] = nil root.stacks = root.stacks[:len(root.stacks)-1] } } }
[ -0.16464312374591827, 0.8813368678092957, 0.4935767650604248, 0.4279334843158722, -0.19475162029266357, -1.3547515869140625, 0.9201386570930481, 0.1007516011595726, 0.46359825134277344, 0.09983763843774796, -0.4912790358066559, 0.32918789982795715, -0.23813718557357788, 0.23536382615566254...
func (root *DSSRoot) recycleNode(node *DSSNode) { T().Debugf("recycling node %v", node) node.State = 0 node.Sym = nil node.preds = node.preds[0:0] node.succs = node.succs[0:0] root.reservoir.Append(node) // list of nodes free for grab }
[ -0.8719156384468079, 0.6938202977180481, 0.4055323004722595, -1.0199438333511353, -0.24266645312309265, -0.4867948889732361, 0.2926880717277527, 0.5961908102035522, 0.5288769602775574, 0.028863614425063133, -0.618046760559082, 1.1138023138046265, 0.40065956115722656, 0.5551532506942749, ...
func (root *DSSRoot) newNode(state int, sym lr.Symbol) *DSSNode { var node *DSSNode n, ok := root.reservoir.Get(0) if ok { root.reservoir.Remove(0) node = n.(*DSSNode) node.State = state node.Sym = sym } else { node = newDSSNode(state, sym) } return node }
[ -0.16914977133274078, 0.6848992109298706, 0.4013040065765381, -0.8295517563819885, -0.038007065653800964, -1.2143357992172241, 0.13081619143486023, 0.44246459007263184, 1.1022891998291016, -0.3048311173915863, -0.13434773683547974, 0.9810494184494019, 0.23910996317863464, 0.098209522664546...
func (root *DSSRoot) makeStackHeadsFrom(nodes []*DSSNode) (ret []*Stack) { for _, n := range nodes { s := NewStack(root) s.tos = n ret = append(ret, s) } return }
[ -0.46083593368530273, 0.34368038177490234, 0.49065113067626953, 0.3961421251296997, -0.2168969213962555, -0.8266253471374512, 0.5906439423561096, -0.5049314498901367, -0.23552434146404266, 0.20897391438484192, -0.21104519069194794, 0.35710787773132324, 0.5690720081329346, -0.17151951789855...
func (root *DSSRoot) findTOSofAnyStack(state int, sym lr.Symbol) *DSSNode { for _, stack := range root.stacks { if stack.tos.is(state, sym) { return stack.tos } } return nil }
[ 0.19322499632835388, 0.5134744644165039, 0.41735032200813293, -0.2461077719926834, 0.1818738877773285, -2.366943120956421, 0.026691649109125137, -0.912253201007843, -0.03219139575958252, -0.4265978932380676, -0.10283799469470978, 0.007746391464024782, -0.02092425897717476, 0.54098981618881...
func (root *DSSRoot) IsAlone(stack *Stack) bool { if stack.tos.successorCount() > 0 { return false } for _, other := range root.stacks { if other.tos == stack.tos { return false } } return true }
[ -0.5197544693946838, 0.9966909289360046, 0.9177267551422119, 1.2849605083465576, -0.36274856328964233, -1.4442164897918701, -0.11436475813388824, -0.5296235680580139, 0.9177893996238708, 0.5770583152770996, -0.6332446336746216, -0.45754265785217285, -0.3196248710155487, 0.693812906742096, ...
func NewStack(root *DSSRoot) *Stack { s := &Stack{root: root, tos: root.bottom} s.root.stacks = append(s.root.stacks, s) return s }
[ 0.22822996973991394, 0.6295971870422363, 0.32018399238586426, 0.7777891159057617, -0.9787203073501587, -1.4634968042373657, 0.6147398948669434, -0.7827429175376892, 0.5330638289451599, -0.4699116051197052, -0.010393922217190266, 0.7400357723236084, 0.7269335985183716, -0.049564529210329056...
func (stack *Stack) Fork() *Stack { s := NewStack(stack.root) //s.height = stack.height s.tos = stack.tos s.tos.pathcnt++ return s }
[ 0.877536952495575, -0.03169367089867592, 0.45056670904159546, 0.9875096678733826, -0.7445943355560303, -0.46050649881362915, 1.3332868814468384, -0.7044907212257385, 0.6129048466682434, -0.8102788329124451, -0.596012532711029, 0.799939751625061, 0.3724757432937622, 0.07674182206392288, 0...
func (stack *Stack) Peek() (int, lr.Symbol) { return stack.tos.State, stack.tos.Sym }
[ -0.7704200744628906, 0.07027871161699295, 0.6171446442604065, -1.0459004640579224, -0.29918429255485535, -1.4094051122665405, 0.7022034525871277, -0.6196793913841248, -0.13195855915546417, 0.3923895061016083, -1.047666311264038, 0.8112066984176636, 1.2426866292953491, -0.21942642331123352,...
func (stack *Stack) Push(state int, sym lr.Symbol) *Stack { if sym == nil { return stack } // create or find a node // - create: new and let node.prev be tos // - find: return existing one // update references / pathcnt if succ := stack.tos.findUplink(sym); succ != nil { T().Debugf("state already present: %v...
[ -0.014615227468311787, 0.6743226051330566, 0.5320809483528137, -0.2678772211074829, -0.09965592622756958, -1.023238182067871, 0.8678582310676575, 0.08052424341440201, 0.7893276810646057, 0.08961658924818039, -0.12580357491970062, 0.5211141109466553, 0.6107730269432068, 0.25184366106987, ...
func (stack *Stack) FindHandlePath(handle []lr.Symbol, skip int) NodePath { path, ok := collectHandleBranch(stack.tos, handle, len(handle), &skip) if ok { T().Debugf("found a handle %v", path) } return path }
[ 0.4425903558731079, 0.2192801684141159, 0.44419628381729126, 0.01756386272609234, 0.6717015504837036, 0.5224605798721313, 1.5051451921463013, -1.1009407043457031, -0.3600112497806549, -0.3426475524902344, 0.6257194876670837, -0.6215148568153381, -0.8898237943649292, 0.29233336448669434, ...
func collectHandleBranch(n *DSSNode, handleRest []lr.Symbol, handleLen int, skip *int) (NodePath, bool) { l := len(handleRest) if l > 0 { if n.Sym == handleRest[l-1] { T().Debugf("handle symbol match at %d = %v", l-1, n.Sym) for _, pred := range n.preds { branch, found := collectHandleBranch(pred, handleR...
[ 0.08304800093173981, 0.10572963207960129, 0.7715789675712585, -0.005575360730290413, 0.30974096059799194, 0.688793957233429, 1.160555124282837, -0.8695694208145142, -0.0755544900894165, -0.6688648462295532, -0.2025451958179474, -0.7441076040267944, -0.42853429913520813, 0.8268473744392395,...
func (stack *Stack) splitOff(path NodePath) *Stack { l := len(path) // pre-condition: there are at least l nodes on the stack-path var node, mynode, upperNode *DSSNode = nil, nil, nil mystack := NewStack(stack.root) //mystack.height = stack.height for i := l - 1; i >= 0; i-- { // walk path from back to font, i.e. ...
[ -0.47019094228744507, 0.5406274795532227, 0.824432909488678, -0.4956921935081482, -0.945563018321991, 0.030602043494582176, 1.2904634475708008, 0.54160076379776, 0.8408979773521423, 0.2459307760000229, -0.24659867584705353, 0.1841314136981964, -0.37970292568206787, -0.08486566692590714, ...
func (stack *Stack) reduce(path NodePath, destructive bool) (ret []*Stack) { maydelete := true haveDeleted := false for i := len(path) - 1; i >= 0; i-- { // iterate over handle symbols back to front node := path[i] T().Debugf("reducing node %v (now cnt=%d)", node, node.pathcnt) T().Debugf(" node %v has...
[ -0.6424333453178406, 1.3008759021759033, 0.9170038104057312, 0.6762714982032776, 0.29070040583610535, -0.24919942021369934, 1.1263495683670044, 0.4579508602619171, -0.37748417258262634, 0.9832016825675964, 0.19582632184028625, -0.01198974996805191, -0.683426558971405, 0.6886249780654907, ...
func (stack *Stack) Reduce(handle []lr.Symbol) (ret []*Stack) { if len(handle) == 0 { return } var paths []NodePath // first collect all possible handle paths skip := 0 // how many paths already found? path := stack.FindHandlePath(handle, skip) for path != nil { paths = append(paths, path) skip++...
[ -0.5250629186630249, 0.7545474767684937, 0.8686206936836243, 0.8473255634307861, 0.9662708044052124, -0.573547899723053, 1.4969109296798706, -0.11293284595012665, -0.04048902541399002, 0.37501466274261475, -0.2990970015525818, -0.5542886257171631, -0.6353452205657959, 0.7583901882171631, ...
func (stack *Stack) Pop() (ret []*Stack) { if stack.tos != stack.root.bottom { // ensure stack not empty // If tos is part of another chain: return node and go down one node // If shared by another stack: return node and go down one node // If not shared: remove node // Increase pathcnt at new TOS var oldTOS...
[ -0.532414436340332, 0.7641118168830872, 0.879510760307312, 0.7287306785583496, -0.024418089538812637, -0.7144591212272644, 1.1308561563491821, -0.07905272394418716, -0.08487242460250854, 0.9757013320922852, -0.3950502872467041, -0.12434469163417816, -0.24853338301181793, 0.4277923107147217...
func DSS2Dot(root *DSSRoot, path []*DSSNode, w io.Writer) { istos := map[*DSSNode]bool{} for _, stack := range root.stacks { istos[stack.tos] = true } ids := map[*DSSNode]int{} idcounter := 1 io.WriteString(w, "digraph {\n") WalkDAG(root, func(node *DSSNode, arg interface{}) { ids[node] = idcounter idcount...
[ -0.6159697771072388, -0.6115518808364868, 0.7285785675048828, -1.333301067352295, -0.41519227623939514, -0.5944952368736267, 1.0720688104629517, -0.33292481303215027, 0.3224450647830963, -0.8162751793861389, -0.2731700837612152, 0.8335320353507996, 1.9158306121826172, 0.14873278141021729, ...
func PrintDSS(root *DSSRoot) { WalkDAG(root, func(node *DSSNode, arg interface{}) { predList := " " for _, p := range node.preds { predList = predList + strconv.Itoa(p.State) + " " } fmt.Printf("edge [%s]%v\n", predList, node) }, nil) }
[ -0.4083847999572754, 0.026763219386339188, 0.6663811206817627, -1.101688265800476, -0.9218481779098511, -0.13164184987545013, -0.36436137557029724, 0.40158811211586, 0.12332219630479813, -0.2718559503555298, 0.2937241196632385, 1.7590488195419312, 0.4478567838668823, 0.8830881118774414, ...
func WalkDAG(root *DSSRoot, worker func(*DSSNode, interface{}), arg interface{}) { visited := map[*DSSNode]bool{} var walk func(*DSSNode, func(*DSSNode, interface{}), interface{}) walk = func(node *DSSNode, worker func(*DSSNode, interface{}), arg interface{}) { if visited[node] { return } visited[node] = tr...
[ -0.6197923421859741, 0.7616503238677979, 0.7431414127349854, -0.8275155425071716, -0.4498246908187866, -0.1404809057712555, 0.9147975444793701, 0.7633206248283386, -0.5162174105644226, -0.6883880496025085, -0.5502432584762573, 0.868388831615448, 1.1776342391967773, 1.4236193895339966, -0...
func (stack *Stack) Die() { stack.root.removeStack(stack) stack.tos = nil }
[ 0.029469234868884087, 0.1053171157836914, 0.6113193035125732, 0.31784510612487793, 0.5594470500946045, -0.40667811036109924, 0.5061127543449402, 0.30799707770347595, -0.4351305663585663, 0.5793404579162598, -0.19153732061386108, -0.2714153826236725, -0.0021069759968668222, 0.08576207607984...
func remove(nodes []*DSSNode, node *DSSNode) ([]*DSSNode, bool) { for i, n := range nodes { if n == node { nodes[i] = nodes[len(nodes)-1] nodes[len(nodes)-1] = nil nodes = nodes[:len(nodes)-1] return nodes, true } } return nodes, false }
[ -0.9014130234718323, 0.862898051738739, 0.7219165563583374, -0.6278207302093506, -0.36750832200050354, -1.2165652513504028, -0.3502030670642853, 1.0536749362945557, 0.46344873309135437, 1.0097066164016724, -1.1744086742401123, 1.1123113632202148, -0.6431602835655212, -0.28914695978164673, ...
func (t *Telemetry) Initialize(telemetryDisabled bool, stepName string) { t.disabled = telemetryDisabled provider, err := orchestrator.NewOrchestratorSpecificConfigProvider() if err != nil || provider == nil { log.Entry().Warningf("could not get orchestrator config provider, leads to insufficient data") provide...
[ -0.32589495182037354, 0.3342273533344269, 0.5166753530502319, -0.14854034781455994, 0.6123234033584595, -0.0747639387845993, -0.05396386608481407, 0.4543842673301697, -0.6509658098220825, 0.6384492516517639, -0.6352829337120056, 0.5219411253929138, -0.4127280116081238, 0.6985346674919128, ...
func (t *Telemetry) SetData(customData *CustomData) { t.data = Data{ BaseData: t.baseData, BaseMetaData: t.baseMetaData, CustomData: *customData, } }
[ 0.35841280221939087, -0.05397319793701172, 0.21243758499622345, -0.7144230604171753, -0.38997793197631836, 0.8269234299659729, -0.31931233406066895, 0.16150352358818054, 0.24688637256622314, -0.9105740189552307, -0.6987392902374268, 1.22700834274292, 0.2378825694322586, 0.5655306577682495,...
func (t *Telemetry) Send() { // always log step telemetry data to logfile used for internal use-case t.logStepTelemetryData() // skip if telemetry is disabled if t.disabled { return } request, _ := url.Parse(t.BaseURL) request.Path = t.Endpoint request.RawQuery = t.data.toPayloadString() log.Entry().WithFi...
[ -0.2944869101047516, 0.4248214662075043, 0.1478455364704132, 0.05590055137872696, 0.3534609377384186, 0.38440942764282227, -0.9855597019195557, -0.2897517681121826, -0.9739352464675903, 0.3720551133155823, 0.08641212433576584, 0.27773797512054443, 0.056928616017103195, 0.6506876349449158, ...
func (h *ServiceIntegrationEndpointsHandler) Create( project string, req CreateServiceIntegrationEndpointRequest, ) (*ServiceIntegrationEndpoint, error) { path := buildPath("project", project, "integration_endpoint") rsp, err := h.client.doPostRequest(path, req) if err != nil { return nil, err } return parseS...
[ -0.6932060122489929, 0.74540776014328, 0.2285270392894745, 0.93329256772995, 0.6890233159065247, 0.6797469854354858, 0.1492098867893219, -0.06318656355142593, -1.176218867301941, 0.5710400342941284, -0.40209922194480896, -0.5695635080337524, -1.3553038835525513, 0.41266146302223206, -0.4...
func (h *ServiceIntegrationEndpointsHandler) Get(project, endpointID string) (*ServiceIntegrationEndpoint, error) { // There's no API for getting integration endpoint by ID. List all endpoints // and pick the correct one instead. (There shouldn't ever be many endpoints.) endpoints, err := h.List(project) if err != ...
[ -0.5240126848220825, 0.18693651258945465, 0.28046712279319763, 0.3256985545158386, 0.67692631483078, -0.24437332153320312, -0.7148640751838684, 0.05183534324169159, -0.34253016114234924, 0.6989891529083252, -0.0717000663280487, 0.26518380641937256, -0.9677443504333496, -0.1297195851802826,...
func (h *ServiceIntegrationEndpointsHandler) Update( project string, endpointID string, req UpdateServiceIntegrationEndpointRequest, ) (*ServiceIntegrationEndpoint, error) { path := buildPath("project", project, "integration_endpoint", endpointID) rsp, err := h.client.doPutRequest(path, req) if err != nil { ret...
[ -0.9796929359436035, -0.07871102541685104, 0.21483322978019714, 0.590707004070282, 0.08974728733301163, 0.4703378677368164, 0.1488797664642334, 0.10023579746484756, -0.6037233471870422, 1.1019841432571411, -0.35435086488723755, -0.1363821029663086, -1.5116889476776123, -0.46968555450439453...
func (h *ServiceIntegrationEndpointsHandler) Delete(project, endpointID string) error { path := buildPath("project", project, "integration_endpoint", endpointID) bts, err := h.client.doDeleteRequest(path, nil) if err != nil { return err } return handleDeleteResponse(bts) }
[ 0.2222348302602768, 0.4812796413898468, 0.3966207504272461, 0.76947420835495, 0.9297800660133362, 0.6063928008079529, 0.05911247432231903, 0.5298592448234558, 0.056234441697597504, 1.217291235923767, 0.10933802276849747, -0.26307836174964905, -1.8873718976974487, -0.203610360622406, -0.4...
func (h *ServiceIntegrationEndpointsHandler) List(project string) ([]*ServiceIntegrationEndpoint, error) { path := buildPath("project", project, "integration_endpoint") rsp, err := h.client.doGetRequest(path, nil) if err != nil { return nil, err } var response *ServiceIntegrationEndpointListResponse if err := ...
[ -0.5973144173622131, 0.3290691673755646, 0.444882869720459, 0.4423663020133972, 0.6015478372573853, -0.06680161505937576, 0.019825931638479233, 0.33419373631477356, -0.3539290130138397, 1.2755142450332642, -0.7439895272254944, -0.2086256891489029, -1.3214765787124634, 0.5805801749229431, ...
func NewClient() *Client { return &Client{buffer: make([]byte, maxPacketSize), outputWriter: os.Stdout} }
[ 0.9969853758811951, -0.6868774890899658, 0.3041691184043884, -0.32874494791030884, -1.2600839138031006, -0.6197410225868225, 0.32190459966659546, -0.4421369135379791, -0.16487844288349152, -1.0692722797393799, -0.17140021920204163, 0.9645552635192871, -0.4610774517059326, -0.60014235973358...
func (c *Client) LaunchProcess(name string, arg ...string) error { listener, err := net.Listen("tcp", "localhost:") if err != nil { return err } path, err := debugServerPath() if err != nil { return err } debugServerArgs := []string{"-F", "-R", listener.Addr().String(), "--", name} debugServerArgs = appen...
[ 0.6431642174720764, -0.5926506519317627, 0.9313476085662842, -0.19864049553871155, -0.3268563747406006, -0.21761368215084076, -0.3555029332637787, 0.033846303820610046, 0.06581919640302658, -0.32990992069244385, -0.24945522844791412, -0.05785801634192467, -0.7927572131156921, 0.61654824018...
func (c *Client) ThreadIDs() ([]int, error) { rawThreadIDs, err := c.qfThreadInfo() if err != nil { return nil, err } // TODO: call qsThreadInfo var threadIDs []int for _, rawThreadID := range strings.Split(rawThreadIDs, ",") { threadID, err := hexToUint64(rawThreadID, false) if err != nil { return nil,...
[ -0.6386474967002869, -0.42803284525871277, 0.16715364158153534, -0.3782414495944977, 0.5557364821434021, -0.1973377913236618, -1.01593816280365, -0.2264523208141327, 0.5132105350494385, 0.5143040418624878, -0.5686574578285217, 0.8837471604347229, -1.14680016040802, 0.35812729597091675, -...
func (c *Client) AttachProcess(pid int) error { listener, err := net.Listen("tcp", "localhost:") if err != nil { return err } path, err := debugServerPath() if err != nil { return err } debugServerArgs := []string{"-F", "-R", listener.Addr().String(), fmt.Sprintf("--attach=%d", pid)} cmd := exec.Command(p...
[ 0.6160463094711304, -0.1295640766620636, 0.874309778213501, -0.777362048625946, -0.0017425109399482608, 0.30356305837631226, 0.01266366709023714, -0.6295192241668701, -0.05696805194020271, -0.3515699803829193, -0.04280424863100052, 0.21923130750656128, -1.036002278327942, 1.319175362586975...
func (c *Client) DetachProcess() error { defer c.close() if c.killOnDetach { return c.killProcess() } if err := c.send("D"); err != nil { return err } return c.receiveAndCheck() }
[ 0.8736317157745361, 0.12215275317430496, 0.581545889377594, -0.49588915705680847, -0.30102238059043884, 0.4759242534637451, 0.4034353196620941, -0.9453705549240112, 0.6122410893440247, -0.12818706035614014, -0.03377153351902962, 0.25318387150764465, -0.8403568267822266, -0.2829824984073639...
func (c *Client) ReadRegisters(threadID int) (Registers, error) { data, err := c.readRegisters(threadID) if err != nil { return Registers{}, err } return c.parseRegisterData(data) }
[ -0.6887398362159729, 0.32454538345336914, 0.4023606479167938, -0.16599474847316742, 0.4703361988067627, -0.637403666973114, -0.7142722010612488, -0.2494155764579773, -0.06076977774500847, 0.16016153991222382, -0.5791313648223877, 0.6645357608795166, -1.5166277885437012, 0.9481313824653625,...
func (c *Client) WriteRegisters(threadID int, regs Registers) error { data, err := c.readRegisters(threadID) if err != nil { return err } // The 'P' command is not used due to the bug explained here: https://github.com/llvm-mirror/lldb/commit/d8d7a40ca5377aa777e3840f3e9b6a63c6b09445 for _, metadata := range c....
[ -0.8586857318878174, 0.2494368851184845, 0.6438304781913757, -0.8453273177146912, 1.1981165409088135, 0.08214334398508072, -0.06736229360103607, -0.20866872370243073, 0.17070820927619934, 0.4647582769393921, -0.458355575799942, 1.0160548686981201, -0.81730055809021, 0.4660225212574005, -...
func (c *Client) ReadMemory(addr uint64, out []byte) error { command := fmt.Sprintf("m%x,%x", addr, len(out)) if err := c.send(command); err != nil { return err } data, err := c.receive() if err != nil { return err } else if strings.HasPrefix(data, "E") { return fmt.Errorf("error response: %s", data) } ...
[ -0.06017478555440903, 0.5493337512016296, 0.8153108358383179, -0.21951206028461456, -0.4828955829143524, -0.38074591755867004, -0.20413759350776672, -0.3123670816421509, 0.2370302826166153, 0.08322091400623322, 0.558350682258606, 0.6878787875175476, -0.6999956369400024, 0.35129472613334656...
func (c *Client) WriteMemory(addr uint64, data []byte) error { dataInHex := "" for _, b := range data { dataInHex += fmt.Sprintf("%02x", b) } command := fmt.Sprintf("M%x,%x:%s", addr, len(data), dataInHex) if err := c.send(command); err != nil { return err } return c.receiveAndCheck() }
[ -0.9119732975959778, 0.08160445839166641, 0.5046999454498291, -0.42225053906440735, 0.9538061618804932, 0.019433900713920593, -0.4772392809391022, -0.17086952924728394, 0.30107539892196655, -0.11196616291999817, -0.4292345345020294, 0.3849371075630188, -0.8266379833221436, 0.74085861444473...
func (c *Client) ReadTLS(threadID int, offset int32) (uint64, error) { if err := c.updateReadTLSFunction(uint32(offset)); err != nil { return 0, err } originalRegs, err := c.ReadRegisters(threadID) if err != nil { return 0, err } defer func() { err = c.WriteRegisters(threadID, originalRegs) }() modifiedReg...
[ -0.563992977142334, 0.24370190501213074, 0.6380171179771423, -1.0065052509307861, -0.6444798111915588, -0.483871728181839, 0.025297679007053375, 0.11265090107917786, 0.13670745491981506, 0.10917341709136963, -0.004395763855427504, 0.8050054907798767, -0.3984806537628174, -0.014044892974197...
func (c *Client) ContinueAndWait() (Event, error) { return c.continueAndWait(c.pendingSignal) }
[ 1.1054140329360962, -0.40702199935913086, 0.29762861132621765, -0.06446335464715958, -1.3697021007537842, 0.4790445566177368, -0.041833482682704926, -0.5870800614356995, 0.24082301557064056, 0.023403240367770195, -0.00979746412485838, -0.44738397002220154, -0.14339125156402588, 0.047035131...
func NASSCropMap() map[string]Crop { m := make(map[string]Crop) m["1"] = BuildCrop(1, "Corn") m["2"] = BuildCrop(2, "Cotton") m["3"] = BuildCrop(3, "Rice") m["4"] = BuildCrop(4, "Sorghum") m["5"] = BuildCrop(5, "Soybeans") m["6"] = BuildCrop(6, "Sunflower") m["10"] = BuildCrop(10, "Peanuts") m["11"]...
[ -0.6738561987876892, -0.6817337870597839, 0.907174825668335, 0.10309166461229324, -1.372554898262024, 0.0007374722044914961, 0.15227000415325165, -0.1763032227754593, 0.9580179452896118, 0.40895140171051025, -0.27434802055358887, 0.10872234404087067, 1.379547357559204, -0.5733742117881775,...
func (c ContainerEnv) GetID() string { return c.ID }
[ 1.063967227935791, -0.3633158504962921, 0.39838019013404846, 0.521399199962616, 1.5988954305648804, 1.3322707414627075, 0.49914801120758057, -0.6137363910675049, 0.7544465065002441, -0.31410205364227295, 0.106991708278656, 0.6275467276573181, -0.3170555531978607, 0.8742566704750061, 0.26...
func (c *ContainerEnv) SetID(id string) error { c.ID = id return nil }
[ 0.46854326128959656, -0.18717318773269653, 0.21744245290756226, 0.6527628302574158, 0.9362241625785828, 1.2911776304244995, -0.047417640686035156, -0.10518670827150345, 0.6141911745071411, -0.22186575829982758, -0.5522552728652954, 0.7513236999511719, -0.3618285357952118, 1.768520951271057...
func (c *ContainerEnv) SetToOneReferenceID(name, ID string) error { if name == "container" { // we can skip this, becase MachineID should already be populated } else { return errors.New("There is no to-one relationship with name " + name) } return nil }
[ -0.5546969175338745, 0.4528357982635498, 0.42914626002311707, -1.025610089302063, 0.9512506723403931, 0.2662390172481537, 0.07743539661169052, -1.052039623260498, 0.24962307512760162, 0.8746669888496399, 0.5613994598388672, 1.0028759241104126, -0.66487056016922, 0.7277886867523193, -0.09...
func (am ArgMap) NonFlags() []string { return am["_"].([]string) }
[ -0.8889536261558533, -0.029302814975380898, 0.3300202190876007, -0.4220002591609955, 0.2414865791797638, 0.5871699452400208, -0.6568960547447205, -0.2656642496585846, -0.3496427834033966, 0.2137768268585205, -0.22523897886276245, 0.3400907814502716, -0.9518051147460938, 1.6486995220184326,...
func (am ArgMap) Unparsed() []string { return am["--"].([]string) }
[ -0.10438543558120728, -0.9768532514572144, 0.5543482303619385, -0.7546436190605164, 0.9696671962738037, 0.41976410150527954, -0.8766635656356812, 0.7083702683448792, 0.13168060779571533, -0.5201675891876221, -0.15983617305755615, 0.7943296432495117, 0.1979469656944275, 0.3857882618904114, ...
func TestSum(t *testing.T) { var firstVector = Vector{X: 3, Y: 5} var secondVector = Vector{X: 2, Y: 3} sumVector := firstVector.Add(secondVector) if sumVector.X != 5 { t.Errorf("X was incorrect, got: %f, want: %d.", sumVector.X, 5) } if sumVector.Y != 8 { t.Errorf("Y incorrect, got: %f, want %d.", sumVector....
[ -0.28715044260025024, -0.14122316241264343, 0.5394562482833862, 0.15232698619365692, 0.9271640181541443, 0.3677496910095215, 0.5280103087425232, -1.2555873394012451, 0.4678531587123871, -0.09594476222991943, -0.6439104080200195, 0.8203405737876892, 0.28685030341148376, -0.6794822812080383,...
func (*UserAccount) Descriptor() ([]byte, []int) { return file_yandex_cloud_iam_v1_user_account_proto_rawDescGZIP(), []int{0} }
[ 0.16629433631896973, 0.05564521253108978, 0.22730478644371033, 0.40285688638687134, 0.04948407784104347, -0.17834118008613586, 1.6683733463287354, 0.5252172350883484, 0.5673565864562988, -0.4218761920928955, -0.8819938898086548, 0.8291562795639038, -0.04221443831920624, 0.18365004658699036...
func (*YandexPassportUserAccount) Descriptor() ([]byte, []int) { return file_yandex_cloud_iam_v1_user_account_proto_rawDescGZIP(), []int{1} }
[ -0.01934949681162834, -0.00477844150736928, 0.3131243586540222, 0.5147830247879028, 0.007306211162358522, 0.32980385422706604, 2.10395884513855, 0.4695145785808563, 0.044876545667648315, -0.4656844437122345, -0.32586708664894104, 0.2939067780971527, -0.6543097496032715, -0.5213869214057922...
func (*SamlUserAccount) Descriptor() ([]byte, []int) { return file_yandex_cloud_iam_v1_user_account_proto_rawDescGZIP(), []int{2} }
[ 0.16983605921268463, 0.0011397984344512224, 0.0676407665014267, 0.298490434885025, -1.0452715158462524, -0.1794673055410385, 0.9640493392944336, 1.1786909103393555, 0.6827464699745178, -0.25893405079841614, -0.5991851687431335, 0.7513615489006042, 0.5220045447349548, 0.8758569359779358, ...
func (*SamlUserAccount_Attribute) Descriptor() ([]byte, []int) { return file_yandex_cloud_iam_v1_user_account_proto_rawDescGZIP(), []int{2, 0} }
[ -0.10126756876707077, -0.3407802879810333, -0.09576836228370667, 0.38256391882896423, -0.5989799499511719, -0.5442745685577393, 0.8227804899215698, 1.3048853874206543, 0.6940608620643616, 0.38190367817878723, 0.28473496437072754, 0.10251635313034058, 0.5952004194259644, 0.7066482901573181,...
func Setup(serviceName string, config *config.Config) (context.Context, func()) { closer := tracing.Initialize( tracing.WithServiceName(serviceName), // For GitLab-Shell, we explicitly initialize tracing from a config file // instead of the default environment variable (using GITLAB_TRACING) // This decision ...
[ 0.5226300358772278, -0.046415384858846664, 0.6961895227432251, -0.8817765116691589, 0.021016020327806473, -0.08198541402816772, 0.8449066281318665, -0.4379632771015167, 0.5014312267303467, 0.6706263422966003, 0.11249270290136337, 0.13302496075630188, -0.3635416626930237, 0.4256887435913086...
func (n Node) Signature() int { return NodeSignature }
[ -1.2325711250305176, 0.4326283633708954, 0.3108217120170593, -0.2289387434720993, -0.2797468304634094, -0.5578686594963074, 0.5303266048431396, 0.8662121891975403, -0.49218615889549255, -0.41765862703323364, -1.6215871572494507, -0.9435301423072815, -0.3959346115589142, 0.6101043224334717,...
func (n Node) AllFields() []interface{} { labels := make([]interface{}, len(n.Labels)) for i, label := range n.Labels { labels[i] = label } return []interface{}{n.NodeIdentity, labels, n.Properties} }
[ -1.0694286823272705, 0.07247614115476608, 0.6607345938682556, -0.4808382987976074, 0.19456306099891663, 0.7458829283714294, -1.3614000082015991, -0.12500891089439392, 0.39322665333747864, -0.26283571124076843, -0.27950307726860046, -0.00013225698785390705, -0.21271468698978424, -0.11311342...
func (client *Client) ReleaseEipSegmentAddress(request *ReleaseEipSegmentAddressRequest) (response *ReleaseEipSegmentAddressResponse, err error) { response = CreateReleaseEipSegmentAddressResponse() err = client.DoAction(request, response) return }
[ -1.4656401872634888, -0.18356852233409882, 0.6233890056610107, -0.24659204483032227, 0.29230743646621704, -0.5284945964813232, 1.3322980403900146, 0.2122342586517334, 0.8873935341835022, 0.25229573249816895, -0.1923256814479828, 0.8825483322143555, -1.5170753002166748, -0.8103965520858765,...
func (client *Client) ReleaseEipSegmentAddressWithChan(request *ReleaseEipSegmentAddressRequest) (<-chan *ReleaseEipSegmentAddressResponse, <-chan error) { responseChan := make(chan *ReleaseEipSegmentAddressResponse, 1) errChan := make(chan error, 1) err := client.AddAsyncTask(func() { defer close(responseChan) ...
[ -0.9297757744789124, -0.5019007921218872, 0.7513346672058105, -0.7866764664649963, 0.3054344952106476, -0.45298194885253906, 1.0083509683609009, -0.5033180713653564, 1.003093957901001, 0.1608465313911438, 0.22344650328159332, 0.757728099822998, -0.7102392315864563, -0.11710330843925476, ...
func (client *Client) ReleaseEipSegmentAddressWithCallback(request *ReleaseEipSegmentAddressRequest, callback func(response *ReleaseEipSegmentAddressResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { var response *ReleaseEipSegmentAddressResponse var err error def...
[ -0.8801393508911133, -0.0259263776242733, 0.8577737212181091, -0.5080599784851074, 0.26449698209762573, -0.8501824736595154, 1.2809207439422607, -0.2992497384548187, 1.5082772970199585, 0.3008798360824585, 0.2709009647369385, -0.20223626494407654, -0.4054965674877167, -0.18864436447620392,...
func CreateReleaseEipSegmentAddressRequest() (request *ReleaseEipSegmentAddressRequest) { request = &ReleaseEipSegmentAddressRequest{ RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Vpc", "2016-04-28", "ReleaseEipSegmentAddress", "vpc", "openAPI") request.Method = requests.POST return }
[ -0.84930020570755, -0.42828354239463806, 0.7397964596748352, -0.6348699927330017, 0.8777670860290527, -0.1009923666715622, 0.29799729585647583, -0.09595818817615509, 0.5756627917289734, 0.2438661903142929, -0.1388792246580124, 0.47741714119911194, -0.8192864060401917, 0.04177691042423248, ...
func CreateReleaseEipSegmentAddressResponse() (response *ReleaseEipSegmentAddressResponse) { response = &ReleaseEipSegmentAddressResponse{ BaseResponse: &responses.BaseResponse{}, } return }
[ -0.6323390007019043, -1.213792324066162, 0.25300392508506775, -0.7948790788650513, 0.7066686153411865, -0.674680769443512, 0.9126108884811401, -0.27572309970855713, 1.1934410333633423, 0.34326937794685364, -0.6630342602729797, -0.6989517211914062, -0.9168192744255066, -0.4528397023677826, ...
func MainControl() func(bool) bool { rand.Seed(time.Now().Unix()) curfunc := -1 nextfunc := -1 gotoState := func(st int) { nextfunc = st } hasNextState := func() bool { return nextfunc != -1 } callstack := [...]int{0, 0, 0, 0, 0} callstacklevel := 0 gosubState := func(sub, next int) { if callstackle...
[ 0.18984143435955048, 0.05279003456234932, 0.892401397228241, 0.19637635350227356, -0.7617256045341492, -0.3669443428516388, 0.9323738217353821, 0.016369566321372986, 0.06095625087618828, -0.4670413136482239, -0.9732803106307983, -0.22629638016223907, 0.19188404083251953, 0.6997901201248169...
func (h *messageHandler) HandleMessage(m *nsq.Message) error { if len(m.Body) == 0 { // Returning nil will automatically send a FIN command to NSQ to mark the message as processed. return nil } logrus.Infoln("NSQL HandleMessage: ", string(m.Body)) // Returning a non-nil error will automatically send a REQ comma...
[ -0.3283992111682892, 0.4841431677341461, 0.48496079444885254, 0.5535861253738403, 0.7026100158691406, -0.18611891567707062, -0.2604270875453949, -0.5368753671646118, 0.0018917028792202473, -0.2664470076560974, 0.591995120048523, -0.5371006727218628, -0.9208793044090271, 1.7045540809631348,...
func NewTransform(cfg *viper.Viper) (interface{}, error) { gremlinClient, err := client.NewGremlinQueryHelperFromConfig(core.CfgAuthOpts(cfg)) if err != nil { return nil, err } return &vpclogsFlowTransformer{ interfaceIpCache: cache.New(10*time.Minute, 10*time.Minute), gremlinClient: gremlinClient, }, nil...
[ 0.3114526569843292, 0.6456974148750305, 0.41153189539909363, -0.16490556299686432, 0.7552767992019653, -0.7099334597587585, 0.12595945596694946, -0.3931349515914917, 0.033254556357860565, -0.28662899136543274, -0.6831836700439453, 0.24573953449726105, -0.9915705919265747, 0.620901048183441...
func (ft *vpclogsFlowTransformer) TIDtoIP(TID string) ([]string, error) { result, ok := ft.interfaceIpCache.Get(TID) if !ok { var ipAddrList []string var ipAddrList2 []string node, err := ft.gremlinClient.GetNode(gremlin.G.V().Has("TID", TID)) if err != nil { emptyList := make([]string, 0) return emptyL...
[ -0.8204652070999146, 0.06797681748867035, 0.7673658728599548, -0.5106973052024841, 0.1888500154018402, -0.38693860173225403, 0.07073752582073212, -0.5691184997558594, 0.6131308674812317, 1.7992764711380005, -0.39990320801734924, -0.053619883954524994, -0.5689479112625122, -0.61824798583984...