text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (g *Group) PATCH(path string, h Handler, gases ...Gas) { g.Air.PATCH(g.Prefix+path, h, append(g.Gases, gases...)...) }
[ -0.5336172580718994, -0.6317276954650879, 0.35322079062461853, 0.16902205348014832, -0.4186372756958008, 1.4198726415634155, -0.3234111964702606, 0.5675169229507446, -0.9365040063858032, -0.9725531339645386, 0.1398009955883026, 0.46114009618759155, -0.42351090908050537, 0.5561349987983704,...
func (g *Group) DELETE(path string, h Handler, gases ...Gas) { g.Air.DELETE(g.Prefix+path, h, append(g.Gases, gases...)...) }
[ 0.2117597460746765, -0.025721726939082146, 0.390159010887146, 0.6886144280433655, 0.2747501730918884, 0.7273449301719666, 0.054074883460998535, 0.6861671805381775, -1.137821078300476, -0.5570091605186462, 0.08091410249471664, -0.08070770651102066, -0.8791828751564026, 0.44540122151374817, ...
func (g *Group) CONNECT(path string, h Handler, gases ...Gas) { g.Air.CONNECT(g.Prefix+path, h, append(g.Gases, gases...)...) }
[ -0.8886651396751404, -0.4730110168457031, 0.4677741527557373, 0.7193011045455933, -0.38448578119277954, 0.993320107460022, -0.5283351540565491, -0.0823083147406578, -1.880165457725525, -0.6423203349113464, 0.2366747260093689, -0.20429673790931702, -0.34726569056510925, 0.7596497535705566, ...
func (g *Group) OPTIONS(path string, h Handler, gases ...Gas) { g.Air.OPTIONS(g.Prefix+path, h, append(g.Gases, gases...)...) }
[ -0.6307768821716309, -0.030161894857883453, 0.3697740137577057, 0.19632001221179962, 0.725207507610321, 0.6841698288917542, -0.1632150411605835, -0.03152027726173401, -0.752617597579956, -0.9594117999076843, 0.22104494273662567, 0.01524308044463396, -0.028914794325828552, 0.531209945678710...
func (g *Group) TRACE(path string, h Handler, gases ...Gas) { g.Air.TRACE(g.Prefix+path, h, append(g.Gases, gases...)...) }
[ 0.14174427092075348, 0.12628304958343506, 0.4627639055252075, 0.6043468713760376, 0.37287747859954834, 0.5250329375267029, 0.12857785820960999, -0.3242157995700836, -0.9121420383453369, -0.8018842935562134, -0.29939764738082886, -0.21932406723499298, -0.5311095118522644, 0.2981269061565399...
func (g *Group) BATCH(methods []string, path string, h Handler, gases ...Gas) { g.Air.BATCH(methods, g.Prefix+path, h, append(g.Gases, gases...)...) }
[ -0.36658644676208496, -0.24730882048606873, 0.37351691722869873, 0.9319031238555908, 0.8324452042579651, 0.5892243981361389, -0.4514041543006897, 0.13880234956741333, -1.3350231647491455, -1.3268544673919678, -0.49942657351493835, 0.5488842129707336, -0.13049815595149994, 0.817330896854400...
func (g *Group) FILE(path, file string, gases ...Gas) { g.Air.FILE(g.Prefix+path, file, append(g.Gases, gases...)...) }
[ -0.2876523435115814, -0.3495664596557617, 0.4338541328907013, 0.5277165174484253, 0.340904176235199, 1.0286610126495361, -0.062796950340271, 0.3485265374183655, -1.6195940971374512, -0.9244490265846252, 0.11558021605014801, -0.19066917896270752, -0.0557112880051136, 0.6343083381652832, 0...
func (g *Group) FILES(prefix, root string, gases ...Gas) { g.Air.FILES(g.Prefix+prefix, root, append(g.Gases, gases...)...) }
[ -0.49969854950904846, 0.03484385088086128, 0.4929407238960266, 0.03541628643870354, 0.2785627543926239, 0.1568119078874588, -0.6491948962211609, 0.47702476382255554, -0.8745271563529968, -1.0661201477050781, 0.4089520275592804, 0.2546490430831909, -0.4242570698261261, 0.7815000414848328, ...
func (g *Group) Group(prefix string, gases ...Gas) *Group { return g.Air.Group(g.Prefix+prefix, append(g.Gases, gases...)...) }
[ -0.35668060183525085, 0.2916647791862488, 0.4106418192386627, 0.3762457072734833, -0.17903470993041992, 0.33377325534820557, -0.44251587986946106, 0.09569902718067169, -0.8031502962112427, -1.2830471992492676, 0.1983950436115265, 0.36464571952819824, -0.04973030090332031, 0.52009516954422,...
func (c *Container) createTimer() error { return define.ErrNotImplemented }
[ 0.429014652967453, 0.0012008448829874396, 0.513884425163269, 0.18817530572414398, 0.9142906069755554, 0.36045321822166443, 0.2997801899909973, -0.07500462234020233, -0.2804586589336395, 0.2720171809196472, 0.019009996205568314, -0.7245799899101257, -0.28917571902275085, 2.3349082469940186,...
func (c *Container) startTimer() error { return define.ErrNotImplemented }
[ 0.5251011252403259, -0.23242120444774628, 0.3099041283130646, 1.070522665977478, -0.04284558817744255, 0.09787890315055847, 1.0085612535476685, 0.6285425424575806, 0.09588389098644257, -0.4052198827266693, -0.03306446969509125, 0.021871477365493774, 0.02520120143890381, 2.4137587547302246,...
func (c *Container) removeTimer() error { return define.ErrNotImplemented }
[ -0.17747905850410461, -0.013007581233978271, 0.37936514616012573, 0.6974847316741943, -0.14988797903060913, -0.1499491035938263, 1.0002155303955078, 0.7737646102905273, -0.11853532493114471, 0.18251287937164307, -0.07221894711256027, -0.6037420630455017, -0.1135876402258873, 2.109246253967...
func GenerateSliceWithLength(min, max int) ([]int, error) { length, err := GenerateInt(min, max) if err != nil { return nil, err } return GenerateSlice(length) }
[ -0.8711027503013611, -0.7585232257843018, 0.2250061333179474, -0.15463992953300476, 0.39957427978515625, -0.25242161750793457, -1.451549768447876, -0.39372125267982483, 0.31903189420700073, 0.4168941080570221, -1.4367351531982422, 0.12201724946498871, -0.03111305646598339, 0.56476575136184...
func GenerateSlice(n int) ([]int, error) { if n <= 0 { return nil, errors.New("slice length should be greater or equal than one") } result := make([]int, n) for i := 0; i < n-1; i++ { result[i] = rand.Intn(n) } return result, nil }
[ -1.933582067489624, 0.4707047641277313, 0.7130072116851807, 0.24126119911670685, 0.40957632660865784, 0.08182225376367569, 0.029503807425498962, -0.09368907660245895, 0.652113676071167, -0.23669922351837158, -0.924008309841156, -0.14047080278396606, -0.6655129194259644, 1.1655614376068115,...
func GenerateInt(min, max int) (int, error) { if min > max { return 0, errors.New("min should be bigger or equal than max") } rand.Seed(time.Now().UnixNano()) return rand.Intn(max-min+1) + min, nil }
[ -0.5439730882644653, 0.24644865095615387, 0.7535921335220337, -0.36453506350517273, -0.08339577913284302, 0.6284630298614502, -0.9769818186759949, -0.7094531655311584, -0.5982876420021057, -0.4035690426826477, -0.566398561000824, 0.0013317546108737588, -0.4046558439731598, -0.1240258142352...
func testContext(t *testing.T) (context.Context, func()) { ctxTest, completeTest := context.WithTimeout(context.Background(), 1100*time.Millisecond) go func() { after := time.NewTimer(1 * time.Second) select { case <-ctxTest.Done(): after.Stop() case <-after.C: require.Fail(t, "test timed out") } }()...
[ 0.5202115178108215, -0.08692456781864166, 0.5426793694496155, -0.07721230387687683, -0.3982219696044922, 0.12707403302192688, 0.35409674048423767, -0.4508090019226074, 0.7106494307518005, 0.4633844196796417, -0.5495235919952393, 0.07773083448410034, -0.564072847366333, 0.1871633529663086, ...
func StepchainRowSiteDetailCtrl(configs models.Configuration) gin.HandlerFunc { return func(c *gin.Context) { var detailedRows []models.StepchainTaskWithCmsrunJobtypeSite var err error var cursor *mongo.Cursor var sortType = bson.D{bson.E{Key: "StepName", Value: 1}} ctx, cancel, req := InitializeCtxAndBindRe...
[ -0.2879623770713806, 0.9001131653785706, 0.7108005881309509, -0.2512062191963196, 0.35763633251190186, 0.32440707087516785, 1.1310889720916748, 0.1965191811323166, -0.36315393447875977, -0.13052959740161896, 0.40822288393974304, 0.45254912972450256, 0.09208043664693832, 1.2084791660308838,...
func utilScTaskCmsrunJobtypeSiteExternalLinks(cpuEffs []models.StepchainTaskWithCmsrunJobtypeSite, dataTimestamp models.DataSourceTS, links models.ExternalLinks) { for i := 0; i < len(cpuEffs); i++ { replacer := strings.NewReplacer( links.StrStartDate, dataTimestamp.StartDate, links.StrEndDate, dataTimestamp.E...
[ -0.4822055399417877, 0.330539733171463, 0.4727722704410553, -0.7473604083061218, 0.1161319687962532, -0.25744113326072693, 0.04094846174120903, 1.423397421836853, -0.5459824800491333, -0.4311351478099823, -0.06083783879876137, 0.7101325988769531, -0.41402092576026917, 0.9180572032928467, ...
func StepchainRowCmsrunDetailCtrl(configs models.Configuration) gin.HandlerFunc { return func(c *gin.Context) { var detailedCmsruns []models.StepchainTaskWithCmsrunJobtype var err error var cursor *mongo.Cursor var sortType = bson.D{bson.E{Key: "StepName", Value: 1}} ctx, cancel, req := InitializeCtxAndBindR...
[ 0.03670399263501167, 0.8198763132095337, 0.6857632994651794, -0.5937018394470215, 0.5131896734237671, -0.043725624680519104, 0.705446720123291, 0.711357831954956, -0.5802066326141357, -0.3076035678386688, 0.2044955939054489, 0.5378042459487915, -0.13997147977352142, 1.2007545232772827, -...
func (t *TrafficLightTTY) Red() { t.send([]byte(RED)) }
[ -0.08836689591407776, 1.008264422416687, 0.14963296055793762, -0.29547858238220215, 0.40875279903411865, 0.7077706456184387, -0.4369604289531708, -0.1369660347700119, -0.08090002089738846, 0.20638799667358398, -1.4007586240768433, 0.7392463684082031, -0.15588536858558655, 1.340971350669860...
func (t *TrafficLightTTY) Yellow() { t.send([]byte(YELLOW)) }
[ -0.06799274682998657, 0.5209764242172241, 0.17117400467395782, -0.748491644859314, 0.18857595324516296, 0.22302840650081635, 0.12250764667987823, -0.8097359538078308, -0.40394920110702515, -0.4625774323940277, -1.8089410066604614, 0.6374773383140564, 0.702562689781189, 0.5853084325790405, ...
func (t *TrafficLightTTY) Green() { t.send([]byte(GREEN)) }
[ 0.1584516018629074, 1.1781089305877686, 0.2657150328159332, -0.17633017897605896, 0.4001041054725647, 1.5310611724853516, -0.8708475828170776, -0.014457818120718002, -0.4250621795654297, 0.15097279846668243, -1.2252224683761597, 0.1631150245666504, 0.15177607536315918, 0.4800686240196228, ...
func (t *TrafficLightTTY) Blink() { t.send([]byte(BLINK)) }
[ -0.2925218343734741, 0.7498763203620911, 0.04451983422040939, 0.013211979530751705, 0.1686578094959259, 0.8781853914260864, -0.05617494136095047, -0.24693606793880463, -0.09221532940864563, -0.0009237605263479054, -0.8077349662780762, 0.5854151248931885, 0.09810084849596024, 1.017341256141...
func Cacheable(node ast.Node) bool { _, isSelect := node.(*ast.SelectStmt) _, isUpdate := node.(*ast.UpdateStmt) _, isInsert := node.(*ast.InsertStmt) _, isDelete := node.(*ast.DeleteStmt) if !(isSelect || isUpdate || isInsert || isDelete) { return false } checker := cacheableChecker{ cacheable: true, } no...
[ -0.8374247550964355, 0.7006970047950745, 0.5909594297409058, 0.3141874670982361, -0.9657187461853027, 0.2096944898366928, -0.1623615324497223, 0.1660410463809967, -0.2629077732563019, 0.8976864218711853, 0.22571811079978943, -0.28300461173057556, -0.547224223613739, 0.9128823280334473, -...
func (checker *cacheableChecker) Enter(in ast.Node) (out ast.Node, skipChildren bool) { switch node := in.(type) { case *ast.VariableExpr, *ast.ExistsSubqueryExpr, *ast.SubqueryExpr: checker.cacheable = false return in, true case *ast.FuncCallExpr: if _, found := expression.UnCacheableFunctions[node.FnName.L];...
[ -0.7127651572227478, -0.007808249909430742, 0.9674578309059143, -0.15875403583049774, -0.5115278959274292, -0.014827832579612732, 0.642220675945282, 0.5213051438331604, -0.3788319528102875, 0.38529646396636963, 0.25594696402549744, 0.2378414422273636, -0.5701066851615906, 0.982858180999755...
func (checker *cacheableChecker) Leave(in ast.Node) (out ast.Node, ok bool) { return in, checker.cacheable }
[ -0.519155740737915, 0.38265231251716614, 0.45925670862197876, -0.22605834901332855, -1.1767992973327637, 0.7632976770401001, -0.01221213024109602, -0.004487635102123022, 0.2796122133731842, 0.4815504550933838, -0.14492037892341614, -0.8765566945075989, -0.8757854700088501, 0.06905754655599...
func (client *ShorelineClient) Start() error { if err := client.serverLogin(); err != nil { log.Printf("Problem with initial server token acquisition, [%v]", err) panic(err) } go func() { for { timer := time.After(time.Duration(client.config.TokenRefreshInterval)) select { case twoWay := <-client.clo...
[ -0.0018773720366880298, -0.4731128513813019, 0.6433124542236328, -0.27423331141471863, -0.040132202208042145, 0.28411370515823364, 0.02368636429309845, -0.4154735505580902, -0.5453975796699524, -0.11041010916233063, -0.3225746750831604, 1.8593050241470337, -0.2761928141117096, 0.4888785779...
func (client *ShorelineClient) serverLogin() error { host := client.getHost() if host == nil { return errors.New("No known user-api hosts") } host.Path = path.Join(host.Path, "serverlogin") req, _ := http.NewRequest("POST", host.String(), nil) req.Header.Add("x-tidepool-server-name", client.config.Name) req....
[ -0.9986107349395752, -0.20011191070079803, 0.6380034685134888, -0.43172189593315125, -0.04431284964084625, -0.4229358732700348, 0.20364803075790405, -0.03288346529006958, -0.3328189253807068, 0.5260739922523499, -1.3201594352722168, 1.7617143392562866, -0.8302090167999268, 0.07133085280656...
func (client *ShorelineClient) Signup(username, password, email string) (*UserData, error) { host := client.getHost() if host == nil { return nil, errors.New("No known user-api hosts.") } host.Path = path.Join(host.Path, "user") data := []byte(fmt.Sprintf(`{"username": "%s", "password": "%s","emails":["%s"]}`, ...
[ -0.9762420654296875, 0.6779281497001648, 0.8675820231437683, 0.045628294348716736, 0.18600104749202728, 0.5533969402313232, -0.21650320291519165, 0.14346937835216522, -0.46579739451408386, 0.36287328600883484, -0.13184811174869537, 0.6756116151809692, -0.8437751531600952, -0.52008938789367...
func (client *ShorelineClient) Login(username, password string) (*UserData, string, error) { host := client.getHost() if host == nil { return nil, "", errors.New("No known user-api hosts.") } host.Path = path.Join(host.Path, "login") req, _ := http.NewRequest("POST", host.String(), nil) req.SetBasicAuth(usern...
[ -0.8827941417694092, -0.2748807668685913, 0.8080456852912903, -0.34023600816726685, -0.5198398232460022, 0.20423412322998047, -0.33734962344169617, -0.7406035661697388, -0.30000168085098267, 0.24243395030498505, -1.0655596256256104, 1.050396203994751, -0.07235143333673477, -0.5739433765411...
func (client *ShorelineClient) CheckToken(token string) *TokenData { host := client.getHost() if host == nil { return nil } host.Path = path.Join(host.Path, "token", token) req, _ := http.NewRequest("GET", host.String(), nil) req.Header.Add("x-tidepool-session-token", client.serverToken) res, err := client....
[ -0.5118120908737183, -0.40268662571907043, 0.877214252948761, -0.5008905529975891, 0.02694295346736908, 0.07310257107019424, -0.5839288830757141, -0.22241178154945374, -0.2881010174751282, 0.3891003727912903, -0.46660199761390686, 1.6518858671188354, -0.4308168590068817, 0.0675268992781639...
func (client *ShorelineClient) GetUser(userID, token string) (*UserData, error) { host := client.getHost() if host == nil { return nil, errors.New("No known user-api hosts.") } host.Path = path.Join(host.Path, "user", userID) req, _ := http.NewRequest("GET", host.String(), nil) req.Header.Add("x-tidepool-sess...
[ -0.5470141768455505, 0.18891294300556183, 0.6695095896720886, 0.246970996260643, -0.11307728290557861, -0.23818586766719818, -0.31585824489593506, -1.2313870191574097, -0.21563637256622314, 0.12271076440811157, -0.3409799337387085, 1.3836746215820312, -0.43733614683151245, -0.0531084947288...
func (client *ShorelineClient) UpdateUser(userID string, userUpdate UserUpdate, token string) error { host := client.getHost() if host == nil { return errors.New("No known user-api hosts.") } //structure that the update are given to us in type updatesToApply struct { Updates UserUpdate `json:"updates"` } h...
[ -1.081997275352478, -0.5746784806251526, 0.7213407158851624, 0.0483236089348793, -0.443132609128952, -0.36575815081596375, -0.10536102205514908, -0.29753369092941284, 0.2271517515182495, 0.3778698742389679, -0.4340686798095703, 0.8964512944221497, -0.46096071600914, -0.11839860677719116, ...
func (client *ShorelineClient) DeleteUserSessions(userID, token string) error { host := client.getHost() if host == nil { return errors.New("No known user-api hosts.") } host.Path = path.Join(host.Path, "user", userID, "sessions") req, _ := http.NewRequest("DELETE", host.String(), nil) req.Header.Add("x-tidep...
[ -0.18743756413459778, -0.4771232008934021, 0.0914081558585167, -0.051848843693733215, -0.6383631825447083, -0.5277533531188965, 0.7426915168762207, -1.9723023176193237, 0.7288769483566284, 0.9322123527526855, -0.8037852048873901, 0.5835791826248169, -0.6278484463691711, -0.0587087273597717...
func FileFilter(path string, info os.FileInfo) bool { return !info.IsDir() }
[ -0.3782036304473877, -0.556827187538147, 0.3604390323162079, 0.846711277961731, -0.8560307025909424, 0.7803893089294434, -0.18062752485275269, 0.3106987476348877, -1.0756255388259888, -0.9347536563873291, -0.20920073986053467, -0.31603720784187317, -0.12858916819095612, 0.7719459533691406,...
func DirFilter(path string, info os.FileInfo) bool { return info.IsDir() }
[ -0.6257022023200989, -0.43928971886634827, 0.4141004979610443, 0.9022104144096375, -1.007218837738037, 1.0886629819869995, -0.23297680914402008, 0.3260614573955536, -0.7556355595588684, -0.9440696835517883, -0.49853265285491943, 0.21467941999435425, -0.12079537659883499, 0.0858394950628280...
func (h *IntHeap) Peek()(x int){ old := *h x = old[0] return x }
[ -0.339854896068573, 0.13004960119724274, 0.6466566324234009, -0.4178406000137329, -0.6715171337127686, -0.3162510097026825, 0.14725834131240845, -1.0188413858413696, -0.34433868527412415, 0.06049663573503494, -0.08014118671417236, 1.105939507484436, -0.3275749385356903, -0.4330331683158874...
func (h *IntHeap) Push(x interface{}) { if(x.(int) > h.Peek()){ heap.Pop(h) *h = append(*h, x.(int)) } }
[ -0.42704522609710693, 0.9510393738746643, 0.4108070135116577, 0.037073567509651184, -0.6597698926925659, 0.23214474320411682, -0.6818761229515076, -1.4262394905090332, 0.24258819222450256, 0.5759039521217346, -0.6377089023590088, 0.3499782085418701, -0.48437219858169556, 1.0432378053665161...
func convertTriggers(dataBase moira.Database, logger moira.Logger, rollback bool) error { allTriggerIDs, err := dataBase.GetLocalTriggerIDs() if err != nil { return err } allTriggers, err := dataBase.GetTriggers(allTriggerIDs) if err != nil { return err } if rollback { return downgradeTriggers(allTrigger...
[ 0.28813856840133667, -0.48399510979652405, 0.7578473091125488, -0.3560357987880707, 0.8795280456542969, -0.41138628125190735, -0.10879955440759659, 0.7358462810516357, 0.6931719779968262, 1.0138554573059082, -0.2799190580844879, 0.25237488746643066, -1.351136326789856, 0.42944347858428955,...
func convertTaggedSubscription(database moira.Database, subscription *moira.SubscriptionData) error { newTags := make([]string, 0) for _, tag := range subscription.Tags { switch tag { case stateErrorTag: if !subscription.IgnoreWarnings { subscription.IgnoreWarnings = true } case stateDegradationTag, s...
[ 0.5175958871841431, 0.09614349901676178, 0.5597444772720337, 0.043233875185251236, 0.3854304552078247, -0.24362261593341827, -1.2322494983673096, -0.43781664967536926, 0.21510927379131317, 0.5558508634567261, -1.0298384428024292, 0.48016369342803955, 0.1948675662279129, 0.7060093879699707,...
func convertUntaggedSubscription(database moira.Database, subscription *moira.SubscriptionData) error { if subscription.IgnoreWarnings && !contains(subscription.Tags, stateErrorTag) { subscription.Tags = append(subscription.Tags, stateErrorTag) } if subscription.IgnoreRecoverings && !contains(subscription.Tags, st...
[ 0.3053276836872101, 0.3272714614868164, 0.6345592737197876, -0.46561726927757263, 0.29569900035858154, -0.017096733674407005, -0.8826969861984253, -0.2742462158203125, 0.6051321625709534, 0.18574438989162445, -0.9346465468406677, 0.4022940993309021, 0.08868685364723206, 0.49781206250190735...
func convertSubscriptions(database moira.Database, logger moira.Logger, rollback bool) error { allTags, err := database.GetTagNames() if err != nil { return err } allSubscriptions, err := database.GetTagsSubscriptions(allTags) if err != nil { return err } var subscriptionsConverter func(moira.Database, *moir...
[ 0.5541712641716003, -0.029763314872980118, 0.7613018155097961, -0.0469045490026474, 0.038223735988140106, -0.7360559105873108, -0.7006109952926636, -0.21205495297908783, 0.1865585744380951, 0.9795559644699097, 0.14592525362968445, 0.30061954259872437, -0.3253362476825714, 1.272794485092163...
func NewCmd(args ...interface{}) *redis.Cmd { return redis.NewCmd(args...) }
[ 0.5926589965820312, -0.46077802777290344, 0.4748561978340149, 0.8116462230682373, -0.2551270127296448, 0.4744596779346466, -0.3357064127922058, -0.10962752252817154, 0.40018707513809204, -1.045880913734436, 0.907326877117157, 0.6117503046989441, 0.1517701894044876, 0.38256528973579407, -...
func NewSliceCmd(args ...interface{}) *redis.SliceCmd { return redis.NewSliceCmd(args...) }
[ 0.17239908874034882, -1.2103708982467651, 0.2825878858566284, 0.559820830821991, 0.048588525503873825, -0.43454962968826294, -0.2957078516483307, -0.4086228907108307, -0.03470689058303833, -0.31176429986953735, 0.20417645573616028, 0.6516284942626953, 0.13399973511695862, 0.859873712062835...
func NewStatusCmd(args ...interface{}) *redis.StatusCmd { return redis.NewStatusCmd(args...) }
[ 0.29587945342063904, -1.0103909969329834, 0.32528990507125854, 0.925235390663147, -0.40131446719169617, -0.07077279686927795, -0.7280802726745605, 0.3019629418849945, 0.3644057512283325, -0.5205771923065186, -0.3898948132991791, 0.6482638716697693, 0.20008932054042816, 1.0059683322906494, ...
func NewIntCmd(args ...interface{}) *redis.IntCmd { return redis.NewIntCmd(args...) }
[ 0.6276040077209473, -0.8266393542289734, 0.44389256834983826, 0.14799463748931885, 0.058586765080690384, -0.24943755567073822, -0.6273480653762817, -0.27233606576919556, 0.07634470611810684, -0.5558590888977051, 0.157209113240242, 0.5062843561172485, -0.6840479969978333, 0.3564573228359222...
func NewDurationCmd(precision time.Duration, args ...interface{}) *redis.DurationCmd { return redis.NewDurationCmd(precision, args...) }
[ 0.04689134657382965, -0.7460548877716064, 0.48934638500213623, 0.709229052066803, -0.3162924349308014, 0.06573589891195297, -0.2415020763874054, -0.004551809746772051, 0.26352328062057495, -0.34554988145828247, -0.019831528887152672, -0.11925160139799118, 0.5734605193138123, 0.740497469902...
func NewTimeCmd(args ...interface{}) *redis.TimeCmd { return redis.NewTimeCmd(args...) }
[ 0.3408180773258209, -0.36285823583602905, 0.4508375823497772, 0.4340987801551819, 0.37889978289604187, 0.032059699296951294, -0.9401567578315735, -0.8057768940925598, 0.2101917266845703, -0.08777974545955658, -0.08234118670225143, 0.46070700883865356, -0.4944259226322174, 0.681449592113494...
func NewBoolCmd(args ...interface{}) *redis.BoolCmd { return redis.NewBoolCmd(args...) }
[ 0.6499356627464294, -0.8452956080436707, 0.42665061354637146, 0.1621810644865036, -0.34323012828826904, 0.08350688964128494, -0.9952600002288818, 0.21046827733516693, -0.30507946014404297, -0.45099368691444397, 0.06263867765665054, 0.6114912629127502, -0.15816979110240936, 0.38558465242385...
func NewStringCmd(args ...interface{}) *redis.StringCmd { return redis.NewStringCmd(args...) }
[ 0.2523408532142639, -1.0221238136291504, 0.35149145126342773, 0.14045442640781403, -0.4598763883113861, -0.1401597410440445, -0.6531978845596313, -0.06168863922357559, 0.06204260513186455, -0.6042733192443848, -0.17155034840106964, 0.29248321056365967, -0.27653607726097107, 0.4623434841632...
func NewFloatCmd(args ...interface{}) *redis.FloatCmd { return redis.NewFloatCmd(args...) }
[ 0.6414796113967896, -0.2739328444004059, 0.5469534993171692, 0.42331722378730774, 0.2558703124523163, 0.03205126151442528, -0.442058265209198, -0.19354230165481567, -0.04055720195174217, -1.1101832389831543, -0.020951543003320694, 0.5282164812088013, -0.01760074682533741, 1.381888508796692...
func NewStringSliceCmd(args ...interface{}) *redis.StringSliceCmd { return redis.NewStringSliceCmd(args...) }
[ -0.09024491906166077, -1.1062042713165283, 0.016175074502825737, -0.5053693056106567, 0.09234179556369781, -0.6934963464736938, -0.7651011347770691, -0.5135299563407898, -0.312479168176651, -0.08852463960647583, 0.49704211950302124, 0.7985510230064392, 0.3459458351135254, 0.599013566970825...
func NewBoolSliceCmd(args ...interface{}) *redis.BoolSliceCmd { return redis.NewBoolSliceCmd(args...) }
[ 0.08545808494091034, -1.350213646888733, 0.18896211683750153, 0.2829325497150421, -0.18398019671440125, -0.5476830005645752, -0.6066378355026245, -0.09277377277612686, -0.5797127485275269, -0.31790995597839355, -0.14543896913528442, 0.4875066578388214, 0.30524641275405884, 0.76335477828979...
func NewStringStringMapCmd(args ...interface{}) *redis.StringStringMapCmd { return redis.NewStringStringMapCmd(args...) }
[ -0.1218613013625145, -1.5943881273269653, 0.3955884873867035, -0.6432570219039917, -0.6955357789993286, 0.11577847599983215, -1.1809413433074951, 0.20188935101032257, 0.4294210970401764, -0.24091394245624542, 0.5939860939979553, 0.43626856803894043, 0.31945931911468506, -0.2826065421104431...
func NewStringIntMapCmd(args ...interface{}) *redis.StringIntMapCmd { return redis.NewStringIntMapCmd(args...) }
[ -0.3978677988052368, -1.381377935409546, 0.27982717752456665, -0.9713922739028931, -0.5890238285064697, -0.5273144245147705, -1.050329566001892, -0.3278498649597168, 0.6492419242858887, 0.23278602957725525, 0.3215212821960449, -0.2491094172000885, -0.48378729820251465, -0.3138802945613861,...
func NewStringStructMapCmd(args ...interface{}) *redis.StringStructMapCmd { return redis.NewStringStructMapCmd(args...) }
[ -0.23750977218151093, -1.0459028482437134, 0.4778992831707001, -1.1189850568771362, -0.6417628526687622, 0.11662670969963074, -0.913275957107544, 0.06357678025960922, 0.9799204468727112, -0.4968721866607666, 0.011272119358181953, -0.008433693088591099, 0.30910107493400574, -0.3485783934593...
func NewXMessageSliceCmd(args ...interface{}) *redis.XMessageSliceCmd { return redis.NewXMessageSliceCmd(args...) }
[ 0.22121044993400574, -1.027533769607544, 0.16108886897563934, -0.3774985074996948, -0.7985578775405884, -0.1983947455883026, -0.9400444626808167, -0.9981250166893005, 0.18649011850357056, 0.4294028878211975, 0.1657256782054901, 0.18744538724422455, -0.47949931025505066, 0.657666027545929, ...
func NewXStreamSliceCmd(args ...interface{}) *redis.XStreamSliceCmd { return redis.NewXStreamSliceCmd(args...) }
[ 0.21591778099536896, -0.9175207614898682, 0.12221924215555191, -0.14892485737800598, -0.5726242661476135, -0.6232413649559021, -0.985518217086792, -0.6056118011474609, -0.18378125131130219, 0.5483977198600769, -0.07635018974542618, 0.309832364320755, 0.06410770118236542, 0.7144991755485535...
func NewXPendingCmd(args ...interface{}) *redis.XPendingCmd { return redis.NewXPendingCmd(args...) }
[ 0.15659943222999573, -0.4516385495662689, 0.5506262183189392, 0.1568995863199234, -0.6389822363853455, -0.07415375858545303, -1.207760214805603, 0.184682697057724, -0.1798507571220398, -0.13498665392398834, 0.09817790985107422, -0.271342933177948, 0.03499482199549675, 0.8015099763870239, ...
func NewXPendingExtCmd(args ...interface{}) *redis.XPendingExtCmd { return redis.NewXPendingExtCmd(args...) }
[ -0.43314874172210693, 0.17509755492210388, 0.35297226905822754, -0.2885197103023529, -0.9053921699523926, -0.695159912109375, -1.3538577556610107, 0.1212867721915245, -0.3459630608558655, 0.006979083176702261, -0.49839791655540466, -0.5669515132904053, -0.10432930290699005, 0.7510895729064...
func NewZSliceCmd(args ...interface{}) *redis.ZSliceCmd { return redis.NewZSliceCmd(args...) }
[ -0.19964927434921265, -0.822087824344635, 0.07867072522640228, 0.6501033902168274, -0.37672972679138184, -0.7880030870437622, -0.06379593163728714, -0.42223426699638367, 0.10234018415212631, -0.21543633937835693, 0.1886141300201416, 0.4848899245262146, 0.25478002429008484, 0.52631551027297...
func NewZWithKeyCmd(args ...interface{}) *redis.ZWithKeyCmd { return redis.NewZWithKeyCmd(args...) }
[ 0.06562629342079163, -1.009816288948059, 0.20345115661621094, 0.7904096245765686, -1.399355173110962, -0.0910562053322792, -0.2062026411294937, -0.5549970269203186, 0.9083605408668518, -0.68360835313797, -0.37337255477905273, -0.1519671231508255, -0.21590590476989746, 0.6181414127349854, ...
func NewScanCmd(process func(cmd redis.Cmder) error, args ...interface{}) *redis.ScanCmd { return redis.NewScanCmd(process, args...) }
[ 0.06116603687405586, -1.1009620428085327, 0.15777164697647095, 0.41024482250213623, -1.0874965190887451, -0.47693172097206116, -0.6722113490104675, -0.7300522923469543, 0.3748875558376312, -1.0660619735717773, 0.23477834463119507, 0.6577017307281494, 0.6229501962661743, 1.2545697689056396,...
func NewClusterSlotsCmd(args ...interface{}) *redis.ClusterSlotsCmd { return redis.NewClusterSlotsCmd(args...) }
[ -0.2217179536819458, 0.0023677728604525328, 0.191122904419899, 0.06265320628881454, -0.9221798181533813, 0.30418160557746887, -0.16025923192501068, 0.5336030721664429, -0.05155576765537262, -0.3640012741088867, 0.7692633867263794, 0.6469839811325073, -0.10533928871154785, -0.08567443490028...
func NewGeoLocationCmd(q *redis.GeoRadiusQuery, args ...interface{}) *redis.GeoLocationCmd { return redis.NewGeoLocationCmd(q, args...) }
[ 0.21276932954788208, -0.7405058741569519, 0.2881409227848053, 0.07720564305782318, -0.10984249413013458, 0.2452923208475113, -0.2223772555589676, -0.386144757270813, 0.4330880641937256, -0.21747751533985138, 0.4776268005371094, -0.05178011581301689, 0.01936456747353077, 0.01421725377440452...
func NewGeoPosCmd(args ...interface{}) *redis.GeoPosCmd { return redis.NewGeoPosCmd(args...) }
[ -0.0023243373725563288, -0.6424155235290527, 0.309449702501297, 0.3494966924190521, -0.2516006529331207, 0.24398964643478394, -1.0974230766296387, -0.6024004817008972, 0.08282520622015, 0.1341121643781662, 0.6587504148483276, -0.7171887159347534, 0.07398364692926407, 0.19465892016887665, ...
func NewCommandsInfoCmd(args ...interface{}) *redis.CommandsInfoCmd { return redis.NewCommandsInfoCmd(args...) }
[ 0.5748039484024048, -0.3436633348464966, 0.12260127812623978, -0.1458161175251007, 0.19567877054214478, -0.27493441104888916, -0.39770805835723877, -0.7362834215164185, -0.2171778380870819, -0.3311631381511688, 0.21069417893886566, -0.3822498321533203, 0.28768593072891235, 0.29835829138755...
func TestMain(m *testing.M) { // We get a chance to parse flags to include the framework flags for the // framework as well as any additional flags included in the integration. flag.Parse() // EnableInjectionOrDie will enable client injection, this is used by the // testing framework for namespace management, and...
[ 0.40864381194114685, 0.8105267882347107, 0.5649203062057495, 0.010116469115018845, 0.9599621891975403, 0.7185984253883362, 1.1141108274459839, -0.007351594511419535, -0.11689196527004242, -0.1775067299604416, 0.0359046533703804, -0.16689081490039825, -1.3947569131851196, 0.7162528038024902...
func Fuzz(data []byte) int { _ = css.IsIdent(data) return 1 }
[ -0.1724454015493393, -0.22234304249286652, 0.22136875987052917, 0.834224283695221, 0.034120045602321625, 0.03496808558702469, 0.46218258142471313, 0.08114367723464966, 1.2490205764770508, -0.4175754189491272, -0.879889726638794, -0.19686496257781982, -0.5641677975654602, 0.7590737342834473...
func NewVList(width, height float32) *List { return newList(true, width, height) }
[ 0.4809178411960602, 0.10163114219903946, 0.21474072337150574, 0.47808459401130676, -1.0828437805175781, -0.3646641969680786, -1.1452068090438843, -0.07085432857275009, 0.4411344826221466, 0.8691068887710571, -1.3660976886749268, 0.2316465824842453, 0.4081016778945923, 0.5935844779014587, ...
func NewHList(width, height float32) *List { return newList(false, width, height) }
[ 0.4204031229019165, 0.29074832797050476, 0.268817275762558, 0.5381606817245483, -0.9679399728775024, 0.4036335349082947, -0.9688233137130737, -0.07607250660657883, -0.09389594942331314, -0.4422953724861145, -0.7713782787322998, -0.3217518925666809, 0.04824073612689972, 0.5050552487373352, ...
func newList(vert bool, width, height float32) *List { li := new(List) li.initialize(vert, width, height) return li }
[ 0.5198386907577515, -0.06969194859266281, 0.1405472606420517, 0.9056491851806641, -0.2741517126560211, 0.32133960723876953, -0.33224764466285706, -0.08794210106134415, 0.5062997341156006, -0.273394912481308, -1.2080384492874146, -0.6653509140014648, 0.03246670588850975, 0.5504378080368042,...
func (li *List) SetSingle(state bool) { li.single = state }
[ -1.0427093505859375, 0.7174572944641113, 0.5977110266685486, 0.7475544810295105, 0.041703253984451294, 0.8806171417236328, 0.22598037123680115, 2.007011890411377, 0.6771243214607239, -0.2575201690196991, -1.6058416366577148, 0.3523658812046051, -0.662746787071228, 0.9343352913856506, -1....
func (li *List) Single() bool { return li.single }
[ -1.1603196859359741, 0.4993247985839844, 0.6034986972808838, 0.8168137669563293, 0.06861892342567444, 1.1917730569839478, 0.015883425250649452, 1.9252363443374634, 0.22382524609565735, -0.3857090473175049, -1.3885778188705444, -0.062399931252002716, -1.0865681171417236, 1.233830451965332, ...
func (li *List) SetStyles(s *ListStyles) { li.styles = s li.ItemScroller.SetStyles(li.styles.Scroller) li.update() }
[ -0.7608751058578491, -0.3383196294307709, -0.031327247619628906, 0.9431087970733643, -0.6761249303817749, -0.3110441267490387, -0.7277562618255615, 0.328834593296051, 1.0701316595077515, -0.213354229927063, -1.3586773872375488, 0.3940792381763458, -0.15703441202640533, 0.9024282097816467, ...
func (li *List) Add(item IPanel) *ListItem { return li.InsertAt(len(li.items), item) }
[ -1.057789921760559, 0.06930065155029297, 0.37414222955703735, -0.20518560707569122, 0.3887310326099396, 1.0881471633911133, -1.0211637020111084, -0.005994715262204409, 0.9994388818740845, -0.9499772191047668, -1.147051453590393, -0.25362613797187805, -0.9979958534240723, -0.426868200302124...
func (li *List) InsertAt(pos int, item IPanel) *ListItem { litem := newListItem(li, item) li.ItemScroller.InsertAt(pos, litem) litem.Panel.Subscribe(OnMouseDown, litem.onMouse) litem.Panel.Subscribe(OnCursorEnter, litem.onCursor) return litem }
[ 0.22902768850326538, 0.33944135904312134, 0.5933550596237183, -0.6307935118675232, -0.04954070225358009, 0.5334905982017517, -1.058158278465271, -0.22100941836833954, 0.2902000844478607, -0.6444776654243469, -1.393944501876831, -0.9226389527320862, -0.8057737946510315, -0.11808566749095917...
func (li *List) RemoveAt(pos int) IPanel { // Remove the list item from the internal scroller pan := li.ItemScroller.RemoveAt(pos) litem := pan.(*ListItem) // Remove item from the list item children and disposes of the list item panel item := litem.item litem.Remove(item) litem.Dispose() return item }
[ -0.6340884566307068, -0.6942598223686218, 0.639695405960083, -1.1333630084991455, -1.1086807250976562, 0.15654020011425018, -0.8134673833847046, -0.21310341358184814, 0.7167969942092896, -0.313490092754364, -1.2538632154464722, -1.0748759508132935, -0.6734687685966492, -0.3960742950439453,...
func (li *List) Remove(item IPanel) { for p, curr := range li.items { if curr.(*ListItem).item == item { li.RemoveAt(p) return } } }
[ -1.1942558288574219, -0.6247839331626892, 0.29954835772514343, 0.017823200672864914, -0.22874760627746582, 0.14120344817638397, 0.07030890136957169, 0.33541688323020935, 0.9805639386177063, -0.11235685646533966, -1.2186506986618042, -0.5399884581565857, -0.8770403861999512, 0.1396178305149...
func (li *List) ItemAt(pos int) IPanel { item := li.ItemScroller.ItemAt(pos) if item == nil { return nil } litem := item.(*ListItem) return litem.item }
[ -0.39595386385917664, -0.7982373237609863, 0.32570740580558777, -0.6310818791389465, -0.5177472829818726, -0.03148788586258888, -1.2305160760879517, -1.293728232383728, 1.072520136833191, -0.07609789073467255, -0.7170143723487854, -0.18058329820632935, -0.005679592024534941, -0.54188627004...
func (li *List) ItemPosition(item IPanel) int { for pos := 0; pos < len(li.items); pos++ { if li.items[pos].(*ListItem).item == item { return pos } } return -1 }
[ -1.391500473022461, -0.5176423192024231, 0.5067461729049683, -0.008959569968283176, -0.2960285544395447, -0.5609068274497986, 0.2482447326183319, -0.002538155997171998, 0.5059168338775635, 0.46669381856918335, -0.7043805122375488, -1.1026641130447388, -0.9943622350692749, -0.05931466445326...
func (li *List) Selected() []IPanel { sel := []IPanel{} for _, item := range li.items { litem := item.(*ListItem) if litem.selected { sel = append(sel, litem.item) } } return sel }
[ -1.0140645503997803, -1.331763505935669, 0.23019930720329285, 0.3914596140384674, 0.22170376777648926, -0.5843079090118408, -0.21216103434562683, -0.46292856335639954, 1.2714742422103882, -0.4022725820541382, -1.3685163259506226, 0.6901325583457947, -0.3022903800010681, 0.03816093876957893...
func (li *List) SetSelected(item IPanel, state bool) { for _, curr := range li.items { litem := curr.(*ListItem) if litem.item == item { litem.SetSelected(state) li.update() li.Dispatch(OnChange, nil) return } } }
[ -0.4042886793613434, -0.4704183042049408, 0.1274009644985199, 0.18390221893787384, 0.3699336647987366, -0.13350674510002136, -0.08825578540563583, 0.3548314571380615, 1.045517921447754, -0.004967965185642242, -1.8230520486831665, 0.15322068333625793, 0.014756156131625175, 0.154915586113929...
func (li *List) SelectPos(pos int, state bool) { if pos < 0 || pos >= len(li.items) { return } litem := li.items[pos].(*ListItem) if litem.selected == state { return } litem.SetSelected(state) li.update() li.Dispatch(OnChange, nil) }
[ -0.4691292345523834, -0.7642989754676819, 0.06787761300802231, -0.23556511104106903, -0.30942025780677795, -0.5865297913551331, -0.9219475388526917, 0.3484119772911072, 1.2613414525985718, 0.044401392340660095, -1.308125615119934, -0.7311481833457947, -0.09042645245790482, -0.1955929845571...
func (li *List) SetItemPadLeftAt(pos int, pad float32) { if pos < 0 || pos >= len(li.items) { return } litem := li.items[pos].(*ListItem) litem.padLeft = pad litem.update() }
[ 0.2788054347038269, -0.30028629302978516, 0.4285404086112976, -1.1440110206604004, 0.2048483043909073, 1.1944526433944702, -1.2554429769515991, -0.5321731567382812, 0.8066509366035461, 0.7497468590736389, -1.5739246606826782, -0.472392201423645, -0.1789308786392212, 0.6465708017349243, -...
func (li *List) selNext(sel bool, update bool) *ListItem { // Checks for empty list if len(li.items) == 0 { return nil } // Find currently selected item var pos int if sel { pos = li.selected() } else { pos = li.highlighted() } var newItem *ListItem newSel := true // If no item found, returns first. ...
[ -0.020802609622478485, -0.30233287811279297, 0.7957914471626282, 0.3043370544910431, -0.9718428254127502, -0.1315564513206482, -0.7952180504798889, -0.050286442041397095, 1.2991998195648193, -0.08311578631401062, -1.0174108743667603, -0.49815765023231506, -0.8076916933059692, 0.25473898649...
func (li *List) selPrev(sel bool, update bool) *ListItem { // Check for empty list if len(li.items) == 0 { return nil } // Find first selected item var pos int if sel { pos = li.selected() } else { pos = li.highlighted() } var newItem *ListItem newSel := true // If no item found, returns first. if ...
[ -0.509868323802948, -0.40536099672317505, 1.0883480310440063, -0.02050936035811901, -0.9706384539604187, -0.060390472412109375, -0.545396089553833, 0.1529034823179245, 0.7713045477867126, -0.01850215531885624, -0.882463812828064, -0.1579771637916565, -0.5706433057785034, 0.1263185888528823...
func (li *List) selected() (pos int) { for pos, item := range li.items { if item.(*ListItem).selected { return pos } } return -1 }
[ -1.1033161878585815, -0.6627794504165649, 0.33411306142807007, 0.3492600619792938, -0.15194347500801086, -1.5105775594711304, 0.33723142743110657, 0.6042912602424622, 0.5177280306816101, -0.9496235847473145, -1.742147445678711, -0.18441568315029144, -0.5134633779525757, -0.0169654954224824...
func (li *List) highlighted() (pos int) { for pos, item := range li.items { if item.(*ListItem).highlighted { return pos } } return -1 }
[ -0.5292616486549377, -0.709968090057373, 0.5433339476585388, 0.45938414335250854, -0.38127270340919495, -0.9718076586723328, -0.0387868769466877, 1.2006946802139282, 0.5186078548431396, -0.7266230583190918, -1.58048677444458, -0.0529850535094738, -0.6201353669166565, 0.6720762848854065, ...
func (li *List) onKeyEvent(evname string, ev interface{}) { kev := ev.(*window.KeyEvent) // Dropdown mode if li.dropdown { switch kev.Key { case li.keyNext: li.selNext(true, true) case li.keyPrev: li.selPrev(true, true) case window.KeyEnter: li.SetVisible(false) default: return } return }...
[ -0.3948909342288971, -0.8105699419975281, 0.7813901901245117, -0.101746566593647, -0.9687232375144958, 0.19609501957893372, -0.019825968891382217, 0.005308451130986214, 0.899834156036377, 0.4231090247631073, -1.0198843479156494, -0.25482019782066345, -0.586214005947113, 1.334316611289978, ...
func (li *List) setSelection(litem *ListItem, state bool, force bool, dispatch bool) { Manager().SetKeyFocus(li) // If already at this state, nothing to do if litem.selected == state && !force { return } litem.SetSelected(state) // If single selection, deselects all other items if li.single { for _, curr :...
[ -0.8729705810546875, -0.27324700355529785, 0.2992638051509857, 0.591190755367279, -0.09864486008882523, -0.12942709028720856, 0.15681491792201996, 0.7277270555496216, 0.753010630607605, 0.2723824977874756, -1.7215089797973633, 0.03160092607140541, 0.06121372431516647, 0.5860769152641296, ...
func (li *List) update() { // Update the list items styles for _, item := range li.items { item.(*ListItem).update() } }
[ -1.2668744325637817, -1.0052776336669922, 0.17417806386947632, 0.03481770679354668, -0.012000305578112602, 0.1921454519033432, -1.090813398361206, 0.9977681040763855, 0.5463963747024536, 0.37931668758392334, -0.6295674443244934, -0.1428493857383728, -0.020194202661514282, 0.737314760684967...
func (litem *ListItem) onMouse(evname string, ev interface{}) { if litem.list.single { litem.list.setSelection(litem, true, true, true) } else { litem.list.setSelection(litem, !litem.selected, true, true) } if litem.list.dropdown { litem.list.SetVisible(false) } }
[ -0.03674277290701866, -0.19682936370372772, 0.35793471336364746, 0.17424911260604858, -0.3083919584751129, 0.18405355513095856, -0.08201120048761368, 1.243288278579712, 0.341645210981369, 0.5392239689826965, -0.6124403476715088, -0.47674158215522766, -0.3095097243785858, 0.8142428994178772...
func (litem *ListItem) onCursor(evname string, ev interface{}) { if litem.list.dropdown { litem.list.setSelection(litem, true, true, false) return } }
[ 0.3877604007720947, -1.2798458337783813, 0.26183244585990906, -0.2736087739467621, -0.9021469950675964, 0.0272594653069973, -0.1812218725681305, 0.3906390070915222, 0.969165563583374, 0.701679527759552, -0.6230899691581726, -0.6715530157089233, -0.0891021266579628, 1.044305682182312, 0.1...
func (litem *ListItem) SetSelected(state bool) { litem.selected = state //litem.item.SetSelected2(state) }
[ -0.006482331547886133, -0.5720388293266296, 0.12505154311656952, 0.5455280542373657, 0.2853662967681885, 0.33577871322631836, 0.045840319246053696, 0.3558739125728607, 0.4170960485935211, -0.6327362060546875, -1.9290945529937744, 0.40233612060546875, 0.2272910177707672, -0.1701609790325164...
func (litem *ListItem) SetHighlighted(state bool) { litem.highlighted = state //litem.item.SetHighlighted2(state) }
[ 1.008651852607727, -0.20495764911174774, 0.430131196975708, 0.34208619594573975, 0.2513473331928253, 0.897250235080719, -0.15103277564048767, 0.7273846864700317, 0.19304977357387543, -0.8938249945640564, -2.0417630672454834, 0.6797435283660889, 0.3537937104701996, 0.5024923086166382, -0....
func (litem *ListItem) update() { list := litem.list if litem.selected && !litem.highlighted { litem.applyStyle(&list.styles.Item.Selected) return } if !litem.selected && litem.highlighted { litem.applyStyle(&list.styles.Item.Highlighted) return } if litem.selected && litem.highlighted { litem.applySty...
[ -0.9029049277305603, -1.167765736579895, 0.48073655366897583, -0.07560794055461884, -0.29675355553627014, 0.463945209980011, -0.9189459085464478, 0.39289310574531555, 1.1352618932724, 0.4587959945201874, -0.2752251923084259, 0.2879088521003723, -0.3955787718296051, 0.20579054951667786, -...
func (litem *ListItem) applyStyle(s *ListItemStyle) { styleCopy := s.PanelStyle styleCopy.Padding.Left += litem.padLeft litem.Panel.ApplyStyle(&styleCopy) }
[ 0.24210287630558014, 0.3482038378715515, 0.3999869227409363, 0.33258697390556335, 0.3738398849964142, 0.7665225863456726, -1.1182106733322144, 0.47523072361946106, 0.5516840815544128, -0.1449653059244156, -0.30243077874183655, -0.4620053470134735, -1.031844973564148, 1.4619779586791992, ...
func (o *PostCustomersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 400: result := NewPostCustomersBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, r...
[ 0.07188870012760162, -0.9252685904502869, 0.6315574049949646, 0.5671191215515137, -0.1332579255104065, -0.9972758889198303, -0.28292715549468994, -0.14313246309757233, -0.19172856211662292, 0.155990332365036, 0.38817211985588074, -0.5487982034683228, -1.2604442834854126, 0.0648997202515602...
func NewPostCustomersBadRequest() *PostCustomersBadRequest { return &PostCustomersBadRequest{} }
[ -0.4730073809623718, -0.8663957118988037, 0.02525801956653595, 0.4558703601360321, -1.3740366697311401, -0.3325689136981964, -1.2774955034255981, 0.26527705788612366, -1.6576372385025024, -0.6154546141624451, 0.28842592239379883, 0.4985019862651825, -0.9641963839530945, 0.8699989914894104,...