text
stringlengths
11
6.3k
embedding
listlengths
768
768
func NewContext() *Context { ctx := new(Context) ctx.data = make(map[interface{}]interface{}) return ctx }
[ 0.11313153803348541, -0.7730980515480042, 0.1722317636013031, -0.15015098452568054, -0.5671000480651855, 0.002717216731980443, -0.6209558844566345, -0.42909759283065796, 0.8539718389511108, -1.0414636135101318, -0.6578937768936157, 0.4064628481864929, 0.08622368425130844, -0.75361603498458...
func closeCtx(k *http.Request) { pk := privateKey(k) if _, has := internalCtx.Get(pk); has { internalCtx.Remove(pk) } }
[ -0.9023072123527527, -0.6993940472602844, 0.4734942317008972, -0.32153332233428955, -0.9718227386474609, 0.5770900249481201, -0.17821405827999115, 0.14565125107765198, 0.012959981337189674, 0.21414963901042938, 0.5430135130882263, -0.317169725894928, -0.710084855556488, 0.2694447636604309,...
func BindContext(hndl http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { print("Binding context\n") ctx := OpenCtx(req) print("BindContext: ", ctx, "\n") defer closeCtx(req) hndl.ServeHTTP(w, req) }) }
[ -0.4259985089302063, -0.6970871090888977, 0.6879710555076599, 0.24240297079086304, -0.9714422225952148, 0.6230249404907227, -0.022032182663679123, 0.11649767309427261, 0.2115176022052765, -0.6843512058258057, 0.5137926340103149, 0.03655208274722099, -0.038367193192243576, 0.574187755584716...
func (s *levelHandler) validate() error { if s.level == 0 { return nil } s.RLock() defer s.RUnlock() numTables := len(s.tables) for j := 1; j < numTables; j++ { if j >= len(s.tables) { return errors.Errorf("Level %d, j=%d numTables=%d", s.level, j, numTables) } if y.CompareKeys(s.tables[j-1].Biggest(...
[ -0.2509360611438751, 0.2618623971939087, 0.6744543313980103, -0.15487584471702576, -0.024741291999816895, 0.05110643431544304, 0.3962606191635132, -0.3659440577030182, -1.2428184747695923, -0.40872350335121155, -0.2205696702003479, 0.14631955325603485, -0.7251232862472534, 1.32216739654541...
func NewManager() (*Manager, error) { manager := &Manager{} var configs = viper.Get("authenticationClient").([]interface{}) for idx, config := range configs { provider := config.(map[interface{}]interface{})["provider"].(string) glog.V(2).Infof("Detected configuration for authentication client type: %s at index...
[ -0.7016294598579407, -0.4802912473678589, 0.6453134417533875, 0.2226557433605194, -0.5434568524360657, -0.49457916617393494, -0.24250297248363495, -0.42365050315856934, -0.33456990122795105, 1.2999743223190308, -0.05626076087355614, 0.8517991304397583, -0.24693365395069122, 1.0679851770401...
func (m Manager) CreateAnonymousUser() (*common.User, error) { if !m.EnableAnonymousAccess { return nil, errors.New("anonymous access it not permitted") } user := common.User{Origin: "Anonymous", Username: "Anonymous", Name: "Anonymous User", Email: ""} user.Roles = append(user.Roles, "Anonymous") return &user, ...
[ -0.019587211310863495, -0.0588049553334713, 0.358959823846817, 0.06844222545623779, -0.6347105503082275, 0.7074176669120789, -0.5182374119758606, -0.4345241189002991, -0.35465285181999207, -0.15858931839466095, -0.3532584309577942, -0.2995228171348572, -0.41813233494758606, 0.4102720022201...
func (m Manager) ValidateCredentials(username string, password string) (*common.User, error) { var errStrings []string var u *common.User var err error start := time.Now() if len(m.AuthenticationClients) == 0 { return nil, errors.New("no authentication providers enabled") } for _, c := range m.AuthenticationC...
[ -0.7456597089767456, -0.3366442620754242, 0.42100071907043457, 0.17440688610076904, -0.21121746301651, 0.346795916557312, 0.3043951392173767, -0.5058825016021729, -0.31449639797210693, -0.08820324391126633, 0.6474219560623169, 0.502939760684967, -1.3966526985168457, 0.6912896633148193, 0...
func (m Manager) CreateUserFromToken(token *jwt.Token) (*common.User, error) { return common.CreateUserFromToken(token) }
[ 0.10379114001989365, -0.33007293939590454, 0.1415586769580841, 0.08859609067440033, -0.014309852384030819, 0.7878783941268921, -0.7934424877166748, -1.8822250366210938, -0.13004259765148163, -0.7333381175994873, -1.1722160577774048, -0.5246542692184448, 0.015419233590364456, -0.14308011531...
func (m Manager) CreateUserFromTokenString(tokenString string) (*common.User, error) { return common.CreateUserFromTokenString(tokenString, m.PublicKey) }
[ 0.3697628676891327, -0.9107837080955505, -0.04346337541937828, 0.07761003077030182, -0.21024532616138458, 0.8058914542198181, -0.9447917938232422, -1.5476031303405762, -0.1485426127910614, -0.6512590646743774, -0.8943032026290894, -0.8941261768341064, -0.4516046643257141, -0.53755980730056...
func (m Manager) GetJwt(u *common.User) (string, error) { return u.GetJwt(m.PrivateKey, m.JwtExpiration) }
[ -0.0368322990834713, 0.4829791784286499, 0.30133530497550964, 1.1644206047058105, -1.4243320226669312, -0.06304274499416351, -0.27392107248306274, -0.8232454657554626, -0.12630796432495117, -0.1580965518951416, -0.12743161618709564, 0.5211360454559326, 0.021859603002667427, 0.1401572078466...
func (m Manager) RefreshJwt(u *common.User) (string, error) { return u.RefreshJwt(m.PrivateKey, m.JwtExpiration) }
[ 0.44743460416793823, 0.26951542496681213, 0.31819114089012146, 1.3758665323257446, -1.9787355661392212, 0.24765904247760773, -0.7909297347068787, -1.1915524005889893, 0.034282490611076355, 0.8148530125617981, 0.09755432605743408, 0.8168637752532959, -0.15519899129867554, 0.6240909695625305...
func (m Manager) IsAuthorized(u *common.User, actions map[string]string) bool { return m.Authorization.IsAuthorized(u, actions) }
[ -0.4240035116672516, -0.12405293434858322, 0.41193535923957825, 1.7338420152664185, -0.5091478228569031, -0.4282906949520111, 0.4949480891227722, 0.5871288776397705, 0.42437413334846497, -0.4685599207878113, 0.38598355650901794, 0.8924015760421753, 0.2008664309978485, 0.22108691930770874, ...
func (obj *Object3) Copy(source *Object3, recursive bool) { obj.Name = source.Name obj.up = *source.up.Clone() obj.Position = *source.Position.Clone() obj.quaternion = *source.quaternion.Clone() obj.Scale = *source.Scale.Clone() obj.matrix = *source.matrix.Clone() obj.matrixWorld = *source.matrixWorld.Clone() ...
[ -0.6757619976997375, -0.2591620981693268, 0.8757073283195496, 0.5204182267189026, -1.5985441207885742, 1.0975005626678467, 0.7198735475540161, -0.2803201377391815, 0.6151496171951294, 0.517884373664856, -0.8040348291397095, 0.0977209210395813, -0.0066361501812934875, 0.23078331351280212, ...
func (s *Server) Find(c echo.Context) error { span := opentracing.StartSpan("API.Find") defer span.Finish() c.QueryParams() search := c.QueryParam("q") queuesStr := c.QueryParam("queue") statusStr := c.QueryParam("status") column := c.QueryParam("sortColumn") sort := strings.ToUpper(c.QueryParam("sortDirection...
[ -0.6076877117156982, -0.12969788908958435, 0.9359859228134155, -0.38899528980255127, 0.10401313751935959, -0.09581433981657028, 0.08739139884710312, -0.5149539113044739, -0.8097783923149109, 0.3101170063018799, -0.09744543582201004, -0.39340007305145264, -0.46427831053733826, 0.96514803171...
func (s *Server) FindOne(c echo.Context) error { span := opentracing.StartSpan("API.FindOne") defer span.Finish() query := c.Param("id") job, err := s.Storage.FindOne(query) if err != nil { log.Error(err) c.JSON(http.StatusInternalServerError, err) return err } c.JSON(http.StatusOK, job) return nil }
[ -0.8790251016616821, 0.3972245156764984, 0.949664831161499, 0.7434587478637695, 0.2612694203853607, 0.24701611697673798, 0.6252103447914124, -0.4992085099220276, -0.6777014136314392, -0.1356724500656128, -0.4007456302642822, 0.06307528167963028, -1.3276971578598022, 0.751793384552002, -0...
func (s *Server) KillMany(c echo.Context) error { span := opentracing.StartSpan("API.KillMany") defer span.Finish() obj, err := BodyToKillTask(c) if err != nil { c.JSON(http.StatusBadRequest, "{\"error\": \"Cannot deserialize\"}") } values := obj.IDs results := make(map[string]string) for _, value := ran...
[ -1.8311264514923096, -0.44413527846336365, 0.9342766404151917, 0.7994038462638855, 0.7374629378318787, -0.5360949635505676, -0.5667633414268494, -1.0083447694778442, -0.37653759121894836, 0.9677421450614929, -0.631719172000885, -0.1130266860127449, 0.07072001695632935, 1.2122955322265625, ...
func (s *Server) KillOne(c echo.Context) error { span := opentracing.StartSpan("API.KillOne") defer span.Finish() task := new(KillTaskID) if err := c.Bind(task); err != nil { return err } err := s.Killer.KillOne(task.ID, "terminated from UI", s.Storage) if err != nil { log.Error(err) c.JSON(http.Status...
[ -1.0924588441848755, -0.26152580976486206, 0.9032083749771118, 1.1838449239730835, 0.451989084482193, 0.4272250831127167, 0.7026041746139526, -0.20847482979297638, -0.29401853680610657, 0.8628878593444824, -0.7947710752487183, 0.1507459580898285, -0.14971396327018738, 0.2805648744106293, ...
func dispay(i int, g *sync.WaitGroup) { fmt.Println("Start", i) time.Sleep(2 * time.Second) fmt.Println("End", i) g.Done() // Statement to specify the waitgroup about the completion of a goroutine. }
[ 0.5576737523078918, 0.4913286864757538, 0.5092051029205322, -0.6601855754852295, -0.27831366658210754, 0.8976193070411682, 0.9274948835372925, 0.5590289235115051, -1.0245052576065063, 0.9758201241493225, -0.3684295415878296, 0.29785478115081787, -0.6926864981651306, 0.9869038462638855, 0...
func (igd *upnpIGD) updateStatus() error { skipDiscovery := igd.igdUrl != "" params := []string{"-s"} if skipDiscovery { params = []string{"-url", igd.igdUrl, "-s"} // -s has to be at the end for some reason } out, err := execTimeout(opTimeout, upnpcbe.Command(params...)) if err != nil { if skipDiscovery { ...
[ -0.8436117172241211, -0.19648891687393188, 0.7369486093521118, 0.1916217803955078, -0.4657967984676361, -0.48584306240081787, -0.0871456116437912, 0.6740249395370483, 0.3194807469844818, 0.31127724051475525, -0.03292818367481232, 0.5479782223701477, -0.8092244267463684, 0.40943700075149536...
func ReadJSONToInterface(reader io.Reader, in interface{}) (err error) { err = json.NewDecoder(reader).Decode(&in) if err != nil { return err } return nil }
[ -0.9443978071212769, -0.7947546243667603, 0.703923761844635, -0.8656163811683655, -0.998606264591217, 0.5701687932014465, -0.40055975317955017, -0.46201035380363464, -0.5736287236213684, 1.2390928268432617, 0.2086072415113449, 0.03221731260418892, -1.0037403106689453, -0.445016086101532, ...
func (_m *OfficialCompanyRepository) CreateOfficialCompany(_a0 models.OfficialCompany, _a1 uuid.UUID) (*models.OfficialCompany, error) { ret := _m.Called(_a0, _a1) var r0 *models.OfficialCompany if rf, ok := ret.Get(0).(func(models.OfficialCompany, uuid.UUID) *models.OfficialCompany); ok { r0 = rf(_a0, _a1) } el...
[ -0.35709837079048157, -0.28564175963401794, 0.570607602596283, -0.7274677753448486, 0.2936234772205353, -0.07970448583364487, 0.7242365479469299, 0.7859423160552979, -0.2125093787908554, 0.36379262804985046, 0.31701943278312683, -0.025376003235578537, 0.3911498785018921, 0.8290430307388306...
func (_m *OfficialCompanyRepository) DeleteOfficialCompany(_a0 uuid.UUID, _a1 uuid.UUID) error { ret := _m.Called(_a0, _a1) var r0 error if rf, ok := ret.Get(0).(func(uuid.UUID, uuid.UUID) error); ok { r0 = rf(_a0, _a1) } else { r0 = ret.Error(0) } return r0 }
[ -0.6279861330986023, -0.26760029792785645, 0.547037661075592, -0.9534207582473755, 0.0757008045911789, 0.07174266874790192, 1.063261866569519, 1.0127540826797485, 0.028171977028250694, 0.5439227223396301, 0.5205200910568237, 0.105617955327034, 0.38738876581192017, 0.7850580811500549, 0.2...
func (_m *OfficialCompanyRepository) GetAllCompaniesNames() ([]models.BriefCompany, error) { ret := _m.Called() var r0 []models.BriefCompany if rf, ok := ret.Get(0).(func() []models.BriefCompany); ok { r0 = rf() } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]models.BriefCompany) } } var r1 error i...
[ -0.6655350923538208, -0.05448218807578087, 0.910040557384491, 0.7597574591636658, -0.29261156916618347, -0.08029197156429291, 0.2552229166030884, -0.2899070084095001, 0.6867000460624695, -0.743145227432251, -0.27355408668518066, 0.05029777064919472, -0.13706474006175995, 1.4569933414459229...
func (_m *OfficialCompanyRepository) GetCompaniesList(_a0 uint, _a1 uint) ([]models.OfficialCompany, error) { ret := _m.Called(_a0, _a1) var r0 []models.OfficialCompany if rf, ok := ret.Get(0).(func(uint, uint) []models.OfficialCompany); ok { r0 = rf(_a0, _a1) } else { if ret.Get(0) != nil { r0 = ret.Get(0)...
[ -0.6857726573944092, 0.042954061180353165, 0.632811427116394, -0.492221862077713, 0.4080812633037567, -0.18262022733688354, 0.685013473033905, 0.49557167291641235, 0.16445448994636536, 0.6359049081802368, -0.2573392391204834, -0.2674355208873749, 0.47861039638519287, 1.2472493648529053, ...
func (_m *OfficialCompanyRepository) GetMineCompany(_a0 uuid.UUID) (*models.OfficialCompany, error) { ret := _m.Called(_a0) var r0 *models.OfficialCompany if rf, ok := ret.Get(0).(func(uuid.UUID) *models.OfficialCompany); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*models.OfficialCom...
[ -0.700024425983429, -0.037475381046533585, 0.5428155660629272, 0.11382785439491272, 0.394769549369812, -0.39634665846824646, 0.8879351615905762, 0.7358840703964233, -0.18189851939678192, 0.25816312432289124, 0.4241623282432556, 0.27252358198165894, 0.08548931777477264, 0.7362514138221741, ...
func (_m *OfficialCompanyRepository) GetOfficialCompany(_a0 uuid.UUID) (*models.OfficialCompany, error) { ret := _m.Called(_a0) var r0 *models.OfficialCompany if rf, ok := ret.Get(0).(func(uuid.UUID) *models.OfficialCompany); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*models.Officia...
[ -0.24263641238212585, -0.04990553483366966, 0.6429063677787781, -0.3331545293331146, 0.26461589336395264, -0.373249351978302, 0.9890967607498169, 1.057207703590393, 0.05519038066267967, 0.2619783878326416, 0.6484805345535278, 0.31972965598106384, 0.5861084461212158, 0.639373779296875, 0....
func (_m *OfficialCompanyRepository) SearchCompanies(_a0 models.CompanySearchParams) ([]models.OfficialCompany, error) { ret := _m.Called(_a0) var r0 []models.OfficialCompany if rf, ok := ret.Get(0).(func(models.CompanySearchParams) []models.OfficialCompany); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { ...
[ -1.0735585689544678, 0.19425183534622192, 0.5843496322631836, -0.1409933865070343, 0.15916529297828674, -0.1575039029121399, 0.8838430643081665, 0.2727344334125519, 0.1306220293045044, 0.0754966288805008, 0.2944895625114441, -0.08557742089033127, -0.0964946523308754, 1.0492429733276367, ...
func (_m *OfficialCompanyRepository) UpdateOfficialCompany(_a0 models.OfficialCompany, _a1 uuid.UUID) (*models.OfficialCompany, error) { ret := _m.Called(_a0, _a1) var r0 *models.OfficialCompany if rf, ok := ret.Get(0).(func(models.OfficialCompany, uuid.UUID) *models.OfficialCompany); ok { r0 = rf(_a0, _a1) } el...
[ -0.672369658946991, -0.6845430731773376, 0.6439157724380493, -0.8914928436279297, -0.16639184951782227, 0.02073833718895912, 0.9236724376678467, 0.7665703892707825, -0.2345944344997406, 0.9166739583015442, 0.311742901802063, 0.30265989899635315, 0.39367151260375977, 0.4310950040817261, 0...
func (e *Event) FormatEvent() string { eventData := "" if len(e.ID) > 0 { eventData += fmt.Sprintf("id: %s\n", e.ID) } eventData += fmt.Sprintf("data: %s\n\n", e.Data) return eventData }
[ 0.3007564842700958, -1.2015701532363892, 0.8801983594894409, -0.8915180563926697, 0.5448939204216003, 0.5054114460945129, -0.9968940615653992, 0.3864009380340576, 0.08925449848175049, -0.36402782797813416, 0.8552063703536987, 0.7095918655395508, 0.2919904887676239, 1.2169773578643799, 0....
func NewSetWebhookHandler(cmd *commands.SetWebhookCmd) *SetWebhookHandler { return &SetWebhookHandler{cmd} }
[ -0.03610307723283768, -0.4504578113555908, 0.0415002703666687, 0.8090324401855469, -0.5538889765739441, 0.290041446685791, 0.7473073601722717, -0.022679029032588005, -0.5470506548881531, 0.17110037803649902, -0.3447437882423401, 0.1657276153564453, -0.12657952308654785, 1.332379698753357, ...
func (h SetWebhookHandler) Handle(c echo.Context) error { err := h.cmd.Execute() if err != nil { return err } return c.JSON(http.StatusOK, createOkResponse()) }
[ -0.4323965907096863, 0.09042374044656754, 0.7800426483154297, 0.5945714116096497, 0.7426059246063232, 0.23094402253627777, 0.5798172354698181, -0.3591560125350952, -0.7027206420898438, 0.1199311912059784, -0.3710160553455353, 0.2634091377258301, -0.8127473592758179, 0.8371560573577881, 0...
func (o *AllowedEmailAddressPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewAllowedEmailAddressPostOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } r...
[ 0.19697707891464233, -0.8167826533317566, 0.9796307682991028, 0.025441469624638557, -0.5567458271980286, -0.7942907214164734, 0.4723699390888214, -0.3303132951259613, 0.9381403923034668, 0.554085910320282, -0.03526301309466362, -0.1358523815870285, -1.0583909749984741, -0.5292938947677612,...
func NewAllowedEmailAddressPostOK() *AllowedEmailAddressPostOK { return &AllowedEmailAddressPostOK{} }
[ 1.2372480630874634, -0.8995258808135986, 0.2924952208995819, -0.21220004558563232, -2.0677952766418457, 0.10380198806524277, -0.10506503283977509, 0.9707221984863281, 0.3293274939060211, 0.5638331174850464, -0.5602536797523499, -0.555353045463562, -0.43062543869018555, -0.5899152159690857,...
func NewAllowedEmailAddressPostBadRequest() *AllowedEmailAddressPostBadRequest { return &AllowedEmailAddressPostBadRequest{} }
[ 0.7844698429107666, -0.7282417416572571, 0.29920026659965515, 0.0794481560587883, -1.7151367664337158, 0.1379428207874298, -0.587502121925354, 0.9757595062255859, 0.2835632562637329, -0.08121929317712784, -0.05659833550453186, 0.6117872595787048, -0.8905035853385925, -0.41640540957450867, ...
func NewAllowedEmailAddressPostUnauthorized() *AllowedEmailAddressPostUnauthorized { return &AllowedEmailAddressPostUnauthorized{} }
[ 0.36827579140663147, -0.708856999874115, 0.45935603976249695, -0.009899821132421494, -1.9294164180755615, -0.1343521922826767, -0.21825550496578217, 1.2875878810882568, 0.7052972316741943, -0.2140335738658905, -0.336100697517395, 1.1702687740325928, -0.5077783465385437, -1.3479236364364624...
func NewAllowedEmailAddressPostForbidden() *AllowedEmailAddressPostForbidden { return &AllowedEmailAddressPostForbidden{} }
[ 1.2140239477157593, -0.2503723204135895, 0.0630352646112442, -0.0071676806546747684, -1.7902313470840454, 0.16081444919109344, 0.2720737159252167, 0.5750086903572083, 0.34841683506965637, 0.05406617745757103, -0.20866639912128448, 0.624161422252655, -0.341950386762619, -1.397839069366455, ...
func NewAllowedEmailAddressPostNotFound() *AllowedEmailAddressPostNotFound { return &AllowedEmailAddressPostNotFound{} }
[ 1.5044528245925903, -1.1519930362701416, -0.013483834452927113, -0.305178701877594, -1.3123552799224854, 0.7255144119262695, 0.2084849327802658, 0.5989920496940613, 0.5011197924613953, 0.035326529294252396, -0.19347861409187317, 0.6636390089988708, -0.3888053596019745, -1.0795994997024536,...
func NewAllowedEmailAddressPostMethodNotAllowed() *AllowedEmailAddressPostMethodNotAllowed { return &AllowedEmailAddressPostMethodNotAllowed{} }
[ 0.8948359489440918, -0.27569565176963806, 0.34997332096099854, 0.12109324336051941, -1.5793410539627075, 0.22554124891757965, 0.2784331440925598, 0.3004114329814911, 0.06233067810535431, 0.31438490748405457, 0.4690774977207184, 0.4043561816215515, -0.6131879091262817, -0.5256261825561523, ...
func NewAllowedEmailAddressPostTooManyRequests() *AllowedEmailAddressPostTooManyRequests { return &AllowedEmailAddressPostTooManyRequests{} }
[ 0.3886399567127228, -0.13984856009483337, 0.1471017748117447, 0.1539100706577301, -1.2934540510177612, -0.2923392653465271, -0.5503195524215698, 0.47087305784225464, 0.6391009092330933, 0.599227786064148, 0.08887667208909988, 0.2025863081216812, -0.18011902272701263, -0.6091935038566589, ...
func NewAllowedEmailAddressPostDefault(code int) *AllowedEmailAddressPostDefault { return &AllowedEmailAddressPostDefault{ _statusCode: code, } }
[ 0.7099292278289795, -0.2908145487308502, 0.13820257782936096, -0.3039874732494354, -0.997430682182312, -0.09278654307126999, -0.06503583490848541, 0.977639377117157, 1.1348658800125122, 0.5112172365188599, -0.7062761187553406, 0.23623916506767273, -0.8811284899711609, -0.6998411417007446, ...
func (o *AllowedEmailAddressPostDefault) Code() int { return o._statusCode }
[ 0.19944794476032257, -0.15250518918037415, 0.15897823870182037, 0.2317127287387848, -0.5440222024917603, 0.02081758715212345, 0.1849624365568161, 1.0573476552963257, 0.625465989112854, 0.4579293727874756, -0.23971454799175262, 0.04342901334166527, -0.7304747700691223, -0.006165272556245327...
func (s *Saver) Save(folders map[string]tree.Folder) (int, error) { saved := 0 cur, err := s.bq.current(s.ctx, s.dataset, s.table) if err != nil { return saved, err } for _, f := range folders { var qs string if folder, found := cur[f.ID]; found { if f.Name == folder.Name && f.Parent == folder.Parent &&...
[ -0.7801858186721802, 0.17013701796531677, 0.9798540472984314, -0.07316669076681137, 0.19339759647846222, -0.7483142614364624, 0.6862398386001587, -0.2194860577583313, -0.8050069808959961, 0.7096917033195496, -0.16898278892040253, -0.37627285718917847, -0.9752443432807922, 1.053843140602111...
func ForService(serviceName string) (retrieved service.Service, err error) { overseerRoot := os.Getenv("OVERSEER_ROOT") responsechan := make(chan *http.Response) errorchan := make(chan error) defer func() { close(responsechan) close(errorchan) }() go func() { resp, err := http.Get(overseerRoot + "/" + serv...
[ -0.17301695048809052, 0.3115672171115875, 0.7955293655395508, -0.5199523568153381, 0.1433418095111847, -0.44144609570503235, -0.16252970695495605, -0.8927647471427917, -0.3681674599647522, 0.04033941030502319, 0.7789390087127686, 0.9412358999252319, -0.6282144784927368, 0.5532225370407104,...
func GenRedisKey(tpl string, keys ...interface{}) string { if len(keys) == 0 { return redisPrefix + tpl } return redisPrefix + fmt.Sprintf(tpl, keys...) }
[ -1.2572360038757324, 0.6870951056480408, 0.6048662662506104, -0.4844887852668762, 0.2467377632856369, -0.5340478420257568, -1.1153249740600586, 0.6509412527084351, -0.5430285334587097, 0.5087592601776123, 0.4779056906700134, -0.06959468871355057, 0.6149894595146179, 0.5593981146812439, 0...
func InitRedis() (err error) { // 从配置文件获取redis的ip以及db err = config.MapStruct("redis", &cfg) if err != nil { return } if cfg.Disable { clog.Debugf("redis is disabled, skip init redis connection") return } fmt.Printf("redis - server=%s db=%d auth=%s\n", cfg.Server, cfg.Db, cfg.Auth) // 建立连接池 pool = help...
[ -0.6372893452644348, 0.7922815680503845, 0.7734395265579224, -0.36299529671669006, -0.30743446946144104, 1.1104427576065063, -0.0454593151807785, 0.3217955529689789, -0.22804932296276093, -0.04931844025850296, -0.30759042501449585, 0.41323772072792053, -0.3800491690635681, 0.41410651803016...
func ClosePool() error { if cfg.Disable { return nil } return pool.Close() }
[ -0.18771708011627197, 0.5150513052940369, 0.3010663688182831, 1.0194146633148193, -0.39553189277648926, 0.6867824792861938, 0.4670099914073944, 0.03858759626746178, 0.1626547873020172, -0.09259480983018875, 0.1668635606765747, 0.08740868419408798, -0.8431028723716736, 0.9269616603851318, ...
func Connection() redis.Conn { logrus.Info("get new redis connection from pool") // zap.Namespace("context"), // zap.Int("IdleCount", pool.IdleCount()), // zap.Int("ActiveCount", pool.ActiveCount()), // 记录操作日志 if app.Debug { w := logrus.StandardLogger().Writer() return redis.NewLoggingConn(pool.Get(), log.New...
[ -0.8798477649688721, -0.8568004965782166, 0.6033567190170288, 0.04670743644237518, -0.2691912353038788, 0.1565803736448288, 0.10434393584728241, -0.7568232417106628, 0.10673029720783234, 0.1789640486240387, 0.43402427434921265, 0.42306602001190186, -0.29903745651245117, -0.1275005489587783...
func ParseLayout(name string) (Layout, error) { if x, ok := _LayoutValue[name]; ok { return Layout(x), nil } return Layout(0), fmt.Errorf("%s is not a valid Layout, try [%s]", name, strings.Join(_LayoutNames, ", ")) }
[ 0.5481422543525696, -0.3951886296272278, 0.3667365610599518, -0.6125242710113525, -2.0771803855895996, -0.5216249823570251, -0.3079654574394226, -0.3391040563583374, 0.6703659892082214, -0.6479420065879822, 0.011874656192958355, -0.2937939763069153, -0.038810163736343384, -0.15336440503597...
func Transform(input map[int][]string) (output map[string]int) { output = make(map[string]int) for i, val := range input { // i Denotes the Score (key) for _, ele := range val { output[strings.ToLower(ele)] = i } } return output }
[ -0.5038388967514038, -0.5398485064506531, 0.6466379165649414, -0.8073068857192993, -0.15842817723751068, -0.3306925296783447, 0.8726739287376404, -0.11615581810474396, -0.1652979701757431, 0.26832419633865356, -0.39641672372817993, -0.398731529712677, -0.6652235984802246, -0.23046407103538...
func Uninstall(url string) string { /* get current user */ usr, errCurr := user.Current() if errCurr != nil { log.Fatal(errCurr) } slice := strings.Split(url, "/") app := slice[1] installPath = fmt.Sprintf(installPath, app) bin := fmt.Sprintf(binLocation, app) installVersion = fmt.Sprintf(installVersion,...
[ -0.21252703666687012, -1.2763136625289917, 0.897352397441864, 0.5196650624275208, -0.044069092720746994, -0.08769693225622177, 1.5582242012023926, 1.1809639930725098, 0.21493111550807953, 0.44037926197052, -0.3420299291610718, -0.5628741383552551, -0.9907007813453674, 0.2790747880935669, ...
func RemoveContents(dir string) error { fmt.Println("Attempting to remove installed files...") d, err := os.Open(dir) if err != nil { fmt.Printf("Cannot find directory %s\n", dir) return err } defer d.Close() names, err := d.Readdirnames(-1) if err != nil { fmt.Printf("Cannot remove directory %s\n", dir) ...
[ -0.43156975507736206, -0.02227584458887577, 0.5210860967636108, 0.057830534875392914, -0.45272010564804077, -0.6231555342674255, 0.9171613454818726, -0.2685903012752533, 0.13464978337287903, 0.45954927802085876, 0.701981246471405, -0.388735294342041, -0.9070493578910828, 1.2588318586349487...
func NewJSONDataConverter() converter.DataConverter { return &jsonDataConverter{} }
[ -0.8369265794754028, -0.5441157221794128, 0.33377379179000854, -0.7214375138282776, -1.5740011930465698, -0.3914984166622162, -0.8264095783233643, -0.6451839208602905, 0.037032559514045715, -1.5186834335327148, -1.326479434967041, 0.48212745785713196, 1.033795952796936, 0.9626642465591431,...
func (dc *jsonDataConverter) ToPayloads(value ...interface{}) (*commonpb.Payloads, error) { payloads := &commonpb.Payloads{} for _, obj := range value { payload, err := dc.ToPayload(obj) if err != nil { return nil, err } payloads.Payloads = append(payloads.Payloads, payload) } return payloads, nil // ...
[ -0.9122347831726074, 0.3816954493522644, 0.8690298795700073, -0.521936297416687, -0.40035480260849, 0.23684467375278473, -0.19733452796936035, -1.6101210117340088, -0.03604361042380333, 0.5658080577850342, -0.45176586508750916, -0.5871425867080688, -0.14453396201133728, 1.142137050628662, ...
func (p *Price) Cmp(another Price) (int8, error) { //if another == nil { // return 0, errors.New("another is nil") //} // //var first Price //var second Price //var err error = nil // //if another.QuantumPower > p.QuantumPower { // first, err = p.ToNewQuantumPower(another.QuantumPower) // second = another /...
[ 0.02414901927113533, -1.304292917251587, 1.026780128479004, -0.13451643288135529, -0.03333204239606857, -0.21361663937568665, 0.17244084179401398, -0.4371918737888336, 0.20797845721244812, 0.5454974174499512, 0.03143472969532013, -0.4616025984287262, -0.7005603909492493, 0.684184730052948,...
func (b Block) Exists() bool { return b.ID != 0 }
[ -1.0743149518966675, -0.3669000267982483, 0.4604100286960602, 0.4089241623878479, 0.9246475100517273, 0.3915540277957916, -1.160721778869629, 0.2322540134191513, -0.12992128729820251, -0.5900304913520813, -0.7770893573760986, 0.1421889364719391, -0.8879117965698242, 0.854900062084198, -0...
func (api *APIClient) GetBlockByRepoName(repoPieces RepoPieces) (Block, error) { u, err := url.Parse(fmt.Sprintf("%s/api/v1/blocks", api.baseURL)) if err != nil { return Block{}, errors.New("unable to parse Learn remote") } v := url.Values{} v.Set("repo_name", repoPieces.RepoName) v.Set("org", repoPieces.Org) ...
[ -0.11285418272018433, 0.3324512243270874, 0.9023740291595459, -0.1668945997953415, 0.3498726785182953, -0.16984733939170837, -0.10818241536617279, -1.1930755376815796, -0.22123365104198456, 0.43047890067100525, -0.16550014913082123, 0.49280235171318054, -0.825435221195221, -0.1733669042587...
func (api *APIClient) CreateBlockByRepoName(repoPieces RepoPieces) (Block, error) { payload := BlockPost{Block: Block{Origin: repoPieces.Origin, Org: repoPieces.Org, RepoName: repoPieces.RepoName, Title: repoPieces.RepoName}} payloadBytes, err := json.Marshal(payload) if err != nil { return Block{}, err } req,...
[ 0.10473140329122543, 0.19004862010478973, 1.0650802850723267, -0.12370601296424866, 0.3990229368209839, 0.008234585635364056, -0.25139206647872925, -1.4447288513183594, -0.03157801181077957, 0.476167768239975, -0.3195057213306427, 0.06589319556951523, -0.830475926399231, -0.037692490965127...
func (api *APIClient) CreateBranchRelease(blockID int, branch string) (int, error) { values := url.Values{"branch_name": {branch}} req, err := http.NewRequest("POST", fmt.Sprintf("%s/api/v1/blocks/%d/releases?%s", api.baseURL, blockID, values.Encode()), nil) if err != nil { return 0, err } req.Header.Set("Conte...
[ 0.17707708477973938, -0.14450420439243317, 0.812036395072937, -0.14385433495044708, -0.2686171233654022, 0.01089257188141346, -1.0841805934906006, -0.8640419840812683, -0.4632134437561035, 0.5262224674224854, -0.5073202848434448, 0.60637366771698, -1.7577075958251953, 0.46932509541511536, ...
func (c *FakePodNetworkings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.PodNetworking, err error) { obj, err := c.Fake. Invokes(testing.NewRootGetAction(podnetworkingsResource, name), &v1beta1.PodNetworking{}) if obj == nil { return nil, err } return obj.(*v1beta1.PodNetworkin...
[ -1.7016677856445312, 0.6006349325180054, 0.4982261657714844, -0.4245343804359436, 0.25063395500183105, -0.2898460924625397, -0.26701223850250244, -1.0263947248458862, 0.20144447684288025, -0.17654922604560852, -0.2891068756580353, -0.2532418370246887, -0.6491609811782837, -0.63090813159942...
func (c *FakePodNetworkings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PodNetworkingList, err error) { obj, err := c.Fake. Invokes(testing.NewRootListAction(podnetworkingsResource, podnetworkingsKind, opts), &v1beta1.PodNetworkingList{}) if obj == nil { return nil, err } label, _, _ := te...
[ -1.3149718046188354, 0.00807471014559269, 0.46831434965133667, 0.2624939978122711, 0.4956514537334442, -0.0552741140127182, -0.6099777221679688, -0.22075477242469788, 0.5521953701972961, 0.029703902080655098, -0.5039422512054443, -0.4957793653011322, -0.44868141412734985, 0.143744483590126...
func (c *FakePodNetworkings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { return c.Fake. InvokesWatch(testing.NewRootWatchAction(podnetworkingsResource, opts)) }
[ -0.7727524638175964, 0.20862910151481628, 0.09610449522733688, 0.13205015659332275, 0.4238453507423401, 0.30411553382873535, 0.35947200655937195, -0.4217320680618286, 0.5430578589439392, -1.252270221710205, -0.8096671104431152, 0.18907979130744934, -0.1465236097574234, -0.215801402926445, ...
func (c *FakePodNetworkings) Create(ctx context.Context, podNetworking *v1beta1.PodNetworking, opts v1.CreateOptions) (result *v1beta1.PodNetworking, err error) { obj, err := c.Fake. Invokes(testing.NewRootCreateAction(podnetworkingsResource, podNetworking), &v1beta1.PodNetworking{}) if obj == nil { return nil, e...
[ -1.4984209537506104, 0.6543192267417908, 0.22925728559494019, 0.15188509225845337, 0.38100874423980713, 0.1332813948392868, -0.27766674757003784, -1.4490100145339966, 0.23427608609199524, -0.16864924132823944, -0.17214931547641754, -1.1929506063461304, -0.6134801506996155, -0.0109568117186...
func (c *FakePodNetworkings) Update(ctx context.Context, podNetworking *v1beta1.PodNetworking, opts v1.UpdateOptions) (result *v1beta1.PodNetworking, err error) { obj, err := c.Fake. Invokes(testing.NewRootUpdateAction(podnetworkingsResource, podNetworking), &v1beta1.PodNetworking{}) if obj == nil { return nil, e...
[ -1.604921579360962, -0.09283775836229324, 0.24635475873947144, -0.21600668132305145, -0.12115930765867233, 0.07716378569602966, -0.043652258813381195, -1.1206209659576416, 0.7292150259017944, -0.2759116291999817, -0.11692439019680023, -0.9475294947624207, -0.7370994687080383, -0.8042728900...
func (c *FakePodNetworkings) UpdateStatus(ctx context.Context, podNetworking *v1beta1.PodNetworking, opts v1.UpdateOptions) (*v1beta1.PodNetworking, error) { obj, err := c.Fake. Invokes(testing.NewRootUpdateSubresourceAction(podnetworkingsResource, "status", podNetworking), &v1beta1.PodNetworking{}) if obj == nil {...
[ -1.1541767120361328, 0.1515665501356125, 0.37535837292671204, 0.257586270570755, -0.3955804109573364, 0.35537317395210266, 0.22056713700294495, -0.29461202025413513, 0.7603327035903931, -0.28818532824516296, -0.6028562188148499, -0.29390278458595276, -0.21104449033737183, -0.16100978851318...
func (c *FakePodNetworkings) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { _, err := c.Fake. Invokes(testing.NewRootDeleteActionWithOptions(podnetworkingsResource, name, opts), &v1beta1.PodNetworking{}) return err }
[ -0.6068454384803772, 0.6893748641014099, 0.4639914631843567, 0.2415877878665924, 0.39316320419311523, 0.31721678376197815, 0.1912802904844284, -0.6986281275749207, 1.0546010732650757, -0.47545623779296875, -0.10749588161706924, -0.5530720949172974, -0.7923949956893921, -0.31141677498817444...
func (c *FakePodNetworkings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { action := testing.NewRootDeleteCollectionAction(podnetworkingsResource, listOpts) _, err := c.Fake.Invokes(action, &v1beta1.PodNetworkingList{}) return err }
[ -1.195607304573059, 0.34742212295532227, 0.43481576442718506, 0.11451020836830139, 0.5238854289054871, -0.11296524107456207, 0.5850531458854675, -0.5685938000679016, 0.6040648221969604, -1.2581238746643066, -0.04710623249411583, 0.10090809315443039, -0.15364710986614227, 0.9585245847702026...
func (c *FakePodNetworkings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.PodNetworking, err error) { obj, err := c.Fake. Invokes(testing.NewRootPatchSubresourceAction(podnetworkingsResource, name, pt, data, subresources...), ...
[ -0.8988542556762695, 0.4567382037639618, 0.3676479756832123, -0.27582043409347534, -0.856844961643219, 0.9181534647941589, -0.2968416213989258, -0.5681198239326477, 0.5651140213012695, -0.9741800427436829, -0.19541369378566742, -0.17710132896900177, -0.6932355165481567, -0.625840425491333,...
func (s GetDevicesInput) String() string { return awsutil.Prettify(s) }
[ 0.11164048314094543, 0.5619122982025146, 0.15527692437171936, -0.280831903219223, -0.4027222990989685, 0.5663700699806213, 1.0463088750839233, -1.2112499475479126, 0.6752661466598511, -0.39392104744911194, 0.4761304259300232, 0.7283347249031067, 0.5893767476081848, -0.2616218626499176, 1...
func (s *GetDevicesInput) Validate() error { invalidParams := aws.ErrInvalidParams{Context: "GetDevicesInput"} if s.GlobalNetworkId == nil { invalidParams.Add(aws.NewErrParamRequired("GlobalNetworkId")) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(aws.NewErrParamMinValue("MaxResults", 1)) ...
[ -0.1253693401813507, 1.4275983572006226, 0.4214407205581665, 0.16440029442310333, 0.3390732705593109, -0.1414465308189392, 0.49225905537605286, -0.5618078708648682, 0.20526042580604553, -0.38288259506225586, 1.1137009859085083, -0.15362495183944702, -0.6100997924804688, 0.6241467595100403,...
func (s GetDevicesInput) MarshalFields(e protocol.FieldEncoder) error { e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{}) if s.GlobalNetworkId != nil { v := *s.GlobalNetworkId metadata := protocol.Metadata{} e.SetValue(protocol.PathTarget, "global...
[ -0.10473383218050003, 0.5829088091850281, 0.3778398633003235, -1.0996781587600708, 0.19789619743824005, 0.061811260879039764, 0.35535120964050293, -0.26309624314308167, 0.10994531214237213, -0.24723996222019196, 0.11305171996355057, 0.35431864857673645, -0.4296782910823822, 0.0573495142161...
func (s GetDevicesOutput) String() string { return awsutil.Prettify(s) }
[ 0.6724902391433716, 0.06577401608228683, 0.13285376131534576, -0.12876608967781067, -0.833946943283081, -0.25817209482192993, 1.1995409727096558, -1.067013144493103, 0.051744841039180756, -0.40150314569473267, 0.6826493740081787, 0.08139387518167496, 0.7220030426979065, -0.3036984205245971...
func (s GetDevicesOutput) MarshalFields(e protocol.FieldEncoder) error { if s.Devices != nil { v := s.Devices metadata := protocol.Metadata{} ls0 := e.List(protocol.BodyTarget, "Devices", metadata) ls0.Start() for _, v1 := range v { ls0.ListAddFields(v1) } ls0.End() } if s.NextToken != nil { v :...
[ 0.21894323825836182, 0.8763912916183472, 0.16032297909259796, -0.8401578664779663, -0.10199890285730362, -0.40327098965644836, 0.2779521346092224, 0.04348793998360634, 0.05297854170203209, -0.1247502863407135, 0.05572750046849251, -0.13997261226177216, -0.3566015660762787, 0.20282767713069...
func (r GetDevicesRequest) Send(ctx context.Context) (*GetDevicesResponse, error) { r.Request.SetContext(ctx) err := r.Request.Send() if err != nil { return nil, err } resp := &GetDevicesResponse{ GetDevicesOutput: r.Request.Data.(*GetDevicesOutput), response: &aws.Response{Request: r.Request}, } ...
[ -0.5763129591941833, 0.39605915546417236, 0.3490164279937744, 0.05834490805864334, 0.2550717890262604, -0.6679195761680603, 0.16411854326725006, -1.1839321851730347, 0.7563086152076721, -0.0058166105300188065, 0.18335272371768951, 0.6139744520187378, -0.04889208823442459, -0.07298435270786...
func (r *GetDevicesResponse) SDKResponseMetdata() *aws.Response { return r.response }
[ 0.3473815321922302, 0.3319527506828308, 0.38139650225639343, -0.36868587136268616, 0.2509344816207886, -0.08827024698257446, -0.1390727460384369, -0.7575550079345703, 1.3242558240890503, -0.2806929647922516, -0.09956014901399612, -0.2001052349805832, 0.3525978922843933, -1.0445432662963867...
func NewPool(filePath string, opt PoolOptions) (*Pool, error) { p := Pool{ path: filePath, opt: opt, } if p.opt.Size > 0 { p.read = make([][]byte, 0, p.opt.Size) } if err := p.loadFromFile(); err != nil { return nil, err } if len(p.read) != p.opt.Size && p.opt.Size != -1 { return nil, errors.New("put...
[ 0.2792051434516907, 0.0868748128414154, 0.7155057787895203, 0.017140962183475494, -0.11223810911178589, 0.3538914620876312, 0.6623157262802124, -0.7703635096549988, 0.1048949584364891, 0.47878512740135193, 0.40574121475219727, 0.4363822937011719, -0.6122689247131348, -0.3200945258140564, ...
func (p *Pool) PutWorker(ctx context.Context, wg *sync.WaitGroup, ch <-chan []byte) { defer wg.Done() defer p.flush() for { select { case <-ctx.Done(): return case key := <-ch: p.write = append(p.write, key) } } }
[ -1.5283762216567993, -0.24767863750457764, 0.5671876072883606, -0.9743565917015076, -0.015932928770780563, 0.32948166131973267, -0.05396246910095215, -0.7288802266120911, -0.4335964620113373, 0.7679616808891296, -0.5489153861999512, -0.15495964884757996, -1.2593761682510376, 0.386208146810...
func (*currentChartDataMinutelyR) NewStruct() *currentChartDataMinutelyR { return &currentChartDataMinutelyR{} }
[ 0.2514759302139282, -0.9999464750289917, -0.13449817895889282, -1.1359285116195679, -1.3772478103637695, -0.3568214774131775, -0.29525959491729736, -1.343055009841919, 0.2795616090297699, -1.1911420822143555, 0.3051510155200958, 0.8365432620048523, -0.2122461199760437, 0.11848205327987671,...
func (o *CurrentChartDataMinutely) doBeforeInsertHooks(exec boil.Executor) (err error) { for _, hook := range currentChartDataMinutelyBeforeInsertHooks { if err := hook(exec, o); err != nil { return err } } return nil }
[ -0.2478017657995224, 0.28225094079971313, 0.5233104228973389, 0.1948975920677185, 1.1069093942642212, 0.1791945993900299, 1.3598017692565918, -0.5594953298568726, -0.9776843786239624, -0.17706027626991272, 0.08388382941484451, 0.39736664295196533, -1.0237270593643188, 0.7770111560821533, ...
func (o *CurrentChartDataMinutely) doBeforeUpdateHooks(exec boil.Executor) (err error) { for _, hook := range currentChartDataMinutelyBeforeUpdateHooks { if err := hook(exec, o); err != nil { return err } } return nil }
[ -0.8184093236923218, -0.6800669431686401, 0.7236827611923218, 0.2038102000951767, 0.9388757348060608, 0.20819728076457977, 0.7436234951019287, -1.0879004001617432, -0.5347254276275635, 0.476222962141037, 0.3581547737121582, 0.35053718090057373, -0.492609441280365, 0.18088892102241516, -0...
func (o *CurrentChartDataMinutely) doBeforeDeleteHooks(exec boil.Executor) (err error) { for _, hook := range currentChartDataMinutelyBeforeDeleteHooks { if err := hook(exec, o); err != nil { return err } } return nil }
[ -0.23575393855571747, -0.29613956809043884, 0.7382636070251465, 0.2659340798854828, 1.0420002937316895, 0.1480940282344818, 0.8156416416168213, -1.1143760681152344, -0.25341224670410156, 0.245188906788826, 0.5061898827552795, 0.4141428768634796, -0.3175894618034363, 0.1838507205247879, 0...
func (o *CurrentChartDataMinutely) doBeforeUpsertHooks(exec boil.Executor) (err error) { for _, hook := range currentChartDataMinutelyBeforeUpsertHooks { if err := hook(exec, o); err != nil { return err } } return nil }
[ -0.5123494863510132, 0.5257416367530823, 0.7385100722312927, -0.23712539672851562, 1.018722414970398, 0.06092602387070656, 1.2158982753753662, -0.8885704874992371, -0.4119928777217865, 0.1861441731452942, 0.47112706303596497, 0.04728959500789642, -0.5636341571807861, 0.6231454014778137, ...
func (o *CurrentChartDataMinutely) doAfterInsertHooks(exec boil.Executor) (err error) { for _, hook := range currentChartDataMinutelyAfterInsertHooks { if err := hook(exec, o); err != nil { return err } } return nil }
[ -0.41000092029571533, -0.13011254370212555, 0.3710973262786865, 0.15925201773643494, 0.7971289753913879, 0.4179118871688843, 1.0985411405563354, -0.5707219839096069, -0.8711841106414795, 0.5045103430747986, -0.18113099038600922, -0.0014585601165890694, -0.7752279043197632, 0.22702676057815...
func (o *CurrentChartDataMinutely) doAfterSelectHooks(exec boil.Executor) (err error) { for _, hook := range currentChartDataMinutelyAfterSelectHooks { if err := hook(exec, o); err != nil { return err } } return nil }
[ -0.5186431407928467, -1.0388844013214111, 0.31697559356689453, 0.23226751387119293, 0.36550697684288025, 0.03148502856492996, 0.8765910267829895, -1.3334920406341553, 0.058718904852867126, 0.5206290483474731, 0.26137232780456543, 0.6067584156990051, -0.1509324163198471, -0.2372215688228607...
func (o *CurrentChartDataMinutely) doAfterUpdateHooks(exec boil.Executor) (err error) { for _, hook := range currentChartDataMinutelyAfterUpdateHooks { if err := hook(exec, o); err != nil { return err } } return nil }
[ -0.8061281442642212, -1.2132660150527954, 0.5386940240859985, 0.5348579287528992, 0.2755622863769531, 0.6551702618598938, 0.5946906805038452, -0.7334189414978027, -0.548657238483429, 0.46269935369491577, 0.11612293869256973, 0.2272011935710907, -0.2553703486919403, -0.02606012113392353, ...
func (o *CurrentChartDataMinutely) doAfterDeleteHooks(exec boil.Executor) (err error) { for _, hook := range currentChartDataMinutelyAfterDeleteHooks { if err := hook(exec, o); err != nil { return err } } return nil }
[ -0.2552987039089203, -0.7698832154273987, 0.4955679178237915, 0.4007735550403595, 0.4818326532840729, 0.44432365894317627, 0.8797158598899841, -0.7750726938247681, -0.27153271436691284, 0.3413737118244171, 0.332020103931427, 0.5286354422569275, -0.15875841677188873, 0.16810688376426697, ...
func (o *CurrentChartDataMinutely) doAfterUpsertHooks(exec boil.Executor) (err error) { for _, hook := range currentChartDataMinutelyAfterUpsertHooks { if err := hook(exec, o); err != nil { return err } } return nil }
[ -0.6984556913375854, -0.4115103781223297, 0.6043939590454102, 0.18686553835868835, 0.723430335521698, 0.3242054581642151, 1.1316137313842773, -0.6896654367446899, -0.4364831745624542, 0.6359856128692627, -0.34933874011039734, 0.5120406150817871, -0.2154485583305359, 0.3133257031440735, 0...
func AddCurrentChartDataMinutelyHook(hookPoint boil.HookPoint, currentChartDataMinutelyHook CurrentChartDataMinutelyHook) { switch hookPoint { case boil.BeforeInsertHook: currentChartDataMinutelyBeforeInsertHooks = append(currentChartDataMinutelyBeforeInsertHooks, currentChartDataMinutelyHook) case boil.BeforeUpda...
[ -0.27561110258102417, -0.7677059769630432, 0.8076639175415039, -0.4391622543334961, -0.20891760289669037, 0.23970317840576172, 0.36726757884025574, -0.08002683520317078, 0.48077982664108276, -0.502530574798584, -0.08388916403055191, 0.8649784326553345, -0.5201703310012817, 0.33217406272888...
func (q currentChartDataMinutelyQuery) One(exec boil.Executor) (*CurrentChartDataMinutely, error) { o := &CurrentChartDataMinutely{} queries.SetLimit(q.Query, 1) err := q.Bind(nil, exec, o) if err != nil { if errors.Cause(err) == sql.ErrNoRows { return nil, sql.ErrNoRows } return nil, errors.Wrap(err, "m...
[ -0.8001042604446411, -0.3001071810722351, 0.613469660282135, -0.004357114899903536, 0.48401981592178345, 0.07277955114841461, 0.40227293968200684, -0.06585681438446045, -0.23870645463466644, 0.08618748933076859, 0.1365191638469696, 0.5193349719047546, 0.05426972359418869, 0.116412676870822...
func (q currentChartDataMinutelyQuery) All(exec boil.Executor) (CurrentChartDataMinutelySlice, error) { var o []*CurrentChartDataMinutely err := q.Bind(nil, exec, &o) if err != nil { return nil, errors.Wrap(err, "models: failed to assign all query results to CurrentChartDataMinutely slice") } if len(currentCha...
[ -0.18644018471240997, -0.7932606935501099, 0.43225806951522827, 0.13506051898002625, 0.36864423751831055, 0.316764235496521, 0.39296433329582214, -0.4346786141395569, -0.416216105222702, 0.1098690778017044, 0.15530022978782654, 1.194344162940979, -0.30312541127204895, 0.666450560092926, ...
func (q currentChartDataMinutelyQuery) Count(exec boil.Executor) (int64, error) { var count int64 queries.SetSelect(q.Query, nil) queries.SetCount(q.Query) err := q.Query.QueryRow(exec).Scan(&count) if err != nil { return 0, errors.Wrap(err, "models: failed to count current_chart_data_minutely rows") } retu...
[ -0.01435867790132761, -0.44092291593551636, 0.4262572228908539, -0.42521873116493225, -0.04048464819788933, -0.5903347730636597, 0.32363346219062805, -0.7437809109687805, -0.37779852747917175, 0.05782908573746681, -0.007943524979054928, 0.24806787073612213, 0.16953341662883759, 0.882376968...
func (q currentChartDataMinutelyQuery) Exists(exec boil.Executor) (bool, error) { var count int64 queries.SetCount(q.Query) queries.SetLimit(q.Query, 1) err := q.Query.QueryRow(exec).Scan(&count) if err != nil { return false, errors.Wrap(err, "models: failed to check if current_chart_data_minutely exists") } ...
[ -0.8195712566375732, -0.4907653033733368, 0.5594272017478943, -0.6209436058998108, 0.3332328498363495, -0.08450393378734589, -0.5387605428695679, -0.6082137823104858, -0.20077446103096008, -0.4823574721813202, 0.24085713922977448, 0.38329043984413147, 0.10126681625843048, 0.272594153881073...
func (o *CurrentChartDataMinutely) SourceCurrency(mods ...qm.QueryMod) currencyQuery { queryMods := []qm.QueryMod{ qm.Where("id=?", o.SourceCurrencyID), } queryMods = append(queryMods, mods...) query := Currencies(queryMods...) queries.SetFrom(query.Query, "\"currency\"") return query }
[ -0.09828127175569534, 0.0585956834256649, 0.20940299332141876, -0.34246543049812317, -0.7656686902046204, -0.7762448191642761, 0.5037157535552979, 0.005121402442455292, 0.6922037601470947, 0.3599896728992462, -0.4167988896369934, 0.10119831562042236, -0.5500416159629822, 0.3246792852878570...
func (o *CurrentChartDataMinutely) DestinationCurrency(mods ...qm.QueryMod) currencyQuery { queryMods := []qm.QueryMod{ qm.Where("id=?", o.DestinationCurrencyID), } queryMods = append(queryMods, mods...) query := Currencies(queryMods...) queries.SetFrom(query.Query, "\"currency\"") return query }
[ -0.28556451201438904, -0.05184309557080269, 0.3338398039340973, -0.2532868981361389, -0.5746831297874451, -0.7415890693664551, 0.45264220237731934, -0.1786114126443863, 0.030262688174843788, 0.6479054093360901, 0.1873287409543991, -0.25019359588623047, -0.1541873961687088, -0.3031794726848...
func (currentChartDataMinutelyL) LoadSourceCurrency(e boil.Executor, singular bool, maybeCurrentChartDataMinutely interface{}, mods queries.Applicator) error { var slice []*CurrentChartDataMinutely var object *CurrentChartDataMinutely if singular { object = maybeCurrentChartDataMinutely.(*CurrentChartDataMinutely...
[ -0.7763170003890991, 0.5369490385055542, 0.8366712927818298, -0.859251081943512, -0.5759835243225098, -0.5588821768760681, 0.6343040466308594, -0.4030076563358307, 0.37225812673568726, 0.5310183167457581, 0.12466538697481155, 0.05612067133188248, -0.9018433094024658, 0.9211722612380981, ...
func (currentChartDataMinutelyL) LoadDestinationCurrency(e boil.Executor, singular bool, maybeCurrentChartDataMinutely interface{}, mods queries.Applicator) error { var slice []*CurrentChartDataMinutely var object *CurrentChartDataMinutely if singular { object = maybeCurrentChartDataMinutely.(*CurrentChartDataMin...
[ -0.9276702404022217, 0.3577137291431427, 0.8966723084449768, -0.710907518863678, -0.509726881980896, -0.4554307460784912, 0.3896673619747162, -0.5216547250747681, -0.046338729560375214, 0.6616834402084351, 0.5950435996055603, -0.4070872962474823, -0.26305055618286133, 0.555959939956665, ...
func (o *CurrentChartDataMinutely) SetSourceCurrency(exec boil.Executor, insert bool, related *Currency) error { var err error if insert { if err = related.Insert(exec, boil.Infer()); err != nil { return errors.Wrap(err, "failed to insert into foreign table") } } updateQuery := fmt.Sprintf( "UPDATE \"curr...
[ -0.0439288392663002, 0.0011800385545939207, 0.6439680457115173, -1.0151498317718506, -0.5801814198493958, -0.7077636122703552, 0.9575749635696411, -0.01638934388756752, 0.3500354290008545, 0.4378381371498108, -0.789365828037262, 0.22626353800296783, -0.8969252705574036, 0.5250464677810669,...
func (o *CurrentChartDataMinutely) SetDestinationCurrency(exec boil.Executor, insert bool, related *Currency) error { var err error if insert { if err = related.Insert(exec, boil.Infer()); err != nil { return errors.Wrap(err, "failed to insert into foreign table") } } updateQuery := fmt.Sprintf( "UPDATE \...
[ 0.003112022764980793, -0.23187430202960968, 0.7305089235305786, -0.7293643951416016, -0.5024215579032898, -0.5394592881202698, 0.6655296087265015, -0.10096803307533264, -0.18144187331199646, 0.5073875188827515, -0.26970675587654114, -0.1814272552728653, -0.28907451033592224, 0.137109354138...
func CurrentChartDataMinutelies(mods ...qm.QueryMod) currentChartDataMinutelyQuery { mods = append(mods, qm.From("\"current_chart_data_minutely\"")) return currentChartDataMinutelyQuery{NewQuery(mods...)} }
[ -0.24831007421016693, -0.735032856464386, 0.2703433930873871, -0.9517016410827637, -0.5767552852630615, -0.2837638556957245, -0.8932111263275146, -0.7432053685188293, 0.2460041344165802, -0.7052475810050964, -0.06598667055368423, 0.9761119484901428, -0.7173460125923157, -0.3520716726779938...
func FindCurrentChartDataMinutely(exec boil.Executor, iD int, selectCols ...string) (*CurrentChartDataMinutely, error) { currentChartDataMinutelyObj := &CurrentChartDataMinutely{} sel := "*" if len(selectCols) > 0 { sel = strings.Join(strmangle.IdentQuoteSlice(dialect.LQ, dialect.RQ, selectCols), ",") } query :...
[ -0.462909996509552, -0.8169159889221191, 0.5447343587875366, -0.7359461784362793, -0.3576493561267853, -0.5419031977653503, -0.22115617990493774, -1.4216476678848267, -0.05755828320980072, 0.07925397902727127, -0.1264355182647705, 0.546088457107544, -0.5677089095115662, -0.2217240035533905...
func (o *CurrentChartDataMinutely) Insert(exec boil.Executor, columns boil.Columns) error { if o == nil { return errors.New("models: no current_chart_data_minutely provided for insertion") } var err error currTime := time.Now().In(boil.GetLocation()) if o.CreatedAt.IsZero() { o.CreatedAt = currTime } if o....
[ -0.9712192416191101, 0.3000706434249878, 0.7222433090209961, -0.31800007820129395, -0.19378872215747833, -0.17377117276191711, 0.3086189925670624, -0.38231560587882996, -0.09149646013975143, -0.1253136843442917, -0.7819002270698547, 0.33239465951919556, -0.8469112515449524, 0.3223205208778...