text
stringlengths
11
6.3k
embedding
listlengths
768
768
func List(customerID int) ([]Employee, error) { myData := make([]Employee, 0) rows, err := database.DBCon.Query("SELECT id, first_name, last_name, email, customer_id FROM incidents.employees where customer_id=$1", customerID) if err != nil { fmt.Println(err) return nil, err } defer rows.Close() for rows.Ne...
[ 0.20015904307365417, -0.7591632604598999, 0.49313902854919434, -0.3883790969848633, 0.0457431823015213, -0.07655923068523407, -0.7194989323616028, 0.7500530481338501, -0.30083680152893066, 0.320928156375885, -0.12055515497922897, 0.2846647799015045, -0.7241542935371399, 0.6688954830169678,...
func Load(id int) (*Employee, error) { e := New() err := database.DBCon.QueryRow("SELECT id, first_name, last_name, email, customer_id FROM incidents.employees WHERE id = $1", id). Scan(&e.ID, &e.FirstName, &e.LastName, &e.Email, &e.CustomerID) if err != nil { return nil, err } return e, nil }
[ 0.06994464248418808, -0.023019570857286453, 0.6146717071533203, -0.7395696640014648, -0.4864421784877777, 0.2146255075931549, -0.6393424868583679, 0.2088361531496048, -0.5813696384429932, -0.039892833679914474, -0.21071939170360565, -0.199301615357399, -1.078020453453064, -0.54011416435241...
func (e *Employee) Save() error { err := database.DBCon.QueryRow("INSERT into incidents.employees(first_name, last_name, email, customer_id) VALUES($1, $2, $3, $4)", e.FirstName, e.LastName, e.Email, e.CustomerID).Scan() if err != nil { return err } return nil }
[ -0.1707364171743393, 0.19761992990970612, 0.4485991597175598, -0.1352713704109192, 0.9036830067634583, 0.3703868091106415, 0.0010675335070118308, 0.38568735122680664, -1.458418846130371, 0.49115222692489624, -0.7921815514564514, -0.8120221495628357, -1.4120354652404785, 0.123908132314682, ...
func GetUrls(rootUrl string, body string) []string { body = strings.ToLower(body) urls := make([]string, 1) var idx, idx2 int = 0, 0 for { // fmt.Println(idx, body[idx:idx+5]) if idx = strings.Index(body, "href"); idx == -1 { break } body = body[idx+len("href"):] body = CutFirstWhiteSpaces(body) if...
[ -0.2717026472091675, -0.051971517503261566, 0.7850965857505798, 0.21309243142604828, -0.1858898103237152, -0.6040322780609131, -0.5860678553581238, -0.3935980498790741, 0.1944737434387207, 0.5064412355422974, -0.13897886872291565, 0.9234045147895813, -0.5179235935211182, 0.6932521462440491...
func TestReadFloatUnsupported(t *testing.T) { testPatterns := []struct { cbor []byte err error }{ { // 0.0 []byte{0xf9, 0x00, 0x00}, UnsupportedTypeReadError, }, { // -0.0 []byte{0xf9, 0x80, 0x00}, UnsupportedTypeReadError, }, { // 65504.0 []byte{0xf9, 0x7b, 0xff}, Unsupporte...
[ 0.6914946436882019, 0.7631930708885193, 0.6755113005638123, -0.035685621201992035, 0.3365020453929901, 0.8790380358695984, 0.6994578242301941, 0.08430520445108414, -0.4053577482700348, -0.5026699900627136, 0.20149362087249756, -0.11399134248495102, -0.44556859135627747, 0.42000049352645874...
func TestReadFloatSupported(t *testing.T) { testPatterns := []struct { cbor []byte value float64 }{ { []byte{0xfb, 0x3f, 0xf1, 0x99, 0x99, 0x99, 0x99, 0x99, 0x9a}, 1.1, }, { []byte{0xfa, 0x47, 0xc3, 0x50, 0x00}, 100000.0, }, { []byte{0xfa, 0x7f, 0x7f, 0xff, 0xff}, 3.4028234663852886e+...
[ 0.6562644243240356, 0.5832995772361755, 0.9021052122116089, -0.2807003855705261, 0.3674750030040741, 0.04826321452856064, 0.5529443025588989, 0.35112881660461426, -0.2227088063955307, -0.4399740993976593, -0.30599915981292725, 0.025718074291944504, -0.7516704797744751, 0.179533451795578, ...
func (s *LoadSaver) SetValue(id ident.Id, value interface{}) (err error) { if field, ok := s.data[id]; ok { field.Value = value s.data[id] = field // record value back; it's not a pointer. s.changed = true } else if prop, ok := s.GetProperty(id); !ok { err = fmt.Errorf("couldnt find property %s.%s", s, id) }...
[ -0.8397490978240967, -0.044033460319042206, 0.7301281690597534, -0.14087259769439697, 0.4028705954551697, -0.11261708289384842, -0.8179206252098083, -0.04148147627711296, 0.27096104621887207, 0.1332053393125534, -0.37599921226501465, 0.8394239544868469, 0.187399759888649, 0.196245536208152...
func (*StructuredQuery_Filter) XXX_OneofWrappers() []interface{} { return []interface{}{ (*StructuredQuery_Filter_CompositeFilter)(nil), (*StructuredQuery_Filter_FieldFilter)(nil), (*StructuredQuery_Filter_UnaryFilter)(nil), } }
[ -0.9473675489425659, -0.2378876805305481, 0.4812098443508148, 0.7331369519233704, 0.528584897518158, 0.21753428876399994, -0.014037891291081905, -0.2732250392436981, 0.7229703068733215, -0.030454758554697037, -0.4232645034790039, 0.37702247500419617, -0.1246916875243187, 0.3496834933757782...
func (*StructuredQuery_UnaryFilter) XXX_OneofWrappers() []interface{} { return []interface{}{ (*StructuredQuery_UnaryFilter_Field)(nil), } }
[ -1.3101624250411987, 0.37040629982948303, 0.41932985186576843, 0.5229043960571289, 0.39742669463157654, -0.29701972007751465, -0.11479515582323074, -0.07962758839130402, 0.9548280239105225, -0.1625753492116928, 0.04277176409959793, 0.17632345855236053, -0.14827677607536316, 0.0915674492716...
func NewIRegistry(address common.Address, backend bind.ContractBackend) (*IRegistry, error) { contract, err := bindIRegistry(address, backend, backend, backend) if err != nil { return nil, err } return &IRegistry{IRegistryCaller: IRegistryCaller{contract: contract}, IRegistryTransactor: IRegistryTransactor{contra...
[ -0.4727528691291809, 0.37894704937934875, 0.32081928849220276, -0.0807502418756485, -0.06857499480247498, -0.8192505240440369, 0.6060963273048401, 0.28726521134376526, 0.5340575575828552, 0.8360358476638794, -0.8890499472618103, 0.935050368309021, -0.6838270425796509, 0.3727312982082367, ...
func NewIRegistryCaller(address common.Address, caller bind.ContractCaller) (*IRegistryCaller, error) { contract, err := bindIRegistry(address, caller, nil, nil) if err != nil { return nil, err } return &IRegistryCaller{contract: contract}, nil }
[ -0.902195394039154, 0.47363319993019104, 0.40342074632644653, 0.35796576738357544, -0.15317732095718384, -0.009239994920790195, 0.7946850657463074, 0.18225836753845215, 0.41778820753097534, 1.018718957901001, -0.8805641531944275, 0.3150222599506378, -0.47155725955963135, 0.5447805523872375...
func NewIRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*IRegistryTransactor, error) { contract, err := bindIRegistry(address, nil, transactor, nil) if err != nil { return nil, err } return &IRegistryTransactor{contract: contract}, nil }
[ -0.7116079330444336, 0.31595492362976074, 0.46815934777259827, -0.029682684689760208, -0.14047177135944366, -0.36750566959381104, 1.1139118671417236, 0.6112512350082397, 0.14941337704658508, 1.1820136308670044, -1.805517315864563, 0.5911786556243896, -0.21956676244735718, -0.18541014194488...
func NewIRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*IRegistryFilterer, error) { contract, err := bindIRegistry(address, nil, nil, filterer) if err != nil { return nil, err } return &IRegistryFilterer{contract: contract}, nil }
[ -0.9579498767852783, 0.09888804703950882, 0.40746909379959106, 0.3274418115615845, -0.19725671410560608, -0.33215951919555664, 0.5499187111854553, 0.49986445903778076, 0.2411045879125595, 0.8455069065093994, -1.0459212064743042, 0.8135278224945068, -0.5633835196495056, 0.530238687992096, ...
func bindIRegistry(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := abi.JSON(strings.NewReader(IRegistryABI)) if err != nil { return nil, err } return bind.NewBoundContract(address, parsed, caller,...
[ -0.7036532163619995, -0.2379269301891327, 0.4971044957637787, 0.11476323008537292, 0.1404779851436615, -0.5650392174720764, 0.40816664695739746, 0.12377426028251648, 0.3603467643260956, 0.12357084453105927, -0.32278111577033997, 1.2238966226577759, -0.6033872961997986, 0.03591778501868248,...
func (_IRegistry *IRegistryRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error { return _IRegistry.Contract.IRegistryCaller.contract.Call(opts, result, method, params...) }
[ -1.1953833103179932, 0.9178005456924438, 0.3983252942562103, 0.8223941922187805, -0.7035563588142395, 0.12521886825561523, 0.17810307443141937, -0.5354728102684021, 0.4350951611995697, 0.4368591010570526, 0.13912427425384521, 0.053408361971378326, -0.9896594882011414, 0.1554960161447525, ...
func (_IRegistry *IRegistryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _IRegistry.Contract.IRegistryTransactor.contract.Transfer(opts) }
[ -0.958448052406311, 0.22568942606449127, 0.30620431900024414, 0.7498040795326233, 0.06470980495214462, 0.15999425947666168, 1.1457793712615967, -0.26181334257125854, 0.5391338467597961, -0.16279001533985138, -0.11678532510995865, 0.4689093828201294, -0.5844441056251526, -0.3078130185604095...
func (_IRegistry *IRegistryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _IRegistry.Contract.IRegistryTransactor.contract.Transact(opts, method, params...) }
[ -0.9064123034477234, 0.3797306418418884, 0.39501315355300903, -0.2844259440898895, 0.4337500333786011, -0.3399249017238617, 1.4354655742645264, -0.22967217862606049, 0.1585564762353897, 0.22707034647464752, -0.22032403945922852, 0.6520166397094727, -0.2920459806919098, -0.01465934608131647...
func (_IRegistry *IRegistryCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error { return _IRegistry.Contract.contract.Call(opts, result, method, params...) }
[ -1.0971931219100952, 0.8464921116828918, 0.449680894613266, 0.9309536814689636, -0.7418516278266907, 0.2634117901325226, 0.13421915471553802, -0.5779060125350952, 0.48987945914268494, 0.25454896688461304, 0.09147965908050537, 0.012435240671038628, -0.9353849291801453, 0.1445980817079544, ...
func (_IRegistry *IRegistryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _IRegistry.Contract.contract.Transfer(opts) }
[ -0.6736972332000732, 0.19887501001358032, 0.29773440957069397, 0.8058175444602966, 0.14129243791103363, 0.20797210931777954, 0.9895437955856323, -0.43746358156204224, 0.7539663314819336, -0.22840633988380432, 0.08564209938049316, 0.3190469741821289, -0.5441024303436279, -0.3839550912380218...
func (_IRegistry *IRegistryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _IRegistry.Contract.contract.Transact(opts, method, params...) }
[ -0.6664196252822876, 0.3503602147102356, 0.42521703243255615, -0.1799721121788025, 0.47540202736854553, -0.19779828190803528, 1.2119544744491577, -0.46635302901268005, 0.34037742018699646, 0.15813055634498596, 0.03093005158007145, 0.5157219767570496, -0.1618618220090866, -0.055600542575120...
func (_IRegistry *IRegistryCaller) GetContractAddress(opts *bind.CallOpts, _name string) (common.Address, error) { var ( ret0 = new(common.Address) ) out := ret0 err := _IRegistry.contract.Call(opts, out, "getContractAddress", _name) return *ret0, err }
[ -0.38257816433906555, 0.2353517860174179, 1.0866618156433105, 0.8542619943618774, 0.05069229006767273, -0.3407244384288788, 1.2353202104568481, -0.6424918174743652, 0.5384261608123779, 0.2236952930688858, -0.7443386316299438, 0.2819947898387909, -0.8736310601234436, 0.4994452893733978, 0...
func (_IRegistry *IRegistrySession) GetContractAddress(_name string) (common.Address, error) { return _IRegistry.Contract.GetContractAddress(&_IRegistry.CallOpts, _name) }
[ -0.6401404142379761, 0.11197534948587418, 0.8607619404792786, 0.5502746105194092, -0.13749584555625916, -0.6159127354621887, 1.0963573455810547, -0.6720684170722961, 0.7941656112670898, 0.5834245681762695, -0.4506939649581909, 0.3375706672668457, -0.9414544701576233, 0.13140210509300232, ...
func (_IRegistry *IRegistryCallerSession) GetContractAddress(_name string) (common.Address, error) { return _IRegistry.Contract.GetContractAddress(&_IRegistry.CallOpts, _name) }
[ -0.6250666379928589, 0.09728170931339264, 0.884764552116394, 0.5658335089683533, -0.22356922924518585, -0.4007512927055359, 0.8674934506416321, -0.7117652893066406, 0.7906082272529602, 0.49638792872428894, -0.43265336751937866, 0.3687240481376648, -0.9550567865371704, 0.19122934341430664, ...
func (_IRegistry *IRegistryTransactor) UpdateContractAddress(opts *bind.TransactOpts, _name string, _address common.Address) (*types.Transaction, error) { return _IRegistry.contract.Transact(opts, "updateContractAddress", _name, _address) }
[ -0.700908362865448, -0.4017809331417084, 0.6907789707183838, -0.3648228049278259, -1.2096837759017944, -0.677704930305481, 0.6478585004806519, 0.3453833758831024, 0.6779548525810242, 1.3802998065948486, -1.000265121459961, 0.5006712675094604, -0.26746508479118347, -0.591518223285675, 0.4...
func (_IRegistry *IRegistrySession) UpdateContractAddress(_name string, _address common.Address) (*types.Transaction, error) { return _IRegistry.Contract.UpdateContractAddress(&_IRegistry.TransactOpts, _name, _address) }
[ -0.6932045817375183, -0.3214026689529419, 0.6257396340370178, -0.2638571560382843, -1.0566256046295166, -0.9785764813423157, 0.8610714077949524, 0.25306281447410583, 0.6805041432380676, 1.405139684677124, -1.0794938802719116, 0.37319043278694153, -0.3030146360397339, -0.5781514644622803, ...
func (_IRegistry *IRegistryTransactorSession) UpdateContractAddress(_name string, _address common.Address) (*types.Transaction, error) { return _IRegistry.Contract.UpdateContractAddress(&_IRegistry.TransactOpts, _name, _address) }
[ -0.6602407693862915, -0.34816670417785645, 0.6306524276733398, -0.331857293844223, -1.0485886335372925, -0.9422719478607178, 0.8154904246330261, 0.31892696022987366, 0.6690846085548401, 1.444554090499878, -1.0643563270568848, 0.33938494324684143, -0.168558269739151, -0.6785662770271301, ...
func (l *ModuleLevels) GetLevel(module string) api.Level { level, exists := l.levels[module] if !exists { level, exists = l.levels[""] // no configuration exists, default to info if !exists { level = api.INFO } } return level }
[ -0.5643185973167419, -0.23101192712783813, 0.14251036942005157, 0.23710311949253082, 0.5539942979812622, 0.5272235870361328, -0.32341456413269043, -0.6679737567901611, 0.07209118455648422, 0.5671015381813049, -0.15406495332717896, -0.21044805645942688, -0.8412269353866577, 0.95844668149948...
func (l *ModuleLevels) SetLevel(module string, level api.Level) { if l.levels == nil { l.levels = make(map[string]api.Level) } l.levels[module] = level }
[ -0.4665767252445221, -0.7068541049957275, -0.018723655492067337, -0.12891781330108643, 0.1996648609638214, 0.9376177191734314, -0.6645675301551819, 0.6074368953704834, 0.17383494973182678, 0.2783113121986389, -0.9716751575469971, 0.9076133966445923, -0.9641018509864807, 1.1832555532455444,...
func (l *ModuleLevels) IsEnabledFor(module string, level api.Level) bool { return level <= l.GetLevel(module) }
[ -0.2203274518251419, -0.7910358905792236, 0.28870970010757446, -0.7259656190872192, -0.5394482612609863, -0.22242571413516998, -1.500952124595642, 0.17437510192394257, -0.36415576934814453, 0.13582125306129456, -0.03818553313612938, 0.01171203050762415, -1.0022759437561035, 1.0332142114639...
func CatalogProperties(ctx context.Context, opts *CatalogPropertiesOptions, paths ...string) error { cb := func(path string, info os.FileInfo) error { select { case <-ctx.Done(): return nil default: // pass } if info.IsDir() { return nil } if filepath.Ext(path) != ".json" { return nil ...
[ -0.09354099631309509, 0.055171094834804535, 0.6917849183082581, -0.09815584123134613, 0.4052361249923706, 0.2664870321750641, 0.13146822154521942, -0.2653433084487915, -0.6251377463340759, -0.11344163864850998, 0.515720546245575, -0.16419942677021027, 0.31381165981292725, -0.71861851215362...
func (l LibsecurityRestful) toFilter() bool { if toFilterFlag == false { logger.Info.Println("No filtering") } return toFilterFlag }
[ -0.09903623163700104, 0.31623974442481995, 0.5738258361816406, -0.033777229487895966, -0.03999941796064377, 0.13666294515132904, 0.25863051414489746, 0.07619310170412064, -0.2741518020629883, 0.36672133207321167, -0.8010688424110413, -0.11260098963975906, -1.099852204322815, -0.13934880495...
func (l LibsecurityRestful) SuperUserFilter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain) { if l.verifyUserPermissions(req, resp, chain, am.SuperUserPermission) == true { chain.ProcessFilter(req, resp) } }
[ 0.8105791211128235, -0.12799863517284393, 0.4421979784965515, 1.344578742980957, -0.8953463435173035, -0.24338001012802124, 0.009233071468770504, 0.1867220103740692, 0.4210493862628937, -0.9371539950370789, -0.903290331363678, 0.8668572902679443, -0.7167431116104126, -0.29311707615852356, ...
func (l LibsecurityRestful) SameUserFilter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain) { if l.toFilter() == false { chain.ProcessFilter(req, resp) return } name := req.PathParameter(userIdParam) logger.Trace.Println("SameUserFilter: user name:", name) tokenStr := l.getCookieAcces...
[ -0.24241657555103302, -0.09424866735935211, 0.846270740032196, 1.2806953191757202, -0.9732223749160767, -0.08445797115564346, 0.8751779198646545, -0.31990841031074524, 0.4549008011817932, 0.024812612682580948, -0.21820896863937378, 0.9399169683456421, -0.6125473976135254, 0.501944422721862...
func (c *LogrusAdapter) Handle(e ulog.Entry) { l := c.Logger for _, f := range e.Fields() { l = l.WithField(f.Key, f.Value) } switch e.Level { case ulog.ErrorLevel: l.Error(e.Message) case ulog.WarnLevel: l.Warn(e.Message) case ulog.InfoLevel: l.Info(e.Message) case ulog.DebugLevel: l.Debug(e.Message)...
[ -0.39268189668655396, 0.16933776438236237, 0.7101806402206421, -0.44401583075523376, 0.10727184265851974, 0.058925796300172806, -0.41355884075164795, 0.40786662697792053, 0.17078331112861633, -0.6627914309501648, 0.21866117417812347, 0.4276100993156433, 0.956986129283905, 0.297112405300140...
func (m *MerchantCreateBody) Validate(formats strfmt.Registry) error { var res []error if err := m.validateCode(formats); err != nil { // prop res = append(res, err) } if err := m.validateFeatures(formats); err != nil { // prop res = append(res, err) } if err := m.validateGatewayID(formats); err != nil...
[ -0.23936006426811218, -0.21096064150333405, 0.4457453489303589, -0.6421582102775574, -0.013683515600860119, 0.18198052048683167, -0.07203494757413864, -1.0153491497039795, 0.15041819214820862, 0.5003083944320679, 0.07536812871694565, 0.10244935005903244, -1.3641074895858765, 1.648731589317...
func (p *EVMNodePresenter) ToRow() []string { row := []string{ p.GetID(), p.Name, p.EVMChainID.ToInt().String(), p.WSURL.ValueOrZero(), p.HTTPURL.ValueOrZero(), p.CreatedAt.String(), p.UpdatedAt.String(), p.State, } return row }
[ 0.036531008780002594, -0.06632571667432785, 0.7444387078285217, -0.9900800585746765, 0.6787243485450745, 0.06189799681305885, -0.5748056173324585, -0.42951464653015137, 0.18378421664237976, 0.41407495737075806, 0.5107042193412781, 0.5601535439491272, 0.29050999879837036, 0.5615999698638916...
func (pos *Position) IsValid() bool { return pos.Line > 0 }
[ 0.5551814436912537, -1.3498382568359375, 0.5105262994766235, 0.29854723811149597, 0.253631591796875, 0.529224693775177, -1.3327627182006836, 0.49900123476982117, 0.29888856410980225, -0.8057577610015869, 0.26016366481781006, -0.5146162509918213, 0.12212543189525604, 0.2801206111907959, -...
func (pos Position) String() string { s := pos.Filename if pos.IsValid() { if s != "" { s += ":" } s += fmt.Sprintf("%d:%d", pos.Line, pos.Column) } if s == "" { s = "-" } return s }
[ 0.5281165838241577, -1.3422106504440308, 0.3511253297328949, -0.5422581434249878, -0.485662043094635, 0.6560770869255066, -0.30790063738822937, -0.31000956892967224, -0.6376236081123352, 0.17147023975849152, 0.2054644078016281, -0.34352314472198486, 0.5936237573623657, -0.356875479221344, ...
func (p Pos) IsValid() bool { return p != NoPos }
[ 0.00038664237945340574, -0.6811620593070984, 0.38950440287590027, 0.1418534219264984, 0.2338290512561798, 0.9435896277427673, -0.9086239337921143, 0.666964590549469, 0.5546637773513794, -0.5972597002983093, -0.4037938714027405, -0.48536211252212524, -0.5983118414878845, -0.3844009041786194...
func NewMockStudentRepository(ctrl *gomock.Controller) *MockStudentRepository { mock := &MockStudentRepository{ctrl: ctrl} mock.recorder = &MockStudentRepositoryMockRecorder{mock} return mock }
[ -0.6472873091697693, -0.7466812133789062, 0.18243670463562012, 0.07813788950443268, -0.07791850715875626, -0.3505634069442749, 0.7679279446601868, 0.17682130634784698, 0.5983099937438965, 0.45735302567481995, -0.4688645005226135, -0.28979137539863586, -0.21074584126472473, 0.63877797126770...
func (m *MockStudentRepository) EXPECT() *MockStudentRepositoryMockRecorder { return m.recorder }
[ -0.5258633494377136, 0.020888691768050194, 0.1175081729888916, -0.10966287553310394, 0.2941696345806122, 0.05382300540804863, 0.09164318442344666, 0.8092843294143677, 0.3664373457431793, 0.2119181752204895, 0.4714811146259308, 0.589131236076355, -0.594735860824585, 0.5080389976501465, -0...
func (m *MockStudentRepository) Delete(arg0 gocql.UUID) *exception.AppError { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Delete", arg0) ret0, _ := ret[0].(*exception.AppError) return ret0 }
[ -0.45141223073005676, 0.2927108108997345, 0.4740985929965973, 0.6522510647773743, 1.3192764520645142, 0.41387295722961426, 0.7669644951820374, 0.6260935664176941, -0.23672093451023102, 0.25994783639907837, -0.18206389248371124, -0.835951030254364, -1.2043874263763428, 0.8255499005317688, ...
func (mr *MockStudentRepositoryMockRecorder) Delete(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockStudentRepository)(nil).Delete), arg0) }
[ -0.23735381662845612, 0.6326341032981873, 0.42479097843170166, 0.5704225897789001, 0.11886319518089294, 0.3546542227268219, -0.01964951492846012, -0.5661795735359192, 1.0038164854049683, 0.6861147880554199, 0.6380563378334045, 0.29039421677589417, -1.0545717477798462, 1.3666409254074097, ...
func (m *MockStudentRepository) FindAll() ([]domain.Student, *exception.AppError) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FindAll") ret0, _ := ret[0].([]domain.Student) ret1, _ := ret[1].(*exception.AppError) return ret0, ret1 }
[ -0.02523430436849594, -0.36072632670402527, 0.4437021017074585, 0.9080834984779358, 0.6782634258270264, 0.4604912996292114, 0.5099789500236511, 0.12008187919855118, -0.4165171980857849, 0.022245517000555992, -0.3824988901615143, -0.4162030518054962, -0.5357387065887451, 1.3810964822769165,...
func (mr *MockStudentRepositoryMockRecorder) FindAll() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindAll", reflect.TypeOf((*MockStudentRepository)(nil).FindAll)) }
[ 0.1695668250322342, 0.27668917179107666, 0.18549568951129913, 0.5166983604431152, 0.010205777361989021, 0.3415086567401886, -0.23523926734924316, -0.32350099086761475, 0.6107204556465149, 0.7895739078521729, 0.46869799494743347, 0.10661875456571579, -1.0998146533966064, 1.6113539934158325,...
func (m *MockStudentRepository) FindById(arg0 gocql.UUID) (*domain.Student, *exception.AppError) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FindById", arg0) ret0, _ := ret[0].(*domain.Student) ret1, _ := ret[1].(*exception.AppError) return ret0, ret1 }
[ 0.23510785400867462, -0.2805943191051483, 0.24568666517734528, 0.26589974761009216, 0.6191574931144714, 0.360931396484375, 1.1532522439956665, -0.5513024926185608, -0.8259113430976868, 0.2969221770763397, -0.9643522500991821, -0.803233802318573, -0.7742317318916321, 1.2927989959716797, 0...
func (mr *MockStudentRepositoryMockRecorder) FindById(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindById", reflect.TypeOf((*MockStudentRepository)(nil).FindById), arg0) }
[ 0.6178643703460693, 0.34499749541282654, 0.07091334462165833, -0.05438430234789848, -0.04363371804356575, 0.38070598244667053, 0.20565050840377808, -1.1699624061584473, 0.31080469489097595, 0.9432222247123718, -0.02971111238002777, 0.030675798654556274, -1.2480725049972534, 1.7350409030914...
func (m *MockStudentRepository) Insert(arg0 *domain.Student) (*domain.Student, *exception.AppError) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Insert", arg0) ret0, _ := ret[0].(*domain.Student) ret1, _ := ret[1].(*exception.AppError) return ret0, ret1 }
[ -1.100260853767395, 0.014004523865878582, 0.2955164611339569, 0.2680158019065857, 1.1206427812576294, 0.5022240877151489, 1.1468712091445923, 0.30436861515045166, -1.060282588005066, 0.08629987388849258, -0.9041886925697327, -1.114673376083374, -0.7592653036117554, 0.9447696208953857, 0....
func (mr *MockStudentRepositoryMockRecorder) Insert(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockStudentRepository)(nil).Insert), arg0) }
[ -0.7477020025253296, 0.7684730887413025, 0.11277459561824799, 0.021094903349876404, 0.20491129159927368, 0.49746111035346985, 0.24675630033016205, -0.27878081798553467, 0.2695995271205902, 0.5415972471237183, -0.04582099989056587, -0.13598667085170746, -1.4554425477981567, 1.54652369022369...
func (m *MockStudentRepository) Update(arg0 *domain.Student, arg1 gocql.UUID) (*domain.Student, *exception.AppError) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Update", arg0, arg1) ret0, _ := ret[0].(*domain.Student) ret1, _ := ret[1].(*exception.AppError) return ret0, ret1 }
[ -0.9116597175598145, -0.606936514377594, 0.34012067317962646, 0.3812890648841858, 0.6904042959213257, 0.7992194890975952, 0.7085080146789551, 0.22618556022644043, -0.48293519020080566, 0.5147203207015991, -0.3895862400531769, -1.187394618988037, -0.747286319732666, 0.5799673795700073, -0...
func (mr *MockStudentRepositoryMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockStudentRepository)(nil).Update), arg0, arg1) }
[ -0.5708447694778442, -0.0659632459282875, 0.36821267008781433, 0.19773823022842407, -0.32625603675842285, 0.5426545739173889, -0.21146410703659058, -0.6831729412078857, 0.658576488494873, 0.9564973711967468, 0.5933246612548828, 0.10657505691051483, -1.1810195446014404, 1.1174943447113037, ...
func RKSearch(s, pattern string) int { if len(s) < len(pattern) { return -1 } const CharacterSize int = 26 patternLength := len(pattern) patternPow := make([]int, patternLength) patternPow[0] = 1 for i := 1; i < patternLength; i++ { patternPow[i] = CharacterSize * patternPow[i-1] } patternHash := 0 for ...
[ -0.047167617827653885, 0.1509472280740738, 0.851760983467102, -0.19399315118789673, -0.81269371509552, -0.4830183982849121, 1.5965869426727295, 0.26424482464790344, 0.499278724193573, 0.30890294909477234, -0.18185658752918243, 0.278555691242218, -0.7832874655723572, -0.569959282875061, 0...
func bindToDev(fd int, devName string) error { return fmt.Errorf("binding to device is not supported") }
[ -0.46180275082588196, -0.1508091390132904, 0.644706666469574, 0.5999711155891418, -1.220749855041504, 0.8389816284179688, 0.47107917070388794, -0.6597428917884827, 0.38632506132125854, -0.5884320735931396, 0.4676398038864136, 0.831037700176239, 0.2014058381319046, 0.5253046751022339, 0.9...
func Haha1() { fmt.Print("Ha ha ebitut\n") }
[ 0.9160534739494324, -0.0342610739171505, 0.5117433667182922, 0.5678844451904297, 0.29797595739364624, 0.9823025465011597, 0.3438449800014496, 0.24851249158382416, -0.7793086767196655, 0.1366284340620041, -0.19706033170223236, 0.40752726793289185, 0.5932669639587402, 0.5500922203063965, -...
func outerloop(screen *ebiten.Image) error { //screen.Fill(color.NRGBA{0xff, 0xff, 128, 0xff}) // screen.Fill(color.NRGBA{154, 158, 5, 0xff}) if ebiten.IsMouseButtonPressed(ebiten.MouseButtonLeft) && mouseReleased { mx, my := ebiten.CursorPosition() mouseReleased = fa...
[ -0.5658514499664307, 0.13707223534584045, 1.0965893268585205, 0.21096275746822357, -0.4268476366996765, 0.8388723731040955, -0.2497943788766861, -0.6097087860107422, -0.09750519692897797, 0.689110517501831, -0.255734920501709, 0.4516294300556183, -0.17657621204853058, 1.267866611480713, ...
func PushKeyOnce(k string) bool { if k != prevkey { prevkey = k return true } prevkey = k return false }
[ -0.6467719078063965, 1.495534896850586, 0.6438539028167725, 0.41531407833099365, -0.1074436604976654, -0.013390947133302689, -0.8604947924613953, -0.038136571645736694, -0.44675004482269287, 2.1260013580322266, -0.40962040424346924, -0.38418883085250854, -1.446009874343872, 0.6970355510711...
func (path *Path) Delim() rune { return '/' }
[ 0.1678069829940796, 0.4311627447605133, 0.4625568389892578, 0.5854682326316833, -0.44503727555274963, 1.1422744989395142, 0.13822628557682037, 0.20199602842330933, -0.16642028093338013, -1.2856049537658691, 0.25169163942337036, -0.110636867582798, -0.2999432682991028, -0.5751339197158813, ...
func ParseEncodedPath(p string) (Path, error) { // TODO use delim() here segs := strings.Split(strings.Trim(p, " /"), "/") is := make([]Value, len(segs)) for i := range segs { s, err := url.QueryUnescape(segs[i]) if err != nil { return Path{}, err } is[i] = []byte(s) } return is, nil }
[ -0.6189537048339844, 0.03326806798577309, 0.6768611073493958, 0.11727911233901978, -0.360572874546051, 0.2664693295955658, 0.21956874430179596, 0.17306260764598846, 0.7457069754600525, 0.0992066040635109, -0.6117653250694275, 0.17194023728370667, -0.6877099275588989, -0.004947965499013662,...
func ParsePath(p string) Path { // TODO use delim() here segs := strings.Split(strings.Trim(p, " /"), "/") is := make([]Value, len(segs)) for i := range segs { is[i] = []byte(segs[i]) } return is }
[ -0.2702878415584564, 0.2511902153491974, 0.6138864755630493, -0.1001906618475914, 0.007106966804713011, 0.3109620213508606, 0.009420993737876415, -0.2666890025138855, 0.20223812758922577, 0.45890507102012634, -0.8319283127784729, -0.6232824921607971, -1.1302217245101929, -0.255601435899734...
func (path *Path) String() string { if len(*path) > 0 { var buf bytes.Buffer for _, v := range *path { buf.WriteRune(path.Delim()) buf.Write(v) } return buf.String() } return "" }
[ -0.1894390732049942, 0.16071106493473053, 0.07558804750442505, 0.007670763414353132, 0.01606411300599575, 0.3537403643131256, 0.5240036845207214, -0.6655886173248291, 0.05918972194194794, 0.021411849185824394, -0.0925963968038559, -0.17403866350650787, -0.9554942846298218, -0.2229682356119...
func (path *Path) URL() *url.URL { if len(*path) > 0 { var buf bytes.Buffer for _, v := range *path { buf.WriteRune(path.Delim()) buf.WriteString(url.QueryEscape(v.String())) } if u, err := url.Parse(buf.String()); err != nil { panic(err) // this should never happen } else { return u } } else ...
[ -0.1398889273405075, 0.07689927518367767, 0.24885918200016022, 0.8502209186553955, 0.11429413408041, 0.2678487300872803, 0.16411811113357544, 0.5269566178321838, 0.4104728400707245, -0.8263210654258728, 0.5025718212127686, -0.2966676652431488, -0.6616277694702148, -0.7532212138175964, -0...
func NewGetUIContentOK() *GetUIContentOK { return &GetUIContentOK{} }
[ 0.07614723592996597, -0.7620764374732971, 0.3751300573348999, 0.9717012643814087, -0.28305602073669434, -0.24840150773525238, 0.4530658423900604, 0.7875612378120422, -0.8989805579185486, -0.860244870185852, -0.540691077709198, -0.0480431504547596, -0.3415021598339081, -0.3549592196941376, ...
func (o *GetUIContentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses rw.WriteHeader(200) }
[ -0.5127670168876648, -0.5619311928749084, 0.24243655800819397, 0.4745706021785736, 0.7714279890060425, -0.6247888803482056, 0.49065011739730835, -0.08406410366296768, -0.41875597834587097, 0.1617133617401123, 0.116367407143116, -0.456155389547348, -1.0107591152191162, 0.10300098359584808, ...
func (kcl *KubeClient) StartExecProcess(token string, useAdminToken bool, namespace, podName, containerName string, command []string, stdin io.Reader, stdout io.Writer, errChan chan error) { config, err := rest.InClusterConfig() if err != nil { errChan <- err return } if !useAdminToken { config.BearerToken =...
[ 0.2776517868041992, -0.5790551900863647, 0.749627411365509, 0.2390584945678711, 0.09001926332712173, 0.3506104052066803, -0.23346850275993347, -0.8339664936065674, -0.18950539827346802, 0.31493866443634033, -0.33888888359069824, 1.0393791198730469, -0.46762192249298096, 0.09884218871593475...
func main() { p:= Person{ ID : 1, Name : "Dwi Warsono", Age : 31, } //JAlankan fungsi printPerson printPerson(p) }
[ -0.09218430519104004, -1.0859591960906982, 0.4247651696205139, 0.9325944781303406, -0.780945360660553, 1.372289776802063, -0.13283604383468628, 0.14578115940093994, -0.25727757811546326, -0.6248053908348083, -0.11533710360527039, 0.13934360444545746, -0.4024523198604584, 0.3907325267791748...
func (s AccountsServer) AuthFuncOverride(ctx context.Context, fullMethodName string) (context.Context, error) { newCtx, err := s.claimsInjector.InjectClaims(ctx) if err != nil { st, ok := status.FromError(errors.Cause(err)) if ok && st.Code() == codes.Unauthenticated { // No JWT provided. return ctx, nil ...
[ 0.14799927175045013, 1.0460574626922607, 0.5322664976119995, -0.16406051814556122, -0.48433107137680054, -0.8956918120384216, -0.02441411465406418, -0.9081190228462219, 0.587407648563385, -0.5499542355537415, 0.7407249212265015, 0.41330525279045105, 0.1694583147764206, -0.2688642144203186,...
func AuthFunc(ctx context.Context) (context.Context, error) { return ctx, nil }
[ 0.6510876417160034, -0.24940034747123718, 0.44031405448913574, 0.04754937067627907, -0.5348645448684692, -0.10856084525585175, 1.000344157218933, -0.02587275579571724, 1.0474853515625, -0.16505108773708344, 0.3607097268104553, 0.9375305771827698, 1.3525620698928833, -1.116701602935791, -...
func (r Resolution) SampleDuration() int64 { duration, ok := sampleDurationByResolution[r] if !ok { panic(fmt.Sprintf("no sample duration found for resolution value %v", r)) } return duration }
[ 0.16677376627922058, -0.251254141330719, 0.3265359103679657, 0.26081863045692444, -0.8546411395072937, -0.433549702167511, 1.0259665250778198, -0.5668506622314453, 1.1074349880218506, 0.1573578417301178, -0.40668168663978577, -1.0584818124771118, 0.1434716284275055, 0.21461328864097595, ...
func (r Resolution) SlabDuration() int64 { duration, ok := slabDurationByResolution[r] if !ok { panic(fmt.Sprintf("no slab duration found for resolution value %v", r)) } return duration }
[ -0.02962453104555607, 0.42946121096611023, 0.23949706554412842, -0.137916699051857, -0.4850509762763977, 0.07857567816972733, 0.718722403049469, -0.8266697525978088, 0.1884278804063797, 0.4883694648742676, -0.2308565080165863, -1.0486255884170532, -0.6347194910049438, 1.3049720525741577, ...
func (r Resolution) IsRollup() bool { return r == Resolution30m || r == resolution50ns }
[ -1.0358918905258179, 0.5929290056228638, 0.5181928277015686, 0.01044596079736948, 0.03851289302110672, -0.16357918083667755, -0.5674799084663391, -0.10862194746732712, 1.8004778623580933, 0.4752223491668701, 0.033166542649269104, 0.7014616131782532, -0.3986016809940338, -0.1792190372943878...
func (r Resolution) TargetRollupResolution() (Resolution, bool) { switch r { case Resolution10s: return Resolution30m, true case resolution1ns: return resolution50ns, true } return r, false }
[ -1.6219271421432495, -0.28411102294921875, 0.7330940365791321, -0.18119138479232788, -0.004407593980431557, -0.15559172630310059, -0.5901293754577637, 0.21434557437896729, 1.4331636428833008, 0.8000757694244385, -0.6174114942550659, 0.3018019199371338, 0.11042855679988861, -0.9423047900199...
func ResolutionFromProto(r tspb.TimeSeriesResolution) Resolution { switch r { case tspb.TimeSeriesResolution_RESOLUTION_10S: return Resolution10s case tspb.TimeSeriesResolution_RESOLUTION_30M: return Resolution30m default: } return resolutionInvalid }
[ -0.11492028832435608, -0.18345759809017181, 0.39671969413757324, 0.41488057374954224, -0.26365917921066284, 0.45809265971183777, -0.008012177422642708, -0.12018883973360062, 0.4042804539203644, -0.1466837078332901, -0.06598038971424103, -0.7208907008171082, -0.48332756757736206, -0.5339132...
func (s stringSource) ReplaceRunes(byteOffset, runeCount int64, str string) { }
[ 0.129727303981781, -0.1670546680688858, 0.3348318636417389, -1.1702162027359009, -0.9489875435829163, -0.8130318522453308, 0.24820423126220703, 2.2258267402648926, 0.05120987072587013, -0.1839635670185089, -0.5945102572441101, 0.6134958267211914, -0.985589325428009, -0.4772511422634125, ...
func (l *Selectable) initialize() { if !l.initialized { l.source = newStringSource("") l.text.SetSource(l.source) l.initialized = true } }
[ -0.4296835958957672, 0.35032370686531067, 0.1384163796901703, -0.7214000821113586, 0.14814245700836182, -1.156260371208191, -0.48227840662002563, 0.9871997833251953, 0.3874589502811432, -0.07678607851266861, -1.4112375974655151, -0.15823018550872803, -0.7156735062599182, 0.8146735429763794...
func (l *Selectable) Focus() { l.requestFocus = true }
[ -0.6973313093185425, -0.35649070143699646, 0.23273690044879913, 0.7269822359085083, 0.4925737977027893, 0.2462420016527176, 0.8954491019248962, -0.15993376076221466, -0.34183269739151, -1.0065457820892334, -0.1188395544886589, 0.5282114148139954, -0.4643181264400482, 0.008153820410370827, ...
func (l *Selectable) Focused() bool { return l.focused }
[ -0.45316895842552185, -0.7890353202819824, 0.25839513540267944, 0.21452265977859497, 0.19828832149505615, 0.29795241355895996, 0.5135064125061035, 0.17451655864715576, 0.0054972111247479916, -0.39113566279411316, -1.2362946271896362, -0.0367744155228138, -0.06881445646286011, 0.02928681112...
func (l *Selectable) paintSelection(gtx layout.Context, material op.CallOp) { l.initialize() if !l.focused { return } l.text.PaintSelection(gtx, material) }
[ 0.2275548279285431, 0.016165083274245262, 0.10655645281076431, 0.42615804076194763, -0.3392677307128906, 0.13680081069469452, 0.5190551280975342, -0.30789119005203247, 1.5286859273910522, -0.07151472568511963, 0.14833559095859528, 0.14951495826244354, -1.0967341661453247, 0.440479010343551...
func (l *Selectable) paintText(gtx layout.Context, material op.CallOp) { l.initialize() l.text.PaintText(gtx, material) }
[ 0.26914462447166443, 0.41771161556243896, 0.19555433094501495, 0.818341076374054, -0.306807279586792, 0.39174216985702515, -0.6386542320251465, 0.04229937493801117, 1.4717481136322021, 0.31541377305984497, -0.1673876792192459, 0.21457050740718842, -0.9687297940254211, 0.3488231897354126, ...
func (l *Selectable) SelectionLen() int { l.initialize() return l.text.SelectionLen() }
[ -0.6122960448265076, -0.12379410862922668, 0.002932401606813073, 0.1882808357477188, -0.06075644865632057, -0.5009859800338745, 0.5240675806999207, 0.6686693429946899, 0.39036354422569275, -0.1004830002784729, -1.2107539176940918, -0.801362931728363, -0.15574048459529877, 0.603665053844451...
func (l *Selectable) Selection() (start, end int) { l.initialize() return l.text.Selection() }
[ -0.8570452928543091, -0.6283422708511353, 0.092782162129879, -0.027646441012620926, -0.5195245146751404, -0.8761166930198669, 0.8827828168869019, 0.017086004838347435, -0.010819940827786922, -0.06594137847423553, -1.0831764936447144, 0.06858541816473007, -0.4627782702445984, -0.01276543457...
func (l *Selectable) SetCaret(start, end int) { l.initialize() l.text.SetCaret(start, end) }
[ 0.10806035995483398, -1.405975341796875, 0.1410607248544693, -0.12862634658813477, -0.21124650537967682, 0.28233832120895386, -0.3466561436653137, -0.11041036993265152, -1.0741349458694458, -0.04154598340392113, -1.0404441356658936, 0.10717033594846725, 0.13428884744644165, -0.059686854481...
func (l *Selectable) SelectedText() string { l.initialize() l.scratch = l.text.SelectedText(l.scratch) return string(l.scratch) }
[ 0.5338892936706543, -0.6936590671539307, -0.14719024300575256, 0.6422014832496643, -1.1667263507843018, -0.2320864051580429, -0.4048495590686798, 0.08406932651996613, 1.2297662496566772, -0.2990885376930237, -0.4146488606929779, -0.4766180217266083, -0.4967268109321594, -0.1159912496805191...
func (l *Selectable) ClearSelection() { l.initialize() l.text.ClearSelection() }
[ -0.18354688584804535, -0.5781994462013245, -0.1838224232196808, 0.19688108563423157, -0.45950326323509216, -0.023430153727531433, 0.803544282913208, -0.011892125010490417, 0.6676695346832275, 1.0052258968353271, -0.15909849107265472, -0.1455753743648529, -0.03290731832385063, 0.21902808547...
func (l *Selectable) Text() string { l.initialize() l.scratch = l.text.Text(l.scratch) return string(l.scratch) }
[ -0.05974184349179268, -0.09156559407711029, -0.037049781531095505, 0.4127340018749237, -0.30744069814682007, 0.24349281191825867, -0.2600841522216797, -0.23467426002025604, 0.6311131715774536, 0.2376338392496109, -0.5554328560829163, -0.4048337936401367, -0.1805630922317505, -0.29019987583...
func (l *Selectable) SetText(s string) { l.initialize() if l.lastValue != s { l.source = newStringSource(s) l.lastValue = s l.text.SetSource(l.source) } }
[ -0.22902140021324158, 0.18868587911128998, 0.1158943846821785, 0.027652662247419357, -0.8213384747505188, -0.5320972800254822, 0.08262987434864044, 0.5254719853401184, 1.33464515209198, -0.05987987294793129, -1.1776585578918457, -0.3800472021102905, -0.3585558831691742, -0.2273110002279281...
func (l *Selectable) Truncated() bool { return l.text.Truncated() }
[ -0.7712813019752502, -0.09598162025213242, 0.4486081302165985, -0.4730111360549927, 0.041415173560380936, -0.35819584131240845, 0.23846539855003357, -0.027702555060386658, 0.506235659122467, 0.4945305585861206, -1.4826096296310425, -0.44624462723731995, -0.5215328931808472, -0.352910369634...
func (l *Selectable) Layout(gtx layout.Context, lt *text.Shaper, font font.Font, size unit.Sp, textMaterial, selectionMaterial op.CallOp) layout.Dimensions { l.initialize() l.text.LineHeight = l.LineHeight l.text.LineHeightScale = l.LineHeightScale l.text.Alignment = l.Alignment l.text.MaxLines = l.MaxLines l.tex...
[ -0.025260640308260918, -0.1420634388923645, 0.6070107221603394, -0.6687963008880615, -1.525261402130127, -0.37859514355659485, 0.43992725014686584, -0.0880938395857811, 0.4759667217731476, 0.006563570816069841, -0.11540856957435608, -0.622840166091919, 0.1830810159444809, -0.02882001735270...
func (l *Selectable) Events() []EditorEvent { events := l.events l.events = nil l.prevEvents = 0 return events }
[ -0.8796461224555969, -0.8687171339988708, 0.27993544936180115, -0.16880075633525848, 0.45558395981788635, -0.5015406012535095, 0.41496601700782776, 0.46341800689697266, 0.5778000950813293, -0.5027427077293396, -0.9747366309165955, -0.12147536128759384, -0.36961308121681213, 0.1853186935186...
func (l *Selectable) Regions(start, end int, regions []Region) []Region { l.initialize() return l.text.Regions(start, end, regions) }
[ -0.8936495780944824, -0.6379013061523438, -0.04743456467986107, -0.445640504360199, 0.14540943503379822, -0.4349994659423828, -0.5975650548934937, 0.05180025100708008, 0.0786016583442688, -0.3570743501186371, -0.1428849846124649, 0.12909847497940063, -0.22675327956676483, -0.42390054464340...
func RegisterNewRuleInternal(ruleName string, requiredVariables []VariableFieldName, applicableMatrix mat.Dense, auxiliaryVector mat.VecDense, ruleStore map[string]RuleMatrix, mutable bool, link RuleLink) (constructedMatrix *RuleMatrix, Error error) { if _, ok := ruleStore[ruleName]; ok { return nil, &RuleError{Err:...
[ -0.6130668520927429, -0.07399005442857742, 0.46894118189811707, -0.8929729461669922, 0.16563424468040466, -0.07062390446662903, -0.40563178062438965, 0.3247256875038147, -0.22802571952342987, 0.4289480149745941, -0.05147954821586609, 1.0115814208984375, -0.6848741769790649, 0.3372354507446...
func PullRuleIntoPlayInternal(rulename string, allRules map[string]RuleMatrix, playRules map[string]RuleMatrix) error { if _, ok := allRules[rulename]; ok { if _, ok := playRules[rulename]; ok { return &RuleError{Err: errors.Errorf("Rule '%v' is already in play", rulename), ErrorType: RuleIsAlreadyInPlay} } l...
[ -0.33070987462997437, -0.540877103805542, 0.8332272171974182, -0.9122057557106018, 0.2696365714073181, 0.4784829914569855, 0.2935391366481781, 0.4912389814853668, 0.493983656167984, 0.659085750579834, 1.0779218673706055, 1.3468751907348633, -1.0066407918930054, -0.3561933934688568, 0.866...
func PullRuleOutOfPlayInternal(rulename string, allRules map[string]RuleMatrix, playRules map[string]RuleMatrix) error { if _, ok := allRules[rulename]; ok { if _, ok := playRules[rulename]; ok { linkRule, linked := checkLinking(rulename, allRules) if linked { delete(playRules, linkRule) } delete(pla...
[ -0.11174935102462769, -0.3830934464931488, 0.7090640664100647, -0.7984386682510376, 0.1317605823278427, 0.538149893283844, 0.5751868486404419, 0.858156681060791, 0.2365831583738327, 0.946664035320282, 1.4031927585601807, 1.0459803342819214, -1.1398285627365112, 0.012968515045940876, 0.93...
func VerifyUser(username, password, clientCode string, client *http.Client) (string, error) { requestUrl := fmt.Sprintf(common.BaseUrl, clientCode) params := url.Values{} params.Add("username", username) params.Add("clientCode", clientCode) params.Add("password", password) params.Add("request", "verifyUser") re...
[ -0.3557720184326172, -0.21081581711769104, 0.8641148805618286, 0.6673350930213928, -0.5096480250358582, -0.5483543276786804, 0.5749707221984863, -1.110305905342102, -0.0948106199502945, 0.7120940089225769, -0.7885255217552185, 0.5036686658859253, -1.006016492843628, 0.5233737826347351, 0...
func VerifyUserV2(ctx context.Context, filters map[string]string, clientCode string, cli *http.Client) (string, error) { requestUrl := fmt.Sprintf(common.BaseUrl, clientCode) params := url.Values{} for k, v := range filters { params.Add(k, v) } params.Add("request", "verifyUser") req, err := http.NewRequestWith...
[ -0.5147749185562134, -0.5289307236671448, 0.8195576071739197, 0.6279577016830444, -0.8489358425140381, -0.24077124893665314, 0.18020649254322052, -1.42564058303833, -0.27525028586387634, 0.7202661633491516, -0.2316092699766159, 1.3164515495300293, -0.6521750092506409, 0.5784559845924377, ...
func VerifyUserFull(ctx context.Context, username, password, clientCode string, inputParams map[string]string, cli *http.Client) (*SessionKeyUser, error) { requestUrl := fmt.Sprintf(common.BaseUrl, clientCode) params := url.Values{} for k, v := range inputParams { params.Add(k, v) } params.Add("username", userna...
[ 0.08612650632858276, -0.20473311841487885, 0.9366844296455383, 0.7820289731025696, -0.21596314013004303, -0.09307323396205902, -0.34609460830688477, -0.8609657883644104, -0.018787292763590813, 0.4705558717250824, -0.9047327041625977, 0.532782793045044, -1.0243703126907349, 0.04204946383833...
func SwitchUser(ctx context.Context, sessionKey, pin, clientCode string, inputParams map[string]string, cli *http.Client) (*SessionKeyUser, error) { requestUrl := fmt.Sprintf(common.BaseUrl, clientCode) params := url.Values{} for k, v := range inputParams { params.Add(k, v) } params.Add("sessionKey", sessionKey)...
[ -0.9732103943824768, -0.08253569900989532, 0.9689460396766663, 0.34130799770355225, -0.29167670011520386, -0.14107583463191986, 0.09971815347671509, -0.44209620356559753, -0.0032842906657606363, 0.4299977421760559, -0.25313135981559753, 0.7560327649116516, -1.4631454944610596, -0.302991032...
func GetSessionKeyUser(sessionKey string, clientCode string, client HttpClient) (*SessionKeyUser, error) { requestUrl := fmt.Sprintf(common.BaseUrl, clientCode) params := url.Values{} params.Add("sessionKey", sessionKey) params.Add("doNotGenerateIdentityToken", "1") params.Add("request", "getSessionKeyUser") para...
[ -1.1119954586029053, -0.21578331291675568, 0.8671796321868896, 0.6334623694419861, -0.7256097793579102, -0.8179066777229309, 0.28482165932655334, -1.0516597032546997, 0.15442855656147003, 0.626464307308197, -0.6549568772315979, 0.8661277890205383, -1.5901010036468506, 0.31733280420303345, ...
func GetSessionKeyInfo(sessionKey string, clientCode string, client HttpClient) (*SessionKeyInfo, error) { requestUrl := fmt.Sprintf(common.BaseUrl, clientCode) params := url.Values{} params.Add("sessionKey", sessionKey) params.Add("request", "getSessionKeyInfo") params.Add("clientCode", clientCode) req, err := ...
[ -0.7868910431861877, -0.2920748293399811, 0.8257673978805542, 0.21483364701271057, -0.7905603647232056, -0.8008335828781128, 0.21166189014911652, -1.2049267292022705, -0.32325100898742676, 0.6797728538513184, -0.6749975085258484, 1.1156840324401855, -1.2094635963439941, 0.3375588655471802,...
func (c *Canvas) WireSeg(a, b Point, w1, w2 int) { d1 := b.Sub(a).Normalize(float64(w1) / 2) d2 := b.Sub(a).Normalize(float64(w2) / 2) x1 := a.Add(d1.Rot90()) x2 := b.Add(d2.Rot90()) x3 := b.Add(d2.Rot270()) x4 := a.Add(d1.Rot270()) c.Fill(Poly{x1, x2, x3, x4}) }
[ 0.1390046924352646, 0.3713444471359253, 0.6750393509864807, -1.0353904962539673, 0.4826771318912506, 0.4129176437854767, 0.13412827253341675, -0.9779372811317444, -0.06279631704092026, -0.1190643385052681, -0.12122133374214172, 0.2993778586387634, -0.05556679889559746, -0.21390993893146515...
func (group *Group) GetOrgID() store.UserRole { return group.OrganizationID }
[ 1.5171823501586914, 0.35262012481689453, 0.25594431161880493, 0.7636877298355103, 0.3445574641227722, 0.8741455078125, 0.6859850883483887, 0.06530251353979111, -0.1905789077281952, 0.14617055654525757, 0.6014193296432495, 0.6475615501403809, -0.46337175369262695, 0.11690738052129745, 0.6...