text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (i *Item) Dispose() {
i.disposed = true
i.owner = nil
} | [
0.11798138171434402,
-0.6876322031021118,
0.1519434154033661,
0.04556645452976227,
1.0261235237121582,
-0.18688799440860748,
0.5783020853996277,
0.32461339235305786,
-0.28997331857681274,
-1.2027112245559692,
-0.9236835241317749,
-0.02567467838525772,
-0.17244172096252441,
0.80949348211288... |
func (i *Item) ID() ID {
return i.id
} | [
0.12410357594490051,
-1.1921671628952026,
-0.13263481855392456,
1.0304292440414429,
0.6435471773147583,
1.4999663829803467,
0.6701794266700745,
0.4637896418571472,
1.0506980419158936,
-0.4604051411151886,
-0.45182088017463684,
0.08423309773206711,
-0.6152665019035339,
-0.3188410997390747,
... |
func (i *Item) Spec() ItemSpec {
return i.spec
} | [
-0.3532761335372925,
-0.04862401261925697,
-0.028990404680371284,
0.2392442673444748,
0.005960878450423479,
0.44656333327293396,
0.607899010181427,
0.021853823214769363,
0.056776754558086395,
-0.03438323363661766,
-0.18742303550243378,
0.23465923964977264,
0.6060462594032288,
-1.4134020805... |
func (i *Item) OwnerID() ID {
if i.owner != nil {
return i.owner.ID
}
return NilID
} | [
0.2875157296657562,
-0.5598915815353394,
0.2658228874206543,
1.384914517402649,
0.0308674443513155,
0.3049199879169464,
1.043770432472229,
-0.057347241789102554,
0.6811973452568054,
0.39231550693511963,
0.12469254434108734,
0.27057626843452454,
-0.4527256190776825,
-0.01749059371650219,
... |
func (i *Item) OwnerName() string {
if i.owner != nil {
return i.owner.Name
}
return ""
} | [
-0.15430939197540283,
-0.1024276465177536,
0.4238797426223755,
1.3556544780731201,
-0.5768615007400513,
-0.3996092677116394,
0.6029458045959473,
-0.38403892517089844,
0.2308225780725479,
0.2821750342845917,
-0.019368011504411697,
-0.4579874873161316,
-0.15077568590641022,
-0.70068317651748... |
func (i *Item) DisplayName() string {
result := i.spec.Category
if len(i.spec.Place) > 0 {
result += ", "
result += i.spec.Place
}
return result
} | [
-0.5207797288894653,
-0.14392432570457458,
0.5439223051071167,
-0.5317488312721252,
-0.36154669523239136,
0.09906049072742462,
0.09662647545337677,
0.25861936807632446,
0.5804807543754578,
0.8464755415916443,
0.3899626135826111,
-0.8339605331420898,
0.5821776986122131,
-0.21371273696422577... |
func (i *Item) Disposed() bool {
return i.disposed
} | [
-0.5238606333732605,
-0.6043699979782104,
0.41814348101615906,
-0.5507612228393555,
0.5251990556716919,
0.5412619709968567,
0.5778679847717285,
0.5254972577095032,
-0.00782881397753954,
-1.2153258323669434,
-1.695193886756897,
-0.3163488507270813,
-0.5817880630493164,
0.3104814291000366,
... |
func NewClient(url string, opts ...func(c *Client)) *Client {
c := &Client{
URL: url,
Connection: &http.Client{},
Headers: make(map[string]string),
subscribed: make(map[chan *Event]chan struct{}),
maxBufferSize: 1 << 16,
}
for _, opt := range opts {
opt(c)
}
return c
} | [
0.5320248007774353,
0.2449074387550354,
0.4814315438270569,
-0.20743650197982788,
-0.4733227491378784,
-0.5531004071235657,
0.2931423485279083,
-0.638288140296936,
0.0025504312943667173,
-0.6582964658737183,
-0.28176748752593994,
0.7064333558082581,
-0.21472230553627014,
-0.827377617359161... |
func (c *Client) Subscribe(stream string, handler func(msg *Event)) error {
return c.SubscribeWithContext(context.Background(), stream, handler)
} | [
0.995974600315094,
0.1999429315328598,
0.4868794083595276,
0.8180062174797058,
-0.5708467364311218,
-0.0231188777834177,
-0.1396283060312271,
-0.4902518391609192,
-0.648131251335144,
-0.9222846627235413,
-0.47279295325279236,
1.392316460609436,
-0.21976344287395477,
0.7627134919166565,
-... |
func (c *Client) SubscribeWithContext(ctx context.Context, stream string, handler func(msg *Event)) error {
operation := func() error {
resp, err := c.request(ctx, stream)
if err != nil {
return err
}
if validator := c.ResponseValidator; validator != nil {
err = validator(c, resp)
if err != nil {
... | [
0.6091487407684326,
-0.5461536645889282,
1.0695031881332397,
0.41832780838012695,
-0.7088253498077393,
-0.3299581706523895,
-0.613267183303833,
-0.6956565380096436,
0.06902536749839783,
0.08050841838121414,
-0.24697984755039215,
0.5814263224601746,
-0.011436652392148972,
0.0740347728133201... |
func (c *Client) SubscribeChan(stream string, ch chan *Event) error {
return c.SubscribeChanWithContext(context.Background(), stream, ch)
} | [
0.35732319951057434,
-0.554993748664856,
0.49219250679016113,
0.14977051317691803,
0.039179857820272446,
-0.024375665932893753,
-0.32546016573905945,
-0.34684091806411743,
0.44214609265327454,
-0.45465466380119324,
-0.6707475185394287,
1.8609635829925537,
-0.3274071514606476,
-0.1079598739... |
func (c *Client) SubscribeChanWithContext(ctx context.Context, stream string, ch chan *Event) error {
var connected bool
errch := make(chan error)
c.mu.Lock()
c.subscribed[ch] = make(chan struct{})
c.mu.Unlock()
operation := func() error {
resp, err := c.request(ctx, stream)
if err != nil {
return err
}... | [
0.6653199195861816,
-0.8175706267356873,
1.0770312547683716,
0.24840913712978363,
-0.39855116605758667,
-0.4618309736251831,
-0.34817832708358765,
-1.0695945024490356,
0.32715272903442383,
0.19458232820034027,
-0.17347906529903412,
0.33603397011756897,
-0.0036222287453711033,
0.19370141625... |
func (c *Client) SubscribeRaw(handler func(msg *Event)) error {
return c.Subscribe("", handler)
} | [
0.14941230416297913,
0.5647880434989929,
0.6298125386238098,
-0.36622899770736694,
-1.2292753458023071,
0.514441728591919,
-0.29870229959487915,
-0.04667237773537636,
-0.23506896197795868,
-1.5183014869689941,
-1.14043128490448,
0.736314058303833,
0.981898844242096,
0.8426688313484192,
-... |
func (c *Client) SubscribeRawWithContext(ctx context.Context, handler func(msg *Event)) error {
return c.SubscribeWithContext(ctx, "", handler)
} | [
-0.04440702870488167,
-0.08757167309522629,
0.7107731103897095,
-0.19394534826278687,
-1.3472940921783447,
0.048584502190351486,
-0.5128898620605469,
-0.5888224840164185,
0.7620159387588501,
-0.6596516966819763,
-0.8711344599723816,
0.39424771070480347,
0.8057214617729187,
0.38573569059371... |
func (c *Client) SubscribeChanRaw(ch chan *Event) error {
return c.SubscribeChan("", ch)
} | [
-0.3199046552181244,
0.34575510025024414,
0.7503384947776794,
-0.300002783536911,
-0.9659762382507324,
0.09828353673219681,
-0.8524641990661621,
-0.48216596245765686,
0.3952796459197998,
-0.9675307273864746,
-1.4784655570983887,
0.658279538154602,
0.6060908436775208,
0.7590829730033875,
... |
func (c *Client) SubscribeChanRawWithContext(ctx context.Context, ch chan *Event) error {
return c.SubscribeChanWithContext(ctx, "", ch)
} | [
-0.21696090698242188,
-0.17406713962554932,
0.8149574995040894,
-0.2680632472038269,
-1.0688719749450684,
0.005298703908920288,
-0.9411319494247437,
-0.9330929517745972,
1.1984753608703613,
-0.4039081037044525,
-0.9481931924819946,
0.4173601567745209,
0.5171860456466675,
0.0159785784780979... |
func (c *Client) Unsubscribe(ch chan *Event) {
c.mu.Lock()
defer c.mu.Unlock()
if c.subscribed[ch] != nil {
c.subscribed[ch] <- struct{}{}
}
} | [
0.6383517980575562,
0.2549036145210266,
0.24001042544841766,
-0.46785780787467957,
-0.4430840015411377,
-0.48025017976760864,
-0.09906043857336044,
-0.10522796213626862,
-0.6621394753456116,
-0.17139582335948944,
-1.1287223100662231,
0.5375285744667053,
-0.5834711790084839,
0.1213243603706... |
func (c *Client) OnDisconnect(fn ConnCallback) {
c.disconnectcb = fn
} | [
1.1059350967407227,
-1.1631909608840942,
0.4503544569015503,
0.16962167620658875,
-0.8612620234489441,
0.22983379662036896,
-0.4036332368850708,
-0.05213302746415138,
0.07981090992689133,
0.32881301641464233,
-0.643168032169342,
-0.6464136242866516,
0.24449844658374786,
-0.4548576176166534... |
func (c *Client) OnConnect(fn ConnCallback) {
c.connectedcb = fn
} | [
1.1455426216125488,
-1.0477068424224854,
0.5190042853355408,
-0.23145997524261475,
-1.2999051809310913,
0.34908241033554077,
-0.07487847656011581,
-0.44090062379837036,
-0.3989090323448181,
0.36839058995246887,
-0.36127132177352905,
-0.6200759410858154,
-0.0010830494575202465,
-0.074996858... |
func NewClient() (*Client, error) {
var seedTickers = []string{"AAPL", "GOOG", "MSFT"}
jar, err := cookiejar.New(nil)
if err != nil {
return nil, err
}
httpClient := &http.Client{Jar: jar}
c := Client{httpClient: httpClient}
i := rand.Intn(len(seedTickers))
ticker := seedTickers[i]
crumb, err := getCrumb(c.... | [
0.45569494366645813,
0.01914832554757595,
0.5413676500320435,
-0.2179408073425293,
-0.3002379834651947,
0.14806364476680756,
1.4031498432159424,
-0.5050157904624939,
0.3596382141113281,
0.03589700162410736,
0.038999900221824646,
0.9392290115356445,
-0.3412758409976959,
0.16138337552547455,... |
func (c *Client) GetSecurityDataString(ticker string, startDate, endDate time.Time, field Field) (string, error) {
resp, err := c.makeRequest(ticker, startDate, endDate, field)
if err != nil {
return "", err
}
if err := validateResponse(resp); err != nil {
return "", err
}
body, err := ioutil.ReadAll(resp.B... | [
-0.27760419249534607,
0.17863325774669647,
0.5757269859313965,
0.3029159605503082,
-0.1613231748342514,
0.8543006777763367,
-0.3640155494213104,
-1.6917067766189575,
-0.7384393811225891,
-0.13074122369289398,
-0.36114224791526794,
1.2367929220199585,
-0.5594041347503662,
-0.770544946193695... |
func (c *Client) GetSecurityData(ticker string, startDate, endDate time.Time, field Field) ([]*Price, error) {
prices := []*Price{}
resp, err := c.makeRequest(ticker, startDate, endDate, field)
if err != nil {
return prices, err
}
if err := validateResponse(resp); err != nil {
return prices, err
}
if err :... | [
-0.6596564054489136,
0.6664857864379883,
0.6162286400794983,
1.1273689270019531,
0.5506169199943542,
-0.08569671958684921,
-0.5120919346809387,
-0.9612816572189331,
-0.43497568368911743,
0.0993528887629509,
-0.8677190542221069,
1.1584011316299438,
-0.94583660364151,
-0.49616000056266785,
... |
func (date *DateTime) UnmarshalCSV(csv string) (err error) {
date.Time, err = time.Parse("2006-01-02", csv)
if err != nil {
return err
}
return nil
} | [
0.6663293838500977,
0.2844979763031006,
0.5560372471809387,
-0.6003887057304382,
-0.6673498153686523,
-0.14433130621910095,
-0.4305843710899353,
0.3143109083175659,
0.34239745140075684,
0.1603803038597107,
-0.016737589612603188,
0.24048718810081482,
0.9968420267105103,
0.032906197011470795... |
func CreateAuthenticatedHTTPTarget(target http.RoundTripper, config Config) (http.RoundTripper, error) {
keycontent, err := ioutil.ReadFile(config.KeyFile)
if err != nil {
return nil, fmt.Errorf("Failed to load private key from %s : %s", config.KeyFile, err.Error())
}
key, err := parsePrivateKey(keycontent)
if... | [
-1.1890692710876465,
-0.6905468702316284,
0.8916846513748169,
-0.09790516644716263,
-0.14829745888710022,
-0.10219888389110565,
-0.45083051919937134,
-0.6198590993881226,
-0.8677276372909546,
0.45281022787094116,
-0.6089567542076111,
-0.011031603440642357,
-0.09097107499837875,
-0.01132403... |
func add(num1 int, num2 int) int {
return num1 + num2
} | [
-0.4018199145793915,
-0.8640801906585693,
0.5387518405914307,
0.22832611203193665,
-0.5105385184288025,
1.1242108345031738,
-0.38065558671951294,
-0.19329296052455902,
-0.6381155848503113,
-0.26502668857574463,
-0.04496828094124794,
0.9279477000236511,
-0.9357891082763672,
0.32412257790565... |
func multipleAdd(num1, num2, num3 int) int {
return num1 + num2 + num3
} | [
0.034469470381736755,
-0.17980995774269104,
0.8226409554481506,
0.7257170677185059,
0.4577582776546478,
0.8758001923561096,
-0.6297191977500916,
0.14612999558448792,
0.16295994818210602,
-0.35007837414741516,
-0.34727373719215393,
-0.22780252993106842,
-1.0151183605194092,
0.27323389053344... |
func multipleReturn() (int, int) {
return 61, 19
} | [
-0.8352101445198059,
-0.30479738116264343,
0.6499504446983337,
0.009268383495509624,
0.43569645285606384,
-0.37659236788749695,
0.22641320526599884,
-0.18952541053295135,
0.46094533801078796,
-0.772264301776886,
-1.0433954000473022,
-0.5299697518348694,
-0.3260134160518646,
-0.248756438493... |
func (*claimInListR) NewStruct() *claimInListR {
return &claimInListR{}
} | [
-0.017767302691936493,
-1.5513523817062378,
0.1869792640209198,
-0.35926827788352966,
-1.593361496925354,
-0.08029326051473618,
-0.9452525973320007,
0.015850303694605827,
0.5337092280387878,
-1.1277685165405273,
0.09168259054422379,
0.8268511295318604,
0.10652628540992737,
0.82820165157318... |
func (q claimInListQuery) OneG() (*ClaimInList, error) {
return q.One(boil.GetDB())
} | [
-0.7011024355888367,
0.4046235978603363,
0.36328762769699097,
-0.04911704361438751,
-0.21189355850219727,
-0.15296657383441925,
-0.59661865234375,
0.7996229529380798,
0.4163065254688263,
-0.448130339384079,
0.12754327058792114,
0.6607745289802551,
0.021795030683279037,
1.5927118062973022,
... |
func (q claimInListQuery) OneGP() *ClaimInList {
o, err := q.One(boil.GetDB())
if err != nil {
panic(boil.WrapErr(err))
}
return o
} | [
-0.13174180686473846,
0.3473578691482544,
0.4440748393535614,
-0.14813442528247833,
-0.21379989385604858,
-0.10109766572713852,
-0.7024634480476379,
0.23722507059574127,
0.5547438859939575,
0.12129534780979156,
1.0871031284332275,
0.5112583041191101,
-0.8053249716758728,
1.242189884185791,... |
func (q claimInListQuery) OneP(exec boil.Executor) *ClaimInList {
o, err := q.One(exec)
if err != nil {
panic(boil.WrapErr(err))
}
return o
} | [
0.7189450263977051,
-0.10856880992650986,
0.614203929901123,
0.08721830695867538,
-0.1832386702299118,
0.10197578370571136,
-0.4874034821987152,
-0.3379625380039215,
0.850379467010498,
-0.4521181881427765,
0.7209790349006653,
0.013788558542728424,
-0.5328445434570312,
0.8834584355354309,
... |
func (q claimInListQuery) One(exec boil.Executor) (*ClaimInList, error) {
o := &ClaimInList{}
queries.SetLimit(q.Query, 1)
err := q.Bind(nil, exec, o)
if err != nil {
if errors.Cause(err) == sql.ErrNoRows {
return nil, sql.ErrNoRows
}
return nil, errors.Wrap(err, "model: failed to execute a one query for... | [
-0.7193505167961121,
-0.4158565104007721,
0.7296584248542786,
0.27293848991394043,
0.3691903352737427,
0.3662053048610687,
-0.42040836811065674,
0.9377433657646179,
-0.18155056238174438,
-0.4070277810096741,
-0.3864882290363312,
0.4842611253261566,
-0.091888427734375,
0.7425235509872437,
... |
func (q claimInListQuery) AllG() (ClaimInListSlice, error) {
return q.All(boil.GetDB())
} | [
-0.14801116287708282,
-0.044104352593421936,
0.5520322322845459,
0.2368421107530594,
-0.4433366060256958,
0.5898879170417786,
-1.5338401794433594,
1.2443692684173584,
0.6146937608718872,
-0.14581437408924103,
0.6092005968093872,
1.2565845251083374,
0.26243820786476135,
1.8086378574371338,
... |
func (q claimInListQuery) AllGP() ClaimInListSlice {
o, err := q.All(boil.GetDB())
if err != nil {
panic(boil.WrapErr(err))
}
return o
} | [
0.22257964313030243,
-0.10740513354539871,
0.5547727346420288,
0.1607697457075119,
-0.43819448351860046,
0.5350205302238464,
-1.7170320749282837,
0.41441836953163147,
0.6689937710762024,
0.34316834807395935,
1.3019285202026367,
1.0286632776260376,
-0.5256891846656799,
1.33683180809021,
-... |
func (q claimInListQuery) AllP(exec boil.Executor) ClaimInListSlice {
o, err := q.All(exec)
if err != nil {
panic(boil.WrapErr(err))
}
return o
} | [
1.0826817750930786,
-0.5402240753173828,
0.6804795265197754,
0.24674279987812042,
-0.332223117351532,
0.4854843318462372,
-1.3316104412078857,
0.016389774158596992,
1.14015531539917,
0.10290549695491791,
1.0077593326568604,
0.41008561849594116,
-0.22019381821155548,
0.6515491008758545,
-... |
func (q claimInListQuery) All(exec boil.Executor) (ClaimInListSlice, error) {
var o []*ClaimInList
err := q.Bind(nil, exec, &o)
if err != nil {
return nil, errors.Wrap(err, "model: failed to assign all query results to ClaimInList slice")
}
return o, nil
} | [
-0.21172818541526794,
-0.9264382719993591,
0.3148544132709503,
0.45712924003601074,
0.49051403999328613,
0.6132306456565857,
-0.5816841125488281,
0.6258752942085266,
-0.3523339331150055,
-0.5280784964561462,
-0.31616640090942383,
1.3385987281799316,
-0.3156057298183441,
1.651201605796814,
... |
func (q claimInListQuery) CountG() (int64, error) {
return q.Count(boil.GetDB())
} | [
-0.5199235081672668,
0.7097889184951782,
0.5386618971824646,
-0.05712275579571724,
-0.07762115448713303,
0.8279540538787842,
-0.3900139331817627,
1.031241536140442,
-0.3220483362674713,
0.2416437417268753,
-0.40549951791763306,
0.7540141344070435,
0.16216497123241425,
1.888465166091919,
... |
func (q claimInListQuery) CountGP() int64 {
c, err := q.Count(boil.GetDB())
if err != nil {
panic(boil.WrapErr(err))
}
return c
} | [
0.0587666779756546,
0.3858400583267212,
0.7350922226905823,
-0.05037818104028702,
-0.2025507241487503,
0.6282667517662048,
-0.9899531602859497,
0.7563480734825134,
-0.4202214181423187,
0.6566935777664185,
0.17038443684577942,
0.6488648653030396,
-0.6290795803070068,
1.2197219133377075,
-... |
func (q claimInListQuery) CountP(exec boil.Executor) int64 {
c, err := q.Count(exec)
if err != nil {
panic(boil.WrapErr(err))
}
return c
} | [
1.2019761800765991,
-0.33218979835510254,
0.6433603763580322,
0.10527347028255463,
-0.041997093707323074,
0.7389709949493408,
-0.7025457620620728,
0.2039615958929062,
0.36038675904273987,
0.1640896499156952,
0.009141268208622932,
-0.01671033725142479,
-0.3328443765640259,
0.838977038860321... |
func (q claimInListQuery) Count(exec boil.Executor) (int64, error) {
var count int64
queries.SetSelect(q.Query, nil)
queries.SetCount(q.Query)
err := q.Query.QueryRow(exec).Scan(&count)
if err != nil {
return 0, errors.Wrap(err, "model: failed to count claim_in_list rows")
}
return count, nil
} | [
0.355716347694397,
-0.07803401350975037,
0.5335618853569031,
-0.03314605727791786,
-0.0969015508890152,
-0.3692367672920227,
-0.24767863750457764,
0.14509600400924683,
-0.14344078302383423,
-0.31849926710128784,
-0.35386401414871216,
0.22559502720832825,
0.5241852402687073,
1.5084563493728... |
func (q claimInListQuery) ExistsG() (bool, error) {
return q.Exists(boil.GetDB())
} | [
-0.9122677445411682,
0.892683207988739,
0.5618407130241394,
-0.32459455728530884,
0.10870512574911118,
0.9609740972518921,
-0.8223474621772766,
0.9994760155677795,
-0.6125184297561646,
0.31999263167381287,
-0.22627538442611694,
0.3248649537563324,
-0.08965352922677994,
1.3643232583999634,
... |
func (q claimInListQuery) ExistsGP() bool {
e, err := q.Exists(boil.GetDB())
if err != nil {
panic(boil.WrapErr(err))
}
return e
} | [
-0.6144473552703857,
0.5967133641242981,
0.660551905632019,
-0.6758888363838196,
0.19924870133399963,
0.569237470626831,
-1.2474812269210815,
0.3766241669654846,
-0.19229836761951447,
0.8079248666763306,
0.589859664440155,
0.23437650501728058,
-1.0248198509216309,
0.9390960931777954,
-0.... |
func (q claimInListQuery) ExistsP(exec boil.Executor) bool {
e, err := q.Exists(exec)
if err != nil {
panic(boil.WrapErr(err))
}
return e
} | [
0.5380435585975647,
-0.047094739973545074,
0.5652360916137695,
-0.18016192317008972,
0.11628825962543488,
0.6363603472709656,
-1.0619370937347412,
-0.009001548402011395,
0.6737886071205139,
-0.11327256262302399,
0.1751866489648819,
0.11090391874313354,
-0.5305103659629822,
0.33233520388603... |
func (q claimInListQuery) Exists(exec boil.Executor) (bool, error) {
var count int64
queries.SetSelect(q.Query, nil)
queries.SetCount(q.Query)
queries.SetLimit(q.Query, 1)
err := q.Query.QueryRow(exec).Scan(&count)
if err != nil {
return false, errors.Wrap(err, "model: failed to check if claim_in_list exists"... | [
-0.7670104503631592,
-0.3128969669342041,
0.5651340484619141,
-0.5167950987815857,
0.2511526644229889,
-0.03598294034600258,
-1.143744945526123,
0.28690797090530396,
0.15777163207530975,
-0.7474302649497986,
-0.272041916847229,
0.38336777687072754,
0.34860026836395264,
1.0083292722702026,
... |
func (o *ClaimInList) ListClaim(mods ...qm.QueryMod) claimQuery {
queryMods := []qm.QueryMod{
qm.Where("claim_id=?", o.ListClaimID),
}
queryMods = append(queryMods, mods...)
query := Claims(queryMods...)
queries.SetFrom(query.Query, "`claim`")
return query
} | [
0.3633558452129364,
-0.679155707359314,
0.5013086199760437,
0.3412248194217682,
0.30296164751052856,
-0.7663235068321228,
-1.3314064741134644,
0.3977403938770294,
1.0187110900878906,
-0.9233728647232056,
0.03822840377688408,
0.5740144848823547,
0.018919050693511963,
0.8623708486557007,
-... |
func (claimInListL) LoadListClaim(e boil.Executor, singular bool, maybeClaimInList interface{}, mods queries.Applicator) error {
var slice []*ClaimInList
var object *ClaimInList
if singular {
object = maybeClaimInList.(*ClaimInList)
} else {
slice = *maybeClaimInList.(*[]*ClaimInList)
}
args := make([]inter... | [
-0.09758064895868301,
-0.4085251986980438,
0.9318602681159973,
-0.5959334373474121,
-0.008960357867181301,
-0.4364958703517914,
-0.6381345391273499,
0.46941691637039185,
0.9520273804664612,
-0.11286433041095734,
-0.035166844725608826,
0.18390756845474243,
-0.17626938223838806,
1.2350273132... |
func (o *ClaimInList) SetListClaimG(insert bool, related *Claim) error {
return o.SetListClaim(boil.GetDB(), insert, related)
} | [
-0.3651178777217865,
0.08755312860012054,
0.5478597283363342,
-0.5694695115089417,
-0.7062230706214905,
0.4157152771949768,
-1.1396806240081787,
1.5056945085525513,
0.3269079923629761,
0.11923116445541382,
-1.1812061071395874,
0.2385939210653305,
-0.3385677635669708,
1.6026439666748047,
... |
func (o *ClaimInList) SetListClaimP(exec boil.Executor, insert bool, related *Claim) {
if err := o.SetListClaim(exec, insert, related); err != nil {
panic(boil.WrapErr(err))
}
} | [
0.669302761554718,
-0.5041613578796387,
0.7991299629211426,
-0.20770658552646637,
-0.3616902530193329,
0.6181883215904236,
-0.6683602333068848,
0.17926624417304993,
0.6923422813415527,
0.008655909448862076,
-0.7266926169395447,
0.1889529824256897,
-0.9259983897209167,
0.6874855160713196,
... |
func (o *ClaimInList) SetListClaimGP(insert bool, related *Claim) {
if err := o.SetListClaim(boil.GetDB(), insert, related); err != nil {
panic(boil.WrapErr(err))
}
} | [
-0.15454436838626862,
-0.0758073702454567,
0.7035146951675415,
-0.4820249676704407,
-0.4599404036998749,
0.6074946522712708,
-1.1927433013916016,
0.7402405142784119,
0.14815561473369598,
0.24568580090999603,
-0.5653436779975891,
0.23104126751422882,
-1.1142793893814087,
1.1349632740020752,... |
func (o *ClaimInList) SetListClaim(exec boil.Executor, insert bool, related *Claim) error {
var err error
if insert {
if err = related.Insert(exec, boil.Infer()); err != nil {
return errors.Wrap(err, "failed to insert into foreign table")
}
}
updateQuery := fmt.Sprintf(
"UPDATE `claim_in_list` SET %s WHER... | [
0.37454313039779663,
-0.9038684964179993,
0.7907176613807678,
-0.4333578944206238,
-0.26415249705314636,
-0.11560492217540741,
-0.7215709090232849,
0.8004499673843384,
0.6125544905662537,
-0.23568794131278992,
-1.099502444267273,
0.4947863519191742,
-0.407168984413147,
0.9087178111076355,
... |
func ClaimInLists(mods ...qm.QueryMod) claimInListQuery {
mods = append(mods, qm.From("`claim_in_list`"))
return claimInListQuery{NewQuery(mods...)}
} | [
0.5139816403388977,
-0.2235574722290039,
0.406141459941864,
0.47994276881217957,
-0.578403115272522,
0.4760049283504486,
-0.8902274966239929,
0.7101384401321411,
1.5440455675125122,
-0.7232282757759094,
-0.2518821060657501,
1.0233012437820435,
-0.642108142375946,
0.8334702849388123,
-1.6... |
func FindClaimInListG(iD uint64, selectCols ...string) (*ClaimInList, error) {
return FindClaimInList(boil.GetDB(), iD, selectCols...)
} | [
-0.6529751420021057,
0.12251082062721252,
0.4253136217594147,
0.1073375716805458,
-0.7092500925064087,
-0.15299084782600403,
-0.34266725182533264,
0.5871747732162476,
-0.07839691638946533,
-0.2077752947807312,
-0.6496396660804749,
0.1984793096780777,
-0.06319458037614822,
1.453076601028442... |
func FindClaimInListP(exec boil.Executor, iD uint64, selectCols ...string) *ClaimInList {
retobj, err := FindClaimInList(exec, iD, selectCols...)
if err != nil {
panic(boil.WrapErr(err))
}
return retobj
} | [
0.2684232294559479,
-0.46887683868408203,
0.5521964430809021,
0.6227176189422607,
-0.4843285381793976,
0.1246434822678566,
-0.1933186799287796,
-0.4526679515838623,
0.006694222334772348,
0.019540900364518166,
-0.5189040899276733,
0.013920329511165619,
-1.0795832872390747,
0.6906778216362,
... |
func FindClaimInListGP(iD uint64, selectCols ...string) *ClaimInList {
retobj, err := FindClaimInList(boil.GetDB(), iD, selectCols...)
if err != nil {
panic(boil.WrapErr(err))
}
return retobj
} | [
-0.32857075333595276,
-0.0438590906560421,
0.49023765325546265,
0.4810137152671814,
-0.7542060017585754,
-0.0902789756655693,
-0.5376598834991455,
-0.12560680508613586,
-0.15532079339027405,
0.25107458233833313,
-0.2616772949695587,
0.12062713503837585,
-1.1522376537322998,
1.2699398994445... |
func FindClaimInList(exec boil.Executor, iD uint64, selectCols ...string) (*ClaimInList, error) {
claimInListObj := &ClaimInList{}
sel := "*"
if len(selectCols) > 0 {
sel = strings.Join(strmangle.IdentQuoteSlice(dialect.LQ, dialect.RQ, selectCols), ",")
}
query := fmt.Sprintf(
"select %s from `claim_in_list` ... | [
-0.16139154136180878,
-0.7057774662971497,
0.6286236047744751,
0.03697667270898819,
-0.5555768013000488,
-0.31856876611709595,
-0.4150187373161316,
-0.060184296220541,
0.16153499484062195,
-0.1328679919242859,
-0.6815531253814697,
0.07020773738622665,
-0.6849087476730347,
0.682828724384307... |
func (o *ClaimInList) InsertG(columns boil.Columns) error {
return o.Insert(boil.GetDB(), columns)
} | [
-1.09115731716156,
1.3151710033416748,
0.3670162856578827,
-0.1904493123292923,
0.04513150453567505,
1.1253738403320312,
0.08213295787572861,
1.2526072263717651,
-0.8462446928024292,
0.23254121840000153,
-0.9119328260421753,
0.2216772437095642,
-0.5616256594657898,
1.2565213441848755,
-0... |
func (o *ClaimInList) InsertP(exec boil.Executor, columns boil.Columns) {
if err := o.Insert(exec, columns); err != nil {
panic(boil.WrapErr(err))
}
} | [
0.3528650999069214,
0.7261350750923157,
0.47392737865448,
-0.032220903784036636,
0.0952991470694542,
0.9017064571380615,
-0.3996139168739319,
0.609197199344635,
-0.30706286430358887,
0.22641071677207947,
-0.2890084385871887,
-0.1162177100777626,
-1.3169467449188232,
0.17966829240322113,
... |
func (o *ClaimInList) InsertGP(columns boil.Columns) {
if err := o.Insert(boil.GetDB(), columns); err != nil {
panic(boil.WrapErr(err))
}
} | [
-0.7851480841636658,
1.162485957145691,
0.603850781917572,
-0.06524917483329773,
0.05119882524013519,
1.0094408988952637,
-0.35906946659088135,
0.7494638562202454,
-0.8528475761413574,
0.6900716423988342,
-0.27633410692214966,
-0.08384039998054504,
-1.556410312652588,
0.6095962524414062,
... |
func (o *ClaimInList) Insert(exec boil.Executor, columns boil.Columns) error {
if o == nil {
return errors.New("model: no claim_in_list provided for insertion")
}
var err error
nzDefaults := queries.NonZeroDefaultSet(claimInListColumnsWithDefault, o)
key := makeCacheKey(columns, nzDefaults)
claimInListInsert... | [
-0.8298676609992981,
0.1433449685573578,
0.6853356957435608,
-0.07206594198942184,
-0.2615375220775604,
-0.12319797277450562,
-0.11474372446537018,
0.4873866140842438,
0.04349150508642197,
-0.25086697936058044,
-0.950201690196991,
0.13288120925426483,
-0.605252742767334,
0.7200872898101807... |
func (o *ClaimInList) UpdateG(columns boil.Columns) error {
return o.Update(boil.GetDB(), columns)
} | [
-1.3039597272872925,
0.25152257084846497,
0.29047438502311707,
-0.06205533444881439,
-0.692526638507843,
0.5577903389930725,
-0.17827647924423218,
1.2359007596969604,
-0.5012825727462769,
0.6687208414077759,
-0.2878527045249939,
0.7450540661811829,
0.08166728168725967,
0.9668228030204773,
... |
func (o *ClaimInList) UpdateP(exec boil.Executor, columns boil.Columns) {
err := o.Update(exec, columns)
if err != nil {
panic(boil.WrapErr(err))
}
} | [
0.09853819757699966,
-0.4263010323047638,
0.4571722149848938,
0.02475742995738983,
-0.7208486795425415,
0.46096137166023254,
-0.6597221493721008,
0.42486572265625,
0.036078114062547684,
0.5518942475318909,
0.1420898139476776,
0.4091603755950928,
-0.730398952960968,
-0.08526317775249481,
... |
func (o *ClaimInList) UpdateGP(columns boil.Columns) {
err := o.Update(boil.GetDB(), columns)
if err != nil {
panic(boil.WrapErr(err))
}
} | [
-0.9977015256881714,
-0.2148621827363968,
0.36828097701072693,
-0.06739230453968048,
-0.9801870584487915,
0.389331191778183,
-0.7756869792938232,
0.6342485547065735,
-0.516791582107544,
1.1004557609558105,
0.46953141689300537,
0.8323456645011902,
-0.9227178692817688,
0.46891772747039795,
... |
func (o *ClaimInList) Update(exec boil.Executor, columns boil.Columns) error {
var err error
key := makeCacheKey(columns, nil)
claimInListUpdateCacheMut.RLock()
cache, cached := claimInListUpdateCache[key]
claimInListUpdateCacheMut.RUnlock()
if !cached {
wl := columns.UpdateColumnSet(
claimInListAllColumns,... | [
-1.0345720052719116,
-0.6387119889259338,
0.6355867385864258,
-0.1974937617778778,
-0.7474206686019897,
-0.3442230522632599,
-0.1831502467393875,
0.3466671407222748,
0.2990375757217407,
0.26419633626937866,
-0.4271984100341797,
0.7308844923973083,
-0.02220926433801651,
0.7315129041671753,
... |
func (q claimInListQuery) UpdateAllP(exec boil.Executor, cols M) {
err := q.UpdateAll(exec, cols)
if err != nil {
panic(boil.WrapErr(err))
}
} | [
0.340440034866333,
-0.6913615465164185,
0.6544299721717834,
0.16862109303474426,
-0.9760081171989441,
0.3458753824234009,
-1.0443377494812012,
0.5378644466400146,
0.7460014820098877,
0.5425782203674316,
0.39463889598846436,
0.5509491562843323,
-0.4883666932582855,
0.2051239311695099,
-0.... |
func (q claimInListQuery) UpdateAllG(cols M) error {
return q.UpdateAll(boil.GetDB(), cols)
} | [
-1.0678290128707886,
0.08135700225830078,
0.6027491092681885,
0.008015590719878674,
-1.311632752418518,
0.37170857191085815,
-1.1681106090545654,
1.087965965270996,
0.15854349732398987,
0.3181520402431488,
-0.04669025167822838,
0.7555919885635376,
-0.15518483519554138,
1.157456874847412,
... |
func (q claimInListQuery) UpdateAll(exec boil.Executor, cols M) error {
queries.SetUpdate(q.Query, cols)
_, err := q.Query.Exec(exec)
if err != nil {
return errors.Wrap(err, "model: unable to update all for claim_in_list")
}
return nil
} | [
-0.12051637470722198,
-0.7464708089828491,
0.6001309752464294,
0.12795104086399078,
-0.49889546632766724,
0.3546006381511688,
-1.158167839050293,
0.7385089993476868,
-0.5094170570373535,
-0.2307220995426178,
-0.20338985323905945,
0.8512775301933289,
0.41953930258750916,
0.8600211143493652,... |
func (o ClaimInListSlice) UpdateAllG(cols M) error {
return o.UpdateAll(boil.GetDB(), cols)
} | [
-1.36764657497406,
-0.014968471601605415,
0.40812745690345764,
-0.01688491553068161,
-1.2620311975479126,
0.13840068876743317,
-1.000881314277649,
1.1601738929748535,
-0.13926777243614197,
0.898004949092865,
-0.22881650924682617,
0.615906834602356,
-0.18224982917308807,
1.056282877922058,
... |
func (o ClaimInListSlice) UpdateAllGP(cols M) {
err := o.UpdateAll(boil.GetDB(), cols)
if err != nil {
panic(boil.WrapErr(err))
}
} | [
-1.1488490104675293,
-0.3974899351596832,
0.451161652803421,
0.19485318660736084,
-1.0722324848175049,
0.04744842275977135,
-1.2051297426223755,
0.5697814226150513,
-0.20306238532066345,
0.8985205292701721,
0.23682230710983276,
0.8050193190574646,
-0.6186872720718384,
0.6260431408882141,
... |
func (o ClaimInListSlice) UpdateAllP(exec boil.Executor, cols M) {
err := o.UpdateAll(exec, cols)
if err != nil {
panic(boil.WrapErr(err))
}
} | [
0.0032339459285140038,
-0.6536108255386353,
0.5193331837654114,
0.1723494678735733,
-0.917688250541687,
0.2421126812696457,
-0.848533570766449,
0.6044822931289673,
0.496379554271698,
0.9119338989257812,
0.11060187965631485,
0.5894258618354797,
-0.4284345209598541,
0.027364581823349,
-0.0... |
func (o ClaimInListSlice) UpdateAll(exec boil.Executor, cols M) error {
ln := int64(len(o))
if ln == 0 {
return nil
}
if len(cols) == 0 {
return errors.New("model: update all requires at least one column argument")
}
colNames := make([]string, len(cols))
args := make([]interface{}, len(cols))
i := 0
for... | [
-0.6825634837150574,
-0.6939738392829895,
0.941832423210144,
0.30933278799057007,
-0.5241149663925171,
-0.014289738610386848,
-0.6769453883171082,
0.5395488142967224,
-0.6485784649848938,
0.13255257904529572,
-0.3655606806278229,
0.5988389253616333,
0.09471850097179413,
0.6957162022590637,... |
func (o *ClaimInList) UpsertG(updateColumns, insertColumns boil.Columns) error {
return o.Upsert(boil.GetDB(), updateColumns, insertColumns)
} | [
-1.2406105995178223,
0.9719919562339783,
0.51097571849823,
-0.34701263904571533,
-0.34103161096572876,
0.3088208734989166,
-0.3901712894439697,
1.0355079174041748,
-0.2084045559167862,
0.7996110320091248,
-0.4372543394565582,
-0.010815570130944252,
-0.22036564350128174,
0.9344302415847778,... |
func (o *ClaimInList) UpsertGP(updateColumns, insertColumns boil.Columns) {
if err := o.Upsert(boil.GetDB(), updateColumns, insertColumns); err != nil {
panic(boil.WrapErr(err))
}
} | [
-1.2764276266098022,
0.47308993339538574,
0.7254694700241089,
-0.32825717329978943,
-0.3128543794155121,
0.3892088830471039,
-0.6163146495819092,
0.5510133504867554,
-0.3461098074913025,
1.0824545621871948,
-0.07968869805335999,
-0.01498044840991497,
-1.14423406124115,
0.33013731241226196,... |
func (o *ClaimInList) UpsertP(exec boil.Executor, updateColumns, insertColumns boil.Columns) {
if err := o.Upsert(exec, updateColumns, insertColumns); err != nil {
panic(boil.WrapErr(err))
}
} | [
-0.16173501312732697,
0.17067544162273407,
0.6867942214012146,
-0.13098035752773285,
-0.08734951168298721,
0.29696619510650635,
-0.4338732957839966,
0.4389033317565918,
0.404058575630188,
0.7929968237876892,
-0.20585456490516663,
-0.2895309031009674,
-0.9821128249168396,
0.0566783845424652... |
func (o *ClaimInList) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error {
if o == nil {
return errors.New("model: no claim_in_list provided for upsert")
}
nzDefaults := queries.NonZeroDefaultSet(claimInListColumnsWithDefault, o)
nzUniques := queries.NonZeroDefaultSet(mySQLClaimInListUni... | [
-0.7509337663650513,
-0.021177032962441444,
0.7581076622009277,
-0.025765733793377876,
-0.15556643903255463,
-0.2028566598892212,
-0.026075202971696854,
0.4505646526813507,
-0.11460445076227188,
0.13371002674102783,
-1.206987738609314,
-0.05544797331094742,
-0.5218132734298706,
0.662938356... |
func (o *ClaimInList) DeleteG() error {
return o.Delete(boil.GetDB())
} | [
-0.5884076356887817,
0.5834590792655945,
0.4794880747795105,
0.16646768152713776,
-0.15537533164024353,
0.6861364245414734,
0.01873411424458027,
1.5277085304260254,
-0.13548606634140015,
-0.149917334318161,
-0.5942677855491638,
0.7776839733123779,
-0.16511847078800201,
1.659103274345398,
... |
func (o *ClaimInList) DeleteP(exec boil.Executor) {
err := o.Delete(exec)
if err != nil {
panic(boil.WrapErr(err))
}
} | [
0.905454695224762,
-0.12652473151683807,
0.4769856035709381,
0.29394158720970154,
0.006259942427277565,
0.5573239326477051,
-0.34599679708480835,
0.5230808854103088,
0.5302038788795471,
-0.37719419598579407,
0.1890634298324585,
0.5068790316581726,
-0.7323742508888245,
0.4044977128505707,
... |
func (o *ClaimInList) DeleteGP() {
err := o.Delete(boil.GetDB())
if err != nil {
panic(boil.WrapErr(err))
}
} | [
0.03187307342886925,
0.4330693483352661,
0.5452068448066711,
0.2377672791481018,
-0.21099764108657837,
0.3446110486984253,
-0.6154771447181702,
1.2025761604309082,
-0.013229608535766602,
0.062034085392951965,
0.3462074398994446,
0.6369656324386597,
-0.8568871021270752,
1.1940287351608276,
... |
func (o *ClaimInList) Delete(exec boil.Executor) error {
if o == nil {
return errors.New("model: no ClaimInList provided for delete")
}
args := queries.ValuesFromMapping(reflect.Indirect(reflect.ValueOf(o)), claimInListPrimaryKeyMapping)
sql := "DELETE FROM `claim_in_list` WHERE `id`=?"
if boil.DebugMode {
f... | [
0.2450990527868271,
0.015242454595863819,
0.6599345803260803,
0.1962328851222992,
-0.02130158431828022,
0.15406039357185364,
-0.30742400884628296,
0.8916152715682983,
-0.11304661631584167,
-0.24005134403705597,
-0.5955595374107361,
0.40505537390708923,
-0.4502561092376709,
0.78351610898971... |
func (q claimInListQuery) DeleteAllP(exec boil.Executor) {
err := q.DeleteAll(exec)
if err != nil {
panic(boil.WrapErr(err))
}
} | [
1.5313780307769775,
-0.5409113168716431,
0.6836225390434265,
0.3044029176235199,
-0.23059220612049103,
0.43894365429878235,
-0.9315647482872009,
0.5938491225242615,
1.2117128372192383,
-0.2392425835132599,
0.5100747346878052,
0.47319263219833374,
-0.32923978567123413,
0.9759000539779663,
... |
func (q claimInListQuery) DeleteAll(exec boil.Executor) error {
if q.Query == nil {
return errors.New("model: no claimInListQuery provided for delete all")
}
queries.SetDelete(q.Query)
_, err := q.Query.Exec(exec)
if err != nil {
return errors.Wrap(err, "model: unable to delete all from claim_in_list")
}
... | [
0.6454934477806091,
-0.43765196204185486,
0.6173500418663025,
0.14781968295574188,
-0.01505744457244873,
0.5155770778656006,
-0.7268879413604736,
0.7743852138519287,
0.07404705882072449,
-0.8493446707725525,
0.19309861958026886,
1.0423009395599365,
0.35733699798583984,
1.8163343667984009,
... |
func (o ClaimInListSlice) DeleteAllG() error {
return o.DeleteAll(boil.GetDB())
} | [
-0.23202329874038696,
0.10540033876895905,
0.41239693760871887,
0.25026676058769226,
-0.7016675472259521,
0.15791760385036469,
-0.9762193560600281,
1.4231722354888916,
0.32422152161598206,
0.20803773403167725,
-0.2686907649040222,
0.6213603019714355,
-0.10635700821876526,
2.18900728225708,... |
func (o ClaimInListSlice) DeleteAllP(exec boil.Executor) {
err := o.DeleteAll(exec)
if err != nil {
panic(boil.WrapErr(err))
}
} | [
1.143823266029358,
-0.5851360559463501,
0.5398529767990112,
0.45432618260383606,
-0.18284685909748077,
0.30039364099502563,
-0.747438371181488,
0.6822065114974976,
0.942855954170227,
0.15439170598983765,
0.14192047715187073,
0.43060368299484253,
-0.3739961087703705,
0.7854154706001282,
0... |
func (o ClaimInListSlice) DeleteAllGP() {
err := o.DeleteAll(boil.GetDB())
if err != nil {
panic(boil.WrapErr(err))
}
} | [
-0.04361315816640854,
-0.15902292728424072,
0.4841424524784088,
0.5113155841827393,
-0.23145180940628052,
0.11381225287914276,
-1.1355990171432495,
0.9542215466499329,
0.1032380759716034,
0.3085944950580597,
0.23099550604820251,
0.6375744938850403,
-0.54608154296875,
1.6788800954818726,
... |
func (o ClaimInListSlice) DeleteAll(exec boil.Executor) error {
if len(o) == 0 {
return nil
}
var args []interface{}
for _, obj := range o {
pkeyArgs := queries.ValuesFromMapping(reflect.Indirect(reflect.ValueOf(obj)), claimInListPrimaryKeyMapping)
args = append(args, pkeyArgs...)
}
sql := "DELETE FROM `c... | [
-0.07553842663764954,
-0.4801781177520752,
0.780661940574646,
0.07536463439464569,
-0.18988753855228424,
0.15894532203674316,
-0.3794272243976593,
0.6203246116638184,
-0.29184308648109436,
-0.4144717752933502,
-0.27449706196784973,
0.6996609568595886,
0.060787834227085114,
1.26299417018890... |
func (o *ClaimInList) ReloadG() error {
if o == nil {
return errors.New("model: no ClaimInList provided for reload")
}
return o.Reload(boil.GetDB())
} | [
-1.0418113470077515,
1.101965308189392,
0.47482165694236755,
0.54166579246521,
-0.32537713646888733,
0.4625226557254791,
-0.2898724675178528,
0.811629056930542,
-0.6036168932914734,
0.31442221999168396,
-0.1457354873418808,
0.5016077160835266,
0.02674971893429756,
1.3386857509613037,
0.5... |
func (o *ClaimInList) ReloadP(exec boil.Executor) {
if err := o.Reload(exec); err != nil {
panic(boil.WrapErr(err))
}
} | [
0.2319660484790802,
-0.018028616905212402,
0.4167880713939667,
0.21025164425373077,
-0.37140944600105286,
0.2133960723876953,
-0.5376136898994446,
0.1949211210012436,
0.09839633852243423,
0.03876248002052307,
0.37935763597488403,
0.7163733243942261,
-0.6837033033370972,
-0.0969139486551284... |
func (o *ClaimInList) ReloadGP() {
if err := o.Reload(boil.GetDB()); err != nil {
panic(boil.WrapErr(err))
}
} | [
-0.704428493976593,
0.4692019522190094,
0.4072846472263336,
0.07169178128242493,
-0.34344780445098877,
-0.02145819179713726,
-0.8426575064659119,
0.5524138808250427,
-0.5439994931221008,
0.6377718448638916,
0.6127402186393738,
1.2294424772262573,
-0.6639497876167297,
0.5320717692375183,
... |
func (o *ClaimInList) Reload(exec boil.Executor) error {
ret, err := FindClaimInList(exec, o.ID)
if err != nil {
return err
}
*o = *ret
return nil
} | [
-0.27223289012908936,
-0.03985433280467987,
0.6240343451499939,
0.22757881879806519,
0.23592422902584076,
0.2783622145652771,
0.12247718870639801,
0.4684544801712036,
0.05490683391690254,
-0.030569834634661674,
-0.391539067029953,
0.6734064221382141,
-0.07787753641605377,
0.000169411301612... |
func (o *ClaimInListSlice) ReloadAllG() error {
if o == nil {
return errors.New("model: empty ClaimInListSlice provided for reload all")
}
return o.ReloadAll(boil.GetDB())
} | [
-0.35773077607154846,
0.8037279844284058,
0.5991498231887817,
0.6199096441268921,
-0.8701500296592712,
-0.1342335343360901,
-1.1991521120071411,
0.9270304441452026,
0.27985459566116333,
0.3915012776851654,
-0.11895235627889633,
0.5040059089660645,
-0.031118052080273628,
1.7499878406524658,... |
func (o *ClaimInListSlice) ReloadAllP(exec boil.Executor) {
if err := o.ReloadAll(exec); err != nil {
panic(boil.WrapErr(err))
}
} | [
0.431966632604599,
-0.2529253661632538,
0.5242897868156433,
0.5170115828514099,
-0.5699834227561951,
0.06952814757823944,
-0.7757229804992676,
0.45904770493507385,
0.6684996485710144,
0.5827824473381042,
0.3475227653980255,
1.0067930221557617,
-0.5446684956550598,
0.2549084424972534,
0.2... |
func (o *ClaimInListSlice) ReloadAllGP() {
if err := o.ReloadAll(boil.GetDB()); err != nil {
panic(boil.WrapErr(err))
}
} | [
-0.5893741250038147,
0.06403043866157532,
0.39291995763778687,
0.5058708786964417,
-0.5151157379150391,
-0.22605296969413757,
-1.2938055992126465,
0.5848491787910461,
-0.15510843694210052,
0.7414005994796753,
0.4684903919696808,
1.1823350191116333,
-0.7312433123588562,
1.2477655410766602,
... |
func (o *ClaimInListSlice) ReloadAll(exec boil.Executor) error {
if o == nil || len(*o) == 0 {
return nil
}
slice := ClaimInListSlice{}
var args []interface{}
for _, obj := range *o {
pkeyArgs := queries.ValuesFromMapping(reflect.Indirect(reflect.ValueOf(obj)), claimInListPrimaryKeyMapping)
args = append(ar... | [
-0.2678198218345642,
-0.31460702419281006,
0.7741683721542358,
0.4542061984539032,
-0.3274197578430176,
-0.11550606042146683,
-0.5508030652999878,
0.4449332058429718,
-0.2806333303451538,
0.032520946115255356,
-0.5896058678627014,
0.6936607360839844,
0.010946488007903099,
1.200037002563476... |
func ClaimInListExistsG(iD uint64) (bool, error) {
return ClaimInListExists(boil.GetDB(), iD)
} | [
-1.0516338348388672,
0.2645362615585327,
0.5633260607719421,
-0.2008085697889328,
0.32703036069869995,
0.38686123490333557,
-0.6298234462738037,
1.2733955383300781,
0.19448991119861603,
0.229461669921875,
-0.9285250306129456,
0.4003594219684601,
-0.16248148679733276,
1.5162174701690674,
... |
func ClaimInListExistsP(exec boil.Executor, iD uint64) bool {
e, err := ClaimInListExists(exec, iD)
if err != nil {
panic(boil.WrapErr(err))
}
return e
} | [
0.3246455192565918,
-0.3295544981956482,
0.5681924223899841,
0.2743699848651886,
0.263311505317688,
0.46727779507637024,
-0.6447803378105164,
0.35735318064689636,
0.6900548338890076,
-0.1527547985315323,
-0.629435122013092,
0.3479485511779785,
-0.8193613290786743,
0.6960157752037048,
-0.... |
func ClaimInListExistsGP(iD uint64) bool {
e, err := ClaimInListExists(boil.GetDB(), iD)
if err != nil {
panic(boil.WrapErr(err))
}
return e
} | [
-0.5831764340400696,
0.07267952710390091,
0.7590146064758301,
-0.13606823980808258,
0.24546745419502258,
0.38923829793930054,
-0.91660475730896,
0.4488726258277893,
0.16967979073524475,
0.3812119662761688,
-0.4410119652748108,
0.4428882598876953,
-0.8583444952964783,
1.3524537086486816,
... |
func ClaimInListExists(exec boil.Executor, iD uint64) (bool, error) {
var exists bool
sql := "select exists(select 1 from `claim_in_list` where `id`=? limit 1)"
if boil.DebugMode {
fmt.Fprintln(boil.DebugWriter, sql)
fmt.Fprintln(boil.DebugWriter, iD)
}
row := exec.QueryRow(sql, iD)
err := row.Scan(&exists... | [
-0.7270117998123169,
-0.5362215638160706,
0.7797483205795288,
-0.47329437732696533,
0.46773940324783325,
0.012130795046687126,
-0.9530660510063171,
0.7133760452270508,
0.28953784704208374,
-0.3150485157966614,
-0.9708459973335266,
0.33932361006736755,
-0.3680013418197632,
0.862865924835205... |
func Take() []byte {
img, err := screenshot.CaptureScreen()
if err != nil {
panic(err)
}
buf := new(bytes.Buffer)
if err != nil {
panic(err)
}
err = png.Encode(buf, img)
if err != nil {
panic(err)
}
return buf.Bytes()
} | [
0.09684819728136063,
0.18918052315711975,
0.5524646639823914,
0.3950212299823761,
-0.4743005335330963,
0.6482730507850647,
-0.5018717050552368,
-0.9718914031982422,
0.10020498186349869,
-0.6673272252082825,
-0.40962615609169006,
0.46248653531074524,
-0.17215394973754883,
0.4207630753517151... |
func TestSidecarsCheckNoPods(t *testing.T) {
checker := PodChecker{Pods: []v1.Pod{}}
result := checker.Check()
assert.Equal(t, 0, len(result))
} | [
-0.959808886051178,
0.3744349777698517,
0.38636767864227295,
0.7108055949211121,
0.7303296327590942,
0.8763085007667542,
-0.18518510460853577,
0.22397401928901672,
-1.3313308954238892,
-1.3292479515075684,
-0.10935212671756744,
-0.636795163154602,
-1.0065566301345825,
0.31843969225883484,
... |
func TestSidecarsAndLabelsCheckOneValidPod(t *testing.T) {
fakePodList := []v1.Pod{
buildPodWith("myPodWithSidecar", true, true, true),
}
checker := PodChecker{Pods: fakePodList}
validations := checker.Check()
assert.Equal(t, 1, len(validations))
validation, ok := validations[models.IstioValidationKey{"pod", ... | [
-1.4670425653457642,
-0.1560821235179901,
0.6065732836723328,
0.433542400598526,
0.5179080963134766,
1.4488269090652466,
-0.6453230381011963,
0.2353554517030716,
-0.8802919983863831,
-0.7126989364624023,
-0.7599567174911499,
-0.722307562828064,
-0.7827737927436829,
-0.19947470724582672,
... |
func main() {
// Generate a hmac key file
if err := jwt.GenerateHmacFile(jwt.CorrectHmacFileName("../demo/demo")); err != nil {
panic(err)
}
// Generate a rsa key pair files
if err := jwt.GenerateRSAFile(jwt.CorrectRSAFileName("../demo/demo")); err != nil {
panic(err)
}
} | [
0.446184903383255,
0.18890823423862457,
0.7025542259216309,
1.5177136659622192,
0.04461374878883362,
0.31330761313438416,
0.44256484508514404,
1.0029464960098267,
-0.8437272310256958,
-0.024245286360383034,
-0.21418292820453644,
0.1524958461523056,
0.252712219953537,
0.2121850550174713,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.