text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (*EdgeFunctionsApiV1) NewDeleteEdgeFunctionsTriggerOptions(routeID string) *DeleteEdgeFunctionsTriggerOptions {
return &DeleteEdgeFunctionsTriggerOptions{
RouteID: core.StringPtr(routeID),
}
} | [
0.10716601461172104,
-0.21970555186271667,
0.35891079902648926,
0.20871451497077942,
0.691409170627594,
-0.8278882503509521,
-0.08886709064245224,
0.0027938345447182655,
0.24462531507015228,
0.05061379447579384,
0.1351851522922516,
0.0009338592644780874,
-0.3509857952594757,
-0.21773268282... |
func (options *DeleteEdgeFunctionsTriggerOptions) SetRouteID(routeID string) *DeleteEdgeFunctionsTriggerOptions {
options.RouteID = core.StringPtr(routeID)
return options
} | [
0.5292302370071411,
0.0015815297374501824,
0.25723427534103394,
-0.008632315322756767,
1.0687793493270874,
-0.19326011836528778,
0.22797438502311707,
0.63603276014328,
1.1098692417144775,
0.545021653175354,
0.21727848052978516,
0.3979133069515228,
-0.7912532687187195,
0.502527117729187,
... |
func (options *DeleteEdgeFunctionsTriggerOptions) SetXCorrelationID(xCorrelationID string) *DeleteEdgeFunctionsTriggerOptions {
options.XCorrelationID = core.StringPtr(xCorrelationID)
return options
} | [
0.15363062918186188,
0.22671835124492645,
0.2338905930519104,
-0.7463131546974182,
-0.12496167421340942,
-0.015468239784240723,
0.15532958507537842,
0.5565471053123474,
1.0728752613067627,
0.769564688205719,
0.11740684509277344,
0.48051580786705017,
-0.8078806400299072,
-0.1636289805173874... |
func (options *DeleteEdgeFunctionsTriggerOptions) SetHeaders(param map[string]string) *DeleteEdgeFunctionsTriggerOptions {
options.Headers = param
return options
} | [
0.01606699451804161,
0.18455177545547485,
0.331615149974823,
-0.27002501487731934,
0.7896377444267273,
-0.6075713038444519,
0.09240899980068207,
-0.13976220786571503,
0.11466014385223389,
0.023096544668078423,
0.12436401098966599,
-0.42147940397262573,
-0.3632621765136719,
-0.6051890850067... |
func (*EdgeFunctionsApiV1) NewGetEdgeFunctionsActionOptions(scriptName string) *GetEdgeFunctionsActionOptions {
return &GetEdgeFunctionsActionOptions{
ScriptName: core.StringPtr(scriptName),
}
} | [
-0.35778722167015076,
-0.5170737504959106,
0.4243583679199219,
0.9205257296562195,
0.8013759255409241,
-1.6377555131912231,
0.9223654866218567,
-0.48434871435165405,
0.12590083479881287,
0.18055225908756256,
-0.1909479796886444,
0.6904644966125488,
-0.537051796913147,
-0.10214319825172424,... |
func (options *GetEdgeFunctionsActionOptions) SetScriptName(scriptName string) *GetEdgeFunctionsActionOptions {
options.ScriptName = core.StringPtr(scriptName)
return options
} | [
-0.6911710500717163,
-0.5745468735694885,
0.5541008114814758,
0.5460313558578491,
0.1833028793334961,
-1.1482467651367188,
0.5473233461380005,
-0.5056768655776978,
0.7641881704330444,
0.7347275018692017,
-0.09600318223237991,
0.6091515421867371,
-0.36445000767707825,
0.01394304633140564,
... |
func (options *GetEdgeFunctionsActionOptions) SetXCorrelationID(xCorrelationID string) *GetEdgeFunctionsActionOptions {
options.XCorrelationID = core.StringPtr(xCorrelationID)
return options
} | [
-0.25946465134620667,
0.12040576338768005,
0.34048521518707275,
-0.729444146156311,
0.09839785844087601,
0.06977247446775436,
0.303245484828949,
0.18225765228271484,
1.4069486856460571,
0.8731483817100525,
0.10243474692106247,
0.836066722869873,
-0.8790882229804993,
-0.1396854817867279,
... |
func (options *GetEdgeFunctionsActionOptions) SetHeaders(param map[string]string) *GetEdgeFunctionsActionOptions {
options.Headers = param
return options
} | [
-0.414459228515625,
-0.07934174686670303,
0.4141863286495209,
-0.27916717529296875,
1.218963861465454,
-0.6492834091186523,
0.2325911521911621,
-0.6398913264274597,
0.251094251871109,
0.07501251995563507,
0.3104497194290161,
-0.10574642568826675,
-0.4443172514438629,
-0.5001064538955688,
... |
func (*EdgeFunctionsApiV1) NewGetEdgeFunctionsTriggerOptions(routeID string) *GetEdgeFunctionsTriggerOptions {
return &GetEdgeFunctionsTriggerOptions{
RouteID: core.StringPtr(routeID),
}
} | [
-0.12452095001935959,
0.04241662099957466,
0.37308964133262634,
0.24406173825263977,
1.1552225351333618,
-1.2212251424789429,
-0.08968961238861084,
-0.44519147276878357,
0.001831878093071282,
0.05477427691221237,
-0.26592129468917847,
0.19676348567008972,
-0.6143892407417297,
-0.4468921124... |
func (options *GetEdgeFunctionsTriggerOptions) SetRouteID(routeID string) *GetEdgeFunctionsTriggerOptions {
options.RouteID = core.StringPtr(routeID)
return options
} | [
0.5347959995269775,
0.09999009966850281,
0.29663845896720886,
0.04887234419584274,
1.1848044395446777,
-0.2563691735267639,
0.3234330415725708,
0.4699634611606598,
1.1048619747161865,
0.3935786187648773,
0.15923647582530975,
0.4767264723777771,
-0.8725301623344421,
0.43696272373199463,
-... |
func (options *GetEdgeFunctionsTriggerOptions) SetXCorrelationID(xCorrelationID string) *GetEdgeFunctionsTriggerOptions {
options.XCorrelationID = core.StringPtr(xCorrelationID)
return options
} | [
0.08290192484855652,
0.2719815671443939,
0.24277812242507935,
-0.7258163094520569,
-0.030498722568154335,
-0.022057967260479927,
0.19600045680999756,
0.3382315933704376,
1.0889023542404175,
0.6108490824699402,
-0.02283923700451851,
0.5278747081756592,
-0.8966077566146851,
-0.28400349617004... |
func (options *GetEdgeFunctionsTriggerOptions) SetHeaders(param map[string]string) *GetEdgeFunctionsTriggerOptions {
options.Headers = param
return options
} | [
-0.11253203451633453,
0.15076933801174164,
0.34429845213890076,
-0.24435202777385712,
0.9233808517456055,
-0.7108106017112732,
0.12755082547664642,
-0.468097448348999,
-0.009983974508941174,
-0.036521151661872864,
0.026630982756614685,
-0.37775492668151855,
-0.436290442943573,
-0.671995520... |
func (*EdgeFunctionsApiV1) NewListEdgeFunctionsActionsOptions() *ListEdgeFunctionsActionsOptions {
return &ListEdgeFunctionsActionsOptions{}
} | [
-0.7126075029373169,
-0.7001893520355225,
0.41780886054039,
0.25946539640426636,
0.9057957530021667,
-1.4358524084091187,
0.028956366702914238,
-0.2116987407207489,
0.6553661227226257,
-0.2263602465391159,
-0.42330941557884216,
0.22568827867507935,
-0.11873938143253326,
-0.1806389540433883... |
func (options *ListEdgeFunctionsActionsOptions) SetXCorrelationID(xCorrelationID string) *ListEdgeFunctionsActionsOptions {
options.XCorrelationID = core.StringPtr(xCorrelationID)
return options
} | [
-0.25477421283721924,
0.012037553824484348,
0.35713526606559753,
-0.7422806620597839,
0.06548430025577545,
0.1706630289554596,
0.16507938504219055,
0.4374091625213623,
1.4529657363891602,
0.8052513003349304,
-0.20822368562221527,
0.5829098224639893,
-0.9023886919021606,
0.20456033945083618... |
func (options *ListEdgeFunctionsActionsOptions) SetHeaders(param map[string]string) *ListEdgeFunctionsActionsOptions {
options.Headers = param
return options
} | [
-0.501975953578949,
-0.26324746012687683,
0.40903788805007935,
-0.27908581495285034,
1.0593277215957642,
-0.5046822428703308,
0.08832608163356781,
-0.22187747061252594,
0.5343612432479858,
-0.15176469087600708,
-0.03336150199174881,
-0.0984313115477562,
-0.6016045808792114,
-0.137392774224... |
func (*EdgeFunctionsApiV1) NewListEdgeFunctionsTriggersOptions() *ListEdgeFunctionsTriggersOptions {
return &ListEdgeFunctionsTriggersOptions{}
} | [
-0.25063735246658325,
-0.4100794792175293,
0.4592674970626831,
0.09041684120893478,
1.1649030447006226,
-1.0918916463851929,
-0.41221630573272705,
-0.08144476264715195,
0.14385055005550385,
0.02467161789536476,
-0.8802904486656189,
-0.11722598224878311,
-0.2850717008113861,
-0.538266122341... |
func (options *ListEdgeFunctionsTriggersOptions) SetXCorrelationID(xCorrelationID string) *ListEdgeFunctionsTriggersOptions {
options.XCorrelationID = core.StringPtr(xCorrelationID)
return options
} | [
0.09943358600139618,
0.20312073826789856,
0.2687903940677643,
-0.7208853960037231,
0.05662626400589943,
0.14010798931121826,
0.10751187056303024,
0.4997744560241699,
1.1629374027252197,
0.6994726061820984,
-0.34449970722198486,
0.31879809498786926,
-0.9766945838928223,
0.01294481847435236,... |
func (options *ListEdgeFunctionsTriggersOptions) SetHeaders(param map[string]string) *ListEdgeFunctionsTriggersOptions {
options.Headers = param
return options
} | [
-0.11245080083608627,
0.031794559210538864,
0.33161017298698425,
-0.23843598365783691,
0.9938696622848511,
-0.5746615529060364,
0.047963909804821014,
-0.2186758816242218,
0.211503267288208,
-0.06571215391159058,
-0.32204288244247437,
-0.3068851828575134,
-0.6873842477798462,
-0.38798820972... |
func (*EdgeFunctionsApiV1) NewUpdateEdgeFunctionsActionOptions(scriptName string) *UpdateEdgeFunctionsActionOptions {
return &UpdateEdgeFunctionsActionOptions{
ScriptName: core.StringPtr(scriptName),
}
} | [
-0.8740158081054688,
-1.199224591255188,
0.42549988627433777,
0.7525324821472168,
-0.1606638878583908,
-1.1827541589736938,
0.8448916673660278,
-0.3246881663799286,
0.11703334748744965,
0.9431036710739136,
-0.2849445939064026,
0.5162312388420105,
-0.5513693690299988,
-0.16878528892993927,
... |
func (options *UpdateEdgeFunctionsActionOptions) SetScriptName(scriptName string) *UpdateEdgeFunctionsActionOptions {
options.ScriptName = core.StringPtr(scriptName)
return options
} | [
-0.9021734595298767,
-0.8031929135322571,
0.5178481936454773,
0.5607360601425171,
-0.2701975107192993,
-0.8617978692054749,
0.473291277885437,
-0.35138294100761414,
0.8705525398254395,
1.0517791509628296,
-0.23757946491241455,
0.3688703179359436,
-0.4001275599002838,
-0.08167050778865814,
... |
func (options *UpdateEdgeFunctionsActionOptions) SetEdgeFunctionsAction(edgeFunctionsAction io.ReadCloser) *UpdateEdgeFunctionsActionOptions {
options.EdgeFunctionsAction = edgeFunctionsAction
return options
} | [
-1.5512245893478394,
-0.9497097730636597,
0.4730404317378998,
0.11589427292346954,
0.5563453435897827,
-0.7501813173294067,
1.1423298120498657,
-0.6303620338439941,
0.16582539677619934,
0.6616424918174744,
-0.5068273544311523,
0.46663862466812134,
-0.569028377532959,
-0.30449721217155457,
... |
func (options *UpdateEdgeFunctionsActionOptions) SetXCorrelationID(xCorrelationID string) *UpdateEdgeFunctionsActionOptions {
options.XCorrelationID = core.StringPtr(xCorrelationID)
return options
} | [
-0.42125383019447327,
-0.06579136103391647,
0.3229673504829407,
-0.7953426837921143,
-0.27809324860572815,
0.2243550419807434,
0.34857654571533203,
0.3257518708705902,
1.4092116355895996,
1.1021167039871216,
0.05930430442094803,
0.6425685882568359,
-0.9114018082618713,
-0.15214838087558746... |
func (options *UpdateEdgeFunctionsActionOptions) SetHeaders(param map[string]string) *UpdateEdgeFunctionsActionOptions {
options.Headers = param
return options
} | [
-0.6885824799537659,
-0.3366651237010956,
0.39184215664863586,
-0.25664252042770386,
0.7533947825431824,
-0.2516471743583679,
0.23613980412483215,
-0.4089789390563965,
0.3360295593738556,
0.3598293364048004,
0.2374717891216278,
-0.3841721713542938,
-0.5209779143333435,
-0.5295973420143127,... |
func (*EdgeFunctionsApiV1) NewUpdateEdgeFunctionsTriggerOptions(routeID string) *UpdateEdgeFunctionsTriggerOptions {
return &UpdateEdgeFunctionsTriggerOptions{
RouteID: core.StringPtr(routeID),
}
} | [
-0.6457093358039856,
-0.5366287231445312,
0.362387478351593,
0.07235109806060791,
0.21278393268585205,
-0.7338443398475647,
-0.12346582859754562,
-0.2107020914554596,
-0.05042176693677902,
0.849793553352356,
-0.4137032628059387,
0.06139487400650978,
-0.7753331065177917,
-0.393642783164978,... |
func (options *UpdateEdgeFunctionsTriggerOptions) SetRouteID(routeID string) *UpdateEdgeFunctionsTriggerOptions {
options.RouteID = core.StringPtr(routeID)
return options
} | [
0.3333449959754944,
-0.05380818620324135,
0.2993490695953369,
-0.0011516122613102198,
0.8512749671936035,
-0.019442403689026833,
0.30199822783470154,
0.5303707122802734,
1.0946539640426636,
0.6814365386962891,
0.008279332891106606,
0.3025800883769989,
-0.9715915322303772,
0.367312043905258... |
func (options *UpdateEdgeFunctionsTriggerOptions) SetPattern(pattern string) *UpdateEdgeFunctionsTriggerOptions {
options.Pattern = core.StringPtr(pattern)
return options
} | [
-0.3032979667186737,
0.17245256900787354,
0.26076817512512207,
0.36507976055145264,
0.7741066813468933,
-0.06468086689710617,
0.9310513734817505,
0.4555361270904541,
1.277630090713501,
-0.6776794195175171,
-0.6656255722045898,
0.2880648374557495,
-0.3877226412296295,
-0.10162412375211716,
... |
func (options *UpdateEdgeFunctionsTriggerOptions) SetScript(script string) *UpdateEdgeFunctionsTriggerOptions {
options.Script = core.StringPtr(script)
return options
} | [
-0.2896282374858856,
0.010549436323344707,
0.22510860860347748,
0.1655265837907791,
0.21749848127365112,
-0.6102914810180664,
0.6666921973228455,
-0.6668912768363953,
0.8679163455963135,
0.21796347200870514,
-0.29995936155319214,
0.20982855558395386,
-0.45276927947998047,
-0.54194092750549... |
func (options *UpdateEdgeFunctionsTriggerOptions) SetXCorrelationID(xCorrelationID string) *UpdateEdgeFunctionsTriggerOptions {
options.XCorrelationID = core.StringPtr(xCorrelationID)
return options
} | [
-0.05363434925675392,
0.13293157517910004,
0.23246656358242035,
-0.7746330499649048,
-0.3383215367794037,
0.13421054184436798,
0.22959613800048828,
0.4360955059528351,
1.0834141969680786,
0.8206644058227539,
-0.07172242552042007,
0.34559181332588196,
-0.9580370187759399,
-0.272899270057678... |
func (options *UpdateEdgeFunctionsTriggerOptions) SetHeaders(param map[string]string) *UpdateEdgeFunctionsTriggerOptions {
options.Headers = param
return options
} | [
-0.32587143778800964,
-0.02965020202100277,
0.3324788808822632,
-0.22763954102993011,
0.5539328455924988,
-0.3954848051071167,
0.12324422597885132,
-0.3191324472427368,
0.05308883637189865,
0.1991960108280182,
-0.04001469910144806,
-0.6438098549842834,
-0.5622580051422119,
-0.6632531881332... |
func UnmarshalCreateEdgeFunctionsTriggerResp(m map[string]json.RawMessage, result interface{}) (err error) {
obj := new(CreateEdgeFunctionsTriggerResp)
err = core.UnmarshalModel(m, "result", &obj.Result, UnmarshalEdgeFunctionsTriggerID)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "success", &obj.Su... | [
0.09003616124391556,
-0.0734148770570755,
0.5168405175209045,
-1.2075446844100952,
-0.14725014567375183,
-1.0159258842468262,
0.14568552374839783,
-0.24172744154930115,
-0.424846351146698,
0.7897270917892456,
-0.7950491905212402,
-0.894477128982544,
-0.9490272402763367,
-0.5339503288269043... |
func UnmarshalDeleteEdgeFunctionsActionResp(m map[string]json.RawMessage, result interface{}) (err error) {
obj := new(DeleteEdgeFunctionsActionResp)
err = core.UnmarshalModel(m, "result", &obj.Result, UnmarshalEdgeFunctionsActionID)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "success", &obj.Succe... | [
-0.33735087513923645,
-0.4267379939556122,
0.6281014084815979,
-0.9314184188842773,
-0.24450141191482544,
-1.1213138103485107,
0.302267849445343,
-0.24029457569122314,
0.3464280962944031,
0.9327621459960938,
-0.26841476559638977,
-0.3528784513473511,
-0.47066739201545715,
-0.30413076281547... |
func UnmarshalEdgeFunctionsActionID(m map[string]json.RawMessage, result interface{}) (err error) {
obj := new(EdgeFunctionsActionID)
err = core.UnmarshalPrimitive(m, "id", &obj.ID)
if err != nil {
return
}
reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj))
return
} | [
-0.836498498916626,
-0.4016084372997284,
0.41344740986824036,
-0.7661232352256775,
0.4091377258300781,
-0.36465898156166077,
0.6864267587661743,
-0.4397762417793274,
0.6821967959403992,
0.8937298655509949,
-0.4200206995010376,
0.11786824464797974,
-0.5068714618682861,
0.47337523102760315,
... |
func UnmarshalEdgeFunctionsActionResp(m map[string]json.RawMessage, result interface{}) (err error) {
obj := new(EdgeFunctionsActionResp)
err = core.UnmarshalPrimitive(m, "script", &obj.Script)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "etag", &obj.Etag)
if err != nil {
return
}
err = core.U... | [
-0.20224261283874512,
-0.6555200815200806,
0.8095489740371704,
-1.0916732549667358,
-0.026423674076795578,
-0.7900121212005615,
0.38973528146743774,
-0.044824324548244476,
0.4487171471118927,
0.7851762175559998,
-0.40230199694633484,
-0.6484031677246094,
-0.5022220015525818,
0.242355421185... |
func UnmarshalEdgeFunctionsTriggerID(m map[string]json.RawMessage, result interface{}) (err error) {
obj := new(EdgeFunctionsTriggerID)
err = core.UnmarshalPrimitive(m, "id", &obj.ID)
if err != nil {
return
}
reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj))
return
} | [
-0.7607850432395935,
0.03958253562450409,
0.4015195965766907,
-0.9171969890594482,
-0.16170206665992737,
-0.41869962215423584,
0.1569806933403015,
0.16524618864059448,
0.07177042961120605,
0.5764726996421814,
-0.6686529517173767,
-0.4892324209213257,
-0.7545446753501892,
0.2336696535348892... |
func UnmarshalEdgeFunctionsTriggerResp(m map[string]json.RawMessage, result interface{}) (err error) {
obj := new(EdgeFunctionsTriggerResp)
err = core.UnmarshalPrimitive(m, "id", &obj.ID)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "pattern", &obj.Pattern)
if err != nil {
return
}
err = core.U... | [
-0.10286522656679153,
-0.3476150929927826,
0.6664009094238281,
-1.1396117210388184,
-0.28273066878318787,
-0.8028315901756287,
0.27707338333129883,
-0.00712231220677495,
0.30532264709472656,
0.5987219214439392,
-0.6438043713569641,
-0.8640883564949036,
-0.8830849528312683,
-0.5127693414688... |
func UnmarshalGetEdgeFunctionsActionResp(m map[string]json.RawMessage, result interface{}) (err error) {
obj := new(GetEdgeFunctionsActionResp)
err = core.UnmarshalModel(m, "result", &obj.Result, UnmarshalEdgeFunctionsActionResp)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "success", &obj.Success)
... | [
-0.4345090687274933,
-0.33220648765563965,
0.7603060603141785,
-1.021038293838501,
0.1101292073726654,
-1.0154893398284912,
0.7063858509063721,
-0.5492220520973206,
0.13354676961898804,
1.0608679056167603,
-0.38377341628074646,
-0.48623600602149963,
-0.5380186438560486,
-0.0888346806168556... |
func UnmarshalGetEdgeFunctionsTriggerResp(m map[string]json.RawMessage, result interface{}) (err error) {
obj := new(GetEdgeFunctionsTriggerResp)
err = core.UnmarshalModel(m, "result", &obj.Result, UnmarshalEdgeFunctionsTriggerResp)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "success", &obj.Succes... | [
-0.25919467210769653,
-0.03176921233534813,
0.6738255023956299,
-1.241599678993225,
-0.18798604607582092,
-1.0986510515213013,
0.19809643924236298,
-0.30327391624450684,
-0.19928546249866486,
0.6393467783927917,
-0.6980437636375427,
-0.888781726360321,
-0.7043746113777161,
-0.4174917638301... |
func UnmarshalListEdgeFunctionsActionsResp(m map[string]json.RawMessage, result interface{}) (err error) {
obj := new(ListEdgeFunctionsActionsResp)
err = core.UnmarshalModel(m, "result", &obj.Result, UnmarshalEdgeFunctionsActionResp)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "success", &obj.Succe... | [
0.12759269773960114,
-0.6771445870399475,
0.640166699886322,
-0.8386898040771484,
0.056817006319761276,
-1.1709368228912354,
0.3124893307685852,
-0.10614556074142456,
0.6506434679031372,
0.5335426926612854,
-0.6064606308937073,
-0.5234973430633545,
-0.5576048493385315,
0.371974915266037,
... |
func UnmarshalListEdgeFunctionsTriggersResp(m map[string]json.RawMessage, result interface{}) (err error) {
obj := new(ListEdgeFunctionsTriggersResp)
err = core.UnmarshalModel(m, "result", &obj.Result, UnmarshalEdgeFunctionsTriggerResp)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "success", &obj.Su... | [
0.031690564006567,
-0.31927379965782166,
0.48325076699256897,
-1.3760496377944946,
0.1284456104040146,
-0.9734342694282532,
-0.13502389192581177,
0.21724487841129303,
0.1386437863111496,
0.44334858655929565,
-0.8532866835594177,
-0.6881250143051147,
-0.7391853928565979,
0.11831912398338318... |
func createTeam(c *gin.Context) {
var tm Team
//Validates json
if err := c.BindJSON(&tm); err != nil {
createBadRequestResponse(c, err)
return
}
//Creates Team in database
if err := db.Create(&tm).Error; err != nil {
createStatusConflictResponse(c)
return
}
c.JSON(200, tm)
} | [
-0.49236541986465454,
-0.22147777676582336,
0.5919206738471985,
0.34781554341316223,
1.1455821990966797,
0.7105340957641602,
-0.2400587946176529,
-0.4299122393131256,
-0.7263439297676086,
0.6831448674201965,
-0.12414637953042984,
-0.5539000630378723,
-0.05034469813108444,
0.072454556822776... |
func getTeams(c *gin.Context) {
var tms []Team
//Reads from database
if err := db.Preload("VolunteerEmails").Find(&tms).Error; err != nil {
createNotFoundResponse(c)
return
}
//Checks if user is reporter
if !reporterAuth(c) {
return
}
c.JSON(200, tms)
} | [
0.19737035036087036,
0.7572158575057983,
0.4151262044906616,
0.119858019053936,
0.7280712127685547,
0.21317707002162933,
-0.07763132452964783,
-0.37485966086387634,
-0.18547318875789642,
0.5863853096961975,
0.6334818601608276,
0.4003657102584839,
-0.1362513303756714,
-0.09019195288419724,
... |
func getTeam(c *gin.Context) {
id := c.Params.ByName("identifier")
var tm Team
if err := db.Where("identifier = ?", id).Preload("VolunteerEmails").First(&tm).Error; err != nil {
createNotFoundResponse(c)
return
}
c.JSON(200, tm)
} | [
-0.018576227128505707,
0.2166360318660736,
0.42867615818977356,
0.4873470962047577,
0.6895391941070557,
-0.21734265983104706,
-0.09187375009059906,
-0.43270400166511536,
-0.13908231258392334,
0.563805878162384,
0.11059829592704773,
1.0456373691558838,
-0.016498705372214317,
-0.757258772850... |
func deleteTeam(c *gin.Context) {
identifier := c.Params.ByName("identifier")
var tm Team
if err := db.Where("identifier = ?", identifier).Find(&tm).Error; err != nil {
createNotFoundResponse(c)
return
}
db.Delete(&tm)
c.JSON(200, gin.H{"Message": identifier + " deleted"})
} | [
-0.33552902936935425,
-0.32308825850486755,
0.2876250147819519,
0.372383177280426,
0.6854353547096252,
0.33441129326820374,
0.4410339593887329,
-0.11405336111783981,
-0.15485234558582306,
0.026628579944372177,
-0.21590571105480194,
0.10856133699417114,
0.2105501890182495,
-0.03786313906311... |
func assignVolunteerToTeam(c *gin.Context) {
identifier := c.Params.ByName("identifier")
var ve VolunteerEmail
//Validates json
if err := c.BindJSON(&ve); err != nil {
createBadRequestResponse(c, err)
return
}
email := ve.VolunteerEmail
//Gets VolunteerEmail from database
err := db.Raw(getCfgString(cSelec... | [
-0.5844887495040894,
-0.9873277544975281,
0.6623570919036865,
-0.04505239054560661,
0.8434661030769348,
0.16703854501247406,
0.4190102219581604,
0.19871209561824799,
-0.4295308589935303,
1.2525513172149658,
-0.28458935022354126,
0.7404805421829224,
-0.41988101601600647,
-0.3909616470336914... |
func deassignVolunteerFromTeam(c *gin.Context) {
identifier := c.Params.ByName("identifier")
var ve VolunteerEmail
//Validates json
if err := c.BindJSON(&ve); err != nil {
createBadRequestResponse(c, err)
return
}
email := ve.VolunteerEmail
//Gets VolunteerEmail from database
err := db.Raw(getCfgString(cS... | [
-0.18545077741146088,
-0.6935078501701355,
0.614500880241394,
0.017432380467653275,
-0.009591719135642052,
0.10788402706384659,
0.37079912424087524,
0.30210447311401367,
-0.5495482087135315,
1.2604105472564697,
-0.015011459589004517,
1.0505506992340088,
-0.4213910400867462,
-0.558027267456... |
func main() {
var counter int64 = 0
var wg sync.WaitGroup
for i := 0; i < 100; i++ {
wg.Add(1)
go func() {
//this will make and atomic operation over the given memory space
atomic.AddInt64(&counter, 1)
wg.Done()
}()
}
wg.Wait()
fmt.Println(counter)
} | [
0.4330514371395111,
1.0884240865707397,
0.6389827132225037,
0.5910736918449402,
-0.2848043739795685,
-0.17783579230308533,
0.8948472142219543,
0.14096583425998688,
-0.717451810836792,
-0.25369954109191895,
0.19614078104496002,
0.6344496607780457,
0.2563481032848358,
0.8407619595527649,
-... |
func NewEventoDTO() *EventoDTO {
this := EventoDTO{}
return &this
} | [
0.3557318449020386,
-0.5514129400253296,
0.150991752743721,
-0.00028425914933905005,
-0.3099965453147888,
-0.554498016834259,
-0.17864841222763062,
-0.31001409888267517,
-0.427143931388855,
-0.7815697193145752,
-0.9219862222671509,
0.5811571478843689,
0.5362822413444519,
-0.048411455005407... |
func NewEventoDTOWithDefaults() *EventoDTO {
this := EventoDTO{}
return &this
} | [
-0.13582640886306763,
0.061418771743774414,
0.10813070833683014,
0.11968836933374405,
0.5011128783226013,
-0.30381059646606445,
-0.42205560207366943,
-1.0192248821258545,
-0.17987602949142456,
-1.120774745941162,
-0.9666897654533386,
-0.3291635811328888,
0.24393945932388306,
0.587330698966... |
func (o *EventoDTO) GetId() int64 {
if o == nil || o.Id == nil {
var ret int64
return ret
}
return *o.Id
} | [
0.7806105613708496,
0.3444500267505646,
0.5065671801567078,
1.1824971437454224,
0.3838900923728943,
0.023105362430214882,
1.2257219552993774,
-0.15351034700870514,
1.5290738344192505,
-0.6116811037063599,
-0.08511336147785187,
-1.0301775932312012,
-0.7177838087081909,
1.1416962146759033,
... |
func (o *EventoDTO) GetIdOk() (*int64, bool) {
if o == nil || o.Id == nil {
return nil, false
}
return o.Id, true
} | [
-0.6972362399101257,
0.9559561014175415,
0.6034563183784485,
1.2906254529953003,
0.5585159659385681,
-0.007120692171156406,
0.9270067811012268,
0.7184494137763977,
0.9955384731292725,
-0.18125629425048828,
-1.13925039768219,
-0.44836661219596863,
0.07952087372541428,
0.34546926617622375,
... |
func (o *EventoDTO) HasId() bool {
if o != nil && o.Id != nil {
return true
}
return false
} | [
1.0642037391662598,
0.019702259451150894,
0.7178597450256348,
0.6875352263450623,
0.4811210632324219,
0.5830734968185425,
0.21408410370349884,
0.8672916889190674,
1.3334437608718872,
-0.5274100303649902,
-0.6297421455383301,
-0.4880671799182892,
-0.4099748432636261,
0.2974916696548462,
0... |
func (o *EventoDTO) SetId(v int64) {
o.Id = &v
} | [
0.13932833075523376,
0.3764978349208832,
0.08846975862979889,
0.6131064891815186,
-0.47497987747192383,
0.4257628321647644,
-0.1890544295310974,
-0.7047740817070007,
1.0325144529342651,
0.6233224868774414,
-0.28617119789123535,
0.6374398469924927,
0.2604156732559204,
0.5243005156517029,
... |
func (o *EventoDTO) GetRefTipoEvento() int64 {
if o == nil || o.RefTipoEvento.Get() == nil {
var ret int64
return ret
}
return *o.RefTipoEvento.Get()
} | [
0.6165243983268738,
0.40415602922439575,
0.7679619789123535,
1.3474022150039673,
-0.20901362597942352,
-0.6299794912338257,
0.910525918006897,
-0.6049448251724243,
0.6057712435722351,
-0.181936115026474,
-0.12459912151098251,
-1.5359410047531128,
-0.21620604395866394,
0.37158116698265076,
... |
func (o *EventoDTO) GetRefTipoEventoOk() (*int64, bool) {
if o == nil {
return nil, false
}
return o.RefTipoEvento.Get(), o.RefTipoEvento.IsSet()
} | [
-0.3057838976383209,
0.5529044270515442,
0.8808553814888,
0.5949081778526306,
-0.06875859200954437,
-0.23382633924484253,
1.027675747871399,
0.13694532215595245,
0.3979772627353668,
0.24340708553791046,
-0.2846279442310333,
-1.5484716892242432,
0.030505625531077385,
0.6340690851211548,
1... |
func (o *EventoDTO) HasRefTipoEvento() bool {
if o != nil && o.RefTipoEvento.IsSet() {
return true
}
return false
} | [
0.621206521987915,
0.38046345114707947,
0.7584543228149414,
0.3322771489620209,
0.4664556384086609,
-0.7758339643478394,
0.5018521547317505,
0.07453960180282593,
0.014645559713244438,
-0.0760699212551117,
-0.8241947889328003,
-1.1618560552597046,
0.34609752893447876,
0.737401008605957,
0... |
func (o *EventoDTO) SetRefTipoEvento(v int64) {
o.RefTipoEvento.Set(&v)
} | [
0.26123911142349243,
0.7022616863250732,
0.5879501104354858,
0.6835708022117615,
-0.27347230911254883,
-0.3041735291481018,
0.7562506794929504,
-0.5487301349639893,
0.11998175084590912,
0.5034457445144653,
-0.5821484327316284,
-1.0067980289459229,
0.7162194848060608,
0.14149557054042816,
... |
func (o *EventoDTO) SetRefTipoEventoNil() {
o.RefTipoEvento.Set(nil)
} | [
-0.045729707926511765,
-0.082132488489151,
0.5078461170196533,
0.06101580336689949,
0.0592675507068634,
-0.46704065799713135,
0.6153378486633301,
-0.39668306708335876,
0.009345012716948986,
0.3299715518951416,
-0.8473027348518372,
-0.48179104924201965,
0.9990255832672119,
-0.25509431958198... |
func (o *EventoDTO) UnsetRefTipoEvento() {
o.RefTipoEvento.Unset()
} | [
-0.25437992811203003,
0.2666519582271576,
0.263409823179245,
-0.2748880386352539,
-0.23879405856132507,
-0.5062580704689026,
1.230385422706604,
-0.8129613399505615,
-0.3621405363082886,
0.10707686841487885,
-0.20637913048267365,
-0.26303234696388245,
0.46215909719467163,
0.0628303363919258... |
func (o *EventoDTO) GetMensagem() string {
if o == nil || o.Mensagem.Get() == nil {
var ret string
return ret
}
return *o.Mensagem.Get()
} | [
-0.05812714248895645,
-0.10426979511976242,
0.32766520977020264,
1.3088499307632446,
0.06993555277585983,
-0.5685638785362244,
0.2146645039319992,
-0.5807770490646362,
0.6087731122970581,
-0.48039016127586365,
0.38628095388412476,
-1.5380512475967407,
-0.4839121699333191,
1.202396273612976... |
func (o *EventoDTO) GetMensagemOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Mensagem.Get(), o.Mensagem.IsSet()
} | [
-0.5396575331687927,
0.5074405074119568,
0.5590597987174988,
1.2369894981384277,
-0.018521226942539215,
-0.6093076467514038,
0.14226724207401276,
0.26786497235298157,
0.12897786498069763,
0.18316875398159027,
-0.4580214321613312,
-0.5939578413963318,
0.07414083927869797,
0.9440094232559204... |
func (o *EventoDTO) HasMensagem() bool {
if o != nil && o.Mensagem.IsSet() {
return true
}
return false
} | [
0.3473975658416748,
0.11004683375358582,
0.3859374225139618,
0.9448866248130798,
0.21920274198055267,
-0.7846068739891052,
-0.24810367822647095,
0.4468655288219452,
-0.07051685452461243,
-0.22613801062107086,
-0.5474391579627991,
-0.9022137522697449,
0.15827879309654236,
1.3780992031097412... |
func (o *EventoDTO) SetMensagem(v string) {
o.Mensagem.Set(&v)
} | [
0.1821703314781189,
0.04015083983540535,
0.12331399321556091,
0.31608712673187256,
-0.10526145994663239,
-0.09363321959972382,
-0.22883281111717224,
-0.2322131246328354,
-0.22179225087165833,
0.15314128994941711,
-0.4223680794239044,
-0.09790606796741486,
0.02768450602889061,
0.80823516845... |
func (o *EventoDTO) SetMensagemNil() {
o.Mensagem.Set(nil)
} | [
0.14395110309123993,
-0.48222780227661133,
0.49840712547302246,
0.039969682693481445,
-0.6580888628959656,
-0.7506382465362549,
-0.0720435231924057,
0.40221187472343445,
-0.12684586644172668,
0.5152329802513123,
-0.33915549516677856,
0.09411872923374176,
0.1096154972910881,
0.7951252460479... |
func (o *EventoDTO) UnsetMensagem() {
o.Mensagem.Unset()
} | [
-0.29671016335487366,
0.21811828017234802,
0.06672125309705734,
0.11101213842630386,
-0.09899236261844635,
-0.5908676385879517,
0.5333204865455627,
-0.11869416385889053,
-1.072511076927185,
0.26603376865386963,
0.09370089322328568,
0.12248659878969193,
0.2394774854183197,
0.835660398006439... |
func (o *EventoDTO) GetRefGvm() int64 {
if o == nil || o.RefGvm.Get() == nil {
var ret int64
return ret
}
return *o.RefGvm.Get()
} | [
-0.15182006359100342,
0.8839932680130005,
0.13711342215538025,
1.230491042137146,
0.37137338519096375,
-0.2042149156332016,
0.6259689927101135,
-0.8028510212898254,
0.08520109951496124,
-0.5088211894035339,
0.3625141382217407,
-0.36803770065307617,
-0.7815568447113037,
1.8322983980178833,
... |
func (o *EventoDTO) GetRefGvmOk() (*int64, bool) {
if o == nil {
return nil, false
}
return o.RefGvm.Get(), o.RefGvm.IsSet()
} | [
-0.6413823366165161,
0.828853964805603,
0.36801499128341675,
0.9665826559066772,
0.5957190990447998,
0.3807497024536133,
0.6518843770027161,
-0.18503344058990479,
-0.23124299943447113,
0.361994206905365,
-0.7059824466705322,
0.05291745066642761,
-0.22572146356105804,
1.1103527545928955,
... |
func (o *EventoDTO) HasRefGvm() bool {
if o != nil && o.RefGvm.IsSet() {
return true
}
return false
} | [
0.3590862452983856,
0.805483877658844,
0.09157618135213852,
0.2852313816547394,
0.995349645614624,
-0.4563770294189453,
0.18211014568805695,
-0.19821271300315857,
-0.658393144607544,
-0.410114049911499,
-0.3953476846218109,
0.003479795763269067,
-0.3537302017211914,
1.6768434047698975,
-... |
func (o *EventoDTO) SetRefGvm(v int64) {
o.RefGvm.Set(&v)
} | [
-0.46696552634239197,
0.8335933089256287,
-0.0020018606446683407,
0.64053875207901,
0.6732977628707886,
0.11834996193647385,
0.42802783846855164,
-0.7464079260826111,
-0.26384952664375305,
0.2943077087402344,
-0.3161385953426361,
0.26179075241088867,
0.2517659068107605,
1.6237984895706177,... |
func (o *EventoDTO) SetRefGvmNil() {
o.RefGvm.Set(nil)
} | [
0.03885205090045929,
-0.20178824663162231,
0.24289275705814362,
-0.039997752755880356,
0.35501715540885925,
-0.19461345672607422,
0.37147587537765503,
-0.5109013319015503,
-0.4873334765434265,
0.341777503490448,
-0.4951491057872772,
0.5792396068572998,
0.30741438269615173,
1.05678558349609... |
func (o *EventoDTO) UnsetRefGvm() {
o.RefGvm.Unset()
} | [
-0.30258771777153015,
0.5053352117538452,
-0.17542220652103424,
-0.25866255164146423,
0.538522481918335,
-0.19493591785430908,
1.0352524518966675,
-0.4896581768989563,
-1.219998836517334,
0.18190902471542358,
0.037035830318927765,
0.7561810612678528,
-0.056664202362298965,
1.18487548828125... |
func GetBlockTimeDifference(ops HTTPOptions, cfg *config.Config, c client.Client) {
bp, err := createBatchPoints(cfg.InfluxDB.Database)
if err != nil {
log.Printf("Error: %v", err)
return
}
// Calling function to get validator latest
// block height
currentBlockHeight := GetValidatorBlock(cfg, c)
if current... | [
0.08020447939634323,
-0.417850524187088,
1.4062888622283936,
0.9243186712265015,
0.3843531906604767,
0.2110055834054947,
0.4251185357570648,
-0.5578018426895142,
-1.2533897161483765,
0.8300860524177551,
-0.4021638333797455,
0.13914355635643005,
-0.6627760529518127,
0.6307182312011719,
1.... |
func NewOptionsTodoTodoidParams() *OptionsTodoTodoidParams {
var ()
return &OptionsTodoTodoidParams{
timeout: cr.DefaultTimeout,
}
} | [
-0.5059233903884888,
-0.15637309849262238,
0.019782312214374542,
-0.11727750301361084,
0.4706251919269562,
-0.26172053813934326,
0.512507975101471,
-0.16104361414909363,
0.0762351006269455,
-0.1950908750295639,
-0.23452216386795044,
0.49752411246299744,
0.10731767863035202,
0.3623127937316... |
func NewOptionsTodoTodoidParamsWithTimeout(timeout time.Duration) *OptionsTodoTodoidParams {
var ()
return &OptionsTodoTodoidParams{
timeout: timeout,
}
} | [
0.06756038218736649,
-0.14529885351657867,
0.24007685482501984,
-0.1013503298163414,
0.29089975357055664,
0.3944541811943054,
-0.3849567472934723,
-0.02850460633635521,
-0.03878983482718468,
0.7857123017311096,
-0.13541889190673828,
0.7782996892929077,
0.28959915041923523,
0.37639698386192... |
func NewOptionsTodoTodoidParamsWithContext(ctx context.Context) *OptionsTodoTodoidParams {
var ()
return &OptionsTodoTodoidParams{
Context: ctx,
}
} | [
-0.39712923765182495,
0.007085227873176336,
0.32531479001045227,
-0.4920262098312378,
0.44094139337539673,
0.4256305992603302,
-0.39942169189453125,
-0.8152099251747131,
0.42730459570884705,
0.1541525274515152,
-0.21578481793403625,
0.5250057578086853,
0.27934789657592773,
-0.0709528028964... |
func NewOptionsTodoTodoidParamsWithHTTPClient(client *http.Client) *OptionsTodoTodoidParams {
var ()
return &OptionsTodoTodoidParams{
HTTPClient: client,
}
} | [
-0.5468495488166809,
-0.3014827370643616,
0.19351743161678314,
-0.6703062057495117,
0.6325418949127197,
0.41749608516693115,
0.29849687218666077,
-0.2980044186115265,
-0.0028361487202346325,
-0.17745181918144226,
-0.45196792483329773,
0.2871031165122986,
0.23403476178646088,
-0.12366773933... |
func (o *OptionsTodoTodoidParams) WithTimeout(timeout time.Duration) *OptionsTodoTodoidParams {
o.SetTimeout(timeout)
return o
} | [
-0.18176977336406708,
0.16071681678295135,
0.1660165786743164,
-0.8430722951889038,
0.4363439381122589,
-0.00621148943901062,
0.3845451772212982,
-0.23167994618415833,
0.6753631234169006,
0.5321611166000366,
0.03030000627040863,
0.6269603967666626,
0.8108699321746826,
-0.060459692031145096... |
func (o *OptionsTodoTodoidParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
} | [
-0.675487756729126,
0.32374492287635803,
0.12340086698532104,
-0.9259697198867798,
0.7442102432250977,
0.21637549996376038,
0.1962420493364334,
-0.0822315663099289,
0.4514447748661041,
0.745608925819397,
-0.16166561841964722,
0.5586541891098022,
0.37449711561203003,
0.06807596981525421,
... |
func (o *OptionsTodoTodoidParams) WithContext(ctx context.Context) *OptionsTodoTodoidParams {
o.SetContext(ctx)
return o
} | [
-1.0303223133087158,
0.25910675525665283,
0.2594316005706787,
-0.9797670245170593,
0.2591318190097809,
0.03228134289383888,
0.15877079963684082,
-0.8429598808288574,
1.1318199634552002,
0.03773775324225426,
-0.061243686825037,
0.5739478468894958,
0.21622535586357117,
-0.5589130520820618,
... |
func (o *OptionsTodoTodoidParams) SetContext(ctx context.Context) {
o.Context = ctx
} | [
-1.3074369430541992,
0.3650456368923187,
0.07329420000314713,
-0.7573826909065247,
0.7038697004318237,
0.11137349903583527,
0.011319679208099842,
-0.6467040181159973,
1.2954127788543701,
0.14993087947368622,
-0.2563532888889313,
0.6106374263763428,
-0.09257257729768753,
-0.1955729424953460... |
func (o *OptionsTodoTodoidParams) WithHTTPClient(client *http.Client) *OptionsTodoTodoidParams {
o.SetHTTPClient(client)
return o
} | [
-0.6223200559616089,
-0.4638095200061798,
0.2633377015590668,
-1.1331521272659302,
0.4446271061897278,
-0.07212433964014053,
0.6876572966575623,
-0.7186973690986633,
0.36857765913009644,
-0.2855823040008545,
-0.045692626386880875,
0.3310932219028473,
0.5896311402320862,
-0.6824045181274414... |
func (o *OptionsTodoTodoidParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
} | [
-0.6054295897483826,
-0.287864625453949,
0.10600320249795914,
-1.4872199296951294,
0.2663743495941162,
-0.18648497760295868,
0.6541463136672974,
-0.8062534332275391,
-0.016508104279637337,
0.17240874469280243,
-0.3077002167701721,
0.6682949066162109,
-0.024478409439325333,
-0.5261681675910... |
func (o *OptionsTodoTodoidParams) WithTodoid(todoid string) *OptionsTodoTodoidParams {
o.SetTodoid(todoid)
return o
} | [
0.08549747616052628,
-0.6815049052238464,
-0.008542164228856564,
-0.8522176146507263,
0.08682979643344879,
0.5479575991630554,
0.39453449845314026,
-0.5381114482879639,
0.9492508769035339,
0.22298526763916016,
0.12406828254461288,
0.31660401821136475,
0.838409423828125,
-0.1901632100343704... |
func (o *OptionsTodoTodoidParams) SetTodoid(todoid string) {
o.Todoid = todoid
} | [
-0.4965059757232666,
-0.6559537649154663,
0.03886536881327629,
-0.9861388206481934,
0.4634113013744354,
0.5244925618171692,
0.38720986247062683,
-0.5307649970054626,
0.6022045612335205,
0.25695234537124634,
-0.4329947829246521,
0.579791784286499,
0.11808145046234131,
-0.13656899333000183,
... |
func (o *OptionsTodoTodoidParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param todoid
if err := r.SetPathParam("todoid", o.Todoid); err != nil {
return err
}
if len(res) > 0 {
return errors... | [
-1.4268935918807983,
-0.22309350967407227,
0.5530200600624084,
-0.47115275263786316,
1.2677994966506958,
-0.1973089724779129,
1.3834936618804932,
-0.08613977581262589,
-0.08477123081684113,
0.3869147300720215,
0.4700416624546051,
0.23226942121982574,
-0.38410118222236633,
-0.15019051730632... |
func GetSearch() *Search {
return &Search{
Service: service.NewEsService(strings.Split(config.GetConfig().EsURL, ",")),
Store: datastore.From(database.GetDB()),
KeywordFilter: make(map[string]*list.List),
}
} | [
-0.3314473032951355,
0.8725500702857971,
0.20092833042144775,
0.6469057202339172,
-0.12518422305583954,
-0.1509716510772705,
-0.7655821442604065,
0.12422305345535278,
0.6653978228569031,
-0.3140348196029663,
-0.13323600590229034,
0.39926597476005554,
-0.25326135754585266,
-0.17883624136447... |
func (s *Search) Applications(ctx *gin.Context) {
apps, err := s.Service.Applications(ctx.MustGet("page").(models.Page))
if err != nil {
utils.ErrorResponse(ctx, utils.NewError(GetAppsError, err))
return
}
utils.Ok(ctx, apps)
} | [
-0.5012761354446411,
-0.2157585322856903,
0.5856814384460449,
0.029973845928907394,
0.06045199930667877,
0.16139976680278778,
-0.6343422532081604,
-0.2520711421966553,
0.5753697156906128,
0.6662687659263611,
0.21103794872760773,
0.09620478004217148,
0.16580615937709808,
0.7486363649368286,... |
func (s *Search) Tasks(ctx *gin.Context) {
app := ctx.Param("app")
slot := ctx.Param("slot")
appLabel := config.LogAppLabel()
slotLabel := config.LogSlotLabel()
options := config.ConvertRequestQueryParams(ctx.Request.URL.Query())
options[appLabel] = app
options[slotLabel] = slot
tasks, err := s.Service.Tasks(op... | [
-0.5757892727851868,
0.2605501413345337,
0.7615939974784851,
-0.14126858115196228,
0.195683091878891,
0.2774806618690491,
0.054326754063367844,
-0.1718134880065918,
-0.17606385052204132,
0.7500569224357605,
-0.07296640425920486,
0.26410403847694397,
0.40223121643066406,
0.4696383476257324,... |
func (s *Search) Sources(ctx *gin.Context) {
app := ctx.Param("app")
appLabel := config.LogAppLabel()
options := config.ConvertRequestQueryParams(ctx.Request.URL.Query())
options[appLabel] = app
sources, err := s.Service.Sources(options, ctx.MustGet("page").(models.Page))
if err != nil {
utils.ErrorResponse(ctx... | [
-0.6502269506454468,
0.3284124732017517,
0.5774437189102173,
-0.2047676146030426,
0.4431353807449341,
0.20872949063777924,
-0.3740629553794861,
-0.10373695194721222,
0.46387752890586853,
0.44211429357528687,
0.42613115906715393,
-0.20594953000545502,
0.22114841639995575,
0.6752955913543701... |
func (s *Search) Context(ctx *gin.Context) {
app := ctx.Param("app")
appLabel := config.LogAppLabel()
options := config.ConvertRequestQueryParams(ctx.Request.URL.Query())
options[appLabel] = app
results, err := s.Service.Context(options, ctx.MustGet("page").(models.Page))
if err != nil {
utils.ErrorResponse(ctx... | [
-0.44567739963531494,
0.34181901812553406,
0.9396872520446777,
-0.23059508204460144,
0.2642618715763092,
0.633657693862915,
-0.5797691941261292,
-0.565803050994873,
0.7517293095588684,
0.778020977973938,
0.7165382504463196,
0.6969819664955139,
0.10448692739009857,
0.016332248225808144,
-... |
func (s *Search) Everything(ctx *gin.Context) {
key := ctx.Param("key")
options := config.ConvertRequestQueryParams(ctx.Request.URL.Query())
results, err := s.Service.Everything(key, options, ctx.MustGet("page").(models.Page))
if err != nil {
utils.ErrorResponse(ctx, utils.NewError(GetLogError, err))
return
}
... | [
-0.6909714937210083,
-0.3388307988643646,
0.9558582305908203,
0.3157076835632324,
0.4551999866962433,
0.6624712944030762,
-1.5770584344863892,
-0.20876282453536987,
-0.4403580129146576,
0.5752609968185425,
0.7280988097190857,
0.3811170756816864,
-0.1273355334997177,
0.8087235689163208,
-... |
func (u User) Validate() error {
if u.Email == "" || u.Password == "" {
return ErrMalformedEntity
}
if !govalidator.IsEmail(u.Email) {
return ErrMalformedEntity
}
return nil
} | [
-0.4530852138996124,
0.043749697506427765,
0.4629901349544525,
0.4126995801925659,
0.4425099194049835,
0.9933604001998901,
-0.253187358379364,
0.23740017414093018,
0.10180452466011047,
-1.1909847259521484,
0.4206194579601288,
-0.1511548012495041,
0.02837107516825199,
0.8786769509315491,
... |
func EstimateSlippagePercentage(maximumSlippageRate, minimumSlippageRate decimal.Decimal) decimal.Decimal {
if minimumSlippageRate.LessThan(decimal.NewFromInt(1)) || minimumSlippageRate.GreaterThan(decimal.NewFromInt(100)) {
return decimal.NewFromInt(1)
}
if maximumSlippageRate.LessThan(decimal.NewFromInt(1)) || m... | [
-0.466574490070343,
-0.11516065895557404,
0.8375753164291382,
-0.5265758037567139,
-0.9369019269943237,
0.07282964885234833,
-0.7008604407310486,
0.0705503597855568,
0.4501033425331116,
0.2412414401769638,
0.6723473072052002,
-0.7023060321807861,
-0.23212023079395294,
0.07575802505016327,
... |
func CalculateSlippageByOrderbook(ob *orderbook.Base, side gctorder.Side, allocatedFunds, feeRate decimal.Decimal) (price, amount decimal.Decimal, err error) {
var result *orderbook.WhaleBombResult
result, err = ob.SimulateOrder(allocatedFunds.InexactFloat64(), side == gctorder.Buy)
if err != nil {
return
}
rate... | [
-0.5668139457702637,
-0.026344671845436096,
0.7555224895477295,
-0.11390841752290726,
-0.4140262007713318,
-0.08316449075937271,
0.13856585323810577,
-0.41568997502326965,
0.027619868516921997,
0.7756577730178833,
0.0382683202624321,
-1.1962471008300781,
-0.19003286957740784,
0.67542302608... |
func (o *GetUpdatedQueryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewGetUpdatedQueryOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, ni... | [
-0.4151443541049957,
-1.5689291954040527,
0.6797585487365723,
0.3930409550666809,
-0.32856234908103943,
-0.5465085506439209,
-0.19992631673812866,
-0.34204500913619995,
0.6051807403564453,
0.48648548126220703,
0.6033952236175537,
0.02096928469836712,
-1.0375263690948486,
0.0508943684399127... |
func NewGetUpdatedQueryOK() *GetUpdatedQueryOK {
return &GetUpdatedQueryOK{}
} | [
-0.3661580979824066,
-0.8908383250236511,
-0.05028791353106499,
0.5627819895744324,
-0.8559613823890686,
0.7936429977416992,
0.5671406388282776,
0.8349153399467468,
-0.5495165586471558,
0.2313135862350464,
-0.3602052927017212,
-0.000995773239992559,
0.1556459665298462,
0.30453112721443176,... |
func NewGetUpdatedQueryUnauthorized() *GetUpdatedQueryUnauthorized {
return &GetUpdatedQueryUnauthorized{}
} | [
-0.8829175233840942,
-1.0220601558685303,
0.4116811454296112,
0.6854868531227112,
-1.0634207725524902,
0.33916744589805603,
-0.5493447780609131,
0.8183574676513672,
0.002456690650433302,
-0.8803748488426208,
0.07923091948032379,
1.5029782056808472,
-0.120668925344944,
-0.5371622443199158,
... |
func NewGetUpdatedQueryNotFound() *GetUpdatedQueryNotFound {
return &GetUpdatedQueryNotFound{}
} | [
-0.4296577572822571,
-2.6085939407348633,
0.031931858509778976,
-0.16255468130111694,
0.056281205266714096,
1.0003888607025146,
0.0357329435646534,
-0.10294456034898758,
0.11760430783033371,
-0.49314358830451965,
-0.435655415058136,
0.8702570796012878,
-0.23182465136051178,
-0.003683218732... |
func IsAbs(path string) bool {
return strings.HasPrefix(path, "/")
} | [
-0.5862199068069458,
-0.4034579396247864,
0.6759530305862427,
0.10409419983625412,
-0.8282923102378845,
0.8816513419151306,
-0.7368516325950623,
-0.49010130763053894,
0.9343051314353943,
0.11709319800138474,
0.09737838804721832,
0.21600888669490814,
0.652976930141449,
0.3460714817047119,
... |
func volumeName(path string) string {
return ""
} | [
0.04201564937829971,
-1.211992859840393,
0.36966636776924133,
0.3696288466453552,
-0.4623921513557434,
-0.6062018871307373,
-0.024345602840185165,
0.36673375964164734,
-0.09823410212993622,
-0.03714897856116295,
-0.031035026535391808,
-0.16209813952445984,
-0.17285677790641785,
-0.29116863... |
func CreateSession() (*gorm.DB, error) {
// Get database details from environment variables
host := os.Getenv("DB_HOST")
user := os.Getenv("DB_USER")
DBName := os.Getenv("DB_NAME")
password := os.Getenv("DB_PASSWORD")
return gorm.Open(
"postgres",
fmt.Sprintf(
"postgres://%s:%s@%s/%s?sslmode=disable",
... | [
0.5574051737785339,
-0.023464152589440346,
0.7300070524215698,
0.17336170375347137,
0.27778080105781555,
0.8925654292106628,
0.05049310252070427,
-0.056356847286224365,
-1.221558928489685,
0.4308241307735443,
0.182915598154068,
0.3656120002269745,
-1.145936369895935,
0.11204466968774796,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.