text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (o *TransactionSplit) HasInvoiceDate() bool { if o != nil && o.InvoiceDate.IsSet() { return true } return false }
[ 0.8836677074432373, 0.08783162385225296, 0.2699875235557556, 0.1971496194601059, 0.12057692557573318, -0.8651508092880249, -0.43223100900650024, 0.09389213472604752, -0.6300578713417053, -0.1323835700750351, -0.007228463422507048, -1.2976514101028442, -0.688717246055603, 0.4046840369701385...
func (o *TransactionSplit) SetInvoiceDate(v time.Time) { o.InvoiceDate.Set(&v) }
[ 0.4501175880432129, 0.2357439398765564, 0.38245630264282227, 0.36559805274009705, -0.6891260147094727, -0.3887369632720947, -0.6843719482421875, -0.17074458301067352, -0.028442369773983955, 0.7118958830833435, -0.02771724946796894, -0.12365551292896271, -0.2525899410247803, 0.9281356930732...
func (o *TransactionSplit) SetInvoiceDateNil() { o.InvoiceDate.Set(nil) }
[ 0.1950603425502777, -0.5777217149734497, 0.37385764718055725, -0.1956401914358139, -0.7136220335960388, -0.6276863813400269, -0.7658613920211792, 0.32320600748062134, -0.20853474736213684, 0.28048619627952576, 0.20647859573364258, -0.2642437815666199, -0.4841107726097107, -0.26472020149230...
func (o *TransactionSplit) UnsetInvoiceDate() { o.InvoiceDate.Unset() }
[ -0.199753075838089, -0.03866078332066536, -0.23512180149555206, -0.7081380486488342, -0.6902425289154053, -0.5779344439506531, 0.183350071310997, 0.13764870166778564, -1.2686219215393066, 0.3622966706752777, 0.530960202217102, -0.16234040260314941, -0.8658198714256287, -0.12408299744129181...
func Setup(c config.Config) error { log.Info("storage: setting up storage module") log.Info("storage: setting up Redis connection pool") redisPool = &redis.Pool{ MaxIdle: c.Redis.MaxIdle, MaxActive: c.Redis.MaxActive, IdleTimeout: c.Redis.IdleTimeout, Wait: true, Dial: func() (redis.Conn, e...
[ 0.012450136244297028, 0.2720417082309723, 0.9520741701126099, 0.5411590337753296, 0.4955882728099823, 0.3008793890476227, 0.03008599951863289, -0.019876647740602493, -0.0936083197593689, 0.49128463864326477, -0.584989070892334, 0.0503297820687294, -0.22168348729610443, 0.6724113821983337, ...
func Multiply(a, b int, reply *int) { *reply = a * b }
[ -0.6385838389396667, 0.5003252029418945, 0.5567251443862915, -0.3813765048980713, 0.02177364192903042, -0.37468022108078003, -0.997259259223938, -0.7661765813827515, 0.9856534600257874, -0.05271780490875244, -0.559943675994873, 0.0533425435423851, -0.6118360161781311, -0.7827926278114319, ...
func (customerService DefaultCustomerService) GetCustomerByID(w http.ResponseWriter, r *http.Request) { id, err := customerService.Helpers.ReadIDParam(r) if err != nil { http.NotFound(w, r) return } customers, dberr := customerService.Repository.GetCustomerById(id) if dberr != nil { customerService.Logger....
[ -0.4613479673862457, -0.7984882593154907, 0.3840164244174957, 0.15139640867710114, 0.35113418102264404, -0.34798774123191833, 0.17401960492134094, -0.427677184343338, -0.3207147419452667, 0.48244690895080566, 0.3819645047187805, 0.5966170430183411, -0.6139126420021057, 1.27741277217865, ...
func (customerService DefaultCustomerService) GetCustomers(w http.ResponseWriter, r *http.Request) { customers := []models.Customer{} for _, customer := range cust { customers = append(customers, *customer) } customers, dberr := customerService.Repository.GetCustomers() if dberr != nil { customerService.Log...
[ -1.1827383041381836, -0.2697555720806122, 0.5392503142356873, 0.5304027199745178, 1.189789891242981, -0.6380860805511475, -0.18884503841400146, 0.25461408495903015, -0.8023689985275269, 0.2853558361530304, 0.18134066462516785, 0.4586154818534851, -0.6640316247940063, 0.9358293414115906, ...
func Client() (*kubernetes.Clientset, error) { config, err := rest.InClusterConfig() if err != nil { config, err = getKubeConfig() if err != nil { return nil, err } } clientset, err := kubernetes.NewForConfig(config) if err != nil { return nil, err } return clientset, nil }
[ 0.6438459753990173, -0.3363937437534332, 0.41444462537765503, -0.012632029131054878, -0.6349671483039856, -0.49330130219459534, 0.26421138644218445, -1.0036975145339966, -0.2476903200149536, -0.08241604268550873, 0.11421093344688416, 0.8128504753112793, -0.29554179310798645, -0.55118215084...
func (n *mockAgent) init(ctx context.Context, sandbox *Sandbox, config KataAgentConfig) (bool, error) { return false, nil }
[ -0.8318879008293152, 0.048515576869249344, 0.3869466483592987, 0.1557597815990448, -0.22580161690711975, 0.8743313550949097, -0.033083874732255936, 0.8050210475921631, 0.12114688754081726, 0.0394892580807209, -0.32089996337890625, -0.0345449261367321, -0.34476444125175476, 0.60663723945617...
func (n *mockAgent) createSandbox(sandbox *Sandbox) error { return nil }
[ -0.24764423072338104, 0.37106603384017944, 0.21762681007385254, 0.2791670858860016, 1.0291979312896729, 0.1928108036518097, -0.025686709210276604, 0.4358474016189575, 1.1317946910858154, -0.7007119655609131, -0.2502918541431427, -0.8971993923187256, -0.29180920124053955, 1.2937005758285522...
func (n *mockAgent) capabilities() types.Capabilities { return types.Capabilities{} }
[ -0.9904093146324158, -0.641699492931366, 0.15198354423046112, 0.006257944740355015, 0.32384243607521057, 0.053334735333919525, 0.031177308410406113, -0.5376042127609253, 1.1063991785049438, -0.6709696650505066, -0.8724115490913391, -0.48626258969306946, -0.3452071249485016, 1.3291846513748...
func (n *mockAgent) disconnect() error { return nil }
[ -0.35591238737106323, -0.0657147541642189, 0.35623928904533386, 0.3531751334667206, 0.09339796006679535, 0.3436078727245331, 0.43030673265457153, 0.7523968815803528, 0.5795865058898926, 0.21186447143554688, -0.15706191956996918, -0.5024033784866333, -0.6527654528617859, 0.5981975793838501,...
func (n *mockAgent) exec(sandbox *Sandbox, c Container, cmd types.Cmd) (*Process, error) { return nil, nil }
[ 0.791477382183075, -0.09985517710447311, 0.3710409700870514, 0.6036114692687988, 0.40435129404067993, 0.5267082452774048, 0.24677981436252594, -0.47139182686805725, 0.8953756093978882, -0.6873260736465454, 0.40512213110923767, 0.10605761408805847, 0.2839944660663605, 0.35809481143951416, ...
func (n *mockAgent) startSandbox(sandbox *Sandbox) error { return nil }
[ -0.5892704129219055, 0.21586330235004425, 0.10958734154701233, 1.1457254886627197, 0.3257266879081726, 0.03045802004635334, 0.6530412435531616, 0.5260570049285889, 1.3374614715576172, -1.077620267868042, -0.5987769365310669, 0.11049437522888184, 0.08372863382101059, 1.1679027080535889, -...
func (n *mockAgent) stopSandbox(sandbox *Sandbox) error { return nil }
[ -1.6944243907928467, 0.08061719685792923, 0.23059028387069702, 0.3537239134311676, 0.5213111042976379, 0.5675615072250366, -0.0020727587398141623, 0.3795551657676697, 0.7251717448234558, -0.45525577664375305, -0.47205984592437744, -0.36453506350517273, -0.041140422224998474, 0.633805871009...
func (n *mockAgent) createContainer(sandbox *Sandbox, c *Container) (*Process, error) { return &Process{}, nil }
[ 1.3974988460540771, -0.3298946022987366, 0.247689351439476, -0.18009136617183685, 0.6055735349655151, 0.29540443420410156, 0.24226632714271545, -0.7242854237556458, 0.6435365080833435, -0.10230957716703415, 0.9210678339004517, 0.08232724666595459, -0.0435665026307106, 1.5340136289596558, ...
func (n *mockAgent) startContainer(sandbox *Sandbox, c *Container) error { return nil }
[ 0.1566787213087082, -0.4855601191520691, 0.2308337688446045, 0.7503915429115295, 0.4046621024608612, 0.06777816265821457, 1.3778023719787598, 0.47436168789863586, 0.8382225036621094, -0.48338428139686584, 0.08532878011465073, 0.12467342615127563, 0.16381099820137024, 1.9156737327575684, ...
func (n *mockAgent) stopContainer(sandbox *Sandbox, c Container) error { return nil }
[ -1.0952798128128052, -0.6043427586555481, 0.3079129755496979, 0.04011763259768486, 0.706463634967804, 0.35950520634651184, 1.2274186611175537, 0.028845466673374176, 0.3708185851573944, -0.341076135635376, 0.1152523085474968, -0.3082948625087738, 0.18332333862781525, 1.3472366333007812, 0...
func (n *mockAgent) signalProcess(c *Container, processID string, signal syscall.Signal, all bool) error { return nil }
[ 0.7539778351783752, -0.882362961769104, 0.34751564264297485, 0.48046836256980896, 0.3223210275173187, 0.3288830816745758, -0.009437146596610546, 0.19557029008865356, 1.1221210956573486, -0.0043096235021948814, -0.9326173663139343, -0.0801716297864914, -0.2909844219684601, 1.251526951789856...
func (n *mockAgent) processListContainer(sandbox *Sandbox, c Container, options ProcessListOptions) (ProcessList, error) { return nil, nil }
[ -0.7639014720916748, -0.08892644196748734, 0.331773042678833, 0.1765841245651245, 0.3447255492210388, -0.6530480980873108, 0.43573442101478577, -0.2674420475959778, 1.5135085582733154, -0.419869601726532, -0.25856512784957886, -0.07140123844146729, 0.07753012329339981, 2.140299081802368, ...
func (n *mockAgent) updateContainer(sandbox *Sandbox, c Container, resources specs.LinuxResources) error { return nil }
[ -0.5517422556877136, -0.6343315839767456, 0.4643612504005432, 0.3129993975162506, 0.18733152747154236, 0.1480734944343567, 0.5887964963912964, 0.21629615128040314, 0.7072497010231018, -0.0075025251135230064, 0.3995342254638672, -0.08995217084884644, 0.25813302397727966, 1.7978521585464478,...
func (n *mockAgent) memHotplugByProbe(addr uint64, sizeMB uint32, memorySectionSizeMB uint32) error { return nil }
[ -0.12119706720113754, -0.45308229327201843, 0.4946684241294861, 0.34952211380004883, -0.42546990513801575, -0.19740314781665802, -0.20568224787712097, 0.22602099180221558, 0.4024619162082672, -0.08009195327758789, -0.3539640009403229, -0.6675437092781067, -1.6553672552108765, 0.71900093555...
func (n *mockAgent) onlineCPUMem(cpus uint32, cpuOnly bool) error { return nil }
[ -0.7591265439987183, -0.5295916795730591, 0.23229388892650604, 1.36419677734375, -0.14720050990581512, 0.7595310211181641, 0.5286584496498108, 1.6079548597335815, 0.32666629552841187, 0.449457585811615, -0.9794872403144836, -0.5027767419815063, -0.6422257423400879, -0.11136805266141891, ...
func (n *mockAgent) updateInterface(inf *pbTypes.Interface) (*pbTypes.Interface, error) { return nil, nil }
[ -1.1189078092575073, -0.828069269657135, 0.4416637718677521, 0.7015089988708496, -0.39439454674720764, 1.0585098266601562, 0.3072994649410248, 0.3299984633922577, 0.2629932165145874, 0.31714585423469543, -0.785305380821228, -0.6662454009056091, -2.0152223110198975, 0.9219458103179932, 0....
func (n *mockAgent) listInterfaces() ([]*pbTypes.Interface, error) { return nil, nil }
[ -0.813859760761261, -0.3047090470790863, 0.28720876574516296, 0.5202588438987732, 0.5312007069587708, 0.7755072116851807, 0.23351138830184937, 0.013818453066051006, 1.57023024559021, -0.2713024318218231, -1.2492249011993408, -0.7129932641983032, -1.6194075345993042, 1.2493162155151367, -...
func (n *mockAgent) updateRoutes(routes []*pbTypes.Route) ([]*pbTypes.Route, error) { return nil, nil }
[ -1.20561945438385, -0.3343452513217926, 0.4983629882335663, 0.7258682250976562, 0.2711372971534729, 0.4425857663154602, -0.18832746148109436, 0.6814753413200378, 0.7378902435302734, 0.7196565866470337, -0.46512940526008606, -0.4236360788345337, -1.4147971868515015, 0.9485411047935486, 0....
func (n *mockAgent) listRoutes() ([]*pbTypes.Route, error) { return nil, nil }
[ -0.3565700650215149, -0.1379089206457138, 0.3446045219898224, 0.5104256868362427, 0.8717500567436218, 0.7235080003738403, -0.41963544487953186, 0.21443083882331848, 0.9324390888214111, -0.4648459255695343, -0.6691364049911499, -0.24584220349788666, -0.9918712377548218, 1.3663116693496704, ...
func (n *mockAgent) check() error { return nil }
[ -0.3496461808681488, -0.17103956639766693, 0.20260216295719147, 0.8293020725250244, 0.9762168526649475, 0.5899223685264587, 0.6401135325431824, 0.5661935210227966, -0.0932568684220314, -0.3567799925804138, 0.15568068623542786, -0.20576514303684235, -0.4451429545879364, 1.3859951496124268, ...
func (n *mockAgent) statsContainer(sandbox *Sandbox, c Container) (*ContainerStats, error) { return &ContainerStats{}, nil }
[ 0.43237051367759705, 0.3269350826740265, 0.36897239089012146, -0.15287353098392487, 0.19015271961688995, -0.28129950165748596, 0.7859360575675964, -1.2721766233444214, 1.1878350973129272, -1.437964916229248, 0.30957210063934326, 0.18738843500614166, 0.8641529679298401, 1.7550262212753296, ...
func (n *mockAgent) waitProcess(c *Container, processID string) (int32, error) { return 0, nil }
[ 0.2838081419467926, -0.3248620331287384, 0.5088459253311157, -0.5348793864250183, 1.1145153045654297, 0.486413836479187, 0.3538026809692383, -0.1010928601026535, 0.48638778924942017, -0.06622640043497086, -0.44915440678596497, -0.314351886510849, -0.13702191412448883, 0.027641525492072105,...
func (n *mockAgent) winsizeProcess(c *Container, processID string, height, width uint32) error { return nil }
[ 0.7961600422859192, -0.581865131855011, 0.38857370615005493, -0.42571449279785156, -0.11029230058193207, 0.030062314122915268, 0.8641515970230103, -0.5245457887649536, 0.9065731763839722, 0.003791769267991185, -0.6315535306930542, -0.08045897632837296, -0.36201271414756775, 0.5647028088569...
func (n *mockAgent) writeProcessStdin(c *Container, ProcessID string, data []byte) (int, error) { return 0, nil }
[ -0.9578850269317627, -1.2389264106750488, 0.47923901677131653, -0.214912548661232, 0.8714145421981812, 0.615340530872345, 0.5046082139015198, 0.06408961862325668, 0.2625817060470581, -0.29293641448020935, -0.8137645125389099, 0.3937970995903015, -0.9327192902565002, 1.086523413658142, 0....
func (n *mockAgent) closeProcessStdin(c *Container, ProcessID string) error { return nil }
[ -0.5939139723777771, -1.419270634651184, 0.42870059609413147, -0.16372144222259521, -0.25223368406295776, 1.4735755920410156, 0.05974144488573074, -0.4446154832839966, -0.023413214832544327, -0.08571282029151917, 0.21639782190322876, 0.23817816376686096, -0.5060798525810242, 1.356895685195...
func (n *mockAgent) readProcessStdout(c *Container, processID string, data []byte) (int, error) { return 0, nil }
[ 0.37412336468696594, -0.7927968502044678, 0.547393262386322, -0.6076569557189941, -0.25717589259147644, 0.23223251104354858, 0.06459493190050125, -0.21679720282554626, -0.11329806596040726, -0.32507064938545227, 0.418882817029953, 0.39918622374534607, -0.016541697084903717, 0.2277986705303...
func (n *mockAgent) readProcessStderr(c *Container, processID string, data []byte) (int, error) { return 0, nil }
[ -0.09825380891561508, -1.3411818742752075, 0.4232168197631836, -0.3085309863090515, -0.37675467133522034, 0.597993016242981, -0.27140137553215027, -0.00727515434846282, -0.049539338797330856, 0.0012731056194752455, 0.4612494111061096, 0.0841258317232132, -0.26895132660865784, 0.51139914989...
func (n *mockAgent) pauseContainer(sandbox *Sandbox, c Container) error { return nil }
[ -0.44563189148902893, -0.3651978075504303, 0.4019834101200104, 0.49799513816833496, 1.4890954494476318, -0.13994795083999634, 1.0166199207305908, -0.46682336926460266, 1.0136020183563232, -0.5019912123680115, 0.1636701375246048, -0.8314648270606995, -0.14030516147613525, 1.2189123630523682...
func (n *mockAgent) resumeContainer(sandbox *Sandbox, c Container) error { return nil }
[ 0.4967530071735382, -0.2738943099975586, 0.425963819026947, 0.34547868371009827, 0.7492123246192932, -0.6090900301933289, 0.5604032874107361, -0.06956418603658676, 1.2040443420410156, -0.8427843451499939, 0.05371154472231865, -0.35797545313835144, -0.21712522208690643, 0.9038110971450806, ...
func (n *mockAgent) configure(h hypervisor, id, sharePath string, config interface{}) error { return nil }
[ -0.05352045223116875, 0.47701138257980347, 0.3508642017841339, 1.5230941772460938, 1.1666377782821655, -0.13321423530578613, 0.8712803721427917, 1.1794626712799072, 0.09968744218349457, -0.1662733256816864, -0.4632779061794281, -1.2354671955108643, -0.3844614624977112, 1.0245649814605713, ...
func (n *mockAgent) reseedRNG(data []byte) error { return nil }
[ -0.08009980618953705, 0.06616957485675812, 0.41495785117149353, -0.4401320219039917, -0.5501967668533325, -0.037897948175668716, 0.027334613725543022, 0.36851242184638977, 0.6119851469993591, -0.1443355679512024, -0.5296337008476257, 0.060879338532686234, -0.9783849716186523, 1.13129448890...
func (n *mockAgent) reuseAgent(agent agent) error { return nil }
[ -0.8724085688591003, -0.5891581177711487, 0.2519463300704956, 0.29095587134361267, 0.2192239612340927, -0.5967662334442139, 1.2330267429351807, 0.05731004476547241, 0.7866244912147522, -0.2699011266231537, -1.05241060256958, -0.1510479748249054, -1.012360692024231, 0.7654397487640381, 0....
func (n *mockAgent) getAgentURL() (string, error) { return "", nil }
[ -0.5876617431640625, -0.3753661811351776, 0.37599697709083557, 1.214645504951477, 0.4791407585144043, -0.1830579787492752, 0.777024507522583, 0.6767076253890991, 0.32996612787246704, 0.36195680499076843, -0.308733195066452, 0.2114713191986084, -0.12523220479488373, 0.5968908071517944, -0...
func (n *mockAgent) setAgentURL() error { return nil }
[ -1.1597594022750854, -0.815522313117981, 0.13671788573265076, 0.9320287704467773, 0.4659576416015625, 0.011425178498029709, 1.0757826566696167, 0.9562445878982544, 0.35456475615501404, 0.541495144367218, -0.9373621940612793, -0.12991780042648315, -0.0920737236738205, 0.9211320281028748, ...
func (n *mockAgent) getGuestDetails(*grpc.GuestDetailsRequest) (*grpc.GuestDetailsResponse, error) { return nil, nil }
[ -0.000368732085917145, 0.4416719377040863, 0.5671701431274414, 0.8545025587081909, 0.2943042814731598, 0.34431660175323486, 0.9433315992355347, -0.25573691725730896, -0.0028130917344242334, -0.44906607270240784, -0.5803947448730469, 0.20454135537147522, -1.2768501043319702, 0.3016523718833...
func (n *mockAgent) setGuestDateTime(time.Time) error { return nil }
[ -1.6432888507843018, 0.14882273972034454, 0.5889633893966675, 0.38762804865837097, 0.16182219982147217, 0.5042815804481506, 0.7046659588813782, 0.5599095225334167, -0.08016654849052429, 0.8192915320396423, -1.4748727083206177, -0.5741139650344849, -0.7116451859474182, 1.1657365560531616, ...
func (n *mockAgent) copyFile(src, dst string) error { return nil }
[ 0.26722243428230286, 0.4404453933238983, 0.2779655158519745, -0.025319406762719154, 0.3100547790527344, 0.845658540725708, 0.5051761865615845, 0.9604340195655823, -0.4139997959136963, -0.05224783718585968, 0.44773125648498535, -0.4935549795627594, 0.3711977005004883, 0.18041419982910156, ...
func (n *mockAgent) save() (s persistapi.AgentState) { return }
[ -1.0088739395141602, -1.1007553339004517, 0.24080996215343475, -0.1867164820432663, 0.04703077673912048, 0.07369662076234818, 0.33996933698654175, 0.19432972371578217, 1.1229586601257324, 0.06167220324277878, -1.3930100202560425, -0.7999522089958191, -0.8906925916671753, 0.5904104113578796...
func (n *mockAgent) load(s persistapi.AgentState) {}
[ -0.6621662974357605, -0.6611079573631287, 0.08881668001413345, -0.3397674858570099, -0.3802330791950226, 0.19681037962436676, -0.03141971305012703, 0.11940815299749374, 1.3246867656707764, 0.11641184985637665, -0.9274090528488159, -0.6986700892448425, -0.6278743147850037, -0.24632534384727...
func (repo BoshDirectorRepository) GetReleases() (releases models.Releases, apiResponse net.ApiResponse) { response := []releaseResponse{} path := "/releases" apiResponse = repo.gateway.GetResource(repo.config.TargetURL+path, repo.config.Username, repo.config.Password, &response) if apiResponse.IsNotSuccessful() {...
[ -0.8959208726882935, 0.17645525932312012, 0.45248517394065857, -0.17491993308067322, 1.2371158599853516, -0.46332040429115295, -0.532221794128418, -0.4198303818702698, -0.18855221569538116, -0.3095233738422394, -0.5040918588638306, 0.1256800889968872, -0.5221889615058899, 0.871997237205505...
func (repo BoshDirectorRepository) DeleteReleases(name string) (apiResponse net.ApiResponse) { path := fmt.Sprintf("/releases/%s?force=true", name) apiResponse = repo.gateway.DeleteResource(repo.config.TargetURL+path, repo.config.Username, repo.config.Password) if apiResponse.IsNotSuccessful() { return } if !api...
[ -0.7641496062278748, 0.05051777884364128, 0.8236445784568787, -0.5311580896377563, -0.005374058615416288, -0.053341858088970184, 0.20124001801013947, -0.1376204788684845, 0.45795831084251404, 0.4245476722717285, -0.5161304473876953, -0.07515199482440948, -0.3990785479545593, 0.910128474235...
func (repo BoshDirectorRepository) DeleteRelease(name string, version string) (apiResponse net.ApiResponse) { path := fmt.Sprintf("/releases/%s?force=true&version=%s", name, version) apiResponse = repo.gateway.DeleteResource(repo.config.TargetURL+path, repo.config.Username, repo.config.Password) if apiResponse.IsNot...
[ -0.8308054804801941, -0.4225074052810669, 0.867775022983551, -0.2388838529586792, 0.11980082839727402, -0.4221787750720978, -0.23682501912117004, 0.21663929522037506, 0.270937979221344, 0.4506894648075104, -0.6921287775039673, -0.2607375383377075, -0.7380369305610657, 0.6668233871459961, ...
func (client *Client) LoadIndexersList() error { var result Indexers response, err := client.sendGetRequest(&result, "indexers", "", nil, nil) if err != nil { return errors.JackettUnableToLoadIndexers.ToError(err) } client.indexers = response.(*Indexers) configuredIndexers := make([]Inde...
[ -1.2028491497039795, 0.28672903776168823, 0.25364071130752563, 0.2915480434894562, 0.8029422760009766, -1.1405260562896729, -0.19940608739852905, 0.017914967611432076, -0.1890251785516739, 0.6196017861366272, -1.0455385446548462, 0.2052268385887146, -1.5036433935165405, 0.686423122882843, ...
func (client *Client) GetConfiguredIndexers() []Indexer { return client.configuredIndexers }
[ -0.858427107334137, -0.4731701910495758, -0.08294083923101425, 1.102259635925293, 0.5916091203689575, -0.804745614528656, -0.06576529890298843, 0.14501212537288666, -0.1692107915878296, -0.06454972922801971, -1.1686296463012695, 0.8734481334686279, -1.2407171726226807, 0.344345360994339, ...
func (s *subscriberdbServicer) ListSubscribers(ctx context.Context, req *lte_protos.ListSubscribersRequest) (*lte_protos.ListSubscribersResponse, error) { gateway := protos.GetClientGateway(ctx) if gateway == nil { return nil, status.Errorf(codes.PermissionDenied, "missing gateway identity") } if !gateway.Registe...
[ 0.05069861561059952, -0.4842042922973633, 0.5324602127075195, -0.7137120962142944, 0.2852695882320404, -0.7555967569351196, -0.8617976903915405, 0.18949945271015167, 0.8221203684806824, -0.07198717445135117, 0.050319746136665344, 0.6523191332817078, -0.6901460289955139, 0.5864518880844116,...
func (s *subscriberdbServicer) getDigestInfo(clientDigest *lte_protos.Digest, networkID string) (*lte_protos.Digest, bool) { // The flat digest functionality is currently placed behind a feature flag if !s.flatDigestEnabled { return &lte_protos.Digest{Md5Base64Digest: ""}, false } digest, err := storage.GetDiges...
[ 0.4135717749595642, 0.0776321217417717, 0.5899584889411926, -0.20747168362140656, -0.12220779061317444, -0.11391839385032654, -0.08777813613414764, -0.6872439980506897, -0.13371402025222778, -0.08455971628427505, -0.06533752381801605, -0.2643073499202728, -0.8146001696586609, 0.25254356861...
func (fd *FailureDetector) nextMessage() (string, string, string) { if fd.index == len(fd.nodes) { fd.refresh() } var buf bytes.Buffer gob.NewEncoder(&buf).Encode( failureDetectorMessage{ localNode:infra.LocalNode, pingNode:nil, information:fd.nodes, }, ) fd.curr = fd.nodes[fd.index] return fd.c...
[ -0.08542115986347198, 0.15604454278945923, 0.21394288539886475, -0.015858281403779984, 0.4240122437477112, 0.023106155917048454, 0.08772172778844833, -0.8430586457252502, -0.621231734752655, -0.1708754003047943, 0.2673663794994354, 0.5126150250434875, -0.6429040431976318, 0.745311796665191...
func (fd *FailureDetector) randomMessage() (string, string, string) { randNode := fd.nodes[rand.Intn(len(fd.nodes))] var buf bytes.Buffer gob.NewEncoder(&buf).Encode( failureDetectorMessage{ localNode:infra.LocalNode, pingNode:randNode, information:fd.nodes, }, ) return randNode.Hostname, SWIM_RANDO...
[ -0.11900898814201355, 0.18796147406101227, 0.21747203171253204, -0.4145316481590271, 1.0372300148010254, 0.3697379231452942, 0.10535802692174911, -0.4455355405807495, -0.5100507140159607, -0.39132019877433777, -0.22306503355503082, 0.5318666696548462, -0.9660266637802124, 0.939097344875335...
func (fd *FailureDetector) fail() { fd.curr.Status = statusFailMap[fd.curr.Status.(string)] fd.ring.UpdateStatus(fd.curr) if fd.curr.Status.(string) == FAULTY { fd.ring.RemoveSync(fd.curr) } }
[ 0.16625788807868958, -0.5086294412612915, 0.2114822268486023, -0.2525518536567688, 0.2637247145175934, -0.029940005391836166, 0.028872817754745483, -0.075613833963871, -0.2904324531555176, -0.26015233993530273, -0.45683416724205017, 0.32213094830513, -0.17480586469173431, 0.724939942359924...
func (out *ipv4Subnet) UnmarshalJSON(b []byte) error { var s string if err := json.Unmarshal(b, &s); err != nil { return err } if ip, ipnet, err := net.ParseCIDR(s); err == nil { if out.Addr, err = convertIPv4(ip.To4()); err != nil { return err } if out.Mask, err = convertIPv4(ipnet.Mask); err != nil { ...
[ -0.30534446239471436, 0.16187013685703278, 0.7857847213745117, -0.7541483044624329, -0.933750331401825, -0.43246200680732727, 0.1797996312379837, -0.035104863345623016, -0.33412495255470276, -0.1645256131887436, -0.1203455999493599, -0.1998486965894699, -0.3086467385292053, -0.212947875261...
func (out *macAddress) UnmarshalJSON(b []byte) error { var s string if err := json.Unmarshal(b, &s); err != nil { return err } hw, err := net.ParseMAC(s) if err != nil { return err } copy(out[:], hw) return nil }
[ 0.35731902718544006, -0.16897223889827728, 0.6757133603096008, -1.0002660751342773, -1.017976999282837, -0.24457763135433197, 0.5074132680892944, 0.2957313358783722, 0.413923054933548, -0.14016973972320557, -0.09451621770858765, 0.8588173389434814, -0.3102109432220459, 0.27915552258491516,...
func ReadConfig(fileName string) error { file, err := os.Open(fileName) if err != nil { return err } decoder := json.NewDecoder(file) err = decoder.Decode(&Natconfig) if err != nil { return err } for i := range Natconfig.PortPairs { pp := &Natconfig.PortPairs[i] if pp.PrivatePort.Vlan == 0 && pp.Publi...
[ -0.09149621427059174, -0.23431210219860077, 0.7421739101409912, -0.06803138554096222, 0.004667592700570822, 0.7082492113113403, 0.07699313759803772, 0.6072954535484314, -1.1524733304977417, 0.899519681930542, 0.18375614285469055, -0.24703553318977356, 0.6487847566604614, 1.1683412790298462...
func (pp *portPair) initLocalMACs() { pp.PublicPort.SrcMACAddress = flow.GetPortMACAddress(pp.PublicPort.Index) pp.PrivatePort.SrcMACAddress = flow.GetPortMACAddress(pp.PrivatePort.Index) }
[ -0.29116278886795044, -0.3061082363128662, 0.2534027695655823, -1.0842119455337524, 0.24581830203533173, -0.37778952717781067, 0.27645060420036316, 0.2608456611633301, 0.11364535987377167, -0.4362018406391144, -0.26458650827407837, 0.405579537153244, -0.5553246140480042, -0.121984221041202...
func InitFlows() { for i := range Natconfig.PortPairs { pp := &Natconfig.PortPairs[i] // Init port pairs state pp.initLocalMACs() pp.allocatePortMap() pp.allocateLookupMap() // Handler context with handler index context := new(pairIndex) context.index = i // Initialize public to private flow pub...
[ -0.83214271068573, -0.2032734751701355, 0.6838805079460144, -0.5639073252677917, 0.015881681814789772, 0.21919041872024536, 0.5805960297584534, -0.6194307804107666, -0.10934190452098846, -0.4902394413948059, -0.18399575352668762, 0.32159993052482605, 0.43387776613235474, 0.2191587686538696...
func Authorize(c *gin.Context){ username := c.PostForm("username") password := c.PostForm("password") fmt.Println("Podaci: ", username, password) if (username=="admin" && password=="sifra7182"){ c.JSON(http.StatusOK, gin.H{"success": true, "msg": "now you are authorized", "username": adminUsername, "password":...
[ -0.7522779703140259, 0.40450069308280945, 0.8620449900627136, 1.223790168762207, 0.2367301732301712, -0.3328484892845154, -0.22391173243522644, -0.2935717701911926, -0.8316595554351807, 0.38583117723464966, 0.15793007612228394, 0.521844744682312, -0.5541873574256897, 0.5534614324569702, ...
func GenerateLabels(c *gin.Context) { content, err := translations.CreateTranslationLabels() if err != nil { c.JSON(400, gin.H{"success": false, "msg": "Unable to create labels", "errCode": 38}) return } c.JSON(http.StatusOK, gin.H{"success": true, "msg": "ok", "data": content}) }
[ -1.0137964487075806, 0.4642583727836609, 0.7131891250610352, -0.474930077791214, 0.6590195298194885, 1.145801067352295, -0.47212091088294983, -0.3054826557636261, -0.27560189366340637, 1.0486845970153809, -0.4733210802078247, -0.7240612506866455, -0.6623976230621338, 0.18602080643177032, ...
func DeleteTranslation(c *gin.Context){ id := c.Param("id") msg, err := translations.DeleteTranslation(id) if err != nil { c.JSON(http.StatusBadRequest, gin.H{"success": false, "msg": err.Error(), "errCode": 69}) return } c.JSON(http.StatusOK, gin.H{"success":true,"msg":msg, "data":"ok"}) }
[ -0.8477972745895386, 0.02357279509305954, 0.6517336964607239, 0.6041357517242432, 0.33016085624694824, -0.17909187078475952, 0.1821283996105194, 0.24731764197349548, 0.515382707118988, 0.4918252229690552, -0.8870899081230164, -0.3673332631587982, -0.2737993597984314, -0.13656842708587646, ...
func GetAllComments(c *gin.Context) { content, err := comments.GetAllComments() if err != nil { c.JSON(400, gin.H{"success": false, "msg": "Unable to fetch translations", "errCode": 38}) return } total :=len(content) c.Header("X-Total-Count", strconv.Itoa(total)) c.Header("Access-Control-Expose-Headers","X-...
[ 0.21617288887500763, -0.1152474656701088, 1.0527174472808838, 0.030944064259529114, 0.6049360632896423, -0.4002520740032196, -0.6835588216781616, -0.7523100972175598, -0.17088639736175537, 0.32801467180252075, -0.6811331510543823, 0.23347321152687073, 0.006857553496956825, 0.10428079217672...
func GetCommentsForArticle(c *gin.Context){ content, err := comments.GetCommentsForArticle(c.Param("articleId")) if err != nil { c.JSON(400, gin.H{"success": false, "msg": "Unable to retrieve articles", "errCode": 38}) return } c.JSON(http.StatusOK, gin.H{"success": true, "msg": "ok", "data": content}) }
[ -0.3597812056541443, -0.3135629892349243, 0.3916660249233246, -0.6708346605300903, 1.1818691492080688, -0.331455796957016, 0.23508712649345398, -1.238102674484253, -0.5334351658821106, 0.598432183265686, -0.0029827028047293425, -0.17580363154411316, 0.0013188893208280206, 0.412503957748413...
func Markdown(c *gin.Context){ slug := c.Param("slug") data, err := markdown.GetPost(slug) if err != nil { c.JSON(400, gin.H{"success": false, "msg": "We are not able to locate item with given parameter", "errCode": 40}) return } c.JSON(http.StatusOK, gin.H{"success": true, "msg": "ok", "data": data}) }
[ -0.3126082718372345, -0.008252878673374653, 0.9879971146583557, 0.6525790095329285, 0.3244378864765167, 0.5138380527496338, -0.14055849611759186, 0.7390621900558472, -0.38503265380859375, -0.2478817254304886, 0.6496937870979309, 0.3605791926383972, -0.07828085869550705, 0.14435561001300812...
func upload(c *gin.Context) { // single file file, _ := c.FormFile("file") fmt.Println(file.Filename) }
[ -0.20328718423843384, 0.4852626323699951, 0.6353954672813416, 0.09131550788879395, 1.069170355796814, 1.0018751621246338, 1.3343784809112549, 0.2906017601490021, -1.4804338216781616, -0.6334636807441711, 0.26341965794563293, -0.12230879813432693, -0.0631667971611023, 0.33334824442863464, ...
func query_param(query_data map[string][]string) *pagination.QueryParam { qp := new(pagination.QueryParam) if len(query_data["page"]) > 0 { page, err := strconv.Atoi(query_data["page"][0]) if err == nil { qp.Page = page } } if len(query_data["per_page"]) > 0 { page, err := strconv.Atoi(query_data["per_p...
[ -0.16477325558662415, -0.9700600504875183, 0.6155005693435669, -0.7845360040664673, -0.4530632495880127, 0.08177658915519714, -0.44181138277053833, 0.5710156559944153, -0.18246862292289734, 0.3407627046108246, 0.8419312834739685, 0.40725356340408325, 0.5111134648323059, -0.1888101547956466...
func UserFromReviewStatus(status k8s_api_v1beta1.TokenReviewStatus, adminGroups []string, adminUsernames []string) (*models.User, error) { if !status.Authenticated { return nil, fmt.Errorf("failed to authenticate the token, error in status: %s", status.Error) } user := &models.User{ Username: status.User.Usernam...
[ -0.42164939641952515, -0.42393043637275696, 0.3183911144733429, -0.14419981837272644, -0.7692589163780212, 0.09205729514360428, -0.6824660301208496, -0.770189106464386, 0.3955286741256714, 0.5392181873321533, 0.5041788220405579, 0.604271650314331, -0.16208945214748383, 0.4288233816623688, ...
func NewDbSyncer(node *slot.SyncNode, httpPort int, maxFullsyncs *semaphore.Weighted) *DbSyncer { ds := &DbSyncer{ id: node.Id, node: node, httpProfilePort: httpPort, enableResumeFromBreakPoint: conf.Options.ResumeFromBreakPoint, checkpointName: utils.Checkp...
[ 0.1534876525402069, 0.7719191908836365, 0.557780921459198, 0.10035580396652222, -0.780976414680481, -0.38121095299720764, -0.4626637399196625, -0.2644995152950287, -0.14312775433063507, -0.15513373911380768, -0.4433656334877014, 0.11195965111255646, -0.38328373432159424, 0.9291194677352905...
func (ds *DbSyncer) updateSlotTopology() { if conf.Options.SourceType != conf.RedisTypeCluster { return } slot, slotError := slotsupervisor.New(*ds.node).GetSlotState() if slotError != nil { log.Panicf("Unable to find a master for the current sync: %v", slotError) } ds.node = slot }
[ -0.4451269507408142, 0.7198777794837952, 0.23007403314113617, -0.6963027715682983, -0.5478771328926086, -0.41041046380996704, 0.4469084143638611, 0.638914942741394, -0.21966344118118286, 0.18313537538051605, 0.3350348174571991, 0.8171729445457458, 0.5966262817382812, 0.19547715783119202, ...
func NewStringEnum(name string, initialValue string, choices []string) *StringEnum { return newStringEnum(name, initialValue, choices, false) }
[ -1.2609591484069824, -0.8268389105796814, 0.26518282294273376, 0.27774521708488464, -0.8600295782089233, 0.008235916495323181, -0.42874372005462646, 0.028293512761592865, -0.035231370478868484, 0.013516374863684177, -0.9162368774414062, 0.46197080612182617, -0.5166164636611938, -0.15925899...
func NewCaseInsensitiveStringEnum(name string, initialValue string, choices []string) *StringEnum { return newStringEnum(name, initialValue, choices, true) }
[ -0.9173160195350647, -0.8437528014183044, 0.10970523208379745, -0.07701123505830765, -0.7907372117042542, 0.13775497674942017, -0.6988503932952881, 0.051526132971048355, -0.45611461997032166, 0.15065650641918182, -0.7219600081443787, -0.19494473934173584, -0.35717248916625977, -1.026517391...
func (s *StringEnum) Set(arg string) error { if _, ok := s.choices[s.choiceMapper(arg)]; !ok { msg := "%w (valid choices: %v" if s.caseInsensitive { msg += " [case insensitive]" } msg += ")" return fmt.Errorf(msg, ErrInvalidChoice, s.choiceNames) } s.val = arg return nil }
[ -1.1715039014816284, -0.5902919173240662, 0.4210608899593353, -1.4259058237075806, -0.3910291790962219, 0.5634844899177551, -0.19678089022636414, -0.044090837240219116, 0.22083888947963715, 0.7382261753082275, -0.4337826073169708, 0.3832798898220062, 0.25686711072921753, 0.4845197200775146...
func (s *StringEnum) String() string { return s.val }
[ -0.48122385144233704, -0.6884665489196777, 0.001002754084765911, -0.4839063584804535, -0.5171810984611511, 0.8444125652313232, 0.683810293674469, -0.7783513069152832, 0.6429977416992188, -0.40136849880218506, -0.4829168915748596, 0.9075863361358643, 0.13459041714668274, 0.03476595133543014...
func (s *StringEnum) Type() string { return "string" }
[ -0.8022235035896301, -0.5008017420768738, 0.1782095581293106, -0.5324140191078186, 0.5711349248886108, 0.9840062856674194, 0.5078772902488708, -0.8027805089950562, 1.2922706604003906, 0.11919444799423218, -0.647345781326294, 0.7998021841049194, -0.347637414932251, 0.17296500504016876, 0....
func GetUserBucketName(acc string) string { cfg := config.Get() return sha3.Encrypt(acc+"_"+cfg.BucketHashKey, 224) }
[ 0.3410017192363739, 0.3450358510017395, 0.5503947734832764, 1.2783290147781372, -1.109212875366211, 0.15628917515277863, 0.5283821225166321, -0.5820859670639038, 0.03819256275892258, 0.6080975532531738, -0.8192019462585449, 0.29467928409576416, 1.0808055400848389, -0.7207685112953186, 0....
func CreateUserBucket(acc string) error { bucketName := GetUserBucketName(acc) return client.MakeBucket( context.Background(), bucketName, minio.MakeBucketOptions{Region: "ap-east-1"}, ) }
[ 1.0943505764007568, 0.32456502318382263, 0.4360008239746094, 0.36482447385787964, -0.4372408986091614, 0.6484547257423401, 0.3679385483264923, -0.7745940685272217, 0.7321968078613281, -0.21521060168743134, -0.2735440135002136, 0.6407054662704468, 0.13027960062026978, -0.3173752427101135, ...
func NewSidecarInjectField() *SidecarInjectField { return new(SidecarInjectField) }
[ 0.3726058304309845, 0.37571850419044495, 0.006793794687837362, -0.6615498661994934, -0.5410823822021484, 0.8187350630760193, -0.21570870280265808, -0.3340676426887512, -0.821282684803009, -0.05682147294282913, -1.1164132356643677, -0.8446952104568481, -1.4718537330627441, -1.47627496719360...
func (s *SidecarInjectField) Inject(pod *corev1.Pod) { log.Info(fmt.Sprintf("inject pod : %s", pod.GenerateName)) // add initcontrainers to spec if pod.Spec.InitContainers != nil { pod.Spec.InitContainers = append(pod.Spec.InitContainers, s.Initcontainer) } else { pod.Spec.InitContainers = []corev1.Container{s....
[ -0.972710132598877, -0.5846419334411621, 1.061355710029602, -0.7496417164802551, 0.6478305459022522, 0.369991272687912, 0.16736198961734772, -0.33996397256851196, -0.6617816090583801, 0.21096175909042358, 0.021450120955705643, 0.06705989688634872, 0.13093578815460205, 0.11621209979057312, ...
func (s *SidecarInjectField) GetInjectStrategy(labels, annotation *map[string]string) { // set default value s.NeedInject = false // set NeedInject's value , if the pod has the label "swck-java-agent-injected=true", means need inject if *labels == nil { return } if strings.EqualFold((*labels)[ActiveInjectorLa...
[ -0.7579723596572876, 0.29071667790412903, 0.5743721723556519, -0.4955088198184967, 0.7751837372779846, 0.42568016052246094, -0.04136505350470543, -0.3238089084625244, -0.6057990789413452, 0.4956841468811035, 0.21114379167556763, 0.028073076158761978, -0.7475987672805786, -0.109752170741558...
func (s *SidecarInjectField) SidecarOverlayandGetValue(ao *AnnotationOverlay, annotation *map[string]string, a Annotation) (string, bool) { if _, ok := (*annotation)[a.Name]; ok { err := ao.SetOverlay(annotation, a) if err != nil { s.injectErrorAnnotation(annotation, err.Error()) return "", false } } re...
[ -0.2400280088186264, -0.28265759348869324, 0.7018961906433105, -0.47190940380096436, -0.8752142786979675, -0.0059393043629825115, -0.24921761453151703, -0.1090361699461937, 0.10112185031175613, 0.4421631991863251, -0.2933366298675537, -0.4056304097175598, 0.2692229151725769, -0.27402171492...
func (s *SidecarInjectField) setValue(config *string, ao *AnnotationOverlay, annotation *map[string]string, a Annotation) bool { if v, ok := s.SidecarOverlayandGetValue(ao, annotation, a); ok { if len(v) > 0 { *config = v return true } else if len(*config) > 0 { return true } else { *config = a.Defa...
[ -0.4995771646499634, 0.8315725922584534, 0.5831665992736816, 0.20406776666641235, 0.4273151457309723, 0.4127998650074005, -0.1652824431657791, 0.3426941931247711, -0.36707907915115356, 0.6338823437690735, -0.36456507444381714, -0.29842379689216614, -0.35692134499549866, 0.2260528802871704,...
func (s *SidecarInjectField) OverlaySidecar(a Annotations, ao *AnnotationOverlay, annotation *map[string]string) bool { s.Initcontainer.Command = make([]string, 1) s.Initcontainer.Args = make([]string, 2) limitsStr := "" requestStr := "" // every annotation map a pointer to the field of SidecarInjectField annoFi...
[ 0.06412142515182495, -0.1487734168767929, 0.9648659229278564, -0.5453212261199951, -0.17641279101371765, 0.35937610268592834, -0.09743477404117584, -0.5543577671051025, -0.5166525840759277, 0.003958875313401222, -0.22181399166584015, -0.4286670386791229, -0.5744019746780396, 0.517777442932...
func (s *SidecarInjectField) AgentOverlayandGetValue(ao *AnnotationOverlay, annotation *map[string]string, a Annotation) bool { if _, ok := (*annotation)[a.Name]; ok { err := ao.SetOverlay(annotation, a) if err != nil { s.injectErrorAnnotation(annotation, err.Error()) return false } } return true }
[ -0.21164342761039734, -0.8094563484191895, 0.646759569644928, -0.4834519326686859, -0.8507237434387207, -0.03326660022139549, -0.2783573865890503, -0.37161555886268616, 0.4211510121822357, 0.41126641631126404, 0.07035887986421585, -0.3711719810962677, 0.6381955146789551, -0.157415449619293...
func (s *SidecarInjectField) OverlayPlugins(annotation *map[string]string) { for k, v := range *annotation { if strings.HasPrefix(k, pluginsAnnotationPrefix) { configName := strings.TrimPrefix(k, pluginsAnnotationPrefix) config := strings.Join([]string{configName, v}, "=") // add to jvmAgentConfigStr if ...
[ -0.6255853772163391, -0.9022340774536133, 0.38223373889923096, -0.6380768418312073, -0.1911676675081253, -0.3598461449146271, -0.12548008561134338, -0.14567935466766357, 0.5648756623268127, 1.147444248199463, -0.2959703207015991, -0.12636591494083405, -0.21760019659996033, 0.21155089139938...
func (m *InstanceManager) Ensure(ctx context.Context, obj runtime.Object) (bool, error) { instance, err := convertInstance(obj) if err != nil { return false, err } region := scw.Region(instance.Spec.Region) // if instanceID is empty, we need to create the instance if instance.Spec.InstanceID == "" { return ...
[ -0.9836499691009521, 0.23418964445590973, 1.0657854080200195, -0.4573957026004791, 0.361257404088974, 0.7097832560539246, -0.5864751935005188, -0.6246767640113831, 0.3497639298439026, 0.6137381792068481, -0.9412966370582581, -0.07743804901838303, -1.020842432975769, 0.5317550301551819, 0...
func (m *InstanceManager) Delete(ctx context.Context, obj runtime.Object) (bool, error) { instance, err := convertInstance(obj) if err != nil { return false, err } region := scw.Region(instance.Spec.Region) resourceID := instance.Spec.InstanceID if resourceID == "" { return true, nil } _, err = m.API.Del...
[ -0.5388781428337097, -0.32559123635292053, 1.0460776090621948, -0.5185112357139587, -0.3876100182533264, 1.2696834802627563, 0.15353086590766907, 0.17144399881362915, 0.7088919281959534, 0.5919588208198547, -0.759253203868866, -0.31462350487709045, -1.3210251331329346, 0.5641193985939026, ...
func (m *InstanceManager) GetOwners(ctx context.Context, obj runtime.Object) ([]scaleway.Owner, error) { return nil, nil }
[ -0.5846580266952515, 0.18668998777866364, 0.42620301246643066, 0.6328049302101135, 0.49849385023117065, 0.5278962254524231, 0.23705053329467773, -1.319772720336914, 0.23211263120174408, -0.32144075632095337, -0.22839944064617157, 0.74652498960495, -0.7877852916717529, 0.6229283809661865, ...
func (cp *composer) Resolve(pinyinInput string, isSimp bool) (pinyinSylls []string, readings [][]string) { readings = make([][]string, 0) charReadings := cp.readingsTrad if isSimp { charReadings = cp.readingsSimp } pinyinInputLo := strings.ToLower(pinyinInput) loSylls := cp.pinyin.splitSyllables(pinyinInputLo) ...
[ -0.3753693699836731, -0.104255810379982, 0.8353992700576782, -0.25421223044395447, -0.24205443263053894, -0.511461079120636, 0.011795997619628906, 0.41281023621559143, 0.4979391396045685, -0.5495514273643494, 0.3400256335735321, -0.3591349720954895, -0.5617319941520691, 0.44256970286369324...
func (cp *composer) PinyinNumsToSurf(pyNums string) string { pyNumsLo := strings.ToLower(pyNums) loSylls := cp.pinyin.splitSyllables(pyNumsLo) var loSyllsPretty = make([]string, 0) for _, ls := range loSylls { pretty := cp.pinyin.numToSurf(ls) if pretty == "" { pretty = ls } loSyllsPretty = append(loSyll...
[ 0.07242638617753983, -0.2779150605201721, 0.634126603603363, -0.9377726912498474, 0.31673097610473633, 0.17151762545108795, 0.4227875769138336, -0.7476704716682434, 0.7103416323661804, -0.40402498841285706, -0.1881164014339447, 0.39813336730003357, 0.2413044273853302, 0.20197780430316925, ...
func (av AttributeConnectionOp) String() string { switch av { case AttributeConnectionOpClose: return "close" case AttributeConnectionOpOpen: return "open" } return "" }
[ -0.10637575387954712, -1.5375895500183105, 0.35093221068382263, -0.22033587098121643, -1.0010889768600464, 0.8665112853050232, 0.47636374831199646, -0.7418903112411499, 0.03387138247489929, 1.274322509765625, 0.8445937633514404, -0.27243590354919434, 0.5126534700393677, -0.9826366901397705...
func (av AttributeConnectionType) String() string { switch av { case AttributeConnectionTypeClient: return "client" case AttributeConnectionTypeFabric: return "fabric" case AttributeConnectionTypeHeartbeat: return "heartbeat" } return "" }
[ -0.1268504559993744, -1.0813090801239014, 0.07478219270706177, -0.33475059270858765, -0.0589534156024456, 0.683757483959198, 0.12537072598934174, -1.3350077867507935, 0.16264887154102325, 1.1635748147964478, 0.7457476258277893, 0.29372844099998474, 0.502778947353363, 0.3445296287536621, ...
func (av AttributeIndexType) String() string { switch av { case AttributeIndexTypePrimary: return "primary" case AttributeIndexTypeSecondary: return "secondary" } return "" }
[ -0.13993142545223236, -1.0183913707733154, 0.16847829520702362, -0.28597694635391235, -0.25408023595809937, 0.7348111271858215, 0.6354954838752747, -1.0600512027740479, 0.10068176686763763, 0.3544594943523407, -0.36968907713890076, 0.9895774722099304, 0.24037161469459534, -0.29249057173728...
func (av AttributeNamespaceComponent) String() string { switch av { case AttributeNamespaceComponentData: return "data" case AttributeNamespaceComponentIndex: return "index" case AttributeNamespaceComponentSetIndex: return "set_index" case AttributeNamespaceComponentSecondaryIndex: return "secondary_index"...
[ 0.5241370797157288, -1.3218222856521606, -0.1082005649805069, -1.252676248550415, -0.6457299590110779, 0.3099544048309326, 0.176228329539299, -1.7266381978988647, 0.9449458122253418, 0.15958695113658905, 0.060338638722896576, 0.7827292680740356, 0.95347660779953, -0.19427700340747833, 0....
func (av AttributeQueryResult) String() string { switch av { case AttributeQueryResultAbort: return "abort" case AttributeQueryResultComplete: return "complete" case AttributeQueryResultError: return "error" case AttributeQueryResultTimeout: return "timeout" } return "" }
[ 0.14913637936115265, -1.0462045669555664, 0.1516059935092926, -0.5244120955467224, -1.1678216457366943, 0.7324588298797607, 0.2797921895980835, -1.365441918373108, -0.038632869720458984, 0.6650779247283936, 0.22360225021839142, 0.05399880185723305, 0.5148268342018127, -0.42222288250923157,...
func (av AttributeQueryType) String() string { switch av { case AttributeQueryTypeAggregation: return "aggregation" case AttributeQueryTypeBasic: return "basic" case AttributeQueryTypeShort: return "short" case AttributeQueryTypeLongBasic: return "long_basic" case AttributeQueryTypeShortBasic: return "s...
[ 0.2809262275695801, -0.6968685984611511, -0.09692937135696411, -0.7064208984375, -0.40141981840133667, 1.113266110420227, 0.6100232005119324, -1.6154131889343262, 0.128564715385437, 0.659977376461029, 0.41054269671440125, 0.9502396583557129, 0.6158083081245422, -0.06670783460140228, -0.1...