text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (vuu *VacUserUpdate) ClearReserveEnabled() *VacUserUpdate {
vuu.mutation.ClearReserveEnabled()
return vuu
} | [
0.46703556180000305,
0.34729552268981934,
-0.21292535960674286,
0.7064499258995056,
-0.8837401866912842,
-0.1220112293958664,
-0.5486848950386047,
0.4700438380241394,
-0.0392734631896019,
0.7841290831565857,
-0.8582271337509155,
0.4954874813556671,
-1.3408396244049072,
-0.06595618277788162... |
func (vuu *VacUserUpdate) SetReservations(tl *tokyovacapi.ReservationList) *VacUserUpdate {
vuu.mutation.SetReservations(tl)
return vuu
} | [
-0.968522846698761,
0.9578642845153809,
0.04759591817855835,
1.0468480587005615,
0.1508052796125412,
0.17283178865909576,
0.028457114472985268,
0.17639926075935364,
0.08866699039936066,
0.3011573255062103,
-1.0707963705062866,
-0.9955474734306335,
-0.048232272267341614,
0.09246724098920822... |
func (vuu *VacUserUpdate) ClearReservations() *VacUserUpdate {
vuu.mutation.ClearReservations()
return vuu
} | [
-0.7962448596954346,
1.1605461835861206,
-0.12429863959550858,
0.6613320708274841,
-0.7030694484710693,
0.14674052596092224,
-0.15121963620185852,
-0.29015210270881653,
0.09172753989696503,
0.7402539253234863,
0.7988419532775879,
0.5061177611351013,
-0.5830037593841553,
-0.8272782564163208... |
func (vuu *VacUserUpdate) Mutation() *VacUserMutation {
return vuu.mutation
} | [
-0.03185917064547539,
-0.163683220744133,
0.023539843037724495,
1.1415936946868896,
-0.41693606972694397,
0.03261396288871765,
0.48860183358192444,
0.40743181109428406,
0.7951871752738953,
0.10106272995471954,
0.42276594042778015,
-0.16394446790218353,
-0.4341455399990082,
-1.0187114477157... |
func (vuu *VacUserUpdate) Save(ctx context.Context) (int, error) {
var (
err error
affected int
)
vuu.defaults()
if len(vuu.hooks) == 0 {
affected, err = vuu.sqlSave(ctx)
} else {
var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) {
mutation, ok := m.(*VacUserMutation... | [
-0.5590025186538696,
0.851800262928009,
0.5626528859138489,
0.5982254147529602,
-0.08267146348953247,
-1.105684518814087,
0.8990132808685303,
-0.0629473477602005,
-0.6810390949249268,
0.6712082028388977,
-0.30555227398872375,
-0.23361806571483612,
-0.6877180337905884,
-0.3805534541606903,
... |
func (vuu *VacUserUpdate) SaveX(ctx context.Context) int {
affected, err := vuu.Save(ctx)
if err != nil {
panic(err)
}
return affected
} | [
-0.5156052112579346,
1.257493495941162,
0.51384437084198,
0.7889930009841919,
-0.7645769715309143,
0.3967145085334778,
-0.6109617352485657,
0.8119046092033386,
0.8221533894538879,
0.436889111995697,
-0.9979775547981262,
-0.14211247861385345,
-0.7751351594924927,
-0.5594774484634399,
0.02... |
func (vuu *VacUserUpdate) Exec(ctx context.Context) error {
_, err := vuu.Save(ctx)
return err
} | [
0.20617274940013885,
0.46888667345046997,
0.5308871269226074,
0.899001955986023,
0.12025709450244904,
0.8603734970092773,
-0.5971577763557434,
0.40342605113983154,
-0.11747265607118607,
0.6766425371170044,
-0.018296459689736366,
0.1490653157234192,
-0.49020108580589294,
-0.9936185479164124... |
func (vuu *VacUserUpdate) ExecX(ctx context.Context) {
if err := vuu.Exec(ctx); err != nil {
panic(err)
}
} | [
0.6311148405075073,
0.8906901478767395,
0.48520609736442566,
0.9287111163139343,
-0.30164432525634766,
0.9918586015701294,
-0.9734940528869629,
0.5034419298171997,
0.3369026780128479,
0.30272969603538513,
0.29689332842826843,
0.9537862539291382,
0.010269160382449627,
-0.5581234693527222,
... |
func (vuu *VacUserUpdate) defaults() {
if _, ok := vuu.mutation.UpdatedAt(); !ok {
v := vacuser.UpdateDefaultUpdatedAt()
vuu.mutation.SetUpdatedAt(v)
}
} | [
-0.4153168201446533,
0.6164687275886536,
0.22437189519405365,
0.6440472602844238,
0.3202963173389435,
-0.1476665437221527,
-0.839537501335144,
-0.09964641183614731,
-0.007992163300514221,
-0.47962474822998047,
-0.08397820591926575,
-0.1420331448316574,
0.11674162745475769,
-0.7268483638763... |
func (vuuo *VacUserUpdateOne) SetUpdatedAt(t time.Time) *VacUserUpdateOne {
vuuo.mutation.SetUpdatedAt(t)
return vuuo
} | [
-0.16132752597332,
-0.21789126098155975,
0.5321919918060303,
-0.001811051508411765,
-0.26639339327812195,
1.129766821861267,
-0.18624313175678253,
0.803452730178833,
0.15448987483978271,
-0.4286256730556488,
-0.3613395094871521,
0.02969253435730934,
0.5145618915557861,
-0.10067164152860641... |
func (vuuo *VacUserUpdateOne) SetPartition(s string) *VacUserUpdateOne {
vuuo.mutation.SetPartition(s)
return vuuo
} | [
-0.09245327860116959,
0.13273586332798004,
-0.01180339977145195,
1.1231647729873657,
-0.2424801141023636,
0.0013356248382478952,
1.1078091859817505,
0.8468256592750549,
0.472357839345932,
-0.24245277047157288,
-0.4089164733886719,
-0.16558191180229187,
-0.17537839710712433,
0.0274181477725... |
func (vuuo *VacUserUpdateOne) SetNillablePartition(s *string) *VacUserUpdateOne {
if s != nil {
vuuo.SetPartition(*s)
}
return vuuo
} | [
0.24626049399375916,
0.11667302995920181,
-0.03346627578139305,
0.030917827039957047,
-0.7090014219284058,
-0.14544188976287842,
0.05269947275519371,
0.23353709280490875,
-0.09968672692775726,
-0.33647653460502625,
-0.11865153908729553,
-0.7648953795433044,
-1.2638664245605469,
0.073956698... |
func (vuuo *VacUserUpdateOne) ClearPartition() *VacUserUpdateOne {
vuuo.mutation.ClearPartition()
return vuuo
} | [
-0.08645116537809372,
0.12849587202072144,
0.14046715199947357,
1.0321887731552124,
-0.5821031928062439,
0.02645929902791977,
0.23518557846546173,
0.06848186999559402,
0.4905111789703369,
0.35181477665901184,
0.6314386129379272,
0.35891789197921753,
-0.35391873121261597,
-0.431073874235153... |
func (vuuo *VacUserUpdateOne) SetRangeKey(s string) *VacUserUpdateOne {
vuuo.mutation.SetRangeKey(s)
return vuuo
} | [
-0.947263777256012,
0.1521182358264923,
-0.33089542388916016,
1.074092149734497,
0.4343899190425873,
-0.014243805781006813,
0.539714515209198,
0.7450146079063416,
-0.4117317795753479,
0.29494503140449524,
-0.7954931855201721,
0.2899610102176666,
0.1948561668395996,
0.0539475716650486,
-1... |
func (vuuo *VacUserUpdateOne) SetNillableRangeKey(s *string) *VacUserUpdateOne {
if s != nil {
vuuo.SetRangeKey(*s)
}
return vuuo
} | [
-0.7988355755805969,
-0.16637080907821655,
-0.1910024732351303,
0.24699650704860687,
-0.48424291610717773,
-0.03717193752527237,
0.12564125657081604,
0.1437729299068451,
-0.3610312342643738,
0.40678828954696655,
-0.3740338981151581,
-0.17613469064235687,
-0.727107584476471,
0.9866706132888... |
func (vuuo *VacUserUpdateOne) ClearRangeKey() *VacUserUpdateOne {
vuuo.mutation.ClearRangeKey()
return vuuo
} | [
-0.9915755391120911,
0.158063143491745,
-0.27906936407089233,
1.124742865562439,
-0.27001702785491943,
0.2544911205768585,
0.01796305924654007,
-0.08975498378276825,
-0.4029703736305237,
0.9054690003395081,
-0.06227433308959007,
0.5755469799041748,
0.0732584297657013,
-0.10395611077547073,... |
func (vuuo *VacUserUpdateOne) SetPassword(s string) *VacUserUpdateOne {
vuuo.mutation.SetPassword(s)
return vuuo
} | [
0.0057003190740942955,
0.4912737309932709,
0.16320519149303436,
2.269178628921509,
-0.08173702657222748,
0.33139994740486145,
0.8272871971130371,
0.8780925869941711,
0.37976837158203125,
-0.1731136292219162,
-0.5044737458229065,
-0.11808827519416809,
-0.009860064834356308,
-0.4168198108673... |
func (vuuo *VacUserUpdateOne) SetNillablePassword(s *string) *VacUserUpdateOne {
if s != nil {
vuuo.SetPassword(*s)
}
return vuuo
} | [
0.4868101179599762,
0.3846553862094879,
-0.017876597121357918,
1.29197359085083,
-0.5542594790458679,
0.28038278222084045,
0.06706959754228592,
0.5785123109817505,
-0.14173036813735962,
0.4434483051300049,
-0.30673304200172424,
0.09350551664829254,
-0.7038979530334473,
0.5094000697135925,
... |
func (vuuo *VacUserUpdateOne) ClearPassword() *VacUserUpdateOne {
vuuo.mutation.ClearPassword()
return vuuo
} | [
0.09911961108446121,
0.549554169178009,
0.228857159614563,
2.0053443908691406,
-0.23057027161121368,
0.6523706316947937,
0.14530612528324127,
0.5493293404579163,
0.6385639309883118,
0.6917351484298706,
0.32468652725219727,
0.6836563348770142,
-0.27266010642051697,
-0.5088738799095154,
-1... |
func (vuuo *VacUserUpdateOne) SetToken(s string) *VacUserUpdateOne {
vuuo.mutation.SetToken(s)
return vuuo
} | [
-0.08971332013607025,
0.49361175298690796,
-0.02928565815091133,
1.8101283311843872,
-0.2601687014102936,
0.3365395963191986,
0.7657790184020996,
1.7283658981323242,
0.3852338492870331,
-0.8499627113342285,
-0.9429798722267151,
0.6949121356010437,
0.6400715112686157,
-0.3032825291156769,
... |
func (vuuo *VacUserUpdateOne) SetNillableToken(s *string) *VacUserUpdateOne {
if s != nil {
vuuo.SetToken(*s)
}
return vuuo
} | [
0.41491156816482544,
0.29578110575675964,
0.01680448092520237,
0.4764777421951294,
-0.7964960336685181,
0.3355977237224579,
-0.07738939672708511,
1.2770661115646362,
-0.1844353824853897,
-0.3729686737060547,
-0.8945305347442627,
0.4539901316165924,
-0.15725980699062347,
0.0423557423055172,... |
func (vuuo *VacUserUpdateOne) ClearToken() *VacUserUpdateOne {
vuuo.mutation.ClearToken()
return vuuo
} | [
0.1138186976313591,
0.4821317791938782,
0.13364127278327942,
1.2400999069213867,
-0.45068031549453735,
0.5717379450798035,
0.09312554448843002,
1.2842756509780884,
0.4583188593387604,
-0.2576455771923065,
-0.16803084313869476,
1.2073997259140015,
0.32100531458854675,
-0.8957956433296204,
... |
func (vuuo *VacUserUpdateOne) SetWatcherEnabled(b bool) *VacUserUpdateOne {
vuuo.mutation.SetWatcherEnabled(b)
return vuuo
} | [
0.3535393178462982,
0.5449081063270569,
0.28733962774276733,
1.0043412446975708,
0.26083022356033325,
0.5524545311927795,
0.5841898322105408,
1.135467767715454,
-0.6172115802764893,
-0.17714868485927582,
-0.9054486155509949,
0.2787850797176361,
-1.1536664962768555,
0.17794208228588104,
-... |
func (vuuo *VacUserUpdateOne) SetNillableWatcherEnabled(b *bool) *VacUserUpdateOne {
if b != nil {
vuuo.SetWatcherEnabled(*b)
}
return vuuo
} | [
0.9317518472671509,
0.46627891063690186,
0.2404678761959076,
0.5962710380554199,
-0.192109614610672,
0.36166754364967346,
-0.126450315117836,
0.3912421464920044,
-0.5367745161056519,
-0.20114745199680328,
-0.5033936500549316,
-0.0803123265504837,
-1.6210767030715942,
0.645854115486145,
-... |
func (vuuo *VacUserUpdateOne) ClearWatcherEnabled() *VacUserUpdateOne {
vuuo.mutation.ClearWatcherEnabled()
return vuuo
} | [
0.880736231803894,
0.2824159264564514,
0.04893268272280693,
1.3225743770599365,
-1.0880392789840698,
0.33107292652130127,
-0.2517721652984619,
0.1989443302154541,
-0.7104856371879578,
0.7058965563774109,
0.057763420045375824,
0.8533502221107483,
-0.8869081139564514,
0.16086463630199432,
... |
func (vuuo *VacUserUpdateOne) SetReserveConfig(sc *schema.ReserveConfig) *VacUserUpdateOne {
vuuo.mutation.SetReserveConfig(sc)
return vuuo
} | [
-0.23007984459400177,
0.5853475332260132,
0.013526737689971924,
0.4523487389087677,
0.16301803290843964,
-0.05472051724791527,
-0.18156689405441284,
1.1839359998703003,
-0.01837281882762909,
0.7117170095443726,
-1.1688708066940308,
-0.39899924397468567,
-0.392179399728775,
0.20448102056980... |
func (vuuo *VacUserUpdateOne) ClearReserveConfig() *VacUserUpdateOne {
vuuo.mutation.ClearReserveConfig()
return vuuo
} | [
-0.05352076143026352,
0.7228298187255859,
-0.0006384899606928229,
0.38702794909477234,
-0.29805976152420044,
0.0733942985534668,
-0.16222012042999268,
0.7307586073875427,
-0.2431407868862152,
0.9799768328666687,
-0.5904233455657959,
0.2747654616832733,
-0.6195369958877563,
-0.3872231841087... |
func (vuuo *VacUserUpdateOne) SetReserveEnabled(b bool) *VacUserUpdateOne {
vuuo.mutation.SetReserveEnabled(b)
return vuuo
} | [
0.06986868381500244,
0.44391509890556335,
0.16728614270687103,
0.9808197021484375,
0.013120784424245358,
0.18372312188148499,
0.061151325702667236,
1.298431634902954,
-0.10078588873147964,
0.3344160318374634,
-1.4320766925811768,
-0.12122993171215057,
-1.4323406219482422,
0.118241824209690... |
func (vuuo *VacUserUpdateOne) SetNillableReserveEnabled(b *bool) *VacUserUpdateOne {
if b != nil {
vuuo.SetReserveEnabled(*b)
}
return vuuo
} | [
0.3200722932815552,
0.4867384731769562,
0.12895266711711884,
0.11109548062086105,
-0.1939622461795807,
-0.06357432156801224,
-0.4604751467704773,
0.5911913514137268,
0.4145573377609253,
-0.45362037420272827,
-0.72736656665802,
-0.4451746940612793,
-1.533581018447876,
0.2587841749191284,
... |
func (vuuo *VacUserUpdateOne) ClearReserveEnabled() *VacUserUpdateOne {
vuuo.mutation.ClearReserveEnabled()
return vuuo
} | [
0.3927256762981415,
0.3961400091648102,
-0.12699158489704132,
0.8697924613952637,
-0.8508641123771667,
-0.0405157096683979,
-0.5906570553779602,
0.6145974397659302,
0.003468938637524843,
0.9480796456336975,
-0.8063136339187622,
0.5550497174263,
-1.3550063371658325,
-0.1400122493505478,
0... |
func (vuuo *VacUserUpdateOne) SetReservations(tl *tokyovacapi.ReservationList) *VacUserUpdateOne {
vuuo.mutation.SetReservations(tl)
return vuuo
} | [
-1.0903677940368652,
0.9145365357398987,
0.15336354076862335,
1.142014503479004,
0.2309350073337555,
0.17227131128311157,
0.08631609380245209,
0.12425857782363892,
0.06698354333639145,
0.3572971224784851,
-1.0913413763046265,
-0.9425152540206909,
-0.22503238916397095,
0.031894709914922714,... |
func (vuuo *VacUserUpdateOne) ClearReservations() *VacUserUpdateOne {
vuuo.mutation.ClearReservations()
return vuuo
} | [
-0.7517760396003723,
1.121233582496643,
-0.06973646581172943,
0.8794760704040527,
-0.6401307582855225,
0.2863753139972687,
-0.16444924473762512,
-0.3621556758880615,
0.11156143248081207,
0.8938342332839966,
0.8487323522567749,
0.5111361742019653,
-0.6696969866752625,
-0.8924907445907593,
... |
func (vuuo *VacUserUpdateOne) Mutation() *VacUserMutation {
return vuuo.mutation
} | [
-0.10882249474525452,
0.16539186239242554,
0.0567634142935276,
1.3476016521453857,
-0.08627156168222427,
0.12879115343093872,
0.5943458676338196,
0.5052887201309204,
0.7841733694076538,
0.18789508938789368,
0.3046419322490692,
-0.11607725918292999,
-0.5289323925971985,
-0.8522118926048279,... |
func (vuuo *VacUserUpdateOne) Select(field string, fields ...string) *VacUserUpdateOne {
vuuo.fields = append([]string{field}, fields...)
return vuuo
} | [
-0.25078916549682617,
0.7321163415908813,
0.192533940076828,
-0.0029642924200743437,
0.18164914846420288,
0.29384204745292664,
-0.4741268455982208,
0.2605137228965759,
0.025162706151604652,
-0.1257689893245697,
-0.8036527037620544,
0.43002843856811523,
-0.8209890723228455,
-1.1826385259628... |
func (vuuo *VacUserUpdateOne) Save(ctx context.Context) (*VacUser, error) {
var (
err error
node *VacUser
)
vuuo.defaults()
if len(vuuo.hooks) == 0 {
node, err = vuuo.sqlSave(ctx)
} else {
var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) {
mutation, ok := m.(*VacUserMut... | [
-0.5060498118400574,
0.7235772609710693,
0.4499577283859253,
0.4656170606613159,
0.08793892711400986,
-0.591086208820343,
0.4539404809474945,
-0.13531732559204102,
-0.5600892901420593,
0.8011923432350159,
-0.13245455920696259,
-0.04652240872383118,
-0.6493708491325378,
-0.4094628393650055,... |
func (vuuo *VacUserUpdateOne) SaveX(ctx context.Context) *VacUser {
node, err := vuuo.Save(ctx)
if err != nil {
panic(err)
}
return node
} | [
-0.45288941264152527,
1.2839789390563965,
0.3763378858566284,
0.7601513266563416,
-0.7325097918510437,
0.6404372453689575,
-0.9876474738121033,
0.536110520362854,
1.0419275760650635,
0.5674670338630676,
-0.8443042039871216,
0.21545566618442535,
-0.8192680478096008,
-0.6918042898178101,
-... |
func (vuuo *VacUserUpdateOne) Exec(ctx context.Context) error {
_, err := vuuo.Save(ctx)
return err
} | [
0.24057751893997192,
0.7410439848899841,
0.5679962635040283,
1.04853093624115,
0.4385348856449127,
0.9265766143798828,
-0.44477391242980957,
0.5093936920166016,
-0.0483371838927269,
0.7311646938323975,
-0.13555693626403809,
0.09874626994132996,
-0.6387828588485718,
-0.7724038362503052,
-... |
func (vuuo *VacUserUpdateOne) ExecX(ctx context.Context) {
if err := vuuo.Exec(ctx); err != nil {
panic(err)
}
} | [
0.6313892602920532,
1.1293617486953735,
0.5740954875946045,
1.1225639581680298,
-0.13536220788955688,
1.072427749633789,
-0.897826611995697,
0.5855166912078857,
0.3132488429546356,
0.4615432918071747,
0.1431131511926651,
0.9444478154182434,
-0.042104821652173996,
-0.40721383690834045,
0.... |
func (vuuo *VacUserUpdateOne) defaults() {
if _, ok := vuuo.mutation.UpdatedAt(); !ok {
v := vacuser.UpdateDefaultUpdatedAt()
vuuo.mutation.SetUpdatedAt(v)
}
} | [
-0.5247202515602112,
0.7714637517929077,
0.25476861000061035,
0.7542604804039001,
0.40444985032081604,
0.032157570123672485,
-0.7841717004776001,
-0.05747605487704277,
0.011073851026594639,
-0.33943772315979004,
-0.23498520255088806,
-0.11903700232505798,
0.04477301985025406,
-0.6580945253... |
func NewAdminCommand(buf []byte) *AdminCommand {
if buf == nil {
buf = make([]byte, 10*1024)
}
return &AdminCommand{
dataBuffer: buf,
dataOffset: 8,
}
} | [
0.5445059537887573,
0.05192098021507263,
0.19707836210727692,
-0.6817476749420166,
-0.029633931815624237,
-0.3170999586582184,
-0.37964358925819397,
-0.6695337891578674,
1.17798912525177,
-0.6447580456733704,
-1.3392839431762695,
1.2569218873977661,
-0.9077821373939514,
1.1282414197921753,... |
func (acmd *AdminCommand) QueryUser(conn *Connection, policy *AdminPolicy, user string) (*UserRoles, Error) {
acmd.writeHeader(_QUERY_USERS, 1)
acmd.writeFieldStr(_USER, user)
list, err := acmd.readUsers(conn, policy)
if err != nil {
return nil, err
}
if len(list) > 0 {
return list[0], nil
}
return nil, n... | [
-0.4377918243408203,
0.44897836446762085,
0.4991532564163208,
0.08514169603586197,
-0.11245892941951752,
-0.14215165376663208,
-0.0620451420545578,
-0.873504638671875,
0.258522093296051,
-0.2996045649051666,
0.12458670139312744,
0.3412564694881439,
-1.2258610725402832,
-0.03675455972552299... |
func (acmd *AdminCommand) QueryUsers(conn *Connection, policy *AdminPolicy) ([]*UserRoles, Error) {
acmd.writeHeader(_QUERY_USERS, 0)
list, err := acmd.readUsers(conn, policy)
if err != nil {
return nil, err
}
return list, nil
} | [
-0.5415347218513489,
0.41519832611083984,
0.20049351453781128,
-0.252737820148468,
-0.12994903326034546,
0.3128582239151001,
-0.7869173288345337,
-0.5420954823493958,
0.23845496773719788,
0.21372778713703156,
0.5812187790870667,
0.8388968706130981,
-1.4348498582839966,
-0.13923993706703186... |
func (acmd *AdminCommand) QueryRole(conn *Connection, policy *AdminPolicy, roleName string) (*Role, Error) {
acmd.writeHeader(_QUERY_ROLES, 1)
acmd.writeFieldStr(_ROLE, roleName)
list, err := acmd.readRoles(conn, policy)
if err != nil {
return nil, err
}
if len(list) > 0 {
return list[0], nil
}
return nil... | [
-0.3315674364566803,
0.470253050327301,
0.37745192646980286,
-0.46298542618751526,
0.49199360609054565,
-0.3313648998737335,
-0.5587550401687622,
-0.8040938377380371,
0.04722210019826889,
0.16310767829418182,
0.8339537382125854,
0.1334647834300995,
-1.6106024980545044,
-0.13227097690105438... |
func (acmd *AdminCommand) QueryRoles(conn *Connection, policy *AdminPolicy) ([]*Role, Error) {
acmd.writeHeader(_QUERY_ROLES, 0)
list, err := acmd.readRoles(conn, policy)
if err != nil {
return nil, err
}
return list, nil
} | [
-0.5061002373695374,
0.66607266664505,
0.12493137270212173,
-0.5576257705688477,
0.3039242625236511,
0.22504130005836487,
-1.2496472597122192,
-0.7356298565864563,
0.47500526905059814,
0.18978899717330933,
0.5825417637825012,
0.515124499797821,
-1.676650881767273,
-0.01852223463356495,
0... |
func Range(min, max int) []Triplet {
return make([]Triplet, 0)
} | [
-0.37604188919067383,
0.09478608518838882,
0.4891517460346222,
0.6003034114837646,
0.31934547424316406,
0.6531896591186523,
-1.2008318901062012,
-0.0556456632912159,
0.20194482803344727,
0.23142746090888977,
-1.0280715227127075,
0.10709855705499649,
0.4985596239566803,
-1.0103024244308472,... |
func Sum(p int) []Triplet {
return make([]Triplet, 0)
} | [
-0.9202833771705627,
0.4422939717769623,
0.39307817816734314,
-0.267141193151474,
0.4591958522796631,
1.013528823852539,
0.15212006866931915,
-0.027672016993165016,
0.78857421875,
0.6807544231414795,
-1.5474001169204712,
0.1968570053577423,
-0.3543815612792969,
-0.8695418238639832,
-0.48... |
func (rr *RateReply) TotalCost() (Charge, error) {
rateDetail, err := rr.firstRatedShipmentDetails()
if err != nil {
return Charge{}, fmt.Errorf("first rated shipment details: %s", err)
}
return rateDetail.TotalNetChargeWithDutiesAndTaxes, nil
} | [
1.0308074951171875,
0.4914768636226654,
0.4540800452232361,
-1.4133764505386353,
0.7780917882919312,
-0.17794959247112274,
0.11689617484807968,
-0.5917298197746277,
0.5938303470611572,
-0.07600244134664536,
-0.02538890391588211,
-0.033888813108205795,
-1.0298304557800293,
-0.33358493447303... |
func (vertice *Vertice) Marshall(file *os.File, nbIndentation int) error {
fmt.Fprintf(file, "¨.Vertice{\n")
indent(file, nbIndentation)
fmt.Fprintf(file, "\tX: %f,\n", vertice.X)
indent(file, nbIndentation)
fmt.Fprintf(file, "\tY: %f,\n", vertice.Y)
indent(file, nbIndentation)
fmt.Fprintf(file, "},\n")
ret... | [
0.6912969350814819,
-0.47238174080848694,
0.6565331220626831,
0.08442841470241547,
0.2793982923030853,
1.2903200387954712,
0.26241010427474976,
0.6724244356155396,
-0.33401763439178467,
0.22393344342708588,
-0.07557319849729538,
1.2690261602401733,
0.10470973700284958,
-0.02515206485986709... |
func (vertice *Vertice) Unmarshall(expr ast.Expr, fset *token.FileSet) {
if ue, ok := expr.(*ast.UnaryExpr); !ok {
log.Panic("Expecting an unary expression " +
fset.Position(expr.Pos()).String())
} else {
vertice.Name = fmt.Sprintf("Vertice-%04d", verticeLastID)
verticeLastID++
// expression should be a... | [
0.5586981773376465,
-0.025614747777581215,
0.6305022239685059,
-0.32269906997680664,
-0.3079749643802643,
-0.1605309695005417,
-0.10571929067373276,
1.1301039457321167,
0.15367776155471802,
0.6277990341186523,
-0.3710551857948303,
0.33228811621665955,
-0.10355901718139648,
-0.2372590750455... |
func (vertice *Vertice) SerializeToAllModelStore() {
AllModelStore.Vertices = append(AllModelStore.Vertices, vertice)
} | [
0.1530134230852127,
-0.21105340123176575,
0.19171078503131866,
0.5229309797286987,
0.24180081486701965,
0.2632560431957245,
-0.165675088763237,
0.2494048774242401,
0.9572396874427795,
0.39874178171157837,
-1.4682179689407349,
0.19434764981269836,
-0.43239203095436096,
0.2865257263183594,
... |
func ListenAndServe(serverSource string) error {
lis, err := net.Listen("tcp", serverSource)
if err != nil {
return fmt.Errorf("failed to listen: %v", err)
}
var s *grpc.Server
if env == "prod" {
// Create the TLS credentials
cred, err := credentials.NewServerTLSFromFile(crt, key)
if err != nil {
retur... | [
0.008403382264077663,
-0.10272859036922455,
0.4245361387729645,
-0.38899287581443787,
0.6843023300170898,
0.4234254062175751,
-0.29592594504356384,
0.7920920252799988,
-0.4504237771034241,
0.600779116153717,
-0.7171285152435303,
0.8984949588775635,
-0.8605011701583862,
0.4763356149196625,
... |
func (et EventerType) String() string {
switch et {
case LogFile:
return "file"
case Journald:
return "journald"
case Memory:
return "memory"
case Null:
return "none"
default:
return "invalid"
}
} | [
0.3716248869895935,
-1.438873052597046,
0.11234889924526215,
-0.8491968512535095,
-0.17006517946720123,
0.23245133459568024,
-0.2508353590965271,
-0.615325391292572,
-0.43294697999954224,
0.2317059189081192,
0.3820519745349884,
0.3269452452659607,
-0.09489694982767105,
0.10845329612493515,... |
func IsValidEventer(eventer string) bool {
switch eventer {
case LogFile.String():
return true
case Journald.String():
return true
case Memory.String():
return true
case Null.String():
return true
default:
return false
}
} | [
0.11469807475805283,
-1.2781922817230225,
0.5778535604476929,
0.02031712792813778,
-1.283482313156128,
0.42414575815200806,
-0.5469778776168823,
-0.01718033477663994,
0.9658819437026978,
-0.9682565927505493,
0.20070818066596985,
0.28124213218688965,
-0.5626308917999268,
1.1989152431488037,... |
func NewEvent(status Status) Event {
return Event{
Status: status,
Time: time.Now(),
}
} | [
0.6698561906814575,
-0.6980322599411011,
0.1210125982761383,
0.4095396399497986,
-0.8277841806411743,
0.48617222905158997,
-0.8424404263496399,
0.8500991463661194,
0.332465797662735,
0.1461174339056015,
-0.3997344374656677,
0.6973472833633423,
1.2396001815795898,
0.2141575664281845,
0.43... |
func (e *Event) Recycle(path string, remove bool) error {
return errors.New("not implemented")
} | [
0.12685729563236237,
-0.006884863134473562,
0.653974711894989,
0.6127669811248779,
-0.40809401869773865,
0.33154940605163574,
0.5864210724830627,
0.3843901753425598,
-0.15379011631011963,
0.7160905003547668,
0.1683691442012787,
-0.0633292868733406,
0.09093373268842697,
0.16877640783786774,... |
func (e *Event) ToJSONString() (string, error) {
b, err := json.Marshal(e)
return string(b), err
} | [
-0.4739149212837219,
-0.3432295620441437,
0.9254665374755859,
-0.11834490299224854,
-0.6359646320343018,
-0.011415417306125164,
0.20285576581954956,
-0.26451390981674194,
0.6788643598556519,
0.8042343854904175,
-0.3603529632091522,
0.2830178141593933,
0.35210520029067993,
-0.38520041108131... |
func (e *Event) ToHumanReadable(truncate bool) string {
var humanFormat string
id := e.ID
if truncate {
id = stringid.TruncateID(id)
}
switch e.Type {
case Container, Pod:
humanFormat = fmt.Sprintf("%s %s %s %s (image=%s, name=%s", e.Time, e.Type, e.Status, id, e.Image, e.Name)
if e.PodID != "" {
humanFo... | [
0.6783583760261536,
-1.2801905870437622,
1.1894172430038452,
-1.2803888320922852,
0.028327660635113716,
0.11948493123054504,
-0.6053431034088135,
-0.22585663199424744,
-0.4494493305683136,
0.7113085985183716,
0.14754754304885864,
0.26108860969543457,
0.33170971274375916,
0.5956194996833801... |
func newEventFromJSONString(event string) (*Event, error) {
e := new(Event)
if err := json.Unmarshal([]byte(event), e); err != nil {
return nil, err
}
return e, nil
} | [
0.4292581379413605,
-0.8388486504554749,
-0.06650209426879883,
-0.0676647499203682,
-0.9614551663398743,
-0.039870817214250565,
-0.34031593799591064,
-0.5437954068183899,
0.3882381021976471,
0.19655142724514008,
-0.4015709459781647,
0.46461549401283264,
0.007030265871435404,
-0.90579414367... |
func (t Type) String() string {
return string(t)
} | [
-0.05532753840088844,
-1.1756335496902466,
-0.33590438961982727,
-0.5217957496643066,
0.15735140442848206,
0.9982448816299438,
0.8081376552581787,
-1.8641777038574219,
-0.36483991146087646,
0.29171130061149597,
-0.5397547483444214,
0.45817723870277405,
-0.08255869150161743,
-0.164337143301... |
func (s Status) String() string {
return string(s)
} | [
0.6250365376472473,
-1.7562133073806763,
-0.4295699894428253,
-0.20054161548614502,
-1.1706045866012573,
1.0166199207305908,
0.07973934710025787,
-0.5528901815414429,
0.5101669430732727,
-0.5026516318321228,
-0.5299110412597656,
0.6156905889511108,
0.5175243616104126,
-0.560265839099884,
... |
func StringToType(name string) (Type, error) {
switch name {
case Container.String():
return Container, nil
case Image.String():
return Image, nil
case Machine.String():
return Machine, nil
case Network.String():
return Network, nil
case Pod.String():
return Pod, nil
case System.String():
return Syst... | [
0.31135132908821106,
-0.9086238741874695,
0.518619954586029,
-0.4210676848888397,
-0.053558945655822754,
-1.0001215934753418,
-0.3132682740688324,
-1.07256281375885,
0.6943091154098511,
0.8554201126098633,
-0.643740713596344,
0.7477052211761475,
-0.39895808696746826,
-0.1842692643404007,
... |
func StringToStatus(name string) (Status, error) {
switch name {
case Attach.String():
return Attach, nil
case AutoUpdate.String():
return AutoUpdate, nil
case Build.String():
return Build, nil
case Checkpoint.String():
return Checkpoint, nil
case Cleanup.String():
return Cleanup, nil
case Commit.Strin... | [
0.2465112805366516,
-1.6899443864822388,
0.43632155656814575,
-0.48360875248908997,
-0.36643823981285095,
-0.6573310494422913,
-0.20909559726715088,
-1.1237956285476685,
0.557036817073822,
0.1312262862920761,
-0.600688099861145,
0.5030278563499451,
-0.41226279735565186,
0.02253744192421436... |
func NewTicket(sec string, row string) *Ticket {
return &Ticket{
Section: sec,
Row: row,
}
} | [
1.0776894092559814,
-0.2991794943809509,
0.1755698323249817,
0.12955914437770844,
-1.09734308719635,
0.06120288744568825,
-0.40676575899124146,
-1.06263267993927,
-0.7385920286178589,
-0.6547127962112427,
0.5152577757835388,
0.700274646282196,
0.19236011803150177,
-0.6759339570999146,
0.... |
func (t *Ticket) Normalize() (string, string) {
words := t.Words()
words = t.Expand(words)
words = t.Capitalize(words)
words = t.Exchange(words)
words = t.Eliminate(words)
section := strings.Join(append(words, t.Number()), " ")
return t.Complete(section), t.capitalize(t.Row)
} | [
-0.2133050560951233,
0.1932794153690338,
0.7938355803489685,
-0.822461724281311,
-0.6705428957939148,
-0.7719189524650574,
-0.3807581663131714,
0.4556020498275757,
-0.2909015715122223,
0.8103436827659607,
0.03235595300793648,
-0.6688829660415649,
-0.3743191361427307,
-0.09608539938926697,
... |
func (t *Ticket) Words() []string {
re := regexp.MustCompile("[^a-zA-Z ]")
phrase := re.ReplaceAllString(t.Section, " ")
words := strings.Split(phrase, " ")
for i := len(words) - 1; i >= 0; i-- {
if words[i] == "" {
words = append(words[:i], words[i+1:]...)
}
}
return words
} | [
-0.5713277459144592,
-0.21184690296649933,
0.49135127663612366,
-1.2786362171173096,
0.1586826592683792,
0.2000824511051178,
-0.24602337181568146,
0.574242115020752,
0.002232279861345887,
1.0562790632247925,
-0.29025736451148987,
-0.09347660094499588,
-0.7559010982513428,
0.821539819240570... |
func (t *Ticket) Number() string {
re := regexp.MustCompile("[^0-9]")
return re.ReplaceAllString(t.Section, "")
} | [
-0.31737157702445984,
-0.3337491452693939,
0.6665264964103699,
-0.009102746844291687,
0.4920935034751892,
0.15256217122077942,
-0.2022627592086792,
0.9028157591819763,
-0.40464967489242554,
-0.47856396436691284,
-0.32403767108917236,
-0.7951884269714355,
0.12791162729263306,
-0.02283919416... |
func (t *Ticket) Expand(words []string) []string {
results := []string{}
for _, word := range words {
switch word {
case "BL":
results = append(results, "Baseline")
results = append(results, "Club")
case "FD":
results = append(results, "Field")
results = append(results, "Box")
case "TD":
result... | [
-0.4705835282802582,
0.5669583082199097,
1.0216172933578491,
-0.9258943200111389,
-0.5955168008804321,
-0.03606737032532692,
-0.4989646077156067,
0.40935060381889343,
0.0031272771302610636,
0.9126567244529724,
-0.056885670870542526,
-0.19934576749801636,
-0.4330630600452423,
0.085152089595... |
func (t *Ticket) Capitalize(words []string) []string {
for idx, word := range words {
words[idx] = t.capitalize(word)
}
return words
} | [
-0.16464588046073914,
-0.25768667459487915,
0.46132999658584595,
-0.05491175502538681,
0.6105659604072571,
-0.31829833984375,
-1.0542892217636108,
0.2614041268825531,
-0.09358781576156616,
1.4930217266082764,
0.35923153162002563,
0.20993083715438843,
-1.005808711051941,
0.8764099478721619,... |
func (t *Ticket) Exchange(words []string) []string {
for idx, word := range words {
switch word {
case "Infield":
words[idx] = "Field"
}
}
return words
} | [
-0.6754531860351562,
0.21412742137908936,
0.4920734465122223,
-0.713985025882721,
0.3648921549320221,
0.3272532820701599,
-0.4853890538215637,
0.78404700756073,
0.5250380635261536,
1.3675987720489502,
0.05055903270840645,
0.6962540149688721,
-0.8208540081977844,
0.24064435064792633,
0.32... |
func (t *Ticket) Eliminate(words []string) []string {
results := []string{}
for _, word := range words {
switch word {
case "Reserve":
results = append(results, word)
case "Field":
results = append(results, word)
case "Box":
results = append(results, word)
case "Top":
results = append(results, w... | [
-0.7480710744857788,
0.0742742046713829,
0.9186350107192993,
-0.49857857823371887,
0.1318415403366089,
-0.4149891436100006,
-0.31632623076438904,
0.21962229907512665,
-0.5894529819488525,
1.5814907550811768,
-0.5566590428352356,
-0.3167921304702759,
-1.0417968034744263,
0.40410080552101135... |
func (t *Ticket) Complete(phrase string) string {
if strings.Contains(phrase, "Loge") && !strings.Contains(phrase, "Loge Box") {
phrase = strings.Replace(phrase, "Loge", "Loge Box", 1)
}
if strings.Contains(phrase, "Field") && !strings.Contains(phrase, "Field Box") {
phrase = strings.Replace(phrase, "Field", "F... | [
-0.0488448366522789,
-0.1878635585308075,
1.0230149030685425,
-0.8626205325126648,
-0.3624408543109894,
0.05241914838552475,
0.1543312519788742,
0.13537538051605225,
0.26488515734672546,
1.238783359527588,
-0.003255262738093734,
-0.6368362903594971,
-0.1085982546210289,
-0.0497293621301651... |
func SvcExportGLAccounts(w http.ResponseWriter, r *http.Request, d *ServiceData) {
const funcname = "SvcExportGLAccounts"
var (
err error
buf = bytes.Buffer{}
wr = csv.NewWriter(&buf)
)
fmt.Printf("Entered %s", funcname)
// Need to init some internals for Business
var xbiz rlib.XBusiness
err = rlib.InitB... | [
0.23638202250003815,
0.19867384433746338,
0.9507054090499878,
0.7102330327033997,
-0.4119466543197632,
0.22063200175762177,
1.0395376682281494,
-0.7316164374351501,
0.25665879249572754,
0.1504235565662384,
0.3291293680667877,
0.9291269183158875,
-0.2672043740749359,
0.5811249613761902,
0... |
func SvcImportGLAccounts(w http.ResponseWriter, r *http.Request, d *ServiceData) {
const funcname = "SvcImportGLAccounts"
var (
err error
inf multipart.File
recs [][]string
)
// rlib.Console("Entered %s\n", funcname)
// Need to init some internals for Business
var xbiz rlib.XBusiness
err = rlib.InitBizI... | [
0.032563257962465286,
-0.12421640753746033,
1.354268193244934,
0.5787127614021301,
-0.39454349875450134,
0.6474290490150452,
1.3099133968353271,
-0.5881445407867432,
-0.542942225933075,
0.6980477571487427,
0.2054814249277115,
0.44586965441703796,
-0.9558539390563965,
0.26174700260162354,
... |
func (_m *AuthorController) Delete(c *fiber.Ctx) error {
ret := _m.Called(c)
var r0 error
if rf, ok := ret.Get(0).(func(*fiber.Ctx) error); ok {
r0 = rf(c)
} else {
r0 = ret.Error(0)
}
return r0
} | [
0.7206391096115112,
0.08242970705032349,
0.4864702820777893,
0.36327770352363586,
0.8429467678070068,
0.003962731920182705,
0.9431778788566589,
0.7506950497627258,
0.17296361923217773,
-0.09283455461263657,
0.2186034768819809,
-0.23327799141407013,
-0.79287189245224,
0.4199657440185547,
... |
func (_m *AuthorController) Fetch(c *fiber.Ctx) error {
ret := _m.Called(c)
var r0 error
if rf, ok := ret.Get(0).(func(*fiber.Ctx) error); ok {
r0 = rf(c)
} else {
r0 = ret.Error(0)
}
return r0
} | [
0.7190350890159607,
-0.3437153995037079,
0.3940259516239166,
-0.3084552586078644,
0.31243810057640076,
0.22171960771083832,
0.16233722865581512,
0.2929055988788605,
-0.0992480218410492,
-0.08450160175561905,
-0.040102116763591766,
0.2069043219089508,
0.09337176382541656,
0.8368062376976013... |
func (_m *AuthorController) GetByID(c *fiber.Ctx) error {
ret := _m.Called(c)
var r0 error
if rf, ok := ret.Get(0).(func(*fiber.Ctx) error); ok {
r0 = rf(c)
} else {
r0 = ret.Error(0)
}
return r0
} | [
0.8846875429153442,
-0.17027023434638977,
0.40253984928131104,
-0.04774842783808708,
0.6276520490646362,
-0.2594310939311981,
1.059852123260498,
-0.025990242138504982,
-0.09765131026506424,
-0.1021505668759346,
-0.5720725059509277,
0.6197490692138672,
-0.4753952920436859,
0.552927911281585... |
func (_m *AuthorController) Store(c *fiber.Ctx) error {
ret := _m.Called(c)
var r0 error
if rf, ok := ret.Get(0).(func(*fiber.Ctx) error); ok {
r0 = rf(c)
} else {
r0 = ret.Error(0)
}
return r0
} | [
0.2566324770450592,
0.03344151750206947,
0.14402064681053162,
-0.024286096915602684,
0.5873569250106812,
0.2466413527727127,
1.225041389465332,
0.18563053011894226,
0.2630198299884796,
-0.5834067463874817,
-0.44581037759780884,
0.04098771512508392,
-0.5256466269493103,
0.5492652058601379,
... |
func (_m *AuthorController) Update(c *fiber.Ctx) error {
ret := _m.Called(c)
var r0 error
if rf, ok := ret.Get(0).(func(*fiber.Ctx) error); ok {
r0 = rf(c)
} else {
r0 = ret.Error(0)
}
return r0
} | [
0.13698871433734894,
-0.4964803457260132,
0.3616911470890045,
-0.20366455614566803,
0.3958721160888672,
-0.1343689113855362,
0.629384458065033,
0.4071425199508667,
-0.24218440055847168,
0.14149929583072662,
0.1874881237745285,
-0.4489964544773102,
-0.5584514737129211,
0.29473966360092163,
... |
func NewOntapStorageVirtualMachine(ctx *pulumi.Context,
name string, args *OntapStorageVirtualMachineArgs, opts ...pulumi.ResourceOption) (*OntapStorageVirtualMachine, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.FileSystemId == nil {
return nil, errors.N... | [
-0.1696532517671585,
-0.3472060561180115,
0.40333178639411926,
0.04632313922047615,
0.1634647101163864,
0.05464322492480278,
-1.201821208000183,
-0.2226264923810959,
0.33438315987586975,
0.15162548422813416,
0.19489100575447083,
-0.11151888221502304,
0.4916117489337921,
-0.1216559708118438... |
func GetOntapStorageVirtualMachine(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *OntapStorageVirtualMachineState, opts ...pulumi.ResourceOption) (*OntapStorageVirtualMachine, error) {
var resource OntapStorageVirtualMachine
err := ctx.ReadResource("aws:fsx/ontapStorageVirtualMachine:OntapStorageVirtual... | [
-0.0740731805562973,
-0.886322021484375,
0.37141191959381104,
-0.20480333268642426,
0.21685078740119934,
-0.032750409096479416,
-1.3446754217147827,
-0.6382830739021301,
0.9683753848075867,
-0.020959753543138504,
0.5525062084197998,
0.5507309436798096,
0.5337378978729248,
-1.15267241001129... |
func (o OntapStorageVirtualMachineOutput) ActiveDirectoryConfiguration() OntapStorageVirtualMachineActiveDirectoryConfigurationPtrOutput {
return o.ApplyT(func(v *OntapStorageVirtualMachine) OntapStorageVirtualMachineActiveDirectoryConfigurationPtrOutput {
return v.ActiveDirectoryConfiguration
}).(OntapStorageVirtu... | [
0.12024856358766556,
-1.7857065200805664,
0.4910319149494171,
0.03364007920026779,
-0.16636908054351807,
-0.6658482551574707,
0.43819358944892883,
0.21430693566799164,
0.8564112186431885,
0.04297235235571861,
0.20526400208473206,
0.11569355428218842,
0.5377150177955627,
-0.8153015971183777... |
func (o OntapStorageVirtualMachineOutput) Arn() pulumi.StringOutput {
return o.ApplyT(func(v *OntapStorageVirtualMachine) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput)
} | [
0.05836338922381401,
-1.4401682615280151,
0.3160870671272278,
0.7294366955757141,
0.34304696321487427,
0.24916225671768188,
-0.49064427614212036,
0.9145045280456543,
0.4442843496799469,
-0.12531907856464386,
0.15245161950588226,
0.7032147645950317,
1.2876559495925903,
-0.9860560297966003,
... |
func (o OntapStorageVirtualMachineOutput) Endpoints() OntapStorageVirtualMachineEndpointArrayOutput {
return o.ApplyT(func(v *OntapStorageVirtualMachine) OntapStorageVirtualMachineEndpointArrayOutput { return v.Endpoints }).(OntapStorageVirtualMachineEndpointArrayOutput)
} | [
-0.06882629543542862,
-0.9265145659446716,
0.5357434153556824,
0.9168344736099243,
0.654623806476593,
0.02430197410285473,
-0.6888903379440308,
0.025548234581947327,
0.5737099647521973,
0.677963376045227,
-0.20820225775241852,
-0.07801420241594315,
0.35131946206092834,
-0.5856812596321106,... |
func (o OntapStorageVirtualMachineOutput) FileSystemId() pulumi.StringOutput {
return o.ApplyT(func(v *OntapStorageVirtualMachine) pulumi.StringOutput { return v.FileSystemId }).(pulumi.StringOutput)
} | [
0.5064210295677185,
-0.7762286067008972,
0.24784663319587708,
0.4534018337726593,
0.36246174573898315,
0.2925891578197479,
-0.6326888203620911,
-0.2486243098974228,
0.6981238126754761,
-0.8174780607223511,
0.33423471450805664,
-0.13362069427967072,
0.5093435645103455,
-0.42049747705459595,... |
func (o OntapStorageVirtualMachineOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *OntapStorageVirtualMachine) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
} | [
0.09502600878477097,
-1.348618745803833,
0.330786794424057,
0.18017977476119995,
0.10518427938222885,
0.7329340577125549,
-0.8559264540672302,
-0.1926565170288086,
0.2875485122203827,
0.8410838842391968,
-0.07029107958078384,
0.08957809954881668,
1.013071060180664,
-0.6768795251846313,
0... |
func (o OntapStorageVirtualMachineOutput) RootVolumeSecurityStyle() pulumi.StringPtrOutput {
return o.ApplyT(func(v *OntapStorageVirtualMachine) pulumi.StringPtrOutput { return v.RootVolumeSecurityStyle }).(pulumi.StringPtrOutput)
} | [
1.518166422843933,
-1.2514067888259888,
0.31431645154953003,
1.105483889579773,
0.6391605734825134,
0.2278052121400833,
-1.021970510482788,
-0.04400274530053139,
0.7120753526687622,
-0.08202619105577469,
0.6099486947059631,
0.9906661510467529,
-0.10720300674438477,
-1.269342064857483,
0.... |
func (o OntapStorageVirtualMachineOutput) Subtype() pulumi.StringOutput {
return o.ApplyT(func(v *OntapStorageVirtualMachine) pulumi.StringOutput { return v.Subtype }).(pulumi.StringOutput)
} | [
1.1945017576217651,
-0.33566877245903015,
0.3467775881290436,
0.7144867777824402,
0.6172231435775757,
0.8531450629234314,
-0.593711793422699,
0.05110972747206688,
0.7871702313423157,
-0.14467421174049377,
-0.06548932194709778,
0.5530367493629456,
0.3516152501106262,
-1.1639494895935059,
... |
func (o OntapStorageVirtualMachineOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *OntapStorageVirtualMachine) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
} | [
0.5905284285545349,
-0.3274168372154236,
0.33996185660362244,
-0.0017240253509953618,
0.45827335119247437,
0.28790372610092163,
-1.0510185956954956,
0.21115311980247498,
-0.09753403812646866,
0.3047376275062561,
-0.7510201930999756,
-0.007049419451504946,
0.6471818685531616,
-0.27394291758... |
func (o OntapStorageVirtualMachineOutput) TagsAll() pulumi.StringMapOutput {
return o.ApplyT(func(v *OntapStorageVirtualMachine) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput)
} | [
1.1380386352539062,
-0.36628079414367676,
0.4380711317062378,
0.23353460431098938,
0.4537276029586792,
0.33685237169265747,
-1.3537713289260864,
0.02263225056231022,
0.05062404274940491,
0.21276861429214478,
-0.47366973757743835,
0.14310014247894287,
0.8446947932243347,
0.0684351846575737,... |
func (o OntapStorageVirtualMachineOutput) Uuid() pulumi.StringOutput {
return o.ApplyT(func(v *OntapStorageVirtualMachine) pulumi.StringOutput { return v.Uuid }).(pulumi.StringOutput)
} | [
0.4005155861377716,
-1.0995924472808838,
0.34593313932418823,
0.09719458222389221,
0.3721075654029846,
0.9408542513847351,
-0.10099035501480103,
0.8310990929603577,
0.693230390548706,
0.009211902506649494,
0.06354682147502899,
0.350013792514801,
0.673026978969574,
-1.3317121267318726,
-0... |
func genKey(code string, t time.Time) string {
return fmt.Sprintf("%s#%s", code, t.Format(time.RFC3339))
} | [
-0.2631903886795044,
0.7761220932006836,
0.5257141590118408,
-0.5723730325698853,
0.8869872093200684,
0.9880648851394653,
-1.1010783910751343,
0.1232607513666153,
0.07560910284519196,
1.471117615699768,
0.08937694132328033,
0.07778646796941757,
-0.015178794972598553,
0.23187029361724854,
... |
func RebootNow() (result string, err error) {
return command.Run("sudo", "shutdown", "-r", "now")
} | [
-0.15738201141357422,
-0.3956608176231384,
0.5645263195037842,
1.4506500959396362,
-0.18529647588729858,
-0.5932930707931519,
-0.09692687541246414,
0.7088263034820557,
-0.9013176560401917,
0.20020009577274323,
-0.6436281800270081,
-0.031310196965932846,
-0.32267317175865173,
0.379040896892... |
func NewOrganism(fit float64, g *Genome, generation int) (org *Organism, err error) {
phenotype := g.Phenotype
if phenotype == nil {
phenotype, err = g.Genesis(g.Id)
if err != nil {
return nil, err
}
}
org = &Organism{
Fitness:fit,
Genotype:g,
Phenotype:phenotype,
Generation:generation,
}
return ... | [
-0.1245339885354042,
-0.6746851801872253,
0.5272099375724792,
1.347126841545105,
-0.5492700934410095,
-0.055297162383794785,
-0.21696610748767853,
0.21242518723011017,
-0.544364869594574,
0.32084834575653076,
-0.1751513034105301,
0.887636661529541,
0.02392134629189968,
0.13545215129852295,... |
func (o *Organism) UpdatePhenotype() (err error) {
// First, delete the old phenotype (net)
o.Phenotype = nil
// Now, recreate the phenotype off the new genotype
o.Phenotype, err = o.Genotype.Genesis(o.Genotype.Id)
return err
} | [
0.49001529812812805,
-0.450195848941803,
0.35115882754325867,
0.45129722356796265,
0.6100310683250427,
-0.29473575949668884,
-0.4602387845516205,
1.309070348739624,
0.10631836950778961,
1.1451857089996338,
-0.4618447422981262,
0.7853577136993408,
-0.5813657641410828,
-0.008570006117224693,... |
func (o *Organism) CheckChampionChildDamaged() bool {
if o.isPopulationChampionChild && o.highestFitness > o.Fitness {
return true
}
return false
} | [
0.6495726704597473,
-1.5661507844924927,
0.7555458545684814,
1.2172329425811768,
0.1836921125650406,
0.5667862296104431,
-0.4888087511062622,
0.02293764054775238,
-0.5432790517807007,
-0.7808181047439575,
-0.940814733505249,
0.24079808592796326,
0.4474962055683136,
0.24069172143936157,
-... |
func (o *Organism) MarshalBinary() ([]byte, error) {
var buf bytes.Buffer
_, err := fmt.Fprintln(&buf, o.Fitness, o.Generation, o.highestFitness, o.isPopulationChampionChild, o.Genotype.Id)
o.Genotype.Write(&buf)
if err != nil {
return nil, err
} else {
return buf.Bytes(), nil
}
} | [
0.558655858039856,
-0.578464925289154,
0.7479485869407654,
0.5756795406341553,
1.1000304222106934,
-0.014032313600182533,
-0.5963392853736877,
-0.7289015054702759,
-0.25588279962539673,
0.09425803273916245,
-0.12424107640981674,
0.8066980242729187,
0.24848800897598267,
0.17786037921905518,... |
func (o *Organism) UnmarshalBinary(data []byte) error {
// A simple encoding: plain text.
b := bytes.NewBuffer(data)
var genotype_id int
_, err := fmt.Fscanln(b, &o.Fitness, &o.Generation, &o.highestFitness, &o.isPopulationChampionChild, &genotype_id)
o.Genotype, err = ReadGenome(b, genotype_id)
if err == nil {
... | [
0.2808646261692047,
-0.41972923278808594,
0.9726889729499817,
-0.06716615706682205,
0.0530613549053669,
-0.6230458617210388,
-0.16655710339546204,
-0.01074160821735859,
-0.3478768765926361,
0.03322786092758179,
-0.03072580136358738,
0.5276801586151123,
0.20462702214717865,
-0.3838064074516... |
func (o *Organism) Dump() string {
b := bytes.NewBufferString("Organism:")
fmt.Fprintln(b, "Fitness: ", o.Fitness)
fmt.Fprintln(b, "Error: ", o.Error)
fmt.Fprintln(b, "IsWinner: ", o.IsWinner)
fmt.Fprintln(b, "Phenotype: ", o.Phenotype)
fmt.Fprintln(b, "Genotype: ", o.Genotype)
fmt.Fprintln(b, "Species: ", o.Spe... | [
-0.1967640221118927,
-0.7620646357536316,
0.9744740128517151,
-0.40992292761802673,
-0.5309379696846008,
1.2343581914901733,
0.5154922604560852,
-0.5163638591766357,
-0.39384764432907104,
0.02147393487393856,
-0.3266122043132782,
0.42102596163749695,
0.3177291750907898,
-0.2748353779315948... |
func (dc *replicasetCollector) Describe(ch chan<- *prometheus.Desc) {
ch <- descReplicaSetCreated
ch <- descReplicaSetStatusReplicas
ch <- descReplicaSetStatusFullyLabeledReplicas
ch <- descReplicaSetStatusReadyReplicas
ch <- descReplicaSetStatusObservedGeneration
ch <- descReplicaSetSpecReplicas
ch <- descRepli... | [
-0.02003311738371849,
0.37160444259643555,
0.5879374146461487,
-1.0148215293884277,
0.1809730976819992,
0.4681899845600128,
-0.12014348804950714,
-0.6630748510360718,
-0.05951174721121788,
-0.04989758878946304,
0.2370966523885727,
1.417142629623413,
0.09110400080680847,
0.41396665573120117... |
func (dc *replicasetCollector) Collect(ch chan<- prometheus.Metric) {
rss, err := dc.store.List()
if err != nil {
ScrapeErrorTotalMetric.With(prometheus.Labels{"resource": "replicaset"}).Inc()
glog.Errorf("listing replicasets failed: %s", err)
return
}
ScrapeErrorTotalMetric.With(prometheus.Labels{"resource":... | [
-0.4611245095729828,
-0.04540394991636276,
0.3422550559043884,
-1.0776104927062988,
-0.4926474690437317,
0.2642512321472168,
0.52681964635849,
-0.46932417154312134,
0.07531509548425674,
-0.06873171776533127,
0.6248351335525513,
0.862260639667511,
0.8517863750457764,
0.784342348575592,
0.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.