text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (fuo *FlowUpdateOne) ClearPastState() *FlowUpdateOne {
fuo.mutation.ClearPastState()
return fuo
} | [
-0.24812844395637512,
-0.07573047280311584,
0.2417915314435959,
0.5580965280532837,
-1.0781573057174683,
0.6722197532653809,
0.24392549693584442,
-0.035885948687791824,
0.8230081796646118,
0.6829503774642944,
0.03792857006192207,
0.15692517161369324,
-0.3111460506916046,
-0.277530461549758... |
func (fuo *FlowUpdateOne) SetSurveyID(id uuid.UUID) *FlowUpdateOne {
fuo.mutation.SetSurveyID(id)
return fuo
} | [
-0.6183969974517822,
-0.7248751521110535,
0.033863507211208344,
1.2904815673828125,
-0.9130542278289795,
1.0317893028259277,
-0.18429124355316162,
0.792777955532074,
0.8891093134880066,
0.8127319812774658,
-1.277630090713501,
-0.09427165240049362,
-0.22710902988910675,
0.7355562448501587,
... |
func (fuo *FlowUpdateOne) SetNillableSurveyID(id *uuid.UUID) *FlowUpdateOne {
if id != nil {
fuo = fuo.SetSurveyID(*id)
}
return fuo
} | [
-0.09195181727409363,
0.05825190246105194,
0.060533516108989716,
0.28021445870399475,
-1.342652440071106,
0.5921049118041992,
-0.8023721575737,
-0.14060501754283905,
0.9920669794082642,
0.17091065645217896,
-0.39875054359436035,
0.14486554265022278,
-0.6970297694206238,
0.8744223117828369,... |
func (fuo *FlowUpdateOne) SetSurvey(s *Survey) *FlowUpdateOne {
return fuo.SetSurveyID(s.ID)
} | [
0.22296465933322906,
-0.2442958503961563,
0.24762186408042908,
1.6303532123565674,
-0.7762010097503662,
0.01632247492671013,
0.1934531033039093,
0.37064436078071594,
0.8846696019172668,
-1.4659972190856934,
-1.0416176319122314,
0.17706677317619324,
-0.5362463593482971,
0.19055506587028503,... |
func (fuo *FlowUpdateOne) AddQuestionIDs(ids ...uuid.UUID) *FlowUpdateOne {
fuo.mutation.AddQuestionIDs(ids...)
return fuo
} | [
-1.045183539390564,
-0.7868587970733643,
0.0847933292388916,
1.3640886545181274,
-0.17206436395645142,
0.7709886431694031,
0.00398671068251133,
0.06742803752422333,
0.25043609738349915,
0.3112267553806305,
0.041161105036735535,
-0.44857078790664673,
-0.6859692335128784,
-0.1221417337656021... |
func (fuo *FlowUpdateOne) AddQuestions(q ...*Question) *FlowUpdateOne {
ids := make([]uuid.UUID, len(q))
for i := range q {
ids[i] = q[i].ID
}
return fuo.AddQuestionIDs(ids...)
} | [
-0.8092578649520874,
-0.24598941206932068,
0.3469940423965454,
0.991190493106842,
0.37907251715660095,
0.7803388833999634,
-0.146341472864151,
-0.6068751215934753,
0.4139678180217743,
-0.6213513016700745,
0.733439028263092,
-1.0782506465911865,
-0.8571681380271912,
0.44749215245246887,
-... |
func (fuo *FlowUpdateOne) ClearSurvey() *FlowUpdateOne {
fuo.mutation.ClearSurvey()
return fuo
} | [
-0.2421828955411911,
-0.09377928078174591,
0.19193480908870697,
1.6508949995040894,
-1.1085420846939087,
0.5890114307403564,
-0.5764161348342896,
-0.038922034204006195,
0.8536770939826965,
-0.5259298086166382,
-0.5053980946540833,
-0.026156578212976456,
-0.5498111248016357,
-0.731753826141... |
func (fuo *FlowUpdateOne) RemoveQuestionIDs(ids ...uuid.UUID) *FlowUpdateOne {
fuo.mutation.RemoveQuestionIDs(ids...)
return fuo
} | [
-0.9229798316955566,
-1.1107484102249146,
0.013608756475150585,
1.234958291053772,
-1.1061540842056274,
0.42705702781677246,
0.17525288462638855,
0.6615999341011047,
0.18499433994293213,
0.6370576024055481,
-0.4549383223056793,
-0.5391658544540405,
-1.3735449314117432,
-0.32838350534439087... |
func (fuo *FlowUpdateOne) RemoveQuestions(q ...*Question) *FlowUpdateOne {
ids := make([]uuid.UUID, len(q))
for i := range q {
ids[i] = q[i].ID
}
return fuo.RemoveQuestionIDs(ids...)
} | [
-0.7197187542915344,
-0.46033787727355957,
0.2993721067905426,
0.9143503904342651,
-0.3558352291584015,
0.23694853484630585,
0.33045631647109985,
-0.22100217640399933,
0.3303380310535431,
-0.06750865280628204,
0.019949521869421005,
-1.2350666522979736,
-1.1929473876953125,
0.24444746971130... |
func (fuo *FlowUpdateOne) Save(ctx context.Context) (*Flow, error) {
if v, ok := fuo.mutation.StateTable(); ok {
if err := flow.StateTableValidator(v); err != nil {
return nil, fmt.Errorf("ent: validator failed for field \"stateTable\": %v", err)
}
}
var (
err error
node *Flow
)
if len(fuo.hooks) == 0... | [
-0.7696050405502319,
0.0009096770663745701,
0.6739212870597839,
0.5666019320487976,
0.2280045449733734,
-0.40392228960990906,
0.7961437106132507,
-0.5020312666893005,
0.09491653740406036,
0.17994222044944763,
-0.48207569122314453,
-0.11988319456577301,
-0.6080253720283508,
0.07372793555259... |
func (fuo *FlowUpdateOne) SaveX(ctx context.Context) *Flow {
f, err := fuo.Save(ctx)
if err != nil {
panic(err)
}
return f
} | [
-0.19327104091644287,
0.2922254800796509,
0.4495387673377991,
1.2661144733428955,
-0.4356490969657898,
0.7791828513145447,
-0.5059303641319275,
0.41718441247940063,
1.5061402320861816,
-0.3107915222644806,
-1.4533334970474243,
-0.0881655141711235,
-0.7415462136268616,
-0.2651028037071228,
... |
func (fuo *FlowUpdateOne) Exec(ctx context.Context) error {
_, err := fuo.Save(ctx)
return err
} | [
-0.004792711231857538,
0.10400690883398056,
0.6450932621955872,
0.9540823101997375,
0.6071479916572571,
0.9464151263237,
0.04524439200758934,
0.28287896513938904,
0.15229320526123047,
0.06940234452486038,
-0.6176053285598755,
-0.2703508138656616,
-0.8393699526786804,
-0.43564167618751526,
... |
func (fuo *FlowUpdateOne) ExecX(ctx context.Context) {
if err := fuo.Exec(ctx); err != nil {
panic(err)
}
} | [
0.6602532863616943,
0.43301981687545776,
0.6326090097427368,
1.0103670358657837,
0.1093418225646019,
1.0726633071899414,
-0.4803657829761505,
0.4023629128932953,
0.643054187297821,
-0.43458259105682373,
-0.26078343391418457,
0.5145627856254578,
-0.22111070156097412,
-0.19111566245555878,
... |
func NewHealth() Health {
return &health{
logger: logging.NewLogger(),
}
} | [
0.7893325090408325,
-1.4309431314468384,
0.1868659406900406,
0.7029416561126709,
-1.3264917135238647,
0.2739994525909424,
-0.1715259552001953,
-0.5046003460884094,
0.7533420920372009,
-1.3088035583496094,
0.26003485918045044,
0.6820109486579895,
0.2556685507297516,
0.3052888810634613,
0.... |
func checkdivisibility(p, lb, ub *big.Int) bool {
z := new (big.Int)
for i := new(big.Int).Set(lb); i.Cmp(ub) == -1; i.Add(i, big.NewInt(1)) {
z.Mod(p, i)
if z.Cmp(big.NewInt(0)) == 0 {
return true
}
}
return false
} | [
-0.924333393573761,
0.3635962903499603,
0.6275778412818909,
1.0890198945999146,
0.9466268420219421,
0.9352059960365295,
0.6246988773345947,
0.9037582278251648,
-0.7580963969230652,
0.22450919449329376,
0.1492317169904709,
-0.46519938111305237,
-1.478405475616455,
0.6803025603294373,
-0.0... |
func (ts TrickSlice) Copy() TrickSlice {
in := reflect.Value(ts)
out := reflect.MakeSlice(in.Type(), in.Len(), in.Len()) // TODO: v.Cap()?
reflect.Copy(out, in)
return TrickSlice(out)
} | [
-1.3706634044647217,
-0.6921417713165283,
0.524902880191803,
0.042978525161743164,
-0.7245845198631287,
0.24968908727169037,
0.08021143078804016,
-0.49842438101768494,
0.3370755910873413,
0.6494837999343872,
-0.10178835690021515,
0.8310614228248596,
0.68638014793396,
-0.023464329540729523,... |
func (ts TrickSlice) Len() int {
return reflect.Value(ts).Len()
} | [
-0.9719752669334412,
0.5642045736312866,
0.15955111384391785,
-1.1871378421783447,
0.4354228377342224,
-1.0891454219818115,
1.0607584714889526,
0.769729495048523,
-0.4700430631637573,
0.15154686570167542,
-1.3631738424301147,
0.5843903422355652,
1.1375186443328857,
0.34696394205093384,
-... |
func (ts TrickSlice) IsEmpty() bool {
return ts.Len() == 0
} | [
-1.7355458736419678,
0.054275739938020706,
0.36461347341537476,
0.15162810683250427,
0.9868934750556946,
-0.42561599612236023,
-0.5952734351158142,
-0.09570299834012985,
-0.43236300349235535,
0.6550635695457458,
-0.902158796787262,
0.5439150333404541,
0.31399911642074585,
0.316291630268096... |
func (ts TrickSlice) First(n int) TrickSlice {
v := reflect.Value(ts)
if n > v.Len() {
n = v.Len()
}
return TrickSlice(v.Slice3(0, n, n))
} | [
-0.6245314478874207,
1.0020370483398438,
0.3664662539958954,
-0.5293555855751038,
0.8455320000648499,
-0.9978236556053162,
-0.8131042718887329,
-0.03834645450115204,
-0.3187418282032013,
0.6776307821273804,
-0.6560978293418884,
0.8251116275787354,
0.9272064566612244,
0.39429885149002075,
... |
func (ts TrickSlice) Last(n int) TrickSlice {
v := reflect.Value(ts)
if n > v.Len() {
n = v.Len()
}
return TrickSlice(v.Slice3(v.Len()-n, v.Len(), v.Len()))
} | [
-1.1200424432754517,
0.6157669425010681,
0.484479695558548,
-0.9143799543380737,
0.4570353925228119,
-0.786759078502655,
-0.799397885799408,
-0.4652114510536194,
0.15326496958732605,
0.8244137167930603,
-0.672095000743866,
0.011069808155298233,
0.20529547333717346,
-0.07274060696363449,
... |
func (c Config) Validate() error {
if c.Host == "" {
return errors.New("cadence host is required")
}
if c.Port == 0 {
return errors.New("cadence port is required")
}
if c.Domain == "" {
return errors.New("cadence domain is required")
}
return nil
} | [
-0.031316544860601425,
0.6736215949058533,
0.43030381202697754,
-0.04693635553121567,
0.5456199645996094,
0.712037980556488,
0.21185417473316193,
0.007316991221159697,
-1.413269281387329,
0.14845608174800873,
-0.4122273921966553,
-0.36721310019493103,
-1.0766850709915161,
1.121927261352539... |
func (c Config) Addr() string {
return fmt.Sprintf("%s:%d", c.Host, c.Port)
} | [
-0.42490798234939575,
-0.7600783109664917,
0.4742307662963867,
-0.5471406579017639,
-0.7286375164985657,
1.0760577917099,
-0.12705591320991516,
0.07472344487905502,
-0.33211764693260193,
0.04964306950569153,
0.8041985034942627,
0.5201205015182495,
0.13097165524959564,
0.03289559856057167,
... |
func New(t testing.TB) *slog.Logger {
tw := &testWriter{t: t}
slh := slog.NewTextHandler(tw)
return slog.New(slh)
} | [
0.46445316076278687,
-0.49293771386146545,
0.1121535375714302,
-0.5780475735664368,
-1.0542618036270142,
0.06870273500680923,
-0.0908765122294426,
0.5451672077178955,
-0.38259872794151306,
0.23212012648582458,
-0.1342124491930008,
-0.4650390148162842,
0.12294501066207886,
1.039070606231689... |
func ListNodeTypes(client *golangsdk.ServiceClient) ([]NodeTypes, error) {
// GET /v2/{project_id}/node-types
raw, err := client.Get(client.ServiceURL("node-types"), nil, openstack.StdRequestOpts())
if err != nil {
return nil, err
}
var res []NodeTypes
err = extract.IntoSlicePtr(raw.Body, &res, "node_types")
... | [
-0.7039039731025696,
0.7057483792304993,
0.08286159485578537,
-0.46652770042419434,
0.6872646808624268,
-0.8008623123168945,
-0.6760810017585754,
-0.520484447479248,
-0.5153286457061768,
0.5725137591362,
-0.9080689549446106,
1.5936700105667114,
-1.1332364082336426,
0.7717087864875793,
-0... |
func ID(id string) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldID), id))
})
} | [
0.23801134526729584,
-0.1105259507894516,
0.2670459449291229,
0.2899956703186035,
-0.3212664723396301,
1.2513900995254517,
0.4297868609428406,
0.6544309258460999,
0.2852712571620941,
-0.20716919004917145,
-0.5484791398048401,
-0.0752842128276825,
0.27428728342056274,
1.1155118942260742,
... |
func IDEQ(id string) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldID), id))
})
} | [
-1.419859766960144,
0.2009228765964508,
0.21731510758399963,
-0.14253047108650208,
-0.42846348881721497,
0.49741536378860474,
0.4486139714717865,
0.6881619095802307,
-0.6558355689048767,
0.3614192605018616,
-1.3246657848358154,
-0.32730066776275635,
0.3875538110733032,
0.6677196025848389,
... |
func IDNEQ(id string) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldID), id))
})
} | [
-1.9396909475326538,
-0.08437047153711319,
0.4306599795818329,
-0.20173953473567963,
-1.274501919746399,
0.17733009159564972,
-0.8778069019317627,
0.2921416759490967,
-0.9937958121299744,
0.31602147221565247,
-1.5806303024291992,
-0.24604563415050507,
0.23832356929779053,
0.063983812928199... |
func IDIn(ids ...string) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(ids) == 0 {
s.Where(sql.False())
return
}
v := make([]interface{}, len(ids)... | [
-1.1365903615951538,
0.21062077581882477,
0.37694233655929565,
0.1377299726009369,
-0.43660682439804077,
0.8761981129646301,
-0.2575305998325348,
0.8077247142791748,
-0.5252629518508911,
-0.42199259996414185,
-0.29239505529403687,
0.02773747779428959,
-0.350415974855423,
0.2657027840614319... |
func IDNotIn(ids ...string) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(ids) == 0 {
s.Where(sql.False())
return
}
v := make([]interface{}, len(i... | [
-1.4674724340438843,
-0.23254668712615967,
0.31551796197891235,
0.014521626755595207,
-0.09897975623607635,
0.6652355790138245,
-0.32429391145706177,
0.36539873480796814,
-0.5584088563919067,
-0.0020407838746905327,
-0.6004370450973511,
-0.3337700664997101,
-0.7300896644592285,
-0.13973873... |
func IDGT(id string) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldID), id))
})
} | [
-0.7403659820556641,
0.5971652865409851,
0.35226690769195557,
-0.388437420129776,
-1.0786373615264893,
0.9043443202972412,
-0.7041448354721069,
0.1863064020872116,
-0.8413123488426208,
-0.5783523917198181,
0.0052100373432040215,
-0.022729551419615746,
0.25077611207962036,
0.713301956653595... |
func IDGTE(id string) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldID), id))
})
} | [
-0.5913808941841125,
0.5670249462127686,
0.23025988042354584,
0.03188509866595268,
-0.46797510981559753,
0.8167852759361267,
0.21685674786567688,
0.13663794100284576,
-1.4797461032867432,
0.4767598509788513,
-0.31776437163352966,
0.06886304169893265,
-0.3130011260509491,
0.6148691177368164... |
func IDLT(id string) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldID), id))
})
} | [
0.5428404808044434,
-0.11986614763736725,
0.3670341670513153,
-1.35280179977417,
-0.5515719056129456,
0.7983200550079346,
-0.600400447845459,
-0.8361057043075562,
-0.20987990498542786,
-1.0169655084609985,
-0.23334941267967224,
-0.12881159782409668,
-0.092387855052948,
0.5843506455421448,
... |
func IDLTE(id string) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldID), id))
})
} | [
0.36583951115608215,
-0.12019642442464828,
0.33375775814056396,
-0.8246667385101318,
0.0543193481862545,
0.4300452470779419,
-0.37491124868392944,
-0.16184499859809875,
-0.5684105753898621,
0.047474343329668045,
-0.8649658560752869,
0.35740208625793457,
-0.3411572277545929,
0.2342874109745... |
func CreatedAt(v time.Time) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldCreatedAt), v))
})
} | [
0.6737977862358093,
0.31136664748191833,
0.1531658172607422,
-0.32496848702430725,
0.021340811625123024,
1.060073733329773,
0.08820562809705734,
-0.30394673347473145,
-0.11838003247976303,
-0.765104353427887,
-0.27647385001182556,
-0.2602827250957489,
0.8923392295837402,
0.9408308863639832... |
func UpdatedAt(v time.Time) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldUpdatedAt), v))
})
} | [
0.16464462876319885,
-0.019094426184892654,
0.34515634179115295,
-0.30203360319137573,
-0.8531010746955872,
1.1769192218780518,
-0.016104036942124367,
-0.13825638592243195,
0.2395734041929245,
0.06868460774421692,
-0.3946800231933594,
0.17763809859752655,
1.0339465141296387,
0.584258615970... |
func Index(v int) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldIndex), v))
})
} | [
-0.2538836598396301,
0.48394301533699036,
-0.06591147929430008,
-0.23810875415802002,
-0.24559564888477325,
0.6727353930473328,
1.011752724647522,
0.7985250353813171,
-0.08236002922058105,
0.31783053278923035,
-0.8081541657447815,
0.20935970544815063,
0.13585849106311798,
-0.06085851043462... |
func Duration(v int) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldDuration), v))
})
} | [
0.037617020308971405,
0.48006170988082886,
0.19259555637836456,
0.46591508388519287,
-0.07014535367488861,
0.8099871277809143,
1.1681886911392212,
0.6074047684669495,
0.050654202699661255,
0.5261524319648743,
-0.5259855389595032,
-0.15371744334697723,
0.49496954679489136,
0.940708756446838... |
func CreatedAtEQ(v time.Time) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldCreatedAt), v))
})
} | [
-0.15644562244415283,
-0.09452404081821442,
0.47088804841041565,
0.7586231231689453,
0.0503055714070797,
1.037145972251892,
-0.19320239126682281,
0.285986989736557,
-0.48264795541763306,
-0.022560888901352882,
-0.9512207508087158,
-0.21119673550128937,
1.180103063583374,
1.1924481391906738... |
func CreatedAtNEQ(v time.Time) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldCreatedAt), v))
})
} | [
-0.5756146907806396,
-0.15898211300373077,
0.4647957682609558,
0.3877248466014862,
-0.3825835585594177,
0.954237163066864,
-0.3086986243724823,
-0.2784545123577118,
-1.3083332777023315,
-0.3911017179489136,
-1.2909983396530151,
0.29223817586898804,
1.5691478252410889,
0.6590762734413147,
... |
func CreatedAtIn(vs ...time.Time) predicate.Step {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Step(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) ... | [
-0.3164052665233612,
-0.22302697598934174,
0.6130187511444092,
0.46094828844070435,
0.15919160842895508,
1.2179454565048218,
-0.6066206693649292,
-0.13752226531505585,
-1.0316832065582275,
-0.7387867569923401,
0.18942618370056152,
-0.2260236293077469,
0.37207484245300293,
0.977637171745300... |
func CreatedAtNotIn(vs ...time.Time) predicate.Step {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Step(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(... | [
-0.37519368529319763,
-0.26047423481941223,
0.49710842967033386,
0.28118088841438293,
0.6443782448768616,
1.3638304471969604,
0.12361067533493042,
-0.4850672483444214,
-1.2862120866775513,
-0.7219972014427185,
-0.15284430980682373,
0.18362918496131897,
0.5630068778991699,
0.547909379005432... |
func CreatedAtGT(v time.Time) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldCreatedAt), v))
})
} | [
0.3886633515357971,
0.38138633966445923,
0.24114373326301575,
0.10176854580640793,
-0.5966308116912842,
0.8671180009841919,
-0.2573715150356293,
-0.27247560024261475,
-1.15382719039917,
-0.7616430521011353,
-0.1015910804271698,
0.16492822766304016,
1.2215560674667358,
1.2129287719726562,
... |
func CreatedAtGTE(v time.Time) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldCreatedAt), v))
})
} | [
0.3886140286922455,
0.44322624802589417,
0.2760724127292633,
0.4723653495311737,
0.025333281606435776,
1.438488483428955,
0.564425528049469,
-0.2063477635383606,
-2.044355869293213,
-0.33317601680755615,
-0.35909467935562134,
0.2670000493526459,
1.0512635707855225,
1.0673155784606934,
-0... |
func CreatedAtLT(v time.Time) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldCreatedAt), v))
})
} | [
0.9791095852851868,
-0.161238893866539,
0.20193228125572205,
-0.5516892671585083,
0.06277109682559967,
1.0224965810775757,
-0.012752433307468891,
-0.9740445017814636,
-0.8565133810043335,
-1.1120514869689941,
-0.24893388152122498,
-0.03290494158864021,
0.8789647817611694,
0.925858676433563... |
func CreatedAtLTE(v time.Time) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldCreatedAt), v))
})
} | [
1.0518399477005005,
-0.28759828209877014,
0.2593311369419098,
-0.12533873319625854,
0.7179530262947083,
1.0974539518356323,
0.22632552683353424,
-0.3695497214794159,
-1.2364791631698608,
-0.5617283582687378,
-0.9528232216835022,
0.31231409311294556,
1.0790398120880127,
0.832706868648529,
... |
func UpdatedAtEQ(v time.Time) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldUpdatedAt), v))
})
} | [
-1.1057658195495605,
-0.49968889355659485,
0.55420982837677,
0.5555785298347473,
-1.1913659572601318,
0.8989126086235046,
-0.12908819317817688,
0.5932132005691528,
0.03615129366517067,
0.7551799416542053,
-1.1776591539382935,
0.31690940260887146,
1.1331158876419067,
0.9251382946968079,
-... |
func UpdatedAtNEQ(v time.Time) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldUpdatedAt), v))
})
} | [
-0.9545217156410217,
-0.34400519728660583,
0.4934139847755432,
0.3348177373409271,
-1.568349003791809,
0.9161283373832703,
-0.7504294514656067,
-0.10625331103801727,
-0.8070157766342163,
0.46877288818359375,
-1.3546082973480225,
0.39516204595565796,
1.3126691579818726,
0.18548570573329926,... |
func UpdatedAtIn(vs ...time.Time) predicate.Step {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Step(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) ... | [
-0.7719848155975342,
-0.42259883880615234,
0.6321192383766174,
0.3456514775753021,
-0.9268434643745422,
1.145574688911438,
-0.5341721773147583,
0.038961175829172134,
-0.6652563214302063,
0.13505935668945312,
0.19861489534378052,
0.1412910372018814,
0.40346014499664307,
0.47917038202285767,... |
func UpdatedAtNotIn(vs ...time.Time) predicate.Step {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Step(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(... | [
-0.832099437713623,
-0.6666868329048157,
0.4792443513870239,
0.10013774782419205,
-0.5434346795082092,
1.3100335597991943,
-0.26737159490585327,
-0.237116277217865,
-0.9292579889297485,
0.24092216789722443,
-0.0740167573094368,
0.22294431924819946,
0.3036952614784241,
0.007134995888918638,... |
func UpdatedAtGT(v time.Time) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldUpdatedAt), v))
})
} | [
-0.17038820683956146,
-0.06078603118658066,
0.31339898705482483,
0.051367662847042084,
-1.6375330686569214,
0.8732386827468872,
-0.3771277368068695,
0.04920101538300514,
-0.6285953521728516,
0.14602410793304443,
-0.23646330833435059,
0.5016708970069885,
1.3153868913650513,
0.79524403810501... |
func UpdatedAtGTE(v time.Time) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldUpdatedAt), v))
})
} | [
0.013561490923166275,
0.07439863681793213,
0.35426396131515503,
0.19251707196235657,
-1.0621557235717773,
1.3175863027572632,
0.2600623667240143,
0.2742108404636383,
-1.4519896507263184,
0.6558859944343567,
-0.298647403717041,
0.5218977332115173,
1.0084009170532227,
0.7266863584518433,
-... |
func UpdatedAtLT(v time.Time) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldUpdatedAt), v))
})
} | [
0.5354453325271606,
-0.6560977101325989,
0.3968985676765442,
-0.6241949200630188,
-1.077318549156189,
1.117793083190918,
-0.2692517638206482,
-0.7317178845405579,
-0.3734293580055237,
-0.2660529315471649,
-0.4014323651790619,
0.29543161392211914,
1.0192333459854126,
0.5826692581176758,
-... |
func UpdatedAtLTE(v time.Time) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldUpdatedAt), v))
})
} | [
0.6423556804656982,
-0.6999967098236084,
0.4837561249732971,
-0.4991833567619324,
-0.5351974964141846,
1.0886605978012085,
-0.0510660819709301,
0.1051824614405632,
-0.73265540599823,
0.4326132535934448,
-0.9044342041015625,
0.6255852580070496,
0.9458304643630981,
0.4681912362575531,
-1.1... |
func TypeEQ(v Type) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldType), v))
})
} | [
-1.3026140928268433,
0.04727957770228386,
0.5143345594406128,
0.49984362721443176,
0.03789440169930458,
0.7465834617614746,
0.9891023635864258,
0.11747328191995621,
-0.6762544512748718,
1.1825225353240967,
-1.3484140634536743,
0.3394477069377899,
0.1661597043275833,
0.5752403140068054,
-... |
func TypeNEQ(v Type) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldType), v))
})
} | [
-1.657334566116333,
-0.4225488305091858,
0.7287417650222778,
0.7416927814483643,
-0.9465123414993286,
0.5193812251091003,
-0.04953306168317795,
-0.5428751707077026,
-1.1516799926757812,
1.1150280237197876,
-1.3774570226669312,
0.24563023447990417,
0.18283139169216156,
0.3137434422969818,
... |
func TypeIn(vs ...Type) predicate.Step {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Step(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
... | [
-0.9919108152389526,
0.12545818090438843,
0.6767510175704956,
0.6150380373001099,
0.09797925502061844,
0.8934279680252075,
0.09805551171302795,
0.0003063774202018976,
-0.8023244142532349,
0.1042603850364685,
-0.4610553979873657,
0.3268983066082001,
-0.5865840911865234,
0.4260167181491852,
... |
func TypeNotIn(vs ...Type) predicate.Step {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Step(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
... | [
-1.3081910610198975,
-0.13870389759540558,
0.6757158637046814,
0.6692023873329163,
0.3263246715068817,
0.8616116046905518,
0.25434449315071106,
-0.48872193694114685,
-0.8777820467948914,
0.5716659426689148,
-0.21850134432315826,
0.03036000207066536,
-0.8094906806945801,
0.13710917532444,
... |
func IndexEQ(v int) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldIndex), v))
})
} | [
-0.8586319088935852,
0.39310792088508606,
0.0387747548520565,
0.3076741397380829,
-0.168714240193367,
0.1859309822320938,
1.3109068870544434,
0.9234482645988464,
-0.4351550340652466,
0.8705987930297852,
-1.0777654647827148,
-0.07896405458450317,
0.3817444443702698,
0.21935798227787018,
-... |
func IndexNEQ(v int) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldIndex), v))
})
} | [
-1.2942429780960083,
-0.02803722769021988,
0.2985873520374298,
0.44472524523735046,
-1.1341086626052856,
-0.11066965758800507,
0.1493702083826065,
0.4109179973602295,
-0.5586153864860535,
1.064499020576477,
-1.1128140687942505,
0.0792163759469986,
0.18939706683158875,
-0.28819066286087036,... |
func IndexIn(vs ...int) predicate.Step {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Step(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
... | [
-0.791030764579773,
0.3411542475223541,
0.38284409046173096,
0.6356143355369568,
-0.3939720690250397,
0.700528621673584,
0.4387356638908386,
0.7506064772605896,
-0.5618049502372742,
-0.15642359852790833,
-0.041019219905138016,
0.10781562328338623,
-0.4286380708217621,
0.09436564147472382,
... |
func IndexNotIn(vs ...int) predicate.Step {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Step(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
... | [
-1.102724552154541,
0.1448264867067337,
0.2510434687137604,
0.5568700432777405,
-0.11918356269598007,
0.5057020783424377,
0.3425001800060272,
0.4751948416233063,
-0.46924272179603577,
0.2659638524055481,
-0.015233747661113739,
-0.06637750566005707,
-0.7100430727005005,
-0.31147024035453796... |
func IndexGT(v int) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldIndex), v))
})
} | [
-0.7894026041030884,
0.5073169469833374,
0.2517380118370056,
0.27064797282218933,
-0.8145809769630432,
0.7873218655586243,
0.1639760583639145,
0.21601703763008118,
-0.7738230228424072,
0.20646655559539795,
0.06283039599657059,
0.48597806692123413,
0.2820983827114105,
0.20141853392124176,
... |
func IndexGTE(v int) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldIndex), v))
})
} | [
-0.22661438584327698,
0.9049185514450073,
-0.005377851892262697,
0.468676894903183,
-0.06263231486082077,
0.6805360913276672,
1.1273270845413208,
-0.031501516699790955,
-1.2961792945861816,
0.8808191418647766,
0.1279701441526413,
0.18555058538913727,
-0.3167811632156372,
-0.074762858450412... |
func IndexLT(v int) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldIndex), v))
})
} | [
0.33010223507881165,
-0.3083166778087616,
0.21766993403434753,
-0.814453661441803,
-0.3503272533416748,
0.4490611255168915,
0.3375577926635742,
-0.6315907835960388,
0.0033416750375181437,
-0.28160133957862854,
-0.008532244712114334,
0.2257590889930725,
-0.08025217056274414,
0.1777510344982... |
func IndexLTE(v int) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldIndex), v))
})
} | [
0.1713627129793167,
0.06552574783563614,
0.12231701612472534,
-0.3624321520328522,
0.2604586184024811,
0.2145857959985733,
0.588768482208252,
-0.22899599373340607,
-0.1475449800491333,
0.4165671765804291,
-0.4473550617694855,
0.36552995443344116,
-0.3377545475959778,
-0.36034056544303894,
... |
func DurationEQ(v int) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldDuration), v))
})
} | [
-0.5824536085128784,
0.2081400603055954,
0.28471362590789795,
0.741936445236206,
-0.36545252799987793,
0.5405891537666321,
1.0882765054702759,
0.8046740889549255,
-0.919512152671814,
1.330112099647522,
-0.9628971815109253,
0.13578985631465912,
1.0650781393051147,
0.7297568321228027,
-0.3... |
func DurationNEQ(v int) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldDuration), v))
})
} | [
-0.9727466702461243,
0.12101416289806366,
0.3185138702392578,
0.9758303761482239,
-1.141008973121643,
0.685867965221405,
0.05672594904899597,
0.4276164174079895,
-1.250292420387268,
1.0719879865646362,
-0.9268679022789001,
-0.16807104647159576,
1.052751898765564,
0.36930325627326965,
-0.... |
func DurationIn(vs ...int) predicate.Step {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Step(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
... | [
-0.4620746970176697,
0.48151999711990356,
0.3912089765071869,
0.5965559482574463,
-0.09586000442504883,
0.8132032155990601,
0.29772278666496277,
0.5436661839485168,
-0.8754088282585144,
0.2821498215198517,
-0.1188557893037796,
-0.04355641081929207,
0.14850394427776337,
0.4399121105670929,
... |
func DurationNotIn(vs ...int) predicate.Step {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Step(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0... | [
-0.7249628305435181,
0.39135074615478516,
0.2517378330230713,
0.7517437934875488,
0.16423679888248444,
1.1642605066299438,
0.24818386137485504,
0.451519250869751,
-1.1042225360870361,
0.44084876775741577,
-0.11008842289447784,
-0.30071449279785156,
-0.2602550685405731,
0.16680534183979034,... |
func DurationGT(v int) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldDuration), v))
})
} | [
0.06690580397844315,
0.6725906729698181,
0.3178007900714874,
0.26394981145858765,
-1.0248935222625732,
0.6411322355270386,
0.1364661008119583,
0.4273664653301239,
-0.9407480359077454,
0.6625308990478516,
0.24273672699928284,
0.15846554934978485,
0.5642381906509399,
0.8054831624031067,
-0... |
func DurationGTE(v int) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldDuration), v))
})
} | [
0.4839167594909668,
0.6661298871040344,
0.2646201550960541,
0.7612816691398621,
-0.4109739363193512,
1.0490561723709106,
0.8549690842628479,
0.59932541847229,
-1.81606924533844,
1.1676563024520874,
0.1921270191669464,
0.18516848981380463,
0.0881318598985672,
0.47662535309791565,
0.102932... |
func DurationLT(v int) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldDuration), v))
})
} | [
1.163607120513916,
-0.10822144150733948,
0.19847364723682404,
-0.41668087244033813,
-0.37515509128570557,
0.8684346675872803,
0.47040849924087524,
-0.6442199349403381,
-0.30114319920539856,
0.2376583069562912,
-0.10122314840555191,
-0.0008990134228952229,
0.3213689923286438,
0.895255029201... |
func DurationLTE(v int) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldDuration), v))
})
} | [
0.5939980745315552,
0.08045786619186401,
0.3481263518333435,
0.0415031723678112,
0.2862358093261719,
0.8320654630661011,
0.354739248752594,
0.12936216592788696,
-0.8966984748840332,
0.712815523147583,
-0.49894243478775024,
0.5172510147094727,
0.11041959375143051,
0.3160768151283264,
-0.7... |
func MsgArgsIsNil() predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.IsNull(s.C(FieldMsgArgs)))
})
} | [
1.3432142734527588,
0.4799419641494751,
0.45444461703300476,
-0.44489017128944397,
0.06810618191957474,
-0.5819528102874756,
-0.3090614080429077,
0.019816359505057335,
-0.4277685582637787,
0.9818793535232544,
-0.5486006140708923,
0.9122955203056335,
-0.39273980259895325,
0.8643325567245483... |
func MsgArgsNotNil() predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.NotNull(s.C(FieldMsgArgs)))
})
} | [
1.2748454809188843,
0.3540232181549072,
0.4214993417263031,
-0.7116106748580933,
-0.19312012195587158,
-0.4270271956920624,
-0.3224546015262604,
0.08803769946098328,
-0.9649273753166199,
1.1647202968597412,
-0.7672232389450073,
-0.059124577790498734,
-0.49416545033454895,
0.945530116558075... |
func HitArgsIsNil() predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.IsNull(s.C(FieldHitArgs)))
})
} | [
0.6763523817062378,
0.5010930299758911,
0.3802524507045746,
0.2751464545726776,
0.36749228835105896,
-0.08974941074848175,
0.03464612364768982,
0.3993515968322754,
-0.5242716073989868,
1.282204270362854,
-0.5289534330368042,
0.08420883864164352,
0.18054616451263428,
0.09864888340234756,
... |
func HitArgsNotNil() predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.NotNull(s.C(FieldHitArgs)))
})
} | [
0.6168787479400635,
0.15551431477069855,
0.3477727472782135,
-0.032033227384090424,
0.27899718284606934,
-0.0706859827041626,
-0.03709086403250694,
0.6341121196746826,
-1.069696307182312,
1.4445164203643799,
-0.8835844993591309,
-0.5564680695533752,
-0.25399696826934814,
0.1925823092460632... |
func FilterArgsIsNil() predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.IsNull(s.C(FieldFilterArgs)))
})
} | [
0.6709075570106506,
0.42885980010032654,
0.33522143959999084,
0.36183488368988037,
-0.42907917499542236,
-0.16578854620456696,
0.15338900685310364,
0.0995812937617302,
-0.3494035005569458,
1.3691039085388184,
-0.16615067422389984,
0.4151444137096405,
0.24680547416210175,
0.1968088299036026... |
func FilterArgsNotNil() predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s.Where(sql.NotNull(s.C(FieldFilterArgs)))
})
} | [
0.680494487285614,
0.09344717860221863,
0.25798332691192627,
-0.08891390264034271,
-0.5769309401512146,
-0.2865232229232788,
-0.010341350920498371,
0.16884811222553253,
-0.848361611366272,
1.4547531604766846,
-0.3743051290512085,
-0.485108882188797,
0.02627565711736679,
0.2833332419395447,... |
func HasStepRun() predicate.Step {
return predicate.Step(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.To(StepRunTable, FieldID),
sqlgraph.Edge(sqlgraph.O2O, true, StepRunTable, StepRunColumn),
)
sqlgraph.HasNeighbors(s, step)
})
} | [
-0.3793571889400482,
-0.0023581392597407103,
0.5044128894805908,
0.485767126083374,
-0.12477006763219833,
-0.2508654296398163,
0.7354963421821594,
0.62122642993927,
-0.9268817901611328,
-0.8832117319107056,
-1.2939485311508179,
-0.7788091897964478,
0.514656662940979,
1.2754695415496826,
... |
func HasStepRunWith(preds ...predicate.StepRun) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.To(StepRunInverseTable, FieldID),
sqlgraph.Edge(sqlgraph.O2O, true, StepRunTable, StepRunColumn),
)
sqlgraph.HasNeighborsWith(s... | [
-0.33925262093544006,
-0.33061012625694275,
0.48511451482772827,
0.7649266719818115,
-0.4122351109981537,
-0.15253685414791107,
-0.2083829790353775,
0.14830245077610016,
-1.3470301628112793,
-0.21664756536483765,
-1.1364434957504272,
-0.24414263665676117,
0.42595332860946655,
0.92274159193... |
func HasTemplate() predicate.Step {
return predicate.Step(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.To(TemplateTable, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, TemplateTable, TemplateColumn),
)
sqlgraph.HasNeighbors(s, step)
})
} | [
-0.0017449735896661878,
0.6595993041992188,
0.7080519795417786,
-0.052323006093502045,
0.040306344628334045,
-0.1798284649848938,
0.6131021976470947,
0.47583669424057007,
-0.5332802534103394,
0.2352973073720932,
-0.7395537495613098,
-0.7607368230819702,
0.3248961567878723,
0.72966986894607... |
func HasTemplateWith(preds ...predicate.Template) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.To(TemplateInverseTable, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, TemplateTable, TemplateColumn),
)
sqlgraph.HasNeighborsW... | [
-0.12595809996128082,
-0.2202088087797165,
0.7424157857894897,
0.21457211673259735,
-0.6020904779434204,
-0.25004416704177856,
-0.021076686680316925,
0.11981942504644394,
-0.8176568150520325,
0.6514553427696228,
-0.9061196446418762,
-0.09736014902591705,
0.3481508791446686,
0.6899432539939... |
func And(predicates ...predicate.Step) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s1 := s.Clone().SetP(nil)
for _, p := range predicates {
p(s1)
}
s.Where(s1.P())
})
} | [
-0.42588552832603455,
-1.0391032695770264,
0.3467717468738556,
0.5325784087181091,
-0.300020694732666,
0.7929755449295044,
-0.10643177479505539,
1.2927523851394653,
-0.26268988847732544,
-0.10857180505990982,
-0.12069061398506165,
0.3287965655326843,
0.33129623532295227,
0.4339735507965088... |
func Or(predicates ...predicate.Step) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
s1 := s.Clone().SetP(nil)
for i, p := range predicates {
if i > 0 {
s1.Or()
}
p(s1)
}
s.Where(s1.P())
})
} | [
-1.589158296585083,
-0.22236883640289307,
0.26786085963249207,
0.7220022678375244,
-0.037174880504608154,
0.6954092383384705,
-0.337748646736145,
1.0139552354812622,
-0.3858288526535034,
-0.1153319850564003,
0.12810254096984863,
-0.6021669507026672,
0.7426900863647461,
0.15952511131763458,... |
func Not(p predicate.Step) predicate.Step {
return predicate.Step(func(s *sql.Selector) {
p(s.Not())
})
} | [
-0.899066150188446,
0.17123942077159882,
0.25228333473205566,
0.5050020813941956,
-0.37600287795066833,
1.2749539613723755,
0.2384977787733078,
0.9288778901100159,
-0.7797015309333801,
-0.3670099973678589,
-0.20628443360328674,
0.1286887228488922,
0.5213187336921692,
0.659917414188385,
0... |
func (edCert EducationalCertificate) Validate() []utils.Error {
validate = validator.New()
errs := utils.Errors
err := validate.Struct(edCert)
if err != nil {
for _, err := range err.(validator.ValidationErrors) {
field := err.StructField()
er := err.ActualTag()
err := utils.Error{}
err[field] = e... | [
-0.8256774544715881,
0.09465136379003525,
0.6788748502731323,
-0.17419038712978363,
0.3442637622356415,
-0.15373829007148743,
-0.7985386252403259,
-0.2315470278263092,
-0.861785888671875,
0.8440918326377869,
-0.3348681926727295,
-0.6566208600997925,
0.20801031589508057,
0.6565088629722595,... |
func NewMessages(client *Client) *Messages {
return &Messages{
client: client,
cache: make(map[int64]*Message),
messageLists: make(map[int64][]*Message),
latest: make(map[int64]int64),
}
} | [
-0.430024653673172,
-0.11635125428438187,
0.06804133951663971,
-0.5204953551292419,
-0.5858374238014221,
-0.45367515087127686,
-0.038293953984975815,
-1.1206369400024414,
-0.045966845005750656,
0.2739121913909912,
-0.16896772384643555,
0.019219687208533287,
-0.9090069532394409,
0.917832851... |
func (messages *Messages) GetNewMessages(groupId int64) ([]*Message, error) {
// construct path (private by default, for a particular group if groupId is !-1)
path := "messages/private.json"
if groupId != -1 {
path = fmt.Sprintf("messages/in_group/%d.json", groupId)
}
// if we don't have a latest id, get one a... | [
-1.080324411392212,
-0.045880332589149475,
0.8708910942077637,
-0.16860328614711761,
0.798079788684845,
-0.7857497930526733,
0.03793168440461159,
-1.6681151390075684,
-0.26938503980636597,
0.40643760561943054,
0.20458464324474335,
0.6531680226325989,
-0.6757387518882751,
1.4993667602539062... |
func NewEtcd(cl *etcd.Client, oo ...Option) Locker {
ncl := *cl
ncl.KV = namespace.NewKV(cl.KV, etcdNamespace)
ncl.Lease = namespace.NewLease(cl.Lease, etcdNamespace)
ncl.Watcher = namespace.NewWatcher(cl.Watcher, etcdNamespace)
opts := newEtcdOptions()
opts.apply(oo...)
return &etcdLocker{client: &ncl, opts: *... | [
0.5099451541900635,
-0.037486545741558075,
0.6028192043304443,
-0.5339339375495911,
-0.9991128444671631,
0.46906760334968567,
-0.36409932374954224,
-0.6030817031860352,
-0.2898172438144684,
-0.12938769161701202,
0.6109861731529236,
-0.01836428791284561,
0.07941794395446777,
0.2436284422874... |
func (l etcdLocker) Lock(ctx context.Context, oo ...Option) (Lock, error) {
return newEtcdLock(ctx, l.client, l.opts.withOptions(oo...))
} | [
-0.4050735831260681,
0.9909567832946777,
0.4144693911075592,
-0.1504431515932083,
0.23265010118484497,
0.7435909509658813,
-0.5446759462356567,
-0.8125202655792236,
-0.12198355793952942,
-1.0986512899398804,
0.23957227170467377,
0.07955246418714523,
0.10795208811759949,
-0.5720860958099365... |
func (l *etcdLock) Unlock() {
if l.cancel != nil {
l.cancel()
}
} | [
0.17974494397640228,
0.9404937624931335,
0.4258235991001129,
0.599621057510376,
-0.18368001282215118,
0.6700554490089417,
-0.13316665589809418,
1.4675014019012451,
-0.42473000288009644,
0.004953746683895588,
0.543056070804596,
-0.06694182753562927,
-0.3160293698310852,
-0.49894142150878906... |
func (regex *Regex) String() string {
return regex.raw
} | [
-0.16694948077201843,
-0.5758342146873474,
0.19610196352005005,
-0.17915479838848114,
-0.09999608248472214,
0.28228405117988586,
0.7569544911384583,
-0.33704873919487,
0.19682632386684418,
-1.0765039920806885,
-0.17776106297969818,
1.122228980064392,
0.33230480551719666,
-0.913309514522552... |
func (regex *Regex) GroupNames() []string {
return regex.groupNames
} | [
-0.43509432673454285,
0.167633056640625,
0.1643744260072708,
0.35620731115341187,
0.07136021554470062,
-0.07296182960271835,
-0.3285726010799408,
0.1424345076084137,
0.05646749958395958,
-0.30126890540122986,
-0.1554020792245865,
1.1055539846420288,
-0.08755753934383392,
-0.122812010347843... |
func (regex *Regex) Match(entire bool, str string) map[string]string {
compiled := regex.compiled
captured := compiled.FindStringSubmatch(str)
if captured == nil || (entire && len(captured[0]) != len(str)) {
return nil
}
result := make(map[string]string, compiled.NumSubexp())
for i, name := range compiled.Sube... | [
0.08350551128387451,
-0.3399330973625183,
0.6055812239646912,
0.49499210715293884,
-1.3911381959915161,
-0.31017816066741943,
0.3151094615459442,
0.966385006904602,
-0.5043991208076477,
0.39326897263526917,
-0.7605386972427368,
0.18176721036434174,
-0.36833614110946655,
-0.517329752445221,... |
func (regex Regex) MarshalJSON() ([]byte, error) {
return json.Marshal(regex.String())
} | [
-0.1944904923439026,
-0.2714534401893616,
0.4207622706890106,
-0.09311116486787796,
0.06964142620563507,
-0.7383660078048706,
0.10004270821809769,
1.3225325345993042,
0.5860081315040588,
-0.46019604802131653,
-0.6822196841239929,
1.7235291004180908,
-0.3799338638782501,
-0.3204431533813476... |
func (regex *Regex) UnmarshalJSON(b []byte) error {
var v interface{}
if err := json.Unmarshal(b, &v); err != nil {
return err
}
switch value := v.(type) {
case string:
return regex.init(value)
default:
return xerrors.New("invalid regex")
}
} | [
-0.532964289188385,
0.39473387598991394,
0.7579695582389832,
-0.408133864402771,
0.07248106598854065,
-0.539394199848175,
0.40886157751083374,
0.6280751824378967,
0.41467976570129395,
-0.02327018603682518,
-0.23458869755268097,
1.145310878753662,
-0.6898360848426819,
-0.30880042910575867,
... |
func (_m *MockGitService) Clone(_a0 context.Context, _a1 string) (*git.Repository, error) {
ret := _m.Called(_a0, _a1)
var r0 *git.Repository
if rf, ok := ret.Get(0).(func(context.Context, string) *git.Repository); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*git.Repository)
}
... | [
-0.42801326513290405,
-0.506711483001709,
0.638466477394104,
-0.6078498959541321,
-0.09559711068868637,
-0.22692641615867615,
0.19494085013866425,
0.1820596158504486,
-0.15894441306591034,
0.7862697243690491,
0.5531192421913147,
0.4370802044868469,
0.11177340894937515,
-0.16688360273838043... |
func (_m *MockGitService) Commit(ctx context.Context, rootPath string, changesPath string, msg string) error {
ret := _m.Called(ctx, rootPath, changesPath, msg)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, string, string, string) error); ok {
r0 = rf(ctx, rootPath, changesPath, msg)
} else {
r0 ... | [
-0.5921492576599121,
-0.4513680636882782,
0.5800338387489319,
0.7242665886878967,
-0.08400502800941467,
0.3011578619480133,
0.9661609530448914,
0.221459299325943,
-0.9438261389732361,
0.22685138881206512,
0.8194159865379333,
-0.08528777211904526,
-0.2728291153907776,
0.44542285799980164,
... |
func (_m *MockGitService) MasterPath() string {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
} | [
0.08238305896520615,
-0.2420988827943802,
0.21800804138183594,
0.5903819799423218,
-0.476155161857605,
0.2725074589252472,
1.0348759889602661,
1.007533311843872,
0.10872459411621094,
0.27200862765312195,
-0.27037158608436584,
-0.18487486243247986,
-0.46618279814720154,
-0.27385616302490234... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.