text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (s *BasevhdlListener) EnterTerm(ctx *TermContext) {}
[ 0.5998148322105408, -0.5598840713500977, 0.42767107486724854, 0.8928358554840088, 0.7005022764205933, 0.4418904781341553, 0.1608189046382904, -0.19419853389263153, 0.28068339824676514, 0.45460963249206543, 0.2860223054885864, 0.6762679815292358, -1.2714321613311768, 0.046238191425800323, ...
func (s *BasevhdlListener) ExitTerm(ctx *TermContext) {}
[ -0.12754321098327637, -0.8072841167449951, 0.282764732837677, 0.5966287851333618, 0.35271140933036804, 0.6756425499916077, -0.021016649901866913, 0.39696449041366577, 0.058452412486076355, 0.9282968044281006, -0.11657319962978363, -0.10822705924510956, -0.8024044036865234, 0.09930852055549...
func (s *BasevhdlListener) EnterTerminal_aspect(ctx *Terminal_aspectContext) {}
[ 0.0963742733001709, -2.112907886505127, 0.5359213352203369, -1.0665088891983032, -0.0481545552611351, 0.7142776846885681, -0.30056583881378174, -0.2919882833957672, -0.0725908949971199, 0.4272134304046631, 0.7356793880462646, 0.6480706930160522, -0.4415125250816345, 0.4486982524394989, 0...
func (s *BasevhdlListener) ExitTerminal_aspect(ctx *Terminal_aspectContext) {}
[ -0.04178587719798088, -2.4846150875091553, 0.46157222986221313, -1.3822685480117798, -0.49394741654396057, 0.8649484515190125, -0.5961512327194214, 0.45873627066612244, 0.023496590554714203, 0.9200479388237, 0.6797897815704346, -0.11879453808069229, -0.16806912422180176, 0.2946933805942535...
func (s *BasevhdlListener) EnterTerminal_declaration(ctx *Terminal_declarationContext) {}
[ 1.1408262252807617, -0.9093741774559021, 0.4992585778236389, -0.6397488117218018, 0.16674382984638214, 0.2414703220129013, -0.02961600013077259, 0.712565004825592, -0.5056649446487427, 0.31965669989585876, 0.7215141654014587, 1.0479326248168945, -0.015445936471223831, 0.2096397876739502, ...
func (s *BasevhdlListener) ExitTerminal_declaration(ctx *Terminal_declarationContext) {}
[ 0.9343717694282532, -1.2420746088027954, 0.44899001717567444, -0.9067806601524353, -0.4428209662437439, 0.5665902495384216, -0.21210405230522156, 1.4799485206604004, -0.34676477313041687, 0.9067858457565308, 0.45414748787879944, 0.5036693811416626, 0.2550579607486725, -0.10680164396762848,...
func (s *BasevhdlListener) EnterThrough_aspect(ctx *Through_aspectContext) {}
[ 0.08445332199335098, -1.42052161693573, 0.43888145685195923, -0.7956811785697937, 0.5657691955566406, 0.6291635632514954, 1.1081173419952393, -1.2427356243133545, -0.4561833441257477, 0.23595862090587616, 0.37839922308921814, 0.8596430420875549, -0.7750683426856995, 1.2047046422958374, 0...
func (s *BasevhdlListener) ExitThrough_aspect(ctx *Through_aspectContext) {}
[ -0.09716111421585083, -1.669389247894287, 0.45087918639183044, -1.2076011896133423, 0.05173634737730026, 0.7823569178581238, 0.933163046836853, -0.46449515223503113, -0.4507153332233429, 0.9073803424835205, 0.23849430680274963, 0.0815986916422844, -0.6998448967933655, 1.0512868165969849, ...
func (s *BasevhdlListener) EnterTimeout_clause(ctx *Timeout_clauseContext) {}
[ -0.2197047472000122, -0.46762779355049133, 0.29553765058517456, -0.3146699368953705, 0.1648227870464325, -0.17706267535686493, 0.04777897521853447, -0.28501391410827637, -0.1945219188928604, 1.7598797082901, 0.6811323165893555, 0.419293612241745, -0.9107425808906555, -0.27574166655540466, ...
func (s *BasevhdlListener) ExitTimeout_clause(ctx *Timeout_clauseContext) {}
[ -0.4094725549221039, -1.0251901149749756, 0.3637969493865967, -0.15739358961582184, -0.36450138688087463, 0.10661522299051285, -0.4702613353729248, 0.4500863552093506, -0.21215304732322693, 2.3863236904144287, -0.08182236552238464, -0.6409620046615601, -0.6158322691917419, -0.2647899389266...
func (s *BasevhdlListener) EnterTolerance_aspect(ctx *Tolerance_aspectContext) {}
[ 0.5085095763206482, -1.2412235736846924, 0.3987041115760803, -1.0117429494857788, 0.3367273509502411, 0.29776307940483093, 0.3579358458518982, -0.7420180439949036, 0.11873660236597061, 0.42223119735717773, 0.220391184091568, -0.4844522178173065, -0.3237049877643585, 0.6989692449569702, 0...
func (s *BasevhdlListener) ExitTolerance_aspect(ctx *Tolerance_aspectContext) {}
[ 0.41194722056388855, -1.3836669921875, 0.36976358294487, -1.2722071409225464, -0.1030811071395874, 0.7326876521110535, 0.12036091089248657, -0.21244466304779053, -0.09654225409030914, 0.9960576295852661, 0.21974799036979675, -1.2201941013336182, -0.1801537573337555, 0.5394480228424072, 0...
func (s *BasevhdlListener) EnterType_declaration(ctx *Type_declarationContext) {}
[ 0.06313127279281616, -0.11960329860448837, 0.5894399881362915, 0.048429034650325775, 0.7994415760040283, -0.5695070028305054, 0.9564042687416077, -0.779290497303009, -0.2882099151611328, 0.562531590461731, -0.2538248300552368, 1.3558868169784546, -1.1619714498519897, 0.6685249209403992, ...
func (s *BasevhdlListener) ExitType_declaration(ctx *Type_declarationContext) {}
[ -0.5447785258293152, -0.3112386465072632, 0.49458539485931396, -0.2747577428817749, 0.5116004943847656, -0.12732186913490295, 0.951962947845459, -0.10620702058076859, -0.2885494828224182, 1.4899104833602905, -0.5124294757843018, 0.6313440203666687, -0.9609938263893127, 0.428301066160202, ...
func (s *BasevhdlListener) EnterType_definition(ctx *Type_definitionContext) {}
[ 0.13332363963127136, -0.12897315621376038, 0.40651071071624756, 0.536032497882843, 1.0612742900848389, -0.6089311838150024, 0.3221536874771118, -1.0289744138717651, -0.6039976477622986, 1.1859278678894043, -0.6770127415657043, 0.7818639278411865, -1.144824743270874, 1.0391490459442139, 0...
func (s *BasevhdlListener) ExitType_definition(ctx *Type_definitionContext) {}
[ -0.43573132157325745, -0.22791200876235962, 0.3741410970687866, 0.2807556390762329, 0.8133083581924438, -0.2784791886806488, 0.5127249956130981, -0.33869579434394836, -0.8098704814910889, 2.106848955154419, -0.7342849373817444, 0.05631706863641739, -0.9862359166145325, 0.8077398538589478, ...
func (s *BasevhdlListener) EnterUnconstrained_array_definition(ctx *Unconstrained_array_definitionContext) { }
[ 0.5479070544242859, -0.6192020773887634, 0.4223118722438812, -0.013617889024317265, 0.8468579649925232, -0.08519361168146133, 0.19423167407512665, 0.22987475991249084, -0.4305703043937683, -0.0120652224868536, -0.32131850719451904, 0.5369747877120972, -0.13197146356105804, 0.71766263246536...
func (s *BasevhdlListener) ExitUnconstrained_array_definition(ctx *Unconstrained_array_definitionContext) { }
[ 0.7159979939460754, -0.8438735008239746, 0.44939151406288147, -0.024874918162822723, -0.018622761592268944, 0.19468264281749725, 0.28494197130203247, 0.6657108068466187, -0.20325300097465515, 0.31685301661491394, -0.20231299102306366, -0.06111523509025574, -0.26055070757865906, 0.529967725...
func (s *BasevhdlListener) EnterUnconstrained_nature_definition(ctx *Unconstrained_nature_definitionContext) { }
[ 0.38371971249580383, -0.08571699261665344, 0.315677285194397, -0.26718541979789734, 0.9567843079566956, 0.1441737413406372, -0.15834781527519226, -0.2684025168418884, -0.8584586977958679, -0.17892388999462128, -0.27085772156715393, 1.0581910610198975, -0.02949564717710018, 0.72575026750564...
func (s *BasevhdlListener) ExitUnconstrained_nature_definition(ctx *Unconstrained_nature_definitionContext) { }
[ 0.32455962896347046, -0.3213902413845062, 0.3833483159542084, -0.29160770773887634, 0.0676988959312439, 0.45916345715522766, -0.1388036012649536, 0.24437393248081207, -0.6825767159461975, 0.44827836751937866, -0.29002612829208374, 0.5476101636886597, -0.19327053427696228, 0.467850893735885...
func (s *BasevhdlListener) EnterUse_clause(ctx *Use_clauseContext) {}
[ -0.26577311754226685, -0.4407545328140259, 0.7660766839981079, 0.08184416592121124, 1.0034223794937134, -1.0669195652008057, 0.15411685407161713, -0.8752233386039734, -0.5264458060264587, 1.1472878456115723, 0.40775755047798157, 0.5479076504707336, -1.5260119438171387, 0.38411468267440796,...
func (s *BasevhdlListener) ExitUse_clause(ctx *Use_clauseContext) {}
[ -0.40864211320877075, -0.6093233227729797, 0.8211969137191772, -0.23221158981323242, 0.30380725860595703, -0.6023756861686707, 0.340620219707489, -0.26855161786079407, -0.42427125573158264, 2.0546350479125977, -0.31096696853637695, -0.3315139412879944, -1.3458755016326904, 0.23167482018470...
func (s *BasevhdlListener) EnterVariable_assignment_statement(ctx *Variable_assignment_statementContext) { }
[ -0.509004533290863, -0.6451449990272522, 0.18787860870361328, 0.20525534451007843, 0.34704288840293884, -0.3453901708126068, 0.6570116877555847, -0.6872028112411499, -0.059526607394218445, 0.6732744574546814, 0.09453987330198288, 0.6561673879623413, -0.6859067678451538, -0.0854555815458297...
func (s *BasevhdlListener) ExitVariable_assignment_statement(ctx *Variable_assignment_statementContext) { }
[ -0.6180382966995239, -0.9560928344726562, 0.3726620376110077, 0.02280450612306595, -0.74361652135849, -0.19127793610095978, 0.29319795966148376, -0.10212615132331848, -0.22013939917087555, 1.5084006786346436, 0.16723832488059998, -0.22609928250312805, -0.6820372343063354, -0.28934124112129...
func (s *BasevhdlListener) EnterVariable_declaration(ctx *Variable_declarationContext) {}
[ 1.2063993215560913, -0.8040035367012024, 0.4452608823776245, 0.30419424176216125, 0.6336813569068909, -0.43250855803489685, 0.20941860973834991, 0.09513261169195175, -0.32799601554870605, 0.07608798146247864, -0.37369778752326965, 0.9304541945457458, -0.762374222278595, 0.6144001483917236,...
func (s *BasevhdlListener) ExitVariable_declaration(ctx *Variable_declarationContext) {}
[ 0.8295624852180481, -1.0802052021026611, 0.41867244243621826, -0.12808063626289368, 0.1124906837940216, -0.18397952616214752, 0.04230871424078941, 0.7204800844192505, -0.3429100811481476, 0.7866061329841614, -0.6370030045509338, -0.011533821001648903, -0.6100965142250061, 0.303598821163177...
func (s *BasevhdlListener) EnterWait_statement(ctx *Wait_statementContext) {}
[ -0.6382215619087219, -0.5146745443344116, 0.2759597599506378, -0.15692171454429626, 0.9415891170501709, 0.014555688947439194, 0.3796513080596924, -0.9399502277374268, 0.02234114706516266, 0.960940957069397, -0.3599744439125061, 0.10450585186481476, -0.10589566826820374, -0.4493006467819214...
func (s *BasevhdlListener) ExitWait_statement(ctx *Wait_statementContext) {}
[ -0.6258127689361572, -0.7793541550636292, 0.4210672080516815, -0.4005919396877289, -0.15001487731933594, 0.23853923380374908, 0.26442280411720276, -0.07406717538833618, -0.11229860037565231, 1.6819894313812256, -0.5631226301193237, -0.590273916721344, 0.2439250499010086, -0.419886499643325...
func (s *BasevhdlListener) EnterWaveform(ctx *WaveformContext) {}
[ -0.13232064247131348, -0.09882228821516037, 0.33676397800445557, -0.32826751470565796, 0.9217921495437622, -0.12247176468372345, 0.44455578923225403, -0.648061215877533, 0.17835958302021027, 0.05597901716828346, -0.4185293912887573, 0.8265497088432312, -1.2486317157745361, 0.71732598543167...
func (s *BasevhdlListener) ExitWaveform(ctx *WaveformContext) {}
[ -0.8842114210128784, -0.40613487362861633, 0.31250572204589844, -0.8065750598907471, 0.29980120062828064, 0.08840101957321167, 0.1982601284980774, -0.2731415033340454, 0.004237021319568157, 0.8329538702964783, -0.9099997282028198, -0.004707886837422848, -1.1466225385665894, 0.5954964160919...
func (s *BasevhdlListener) EnterWaveform_element(ctx *Waveform_elementContext) {}
[ 0.10987846553325653, 0.2518564462661743, 0.18033505976200104, 0.48443329334259033, 1.4184238910675049, 0.09266666322946548, 0.02169930376112461, 0.16176992654800415, -0.467695951461792, -0.14368043839931488, -0.39986783266067505, 0.6976544857025146, -1.2981295585632324, 1.2803101539611816,...
func (s *BasevhdlListener) ExitWaveform_element(ctx *Waveform_elementContext) {}
[ -0.17681671679019928, -0.23767781257629395, 0.2508419156074524, 0.22983084619045258, 0.6116998791694641, 0.3360184133052826, -0.1291336864233017, 0.3900182843208313, -0.3890455663204193, 0.6172953844070435, -0.550529420375824, -0.027463342994451523, -1.216191053390503, 1.223962664604187, ...
func SanityCheck(message string) string { return "checked " + message }
[ 0.07671257108449936, 0.14181168377399445, 0.20616629719734192, -0.022302210330963135, -0.058477189391851425, 0.7457148432731628, 0.3261515200138092, 0.13204585015773773, 0.34973934292793274, 0.0184894148260355, 1.050240159034729, 0.9659345746040344, -0.7945839762687683, 0.4813241958618164,...
func ZeroLog() echo.MiddlewareFunc { return ZeroLogWithConfig(DefaultZeroLogConfig) }
[ 0.6880688071250916, 0.19407640397548676, 0.06648619472980499, 0.76351398229599, -1.0760109424591064, -0.4445464611053467, 0.3335428237915039, 0.8017138838768005, -0.08472271263599396, -0.37979376316070557, 0.25550714135169983, 0.7158811092376709, 0.2794641852378845, 0.16921064257621765, ...
func ZeroLogWithConfig(cfg ZeroLogConfig) echo.MiddlewareFunc { // Defaults if cfg.Skipper == nil { cfg.Skipper = DefaultZeroLogConfig.Skipper } if len(cfg.FieldMap) == 0 { cfg.FieldMap = DefaultZeroLogConfig.FieldMap } return func(next echo.HandlerFunc) echo.HandlerFunc { return func(ctx echo.Context) (e...
[ 0.22505860030651093, -0.4074705243110657, 0.5338734984397888, 0.026109512895345688, -0.6565913558006287, -0.2538991868495941, 0.04988308250904083, 0.12514598667621613, 0.3308739960193634, -0.5308208465576172, 0.00034231043537147343, 0.0525256022810936, 0.36355140805244446, 0.28224954009056...
func NewExporter(o Options) (*Exporter, error) { if o.Host == "" { // default Host o.Host = "127.0.0.1" } if o.Port == 0 { // default Port o.Port = 2003 } e := &Exporter{ opts: o, } for _, val := range o.Tags { e.tags += ";" + val } b := bundler.NewBundler((*view.Data)(nil), func(items interfac...
[ 0.48574066162109375, 0.4469866454601288, 0.5729044675827026, 0.7806235551834106, -0.5836501121520996, -0.37119245529174805, 0.8947036862373352, -0.624665379524231, -0.08416780829429626, -0.050881288945674896, -0.1321546882390976, -0.09486927092075348, -0.6001072525978088, 0.516514420509338...
func (e *Exporter) ExportView(vd *view.Data) { e.bundler.Add(vd, 1) }
[ 0.22662925720214844, 0.735496997833252, 0.36598342657089233, 0.19737845659255981, -0.6595636606216431, -0.333957701921463, 0.04231807589530945, 0.38035959005355835, 0.6561219692230225, -0.2406640350818634, 0.41567814350128174, 0.2060212790966034, 0.11554086208343506, 0.7822928428649902, ...
func (e *Exporter) toMetric(v *view.View, row *view.Row, vd *view.Data) []client.Metric { switch data := row.Data.(type) { case *view.CountData: return []client.Metric{e.formatTimeSeriesMetric(data.Value, row, vd)} case *view.SumData: return []client.Metric{e.formatTimeSeriesMetric(data.Value, row, vd)} case *v...
[ 0.28937262296676636, 0.2922575771808624, 0.692485511302948, -0.9140807390213013, -0.06425061821937561, -0.9276251792907715, -0.07698690891265869, -1.2023155689239502, -0.26224175095558167, 0.6402977108955383, 0.5412026643753052, 0.3114432692527771, 1.4878000020980835, -0.7632720470428467, ...
func (e *Exporter) formatTimeSeriesMetric(value interface{}, row *view.Row, vd *view.Data) client.Metric { var val float64 switch x := value.(type) { case int64: val = float64(x) case float64: val = x } names := []string{sanitize(e.opts.Namespace), sanitize(vd.View.Name)} return client.Metric{ Name: b...
[ 0.17342282831668854, 0.30890369415283203, 0.204429030418396, -0.3388892114162445, -0.8498111367225647, 0.07688184827566147, -0.7762253284454346, -1.4494647979736328, -0.1891309916973114, 0.6790657639503479, 1.7259050607681274, 0.2513789236545563, 0.5896021723747253, 0.07028993219137192, ...
func (e *Exporter) sendBundle(vds []*view.Data) { g, err := e.connectGraphite() if err != nil { e.opts.onError(err) return } defer g.Disconnect() for _, vd := range vds { for _, row := range vd.Rows { for _, metric := range e.toMetric(vd.View, row, vd) { debugOut("send", metric) err = g.SendMetric...
[ -0.33837419748306274, 0.7291730046272278, 0.7147437930107117, 0.19123339653015137, -0.07931994646787643, 0.1046428456902504, 0.47505810856819153, -0.8265045881271362, -0.857570230960846, 1.1705433130264282, 1.2798879146575928, -0.07113435119390488, 0.03229595348238945, 0.6231396794319153, ...
func buildPath(names []string, tags string, eTags string) string { var values []string for _, name := range names { if name != "" { values = append(values, name) } } path := strings.Join(values, ".") return path + tags + eTags }
[ -0.0010770492954179645, -0.5054842829704285, 0.6683969497680664, 0.3187466859817505, 0.1725889891386032, 0.38423290848731995, -0.26941293478012085, -0.019934581592679024, -0.7644921541213989, 0.723567545413971, 0.3916011452674866, -0.722748875617981, -0.08568445593118668, 0.347700059413909...
func tagValues(t []tag.Tag) string { var buffer bytes.Buffer for _, t := range t { buffer.WriteString(fmt.Sprintf(";%s=%s", t.Key.Name(), t.Value)) } return buffer.String() }
[ 0.09187394380569458, -0.43024539947509766, 0.37346047163009644, -0.9556998610496521, 0.19550886750221252, 0.19523103535175323, -1.194069266319275, 0.020439142361283302, -1.4982160329818726, 0.3750515580177307, -0.19010546803474426, -0.9516699314117432, 0.48332464694976807, 1.28541886806488...
func sanitize(s string) string { if len(s) == 0 { return s } if len(s) > labelKeySizeLimit { s = s[:labelKeySizeLimit] } s = strings.Map(sanitizeRune, s) if unicode.IsDigit(rune(s[0])) { s = "key_" + s } if s[0] == '_' { s = "key" + s } return s }
[ -0.9389639496803284, 0.5122409462928772, 0.7288967967033386, -0.37663084268569946, -0.5014612674713135, -0.46748441457748413, -0.6996814012527466, -0.3011741042137146, -0.39960184693336487, 0.7605919241905212, -0.07258547097444534, 0.2019791454076767, -0.47442764043807983, -0.2677318453788...
func sanitizeRune(r rune) rune { if unicode.IsLetter(r) || unicode.IsDigit(r) { return r } // Everything else turns into an underscore return '_' }
[ -0.5213666558265686, 0.3018874526023865, 0.5169609189033508, -0.22689896821975708, -1.0024456977844238, -0.32840579748153687, -0.8369420766830444, -1.0498859882354736, 0.11515788733959198, 0.1856633424758911, -0.04494806006550789, -0.19055591523647308, -0.9294698238372803, 0.83548456430435...
func WithDatabase(db *pg.DB) gin.HandlerFunc { return func(c *gin.Context) { c.Set(keyCtx, session.WithDatabase(c.Request.Context(), db)) c.Next() } }
[ -0.9153765439987183, 0.15477563440799713, 0.32164517045021057, 0.4941783845424652, -0.3420160412788391, -0.15800884366035461, 0.7187267541885376, -0.6435960531234741, 0.44863784313201904, 0.20862816274166107, -0.6576797962188721, -0.9452604651451111, -0.06388059258460999, 0.287497609853744...
func WithConfig(c *gin.Context, config *models.Config) { c.Set(keyCtx, context.WithValue(Context(c), keyCfg, config)) }
[ 0.3653232455253601, 0.008549767546355724, 0.3442590832710266, -0.2927841544151306, -0.43425485491752625, 0.2741811275482178, 0.39333802461624146, 0.44739198684692383, -0.3183639943599701, 0.9460665583610535, -1.0354981422424316, -0.801989734172821, 0.7048225402832031, 0.1583794504404068, ...
func NewOverDIDComm(name string, httpHandle RequestHandle, purpose ...string) (*OverDIDComm, error) { if name == "" || httpHandle == nil { return nil, fmt.Errorf(errNameAndHandleMandatory) } return &OverDIDComm{ name: name, purpose: purpose, httpHandle: httpHandle, }, nil }
[ -0.5516795516014099, -0.335780531167984, 0.451877236366272, -0.08785037696361542, -0.08545880764722824, 0.7187299132347107, 0.5602465867996216, -0.8159804940223694, -0.1631036102771759, -0.8117809891700745, -0.19222289323806763, 0.5616065859794617, -0.26287585496902466, 0.5839454531669617,...
func (m *OverDIDComm) Name() string { return m.name }
[ -0.15536335110664368, -1.1809284687042236, 0.3573424220085144, -0.23567037284374237, -0.08039261400699615, 0.7150446772575378, 1.3427956104278564, -1.1721214056015015, -0.05900903046131134, -0.3205377459526062, -0.08708944171667099, -0.41992515325546265, -0.5739224553108215, 0.547541379928...
func (m *OverDIDComm) Accept(msgType string, purpose []string) bool { if msgType != OverDIDCommMsgRequestType { return false } // if purpose not set, then match only message type. if len(m.purpose) == 0 { return true } // match purpose if provided for _, msgPurpose := range purpose { for _, svcPurpose :=...
[ -0.975574254989624, 0.0035468630958348513, 0.640346884727478, 0.14171145856380463, -0.31760352849960327, 0.46585655212402344, 0.7097799777984619, -0.7374618053436279, -0.5268970727920532, 0.10449033975601196, 1.0688700675964355, 0.33072152733802795, -1.1862231492996216, 1.3596690893173218,...
func (m *OverDIDComm) HandleInbound(msg service.DIDCommMsg, _ service.DIDCommContext) (string, error) { svcMsg := httpOverDIDCommMsg{} err := msg.Decode(&svcMsg) if err != nil { return "", fmt.Errorf(errFailedToDecodeMsg, err) } rqBody, err := base64.StdEncoding.DecodeString(svcMsg.BodyB64) if err != nil { ...
[ -0.49995458126068115, -0.7272481322288513, 1.1517431735992432, -0.5917829275131226, 0.02731739543378353, 0.20247718691825867, -0.3313157558441162, -1.2373422384262085, 0.027960704639554024, -0.1520462930202484, 0.2951686382293701, 0.40465471148490906, -0.9526004791259766, 0.918112456798553...
func (ini INI) DefaultSectionSetKey(k, v string) { ini.SectionSetKey(defaultSection, k, v) }
[ -0.6480479836463928, -0.7769401669502258, 0.18297933042049408, 0.6680856347084045, -0.11801716685295105, 0.1652749925851822, -0.08797270059585571, -0.6100533604621887, -0.4608874022960663, 0.9360231757164001, -0.4401406943798065, -0.6258333921432495, -0.2707095444202423, 0.6726031303405762...
func (ini INI) DefaultSectionGetKey(k string) (string, error) { return ini.SectionGetKey(defaultSection, k) }
[ -0.5078156590461731, -0.5657780170440674, 0.2198050618171692, 1.1146925687789917, -0.021317848935723305, -0.4376508295536041, -0.054864753037691116, -0.49795129895210266, -0.88961261510849, 0.7761948108673096, -0.2345430850982666, -1.008981704711914, -0.6939171552658081, 0.4114415943622589...
func (ini INI) DefaultSectionDelKey(k string) error { return ini.SectionDelKey(defaultSection, k) }
[ -0.45723891258239746, -0.4615726172924042, 0.35470712184906006, 0.9860935211181641, -0.5295228958129883, 0.077048160135746, -0.2777238190174103, 0.09866680204868317, -0.43689602613449097, 1.0615483522415161, -0.24651017785072327, -1.2691576480865479, -0.19369159638881683, 0.686153769493103...
func (ini INI) DefaultSectionGet() (map[string]string, error) { return ini.SectionGet(defaultSection) }
[ -1.0173530578613281, -0.5014161467552185, 0.26821041107177734, 0.5095090866088867, 0.05801411718130112, -0.35423070192337036, -0.8006301522254944, -0.6561899781227112, -1.1473212242126465, -0.6560032367706299, -0.0847240760922432, -0.670809268951416, -0.7015914916992188, 0.5208478569984436...
func (ini INI) SectionSetKey(sectionName, k, v string) { // if not section not exist, create first if _, exist := ini[sectionName]; !exist { ini[sectionName] = make(kvMap) } ini[sectionName][k] = v }
[ -0.5997467041015625, -1.1598917245864868, 0.5259127616882324, -0.02802911587059498, -0.03438185900449753, 0.34773537516593933, -0.15830840170383453, -0.09239871799945831, -0.6258922219276428, 1.4801045656204224, -0.412750244140625, -0.41947072744369507, 0.5080534219741821, 0.20177294313907...
func (ini INI) SectionGetKey(sectionName, k string) (string, error) { // if not section not exist, create first s, exist := ini[sectionName] if !exist { return "", ErrSectionMiss } v, exist := s[k] if !exist { return "", ErrKeyMiss } return v, nil }
[ -0.3561619818210602, -1.0492398738861084, 0.6849687695503235, 0.47881999611854553, 0.18390138447284698, -0.3864181339740753, 0.029119644314050674, 0.04410639405250549, -0.6474546790122986, 1.441869854927063, 0.2878255546092987, -0.09935256093740463, 0.11835972964763641, -0.0740663781762123...
func (ini INI) SectionDelKey(sectionName, k string) error { if _, exist := ini[sectionName]; !exist { return ErrSectionMiss } if _, exist := ini[sectionName][k]; exist { delete(ini[sectionName], k) } return nil }
[ -0.17368090152740479, -1.1873419284820557, 0.6533167362213135, 0.6917011141777039, 0.002665225649252534, -0.11118637025356293, -0.11373414844274521, 0.6403121948242188, -0.1522892266511917, 1.6790677309036255, 0.22439517080783844, -0.5540294647216797, 0.08249486982822418, 0.226452246308326...
func (ini INI) SectionGet(sectionName string) (map[string]string, error) { if _, exist := ini[sectionName]; !exist { return nil, ErrSectionMiss } return ini[sectionName], nil }
[ -0.9793538451194763, -1.3301793336868286, 0.4870867431163788, 0.07456686347723007, -0.13385441899299622, -0.8385665416717529, -0.4509725868701935, -0.5163065791130066, -0.6706562638282776, 0.5334175825119019, 0.4242142140865326, -0.036345019936561584, 0.18663649260997772, -0.13536795973777...
func (ini INI) SectionUpdate(sectionName string, data map[string]string) { if _, exist := ini[sectionName]; !exist { ini[sectionName] = make(kvMap) } for k, v := range data { ini[sectionName][k] = v } }
[ -0.7990439534187317, -1.70732843875885, 0.47083956003189087, -0.37308844923973083, -0.801314115524292, 0.15333034098148346, -0.83107990026474, 0.7214288115501404, -0.46770423650741577, 0.7761302590370178, -0.16509893536567688, -0.55494225025177, 0.22244618833065033, 0.019882366061210632, ...
func New() INI { return INI{defaultSection: make(kvMap)} }
[ -0.10748735070228577, -1.188940405845642, 0.025691526010632515, 0.945655345916748, -1.2426618337631226, 0.21341565251350403, -1.1969287395477295, 0.41949746012687683, -1.1755167245864868, -0.87309330701828, -0.10628694295883179, -1.0979111194610596, 0.08017344027757645, 0.1166941449046135,...
func Parse(r io.Reader) (INI, error) { conf := New() if err := conf.parse(r); err != nil { return nil, err } return conf, nil }
[ 0.23412853479385376, -0.5888489484786987, 0.0874568372964859, 0.3566751778125763, -1.2676923274993896, -0.5507964491844177, -0.45889365673065186, 0.08796745538711548, -0.4541517496109009, -0.3676975667476654, -0.4986155927181244, -0.75565505027771, -1.0077781677246094, -0.07500283420085907...
func ParseString(s string) (INI, error) { r := strings.NewReader(s) conf := New() if err := conf.parse(r); err != nil { return nil, err } return conf, nil }
[ 0.24875156581401825, -1.046890139579773, -0.003713584039360285, -0.32591474056243896, -1.2323644161224365, -0.7902212738990784, -0.1526683121919632, 0.5858206748962402, -0.5096255540847778, -0.13942982256412506, -0.5551220774650574, -0.19525639712810516, -0.269585520029068, -0.972896993160...
func NewServer(e Engine, c http.ServerConfig) (*Server, error) { svr, err := http.NewServer(c) if err != nil { return nil, errors.Trace(err) } s := &Server{ Server: svr, engine: e, log: logger.WithFields("api", "http"), } s.Handle(s.getPort, "GET", "/ports/available", "host", "{host}") s.Handle(s.star...
[ -0.6787636876106262, -0.538841962814331, 0.4003369212150574, -0.010724935680627823, 0.2961226999759674, 0.5007900595664978, 0.2688444256782532, 0.385512113571167, -0.2338256537914276, 0.6240119338035583, -0.40856441855430603, 0.4700792133808136, -0.08103443682193756, 0.4218440651893616, ...
func Wrap(h http.Handler, o ...ServerOption) http.Handler { if h == nil { panic("h == nil") } handler := &handler{ handler: h, tracer: apm.DefaultTracer(), requestName: ServerRequestName, } for _, o := range o { o(handler) } if handler.requestIgnorer == nil { handler.requestIgnorer = NewDyna...
[ -0.39971649646759033, 0.47524574398994446, 0.6027798056602478, 1.3702905178070068, 0.09768765419721603, 0.4930216073989868, 0.12526841461658478, -0.34482547640800476, 0.06334951519966125, 0.04538976401090622, 0.1261022686958313, 0.061988070607185364, 0.04766923934221268, 0.5885622501373291...
func (h *handler) ServeHTTP(w http.ResponseWriter, req *http.Request) { if !h.tracer.Recording() || h.requestIgnorer(req) { h.handler.ServeHTTP(w, req) return } tx, body, req := StartTransactionWithBody(h.tracer, h.requestName(req), req) defer tx.End() w, resp := WrapResponseWriter(w) defer func() { if v ...
[ 0.40170109272003174, 0.35568469762802124, 0.8213847875595093, 0.6902185082435608, -0.47975972294807434, 0.30405721068382263, 0.4428018629550934, -0.1679476648569107, 0.10277446359395981, 0.803163468837738, 0.34177905321121216, -0.4246179163455963, 0.07692871987819672, 0.108265720307827, ...
func StartTransaction(tracer *apm.Tracer, name string, req *http.Request) (*apm.Transaction, *http.Request) { traceContext, ok := getRequestTraceparent(req, W3CTraceparentHeader) if !ok { traceContext, ok = getRequestTraceparent(req, ElasticTraceparentHeader) } if ok { traceContext.State, _ = ParseTracestateHea...
[ 0.21763670444488525, -0.48288097977638245, 0.7789607644081116, -0.22850018739700317, 0.4259457290172577, -0.5860621929168701, 0.4242408275604248, -0.5320152044296265, 1.0990277528762817, 0.44270631670951843, 0.1334620714187622, 0.029337570071220398, 0.31061047315597534, -0.5993329286575317...
func StartTransactionWithBody(tracer *apm.Tracer, name string, req *http.Request) (*apm.Transaction, *apm.BodyCapturer, *http.Request) { tx, req := StartTransaction(tracer, name, req) bc := tracer.CaptureHTTPRequestBody(req) if bc != nil { req = RequestWithContext(apm.ContextWithBodyCapturer(req.Context(), bc), re...
[ 0.028614025563001633, -0.6235260963439941, 0.7937610745429993, 0.7393940091133118, -0.12529219686985016, -0.40710213780403137, -0.49088287353515625, -0.9684383273124695, 0.7575711607933044, 0.49003928899765015, -1.084404706954956, -0.2716233432292938, 0.24802249670028687, 0.452282339334487...
func SetTransactionContext(tx *apm.Transaction, req *http.Request, resp *Response, body *apm.BodyCapturer) { tx.Result = StatusCodeResult(resp.StatusCode) if !tx.Sampled() { return } SetContext(&tx.Context, req, resp, body) }
[ -0.03480076417326927, -0.16467884182929993, 0.5433276891708374, -0.13476711511611938, -0.26882079243659973, -0.40486785769462585, -0.07504481077194214, -0.0631113275885582, 1.0238367319107056, 0.8728774189949036, -0.4878323972225189, -0.44936448335647583, -0.028438441455364227, -0.27981904...
func SetContext(ctx *apm.Context, req *http.Request, resp *Response, body *apm.BodyCapturer) { ctx.SetHTTPRequest(req) ctx.SetHTTPRequestBody(body) ctx.SetHTTPStatusCode(resp.StatusCode) ctx.SetHTTPResponseHeaders(resp.Headers) }
[ -0.3184291124343872, -1.000455617904663, 0.7762768864631653, 0.4432218074798584, 0.11159112304449081, 0.5898477435112, -1.5505335330963135, -0.23223114013671875, 1.2728668451309204, -0.41836217045783997, -0.23490318655967712, 0.4918323755264282, 0.3933596909046173, 0.19676421582698822, -...
func WrapResponseWriter(w http.ResponseWriter) (http.ResponseWriter, *Response) { rw := responseWriter{ ResponseWriter: w, resp: Response{ Headers: w.Header(), }, } h, _ := w.(http.Hijacker) p, _ := w.(http.Pusher) rf, _ := w.(io.ReaderFrom) switch { case h != nil && p != nil: rwhp := responseWriter...
[ 0.4268985986709595, -0.8786121010780334, 0.8170651793479919, 0.5234079360961914, 0.3021475374698639, -0.4789908826351166, 0.349631667137146, -0.46417200565338135, 0.9163081049919128, 0.19624967873096466, 0.5740989446640015, -0.9035778045654297, -0.25661784410476685, 0.20500239729881287, ...
func (w *responseWriter) WriteHeader(statusCode int) { w.ResponseWriter.WriteHeader(statusCode) w.resp.StatusCode = statusCode }
[ -0.5662738084793091, -1.106418251991272, 0.3205965459346771, 0.1502009481191635, 0.31297460198402405, 0.3205581307411194, 0.9223535656929016, 1.3389962911605835, 0.3240657150745392, -0.34461888670921326, -0.3142530620098114, -0.8501247763633728, 0.34295836091041565, 0.7331293225288391, 0...
func (w *responseWriter) Write(data []byte) (int, error) { n, err := w.ResponseWriter.Write(data) if w.resp.StatusCode == 0 { w.resp.StatusCode = http.StatusOK } return n, err }
[ -0.9043936729431152, -0.17689214646816254, 0.5050932168960571, 0.34131553769111633, 0.29565468430519104, -0.2696567177772522, 0.9768891930580139, 0.9234647154808044, 0.39803293347358704, -0.14128725230693817, -0.7577111721038818, -0.7986270189285278, -0.9547678232192993, 0.7291826605796814...
func (w *responseWriter) CloseNotify() <-chan bool { if closeNotifier, ok := w.ResponseWriter.(http.CloseNotifier); ok { return closeNotifier.CloseNotify() } return nil }
[ -0.6961812973022461, 0.15356770157814026, 0.3315644860267639, 0.002258781809359789, -0.21098297834396362, -0.31934991478919983, -0.2024342119693756, -0.7887146472930908, -0.13020585477352142, -0.3730267882347107, 0.031283847987651825, -0.6998794078826904, -0.8471454977989197, 0.90114754438...
func (w *responseWriter) Flush() { if flusher, ok := w.ResponseWriter.(http.Flusher); ok { flusher.Flush() } }
[ 0.41638773679733276, 0.17400868237018585, 0.05937621369957924, 0.36487284302711487, 0.2928176820278168, -0.014527907595038414, 0.9746971726417542, -1.0551694631576538, 0.3008577525615692, -1.2783162593841553, 0.4511030912399292, -0.012794261798262596, -0.29710492491722107, 1.47262060642242...
func WithTracer(t *apm.Tracer) ServerOption { if t == nil { panic("t == nil") } return func(h *handler) { h.tracer = t } }
[ -0.02527076005935669, -0.058258745819330215, 0.3687199354171753, -0.07010277360677719, -0.7561343312263489, 0.4630180895328522, 0.47976425290107727, -0.5544866919517517, 0.7224027514457703, -0.9092718958854675, -0.3534100353717804, -0.5454200506210327, 0.5037086606025696, 1.000577092170715...
func WithRecovery(r RecoveryFunc) ServerOption { if r == nil { panic("r == nil") } return func(h *handler) { h.recovery = r } }
[ 0.2160058617591858, -0.09117897599935532, 0.36964505910873413, 0.5135374069213867, -0.4469447731971741, -0.3442925214767456, 0.5548417568206787, -0.01751924306154251, 0.4277198612689972, 0.08452453464269638, -0.8128120303153992, -0.7329846024513245, 0.5155222415924072, -0.01256516389548778...
func WithPanicPropagation() ServerOption { return func(h *handler) { h.panicPropagation = true } }
[ -0.16820335388183594, -0.5507537722587585, 0.5999537706375122, 0.7257599830627441, -0.40289145708084106, 0.9148518443107605, 0.9111012816429138, -0.1906728744506836, 0.30075645446777344, 0.06922100484371185, -0.36607080698013306, -0.6265536546707153, 0.0778520330786705, -0.0613723024725914...
func WithServerRequestName(r RequestNameFunc) ServerOption { if r == nil { panic("r == nil") } return func(h *handler) { h.requestName = r } }
[ -0.3313294053077698, -0.27347177267074585, 0.6976931691169739, 1.0898487567901611, -1.5036144256591797, -0.3573909401893616, -0.10204730182886124, -0.32808321714401245, 0.0488823838531971, 0.5590748190879822, -0.3807924687862396, -0.36399176716804504, 0.22626140713691711, 0.820409059524536...
func WithServerRequestIgnorer(r RequestIgnorerFunc) ServerOption { if r == nil { r = IgnoreNone } return func(h *handler) { h.requestIgnorer = r } }
[ 0.1518559455871582, -0.5381210446357727, 0.6743385195732117, 0.757902204990387, -1.3545054197311401, -0.30758902430534363, -0.25522810220718384, -0.16273532807826996, 0.27759069204330444, -0.3867793679237366, -0.27211084961891174, -0.6873785853385925, -0.3243630528450012, 0.770148217678070...
func RequestWithContext(ctx context.Context, req *http.Request) *http.Request { url := req.URL req.URL = nil reqCopy := req.WithContext(ctx) reqCopy.URL = url req.URL = url return reqCopy }
[ -0.8330941200256348, -0.47546523809432983, 0.5017405152320862, 0.21551623940467834, -0.3299929201602936, 0.15781523287296295, -1.092955470085144, -0.4125194847583771, 1.4620288610458374, -0.23166869580745697, -0.11664905399084091, 0.38539931178092957, 0.017242154106497765, -0.2138481289148...
func NewDialogData( dynamo *awsutils.DynamoRequest, environmentName, organization, dialogRepo , dialogFolder , dialogCatalog , dialogTable , aliasFolder , learnMoreRepo , learnMoreFolder , buildBranch , cultivationBranch , masterBranch string, ) (rv DialogData) { if dynamo == nil || environmentName == "...
[ -0.25460633635520935, -0.2621946930885315, 0.39001306891441345, 0.2296943962574005, -0.46525922417640686, 0.5402446389198303, -0.1426205188035965, 0.354089617729187, -0.21334537863731384, 0.06480283290147781, -0.06771700084209442, 0.2002687156200409, 0.04487164691090584, 0.604154646396637,...
func (a *HealthApiService) GetHealth(ctx _context.Context) ApiGetHealthRequest { return ApiGetHealthRequest{ ApiService: a, ctx: ctx, } }
[ -0.33820641040802, 0.03524152189493179, 0.4118220806121826, 1.0471163988113403, 0.7096553444862366, -0.3402831256389618, 0.17294880747795105, -1.099851369857788, 0.9120485782623291, -1.2434238195419312, 0.35032641887664795, 1.4904780387878418, -0.31149619817733765, -0.005740383639931679, ...
func (a *HealthApiService) GetHealthExecute(r ApiGetHealthRequest) (HealthCheck, *_nethttp.Response, GenericOpenAPIError) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte executionError ...
[ -0.36199766397476196, -0.5587940812110901, 1.1549029350280762, 0.18739955127239227, 0.3593921959400177, 0.08770464360713959, 0.5096051692962646, -0.8440435528755188, -0.12655478715896606, -0.2612316906452179, 0.5502233505249023, 0.8812922835350037, -1.0768743753433228, 0.2835387587547302, ...
func NewOAuthFlow(flow *low.OAuthFlow) *OAuthFlow { o := new(OAuthFlow) o.low = flow o.TokenUrl = flow.TokenUrl.Value o.AuthorizationUrl = flow.AuthorizationUrl.Value o.RefreshUrl = flow.RefreshUrl.Value scopes := make(map[string]string) for k, v := range flow.Scopes.Value { scopes[k.Value] = v.Value } o.Sco...
[ 0.06524597853422165, -0.9408186078071594, 0.018016811460256577, -0.10251476615667343, -0.9429197907447815, -0.8751968145370483, -0.6429731249809265, -0.5308350920677185, 1.1439324617385864, -0.48053357005119324, -0.07163021713495255, 1.0453985929489136, 0.26970407366752625, 0.4882915019989...
func (o *OAuthFlow) GoLow() *low.OAuthFlow { return o.low }
[ 0.9325652718544006, 0.07076319307088852, 0.43318644165992737, 0.37705090641975403, 0.34694862365722656, -0.3196536898612976, 0.017301494255661964, -0.6615866422653198, 1.072885274887085, -0.5044323205947876, 0.07139284908771515, 1.2892028093338013, -0.06201174482703209, -0.337340384721756,...
func (o *OAuthFlow) GoLowUntyped() any { return o.low }
[ 0.058073244988918304, 0.15373364090919495, 0.31059592962265015, -0.9028252363204956, 1.1295361518859863, 0.07570186257362366, -0.08252202719449997, -0.11117903888225555, 0.5153293609619141, -0.22073280811309814, -0.5146059989929199, 1.553333044052124, -1.148861050605774, 0.1055481880903244...
func (o *OAuthFlow) Render() ([]byte, error) { return yaml.Marshal(o) }
[ 0.38655325770378113, -0.17410288751125336, 0.38691964745521545, 0.006203508470207453, -0.3527217507362366, -0.5635850429534912, -0.935030996799469, 0.7909945845603943, 1.0320854187011719, 0.10236185789108276, -0.19386330246925354, 0.3871513605117798, -0.33823829889297485, 0.073338828980922...
func (o *OAuthFlow) MarshalYAML() (interface{}, error) { nb := high.NewNodeBuilder(o, o.low) return nb.Render(), nil }
[ 0.6331045031547546, 0.8176095485687256, 0.40515848994255066, 0.5362075567245483, 0.0663401260972023, -0.13971464335918427, 0.46353593468666077, 0.8446168899536133, 1.1729373931884766, -0.5847538709640503, 0.10517029464244843, 1.209388017654419, 0.39513635635375977, 0.06321612745523453, -...
func pushDominoes(dominoes string) string { runes := []rune(dominoes) rightIndex := len(runes) - 1 for i, item := range runes { if item == 'R' && i+1 < len(runes) && runes[i+1] == '.' { runes[i+1] = 'R' } if runes[rightIndex] == 'L' { runes[rightIndex-1] = 'L' } if i-1 == rightIndex { break ...
[ -0.789093017578125, 0.22886015474796295, 0.8051075339317322, -0.006982960272580385, -0.6743770837783813, -0.2809607982635498, -0.19928649067878723, 0.24472016096115112, 0.04681989923119545, 0.970536470413208, -0.12021563947200775, 0.791557788848877, -0.35968536138534546, -0.704395890235900...
func LocalTestConfig() (cfg *Config) { cfg = &Config{ ListenAddr: net.ParseIP("127.0.0.1"), ListenPort: 0, ValidateTimeout: time.Millisecond * 100, UpdateTimeout: time.Millisecond * 200, InvalidationTimeout: time.Second * 5, ReceiveTimeout: time.Second, } cfg.Params, _ =...
[ 1.0864568948745728, -0.47298750281333923, 0.4320727288722992, -0.6514427065849304, -0.28457602858543396, -0.43189388513565063, 0.41918522119522095, 0.309210866689682, -0.030186574906110764, -0.021864574402570724, -0.19840574264526367, -0.12069187313318253, -0.9889145493507385, 1.0961529016...
func (s DecoderList) Default() DecoderFactory { if len(s) < 1 { panic("No decode factories configured") } return s[0] }
[ -0.698168933391571, 0.7791064977645874, 0.165517196059227, 0.39163053035736084, 0.488899290561676, -0.6564664244651794, -0.6801834106445312, 0.5593706965446472, 0.322538286447525, -1.3409336805343628, -0.7440661191940308, 0.07408682256937027, -0.5734564661979675, 0.6285319328308105, -1.4...
func (s DecoderList) Supported() (supported []string) { for _, enc := range s { supported = append(supported, enc.MimeType()) } return supported }
[ -1.1825196743011475, -0.527899980545044, 0.32821226119995117, -0.15987929701805115, -0.401242733001709, -0.19018462300300598, -1.308445692062378, 0.8677562475204468, 0.4510255753993988, 0.6012112498283386, -1.9688889980316162, 0.5324521064758301, -0.4445309638977051, 1.0394033193588257, ...
func (s DecoderList) Find(mime string) DecoderFactory { for _, e := range s { if e.MimeType() == mime { return e } } return nil }
[ -0.26367005705833435, -0.2578475773334503, 0.2354482114315033, -0.6829389333724976, -0.7343733310699463, -0.6751629710197449, -0.34301719069480896, -0.20550446212291718, -0.49191099405288696, 0.1843777894973755, -0.436931848526001, 0.07778918743133545, -1.3707923889160156, 0.71704816818237...
func (c *Client) SC2LeagueData(seasonID int, queueID sc2gd.QueueID, teamType sc2gd.TeamType, leagueID sc2gd.LeagueID) (*sc2gd.League, []byte, error) { var ( dat sc2gd.League b []byte err error ) b, err = c.getURLBody(c.apiURL+fmt.Sprintf("/data/sc2/league/%d/%d/%d/%d?locale=%s", seasonID, queueID, teamType,...
[ -0.020201606675982475, -0.9527543187141418, 0.5358379483222961, -1.3439812660217285, -0.5519452691078186, 0.16943079233169556, -1.5646835565567017, -0.41641104221343994, -0.017656346783041954, 0.3718858063220978, -0.6402446627616882, 2.0383691787719727, 0.3223564624786377, -0.1704843193292...
func (s *Channel) Channels(guildID discord.GuildID) ([]discord.Channel, error) { s.mut.RLock() defer s.mut.RUnlock() chIDs, ok := s.guildChs[guildID] if !ok { return nil, store.ErrNotFound } // Reading chRefs is also covered by the global mutex. var channels = make([]discord.Channel, 0, len(chIDs)) for _, ...
[ -0.42909330129623413, -0.19889776408672333, 0.09746718406677246, -0.36059021949768066, 0.8126224875450134, -0.3665729761123657, -0.8932679891586304, -0.6541088819503784, 0.8100720047950745, -0.20741063356399536, 0.11229969561100006, 1.3130682706832886, -0.8894103169441223, 0.89635276794433...
func (s *Channel) PrivateChannels() ([]discord.Channel, error) { s.mut.RLock() defer s.mut.RUnlock() groupDMs := s.guildChs[0] if len(s.privates) == 0 && len(groupDMs) == 0 { return nil, store.ErrNotFound } var channels = make([]discord.Channel, 0, len(s.privates)+len(groupDMs)) for _, chID := range s.priva...
[ -0.871671736240387, -0.5426503419876099, 0.44596803188323975, -0.2610684037208557, 0.7121967673301697, -0.8544194102287292, -0.23739972710609436, -1.6084433794021606, 0.5059811472892761, 0.03285801038146019, 0.2693108022212982, 0.9656694531440735, -1.1995216608047485, 0.6465395092964172, ...
func (s *Channel) ChannelSet(channel *discord.Channel, update bool) error { cpy := *channel s.mut.Lock() defer s.mut.Unlock() // Update the reference if we can. s.channels[channel.ID] = cpy switch channel.Type { case discord.DirectMessage: // Safety bound check. if len(channel.DMRecipients) != 1 { retu...
[ -0.7234391570091248, 0.020448748022317886, 0.44979527592658997, -1.3592430353164673, 0.5318558216094971, -0.08753880858421326, -0.233186274766922, -0.9436585307121277, 0.481232225894928, 0.226173996925354, 0.8231165409088135, 1.7797437906265259, -0.5263242721557617, 0.5012366771697998, 0...
func removeChannelID(channels []discord.ChannelID, id discord.ChannelID) []discord.ChannelID { for i, ch := range channels { if ch == id { // Move the last channel to the current channel, then slice the last // channel off. channels[i] = channels[len(channels)-1] channels = channels[:len(channels)-1] ...
[ -0.28479522466659546, -1.1399855613708496, 0.6614450216293335, -0.9893074631690979, 0.2671988010406494, -0.3707376718521118, -0.9536856412887573, 0.04529206082224846, 0.7007076144218445, 1.5344839096069336, -0.47735220193862915, 0.8908290266990662, -0.9986413717269897, -0.1226813867688179,...
func NewStore(schema Schema, options ...CeousOption) *BaseStore { store := &BaseStore{ schema: schema, } for _, option := range options { option(store) } if !store.disableCache { store.runner = store._runner } else { store.runner = sq.NewStmtCacher(store._runner) } return store }
[ -0.09058500826358795, 0.19379949569702148, 0.3647203743457794, 1.139155626296997, -1.0778180360794067, 0.24451975524425507, 0.04204356297850609, -0.010400813072919846, 1.1250771284103394, -0.5623611211776733, -0.12483427673578262, -0.03395551070570946, -0.8291392922401428, 0.18271580338478...
func (store *BaseStore) Insert(record Record, fields ...SchemaField) error { if record.IsPersisted() { return ErrNonNewDocument } if len(fields) == 0 { fields = store.schema.Columns() } var ( autoIncPks = make([]string, 0, 1) columnNames = make([]string, 0, len(fields)) columnValues = make([]interfa...
[ -0.6770596504211426, 0.7784968614578247, 0.565445065498352, 0.31074491143226624, -0.6872840523719788, -0.302859365940094, 0.7769750952720642, 0.04581894353032112, -0.9278440475463867, -0.17953163385391235, -0.8796963095664978, -0.07867186516523361, -0.6761268973350525, -0.22382986545562744...