text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (lq *LocationQuery) QueryType() *LocationTypeQuery { query := &LocationTypeQuery{config: lq.config} step := sqlgraph.NewStep( sqlgraph.From(location.Table, location.FieldID, lq.sqlQuery()), sqlgraph.To(locationtype.Table, locationtype.FieldID), sqlgraph.Edge(sqlgraph.M2O, false, location.TypeTable, locatio...
[ 0.37046709656715393, -0.12319157272577286, 0.29815420508384705, 0.23964406549930573, 0.3109246492385864, -0.2446346879005432, 0.4313932955265045, 0.10466113686561584, 0.25299298763275146, -0.11302916705608368, 0.8735578060150146, 0.18338163197040558, 0.16048794984817505, 0.1384480744600296...
func (lq *LocationQuery) QueryParent() *LocationQuery { query := &LocationQuery{config: lq.config} step := sqlgraph.NewStep( sqlgraph.From(location.Table, location.FieldID, lq.sqlQuery()), sqlgraph.To(location.Table, location.FieldID), sqlgraph.Edge(sqlgraph.M2O, true, location.ParentTable, location.ParentColum...
[ 0.6731588244438171, -0.45341840386390686, 0.4393177330493927, -0.31584203243255615, -0.9674770832061768, -0.2961048483848572, 0.41203829646110535, -0.13665230572223663, -0.232571080327034, -0.44082146883010864, 0.7917596697807312, 0.08619125932455063, 0.49693232774734497, -0.09205010533332...
func (lq *LocationQuery) QueryChildren() *LocationQuery { query := &LocationQuery{config: lq.config} step := sqlgraph.NewStep( sqlgraph.From(location.Table, location.FieldID, lq.sqlQuery()), sqlgraph.To(location.Table, location.FieldID), sqlgraph.Edge(sqlgraph.O2M, false, location.ChildrenTable, location.Childr...
[ 0.2363293468952179, -0.2566410303115845, 0.2601647973060608, -0.525681734085083, -0.585852324962616, -0.24166619777679443, 0.15931549668312073, 0.06240863353013992, -0.28083503246307373, -0.5617901682853699, 0.19055014848709106, -0.04338454455137253, 0.6756929159164429, -0.4731209874153137...
func (lq *LocationQuery) QueryFiles() *FileQuery { query := &FileQuery{config: lq.config} step := sqlgraph.NewStep( sqlgraph.From(location.Table, location.FieldID, lq.sqlQuery()), sqlgraph.To(file.Table, file.FieldID), sqlgraph.Edge(sqlgraph.O2M, false, location.FilesTable, location.FilesColumn), ) query.sql ...
[ 0.49165716767311096, 0.00986807607114315, 0.3319496214389801, -0.4304610788822174, -0.16692136228084564, -0.18255044519901276, 0.02281429059803486, 0.5617215037345886, -0.5561397671699524, -0.2312110960483551, 1.0269089937210083, -0.35341036319732666, -0.017149467021226883, -0.126648768782...
func (lq *LocationQuery) QueryEquipment() *EquipmentQuery { query := &EquipmentQuery{config: lq.config} step := sqlgraph.NewStep( sqlgraph.From(location.Table, location.FieldID, lq.sqlQuery()), sqlgraph.To(equipment.Table, equipment.FieldID), sqlgraph.Edge(sqlgraph.O2M, false, location.EquipmentTable, location....
[ -0.08972462266683578, -0.41363632678985596, 0.36015141010284424, 0.025290999561548233, -0.06067581847310066, -0.10159822553396225, 0.7358694672584534, -0.3566811978816986, -0.16213583946228027, 0.11371619254350662, 0.8116013407707214, -0.27649810910224915, 0.49630409479141235, -0.157749593...
func (lq *LocationQuery) QueryProperties() *PropertyQuery { query := &PropertyQuery{config: lq.config} step := sqlgraph.NewStep( sqlgraph.From(location.Table, location.FieldID, lq.sqlQuery()), sqlgraph.To(property.Table, property.FieldID), sqlgraph.Edge(sqlgraph.O2M, false, location.PropertiesTable, location.Pr...
[ 0.37915000319480896, -0.8265221118927002, 0.23529577255249023, -0.11524789780378342, -0.26599058508872986, -0.4392841160297394, -0.2844170033931732, 0.5623593926429749, -0.08198507875204086, -0.3844149708747864, 1.199689507484436, -0.04680578038096428, 0.23251873254776, -0.4464092850685119...
func (lq *LocationQuery) QuerySurvey() *SurveyQuery { query := &SurveyQuery{config: lq.config} step := sqlgraph.NewStep( sqlgraph.From(location.Table, location.FieldID, lq.sqlQuery()), sqlgraph.To(survey.Table, survey.FieldID), sqlgraph.Edge(sqlgraph.O2M, true, location.SurveyTable, location.SurveyColumn), ) ...
[ 0.3363040089607239, -0.4593059718608856, 0.32303085923194885, -0.05560091510415077, -0.6235836148262024, -0.1306385099887848, -0.5099681615829468, 0.09998519718647003, 0.19142861664295197, -0.48468726873397827, 0.29576563835144043, 0.3413676917552948, 0.5133801102638245, -0.294299125671386...
func (lq *LocationQuery) QueryWifiScan() *SurveyWiFiScanQuery { query := &SurveyWiFiScanQuery{config: lq.config} step := sqlgraph.NewStep( sqlgraph.From(location.Table, location.FieldID, lq.sqlQuery()), sqlgraph.To(surveywifiscan.Table, surveywifiscan.FieldID), sqlgraph.Edge(sqlgraph.O2M, true, location.WifiSca...
[ -0.03825604170560837, -0.24892432987689972, 0.33026954531669617, -0.11263886839151382, -0.9305781722068787, -0.38989779353141785, 0.13866300880908966, 0.6008376479148865, 0.4040847718715668, 0.0536881759762764, 0.6532382369041443, -0.07536069303750992, 0.3127686083316803, 0.278938591480255...
func (lq *LocationQuery) QueryCellScan() *SurveyCellScanQuery { query := &SurveyCellScanQuery{config: lq.config} step := sqlgraph.NewStep( sqlgraph.From(location.Table, location.FieldID, lq.sqlQuery()), sqlgraph.To(surveycellscan.Table, surveycellscan.FieldID), sqlgraph.Edge(sqlgraph.O2M, true, location.CellSca...
[ 0.353339284658432, -0.07440242171287537, 0.2124888002872467, 0.428078293800354, -1.194496750831604, -0.5086166858673096, 0.04470072686672211, -0.11789080500602722, -0.21971873939037323, -0.5556598901748657, 1.039981722831726, 0.03937803953886032, 0.7562805414199829, -0.2524774372577667, ...
func (lq *LocationQuery) QueryWorkOrders() *WorkOrderQuery { query := &WorkOrderQuery{config: lq.config} step := sqlgraph.NewStep( sqlgraph.From(location.Table, location.FieldID, lq.sqlQuery()), sqlgraph.To(workorder.Table, workorder.FieldID), sqlgraph.Edge(sqlgraph.O2M, true, location.WorkOrdersTable, location...
[ -0.34383425116539, -0.18319857120513916, 0.35125404596328735, -0.19117988646030426, -0.29501959681510925, -0.4873434901237488, -0.16908606886863708, -0.44928497076034546, 0.30912545323371887, 0.3327573239803314, 0.04965229704976082, -0.08679937571287155, -0.24945570528507233, 0.00039512111...
func (lq *LocationQuery) QueryFloorPlans() *FloorPlanQuery { query := &FloorPlanQuery{config: lq.config} step := sqlgraph.NewStep( sqlgraph.From(location.Table, location.FieldID, lq.sqlQuery()), sqlgraph.To(floorplan.Table, floorplan.FieldID), sqlgraph.Edge(sqlgraph.O2M, true, location.FloorPlansTable, location...
[ 0.22578969597816467, -0.019304264336824417, 0.19659632444381714, -0.04318932443857193, -0.46647799015045166, 0.11721670627593994, 0.2951788008213043, -0.5004585385322571, 0.293184757232666, -0.6661378145217896, 0.21497440338134766, -0.005870293825864792, 0.09053884446620941, 0.257077872753...
func (lq *LocationQuery) First(ctx context.Context) (*Location, error) { ls, err := lq.Limit(1).All(ctx) if err != nil { return nil, err } if len(ls) == 0 { return nil, &ErrNotFound{location.Label} } return ls[0], nil }
[ -0.28371483087539673, -0.29451292753219604, 0.17452813684940338, -0.13637475669384003, 0.8338139057159424, 0.24234451353549957, -0.2283768206834793, 0.016693511977791786, -0.31663790345191956, -0.09923774749040604, 0.5485243797302246, 0.2772822678089142, 0.13974986970424652, 0.238074436783...
func (lq *LocationQuery) FirstX(ctx context.Context) *Location { l, err := lq.First(ctx) if err != nil && !IsNotFound(err) { panic(err) } return l }
[ 0.5117743015289307, 0.07748592644929886, 0.15159252285957336, 0.13482102751731873, -0.06842762231826782, 0.5438429713249207, -0.7531303763389587, -0.31567874550819397, 1.2886661291122437, -0.9175319671630859, 0.77754145860672, -0.16114315390586853, 0.28053444623947144, 0.1615111380815506, ...
func (lq *LocationQuery) FirstID(ctx context.Context) (id string, err error) { var ids []string if ids, err = lq.Limit(1).IDs(ctx); err != nil { return } if len(ids) == 0 { err = &ErrNotFound{location.Label} return } return ids[0], nil }
[ 0.5166773200035095, -1.008141279220581, 0.32699424028396606, -0.24944548308849335, 0.6372376084327698, 0.6094464063644409, -0.32987430691719055, 0.2181418389081955, 1.3113207817077637, 0.18453676998615265, 1.6186611652374268, 0.06201300024986267, -0.4441291093826294, 0.3565885126590729, ...
func (lq *LocationQuery) FirstXID(ctx context.Context) string { id, err := lq.FirstID(ctx) if err != nil && !IsNotFound(err) { panic(err) } return id }
[ 1.3914227485656738, -0.5820474028587341, 0.2808849513530731, -0.19706882536411285, 0.1300753653049469, 0.47472041845321655, -0.7532147765159607, 0.25155919790267944, 0.7302013039588928, -0.49809664487838745, 1.0266309976577759, 0.23491191864013672, -0.13411591947078705, 0.7304938435554504,...
func (lq *LocationQuery) Only(ctx context.Context) (*Location, error) { ls, err := lq.Limit(2).All(ctx) if err != nil { return nil, err } switch len(ls) { case 1: return ls[0], nil case 0: return nil, &ErrNotFound{location.Label} default: return nil, &ErrNotSingular{location.Label} } }
[ -0.8592910170555115, -0.4572571814060211, 0.5946331024169922, 0.5677208304405212, 0.13407668471336365, 0.4554550051689148, -0.020866790786385536, 0.3614989221096039, 0.4171751141548157, -0.2905881702899933, 0.9677425026893616, 0.5011913180351257, 0.30015888810157776, 0.30796992778778076, ...
func (lq *LocationQuery) OnlyX(ctx context.Context) *Location { l, err := lq.Only(ctx) if err != nil { panic(err) } return l }
[ -0.24735379219055176, 0.3575631082057953, 0.2412092387676239, 0.6550211310386658, -0.9552981853485107, 1.153709053993225, -0.47026872634887695, 0.4468154311180115, 1.4814465045928955, -0.4390980899333954, 1.081183910369873, 0.3371007442474365, 0.07597196102142334, -0.009933751076459885, ...
func (lq *LocationQuery) OnlyID(ctx context.Context) (id string, err error) { var ids []string if ids, err = lq.Limit(2).IDs(ctx); err != nil { return } switch len(ids) { case 1: id = ids[0] case 0: err = &ErrNotFound{location.Label} default: err = &ErrNotSingular{location.Label} } return }
[ -0.3351188600063324, -0.8412277102470398, 0.6126049757003784, 0.22866301238536835, 0.25397464632987976, 0.9422171115875244, 0.01637197472155094, 0.7805818915367126, 1.4518957138061523, 0.13230547308921814, 1.3801215887069702, 0.47833889722824097, -0.5562087893486023, 0.0988595113158226, ...
func (lq *LocationQuery) OnlyXID(ctx context.Context) string { id, err := lq.OnlyID(ctx) if err != nil { panic(err) } return id }
[ 0.7829510569572449, -0.40303605794906616, 0.27513399720191956, 0.12448421120643616, -0.6438636779785156, 1.1005555391311646, -0.43309587240219116, 0.8449781537055969, 1.4838098287582397, -0.10763735324144363, 1.2238057851791382, 0.7327418923377991, -0.6845215559005737, 0.5114396214485168, ...
func (lq *LocationQuery) All(ctx context.Context) ([]*Location, error) { return lq.sqlAll(ctx) }
[ 0.04955662786960602, -1.1535598039627075, 0.06549549102783203, 0.7353654503822327, 0.3216978907585144, 1.2547430992126465, -0.4358397126197815, 0.5758355855941772, -0.17981071770191193, -0.5846549868583679, 0.7440463900566101, 0.7134970426559448, 0.48504558205604553, 0.4414919912815094, ...
func (lq *LocationQuery) AllX(ctx context.Context) []*Location { ls, err := lq.All(ctx) if err != nil { panic(err) } return ls }
[ -0.07514135539531708, -0.030117975547909737, 0.20448194444179535, 0.9014592170715332, -0.7382435202598572, 1.1622352600097656, -1.1959795951843262, 0.5243872404098511, 1.5742052793502808, -0.4211929738521576, 1.0078626871109009, 0.36562690138816833, 0.4716443121433258, -0.05826086923480034...
func (lq *LocationQuery) IDs(ctx context.Context) ([]string, error) { var ids []string if err := lq.Select(location.FieldID).Scan(ctx, &ids); err != nil { return nil, err } return ids, nil }
[ -0.7149453163146973, -0.4372113347053528, -0.015236563049256802, -0.4304473102092743, 0.09329354017972946, 0.21976958215236664, -0.6598283648490906, -0.08943740278482437, 0.61774742603302, 0.1653444617986679, 0.515786349773407, 0.3831818997859955, -0.12506595253944397, -0.5179819464683533,...
func (lq *LocationQuery) IDsX(ctx context.Context) []string { ids, err := lq.IDs(ctx) if err != nil { panic(err) } return ids }
[ -0.693388819694519, -0.02381993643939495, 0.01506624836474657, 0.06701857596635818, -0.4383279085159302, 0.5494351983070374, -1.455133318901062, 0.21866992115974426, 1.2278573513031006, 0.4520091414451599, 0.05823049694299698, 0.332811564207077, 0.14106369018554688, -0.8555849194526672, ...
func (lq *LocationQuery) Count(ctx context.Context) (int, error) { return lq.sqlCount(ctx) }
[ 0.20106232166290283, -0.7743593454360962, 0.405023992061615, -0.2119225561618805, -0.32574811577796936, 0.5309460163116455, 0.14764295518398285, 0.0145039027556777, -0.4020632207393646, -0.1679355800151825, 0.2063904106616974, -0.11769066751003265, 0.47437435388565063, 0.6143631339073181, ...
func (lq *LocationQuery) CountX(ctx context.Context) int { count, err := lq.Count(ctx) if err != nil { panic(err) } return count }
[ -0.03682452440261841, -0.03610856086015701, 0.44260892271995544, -0.027718985453248024, -0.44354403018951416, 1.305106282234192, -0.42238861322402954, 0.45390036702156067, 0.43803173303604126, 0.03667229786515236, 0.16759204864501953, 0.2542113661766052, 0.6574196815490723, -0.074961654841...
func (lq *LocationQuery) Exist(ctx context.Context) (bool, error) { return lq.sqlExist(ctx) }
[ -0.3834599256515503, -0.827919602394104, 0.2813420593738556, -0.05102052539587021, 0.10716436058282852, 1.040876865386963, -0.26143842935562134, 0.00856222677975893, -0.5040298700332642, 0.8001756072044373, 0.6320018172264099, -0.6902845501899719, -0.16384518146514893, 0.6706541180610657, ...
func (lq *LocationQuery) ExistX(ctx context.Context) bool { exist, err := lq.Exist(ctx) if err != nil { panic(err) } return exist }
[ -0.4788060486316681, -0.010258451104164124, 0.5953329801559448, -0.3235250413417816, -0.10034548491239548, 1.6388403177261353, -0.766705334186554, 0.3772791028022766, 0.19857902824878693, 0.9208801984786987, 0.2285643368959427, -0.2683827877044678, -0.01509927399456501, -0.0009171175770461...
func (lq *LocationQuery) Clone() *LocationQuery { return &LocationQuery{ config: lq.config, limit: lq.limit, offset: lq.offset, order: append([]Order{}, lq.order...), unique: append([]string{}, lq.unique...), predicates: append([]predicate.Location{}, lq.predicates...), // clone int...
[ 0.30667632818222046, -1.2807281017303467, 0.5956372022628784, -0.09690267592668533, -1.1382670402526855, 0.9258795976638794, -0.4669482707977295, 0.05949336662888527, -0.10797803103923798, 0.25385332107543945, 0.6114544868469238, 0.8306416869163513, 0.17366980016231537, -0.3874362409114837...
func (lgb *LocationGroupBy) Aggregate(fns ...Aggregate) *LocationGroupBy { lgb.fns = append(lgb.fns, fns...) return lgb }
[ -0.7343223690986633, 0.5032898187637329, 0.5466523766517639, -0.31354159116744995, 0.9410750269889832, 0.0408346988260746, -0.3286556899547577, -0.22964824736118317, -0.5256214141845703, -1.1386570930480957, -0.31822577118873596, 0.7519458532333374, -0.05380381643772125, 0.6181483268737793...
func (lgb *LocationGroupBy) Scan(ctx context.Context, v interface{}) error { return lgb.sqlScan(ctx, v) }
[ -1.0503727197647095, 0.20001472532749176, 0.11304488778114319, 0.2280070185661316, -0.7293937802314758, 0.11858665198087692, 0.23538167774677277, -0.7479855418205261, -0.19560149312019348, -0.6097089052200317, 0.07911568135023117, 0.5664289593696594, -0.10186364501714706, 0.080613203346729...
func (lgb *LocationGroupBy) ScanX(ctx context.Context, v interface{}) { if err := lgb.Scan(ctx, v); err != nil { panic(err) } }
[ -0.9921068549156189, 0.6732462048530579, 0.24623210728168488, 0.6010395288467407, -1.0993221998214722, 0.5974661111831665, -0.7204143404960632, -0.7758246660232544, 0.8118574619293213, -0.2030261605978012, -0.2874950170516968, 0.8682255148887634, -0.0032121571712195873, 0.2620103359222412,...
func (lgb *LocationGroupBy) Strings(ctx context.Context) ([]string, error) { if len(lgb.fields) > 1 { return nil, errors.New("ent: LocationGroupBy.Strings is not achievable when grouping more than 1 field") } var v []string if err := lgb.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -0.61939537525177, -0.09353417903184891, 0.18749304115772247, -0.5077754855155945, 0.2869971692562103, 0.5694289207458496, 0.1890195608139038, -1.3193516731262207, -0.12078332901000977, -0.1396922767162323, 0.5634759068489075, 0.657909095287323, -0.7885621190071106, 0.21287862956523895, ...
func (lgb *LocationGroupBy) StringsX(ctx context.Context) []string { v, err := lgb.Strings(ctx) if err != nil { panic(err) } return v }
[ -0.27602750062942505, -0.09913038462400436, 0.3647666573524475, 0.10068517178297043, -0.4303135275840759, 1.0821778774261475, -0.8237171769142151, -1.284940481185913, 0.46325358748435974, 0.29811134934425354, 0.5044165849685669, 1.2288930416107178, -0.5174645781517029, -0.09017187356948853...
func (lgb *LocationGroupBy) Ints(ctx context.Context) ([]int, error) { if len(lgb.fields) > 1 { return nil, errors.New("ent: LocationGroupBy.Ints is not achievable when grouping more than 1 field") } var v []int if err := lgb.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -0.9149225354194641, 0.20875361561775208, 0.4170103371143341, -0.42174962162971497, -0.16730552911758423, -0.18206994235515594, 0.0621822327375412, -0.7584325671195984, -0.3353929817676544, -0.2792685627937317, 0.5597954392433167, 0.9774402379989624, -0.5101425647735596, -0.157936066389083...
func (lgb *LocationGroupBy) IntsX(ctx context.Context) []int { v, err := lgb.Ints(ctx) if err != nil { panic(err) } return v }
[ -0.7262266278266907, 0.5939699411392212, 0.23175956308841705, 0.10032767802476883, -0.47890886664390564, 0.18613897264003754, -0.6335818767547607, -0.4268111288547516, 0.4106280505657196, -0.13333240151405334, -0.052209652960300446, 0.6504843831062317, -0.4095793068408966, -0.4532526433467...
func (lgb *LocationGroupBy) Float64s(ctx context.Context) ([]float64, error) { if len(lgb.fields) > 1 { return nil, errors.New("ent: LocationGroupBy.Float64s is not achievable when grouping more than 1 field") } var v []float64 if err := lgb.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -0.6737170219421387, 0.3068598806858063, 0.3639450967311859, -0.020432421937584877, 0.14052839577198029, -0.42439931631088257, -0.15895609557628632, -0.8401530385017395, -0.09214121103286743, -0.33426225185394287, 0.3084796369075775, 1.0010906457901, -0.3689810037612915, 0.6558634638786316...
func (lgb *LocationGroupBy) Float64sX(ctx context.Context) []float64 { v, err := lgb.Float64s(ctx) if err != nil { panic(err) } return v }
[ -0.31472915410995483, 0.3319329023361206, 0.05769064649939537, 0.6214241981506348, -0.2257152795791626, -0.16832345724105835, -0.906616747379303, -0.3992682099342346, 0.39156684279441833, -0.1276717483997345, -0.08104699105024338, 0.43168899416923523, -0.088397316634655, 0.3004178702831268...
func (lgb *LocationGroupBy) Bools(ctx context.Context) ([]bool, error) { if len(lgb.fields) > 1 { return nil, errors.New("ent: LocationGroupBy.Bools is not achievable when grouping more than 1 field") } var v []bool if err := lgb.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -0.7869511842727661, 0.39607834815979004, 0.4648475646972656, -0.5030850768089294, 0.37355515360832214, 0.44462499022483826, -0.11254319548606873, -0.29763221740722656, -0.5330953001976013, -0.27315232157707214, 0.5626659393310547, 0.7284191250801086, 0.06650848686695099, -0.28017854690551...
func (lgb *LocationGroupBy) BoolsX(ctx context.Context) []bool { v, err := lgb.Bools(ctx) if err != nil { panic(err) } return v }
[ -0.29620161652565, 0.259448379278183, 0.4211864173412323, 0.24766592681407928, -0.7283239364624023, 0.6422073245048523, -0.9199724793434143, -0.32516875863075256, -0.03686103969812393, 0.19687077403068542, -0.15208721160888672, 0.7988088726997375, 0.34709465503692627, -0.43567466735839844,...
func (ls *LocationSelect) Scan(ctx context.Context, v interface{}) error { return ls.sqlScan(ctx, v) }
[ -1.0124253034591675, -0.44618064165115356, 0.04932234808802605, 0.0897611528635025, -0.5643103718757629, 0.06297027319669724, -0.17708423733711243, -0.18576613068580627, 1.1016130447387695, -0.5868620872497559, 0.08333706855773926, 0.7960769534111023, 0.13053254783153534, -0.22081801295280...
func (ls *LocationSelect) ScanX(ctx context.Context, v interface{}) { if err := ls.Scan(ctx, v); err != nil { panic(err) } }
[ -0.9718221426010132, 0.08067453652620316, 0.10625523328781128, 0.4959369897842407, -0.8982886075973511, 0.5209187269210815, -1.052727222442627, -0.20678061246871948, 1.7846856117248535, -0.18649770319461823, -0.36235150694847107, 0.8620527982711792, 0.12978599965572357, -0.0136241652071475...
func (ls *LocationSelect) Strings(ctx context.Context) ([]string, error) { if len(ls.fields) > 1 { return nil, errors.New("ent: LocationSelect.Strings is not achievable when selecting more than 1 field") } var v []string if err := ls.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -0.7373302578926086, -0.5981252789497375, 0.06925614923238754, -0.6640655398368835, 0.5488629937171936, 0.21830801665782928, -0.08426932990550995, -0.6640973687171936, 0.7978812456130981, -0.2120182365179062, 0.33096417784690857, 0.5933359861373901, -0.7414013743400574, 0.06716316193342209...
func (ls *LocationSelect) StringsX(ctx context.Context) []string { v, err := ls.Strings(ctx) if err != nil { panic(err) } return v }
[ -0.4228729009628296, -0.8600908517837524, 0.14745453000068665, -0.04725131019949913, -0.29461175203323364, 0.9505811929702759, -1.0709246397018433, -1.0115407705307007, 1.5958794355392456, 0.5566349625587463, 0.4824812114238739, 1.3295211791992188, -0.5535390377044678, -0.256357878446579, ...
func (ls *LocationSelect) Ints(ctx context.Context) ([]int, error) { if len(ls.fields) > 1 { return nil, errors.New("ent: LocationSelect.Ints is not achievable when selecting more than 1 field") } var v []int if err := ls.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -1.0893925428390503, -0.4399062991142273, 0.31287503242492676, -0.5827067494392395, 0.08924603462219238, -0.45230332016944885, -0.3460363745689392, -0.3043469488620758, 0.44135913252830505, -0.13169978559017181, 0.19596505165100098, 0.7883573770523071, -0.5358102917671204, -0.3847242295742...
func (ls *LocationSelect) IntsX(ctx context.Context) []int { v, err := ls.Ints(ctx) if err != nil { panic(err) } return v }
[ -0.8792744278907776, -0.0998455062508583, 0.16621534526348114, -0.005964045412838459, -0.5307847261428833, 0.047293771058321, -1.0260080099105835, -0.2084360420703888, 1.216438889503479, 0.2599566578865051, -0.1528039574623108, 0.5867831707000732, -0.46037590503692627, -0.7207710146903992,...
func (ls *LocationSelect) Float64s(ctx context.Context) ([]float64, error) { if len(ls.fields) > 1 { return nil, errors.New("ent: LocationSelect.Float64s is not achievable when selecting more than 1 field") } var v []float64 if err := ls.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -0.8689236640930176, -0.24614758789539337, 0.22150777280330658, -0.19835785031318665, 0.4412989318370819, -0.6961133480072021, -0.3786841034889221, -0.5306872725486755, 0.7222725749015808, -0.1829870194196701, 0.0035187629982829094, 0.9078891277313232, -0.4626891613006592, 0.37421333789825...
func (ls *LocationSelect) Float64sX(ctx context.Context) []float64 { v, err := ls.Float64s(ctx) if err != nil { panic(err) } return v }
[ -0.4108557105064392, -0.136560320854187, -0.062276046723127365, 0.6143495440483093, -0.06755795329809189, -0.4134770333766937, -1.1437727212905884, -0.32569172978401184, 1.026010513305664, 0.07662908732891083, -0.061000507324934006, 0.46801134943962097, -0.3916076421737671, 0.0286655128002...
func (ls *LocationSelect) Bools(ctx context.Context) ([]bool, error) { if len(ls.fields) > 1 { return nil, errors.New("ent: LocationSelect.Bools is not achievable when selecting more than 1 field") } var v []bool if err := ls.Scan(ctx, &v); err != nil { return nil, err } return v, nil }
[ -0.9153727293014526, -0.22762365639209747, 0.3178393542766571, -0.5229954123497009, 0.6375170946121216, 0.09893711656332016, -0.5054758191108704, 0.07392924278974533, 0.4457228183746338, -0.28171083331108093, 0.2581759989261627, 0.6571258306503296, 0.08527081459760666, -0.3810250163078308,...
func (ls *LocationSelect) BoolsX(ctx context.Context) []bool { v, err := ls.Bools(ctx) if err != nil { panic(err) } return v }
[ -0.3362317979335785, -0.4355887174606323, 0.2744969129562378, 0.24677278101444244, -0.7151312828063965, 0.4754035770893097, -1.2298009395599365, -0.19907787442207336, 0.8291804194450378, 0.44367846846580505, -0.1888669729232788, 0.8067800998687744, 0.25344738364219666, -0.48948442935943604...
func (*SampleOneOf) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _SampleOneOf_OneofMarshaler, _SampleOneOf_OneofUnmarshaler, _SampleOneOf_OneofSizer, []interface{}{ (*S...
[ 0.1951751857995987, 0.4996134340763092, 0.7285020351409912, -0.4739364981651306, -0.06370048224925995, -0.8691151738166809, 0.8885419964790344, -1.5000524520874023, 0.4102207124233246, -0.38561829924583435, -0.5715835690498352, -0.38440611958503723, -0.3029327690601349, 0.48270565271377563...
func (id *ObjectID) UnmarshalBinary(data []byte) error { if len(data) < ObjectIDMinLength { return ErrTruncatedData } id.Value = unmarshalGUID(data[0:16]) if len(data) >= 32 { id.BirthVolumeID = unmarshalGUID(data[16:32]) } if len(data) >= 48 { id.BirthObjectID = unmarshalGUID(data[32:48]) } if len(data) ...
[ 0.09311047196388245, -0.63491290807724, 0.9830735325813293, -1.1443071365356445, -0.09796077013015747, -0.07104554027318954, -0.5729212760925293, -1.048038125038147, 0.07342186570167542, 0.1594834327697754, -0.33276522159576416, 0.9296077489852905, -0.39625900983810425, -0.3314524292945862...
func (id *ObjectID) String() string { return id.Value.String() }
[ -0.105201356112957, -1.6993327140808105, -0.04826900362968445, -0.838981568813324, -0.14768779277801514, 1.3501931428909302, 0.10008788108825684, -1.4493135213851929, 0.41762444376945496, 0.47544750571250916, -0.21982383728027344, 0.9329556822776794, 0.1687583327293396, -0.4459715783596039...
func (w writer) Write(p []byte) (n int, err error) { w.logFunc(string(p)) return len(p), nil }
[ -1.2919576168060303, 0.5977638959884644, 0.35235559940338135, -0.25256648659706116, 0.3537522852420807, -0.3628840148448944, 0.5237882137298584, 0.8143292665481567, 0.047765787690877914, 0.31216752529144287, -1.206170678138733, -0.40304720401763916, -0.6714079976081848, 0.3586452603340149,...
func (r *ReconcileNodeMaintenance) Reconcile(request reconcile.Request) (reconcile.Result, error) { reqLogger := log.WithFields(log.Fields{"Request.Namespace": request.Namespace, "Request.Name": request.Name}) reqLogger.Info("Reconciling NodeMaintenance") // Fetch the NodeMaintenance instance instance := &kubevirt...
[ -0.648325502872467, -0.8843579292297363, 0.9424718022346497, -0.19851310551166534, 0.32587867975234985, -0.380230188369751, -0.4953693747520447, -0.24855776131153107, 0.19112418591976166, 0.24884791672229767, 0.8146244883537292, -0.5595200061798096, -0.4681690037250519, 0.3544005751609802,...
func OpenUSBConnection(usbctx *gousb.Context) (*U6, error) { if usbctx == nil { return &emptyU6, ErrInvalidContext } // Open any device with a given VID/PID using a convenience function. dev, err := usbctx.OpenDeviceWithVIDPID(labjack.LabJackVendorID, labjack.U6ProductID) if err != nil { return &emptyU6, ErrL...
[ -0.2822253108024597, 0.04977982118725777, 0.6886169910430908, 0.6820681095123291, -0.40729478001594543, -0.6358177065849304, 0.5648817420005798, 0.0878513902425766, 0.8404812812805176, -0.5498175024986267, -0.47290098667144775, -0.4516738951206207, -0.45332708954811096, -0.2551150619983673...
func (u *U6) DeviceDesc() DeviceDesc { return u.config }
[ -0.013494685292243958, 0.6522151827812195, 0.128421351313591, 0.7717880606651306, -0.5050150752067566, 0.27416107058525085, 1.1910550594329834, 0.349449098110199, 0.2757285535335541, -0.5905599594116211, 0.35781997442245483, 0.4874691665172577, 0.5495731234550476, 0.2109292596578598, 0.7...
func (u *U6) getCalibrationInfo() error { sendBuffer := make([]byte, 64) recBuffer := make([]byte, 64) // setting up U6Config sendBuffer[1] = uint8(0xF8) sendBuffer[2] = uint8(0x0A) sendBuffer[3] = uint8(0x08) for i := 6; i < 26; i++ { sendBuffer[i] = uint8(0x00) } extendedChecksum(sendBuffer[:26]) // Op...
[ 0.5099964141845703, -0.06165953725576401, 0.8811438083648682, 0.30238133668899536, -0.13322418928146362, -0.19072380661964417, 0.46909937262535095, -0.543990433216095, -0.6723663806915283, -0.02894829772412777, -0.5340885519981384, -0.16850264370441437, -0.3926522135734558, 0.4836937785148...
func (u *U6) GetCalibrationInfo() CalibrationInfo { return u.calibration }
[ 0.6441130042076111, -0.17000751197338104, 0.38334137201309204, 1.0725243091583252, -1.0756785869598389, 0.4011613130569458, 0.8544267416000366, -0.5146666765213013, -0.0851864218711853, -0.09821602702140808, -0.8812093138694763, -0.9447471499443054, -0.03078906238079071, 0.1552914530038833...
func (u *U6) Close() error { return u.device.Close() }
[ -0.2223343551158905, 0.45203426480293274, 0.3075512647628784, 1.0165979862213135, -0.30311718583106995, 0.3989883065223694, 1.0192168951034546, -0.32840436697006226, 0.23303020000457764, -0.9204940795898438, 0.37423351407051086, -0.3358757495880127, -0.7348703145980835, 0.4063493311405182,...
func (u *U6) Feedback(cmds ...FeedbackCommand) error { var sendBuffer bytes.Buffer // Write header n, err := sendBuffer.Write(feedbackHeader) if err != nil { return err } else if n != len(feedbackHeader) { return errors.New("Feedback header could not be written") } // fmt.Println("After header: ", sendBuffe...
[ 0.4732626974582672, 0.04674449935555458, 0.9193129539489746, 0.19323545694351196, 0.24595925211906433, -0.10928213596343994, 1.6242297887802124, -0.9423107504844666, 0.09701661020517349, -0.1906774938106537, 0.06206203252077103, -0.23901021480560303, -0.2030245065689087, 0.5999420285224915...
func (u *U6) NewStream(config *StreamConfig) (*Stream, error) { stream := &Stream{u, config, make(chan struct{}, 1), func() {}} if config.SamplesPerPacket < 1 || config.SamplesPerPacket > 25 { return stream, errors.New("Invalid samples per packet") } else if config.ResolutionIndex < 1 || config.ResolutionIndex > 8...
[ 0.2840116620063782, -0.17772841453552246, 0.9283308386802673, 0.16556638479232788, -1.1482107639312744, -0.41825881600379944, 0.4178612530231476, -0.5413185358047485, 0.5208625793457031, -0.45464959740638733, -0.07935492694377899, -0.5103852152824402, -0.324065238237381, 0.4861236810684204...
func NewManagedServer(driverGenerator DriverGenerator, lg Logger, alertFn Alerter) *ManagedServer { return &ManagedServer{ driverGenerator: driverGenerator, lg: lg, alertFn: alertFn, } }
[ -0.6998350620269775, -0.9353088736534119, 0.41045743227005005, -0.094601571559906, -0.9373819828033447, -0.2947019636631012, -0.8447573184967041, -0.027599580585956573, 0.4419021010398865, -0.7337714433670044, 0.2142932265996933, 0.9141852855682373, -0.9520121216773987, 1.2195945978164673,...
func (m ManagedServer) Start(port int, rawPrivateKeys [][]byte, ciphers, macs []string) { m.lg.InfoD("starting-server", meta{ "port": port, "ciphers": ciphers, "macs": macs, }) privateKeys := []ssh.Signer{} for i, rawKey := range rawPrivateKeys { privateKey, err := ssh.ParsePrivateKey(rawKey) if er...
[ -0.7465049028396606, -0.5128999948501587, 0.960472047328949, -0.07100558280944824, 0.14085622131824493, 0.1667976826429367, -0.3016616702079773, 0.5662636160850525, -0.6332306861877441, 0.4681926965713501, -0.36368662118911743, 1.1282563209533691, -0.5519148707389832, 0.8469225168228149, ...
func NewKeyRing(key *Key) (*KeyRing, error) { keyRing := &KeyRing{} var err error if key != nil { err = keyRing.AddKey(key) } return keyRing, err }
[ -0.5964062809944153, 0.5615507364273071, 0.2962352931499481, 0.46135127544403076, -1.1745996475219727, -0.21981115639209747, -0.9547401666641235, -0.8097882866859436, 0.3688177466392517, 0.9342572689056396, -0.7752721905708313, 0.05456681549549103, -0.5261214971542358, 0.7356852293014526, ...
func (keyRing *KeyRing) AddKey(key *Key) error { if key.IsPrivate() { unlocked, err := key.IsUnlocked() if err != nil || !unlocked { return errors.New("gopenpgp: unable to add locked key to a keyring") } } keyRing.appendKey(key) return nil }
[ -1.3842880725860596, 0.9581621289253235, 0.7203198075294495, 0.801192045211792, 0.5496206879615784, 0.48963049054145813, -1.3508464097976685, -0.9628577828407288, 0.23173175752162933, 0.8301457762718201, 0.4291067123413086, 0.16241057217121124, -0.9660887122154236, 0.33690881729125977, 0...
func (keyRing *KeyRing) GetKeys() []*Key { keys := make([]*Key, keyRing.CountEntities()) for i, entity := range keyRing.entities { keys[i] = &Key{entity} } return keys }
[ -0.4199598431587219, -0.14161056280136108, 0.3506457805633545, -0.27283331751823425, 0.9547209739685059, -0.09838995337486267, -0.7503169178962708, -0.8083580732345581, -0.41847482323646545, 0.5279728174209595, -0.006765623576939106, 0.9190167784690857, -0.11677469313144684, 0.368243575096...
func (keyRing *KeyRing) GetKey(n int) (*Key, error) { if n >= keyRing.CountEntities() { return nil, errors.New("gopenpgp: out of bound when fetching key") } return &Key{keyRing.entities[n]}, nil }
[ -0.41832542419433594, 0.7256525754928589, 0.4437641501426697, 0.1773023009300232, 0.5128387212753296, 0.28835368156433105, -0.9346000552177429, -1.9436135292053223, -0.5498952865600586, 0.6041707396507263, 0.20336906611919403, -0.04939932003617287, -0.6121543645858765, -0.14432866871356964...
func (keyRing *KeyRing) getSigningEntity() (*openpgp.Entity, error) { var signEntity *openpgp.Entity for _, e := range keyRing.entities { // Entity.PrivateKey must be a signing key if e.PrivateKey != nil { if !e.PrivateKey.Encrypted { signEntity = e break } } } if signEntity == nil { return n...
[ -0.5474216938018799, -0.5266859531402588, 0.669751763343811, 0.3370290994644165, 0.40311771631240845, 0.027732910588383675, -0.04963880032300949, -0.28567615151405334, -0.6570532917976379, 0.8173181414604187, 0.41060322523117065, -0.8146761059761047, -1.1724082231521606, 0.4660793542861938...
func (keyRing *KeyRing) CountEntities() int { return len(keyRing.entities) }
[ 0.18981830775737762, -0.8988586068153381, 0.2902326285839081, -0.8686721324920654, 0.3449232280254364, 0.8776228427886963, -0.4501676857471466, 0.06366980820894241, -0.8496163487434387, 0.1375962197780609, -0.491634726524353, -0.25052887201309204, 0.13880710303783417, 0.9240826964378357, ...
func (keyRing *KeyRing) CountDecryptionEntities() int { return len(keyRing.entities.DecryptionKeys()) }
[ -0.5103704333305359, 0.17521381378173828, 0.32196593284606934, -0.4672909379005432, 0.07124292850494385, -0.18918754160404205, -0.7140365242958069, -0.20606911182403564, -1.0123696327209473, 0.6205572485923767, -0.935996413230896, -0.6756834983825684, 0.5370557308197021, 0.1971113979816436...
func (keyRing *KeyRing) GetIdentities() []*Identity { var identities []*Identity for _, e := range keyRing.entities { for _, id := range e.Identities { identities = append(identities, &Identity{ Name: id.UserId.Name, Email: id.UserId.Email, }) } } return identities }
[ -0.6512881517410278, -0.6021429896354675, 0.41551998257637024, 0.3018207252025604, 0.7937355041503906, 0.6356689929962158, -0.7739328742027283, -0.6427575945854187, 0.03402554988861084, 0.1463317573070526, -0.7533843517303467, 0.5585953593254089, -0.24318867921829224, 0.3786369562149048, ...
func (keyRing *KeyRing) CanVerify() bool { keys := keyRing.GetKeys() for _, key := range keys { if key.CanVerify() { return true } } return false }
[ -0.06649434566497803, 0.06713967025279999, 0.42198073863983154, 0.8286898732185364, -0.6041616201400757, -0.09027377516031265, -1.1555148363113403, 0.4050905406475067, -1.2375826835632324, 0.7364512085914612, -1.290169596672058, 0.12803630530834198, -0.281848281621933, 1.0463531017303467, ...
func (keyRing *KeyRing) CanEncrypt() bool { keys := keyRing.GetKeys() for _, key := range keys { if key.CanEncrypt() { return true } } return false }
[ -0.34261080622673035, 0.637105405330658, 0.418203204870224, 0.508979082107544, -0.8775195479393005, -0.41789430379867554, -0.39474111795425415, -0.31671494245529175, -1.0798076391220093, 1.8433771133422852, -0.6796773672103882, -0.3082488775253296, -0.6537840366363525, 0.08563937991857529,...
func (keyRing *KeyRing) GetKeyIDs() []uint64 { var res = make([]uint64, len(keyRing.entities)) for id, e := range keyRing.entities { res[id] = e.PrimaryKey.KeyId } return res }
[ -0.4838317036628723, -0.21883758902549744, 0.3277263939380646, -0.04714617133140564, 0.4288407266139984, 0.4099232256412506, -0.7452796697616577, -0.4190044701099396, -0.196088969707489, 0.8560134172439575, -0.5583219528198242, 0.7788597941398621, -0.5733740329742432, 0.7024855017662048, ...
func FilterExpiredKeys(contactKeys []*KeyRing) (filteredKeys []*KeyRing, err error) { now := time.Now() hasExpiredEntity := false //nolint:ifshort filteredKeys = make([]*KeyRing, 0) for _, contactKeyRing := range contactKeys { keyRingHasUnexpiredEntity := false keyRingHasTotallyExpiredEntity := false for _, ...
[ -0.5010481476783752, -0.8354877829551697, 0.7688682675361633, 0.3055550456047058, -0.5944772362709045, 0.5387415289878845, -1.0589702129364014, -0.6000078916549683, 0.14472363889217377, 0.9756202101707458, 0.0007785856141708791, -0.20367449522018433, -0.3569210469722748, 0.7785422205924988...
func (keyRing *KeyRing) FirstKey() (*KeyRing, error) { if len(keyRing.entities) == 0 { return nil, errors.New("gopenpgp: No key available in this keyring") } newKeyRing := &KeyRing{} newKeyRing.entities = keyRing.entities[:1] return newKeyRing.Copy() }
[ 0.15656770765781403, -0.16618148982524872, 0.4345233738422394, 0.10058219730854034, 0.6021844148635864, 0.27542999386787415, -0.8543558716773987, -0.9791385531425476, 0.03621324151754379, 0.6941183805465698, 0.7610156536102295, 0.31528109312057495, -0.8485625386238098, 0.16290754079818726,...
func (keyRing *KeyRing) Copy() (*KeyRing, error) { newKeyRing := &KeyRing{} entities := make([]*openpgp.Entity, len(keyRing.entities)) for id, entity := range keyRing.entities { var buffer bytes.Buffer var err error if entity.PrivateKey == nil { err = entity.Serialize(&buffer) } else { err = entity.S...
[ -1.021220326423645, -0.8998819589614868, 0.8558100461959839, -0.24686719477176666, -0.7698748707771301, 1.1238489151000977, -0.6333544850349426, -1.2374515533447266, -0.3413938581943512, 1.3400200605392456, 0.1332550197839737, 0.5407184958457947, -0.7655671238899231, -0.11980060487985611, ...
func (keyRing *KeyRing) appendKey(key *Key) { keyRing.entities = append(keyRing.entities, key.entity) }
[ -0.5130795240402222, 0.3787773549556732, 0.2906152904033661, -0.41744253039360046, 0.5371454358100891, 0.7360528111457825, -1.2684195041656494, -0.24415713548660278, -0.02317638136446476, 0.9926239848136902, 0.20726676285266876, -0.049380067735910416, -0.24720348417758942, 1.42894172668457...
func UnixTimestamp(sec int64, layout string) string { return time.Unix(sec, 0).Format(layout) }
[ 0.538643479347229, 0.32085609436035156, 0.18924027681350708, 0.0004187706799712032, -0.6506100296974182, 0.2613096237182617, -0.9229782819747925, -0.18318569660186768, 0.45247623324394226, -0.27095428109169006, -0.18369872868061066, -0.44199034571647644, 0.8437018990516663, -0.712134182453...
func DurationInMilliseconds(d time.Duration) string { return fmt.Sprintf("%.0fms", d.Seconds()*1e3) }
[ 0.5995317101478577, -0.4355278015136719, 0.1865900456905365, -0.618493378162384, -0.7543696761131287, -0.15223778784275055, 0.07593216747045517, 0.201006218791008, 0.7239421606063843, 0.4752533435821533, 0.5052899718284607, -0.4332936704158783, -0.03227544575929642, 0.6814207434654236, -...
func (o *GetEquipmentIoCardsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewGetEquipmentIoCardsOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return res...
[ -0.22732660174369812, -0.6418808698654175, 0.7301911115646362, 0.010627899318933487, 0.6552116870880127, -1.2314307689666748, 0.39333438873291016, -0.47981566190719604, 0.24803847074508667, 0.47777259349823, 0.4024932384490967, -0.7672191858291626, -0.7463957667350769, -0.8841820359230042,...
func NewGetEquipmentIoCardsOK() *GetEquipmentIoCardsOK { return &GetEquipmentIoCardsOK{} }
[ -0.09042180329561234, -0.8066762685775757, 0.16802337765693665, -0.25994038581848145, 0.8635342717170715, -1.0250120162963867, 0.5577582120895386, -0.18545593321323395, -1.2514840364456177, 0.2579911947250366, -1.0022764205932617, -0.3776502311229706, 0.9919928908348083, -1.529754281044006...
func NewGetEquipmentIoCardsDefault(code int) *GetEquipmentIoCardsDefault { return &GetEquipmentIoCardsDefault{ _statusCode: code, } }
[ 0.09639940410852432, 0.12801356613636017, -0.11120733618736267, -0.18192875385284424, 1.8378221988677979, -0.9827468395233154, 0.13781405985355377, 0.2767871916294098, -0.46472740173339844, 0.16842949390411377, -1.0783976316452026, -0.5487169027328491, -0.18458694219589233, -1.668081045150...
func (o *GetEquipmentIoCardsDefault) Code() int { return o._statusCode }
[ -0.2682989239692688, 0.389540433883667, 0.14677591621875763, 0.5185062885284424, 1.6741182804107666, -0.38404297828674316, 0.27270784974098206, 0.5088730454444885, -0.34420400857925415, 0.3575144112110138, -0.19516237080097198, -0.7818833589553833, 0.033985435962677, -0.5434916615486145, ...
func (g Graph) ChangeOwnPassword(w http.ResponseWriter, r *http.Request) { ctx := r.Context() u, ok := revactx.ContextGetUser(ctx) if !ok { g.logger.Error().Msg("user not in context") errorcode.ServiceNotAvailable.Render(w, r, http.StatusInternalServerError, "user not in context") return } sanitizedPath := ...
[ -0.22954581677913666, -0.48068755865097046, 1.1821095943450928, 0.6847783923149109, -0.7160628437995911, -0.08355473726987839, 0.48647284507751465, -0.34841376543045044, -0.20069272816181183, 0.11344904452562332, -0.2640080749988556, 1.7008863687515259, -0.6364113092422485, 0.5492118597030...
func (f File) RedirectTo() (string, bool, error) { fi, err := os.Stat(f.LocalPath()) switch { case err != nil: return "", false, err case fi.IsDir(): return path.Join(f.VPath(), "README.md"), true, nil case !strings.HasSuffix(f.VPath(), ".md"): return "", false, ErrNotAMarkdownFile default: return "", fa...
[ -0.20671214163303375, 0.07623253017663956, 0.791391909122467, -0.3691440522670746, 0.24939091503620148, 0.49906888604164124, 0.4412023425102234, 0.0583551824092865, -0.6246687769889832, 0.4449670910835266, 0.358411580324173, -0.5585088729858398, -0.4373193085193634, 0.15083053708076477, ...
func (f File) Contents() ([]byte, error) { return ioutil.ReadFile(f.LocalPath()) }
[ -0.07263240963220596, -0.7450008988380432, 0.17159509658813477, -0.5203160643577576, 0.1537889838218689, 0.1264140009880066, -0.322934627532959, -0.4084697365760803, -0.9837028384208679, -0.5786687731742859, 0.45680490136146545, -0.5314107537269592, 0.912562906742096, -0.07614591717720032,...
func (f File) VPath() string { return path.Clean(f.Path) }
[ 0.9318923950195312, -0.3450527489185333, -0.004947693552821875, -0.013917818665504456, -0.8637322187423706, 1.0429664850234985, 0.14709079265594482, -0.39718928933143616, -0.078574538230896, 0.8640996217727661, 0.656813383102417, -0.14515770971775055, -0.14721383154392242, -0.4862436652183...
func (f File) LocalPath() string { return path.Join(f.Public, f.VPath()) }
[ 1.4893136024475098, -0.4833829700946808, 0.06101600453257561, 0.7876750230789185, -0.6047099232673645, 1.159630298614502, 0.200370654463768, 0.563568115234375, -0.2788037955760956, 0.4879198968410492, 0.7220829129219055, 0.035510409623384476, -0.422104150056839, -0.1533188670873642, -0.1...
func (f File) TemplateData() TemplateContents { contents, _ := f.Contents() return TemplateContents{ Fpath: f.VPath(), Fcontents: string(contents), } }
[ -0.031145529821515083, -0.8785364031791687, 0.2221592664718628, -1.0205175876617432, -0.5401802659034729, 0.4855026602745056, -0.6124452352523804, 0.3546181619167328, -0.46134912967681885, -1.1094218492507935, -0.01198525633662939, -0.47052931785583496, 1.0332337617874146, 0.04438792541623...
func (a *Adaptor) IsUsernameAvailable(username string) (bool, *adaptor.AdaptorError) { var nameExists bool err := a.apidClient.DoFunction( "checkexists", url.Values{"username": []string{username}}, &nameExists) if err != nil { return false, adaptor.NewError(fmt.Sprintf(ApidErrorFmt, err)) } // If name ex...
[ -1.8498609066009521, -0.29697689414024353, 0.2829194664955139, -0.7232156991958618, -0.2757123112678528, 0.07610932737588882, -0.5151505470275879, 0.28420010209083557, 0.596510648727417, 1.2142490148544312, 0.0542730912566185, -0.3290833830833435, -0.28765538334846497, 0.5296893119812012, ...
func (m *model) get(row int) string { return "slot get called" }
[ -0.8130662441253662, 0.3427276313304901, 0.4015471339225769, -0.27972322702407837, -0.1832287609577179, -0.18606945872306824, 0.47570928931236267, -0.759950578212738, -0.8191400170326233, 0.216716468334198, 0.4552065134048462, -0.1961919218301773, 0.33546558022499084, 0.4920206665992737, ...
func NewContext(block *core.Block, engine db.DB, wb db.WriteBatch) Context { return &DefaultContext{ queryEngine: engine, wb: wb, block: block, channelID: block.Header.ChannelID, evmCtx: &evm.Context{ BlockHeight: block.GetNumber(), BlockTime: block.Header.Time, Difficulty: 0, ...
[ 0.8292677998542786, -0.4364236891269684, 0.5033705830574036, 0.30323436856269836, 0.010363727807998657, -0.5725127458572388, -0.4172833263874054, -0.3760226368904114, -0.015694858506321907, 0.18733929097652435, -0.060348715633153915, -0.5325219631195068, -0.8003479838371277, 0.421276986598...
func (ctx *DefaultContext) BlockFinalize() error { if len(ctx.logs) != 0 { logs, err := json.Marshal(ctx.logs) if err != nil { return err } ctx.wb.Put([]byte(fmt.Sprintf("block_log_%s_%d", ctx.channelID, ctx.block.GetNumber())), logs) } for addr, acc := range ctx.accounts { // sync account if acc.upd...
[ -0.02237376570701599, 0.06901038438081741, 1.0426573753356934, 0.2795945107936859, 0.6466059684753418, -0.5147154927253723, 0.24618443846702576, -0.41290709376335144, -0.24714985489845276, 0.9048280119895935, -0.4685116708278656, 0.1973893642425537, -0.6055347323417664, 0.7972602844238281,...
func (ctx *DefaultContext) BlockContext() *evm.Context { return ctx.evmCtx }
[ 0.7672319412231445, 0.4586128294467926, 0.6274971961975098, 0.635848879814148, 0.5127923488616943, 0.42237943410873413, 0.13375315070152283, -1.0527147054672241, 0.44081979990005493, 0.04925057664513588, 0.10867919027805328, -0.34134018421173096, -0.2617538273334503, 0.15909267961978912, ...
func (ctx *DefaultContext) NewBlockchain() evm.Blockchain { return NewBlockchain(ctx.queryEngine, ctx.channelID) }
[ 0.35725945234298706, -0.3807717263698578, 0.21060699224472046, 0.0002641871978994459, 0.9691532850265503, -0.15884146094322205, -0.5492908358573914, -1.1567106246948242, 0.34798192977905273, -0.18523989617824554, -0.2425708770751953, 0.4394564926624298, -0.7948443293571472, 0.6008171439170...
func (ctx *DefaultContext) NewDatabase() evm.DB { return NewCache(ctx) }
[ 0.20889554917812347, 0.313503623008728, 0.17213323712348938, 1.3909904956817627, 0.05223705247044563, 0.106182761490345, -0.42739152908325195, -0.22743216156959534, 1.0508350133895874, -0.3815155029296875, -0.37115129828453064, -0.31341132521629333, -0.5779152512550354, 0.6960749626159668,...
func bytesToCommonAddress(addr []byte) common.Address { return common.BytesToAddress(addr) }
[ 0.5921506285667419, -0.7464989423751831, 0.3483545184135437, -0.42573997378349304, 0.44768890738487244, 0.3251160979270935, 0.8810783624649048, -0.10714119672775269, 1.4995791912078857, 1.018805980682373, -0.20061373710632324, 1.1904780864715576, -0.46820804476737976, 0.29928505420684814, ...
func (ctx *DefaultContext) exist(address []byte) bool { acc := ctx.accounts[string(address)] if acc != nil { return true } return ctx.queryEngine.AccountExist(bytesToCommonAddress(address)) }
[ 0.19590410590171814, 0.06318414956331253, 0.6185052990913391, 0.23888921737670898, 0.45493218302726746, 0.47846511006355286, 0.6793645620346069, 0.24222439527511597, 0.8498552441596985, 1.0897347927093506, 0.34382572770118713, -0.6672021746635437, -0.3210972249507904, 0.3686346113681793, ...
func (ctx *DefaultContext) setStorage(addr, key, value []byte) { // todo: removed account? accInfo := ctx.getOrSetAccountInfo(addr) if accInfo.account.HasSuicide() { log.Errorf("Fatal error, set storage on a suicide account(%s), key: %s, value: %s", string(addr), string(key), string(value)) } accInfo.storage[str...
[ -0.08828973770141602, 0.2739711105823517, 0.4560448229312897, 0.7712045907974243, 0.029436998069286346, 0.23074498772621155, 0.2638005316257477, -0.08389130234718323, 0.7599127888679504, 0.4441678822040558, -0.11534921079874039, 0.222140833735466, -0.36594635248184204, 0.14465682208538055,...