text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (d Type) Missing() bool { return d == MissingA || d == MissingB }
[ -1.2871522903442383, -0.5135924220085144, 0.3433791399002075, 0.37833940982818604, 0.488387793302536, 1.3417402505874634, -0.644829273223877, -0.6616843342781067, 0.6250125169754028, -0.08036430180072784, 0.598779559135437, -0.15770326554775238, 0.1703021079301834, 1.0162452459335327, 0....
func JSON(a, b []byte) (map[string]Type, error) { amap, err := pointerSet(a) if err != nil { return nil, err } bmap, err := pointerSet(b) if err != nil { return nil, err } // Compute a - b and a ∩ b rv := map[string]Type{} var common []string for v := range amap { if bmap[v] { common = append(common...
[ -0.02790912613272667, -0.6838085651397705, 1.0880829095840454, -0.5546196103096008, -0.8599454760551453, -0.30070433020591736, 0.8085411190986633, -0.3655298948287964, -0.11724970489740372, 0.7226060032844543, -0.07570193707942963, 0.8761393427848816, 0.3964899778366089, 0.3399029374122619...
func QuoteString(str string) string { return "'" + strings.Replace(str, "'", "''", -1) + "'" }
[ -0.06300701200962067, -0.7881212830543518, 0.5141475200653076, -0.573248565196991, 0.5383338928222656, -0.16245613992214203, -0.35293203592300415, -0.23188547790050507, 0.22752825915813446, 1.0239261388778687, 0.40349066257476807, 0.369454026222229, 0.24647283554077148, -0.4668801426887512...
func QuoteIdentifier(name string) string { return `"` + strings.Replace(name, `"`, `""`, -1) + `"` }
[ 0.30333825945854187, -0.7367673516273499, 0.26976895332336426, -1.120076060295105, -0.3021244406700134, 0.6843019723892212, -0.6000187993049622, 0.12117071449756622, 1.2854242324829102, 0.8283795118331909, -0.6504545211791992, 0.011631703935563564, -0.09092725068330765, -0.1236152276396751...
func IndexString(vs []string, t string) int { for i, v := range vs { if v == t { return i } } return -1 }
[ -0.6585226655006409, -1.2756685018539429, 0.27325189113616943, -0.23904235661029816, -0.8888972401618958, -0.04139598086476326, 0.3218507766723633, -0.21511103212833405, -1.0816659927368164, 1.3087900876998901, 0.16725116968154907, -0.09682496637105942, -0.10785949975252151, -1.56980979442...
func IncludeString(vs []string, t string) bool { return IndexString(vs, t) >= 0 }
[ 0.17599746584892273, -0.3076326847076416, 0.2910614311695099, 0.5825318098068237, -0.5336710810661316, 0.6388636827468872, -0.8098360300064087, 0.5114951729774475, -0.09817585349082947, 0.899048924446106, 0.2778282165527344, -0.08111415058374405, -0.09823506325483322, -0.8115907311439514, ...
func AnyString(vs []string, f func(string) bool) bool { for _, v := range vs { if f(v) { return true } } return false }
[ -0.0005065043806098402, -0.17416921257972717, 0.3194550573825836, 0.027965251356363297, -0.5936576128005981, -0.020357487723231316, -1.0656158924102783, 0.03875991702079773, -1.1454821825027466, -0.3836019039154053, 0.1448473483324051, -0.1872231811285019, 0.23807334899902344, 0.0049676392...
func AllString(vs []string, f func(string) bool) bool { for _, v := range vs { if !f(v) { return false } } return true }
[ 0.29056328535079956, -0.15987607836723328, 0.47231191396713257, 0.8029727935791016, -0.7096917629241943, 0.6762449741363525, -1.3841171264648438, 0.17859944701194763, -0.5523337721824646, 0.009120198898017406, 0.16944247484207153, -0.29278507828712463, 0.496755450963974, 0.0440730936825275...
func FilterString(vs []string, f func(string) bool) []string { vsf := make([]string, 0) for _, v := range vs { if f(v) { vsf = append(vsf, v) } } return vsf }
[ 0.1864696741104126, -0.07133344560861588, 0.45800846815109253, 0.35272476077079773, -0.4123273491859436, -0.5651028752326965, -0.8617948889732361, 0.3121718168258667, -0.8058944344520569, 0.801140546798706, 0.4670572876930237, 0.7591010928153992, 0.5639287233352661, -0.2489631026983261, ...
func (z *Account) MarshalHash() (o []byte, err error) { var b []byte o = hsp.Require(b, z.Msgsize()) // map header, size 4 o = append(o, 0x84) if oTemp, err := z.Address.MarshalHash(); err != nil { return nil, err } else { o = hsp.AppendBytes(o, oTemp) } if oTemp, err := z.NextNonce.MarshalHash(); err != ni...
[ 1.2227165699005127, 0.6564019918441772, 0.8059105277061462, 0.08367158472537994, -0.24988587200641632, 0.46859925985336304, 0.12847007811069489, 0.0660511776804924, 0.7702581882476807, -0.18209902942180634, 0.2929597795009613, 1.1541028022766113, -0.7406986951828003, -0.3396003544330597, ...
func (z *Account) Msgsize() (s int) { s = 1 + 8 + z.Address.Msgsize() + 10 + z.NextNonce.Msgsize() + 7 + hsp.Float64Size + 13 + hsp.ArrayHeaderSize + (int(SupportTokenNumber) * (hsp.Uint64Size)) return }
[ 0.37639880180358887, 1.6920491456985474, 0.6683210730552673, -0.6528318524360657, -0.16219444572925568, -0.602894127368927, 0.18562978506088257, -0.10162762552499771, 1.0299752950668335, -0.12656179070472717, -0.03349314257502556, 0.29277294874191284, -1.1287106275558472, 0.492555588483810...
func (z *MinerInfo) MarshalHash() (o []byte, err error) { var b []byte o = hsp.Require(b, z.Msgsize()) // map header, size 9 o = append(o, 0x89) if oTemp, err := z.Address.MarshalHash(); err != nil { return nil, err } else { o = hsp.AppendBytes(o, oTemp) } o = hsp.AppendUint64(o, z.Deposit) o = hsp.AppendS...
[ 0.9352350234985352, -0.23717163503170013, 0.6670055985450745, 0.21021151542663574, -0.36273470520973206, 0.8183982968330383, -0.16703160107135773, -0.4104476273059845, 0.5323799848556519, -0.317038357257843, 0.15941694378852844, 0.7839140892028809, -0.28323641419410706, -0.0425322838127613...
func (z *MinerInfo) Msgsize() (s int) { s = 1 + 8 + z.Address.Msgsize() + 8 + hsp.Uint64Size + 14 + hsp.StringPrefixSize + len(z.EncryptionKey) + 5 + hsp.StringPrefixSize + len(z.Name) + 7 + z.NodeID.Msgsize() + 14 + hsp.Uint64Size + 15 + hsp.Uint64Size + 7 + hsp.Int32Size + 12 + hsp.ArrayHeaderSize for za0001 := ran...
[ 0.07110175490379333, 0.9587239027023315, 0.642569899559021, -0.6389342546463013, -0.1179678663611412, -0.19657503068447113, 0.3104621469974518, -0.7285487055778503, 0.415789395570755, 0.22032678127288818, -0.05605020746588707, 0.5487217903137207, -0.8294103741645813, 0.7781639099121094, ...
func (z *ProviderProfile) MarshalHash() (o []byte, err error) { var b []byte o = hsp.Require(b, z.Msgsize()) // map header, size 9 o = append(o, 0x89) o = hsp.AppendUint64(o, z.Deposit) o = hsp.AppendUint64(o, z.GasPrice) o = hsp.AppendFloat64(o, z.LoadAvgPerCPU) o = hsp.AppendUint64(o, z.Memory) if oTemp, err...
[ 0.9987080097198486, 0.35742658376693726, 0.7676070332527161, 0.31003299355506897, 0.19221456348896027, 0.6669695973396301, -0.05304483324289322, -0.26548004150390625, 0.16489775478839874, 0.11084488779306412, 0.14412273466587067, 1.152316689491272, -0.44836747646331787, -0.1810633689165115...
func (z *ProviderProfile) Msgsize() (s int) { s = 1 + 8 + hsp.Uint64Size + 9 + hsp.Uint64Size + 14 + hsp.Float64Size + 7 + hsp.Uint64Size + 7 + z.NodeID.Msgsize() + 9 + z.Provider.Msgsize() + 6 + hsp.Uint64Size + 11 + hsp.ArrayHeaderSize for za0001 := range z.TargetUser { s += z.TargetUser[za0001].Msgsize() } s +...
[ 0.02020951546728611, 1.4243685007095337, 0.7314015626907349, -0.5208961367607117, 0.42834970355033875, -0.4436538815498352, 0.4581107795238495, -0.5805637240409851, 0.4132769703865051, 0.38143911957740784, -0.03326201066374779, 0.7065319418907166, -0.7759200930595398, 0.4445403516292572, ...
func (z *SQLChainProfile) MarshalHash() (o []byte, err error) { var b []byte o = hsp.Require(b, z.Msgsize()) // map header, size 11 o = append(o, 0x8b) if oTemp, err := z.Address.MarshalHash(); err != nil { return nil, err } else { o = hsp.AppendBytes(o, oTemp) } o = hsp.AppendBytes(o, z.EncodedGenesis) o ...
[ 1.1842948198318481, 0.05183514207601547, 0.9177513718605042, 0.3489961624145508, 0.09757742285728455, 0.38288456201553345, -0.39347898960113525, -0.5004763603210449, 0.0023179303389042616, -0.1859201043844223, -0.13605530560016632, 0.8084539175033569, -0.38584041595458984, -0.1197008267045...
func (z *SQLChainProfile) Msgsize() (s int) { s = 1 + 8 + z.Address.Msgsize() + 15 + hsp.BytesPrefixSize + len(z.EncodedGenesis) + 9 + hsp.Uint64Size + 3 + z.ID.Msgsize() + 18 + hsp.Uint32Size + 5 + z.Meta.Msgsize() + 7 + hsp.ArrayHeaderSize for za0001 := range z.Miners { if z.Miners[za0001] == nil { s += hsp.Ni...
[ 0.5513591170310974, 0.8123196959495544, 0.7969760894775391, -0.48674100637435913, 0.16600343585014343, -0.5284071564674377, 0.2703544497489929, -0.7050965428352356, -0.12749017775058746, -0.08415021002292633, -0.41318193078041077, 0.649873673915863, -0.8682419061660767, 0.720048725605011, ...
func (z SQLChainRole) MarshalHash() (o []byte, err error) { var b []byte o = hsp.Require(b, z.Msgsize()) o = hsp.AppendByte(o, byte(z)) return }
[ 1.5726810693740845, 0.4382609724998474, 0.519437849521637, -0.18758773803710938, 0.6481394171714783, 0.7524882555007935, -0.25142353773117065, -0.5426419973373413, 0.14135906100273132, -0.15652231872081757, -0.15077559649944305, 1.1116751432418823, -1.2418490648269653, -0.26845255494117737...
func (z SQLChainRole) Msgsize() (s int) { s = hsp.ByteSize return }
[ 0.7793190479278564, 0.9424625635147095, 0.5291786789894104, -0.4508182108402252, 0.870039701461792, -0.32271406054496765, 0.4886775314807892, -0.5685333609580994, -0.14183899760246277, -0.29772892594337463, -0.03924868628382683, 0.32295823097229004, -1.6196763515472412, 0.47705209255218506...
func (z *SQLChainUser) MarshalHash() (o []byte, err error) { var b []byte o = hsp.Require(b, z.Msgsize()) // map header, size 6 o = append(o, 0x86) if oTemp, err := z.Address.MarshalHash(); err != nil { return nil, err } else { o = hsp.AppendBytes(o, oTemp) } o = hsp.AppendUint64(o, z.AdvancePayment) o = h...
[ 1.0567572116851807, 0.33518511056900024, 0.7382201552391052, 0.35186734795570374, -0.43927741050720215, 0.5001629590988159, -0.3036147654056549, -0.1645079106092453, 0.547223687171936, -0.29132789373397827, -0.10244886577129364, 0.990485429763794, -0.3438880443572998, -0.26991501450538635,...
func (z *SQLChainUser) Msgsize() (s int) { s = 1 + 8 + z.Address.Msgsize() + 15 + hsp.Uint64Size + 8 + hsp.Uint64Size + 8 + hsp.Uint64Size + 11 if z.Permission == nil { s += hsp.NilSize } else { s += 1 + 5 + hsp.Int32Size + 9 + hsp.ArrayHeaderSize for za0001 := range z.Permission.Patterns { s += hsp.StringP...
[ 0.41378018260002136, 1.4641156196594238, 0.8297410011291504, -0.35316845774650574, -0.4097783863544464, -0.48763519525527954, 0.46852725744247437, -0.3513692021369934, 0.6367006301879883, -0.061748918145895004, 0.04478937387466431, 0.7419213652610779, -1.1083755493164062, 0.418123334646225...
func (z Status) MarshalHash() (o []byte, err error) { var b []byte o = hsp.Require(b, z.Msgsize()) o = hsp.AppendInt32(o, int32(z)) return }
[ 1.4081759452819824, 0.2160242795944214, 0.3489502966403961, 0.42566829919815063, -0.30530986189842224, 0.9710831046104431, -0.15391618013381958, 0.04973463714122772, 0.4061442017555237, -0.44816118478775024, -0.41162776947021484, 0.9622103571891785, -0.5454272627830505, 0.02656241878867149...
func (z Status) Msgsize() (s int) { s = hsp.Int32Size return }
[ 0.3074193298816681, 1.3450334072113037, 0.48311924934387207, -0.4227830767631531, -0.10157855600118637, 0.46498903632164, 0.30822354555130005, -0.4046148359775543, 0.46417975425720215, -0.5194498896598816, -0.27570417523384094, -0.03241560980677605, -1.1359363794326782, 0.5141775608062744,...
func (z *UserArrears) MarshalHash() (o []byte, err error) { var b []byte o = hsp.Require(b, z.Msgsize()) // map header, size 2 o = append(o, 0x82) o = hsp.AppendUint64(o, z.Arrears) if oTemp, err := z.User.MarshalHash(); err != nil { return nil, err } else { o = hsp.AppendBytes(o, oTemp) } return }
[ 1.0504062175750732, 0.4234057664871216, 0.47013965249061584, 0.8234063386917114, -0.1889244019985199, 1.0093986988067627, -0.4281229078769684, -0.16702690720558167, 0.8388625383377075, -0.036845576018095016, 0.3970143795013428, 1.3942372798919678, -0.48738881945610046, -0.13800053298473358...
func (z *UserArrears) Msgsize() (s int) { s = 1 + 8 + hsp.Uint64Size + 5 + z.User.Msgsize() return }
[ 0.07612323760986328, 1.405870795249939, 0.39702850580215454, 0.28907549381256104, -0.4824383854866028, -0.08935461938381195, 0.543113648891449, -0.5948116183280945, 0.9113285541534424, -0.021623818203806877, -0.12550026178359985, 0.4851362705230713, -0.783406674861908, 0.6286407113075256, ...
func (z *UserPermission) MarshalHash() (o []byte, err error) { var b []byte o = hsp.Require(b, z.Msgsize()) // map header, size 2 o = append(o, 0x82) o = hsp.AppendArrayHeader(o, uint32(len(z.Patterns))) for za0001 := range z.Patterns { o = hsp.AppendString(o, z.Patterns[za0001]) } o = hsp.AppendInt32(o, int3...
[ 1.1132911443710327, 0.2771994173526764, 0.6567981839179993, 0.5390021800994873, -0.7065216898918152, 0.7572536468505859, 0.30473092198371887, 0.19194912910461426, 0.5170575380325317, 0.3635466694831848, -0.17167843878269196, 0.6593244671821594, -0.5253596901893616, -0.6974089741706848, 1...
func (z *UserPermission) Msgsize() (s int) { s = 1 + 9 + hsp.ArrayHeaderSize for za0001 := range z.Patterns { s += hsp.StringPrefixSize + len(z.Patterns[za0001]) } s += 5 + hsp.Int32Size return }
[ 0.23442476987838745, 1.3145297765731812, 0.6354376673698425, -0.4552760422229767, -0.4937482476234436, -0.20984290540218353, 0.8466271758079529, -0.3046112656593323, 0.6578940153121948, 0.14857445657253265, -0.29463863372802734, 0.2666957974433899, -1.0333962440490723, 0.05522434785962105,...
func (z UserPermissionRole) MarshalHash() (o []byte, err error) { var b []byte o = hsp.Require(b, z.Msgsize()) o = hsp.AppendInt32(o, int32(z)) return }
[ 1.5395548343658447, 0.5778070688247681, 0.45165199041366577, 0.24111194908618927, -0.5798850059509277, 1.1035481691360474, 0.24400895833969116, -0.03862260282039642, 0.31661760807037354, 0.3845086097717285, 0.1231781467795372, 0.5678380727767944, -0.7972182035446167, -0.360092431306839, ...
func (z UserPermissionRole) Msgsize() (s int) { s = hsp.Int32Size return }
[ 0.4740075469017029, 1.7102437019348145, 0.49159854650497437, -0.3396088480949402, -0.20735764503479004, 0.4035629332065582, 0.6636649370193481, -0.392019659280777, 0.24815770983695984, -0.02615300565958023, -0.0035820314660668373, -0.06781695783138275, -1.445544719696045, 0.133980289101600...
func (l *ArrayLister) List() ([]string, error) { return l.Items, nil }
[ 0.14674681425094604, -1.2678760290145874, 0.0888863056898117, 0.2431304156780243, 0.3660760223865509, 0.3216150999069214, -0.9237409830093384, 0.7362869381904602, 0.6277368068695068, 0.18887394666671753, -0.35975152254104614, -0.08790794759988785, -0.16440024971961975, 0.8208166360855103, ...
func (e exponent) Float() float64 { if e < 0 { return 1. / float64(uint(1)<<uint(-e)) } return float64(uint(1) << uint(e)) }
[ -0.3582361936569214, 0.5026013851165771, 0.27932029962539673, -0.045518286526203156, 0.5293819308280945, 0.43477243185043335, 0.10635339468717575, 0.3136917054653168, 0.05621984973549843, -0.7018880248069763, 0.01719062030315399, -0.0804753229022026, -0.1201876774430275, 1.3941295146942139...
func NewTimestampFromTime(t time.Time) (Timestamp, error) { ts := Timestamp{} ns := t.Sub(NTPEpoch).Nanoseconds() s := ns / 1e9 if s > int64(0xffffffff) || s < -int64(0xffffffff) { return ts, fmt.Errorf("Timestamp overflow: %s", t) // TODO(yann): overflow value error? } f := ns % 1e9 ts.Seconds = uint32(s) ...
[ 0.5147563219070435, 0.07540997862815857, 0.5146859288215637, 0.011343291960656643, -0.7118548154830933, -0.1868928074836731, -0.5838214159011841, -1.087616205215454, 0.8041170835494995, -0.30821385979652405, -0.3862965703010559, -0.804391086101532, 0.4114590287208557, 0.6066248416900635, ...
func TimeFromTimestamp(ts Timestamp) time.Time { return NTPEpoch.Add(time.Duration(int64(ts.Seconds)*1e9 + int64(ts.Fraction)*1e9>>32)) }
[ 0.5762990117073059, 0.6967665553092957, 0.3048616945743561, -0.1632450819015503, -0.4759156405925751, 0.2916337251663208, -0.5758664608001709, -1.3855152130126953, 0.6481202840805054, 0.2897351384162903, -0.2423597276210785, -1.586949348449707, 0.6276824474334717, -0.742484986782074, -0....
func NewShortFromDuration(d time.Duration) (Short, error) { sh := Short{} s := d.Nanoseconds() / 1e9 if s > int64(0xffff) || s < -int64(0xffff) { return sh, fmt.Errorf("Timestamp overflow: %s", d) // TODO(yann): overflow value error? } return Short{ Seconds: uint16(s), Fraction: uint16((d.Nanoseconds() % 1e...
[ 0.6535364389419556, 0.18377430737018585, 0.3380265235900879, 0.17374545335769653, -1.0433430671691895, -0.04319709539413452, 0.07059258967638016, -1.2315375804901123, 0.8478688597679138, -0.4658677279949188, 0.7337607741355896, 0.04853019490838051, 1.3013436794281006, 0.36287516355514526, ...
func (mh *MsgHeader) Unpack(b []byte) (err error) { mh.Leap = b[0] >> 6 mh.Version = (b[0] >> 3) & 0x7 mh.Mode = b[0] & 0x7 mh.Stratum = b[1] mh.Poll = exponent(b[2]) mh.Precision = exponent(b[3]) mh.RootDelay = unpackShort(b[4:8]) mh.RootDisp = unpackShort(b[8:12]) mh.RefID = [4]byte{b[12], b[13], b[14], b[15...
[ 0.2888059616088867, 0.22875849902629852, 0.8193679451942444, -0.09549103677272797, -0.4917551875114441, -0.097990982234478, -0.20889541506767273, -0.24051184952259064, -0.012786805629730225, -0.10077700018882751, -0.31496211886405945, 0.04777492210268974, -0.7716332674026489, 0.43463361263...
func (m *Msg) Pack(buf []byte) (msg []byte, err error) { m.Header.Pack(buf) if m.Header.Version < 4 { return buf, nil } m.packExtensionFields(buf[len(buf):cap(buf)]) i := 0 // FIXME buf[i] = byte(m.KeyID >> 24) buf[i+1] = byte(m.KeyID >> 16 & 0xff0000) buf[i+2] = byte(m.KeyID >> 8 & 0xff00) buf[i+3] = byte(...
[ -0.11564303934574127, 0.8364560008049011, 0.6099043488502502, 0.034686051309108734, -0.8562539219856262, -0.09112540632486343, 0.14402145147323608, -0.9413502812385559, 0.04075036570429802, -0.18793612718582153, -0.8356409072875977, -0.3354111611843109, -1.368535041809082, 0.45367538928985...
func (e *ExtensionField) Len() uint8 { return uint8(len(e.Value)) }
[ 0.2069125920534134, 0.6514347195625305, -0.07093929499387741, -0.12640054523944855, 0.39420753717422485, 0.10454931855201721, 0.8445157408714294, 0.9142235517501831, 0.7519281506538391, -0.019152037799358368, -1.1632037162780762, 0.25708311796188354, -0.12685702741146088, -0.14986115694046...
func ID(id int) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldID), id)) }) }
[ 0.018500788137316704, -0.31455400586128235, 0.35202255845069885, -0.10820097476243973, -0.3758033812046051, 1.1767497062683105, 0.7499650120735168, 0.42989978194236755, 0.7079194188117981, -0.20119956135749817, -0.1420588195323944, 0.0037879126612097025, 0.41685187816619873, 0.675338923931...
func IDEQ(id int) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldID), id)) }) }
[ -1.589070200920105, 0.0700567290186882, 0.2382233738899231, -0.5444830656051636, -0.4851060211658478, 0.41731539368629456, 0.7264619469642639, 0.5435642004013062, -0.44179242849349976, 0.24542681872844696, -1.0215744972229004, -0.25394630432128906, 0.549081563949585, 0.3631613850593567, ...
func IDNEQ(id int) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldID), id)) }) }
[ -2.0775792598724365, -0.11550754308700562, 0.4661754369735718, -0.47791731357574463, -1.337218165397644, 0.1069749966263771, -0.5884490609169006, 0.1184297725558281, -0.8067264556884766, 0.192717045545578, -1.3161267042160034, -0.18362431228160858, 0.3207074999809265, -0.13182474672794342,...
func IDIn(ids ...int) predicate.Location { return predicate.Location(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(ids) == 0 { s.Where(sql.False()) return } v := make([]interface{}, len...
[ -1.1557458639144897, 0.18868090212345123, 0.41094574332237244, -0.08696813881397247, -0.45238015055656433, 0.9027767181396484, 0.06147639825940132, 0.5889590978622437, -0.2446890026330948, -0.4826841354370117, -0.10851351916790009, 0.06665287911891937, -0.3121645450592041, -0.0076854568906...
func IDNotIn(ids ...int) predicate.Location { return predicate.Location(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(ids) == 0 { s.Where(sql.False()) return } v := make([]interface{}, ...
[ -1.4978976249694824, -0.23678256571292877, 0.3465179204940796, -0.12189202755689621, -0.09701255708932877, 0.6300516724586487, -0.10629069805145264, 0.1920572817325592, -0.3472689688205719, -0.050601910799741745, -0.49736639857292175, -0.2648192346096039, -0.7014451622962952, -0.3057873249...
func IDGT(id int) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.GT(s.C(FieldID), id)) }) }
[ -0.9638276696205139, 0.48454639315605164, 0.42062410712242126, -0.6495906710624695, -1.122418999671936, 0.8791441321372986, -0.4519690275192261, 0.11454064399003983, -0.6530364155769348, -0.6726469993591309, 0.2809005081653595, -0.013912593945860863, 0.5090081691741943, 0.4171372354030609,...
func IDGTE(id int) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldID), id)) }) }
[ -0.8897649049758911, 0.4728921353816986, 0.33584731817245483, -0.28432053327560425, -0.4576580822467804, 0.759102463722229, 0.4612579643726349, 0.10856099426746368, -1.3027712106704712, 0.3739243447780609, -0.0059004188515245914, 0.15108518302440643, -0.12234502285718918, 0.310172885656356...
func IDLT(id int) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldID), id)) }) }
[ 0.3377802073955536, -0.15870647132396698, 0.3932460844516754, -1.6460111141204834, -0.6418654918670654, 0.7258581519126892, -0.2911348342895508, -0.9396413564682007, 0.04548002779483795, -1.0333161354064941, 0.0222716573625803, -0.16016747057437897, 0.03282945230603218, 0.263492226600647, ...
func IDLTE(id int) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldID), id)) }) }
[ 0.12035629898309708, -0.2047601342201233, 0.4049684703350067, -1.122591257095337, -0.00657248729839921, 0.3379417359828949, -0.06591665744781494, -0.27765047550201416, -0.31810668110847473, -0.009920183569192886, -0.5655584931373596, 0.44222673773765564, -0.28608569502830505, -0.0848792493...
func CLUBELOCATIONNAME(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldCLUBELOCATIONNAME), v)) }) }
[ -0.1948910802602768, 0.2749737501144409, 0.3097327649593353, 0.7459772229194641, -0.9270474910736084, 0.7043355703353882, 1.4990710020065308, 0.7248111367225647, 0.1560536026954651, 0.7898059487342834, -0.2971002757549286, -0.8703958988189697, 0.31924986839294434, -0.9757307767868042, -0...
func CLUBELOCATIONADDRESS(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldCLUBELOCATIONADDRESS), v)) }) }
[ 0.4062313437461853, 0.08182681351900101, 0.11698286980390549, 0.3161763846874237, -0.020262863487005234, 0.5968682169914246, 0.9915163516998291, 0.8811234831809998, 0.7740718722343445, 0.622046709060669, -0.4180547893047333, 0.9488436579704285, 0.11612817645072937, -0.9178663492202759, -...
func CLUBELOCATIONNAMEEQ(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldCLUBELOCATIONNAME), v)) }) }
[ -0.9838342666625977, -0.027944525703787804, 0.25394976139068604, -0.0125419981777668, -0.46363988518714905, 0.36652565002441406, 1.0679272413253784, 0.5788092613220215, -0.3524395227432251, 1.1226662397384644, -1.3206896781921387, -0.1609620451927185, 0.8104426264762878, -0.149413794279098...
func CLUBELOCATIONNAMENEQ(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldCLUBELOCATIONNAME), v)) }) }
[ -0.907925009727478, -0.11823895573616028, 0.3566407263278961, 0.3851226568222046, -1.1464842557907104, 0.3128334879875183, 0.19961750507354736, 0.7193607687950134, -0.36339646577835083, 0.6598368883132935, -0.962716817855835, -0.7594569325447083, 0.5772779583930969, -0.45641231536865234, ...
func CLUBELOCATIONNAMEIn(vs ...string) predicate.Location { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Location(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy....
[ -0.7075008749961853, 0.10432811081409454, 0.5209165811538696, 0.175099179148674, -0.6533233523368835, 0.9879128932952881, 0.5783315300941467, 0.5433485507965088, -0.6917777061462402, 0.05799931287765503, -0.10295844078063965, -0.38694053888320923, 0.036691151559352875, -0.3934115767478943,...
func CLUBELOCATIONNAMENotIn(vs ...string) predicate.Location { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Location(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate fal...
[ -0.8376809358596802, 0.2633897066116333, 0.4505915939807892, 0.23110716044902802, -0.28255924582481384, 1.0174885988235474, 0.33074212074279785, 0.54639732837677, -0.7181394100189209, 0.021467996761202812, -0.07821094244718552, -0.7297528982162476, -0.614346444606781, -0.2990494668483734, ...
func CLUBELOCATIONNAMEGT(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.GT(s.C(FieldCLUBELOCATIONNAME), v)) }) }
[ -0.7437806129455566, 0.6683116555213928, 0.6616040468215942, 0.17957238852977753, -1.3016409873962402, 0.9042918086051941, 0.29038915038108826, 0.279441773891449, -0.8441218733787537, 0.7555785179138184, -0.2622608244419098, -0.6366236209869385, 0.718585193157196, 0.11211647093296051, 0....
func CLUBELOCATIONNAMEGTE(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldCLUBELOCATIONNAME), v)) }) }
[ -0.3554457426071167, 0.8118436336517334, 0.33245185017585754, 0.12339401990175247, -0.15933658182621002, 0.47366809844970703, 1.1078734397888184, 0.27301809191703796, -1.1274590492248535, 1.0375595092773438, -0.38510391116142273, -0.5841410160064697, -0.0846654623746872, -0.413764655590057...
func CLUBELOCATIONNAMELT(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldCLUBELOCATIONNAME), v)) }) }
[ 0.32968541979789734, 0.035531800240278244, 0.4840552508831024, -0.469262033700943, -0.7136548757553101, 0.739012598991394, 0.34180691838264465, -0.46461477875709534, -0.12071152031421661, -0.012594619765877724, -0.4044847786426544, -0.741746187210083, 0.3653792142868042, -0.143088534474372...
func CLUBELOCATIONNAMELTE(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldCLUBELOCATIONNAME), v)) }) }
[ 0.18949803709983826, 0.2246077060699463, 0.44533786177635193, -0.4024927020072937, 0.1146637499332428, 0.1485724300146103, 0.7592289447784424, 0.13253676891326904, -0.3126877546310425, 0.0579327754676342, -0.6637800335884094, -0.3757283091545105, -0.2666901648044586, -0.5981307029724121, ...
func CLUBELOCATIONNAMEContains(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.Contains(s.C(FieldCLUBELOCATIONNAME), v)) }) }
[ 0.23489370942115784, -0.16079407930374146, -0.08236905932426453, 0.4590991139411926, -0.5654208064079285, 0.6281806230545044, 0.8825933337211609, 0.15963290631771088, -0.07484200596809387, 0.37300005555152893, -0.2665257453918457, -0.39097240567207336, 0.09764355421066284, -0.6766429543495...
func CLUBELOCATIONNAMEHasPrefix(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.HasPrefix(s.C(FieldCLUBELOCATIONNAME), v)) }) }
[ 0.22813178598880768, 0.11387117952108383, 0.2422792911529541, 0.028098519891500473, -0.11705435812473297, 0.2620770335197449, 0.39296579360961914, 1.0253552198410034, 0.33556026220321655, 0.15256857872009277, -0.542707085609436, -0.6347215175628662, 0.6736013293266296, 0.03251556307077408,...
func CLUBELOCATIONNAMEHasSuffix(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.HasSuffix(s.C(FieldCLUBELOCATIONNAME), v)) }) }
[ 0.6658656597137451, 0.14349985122680664, 0.23406976461410522, 0.06472114473581314, -0.6488748788833618, 0.7062894105911255, 0.5694983005523682, 1.7176094055175781, -0.42126864194869995, -0.25954341888427734, -1.1386685371398926, -0.20844906568527222, 0.22839772701263428, 0.2549434304237366...
func CLUBELOCATIONNAMEEqualFold(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.EqualFold(s.C(FieldCLUBELOCATIONNAME), v)) }) }
[ 0.04944055154919624, 0.43031638860702515, 0.4348584711551666, 0.46165862679481506, -0.7601900696754456, 0.5869333744049072, 1.2538740634918213, 0.7767301797866821, -0.17764133214950562, 0.9832750558853149, -1.0136805772781372, -0.34507304430007935, 0.05943622440099716, -0.42817389965057373...
func CLUBELOCATIONNAMEContainsFold(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.ContainsFold(s.C(FieldCLUBELOCATIONNAME), v)) }) }
[ 1.178262710571289, 0.6114985346794128, 0.26610809564590454, 0.5469995141029358, -0.8090332746505737, 0.36853042244911194, 1.1506479978561401, 0.0784587562084198, -0.19624550640583038, -0.41896146535873413, -0.45071256160736084, -0.5052824020385742, 0.14056967198848724, 0.4323614239692688, ...
func CLUBELOCATIONADDRESSEQ(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldCLUBELOCATIONADDRESS), v)) }) }
[ -0.705776572227478, -0.6261700391769409, 0.2810024619102478, -0.08603082597255707, -0.10986780375242233, -0.03153740614652634, 0.9317436218261719, 1.5847223997116089, 0.9304395318031311, 0.7385377883911133, -1.0777223110198975, 0.6157803535461426, 1.1414700746536255, 0.07187757641077042, ...
func CLUBELOCATIONADDRESSNEQ(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldCLUBELOCATIONADDRESS), v)) }) }
[ -0.4603871703147888, -0.1407622992992401, 0.21058990061283112, 0.034431252628564835, -0.6830544471740723, -0.11257198452949524, 0.10000038146972656, 1.2439298629760742, 0.2904495894908905, 1.1391254663467407, -0.8774526119232178, 0.34482046961784363, 0.7363181114196777, -0.6730286478996277...
func CLUBELOCATIONADDRESSIn(vs ...string) predicate.Location { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Location(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate fal...
[ -0.42159855365753174, -0.2928087115287781, 0.4793089032173157, 0.08083503693342209, -0.36240464448928833, 0.2597518265247345, 0.528894305229187, 1.559495449066162, -0.4007113575935364, 0.31766051054000854, -0.6602596640586853, 0.29125383496284485, -0.14098456501960754, -0.5296385288238525,...
func CLUBELOCATIONADDRESSNotIn(vs ...string) predicate.Location { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Location(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate ...
[ -0.5766195058822632, 0.14477813243865967, 0.37056562304496765, 0.12568610906600952, 0.13111600279808044, 0.5559430718421936, 0.6728457808494568, 1.0513336658477783, -0.405323326587677, 0.44066235423088074, 0.02946116030216217, 0.1797056347131729, -0.544718861579895, -0.4810549318790436, ...
func CLUBELOCATIONADDRESSGT(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.GT(s.C(FieldCLUBELOCATIONADDRESS), v)) }) }
[ -0.23786036670207977, 0.38226601481437683, 0.38001447916030884, 0.1441442370414734, -0.34183356165885925, 0.5208470821380615, 0.4081770181655884, 1.1770185232162476, -0.19437119364738464, 0.6089640855789185, -0.07875582575798035, 0.1277870535850525, 0.6511740684509277, 0.010913479141891003...
func CLUBELOCATIONADDRESSGTE(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldCLUBELOCATIONADDRESS), v)) }) }
[ 0.22578713297843933, 0.6143542528152466, 0.0981859490275383, 0.11373314261436462, 0.6474002599716187, 0.14805537462234497, 1.0465466976165771, 1.1382293701171875, -0.7422580718994141, 0.9526821970939636, -0.14933979511260986, 0.43689367175102234, 0.15303900837898254, -0.500004768371582, ...
func CLUBELOCATIONADDRESSLT(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldCLUBELOCATIONADDRESS), v)) }) }
[ 0.9610133767127991, -0.17974413931369781, 0.20396819710731506, -0.650809109210968, 0.06354547291994095, 0.15635238587856293, 0.4160984754562378, 0.3615834414958954, 0.6148592233657837, -0.03688126802444458, -0.11641817539930344, 0.3412153422832489, 0.25178611278533936, -0.1809723973274231,...
func CLUBELOCATIONADDRESSLTE(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldCLUBELOCATIONADDRESS), v)) }) }
[ 0.6973571181297302, -0.07091085612773895, 0.12480554729700089, -0.45974671840667725, 0.6595779657363892, 0.10251680016517639, 0.5097743272781372, 1.0967130661010742, -0.17556296288967133, 0.6283396482467651, -0.3850584924221039, 1.0287855863571167, -0.08797810971736908, -0.9310515522956848...
func CLUBELOCATIONADDRESSContains(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.Contains(s.C(FieldCLUBELOCATIONADDRESS), v)) }) }
[ 0.9999871253967285, -0.08619853854179382, -0.07869237661361694, 0.1243927925825119, -0.21368083357810974, 0.31727659702301025, 0.8982747793197632, 0.6101698875427246, 0.6860721111297607, 0.7654514312744141, -0.029789282009005547, 0.8878351449966431, 0.573711633682251, -0.6158561110496521, ...
func CLUBELOCATIONADDRESSHasPrefix(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.HasPrefix(s.C(FieldCLUBELOCATIONADDRESS), v)) }) }
[ 0.6866593360900879, 0.2280987799167633, 0.15338487923145294, -0.1290929913520813, -0.07985097169876099, -0.0998026430606842, 0.39138171076774597, 1.2624402046203613, 0.8655839562416077, 0.7917748689651489, -0.43315640091896057, 0.4264947175979614, 0.8195704221725464, -0.22717902064323425, ...
func CLUBELOCATIONADDRESSHasSuffix(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.HasSuffix(s.C(FieldCLUBELOCATIONADDRESS), v)) }) }
[ 1.1199910640716553, 0.2855713665485382, 0.19027525186538696, -0.23563654720783234, -0.5833771824836731, 0.30756431818008423, 0.5989654660224915, 2.0408968925476074, 0.1746862828731537, 0.294738233089447, -0.9155367612838745, 0.877142071723938, 0.43233880400657654, 0.05298052728176117, 0....
func CLUBELOCATIONADDRESSEqualFold(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.EqualFold(s.C(FieldCLUBELOCATIONADDRESS), v)) }) }
[ 0.49160638451576233, 0.28499341011047363, 0.32039564847946167, 0.2928181290626526, -0.6223662495613098, 0.16944991052150726, 1.3322972059249878, 1.6094260215759277, 1.0012249946594238, 1.3295565843582153, -0.5173615217208862, 0.6788282990455627, 0.4247055947780609, -0.7539768815040588, 0...
func CLUBELOCATIONADDRESSContainsFold(v string) predicate.Location { return predicate.Location(func(s *sql.Selector) { s.Where(sql.ContainsFold(s.C(FieldCLUBELOCATIONADDRESS), v)) }) }
[ 1.8347578048706055, 0.4813635051250458, 0.16363103687763214, 0.2788136303424835, -0.4156210720539093, -0.020754022523760796, 1.0039989948272705, 0.524049699306488, 0.46376651525497437, 0.18038293719291687, -0.16750453412532806, 0.7306724786758423, 0.5664752125740051, 0.16290156543254852, ...
func HasClub() predicate.Location { return predicate.Location(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.To(ClubTable, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, ClubTable, ClubColumn), ) sqlgraph.HasNeighbors(s, step) }) }
[ 0.08453565090894699, 0.7257214188575745, 0.5894176959991455, 1.0938265323638916, 0.25952306389808655, 0.3607667088508606, 1.6995861530303955, 0.5019501447677612, -0.6240598559379578, -0.7918323874473572, 0.10949137806892395, 0.08581769466400146, 0.8153692483901978, 0.0837385505437851, -0...
func HasClubWith(preds ...predicate.Club) predicate.Location { return predicate.Location(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.To(ClubInverseTable, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, ClubTable, ClubColumn), ) sqlgraph.HasNeighborsWith(s, step...
[ -0.08616719394922256, -0.29474693536758423, 0.618799090385437, 1.1855709552764893, -0.25430431962013245, -0.1403062641620636, 0.7700647711753845, 0.2059248983860016, -0.9594935178756714, 0.0749991312623024, -0.47175249457359314, -0.09245439618825912, 0.6271814703941345, 0.4209563136100769,...
func And(predicates ...predicate.Location) predicate.Location { return predicate.Location(func(s *sql.Selector) { s1 := s.Clone().SetP(nil) for _, p := range predicates { p(s1) } s.Where(s1.P()) }) }
[ -0.5735807418823242, -1.4330121278762817, 0.4005948603153229, 0.08021950721740723, -0.3467143177986145, 0.795387864112854, 0.15478144586086273, 1.2585792541503906, 0.19416433572769165, -0.22939686477184296, 0.4220418334007263, 0.5885103940963745, 0.21575404703617096, -0.1324177235364914, ...
func Or(predicates ...predicate.Location) predicate.Location { return predicate.Location(func(s *sql.Selector) { s1 := s.Clone().SetP(nil) for i, p := range predicates { if i > 0 { s1.Or() } p(s1) } s.Where(s1.P()) }) }
[ -1.5699862241744995, -0.5460157990455627, 0.30361470580101013, 0.25140416622161865, -0.042350590229034424, 0.6497055888175964, -0.10220713913440704, 1.0212790966033936, 0.11650916188955307, -0.22266095876693726, 0.6504001021385193, -0.49311140179634094, 0.6311098337173462, -0.5567331910133...
func Not(p predicate.Location) predicate.Location { return predicate.Location(func(s *sql.Selector) { p(s.Not()) }) }
[ -1.054701566696167, -0.08932744711637497, 0.3269067406654358, -0.0172878410667181, -0.4471839368343353, 1.2794911861419678, 0.3432321548461914, 1.0711898803710938, -0.16125157475471497, -0.5421581268310547, 0.35795867443084717, 0.3279627561569214, 0.5625464916229248, -0.1024167463183403, ...
func GetGoMetrics(parent *monitoring.Registry, name string, filters ...MetricFilter) *GoMetricsRegistry { v := parent.Get(name) if v == nil { return NewGoMetrics(parent, name, filters...) } reg := v.(*monitoring.Registry) return &GoMetricsRegistry{ reg: reg, shadow: metrics.NewRegistry(), filters: ma...
[ -0.008959542028605938, 2.0016298294067383, 0.5143241882324219, -0.35127177834510803, 0.544318437576294, -0.48443031311035156, 0.05314699932932854, -0.40996643900871277, -0.5149900317192078, 0.18510954082012177, -0.4735507369041443, 1.225050926208496, -0.848737359046936, 0.20793668925762177...
func NewGoMetrics(parent *monitoring.Registry, name string, filters ...MetricFilter) *GoMetricsRegistry { return &GoMetricsRegistry{ reg: parent.NewRegistry(name, monitoring.IgnorePublishExpvar), shadow: metrics.NewRegistry(), filters: makeFilters(filters...), } }
[ -0.1616097241640091, 1.2693262100219727, 0.19885574281215668, -0.520355761051178, -0.1653512418270111, -0.372887521982193, 0.053971853107213974, 0.11760563403367996, -0.4647056758403778, 0.7115278840065002, -0.44141051173210144, 1.0341743230819702, -1.133824110031128, 0.14499880373477936, ...
func (r *GoMetricsRegistry) Each(f func(string, interface{})) { r.shadow.Each(f) }
[ 0.17376860976219177, 0.6959208250045776, 0.17581495642662048, -0.3299298584461212, 1.2510038614273071, 0.8721200227737427, 1.364675521850586, -0.3860794007778168, -1.1681928634643555, 0.32103413343429565, 0.3501999080181122, 1.068523645401001, 0.4450607895851135, 0.6908528804779053, -0.7...
func (r *GoMetricsRegistry) GetAll() map[string]map[string]interface{} { return r.shadow.GetAll() }
[ 1.068688154220581, 0.763163149356842, 0.43380510807037354, 0.12062714993953705, 0.47211119532585144, 0.724211573600769, 0.13502800464630127, -0.13334500789642334, -0.12188120931386948, -0.053693030029535294, -0.11519645154476166, 1.787048101425171, -0.22404620051383972, 1.0007990598678589,...
func (r *GoMetricsRegistry) GetOrRegister(name string, metric interface{}) interface{} { r.mutex.Lock() defer r.mutex.Unlock() v := r.get(name) if v != nil { return v } return r.doRegister(name, metric) }
[ 0.29103168845176697, 0.8536807894706726, 0.29067540168762207, 0.10946203768253326, 0.49774739146232605, -0.8587455749511719, -0.33115288615226746, -0.8868409395217896, -0.5727649927139282, 0.008316115476191044, 0.5479463934898376, 0.2904950976371765, -0.48916006088256836, 0.060468401759862...
func (r *GoMetricsRegistry) Register(name string, metric interface{}) error { r.mutex.Lock() defer r.mutex.Unlock() if r.get(name) != nil { return fmt.Errorf("metric '%v' already registered", name) } r.doRegister(name, metric) return nil }
[ -0.31976765394210815, 1.5112730264663696, 0.09937243908643723, 0.3051038086414337, 0.8398092985153198, -0.07306480407714844, -0.11906787008047104, -0.9464486837387085, -1.2254430055618286, 0.34820401668548584, -0.43896716833114624, 0.25617170333862305, -0.47145605087280273, 0.0933124646544...
func (r *GoMetricsRegistry) RunHealthchecks() {}
[ -0.21836857497692108, -0.19054988026618958, 0.3136696517467499, 0.5775519013404846, 0.8961162567138672, 0.6586174964904785, 1.2705340385437012, 0.3371649384498596, -0.20114919543266296, -0.7591054439544678, 0.4386262595653534, 0.8990944623947144, -1.0286009311676025, -0.13349109888076782, ...
func (r *GoMetricsRegistry) Unregister(name string) { r.mutex.Lock() defer r.mutex.Unlock() st := r.rmState(name) r.reg.Remove(st.name) r.shadow.Unregister(name) }
[ 0.38926926255226135, 1.5014052391052246, 0.24332304298877716, -1.1945699453353882, 0.3110453188419342, -0.15992817282676697, 0.7903156280517578, 0.6253997087478638, -0.5481376051902771, 0.09472562372684479, -0.44695261120796204, 0.731499969959259, -0.7874647378921509, 0.4527541995048523, ...
func (r *GoMetricsRegistry) UnregisterAll() { r.mutex.Lock() defer r.mutex.Unlock() r.shadow.UnregisterAll() err := r.reg.Clear() if err != nil { logp.Err("Failed to clear registry: %v", err) } }
[ 0.8587887287139893, 1.6256651878356934, 0.42000216245651245, -0.5374964475631714, 1.0814837217330933, -0.060348693281412125, 0.7478181719779968, 0.7910264134407043, -0.8137099146842957, 0.37914732098579407, 0.12161435186862946, 1.5488826036453247, -0.07733193039894104, 0.8076971769332886, ...
func panicIfErr(err error) { if err != nil { panic(err.Error()) } }
[ 0.5717484951019287, -0.15776604413986206, 0.18619054555892944, 1.2164908647537231, -1.177059292793274, 0.2926312983036041, -0.5472753643989563, -0.1451522558927536, -0.029437774792313576, 0.14231780171394348, -0.2551203966140747, -0.46848320960998535, -0.021443558856844902, 1.4546049833297...
func (d *Devops) getSelectAggClauses(aggFunc string, idents []string) []string { selectAggClauses := make([]string, len(idents)) for i, ident := range idents { selectAggClauses[i] = fmt.Sprintf("%[1]s(%[2]s) AS %[1]s_%[2]s", aggFunc, ident) } return selectAggClauses }
[ -0.7229437828063965, -0.010687773115932941, 0.4955567419528961, -0.049135155975818634, 0.07444175332784653, -0.48487022519111633, -0.9553447365760803, -0.32014673948287964, -0.46152931451797485, 1.4072610139846802, 0.6360563039779663, 0.8290480971336365, 0.08872437477111816, -0.18274784088...
func (d *Devops) MaxAllCPU(qi query.Query, nHosts int) { interval := d.Interval.MustRandWindow(devops.MaxAllDuration) selectClauses := d.getSelectAggClauses("max", devops.GetAllCPUMetrics()) hosts, err := d.GetRandomHosts(nHosts) panicIfErr(err) sql := fmt.Sprintf(` SELECT hour(timestamp) AS hour, %s FR...
[ -0.3029027283191681, 0.7258119583129883, 0.7987433075904846, 0.7614168524742126, -1.0042204856872559, 0.09755401313304901, -0.5373096466064453, -0.2199917882680893, -0.09626442193984985, -0.09382398426532745, 0.21598349511623383, 0.3480139672756195, -0.13235345482826233, 0.9379063844680786...
func (d *Devops) GroupByTimeAndPrimaryTag(qi query.Query, numMetrics int) { metrics, err := devops.GetCPUMetricsSlice(numMetrics) panicIfErr(err) interval := d.Interval.MustRandWindow(devops.DoubleGroupByDuration) selectClauses := d.getSelectAggClauses("avg", metrics) sql := fmt.Sprintf(` SELECT timestamp, host...
[ 0.3068371117115021, 0.4130021333694458, 0.541713535785675, -0.3254505693912506, -0.5191183090209961, 0.08444807678461075, 0.18172147870063782, -0.842337429523468, -0.6026737689971924, 0.1856297254562378, 0.25635412335395813, 0.1669730395078659, 0.449931263923645, 1.6145299673080444, -0.0...
func (d *Devops) GroupByOrderByLimit(qi query.Query) { interval := d.Interval.MustRandWindow(time.Hour) sql := fmt.Sprintf(` SELECT timestamp AS minute, max(usage_user) FROM cpu WHERE timestamp < '%s' SAMPLE BY 1m LIMIT 5`, interval.EndString()) humanLabel := "QuestDB max cpu over last 5 min-interval...
[ 0.2532821595668793, 0.7311326265335083, 0.6209578514099121, 0.1615743488073349, -0.974601686000824, 0.07864890247583389, 0.46530041098594666, -1.531711459159851, -0.07552051544189453, 0.18042688071727753, 0.38869842886924744, 0.07080002129077911, -0.2558753490447998, 0.1901204138994217, ...
func (d *Devops) LastPointPerHost(qi query.Query) { sql := fmt.Sprintf(`SELECT * FROM cpu latest by hostname`) humanLabel := "QuestDB last row per host" humanDesc := humanLabel d.fillInQuery(qi, humanLabel, humanDesc, sql) }
[ -0.12658646702766418, 0.4554249346256256, 0.5109673142433167, -0.15377208590507507, -0.40223240852355957, 0.5856245756149292, -0.004805008415132761, 0.27540960907936096, -0.6386712193489075, -0.24575220048427582, 1.3039716482162476, -0.9936742782592773, -0.158800408244133, 0.49391248822212...
func (d *Devops) HighCPUForHosts(qi query.Query, nHosts int) { interval := d.Interval.MustRandWindow(devops.HighCPUDuration) sql := "" if nHosts > 0 { hosts, err := d.GetRandomHosts(nHosts) panicIfErr(err) sql = fmt.Sprintf(` SELECT * FROM cpu WHERE usage_user > 90.0 AND hostn...
[ -0.40782874822616577, 1.1342209577560425, 0.569762647151947, 0.41184982657432556, -0.28983303904533386, -0.013520034030079842, 0.24432942271232605, -0.13865095376968384, -0.6286020874977112, -0.38587552309036255, 0.4786672294139862, 0.21429364383220673, 0.4168139696121216, 0.77145600318908...
func (d *Devops) GroupByTime(qi query.Query, nHosts, numMetrics int, timeRange time.Duration) { interval := d.Interval.MustRandWindow(timeRange) metrics, err := devops.GetCPUMetricsSlice(numMetrics) panicIfErr(err) selectClauses := d.getSelectAggClauses("max", metrics) hosts, err := d.GetRandomHosts(nHosts) panic...
[ -0.035133518278598785, 0.9947022795677185, 0.5921577215194702, -0.4635208547115326, -0.5806683897972107, 0.46106645464897156, 0.6843746304512024, -1.0387647151947021, -1.059096336364746, 0.056184858083724976, 0.5904091000556946, -0.07476813346147537, -0.48816922307014465, 0.991281807422637...
func checkKubeObjectUpdated(kubeWrapper common.KubeInterface) (bool, error) { kubeConfig, err := kubeWrapper.InClusterConfig() if err != nil { return false, err } clientSet, err := kubeWrapper.NewForConfig(kubeConfig) if err != nil { return false, err } // Check ceph.conf is updated to ConfigMap configMap...
[ -0.4148510992527008, -0.7944968342781067, 0.9614220857620239, 0.35999923944473267, 0.21523965895175934, 0.50397127866745, -0.3295670449733734, -0.5144652724266052, -0.7191060185432434, 0.9995026588439941, -0.6148003935813904, 0.08131027966737747, -0.5827239155769348, 0.33641159534454346, ...
func (qs ControlQS) Or(exprs ...ControlQS) ControlQS { var o models.OrFragment for _, expr := range exprs { o = append(o, expr.condFragments) } qs.condFragments = append( qs.condFragments, o, ) return qs }
[ -0.8902568817138672, -0.7711699604988098, 0.48646655678749084, -0.7112211585044861, 0.16226916015148163, 0.4549642503261566, -0.2803778052330017, 0.38768449425697327, 0.2925383150577545, -0.5849562287330627, 0.5525232553482056, -1.1167457103729248, 0.3381732702255249, -0.37818628549575806,...
func (qs ControlQS) IDEq(v int32) ControlQS { return qs.filter(`"id" =`, v) }
[ -1.196333885192871, -0.1691381335258484, 0.15730391442775726, -0.2812355160713196, -0.10570968687534332, 0.1717626303434372, -0.14498667418956757, -0.5699928998947144, 0.1375819891691208, 0.3114074170589447, -1.0752960443496704, -0.35059064626693726, -0.08044096827507019, -0.16811761260032...
func (qs ControlQS) IDNe(v int32) ControlQS { return qs.filter(`"id" <>`, v) }
[ -0.8581418991088867, 0.6018495559692383, 0.30590662360191345, -0.19335389137268066, -0.10683489590883255, -0.08916594088077545, -1.1193106174468994, -1.173576831817627, -0.0747528150677681, -0.1490514874458313, -1.0097339153289795, -0.8419347405433655, -0.5195869207382202, -0.9850380420684...