text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder { return m.recorder }
[ -0.17239482700824738, 0.5586152672767639, 0.3656720817089081, 0.5682917237281799, 0.6226142644882202, 0.08297291398048401, 0.3817286491394043, 0.29166075587272644, 0.633463978767395, 0.018680213019251823, 0.5766568183898926, 0.6745036244392395, -0.9018745422363281, 0.9383282661437988, -0...
func (m *MockUsecase) AddReview(arg0 models.Review) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddReview", arg0) ret0, _ := ret[0].(error) return ret0 }
[ -0.4263927936553955, 0.12724989652633667, 0.12254621833562851, 0.9482583403587341, 0.778944730758667, 0.29880794882774353, 0.12324895709753036, -0.09115903079509735, -1.0824476480484009, -1.137198567390442, -0.0077100396156311035, -0.7417064309120178, -1.3067171573638916, 0.941497325897216...
func (mr *MockUsecaseMockRecorder) AddReview(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddReview", reflect.TypeOf((*MockUsecase)(nil).AddReview), arg0) }
[ -0.619188666343689, 0.5780953764915466, 0.04583615064620972, 0.5161593556404114, -0.48662269115448, 0.001642205286771059, -0.6322166323661804, -0.5639374852180481, 0.3590744137763977, -0.19734783470630646, 0.6367276310920715, 0.29659923911094666, -1.0718458890914917, 1.2604929208755493, ...
func (m *MockUsecase) GetUserReviews(arg0 string) ([]models.Review, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetUserReviews", arg0) ret0, _ := ret[0].([]models.Review) ret1, _ := ret[1].(error) return ret0, ret1 }
[ 0.15805019438266754, -0.20779328048229218, 0.28936898708343506, 0.6457293629646301, 0.7616668939590454, 0.10200834274291992, 0.9063683748245239, -0.1161455437541008, -0.3953551650047302, -0.5478291511535645, -0.3151022493839264, -0.6596776247024536, -1.6074973344802856, 0.5396507382392883,...
func (mr *MockUsecaseMockRecorder) GetUserReviews(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserReviews", reflect.TypeOf((*MockUsecase)(nil).GetUserReviews), arg0) }
[ 0.2590753436088562, 0.4285166263580322, 0.24992701411247253, 0.24284209311008453, -0.15580247342586517, -0.07792452722787857, 0.11908013373613358, -0.6299465894699097, 0.7511835098266602, 0.1883358359336853, 0.5675538182258606, 0.3418905735015869, -1.3563292026519775, 0.9283139705657959, ...
func (m *MockUsecase) GetVendorReviews(arg0 string) (models.VendorReviewsResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetVendorReviews", arg0) ret0, _ := ret[0].(models.VendorReviewsResponse) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.17961737513542175, -0.32526925206184387, 0.18489380180835724, 0.5552167296409607, 0.896166980266571, -0.029105503112077713, 1.012816071510315, -0.36379334330558777, -0.2247551679611206, -0.38241153955459595, 0.24801196157932281, -0.39811891317367554, -1.538492202758789, 0.43932145833969...
func (mr *MockUsecaseMockRecorder) GetVendorReviews(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVendorReviews", reflect.TypeOf((*MockUsecase)(nil).GetVendorReviews), arg0) }
[ 0.15139684081077576, 0.3721383213996887, 0.13843226432800293, 0.06597375124692917, 0.42770013213157654, -0.21228991448879242, -0.10997310280799866, -0.5837805271148682, 0.6721026301383972, 0.39889490604400635, 1.040969729423523, 0.5779294967651367, -1.2960712909698486, 0.9236641526222229, ...
func (o DelayTimerOp) String() string { return fmt.Sprintf("DT = V%X", o.register) }
[ -1.003134846687317, 0.34699538350105286, 0.5016759037971497, -0.6043562889099121, -0.8114814758300781, 0.9861549735069275, -0.3343260884284973, -0.8353003263473511, -0.24947254359722137, 0.6292226910591125, 0.24839720129966736, -0.39203813672065735, 0.18349714577198029, -1.2235662937164307...
func (o DelayTimerOp) Execute(vm *system.VirtualMachine) { vm.DelayTimer = vm.Registers[o.register] }
[ -0.047658100724220276, 0.556897759437561, 0.5749120116233826, 0.017861921340227127, 0.24582184851169586, 0.5841708779335022, -0.7908932566642761, 0.19938220083713531, -0.36153045296669006, 1.104259967803955, -0.6179576516151428, -0.3658559322357178, -0.1783994734287262, -0.0589419454336166...
func Age(seconds float64, planet Planet) float64 { return round(seconds/ageList[planet], 2) }
[ -1.2080931663513184, -0.367269366979599, 0.40692561864852905, 0.09043828397989273, -0.4635531008243561, 1.1114379167556763, -0.856449544429779, -0.3551774322986603, -1.508344292640686, 0.5295034050941467, 0.12192748486995697, -0.3224596381187439, -0.048090364784002304, 1.5667673349380493, ...
func AutoIndexColumnID(colIdx int) string { charIdx := colIdx % 26 out := string(rune(65 + charIdx)) colIdx = colIdx / 26 if colIdx > 0 { return AutoIndexColumnID(colIdx-1) + out } return out }
[ 0.0038724527694284916, -0.9874545335769653, 0.3756773769855499, -0.19623695313930511, -0.38934990763664246, -0.47911977767944336, 0.570285975933075, -0.4219774007797241, 0.172054260969162, -0.22813601791858673, -0.45097145438194275, 0.5044355988502502, 0.02030537649989128, -1.3816405534744...
func widthEnforcerNone(col string, maxLen int) string { return col }
[ -0.8214645385742188, 0.7120985388755798, 0.17891822755336761, -0.0818607360124588, 0.21801500022411346, -0.8210242390632629, -0.6098939776420593, -0.3637823462486267, -0.026949334889650345, -0.3277318775653839, -0.3332153856754303, -0.5274280905723572, -1.1700176000595093, 0.39905986189842...
func isNumber(x interface{}) bool { if x == nil { return false } switch reflect.TypeOf(x).Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Float32, reflect.Float64: return true } retu...
[ -0.8139691948890686, 0.5074577331542969, 0.6281003355979919, 0.9945098161697388, 0.16067633032798767, 0.06907419860363007, 0.34410208463668823, -0.8870793581008911, 1.2474178075790405, -0.7681804299354553, -1.024903416633606, 0.27938172221183777, -0.21056678891181946, 1.2641314268112183, ...
func ValidFakeTemplateSpec() *batchv2alpha1.JobTemplateSpec { return &batchv2alpha1.JobTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Labels: map[string]string{ "foo": "bar", }, }, Spec: batchv1.JobSpec{ Template: api.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Labels: map[string]string{ ...
[ 0.24093516170978546, -0.7385995388031006, 0.6449675559997559, -0.24295809864997864, -0.30103805661201477, 0.47575339674949646, -0.6851983666419983, -0.1717243194580078, 0.0045401910319924355, -0.10603129118680954, -0.8832857012748718, 0.5376258492469788, 0.18863938748836517, 0.201371446251...
func NewWorkflowTemplateSpec() cronworkflowv1.WorkflowTemplateSpec { return cronworkflowv1.WorkflowTemplateSpec{ Spec: workflowv1.WorkflowSpec{ Steps: []workflowv1.WorkflowStep{ { Name: "one", JobTemplate: ValidFakeTemplateSpec(), }, }, Selector: &metav1.LabelSelector{ MatchLabe...
[ 0.5980201959609985, -0.934237539768219, 0.16361185908317566, 0.021275890991091728, -0.2993396520614624, -0.5913509726524353, -0.3409109115600586, 0.4061313569545746, 0.0045393723994493484, 0.5611116290092468, -0.7479638457298279, -0.16746653616428375, -0.17728258669376373, 0.63215398788452...
func NewCronWorkflow() *cronworkflowv1.CronWorkflow { return &cronworkflowv1.CronWorkflow{ Spec: *NewCronWorkflowSpec(), } }
[ 0.729660153388977, -0.5615244507789612, -0.09506988525390625, 1.1282232999801636, -1.027718186378479, -0.7579138875007629, 0.1562955379486084, 0.23390138149261475, -0.1608995944261551, -0.5658990740776062, -0.8923681378364563, 0.4676620662212372, -0.6858441233634949, 0.31278181076049805, ...
func NewCronWorkflowSpec() *cronworkflowv1.CronWorkflowSpec { return &cronworkflowv1.CronWorkflowSpec{ Schedule: "* * * * *", ConcurrencyPolicy: batchv2alpha1.AllowConcurrent, WorkflowTemplate: NewWorkflowTemplateSpec(), } }
[ 0.7281092405319214, -1.2177423238754272, 0.07824187725782394, 0.4664282202720642, -0.644091010093689, -0.26952439546585083, 0.35349124670028687, 0.4437791109085083, -0.04783165454864502, 0.10734958946704865, -0.44758710265159607, -0.21754100918769836, -0.27173641324043274, -0.0209196675568...
func DeleteStepStatusByName(statuses *[]workflowv1.WorkflowStepStatus, stepName string) { for i := range *statuses { if (*statuses)[i].Name == stepName { *statuses = (*statuses)[:i+copy((*statuses)[i:], (*statuses)[i+1:])] return } } panic("cannot find stepStatus") }
[ 0.22478321194648743, -0.9354003071784973, 0.054804861545562744, 0.4691733419895172, -0.552041232585907, 0.3704434335231781, -0.39520636200904846, 0.5340640544891357, -0.4224691390991211, 0.9437193870544434, -0.48687514662742615, -0.048883773386478424, -0.15085655450820923, 0.59654915332794...
func InitMysql() error { db, err := gorm.Open("mysql", "root:@tcp(localhost:3306)/testdb?parseTime=true&charset=utf8mb4,utf8&loc=Local") if err != nil { return err } db.DB().SetMaxIdleConns(20) db.DB().SetMaxOpenConns(100) ORM = db return nil }
[ 0.5625312328338623, -0.06750107556581497, 0.612363338470459, -0.07078824937343597, 0.43230509757995605, 0.22687605023384094, 0.4232725203037262, 0.7967912554740906, 0.02814430557191372, -0.19578228890895844, -0.6601017713546753, 0.6830845475196838, -0.7360210418701172, 0.12715573608875275,...
func diff(a, b string) (string, error) { if a == b { return "", nil } ta, err := ioutil.TempFile("", "") if err != nil { return "", err } tb, err := ioutil.TempFile("", "") if err != nil { return "", err } defer os.Remove(ta.Name()) defer os.Remove(tb.Name()) ta.WriteString(a) tb.WriteString(b) ta.Cl...
[ 0.01337496004998684, -0.400034099817276, 0.9470748901367188, -0.42058977484703064, -0.3667246997356415, 0.26980313658714294, 0.022722000256180763, -0.25138020515441895, -0.017043765634298325, -0.031292904168367386, 0.8960728645324707, 0.5982878804206848, -0.3204615116119385, 0.700632631778...
func Mount(service *goa.Service) { app.MountUserController(service, NewUserController(service)) }
[ 0.9607016444206238, -0.09442358464002609, 0.23517605662345886, 0.8766788840293884, -0.6957690119743347, 0.027929266914725304, -0.669863760471344, -0.9091982841491699, 0.9075797200202942, -0.5315465331077576, -0.3868884742259979, 1.1000261306762695, 0.05842200294137001, 1.0075486898422241, ...
func SetupDatabase(db *gorm.DB, logMode bool) { db.LogMode(logMode) userDB = models.NewUserDB(*db) }
[ -0.36845242977142334, 0.31402313709259033, 0.35887411236763, 1.0797114372253418, 0.13171592354774475, 0.9051916003227234, 0.3554830551147461, 0.8053165078163147, 0.585801899433136, 0.42107105255126953, -0.7801508903503418, -0.5615807771682739, -0.5335373878479004, 1.123218059539795, -0.3...
func BootTime() (int64, error) { if bootTime != nil { return *bootTime, nil } f, err := os.Open("/proc/stat") if err != nil { return 0, err } btimeStr := "" scanner := bufio.NewScanner(f) for scanner.Scan() { fields := strings.Fields(scanner.Text()) if len(fields) < 2 { continue } if fields[0] ...
[ 0.2573580741882324, 0.09359364211559296, 0.7156118154525757, 0.5892478823661804, -0.024974893778562546, -0.8658299446105957, 0.0732293426990509, -0.5466219782829285, -0.8712864518165588, 0.18357154726982117, 0.4809063971042633, -0.3597436249256134, -1.0147194862365723, 1.670728325843811, ...
func New() *Container { return &Container{ dependencies: make(map[string]interface{}), } }
[ -0.04997500404715538, -1.0289798974990845, 0.033889040350914, -0.12096675485372543, -1.0689420700073242, -1.0199607610702515, 0.2162872552871704, -0.14811675250530243, -0.5696768760681152, -0.41303128004074097, -0.377780944108963, -0.02158939093351364, 1.155148983001709, 1.2261428833007812...
func (c *Container) Provide(name string, dependency interface{}) { c.dependencies[name] = dependency }
[ -0.19280722737312317, 0.1850687563419342, 0.34500131011009216, -0.2763933539390564, -0.39332956075668335, 0.36503639817237854, 0.14529059827327728, -0.6630452275276184, 0.4872205853462219, 0.0045634000562131405, -0.4140916168689728, -0.6600735187530518, 0.37232843041419983, 0.7836500406265...
func (c *Container) GetByName(name string) interface{} { return c.dependencies[name] }
[ -0.004359002690762281, -0.3503267168998718, 0.4709625542163849, -0.49045854806900024, -0.7963874936103821, -1.178222894668579, 0.3580228388309479, -1.090836763381958, -0.33329302072525024, 0.6236898899078369, -0.9157580733299255, -0.010015147738158703, 0.25838062167167664, 0.04465729370713...
func (c *Container) GetByType(typ interface{}) interface{} { t := reflect.TypeOf(typ) for _, d := range c.dependencies { dt := reflect.TypeOf(d) if t.AssignableTo(dt) { return d } } return nil }
[ -0.07056073099374771, -0.08733595907688141, 0.7588322162628174, -0.22605367004871368, 0.13578073680400848, -0.6967107057571411, 0.8192875385284424, -1.2614761590957642, -0.13919977843761444, -0.013576366938650608, 0.2743746340274811, 0.6885689496994019, -0.42712658643722534, 0.806174814701...
func (c *Container) Resolve() error { for _, d := range c.dependencies { c.inject(d) } for _, d := range c.dependencies { if dep, ok := d.(Dependency); ok { err := dep.Open() if err != nil { return err } } } return nil }
[ -0.44602054357528687, 0.4221135377883911, 0.7077757716178894, -0.38899093866348267, 0.7324997186660767, -0.5597911477088928, -0.26082953810691833, 0.2729438543319702, -0.6713924407958984, -0.8837660551071167, 0.06652158498764038, -0.5772978067398071, -0.2302781641483307, 0.6955339908599854...
func (c *Container) Close() { for _, d := range c.dependencies { if dep, ok := d.(Dependency); ok { dep.Close() } } }
[ -0.10489451140165329, -0.16641251742839813, 0.4260973632335663, -0.02741233818233013, 0.2864636778831482, 0.42724186182022095, 0.6575666666030884, -0.4522647261619568, -0.5146564245223999, -0.28268760442733765, 0.5329872369766235, -0.23890867829322815, -0.101772241294384, 1.616626143455505...
func (d deck) print() { for i, v := range d { fmt.Println(i, v) } }
[ -0.7162411212921143, 0.963373064994812, 0.16319459676742554, -0.5531994104385376, 0.521196722984314, 0.12119210511445999, -0.8811590671539307, -0.08835811913013458, -0.849724531173706, -1.4816925525665283, 0.233881413936615, 0.53909832239151, 0.33602043986320496, 1.227864384651184, -0.32...
func (this *FPAQPredictor) Update(bit byte) { // Find the number of registered 0 & 1 given the previous bits (in this.ctxIdx) idx := this.ctxIdx | int(bit&1) this.states[idx]++ if this.states[idx] >= THRESHOLD { this.states[idx&-2] >>= 1 this.states[(idx&-2)+1] >>= 1 } // Update context by registering the c...
[ -0.9349542260169983, -0.33516746759414673, 0.6071069836616516, -0.4582058787345886, -0.8633670806884766, -0.1712902933359146, 0.9366097450256348, -0.4792441427707672, 0.5529269576072693, 0.12334968149662018, -0.21782225370407104, 0.15421797335147858, -0.5597437024116516, -0.268255412578582...
func (this *FPAQPredictor) Get() uint { return this.prediction }
[ -1.1305660009384155, -0.4391900897026062, 0.5485687851905823, -0.12914541363716125, -0.5125955939292908, -0.4208950996398926, 0.3743121027946472, 0.3515702486038208, -0.5924385190010071, -1.1976255178451538, -0.41573742032051086, 0.43937695026397705, -0.178562194108963, 0.03803032264113426...
func (o *PutCustomersCustomerFidContactsContactFidReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewPutCustomersCustomerFidContactsContactFidOK() if err := result.readResponse(response, consumer, o.formats); err ...
[ 0.16794468462467194, -1.0033047199249268, 0.5439255237579346, -0.569089412689209, -0.26049959659576416, -1.2633602619171143, 0.6509997248649597, -0.17995406687259674, 0.09268244355916977, 0.7664540410041809, 0.4694141149520874, -0.7694805264472961, -0.8901885747909546, -0.6087409257888794,...
func NewPutCustomersCustomerFidContactsContactFidOK() *PutCustomersCustomerFidContactsContactFidOK { return &PutCustomersCustomerFidContactsContactFidOK{} }
[ 0.8160951137542725, -1.1484448909759521, 0.03764557093381882, -0.6759344339370728, -0.7900617718696594, -0.057331398129463196, 1.480638027191162, 0.08676514774560928, -0.36370399594306946, 0.4497222602367401, 0.13255156576633453, -0.520287275314331, -0.4029199779033661, -0.5515919923782349...
func (o *PutCustomersCustomerFidContactsContactFidOK) IsSuccess() bool { return true }
[ 0.44645872712135315, -0.46710073947906494, 0.3087348937988281, -0.22999460995197296, -0.408571720123291, -0.36096006631851196, 0.876040518283844, 0.19104249775409698, -0.26293542981147766, 0.5056076049804688, -0.2534812390804291, -0.9146373271942139, -0.23385804891586304, -0.25029754638671...
func (o *PutCustomersCustomerFidContactsContactFidOK) IsRedirect() bool { return false }
[ 0.4595542848110199, -0.5936267971992493, 0.2997930347919464, -0.28689754009246826, -0.42536839842796326, -0.07924652099609375, 1.0416091680526733, -0.10509108006954193, 0.3336186707019806, 0.05381712317466736, 0.07475515455007553, -0.6332534551620483, -0.6887933015823364, -0.18828035891056...
func (o *PutCustomersCustomerFidContactsContactFidOK) IsCode(code int) bool { return code == 200 }
[ 0.2624150216579437, -0.9018914103507996, 0.12951116263866425, -0.5874009132385254, -0.16112758219242096, -0.3421633541584015, 0.6259596943855286, -0.02454996667802334, 0.1388140320777893, 0.7497510313987732, 0.021214086562395096, -0.6327290534973145, -0.6495152115821838, 0.0927485525608062...
func (o *PutCustomersCustomerFidContactsContactFidOK) Code() int { return 200 }
[ 0.2732914686203003, -0.9701427221298218, 0.17647509276866913, -0.40494102239608765, -0.4095321595668793, -0.4063670039176941, 1.1818519830703735, 0.27485451102256775, -0.42686915397644043, 0.439412385225296, 0.10553847253322601, -0.5656951069831848, -0.029253613203763962, 0.268105596303939...
func NewPutCustomersCustomerFidContactsContactFidDefault(code int) *PutCustomersCustomerFidContactsContactFidDefault { return &PutCustomersCustomerFidContactsContactFidDefault{ _statusCode: code, } }
[ 1.0060479640960693, -1.1710801124572754, -0.016990425065159798, -0.7132217884063721, -0.30703043937683105, -0.10723315924406052, 0.7930352091789246, -0.2559520900249481, 0.0848139300942421, 0.23994402587413788, -0.24046826362609863, -0.5882799625396729, -1.5035468339920044, -0.733918309211...
func (o *PutCustomersCustomerFidContactsContactFidDefault) IsSuccess() bool { return o._statusCode/100 == 2 }
[ 0.4278908669948578, -0.46437543630599976, 0.13674317300319672, -0.2070450484752655, 0.1347290724515915, -0.3438107371330261, 0.48339733481407166, 0.0213756300508976, -0.11756961792707443, 0.39188817143440247, -0.38665539026260376, -0.9080579280853271, -0.9070090651512146, -0.57308059930801...
func (o *PutCustomersCustomerFidContactsContactFidDefault) IsRedirect() bool { return o._statusCode/100 == 3 }
[ 0.5572386384010315, -0.2951068580150604, 0.16933123767375946, -0.20697250962257385, 0.2542896270751953, 0.03965607285499573, 0.5489575266838074, -0.17446070909500122, 0.43034663796424866, 0.05171385407447815, -0.34779202938079834, -0.7631195187568665, -1.2970504760742188, -0.85373318195343...
func (o *PutCustomersCustomerFidContactsContactFidDefault) IsCode(code int) bool { return o._statusCode == code }
[ 0.4298369288444519, -0.3614858388900757, 0.03059159778058529, -0.6055683493614197, 0.50760418176651, -0.16207438707351685, 0.34576115012168884, -0.02522597275674343, 0.5463926792144775, 0.5120510458946228, -0.21018220484256744, -0.7993723750114441, -1.6334729194641113, -0.23907530307769775...
func (o *PutCustomersCustomerFidContactsContactFidDefault) Code() int { return o._statusCode }
[ 0.5400240421295166, -0.5356752872467041, -0.017294418066740036, -0.43911710381507874, 0.36896270513534546, -0.13003863394260406, 0.9592829942703247, 0.2547527253627777, -0.24982605874538422, 0.24537160992622375, -0.12467201799154282, -0.7343137860298157, -0.9748930335044861, -0.22411495447...
func NewHTTP(options ...PortOpt) (*HTTPPort, error) { port := &HTTPPort{ reqC: make(chan *HTTPRequest), respC: make(chan *HTTPResponse), sync: make(chan struct{}), } defaultOption := defaultPortOpts for _, option := range options { option(&defaultOption) } if err := port.serveHTTPS(defaultOption.TLSHo...
[ 0.7262554168701172, 0.36457890272140503, 0.6379342079162598, 0.9479928016662598, 0.06577625125646591, 0.22012701630592346, 0.4104298949241638, -1.1818225383758545, -0.423441082239151, 0.7598195672035217, 0.9809611439704895, -0.19052980840206146, -0.14008675515651703, -0.2747707962989807, ...
func removeContents(dir string) error { d, err := os.Open(dir) if err != nil { return err } defer d.Close() names, err := d.Readdirnames(-1) if err != nil { return err } for _, name := range names { err = os.RemoveAll(path.Join(dir, name)) if err != nil { return err } } return nil }
[ -0.6884765625, 0.21587564051151276, 0.41836485266685486, -0.17369143664836884, -0.9453313946723938, -0.33017870783805847, 0.7526152729988098, -0.6506063938140869, 0.07807037234306335, 0.26409074664115906, 0.3419564366340637, -0.3021896183490753, -0.8473691344261169, 0.8227338194847107, 0...
func junosPolicy__OptionsPolicy__StatementTermFromInterfaceCreate(d *schema.ResourceData, m interface{}) error { var err error client := m.(*ProviderConfig) id := d.Get("resource_name").(string) V_name := d.Get("name").(string) V_name__1 := d.Get("name__1").(string) V_interface := d.Get("interface")....
[ -0.0655599907040596, -0.08964209258556366, 0.4390522241592407, -0.6322384476661682, -0.015510442666709423, 0.43819719552993774, 0.053463615477085114, -0.6920791864395142, 0.3555096685886383, 1.3021448850631714, -0.15166866779327393, -0.476529985666275, -1.1705602407455444, -0.3283808529376...
func Nothing(_ attributes.Attributes, _ ...Element) Element { return Element{} }
[ -1.0110784769058228, -0.4534047842025757, 0.5510043501853943, 0.04326421767473221, 0.5366287231445312, 0.18585751950740814, -0.5438313484191895, -0.16085156798362732, -0.144319087266922, -1.4130823612213135, -0.6315313577651978, 0.9266213774681091, 0.2740473449230194, -0.18937845528125763,...
func GetAllKymaReleases() []*SupportedRelease { return []*SupportedRelease{ Release111, Release110, Release19, } }
[ 0.444252610206604, -0.8210549354553223, 0.5357300639152527, 0.4898553192615509, -0.810552716255188, 0.08421765267848969, -1.6769094467163086, 0.6008183360099792, 1.2747327089309692, 0.04168026149272919, -0.20687077939510345, -0.07941697537899017, -0.8151987195014954, 1.3215018510818481, ...
func GetNextKymaRelease() *SupportedRelease { return Release112 }
[ -0.36203494668006897, -0.5221567749977112, 0.34534338116645813, 0.3669527769088745, -1.8292367458343506, -0.0487966425716877, -1.653377890586853, 0.6032581925392151, 0.6549997329711914, -0.32399997115135193, -0.090362049639225, -0.08890912681818008, -0.6868487596511841, 0.9560250043869019,...
func (a *ApplicationsApiService) CreateApplication(ctx _context.Context, environmentId string) ApiCreateApplicationRequest { return ApiCreateApplicationRequest{ ApiService: a, ctx: ctx, environmentId: environmentId, } }
[ -1.0819615125656128, -0.43651527166366577, 0.4681902527809143, -0.48656734824180603, 0.05213594809174538, 0.47571510076522827, 0.0404524952173233, -0.9399607181549072, 0.29305946826934814, 0.5663149356842041, 0.09778662770986557, 0.2658294141292572, -0.6032379865646362, 1.0869847536087036,...
func (a *ApplicationsApiService) CreateApplicationExecute(r ApiCreateApplicationRequest) (ApplicationResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte l...
[ -0.8856887817382812, -0.8546924591064453, 1.090198278427124, -0.3436266779899597, -0.09189822524785995, 0.43901029229164124, 0.15193097293376923, -0.667160153388977, -0.586688756942749, 0.8581167459487915, 0.20299585163593292, 0.11087343096733093, -0.7668908834457397, 0.8758794665336609, ...
func (a *ApplicationsApiService) GetEnvironmentApplicationCurrentInstance(ctx _context.Context, environmentId string) ApiGetEnvironmentApplicationCurrentInstanceRequest { return ApiGetEnvironmentApplicationCurrentInstanceRequest{ ApiService: a, ctx: ctx, environmentId: environmentId, } }
[ -0.7702843546867371, -1.2837555408477783, 0.590669572353363, -0.8212653398513794, -0.07135806977748871, 0.8766773343086243, 0.6449275612831116, -0.8120248913764954, -0.2594582140445709, 0.9793694615364075, 1.2877763509750366, 0.42580920457839966, -0.6320158839225769, 0.4493767023086548, ...
func (a *ApplicationsApiService) GetEnvironmentApplicationCurrentInstanceExecute(r ApiGetEnvironmentApplicationCurrentInstanceRequest) (EnvironmentApplicationsInstanceResponseList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName s...
[ -1.040594220161438, -1.090186595916748, 0.9574192762374878, -0.5978807806968689, -0.02909654937684536, 0.7920544743537903, 0.2660753130912781, -0.3916628062725067, -0.7806457877159119, 1.2258365154266357, 0.759289562702179, 0.2578725516796112, -1.123092770576477, 0.3324115574359894, 0.90...
func (a *ApplicationsApiService) GetEnvironmentApplicationCurrentScale(ctx _context.Context, environmentId string) ApiGetEnvironmentApplicationCurrentScaleRequest { return ApiGetEnvironmentApplicationCurrentScaleRequest{ ApiService: a, ctx: ctx, environmentId: environmentId, } }
[ -0.7136838436126709, -1.4275283813476562, 0.6351134777069092, -0.07715867459774017, 0.09627821296453476, 0.4028005003929138, -0.2183769941329956, -1.2876251935958862, -0.681936502456665, 1.32756769657135, 1.2871894836425781, 0.34408727288246155, -0.6115299463272095, 1.1543080806732178, 0...
func (a *ApplicationsApiService) GetEnvironmentApplicationCurrentScaleExecute(r ApiGetEnvironmentApplicationCurrentScaleRequest) (EnvironmentApplicationsCurrentScaleResponseList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName str...
[ -0.9352864623069763, -1.129399061203003, 1.0183594226837158, -0.17212902009487152, 0.09265714138746262, 0.19258813560009003, -0.26176923513412476, -0.5303823947906494, -1.0696895122528076, 1.223230004310608, 0.751295804977417, 0.32781165838241577, -0.943538248538971, 0.8398336172103882, ...
func (a *ApplicationsApiService) GetEnvironmentApplicationCurrentStorage(ctx _context.Context, environmentId string) ApiGetEnvironmentApplicationCurrentStorageRequest { return ApiGetEnvironmentApplicationCurrentStorageRequest{ ApiService: a, ctx: ctx, environmentId: environmentId, } }
[ -0.563568651676178, -0.9539415240287781, 0.6195681095123291, 0.07326678931713104, 0.11561727523803711, 0.4226120710372925, 0.5853450894355774, -1.2042421102523804, -0.5229966044425964, 0.8988603949546814, 1.2282570600509644, 0.28273317217826843, -0.30372440814971924, 0.6617187261581421, ...
func (a *ApplicationsApiService) GetEnvironmentApplicationCurrentStorageExecute(r ApiGetEnvironmentApplicationCurrentStorageRequest) (EnvironmentApplicationsStorageResponseList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName stri...
[ -0.8161759376525879, -1.1922390460968018, 0.9542189240455627, 0.0006170235574245453, 0.1866288185119629, 0.3668590188026428, 0.1465122401714325, -0.5411115288734436, -0.786223292350769, 1.1671110391616821, 0.8169412612915039, 0.30937403440475464, -0.6054441332817078, 0.4123583734035492, ...
func (a *ApplicationsApiService) GetEnvironmentApplicationStatus(ctx _context.Context, environmentId string) ApiGetEnvironmentApplicationStatusRequest { return ApiGetEnvironmentApplicationStatusRequest{ ApiService: a, ctx: ctx, environmentId: environmentId, } }
[ -1.1203199625015259, -0.8385016918182373, 0.407392293214798, -0.8746964335441589, -0.04562210664153099, 0.5352480411529541, -0.28698745369911194, -0.7065085768699646, 0.007370336446911097, 1.1593966484069824, 0.363932728767395, 0.7977988719940186, -0.5089051723480225, 0.5965169668197632, ...
func (a *ApplicationsApiService) GetEnvironmentApplicationStatusExecute(r ApiGetEnvironmentApplicationStatusRequest) (ReferenceObjectStatusResponseList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName ...
[ -0.7426180243492126, -0.9426719546318054, 1.071858286857605, -0.49161672592163086, 0.20258334279060364, 0.4780574142932892, -0.23302826285362244, -0.3951603174209595, -0.4146706759929657, 1.187819004058838, 0.5184334516525269, 0.5068291425704956, -0.7798064947128296, 0.5865769386291504, ...
func (a *ApplicationsApiService) ListApplication(ctx _context.Context, environmentId string) ApiListApplicationRequest { return ApiListApplicationRequest{ ApiService: a, ctx: ctx, environmentId: environmentId, } }
[ -1.227836012840271, -0.724075436592102, 0.5687239170074463, -0.4888722896575928, -0.14054365456104279, -0.22553755342960358, -0.4647999107837677, -0.8043925166130066, 1.2099580764770508, 0.7220602631568909, 0.1571183204650879, 0.8623561263084412, -0.2586328983306885, 1.089552402496338, -...
func (a *ApplicationsApiService) ListApplicationExecute(r ApiListApplicationRequest) (ApplicationResponseList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte lo...
[ -0.943816602230072, -1.1033148765563965, 1.1730858087539673, -0.22300073504447937, -0.09051778167486191, -0.050828300416469574, -0.1342301368713379, -0.43426182866096497, 0.06090693548321724, 1.2665855884552002, 0.2447790503501892, 0.2214268147945404, -0.806029736995697, 0.6135175228118896...
func (a *ApplicationsApiService) ListApplicationToUpdate(ctx _context.Context, environmentId string) ApiListApplicationToUpdateRequest { return ApiListApplicationToUpdateRequest{ ApiService: a, ctx: ctx, environmentId: environmentId, } }
[ -1.58742094039917, -1.3912252187728882, 0.797046959400177, -0.8463047742843628, 0.08174864202737808, 0.3561793863773346, -0.31078216433525085, -0.24048557877540588, 0.916757345199585, 0.9513899683952332, 0.35492244362831116, 0.6953913569450378, -0.24718643724918365, 0.3952968716621399, -...
func (a *ApplicationsApiService) ListApplicationToUpdateExecute(r ApiListApplicationToUpdateRequest) (ApplicationResponseList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileByte...
[ -1.4823157787322998, -1.2439923286437988, 1.162447214126587, -0.5827904939651489, -0.1328054815530777, 0.1768699288368225, 0.10849803686141968, -0.2485683262348175, -0.028059981763362885, 1.2909196615219116, 0.29876312613487244, 0.34477001428604126, -0.5984616279602051, 0.19373495876789093...
func NewHandler(k Keeper) sdk.Handler { return func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) { ctx = ctx.WithEventManager(sdk.NewEventManager()) switch msg := msg.(type) { // TODO: Define your msg cases // //Example: // case Msg<Action>: // return handleMsg<Action>(ctx, k, msg) case MsgSetFi...
[ -0.09640508145093918, -0.20513561367988586, 0.6162968873977661, 1.1088132858276367, -0.6036732196807861, 0.16785888373851776, 0.2560637593269348, -0.3605794906616211, 0.457571417093277, -0.48884883522987366, 0.6389107704162598, -0.17350119352340698, 0.07575702667236328, 0.7589244246482849,...
func (mux *kvMux) OnNewRouteConfig(cfg *routeConfig) { oldMuxState := mux.getState() newMuxState := mux.newKVMuxState(cfg) // Attempt to atomically update the routing data if !mux.updateState(oldMuxState, newMuxState) { logWarnf("Someone preempted the config update, skipping update") return } if oldMuxState...
[ 0.2028786987066269, -0.5485836267471313, 0.8380640149116516, -0.19145134091377258, -0.4549925923347473, -0.8123001456260681, -0.8026414513587952, 0.42368245124816895, 0.06305499374866486, 0.6586459279060364, -0.2797967791557312, 0.18702484667301178, 0.07006409019231796, -0.0864371061325073...
func (mux *kvMux) CollectionsEnabled() bool { return mux.collectionsEnabled }
[ 0.5653489232063293, 0.25488948822021484, 0.521582841873169, -0.18926338851451874, -0.7992969155311584, 0.9204290509223938, -1.0299423933029175, -0.4356042146682739, 0.21899785101413727, -0.025272801518440247, -0.78298419713974, -0.4908691644668579, -1.1976890563964844, 0.17720083892345428,...
func (mux *kvMux) SupportsCollections() bool { if !mux.collectionsEnabled { return false } clientMux := mux.getState() if clientMux == nil { return false } return clientMux.collectionsSupported }
[ -0.14991554617881775, 0.851478099822998, 0.8980776071548462, -0.22883374989032745, -1.3323882818222046, 0.4826645255088806, -1.0940427780151367, -0.3291199803352356, 0.2299468070268631, -0.32177627086639404, -0.5030223727226257, -0.5624172687530518, -1.3593281507492065, 0.05392487719655037...
func GetKeyIDFromVerificationMethod(creator string) (string, error) { idSplit := strings.Split(creator, "#") if len(idSplit) != creatorParts { return "", fmt.Errorf(fmt.Sprintf(invalidFormatErrMsgFmt, creator)) } return idSplit[1], nil }
[ 0.2319100797176361, 0.03334362059831619, 0.40451857447624207, 0.7302071452140808, -0.46357741951942444, -0.19880364835262299, 0.40491852164268494, -0.3714282810688019, -0.1354690045118332, 0.2646387815475464, 0.12232230603694916, 0.13462193310260773, -1.0016840696334839, 0.5233159065246582...
func GetDIDFromVerificationMethod(method string) (string, error) { idSplit := strings.Split(method, "#") if len(idSplit) != creatorParts { return "", fmt.Errorf(invalidFormatErrMsgFmt, method) } id, err := did.Parse(idSplit[0]) if err != nil { return "", fmt.Errorf("failed to parse DID URI [%s]: %w", idSplit[...
[ 0.27741456031799316, 0.32142701745033264, 0.7630133032798767, 0.5773404836654663, -0.20995672047138214, 0.7218064665794373, 0.955177366733551, -0.21025456488132477, 0.6389216780662537, -0.6440918445587158, 0.28791144490242004, 0.34395119547843933, -0.3904211223125458, 0.5042165517807007, ...
func GetVerificationMethodFromDID(d *did.Doc, rel did.VerificationRelationship) (string, error) { methods := d.VerificationMethods(rel) if len(methods) == 0 || len(methods[rel]) == 0 { return "", fmt.Errorf("did %s does not declare the requested verification method", d.ID) } method := methods[rel][0].Verificati...
[ 0.6017385721206665, -0.285025030374527, 0.41624122858047485, -0.28642502427101135, -0.29988622665405273, -0.338734894990921, 0.0375903844833374, -0.6191978454589844, 0.3465996980667114, 0.12445969134569168, 0.15167321264743805, 0.518779456615448, 0.2944258749485016, 0.9384747743606567, 0...
func newAwsSession(p Params) (*session.Session, error) { config := aws.NewConfig() if p.region != "" { config.Region = aws.String(p.region) } options := session.Options{ Config: *config, AssumeRoleTokenProvider: stscreds.StdinTokenProvider, SharedConfigState: session.SharedConfigEna...
[ -0.43906939029693604, -0.763042688369751, 0.41195106506347656, -0.3681628704071045, -1.2183035612106323, 0.20792993903160095, -0.086541086435318, -1.2705438137054443, 0.7838937044143677, 0.5951001048088074, -0.7354817986488342, 0.3200848698616028, -0.0701952576637268, -0.34156471490859985,...
func GetBlockWeight(blk *types.Block) int64 { baseSize := blk.SerializeSizeStripped() // (baseSize * 3) + totalSize return int64(baseSize) }
[ 0.20381827652454376, 0.9411362409591675, 0.7338550686836243, 0.9534355998039246, -0.4263485372066498, -0.8794597387313843, 0.4515390992164612, 0.00884566456079483, 0.03616984933614731, 0.3166625201702118, -0.89628005027771, -0.19114284217357635, -1.0955848693847656, 0.5321106314659119, 0...
func GetTransactionWeight(tx interfaces.Transaction) int64 { baseSize := tx.SerializeSizeStripped() return int64(baseSize) }
[ 0.2846549153327942, 0.546780526638031, 0.44821834564208984, -0.10597848892211914, -0.622468888759613, -0.5725355744361877, 0.5859397053718567, 0.4254244863986969, -0.04112601652741432, 0.5114951729774475, -0.9182709455490112, -0.9051064252853394, -0.329439640045166, 0.26642346382141113, ...
func (mc *MeshCatalog) listEndpointsForService(svc service.MeshService) []endpoint.Endpoint { var endpoints []endpoint.Endpoint for _, provider := range mc.endpointsProviders { ep := provider.ListEndpointsForService(svc) if len(ep) == 0 { log.Trace().Msgf("No endpoints found for service %s by endpoints provide...
[ 0.31829214096069336, -0.36638128757476807, 0.2685868442058563, -0.028677131980657578, 0.2450493723154068, 0.24896764755249023, -0.765407383441925, 0.5201834440231323, 0.13901746273040771, -0.06200487166643143, 0.12101229280233383, 0.9435316920280457, 0.21713803708553314, 0.9345790147781372...
func (mc *MeshCatalog) getDNSResolvableServiceEndpoints(svc service.MeshService) []endpoint.Endpoint { var endpoints []endpoint.Endpoint for _, provider := range mc.endpointsProviders { ep := provider.GetResolvableEndpointsForService(svc) endpoints = append(endpoints, ep...) } return endpoints }
[ -0.45638608932495117, 0.7397716045379639, 0.34340208768844604, 0.4791281521320343, -0.27146321535110474, 0.11837083846330643, -0.9637125134468079, 0.514102041721344, 0.4644297957420349, -0.38201263546943665, -1.180240511894226, 0.8169854283332825, -0.3798195719718933, 0.11423284560441971, ...
func (mc *MeshCatalog) ListAllowedUpstreamEndpointsForService(downstreamIdentity identity.ServiceIdentity, upstreamSvc service.MeshService) []endpoint.Endpoint { outboundEndpoints := mc.listEndpointsForService(upstreamSvc) if len(outboundEndpoints) == 0 { return nil } if mc.configurator.IsPermissiveTrafficPolicy...
[ -0.3949597477912903, -0.24861842393875122, 0.8052312135696411, 0.1924348622560501, -1.06070876121521, 0.5047257542610168, -0.4302339255809784, -0.26561853289604187, 0.2098885327577591, 0.6695862412452698, 0.5995590090751648, 1.1593637466430664, -0.6170274019241333, -0.16075998544692993, ...
func (mc *MeshCatalog) listEndpointsForServiceIdentity(serviceIdentity identity.ServiceIdentity) []endpoint.Endpoint { var endpoints []endpoint.Endpoint for _, provider := range mc.endpointsProviders { ep := provider.ListEndpointsForIdentity(serviceIdentity) if len(ep) == 0 { log.Trace().Msgf("[%s] No endpoint...
[ 0.12989908456802368, -0.6115371584892273, 0.4811866581439972, 0.2995017170906067, 0.760124146938324, 0.39913973212242126, -0.7192443609237671, 0.5379436612129211, 0.8978400826454163, -0.06684909015893936, 0.10849284380674362, 0.7641475200653076, 0.2177046239376068, 1.0319385528564453, -0...
func setMockLogger(l logger.Level) <-chan []byte { mw, errChan := newMockWriter() mockLogger := logger.NewLogger( logger.LoggerConfig{ Writer: mw, Level: logger.NewAtomicLevelAt(l), Encoder: logger.NewJSONEncoder(logger.NewProductionConfig().EncoderConfig), }, ) logger.SetLogger(mockLogger) return ...
[ -1.2994961738586426, -0.03976614028215408, 0.5480595231056213, -0.3524676263332367, -0.3251044750213623, -0.5655423402786255, 0.0027756502386182547, -0.44033241271972656, 0.7155994772911072, 0.13532276451587677, -1.4330917596817017, 0.5559666156768799, -0.3448437750339508, 2.16261625289917...
func ServiceNames(svr ...string) []string { return append(svr, "erda.core.hepa.runtime_service.RuntimeService", ) }
[ -0.6740432381629944, 0.1450771987438202, 0.4748240113258362, 0.2601993978023529, 0.16776885092258453, 0.4055485725402832, -0.7363172173500061, -0.17512349784374237, 0.07463029772043228, -0.28433871269226074, 0.20051513612270355, 0.21885474026203156, -0.42946749925613403, 1.2661964893341064...
func RUnset(data, unsetData []byte) []byte { var dataLength = len(data) if dataLength < 1 { return data } unsetDataLength := len(unsetData) operationLength := dataLength operationCut := 0 if unsetDataLength > dataLength { operationLength = unsetDataLength operationCut = operationLength - dataLength } r...
[ -0.3630695641040802, 0.33570578694343567, 0.7790713310241699, -0.9464227557182312, -0.8370833992958069, -0.35014164447784424, 0.13157178461551666, -0.6887315511703491, 0.2033185213804245, -0.43038931488990784, 0.3686736822128296, 1.0838768482208252, -0.9354296922683716, -0.3628569841384887...
func RSet(data, setData []byte) []byte { dataLength := len(data) setDataLength := len(setData) operationLength := dataLength if setDataLength > dataLength { operationLength = setDataLength } result, _ := Set(LPad(data, operationLength, 0x00), LPad(setData, operationLength, 0x00)) return result }
[ 0.31104519963264465, 0.589614987373352, 0.5622915029525757, -0.7704323530197144, -0.6528494954109192, -0.6759026050567627, -0.6232986450195312, -1.0266920328140259, 0.19461967051029205, 0.11376038938760757, -0.0009575378498993814, 1.3085490465164185, -0.656857967376709, -0.3572793602943420...
func RToggle(data, toggleData []byte) []byte { dataLength := len(data) toggleDataLength := len(toggleData) operationLength := dataLength if toggleDataLength > dataLength { operationLength = toggleDataLength } result, _ := Toggle(LPad(data, operationLength, 0x00), LPad(toggleData, operationLength, 0x00)) retu...
[ -0.36435267329216003, 0.5594585537910461, 0.7810093760490417, -0.8159207701683044, -0.6685686111450195, -0.21892885863780975, -0.5276198983192444, 0.18269683420658112, 0.3051857352256775, 0.04447367414832115, -0.14822356402873993, -0.04404982924461365, -1.3708537817001343, -0.2439057379961...
func RSubset(data []byte, leastSignificantBit, mostSignificantBit uint64) []byte { var maxDataMostSignificantBit = uint64(maxBitsLength*len(data) - 1) if mostSignificantBit <= leastSignificantBit || leastSignificantBit > maxDataMostSignificantBit { return make([]byte, 0) } if mostSignificantBit > maxDataMostSig...
[ -0.019293643534183502, 0.5300058722496033, 0.7863237261772156, -0.30979228019714355, -1.2288005352020264, 0.29036229848861694, 0.017958153039216995, -0.4036339521408081, -0.26812487840652466, -0.26187869906425476, -0.37609782814979553, 1.351155161857605, -0.5566867589950562, -0.11407230049...
func Adder(waitGroup sync.WaitGroup) { taskCounter := 1 for { newTaskID := strconv.Itoa(taskCounter) task := utils.Task{newTaskID, false, utils.UnTouched, time.Now(), "taskdata"} utils.TaskQueue = append(utils.TaskQueue, task) fmt.Println("", task.Id) taskCounter = taskCounter + 1 time.Sleep(5 * time.Seco...
[ -0.6001946926116943, 0.0250852108001709, 0.696427047252655, 0.31586953997612, -0.2813723087310791, 1.1131774187088013, 0.5376094579696655, 0.010531820356845856, -1.094031810760498, 0.10534044355154037, -0.684059739112854, -0.11781755089759827, 0.08728179335594177, 1.6107903718948364, -0....
func Scramble() string { var seq = []int{} // move sequences seqlen := config.GlobalConfig().ScrambleLength //tl=number of allowed moves (twistable layers) on axis -- middle layer ignored tl := 2 // size - 1 but size is always 3 //set up bookkeeping var axam []int axsl := make([]int, tl) la := -1 for len(s...
[ -0.21866902709007263, -0.1314263641834259, 1.0863733291625977, 0.32321444153785706, -0.8651542663574219, 0.2859022617340088, 1.0919378995895386, -0.4017937481403351, 0.512265682220459, 0.4279101490974426, -0.35698145627975464, 0.013644573278725147, -0.3350151777267456, -0.08591639995574951...
func FindTwoSumKInBST(head *BST, k int) []int { return inorder(head, head, k, []int{}) }
[ 0.12244602292776108, -0.8785805702209473, 0.7436753511428833, 1.0482360124588013, -1.0970534086227417, -0.6143719553947449, -0.29849866032600403, -0.6810899972915649, -0.20613625645637512, 0.3751438558101654, -1.2819451093673706, 0.4269694983959198, -0.2446262091398239, 1.4255235195159912,...
func (gp *GasPool) AddGas(amount uint64) *GasPool { if uint64(*gp) > math.MaxUint64-amount { panic("gas pool pushed above uint64") } *(*uint64)(gp) += amount return gp }
[ -0.6980646252632141, 1.026642084121704, 0.5647048950195312, 0.47667816281318665, -0.7724378705024719, 0.5882139205932617, -0.35893678665161133, -0.977559506893158, 0.2665187418460846, -0.7801395058631897, 0.8344594240188599, 0.5052574276924133, -0.30252695083618164, 0.11403828859329224, ...
func (gp *GasPool) SubGas(amount uint64) error { if uint64(*gp) < amount { return ErrGasLimitReached } *(*uint64)(gp) -= amount return nil }
[ 0.20078980922698975, 0.4667168855667114, 0.4455838203430176, 0.06946258991956711, -0.6947661638259888, 0.27940723299980164, 0.24695497751235962, -0.3666797876358032, -0.17257891595363617, -0.18203137814998627, -0.0585063211619854, 1.0749590396881104, -0.3420860469341278, -0.165122896432876...
func (gp *GasPool) Gas() uint64 { return uint64(*gp) }
[ -1.0852456092834473, 0.3842470645904541, 0.24525737762451172, 0.5568530559539795, -0.046802397817373276, 0.3054008185863495, 0.4044073522090912, -0.2996804416179657, -0.5041757225990295, -0.9317302703857422, 0.5649960041046143, 0.9049491882324219, -0.09811978787183762, 0.3932532072067261, ...
func WithMux(parent context.Context, m Mux) context.Context { return &wrapper{parent, m} }
[ -0.7261002063751221, -0.1446390450000763, 0.5474105477333069, -0.05499551072716713, -1.5529775619506836, 0.42197734117507935, -1.468145489692688, 0.1983117014169693, 0.7961840033531189, -0.7161783576011658, 0.5581896305084229, 0.5820537209510803, 0.6585936546325684, -0.0930546224117279, ...
func (ctx *wrapper) Value(key interface{}) interface{} { if key == contextKey { return ctx.mux } return ctx.Context.Value(key) }
[ -1.0599288940429688, 0.2166426032781601, 0.42834603786468506, 0.5855665802955627, -0.29886406660079956, 0.42043736577033997, -0.5381391644477844, -1.0443307161331177, 1.1610729694366455, 0.9236905574798584, 0.8593952655792236, 0.7057144045829773, -0.1154179722070694, 0.45134443044662476, ...
func (r spaceRepository) ListAllSpaces(ctx context.Context, skip uint64, take uint64) ([]domain.Space, error) { s := r.session.Clone() defer s.Close() log.Println("got in repo") var spaces []domain.Space err := s.DB(config.MongoDB).C(config.MongoCollection).Find(nil).All(&spaces) if err != nil { return nil, e...
[ 0.4601556062698364, -0.18024133145809174, 0.27520331740379333, 0.31429457664489746, -0.5053451657295227, 0.5683457851409912, -0.3864760100841522, 0.21770286560058594, 1.1800198554992676, -0.2020019143819809, 0.30811625719070435, 0.8759218454360962, -0.7899664044380188, 1.5816465616226196, ...
func (s *statusInfo) status(cmd *cobra.Command, _ []string) error { s.out = cmd.OutOrStdout() ctx := cmd.Context() ds, err := s.daemonStatus(ctx) if err != nil { return err } cs, err := s.connectorStatus(ctx) if err != nil { return err } if s.json { return s.printJSON(ds, cs) } s.printText(ds, cs) ...
[ -0.057995639741420746, -1.3938982486724854, 0.34017470479011536, 0.12534190714359283, -0.06918445229530334, 0.08797471970319748, 0.21265806257724762, 0.6805464029312134, -0.22998662292957306, -0.5786342024803162, 0.049698781222105026, 0.8064084053039551, 0.3309375047683716, 1.2329221963882...
func NewCli() *CliPrompter { return &CliPrompter{} }
[ 0.09099800139665604, -1.0269252061843872, 0.2214527577161789, 0.23233084380626678, -1.754088044166565, -0.08942440897226334, -0.5734367370605469, -0.509904682636261, -0.06830231100320816, 0.4897848665714264, 0.12156731635332108, -0.29837968945503235, 0.3542037904262543, -0.2024683505296707...
func (cli *CliPrompter) RequestSecurityCode(pattern string) string { token := "" prompt := &survey.Input{ Message: fmt.Sprintf("Security Token [%s]", pattern), } _ = survey.AskOne(prompt, &token, survey.WithValidator(survey.Required)) return token }
[ -0.6556740403175354, -0.5877389311790466, 0.32533422112464905, 0.4926310181617737, -0.22130034863948822, 0.2612628936767578, 0.22097273170948029, -0.22994054853916168, 0.7329351305961609, -1.178218960762024, -0.40504100918769836, 1.2249637842178345, -0.7031753063201904, -0.4894475042819977...
func (cli *CliPrompter) ChooseWithDefault(pr string, defaultValue string, options []string) (string, error) { selected := "" prompt := &survey.Select{ Message: pr, Options: options, Default: defaultValue, } _ = survey.AskOne(prompt, &selected, survey.WithValidator(survey.Required)) // return the selected el...
[ -0.3070748448371887, -0.8031104803085327, 0.4463856816291809, 0.4313547909259796, -0.055514413863420486, 0.26601821184158325, -0.1274549514055252, -1.1973662376403809, 0.5380163788795471, 0.1499364972114563, 0.18861573934555054, -0.12088274210691452, -0.7882928252220154, -0.071113631129264...
func (cli *CliPrompter) Choose(pr string, options []string) int { selected := "" prompt := &survey.Select{ Message: pr, Options: options, } _ = survey.AskOne(prompt, &selected, survey.WithValidator(survey.Required)) // return the selected element index for i, option := range options { if selected == option...
[ -0.9597820043563843, -0.3987073600292206, 0.5462750792503357, 0.20683836936950684, -0.4519796371459961, 0.3455461263656616, 0.7765190601348877, -0.6579999923706055, 0.30271628499031067, -0.3446214199066162, 0.38168439269065857, 0.4078829884529114, -0.7191436886787415, -0.4597049653530121, ...
func (cli *CliPrompter) String(pr string, defaultValue string) string { val := "" prompt := &survey.Input{ Message: pr, Default: defaultValue, } _ = survey.AskOne(prompt, &val) return val }
[ -0.33534306287765503, -0.3150147497653961, 0.23218588531017303, -0.09348506480455399, -0.7222508788108826, 1.4376347064971924, 0.8395085334777832, -1.3550541400909424, 0.031786710023880005, -0.14432984590530396, 0.20166264474391937, 0.22818195819854736, -0.5923808813095093, -0.514742553234...
func (cli *CliPrompter) StringRequired(pr string) string { val := "" prompt := &survey.Input{ Message: pr, } _ = survey.AskOne(prompt, &val, survey.WithValidator(survey.Required)) return val }
[ -0.9768369793891907, -0.6430843472480774, 0.2581428289413452, -0.23787382245063782, -1.2944403886795044, 1.7255312204360962, -0.11514640599489212, -0.9348568320274353, 0.503568708896637, 0.20739780366420746, -0.147554412484169, 0.7871317267417908, -0.2872627377510071, -0.2582758069038391, ...
func (cli *CliPrompter) Password(pr string) string { val := "" prompt := &survey.Password{ Message: pr, } _ = survey.AskOne(prompt, &val) return val }
[ -0.7046516537666321, -0.3587145507335663, 0.5730209350585938, 0.18155857920646667, -0.6134141683578491, 1.1975204944610596, 0.711456835269928, -0.6984817385673523, 0.4701433479785919, -0.49927201867103577, 0.35675761103630066, 0.061354219913482666, -0.5762211084365845, 0.08288521319627762,...