text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (o *ArtifactListerOK) WithPrevious(previous string) *ArtifactListerOK {
o.Previous = previous
return o
} | [
0.23493924736976624,
0.20539100468158722,
0.1528814435005188,
0.10237054526805878,
0.14600057899951935,
-0.7391225099563599,
0.992065966129303,
-0.0733732283115387,
0.43749845027923584,
0.28642627596855164,
-0.4249361455440521,
-0.6823599934577942,
0.13983476161956787,
-0.9606910347938538,... |
func (o *ArtifactListerOK) SetPrevious(previous string) {
o.Previous = previous
} | [
-0.21155858039855957,
0.6684834361076355,
0.03069842979311943,
0.2788824737071991,
0.09605412185192108,
-0.6219359040260315,
1.1418942213058472,
0.06455935537815094,
-0.25259631872177124,
0.40331530570983887,
-0.8093066215515137,
-0.39982709288597107,
-0.6273378133773804,
-0.56159961223602... |
func (o *ArtifactListerOK) WithTotalRecords(totalRecords uint64) *ArtifactListerOK {
o.TotalRecords = totalRecords
return o
} | [
-0.08209522068500519,
-0.2689754068851471,
0.2961306869983673,
-0.4762444496154785,
0.12880448997020721,
-0.9811556935310364,
0.9551218748092651,
0.7826901078224182,
1.1048287153244019,
1.0719093084335327,
-0.5572130680084229,
-0.6686725616455078,
-0.4122036397457123,
-0.5259254574775696,
... |
func (o *ArtifactListerOK) SetTotalRecords(totalRecords uint64) {
o.TotalRecords = totalRecords
} | [
-0.8249657154083252,
-0.1032533049583435,
0.14547647535800934,
-0.9239526391029358,
0.3270638585090637,
-0.730634868144989,
0.8936315178871155,
0.5438766479492188,
0.7966793775558472,
1.136104941368103,
-0.9616681337356567,
0.03440234437584877,
-1.2996995449066162,
-0.3888818621635437,
-... |
func (o *ArtifactListerOK) WithPayload(payload []*weles.ArtifactInfo) *ArtifactListerOK {
o.Payload = payload
return o
} | [
-0.08823513239622116,
-0.4372952878475189,
-0.16895589232444763,
-0.41263896226882935,
-0.5598759651184082,
-0.5902133584022522,
0.6006667017936707,
0.21883410215377808,
0.5952016115188599,
-0.04028242081403732,
-0.027326902374625206,
-0.7144461274147034,
0.6228447556495667,
-0.31776142120... |
func (o *ArtifactListerOK) SetPayload(payload []*weles.ArtifactInfo) {
o.Payload = payload
} | [
-0.4458879232406616,
-0.37975552678108215,
-0.21958044171333313,
-0.3045985996723175,
-0.35354486107826233,
-0.1329282522201538,
0.44682103395462036,
0.01352408342063427,
0.030969038605690002,
0.13307318091392517,
-0.4251651167869568,
-0.4037308096885681,
0.30445635318756104,
0.55891036987... |
func (o *ArtifactListerOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
// response header Next
next := o.Next
if next != "" {
rw.Header().Set("Next", next)
}
// response header Previous
previous := o.Previous
if previous != "" {
rw.Header().Set("Previous", previous)
}
// respons... | [
-0.6896340250968933,
-0.5017874240875244,
0.46241211891174316,
-0.10906463861465454,
0.3636258840560913,
-0.859997570514679,
0.9044747948646545,
0.05046666041016579,
0.15113705396652222,
0.5023762583732605,
-0.3064122200012207,
-1.0141717195510864,
-0.04390750452876091,
-0.1460330635309219... |
func NewArtifactListerPartialContent() *ArtifactListerPartialContent {
return &ArtifactListerPartialContent{}
} | [
0.6328414678573608,
-1.7344533205032349,
-0.02910616248846054,
-0.6429280042648315,
-2.167710781097412,
-0.48348090052604675,
0.6087570190429688,
-0.6964831948280334,
0.49393513798713684,
0.41934171319007874,
-0.08749786764383316,
-0.3135756850242615,
-0.39186421036720276,
-0.8796621561050... |
func (o *ArtifactListerPartialContent) WithNext(next string) *ArtifactListerPartialContent {
o.Next = next
return o
} | [
0.24068866670131683,
-0.612644612789154,
0.16497278213500977,
0.001085064373910427,
-1.6064594984054565,
0.1025564894080162,
-0.26835671067237854,
-0.4719219207763672,
0.6841623187065125,
-0.37935566902160645,
-0.09683696180582047,
-0.32006925344467163,
-0.7513591051101685,
-0.561347782611... |
func (o *ArtifactListerPartialContent) SetNext(next string) {
o.Next = next
} | [
-0.1959685981273651,
-0.41469117999076843,
-0.047557152807712555,
0.32888710498809814,
-1.4161465167999268,
0.15803976356983185,
-0.0044616758823394775,
-0.32707488536834717,
0.24328596889972687,
-0.05945681780576706,
-0.5933329463005066,
0.27350035309791565,
-1.3389350175857544,
-0.292246... |
func (o *ArtifactListerPartialContent) WithPrevious(previous string) *ArtifactListerPartialContent {
o.Previous = previous
return o
} | [
0.66397625207901,
-0.5148938894271851,
0.4051208794116974,
-0.40523892641067505,
-0.6874774098396301,
0.009502985514700413,
0.49515408277511597,
-0.7480102181434631,
0.2620084881782532,
-0.1419501006603241,
-0.06933531165122986,
-0.5771045088768005,
-0.7038924694061279,
-0.9684340953826904... |
func (o *ArtifactListerPartialContent) SetPrevious(previous string) {
o.Previous = previous
} | [
0.08196143060922623,
-0.050523318350315094,
0.16568630933761597,
-0.03270677477121353,
-0.5952562689781189,
-0.07700210809707642,
0.7746455073356628,
-0.5235171318054199,
-0.40344271063804626,
0.06449295580387115,
-0.49438220262527466,
-0.12864218652248383,
-1.3494545221328735,
-0.73924839... |
func (o *ArtifactListerPartialContent) WithRemainingRecords(remainingRecords uint64) *ArtifactListerPartialContent {
o.RemainingRecords = remainingRecords
return o
} | [
0.4602910578250885,
-1.1035292148590088,
0.340850293636322,
-0.6195667386054993,
-0.6304561495780945,
0.4491308629512787,
-0.027108153328299522,
-0.7735612988471985,
0.4852569103240967,
0.21768006682395935,
-0.3997659981250763,
-0.7395634055137634,
-1.2500191926956177,
-0.21649499237537384... |
func (o *ArtifactListerPartialContent) SetRemainingRecords(remainingRecords uint64) {
o.RemainingRecords = remainingRecords
} | [
-0.2792820632457733,
-0.8682350516319275,
0.18943454325199127,
-0.7796210050582886,
-0.15284216403961182,
0.5391170382499695,
0.05977780371904373,
-0.5724848508834839,
0.15014134347438812,
0.32357683777809143,
-1.0340023040771484,
-0.38701820373535156,
-2.0875492095947266,
0.17429575324058... |
func (o *ArtifactListerPartialContent) WithTotalRecords(totalRecords uint64) *ArtifactListerPartialContent {
o.TotalRecords = totalRecords
return o
} | [
0.46326979994773865,
-0.8558643460273743,
0.363310843706131,
-0.9306570291519165,
-0.3819200098514557,
-0.4495760500431061,
0.5079689621925354,
-0.1436137855052948,
0.884064257144928,
0.8425766229629517,
-0.27714020013809204,
-0.684584379196167,
-1.0857329368591309,
-0.7225745916366577,
... |
func (o *ArtifactListerPartialContent) SetTotalRecords(totalRecords uint64) {
o.TotalRecords = totalRecords
} | [
-0.37339919805526733,
-0.5319386720657349,
0.15112382173538208,
-1.1205298900604248,
0.038833580911159515,
-0.40591666102409363,
0.6255616545677185,
-0.0013187300646677613,
0.6825278401374817,
0.9293323755264282,
-0.832572877407074,
0.04695301130414009,
-1.629024863243103,
-0.5339359045028... |
func (o *ArtifactListerPartialContent) WithPayload(payload []*weles.ArtifactInfo) *ArtifactListerPartialContent {
o.Payload = payload
return o
} | [
0.4865415692329407,
-1.160813570022583,
0.12263469398021698,
-0.6458413600921631,
-1.5045472383499146,
0.25604814291000366,
0.12279556691646576,
-0.8923510909080505,
0.518310546875,
-0.3790768086910248,
0.3916548192501068,
-0.6733258962631226,
-0.2230822592973709,
-0.6312685012817383,
0.... |
func (o *ArtifactListerPartialContent) SetPayload(payload []*weles.ArtifactInfo) {
o.Payload = payload
} | [
-0.052944835275411606,
-1.155124306678772,
-0.06291705369949341,
-0.5309187173843384,
-0.9543854594230652,
0.5058885216712952,
0.3117446005344391,
-0.6822744011878967,
-0.08035694807767868,
-0.046430233865976334,
-0.17921914160251617,
-0.08402509987354279,
-0.6642909646034241,
0.1280029863... |
func (o *ArtifactListerPartialContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
// response header Next
next := o.Next
if next != "" {
rw.Header().Set("Next", next)
}
// response header Previous
previous := o.Previous
if previous != "" {
rw.Header().Set("Previous", previous)
}
... | [
-0.3478377163410187,
-0.9900357723236084,
0.6127951741218567,
-0.2831210494041443,
-0.0048406170681118965,
-0.5335735082626343,
0.9089694023132324,
-0.2985862195491791,
-0.033782243728637695,
0.43184977769851685,
-0.44595175981521606,
-0.6760113835334778,
-0.6580597162246704,
-0.2826805114... |
func NewArtifactListerBadRequest() *ArtifactListerBadRequest {
return &ArtifactListerBadRequest{}
} | [
-0.5171690583229065,
-1.4427533149719238,
0.04222188889980316,
-0.03407556191086769,
-0.9826675653457642,
-0.7128597497940063,
-0.34736397862434387,
0.5613672733306885,
0.11056137830018997,
0.6439152359962463,
-0.15068793296813965,
0.17191700637340546,
0.1265222728252411,
0.120418474078178... |
func (o *ArtifactListerBadRequest) WithPayload(payload *weles.ErrResponse) *ArtifactListerBadRequest {
o.Payload = payload
return o
} | [
-0.6467975974082947,
-0.8911979794502258,
-0.0051977429538965225,
-0.17553125321865082,
-0.842214822769165,
-0.2729402482509613,
-0.5969331860542297,
-0.10781433433294296,
0.41114330291748047,
-0.5285823345184326,
0.483270525932312,
0.1981758177280426,
0.19315317273139954,
0.36894264817237... |
func (o *ArtifactListerBadRequest) SetPayload(payload *weles.ErrResponse) {
o.Payload = payload
} | [
-0.9989115595817566,
-0.7350247502326965,
-0.060552049428224564,
-0.06392931193113327,
-0.2803570330142975,
-0.13416941463947296,
-0.6220415830612183,
-0.11441028118133545,
0.1993236243724823,
-0.21234957873821259,
0.11376598477363586,
0.7494499087333679,
-0.3166971504688263,
0.79732489585... |
func (o *ArtifactListerBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(400)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
} | [
-1.05153489112854,
-0.8016222715377808,
0.3634709417819977,
0.5015230774879456,
0.8745622038841248,
-0.41025328636169434,
-0.2732149660587311,
-0.4967798590660095,
0.4736149311065674,
0.11972968280315399,
-0.020621860399842262,
-0.2683374881744385,
-0.45448392629623413,
-0.1692651063203811... |
func NewArtifactListerNotFound() *ArtifactListerNotFound {
return &ArtifactListerNotFound{}
} | [
-0.5669664144515991,
-1.7808377742767334,
-0.33312249183654785,
-1.1848323345184326,
-0.6312842965126038,
-0.3869543969631195,
0.736670732498169,
0.4649350047111511,
0.06638629734516144,
0.5381807088851929,
-0.6091786026954651,
-0.35317233204841614,
0.4350135326385498,
-0.1960596889257431,... |
func (o *ArtifactListerNotFound) WithPayload(payload *weles.ErrResponse) *ArtifactListerNotFound {
o.Payload = payload
return o
} | [
-0.568479597568512,
-0.8272291421890259,
-0.21025757491588593,
-1.1491544246673584,
-0.0997665673494339,
-0.1055445447564125,
0.26153162121772766,
-0.052655067294836044,
0.7451828122138977,
-0.21787747740745544,
-0.0780383050441742,
-0.345194935798645,
0.3638439178466797,
-0.02316711284220... |
func (o *ArtifactListerNotFound) SetPayload(payload *weles.ErrResponse) {
o.Payload = payload
} | [
-0.8315319418907166,
-0.666470468044281,
-0.2360285073518753,
-1.0429728031158447,
0.2781861424446106,
0.048922862857580185,
0.19925901293754578,
-0.1325952559709549,
0.38465824723243713,
-0.10809508711099625,
-0.33815446496009827,
0.11788582801818848,
-0.1448783278465271,
0.43491902947425... |
func (o *ArtifactListerNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(404)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
} | [
-1.2400959730148315,
-0.5893252491950989,
0.11391430348157883,
-0.19195802509784698,
1.344541311264038,
-0.46719497442245483,
0.5401571393013,
-0.22744925320148468,
0.3328199088573456,
0.4949755370616913,
-0.4160395860671997,
-0.7425006628036499,
-0.3036836087703705,
-0.2365252524614334,
... |
func (o *ArtifactListerInternalServerError) WithPayload(payload *weles.ErrResponse) *ArtifactListerInternalServerError {
o.Payload = payload
return o
} | [
-0.5598675608634949,
-0.4991462826728821,
-0.014837144874036312,
-1.160091519355774,
-1.0000197887420654,
0.07619413733482361,
0.5058364272117615,
0.10594183951616287,
0.8193703889846802,
-0.21732570230960846,
0.08220502734184265,
0.27862563729286194,
-0.1868310272693634,
-0.17763565480709... |
func (o *ArtifactListerInternalServerError) SetPayload(payload *weles.ErrResponse) {
o.Payload = payload
} | [
-0.6866282820701599,
-0.4860098361968994,
-0.043526001274585724,
-1.005096197128296,
-0.7283852696418762,
0.08727487176656723,
0.364121675491333,
0.22700001299381256,
0.45771530270576477,
0.10911797732114792,
-0.2588704526424408,
0.6835829019546509,
-0.6066250801086426,
0.3961322605609894,... |
func (o *ArtifactListerInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(500)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
} | [
-1.2811888456344604,
-0.3423696458339691,
0.24165846407413483,
0.06359849125146866,
0.5276548862457275,
-0.3214539885520935,
0.7378890514373779,
0.06582353264093399,
0.5630722641944885,
0.6463478207588196,
-0.10418421030044556,
-0.18051877617835999,
-0.6172575354576111,
-0.2655389308929443... |
func Main(use string, options ...RootCommandOption) {
appcmd.Main(context.Background(), newRootCommand(use, options...), version)
} | [
0.7139222621917725,
-0.9467445611953735,
0.8119985461235046,
1.5691741704940796,
0.07452143728733063,
0.5585386753082275,
-0.18982097506523132,
0.36145108938217163,
-0.1388843059539795,
0.025570053607225418,
0.5067099332809448,
0.651574969291687,
-0.6046360731124878,
0.7123373746871948,
... |
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
return &executableSchema{
resolvers: cfg.Resolvers,
directives: cfg.Directives,
complexity: cfg.Complexity,
}
} | [
0.12359616905450821,
-0.624889075756073,
0.3856506049633026,
0.3890434503555298,
-0.5765991806983948,
0.3744804859161377,
0.09621302038431168,
0.46767035126686096,
-0.36183619499206543,
0.3167094588279724,
-0.5453308820724487,
-0.22916509211063385,
-0.10190654546022415,
-0.1977230012416839... |
func (ec *executionContext) _Application(ctx context.Context, sel ast.SelectionSet, obj *model.Application) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, applicationImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field.Alias
... | [
-0.08224257826805115,
-0.4580751061439514,
0.39828556776046753,
-0.40057215094566345,
-0.7887898087501526,
-0.041162699460983276,
-0.49209433794021606,
-1.137977957725525,
0.01335904560983181,
1.0398943424224854,
0.5148828625679016,
0.19650352001190186,
1.030509352684021,
-0.14952330291271... |
func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, mutationImplementors)
ctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{
Object: "Mutation",
})
out := graphql.NewOrderedMap(len(fields))
invalid := false... | [
-1.1652569770812988,
-0.5583052039146423,
0.3681212365627289,
-0.5561730265617371,
-0.3379003405570984,
-0.8098165988922119,
-0.5435287952423096,
-0.9814227819442749,
0.22321292757987976,
1.0939971208572388,
0.467469185590744,
-0.19255736470222473,
1.2111210823059082,
-0.3128783404827118,
... |
func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, queryImplementors)
ctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{
Object: "Query",
})
var wg sync.WaitGroup
out := graphql.NewOrderedMap(len(fields))
in... | [
-0.2635856568813324,
0.09416010230779648,
0.48833316564559937,
-0.2802315950393677,
-0.5610736608505249,
-0.6982856392860413,
-0.16173098981380463,
-0.720737874507904,
-0.4199677109718323,
0.40700843930244446,
0.6303156018257141,
-0.10323545336723328,
0.7672461271286011,
0.1308477073907852... |
func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *model.User) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, userImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field.Alias
switch field.Name {
... | [
-0.7449411749839783,
-0.3448181748390198,
0.3440261781215668,
-0.5163857340812683,
-0.8030592203140259,
-0.4915279746055603,
-0.04516298696398735,
-1.15631902217865,
-0.27003002166748047,
0.2530958950519562,
-0.047881778329610825,
0.1155090406537056,
0.9644876718521118,
-0.7437452673912048... |
func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, __DirectiveImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field.Al... | [
-0.7616087794303894,
-0.9222742915153503,
0.5578024387359619,
-1.3660553693771362,
-0.7264721393585205,
-0.358225017786026,
-0.5229436755180359,
-0.9618685245513916,
-0.5393950939178467,
0.17081770300865173,
0.5074154138565063,
0.30028486251831055,
0.7200544476509094,
-0.8793110847473145,
... |
func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, __EnumValueImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field.Al... | [
-0.7538906931877136,
-0.7788618803024292,
0.5966957807540894,
-0.737507700920105,
-0.4923487901687622,
-0.6097859144210815,
-0.7377671003341675,
-0.6297001242637634,
0.2281954288482666,
0.5711967349052429,
0.4515295922756195,
0.4159531891345978,
0.9537313580513,
0.00574358319863677,
0.01... |
func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, __FieldImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field.Alias
switc... | [
-0.4673350751399994,
-0.4702756404876709,
0.4902726411819458,
-1.2266252040863037,
-0.4165525436401367,
-0.5237122178077698,
-0.9666463136672974,
-1.0028893947601318,
-0.07367847114801407,
0.4614560306072235,
0.4387163817882538,
0.17293736338615417,
0.862463653087616,
-0.4079228937625885,
... |
func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, __InputValueImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field... | [
-0.8486756682395935,
-0.8725767135620117,
0.4558454155921936,
-0.9261739253997803,
-0.7550106048583984,
-0.3216555416584015,
-0.546459436416626,
-0.8509218692779541,
-0.15876701474189758,
0.3375934362411499,
0.4458722770214081,
0.2476162165403366,
0.489104688167572,
-0.32047563791275024,
... |
func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, __SchemaImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field.Alias
sw... | [
-0.6028403043746948,
-0.39975565671920776,
0.5440967082977295,
-0.5659282207489014,
-0.4211326837539673,
-0.857856035232544,
-0.5496963858604431,
-0.8014232516288757,
0.35261213779449463,
0.5461284518241882,
0.5733287334442139,
0.1435609757900238,
0.7571863532066345,
-0.7791908383369446,
... |
func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
fields := graphql.CollectFields(ctx, sel, __TypeImplementors)
out := graphql.NewOrderedMap(len(fields))
invalid := false
for i, field := range fields {
out.Keys[i] = field.Alias
switch f... | [
-0.3942496180534363,
-0.36735427379608154,
0.5972486138343811,
-1.0446161031723022,
-0.10427015274763107,
-0.7570484280586243,
-0.3255164921283722,
-1.6597648859024048,
-0.028688320890069008,
0.699964702129364,
0.23028090596199036,
0.062451574951410294,
0.41540148854255676,
-0.286366313695... |
func NewCatStore(db *gorm.DB) *CatStore {
return &CatStore{
db: db,
}
} | [
0.4332590103149414,
-0.6860266327857971,
-0.12207920849323273,
-0.21627266705036163,
-1.478113055229187,
0.4480401575565338,
-1.3541558980941772,
-0.3358396291732788,
-0.5320212841033936,
-1.1305954456329346,
-0.6033043265342712,
-0.6803632378578186,
-0.1841164380311966,
0.9590684175491333... |
func (p *bufferPool) Get() *bytes.Buffer {
buf := p.underlying.Get().(*bytes.Buffer)
buf.Reset()
return buf
} | [
-0.3694663643836975,
-0.450654000043869,
0.4537172317504883,
-0.22481635212898254,
0.7901102900505066,
0.6326925158500671,
-0.18358850479125977,
-0.9557015895843506,
0.12323874235153198,
-0.9113877415657043,
-0.35114777088165283,
2.116119384765625,
-0.933506190776825,
-0.9680148363113403,
... |
func (ci *createIndex) ApplyOptions() Actionable {
ci.options = ci.context.Options().(*options.CreateIndexOptions)
ci.indexer.SetOptions(&golastic.IndexOptions{Timeout: ci.options.TimeoutInSeconds()})
return ci
} | [
0.05651938170194626,
0.24774064123630524,
0.4122314155101776,
0.21591469645500183,
1.237082600593567,
-0.2869873046875,
0.7170450091362,
0.6071852445602417,
0.3212302029132843,
-0.042095694690942764,
0.6021091938018799,
-0.13335537910461426,
-1.205588936805725,
0.4585305154323578,
-0.419... |
func (ci *createIndex) Perform() Actionable {
exists, err := ci.indexer.Exists(ci.options.Name)
if err != nil {
ci.errorContainer.push(ci.options.Name, ci.name, err)
return ci
}
if exists {
ci.errorContainer.push(ci.options.Name, ci.name, errors.New("Index already exists"))
return ci
}
schema, err :=... | [
-0.32705795764923096,
0.08397848904132843,
0.6439730525016785,
-0.1405828446149826,
0.7105751633644104,
-0.3581087291240692,
0.4226212203502655,
0.12410931289196014,
0.0572638213634491,
0.482826292514801,
0.08192086964845657,
0.2448105663061142,
-0.6797996163368225,
-0.00778426555916667,
... |
func (ci *createIndex) ApplyFilters() error {
return nil
} | [
-0.5280877351760864,
0.3066435158252716,
0.36239054799079895,
-0.05798477306962013,
0.6787393689155579,
-0.016138378530740738,
0.7172491550445557,
-0.11620115488767624,
0.16452181339263916,
-0.9676076173782349,
0.193547323346138,
-0.14118120074272156,
-1.7769184112548828,
0.582225739955902... |
func NewDefaultApiController(s DefaultApiServicer) Router {
return &DefaultApiController{ service: s }
} | [
-0.7366717457771301,
-0.1089143231511116,
-0.09316088259220123,
-0.33489471673965454,
-0.676114022731781,
-0.5434582829475403,
-0.1551826000213623,
-0.5545224547386169,
0.7303351163864136,
0.0447077602148056,
-0.7654638886451721,
-0.24861526489257812,
-0.45874735713005066,
0.43974000215530... |
func (c *DefaultApiController) Routes() Routes {
return Routes{
{
"GetJobOffer",
strings.ToUpper("Get"),
"/job_offer",
c.GetJobOffer,
},
{
"GetOccupation",
strings.ToUpper("Get"),
"/occupation",
c.GetOccupation,
},
{
"GetTotalPopulation",
strings.ToUpper("Get"),
"/total_popu... | [
-0.964236855506897,
-0.08410566300153732,
0.323988676071167,
-0.7040497660636902,
0.34531500935554504,
-0.07994666695594788,
-0.5904085040092468,
-0.4351401925086975,
-0.3562462329864502,
-0.6871979832649231,
-0.14449135959148407,
-0.49199631810188293,
0.18876291811466217,
0.26959526538848... |
func NewCmdSnapshot() *cobra.Command {
cmd := &cobra.Command{
Use: "snapshot",
Short: "Provides operations related to a Volume snapshot",
Long: snapshotCommandHelpText,
}
cmd.AddCommand(
NewCmdSnapshotCreate(),
NewCmdSnapshotList(),
NewCmdSnapshotRevert(),
)
cmd.PersistentFlags().StringVarP(&option... | [
-0.03776072338223457,
-0.31677693128585815,
0.42418384552001953,
0.25889337062835693,
-1.0618141889572144,
-0.902811586856842,
-0.438159704208374,
-0.0576818622648716,
0.527769923210144,
-1.2014193534851074,
0.4745728373527527,
-0.2123083770275116,
0.32658764719963074,
0.15836505591869354,... |
func IsDNS1123Label(value string) bool {
if len(value) > dns1123LabelMaxLength {
return false
}
if !dns1123LabelRegexp.MatchString(value) {
return false
}
return true
} | [
-1.2608832120895386,
-0.0512504018843174,
0.5623888373374939,
0.32518404722213745,
-0.5880253314971924,
0.8485101461410522,
-1.2267084121704102,
-0.17508076131343842,
1.4601339101791382,
0.07371044158935547,
-0.01645844615995884,
0.13037972152233124,
-0.045339517295360565,
-0.3576545119285... |
func (h *API) SetJSON(key string, value interface{}, expiration time.Duration) (*redis.StatusCmd, error) {
value, err := json.Marshal(value)
if err != nil {
return nil, err
}
ret := h.Client.Set(key, value, expiration)
return ret, nil
} | [
-1.1662826538085938,
0.12218103557825089,
0.6387127041816711,
-0.14637154340744019,
-0.5271768569946289,
0.1525113433599472,
-1.0292117595672607,
0.2571120858192444,
0.13407371938228607,
0.9828314781188965,
-0.958657443523407,
0.8760110139846802,
0.046934932470321655,
0.5953845977783203,
... |
func (h *API) GetJSON(key string) (map[string]interface{}, error) {
var imapGet map[string]interface{}
value, err := h.Client.Get(key).Result()
if err != nil {
return nil, err
}
json.Unmarshal([]byte(value), &imapGet)
return imapGet, nil
} | [
-1.5857281684875488,
-0.20973092317581177,
0.8633248209953308,
-0.7447039484977722,
-0.707525372505188,
-0.7772924900054932,
-0.35052189230918884,
-0.11729767918586731,
0.05125368759036064,
0.5772667527198792,
-0.6897317171096802,
0.8801872134208679,
-0.7901470065116882,
0.0857983976602554... |
func getTemplatingSource(spec *opsv1alpha1.GitOps) (map[string]interface{}, error) {
if spec.Spec.Templating != nil {
sourceDir := spec.Status.RootFolder + "/" + spec.Spec.RootFolder + "/" + spec.Spec.Templating.SourceFolder
if spec.Spec.Templating.SourceFolder != "" {
sourceDir += "/"
}
t := spec.Spec.Tem... | [
-0.6184797286987305,
0.3083391785621643,
0.7602947354316711,
-0.6256576180458069,
-0.9471639394760132,
-0.5569334626197815,
0.45399487018585205,
1.7173421382904053,
-0.24248667061328888,
0.6480340957641602,
-0.4642419219017029,
-0.3484358787536621,
-0.22404220700263977,
1.0231831073760986,... |
func (t *templater) templateFile(workDir string, outDir string, file os.FileInfo, d map[string]interface{}) {
if strings.Contains(file.Name(), "yaml") {
filePath := workDir + "/" + file.Name()
tEx := templ.New(file.Name())
tEx.Funcs(templateFuncs(workDir))
tEx.ParseFiles(filePath)
b := bytes.NewBuffer([]byt... | [
0.4251318573951721,
-0.16654880344867706,
0.5339803099632263,
-0.19674327969551086,
0.21947212517261505,
-0.2212740182876587,
0.8467188477516174,
0.6720819473266602,
-0.7840784788131714,
-0.023612651973962784,
-0.14871026575565338,
-0.8568089008331299,
0.13361896574497223,
0.88708257675170... |
func (t *templater) templateDir(workDir string, outDir string, d map[string]interface{}) {
log.Info("templating", "dir", workDir)
err := os.Mkdir(outDir, 0755)
if err != nil && !os.IsExist(err) {
log.Error(err, "Failed to create output dir")
return
}
files, err := ioutil.ReadDir(workDir)
if err != nil {
log... | [
-0.8474058508872986,
-0.26460975408554077,
0.4694198966026306,
-0.31576359272003174,
-0.666110098361969,
-0.14093181490898132,
0.778592586517334,
0.37563177943229675,
0.11194824427366257,
-0.27667951583862305,
0.3454010486602783,
-0.4801872670650482,
0.3500000536441803,
1.6328319311141968,... |
func RunPreExecutor(spec *opsv1alpha1.GitOps, dir string) error {
if spec.Spec.Templating != nil {
t := spec.Spec.Templating
if t.Executor != nil {
// Create a new context and add a timeout to it
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
defer cancel() // The cancel should b... | [
-0.5053367614746094,
0.34356993436813354,
0.8122236728668213,
-0.43287187814712524,
0.024439984932541847,
-0.783767580986023,
0.38887476921081543,
0.8679628372192383,
-0.10714401304721832,
0.39021337032318115,
0.41351544857025146,
-0.2348419576883316,
0.025796836242079735,
1.42132568359375... |
func NewConverter(L *lua.LState) *Converter {
c := &Converter{
lstate: L,
}
c.metatable = c.ctyMetatable()
return c
} | [
0.3477804362773895,
-0.9886312484741211,
0.16156484186649323,
0.06540355831384659,
-0.7664892673492432,
-0.06168175861239433,
-0.4610026478767395,
0.5672229528427124,
0.326805979013443,
-0.8222377300262451,
-0.3962963819503784,
-0.4013279676437378,
0.44889673590660095,
1.1042512655258179,
... |
func phi6primeSq() []byte {
one := big.NewInt(1)
p := new(big.Int).SetBytes(fpOrder[:]) // p
p2 := new(big.Int).Mul(p, p) // p^2
p4 := new(big.Int).Sub(p2, one) // p^2 - 1
p4.Mul(p4, p2) // p^4 - p^2
p4.Add(p4, one) // p^4 - p^2 + 1
return p4.Bytes(... | [
-0.722318172454834,
-0.5245528221130371,
0.7283762693405151,
0.02950838766992092,
-0.7229507565498352,
-0.10171644389629364,
-0.5404533743858337,
-0.13510200381278992,
0.6945384740829468,
0.46348661184310913,
-1.3866902589797974,
-0.1666703224182129,
-0.9923141598701477,
0.8132109642028809... |
func New(key string) *Api {
return &Api{&http.Client{}, key, "https://newsapi.org/v2/"}
} | [
-0.8388614654541016,
-0.976916491985321,
0.026119813323020935,
-0.2327999621629715,
-1.2060028314590454,
0.05636097863316536,
-1.38676917552948,
0.12718930840492249,
-0.537080705165863,
-0.037877198308706284,
-0.7450348734855652,
0.10905072838068008,
0.20126128196716309,
0.3427368998527527... |
func (r ReqArticles) SerializeUrl() string {
return r.baseUrl + "everything?q=" + r.q
} | [
-0.35558372735977173,
-0.8415572643280029,
0.21044817566871643,
-0.30327239632606506,
0.26878872513771057,
0.6266442537307739,
-0.3735802173614502,
-0.08063133805990219,
0.6623412370681763,
-0.27849581837654114,
-0.4520614743232727,
0.015359306707978249,
-0.6173834800720215,
-0.14505414664... |
func (r ReqHeadlines) SerializeUrl() string {
return r.baseUrl + "top-headlines?category=" + r.category + "&pageSize=" + strconv.Itoa(r.pageSize) + "&country=" + r.country
} | [
-0.3394939601421356,
-0.6739383339881897,
0.36945590376853943,
-0.1969863623380661,
-0.1025993824005127,
0.6715526580810547,
-0.633611798286438,
-0.5098870396614075,
0.34947440028190613,
-0.5342812538146973,
-0.03339719399809837,
-0.3289854824542999,
0.037577368319034576,
0.095723129808902... |
func (a *Api) GetArticles(keyword string) (*Response, error) {
req := ReqArticles{baseUrl: a.baseUrl, q: keyword}
return a.do(req)
} | [
-0.5799604654312134,
0.13821227848529816,
0.2826758325099945,
0.23849453032016754,
-0.3952597677707672,
-0.45377111434936523,
-0.690626323223114,
-0.6431047916412354,
0.5437658429145813,
0.024285124614834785,
-0.40515899658203125,
0.6427801847457886,
-0.9358393549919128,
-0.035753685981035... |
func (a *Api) GetHeadlines(category string) (*Response, error) {
req := ReqHeadlines{baseUrl: a.baseUrl, category: category}
return a.do(req)
} | [
-0.7258762121200562,
0.24577508866786957,
0.4515787661075592,
0.49745410680770874,
0.297681987285614,
-0.5613568425178528,
-0.9985970854759216,
-1.7869412899017334,
0.45498061180114746,
0.388190895318985,
-0.1619212031364441,
0.201333150267601,
-0.6740157604217529,
0.6483224034309387,
0.... |
func CronIntervalValidator(val interface{}, param string) error {
value, ok := val.(string)
if !ok {
return fmt.Errorf("invalid crontab entry, not a valid string")
}
if _, err := cron.ParseStandard(value); err != nil {
return errors.Wrap(err, "invalid crontab entry")
}
return nil
} | [
0.5257431864738464,
-0.6724349856376648,
0.5694374442100525,
0.13494016230106354,
-0.7877655029296875,
0.8586946725845337,
-0.1864192634820938,
-0.07459823787212372,
-0.6416106224060059,
0.17950962483882904,
0.4512799382209778,
0.22020307183265686,
-0.5513970255851746,
0.11597985029220581,... |
func ValidateCronInterval(val interface{}) error {
return CronIntervalValidator(val, "")
} | [
0.13084496557712555,
-0.18770983815193176,
0.00662281783297658,
0.5528237223625183,
-0.4251878559589386,
0.8687980771064758,
0.6493176221847534,
-0.8371259570121765,
-0.6254140734672546,
0.2795546352863312,
-0.07921048998832703,
-0.11234182864427567,
-1.2958608865737915,
0.721257746219635,... |
func (fn PostSilencesHandlerFunc) Handle(params PostSilencesParams) middleware.Responder {
return fn(params)
} | [
0.8755402565002441,
0.03911389783024788,
0.13424010574817657,
0.6027656197547913,
-0.17381034791469574,
0.035194773226976395,
0.31003251671791077,
0.05365229398012161,
0.12629267573356628,
-0.8226974606513977,
-0.2166595458984375,
-1.2064741849899292,
-0.825249433517456,
0.2969214022159576... |
func NewPostSilences(ctx *middleware.Context, handler PostSilencesHandler) *PostSilences {
return &PostSilences{Context: ctx, Handler: handler}
} | [
0.1270880252122879,
0.05877988412976265,
-0.04244314134120941,
0.1592218428850174,
-1.1981823444366455,
0.11747460812330246,
-0.530671238899231,
-0.6454949975013733,
-0.25377601385116577,
-0.47420617938041687,
-1.360901117324829,
-0.5843080878257751,
-0.373430997133255,
1.1022228002548218,... |
func (o *PostSilencesOKBody) Validate(formats strfmt.Registry) error {
return nil
} | [
0.7056334614753723,
0.41513505578041077,
0.15708009898662567,
0.32809603214263916,
0.2010149359703064,
-0.23000451922416687,
-0.01490716077387333,
-0.3087405562400818,
0.40257149934768677,
-0.11717212945222855,
-0.4897584915161133,
-0.7925002574920654,
-1.2113070487976074,
1.17288970947265... |
func (o *PostSilencesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
} | [
0.7139167189598083,
0.18768170475959778,
0.38096657395362854,
-0.07824398577213287,
-0.30200615525245667,
0.30546703934669495,
-0.5521414875984192,
-0.4608997404575348,
1.4137558937072754,
0.21285443007946014,
-0.700996458530426,
-0.17570538818836212,
-1.1605229377746582,
0.354989409446716... |
func NewDesktopApp(c *restapi.RestClient) *DesktopApp {
s := DesktopApp{}
s.client = c
s.apiRead = "/SaasManage/GetApplication"
s.apiCreate = "/SaasManage/ImportAppFromTemplate"
s.apiDelete = "/SaasManage/DeleteApplication"
s.apiUpdate = "/SaasManage/UpdateApplicationDE"
s.apiPermissions = "/SaasManage/SetApplic... | [
0.2302679717540741,
-0.8288660645484924,
0.5203006863594055,
0.5377210974693298,
-1.3685283660888672,
0.2263103872537613,
-0.4139050245285034,
-0.2845371961593628,
0.978887140750885,
0.48156413435935974,
-0.4856356978416443,
-1.011391282081604,
-0.20665466785430908,
0.1576329469680786,
-... |
func (o *DesktopApp) Read() error {
if o.ID == "" {
return errors.New("error: ID is empty")
}
var queryArg = make(map[string]interface{})
queryArg["_RowKey"] = o.ID
// Attempt to read from an upstream API
resp, err := o.client.CallGenericMapAPI(o.apiRead, queryArg)
if err != nil {
return err
}
if !resp.... | [
-1.0960062742233276,
-0.32654550671577454,
0.7119854092597961,
0.0645056962966919,
-0.5124841928482056,
1.024424433708191,
-0.3536764085292816,
-0.6552101373672485,
0.3834403455257416,
-0.3895939588546753,
0.7244886755943298,
0.24355413019657135,
0.2327357530593872,
-0.039310213178396225,
... |
func (o *DesktopApp) Create() (*restapi.SliceResponse, error) {
var queryArg = make(map[string]interface{})
queryArg["ID"] = []string{o.TemplateName}
LogD.Printf("Generated Map for Create(): %+v", queryArg)
resp, err := o.client.CallSliceAPI(o.apiCreate, queryArg)
if err != nil {
return nil, err
}
if !resp.S... | [
-1.134670615196228,
-0.20455341041088104,
0.6481294631958008,
0.3882746994495392,
-0.4041571617126465,
0.00338003970682621,
-0.22695180773735046,
-0.5748544335365295,
-0.37061992287635803,
0.7964292764663696,
-0.6539927124977112,
-1.0831515789031982,
-0.6185194253921509,
0.60210120677948,
... |
func (o *DesktopApp) Update() (*restapi.GenericMapResponse, error) {
if o.ID == "" {
return nil, errors.New("error: ID is empty")
}
var queryArg = make(map[string]interface{})
queryArg, err := generateRequestMap(o)
if err != nil {
return nil, err
}
queryArg["_RowKey"] = o.ID
LogD.Printf("Generated Map for ... | [
-1.9738376140594482,
-0.8229245543479919,
0.7959219813346863,
0.20041115581989288,
-0.8100777864456177,
0.18739759922027588,
-0.30895155668258667,
-0.2742893695831299,
0.47679880261421204,
0.3355056345462799,
-0.14404141902923584,
-0.738221287727356,
-0.3461270034313202,
-0.034913759678602... |
func (o *DesktopApp) Delete() (*restapi.SliceResponse, error) {
if o.ID == "" {
return nil, errors.New("error: ID is empty")
}
var queryArg = make(map[string]interface{})
queryArg["_RowKey"] = []string{o.ID}
resp, err := o.client.CallSliceAPI(o.apiDelete, queryArg)
if err != nil {
return nil, err
}
if !re... | [
-0.6401404738426208,
0.20030659437179565,
0.8511964678764343,
0.9106629490852356,
-0.16894328594207764,
-0.4042832851409912,
0.11472498625516891,
-0.3223695755004883,
0.840288519859314,
1.26323401927948,
-0.25535956025123596,
-0.5964660048484802,
-1.0368824005126953,
0.30365434288978577,
... |
func (o *DesktopApp) Query() (map[string]interface{}, error) {
query := "SELECT * FROM Application WHERE 1=1 AND AppType='Desktop'"
if o.Name != "" {
query += " AND Name='" + o.Name + "'"
}
return queryVaultObject(o.client, query)
} | [
-0.23645319044589996,
0.15901635587215424,
0.4342203736305237,
1.6198418140411377,
-1.0351210832595825,
-0.06720689684152603,
-0.5624845027923584,
-0.5256754755973816,
0.3926772177219391,
0.7440643310546875,
0.08881796896457672,
-0.9635258913040161,
0.15328486263751984,
0.5695266127586365,... |
func Inject(container mediator.Container, db *gorm.DB) {
container.Inject("db", db)
container.Inject("repository", repository.NewRepository(db))
} | [
0.24600772559642792,
0.8547226190567017,
0.49295905232429504,
0.11909924447536469,
0.7766892313957214,
0.3865089416503906,
-0.8062934875488281,
-0.06236391142010689,
-0.2951379418373108,
-0.014321014285087585,
0.04583411291241646,
0.37908443808555603,
0.0781024768948555,
1.2115159034729004... |
func loadOrSelfSignCertificate(cli typedCore.CoreV1Interface, cfg ServerConfig) (string, string, error) {
if cfg.TLSSecretName != "" {
// Load TLS certificate from secret
s, err := cli.Secrets(cfg.Namespace).Get(context.Background(), cfg.TLSSecretName, meta.GetOptions{})
if err != nil {
return "", "", err
}... | [
-0.09520219266414642,
0.005267346277832985,
0.6917210817337036,
-0.9513313174247742,
-0.7085736393928528,
-0.5787385106086731,
-0.2735709846019745,
-0.035699039697647095,
-0.3235851526260376,
0.7396077513694763,
-0.832520067691803,
-0.4266238212585449,
-0.49936577677726746,
1.1597857475280... |
func createTLSConfig(cert, key string) (*tls.Config, error) {
var result *tls.Config
c, err := tls.X509KeyPair([]byte(cert), []byte(key))
if err != nil {
return nil, errors.WithStack(err)
}
result = &tls.Config{
Certificates: []tls.Certificate{c},
}
return result, nil
} | [
0.835785448551178,
0.2944462299346924,
0.37327852845191956,
-0.3981368839740753,
-1.0464800596237183,
-0.23841948807239532,
-1.9021813869476318,
-0.09078134596347809,
-0.8023055791854858,
1.3577356338500977,
-0.9863412380218506,
-0.43740522861480713,
0.08002875745296478,
0.5514702200889587... |
func Constructor() RandomizedSet {
return RandomizedSet{
Value: map[int]bool{},
Keys: []int{},
}
} | [
-0.38502487540245056,
0.4913623631000519,
0.22991891205310822,
-0.7293525338172913,
-0.6901130676269531,
-0.08684694766998291,
0.2861137390136719,
0.4352293014526367,
0.044055722653865814,
-0.5653814673423767,
-0.15588131546974182,
-0.21367937326431274,
-0.3330687880516052,
0.0917871966958... |
func (set *RandomizedSet) Insert(val int) bool {
if v, ok := set.Value[val]; ok {
if v {
return false
}
} else {
set.Keys = append(set.Keys, val)
}
set.Value[val] = true
set.Count++
return true
} | [
-1.3435965776443481,
1.7518106698989868,
0.5416793823242188,
-1.5778908729553223,
-0.8370165228843689,
0.503332257270813,
-0.22763678431510925,
-0.5348620414733887,
-0.4810132682323456,
0.01783052459359169,
-0.48271888494491577,
-1.1217271089553833,
-1.198635458946228,
0.10059953480958939,... |
func (set *RandomizedSet) Remove(val int) bool {
if !set.Value[val] {
return false
}
set.Value[val] = false
set.Count--
if len(set.Keys) > 5*set.Count {
keys := []int{}
for key := range set.Value {
keys = append(keys, key)
}
set.Keys = keys
}
return true
} | [
-1.4048033952713013,
1.4662249088287354,
0.5279621481895447,
-1.339054822921753,
-1.8948901891708374,
-0.06305138766765594,
0.2186623513698578,
-0.6220868825912476,
-0.074710413813591,
0.5272611379623413,
-0.38762325048446655,
-1.1694568395614624,
-1.322305679321289,
0.2637336552143097,
... |
func (set *RandomizedSet) GetRandom() int {
if set.Count == 0 {
return 0
}
idx := rand.Int() % len(set.Keys)
for !set.Value[set.Keys[idx]] {
idx = rand.Int() % len(set.Keys)
}
return set.Keys[idx]
} | [
-0.588521420955658,
0.8115177750587463,
0.5255001783370972,
-0.524590253829956,
-0.3813812732696533,
-0.36501336097717285,
0.15652605891227722,
-0.359086275100708,
0.10857769846916199,
-0.6926931142807007,
0.6330035328865051,
0.4608062207698822,
-0.922594428062439,
0.35817235708236694,
-... |
func (w *widgetbase) allocate(x int, y int, width int, height int, d *sizing) []*allocation {
return []*allocation{&allocation{
x: x,
y: y,
width: width,
height: height,
this: w,
}}
} | [
-0.592481791973114,
0.22965015470981598,
0.6537829041481018,
0.4422856271266937,
-0.3679772615432739,
-0.31846463680267334,
-0.366172730922699,
-0.6180459856987,
0.8162218928337097,
-0.02512228675186634,
0.8074510097503662,
-0.2468983680009842,
0.5016462206840515,
0.25656062364578247,
-0... |
func (r *QueryResult) Parse(targets interface{}) error {
byts, _ := json.Marshal(r.Records)
return json.Unmarshal(byts, &targets)
} | [
-0.7264350652694702,
-0.03520883247256279,
0.19969527423381805,
-0.6822784543037415,
-0.021713286638259888,
-0.7366760969161987,
-0.6277754902839661,
-0.5667480230331421,
-0.20873504877090454,
0.12662053108215332,
-0.2522435784339905,
-0.5442931056022644,
-0.775360107421875,
-0.59823864698... |
func (c *whereClause) IsValid() bool {
switch c.condition.(type) {
case int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, float32, float64:
return true
case bool:
return true
case string:
return true
default:
return false
}
} | [
0.1524246335029602,
-0.6085584759712219,
0.4402802586555481,
0.05727998539805412,
0.11762512475252151,
0.687292754650116,
0.14741621911525726,
0.27169737219810486,
0.29980018734931946,
-0.1376415491104126,
0.35737934708595276,
0.6371113061904907,
-1.2986098527908325,
0.10748510807752609,
... |
func (op *OpQuery) Make(ctx *RequestCtx) (*Request, error) {
switch {
case op.sobjectName == "":
return nil, errors.New("missing Sobject name")
case len(op.selectFileds) <= 0:
return nil, errors.New("missing select fields")
default:
return NewRequest(http.MethodGet, ctx.QueryURL(op.makeQueryStatment()), nil),... | [
-0.7326832413673401,
-0.11714886128902435,
0.4574137330055237,
0.059618737548589706,
-0.12033531069755554,
-0.02143430896103382,
0.09645221382379532,
-0.9254400730133057,
0.08421652764081955,
-0.1761786937713623,
0.8088746070861816,
-0.19801612198352814,
-0.16253124177455902,
-0.9369469881... |
func (op *OpQuery) Handle(resp *http.Response) error {
if resp.StatusCode != http.StatusOK {
return fmt.Errorf("get operator can't handle response with code %d, expect %d", resp.StatusCode, http.StatusOK)
}
return json.NewDecoder(resp.Body).Decode(&op.result)
} | [
-0.2282579243183136,
-0.06128624081611633,
0.7422766089439392,
-0.12143000960350037,
-0.05227779597043991,
-0.10689700394868851,
-0.19463761150836945,
-0.6142048835754395,
0.5157713294029236,
-0.09059926122426987,
-0.31161800026893616,
-0.6270841956138611,
-0.5139136910438538,
-1.068934917... |
func (op *OpQuery) Select(fields ...string) *OpQuery {
if op.selectFileds == nil {
op.selectFileds = make([]string, 0)
}
op.selectFileds = append(op.selectFileds, fields...)
return op
} | [
0.04617712274193764,
0.1422351449728012,
0.2961396276950836,
-0.03590499237179756,
0.2556464672088623,
-0.010711826384067535,
0.2323397397994995,
-0.25890645384788513,
0.34826865792274475,
-0.13349661231040955,
-0.29794570803642273,
-0.1850297898054123,
-0.11058107018470764,
-0.54876446723... |
func (op *OpQuery) From(sobjectName string) *OpQuery {
op.sobjectName = sobjectName
return op
} | [
0.6747392416000366,
-0.6255910396575928,
0.2399825006723404,
0.4713199734687805,
-0.9057885408401489,
0.8073917031288147,
0.5901240706443787,
-0.17773939669132233,
0.8352277874946594,
0.24780377745628357,
0.4576442241668701,
0.0014579296112060547,
0.7266247272491455,
-0.7786151170730591,
... |
func (op *OpQuery) Where(field string, condition interface{}) *OpQuery {
where := whereClause{
field: field,
condition: condition,
}
if where.IsValid() {
op.whereClauses = append(op.whereClauses, where)
}
return op
} | [
0.5054544806480408,
-0.07527152448892593,
0.2574581801891327,
-0.12638600170612335,
-0.6962771415710449,
0.10220732539892197,
0.1543145626783371,
0.19058875739574432,
-0.0034282647538930178,
0.13937148451805115,
0.7199206948280334,
0.2571001946926117,
0.07447846233844757,
-0.77079176902771... |
func (op *OpQuery) OrderDesc(field string) *OpQuery {
op.order = fmt.Sprintf("%s DESC", field)
return op
} | [
0.5105977654457092,
0.01056110579520464,
0.5320904850959778,
0.15791012346744537,
0.08709538727998734,
0.772547721862793,
0.20290666818618774,
0.3306157886981964,
-0.5520347952842712,
-0.36343228816986084,
0.28806257247924805,
0.4783223569393158,
0.6917710900306702,
0.012168568558990955,
... |
func (op *OpQuery) OrderAsc(field string) *OpQuery {
op.order = fmt.Sprintf("%s ASC", field)
return op
} | [
0.20618188381195068,
-0.8797013163566589,
0.5305185317993164,
-0.14211392402648926,
-0.1769576370716095,
0.22039593756198883,
0.7946688532829285,
-0.6132259964942932,
-0.2370120882987976,
0.3147200644016266,
0.24920694530010223,
0.31802988052368164,
0.7998279929161072,
0.1868933141231537,
... |
func (op *OpQuery) OrderReset() *OpQuery {
op.order = ""
return op
} | [
0.12170735746622086,
0.17361854016780853,
0.3407980799674988,
0.284647673368454,
0.853834867477417,
-0.34502971172332764,
0.43884384632110596,
-0.5547115206718445,
0.2786574959754944,
-0.03952189162373543,
0.2471388727426529,
0.5288960337638855,
-0.1559222787618637,
-1.371112585067749,
-... |
func (op *OpQuery) OrderNullFirst() *OpQuery {
op.nullPriority = "NULL FIRST"
return op
} | [
0.7309834361076355,
-0.392743855714798,
0.7032407522201538,
0.2340744584798813,
1.1213268041610718,
-0.8525252342224121,
-0.7888291478157043,
-0.3006240725517273,
0.7707872986793518,
0.469252347946167,
-0.2438034564256668,
0.03389735147356987,
0.9009705781936646,
0.6584355235099792,
-1.2... |
func (op *OpQuery) OrderNullLast() *OpQuery {
op.nullPriority = "NULL LAST"
return op
} | [
0.7133342027664185,
-0.30449628829956055,
0.8377564549446106,
-0.1621740758419037,
0.5023759007453918,
-0.22918573021888733,
-0.7556544542312622,
-0.22867369651794434,
1.2766368389129639,
0.9659532904624939,
0.06666089594364166,
-0.5403426885604858,
0.03212607279419899,
0.12537291646003723... |
func (op *OpQuery) Limit(n int) *OpQuery {
op.limit = n
return op
} | [
-0.303777277469635,
0.8486835360527039,
0.43932411074638367,
0.45644161105155945,
0.01694776862859726,
0.2340574860572815,
0.7290188074111938,
0.007682358846068382,
1.1836588382720947,
-0.2556333839893341,
-0.20189516246318817,
-0.17350681126117706,
-0.4851168990135193,
-0.9174938201904297... |
func (op *OpQuery) makeSelectStatment() string {
if len(op.selectFileds) == 0 {
defaultLogger.Print("[QuerySObjectRequest] Missing Select fields")
}
return strings.Join(op.selectFileds, ",")
} | [
-0.690051257610321,
-1.11636221408844,
0.3510095477104187,
-1.4958839416503906,
-0.7440023422241211,
0.2408241331577301,
0.3443324565887451,
-1.0038344860076904,
0.8307169079780579,
0.5521265268325806,
0.3835415244102478,
-0.2672516405582428,
-0.19209523499011993,
-1.0259650945663452,
-0... |
func (op *OpQuery) makeWhereCluasesStatment() string {
var data = make(map[string]interface{})
for _, clause := range op.whereClauses {
if !clause.IsValid() {
defaultLogger.Printf(
"[QuerySObjectRequest] Found invalid where-clause which should be type of number, boolean or string. QuerySObject=%s, Field=%s, ... | [
-0.15044234693050385,
-0.8181729912757874,
0.6826783418655396,
-1.301071286201477,
-0.9196473956108093,
-0.43538227677345276,
0.5983955264091492,
-0.7865898609161377,
0.5917935967445374,
0.6744473576545715,
0.9241830706596375,
0.1555200070142746,
0.02298940159380436,
-1.1428604125976562,
... |
func (op *OpQuery) makeOrderStatment() string {
if op.order == "" {
return ""
}
var nullPriority = op.nullPriority
if op.nullPriority == "" {
nullPriority = "NULL FIRST"
}
return fmt.Sprintf("ORDER BY %s %s", op.order, nullPriority)
} | [
-0.2660937011241913,
-0.19166909158229828,
0.6650949716567993,
-0.9209189414978027,
-0.8911612629890442,
-0.757517397403717,
0.22426491975784302,
-0.4401877820491791,
0.9420847296714783,
0.10528253763914108,
0.448514461517334,
-0.6178207397460938,
-0.3720402121543884,
-0.1628042459487915,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.