text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (v *BlitzedItemResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson6a975c40DecodeJsonBenchmark4(&r, v) return r.Error() }
[ 0.04644142463803291, -0.5472858548164368, 0.23453167080879211, -1.1870651245117188, 0.14094524085521698, -0.7258991599082947, 0.9727528691291809, 0.36220115423202515, 0.46050071716308594, -0.5717890858650208, -1.1321830749511719, -0.27950164675712585, -0.7498079538345337, -0.30671447515487...
func (v *BlitzedItemResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson6a975c40DecodeJsonBenchmark4(l, v) }
[ 0.3131292164325714, -0.5787110328674316, 0.36098453402519226, -0.9203922152519226, 0.3890856206417084, -1.5292490720748901, 1.3345720767974854, 0.19059333205223083, 0.4090280532836914, -0.4509558081626892, -1.5870338678359985, -0.510247528553009, -0.2510837912559509, 0.17117947340011597, ...
func People(engine *gin.Engine, midlewares ...gin.HandlerFunc) { personGroup := engine.Group("rs/crud/person") personGroup.GET("/:id", controllers.GetPerson) personGroup.GET("/", controllers.GetPagePerson) personGroup.PUT("/:id", controllers.PutPerson) personGroup.DELETE("/:id", controllers.DeletePerson) }
[ -0.5773876309394836, -0.007156857755035162, 0.5865134000778198, -0.3623327612876892, 0.11311507225036621, -0.3375653326511383, 0.20469552278518677, 0.8687522411346436, -0.49991217255592346, -0.21141444146633148, 0.2686707377433777, -0.43911734223365784, -0.16767343878746033, 0.468288362026...
func (m *IoK8sAPICoreV1ScopedResourceSelectorRequirement) Validate(formats strfmt.Registry) error { var res []error if err := m.validateOperator(formats); err != nil { res = append(res, err) } if err := m.validateScopeName(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.Co...
[ -1.5845098495483398, -0.30342549085617065, 0.08673074096441269, -0.8777646422386169, 0.17625589668750763, -0.6466562747955322, 0.30145949125289917, -0.6402174830436707, 1.2071694135665894, 0.7583213448524475, 0.45244550704956055, 0.6365317106246948, -0.6245699524879456, 0.6947046518325806,...
func NewClient(httpClient *http.Client, baseURL string) (*Client, error) { if httpClient == nil { httpClient = http.DefaultClient } base, err := url.Parse(baseURL) if err != nil { return nil, errors.New("Could not parse base URL") } c := &Client{client: httpClient, baseURL: base} return c, nil }
[ 0.007927605882287025, -0.14475584030151367, 0.25019797682762146, 0.26721394062042236, -0.31389912962913513, -0.1475609540939331, -0.17021125555038452, 0.23329763114452362, -0.35193246603012085, -0.23535987734794617, -0.07265050709247589, 0.49299049377441406, -0.5452950596809387, -0.6371103...
func NewDir(dir Directory, abspath string, pool *qidpool.Pool) Interface { return &dirReader{ Directory: dir, pool: pool, path: abspath, } }
[ 0.052477605640888214, -0.7831315398216248, 0.20290379226207733, 0.052852828055620193, -1.711119294166565, 0.8483842611312866, 0.06863001734018326, -0.4964723587036133, 0.12879051268100739, -0.772411048412323, 1.94923996925354, 0.5019355416297913, 0.3644200265407562, 0.02989877760410309, ...
func TestConcurrentBuildControllers(t *testing.T) { defer testutil.DumpEtcdOnFailure(t) // Start a master with multiple BuildControllers osClient, kClient := setupBuildControllerTest(controllerCount{BuildControllers: 5}, t) build.RunBuildControllerTest(t, osClient, kClient) }
[ 0.3658790588378906, -0.22362971305847168, 0.5949391722679138, 0.22212404012680054, 0.6932345032691956, 0.2676675319671631, 0.8253191113471985, 0.517511785030365, 0.4895658493041992, -0.7606540322303772, -1.3399176597595215, -0.3374055027961731, -0.3583923578262329, 0.1816476583480835, 0....
func TestConcurrentBuildPodControllers(t *testing.T) { defer testutil.DumpEtcdOnFailure(t) // Start a master with multiple BuildPodControllers osClient, kClient := setupBuildControllerTest(controllerCount{BuildPodControllers: 5}, t) build.RunBuildPodControllerTest(t, osClient, kClient) }
[ -0.18477483093738556, 0.05088896304368973, 0.6506295204162598, -0.21205851435661316, 0.7190366983413696, 0.5919560790061951, 0.5246454477310181, 0.17051059007644653, 0.4506349265575409, -0.7574973702430725, -1.3450379371643066, -0.29290148615837097, -0.7779993414878845, 0.04541005194187164...
func Register(fns ...func(DB) error) error { return DefaultCollection.Register(fns...) }
[ -0.842590868473053, 1.8248038291931152, 0.24622683227062225, 1.0237481594085693, 1.60148024559021, 0.23996607959270477, -0.6421785354614258, -0.30727213621139526, -1.2986476421356201, -0.7868472337722778, -1.4724111557006836, -0.23752032220363617, -0.1287384033203125, 0.6920692324638367, ...
func RegisterTx(fns ...func(DB) error) error { return DefaultCollection.RegisterTx(fns...) }
[ -0.8452937006950378, 1.8715373277664185, 0.2582996189594269, 0.603989839553833, 1.1954669952392578, -0.022136645391583443, -0.8346248865127563, -0.36866745352745056, -0.457595556974411, -0.4221882224082947, -1.9090156555175781, -0.7148049473762512, 0.17839425802230835, 0.1738455891609192, ...
func RegisteredMigrations() []*Migration { return DefaultCollection.Migrations() }
[ -1.185136318206787, 1.1921602487564087, 0.2487538456916809, 1.4273724555969238, 1.1538796424865723, -0.0670899823307991, 0.24762502312660217, -1.0190597772598267, -0.2826518416404724, -0.6031537055969238, -1.3853538036346436, 0.302943617105484, -0.14666324853897095, 0.7797555923461914, -...
func Run(db DB, a ...string) (oldVersion, newVersion int64, err error) { return DefaultCollection.Run(db, a...) }
[ -0.8038960695266724, -0.2467298060655594, 0.31681495904922485, 0.7358488440513611, 0.08685959875583649, 0.34907177090644836, 0.0729445368051529, 0.0841873362660408, -0.5204877853393555, 0.1930125653743744, -1.2621828317642212, -0.34748703241348267, -0.3330298364162445, 0.8749351501464844, ...
func MeasurementsGET(w http.ResponseWriter, r *http.Request) { // Get condition GET parameter condition := r.URL.Query().Get("condition") // Validate condition reg, errReg := regexp.Compile("^(\\w+[<>=]+\\w+(\\s(and|or)\\s?)?)*$") if errReg != nil { log.Println(errReg) response.SendError(w, http.StatusInterna...
[ -0.9133845567703247, -0.11205212771892548, 1.027184009552002, -0.32823219895362854, 0.0609261654317379, 0.555001437664032, -0.013645308092236519, -0.27082207798957825, -0.3541674315929413, 0.46483466029167175, 0.9484362602233887, -0.3130533695220947, 0.30646806955337524, 0.8765926361083984...
func QueryStringParser(queryStr string, filters map[string]string) []FilteredResult { //define custom map type to allowduplicate keys type Map struct { Key string Value string } params := []Map{} searchFilters := []FilteredResult{} parts := strings.Split(queryStr, "&") //build a key/value map of the que...
[ -0.5170775055885315, -0.9277776479721069, 0.5974977612495422, -0.4291287660598755, -0.9900427460670471, 0.02656610682606697, -0.45019879937171936, -0.5158013105392456, -0.4675362706184387, 0.16786891222000122, -0.21058039367198944, -0.26585647463798523, -0.55440753698349, 0.287486672401428...
func RHSParser(queryStrValue string, valueType string) (value interface{}, comparisonOperator string, logicOperator string) { var val interface{} var cOperator string = " = " var lOperator string = " AND " parts := strings.Split(queryStrValue, ":") len := len(parts) if valueType == "int" { var number int64 ...
[ -0.3240625560283661, -0.9897210597991943, 0.7796630859375, -0.10002892464399338, -1.1306976079940796, 0.6538125276565552, -0.230873242020607, -0.3984292447566986, 0.23453330993652344, 0.10198022425174713, -0.12329922616481781, -0.4452073872089386, -0.9293010234832764, 0.8428629040718079, ...
func (in *DailyRule) DeepCopyInto(out *DailyRule) { *out = *in }
[ 0.10789814591407776, 0.4012896716594696, 0.25756555795669556, -0.23225729167461395, -0.20726200938224792, 0.9104891419410706, -0.12479367107152939, 0.8813821077346802, -1.7150650024414062, -0.19643716514110565, -0.034273456782102585, 1.0006062984466553, -0.22903132438659668, -0.03290303051...
func (in *DailyRule) DeepCopy() *DailyRule { if in == nil { return nil } out := new(DailyRule) in.DeepCopyInto(out) return out }
[ -0.6881105899810791, 0.3332028090953827, -0.04448965936899185, 0.7271257638931274, 0.582134485244751, 0.7861357927322388, 0.04234205186367035, 0.3046700358390808, -0.9539878964424133, 0.14795711636543274, 0.2944762706756592, 0.13155332207679749, -0.9525384306907654, 0.006899384781718254, ...
func (in *ScaleRule) DeepCopyInto(out *ScaleRule) { *out = *in out.ScaleSpec = in.ScaleSpec if in.Daily != nil { in, out := &in.Daily, &out.Daily *out = new(DailyRule) **out = **in } }
[ 0.2584596574306488, 0.3379712700843811, 0.49972718954086304, -0.7807449102401733, 0.05691871419548988, 0.6495915651321411, -0.6635769605636597, 0.39648863673210144, -1.902177333831787, 0.3868212401866913, -0.07019416987895966, 0.8790760636329651, 0.016636068001389503, 0.44147154688835144, ...
func (in *ScaleRule) DeepCopy() *ScaleRule { if in == nil { return nil } out := new(ScaleRule) in.DeepCopyInto(out) return out }
[ 0.06961583346128464, 0.12523388862609863, 0.24769510328769684, -0.10564855486154556, 0.42341843247413635, 1.0459661483764648, -0.7345297932624817, -0.07922501862049103, -1.0364885330200195, 1.2334915399551392, -0.17653387784957886, 0.3214568495750427, -1.2089338302612305, 0.215787053108215...
func (in *ScaleSpec) DeepCopyInto(out *ScaleSpec) { *out = *in }
[ 0.8070877194404602, -0.1917702555656433, 0.5516230463981628, -0.510844886302948, -0.4816920757293701, 0.7181545495986938, -0.2680172920227051, 0.16989299654960632, -1.6244930028915405, 0.11606736481189728, -0.8102380633354187, 1.3437756299972534, 0.6458436846733093, -0.06466367840766907, ...
func (in *ScaleSpec) DeepCopy() *ScaleSpec { if in == nil { return nil } out := new(ScaleSpec) in.DeepCopyInto(out) return out }
[ 0.2705673575401306, -0.262540340423584, 0.3028138279914856, 0.016633102670311928, -0.16140615940093994, 0.9300874471664429, -0.14491210877895355, -0.728963315486908, -0.6885437369346619, 0.4918590188026428, -0.47748154401779175, 0.8992165923118591, 0.011799775995314121, -0.1359839737415313...
func (in *ScaleTarget) DeepCopyInto(out *ScaleTarget) { *out = *in if in.Selectors != nil { in, out := &in.Selectors, &out.Selectors *out = make(map[string]string, len(*in)) for key, val := range *in { (*out)[key] = val } } }
[ -0.27099189162254333, -0.686797022819519, 0.6647834181785583, -0.823429524898529, -0.7399213910102844, 0.117960125207901, -0.6488884091377258, 0.6494539380073547, -1.020570158958435, -0.09770140796899796, -0.512345552444458, 0.5733144283294678, 0.24582910537719727, -0.6069180369377136, -...
func (in *ScaleTarget) DeepCopy() *ScaleTarget { if in == nil { return nil } out := new(ScaleTarget) in.DeepCopyInto(out) return out }
[ -0.4517461359500885, -0.5271297693252563, 0.06844007223844528, 0.4745153486728668, -0.6149175763130188, -0.5632454752922058, 0.006156716030091047, -0.47361600399017334, -0.10693494230508804, 0.10609004646539688, 0.33639922738075256, 0.2504890263080597, -1.037411093711853, -0.42489442229270...
func (in *ScheduledPodScaler) DeepCopyInto(out *ScheduledPodScaler) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) out.Status = in.Status }
[ -0.05152405425906181, -0.6587073802947998, 0.649949312210083, 0.09341412782669067, -1.1087285280227661, 0.09851448237895966, -0.8471340537071228, 0.3888494074344635, -1.8935809135437012, -0.3564451038837433, -0.6839014887809753, 0.9625948071479797, 0.15279287099838257, -0.2248678356409073,...
func (in *ScheduledPodScaler) DeepCopy() *ScheduledPodScaler { if in == nil { return nil } out := new(ScheduledPodScaler) in.DeepCopyInto(out) return out }
[ -0.8739575147628784, -0.5072309374809265, 0.26102152466773987, 0.8457292914390564, -0.5823348760604858, -0.2232382595539093, -1.1505670547485352, -0.3750520646572113, -0.9296122789382935, -0.5120323300361633, -0.9083517789840698, 0.24552029371261597, -0.7171103954315186, -0.282075136899948...
func (in *ScheduledPodScaler) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ -0.6262688040733337, -0.4277239739894867, 0.6808117032051086, 0.5637181401252747, -1.0132120847702026, 0.4361360967159271, -0.02684747241437435, -0.20044635236263275, -1.060554027557373, -0.4562816023826599, -0.39292049407958984, -0.48176756501197815, -0.11392080783843994, -0.1262201368808...
func (in *ScheduledPodScalerList) DeepCopyInto(out *ScheduledPodScalerList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ScheduledPodScaler, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]...
[ -0.6163190007209778, 0.01610901579260826, 0.5185205936431885, 0.43503525853157043, -0.7686967253684998, -0.11066122353076935, -0.7999078631401062, 0.5534858703613281, -1.5435148477554321, 0.22922730445861816, -0.9528743624687195, 0.405529648065567, -0.23005259037017822, -0.2910228967666626...
func (in *ScheduledPodScalerList) DeepCopy() *ScheduledPodScalerList { if in == nil { return nil } out := new(ScheduledPodScalerList) in.DeepCopyInto(out) return out }
[ -1.6408427953720093, -0.3643786311149597, -0.1640172302722931, 0.9617769718170166, -0.06355194747447968, -0.031600549817085266, -1.1925327777862549, -0.0006826540338806808, -0.8998761773109436, 0.07220412790775299, -1.5053937435150146, -0.01097878534346819, -0.6354308724403381, -0.00712906...
func (in *ScheduledPodScalerList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ -1.1143507957458496, -0.23907682299613953, 0.5132884979248047, 0.6479341983795166, -0.803596019744873, 0.35199612379074097, -0.08599220216274261, 0.13342109322547913, -0.8666921854019165, -0.34891247749328613, -0.8145634531974792, -0.48555582761764526, -0.20033547282218933, 0.1232948750257...
func (in *ScheduledPodScalerSpec) DeepCopyInto(out *ScheduledPodScalerSpec) { *out = *in in.ScaleTarget.DeepCopyInto(&out.ScaleTarget) if in.ScaleRules != nil { in, out := &in.ScaleRules, &out.ScaleRules *out = make([]ScaleRule, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } out.De...
[ 0.30813878774642944, 0.003208985086530447, 0.4613540470600128, -0.17392735183238983, -0.22678712010383606, -0.18752776086330414, -0.5676515698432922, 0.519957423210144, -1.8958648443222046, 0.44567111134529114, -0.05028384551405907, 1.131807804107666, -0.2890062928199768, -0.81032377481460...
func (in *ScheduledPodScalerSpec) DeepCopy() *ScheduledPodScalerSpec { if in == nil { return nil } out := new(ScheduledPodScalerSpec) in.DeepCopyInto(out) return out }
[ -0.6747974157333374, -0.6391670107841492, -0.0991722121834755, 0.14359784126281738, -0.10036369413137436, -0.055195942521095276, -0.6247014403343201, -0.14590120315551758, -0.9823645353317261, 0.049329355359077454, -0.335519015789032, 0.9367499947547913, -0.32435938715934753, -0.5217474699...
func (in *ScheduledPodScalerStatus) DeepCopyInto(out *ScheduledPodScalerStatus) { *out = *in }
[ 0.09365566074848175, -0.49489688873291016, 0.22869724035263062, -0.10045068711042404, -1.0074371099472046, -0.08212219923734665, -1.0357619524002075, 0.37345683574676514, -1.589479923248291, -0.45439377427101135, -0.9528077244758606, 1.005266547203064, 0.19042804837226868, -0.6762472987174...
func (in *ScheduledPodScalerStatus) DeepCopy() *ScheduledPodScalerStatus { if in == nil { return nil } out := new(ScheduledPodScalerStatus) in.DeepCopyInto(out) return out }
[ -1.1977453231811523, -0.7255915999412537, -0.18750222027301788, 0.11176780611276627, -0.2958810329437256, -0.42684265971183777, -1.1660031080245972, -0.10171140730381012, -0.8476529121398926, -0.044069334864616394, -1.423170804977417, 0.5735049247741699, -0.14626798033714294, -0.3245858848...
func PodmanImage(ref name.Reference, options ...interface{}) (v1.Image, error) { var img v1.Image pr, pw := io.Pipe() go func() { opener := func() (io.ReadCloser, error) { return pr, nil } var err error tag := ref.(name.Digest).Tag() img, err = tarball.Image(opener, &tag) _ = pr.CloseWithError(err) }...
[ -0.775211751461029, -0.02422460913658142, 0.8644059896469116, -0.7166379690170288, -0.2576264441013336, -0.47217482328414917, -0.8871945142745972, -0.28625476360321045, -0.12472856789827347, 0.6137174963951111, 0.5069113969802856, -0.06108919903635979, -0.8654968738555908, 0.10758280009031...
func PodmanWrite(ref name.Reference, img v1.Image, opts ...tarball.WriteOption) (string, error) { pr, pw := io.Pipe() go func() { _ = pw.CloseWithError(tarball.Write(ref, img, pw, opts...)) }() // write the image in docker save format first, then load it cmd := exec.Command("sudo", "podman", "image", "load") c...
[ -0.9021454453468323, 0.09015399217605591, 0.6762086153030396, -0.4345557987689972, 0.12919394671916962, -0.6522090435028076, -0.5635790228843689, -0.06110098212957382, 0.04297146946191788, 0.17866668105125427, 0.46928611397743225, 0.09933356940746307, -0.17297130823135376, 0.54862987995147...
func GenerateTestFile(testFileName string, templateValues *TemplateValues) error { outFile, err := os.Create(testFileName) if err != nil { fmt.Printf("Error creating test file named: %s\n", testFileName) } tmpl := template.Must(template.New("out").Parse(outputTemplate)) if err := tmpl.Execute(outFile, templateVa...
[ 0.38916075229644775, 0.2750076353549957, 0.7460067272186279, -0.21015462279319763, 0.3897949457168579, 0.7107325196266174, 0.8194754123687744, 0.2572338283061981, -1.1471188068389893, -0.24048523604869843, -0.14973218739032745, -0.5794036388397217, -0.4642118215560913, 0.06375040113925934,...
func ParseFunctions(filePath string) *TemplateValues { fset := token.NewFileSet() f, err := parser.ParseFile(fset, filePath, nil, parser.ParseComments) if err != nil { log.Fatal(err) } var funcInfos []FunctionInfo packageName := fmt.Sprint(f.Name) containsMux := false for _, decl := range f.Decls { switc...
[ -0.2016579657793045, -0.01802375353872776, 0.6932389140129089, -0.3908117711544037, -0.6328904032707214, -0.6418846249580383, 0.09450037777423859, -0.06295226514339447, -0.4515966475009918, -0.4743894040584564, -0.5312666893005371, -0.5830038189888, -0.15329398214817047, 1.145086646080017,...
func (bs *basicScanner) Scan(srcIfc interface{}) error { if srcIfc == nil { // if src is null, should set dest to it's zero value. // eg. when dest is int, should set it to 0. bs.dest.Set(reflect.Zero(bs.dest.Type())) return nil } if scanner := getScanner(bs.dest.Addr()); scanner != nil { return scanner.Sc...
[ -0.7348323464393616, 0.2189362645149231, 0.5456434488296509, 0.495259165763855, -0.7987697124481201, -0.8825486898422241, -0.12591631710529327, -0.3020068407058716, -0.17629264295101166, -0.6987701654434204, -0.1194847822189331, 0.18180140852928162, 0.3568357229232788, 0.7442744374275208, ...
func getRealDest(dest reflect.Value) reflect.Value { if dest.Kind() == reflect.Interface && !dest.IsNil() { dest = dest.Elem() } for dest.Kind() == reflect.Ptr { if dest.IsNil() { dest.Set(reflect.New(dest.Type().Elem())) } dest = dest.Elem() } return dest }
[ -0.5646932721138, 0.9525822401046753, 0.5178505182266235, -0.21587137877941132, -0.2641022205352783, -0.2791409194469452, -0.48818910121917725, -0.5889372825622559, 0.3641405999660492, 0.12513762712478638, 0.12221194803714752, 0.35197702050209045, -0.10570832341909409, 0.7041285634040833, ...
func scanInt(src int64, dest reflect.Value) error { const ( minInt32 = -1 << 31 maxInt32 = 1<<31 - 1 maxUint32 = 1<<32 - 1 minInt16 = -1 << 15 maxInt16 = 1<<15 - 1 maxUint16 = 1<<16 - 1 minInt8 = -1 << 7 maxInt8 = 1<<7 - 1 maxUint8 = 1<<8 - 1 ) switch dest.Kind() { case reflect.Int64, refl...
[ -1.1363621950149536, 0.5474978089332581, 0.791030764579773, -0.5238616466522217, -0.9083325862884521, 0.18688246607780457, 0.0665121078491211, -1.0903878211975098, -0.12025749683380127, 0.043137867003679276, 0.1317751407623291, 0.5524446964263916, -0.4054867923259735, 0.5491436123847961, ...
func (podInfo *PodInfoHandler) ListPods(w http.ResponseWriter, r *http.Request, p httprouter.Params) { pods, err := podInfo.CoreClient.Pods("").List(metav1.ListOptions{}) if err != nil { log.Printf("error listing pods: %v", err) w.WriteHeader(http.StatusInternalServerError) return } log.Printf("There are %d p...
[ -1.023343801498413, -0.914832592010498, 0.5881445407867432, -0.8092842698097229, 0.9414635300636292, -0.4461909532546997, 0.09796832501888275, -0.3434143662452698, -0.08915277570486069, 0.2370169311761856, -0.26646021008491516, -0.09445809572935104, -0.030174754559993744, -0.16261780261993...
func (ShareType) EnumDescriptor() ([]byte, []int) { return file_share_distro_proto_rawDescGZIP(), []int{0} }
[ -0.27889537811279297, 0.7592324614524841, 0.6581819653511047, -0.11289959400892258, 1.1257522106170654, -0.4659461975097656, 0.8053992986679077, 0.5790640711784363, 0.14399108290672302, 0.7155655026435852, -0.11374963819980621, -0.041117582470178604, -0.2620317041873932, 1.682786226272583,...
func (*ShareDistribution) Descriptor() ([]byte, []int) { return file_share_distro_proto_rawDescGZIP(), []int{0} }
[ -0.4335056245326996, 0.6713337302207947, 0.4211553931236267, 0.06542491912841797, 0.15190939605236053, -0.23149140179157257, 1.6430690288543701, 1.0313676595687866, -0.11780539900064468, -0.19842232763767242, -0.8407902717590332, -0.17307008802890778, -0.28261709213256836, 0.78669691085815...
func NewCredentialRepository(db *pgxpool.Pool) CredentialRepository { return &repo{ DB: db, } }
[ -0.10581184923648834, -0.5227030515670776, -0.09341230243444443, -0.4962620139122009, -0.9377501606941223, 0.648265540599823, -0.5897178649902344, 0.7574304938316345, 0.2707762122154236, -0.18104031682014465, -0.23575596511363983, 0.34098610281944275, -0.470718652009964, 0.0686717554926872...
func (info *RpiInfo) GetCPUInfo() error { file, err := os.Open("/proc/cpuinfo") if err != nil { return err } defer file.Close() info.readCPUInfo(file) return nil }
[ 0.2411603331565857, -0.458383172750473, 0.5009885430335999, 0.05372537672519684, 0.28173431754112244, 0.36704784631729126, 0.41693317890167236, 0.3836146891117096, -1.5245190858840942, -0.9144119024276733, -0.5753644704818726, 0.40659016370773315, -0.7218453288078308, 0.23406127095222473, ...
func (*PbStatsSampleFeed) Descriptor() ([]byte, []int) { return file_stats_proto_rawDescGZIP(), []int{0} }
[ 0.40026435256004333, 0.6716018319129944, 0.15273325145244598, -0.5064310431480408, -0.26168832182884216, 0.3277517259120941, 0.42328518629074097, -0.14701038599014282, -0.6003661751747131, -0.789063572883606, -0.4258071780204773, 1.2780859470367432, -0.3335004448890686, 0.7968667149543762,...
func (*PbStatsSampleEntry) Descriptor() ([]byte, []int) { return file_stats_proto_rawDescGZIP(), []int{1} }
[ 0.4899713695049286, 0.5754537582397461, 0.037172831594944, -0.3301297426223755, 0.31805506348609924, 0.3497982323169708, 0.3508548140525818, -0.7021138668060303, 0.20318534970283508, -0.38521721959114075, -0.2952217757701874, 1.000251293182373, -0.17527611553668976, 1.0358057022094727, -...
func (*PbStatsSampleValue) Descriptor() ([]byte, []int) { return file_stats_proto_rawDescGZIP(), []int{2} }
[ -0.16772635281085968, 0.9304713010787964, 0.2274574637413025, -0.16810564696788788, -0.8353121876716614, 0.29792675375938416, 0.5624408721923828, -0.30537599325180054, -0.3393331468105316, -0.6073441505432129, -0.34529244899749756, 0.312022864818573, -0.010144034400582314, 1.12925863265991...
func (*PbStatsIndexList) Descriptor() ([]byte, []int) { return file_stats_proto_rawDescGZIP(), []int{3} }
[ -0.09877481311559677, 0.4313001334667206, 0.059958748519420624, 0.6679072976112366, 0.440015584230423, 0.26846256852149963, 0.20079253613948822, 0.22859133780002594, -0.6622617244720459, -1.1785629987716675, -1.1629623174667358, 0.21432653069496155, -0.6919273734092712, 1.310561180114746, ...
func (*PbStatsIndexFeed) Descriptor() ([]byte, []int) { return file_stats_proto_rawDescGZIP(), []int{4} }
[ 0.9969797134399414, 0.4087912142276764, 0.10213669389486313, 0.4358007609844208, 0.45143964886665344, 0.6427974700927734, 0.19173166155815125, 0.3596159517765045, -1.4658052921295166, -1.5107342004776, -0.1228838711977005, 1.4171611070632935, -1.3537627458572388, 0.2509303092956543, -0.4...
func NewTree(fs []SymbolFreq) Tree { // Sort frequencies sort.Sort(byFreq(fs)) wrkList := []node{} for _, f := range fs { wrkList = append(wrkList, f) } for { if len(wrkList) < 2 { break } newNode := makeNewNode(wrkList[0], wrkList[1]) wrkList = insertItem(wrkList[2:], newNode) } return Tree{w...
[ -0.1776120364665985, 0.49251070618629456, 0.5959582924842834, -0.5877758860588074, -0.7615533471107483, -0.35736367106437683, 0.051019370555877686, -0.30523282289505005, 0.37925606966018677, -0.12040809541940689, 0.41696178913116455, -0.13147222995758057, -0.6748544573783875, 0.81786018610...
func NewTreeFromBS(bs *bitstream.BitStream) Tree { root := newTreeFromBS(bs) return Tree{root: root} }
[ 0.9249086380004883, -0.5983425974845886, 0.09983041137456894, 0.6284316182136536, -1.0099736452102661, 0.2635917663574219, -0.9602433443069458, -0.46372050046920776, 0.9226978421211243, -0.05296550691127777, 0.17215688526630402, 1.22078275680542, -0.7289155721664429, 1.1489968299865723, ...
func (t Tree) Dictionary() DictionaryType { result := DictionaryType{} t.buildDictionary(result, bitstream.BitStream{}, t.root) return result }
[ -0.9404914379119873, -0.06374895572662354, 0.3154495358467102, -0.4504631459712982, -0.5595670342445374, -0.07893870025873184, 0.42724528908729553, -1.0571842193603516, -0.297189325094223, -0.2050948441028595, -0.45165887475013733, 0.39627328515052795, -0.32208651304244995, 1.9448586702346...
func (t Tree) Interpret(bs *bitstream.BitStream) byte { return t.walk(t.root, bs) }
[ -0.12688252329826355, -0.25117287039756775, 0.645043671131134, -0.49950703978538513, -0.7416236996650696, -0.05766887590289116, -0.13532061874866486, 0.40394720435142517, -0.5502843260765076, -0.520376443862915, -0.3640253245830536, 0.3888389766216278, -0.7412598133087158, 1.25828683376312...
func (t Tree) AsBitstream() bitstream.BitStream { result := bitstream.BitStream{} t.asBitstream(&result, t.root) return result }
[ 0.1291825920343399, -0.8288648724555969, 0.4605768620967865, 0.2657429575920105, -0.10073158144950867, -0.8356754183769226, -0.07940968871116638, -0.9036819338798523, 0.16093532741069794, -0.05388379469513893, 0.10439646244049072, 0.3970601260662079, -0.14286401867866516, 1.799721240997314...
func AllTypes() []Type { return []Type{TypeInt, TypeUInt, TypeFloat, TypeBool, TypeString} }
[ -0.19140256941318512, -0.3924960494041443, 0.3539271950721741, 0.9574316740036011, 0.4017542898654938, 0.5348745584487915, -0.7476047277450562, -0.639738917350769, 0.5934280753135681, -0.7628374099731445, -0.28878721594810486, 0.5135036110877991, -0.9701445698738098, 0.7167184948921204, ...
func (t Type) Valid() bool { for _, typ := range AllTypes() { if t == typ { return true } } return false }
[ -0.26366549730300903, -0.8113585710525513, 0.7088909149169922, 0.2901557981967926, -0.14903514087200165, 1.073357105255127, -0.33988770842552185, -0.12607739865779877, -0.8384725451469421, 0.6145653128623962, -0.3327396810054779, -0.16627894341945648, -0.5366317629814148, 0.143713369965553...
func (r Resources) Equal(o Resources) bool { Log.Vomit.Printf("Comparing resources: %+ v ?= %+ v", r, o) if len(r) != len(o) { Log.Vomit.Println("Lengths differ") return false } if r.Ports() != o.Ports() { Log.Vomit.Println("Ports differ") return false } if math.Abs(r.Cpus()-o.Cpus()) > 0.001 { Log.Vo...
[ 0.09850385040044785, -0.08754792809486389, 0.47568124532699585, -0.8267332911491394, 0.21422873437404633, 0.8390876650810242, 0.7158036231994629, -1.0352355241775513, -0.4217858910560608, 0.36376500129699707, -0.9872360825538635, 0.17642062902450562, -0.28239381313323975, 0.381772816181182...
func TestDecodeEncodedTRC(t *testing.T) { regularCrt := loadCert(t, "./testdata/regular-voting.crt") trc := cppki.TRC{ Version: 1, ID: cppki.TRCID{ ISD: 1, Base: 3, Serial: 4, }, Validity: cppki.Validity{ NotBefore: regularCrt.NotBefore.Add(time.Hour), NotAfter: regularCrt.NotAfter.Add(-t...
[ 0.2913767397403717, 0.1092044860124588, 0.6381943225860596, -0.7457895278930664, 0.34204474091529846, -0.0025860273744910955, 0.1969405710697174, -0.32078537344932556, -0.15360328555107117, -0.3960721790790558, -0.7121307849884033, 0.13029146194458008, -0.6331859230995178, -0.4590848684310...
func ConcatSlice(sliceToConcat []byte) string { var dummy string for index := 0; index < len(sliceToConcat)-1; index++ { dummy = dummy + string(sliceToConcat[index]) + "-" } dummy = dummy + string(sliceToConcat[len(sliceToConcat)-1]) return dummy }
[ -0.20189014077186584, -0.34919166564941406, 0.8228686451911926, 0.035374000668525696, 0.425152063369751, 0.3474038541316986, -1.296926498413086, -0.2135559618473053, 0.159152090549469, 0.5923140048980713, 0.38135790824890137, 0.5178565382957458, 0.44019174575805664, 0.3302345275878906, -...
func UseHTTPClient(client *http.Client) { httpClient = client }
[ 0.0802420899271965, -0.22317929565906525, 0.41767066717147827, -0.23069186508655548, -0.1070602759718895, 0.042772144079208374, 0.17312531173229218, -0.23909611999988556, -0.6191006898880005, -0.5380257368087769, -0.7154794335365295, 0.36085936427116394, -0.43508508801460266, 0.49410983920...
func Debug(withDebug bool) { // go won't cast bool to uint32, you better believe it var bint uint32 if withDebug { bint++ } atomic.StoreUint32(&debugMu, bint) debug("Enabled debugging") }
[ 0.7092747092247009, 1.5798399448394775, 0.4611320495605469, 0.3802281618118286, 0.17496681213378906, 0.3216606378555298, 0.03687670826911926, 0.39173558354377747, 0.34489938616752625, -0.9629102349281311, -1.0066431760787964, 0.07156655937433243, -0.7997633218765259, 0.8758150339126587, ...
func Log(msg string) { debug(msg) }
[ 0.41135719418525696, 0.9688330292701721, -0.05149168148636818, -0.04931691661477089, -0.11352317780256271, 0.07523662596940994, 0.13739997148513794, 0.4533313512802124, -0.05786577984690666, -1.3520127534866333, -0.5873284339904785, 0.5533409118652344, -0.484992653131485, 0.938213169574737...
func RegisterAction(actionFunc interface{}) { if reflect.TypeOf(actionFunc).Kind() != reflect.Func { panic("Action must be a function!") } actions[getActionKey(actionFunc)] = actionFunc }
[ -0.11333367228507996, 0.27127277851104736, 0.2063249945640564, 0.5852257013320923, 0.6714496612548828, -0.19789914786815643, 0.6856891512870789, 0.10946476459503174, 0.5525068044662476, 0.21916258335113525, -0.798969566822052, 1.4144558906555176, 0.4233296513557434, 0.17993617057800293, ...
func main() { fmt.Println("Named Return Values") lenght := 4 width := 4 aa := getArea(lenght, width) fmt.Println(aa) // lets say we receive aa from the function but we dont want to print it, we can use a blank identifier to // ignore the aa to get rid of "not used" error }
[ 0.46393415331840515, -0.7376065850257874, 0.709324300289154, -0.7047733068466187, -0.9881126880645752, -0.5786892175674438, -0.21024395525455475, -0.19808727502822876, 0.2760552763938904, -0.2810182571411133, -0.0002575874386820942, 0.25853246450424194, 0.000983468722552061, 0.645880341529...
func init() { cDir, err := os.Getwd() appDir := filepath.Dir(filepath.Dir(cDir)) os.Setenv("IMAIL_WORK_DIR", appDir) os.Chdir(appDir) if tools.IsExist(appDir + "/custom/conf/app.conf") { err = conf.Init(appDir + "/custom/conf/app.conf") if err != nil { fmt.Println("test init config fail:", err.Error()) ...
[ 0.2544056177139282, -0.004373380448669195, 0.6747813820838928, 0.3325198292732239, -0.2645558714866638, 0.7832315564155579, 0.18509942293167114, 0.6871700882911682, -0.591320276260376, 0.2265714854001999, -0.5878731608390808, 0.7130739092826843, -0.1673908829689026, 0.7991281747817993, 0...
func unionRegexp(values []string) string { if len(values) == 0 { // As a regular expression, "()" and "" are equivalent so this // condition wouldn't ordinarily be needed to distinguish these // values. But, our internal search engine assumes that "" // implies "no regexp" (no values), while "()" implies "matc...
[ -0.01482421439141035, -0.0032784712966531515, 0.5674318671226501, 0.04837090149521828, 0.5444467067718506, 0.29224011301994324, -0.17701669037342072, 0.721493661403656, 0.5571674108505249, 0.24227643013000488, 0.5313425660133362, 0.14011099934577942, -0.0676015317440033, 0.1621197611093521...
func langToFileRegexp(lang string) string { lang, _ = enry.GetLanguageByAlias(lang) // Invariant: lang is valid. extensions := enry.GetLanguageExtensions(lang) patterns := make([]string, len(extensions)) for i, e := range extensions { // Add `\.ext$` pattern to match files with the given extension. patterns[i] ...
[ 0.12811288237571716, 0.10334479808807373, 0.519517719745636, -0.39403775334358215, 0.12493754923343658, 0.136754110455513, -0.4071498513221741, 0.6541162729263306, 0.10784143209457397, 0.9270225763320923, -0.7425087094306946, -0.6007750034332275, 0.12400025129318237, 0.030461641028523445, ...
func ToTextPatternInfo(q query.Basic, p Protocol, transform query.BasicPass) *TextPatternInfo { q = transform(q) // Handle file: and -file: filters. filesInclude, filesExclude := IncludeExcludeValues(q, query.FieldFile) // Handle lang: and -lang: filters. langInclude, langExclude := IncludeExcludeValues(q, query.F...
[ -0.012949803844094276, -0.20945173501968384, 0.6259710788726807, -1.2005164623260498, -0.6672964692115784, 0.313402384519577, 0.06766264885663986, -0.38455525040626526, -0.3293216824531555, 0.15628725290298462, -0.320345014333725, -0.358182817697525, 0.18622227013111115, -0.073340475559234...
func (o *AddRemoteRDSNodeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewAddRemoteRDSNodeOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, n...
[ -0.24207505583763123, -0.003719284664839506, 0.6768637299537659, -0.39012688398361206, 0.10120143741369247, -0.6594488024711609, -0.2597195506095886, -0.4558037221431732, 0.38035085797309875, 0.42670536041259766, 0.2550325393676758, -0.09101163595914841, -0.7119534611701965, -0.19813135266...
func NewAddRemoteRDSNodeOK() *AddRemoteRDSNodeOK { return &AddRemoteRDSNodeOK{} }
[ -0.4464292824268341, 0.6710929870605469, 0.6482381224632263, -1.4044325351715088, -0.7467377185821533, 0.44593504071235657, -0.547964870929718, 0.3785485029220581, -0.7189207673072815, 0.6421502828598022, -1.135657548904419, 0.3114686906337738, 0.5382095575332642, 0.17156337201595306, -0...
func NewAddRemoteRDSNodeDefault(code int) *AddRemoteRDSNodeDefault { return &AddRemoteRDSNodeDefault{ _statusCode: code, } }
[ -0.16407783329486847, 0.7046388983726501, 0.7110353708267212, -1.2161140441894531, 0.3026762008666992, 0.1433824747800827, -0.9721012711524963, 0.14866672456264496, -0.23420080542564392, 0.20838657021522522, -1.4373819828033447, 0.43009060621261597, -0.6962354779243469, -0.2619443833827972...
func (o *AddRemoteRDSNodeDefault) Code() int { return o._statusCode }
[ -0.0427585132420063, 1.032554268836975, 0.5168901085853577, -0.25207236409187317, 0.9650585651397705, 0.47600865364074707, -0.5696731805801392, 0.4122205376625061, 0.07417894154787064, 0.39896613359451294, -0.6647403836250305, 0.11219478398561478, -0.949408769607544, 0.2812322676181793, ...
func (o *AddRemoteRDSNodeBody) Validate(formats strfmt.Registry) error { return nil }
[ 0.04482775554060936, 1.220211148262024, 0.488565593957901, -1.559228777885437, 0.7160496711730957, 1.0147229433059692, -0.6150517463684082, -0.5590596795082092, 0.2758718729019165, 0.284061074256897, -0.28453853726387024, 0.2009524703025818, -1.7339355945587158, 1.0097651481628418, -0.42...
func (o *AddRemoteRDSNodeDefaultBody) Validate(formats strfmt.Registry) error { var res []error if err := o.validateDetails(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
[ 0.20079341530799866, 1.3157124519348145, 0.6950258612632751, -0.8176511526107788, 1.0058655738830566, 0.4521169066429138, -0.5622448921203613, -1.015194296836853, -0.6474651098251343, 0.9990324378013611, -0.3785882890224457, -0.10875383764505386, -1.4717395305633545, 0.8547136783599854, ...
func (o *AddRemoteRDSNodeOKBody) Validate(formats strfmt.Registry) error { var res []error if err := o.validateRemoteRDS(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
[ 0.1443326324224472, 0.7195319533348083, 0.6584461331367493, -1.4309252500534058, 0.26215308904647827, 0.2541397511959076, -0.5076536536216736, -0.7472216486930847, -0.44205614924430847, 1.0691715478897095, 0.07699329406023026, 0.11996296048164368, -1.057631492614746, 0.8932045698165894, ...
func (o *AddRemoteRDSNodeOKBodyRemoteRDS) Validate(formats strfmt.Registry) error { return nil }
[ 0.4100540280342102, 0.7473354935646057, 0.5483123660087585, -1.9179590940475464, 0.5729141235351562, 0.7262969017028809, -1.0408655405044556, -0.22103342413902283, -0.014174793846905231, 0.5735777616500854, 0.04220204800367355, 0.4571778476238251, -1.4624872207641602, 0.4738991856575012, ...
func (o GetInfrastructureConfigurationsResultOutput) Arns() pulumi.StringArrayOutput { return o.ApplyT(func(v GetInfrastructureConfigurationsResult) []string { return v.Arns }).(pulumi.StringArrayOutput) }
[ -0.6628227829933167, 0.4178345799446106, 0.3973349630832672, 0.5400775671005249, 1.5034061670303345, -0.12014295905828476, 0.20617151260375977, -0.37675240635871887, 0.34255966544151306, -0.4979711174964905, -0.5000073313713074, 0.581322431564331, 0.5114678144454956, -0.35759350657463074, ...
func (o GetInfrastructureConfigurationsResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v GetInfrastructureConfigurationsResult) string { return v.Id }).(pulumi.StringOutput) }
[ -0.050900280475616455, 0.3514300584793091, 0.37108033895492554, 0.3068220019340515, 0.4704800248146057, 0.5987751483917236, 0.8754547238349915, 0.026314297690987587, 0.6006069183349609, -0.2911420166492462, -0.24482150375843048, -0.45662790536880493, -0.7676802277565002, -0.829984128475189...
func (o GetInfrastructureConfigurationsResultOutput) Names() pulumi.StringArrayOutput { return o.ApplyT(func(v GetInfrastructureConfigurationsResult) []string { return v.Names }).(pulumi.StringArrayOutput) }
[ -1.0417910814285278, 0.6226916313171387, 0.421750009059906, 0.17236407101154327, 0.5841113328933716, 0.23240645229816437, 0.17959368228912354, -0.780196487903595, 0.0728776827454567, 0.08004379272460938, -1.0121790170669556, -0.37514105439186096, 0.1268179565668106, -0.033269718289375305, ...
func wsMessage(w http.ResponseWriter, r *http.Request) { // Get session, continue only if authenticated sok, vok := checkLogin(r, cfgMap["session name"], "user") if !sok || !vok { http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError) return } cc := make(chan bool) ...
[ -0.7741290330886841, -0.7006282210350037, 0.7882089614868164, -0.02224287949502468, 0.14838452637195587, -0.2812901437282562, 0.742037296295166, -1.418969988822937, 0.3212580680847168, 1.1105200052261353, 0.33533182740211487, 0.22139199078083038, -0.390553742647171, 0.6419849395751953, -...
func wsChanSend() { log.Println("wschan running...") i := 1 for { // send stuff to clients // TODO: solve multiple clients connecting wsChan <- "test: " + strconv.Itoa(i) i++ } }
[ -0.17762331664562225, -0.70774906873703, 0.34205886721611023, -0.07951091974973679, 0.5352297425270081, -0.04427178576588631, 0.7814642190933228, -1.043736219406128, -0.4231458008289337, -0.3129674792289734, -0.7663289904594421, 1.0300315618515015, -0.0990578681230545, 0.6094363927841187, ...
func (b *Bootstrap) Bootstrap(hostname string) error { log.Infof("Mounting proc") if err := syscall.Mount("none", "/proc", "proc", 0, ""); err != nil { return err } if err := syscall.Mount("none", "/dev", "devtmpfs", 0, ""); err != nil { return err } if err := syscall.Mount("none", "/dev/pts", "devpts", 0, ...
[ 0.3966641128063202, 0.1263321340084076, 0.8408495783805847, 0.5441575050354004, 0.8796259164810181, -0.0980868712067604, 0.6843743920326233, 0.08691389858722687, -0.5171408653259277, 0.27071332931518555, -0.22276154160499573, 0.6259365081787109, -0.44943830370903015, 1.3775708675384521, ...
func NewQuotaRateLimit(ctx *pulumi.Context, name string, args *QuotaRateLimitArgs, opts ...pulumi.ResourceOption) (*QuotaRateLimit, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Rate == nil { return nil, errors.New("invalid value for required argument 'Rat...
[ -0.0350508913397789, 0.6729574203491211, 0.3975929319858551, -0.17683200538158417, -0.34738609194755554, 0.36962538957595825, -1.1072243452072144, -0.5996173024177551, 0.19113193452358246, 0.795020341873169, -0.583196759223938, 0.33504223823547363, -0.21792390942573547, -1.5196479558944702...
func GetQuotaRateLimit(ctx *pulumi.Context, name string, id pulumi.IDInput, state *QuotaRateLimitState, opts ...pulumi.ResourceOption) (*QuotaRateLimit, error) { var resource QuotaRateLimit err := ctx.ReadResource("vault:index/quotaRateLimit:QuotaRateLimit", name, id, state, &resource, opts...) if err != nil { re...
[ 0.30635926127433777, 0.14253953099250793, 0.29377326369285583, -0.043885860592126846, -0.48906293511390686, -0.06736953556537628, -1.2325904369354248, -1.0965137481689453, 1.153403639793396, 0.5277630090713501, -0.13348424434661865, 1.1802996397018433, -0.10813271999359131, -2.358949184417...
func (o QuotaRateLimitOutput) BlockInterval() pulumi.IntPtrOutput { return o.ApplyT(func(v *QuotaRateLimit) pulumi.IntPtrOutput { return v.BlockInterval }).(pulumi.IntPtrOutput) }
[ 0.6141155362129211, -0.07046838104724884, 0.46097469329833984, 0.24791951477527618, -0.31120172142982483, 1.1941509246826172, -0.1662822663784027, -0.16875751316547394, -0.2442125529050827, 0.20532077550888062, -0.3592046797275543, 0.8793674111366272, -0.8597283363342285, -1.70838582515716...
func (o QuotaRateLimitOutput) Interval() pulumi.IntOutput { return o.ApplyT(func(v *QuotaRateLimit) pulumi.IntOutput { return v.Interval }).(pulumi.IntOutput) }
[ 0.39647531509399414, -0.12342730164527893, 0.17170922458171844, -0.022168250754475594, -0.2168605625629425, 1.3326879739761353, -0.6098439693450928, 0.16828323900699615, 0.074186310172081, -0.01888800598680973, -0.25045517086982727, 1.0524682998657227, -0.23708780109882355, -1.991542458534...
func (o QuotaRateLimitOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *QuotaRateLimit) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) }
[ 0.5878922939300537, -0.37726157903671265, 0.3675127327442169, -0.44961845874786377, -1.055045485496521, 0.892243504524231, -0.598099946975708, -0.2576996088027954, 0.010650393553078175, 0.8512051701545715, -0.43754568696022034, 0.9236876964569092, 0.7081351280212402, -2.1895689964294434, ...
func (o QuotaRateLimitOutput) Namespace() pulumi.StringPtrOutput { return o.ApplyT(func(v *QuotaRateLimit) pulumi.StringPtrOutput { return v.Namespace }).(pulumi.StringPtrOutput) }
[ 0.999061644077301, -0.14492902159690857, 0.18602904677391052, -0.35000595450401306, -0.3987540006637573, 0.6113726496696472, -0.6554268002510071, -0.5026174187660217, 1.5512542724609375, -0.33848756551742554, 0.08059672266244888, 1.3655904531478882, 0.3947550058364868, -1.8002592325210571,...
func (o QuotaRateLimitOutput) Path() pulumi.StringPtrOutput { return o.ApplyT(func(v *QuotaRateLimit) pulumi.StringPtrOutput { return v.Path }).(pulumi.StringPtrOutput) }
[ 1.047831416130066, -0.025503916665911674, 0.2336760312318802, -0.020523684099316597, -0.271293967962265, 1.2539912462234497, 0.17858900129795074, 0.15102045238018036, 0.5428703427314758, 0.004632905125617981, 0.5088184475898743, 0.620959997177124, 0.04254993051290512, -2.308635950088501, ...
func (o QuotaRateLimitOutput) Rate() pulumi.Float64Output { return o.ApplyT(func(v *QuotaRateLimit) pulumi.Float64Output { return v.Rate }).(pulumi.Float64Output) }
[ 0.8323045372962952, 0.6342861652374268, 0.0789283737540245, -0.04071250185370445, 0.40755802392959595, 0.20451828837394714, -0.7536413073539734, 0.3715316951274872, 0.5702906250953674, 0.24792341887950897, 0.5723378658294678, 0.47647160291671753, -0.0077273123897612095, -1.8411091566085815...
func NewEC2RemoteClient(InstanceID *string, credentials *sshCmdClient.SSHCredentials) (*EC2RemoteClient, error) { ins := new(EC2RemoteClient) ins.InstanceID = *InstanceID session, err := session.NewSession() if err != nil { return nil, err } ec2Client := ec2.New(session) ins.session = session ins.ec2Client...
[ -0.5632880330085754, -1.6558499336242676, 0.23398654162883759, -0.7881873250007629, -0.8442103862762451, 0.8748458027839661, -0.5793476104736328, -0.0923067256808281, -0.4613721966743469, 0.009125522337853909, -1.3831536769866943, 1.4836180210113525, -0.25601187348365784, -0.19687545299530...
func (ins *EC2RemoteClient) Close() error { return ins.cmdClient.Close() }
[ -0.8349425196647644, -0.8612182140350342, 0.412584513425827, -0.5915662050247192, -0.44948527216911316, 1.2082254886627197, 0.17312976717948914, -0.8298569321632385, -1.379364013671875, -0.6367563009262085, 0.16181056201457977, 0.6012588739395142, -0.9161142706871033, -0.16156408190727234,...
func (ins *EC2RemoteClient) startInstance() error { log.Printf("Starting EC2 Instance %s", ins.InstanceID) _, err := ins.ec2Client.StartInstances(&ec2.StartInstancesInput{InstanceIds: aws.StringSlice([]string{ins.InstanceID})}) if err != nil { return fmt.Errorf("Error starting instance : %s", err) } log.Printf("...
[ -1.5909934043884277, -0.45544108748435974, 0.501502275466919, -1.2562440633773804, -0.399265855550766, 1.2134770154953003, 0.08616920560598373, 0.8504669666290283, -0.2832491993904114, 0.4474777281284332, -0.08183317631483078, 0.7759725451469421, -0.41847267746925354, 0.3311927318572998, ...
func (ins *EC2RemoteClient) getIPAddress() error { result, err := ins.ec2Client.DescribeInstances(&ec2.DescribeInstancesInput{InstanceIds: aws.StringSlice([]string{ins.InstanceID})}) if err != nil { return fmt.Errorf("Error getting instance details : %s", err) } ins.instanceIP = net.ParseIP(*result.Reservations[0...
[ -1.1163592338562012, -0.11196674406528473, 0.739200234413147, -0.7286137938499451, 0.3375660181045532, -0.06513115763664246, 0.07484408468008041, 1.0006906986236572, -0.21665488183498383, 0.3901333510875702, 0.0008313355501741171, 1.1909875869750977, -0.4566102623939514, -0.834963798522949...
func (ins *EC2RemoteClient) makeReady() error { // Check Instance is running - will error if instance doesn't exist result, err := ins.ec2Client.DescribeInstanceStatus(&ec2.DescribeInstanceStatusInput{InstanceIds: aws.StringSlice([]string{ins.InstanceID})}) if err != nil { return fmt.Errorf("Error getting instanc...
[ -0.837299644947052, -0.03312717378139496, 0.8810340762138367, -0.9707573652267456, 0.27920499444007874, 0.4997342824935913, -0.31042441725730896, -0.27867183089256287, -0.35718339681625366, -0.6188181638717651, 0.4205431044101715, 0.9905670881271362, 0.5164361000061035, -0.2005022168159485...
func (ins *EC2RemoteClient) RunCommand(cmd string) (exitStatus int, err error) { exitStatus, err = ins.cmdClient.RunCommand(cmd) return exitStatus, err }
[ -1.6030112504959106, -0.5239416360855103, 0.7705870270729065, -0.33515965938568115, -0.1217668354511261, 1.5188405513763428, -0.0848885178565979, 0.46671226620674133, -0.2344738394021988, -0.1871570497751236, -0.7030513882637024, 0.9324864745140076, -0.7128474116325378, -0.1485435217618942...
func (ins *EC2RemoteClient) RunCommandWithOutput(cmd string) (exitStatus int, stdoutBuf bytes.Buffer, stderrBuf bytes.Buffer, err error) { exitStatus, stdoutBuf, stderrBuf, err = ins.cmdClient.RunCommandWithOutput(cmd) return exitStatus, stdoutBuf, stderrBuf, err }
[ -0.7472538352012634, -1.5378222465515137, 0.6968436241149902, -0.34823349118232727, -0.6636301875114441, 0.36472639441490173, 0.31050416827201843, -0.736967146396637, -0.6776236891746521, -0.3187045454978943, -0.5757952928543091, -0.31059718132019043, -0.14845925569534302, 0.34582561254501...
func (ins *EC2RemoteClient) BackgroundCommand(cmd string, discardOutput bool) (int, error) { exitStatus, err := ins.cmdClient.BackgroundCommand(cmd, discardOutput) return exitStatus, err }
[ 0.21998557448387146, -0.19033682346343994, 0.8419845700263977, -0.09540240466594696, -0.2224840372800827, 0.619932234287262, 0.519304633140564, 0.218024343252182, -0.41070976853370667, 0.03033616952598095, -0.3546888530254364, 0.7640913724899292, -1.3456659317016602, -0.15022747218608856, ...
func (ins *EC2RemoteClient) CopyFile(source string, destination string) error { err := ins.cmdClient.CopyFile(source, destination) return err }
[ -0.02862580120563507, 0.35810157656669617, 0.3044612407684326, -0.4234185218811035, 0.13608872890472412, 1.323244571685791, -0.27171093225479126, 0.18716935813426971, -1.5679402351379395, 0.3161061704158783, -0.028954286128282547, 0.29445862770080566, 0.32770201563835144, -0.93271279335021...