text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (*ClusterNodeServiceStepRequest) XXX_OneofWrappers() []interface{} { return []interface{}{ (*ClusterNodeServiceStepRequest_NodeConrequest)(nil), (*ClusterNodeServiceStepRequest_NodeTranrequest)(nil), (*ClusterNodeServiceStepRequest_NodeAuthrequest)(nil), } }
[ -1.4784303903579712, 0.9337635636329651, 0.4596444368362427, -0.9452875256538391, 0.5119389891624451, -0.5941239595413208, -0.40006667375564575, -0.34351682662963867, 0.9373375177383423, -0.09792262315750122, 0.2951027750968933, 0.21389628946781158, 0.17957141995429993, 0.7569900155067444,...
func (*ClusterNodeServiceStepResponse) XXX_OneofWrappers() []interface{} { return []interface{}{ (*ClusterNodeServiceStepResponse_TranorderRes)(nil), } }
[ -0.7503472566604614, 0.5027970671653748, 0.34401658177375793, -0.9177517890930176, 0.5316603183746338, -0.8736085891723633, -0.1537339985370636, -0.43451106548309326, 1.284301996231079, 0.13448365032672882, 0.11643071472644806, -0.4637340307235718, -0.2978683412075043, 0.21866826713085175,...
func (*File) Descriptor() ([]byte, []int) { return file_determined_util_v1_util_proto_rawDescGZIP(), []int{0} }
[ -0.6255636215209961, 0.5451570749282837, 0.4966941773891449, 0.23981724679470062, -0.07732786238193512, 0.12274312973022461, 0.3676397204399109, 0.6280906200408936, -0.6521323919296265, -1.088493824005127, -0.44422638416290283, -0.41096076369285583, 0.5950250029563904, 1.2438597679138184, ...
func AESEncrypt(message, AESKey []byte) ([]byte, error) { block, err := aes.NewCipher(AESKey) if err != nil { return nil, err } // The IV needs to be unique, but not secure. Therefore it's common to // include it at the beginning of the ciphertext. ciphertext := make([]byte, aes.BlockSize+len(message)) iv := ...
[ -0.20831768214702606, 0.6199311017990112, 0.3246660530567169, -0.19916126132011414, -0.19741053879261017, -0.923865020275116, -0.21931888163089752, -0.5112738609313965, 0.5075970888137817, 0.9718011021614075, -0.2858924865722656, 0.19456428289413452, -0.9701694846153259, -0.163689538836479...
func AESDecrypt(ciphertext, AESKey []byte) ([]byte, error) { block, err := aes.NewCipher(AESKey) if err != nil { return nil, err } // The IV needs to be unique, but not secure. Therefore it's common to // include it at the beginning of the ciphertext. if len(ciphertext) < aes.BlockSize { return nil, fmt.Erro...
[ 0.14426225423812866, 0.23009677231311798, 0.5318059921264648, 0.05335167050361633, -0.49915412068367004, -0.11531831324100494, -0.10760527104139328, -0.4430621266365051, 0.8894115090370178, 0.24697837233543396, -0.07335872203111649, -0.05243125557899475, -0.3032953143119812, -0.18948619067...
func NewElasticSearchClient() *elastic.Client { var err error connected := false retries := 0 // Custom retry strategy for docker-compose initialization for connected == false { // Create a new elastic client client, err = elastic.NewClient( elastic.SetURL("http://elasticsearch:9200"), elastic.SetSniff(fal...
[ -0.5053605437278748, -0.6789872646331787, 0.43059733510017395, 0.09416224807500839, -0.253874808549881, -0.040474213659763336, 0.03981158882379532, 0.1358771175146103, -0.010046465322375298, 0.2592216730117798, -0.08707205206155777, 0.30350589752197266, -0.003681170055642724, -0.5638503432...
func ExistsIndex(i string) bool { // Check if index exists exists, err := client.IndexExists(i).Do(context.TODO()) if err != nil { log.Fatal(err) } return exists }
[ -1.4983134269714355, -0.29915380477905273, 0.537756621837616, -0.08662121742963791, 0.5939637422561646, 0.7249432802200317, -0.18736732006072998, 0.5263023972511292, 0.2911792993545532, 0.4915752112865448, -0.7355877161026001, -0.12939006090164185, -0.6204674243927002, -0.4731503129005432,...
func CreateIndex(i string) { createIndex, err := client.CreateIndex(indexName). Body(indexMapping). Do(context.Background()) if err != nil { fmt.Println(err) return } if !createIndex.Acknowledged { log.Println("CreateIndex was not acknowledged. Check that timeout value is correct.") } }
[ -0.20627515017986298, 0.24779410660266876, 0.40874820947647095, 0.1777711808681488, 0.40047475695610046, 1.4775259494781494, 0.35492703318595886, 0.3124427795410156, 0.07474901527166367, 0.82786625623703, -0.33507686853408813, 0.4382787048816681, -0.7817134261131287, -0.06709730625152588, ...
func SearchContent(input string) []Page { pages := []Page{} ctx := context.Background() // Search for a page in the database using multi match query q := elastic.NewMultiMatchQuery(input, "title", "description", "body", "url"). Type("most_fields"). Fuzziness("2") result, err := client.Search(). Index(indexN...
[ -0.6225349307060242, 0.06831561774015427, 0.7269413471221924, -0.37101396918296814, 0.25114402174949646, 0.0474717803299427, -0.7839136719703674, -0.6580790877342224, 0.029097964987158775, 0.9392336010932922, 0.11546196043491364, -0.627303421497345, -0.7824509143829346, 0.3056587278842926,...
func main() { js := mewn.String("./client/build/main.js") css := mewn.String("./client/build/main.css") app := wails.CreateApp(&wails.AppConfig{ Width: 1024, Height: 768, Title: "example", JS: js, CSS: css, Colour: "#2255aa", }) app.Bind(&Counter{}) app.Run() }
[ 1.0866310596466064, -0.18462751805782318, 0.5921512246131897, 0.012551555410027504, -0.27616235613822937, 1.0085279941558838, 0.6727063059806824, 0.07096482813358307, -0.039339255541563034, 0.23825088143348694, -0.19428430497646332, 0.6143769025802612, 0.10668499022722244, 0.71661561727523...
func NewUser(db *sql.DB) *User { return &User{db: db} }
[ 0.30885210633277893, 0.1491716057062149, -0.06207427754998207, 1.0628037452697754, -0.6843220591545105, 0.3175240159034729, -0.22955182194709778, -0.7020638585090637, 0.7074273228645325, -0.5104666352272034, -0.732037365436554, 0.2887522578239441, 0.11065893620252609, 0.4334653913974762, ...
func (u *User) Create(w http.ResponseWriter, r *http.Request) { if r.Method != "POST" { log.Println("Invalid Operation") http.Error(w, "Invalid operation", http.StatusMethodNotAllowed) return } fmt.Printf(r.FormValue("url[0]")) userModel := models.NewUser() userModel.Url1 = r.FormValue("url[0]") userModel.U...
[ -0.8327829837799072, 0.9974591732025146, 1.0009281635284424, 0.9742056727409363, 0.4596557915210724, 1.1521809101104736, 0.5098174214363098, 0.06565111130475998, -0.3236980140209198, -0.28235507011413574, -0.3514235317707062, -1.0945372581481934, -0.2296838015317917, 0.8890722393989563, ...
func (b *BanyanHandler) HandleSignUp(w http.ResponseWriter, r *http.Request) { switch r.Method { case http.MethodGet: http.Error(w, http.StatusText(http.StatusMethodNotAllowed), http.StatusMethodNotAllowed) case http.MethodPost: var form auth.SignUpForm decoder := json.NewDecoder(r.Body) err := decoder.Decod...
[ -0.7233132123947144, 0.5052605271339417, 0.8970664739608765, 0.3368113934993744, 0.24820390343666077, -0.3757804334163666, 0.10533315688371658, -0.07180950790643692, -0.46866655349731445, 0.0932941660284996, -0.07089359313249588, -0.13727492094039917, -0.3188343942165375, 0.173772782087326...
func AdjustResourceLimits(c command.Runner) error { rr, err := c.RunCmd(exec.Command("/bin/bash", "-c", "cat /proc/$(pgrep kube-apiserver)/oom_adj")) if err != nil { return errors.Wrapf(err, "oom_adj check cmd %s. ", rr.Command()) } klog.Infof("apiserver oom_adj: %s", rr.Stdout.String()) // oom_adj is already a ...
[ -0.3144678473472595, -0.009249000810086727, 0.7157782316207886, -0.7691745758056641, 0.16730834543704987, 0.08042223751544952, 0.46647509932518005, -0.34227555990219116, 0.10897959768772125, -0.1740405559539795, 1.0288540124893188, 0.7478200197219849, -0.48965632915496826, 0.72057020664215...
func ExistingConfig(c command.Runner) error { args := append([]string{"ls"}, expectedRemoteArtifacts...) _, err := c.RunCmd(exec.Command("sudo", args...)) return err }
[ 0.29010209441185, -0.027798278257250786, 0.513300895690918, -0.21585820615291595, 0.6243367195129395, 1.281954050064087, 0.32893240451812744, 1.767320990562439, -0.6352843642234802, 0.16259761154651642, -0.606883704662323, 0.6726072430610657, 1.0056803226470947, 0.7714971303939819, 0.724...
func (c GSClient) Put(path gs.Path, d []byte) { c[path] = d }
[ -0.16222253441810608, 0.44408226013183594, 0.22151845693588257, -1.3838858604431152, -0.21798372268676758, 1.1181633472442627, 0.5995761156082153, -0.2246035635471344, -0.9413852691650391, -0.40388721227645874, -0.7866221070289612, 1.2725924253463745, -0.3698696196079254, -0.31817942857742...
func (c GSClient) Get(path gs.Path) []byte { return c[path] }
[ -0.06737179309129715, -0.21326106786727905, 0.3308912515640259, -0.6883119344711304, 0.25230249762535095, 0.36045607924461365, -0.36503902077674866, -1.2423474788665771, -1.211208462715149, -0.28505638241767883, -0.3732135593891144, 1.6332775354385376, -0.33338695764541626, -0.519578099250...
func GiveMemberList(pc net.PacketConn, addr net.Addr, memberList *[]MemberID) { reply, _ := json.Marshal(*memberList) pc.WriteTo(reply, addr) }
[ -0.09141064435243607, -0.7009381055831909, 0.4263768792152405, -0.6809169054031372, 0.2220163494348526, 0.4980185031890869, -0.9384911060333252, 0.019297100603580475, 0.7235172390937805, 0.8206698894500732, -1.5102161169052124, 0.7384190559387207, -1.1625348329544067, 0.6957457661628723, ...
func UDPListening(memberList *[]MemberID, msgQueue *[]GossipMessage) { pc, err := net.ListenPacket("udp", mp2util.GetLocalIP().String()+":12345") if err != nil { log.Fatal(err) } defer pc.Close() for { buf := make([]byte, 1024) n, addr, err := pc.ReadFrom(buf) if err != nil { continue } // Offer a...
[ 0.21115386486053467, -0.12882232666015625, 0.859254777431488, -0.32578805088996887, 0.37076565623283386, -0.1777818202972412, -0.11628465354442596, 0.016521841287612915, 0.005785113200545311, 0.6359413862228394, -0.30825376510620117, 0.29404065012931824, -1.1926311254501343, 0.805945813655...
func NewMemberID(localIP net.IP) *MemberID { p := new(MemberID) p.LocalIP = localIP.String() p.JoinedTime = time.Now() return p }
[ 0.5960007309913635, -1.138166904449463, 0.13183638453483582, 0.6043851971626282, -0.6585129499435425, 0.7594828009605408, -0.8049546480178833, 0.9248517751693726, 0.3416949510574341, 0.5930054783821106, -0.10639891028404236, 0.24348896741867065, -1.0867276191711426, 0.41770121455192566, ...
func (p *MemberID) Equal(comparaP *MemberID) bool { return p.LocalIP == comparaP.LocalIP && p.JoinedTime.Equal(comparaP.JoinedTime) }
[ -0.19122314453125, -0.7280625104904175, 0.21331460773944855, 0.17982028424739838, 0.2845684885978699, 1.2310817241668701, -0.8919206261634827, 0.5231824517250061, -0.6392833590507507, 0.986325204372406, -0.3835807740688324, 0.049479953944683075, -1.3821332454681396, 0.3853492736816406, -...
func JoinGroup(selfMember *MemberID, msgQueue *[]GossipMessage) *[]MemberID { // Package the message in json format. Status 1 is join type. payload, _ := json.Marshal(GossipMessage{Member: *selfMember, Status: 1, TTL: 0}) // Send it the introducer to get the memberList conn, err := net.Dial("udp", "172.22.158.188:1...
[ -0.41170039772987366, 0.049438122659921646, 0.6736100316047668, 0.07780686020851135, 0.15125447511672974, -0.17992118000984192, -0.36197400093078613, -0.19963158667087555, -0.6629785299301147, 0.6835235357284546, -0.14427420496940613, 0.5560251474380493, -1.7742568254470825, 1.292146921157...
func LeaveGroup(selfMember *MemberID, msgQueue *[]GossipMessage) { // This leave message will later be Gossiped. *msgQueue = append(*msgQueue, GossipMessage{Member: *selfMember, Status: 2, TTL: 3}) fmt.Println("Leaving now and sending messages to other members.") logMsg, _ := json.Marshal(*selfMember) mp2util.Wri...
[ 0.24032019078731537, -0.1511748880147934, 0.46824541687965393, -0.6743559837341309, -0.029386430978775024, -0.18351180851459503, -0.14787322282791138, -0.6351514458656311, -0.6150423884391785, 0.0903145894408226, -0.5142456293106079, 0.6509256958961487, -1.0191007852554321, 1.1961711645126...
func Gossip_sender(b []byte, member MemberID) error { var returnErr error // The message will be sent three times to promise followers can receive. for i := 0; i < 3; i++ { conn, err := net.Dial("udp", member.LocalIP+":12345") if err != nil { log.Fatal("Gossip sending error") } defer conn.Close() conn....
[ 0.7172658443450928, 0.43244847655296326, 0.9058747887611389, 0.021120954304933548, 0.4051303565502167, -0.529159665107727, -0.6224763989448547, -0.38226044178009033, -0.4729023873806, 0.5776587724685669, -0.42830878496170044, 0.39147886633872986, -0.8249520063400269, -0.022189132869243622,...
func Gossip(msg GossipMessage, memberList *[]MemberID, msgQueue *[]GossipMessage, selfMember *MemberID) { for i, Member := range *memberList { if (&Member).Equal(selfMember) { // Find personal positon in the list. var b []byte // Status 3 means this is just a ping message. So a simple nil will be used for eff...
[ 0.36260390281677246, -0.19782951474189758, 0.7925102114677429, 0.3370208442211151, 0.039056915789842606, -0.43212252855300903, -0.07589295506477356, -0.5481245517730713, -0.0759928971529007, 0.7642315626144409, -0.8507348299026489, 0.6870195865631104, -0.8835962414741516, 0.938767731189727...
func Pinging(memberList *[]MemberID, msgQueue *[]GossipMessage, selfMember *MemberID) { for { if len(*msgQueue) == 0 { var msg GossipMessage msg.Status = 3 Gossip(msg, memberList, msgQueue, selfMember) } else { // fmt.Println(*msgQueue) Gossip((*msgQueue)[0], memberList, msgQueue, selfMember) *ms...
[ 0.0010596970096230507, -0.005160593427717686, 0.6078432202339172, 0.45487308502197266, 0.7657809853553772, 0.39718225598335266, -0.165228933095932, 0.3993038535118103, -0.0794983059167862, 0.9976934194564819, -0.577670693397522, 0.7875290513038635, -1.532846450805664, 1.7087514400482178, ...
func ShowList(selfMember *MemberID, memberList *[]MemberID) { fmt.Println("You are:") fmt.Println(*selfMember) fmt.Println("And this is your membership list:") for _, Member := range *memberList { fmt.Println(Member) } fmt.Println() }
[ 0.0388106070458889, -0.9111694097518921, 0.6310957670211792, 0.15968742966651917, 0.06458685547113419, 0.26468902826309204, -0.5231413841247559, 0.946076512336731, -0.01703202910721302, 0.10562443733215332, -0.7680402398109436, 1.6589140892028809, -0.4383060336112976, 1.1657017469406128, ...
func byteOffset(a []byte, runes int) (offset int) { if runes == 0 { return 0 } var runeCount int for _, size := utf8.DecodeRune(a[offset:]); offset < len(a) && runeCount < runes; _, size = utf8.DecodeRune(a[offset:]) { offset += size runeCount++ } return offset }
[ 0.562812328338623, 0.45618030428886414, 0.3842569589614868, -1.2211017608642578, -0.5067099928855896, -0.6670352220535278, 0.5999354124069214, 1.3323485851287842, 0.4440476894378662, 0.5411646366119385, 0.23852913081645966, 0.5031333565711975, -0.1661689281463623, -0.07266246527433395, 0...
func (m *WTWWSWMediator) TransferWater(amount float64) { amount = m.WTW.OutputToStorage(amount) m.WSW.InputFromWTW(amount) }
[ 0.2643987834453583, -0.28960227966308594, 0.5450863838195801, 0.054974593222141266, -0.7131632566452026, 0.38786089420318604, 0.9720517992973328, -0.939569354057312, 0.15199622511863708, 0.10984887927770615, 0.8331828117370605, 0.5871281027793884, -0.1933092474937439, 1.879529356956482, ...
func (*Client) Timeouts() uint64 { timeouts.Write(m) return uint64(*m.Counter.Value) }
[ -0.5242705941200256, 0.9772491455078125, 0.2975863218307495, -0.27082598209381104, -0.0813174694776535, -0.6352953314781189, 0.5974265933036804, -0.34313875436782837, -0.09181004017591476, 0.006944277789443731, 0.062029823660850525, -0.8844308257102966, -0.872927188873291, 0.06068247929215...
func (*Client) RequestSum() uint64 { requestSum.Write(m) return uint64(*m.Counter.Value) }
[ -1.4956045150756836, 0.24122081696987152, 0.487194299697876, 0.9068377614021301, 0.08723396807909012, -0.43915441632270813, 0.5887107253074646, -1.026613712310791, 0.5641700625419617, -1.4654765129089355, -0.013374251313507557, 0.6683671474456787, -1.075425386428833, -0.057972073554992676,...
func (*Client) RequestSuccess() uint64 { requestSuccess.Write(m) return uint64(*m.Counter.Value) }
[ -1.1588393449783325, 0.7780637145042419, 0.47798141837120056, 0.6029719710350037, -0.02033207006752491, -0.47876498103141785, 0.130334734916687, -0.30143699049949646, -0.5728897452354431, -0.886868953704834, -0.477039635181427, 0.15605255961418152, -0.47768357396125793, -0.3352301716804504...
func (*Client) BytesWritten() uint64 { bytesWritten.Write(m) return uint64(*m.Counter.Value) }
[ 0.03289194405078888, -0.2326674461364746, 0.28015822172164917, -0.18946295976638794, 1.0601025819778442, -0.6684139966964722, 0.20847435295581818, -0.27253761887550354, -0.6438394784927368, -0.5675314664840698, -0.9873228669166565, 0.3059983551502228, -0.13545158505439758, 0.30652827024459...
func (*Client) BytesRead() uint64 { bytesRead.Write(m) return uint64(*m.Counter.Value) }
[ 0.7069332003593445, 0.14901231229305267, 0.2841707766056061, -0.7152813076972961, 0.29969391226768494, 0.28148773312568665, 0.20342594385147095, -0.4356057345867157, -0.5282652378082275, -1.1842448711395264, 0.15972211956977844, 0.9386739730834961, -0.8528578877449036, -0.23091289401054382...
func (*Client) ConnOpen() uint64 { connOpen.Write(m) return uint64(*m.Gauge.Value) }
[ -0.9401301145553589, 0.5179527401924133, 0.3267434537410736, 0.06276914477348328, -1.1773951053619385, -0.3419022560119629, 0.6400753259658813, 0.838618278503418, -1.431968331336975, 0.24794922769069672, -0.18112342059612274, -0.7560341954231262, -0.7975258231163025, -0.2686760127544403, ...
func (*Client) RequestDuration() map[float64]float64 { requestDuration.Write(m) result := make(map[float64]float64, len(m.Summary.Quantile)) for _, v := range m.Summary.Quantile { result[*v.Quantile] = *v.Value } return result }
[ -1.4919729232788086, 0.20399892330169678, 0.37928253412246704, -0.12928235530853271, -0.6211904287338257, -0.3648010194301605, 0.08945584297180176, -0.7998420000076294, -0.06250904500484467, 0.010535340756177902, -0.0815395638346672, 0.1976054608821869, -0.4647464454174042, 0.0778029784560...
func (c *Client) StatusCodes() map[string]float64 { result := make(map[string]float64) total := float64(c.RequestSum()) for _, label := range c.statusCodeLabels { statusCodes.With(label).Write(m) result[m.GetLabel()[0].GetValue()] = (*m.Counter.Value / total) * 100 } return result }
[ -0.6346418261528015, -0.394090473651886, 0.41231635212898254, -0.1447320431470871, -0.7080942392349243, 0.06502953171730042, -0.2256654053926468, 0.2766129672527313, -0.22417865693569183, 0.007262736558914185, -0.3994307518005371, -0.6327372193336487, -0.3278394043445587, 0.276713788509368...
func NewTensor(value interface{}) (Tensor, error) { t, err := tf.NewTensor(value) return &tensorflow{t: t}, err }
[ 0.06639298796653748, 0.4010944366455078, 0.02440350316464901, -0.17423951625823975, -0.7835144400596619, -0.8640519976615906, -0.09782692044973373, -0.7843320965766907, 0.2886848449707031, -0.17189382016658783, -0.37686529755592346, -0.34322693943977356, -0.06426878273487091, -0.5453835725...
func (t *tensorflow) Tensor() *tf.Tensor { return t.t }
[ -0.7130596041679382, -0.0722586140036583, -0.10918125510215759, -0.003409529337659478, 0.3207390606403351, 0.1166665181517601, 1.4412389993667603, 0.3500950038433075, -0.5370572209358215, -0.6778908967971802, -0.6712812781333923, 0.12913860380649567, 0.21166880428791046, -0.910765409469604...
func (t *tensorflow) Value() interface{} { return t.t.Value() }
[ -0.464268296957016, -0.1386156678199768, 0.2790217399597168, 0.17517173290252686, 0.6966396570205688, 0.6051543951034546, 0.6599081754684448, -0.7336434125900269, -0.4808197021484375, 0.4061889052391052, -0.14486321806907654, 0.13093426823616028, 0.14773140847682953, -0.021345656365156174,...
func CreateResourceProvider(directory string) (*ResourceProvider, error) { if directory != "" { return CreateResourceProviderFromPath(directory) } return CreateResourceProviderFromCluster() }
[ -0.39248791337013245, 0.18530093133449554, 0.04153156653046608, 0.24790385365486145, -0.010721513070166111, 0.4977908730506897, 0.361706018447876, -0.7010599970817566, 0.807428777217865, 0.9089286923408508, 0.06343290954828262, -0.3404567837715149, -0.8111644387245178, 0.675171971321106, ...
func CreateResourceProviderFromPath(directory string) (*ResourceProvider, error) { resources := ResourceProvider{ ServerVersion: "unknown", Nodes: []corev1.Node{}, Deployments: []appsv1.Deployment{}, Namespaces: []corev1.Namespace{}, Pods: []corev1.Pod{}, } addYaml := func(contents s...
[ 0.04440869390964508, -0.3192744255065918, 0.7148582935333252, -0.27487051486968994, -0.6507749557495117, -0.13584038615226746, 0.16983985900878906, -0.43363937735557556, 0.32305091619491577, 0.5841271281242371, 0.24063773453235626, 0.5926982760429382, -0.03731411695480347, -0.2807474434375...
func CreateResourceProviderFromCluster() (*ResourceProvider, error) { kubeConf := config.GetConfigOrDie() api, err := kubernetes.NewForConfig(kubeConf) if err != nil { logrus.Errorf("Error creating Kubernetes client %v", err) return nil, err } return CreateResourceProviderFromAPI(api) }
[ 0.6563711762428284, -0.5487908124923706, -0.28009021282196045, 0.031847819685935974, -0.8208568096160889, 0.7581999897956848, -0.8785214424133301, -0.6920509338378906, 0.13760125637054443, 0.7573872804641724, 0.09100861847400665, -0.11990898102521896, -0.9398158192634583, 0.361831158399581...
func CreateResourceProviderFromAPI(kube kubernetes.Interface) (*ResourceProvider, error) { listOpts := metav1.ListOptions{} serverVersion, err := kube.Discovery().ServerVersion() if err != nil { logrus.Errorf("Error fetching Kubernetes API version %v", err) return nil, err } deploys, err := kube.AppsV1().Deplo...
[ -0.1856631636619568, -0.7309282422065735, 0.32325291633605957, -0.4144212603569031, -0.6799836754798889, 0.6159164905548096, -0.49315568804740906, -1.14081609249115, 0.5868039131164551, 1.0932728052139282, 0.3374227285385132, -0.27187812328338623, -0.7087634801864624, 0.33494654297828674, ...
func ScalarDivision(m Multivector, d string) Multivector { m.E0.SetString(m.E0.Num().String() + "/" + d) m.E1.SetString(m.E1.Num().String() + "/" + d) m.E2.SetString(m.E2.Num().String() + "/" + d) m.E3.SetString(m.E3.Num().String() + "/" + d) m.E12.SetString(m.E12.Num().String() + "/" + d) m.E13.SetString(m.E13.N...
[ 0.47752442955970764, -0.7602750062942505, 0.862379789352417, -1.097615122795105, -0.28335320949554443, 0.3458420932292938, 0.046681132167577744, 0.9723498821258545, 0.1001155897974968, -0.2265348732471466, 0.5853376984596252, 0.3487052917480469, 0.5497117042541504, 0.6412361860275269, 0....
func (c *Client) SearchFaces(ctx context.Context, params *SearchFacesInput, optFns ...func(*Options)) (*SearchFacesOutput, error) { if params == nil { params = &SearchFacesInput{} } result, metadata, err := c.invokeOperation(ctx, "SearchFaces", params, optFns, c.addOperationSearchFacesMiddlewares) if err != nil ...
[ -1.5380395650863647, 1.133309006690979, 0.7936208844184875, 0.7230819463729858, 0.23888805508613586, -0.9077379107475281, 0.5354816913604736, -1.922672152519226, 0.4161090850830078, -0.07587286084890366, -0.5135642886161804, 1.0243526697158813, -0.7235339283943176, -0.37224113941192627, ...
func DeltaMPC(y []*big.Int, z *big.Int, id, m int, EC CryptoParams) *big.Int { result := big.NewInt(0) // (z-z^2)<1^n, y^n> z2 := new(big.Int).Mod(new(big.Int).Mul(z, z), EC.N) t1 := new(big.Int).Mod(new(big.Int).Sub(z, z2), EC.N) t2 := new(big.Int).Mod(new(big.Int).Mul(t1, VectorSum(y, EC)), EC.N) // z...
[ 0.3652458190917969, -0.6442813873291016, 0.8244718313217163, -0.874824047088623, -0.5067268013954163, 0.17240943014621735, 1.0577932596206665, 0.020308099687099457, 0.09995563328266144, 0.20244286954402924, -0.3748946189880371, -0.43717604875564575, -1.009919285774231, -0.17920152842998505...
func Login() { fmt.Println("--------") fmt.Println("Log In") fmt.Println("--------") fmt.Printf("Enter your email address: ") fmt.Scanln(&pd.email) fmt.Printf("Enter your password: ") fmt.Scanln(&pd.password) /* Finding login info in database */ database.Findaccount(pd.email, pd.password) }
[ -0.04255007207393646, -0.37280404567718506, 0.9297563433647156, 0.14317306876182556, 0.2752743661403656, 0.7498461008071899, 0.6254235506057739, 0.20240305364131927, -0.9225708246231079, -0.6345266699790955, -0.08373656123876572, 0.583029568195343, -0.018191862851381302, -0.474912405014038...
func (e *Upper) Process() { for val := range e.Val { e.Res <- strings.ToUpper(val) } }
[ -0.5923861265182495, -0.15812481939792633, 0.5390526056289673, -0.45540061593055725, 0.7233133912086487, 0.2720859944820404, 0.08244636654853821, 0.1731308549642563, 0.12864592671394348, 0.38542893528938293, 0.06501488387584686, -0.07336614280939102, -0.07823317497968674, 0.779938459396362...
func (p *Printer) Process() { for line := range p.Line { fmt.Println(line) } }
[ 0.5152549147605896, -1.171423316001892, 0.4864901304244995, -0.4432964026927948, 0.6580885052680969, 0.21903418004512787, -0.7329962849617004, -0.03869543969631195, 0.04435930401086807, -0.3857543468475342, 0.7933704257011414, 0.7283682227134705, -0.1748681366443634, 1.0462749004364014, ...
func spawnHosts(ctx context.Context, d distro.Distro, newHostsNeeded int, pool *evergreen.ContainerPool) ([]host.Host, error) { startTime := time.Now() if newHostsNeeded == 0 { return []host.Host{}, nil } // loop over the distros, spawning up the appropriate number of hosts // for each distro hostsSpawned :...
[ -0.6180686950683594, 0.19260293245315552, 0.8910546898841858, 0.49911630153656006, -0.184378519654274, 0.5783277750015259, 0.5444098711013794, -0.25542381405830383, -0.6258156299591064, 0.39591184258461, 0.27032458782196045, 0.3317483067512512, 0.024435019120573997, 0.982067346572876, 0....
func generateContainerHostIntents(d distro.Distro, newContainersNeeded int) ([]host.Host, error) { parents, err := getNumContainersOnParents(d) if err != nil { err = errors.Wrap(err, "Could not find number of containers on each parent") return nil, err } containerHostIntents := make([]host.Host, 0) for _, pare...
[ -0.8664472103118896, -0.13709507882595062, 0.7594814896583557, 0.30503150820732117, 0.04222891479730606, 0.3609829545021057, 0.11113680154085159, -0.6810771226882935, -0.6549447774887085, 0.13337522745132446, -0.40812772512435913, -0.37430131435394287, -0.23043619096279144, 0.3507277667522...
func generateParentHostOptions(pool *evergreen.ContainerPool) cloud.HostOptions { return cloud.HostOptions{ HasContainers: true, UserName: evergreen.User, ContainerPoolSettings: pool, } }
[ 0.39585673809051514, 0.2809492349624634, 0.36896607279777527, 0.29898786544799805, 0.0561322346329689, 1.0508918762207031, 0.3710310459136963, -0.7447724938392639, -0.39919254183769226, -0.30827808380126953, -1.1365824937820435, -0.2747684121131897, -0.04708531126379967, 0.4322386085987091...
func getNumContainersOnParents(d distro.Distro) ([]containersOnParents, error) { allParents, err := host.FindAllRunningParentsByContainerPool(d.ContainerPool) if err != nil { return nil, errors.Wrap(err, "Could not find running parent hosts") } numContainersOnParents := make([]containersOnParents, 0) // parents...
[ -0.7734866738319397, 0.06644953042268753, 0.8180320858955383, 0.09444008767604828, -0.428984671831131, -0.4558442533016205, 0.6294913291931152, -0.6593381762504578, -0.5186328887939453, -0.19327090680599213, -0.6490475535392761, -0.2825104892253876, -0.054939448833465576, 1.265492677688598...
func numNewParentsNeeded(params newParentsNeededParams) int { if params.numUphostParents*params.maxContainers < params.numExistingContainers+params.numContainersNeeded { numTotalNewParents := int(math.Ceil(float64(params.numContainersNeeded) / float64(params.maxContainers))) if numTotalNewParents < 0 { return 0...
[ -0.8903562426567078, -0.015226896852254868, 0.8039783239364624, -0.4221549332141876, -0.08347468823194504, 0.17287304997444153, 0.4051934778690338, -0.8716878294944763, -0.1940149962902069, -0.3458081781864166, -0.31376391649246216, 0.1064455583691597, -0.05096719041466713, 1.2582112550735...
func parentCapacity(parent distro.Distro, numNewParents, numCurrentParents int, pool *evergreen.ContainerPool) (int, error) { if parent.Provider == evergreen.ProviderNameStatic { return 0, nil } // if there are already maximum numbers of parents running, do not spawn // any more parents if numCurrentParents >= p...
[ -0.7402910590171814, 0.2515954077243805, 0.9180957674980164, 0.25925472378730774, -0.475208044052124, 0.010480517521500587, 1.1331071853637695, -1.081681728363037, -0.23862901329994202, 0.25125476717948914, 0.14937691390514374, -0.022389475256204605, -0.13144353032112122, 0.700558543205261...
func containerCapacity(numCurrentParents, numCurrentContainers, numContainersToSpawn, maxContainers int) int { if numContainersToSpawn < 0 { return 0 } numAvailableContainers := numCurrentParents*maxContainers - numCurrentContainers if numContainersToSpawn > numAvailableContainers { return numAvailableContainer...
[ -0.8182581067085266, -0.27068203687667847, 0.9011971354484558, 0.46872833371162415, -0.17288631200790405, -0.6893163323402405, 1.0318186283111572, -0.08674123883247375, 0.6176965832710266, 0.35300442576408386, -0.2096930295228958, 0.0689663216471672, 0.4757835865020752, 0.3046188950538635,...
func createParents(parent distro.Distro, numNewParents int, pool *evergreen.ContainerPool) []host.Host { hostsSpawned := make([]host.Host, numNewParents) for idx := range hostsSpawned { hostsSpawned[idx] = *cloud.NewIntent(parent, parent.GenerateName(), parent.Provider, generateParentHostOptions(pool)) } return...
[ -0.5566990971565247, 0.11332467943429947, 0.3640143573284149, 0.04526420310139656, 0.841111421585083, 0.6609146595001221, 0.5769743323326111, -1.1027367115020752, -0.15187862515449524, 0.04208432883024216, -0.16454339027404785, 0.012227294035255909, -0.6207302212715149, 0.34287115931510925...
func generateIntentHost(d distro.Distro) (*host.Host, error) { hostOptions := cloud.HostOptions{ UserName: evergreen.User, } return cloud.NewIntent(d, d.GenerateName(), d.Provider, hostOptions), nil }
[ -0.2621120810508728, 0.4344461262226105, 0.3766765296459198, 0.10199247300624847, -0.10643091797828674, 1.356541633605957, 0.47578293085098267, 0.010586662217974663, 0.24286189675331116, -0.03452973812818527, -0.5587806105613708, 0.7947418093681335, -0.34940028190612793, -0.622106432914733...
func underwaterUnschedule(distroID string) error { if underwaterPruningEnabled { num, err := task.UnscheduleStaleUnderwaterTasks(distroID) if err != nil { return errors.WithStack(err) } grip.InfoWhen(num > 0, message.Fields{ "message": "unscheduled stale tasks", "runner": RunnerName, "count": n...
[ -1.0510460138320923, 0.2094646543264389, 0.5018208622932434, -0.5507783889770508, -0.34598448872566223, 0.49748483300209045, 0.9171622395515442, 1.245784044265747, -0.7854629158973694, 0.5339116454124451, -0.2169153392314911, 1.0813653469085693, 0.15649400651454926, 0.5298872590065002, -...
func (*Basic) Descriptor() ([]byte, []int) { return file_tests_message_message_conformance_proto_rawDescGZIP(), []int{0} }
[ -0.3812377154827118, 0.41459739208221436, 0.517494797706604, -0.05933048576116562, 0.15719236433506012, 0.032840095460414886, -0.5738527774810791, -0.1177217960357666, -1.2338030338287354, -0.4663899540901184, -0.5295655131340027, 0.15615998208522797, -0.36838164925575256, 1.06565320491790...
func (*Union) Descriptor() ([]byte, []int) { return file_tests_message_message_conformance_proto_rawDescGZIP(), []int{1} }
[ -0.5822597742080688, 0.2304667979478836, 0.33225491642951965, -0.23503932356834412, 0.3159748315811157, -0.11959217488765717, 0.4860357642173767, 0.5838160514831543, 0.16817176342010498, -0.4963034391403198, -0.3474165201187134, 0.42585042119026184, -0.6681532859802246, 1.1678491830825806,...
func (*Outer) Descriptor() ([]byte, []int) { return file_tests_message_message_conformance_proto_rawDescGZIP(), []int{2} }
[ -1.2550381422042847, 0.4544232189655304, 0.5221933126449585, -0.6293747425079346, -0.6112422943115234, 0.3953830301761627, 0.021856579929590225, 0.740423321723938, -0.7198032736778259, -0.8384959101676941, -0.25715866684913635, 0.6007075905799866, -0.3678942024707794, 1.4176762104034424, ...
func (*Outer_Middle) Descriptor() ([]byte, []int) { return file_tests_message_message_conformance_proto_rawDescGZIP(), []int{2, 0} }
[ -0.7553711533546448, -0.02146725170314312, 0.1893201321363449, -0.4078075587749481, -0.2409161925315857, 0.36425283551216125, -0.514396607875824, -0.332124263048172, -0.35759437084198, -0.08357874304056168, 0.08420322835445404, 0.6482058167457581, -1.0565284490585327, 0.5373871922492981, ...
func (*Outer_Middle_Inner) Descriptor() ([]byte, []int) { return file_tests_message_message_conformance_proto_rawDescGZIP(), []int{2, 0, 0} }
[ -0.9016784429550171, -0.31070229411125183, 0.3912067115306854, -0.9049010276794434, -0.3294845223426819, 0.36565154790878296, -0.5127066969871521, -0.1268935650587082, -0.9065312743186951, -0.28603479266166687, -0.016509395092725754, 0.4779982566833496, -1.2149964570999146, 0.3216078281402...
func Create(c *gin.Context) { var ( p environment ) if err := c.ShouldBind(&p); err != nil { c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()}) return } result, err := p.create() if err != nil { log.Error().Err(err).Msg("Error occured while performing db query") c.JSON(http.StatusInternalServer...
[ -0.5166463851928711, 0.5053343176841736, 0.5934270024299622, 0.8897121548652649, 0.06059771403670311, 1.1832700967788696, -0.42147937417030334, -0.5560950040817261, -0.5196894407272339, 0.7917734384536743, 0.7678821682929993, -0.49775004386901855, -0.8207376003265381, 1.3404262065887451, ...
func Update(c *gin.Context) { var ( p updateEnvironment ) if err := c.ShouldBind(&p); err != nil { c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()}) return } err := p.update() if err != nil { log.Error().Err(err).Msg("Error occured while performing db query") c.JSON(http.StatusInternalServerEr...
[ -1.0054078102111816, -0.7467166781425476, 0.6652312874794006, 0.3872373104095459, -0.25668492913246155, 0.8267708420753479, 0.21604660153388977, -0.11143333464860916, -0.2734147012233734, 1.1747500896453857, 0.686453104019165, 0.20435193181037903, -0.9743317365646362, 0.5231281518936157, ...
func List(c *gin.Context) { var ( p listEnvironments ) if err := c.ShouldBind(&p); err != nil { c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()}) return } p.StartLimit, p.EndLimit = tools.GetPagination(p.Page, 0, commons.GetRangeLimit(), commons.GetRangeLimit()) result, err := p.list() if err != ...
[ -0.4448477029800415, -0.840225875377655, 0.8343092203140259, 0.2122582495212555, 0.39918142557144165, -0.12607795000076294, -0.31584224104881287, -0.01597605273127556, 0.1847917139530182, 1.2111133337020874, 0.31025826930999756, 0.1410718411207199, -0.2972662150859833, 1.0728378295898438, ...
func Read(c *gin.Context) { var ( p getEnvironments ) id := c.Params.ByName("environmentId") if id == "" { c.JSON(http.StatusBadRequest, gin.H{"error": "annotationId is missing in uri"}) return } vID, err := strconv.Atoi(id) if err != nil { log.Error().Err(err).Msg("Error occured while converting string ...
[ -0.9434455633163452, -0.3895021677017212, 1.0608779191970825, 0.3349103629589081, -0.36691713333129883, 0.19157633185386658, 0.03764859586954117, -0.7099051475524902, 0.10677158087491989, 0.9488677978515625, 1.028207778930664, 0.5863250494003296, -0.7825711369514465, 0.699985146522522, 0...
func Delete(c *gin.Context) { var ( p deleteEnvironment ) id := c.Params.ByName("environmentId") if id == "" { c.JSON(http.StatusBadRequest, gin.H{"error": "environmentId is missing in uri"}) return } vID, err := strconv.Atoi(id) if err != nil { log.Error().Err(err).Msg("Error occured while converting st...
[ -0.7696895599365234, -0.6072834134101868, 0.982939600944519, 0.780674159526825, 0.1095992922782898, 0.07571222633123398, 0.5274457931518555, -0.16164688766002655, 0.6141339540481567, 1.2377405166625977, 0.44223758578300476, 0.5434848666191101, -0.7461249828338623, 0.8514557480812073, -0....
func Search(c *gin.Context) { var ( p searchEnvironments ) if err := c.ShouldBind(&p); err != nil { c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()}) return } p.StartLimit, p.EndLimit = tools.GetPagination(p.Page, 0, commons.GetRangeLimit(), commons.GetRangeLimit()) result, err := p.search() if e...
[ -1.3786237239837646, 0.3317399322986603, 0.9125669002532959, 0.6076183915138245, 0.20958107709884644, 0.2027451992034912, 0.0695706456899643, -0.2678999602794647, -0.3140759766101837, 0.8097392916679382, 0.7753437757492065, -0.19918876886367798, -1.028946042060852, 0.7522413730621338, -0...
func ListByProjectID(c *gin.Context) { var ( p listEnvironmentsByProjectID ) id := c.Params.ByName("projectId") if id == "" { c.JSON(http.StatusBadRequest, gin.H{"error": "projectId is missing in uri"}) return } vID, err := strconv.Atoi(id) if err != nil { log.Error().Err(err).Msg("Error occured while co...
[ -0.20502465963363647, -0.6931102275848389, 0.6079069375991821, 0.16521111130714417, -0.3430652320384979, 0.4910371005535126, 0.2509605288505554, -0.6447281837463379, 0.6047537326812744, 1.721977710723877, 0.0020934909116476774, 0.6406863331794739, -0.5893847346305847, 1.4974154233932495, ...
func (fn GetReadyHandlerFunc) Handle(params GetReadyParams) middleware.Responder { return fn(params) }
[ -0.007206768728792667, -0.1662573516368866, 0.4032687246799469, 0.04739305377006531, 0.3571963906288147, -0.2546006143093109, 0.6833091974258423, 0.2990672290325165, 0.3784608542919159, -0.9397533535957336, -0.19788101315498352, 0.16910207271575928, -0.12524773180484772, -0.229398861527442...
func NewGetReady(ctx *middleware.Context, handler GetReadyHandler) *GetReady { return &GetReady{Context: ctx, Handler: handler} }
[ 0.11465823650360107, 0.024046529084444046, 0.22212786972522736, 0.20714151859283447, -0.6704079508781433, -0.521384596824646, -1.1129416227340698, -0.23073314130306244, -0.034204915165901184, -0.24714171886444092, -0.9610421657562256, 1.3647000789642334, 0.0649152547121048, 0.2939608693122...
func (c *service) Client() *ssh.Client { return c.client }
[ 0.6908667087554932, -0.22336214780807495, 0.21188132464885712, -0.19115395843982697, -0.8426557183265686, 0.8817641139030457, 0.205342099070549, -0.030643360689282417, -0.259160578250885, -1.4492391347885132, -0.37756019830703735, 1.411059856414795, 0.24501384794712067, -0.4258670806884765...
func (c *service) NewSession() (*ssh.Session, error) { return c.client.NewSession() }
[ 0.08676359802484512, -0.05029945448040962, 0.2525855600833893, -0.10782769322395325, -0.7202966213226318, -0.1268133968114853, -0.45653584599494934, -1.0520961284637451, 0.09553598612546921, -0.5141763687133789, -0.7822725176811218, 1.292856216430664, -0.509467601776123, 0.1252696365118026...
func (c *service) OpenMultiCommandSession(config *SessionConfig) (MultiCommandSession, error) { return newMultiCommandSession(c, config, c.replayCommands, c.recordSession) }
[ -0.6189240217208862, -0.5642120242118835, 0.5568150281906128, -0.10993044823408127, -0.6418364644050598, -0.48347336053848267, 0.6658922433853149, 0.0755111426115036, 1.5153778791427612, -0.30740711092948914, -0.6550060510635376, 0.46208512783050537, -0.22731375694274902, 0.254846841096878...
func (c *service) Upload(destination string, mode os.FileMode, content []byte) (err error) { err = c.upload(destination, mode, content) if err != nil { if strings.Contains(err.Error(), "No such file or directory") { dir, _ := path.Split(destination) c.Run("mkdir -p " + dir) return c.upload(destination, mo...
[ -0.7817099690437317, 0.5960369110107422, 0.760519802570343, 0.3805026113986969, -0.23326677083969116, 0.06182277202606201, -0.10377869755029678, -0.25888025760650635, -0.54771888256073, 0.3745913505554199, 0.8306787014007568, -0.9496197700500488, -1.0365090370178223, -0.3643382787704468, ...
func (c *service) upload(destination string, mode os.FileMode, content []byte) (err error) { dir, file := path.Split(destination) if mode == 0 { mode = 0644 } waitGroup := &sync.WaitGroup{} waitGroup.Add(1) if strings.HasPrefix(file, "/") { file = string(file[1:]) } session, err := c.getSession() if err !=...
[ 0.02426334097981453, 0.23653541505336761, 1.168151617050171, 0.2922630310058594, -0.4423445761203766, 0.28398770093917847, 0.5493683815002441, -0.7866654396057129, -0.7785093188285828, 0.6272545456886292, 0.19384193420410156, -0.31869974732398987, -0.33350449800491333, -0.8093748092651367,...
func (c *service) Download(source string) ([]byte, error) { session, err := c.client.NewSession() if err != nil { return nil, err } defer session.Close() return session.Output(fmt.Sprintf("cat %s", source)) }
[ -0.3066158890724182, 0.5965307950973511, 0.39605191349983215, -0.2996920049190521, -1.335192084312439, -0.7117907404899597, -0.2830711305141449, -0.8414885997772217, 0.10592441260814667, -0.5102127194404602, -0.6972589492797852, 0.5575385689735413, -0.5572777986526489, -0.07526271790266037...
func (c *service) Host() string { return c.host }
[ 0.5397005677223206, -0.7698525190353394, 0.2486792504787445, 0.32387250661849976, -0.6461653113365173, 1.0682162046432495, -0.12935984134674072, 0.3606490194797516, -0.5774338245391846, -0.2519645094871521, 0.31229913234710693, 0.03698471561074257, -0.3216339647769928, -0.5058644413948059,...
func (c *service) OpenTunnel(localAddress, remoteAddress string) error { local, err := net.Listen("tcp", localAddress) if err != nil { return errors.Wrap(err, fmt.Sprintf("failed to listen on local: %v", localAddress)) } var forwarding = NewForwarding(c.client, remoteAddress, local) if len(c.forwarding) == 0 { ...
[ 0.2044493407011032, 0.6156426668167114, 0.4130658805370331, -1.6829057931900024, -0.014998877421021461, 0.12603814899921417, 0.14150358736515045, 0.9466145634651184, 0.25785213708877563, -0.4092603921890259, -0.36705005168914795, 1.3625507354736328, 0.433315247297287, -0.12169242650270462,...
func NewService(host string, port int, authConfig *cred.Config) (Service, error) { if authConfig == nil { authConfig = &cred.Config{} } clientConfig, err := authConfig.ClientConfig() if err != nil { return nil, err } var result = &service{ host: fmt.Sprintf("%s:%d", host, port), config: clientConfig, }...
[ -0.05452977493405342, -0.2830989956855774, 0.3597243130207062, 0.12805843353271484, -0.6380366683006287, 0.27800610661506653, 0.02292514406144619, -0.20082245767116547, -0.3134179413318634, 0.24737313389778137, -0.36438384652137756, 1.004781723022461, -0.6107088327407837, 0.394127458333969...
func (format *FieldFormat) DecodeMsgpack(d *msgpack.Decoder) error { l, err := d.DecodeMapLen() if err != nil { return err } for i := 0; i < l; i++ { key, err := d.DecodeString() if err != nil { return err } switch key { case "name": if format.Name, err = d.DecodeString(); err != nil { return ...
[ -0.5522834658622742, 0.18275947868824005, 0.8273022770881653, -0.29135820269584656, -0.3600670099258423, -0.7662720680236816, -0.29832741618156433, -0.3619024157524109, -0.2167498618364334, -0.8613388538360596, -0.5319647192955017, -0.6448962092399597, -0.09825752675533295, 0.8511242270469...
func MakeResult(rowType reflect.Type) Result { return Result{ rowType: rowType, } }
[ -0.603787899017334, 1.1313848495483398, 0.07780306041240692, -0.16503725945949554, -0.46304792165756226, -0.17257821559906006, 0.1415049284696579, -1.0739623308181763, 0.6113272905349731, -0.155288428068161, -0.4712132215499878, -0.16854055225849152, 0.05894339457154274, -0.490082532167434...
func (r *Result) DecodeMsgpack(d *msgpack.Decoder) error { arrLen, err := d.DecodeArrayLen() if err != nil { return err } if arrLen < 2 { return fmt.Errorf("array len doesn't match: %d", arrLen) } l, err := d.DecodeMapLen() if err != nil { return err } for i := 0; i < l; i++ { key, err := d.DecodeSt...
[ -0.5498855113983154, 0.6542551517486572, 1.1405978202819824, -0.12239048629999161, -0.34733644127845764, -1.041218876838684, 0.27629879117012024, -0.3738413155078888, 0.309348464012146, -0.4928746521472931, -0.16966278851032257, -0.005283892620354891, -0.14794735610485077, 1.10314917564392...
func (r *NumberResult) DecodeMsgpack(d *msgpack.Decoder) error { arrLen, err := d.DecodeArrayLen() if err != nil { return err } if arrLen < 2 { return fmt.Errorf("array len doesn't match: %d", arrLen) } if r.Value, err = d.DecodeUint64(); err != nil { return err } var crudErr *Error = nil if err := d...
[ -0.38555771112442017, 0.7559604048728943, 0.757631242275238, -0.007676896173506975, -0.5295395851135254, -0.6580927968025208, 0.9068849086761475, -0.3180310130119324, 0.5577044486999512, -1.1663511991500854, -0.322975754737854, -0.7221241593360901, -0.5743670463562012, 0.8525214195251465, ...
func (r *BoolResult) DecodeMsgpack(d *msgpack.Decoder) error { arrLen, err := d.DecodeArrayLen() if err != nil { return err } if arrLen < 2 { if r.Value, err = d.DecodeBool(); err != nil { return err } return nil } if _, err = d.DecodeInterface(); err != nil { return err } var crudErr *Error = n...
[ -0.12438736110925674, 0.899700939655304, 0.7404019236564636, -0.2295999675989151, -0.5249277353286743, -0.6053954362869263, 0.5205690860748291, -0.38647496700286865, 0.3083857595920563, -0.6446071267127991, -0.1592041552066803, -0.5862809419631958, -0.8195036053657532, 0.7576963901519775, ...
func KustomizeAndApply(namespace, dir string, useOverlay bool) { path, err := os.Getwd() Expect(err).ToNot(HaveOccurred()) kustomizeDir := path + "/../config/" + dir if useOverlay { if overlay, found := os.LookupEnv("TEST_OVERLAY"); found { kustomizeDir = filepath.Clean(kustomizeDir + "/overlays/forks/" + ov...
[ -0.006852715276181698, -0.05501008778810501, 0.9537000060081482, 0.4402683675289154, 0.3669297397136688, 0.07079051434993744, -0.11488904803991318, -0.44332271814346313, 1.1970398426055908, -0.14376921951770782, -0.0337737500667572, 0.5972524285316467, -0.0010719610145315528, 0.41301780939...
func WaitForDeploymentReady(key types.NamespacedName, readyReplicas int32, retryInterval, timeout time.Duration) error { return wait.Poll(retryInterval, timeout, func() (bool, error) { deployment := &appsv1.Deployment{} err := Client.Get(context.Background(), key, deployment) if err != nil { if apierrors.IsNo...
[ -0.8056514263153076, 0.18061137199401855, 0.23455321788787842, -0.7876255512237549, -0.3023378849029541, 0.09179865568876266, -0.8362717032432556, -0.42885035276412964, 0.2629619836807251, 1.0728167295455933, -0.27824172377586365, 0.5616338849067688, 0.45553529262542725, 0.4881933033466339...
func WaitForCassOperatorReady(namespace string) error { key := types.NamespacedName{Namespace: namespace, Name: "cass-operator"} return WaitForDeploymentReady(key, 1, OperatorRetryInterval, OperatorTimeout) }
[ -0.660739004611969, 0.37899982929229736, 0.23599231243133545, -0.6292545199394226, -1.3723745346069336, -0.7160475850105286, -0.841876208782196, -0.13846570253372192, 0.3810157775878906, 0.48074665665626526, -0.8946418166160583, -0.18855763971805573, 0.4999837577342987, 0.8259550929069519,...
func WaitForReaperOperatorReady(namespace string) error { key := types.NamespacedName{Namespace: namespace, Name: "reaper-operator"} return WaitForDeploymentReady(key, 1, OperatorRetryInterval, OperatorTimeout) }
[ -0.5209850072860718, 0.07426486909389496, 0.21620938181877136, -0.8500886559486389, -0.5048670768737793, -0.4709417223930359, -0.4230197072029114, -0.24537624418735504, 0.23604974150657654, 0.6468237042427063, -0.741725504398346, 0.2046063244342804, 0.31917089223861694, 0.7778424024581909,...
func WaitForCassDcReady(key types.NamespacedName, retryInterval, timeout time.Duration) error { start := time.Now() return wait.Poll(retryInterval, timeout, func() (bool, error) { cassdc, err := GetCassDc(key) if err != nil { if apierrors.IsNotFound(err) { return false, nil } return true, err } l...
[ -0.035268813371658325, 0.4234199821949005, 0.721626341342926, -0.7765046954154968, -0.45713725686073303, 0.5699838399887085, -1.4080398082733154, -0.5895034074783325, -0.7066171765327454, -0.34416788816452026, -0.702929675579071, 0.19851121306419373, 0.6995455622673035, 0.8612202405929565,...
func WithDateSuffix(s string) string { return s + "-" + time.Now().Format("060102150405") }
[ 0.5293105244636536, -0.6763922572135925, 0.8367875814437866, 0.026661695912480354, -0.4894157946109772, 0.5369296669960022, -1.101680040359497, -0.0467890165746212, 0.01597004011273384, -0.6993045210838318, -1.2081005573272705, 0.7026585936546326, 1.5580599308013916, 0.8470036387443542, ...
func (e PatientEdges) GenderOrErr() (*Gender, error) { if e.loadedTypes[0] { if e.Gender == nil { // The edge gender was loaded in eager-loading, // but was not found. return nil, &NotFoundError{label: gender.Label} } return e.Gender, nil } return nil, &NotLoadedError{edge: "gender"} }
[ -0.6544816493988037, 0.06289432942867279, 0.5318204164505005, -0.665840744972229, 0.30905669927597046, 0.8549954295158386, -0.4787310063838959, -0.5106047987937927, -0.3974777162075043, 0.3708432614803314, 0.6962089538574219, 0.7749462127685547, 0.18856219947338104, 0.6426555514335632, 0...
func (e PatientEdges) MedicalcareOrErr() (*MedicalCare, error) { if e.loadedTypes[1] { if e.Medicalcare == nil { // The edge medicalcare was loaded in eager-loading, // but was not found. return nil, &NotFoundError{label: medicalcare.Label} } return e.Medicalcare, nil } return nil, &NotLoadedError{edg...
[ -0.04623182862997055, -0.9464218020439148, 0.6931618452072144, -0.9712679386138916, -0.35669857263565063, 0.17209213972091675, -0.7731999754905701, -1.0596259832382202, 0.4921233355998993, -0.021075202152132988, 2.414207935333252, 0.34917768836021423, 0.12113264203071594, 0.473679274320602...
func (e PatientEdges) EmployeeOrErr() (*Employee, error) { if e.loadedTypes[2] { if e.Employee == nil { // The edge employee was loaded in eager-loading, // but was not found. return nil, &NotFoundError{label: employee.Label} } return e.Employee, nil } return nil, &NotLoadedError{edge: "employee"} }
[ -0.7474247813224792, -0.8436640501022339, 0.5016831755638123, -0.6038634181022644, 0.043495431542396545, 0.8197246193885803, -0.44050297141075134, -0.356892466545105, 0.37125006318092346, 0.6884394884109497, 1.3142554759979248, 0.580479621887207, -0.40665072202682495, -0.05218847468495369,...
func (e PatientEdges) DiseaseOrErr() (*Disease, error) { if e.loadedTypes[3] { if e.Disease == nil { // The edge disease was loaded in eager-loading, // but was not found. return nil, &NotFoundError{label: disease.Label} } return e.Disease, nil } return nil, &NotLoadedError{edge: "disease"} }
[ -0.8534727096557617, -1.0438746213912964, 0.6263061165809631, -1.1302179098129272, 0.059756800532341, 0.42795607447624207, -0.4763888716697693, -0.38285285234451294, 1.0192832946777344, 0.32150107622146606, 1.697473406791687, 0.551596462726593, 0.08291656523942947, -0.18854007124900818, ...
func (*Patient) scanValues() []interface{} { return []interface{}{ &sql.NullInt64{}, // id &sql.NullString{}, // patient_ID &sql.NullString{}, // patient_name &sql.NullString{}, // patient_cardID &sql.NullString{}, // patient_address &sql.NullString{}, // patient_tel &sql.NullInt64{}, // patient_age ...
[ -0.28382930159568787, -0.1775294542312622, 0.6380738615989685, 0.1610226035118103, -0.5412611365318298, -0.31203383207321167, -1.3846865892410278, -0.2725919783115387, 0.18829438090324402, -0.8044746518135071, -0.40433740615844727, -0.13942742347717285, 0.3416021764278412, 0.99522644281387...
func (*Patient) fkValues() []interface{} { return []interface{}{ &sql.NullInt64{}, // disease_id &sql.NullInt64{}, // employee_id &sql.NullInt64{}, // gender_id &sql.NullInt64{}, // medicalcare_id } }
[ 0.35339826345443726, 0.2654353380203247, 0.5692275166511536, 0.4046328663825989, 0.4484594166278839, -0.48663216829299927, -0.6223329901695251, 0.024084188044071198, -0.4278585910797119, -0.5820927619934082, 0.3398609161376953, -0.008753464557230473, -0.18344371020793915, 1.223064661026001...