text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (obj *Packet) makePacket() { if obj.dataType == 0 { obj.dataType = 1 } }
[ -0.6156162023544312, 1.0670645236968994, 0.3575296103954315, -0.4651080071926117, -0.2284926474094391, 0.3729878067970276, 0.21322932839393616, 0.5902073383331299, 0.36621788144111633, -0.7479743957519531, -0.17294861376285553, 0.6291507482528687, 0.07093841582536697, 0.6563233733177185, ...
func (obj *MessagePacket) makeMessagePacket() { if obj.dataType == 0 { obj.dataType = 2 } }
[ -0.2363576591014862, 0.523160457611084, 0.30965402722358704, -0.5692567229270935, -0.4134913682937622, 0.2249097377061844, 0.16361449658870697, -0.28293344378471375, 0.10751814395189285, -0.7840944528579712, -0.15636782348155975, 0.6062748432159424, -0.12130323052406311, 1.2650465965270996...
func sendMessageToOne(node nd.Node, targetIP string, portNum int, IsInitialization bool) ms.MsList { fmt.Println("------sendMessageToOne-----") targetServicee := targetIP + ":" + strconv.Itoa(portNum) udpAddr, err := net.ResolveUDPAddr("udp4", targetServicee) checkError(err) conn, err := net.DialUDP("udp", nil, u...
[ -1.2291967868804932, 0.8764241337776184, 0.7105721235275269, -0.12128672748804092, 0.7659538984298706, -0.45064014196395874, -0.2410174310207367, -0.4141730070114136, -0.15498089790344238, 0.40400460362434387, -0.056296348571777344, 0.0803036242723465, -0.3874187469482422, 0.49586576223373...
func ListenOnPort(conn *net.UDPConn, isIntroducer bool, node nd.Node, ATApointer *bool) ms.MsList { fmt.Println("ListenOnPort") var buf [5120]byte fmt.Println("start reading") n, _, err := conn.ReadFromUDP(buf[0:]) fmt.Println("done reading") if err != nil { fmt.Println("err != nil") return ms.MsList{} } go...
[ -0.17975829541683197, -0.5009773969650269, 0.972925066947937, -0.5089840888977051, 0.033418208360672, 0.0696447566151619, 0.21277104318141937, 0.03675149753689766, -0.10292425006628036, -0.04445768892765045, -0.19029787182807922, 0.9740015864372253, -1.1858155727386475, 0.8254838585853577,...
func (m Middleware) Authorized(h http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { // Retrieve secret environment variable hmacSecret := []byte(os.Getenv("JWT_SECRET")) // Check request header for a Token // Check if the length of the Authorization value is gr...
[ 0.28454068303108215, 0.10534078627824783, 0.8534327745437622, 0.3483313322067261, -1.0391212701797485, -0.42818009853363037, -0.32295551896095276, -0.11216230690479279, -0.2788688540458679, 0.3660447299480438, 0.07730288058519363, 0.6786139011383057, 0.37271252274513245, 0.6811820864677429...
func (o *GetLeaderboardConfigurationsPublicV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewGetLeaderboardConfigurationsPublicV1OK() if err := result.readResponse(response, consumer, o.formats); err != nil { ...
[ 0.0056880624033510685, 0.3254159986972809, 0.8246421217918396, 0.7261812686920166, -0.6166127324104309, -0.19110560417175293, 0.37153905630111694, -1.0852588415145874, 0.33707326650619507, 0.3184152841567993, 0.1375386267900467, -0.24577641487121582, -1.4555726051330566, 0.295714408159256,...
func NewGetLeaderboardConfigurationsPublicV1OK() *GetLeaderboardConfigurationsPublicV1OK { return &GetLeaderboardConfigurationsPublicV1OK{} }
[ -0.14805638790130615, 0.7379452586174011, 0.4179038405418396, 1.5135139226913452, -0.626112699508667, 0.5509271025657654, 1.1389596462249756, -0.12710240483283997, -0.3014221787452698, 0.7407712936401367, -0.04288114607334137, -0.8858723640441895, -0.3859274089336395, 0.18281911313533783, ...
func NewGetLeaderboardConfigurationsPublicV1BadRequest() *GetLeaderboardConfigurationsPublicV1BadRequest { return &GetLeaderboardConfigurationsPublicV1BadRequest{} }
[ -0.6927937269210815, 0.826841413974762, 0.8786134719848633, 1.2055877447128296, -0.5443543195724487, 0.22459548711776733, -0.17832641303539276, -0.19185906648635864, -0.8545409440994263, -0.28464362025260925, 0.5267218351364136, 0.32804563641548157, -0.9716503620147705, 0.657302737236023, ...
func NewGetLeaderboardConfigurationsPublicV1Unauthorized() *GetLeaderboardConfigurationsPublicV1Unauthorized { return &GetLeaderboardConfigurationsPublicV1Unauthorized{} }
[ -0.4316672086715698, 0.8082780241966248, 0.7861520051956177, 1.2459561824798584, -1.1220217943191528, 0.3147065341472626, 0.5072004795074463, 0.18422305583953857, -0.177400603890419, -0.41489312052726746, -0.19785933196544647, 0.05687436833977699, -0.6813109517097473, -0.14034466445446014,...
func NewGetLeaderboardConfigurationsPublicV1Forbidden() *GetLeaderboardConfigurationsPublicV1Forbidden { return &GetLeaderboardConfigurationsPublicV1Forbidden{} }
[ 0.2608422040939331, 1.1731654405593872, 0.6816004514694214, 1.4623125791549683, -0.7085805535316467, 0.8174535036087036, 0.8792087435722351, -0.9090139865875244, -0.317536860704422, -0.21056948602199554, 0.41857007145881653, 0.11365842819213867, -0.8187882304191589, -0.23631501197814941, ...
func NewHeavyCase(evaluator heavyEvaluatorFunc, command heavyCommandFunc) HeavyCase { return HeavyCase{ evaluator: evaluator, command: command, } }
[ 0.6319143772125244, -0.729737401008606, 0.36992061138153076, 0.7035210132598877, 0.21335645020008087, -0.5123850703239441, -0.6848558187484741, 0.7027921676635742, 0.5274193286895752, 0.34095925092697144, 0.40541872382164, 0.503557026386261, 0.21453624963760376, 0.6987470388412476, 0.351...
func GenerateUID(alphabet string, size int) (string, error) { if len(alphabet) == 0 || len(alphabet) > 255 { return "", fmt.Errorf("alphabet must not empty and contain no more than 255 chars. Current len is %d", len(alphabet)) } if size <= 0 { return "", fmt.Errorf("size must be positive integer") } masks := ...
[ -0.09955579787492752, -0.5333570837974548, 1.0938775539398193, -0.1360093206167221, -0.6761725544929504, -0.038190796971321106, 0.7983096241950989, -0.3723030090332031, 1.3242427110671997, 0.2193882167339325, -0.7441670298576355, 0.2369452863931656, -0.829250693321228, 0.13012048602104187,...
func NewUID(param ...int) (string, error) { var size int if len(param) == 0 { size = defaultSize } else { size = param[0] } bytes := make([]byte, size) _, err := BytesGenerator(bytes) if err != nil { return "", err } id := make([]byte, size) for i := 0; i < size; i++ { id[i] = defaultAlphabet[bytes[i]...
[ -0.2682713270187378, -0.1490933746099472, 0.8984571695327759, 0.08095072209835052, -0.6563852429389954, 0.3790760636329651, 0.22172623872756958, -0.13604384660720825, 1.0411827564239502, 0.04790203273296356, -0.27637234330177307, 0.5454451441764832, -0.9443253874778748, -0.2630157470703125...
func (MSG) EnumDescriptor() ([]byte, []int) { return file_chat_proto_rawDescGZIP(), []int{0} }
[ -0.4928075671195984, 0.6894044876098633, 0.5983988642692566, -0.5298932790756226, 0.06500771641731262, -0.5576967000961304, 0.2752004861831665, 0.0965440422296524, -0.07056830078363419, -0.061635129153728485, 0.018645038828253746, 0.30679988861083984, -0.14061559736728668, 1.93077981472015...
func (*CMEnterWorld) Descriptor() ([]byte, []int) { return file_chat_proto_rawDescGZIP(), []int{0} }
[ 0.07125324010848999, -0.6456142067909241, 0.42151543498039246, -0.028715558350086212, -1.2077374458312988, 0.058740586042404175, 0.42225295305252075, 0.367594838142395, -0.11058469861745834, 0.15189732611179352, -0.15200519561767578, -0.13483241200447083, -1.3501602411270142, 1.63343763351...
func (*SMEnterWorld) Descriptor() ([]byte, []int) { return file_chat_proto_rawDescGZIP(), []int{1} }
[ -0.12775951623916626, -0.1306391954421997, 0.5217926502227783, 0.6127904057502747, -1.3315805196762085, 0.05232984572649002, 0.41526445746421814, 0.4179745614528656, 0.5907996296882629, 0.42487668991088867, -0.61859130859375, 0.133622944355011, -0.7303445935249329, 1.27633535861969, 0.17...
func (*CMCreatePlayer) Descriptor() ([]byte, []int) { return file_chat_proto_rawDescGZIP(), []int{2} }
[ -0.5132994651794434, 0.18177315592765808, 0.190696582198143, -0.07262139022350311, -0.043528661131858826, -0.19071686267852783, 0.5954059958457947, -0.447310209274292, -0.695248544216156, 0.062229420989751816, -1.0003468990325928, -0.3674442172050476, -0.8007194399833679, 1.395768523216247...
func (*SMCreatePlayer) Descriptor() ([]byte, []int) { return file_chat_proto_rawDescGZIP(), []int{3} }
[ -0.7317780256271362, 0.5050610899925232, 0.3472449779510498, 0.1578611582517624, -0.5215184092521667, -0.4356571137905121, 0.30413439869880676, -0.6668576598167419, -0.4718429446220398, 0.5240451693534851, -1.3404042720794678, -0.05596308410167694, -0.43767762184143066, 1.4340858459472656,...
func (*CMBroadcastChat) Descriptor() ([]byte, []int) { return file_chat_proto_rawDescGZIP(), []int{4} }
[ 1.1441662311553955, -0.15445460379123688, 0.3953162133693695, -0.03710341453552246, -0.8637449145317078, 0.44202059507369995, 0.5656659007072449, -0.2689502537250519, -0.6100021004676819, -0.619283139705658, 0.42298850417137146, 0.24986715614795685, -0.9811298251152039, 1.2350506782531738,...
func (*SMBroadcastChat) Descriptor() ([]byte, []int) { return file_chat_proto_rawDescGZIP(), []int{5} }
[ 1.1506069898605347, 0.18150708079338074, 0.5192269086837769, 0.2906535267829895, -1.282048225402832, 0.20780049264431, 0.5844812989234924, -0.4863225519657135, -0.5270570516586304, -0.10416413098573685, 0.12032973766326904, 0.7527545094490051, -0.6498326659202576, 1.0038082599639893, -0....
func (*CMHistoryChat) Descriptor() ([]byte, []int) { return file_chat_proto_rawDescGZIP(), []int{6} }
[ 0.7865324020385742, 0.05818798765540123, 0.29892972111701965, -0.36897122859954834, -0.5908376574516296, -0.15910392999649048, 0.5766808986663818, -0.1122760996222496, -0.708692193031311, -0.7648215293884277, 0.020168300718069077, 0.4921432435512543, -0.9988322257995605, 1.1639063358306885...
func (*SMHistoryChat) Descriptor() ([]byte, []int) { return file_chat_proto_rawDescGZIP(), []int{7} }
[ 0.7105048894882202, 0.5594238638877869, 0.42621541023254395, 0.10374186933040619, -0.8789423704147339, -0.3555295467376709, 0.5742801427841187, -0.053527504205703735, -0.15616467595100403, -0.24204590916633606, -0.2275235950946808, 0.906823992729187, -0.4990757405757904, 0.9107316732406616...
func (*CMAllPlayers) Descriptor() ([]byte, []int) { return file_chat_proto_rawDescGZIP(), []int{8} }
[ -0.10013723373413086, -0.6292057037353516, 0.21465815603733063, 0.14911063015460968, -1.1274657249450684, -0.7403650283813477, -0.4902394711971283, 0.8646152019500732, -0.015047064982354641, 0.2783580422401428, -0.34045568108558655, 0.44407936930656433, -1.2793225049972534, 1.4175016880035...
func (*SMAllPlayers) Descriptor() ([]byte, []int) { return file_chat_proto_rawDescGZIP(), []int{9} }
[ -0.23955555260181427, 0.24826091527938843, 0.18543031811714172, -0.6256471872329712, -0.5624440908432007, -0.3347666561603546, 0.08848385512828827, 0.018363311886787415, -0.15310348570346832, 0.16779275238513947, -0.572363555431366, 0.6749907732009888, -0.8675966858863831, 0.58215439319610...
func (*CMPrivateChat) Descriptor() ([]byte, []int) { return file_chat_proto_rawDescGZIP(), []int{10} }
[ 0.1045798510313034, 0.007910845801234245, 0.18097743391990662, -0.48606014251708984, -0.6543275713920593, -0.2192901074886322, -0.036270953714847565, -0.6377722024917603, -0.29204145073890686, -0.6952658891677856, -0.2311186045408249, 0.07635118067264557, -0.764372706413269, 0.895073175430...
func (*SMPrivateChat) Descriptor() ([]byte, []int) { return file_chat_proto_rawDescGZIP(), []int{11} }
[ 0.21360938251018524, 0.3473298251628876, 0.36992964148521423, 0.06345962733030319, -1.0227000713348389, -0.48476704955101013, -0.02088763378560543, -0.8822344541549683, 0.23654799163341522, -0.11148243397474289, -0.6875991225242615, 0.1836460828781128, -0.27721112966537476, 0.6309391260147...
func (al *accountList) Set(value string) error { list := strings.Split(value, ",") for _, acct := range list { tokens := strings.Split(acct, ":") if !common.IsHexAddress(tokens[0]) { return fmt.Errorf("invalid address: %s", tokens[0]) } min, ok := new(big.Int).SetString(tokens[1], 10) if !ok { retur...
[ -0.784730851650238, -0.4506966173648834, 0.4870876371860504, -0.9147987365722656, -0.22295156121253967, 0.3588334023952484, -0.39475709199905396, 0.23734083771705627, 0.4087405800819397, 0.35046395659446716, -0.6187596917152405, 0.15827082097530365, -0.04647302255034447, -0.080203197896480...
func DefaultPort(target string, port int) (string, error) { i := strings.LastIndexByte(target, ':') if i < 0 { return fmt.Sprintf("%s:%d", target, port), nil } // Check if target is an IPv6 host, i.e. [::1]:8886. if target[0] == '[' { end := strings.IndexByte(target, ']') if end < 0 || end+1 != i { return...
[ -0.008644890040159225, -0.4794411361217499, 0.4624125063419342, -0.3140762746334076, 0.10434652864933014, -0.6556575894355774, -0.04651421681046486, -0.03746836632490158, 0.4713645577430725, 0.2764033377170563, 0.6382427215576172, 0.5308731198310852, -0.17612333595752716, -1.07701420783996...
func ServiceName(role ttnpb.ClusterRole) (string, bool) { service, ok := clusterRoleServices[role] if !ok { return "", false } return fmt.Sprintf("ttn-v3-%s-grpc", service), true }
[ -1.3861420154571533, 0.07578104734420776, 0.5058334469795227, -0.43033894896507263, -0.30722957849502563, -0.11027135699987411, 0.09030617028474808, -0.08115561306476593, -0.30588385462760925, 1.9321707487106323, 0.3397054076194763, -0.03376419097185135, -0.4982515573501587, 0.126106515526...
func DefaultURL(target string, port int, tls bool) (string, error) { target, err := DefaultPort(target, port) if err != nil { return "", nil } return fmt.Sprintf("%s://%s", HTTPScheme[tls], target), nil }
[ 0.2496887743473053, 0.2890729010105133, 0.26982030272483826, -0.04373729228973389, 0.42917948961257935, 0.5672190189361572, -0.5431787967681885, 0.0005220494349487126, -0.4404594898223877, 0.8558291792869568, 0.48876506090164185, 0.019079770892858505, 0.1393785923719406, -0.395352333784103...
func WithInsecureFallback() Option { return optionFunc(func(opts *options) { opts.insecureFallback = true }) }
[ 0.16092130541801453, -0.5585901737213135, 0.5728143453598022, 0.3001416027545929, 0.15836018323898315, 0.38778144121170044, 0.272674560546875, -0.7627848982810974, 0.7576040029525757, 0.22673164308071136, -0.4337223172187805, 0.6082625985145569, -1.4877063035964966, -0.6419876217842102, ...
func WithDNSResolver(resolver DNSResolver) Option { return optionFunc(func(opts *options) { opts.dnsResolver = resolver }) }
[ -0.6354144811630249, 0.551369309425354, 0.4396587908267975, -0.02590695209801197, -0.626020073890686, -0.6289342641830444, -0.6336989998817444, -0.338074654340744, 1.6866399049758911, -0.8239750862121582, -1.381116509437561, -0.38792744278907776, 0.809786856174469, 0.15765514969825745, -...
func WithAddressDialer(dialer func(context.Context, string) (net.Conn, error)) Option { return optionFunc(func(opts *options) { opts.dialer = dialer }) }
[ 0.13472667336463928, -0.9443197846412659, 0.5412543416023254, 0.012401367537677288, -1.2397966384887695, 0.4798738956451416, -0.07600076496601105, -0.3497465252876282, 1.6531412601470947, -0.7298000454902649, -0.0014938872773200274, -0.8783301115036011, 1.4870227575302124, 1.12377703189849...
func WithDialer(role ttnpb.ClusterRole, opts ...Option) grpc.DialOption { options := &options{ insecureFallback: false, dnsResolver: net.DefaultResolver, dialer: func(ctx context.Context, address string) (net.Conn, error) { return new(net.Dialer).DialContext(ctx, "tcp", address) }, } for _, opt := ra...
[ -0.4783307611942291, -0.09226171672344208, 0.9806234240531921, -0.16934612393379211, 0.3549973964691162, -0.7497066855430603, -0.058713968843221664, -0.13560080528259277, 0.6354197859764099, 0.0384443961083889, 1.087222695350647, 0.24618029594421387, -0.08745761215686798, 0.064023420214653...
func DialContext(ctx context.Context, role ttnpb.ClusterRole, target string, opts ...grpc.DialOption) (*grpc.ClientConn, error) { return grpc.DialContext(ctx, target, append(opts, WithDialer(role))...) }
[ -0.39865708351135254, -0.19054847955703735, 0.5360674262046814, -0.42266663908958435, -0.09087696671485901, -0.07497873157262802, -0.9219202399253845, -0.26126646995544434, 0.8814929127693176, 0.4756689965724945, 0.5412172675132751, 1.2434240579605103, -0.08404945582151413, -0.940782487392...
func ConstruirBase(dominio string) string { componentes := strings.Split(dominio, ".") var resultado strings.Builder for _, dc := range componentes { unidad := "dc=" + dc + "," resultado.WriteString(unidad) } return strings.Trim(resultado.String(), ",") }
[ -0.9368858933448792, -0.9249666929244995, 0.5741071701049805, -0.34478941559791565, 0.22074976563453674, -0.38855594396591187, -0.6832810640335083, 0.2529803216457367, 0.1973663568496704, -0.18600718677043915, -0.33965811133384705, -0.3983090817928314, -0.1405584216117859, -0.5135509967803...
func Ruptura(mensaje string, err error) { fmt.Fprintf(os.Stderr, "%s %v\n", mensaje, err) os.Exit(1) }
[ -0.6513356566429138, -0.00470320088788867, 0.5225668549537659, -0.36356663703918457, -0.2296646237373352, 0.7260870337486267, -0.6015953421592712, 0.23493227362632751, -0.4578363597393036, 0.45545631647109985, 1.0435842275619507, 0.7114778757095337, -0.4976026713848114, 0.5433028936386108,...
func TestCloudConfigEmpty(t *testing.T) { cfg, err := NewCloudConfig([]byte{}) if err != nil { t.Fatalf("Encountered unexpected error :%v", err) } keys := cfg.SSH_Authorized_Keys if len(keys) != 0 { t.Error("Parsed incorrect number of SSH keys") } if cfg.Coreos.Etcd.Discovery_URL != "" { t.Error("Parsed ...
[ 0.047916632145643234, 0.5211744904518127, 0.3886270821094513, -0.17626796662807465, 1.3668516874313354, 0.7490814328193665, -0.09438744932413101, 0.35729703307151794, -1.4414668083190918, -0.4417864680290222, -0.9933075904846191, -0.1176546961069107, -0.2500068247318268, 0.7734081149101257...
func TestCloudConfig(t *testing.T) { contents := []byte(` coreos: etcd: discovery_url: "https://discovery.etcd.io/827c73219eeb2fa5530027c37bf18877" fleet: autostart: Yes units: - name: 50-eth0.network runtime: yes content: '[Match] Name=eth47 [Network] Address=10.209....
[ 0.147918239235878, 0.3003222346305847, 0.6374853849411011, -0.199123352766037, 0.8146159052848816, -0.11653506010770798, -0.06859613209962845, 0.19449521601200104, -0.8172140121459961, -0.5158761143684387, -0.5685970783233643, -0.36542168259620667, -0.15806521475315094, 0.4080268144607544,...
func TestCloudConfigKeysNotList(t *testing.T) { contents := []byte(` ssh_authorized_keys: - foo: bar `) cfg, err := NewCloudConfig(contents) if err != nil { t.Fatalf("Encountered unexpected error :%v", err) } keys := cfg.SSH_Authorized_Keys if len(keys) != 0 { t.Error("Parsed incorrect number of SSH keys")...
[ 0.08629670739173889, 0.9913410544395447, 0.4021642506122589, -0.10150783509016037, 0.5705730319023132, 0.8011243939399719, -1.0205638408660889, 0.7626309394836426, -0.5026293396949768, 0.32793939113616943, -1.1856108903884888, -0.11066433042287827, -0.3749229907989502, 0.9300945997238159, ...
func (agent *DOMAgent) SetEnableHandler(handler func(EnableCommand)) { agent.commandHandlers.Enable.Store(handler) }
[ -0.2698472738265991, -0.34093335270881653, 0.3704017400741577, 0.029818089678883553, -0.6734655499458313, 0.942188560962677, 0.4129776656627655, 0.520207941532135, 0.2662884593009949, -0.1800137609243393, -0.7570410370826721, -0.3393971025943756, -0.4734335243701935, 0.8889559507369995, ...
func StripJS(e *Context) error { for n := e.DOM.RootNode; n != nil; n = htmlnode.Next(n) { if n.Type != html.ElementNode { continue } if n.DataAtom == atom.Script { srcVal, srcOk := htmlnode.GetAttributeVal(n, "", "src") var isCacheSrc bool if srcOk { if !strings.HasPrefix(strings.ToLower(srcVal...
[ -0.24289481341838837, -0.30563899874687195, 0.8513744473457336, -0.5287361741065979, -1.5355910062789917, -0.7765169739723206, 0.6322780251502991, -0.40919777750968933, 0.6077365875244141, 0.7318834662437439, 0.7302234172821045, 1.0662684440612793, 0.003305868711322546, 1.051838994026184, ...
func OuterHtml(s *Selection) (string, error) { var buf bytes.Buffer if s.Length() == 0 { return "", nil } n := s.Get(0) if err := html.Render(&buf, n); err != nil { return "", err } return buf.String(), nil }
[ -0.9310808777809143, 0.402586430311203, 0.2991456389427185, -0.01695610210299492, -1.6886225938796997, -0.020298073068261147, -0.03435267135500908, -0.16195674240589142, 0.7800725102424622, 0.5699930787086487, 0.6001091599464417, 0.5316094756126404, -0.5424082279205322, -0.3756830096244812...
func sliceContains(container []*html.Node, contained *html.Node) bool { for _, n := range container { if nodeContains(n, contained) { return true } } return false }
[ -0.14421670138835907, -0.40154924988746643, 0.5636813044548035, 0.43291175365448, 0.1815207302570343, -0.18297205865383148, -0.18824076652526855, -0.3157750368118286, -0.6252558827400208, 0.91386878490448, -0.12119899690151215, 0.2895311117172241, 0.2569124698638916, 0.2351837009191513, ...
func nodeContains(container *html.Node, contained *html.Node) bool { // Check if the parent of the contained node is the container node, traversing // upward until the top is reached, or the container is found. for contained = contained.Parent; contained != nil; contained = contained.Parent { if container == conta...
[ 0.04768707603216171, -0.24511191248893738, 0.6534456610679626, -0.08034654706716537, -0.1396629363298416, -0.1367509514093399, -0.5102704763412476, -0.7974798679351807, -0.7839181423187256, 0.07812564820051193, 0.1375133991241455, 0.7040085792541504, 0.17637962102890015, 0.0213104076683521...
func isInSlice(slice []*html.Node, node *html.Node) bool { return indexInSlice(slice, node) > -1 }
[ -0.43644028902053833, -0.3863864541053772, 0.4285039007663727, 0.4190696179866791, -0.30167117714881897, -0.5261682868003845, -0.6110126972198486, -0.23448610305786133, -0.15275532007217407, 0.7623189687728882, 0.20635780692100525, 0.9891167879104614, -0.2260921746492386, -0.02083806693553...
func indexInSlice(slice []*html.Node, node *html.Node) int { if node != nil { for i, n := range slice { if n == node { return i } } } return -1 }
[ -0.6692437529563904, -0.5748727917671204, 0.32339632511138916, -0.041770078241825104, -0.6383878588676453, -0.584567666053772, 0.47752276062965393, 0.11847972124814987, -0.6463117003440857, 0.6970428228378296, 0.553721010684967, 0.8857824206352234, -0.23700818419456482, 0.1090507060289383,...
func appendWithoutDuplicates(target []*html.Node, nodes []*html.Node, targetSet map[*html.Node]bool) []*html.Node { // if there are not that many nodes, don't use the map, faster to just use nested loops // (unless a non-nil targetSet is passed, in which case the caller knows better). if targetSet == nil && len(targ...
[ -0.8147670030593872, 0.38704046607017517, 0.4151344299316406, -1.0145025253295898, -0.07952026277780533, -0.44832009077072144, -0.8677881956100464, -0.12203523516654968, 0.06122903153300285, 0.14689698815345764, 0.874222457408905, 0.6962649822235107, 0.05398906022310257, -0.125472262501716...
func grep(sel *Selection, predicate func(i int, s *Selection) bool) (result []*html.Node) { for i, n := range sel.Nodes { if predicate(i, newSingleSelection(n, sel.document)) { result = append(result, n) } } return result }
[ -1.0528572797775269, 1.1775227785110474, 0.4122268855571747, 0.2653809189796448, 0.18620683252811432, -0.317495197057724, 0.40793338418006897, 0.3718540668487549, -0.11159569770097733, 1.2878971099853516, -0.09893888235092163, 0.6047208905220032, -0.22182531654834747, 0.43989524245262146, ...
func pushStack(fromSel *Selection, nodes []*html.Node) *Selection { result := &Selection{nodes, fromSel.document, fromSel} return result }
[ -0.6023396253585815, 0.48281189799308777, 0.2403932362794876, 0.3333786427974701, -0.5964906215667725, -0.6679097414016724, 0.39123937487602234, -0.8288236260414124, -0.32674112915992737, 0.5082009434700012, 0.08654575794935226, 0.7987236380577087, -0.2632855474948883, -0.5595711469650269,...
func NewManager(c config.Config) (m *Manager, err error) { verifications := make([]*Verification, 0) sts := make([]*Status, 0) k8sm, err := k8s.New(c.Namespace) if err != nil { return } db, err := database.NewDatabase(c, nil, k8sm) if err != nil { return } stgM, err := storage.NewManager(c.Storages, c.Ser...
[ 0.394239217042923, 0.2704068124294281, 0.6319748163223267, 0.559427797794342, 0.024578768759965897, 0.5793607831001282, -0.34800776839256287, -0.1225072517991066, 0.31778910756111145, -0.38007140159606934, -0.03243391588330269, -0.27545541524887085, -0.4310753345489502, 1.7620434761047363,...
func (m *Manager) Start(ctx context.Context) { for _, v := range m.verifications { logger.Debugf("starting verification for %s backup", v.storage.GetStorageServiceName()) go v.Start(ctx) } }
[ 0.5601598024368286, -0.22436299920082092, 0.38761192560195923, 0.6697354316711426, 1.3321698904037476, 0.21555157005786896, -0.11671824008226395, 0.11601970344781876, -0.04294326901435852, -0.291083961725235, -0.8069085478782654, 0.9234471321105957, 0.452175110578537, 1.2479500770568848, ...
func (s *scriptRemoveFlag) Set(arg string) error { re, err := regexp.Compile(arg) if err != nil { return err } for i := 0; i < len(*s.names); { if re.MatchString(StripExt(filepath.Base((*s.names)[i]))) { if i < len(*s.names)-1 { *s.names = append((*s.names)[:i], (*s.names)[i+1:]...) } else { *s.n...
[ -0.7118812799453735, 0.14052554965019226, 0.6091284155845642, -1.3039730787277222, -0.12234371900558472, -0.2951911389827728, 0.4997309148311615, 0.15401647984981537, -0.7445940375328064, 1.0137487649917603, -1.1822521686553955, 0.36999228596687317, -0.45266643166542053, 1.0257511138916016...
func findCode(name string, fileList map[string]string) (path string, st os.FileInfo, err error) { if strings.ContainsRune(name, os.PathSeparator) { if st, err := os.Stat(name); err == nil { return name, st, nil } return "", nil, fmt.Errorf("not found: %v", name) } if path, ok := fileList[name]; ok { if s...
[ 0.21780072152614594, -0.727202832698822, 0.8651300072669983, 0.3045108914375305, -0.5055992007255554, -0.29574236273765564, 0.3338513970375061, -0.23447342216968536, -0.561945378780365, 0.38370275497436523, 0.14381973445415497, -0.8213802576065063, -0.4989805519580841, 2.0173146724700928, ...
func listCode() { list := func(name, folder string, fileList map[string]string) { log.Printf("%v folder: %v", name, folder) f, err := os.Open(folder) if err != nil { if !os.IsNotExist(err) { warning.Print(err) } return } defer f.Close() dn, err := f.Readdirnames(0) if err != nil { warnin...
[ 0.3139331042766571, -0.5123298168182373, 0.7147088050842285, 0.18593809008598328, -0.17175860702991486, -0.498422771692276, 0.9545845985412598, 0.13644419610500336, -0.17500777542591095, 0.4838539659976959, -0.0805729404091835, 0.5647903680801392, 0.17988599836826324, 1.4061821699142456, ...
func init() { log.SetFlags(0) log.SetPrefix(":: ") if XDG_CONFIG_HOME == "" { XDG_CONFIG_HOME = filepath.Join(os.Getenv("HOME"), ".config") } if XDG_DATA_DIRS == "" { XDG_DATA_DIRS = "/usr/local/share/:/usr/share" } cache.actions = make(map[string]string) cache.actionFiles = make(map[string]string) cach...
[ 0.4754409193992615, 0.028488412499427795, 0.5037907958030701, -0.04384385049343109, -0.13011866807937622, 0.38349321484565735, 0.6504491567611694, 0.31988856196403503, -0.4394543766975403, 0.3016521632671356, -0.5556107759475708, 0.2068486213684082, 0.2749623954296112, 0.7236818075180054, ...
func RetrieveValidatedClusterInfo(filepath string) (*clientcmdapi.Cluster, error) { clusterinfo, err := clientcmd.LoadFromFile(filepath) if err != nil { return nil, err } return ValidateClusterInfo(clusterinfo) }
[ 0.45054757595062256, -0.9572371244430542, 0.09750524908304214, -0.05733605474233627, -0.061746302992105484, 0.7472118735313416, 0.9732964038848877, -0.8272461295127869, -0.18476805090904236, -1.255881905555725, -0.3308432698249817, 0.6433507800102234, -0.6961181163787842, -0.22556734085083...
func ValidateClusterInfo(clusterinfo *clientcmdapi.Config) (*clientcmdapi.Cluster, error) { err := validateClusterInfoKubeConfig(clusterinfo) if err != nil { return nil, err } // This is the cluster object we've got from the cluster-info KubeConfig file defaultCluster := kubeconfigutil.GetClusterFromKubeConfig(...
[ 0.3647172749042511, -0.32642242312431335, 0.6544434428215027, 0.6416071653366089, -0.07174189388751984, 0.2703796327114105, 0.27832531929016113, -0.7242075204849243, -0.7118659615516663, -0.24722063541412354, 0.26228687167167664, 0.8862082362174988, -0.5806747674942017, 0.308956503868103, ...
func tryParseClusterInfoFromConfigMap(cm *v1.ConfigMap) (*clientcmdapi.Config, error) { kubeConfigString, ok := cm.Data[bootstrapapi.KubeConfigKey] if !ok || len(kubeConfigString) == 0 { return nil, fmt.Errorf("no %s key in ConfigMap", bootstrapapi.KubeConfigKey) } parsedKubeConfig, err := clientcmd.Load([]byte(k...
[ 0.056418728083372116, -0.5437779426574707, 0.23135848343372345, -0.011802313849329948, -0.4457423686981201, -0.4527011215686798, -0.0940905511379242, -1.0579265356063843, -0.7440727949142456, 0.1860102266073227, -0.1265503466129303, -0.38343220949172974, -1.6064690351486206, 0.108303226530...
func validateClusterInfoKubeConfig(clusterinfo *clientcmdapi.Config) error { if len(clusterinfo.Clusters) < 1 { return fmt.Errorf("the provided cluster-info KubeConfig file must have at least one Cluster defined") } defaultCluster := kubeconfigutil.GetClusterFromKubeConfig(clusterinfo) if defaultCluster == nil { ...
[ -0.10617189854383469, -0.15627865493297577, 0.3118998110294342, 0.10937875509262085, 0.9093771576881409, 0.33736565709114075, 0.07573546469211578, 0.02885337546467781, -0.8414081335067749, 0.3058786392211914, 0.21216371655464172, -0.105661541223526, -0.8849469423294067, 0.857960045337677, ...
func (o GetInstanceAttachmentsResultOutput) Attachments() GetInstanceAttachmentsAttachmentArrayOutput { return o.ApplyT(func(v GetInstanceAttachmentsResult) []GetInstanceAttachmentsAttachment { return v.Attachments }).(GetInstanceAttachmentsAttachmentArrayOutput) }
[ -0.6531599760055542, -0.7474084496498108, 0.7091264724731445, -0.11646052449941635, -0.384596049785614, 0.32653379440307617, 0.6935458779335022, -0.9380911588668823, 1.0302953720092773, -0.5452554821968079, -0.4024641513824463, 0.3901100754737854, -0.0674591064453125, -0.9026185870170593, ...
func (o GetInstanceAttachmentsResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v GetInstanceAttachmentsResult) string { return v.Id }).(pulumi.StringOutput) }
[ 0.36673295497894287, -0.7805480360984802, 0.3988945186138153, -0.14880062639713287, -0.12160951644182205, 1.3964040279388428, 0.5808054208755493, -0.07944967597723007, 1.16253662109375, -0.4320857524871826, -0.03200831636786461, 0.7482394576072693, -0.7134220004081726, -1.307070255279541, ...
func (o GetInstanceAttachmentsResultOutput) Names() pulumi.StringArrayOutput { return o.ApplyT(func(v GetInstanceAttachmentsResult) []string { return v.Names }).(pulumi.StringArrayOutput) }
[ -0.7702103853225708, -0.5436204075813293, 0.5137215852737427, -0.4209023416042328, -0.05127891153097153, 1.0030930042266846, -0.10401032119989395, -1.1408225297927856, 0.6889315247535706, 0.08490356802940369, -0.8512680530548096, 0.7667838931083679, 0.26583510637283325, -0.554668128490448,...
func (o GetInstanceAttachmentsResultOutput) VpcIds() pulumi.StringArrayOutput { return o.ApplyT(func(v GetInstanceAttachmentsResult) []string { return v.VpcIds }).(pulumi.StringArrayOutput) }
[ -0.3146626949310303, -0.5605423450469971, 0.3722640573978424, -0.7008960247039795, 0.4922313392162323, 1.0064654350280762, -0.07219898700714111, -0.07872046530246735, 0.651502788066864, -0.08480867743492126, -0.4958839416503906, 1.3548747301101685, -0.8072820901870728, -1.439172625541687, ...
func Parse(r io.Reader) (S2K, error) { var buf [1]byte if _, err := io.ReadFull(r, buf[:]); err != nil { return nil, err } parser, ok := ParserById[buf[0]] if !ok { return nil, errors.UnsupportedError("unknown S2k specifier" + strconv.Itoa(int(buf[0]))) } return parser(r) }
[ -0.3178814947605133, -0.7081713080406189, 0.4923451244831085, 0.4502645432949066, -0.7447394728660583, -0.9415608048439026, 0.13509275019168854, -0.27601733803749084, -0.08868736773729324, -0.3368613123893738, -0.4582098722457886, 0.19356441497802734, 0.14512431621551514, 0.292937070131301...
func ExampleReplaceTable() { t := ReplaceStringTable{ "Hello", "Hi", "World", "Gophers", } r := transform.NewReader(strings.NewReader("Hello, World"), ReplaceAll(t)) io.Copy(os.Stdout, r) // Output: Hi, Gophers }
[ 0.8344219923019409, -1.1426537036895752, 0.4805578589439392, -0.4893811047077179, -0.28962093591690063, -0.5587822794914246, -0.27138644456863403, 1.2949961423873901, -0.8760281205177307, 0.11955185234546661, -0.9748291373252869, 0.5743516683578491, -0.024976149201393127, -0.18425290286540...
func TestReplacer_Transform(t *testing.T) { data := []struct { // input old, new []byte dst, src []byte atEOF bool // expected nDst, nSrc int hasErr bool expected []byte }{ { old: []byte(`abc`), new: []byte(`ABC`), dst: make([]byte, 100), src: []byte("abcdef...
[ -0.03539106622338295, 0.5221821069717407, 0.6211199760437012, -1.510018229484558, -0.6285533308982849, -0.238296240568161, 0.2637980282306671, 0.08247408270835876, 0.6065630912780762, 0.17391322553157806, -1.3343528509140015, 0.22376124560832977, 0.589722216129303, 0.5274564027786255, 0....
func TestReplacerWithReader(t *testing.T) { newReader := func(orig io.Reader, tf transform.Transformer) io.Reader { return transform.NewReader(orig, tf) } testReplacerWithReader(t, newReader) }
[ -0.09937427192926407, -0.9675205945968628, 0.36070555448532104, -1.2507548332214355, -0.46371784806251526, -0.16529196500778198, 0.38369202613830566, 0.36987292766571045, 0.20338864624500275, -0.5064267516136169, -0.14484982192516327, -0.5121237635612488, 0.5784820914268494, 0.139007508754...
func TestReplacerWithWriter(t *testing.T) { newReader := func(orig io.Reader, tf transform.Transformer) io.Reader { r, w := io.Pipe() go func() { _, err := io.Copy(transform.NewWriter(w, tf), orig) w.CloseWithError(err) }() return r } testReplacerWithReader(t, newReader) }
[ -0.09093652665615082, -0.7523834109306335, 0.48712602257728577, -0.7352280020713806, -0.42208394408226013, -0.3638916611671448, 0.851159393787384, 0.3565162420272827, -0.05656149610877037, 0.06439599394798279, -0.14985764026641846, -0.645744800567627, 0.21915598213672638, -0.07205297797918...
func JN(T, fmin, fmax, R float64) float64 { const k_b = 1.38064852e-23 return math.Sqrt(4 * k_b * (273.15 + T) * (fmax - fmin) * R) }
[ -0.12299023568630219, -0.2513275146484375, 0.36311236023902893, 0.7597309350967407, -0.8744090795516968, -0.7174028158187866, 0.10613136738538742, -0.007588731590658426, 0.15277723968029022, -0.22648073732852936, -0.4923011362552643, -0.2101971060037613, 0.2659450173377991, -0.286222666501...
func LU(V float64) float64 { const V0 = 0.7746 return 20 * math.Log10(V/V0) }
[ 1.1078917980194092, -0.03216500207781792, 0.4158802628517151, -0.503372848033905, -0.174131378531456, -0.6581106185913086, 0.3541397750377655, 0.502697229385376, 0.9841879606246948, -0.7601475119590759, 0.30740487575531006, -0.009037037380039692, 0.4130796790122986, -0.19960306584835052, ...
func New(config *GrpcServerConfig) (*GrpcServer, error) { if nil == config { return nil, fmt.Errorf("Configuration must be provided") } if len(config.Name) == 0 { return nil, fmt.Errorf("Name of server must be provided") } if len(config.Address) == 0 { return nil, fmt.Errorf("Address must be provided") } i...
[ -0.09767067432403564, -0.43128302693367004, 0.6687580943107605, -0.7727654576301575, -0.2512224018573761, 0.643850564956665, 0.2983343005180359, 0.22882474958896637, -0.5082085132598877, 0.8902866244316101, -0.4249243140220642, 0.28702184557914734, -0.654285192489624, 0.7230353951454163, ...
func (s *GrpcServer) Start(register func(grpcServer *grpc.Server)) error { s.lock.Lock() defer s.lock.Unlock() if s.running { return fmt.Errorf("Server already running") } s.server = grpc.NewServer(s.opts...) register(s.server) // Start listening for requests s.startGrpcService() return nil }
[ -0.6931861639022827, 0.24056218564510345, 0.4972073435783386, 0.04948132112622261, 0.7916017174720764, 0.06387326121330261, 0.6597592234611511, 0.28652727603912354, -0.2936461567878723, 0.0003304590645711869, -0.4998725950717926, 1.6912314891815186, -0.577601432800293, 0.17896707355976105,...
func (s *GrpcServer) StartWithServer(server func() *grpc.Server) error { s.lock.Lock() defer s.lock.Unlock() if server == nil { return fmt.Errorf("Server function has not been defined") } if s.running { return fmt.Errorf("Server already running") } s.server = server() // Start listening for requests s....
[ -0.7196720242500305, -1.0782078504562378, 0.537013053894043, 0.39644041657447815, 0.26068127155303955, -0.20987877249717712, 1.0679303407669067, 0.1334076076745987, 0.05005063861608505, -0.36143383383750916, -0.5784722566604614, 0.7202850580215454, -0.21509060263633728, 0.6209022998809814,...
func (s *GrpcServer) startGrpcService() { // Start listening for requests reflection.Register(s.server) logrus.Infof("%s gRPC Server ready on %s", s.name, s.Address()) waitForServer := make(chan bool) s.goServe(waitForServer) <-waitForServer s.running = true }
[ -0.6007429957389832, -0.5042089819908142, 0.37088510394096375, -0.4443199038505554, 0.7974483370780945, 0.5766712427139282, 0.24288558959960938, 0.2721502184867859, -0.39435499906539917, 0.19629061222076416, -0.8592373132705688, 1.2443716526031494, -0.5749267935752869, 0.3697611093521118, ...
func (s *GrpcServer) Stop() { s.lock.Lock() defer s.lock.Unlock() if !s.running { return } s.server.Stop() s.wg.Wait() s.running = false }
[ -1.4307880401611328, -0.3270849585533142, 0.10487144440412521, -0.37314561009407043, 0.5293722152709961, 0.5999428033828735, 0.5566105842590332, 0.36879050731658936, -0.7234082818031311, 0.5430029034614563, -0.4619387686252594, 0.48286178708076477, -1.7342239618301392, -0.08699648827314377...
func (s *GrpcServer) Address() string { return s.listener.Addr().String() }
[ -0.37945061922073364, -1.757327914237976, 0.7177401185035706, -0.4476013779640198, 0.11709696799516678, 1.3604873418807983, 0.22275839745998383, 0.4723915457725525, 0.9591460227966309, 0.36121413111686707, 0.638738214969635, 0.8290050029754639, -0.8490936160087585, 0.8753066062927246, 0....
func (s *GrpcServer) IsRunning() bool { s.lock.Lock() defer s.lock.Unlock() return s.running }
[ -1.2528316974639893, -0.25588035583496094, 0.38021889328956604, 0.06692641228437424, 0.5108031034469604, 0.04203290119767189, 0.07649417221546173, 0.2956567108631134, 0.3671695590019226, 0.5038068890571594, -0.7843864560127258, 0.9148905873298645, -1.8949743509292603, -0.8186071515083313, ...
func solve(board [][]byte) { // 并查集 //if len(board) == 0 { // return //} //m, n := len(board), len(board[0]) //parent, di, dj := make([]int, m*n+1), [4]int{-1, 0, 0, 1}, [4]int{0, -1, 1, 0} //for i, _ := range parent { // parent[i] = i //} //find := func(parent []int, p int) int { // for p != parent[p] { //...
[ 0.02672702446579933, 1.0800803899765015, 1.2906986474990845, 0.32200098037719727, -0.5833547711372375, -0.7354652881622314, 1.2645457983016968, -0.37695232033729553, 0.6515096426010132, 0.2816603183746338, -0.4923774302005768, -0.8093517422676086, -0.8158559203147888, 0.07458709925413132, ...
func StarLink(link ast.Node, star int) { if star < 1 { return } textBlock := link.Parent() starTxtNode := ast.NewText() starTxt := strings.Replace(fmt.Sprintf("<code>%6d</code>", star), " ", "&nbsp;", -1) starTxtNode.AppendChild(starTxtNode, ast.NewString([]byte(starTxt))) textBlock.InsertBefore(textBlock, l...
[ -0.25163692235946655, 0.14145484566688538, 0.6768044233322144, -0.8994444608688354, -1.1391135454177856, -0.49591585993766785, -0.2283080369234085, 1.4217627048492432, 0.3358270823955536, -0.4294266402721405, -0.3034283518791199, 0.7143951654434204, -0.5620642900466919, 1.2624902725219727,...
func IsFirstLinkInLine(link ast.Node) bool { isFirst := true prev := link.PreviousSibling() for prev != nil { if prev.Kind() == ast.KindLink { isFirst = false } prev = prev.PreviousSibling() } return isFirst }
[ 0.19989751279354095, -0.895118236541748, 0.8610625267028809, 0.022198382765054703, 0.36798974871635437, -0.8006760478019714, 0.027519581839442253, 0.39812159538269043, -0.16711054742336273, -0.6515141725540161, -0.13552741706371307, 0.7749605774879456, -0.538161039352417, 1.156878590583801...
func FindLinks(buf []byte, node ast.Node, links map[ast.Node]*url.URL) { if node.Kind() == ast.KindLink { astLink := node.(*ast.Link) l, ok := GetRepoValidLink(astLink) if ok { links[l.Node] = l.Url } } if node.HasChildren() { next := node.FirstChild() for next != nil { FindLinks(buf, next, links)...
[ -0.0763036236166954, 0.9059825539588928, 0.44343802332878113, -0.47172287106513977, 0.10275645554065704, -0.6934996843338013, -0.17158494889736176, 0.12556368112564087, -0.24670782685279846, -0.5598864555358887, -0.16438838839530945, 0.17964977025985718, -0.7368224859237671, 1.665213108062...
func FindLists(buf []byte, node ast.Node, lists chan *ast.List) { if node.Kind() == ast.KindList { astList := node.(*ast.List) lists <- astList } if node.HasChildren() { next := node.FirstChild() for next != nil { FindLists(buf, next, lists) next = next.NextSibling() } } }
[ 0.7587527632713318, 0.13169264793395996, 0.6626204252243042, -0.21577322483062744, -0.3706545829772949, 0.2742486298084259, 0.16630661487579346, -0.29571622610092163, 0.5123271346092224, 0.057200077921152115, -0.6484740972518921, 0.17644678056240082, -0.7406907081604004, 2.4676740169525146...
func (_m *EducationBackend) AddClassesToEducationSchool(ctx context.Context, schoolNumberOrID string, memberIDs []string) error { ret := _m.Called(ctx, schoolNumberOrID, memberIDs) var r0 error if rf, ok := ret.Get(0).(func(context.Context, string, []string) error); ok { r0 = rf(ctx, schoolNumberOrID, memberIDs) ...
[ -1.0207405090332031, -0.03756871446967125, 0.3656166195869446, 0.3012179732322693, 0.5139812231063843, -0.08162848651409149, 0.8207372426986694, -0.5773338675498962, -0.10401389002799988, -0.3277982771396637, -0.31613630056381226, -0.13556106388568878, 0.48218852281570435, 0.35612854361534...
func (_m *EducationBackend) AddTeacherToEducationClass(ctx context.Context, classID string, teacherID string) error { ret := _m.Called(ctx, classID, teacherID) var r0 error if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok { r0 = rf(ctx, classID, teacherID) } else { r0 = ret.Error(0) }...
[ -1.0793083906173706, 0.18658758699893951, 0.5618801116943359, 0.8822711706161499, -0.3515658378601074, 0.3373376429080963, 0.573781430721283, 0.7474436163902283, -0.04095885902643204, 0.4198659062385559, -0.024973168969154358, -0.07265980541706085, 0.012297664768993855, 1.2792497873306274,...
func (_m *EducationBackend) AddUsersToEducationSchool(ctx context.Context, schoolID string, memberID []string) error { ret := _m.Called(ctx, schoolID, memberID) var r0 error if rf, ok := ret.Get(0).(func(context.Context, string, []string) error); ok { r0 = rf(ctx, schoolID, memberID) } else { r0 = ret.Error(0)...
[ -0.04611784964799881, -0.1347375065088272, 0.38806068897247314, 0.7814105749130249, 0.2872925400733948, 0.550814688205719, 1.0997756719589233, 0.01328234188258648, 0.049370281398296356, 0.01979858987033367, -0.28200218081474304, 0.4693863093852997, -0.3758264183998108, 0.7832926511764526, ...
func (_m *EducationBackend) CreateEducationClass(ctx context.Context, class libregraph.EducationClass) (*libregraph.EducationClass, error) { ret := _m.Called(ctx, class) var r0 *libregraph.EducationClass var r1 error if rf, ok := ret.Get(0).(func(context.Context, libregraph.EducationClass) (*libregraph.EducationCl...
[ -0.7082110643386841, 0.3906450867652893, 0.35065126419067383, 0.5215159058570862, -0.5217845439910889, 0.26904088258743286, 0.7437392473220825, 0.23821836709976196, 0.665797770023346, -0.10202158242464066, -0.13268540799617767, -0.5927366614341736, 0.4470459222793579, 0.6947367787361145, ...
func (_m *EducationBackend) CreateEducationSchool(ctx context.Context, group libregraph.EducationSchool) (*libregraph.EducationSchool, error) { ret := _m.Called(ctx, group) var r0 *libregraph.EducationSchool var r1 error if rf, ok := ret.Get(0).(func(context.Context, libregraph.EducationSchool) (*libregraph.Educat...
[ -0.7956146597862244, 0.4247323274612427, 0.18725833296775818, 0.6545470952987671, 0.06579931825399399, 0.17043578624725342, 1.4313578605651855, -0.8564707636833191, 0.26628750562667847, -0.12625019252300262, -0.14644576609134674, -0.2757883369922638, 0.34217822551727295, 0.3777120411396026...
func (_m *EducationBackend) CreateEducationUser(ctx context.Context, user libregraph.EducationUser) (*libregraph.EducationUser, error) { ret := _m.Called(ctx, user) var r0 *libregraph.EducationUser var r1 error if rf, ok := ret.Get(0).(func(context.Context, libregraph.EducationUser) (*libregraph.EducationUser, err...
[ -0.7100148797035217, 0.3582404851913452, 0.4517897069454193, 1.099653959274292, -0.5706143379211426, 0.41538265347480774, 1.5326780080795288, -0.0749470442533493, 0.41522324085235596, -0.5401772856712341, -0.5483802556991577, -0.6360854506492615, 0.06090027838945389, 0.6711309552192688, ...
func (_m *EducationBackend) DeleteEducationClass(ctx context.Context, nameOrID string) error { ret := _m.Called(ctx, nameOrID) var r0 error if rf, ok := ret.Get(0).(func(context.Context, string) error); ok { r0 = rf(ctx, nameOrID) } else { r0 = ret.Error(0) } return r0 }
[ -0.9783945679664612, -0.2666068375110626, 0.7004766464233398, 0.4422372281551361, -1.2115097045898438, 0.2375335693359375, 0.3100265562534332, 0.6385535597801208, 0.5423149466514587, -0.11910893768072128, -0.8128293752670288, -0.6464079022407532, 0.18735937774181366, 1.3098634481430054, ...
func (_m *EducationBackend) DeleteEducationSchool(ctx context.Context, id string) error { ret := _m.Called(ctx, id) var r0 error if rf, ok := ret.Get(0).(func(context.Context, string) error); ok { r0 = rf(ctx, id) } else { r0 = ret.Error(0) } return r0 }
[ -0.4138721227645874, -0.39150649309158325, 0.3547022342681885, 0.6717935800552368, 0.014252979308366776, 0.34344616532325745, 1.0538607835769653, 0.03945603594183922, 0.9961615800857544, -0.4481779634952545, -0.40309202671051025, -0.002551633631810546, 0.5601763129234314, 0.334484905004501...
func (_m *EducationBackend) DeleteEducationUser(ctx context.Context, nameOrID string) error { ret := _m.Called(ctx, nameOrID) var r0 error if rf, ok := ret.Get(0).(func(context.Context, string) error); ok { r0 = rf(ctx, nameOrID) } else { r0 = ret.Error(0) } return r0 }
[ -1.0264934301376343, -0.34958019852638245, 0.8131936192512512, 0.6812090277671814, -1.3554552793502808, 0.14702853560447693, 1.0430158376693726, 0.14537003636360168, 0.47838330268859863, -0.2695278227329254, -1.0685735940933228, -0.8403655290603638, 0.01731988787651062, 1.2179349660873413,...
func (_m *EducationBackend) GetEducationClass(ctx context.Context, namedOrID string) (*libregraph.EducationClass, error) { ret := _m.Called(ctx, namedOrID) var r0 *libregraph.EducationClass var r1 error if rf, ok := ret.Get(0).(func(context.Context, string) (*libregraph.EducationClass, error)); ok { return rf(ct...
[ -0.7839929461479187, -0.026078494265675545, 0.5762933492660522, 0.14668424427509308, -0.9538072943687439, -0.1680135279893875, 0.4725141227245331, -0.18459905683994293, 0.370168000459671, -0.30577635765075684, -0.42110422253608704, 0.14326626062393188, 0.771201491355896, 1.0861469507217407...
func (_m *EducationBackend) GetEducationClassMembers(ctx context.Context, nameOrID string) ([]*libregraph.EducationUser, error) { ret := _m.Called(ctx, nameOrID) var r0 []*libregraph.EducationUser var r1 error if rf, ok := ret.Get(0).(func(context.Context, string) ([]*libregraph.EducationUser, error)); ok { retu...
[ -1.2325564622879028, -0.1919797658920288, 0.511444628238678, 0.37899839878082275, -0.8042892217636108, -0.012891575694084167, 0.008105178363621235, -0.3360016644001007, 0.2203199714422226, -0.2848832607269287, -0.6009548306465149, 0.012964844703674316, 0.2766133248806, 0.6384320259094238, ...
func (_m *EducationBackend) GetEducationClassTeachers(ctx context.Context, classID string) ([]*libregraph.EducationUser, error) { ret := _m.Called(ctx, classID) var r0 []*libregraph.EducationUser var r1 error if rf, ok := ret.Get(0).(func(context.Context, string) ([]*libregraph.EducationUser, error)); ok { retur...
[ -1.1675870418548584, 0.11235901713371277, 0.5750761032104492, 0.6704384088516235, -0.4738423228263855, -0.22838366031646729, 1.0389434099197388, -0.21435189247131348, 0.61896151304245, 0.4110864996910095, -0.2145736962556839, 0.12422602623701096, -0.005163203459233046, 1.072014570236206, ...
func (_m *EducationBackend) GetEducationClasses(ctx context.Context) ([]*libregraph.EducationClass, error) { ret := _m.Called(ctx) var r0 []*libregraph.EducationClass var r1 error if rf, ok := ret.Get(0).(func(context.Context) ([]*libregraph.EducationClass, error)); ok { return rf(ctx) } if rf, ok := ret.Get(0...
[ -1.202389121055603, 0.7489624619483948, 0.5946418642997742, 0.8154377341270447, -0.669624388217926, 0.3733425736427307, 0.7328780293464661, -0.04658970609307289, 0.3609241545200348, -0.25170454382896423, -0.24859042465686798, 0.09644442051649094, 0.36113467812538147, 1.0392240285873413, ...
func (_m *EducationBackend) GetEducationSchool(ctx context.Context, nameOrID string) (*libregraph.EducationSchool, error) { ret := _m.Called(ctx, nameOrID) var r0 *libregraph.EducationSchool var r1 error if rf, ok := ret.Get(0).(func(context.Context, string) (*libregraph.EducationSchool, error)); ok { return rf(...
[ -0.7247013449668884, -0.2941385507583618, 0.4346548318862915, -0.016021575778722763, -0.455666184425354, -0.31377729773521423, 0.9151703715324402, -0.9176847338676453, 0.6048747897148132, -0.11558445543050766, -0.6901604533195496, 0.200005441904068, 0.8089166283607483, 0.40345850586891174,...
func (_m *EducationBackend) GetEducationSchoolClasses(ctx context.Context, schoolNumberOrID string) ([]*libregraph.EducationClass, error) { ret := _m.Called(ctx, schoolNumberOrID) var r0 []*libregraph.EducationClass var r1 error if rf, ok := ret.Get(0).(func(context.Context, string) ([]*libregraph.EducationClass, ...
[ -1.0786107778549194, 0.21571862697601318, 0.5689176917076111, 1.0214998722076416, -0.31950002908706665, -0.16577674448490143, 0.8714157938957214, -0.6784290075302124, 0.5625508427619934, -0.40753069519996643, -0.09306465089321136, -0.2987454831600189, 0.5039414763450623, 0.9489137530326843...
func (_m *EducationBackend) GetEducationSchoolUsers(ctx context.Context, id string) ([]*libregraph.EducationUser, error) { ret := _m.Called(ctx, id) var r0 []*libregraph.EducationUser var r1 error if rf, ok := ret.Get(0).(func(context.Context, string) ([]*libregraph.EducationUser, error)); ok { return rf(ctx, id...
[ -1.1119552850723267, 0.07942533493041992, 0.5454707741737366, 0.935579240322113, -0.612826943397522, -0.11811775714159012, 1.1393824815750122, -0.5599928498268127, 0.4137358069419861, -0.1472397744655609, -0.5823944807052612, 0.06913205236196518, 0.23808559775352478, 0.4965653419494629, ...
func (_m *EducationBackend) GetEducationSchools(ctx context.Context) ([]*libregraph.EducationSchool, error) { ret := _m.Called(ctx) var r0 []*libregraph.EducationSchool var r1 error if rf, ok := ret.Get(0).(func(context.Context) ([]*libregraph.EducationSchool, error)); ok { return rf(ctx) } if rf, ok := ret.Ge...
[ -1.2119953632354736, 0.6930813789367676, 0.448813259601593, 0.6478711366653442, -0.08523683249950409, 0.3512084484100342, 1.5252705812454224, -1.0574949979782104, 0.39328140020370483, -0.16039738059043884, -0.19963805377483368, -0.4743579924106598, 0.4816785454750061, 0.23946917057037354, ...