text
stringlengths
11
6.3k
embedding
listlengths
768
768
func CompareAllocatableResources(expected, got map[string]corev1.ResourceList) (string, string, int, bool) { if len(got) != len(expected) { framework.Logf("-> expected=%v (len=%d) got=%v (len=%d)", expected, len(expected), got, len(got)) return "", "", 0, false } for expZoneName, expResList := range expected { ...
[ 0.40899136662483215, -0.9575438499450684, 0.3844972550868988, -0.5654560923576355, -0.6160144209861755, -0.062426816672086716, 0.28227469325065613, 0.36534416675567627, 0.41680189967155457, 0.6940077543258667, -0.09760399162769318, -0.32897382974624634, -0.24379026889801025, 0.803924977779...
func CompareResourceList(expected, got corev1.ResourceList) (string, int, bool) { if len(got) != len(expected) { framework.Logf("-> expected=%v (len=%d) got=%v (len=%d)", expected, len(expected), got, len(got)) return "", 0, false } for expResName, expResQty := range expected { gotResQty, ok := got[expResName]...
[ -0.3730860948562622, -1.0831817388534546, 0.4269089698791504, -1.1888176202774048, -0.11519911140203476, -0.31655004620552063, 0.18887683749198914, -0.40261492133140564, 0.10563945025205612, 0.854439377784729, -0.5186313390731812, -0.2054247260093689, -0.0163918174803257, 0.986272215843200...
func IsValidNodeTopology(nodeTopology *v1alpha2.NodeResourceTopology, kubeletConfig *kubeletconfig.KubeletConfiguration) bool { if nodeTopology == nil || len(nodeTopology.TopologyPolicies) == 0 { framework.Logf("failed to get topology policy from the node topology resource") return false } tmPolicy := string(to...
[ -0.529568076133728, -0.33992287516593933, 0.570358157157898, -0.3593648374080658, 0.15550453960895538, 0.5340589284896851, 0.5179287791252136, -0.6356394290924072, 0.3696804642677307, 0.39164653420448303, 0.5742279291152954, -0.4584575295448303, 0.032108183950185776, 0.744020402431488, 0...
func ParseSoftwareAttribute(r *read.BigEndian, l uint16) (SoftwareAttribute, error) { sw, err := Read127CharString(r, l) return SoftwareAttribute{sw}, err }
[ 0.618841290473938, 0.5762771964073181, 0.18167385458946228, 0.14169885218143463, -1.0917242765426636, -0.6446517109870911, 0.110430046916008, -0.008898785337805748, 0.6578488349914551, -0.03531951457262039, 0.22499610483646393, -0.4207368493080139, -0.6820797920227051, 0.6453654170036316, ...
func Bool(i interface{}) bool { if i == nil { return false } if v, ok := i.(bool); ok { return v } if s, ok := i.(string); ok { if _, ok := emptyStringMap[s]; ok { return false } return true } rv := reflect.ValueOf(i) switch rv.Kind() {...
[ -0.5652920007705688, -0.3013271689414978, 0.5119228363037109, -0.24882452189922333, -0.703328013420105, 0.3394288420677185, 1.1119940280914307, 0.24998784065246582, 0.49352630972862244, -0.035421986132860184, -0.4380491077899933, 0.34850311279296875, -0.176115944981575, -0.2156431674957275...
func SetGlobalBalancer(scheme string, builder selector.Builder) { mu.Lock() defer mu.Unlock() b := base.NewBalancerBuilder( scheme, &Builder{builder: builder}, base.Config{HealthCheck: true}, ) gBalancer.Register(b) }
[ 0.4628818929195404, 0.6868045330047607, 0.5645264983177185, 0.832533597946167, 0.4278441369533539, 1.294935703277588, 0.17837058007717133, -0.19189570844173431, 0.06994625180959702, 0.4178610146045685, -1.0320632457733154, 0.5631703734397888, -0.8701367378234863, 1.7718876600265503, 0.81...
func (b *Builder) Build(info base.PickerBuildInfo) gBalancer.Picker { if len(info.ReadySCs) == 0 { // Block the RPC until a new picker is available via UpdateState(). return base.NewErrPicker(gBalancer.ErrNoSubConnAvailable) } nodes := make([]selector.Node, 0) for conn, info := range info.ReadySCs { ins, _ :...
[ -0.9994109272956848, -0.32204383611679077, 0.568769633769989, -0.42210984230041504, 0.37871748208999634, 0.03166534751653671, 0.6838504076004028, 0.16290664672851562, -0.3287111520767212, -0.13599920272827148, 0.20830662548542023, 0.3224124312400818, -0.3596585690975189, 0.0887541994452476...
func (t Trailer) Get(k string) string { v := metadata.MD(t).Get(k) if len(v) > 0 { return v[0] } return "" }
[ -0.38447698950767517, -0.21009525656700134, 0.5408937335014343, -0.5527560114860535, 0.22904379665851593, -0.21467293798923492, -1.727180004119873, -0.3533528447151184, -1.1032062768936157, 0.8246047496795654, 0.7028495073318481, -0.09094390273094177, 0.4230550229549408, -0.495768368244171...
func Params(params ...) []ParamValue { pStruct := reflect.NewValue(params).(*reflect.StructValue) par := make([]ParamValue, pStruct.NumField()) for n := 0; n < len(par); n++ { par[n] = param(pStruct.Field(n)) } return par }
[ -0.8351377844810486, 0.019687913358211517, 0.6230860948562622, 0.24120192229747772, 0.1228228509426117, 0.7437609434127808, -0.49953848123550415, 0.07218229025602341, -0.8037534952163696, -0.21834136545658112, -0.31952565908432007, 0.5080152153968811, 0.0258313175290823, 0.4572761356830597...
func (*MetricSpec) Descriptor() ([]byte, []int) { return file_api_adaptive_load_metric_spec_proto_rawDescGZIP(), []int{0} }
[ 0.48898062109947205, 0.49207380414009094, 0.21620556712150574, -0.7690548896789551, -0.33441370725631714, 0.06663024425506592, 0.6043564081192017, 0.15441089868545532, -1.3332992792129517, 0.1982010155916214, -0.8122923374176025, 0.07443810999393463, 0.708358108997345, -0.03365684300661087...
func (*ThresholdSpec) Descriptor() ([]byte, []int) { return file_api_adaptive_load_metric_spec_proto_rawDescGZIP(), []int{1} }
[ 0.9576370716094971, 0.41351762413978577, 0.24156463146209717, -0.5508290529251099, -0.4123148024082184, 0.20797637104988098, 0.8084362745285034, -0.4250299334526062, -1.3802469968795776, 0.2643457353115082, -0.5636482834815979, 0.44322818517684937, 0.7664983868598938, 0.234294131398201, ...
func (*MetricSpecWithThreshold) Descriptor() ([]byte, []int) { return file_api_adaptive_load_metric_spec_proto_rawDescGZIP(), []int{2} }
[ 1.0497702360153198, 0.5112627148628235, 0.20289480686187744, -0.44652819633483887, -0.047154124826192856, -0.22870853543281555, 0.33469653129577637, -0.8824014067649841, -0.7340813279151917, 0.44597235321998596, -0.6641974449157715, -0.1593908816576004, 1.3669469356536865, -0.5249437093734...
func greeting(name string) string { return "Hello" + name }
[ -0.06280666589736938, 0.2974623739719391, 0.4328153133392334, -0.13322502374649048, -1.4409573078155518, 1.1967326402664185, -1.4464607238769531, -0.23452840745449066, -0.29877275228500366, 0.28036245703697205, -0.7388565540313721, -0.46683675050735474, 0.16994540393352509, 0.2528016269207...
func (*Scorecard) Descriptor() ([]byte, []int) { return file_google_monitoring_dashboard_v1_scorecard_proto_rawDescGZIP(), []int{0} }
[ -0.48395130038261414, 0.8070018291473389, 0.6782233715057373, -0.3496943712234497, 0.24441954493522644, 0.06530189514160156, 1.2684190273284912, 0.33093366026878357, -0.4833095669746399, 0.007625280413776636, -0.42482420802116394, 0.30691054463386536, -0.22204522788524628, 0.87095147371292...
func (*Scorecard_GaugeView) Descriptor() ([]byte, []int) { return file_google_monitoring_dashboard_v1_scorecard_proto_rawDescGZIP(), []int{0, 0} }
[ -0.9958328008651733, 0.9260901808738708, 0.3103616535663605, -0.2802639901638031, -0.21823452413082123, -0.3164684474468231, 0.15530726313591003, -0.8332837820053101, -1.617887020111084, 0.25803038477897644, 0.873371958732605, 0.06852655857801437, -0.7518060803413391, 0.500394344329834, ...
func (*Scorecard_SparkChartView) Descriptor() ([]byte, []int) { return file_google_monitoring_dashboard_v1_scorecard_proto_rawDescGZIP(), []int{0, 1} }
[ 0.07439666986465454, 0.19731126725673676, 0.36349770426750183, 0.11762867867946625, -0.47014978528022766, -1.0770151615142822, 0.5776470899581909, -0.1952265501022339, -0.6225464344024658, -1.3070026636123657, -0.22223539650440216, 0.42088833451271057, -0.1570684313774109, -0.1606425195932...
func (in *AESConfiguration) DeepCopyInto(out *AESConfiguration) { *out = *in if in.Keys != nil { in, out := &in.Keys, &out.Keys *out = make([]Key, len(*in)) copy(*out, *in) } return }
[ -0.21866023540496826, 0.3972465693950653, 0.5693079829216003, -0.25932303071022034, -0.7625269889831543, 0.009125366806983948, 0.06910596042871475, 0.5588399171829224, -0.7342984676361084, 0.5919078588485718, -1.0619642734527588, 0.4050128161907196, 0.26199111342430115, -0.5502910614013672...
func (in *AESConfiguration) DeepCopy() *AESConfiguration { if in == nil { return nil } out := new(AESConfiguration) in.DeepCopyInto(out) return out }
[ -0.8422161936759949, 0.3288331925868988, 0.15491662919521332, 0.21372969448566437, -0.3493245542049408, -0.5649227499961853, 0.438605397939682, -0.49231380224227905, 0.5236935019493103, 0.33372926712036133, -0.8214303851127625, -0.24161647260189056, 0.18584290146827698, -0.5033130645751953...
func (in *EncryptionConfiguration) DeepCopyInto(out *EncryptionConfiguration) { *out = *in out.TypeMeta = in.TypeMeta if in.Resources != nil { in, out := &in.Resources, &out.Resources *out = make([]ResourceConfiguration, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return }
[ -0.2219887226819992, 0.16333794593811035, 0.5375576615333557, 0.0066453153267502785, -0.5553774833679199, 0.345124214887619, 0.15955406427383423, 0.3158554434776306, -1.0786172151565552, 0.46607497334480286, -0.8743098378181458, 0.4212699830532074, -0.2763899862766266, -0.4406879246234894,...
func (in *EncryptionConfiguration) DeepCopy() *EncryptionConfiguration { if in == nil { return nil } out := new(EncryptionConfiguration) in.DeepCopyInto(out) return out }
[ -1.0015454292297363, 0.5998321771621704, 0.17553000152111053, 0.4927701950073242, -0.6797823309898376, -0.2945029139518738, 0.3318593204021454, -0.5885234475135803, 0.22009631991386414, 0.42639976739883423, -1.256109595298767, -0.07065971195697784, -0.4948997497558594, -0.39319971203804016...
func (in *EncryptionConfiguration) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ -0.6996933817863464, 0.04365875944495201, 0.5245606899261475, 0.26163995265960693, -0.6915559768676758, 0.7621736526489258, 0.9560791850090027, -0.23006927967071533, -0.3735520839691162, 0.027434635907411575, -0.9917526245117188, -0.2482416331768036, -0.2641974687576294, -0.433432579040527...
func (in *IdentityConfiguration) DeepCopyInto(out *IdentityConfiguration) { *out = *in return }
[ -0.19292335212230682, 0.07464615255594254, 0.3555830121040344, -0.014753833413124084, -0.8473858833312988, 0.31072404980659485, 0.39367368817329407, 0.7234978079795837, -0.6015711426734924, -0.137894406914711, -1.5425699949264526, 0.6469464302062988, -0.0605698861181736, -0.411605745553970...
func (in *IdentityConfiguration) DeepCopy() *IdentityConfiguration { if in == nil { return nil } out := new(IdentityConfiguration) in.DeepCopyInto(out) return out }
[ -1.3106497526168823, -0.10842954367399216, 0.2409685254096985, 0.33039066195487976, -0.31117069721221924, -0.49123474955558777, 0.3715764284133911, -0.4241501986980438, 0.5208362340927124, 0.36335402727127075, -1.1738094091415405, -0.3703209459781647, -0.8562608361244202, -0.08977956324815...
func (in *KMSConfiguration) DeepCopyInto(out *KMSConfiguration) { *out = *in if in.CacheSize != nil { in, out := &in.CacheSize, &out.CacheSize *out = new(int32) **out = **in } if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout *out = new(v1.Duration) **out = **in } return }
[ 0.19218140840530396, 0.6019306778907776, 0.6470990777015686, 0.1266775280237198, -0.9550853967666626, -0.13748516142368317, -0.24663397669792175, 0.3388846516609192, -0.6824752688407898, 0.2144835889339447, -1.1510661840438843, 0.6502446532249451, -0.0459003672003746, -0.12530368566513062,...
func (in *KMSConfiguration) DeepCopy() *KMSConfiguration { if in == nil { return nil } out := new(KMSConfiguration) in.DeepCopyInto(out) return out }
[ -0.6975777745246887, 0.20009185373783112, 0.3833118975162506, 0.2185155153274536, -0.6843545436859131, -1.0206655263900757, -0.14848466217517853, -0.3172876536846161, 0.4813069701194763, 0.11988745629787445, -1.0319457054138184, -0.6759559512138367, -0.3390474021434784, -0.2292685210704803...
func (in *Key) DeepCopyInto(out *Key) { *out = *in return }
[ -0.06788769364356995, 0.11823315173387527, 0.6071104407310486, 0.28063419461250305, -1.1532503366470337, 0.5954588651657104, -0.19350101053714752, 1.1133193969726562, -1.5270105600357056, 0.038872238248586655, -0.9593750834465027, 1.0584673881530762, -0.13005219399929047, -0.29889342188835...
func (in *Key) DeepCopy() *Key { if in == nil { return nil } out := new(Key) in.DeepCopyInto(out) return out }
[ -0.5227815508842468, 0.4598639905452728, 0.3536316454410553, 1.390335202217102, -0.4936392605304718, 0.2539464831352234, 0.047986678779125214, 0.3861550986766815, -0.6559820771217346, 0.0020530950278043747, -0.19093984365463257, 0.2686288356781006, -1.0454803705215454, -0.6170836687088013,...
func (in *ProviderConfiguration) DeepCopyInto(out *ProviderConfiguration) { *out = *in if in.AESGCM != nil { in, out := &in.AESGCM, &out.AESGCM *out = new(AESConfiguration) (*in).DeepCopyInto(*out) } if in.AESCBC != nil { in, out := &in.AESCBC, &out.AESCBC *out = new(AESConfiguration) (*in).DeepCopyInto...
[ -0.3606819212436676, 0.13067518174648285, 0.5976995229721069, 0.2238173633813858, -0.6712015867233276, 0.15713152289390564, -0.08420460671186447, 0.47070249915122986, -0.18624486029148102, 0.03953227773308754, -0.9528191685676575, 0.29640457034111023, -0.28695300221443176, 0.16995055973529...
func (in *ProviderConfiguration) DeepCopy() *ProviderConfiguration { if in == nil { return nil } out := new(ProviderConfiguration) in.DeepCopyInto(out) return out }
[ -1.235103964805603, 0.4354502558708191, 0.14163082838058472, 0.3609813153743744, -0.37829238176345825, 0.09914138168096542, 0.27679139375686646, 0.0007324506295844913, 0.3706268072128296, -0.02513040415942669, -0.8963584899902344, 0.17303083837032318, -0.6585724353790283, -0.09017110615968...
func (in *ResourceConfiguration) DeepCopyInto(out *ResourceConfiguration) { *out = *in if in.Resources != nil { in, out := &in.Resources, &out.Resources *out = make([]string, len(*in)) copy(*out, *in) } if in.Providers != nil { in, out := &in.Providers, &out.Providers *out = make([]ProviderConfiguration, ...
[ -0.11340883374214172, -0.03433191776275635, 0.556042492389679, -0.47894591093063354, -0.6469634175300598, -0.07363540679216385, -0.013543376699090004, 0.7124741673469543, -0.7831059694290161, 0.11286468058824539, -0.7939739227294922, 0.31829389929771423, -0.11891786754131317, -0.3347729146...
func (in *ResourceConfiguration) DeepCopy() *ResourceConfiguration { if in == nil { return nil } out := new(ResourceConfiguration) in.DeepCopyInto(out) return out }
[ -0.7932860255241394, 0.15635618567466736, 0.16819414496421814, -0.3345898687839508, -0.404170960187912, -0.5897027254104614, 0.7079603672027588, -0.3697862923145294, 0.16396738588809967, -0.14681224524974823, -1.0802550315856934, -0.39330559968948364, -0.6940941214561462, -0.34806612133979...
func (in *SecretboxConfiguration) DeepCopyInto(out *SecretboxConfiguration) { *out = *in if in.Keys != nil { in, out := &in.Keys, &out.Keys *out = make([]Key, len(*in)) copy(*out, *in) } return }
[ -0.17811493575572968, 0.365291953086853, 0.5830305814743042, 0.004498379770666361, -0.816896915435791, 0.2505190670490265, -0.3282445967197418, 0.9994544386863708, -1.191530704498291, -0.08991990983486176, -1.3939216136932373, 0.7713653445243835, -0.49365586042404175, -0.485211044549942, ...
func (in *SecretboxConfiguration) DeepCopy() *SecretboxConfiguration { if in == nil { return nil } out := new(SecretboxConfiguration) in.DeepCopyInto(out) return out }
[ -0.3472595512866974, 0.5458856225013733, 0.11824913322925568, 0.7037886381149292, -0.47160810232162476, 0.1570299118757248, -0.12582401931285858, 0.5651302337646484, 0.16974125802516937, -0.49471041560173035, -1.742207407951355, 0.22336837649345398, -0.9783701300621033, -0.0957869365811348...
func (r *Response) IsOk() bool { return r.Code == ok }
[ -0.12094268202781677, -0.3101167678833008, 0.35249581933021545, 0.26846855878829956, 0.31083306670188904, -0.379908949136734, 0.8020954132080078, -0.444129079580307, 0.49562034010887146, 0.8602046966552734, -0.48971766233444214, -0.19704675674438477, -0.1405160278081894, -0.653784692287445...
func (*SyncLocationReq) Descriptor() ([]byte, []int) { return file_Assigneer_Assigneer_proto_rawDescGZIP(), []int{0} }
[ -0.9902209043502808, -0.6817207336425781, 0.5794411897659302, 0.6681590676307678, 0.3094252943992615, -0.20074905455112457, 1.1485178470611572, 1.3484104871749878, -0.42615774273872375, -0.21503889560699463, -0.07942922413349152, 0.5694021582603455, 0.9556688666343689, 0.7354829907417297, ...
func (*SyncLocationRsp) Descriptor() ([]byte, []int) { return file_Assigneer_Assigneer_proto_rawDescGZIP(), []int{1} }
[ -0.014863266609609127, -0.7512602806091309, 0.21680328249931335, 0.29841098189353943, 0.05069225654006004, -0.4242466688156128, 0.40163761377334595, 0.5511242747306824, 0.16416846215724945, 0.26050835847854614, -0.07510596513748169, 0.16311310231685638, 0.10542049258947372, 0.2158869057893...
func (*RemoveKeeperReq) Descriptor() ([]byte, []int) { return file_Assigneer_Assigneer_proto_rawDescGZIP(), []int{2} }
[ -1.5936325788497925, -0.3802473545074463, 0.7904495596885681, 0.21896210312843323, 0.08506894111633301, -0.33173054456710815, 1.122449278831482, 1.9156091213226318, -1.1920640468597412, -0.3345654308795929, -0.5862727165222168, -0.43922150135040283, -0.19073176383972168, 1.4148614406585693...
func (*AddKeeperReq) Descriptor() ([]byte, []int) { return file_Assigneer_Assigneer_proto_rawDescGZIP(), []int{3} }
[ -1.3879488706588745, -0.1848152130842209, 0.8333722352981567, 0.22201643884181976, 0.4945516288280487, 0.34585097432136536, 0.5247514843940735, 1.1973483562469482, -1.3116146326065063, -0.9499179720878601, 0.01834302395582199, -0.19331303238868713, -0.28074052929878235, 1.9358246326446533,...
func (*AssignAck) Descriptor() ([]byte, []int) { return file_Assigneer_Assigneer_proto_rawDescGZIP(), []int{4} }
[ -0.8779290318489075, 0.5414231419563293, 0.6103692054748535, -0.3921956419944763, 0.137801393866539, 0.1655007004737854, 1.128949522972107, -0.14580999314785004, -0.06785898655653, 0.3613346815109253, 0.352652907371521, 0.04561193659901619, 0.42920610308647156, 0.9825973510742188, 0.2980...
func (*SwitchKeeperReq) Descriptor() ([]byte, []int) { return file_Assigneer_Assigneer_proto_rawDescGZIP(), []int{5} }
[ -1.2951747179031372, 0.01038906630128622, 0.9073007702827454, 0.47250261902809143, 0.4438897371292114, 0.1488676816225052, 0.6254813075065613, 1.5003128051757812, -1.180181860923767, -0.7685731053352356, -0.13555242121219635, -0.14703921973705292, -0.09850288927555084, 1.3777732849121094, ...
func (*SwitchKeeperRsp) Descriptor() ([]byte, []int) { return file_Assigneer_Assigneer_proto_rawDescGZIP(), []int{6} }
[ 0.11895351111888885, -0.1774730384349823, 0.5606728792190552, 0.19861187040805817, 0.32028692960739136, 0.2788501977920532, -0.11328989267349243, 0.5535264015197754, -0.4679291844367981, -0.14906178414821625, -0.19989433884620667, -0.5394673943519592, -0.8022794723510742, 0.541068196296691...
func (*ClusterReq) Descriptor() ([]byte, []int) { return file_Assigneer_Assigneer_proto_rawDescGZIP(), []int{7} }
[ -1.4271090030670166, 0.714300274848938, 0.6839357018470764, 0.1098465770483017, 0.1655247062444687, -0.2970218062400818, 0.20647655427455902, 0.8676072359085083, -0.47295257449150085, 0.09412271529436111, 0.29180288314819336, 1.4583197832107544, 0.20366016030311584, 0.6852738857269287, 0...
func (*ClusterRsp) Descriptor() ([]byte, []int) { return file_Assigneer_Assigneer_proto_rawDescGZIP(), []int{8} }
[ -0.06907695531845093, 0.34418830275535583, 0.09873410314321518, -0.2832685112953186, 0.1307569444179535, -0.31265249848365784, -0.24144801497459412, 0.062255896627902985, 0.4141460955142975, 0.45548030734062195, -0.2306877076625824, 0.5857786536216736, -0.8366219997406006, -0.0877499356865...
func (*RegisterNodeReq) Descriptor() ([]byte, []int) { return file_Assigneer_Assigneer_proto_rawDescGZIP(), []int{9} }
[ -1.9979532957077026, 0.906416654586792, 0.4719198942184448, -0.04832277074456215, 1.1196060180664062, -0.6824724078178406, 0.43645521998405457, 0.865569531917572, -1.4146320819854736, -0.32192447781562805, -0.9536359906196594, 0.7258144021034241, -0.1733628511428833, 1.4387664794921875, ...
func (*RegisterNodeRsp) Descriptor() ([]byte, []int) { return file_Assigneer_Assigneer_proto_rawDescGZIP(), []int{10} }
[ -0.8377150297164917, 1.1226372718811035, 0.0742463767528534, -0.08823524415493011, 0.10603056102991104, -0.7971433997154236, -0.25176626443862915, -0.4058370590209961, -0.41881465911865234, 0.06484710425138474, -0.3688502311706543, 0.8990580439567566, -0.4508886933326721, 0.999592542648315...
func (this *Codec) serialize(root *TreeNode) string { this.s(root) return "[" + strings.Join(this.data, ",") + "]" }
[ -0.2885468900203705, -0.6371912956237793, 0.7258330583572388, -0.9488539695739746, -0.2609231770038605, -0.33583369851112366, -0.9997709393501282, -0.20647762715816498, 0.30253201723098755, -0.21312738955020905, -0.6963698863983154, 1.6029714345932007, -0.3701172471046448, 0.85463744401931...
func (this *Codec) deserialize(data string) *TreeNode { data = data[1 : len(data)-1] this.data = strings.Split(data, ",") n := this.d() return n }
[ -0.29825857281684875, 0.2735487222671509, 0.671019434928894, -0.8479161858558655, -0.6926512718200684, -1.3060450553894043, -0.6746827960014343, 0.31439656019210815, 0.227840393781662, -1.2070984840393066, -0.6462689638137817, 0.7061829566955566, -1.3673937320709229, -0.6862111687660217, ...
func EvalDo(env Env, seq Sequence) (res Value, err error) { res = Nil for !seq.Empty() { // Not a tail call in this position t, ok := res.(TailCall) if ok == true { res, err = t.Return() if err != nil { return } } res, err = seq.Head().Eval(env) if err != nil { return } seq = seq.Tail...
[ 0.4501831829547882, 0.2612643539905548, 0.8033422827720642, -0.5894356966018677, 0.18634586036205292, -0.2813591957092285, -0.9422405362129211, 0.26296576857566833, -0.1983959823846817, 1.0420594215393066, -0.7046647071838379, 0.43313896656036377, -0.019265038892626762, 1.1038302183151245,...
func (HealthMenstruationPersonalInfoORM) TableName() string { return "health_menstruation_personal_infos" }
[ 0.054337646812200546, -0.734767496585846, 0.6208062171936035, 0.642005443572998, 0.12016064673662186, 0.33731070160865784, 0.23396709561347961, 0.28022703528404236, -1.067779779434204, -1.0436012744903564, 0.3259243667125702, -0.10408557206392288, 0.9449254870414734, 0.5645030736923218, ...
func (m *HealthMenstruationPersonalInfo) ToORM(ctx context.Context) (HealthMenstruationPersonalInfoORM, error) { to := HealthMenstruationPersonalInfoORM{} var err error if prehook, ok := interface{}(m).(HealthMenstruationPersonalInfoWithBeforeToORM); ok { if err = prehook.BeforeToORM(ctx, &to); err != nil { ret...
[ -0.27960556745529175, -0.3727499842643738, 0.9844542741775513, -0.15872465074062347, 0.189165398478508, 0.10450828820466995, 0.36291399598121643, -0.7246882915496826, -0.22108347713947296, -0.8687436580657959, 0.20711253583431244, -0.2579343616962433, -0.14201116561889648, 0.31999924778938...
func (m *HealthMenstruationPersonalInfoORM) ToPB(ctx context.Context) (HealthMenstruationPersonalInfo, error) { to := HealthMenstruationPersonalInfo{} var err error if prehook, ok := interface{}(m).(HealthMenstruationPersonalInfoWithBeforeToPB); ok { if err = prehook.BeforeToPB(ctx, &to); err != nil { return to...
[ -0.5623096823692322, -0.2795741856098175, 1.1357015371322632, 0.2540367543697357, 0.0689963549375534, 0.6920608282089233, 0.6350558400154114, -0.7687252759933472, -0.049735698848962784, -0.8012728691101074, 0.571380615234375, -0.19768700003623962, 0.08444841206073761, 0.3220125436782837, ...
func (HealthMenstruationDailyEntryORM) TableName() string { return "health_menstruation_daily_entries" }
[ -0.07403618842363358, -0.5023711919784546, 0.5201621055603027, 0.8240444660186768, 0.6376389861106873, 0.1408550888299942, 0.6597357392311096, 0.710581362247467, -0.8997180461883545, -0.40900981426239014, 0.690479040145874, -0.25984030961990356, 0.9144969582557678, 0.8066161870956421, 0....
func (m *HealthMenstruationDailyEntry) ToORM(ctx context.Context) (HealthMenstruationDailyEntryORM, error) { to := HealthMenstruationDailyEntryORM{} var err error if prehook, ok := interface{}(m).(HealthMenstruationDailyEntryWithBeforeToORM); ok { if err = prehook.BeforeToORM(ctx, &to); err != nil { return to, ...
[ -0.2418312281370163, -0.37516433000564575, 0.7927568554878235, 0.03746304288506508, 0.6559821367263794, -0.2015550434589386, 0.6214460730552673, -0.7449725866317749, 0.09560281783342361, -0.050668440759181976, 0.6153679490089417, -0.6762524843215942, -0.08453664183616638, 0.545765280723571...
func (m *HealthMenstruationDailyEntryORM) ToPB(ctx context.Context) (HealthMenstruationDailyEntry, error) { to := HealthMenstruationDailyEntry{} var err error if prehook, ok := interface{}(m).(HealthMenstruationDailyEntryWithBeforeToPB); ok { if err = prehook.BeforeToPB(ctx, &to); err != nil { return to, err ...
[ -0.4234377443790436, -0.3506787121295929, 0.9835017323493958, 0.46099546551704407, 0.4919971823692322, 0.40393710136413574, 0.9419434070587158, -0.5052494406700134, -0.09231627732515335, -0.025770023465156555, 1.0809060335159302, -0.5637885332107544, 0.16327643394470215, 0.477810263633728,...
func DefaultCreateHealthMenstruationPersonalInfo(ctx context.Context, in *HealthMenstruationPersonalInfo, db *gorm1.DB) (*HealthMenstruationPersonalInfo, error) { if in == nil { return nil, errors1.NilArgumentError } ormObj, err := in.ToORM(ctx) if err != nil { return nil, err } if hook, ok := interface{}(&or...
[ -0.676820695400238, -0.530863344669342, 0.5393467545509338, -0.03074231930077076, 0.41674086451530457, 0.836423397064209, 0.344846248626709, -0.717017412185669, -0.9027765989303589, -0.9797809720039368, -0.3176718056201935, -1.074184536933899, -0.30949342250823975, 0.43799543380737305, 0...
func DefaultReadHealthMenstruationPersonalInfo(ctx context.Context, in *HealthMenstruationPersonalInfo, db *gorm1.DB) (*HealthMenstruationPersonalInfo, error) { if in == nil { return nil, errors1.NilArgumentError } ormObj, err := in.ToORM(ctx) if err != nil { return nil, err } if ormObj.Id == 0 { return nil...
[ -0.5215501189231873, -0.7920935153961182, 0.9475903511047363, -0.2114892154932022, -0.2255539745092392, 0.3759036660194397, 0.35913529992103577, -0.5813127160072327, -0.1783154457807541, -0.7651505470275879, 0.7046585083007812, -0.6471114158630371, -0.39151260256767273, 0.2009696215391159,...
func DefaultStrictUpdateHealthMenstruationPersonalInfo(ctx context.Context, in *HealthMenstruationPersonalInfo, db *gorm1.DB) (*HealthMenstruationPersonalInfo, error) { if in == nil { return nil, fmt.Errorf("Nil argument to DefaultStrictUpdateHealthMenstruationPersonalInfo") } ormObj, err := in.ToORM(ctx) if err ...
[ -0.5259096026420593, -0.9932397603988647, 0.9245533347129822, -0.051792677491903305, -0.1639934927225113, 0.26212742924690247, 0.38693249225616455, -0.5604852437973022, -0.22143299877643585, -0.23660187423229218, -0.16820280253887177, -0.7678404450416565, -0.647271454334259, -0.13963371515...
func DefaultPatchHealthMenstruationPersonalInfo(ctx context.Context, in *HealthMenstruationPersonalInfo, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*HealthMenstruationPersonalInfo, error) { if in == nil { return nil, errors1.NilArgumentError } var pbObj HealthMenstruationPersonalInfo var err error if hook...
[ -0.7896730899810791, -0.8589490056037903, 1.0637054443359375, 0.12327898293733597, -0.018065696582198143, 0.7343750596046448, 0.8688914775848389, -0.3511112332344055, -0.2630438804626465, -0.9779009222984314, 0.14176078140735626, -0.7352405190467834, -0.38210344314575195, 0.291722983121871...
func DefaultPatchSetHealthMenstruationPersonalInfo(ctx context.Context, objects []*HealthMenstruationPersonalInfo, updateMasks []*field_mask1.FieldMask, db *gorm1.DB) ([]*HealthMenstruationPersonalInfo, error) { if len(objects) != len(updateMasks) { return nil, fmt.Errorf(errors1.BadRepeatedFieldMaskTpl, len(updateM...
[ -1.2646183967590332, -0.9456495642662048, 0.5373965501785278, 0.40073853731155396, 0.3033428192138672, 0.7026377320289612, 0.5115036964416504, -0.9294782280921936, -1.1098873615264893, -0.6887508034706116, 0.11227678507566452, -0.39012157917022705, -0.30270159244537354, 0.4433612525463104,...
func DefaultApplyFieldMaskHealthMenstruationPersonalInfo(ctx context.Context, patchee *HealthMenstruationPersonalInfo, patcher *HealthMenstruationPersonalInfo, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*HealthMenstruationPersonalInfo, error) { if patcher == nil { return nil, nil } else if pat...
[ -0.7605394721031189, -0.6837000250816345, 0.6086616516113281, -0.39428579807281494, -0.05241536721587181, -0.0368901751935482, -0.026446934789419174, -0.37056636810302734, -0.6496302485466003, -1.210370659828186, 0.12154750525951385, -0.3516087830066681, 0.2603451609611511, 0.6389412283897...
func DefaultListHealthMenstruationPersonalInfo(ctx context.Context, db *gorm1.DB, f *query1.Filtering, s *query1.Sorting, p *query1.Pagination, fs *query1.FieldSelection) ([]*HealthMenstruationPersonalInfo, error) { in := HealthMenstruationPersonalInfo{} ormObj, err := in.ToORM(ctx) if err != nil { return nil, err...
[ -0.4306562840938568, -0.8044241666793823, 0.903698742389679, 0.08087844401597977, 0.10460969805717468, 0.1403435617685318, -0.2156148999929428, -0.19911397993564606, -0.06849750131368637, -0.9053736329078674, -0.1913466453552246, -0.7784788012504578, -0.3597670793533325, 0.7782852053642273...
func DefaultCreateHealthMenstruationDailyEntry(ctx context.Context, in *HealthMenstruationDailyEntry, db *gorm1.DB) (*HealthMenstruationDailyEntry, error) { if in == nil { return nil, errors1.NilArgumentError } ormObj, err := in.ToORM(ctx) if err != nil { return nil, err } if hook, ok := interface{}(&ormObj)....
[ -0.3475015461444855, -0.20272196829319, 0.3854113817214966, 0.3296844959259033, 1.170556664466858, 0.4331531822681427, 0.7006599307060242, -0.7751901149749756, -0.35957586765289307, -0.44940853118896484, 0.1770906299352646, -1.138772964477539, -0.28547611832618713, 0.9227191805839539, 0....
func DefaultReadHealthMenstruationDailyEntry(ctx context.Context, in *HealthMenstruationDailyEntry, db *gorm1.DB) (*HealthMenstruationDailyEntry, error) { if in == nil { return nil, errors1.NilArgumentError } ormObj, err := in.ToORM(ctx) if err != nil { return nil, err } if ormObj.Id == 0 { return nil, erro...
[ -0.18892492353916168, -0.5075945258140564, 0.7223745584487915, -0.02299877069890499, 0.6209534406661987, -0.04355889931321144, 0.7614582180976868, -0.5272707343101501, 0.3768329918384552, -0.27901673316955566, 1.127143383026123, -0.5688624382019043, -0.310768187046051, 0.5836042165756226, ...
func DefaultStrictUpdateHealthMenstruationDailyEntry(ctx context.Context, in *HealthMenstruationDailyEntry, db *gorm1.DB) (*HealthMenstruationDailyEntry, error) { if in == nil { return nil, fmt.Errorf("Nil argument to DefaultStrictUpdateHealthMenstruationDailyEntry") } ormObj, err := in.ToORM(ctx) if err != nil {...
[ -0.08229892700910568, -0.6730466485023499, 0.7664893865585327, 0.1009567454457283, 0.5504851937294006, -0.03761736676096916, 0.7228421568870544, -0.5633881688117981, 0.4489907920360565, 0.37567782402038574, 0.497071772813797, -0.6506249904632568, -0.5839064717292786, 0.01728767715394497, ...
func DefaultPatchHealthMenstruationDailyEntry(ctx context.Context, in *HealthMenstruationDailyEntry, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*HealthMenstruationDailyEntry, error) { if in == nil { return nil, errors1.NilArgumentError } var pbObj HealthMenstruationDailyEntry var err error if hook, ok := ...
[ -0.4016534090042114, -0.4265713095664978, 0.8790426254272461, 0.4148901104927063, 0.9186025857925415, 0.26849764585494995, 1.3581013679504395, -0.4026506841182709, 0.22177299857139587, -0.440038800239563, 0.6604787111282349, -0.7706963419914246, -0.3774780333042145, 0.625732958316803, 0....
func DefaultPatchSetHealthMenstruationDailyEntry(ctx context.Context, objects []*HealthMenstruationDailyEntry, updateMasks []*field_mask1.FieldMask, db *gorm1.DB) ([]*HealthMenstruationDailyEntry, error) { if len(objects) != len(updateMasks) { return nil, fmt.Errorf(errors1.BadRepeatedFieldMaskTpl, len(updateMasks),...
[ -0.868670642375946, -0.621209979057312, 0.46595197916030884, 0.8451841473579407, 1.3962931632995605, 0.2702772617340088, 0.9775246381759644, -0.8457029461860657, -0.5143330097198486, -0.14420704543590546, 0.4884251356124878, -0.34224724769592285, -0.2591918110847473, 0.8027239441871643, ...
func DefaultApplyFieldMaskHealthMenstruationDailyEntry(ctx context.Context, patchee *HealthMenstruationDailyEntry, patcher *HealthMenstruationDailyEntry, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*HealthMenstruationDailyEntry, error) { if patcher == nil { return nil, nil } else if patchee == ...
[ -0.3653844892978668, -0.7311113476753235, 0.4584265947341919, -0.06749995797872543, 0.4637812674045563, -0.3662795424461365, 0.2779179513454437, -0.46156632900238037, -0.2345586121082306, -0.6245747804641724, 0.5378751754760742, -0.38569173216819763, 0.20243491232395172, 0.8743221163749695...
func DefaultListHealthMenstruationDailyEntry(ctx context.Context, db *gorm1.DB, f *query1.Filtering, s *query1.Sorting, p *query1.Pagination, fs *query1.FieldSelection) ([]*HealthMenstruationDailyEntry, error) { in := HealthMenstruationDailyEntry{} ormObj, err := in.ToORM(ctx) if err != nil { return nil, err } i...
[ -0.0036802683025598526, -0.4690665304660797, 0.7946076989173889, 0.4911845028400421, 0.9332733154296875, -0.32149919867515564, 0.23559096455574036, -0.11735379695892334, 0.47053399682044983, -0.3577336370944977, 0.27919816970825195, -0.5838489532470703, -0.21635811030864716, 1.167465925216...
func (t *Tree) Rank(max int) int { return rank(t.Tree, max) }
[ -0.8845663070678711, 0.36464154720306396, 0.518994927406311, 0.28008025884628296, 0.252134770154953, -0.6457877159118652, -0.26835864782333374, 0.6430267691612244, -0.7337167263031006, 0.294064462184906, -0.24507153034210205, 0.6608912944793701, 0.11161984503269196, 0.5181769728660583, -...
func (t *Tree) Size(lo, hi int) int { result := rank(t.Tree, hi) - rank(t.Tree, lo) if contains(t.Tree, hi) { result++ } return result }
[ -0.02498799003660679, 0.5786303281784058, 0.5207583904266357, -0.31657978892326355, -0.41475728154182434, 0.08101584762334824, 0.4320189952850342, 0.2557011544704437, -0.8769552111625671, 0.04696950316429138, -0.49588632583618164, 0.42134737968444824, -0.7931392192840576, 0.185973227024078...
func RegisterChannelzServiceToServer(s grpc.ServiceRegistrar) { channelzgrpc.RegisterChannelzServer(s, newCZServer()) }
[ -0.8142289519309998, -0.5701550245285034, 0.23768670856952667, -0.16292330622673035, 0.2712945342063904, -0.4554877281188965, 0.22610624134540558, -0.2549584209918976, -0.05091221258044243, -0.6766141653060913, -0.4871317744255066, 1.3625338077545166, -0.2668471932411194, 0.939255952835083...
func (i Interface) parseFunctions(contentLines []string) []Function { var functions []Function for _, line := range contentLines { if isPureVirtualDefinition(line) { newFunction := NewFunction(line) functions = append(functions, *newFunction) } } return functions }
[ -0.6278328895568848, -0.012836174108088017, 0.3432098627090454, 0.9057525992393494, 0.5952364802360535, -1.2466753721237183, -0.3176390528678894, 0.3909740149974823, -0.3310498893260956, -0.1540708839893341, -0.43002694845199585, -0.07533138990402222, -0.8423293232917786, 0.729610502719879...
func (i *Interface) parseDependencies() { var dependencies []string for _, function := range i.Functions { // "expanded" refers to creating a parsers.from a templated type, i.e "QMap <int, QString>" becomes [QMap int QString] expandedReturnType := strings.FieldsFunc(function.ReturnType, templatedTypeSeparators) ...
[ -0.7510942220687866, -0.8088905811309814, 0.4385242462158203, -1.540162444114685, -0.1730569750070572, -0.33733391761779785, 0.5253536105155945, -0.42178875207901, -0.10854727029800415, -0.8545493483543396, -0.9872825145721436, -0.2052256166934967, 0.1027720496058464, 0.8202357292175293, ...
func (i *Interface) parseIncludes() { for _, dependency := range i.Dependencies { include := NewInclude(dependency) if parsers.ShouldBeIncludedInHeader(dependency) { i.HeaderIncludesString += include.ToString() + "\n" } else { i.ImplementationIncludesString += include.ToString() + "\n" } } }
[ 0.24641531705856323, -0.3302869200706482, 0.7610021829605103, -0.6735677719116211, -0.29693055152893066, -0.03556901216506958, -0.39454805850982666, 0.1901923269033432, 0.1568610668182373, 0.5146304368972778, 0.2863800525665283, 0.1372361183166504, -0.5633637309074402, 0.7187111377716064, ...
func (i *Interface) parseForwardDeclares() { for _, dependency := range i.Dependencies { if !parsers.ShouldBeIncludedInHeader(dependency) { i.ForwardDeclaresString += "class " + dependency + ";\n" } } }
[ 0.03619004786014557, -0.05497279018163681, 0.5509215593338013, -1.6269148588180542, 0.05978203937411308, 0.5327188372612, -0.15461258590221405, -0.2961977422237396, -0.24999484419822693, -0.2885581851005554, 1.0880591869354248, -0.1968957930803299, 0.04699396342039108, 1.6163886785507202, ...
func isPureVirtualDefinition(line string) bool { line = strings.Replace(line, " ", "", -1) return (strings.Contains(line, "virtual") && strings.Contains(line, "=0;")) }
[ 0.19180011749267578, -0.14140723645687103, 0.6318938136100769, 0.679509699344635, -0.19942495226860046, -0.2240770161151886, -0.9272310137748718, 1.4660487174987793, -0.07700388878583908, 0.9790314435958862, 0.11953528970479965, 1.029884696006775, -0.2756330668926239, 1.1983880996704102, ...
func (i Interface) Fields() map[string]string { fields := make(map[string]string) fields["{{Interface.Name}}"] = i.Name fields["{{FileName}}"] = i.FileName fields["{{Interface.DefineName}}"] = i.DefineName return fields }
[ -0.7158347964286804, 0.07699298113584518, 0.38596871495246887, -1.7377119064331055, -0.23019564151763916, 0.3468039929866791, -0.5061264634132385, -0.6857010722160339, -0.6585654616355896, 0.13700151443481445, -1.1214797496795654, -0.673307478427887, -0.08527730405330658, 0.374217897653579...
func templatedTypeSeparators (r rune) bool { return r == '<' || r == '>' || r == ',' }
[ -2.015423536300659, 0.24555979669094086, 0.619069516658783, -0.4457074701786041, -0.49299827218055725, -0.18937411904335022, -0.35507869720458984, -0.766814112663269, 0.6039520502090454, -0.00716900359839201, -1.355259656906128, -0.15221771597862244, -0.7045459151268005, 0.8116605877876282...
func isEtcdConfigFile(path string) (bool, fhash) { if info, err := os.Stat(path); err != nil || info.IsDir() { return false, fhash{} } b, err := os.ReadFile(path) if err != nil { return false, fhash{} } // search for the "endpoints:" string if strings.Contains(string(b), "endpoints:") { return true, sha2...
[ -0.22705045342445374, -0.09200719743967056, 0.7986489534378052, -0.26142045855522156, -0.03559976816177368, -0.17150788009166718, -0.2648678719997406, 0.44930148124694824, -1.3064802885055542, 0.9473170638084412, -0.5996125936508179, -0.7820168733596802, 0.02401588298380375, 0.317472487688...
func getDirection(d byte) direction { switch d { case 'R': return right case 'L': return left case 'U': return up case 'D': return down default: panic(fmt.Sprintf("unknown direction %v", d)) } }
[ -0.23468026518821716, 0.01476618554443121, 0.3385378122329712, 0.1553819477558136, 0.09365012496709824, 0.2723076343536377, 0.644258439540863, -0.6510738730430603, 0.886754035949707, -0.5620749592781067, -0.7127759456634521, 0.01890055276453495, 0.20934054255485535, -0.142543762922287, 1...
func (w *wire) addSegment(dir direction, dist int) { var lastPoint point if len(w.points) != 0 { lastPoint = w.points[len(w.points)-1] } w.points = append(w.points, lastPoint.move(dir, dist)) }
[ -0.8808344602584839, -0.06215634196996689, 0.38513195514678955, -0.14566420018672943, 1.2893942594528198, 0.8573167324066162, 0.1537964940071106, -0.08932236582040787, 0.35889843106269836, 0.3404626250267029, -0.06641040742397308, 0.10967759042978287, -0.3832937479019165, 0.226162195205688...
func (w *wire) interceptPoints(o wire) []point { var interceptPoints []point for i := 1; i < len(w.points); i++ { v1 := segment{ from: w.points[i-1], to: w.points[i], } for u := 1; u < len(o.points); u++ { v2 := segment{ from: o.points[u-1], to: o.points[u], } intercept := v1.intercep...
[ 0.2579263150691986, -0.19780875742435455, 0.6155367493629456, -0.816116213798523, -0.49543049931526184, 0.44645556807518005, 0.46193546056747437, 0.20336133241653442, 0.5656918883323669, 0.9912096261978149, -0.5186104774475098, 0.6354930996894836, -0.35467657446861267, 0.3695013225078583, ...
func (p point) move(dir direction, dist int) point { var movedPoint point switch dir { case up: movedPoint = point{x: p.x, y: p.y + dist} case down: movedPoint = point{x: p.x, y: p.y - dist} case right: movedPoint = point{x: p.x + dist, y: p.y} case left: movedPoint = point{x: p.x - dist, y: p.y} } move...
[ -0.7623956799507141, -0.6922504901885986, 0.4854412376880646, -0.20725437998771667, -0.2310582846403122, 0.7145933508872986, -0.5780214071273804, -0.10286130756139755, 0.7485413551330566, 0.17688843607902527, -0.011974692344665527, 0.5774474740028381, -0.4091438055038452, -0.81314277648925...
func (p point) distanceToOrigin() int { return p.distanceToPoint(point{x: 0, y: 0}) }
[ -0.14494688808918, -0.4642746150493622, 0.7131639122962952, -0.1494957059621811, -0.510997474193573, 0.9333826303482056, 0.38182002305984497, 0.8843562006950378, 0.2937382757663727, 0.5852862596511841, -0.5873700976371765, 0.46104350686073303, -0.09348063170909882, -0.45215123891830444, ...
func (p point) distanceToPoint(o point) int { return abs(abs(p.x)-abs(o.x)) + abs(abs(p.y)-abs(o.y)) }
[ 0.3646273612976074, -0.91218501329422, 0.8400285243988037, -0.2901212275028229, -0.4873145818710327, 1.6777052879333496, 0.4538258910179138, -0.27500244975090027, 0.9408430457115173, 1.3874914646148682, -0.6516505479812622, -0.893006443977356, 0.436228483915329, -1.141364574432373, 0.042...
func abs(i int) int { if i < 0 { return -i } return i }
[ -1.3751643896102905, -0.19285345077514648, 0.419612854719162, -0.03389886021614075, -0.6099132299423218, 0.8648049831390381, -0.21950429677963257, -0.2932295799255371, -0.6788343191146851, -0.1674702763557434, 0.4065796732902527, 0.40043845772743225, 0.08803733438253403, 0.1189868450164794...
func (v segment) unchangingAxis() (val int, xAxis bool) { if v.from.x == v.to.x { return v.from.x, true } return v.from.y, false }
[ -0.9697951078414917, -0.062483951449394226, 0.7390614151954651, -0.3242966830730438, -0.4937371611595154, 0.320068359375, 0.1242363229393959, 0.042941827327013016, -0.878485918045044, 0.0005534387310035527, -1.1656605005264282, 0.6884950399398804, -0.3894639313220978, -1.2234655618667603, ...
func (v segment) intercepts(o segment) point { // With the assumption that no interceptions occur when segments are // parallel, and that segments always move either horizontally or // vertically (not both), we can pretty easily check for interceptions. // // First find the values where interception could occur, a...
[ 0.20468541979789734, -0.6690322756767273, 0.7830009460449219, -0.8473289012908936, 0.13831551373004913, -0.21514029800891876, 0.6500484943389893, -0.36903074383735657, 0.32343146204948425, 0.11662573367357254, 0.5278001427650452, 0.2947779595851898, 0.605783224105835, -1.3207802772521973, ...
func inRange(val, a, b int) bool { return val >= a && val <= b || val >= b && val <= a }
[ 0.14073984324932098, -0.36119040846824646, 0.7086989283561707, 0.47183114290237427, -0.6739985346794128, 0.03316022828221321, -0.643250584602356, -0.13998563587665558, -0.445761501789093, 0.4234194755554199, 0.413332462310791, 0.26017284393310547, -0.49338075518608093, -0.06735620647668839...
func (c *PullCommand) Run(args []string) int { cmdFlags := flag.NewFlagSet("pull", flag.ContinueOnError) cmdFlags.Usage = func() { c.UI.Output(c.Help()) } config := c.Config cmdFlags.StringVar(&config.Secret, "secret", config.Secret, "") cmdFlags.StringVar(&config.TargetDirectory, "target", config.TargetDirector...
[ -0.6598961353302002, -0.3033384680747986, 1.1198114156723022, -0.1808963418006897, 0.07875417917966843, 0.39565709233283997, 0.4336738884449005, 0.4329198896884918, -0.4622851014137268, -0.1553717851638794, -0.04592609032988548, -0.12410175055265427, -1.1372437477111816, 0.7047668695449829...
func (c *PullCommand) Help() string { helpText := ` Usage: phrase pull [options] [LOCALE] Download the translation files in the current project. Options: --format=yml See documentation for list of allowed formats --target=./phrase/locales Target folder to store locale f...
[ 0.5333026647567749, -0.16249726712703705, 0.75467848777771, -0.7357924580574036, 0.7642569541931152, 0.8720369338989258, 0.14040333032608032, 0.3594556450843811, 0.0795392170548439, 0.003003713209182024, -0.05493544042110443, 0.23992663621902466, -0.35083696246147156, -0.9787020683288574, ...
func (c *PullCommand) Synopsis() string { return "Download the translation files in the current project" }
[ 0.27869993448257446, -0.00032600335543975234, 0.276260107755661, 0.08973629772663116, 0.3945142328739166, -0.1660536229610443, -0.21335110068321228, 0.8897317051887512, -0.487840473651886, 0.6938958764076233, 0.4095531702041626, -0.22783438861370087, 0.311453640460968, -0.7856165766716003,...
func (fi *finalizeFileInfo) addProperties(depth int) { fi.depth = depth for _, e := range fi.children { e.parent = fi e.addProperties(depth + 1) } }
[ -0.47086524963378906, 0.008236079476773739, 0.4773780107498169, -0.5133469700813293, 0.42850828170776367, 0.3735511898994446, 0.593431293964386, 0.6779240965843201, -0.5304819345474243, -1.0503884553909302, 0.4379033148288727, -1.0199558734893799, -0.4899556636810303, 1.1339818239212036, ...
func New() Server { return &echoServer{ Instance: echo.New(), } }
[ -1.660841941833496, -1.3077882528305054, 0.07513401657342911, -0.20510202646255493, -0.48614585399627686, 0.5914270877838135, -0.7304384112358093, -0.47004270553588867, -0.08701165020465851, -0.7073661088943481, -0.9881981611251831, 0.5724577903747559, 0.2132345288991928, 0.583613097667694...
func (s *echoServer) Start() { e := s.Instance // Currently this server is only used for the core API so the logic below // is fine here. If we need to expand this to be used in multiple locations // the below can be done via first-class functions e.Pre(middleware.HTTPSRedirect()) e.Use(middleware.RequestID()) ...
[ -0.8103946447372437, -0.5825808644294739, 0.449981153011322, -0.2966272234916687, 0.3970213234424591, 0.1567014753818512, 0.2685115337371826, 0.8223037123680115, -0.1297178566455841, 0.15730994939804077, -0.4556407928466797, 1.1171592473983765, 0.25987565517425537, 0.5596718192100525, 0....
func Hey(remark string) string { r := strings.TrimSpace(remark) empty := len(r) == 0 question := strings.HasSuffix(r, "?") yell := strings.ToUpper(r) == r && strings.ContainsAny(r, allUppercaseLetters) switch { case empty: return emptyReply case question && yell: return questionYellReply case question: r...
[ 0.030192777514457703, -0.4990372061729431, 0.8787055015563965, -0.6121526956558228, -0.1412094533443451, -0.15082040429115295, -0.6366645693778992, 0.15011245012283325, 0.7885414361953735, -0.30052095651626587, -0.3402121663093567, 0.7098134160041809, -0.39088743925094604, 0.02963546663522...
func NewPodmanDriver(logger hclog.Logger) drivers.DriverPlugin { ctx, cancel := context.WithCancel(context.Background()) return &Driver{ eventer: eventer.NewEventer(ctx, logger), config: &PluginConfig{}, tasks: newTaskStore(), ctx: ctx, signalShutdown: cancel, logger: ...
[ -0.44440916180610657, -1.2466803789138794, 0.581498384475708, -0.35640382766723633, -0.5992875695228577, -0.30006060004234314, -0.9584413766860962, 0.31195202469825745, 0.32145583629608154, -0.39164313673973083, -0.31010010838508606, -0.055941496044397354, -0.8627607822418213, 0.3331028819...
func (d *Driver) PluginInfo() (*base.PluginInfoResponse, error) { return pluginInfo, nil }
[ -0.1852724701166153, -1.628286600112915, 0.3088715970516205, 0.12232989817857742, -0.42433667182922363, -1.1079318523406982, 0.23250536620616913, -0.35354316234588623, -0.06265807151794434, -0.059780552983284, -1.1684588193893433, 0.04575362801551819, -0.39641809463500977, -0.1996059268712...
func (d *Driver) ConfigSchema() (*hclspec.Spec, error) { return configSpec, nil }
[ -0.8344073295593262, 0.6205427646636963, 0.21765857934951782, 1.0478732585906982, 0.3300810158252716, -0.19193191826343536, -0.07019594311714172, 0.9997072219848633, 0.007481190841645002, 0.4174293875694275, 0.3791051506996155, -1.0396132469177246, -0.382108211517334, -0.00536749605089426,...
func (d *Driver) SetConfig(cfg *base.Config) error { var pluginConfig PluginConfig if len(cfg.PluginConfig) != 0 { if err := base.MsgPackDecode(cfg.PluginConfig, &pluginConfig); err != nil { return err } } d.config = &pluginConfig if cfg.AgentConfig != nil { d.nomadConfig = cfg.AgentConfig.Driver } cl...
[ -0.47492489218711853, -0.5400279760360718, 0.5375188589096069, 0.04901156947016716, 0.08718034625053406, -0.8991600275039673, 0.23368427157402039, 0.6397843360900879, 0.25990748405456543, -0.08978400379419327, -0.8564401865005493, 0.6305555701255798, -0.6214158535003662, 0.6823144555091858...