text
stringlengths
11
6.3k
embedding
listlengths
768
768
func getSolrVolumeMounts(cr *wp.WebProject) []corev1.VolumeMount { volumeMounts := []corev1.VolumeMount{} return volumeMounts }
[ 0.6541708707809448, -1.076845645904541, 0.31572049856185913, 0.8204126954078674, 0.4050237536430359, -0.10147267580032349, -0.4763721823692322, -0.8253543972969055, 0.6550568342208862, -0.056733615696430206, -0.20085470378398895, 0.646843671798706, -0.34932994842529297, 0.1504088044166565,...
func getElasticSearchVolumeMounts(cr *wp.WebProject) []corev1.VolumeMount { volumeMounts := []corev1.VolumeMount{ { Name: "search-data", MountPath: "/usr/share/elasticsearch/data", }, } return volumeMounts }
[ -0.035950541496276855, 0.05334725230932236, 0.4149837791919708, 0.6726565957069397, 1.6394835710525513, 0.25398772954940796, -0.7950968742370605, -0.5033736824989319, 0.2843617796897888, 0.5042077898979187, -0.3096601366996765, 0.8614209294319153, 0.08682456612586975, -0.002509671030566096...
func getDatabaseSidecarVolumeMounts(cr *wp.WebProject) []corev1.VolumeMount { volumeMounts := []corev1.VolumeMount{ { Name: "data-storage", MountPath: cr.Spec.DatabaseSidecar.DatabaseStoreMountPath, }, } if cr.Spec.DatabaseSidecar.CronJob.Enabled { volumeMounts = append(volumeMounts, corev1.VolumeM...
[ 0.7146684527397156, 0.3513302505016327, 0.407341331243515, 0.38129207491874695, 0.49535319209098816, -0.06243157014250755, -0.9525502920150757, -0.14383424818515778, -0.12397833168506622, 0.11293119937181473, -0.7571448683738708, 0.9739620089530945, -0.42449310421943665, 0.6677293181419373...
func getInitContainerVolumeMounts(cr *wp.WebProject) []corev1.VolumeMount { volumeMounts := []corev1.VolumeMount{ { Name: "webroot", MountPath: "/data", }, { Name: "files-storage", MountPath: "/cmsfiles", }, { Name: "aws-credentials", MountPath: "/aws", }, { Name: ...
[ 0.5053765773773193, -0.6976411938667297, 0.6402577757835388, 0.549626886844635, 1.1409109830856323, -0.15094029903411865, -0.3227863609790802, -1.0737075805664062, -0.013437365181744099, -0.3471199572086334, -0.7220053672790527, 1.1502015590667725, 0.4129545986652374, 0.6832505464553833, ...
func GetAPIDoc(_ GetAPIDocRequest) (GetAPIDocResponse, *errors.ODSError) { file, err := ioutil.ReadFile(docAPIFile) if err != nil { return GetAPIDocResponse{}, errors.NewFromError(http.StatusInternalServerError, err, "unable to read doc api file") } return file, nil }
[ -0.20775268971920013, -0.2682853639125824, 0.8572551608085632, -0.2749956548213959, -0.3032184839248657, 0.39812636375427246, 1.140324592590332, -0.7437376379966736, -0.21658097207546234, -0.3775668740272522, 0.8723641633987427, 0.3318684697151184, 0.08668168634176254, -0.9268267154693604,...
func (k *KubernetesTestCreator) LoadSimpleResponsesWithSameAction(responeObjects ...runtime.Object) { k.testClient = testclient.NewSimpleFake(responeObjects...) }
[ 0.2803139388561249, -1.3207777738571167, 0.5957188606262207, -0.3159104287624359, 0.47506266832351685, -0.15403780341148376, 1.1278843879699707, -0.9914605617523193, 1.5923550128936768, 0.09466804563999176, -1.4412662982940674, -0.39057457447052, -0.9656238555908203, -0.3597891330718994, ...
func (k *KubernetesTestCreator) LoadAdvancedResponses(params []KubernetesTestAdvancedParams) { fakeClient := &testclient.Fake{} for _, param := range params { o := testclient.NewObjects(api.Scheme, api.Codecs.UniversalDecoder()) for _, obj := range param.ResponceObjects { if err := o.Add(obj); err != nil { ...
[ 0.2786044478416443, -1.0150954723358154, 0.6995791792869568, -1.34407639503479, 0.3823690414428711, 0.08253606408834457, -0.09260633587837219, -0.7648776769638062, 0.543139636516571, 0.14781782031059265, -0.0823855996131897, -0.24057786166667938, -0.8448969125747681, 0.6527633666992188, ...
func NewGossiperFromFile(ctx context.Context, filename string, hc *http.Client) (*Gossiper, error) { cfgText, err := ioutil.ReadFile(filename) if err != nil { return nil, err } var cfgProto configpb.GossipConfig if err := proto.UnmarshalText(string(cfgText), &cfgProto); err != nil { return nil, fmt.Errorf("%s...
[ 0.31433767080307007, -0.2751044034957886, 0.3446497321128845, 0.42219895124435425, -0.7651404738426208, 0.7877897024154663, 0.1313960999250412, -0.06369754672050476, -1.3253785371780396, 0.48022887110710144, -0.774608314037323, 0.15170030295848846, -1.1389650106430054, 0.7749314904212952, ...
func NewGossiper(ctx context.Context, cfg *configpb.GossipConfig, hc *http.Client) (*Gossiper, error) { if cfg.DestLog == nil { return nil, errors.New("no dest log config found") } if cfg.SourceLog == nil || len(cfg.SourceLog) == 0 { return nil, errors.New("no source log config found") } if cfg.PrivateKey == n...
[ -0.26936301589012146, -0.13515248894691467, 0.8294944167137146, 0.3518666923046112, -0.7193207144737244, -0.2868562638759613, -0.3192867338657379, -0.2516469359397888, -0.909773588180542, 0.908070981502533, -0.605413556098938, -0.24456307291984558, -0.7045698761940002, 1.0660820007324219, ...
func (c *Client) GetComic(ctx context.Context, id int) (*Comic, error) { resp, err := c.get(ctx, &Params{typ: maco.TypeComics, id: &id}) if err != nil { return nil, err } var data struct { Data struct { Results []*Comic } } err = json.Unmarshal(resp, &data) if err != nil { return nil, err } if le...
[ -0.15277235209941864, 0.11614899337291718, 0.6095303297042847, 0.2435423880815506, 0.4918341040611267, -0.7899448871612549, -0.6257888078689575, -1.3505574464797974, -0.31902509927749634, -0.21129858493804932, -0.10963372141122818, 0.5686917901039124, -0.6389023065567017, -0.23537676036357...
func (c *Client) GetComics(ctx context.Context, params *Params) ([]*Comic, error) { if params == nil { return nil, errors.New("params is nil") } params.typ = maco.TypeComics return c.getComics(ctx, params) }
[ -0.5881550312042236, 0.5242239236831665, 0.15814322233200073, 0.6611067056655884, 1.4269273281097412, 0.011396977119147778, 0.025574686005711555, -1.5069680213928223, -0.06279617547988892, -0.7254804968833923, 0.2744651734828949, 0.8533013463020325, -0.8839791417121887, 0.46843957901000977...
func (c *Client) GetCharacterComics(ctx context.Context, id int, params *Params) ([]*Comic, error) { if params == nil { return nil, errors.New("params is nil") } params.typ = maco.TypeCharacters params.id = &id params.subtype = maco.TypeComics return c.getComics(ctx, params) }
[ -0.6587823629379272, -0.47342586517333984, 0.030129728838801384, -0.026278236880898476, 0.5224837064743042, 0.005472861230373383, -0.49379032850265503, -1.181057095527649, -0.29652586579322815, -0.6476939916610718, -0.7454695105552673, 1.1420530080795288, -1.0484901666641235, 0.02162599749...
func (c *Client) GetCreatorComics(ctx context.Context, id int, params *Params) ([]*Comic, error) { if params == nil { return nil, errors.New("params is nil") } params.typ = maco.TypeCreators params.id = &id params.subtype = maco.TypeComics return c.getComics(ctx, params) }
[ -0.9035812020301819, 0.07265254855155945, 0.15377438068389893, 0.49697649478912354, 0.7511935830116272, 0.2447131723165512, -0.22160445153713226, -1.7321492433547974, -0.9501185417175293, -0.8480452299118042, -0.32140904664993286, 0.9239693880081177, -0.7649034857749939, 0.6270579099655151...
func (c *Client) GetEventComics(ctx context.Context, id int, params *Params) ([]*Comic, error) { if params == nil { return nil, errors.New("params is nil") } params.typ = maco.TypeEvents params.id = &id params.subtype = maco.TypeComics return c.getComics(ctx, params) }
[ -0.0582558698952198, 0.018663281574845314, 0.4400355815887451, 0.16139760613441467, 0.8267239332199097, -0.4059692621231079, -0.06597205251455307, -1.5120292901992798, -0.09962824732065201, -0.4267350137233734, -0.3510376513004303, 0.7423006892204285, -0.5540754795074463, 0.192324414849281...
func (c *Client) GetSeriesComics(ctx context.Context, id int, params *Params) ([]*Comic, error) { if params == nil { return nil, errors.New("params is nil") } params.typ = maco.TypeSeries params.id = &id params.subtype = maco.TypeComics return c.getComics(ctx, params) }
[ -0.3635113835334778, -0.13457533717155457, 0.3054521977901459, 0.3276112973690033, 0.6476131081581116, -0.2889263927936554, -0.22355590760707855, -1.6508164405822754, -0.21683922410011292, -0.644138753414154, -0.4206726849079132, 1.5156916379928589, -0.5704308748245239, -0.1605790406465530...
func (c *Client) GetStoryComics(ctx context.Context, id int, params *Params) ([]*Comic, error) { if params == nil { return nil, errors.New("params is nil") } params.typ = maco.TypeStories params.id = &id params.subtype = maco.TypeComics return c.getComics(ctx, params) }
[ -0.36273854970932007, -0.02444382756948471, 0.31921207904815674, 0.9216887950897217, 0.7469587326049805, -0.444118857383728, -0.054407890886068344, -1.6542770862579346, -0.5030658841133118, -0.42504215240478516, -0.40378737449645996, 0.9728696942329407, -0.5163402557373047, 0.1341548264026...
func (c *Client) getComics(ctx context.Context, params *Params) ([]*Comic, error) { resp, err := c.get(ctx, params) if err != nil { return nil, err } var data struct { Data struct { Results []*Comic } } err = json.Unmarshal(resp, &data) if err != nil { return nil, err } return data.Data.Results, ...
[ -0.8204255700111389, 0.6223962306976318, 0.37998393177986145, -0.20240381360054016, 1.0315568447113037, -0.24645830690860748, -0.6445498466491699, -1.5838792324066162, -0.2917327284812927, -0.522294819355011, -0.011943194083869457, 0.4058469235897064, -0.5163774490356445, 0.238108471035957...
func (a *App) ZipBytes() ([]byte, error) { r, err := a.Zip() if err != nil { return nil, err } b, err := ioutil.ReadAll(r) if err != nil { return nil, err } return b, nil }
[ -0.12769533693790436, -0.5796266198158264, 0.34488993883132935, 0.09650857746601105, -0.3297012448310852, -0.15271346271038055, -0.44286438822746277, -0.22997023165225983, 0.9369879364967346, 0.504000186920166, -0.025005312636494637, 0.2376680076122284, -0.9444315433502197, 0.4158483147621...
func (a *App) BuildArtifact() error { tmpdir, err := ioutil.TempDir("", "nestor") scriptDir := path.Join(tmpdir, "script") a.ArtifactPath = tmpdir if err != nil { return nil } walkFunc := func(p string, info os.FileInfo, err error) error { p = strings.TrimPrefix(p, a.SourcePath()) if (p == "/.git") && i...
[ -0.24232137203216553, -0.7344872355461121, 0.757323682308197, -0.07456312328577042, 0.10260093957185745, -0.2705826163291931, 1.403466820716858, -0.3636126220226288, 0.7475495338439941, 0.32038044929504395, -0.10711701959371567, 0.8196155428886414, 0.8324156999588013, -0.42269185185432434,...
func (sc *SoundCloud) streamUrl(t string) *url.URL { v := url.Values{} v.Add("client_id", sc.Config.ClientID()) return &url.URL{ Scheme: sc.Config.APIScheme(), Host: sc.Config.APIHost(), Path: fmt.Sprintf("/tracks/%s/stream", t), RawQuery: v.Encode(), } }
[ 0.5831919312477112, 0.4898433983325958, 0.5307037830352783, 0.09210558235645294, 0.10538656264543533, 0.8432134985923767, -0.1906491070985794, -0.6766257882118225, -0.4183445870876312, 0.4116225242614746, -0.3927810788154602, 0.8349928259849548, 0.007506467401981354, 0.34602683782577515, ...
func (sc *SoundCloud) Stream(track string) (io.ReadCloser, error) { // Get the HTTP Stream rsp, err := http.Get(sc.streamUrl(track).String()) if err != nil { return nil, err } // Createa http stream buffer buff := buffer.HTTPBuffer(rsp) go buff.Buffer() // Start buffering scs := &SoundCloudStream{ buffer: ...
[ -0.20809227228164673, 0.4369107484817505, 0.4366472065448761, 0.055598389357328415, -0.7523639798164368, 0.9359496235847473, -0.5049594044685364, -0.6263865828514099, 0.2483292669057846, -1.04525887966156, 0.7550237774848938, 0.9401284456253052, -0.5538743734359741, 0.6650171875953674, 0...
func New(c Configurer) *SoundCloud { return &SoundCloud{ Config: c, } }
[ 0.8478763103485107, -0.1962464451789856, 0.11312684416770935, 0.6902533173561096, -0.7687658071517944, -0.44079452753067017, -0.16935943067073822, 0.03947499394416809, 0.4398103952407837, -0.5990214347839355, -0.550751268863678, -0.5433833003044128, 0.5457255840301514, 0.8834145665168762, ...
func (tac Tac) EvalDataFlowSets() { for k, blk := range tac { for _, stmt := range blk.Stmts { switch stmt.Op { case DECLInt, DECLSTR: tac[k].dataflow.Gen[stmt.Dst] = true case EQ: tac[k].dataflow.Kill[stmt.Dst] = true } } } tac.EvalTransferFuncs() }
[ -0.10173307359218597, -0.4350455403327942, 0.40134289860725403, -0.9384463429450989, -0.18163546919822693, 0.08205750584602356, 0.37924548983573914, 0.16745033860206604, -0.34244924783706665, 0.04731394350528717, 0.03647218272089958, 0.28040051460266113, 0.47468531131744385, 0.185154870152...
func ForKind(kind schema.GroupVersionKind) interface{} { switch kind { // Group=aci.fabricattachment, Version=v1 case v1.SchemeGroupVersion.WithKind("AciNodeLinkAdjacency"): return &acifabricattachmentv1.AciNodeLinkAdjacencyApplyConfiguration{} case v1.SchemeGroupVersion.WithKind("EncapRef"): return &acifabrica...
[ 0.2789117693901062, -0.9780951738357544, 0.47143828868865967, -0.41791796684265137, -0.6734253168106079, 0.17776237428188324, 0.7749906182289124, -0.582788348197937, 0.261178582906723, 0.19582466781139374, 0.7090824246406555, 1.1853903532028198, -0.39725354313850403, 0.14285480976104736, ...
func Resolve(c *config.Map, getProvider secrets.GetProviderFunction) config.Map { channel := make(chan config.Item) for k, v := range *c { go func(key, value string, c chan config.Item) { provider := getProvider(value) secret, err := provider.GetSecret(value) if err != nil { fmt.Fprintln(os.Stderr, er...
[ -1.0372295379638672, 0.23411253094673157, 0.6008601784706116, 0.007742649409919977, 0.8221949934959412, -0.9872378706932068, -0.9908660650253296, 0.1940980851650238, -0.6569684743881226, 0.3836444318294525, -0.9273263216018677, 0.13648006319999695, -0.04825982078909874, 0.31996268033981323...
func (ms *multiSorter) Sort(usage []*Process) { ms.usage = usage sort.Sort(ms) }
[ -0.4943631887435913, -0.17105598747730255, 0.2888907790184021, 0.5073522925376892, -0.08188081532716751, 0.1289413571357727, -0.18268078565597534, -0.4991360902786255, -0.10798241943120956, -0.37923046946525574, 0.35281074047088623, 0.6270455718040466, -0.3039855659008026, 1.99428284168243...
func OrderedBy(less ...lessFunc) *multiSorter { return &multiSorter{ less: less, } }
[ 0.419431209564209, 0.11700408160686493, 0.4494883120059967, 0.6545339226722717, -0.663755476474762, -0.2362813502550125, -0.326316237449646, -0.5920436382293701, -0.6629050374031067, -1.2775546312332153, -0.47610893845558167, -0.7899335622787476, -0.32981523871421814, 0.8410428762435913, ...
func (ms *multiSorter) Len() int { return len(ms.usage) }
[ -0.25256767868995667, 0.2955058217048645, 0.1917552500963211, -0.3207656741142273, -0.04477046802639961, -0.6483842730522156, 0.8717689514160156, 0.8462468385696411, 0.1005505919456482, -0.0792313814163208, -0.30545735359191895, 0.08315889537334442, 0.19382035732269287, 0.9057034254074097,...
func (ms *multiSorter) Swap(i, j int) { ms.usage[i], ms.usage[j] = ms.usage[j], ms.usage[i] }
[ -1.5535088777542114, 0.06538188457489014, 0.36756235361099243, -0.333770751953125, -0.07334385067224503, -0.04040165990591049, -0.15524879097938538, 0.11988089233636856, -0.27730730175971985, 0.21004825830459595, -0.030072180554270744, 0.5896238088607788, 0.11717580258846283, 0.13768601417...
func (ms multiSorter) Less(i, j int) bool { p, q := ms.usage[i], ms.usage[j] // Try all but the last comparison. var k int for k = 0; k < len(ms.less)-1; k++ { less := ms.less[k] switch { case less(p, q): // p < q, so we have a decision. return true case less(q, p): // p > q, so we have a decision....
[ -0.0706976056098938, -0.08575291931629181, 0.6661058664321899, -0.39237847924232483, -0.5562002658843994, -0.07151231914758682, -0.6120347380638123, -1.0869228839874268, -0.006884067319333553, -0.33916357159614563, -0.47555214166641235, -0.2703308165073395, -0.5906358957290649, 0.819974303...
func Top(ps []*Process, res string) error { pidFunc := func(c1, c2 *Process) bool { return c1.Pid < c2.Pid } cpuFunc := func(c1, c2 *Process) bool { return c1.Cpup > c2.Cpup } memFunc := func(c1, c2 *Process) bool { return c1.Memp > c2.Memp } switch res { case "cpu": OrderedBy(cpuFunc, pidFunc).Sort(ps)...
[ -0.32778146862983704, -0.5616714954376221, 0.7613255977630615, -0.665366530418396, -0.19726115465164185, -0.35429519414901733, -0.5697380304336548, -0.504008948802948, -0.6366861462593079, 0.31758037209510803, 0.6346552968025208, -0.05811021476984024, -0.3040362596511841, -0.63558429479599...
func MemTop() error { const tformat = "%.3f\t|%v\t|%v\t|%.3f\t|%v\t|%.3f\t|%v\t|%v\t|%v\t|%v\t|%v\t\n" const format = "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t\n" tw := new(tabwriter.Writer).Init(os.Stdout, 0, 4, 1, ' ', 0) ps, err := GetProcessStats() if err != nil { return err } if err := Top(ps, "ram")...
[ 0.06679487228393555, -0.6479460597038269, 1.306922197341919, -1.0658293962478638, -0.09702298790216446, 0.041327863931655884, -0.27131175994873047, -0.7921336889266968, -0.6080021858215332, 0.7697479724884033, -0.18142685294151306, 0.3755951523780823, 0.4414421319961548, -0.069777920842170...
func CPUTop() error { const tformat = "%.3f\t|%.3f\t|%v\t|%.3f\t|%v\t|%v\t|%v\t|%v\t|%v\t|%v\t|%v\t\n" const format = "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t\n" tw := new(tabwriter.Writer).Init(os.Stdout, 0, 4, 1, ' ', 0) ps, err := GetProcessStats() if err != nil { return err } Top(ps, "cpu") fmt.Fpr...
[ 0.22103814780712128, -0.0928245335817337, 1.1323312520980835, -0.5101484656333923, -0.0777885764837265, 0.06843280047178268, 0.0331600196659565, -0.7696604132652283, -1.1448543071746826, 0.6178926825523376, 0.005526666529476643, 0.41058793663978577, 0.119008369743824, 0.41056689620018005, ...
func NewPolicyStore(ctx *pulumi.Context, name string, args *PolicyStoreArgs, opts ...pulumi.ResourceOption) (*PolicyStore, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ValidationSettings == nil { return nil, errors.New("invalid value for required argument...
[ -0.04934053122997284, 0.3731364905834198, 0.10327699780464172, -0.28755664825439453, -0.7484244108200073, 1.0384266376495361, -1.4746047258377075, 0.10089115053415298, 0.5795638561248779, -0.0844377651810646, -0.20259757339954376, -0.30039048194885254, -0.9553706645965576, -0.4005262851715...
func GetPolicyStore(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PolicyStoreState, opts ...pulumi.ResourceOption) (*PolicyStore, error) { var resource PolicyStore err := ctx.ReadResource("aws-native:verifiedpermissions:PolicyStore", name, id, state, &resource, opts...) if err != nil { return nil, e...
[ 0.6590162515640259, 0.17293724417686462, 0.09322541952133179, -0.31542596220970154, -0.5353292226791382, 0.6551365852355957, -1.4588477611541748, -0.2866266369819641, 1.589029312133789, -0.3780384659767151, 0.550416886806488, 0.6553586721420288, -0.7321939468383789, -1.7458486557006836, ...
func NewInterpreter(job *Job) *Interpreter { //if no custom settings use default ones if job == nil || job.RosewoodSettings == nil { panic("rosewood.NewInterpreter: job and job.RosewoodSettings must not be null") } return &Interpreter{job, job.RosewoodSettings, ""} }
[ 0.09343483299016953, -0.5289850831031799, 0.3151934742927551, -0.4897989332675934, -1.7777602672576904, -0.31898748874664307, -0.5927086472511292, 0.47981664538383484, 0.11418990045785904, -0.6794390082359314, -0.345332533121109, 0.06015271320939064, -1.2248841524124146, 0.9455336332321167...
func (ri *Interpreter) Parse(r io.ReadSeeker, scriptIdentifer string) (*parser.File, error) { file := parser.NewFile(scriptIdentifer, ri.job) if err := file.Parse(r); err != nil { return nil, err } if ri.job.RunOptions.Debug == ui.DebugAll { ri.job.UI.Logf("***Parsing finished: %d table(s) found\n", file.TableC...
[ 0.18263313174247742, 0.046830493956804276, 0.5626662969589233, 0.11982602626085281, -0.44885683059692383, -0.2794683873653412, 0.40085476636886597, -0.602649986743927, -1.0498604774475098, -0.4698769152164459, 0.36025580763816833, -0.09577304869890213, -0.011155067943036556, 0.700513720512...
func (ri *Interpreter) Render(w io.Writer, file *parser.File, hr table.Renderer) error { var err error bw := bufio.NewWriter(w) //buffer the writer to speed up writing tables := file.Tables() _ = hr.SetWriter(bw) if err = hr.SetSettings(ri.settings); err != nil { return fmt.Errorf("failed to render table: %s", e...
[ -0.2469099462032318, 0.2543944716453552, 0.7428933382034302, 0.4047406017780304, -0.4850684404373169, -0.12652654945850372, 0.576367199420929, 0.1622435450553894, -1.6245615482330322, 0.4429858326911926, 0.3358885645866394, -0.6838847994804382, -0.5556296706199646, 0.7138480544090271, -0...
func (ri *Interpreter) ScriptIdentifer() string { return ri.scriptIdentifer }
[ -0.005410019773989916, -0.9975901246070862, 0.20750775933265686, -0.38144975900650024, -0.33520546555519104, 0.6600740551948547, 0.4733893573284149, -0.14653389155864716, 0.7200927734375, -0.1242026686668396, -0.7224514484405518, 0.2679324150085449, -0.5529438853263855, 0.04985599964857101...
func (ri *Interpreter) SetScriptIdentifer(scriptIdentifer string) *Interpreter { ri.scriptIdentifer = scriptIdentifer return ri }
[ -0.25053930282592773, -0.5627888441085815, 0.1291445940732956, -0.18490947782993317, -0.276295930147171, 0.3761880099773407, 0.616912305355072, 0.4267958700656891, 0.9744411110877991, -0.039102766662836075, -1.6846964359283447, 0.22055809199810028, -0.3859880268573761, 0.5831030607223511, ...
func (ri *Interpreter) Settings() *types.RosewoodSettings { return ri.settings }
[ -0.0687791258096695, 0.6501008868217468, 0.06964782625436783, -0.7172285914421082, 0.17896345257759094, -0.18755486607551575, 0.916294276714325, -0.7218693494796753, 0.08472250401973724, -0.4304580092430115, 0.000016954812963376753, 0.0001821463811211288, -1.533064603805542, -0.49502325057...
func Append(err error, errs ...error) error { errs = append([]error{err}, errs...) var r errand for _, e := range errs { if e != nil { switch t := e.(type) { // if e is an errand, take only its items case errand: r = append(r, t...) default: r = append(r, e) } } } if len(r) == 0 { /...
[ -0.3308948874473572, -0.28706660866737366, 0.6643799543380737, 0.36697518825531006, 0.09014846384525299, 0.1257728636264801, -0.6163125038146973, 0.5897215604782104, 1.2357769012451172, -0.0321519710123539, 0.5026313662528992, 0.6308847069740295, -0.45265159010887146, 1.042009949684143, ...
func (t *StoriesTogglePinnedRequest) FillFrom(from interface { GetID() (value []int) GetPinned() (value bool) }) { t.ID = from.GetID() t.Pinned = from.GetPinned() }
[ -0.5907111167907715, -0.3213519752025604, 0.4941069483757019, 0.1078626811504364, 0.24184072017669678, 0.91983962059021, -0.07782674580812454, -0.14002150297164917, 0.5808561444282532, -0.00969303585588932, 0.08755522966384888, 0.08887804299592972, 0.2541782557964325, 0.48682701587677, 0...
func (*StoriesTogglePinnedRequest) TypeID() uint32 { return StoriesTogglePinnedRequestTypeID }
[ -0.2576732635498047, -0.2527131140232086, 0.3454619348049164, 0.39181095361709595, 0.4553404748439789, 1.348660945892334, 0.6506109833717346, 0.11224871128797531, 0.8264034390449524, 0.1817941665649414, -0.19025146961212158, 0.4204671084880829, -1.4446280002593994, 0.6362524032592773, 0....
func (*StoriesTogglePinnedRequest) TypeName() string { return "stories.togglePinned" }
[ -0.8581224679946899, -0.3893624246120453, 0.33696097135543823, -0.06033940985798836, 0.2585955560207367, 0.857746422290802, 0.5035058856010437, 0.40492263436317444, 0.31044408679008484, 0.35526376962661743, -0.12676940858364105, -0.2825675904750824, -0.7437078952789307, -0.2034910768270492...
func (t *StoriesTogglePinnedRequest) TypeInfo() tdp.Type { typ := tdp.Type{ Name: "stories.togglePinned", ID: StoriesTogglePinnedRequestTypeID, } if t == nil { typ.Null = true return typ } typ.Fields = []tdp.Field{ { Name: "ID", SchemaName: "id", }, { Name: "Pinned", SchemaN...
[ -0.2719171345233917, -0.20232133567333221, 0.35494521260261536, -1.0892703533172607, 0.5165497660636902, 0.8582749962806702, 0.5601841807365417, -0.34660330414772034, -0.28512683510780334, 0.6206457018852234, -0.41825470328330994, -0.6016373038291931, -0.7285358309745789, 0.020658753812313...
func (t *StoriesTogglePinnedRequest) GetID() (value []int) { if t == nil { return } return t.ID }
[ -0.19538995623588562, 0.15563522279262543, 0.24435636401176453, 0.8597273826599121, 1.5036256313323975, 1.113856315612793, 0.30106112360954285, -0.04340169578790665, 1.084273099899292, -0.04776806756854057, -0.5042824745178223, -0.6251355409622192, -0.7405354380607605, 1.0020374059677124, ...
func (t *StoriesTogglePinnedRequest) GetPinned() (value bool) { if t == nil { return } return t.Pinned }
[ -0.264649897813797, 0.311364084482193, 0.33186453580856323, 0.4413304626941681, 1.1045236587524414, 0.816001296043396, 0.38375985622406006, 0.3937951624393463, 0.18074709177017212, -0.40294355154037476, -0.30653226375579834, -0.12183469533920288, -0.6902614831924438, 0.1591106653213501, ...
func (c *Client) StoriesTogglePinned(ctx context.Context, request *StoriesTogglePinnedRequest) ([]int, error) { var result IntVector if err := c.rpc.Invoke(ctx, request, &result); err != nil { return nil, err } return []int(result.Elems), nil }
[ -1.2484464645385742, 0.6823177337646484, 0.5484694242477417, 0.12521979212760925, 1.0577929019927979, 0.4040960669517517, 0.5637297034263611, 0.2720029652118683, 0.2984733581542969, 0.2511758506298065, -0.4368456304073334, 0.5888224244117737, -1.178325891494751, 0.22328737378120422, 0.82...
func (driver *linodeVolumeDriver) labelToMountPoint(volumeLabel string) string { return path.Join(driver.mountRoot, volumeLabel) }
[ 0.34462592005729675, -2.1296215057373047, 0.6334991455078125, -0.2309306412935257, 0.5234423875808716, 0.9302055239677429, -0.759181022644043, -0.496861070394516, 0.2538658082485199, 1.579275131225586, 0.5984801650047302, -0.28526541590690613, -0.7395902872085571, -0.5718322992324829, -0...
func (driver *linodeVolumeDriver) findVolumeByLabel(volumeLabel string) (*linodego.Volume, error) { var jsonFilter []byte var err error var linVols []linodego.Volume api, err := driver.linodeAPI() if err != nil { return nil, err } if jsonFilter, err = json.Marshal(map[string]string{"label": volumeLabel, "reg...
[ -0.235229954123497, -1.1836085319519043, 0.6048544049263, -0.43271180987358093, 0.6520304679870605, -0.02429676428437233, -0.5805614590644836, -0.8355849385261536, -0.4229966402053833, 1.3412225246429443, 0.10895268619060516, 0.23299981653690338, -1.1842854022979736, 0.1983284205198288, ...
func (driver *linodeVolumeDriver) ensureVolumeAttached(volumeID int) error { // TODO: validate whether a volume is in use in a local container api, err := driver.linodeAPI() if err != nil { return err } // Wait for detachment if already detaching if err := waitForVolumeNotBusy(api, volumeID); err != nil { r...
[ -0.19086605310440063, -0.6480042338371277, 0.8297655582427979, -0.6068342924118042, 0.7828912138938904, -0.05125898867845535, -0.5997278690338135, -0.5217901468276978, 1.0752328634262085, 0.43940162658691406, 0.43219274282455444, 0.703951358795166, -0.34143131971359253, 0.5110934376716614,...
func waitForVolumeNotBusy(api *linodego.Client, volumeID int) error { vol, err := api.GetVolume(context.Background(), volumeID) if err != nil { return err } if vol.LinodeID == nil { return nil } filter := linodego.Filter{} filter.AddField(linodego.Eq, "entity.id", volumeID) filter.AddField(linodego.Eq, "...
[ 0.09901744872331619, -0.4764695167541504, 0.7870792746543884, -1.0201942920684814, 0.8781543970108032, -0.8869897723197937, -0.293821781873703, -0.643363893032074, -0.37871015071868896, 0.1356440931558609, -0.5585508942604065, 0.4044489562511444, -0.03421855345368385, 0.5716601610183716, ...
func RetrieveSchema(service service.MetaDataMgmtService, schemaMap map[string]*entity.Schema) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { logger.Logger.Debug("Entering handler.RetrieveSchema() handler...") // #1 - Parse path parameters & request headers var resource str...
[ -0.7740100622177124, -0.8113577365875244, 0.5666566491127014, 0.4173111319541931, 0.23727534711360931, 0.06451644748449326, 0.45637911558151245, 0.1640889197587967, 0.2361832708120346, -0.08123403042554855, 0.5624030828475952, -0.04299087077379227, -0.12160404771566391, -0.4679654240608215...
func (s *Scheduler) RunConsumer() error { consumerID := fmt.Sprint("fts-scheduler-", uuid.NewV4().String()) taskChannel, errorChannel, err := s.consumer.Subscribe( config.SchedulerQueue, consumerID, stomp.AckIndividual, ) if err != nil { return err } log.Info("Consumer started") for { select { case...
[ 0.5958799719810486, -0.6287838816642761, 0.691731333732605, 0.0025982148945331573, -0.16663417220115662, -0.4109015166759491, 0.28374701738357544, -0.2033199518918991, -0.7988517880439758, 0.7311573624610901, 0.21442432701587677, 0.8216462135314941, 0.4391946792602539, 1.0721502304077148, ...
func SmokeTestChannelImpl(t *testing.T) { client := Setup(t, true) defer TearDown(client) installer := NewInstaller(client.Dynamic, map[string]string{ "namespace": client.Namespace, }, EndToEndConfigYaml([]string{"smoke_test", "istio"})...) // Create the resources for the test. if err := installer.Do("create"...
[ 0.17257843911647797, -0.10936804115772247, 0.7315592765808105, -0.9251881241798401, 1.1571465730667114, -0.3817039132118225, 0.5449132919311523, -0.09873796254396439, -0.16318605840206146, 0.4943341314792633, 0.18338733911514282, 0.6742979288101196, 0.14965973794460297, 0.43790581822395325...
func (p *Package) IsBuiltin() bool { return p.Name == pkgBuiltin }
[ -0.2018224447965622, -0.32105910778045654, 0.45847848057746887, 0.8663666844367981, 0.08319910615682602, 0.8387864232063293, -0.3111788034439087, 0.13854798674583435, 0.30683547258377075, -0.01981840282678604, -1.1544044017791748, 0.18286024034023285, -0.8562476634979248, -0.31527704000473...
func parseTag(tag string) (string, tagOptions) { if idx := strings.Index(tag, ","); idx != -1 { return tag[:idx], tagOptions(tag[idx+1:]) } return tag, tagOptions("") }
[ 0.4033069908618927, -0.061226360499858856, 0.5335940718650818, -0.452288955450058, 0.6410963535308838, -0.8344811201095581, -0.07784204185009003, -0.49083536863327026, 0.3761741518974304, 0.4680911600589752, -0.16462700068950653, 0.18776670098304749, -0.11327995359897614, -0.18977680802345...
func (err RefreshError) Error() string { return fmt.Sprintf("code: %s. message: %s", err.Code, err.Message) }
[ 0.14256592094898224, -0.4081140458583832, 0.35732313990592957, 0.28304246068000793, 0.04417560622096062, 0.5462015271186829, -0.5000903010368347, -0.9473170042037964, 0.49764588475227356, -0.017756715416908264, 0.40360957384109497, 1.138171672821045, -0.25103896856307983, 0.788485407829284...
func GetChangeType(onCloud bool, onDB bool) int { if onCloud && !onDB { return Created } else if onCloud && onDB { return Updated } else if !onCloud && onDB { return Deleted } return 0 }
[ 0.11013301461935043, 0.2910372018814087, 0.6511270999908447, 0.41525694727897644, 0.8328131437301636, -0.4782578647136688, -0.3070797920227051, 0.07350628077983856, -0.18324577808380127, 0.9233092665672302, -0.24557076394557953, 0.5847388505935669, -0.7945218086242676, 1.9547061920166016, ...
func sentryClient() (sentry *raven.Client) { sentry, _ = raven.New(os.Getenv("SENTRY_DSN")) sentry.SetEnvironment(os.Getenv("ENVIRONMENT")) sentry.SetRelease(os.Getenv("RELEASE")) return }
[ 0.42599213123321533, -0.6850581169128418, 0.44223567843437195, -0.6571905612945557, 0.00610625883564353, -0.4940171539783478, 0.16732007265090942, 0.006248818710446358, -0.7191708087921143, 0.31976327300071716, -0.4762272834777832, 1.6793322563171387, -0.6077753901481628, -0.94794839620590...
func (m *VMTemplateCreationParams) Validate(formats strfmt.Registry) error { var res []error if err := m.validateCloudInitSupported(formats); err != nil { res = append(res, err) } if err := m.validateName(formats); err != nil { res = append(res, err) } if err := m.validateVMID(formats); err != nil { res ...
[ -0.48731791973114014, 0.2420814037322998, 0.05533052235841751, -0.4233933091163635, 0.3066440224647522, 0.31132838129997253, -0.6487156748771667, -0.24975651502609253, -1.5963594913482666, 0.7568858861923218, -0.15535233914852142, -0.006257813889533281, -0.2862178087234497, 1.4373248815536...
func (m *VMTemplateCreationParams) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil }
[ -0.18789836764335632, 0.30607128143310547, -0.11970625817775726, -0.35308772325515747, 0.5321776270866394, 0.7117910981178284, -0.9055018424987793, 0.4187130331993103, -0.44846850633621216, 0.7324422597885132, 0.016890933737158775, 0.7806792259216309, -0.892490804195404, 0.7906664609909058...
func (s *Stats) Add() { s.mutex.Lock() s.Unknown += 1 s.mutex.Unlock() }
[ -0.0944499522447586, 0.14037062227725983, 0.4373638927936554, -0.6141783595085144, 0.6855046153068542, 0.6114078164100647, 0.42496776580810547, -0.21493297815322876, 0.5756385922431946, -0.9086944460868835, -0.41326844692230225, 0.9833217263221741, -0.23676429688930511, 0.520121157169342, ...
func (s *Stats) AddRegistered(invisible, operator bool) { s.mutex.Lock() if invisible { s.Invisible += 1 } if operator { s.Operators += 1 } s.Total += 1 s.setMax() s.mutex.Unlock() }
[ 0.14064326882362366, 1.1808234453201294, 0.6661719083786011, -0.09618277847766876, 0.6847148537635803, -0.10548017919063568, 0.8338512182235718, 0.07715444266796112, 0.552442193031311, -0.22613085806369781, -0.6368510723114014, 0.5929601192474365, 0.2386653572320938, 0.6659116148948669, ...
func (s *Stats) Register(invisible bool) { s.mutex.Lock() s.Unknown -= 1 if invisible { s.Invisible += 1 } s.Total += 1 s.setMax() s.mutex.Unlock() }
[ -0.1360841989517212, 1.2308530807495117, 0.5974584221839905, -0.008628574199974537, 0.19214551150798798, 0.06056209281086922, 0.2791855037212372, -0.24422752857208252, -0.15212558209896088, -0.3487212061882019, -1.1662328243255615, 0.38551053404808044, 0.3372947573661804, 0.275802284479141...
func (s *Stats) ChangeInvisible(increment int) { s.mutex.Lock() s.Invisible += increment s.mutex.Unlock() }
[ -0.06572964787483215, 0.11912906914949417, 0.5404840707778931, -0.6721798777580261, -0.46038663387298584, 0.5335493683815002, 0.48537978529930115, -0.5811496376991272, -0.6100635528564453, 0.8889745473861694, -0.7240686416625977, 1.4225775003433228, -0.510642409324646, 0.5791553854942322, ...
func (s *Stats) ChangeOperators(increment int) { s.mutex.Lock() s.Operators += increment s.mutex.Unlock() }
[ -1.1300593614578247, 0.9291003942489624, 0.41414588689804077, -0.5640792846679688, -0.5443170666694641, -0.5265124440193176, 0.8377795815467834, -0.5672749876976013, 0.3216707110404968, -0.18585717678070068, -0.5913482904434204, 1.0684281587600708, -0.6326978206634521, 0.8289092183113098, ...
func (s *Stats) Remove(registered, invisible, operator bool) { s.mutex.Lock() if registered { s.Total -= 1 } else { s.Unknown -= 1 } if invisible { s.Invisible -= 1 } if operator { s.Operators -= 1 } s.mutex.Unlock() }
[ -0.0873500257730484, 0.66551274061203, 0.4063161611557007, -0.27200081944465637, -0.6501933336257935, 0.12187614291906357, 1.0027881860733032, 0.6298479437828064, 0.3075941503047943, 0.22784161567687988, -0.6756659150123596, -0.033028848469257355, -0.502017080783844, 0.052464913576841354, ...
func (s *Stats) GetValues() (result StatsValues) { s.mutex.Lock() result = s.StatsValues s.mutex.Unlock() return }
[ 0.6631192564964294, 1.043453335762024, 0.35229024291038513, 0.3412657678127289, 0.5498690605163574, -0.7666947245597839, 0.36249199509620667, -1.249549388885498, 0.3296825885772705, -1.3042446374893188, 0.07538129389286041, -0.043218206614255905, -0.7072519659996033, 0.6022019982337952, ...
func enrichClassification(reader *maxminddb.Reader, next http.HandlerFunc) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { // log request real ip rip := getRealIP(r) log.Printf("Request from %s", rip) // parse ip and enrich classification information addr := net.ParseIP(rip) if add...
[ -1.0083298683166504, 0.21811872720718384, 0.8154122829437256, -0.4617246985435486, -0.2871439456939697, -0.1965470165014267, -0.24141554534435272, 0.35489386320114136, 0.009161015972495079, 0.40243539214134216, 0.5986725687980652, 0.3608977198600769, 0.8270606994628906, -0.0143884969875216...
func newTtlJob(cache *inMemoryCache, opts ...TtlOption) *ttl { ttlJob := &ttl{ cache: cache, tick: time.NewTicker(defaultGcDuration), shutdown: make(chan struct{}, 1), } for _, opt := range opts { opt(ttlJob) } return ttlJob }
[ 0.5443243980407715, 0.3083273470401764, 0.3365805745124817, 0.3155471384525299, -0.9357364177703857, 0.5357626676559448, -0.952957272529602, -0.03549865633249283, -0.005198894999921322, 0.6996488571166992, -0.17138907313346863, -0.15448695421218872, -0.39752739667892456, 0.0261306706815958...
func (t *ttl) start() { go func() { for { select { case <-t.shutdown: t.tick.Stop() return case <-t.tick.C: // iterate over all the buckets and remove the expired keys // can be optimized using priority queue with increased code complexity var keys []string for _, bucket := range t....
[ -0.26781895756721497, -0.4268619418144226, 0.4312132000923157, 0.005911268759518862, -0.3339281678199768, -0.13968688249588013, -0.4230758547782898, 0.39653852581977844, -0.6453480124473572, 1.0802518129348755, -0.33897891640663147, -0.19275009632110596, 0.3545778691768646, 0.3514426052570...
func createJsonResponse(w http.ResponseWriter, req *http.Request, statusCode int, data *om.OrderedMap, error string) { if statusCode == 0 { statusCode = 200 } success := true if statusCode < 200 || statusCode > 299 { success = false } w.Header().Set("Content-authType", "application/json") w.WriteHeader(sta...
[ -0.8472549915313721, -1.2414225339889526, 0.794289767742157, 0.05016092583537102, -0.5139299631118774, -0.048379771411418915, -0.3186357617378235, -0.024499526247382164, 0.6981084942817688, 0.7917464375495911, -0.4352203905582428, 0.20359179377555847, -0.3216349184513092, 0.361151129007339...
func (k *PublicKey) Set(l PublicKey) { if copy(k[:], l[:]) != CompressedPublicKeyLength { panic(fmt.Errorf("failed to copy entire public key %x to %x", l, k)) } }
[ 0.2498602569103241, 0.8993850946426392, 0.1921992152929306, 0.22277215123176575, -0.4188024401664734, 0.9043616652488708, -0.7227940559387207, -0.4698319137096405, -0.6665998697280884, 1.3320871591567993, -1.2846165895462036, 0.18374811112880707, -0.5917087197303772, 0.6869233250617981, ...
func (k *PublicKey) Point() (kyber.Point, error) { p := (&Secp256k1{}).Point() return p, p.UnmarshalBinary(k[:]) }
[ 0.5604521036148071, -0.6256530284881592, 0.24279476702213287, 1.132533311843872, 0.4558068811893463, 0.31615105271339417, -0.3396557867527008, -0.16886331140995026, 0.38002902269363403, 0.6718851327896118, -0.4342518448829651, 0.2592112123966217, -0.9234921932220459, 0.420168936252594, 0...
func NewPublicKeyFromHex(hex string) (PublicKey, error) { rawKey, err := hexutil.Decode(hex) if err != nil { return PublicKey{}, err } return NewPublicKeyFromBytes(rawKey) }
[ 0.3626616597175598, -0.3106729984283447, -0.19192765653133392, 0.061433594673871994, -1.0896445512771606, 0.23694688081741333, -1.0087679624557495, 0.5771265625953674, -0.5521254539489746, -0.0011501124827191234, -1.112940788269043, -0.23916015028953552, 0.2853333652019501, 1.0625995397567...
func NewPublicKeyFromBytes(rawKey []byte) (PublicKey, error) { if l := len(rawKey); l != CompressedPublicKeyLength { return PublicKey{}, fmt.Errorf( "wrong length for public key: %s of length %d", rawKey, l) } var k PublicKey if c := copy(k[:], rawKey); c != CompressedPublicKeyLength { panic(fmt.Errorf("fail...
[ 0.3697490394115448, -0.06343588978052139, 0.16292068362236023, 0.31568118929862976, -1.4374728202819824, 0.02411181665956974, -0.2259494662284851, -0.12574025988578796, 0.15274950861930847, 0.7586080431938171, -0.9459818005561829, -0.5328100919723511, -0.32305365800857544, 0.67437809705734...
func (k *PublicKey) SetFromHex(hex string) error { nk, err := NewPublicKeyFromHex(hex) if err != nil { return err } k.Set(nk) return nil }
[ 0.4678003787994385, 0.003457240294665098, -0.020368944853544235, -0.1911088526248932, -0.35872209072113037, 0.7841355204582214, -1.3190916776657104, 0.4204092025756836, -0.9224085807800293, 0.20009608566761017, -1.1556305885314941, 0.39114904403686523, -0.0035375843290239573, 1.13540613651...
func (k PublicKey) String() string { return hexutil.Encode(k[:]) }
[ 0.6212958097457886, -0.22368143498897552, -0.08928655833005905, -0.21805432438850403, -0.014730546623468399, 1.132365345954895, -0.7054776549339294, -0.3470682203769684, -0.589211106300354, 0.7438627481460571, -0.7581101655960083, 0.9650795459747314, -0.2816312313079834, 0.4631916284561157...
func (k *PublicKey) StringUncompressed() (string, error) { p, err := k.Point() if err != nil { return "", err } return hexutil.Encode(LongMarshal(p)), nil }
[ 0.2788388431072235, -0.3338141441345215, 0.35558435320854187, -0.5540385246276855, -0.7201146483421326, 0.5144081711769104, -0.12961840629577637, -0.12348542362451553, -0.4745881259441376, 0.48641669750213623, -0.5707495212554932, -0.0944008156657219, -0.45079538226127625, -0.3682573735713...
func (k *PublicKey) Hash() (common.Hash, error) { p, err := k.Point() if err != nil { return common.Hash{}, err } return utils.MustHash(string(LongMarshal(p))), nil }
[ 0.9764518141746521, 0.48161840438842773, 0.3095313608646393, 0.34977102279663086, -0.3519176244735718, 1.0003328323364258, -0.4260746240615845, -0.014010691083967686, -0.4778112471103668, 0.3102300763130188, 0.04812321811914444, 0.9425510764122009, -0.03466900810599327, 0.2700366675853729,...
func (k *PublicKey) MustHash() common.Hash { hash, err := k.Hash() if err != nil { panic(fmt.Sprintf("Failed to compute hash of public vrf key %v", k)) } return hash }
[ 1.0277230739593506, 0.6038975715637207, 0.438205361366272, 1.3977702856063843, -0.12170825153589249, 1.3777414560317993, -0.6167519092559814, -0.43063458800315857, -0.4560016989707947, 0.7978731393814087, 0.06778592616319656, 0.5087683796882629, -0.7024856209754944, -0.11053774505853653, ...
func (k *PublicKey) Address() common.Address { hash, err := k.Hash() if err != nil { return common.Address{} } return common.BytesToAddress(hash.Bytes()[12:]) }
[ 0.3323497772216797, -0.7350710034370422, 0.7385638952255249, 0.13507713377475739, 0.28132134675979614, 0.7585765719413757, -0.023272423073649406, 0.34713250398635864, 0.808282196521759, 0.2592974603176117, 0.3104017674922943, 0.2631370723247528, -0.8821200728416443, 0.8936768770217896, -...
func (k *PublicKey) IsZero() bool { return *k == PublicKey{} }
[ -0.2955254316329956, 0.23734626173973083, 0.14950606226921082, 1.4728554487228394, -0.0311184860765934, 0.014811149798333645, -0.7675721645355225, 0.361826628446579, -0.007160038221627474, 0.48080718517303467, -0.6413360834121704, 0.7069634795188904, -1.1288342475891113, 0.8464558124542236...
func (k PublicKey) MarshalText() ([]byte, error) { return []byte(k.String()), nil }
[ 0.8381881713867188, 0.2633703947067261, 0.12015547603368759, 0.09646064788103104, -1.0285388231277466, 0.351239949464798, -1.2589037418365479, -0.18574278056621552, 0.7754464149475098, 0.9797933101654053, -0.8189653754234314, 0.8218705654144287, -0.8198190331459045, 0.18134139478206635, ...
func (k *PublicKey) UnmarshalText(text []byte) error { if err := k.SetFromHex(string(text)); err != nil { return errors.Wrapf(err, "while parsing %s as public key", text) } return nil }
[ 0.970271646976471, 0.6517749428749084, 0.23639613389968872, -0.7585434913635254, -0.9897964596748352, 0.421752005815506, -0.8427402377128601, 0.8564603924751282, -0.18540051579475403, 0.9632360935211182, -0.5969207286834717, -0.515608549118042, -0.8434783220291138, 0.42598092555999756, -...
func (k PublicKey) Value() (driver.Value, error) { return k.String(), nil }
[ -0.2087750881910324, -0.26794737577438354, 0.11475368589162827, 0.31043416261672974, 0.04519900307059288, 0.3993651568889618, -0.2961970865726471, -0.8383486866950989, 0.04069506376981735, 0.850631058216095, 0.3549957573413849, 0.6074984669685364, -0.44725340604782104, 0.3906809687614441, ...
func (k *PublicKey) Scan(value interface{}) error { rawKey, ok := value.(string) if !ok { return errors.Wrap(fmt.Errorf("unable to convert %+v of type %T to PublicKey", value, value), "scan failure") } if err := k.SetFromHex(rawKey); err != nil { return errors.Wrapf(err, "while scanning %s as PublicKey", rawKey...
[ -0.7674620747566223, 0.7297444343566895, 0.5721793174743652, 0.3121197819709778, -1.4931621551513672, 0.16520123183727264, -0.32356172800064087, -0.41027557849884033, -0.08473078906536102, 0.15165966749191284, -0.45399075746536255, 0.4777379631996155, 0.2524136006832123, 0.898962140083313,...
func New(seed uint32) nhash.HashF32 { s := new(State) s.seed = seed return s }
[ 0.9911460876464844, 0.21104085445404053, 0.17362040281295776, 0.00019929101108573377, -1.3723747730255127, -0.15297558903694153, 0.033255577087402344, -0.2386242151260376, -0.4447082281112671, -1.4019019603729248, -0.6344026923179626, -0.5676336884498596, 1.3734406232833862, 0.333148837089...
func (s *State) Size() int { return Size }
[ -0.3248889148235321, 0.45074135065078735, 0.24520845711231232, -0.7522153854370117, -0.618624210357666, 0.3132951259613037, 1.0844961404800415, 0.20373529195785522, 0.6391332149505615, -0.74030601978302, -0.6777904629707336, -0.19467107951641083, -0.07909385859966278, 0.1510036140680313, ...
func (s *State) BlockSize() int { return 2 }
[ -0.3728955090045929, 0.8298134207725525, 0.7525172829627991, 0.8218538165092468, -0.4580402076244354, 0.11951562762260437, 1.0174705982208252, -0.01808144897222519, -0.0032119378447532654, -0.051520124077796936, -0.8090337514877319, -0.2989366948604584, -0.09479048103094101, 0.608309626579...
func (s *State) NumSeedBytes() int { return 4 }
[ 0.40706753730773926, 0.2577524483203888, 0.33368536829948425, -0.5297052264213562, -0.4087020754814148, -0.1965503990650177, 0.2309141904115677, 0.09941687434911728, 1.4334321022033691, -0.7404595017433167, -1.4960533380508423, -0.4507801830768585, -0.49068617820739746, -0.0223019495606422...
func (s *State) HashSizeInBits() int { return 32 }
[ 0.6063992977142334, 1.0244147777557373, 0.429938405752182, -0.022563202306628227, -0.18112774193286896, 1.3771904706954956, 0.2360474318265915, -0.5750729441642761, 0.014483979903161526, -0.6508423686027527, -0.6539087891578674, -0.3053908050060272, -0.4929637908935547, 0.09191502630710602...
func (w *CosmosWriter) WriteToCosmos(rec *Record) error { // insert documents into ToCosmoscollection ride, err := rec.toRide() if err != nil { return err } for i := 0; i < 10; i++ { err = w.collection.Insert(ride) if err != nil { if strings.Contains(err.Error(), "Request rate is large") == true { v...
[ -0.3013381063938141, 1.1555418968200684, 0.8500528335571289, -0.6575798392295837, 1.2418344020843506, 0.17853787541389465, 1.1573209762573242, 0.048377662897109985, -0.8479680418968201, 0.6811656951904297, 0.15417428314685822, -0.5098674893379211, -0.7274042963981628, 0.30424436926841736, ...
func (d *Dictionary) FindMatches(matchCandidates []Match) int { // Check whether we can find matches at this position if d.absolutePosition >= d.matchableBufferLength { // Slide the matching window with one character d.absolutePosition++ return 0 } // Compute the maximum match length maxMatchLength := min(l...
[ 0.1926313042640686, -0.29582440853118896, 0.898682713508606, -0.612876296043396, -0.6422972679138184, -0.6952552199363708, 0.665103554725647, 0.29294610023498535, -0.8201373219490051, -0.2446419596672058, -0.3339024484157562, 0.010871175676584244, -1.280666708946228, 0.43152570724487305, ...
func (d *Dictionary) Skip() { d.FindMatches(nil) }
[ -0.9538856744766235, 0.3174586594104767, 0.3692040741443634, -0.7411227822303772, -0.25623780488967896, 0.5512900948524475, 1.3776805400848389, -0.13607101142406464, -0.13739949464797974, -0.030275382101535797, 0.23294562101364136, 0.11007792502641678, 0.06341876089572906, -0.2486953735351...
func (d *Dictionary) computeRelativePosition() int { position := d.absolutePosition - d.bufferBase // Check whether the current position has reached the rebase threshold if position == REBASE_THRESHOLD { // Rebase rebaseDelta := REBASE_THRESHOLD - DICTIONARY_SIZE d.bufferBase += rebaseDelta position -= reb...
[ 0.31427818536758423, -0.24938493967056274, 0.8049538135528564, -0.5748936533927917, -0.718631386756897, -0.24903279542922974, 0.604436993598938, 1.0366116762161255, -0.6727069616317749, 0.5445176362991333, -0.15954186022281647, -0.6327430009841919, -0.31134459376335144, -0.0800605416297912...
func GlobalIndexedDB() *IndexedDB { val := js.Global().Get("indexedDB") if !val.Truthy() { return nil } return &IndexedDB{val: val} }
[ -0.2155199944972992, 0.3346392810344696, 0.5009878873825073, 0.9520713090896606, -0.5967853665351868, 0.697867214679718, 0.6817665696144104, 0.33162155747413635, 0.19694600999355316, 0.4351055920124054, -0.26945430040359497, -0.28984200954437256, -1.8974179029464722, 0.8543750047683716, ...
func (i *IndexedDB) Open( ctx context.Context, name string, version int, upgrader func(d *DatabaseUpdate, oldVersion, newVersion int) error, ) (*Database, error) { var db *Database errCh := make(chan error, 1) putErr := func(err error) { select { case errCh <- err: default: } } odbReq := i.val.Call("op...
[ -1.3833580017089844, 0.0021687252447009087, 0.8475950360298157, 0.2630760669708252, -0.7692431211471558, -0.3446687161922455, -0.02243383415043354, 0.00415794737637043, 0.17483997344970703, 0.7769635319709778, -0.7140159606933594, 0.28072935342788696, -0.8350098729133606, -0.19449530541896...