text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (r *KubeCover) tryUpdateConnection(cx *gin.Context) error { // step: dial the kubernetes endpoint tlsConn, err := tryDialEndpoint(r.upstream) if err != nil { return err } defer tlsConn.Close() // step: we need to hijack the underlining client connection clientConn, _, err := cx.Writer.(http.Hijacker).Hij...
[ -0.6157740354537964, -0.5975337028503418, 1.0650672912597656, -0.007376278284937143, -0.37325289845466614, 0.2459120899438858, -0.28428077697753906, -0.4108582139015198, -0.6024705171585083, 0.3826262354850769, 0.6222350597381592, 0.07849287241697311, -0.20179861783981323, 0.34907630085945...
func NewRecordTable(name string, d sqlapi.SqlDB) RecordTable { if name == "" { name = "records" } var constraints constraint.Constraints return RecordTable{ name: sqlapi.TableName{Name: name}, db: d, constraints: constraints, ctx: context.Background(), pk: "id", lgr: ...
[ 0.2344345897436142, 0.7082735300064087, 0.4447280466556549, -0.1772310882806778, -0.6782111525535583, -0.32511794567108154, -0.18403656780719757, -0.349704384803772, 0.05673578009009361, 0.3497903645038605, -0.6131644248962402, 0.08431412279605865, -0.7559430003166199, 0.2781798839569092, ...
func CopyTableAsRecordTable(origin sqlapi.Table) RecordTable { return RecordTable{ name: origin.Name(), db: origin.DB(), constraints: nil, ctx: origin.Ctx(), pk: "id", lgr: origin.Logger(), di: origin.Dialect(), } }
[ -0.2911019027233124, 0.015940839424729347, 0.6156373023986816, 0.09273135662078857, -1.0624161958694458, 0.35282716155052185, 0.09498924762010574, -0.32720962166786194, 0.17477431893348694, 0.6372723579406738, -0.16201172769069672, 0.5553503036499023, 0.34167805314064026, 0.133410349488258...
func (tbl RecordTable) SetPkColumn(pk string) RecordTable { tbl.pk = pk return tbl }
[ 0.3577577471733093, -0.2152695655822754, 0.4634319841861725, 0.784602701663971, -0.3752433657646179, 0.46194708347320557, 1.5093177556991577, 0.323927640914917, -0.8058553338050842, -0.08862870186567307, -1.1612837314605713, 0.13134391605854034, 0.095333531498909, 0.23128122091293335, -1...
func (tbl RecordTable) WithPrefix(pfx string) RecordTable { tbl.name.Prefix = pfx return tbl }
[ 0.6781492829322815, 0.3456609845161438, 0.6349863409996033, 0.23449282348155975, -0.7977930307388306, -0.41619768738746643, 0.18737396597862244, 0.01993718557059765, -0.2944281995296478, 0.2659287452697754, -0.10240790992975235, 0.34417781233787537, 1.175389051437378, 0.33182892203330994, ...
func (tbl RecordTable) WithContext(ctx context.Context) RecordTable { tbl.ctx = ctx return tbl }
[ 0.5343883633613586, 0.358644038438797, 0.6782008409500122, 0.3239399194717407, -0.7941358685493469, 0.318794846534729, 0.5289883613586426, -0.6332821249961853, 0.18745940923690796, 0.23970085382461548, -0.182708278298378, 0.4793536365032196, -0.08182014524936676, -0.519304096698761, -1.3...
func (tbl RecordTable) Logger() sqlapi.Logger { return tbl.lgr }
[ 0.14791621267795563, 0.35130611062049866, 0.3229720890522003, -0.09164216369390488, 0.2146935611963272, 0.2815823256969452, -0.004924301989376545, 0.37047359347343445, -0.5960813760757446, -0.29517993330955505, 0.3063226044178009, -0.2954201400279999, -0.25034889578819275, 1.42797529697418...
func (tbl RecordTable) WithConstraint(cc ...constraint.Constraint) RecordTable { tbl.constraints = append(tbl.constraints, cc...) return tbl }
[ 0.7145790457725525, 0.10290050506591797, 0.5349202156066895, 0.5022576451301575, -0.3088931441307068, -0.02626248635351658, 0.3627520501613617, -0.7572759389877319, -0.503788411617279, 0.2088773548603058, -0.21688517928123474, -0.07656582444906235, 0.2767019271850586, -0.4669470191001892, ...
func (tbl RecordTable) Constraints() constraint.Constraints { return tbl.constraints }
[ 0.154067263007164, -0.46264272928237915, 0.2587500810623169, 0.8221790194511414, -0.04513882100582123, 0.0842985287308693, 0.8330745100975037, -0.40421295166015625, -0.22202110290527344, -0.0012783479178324342, -0.3767465054988861, -0.17121613025665283, -0.27122458815574646, -0.31767296791...
func (tbl RecordTable) Ctx() context.Context { return tbl.ctx }
[ 0.7503231167793274, 0.12231850624084473, 0.30262279510498047, 0.8799967765808105, -0.22081436216831207, 1.1509358882904053, 0.33026155829429626, 0.2773471176624298, -0.043803438544273376, -0.24684977531433105, 0.20600496232509613, 0.6851831078529358, 0.6453142762184143, -0.3569875955581665...
func (tbl RecordTable) Dialect() driver.Dialect { return tbl.di }
[ 0.3927707374095917, -0.6363636255264282, 0.4618980288505554, 0.9889099597930908, 0.05129202455282211, 0.01988171972334385, 1.2000453472137451, 0.8301505446434021, 0.33905455470085144, -0.5154168605804443, 0.95456862449646, 0.10599924623966217, 0.23087015748023987, 0.1351972371339798, 0.6...
func (tbl RecordTable) Name() sqlapi.TableName { return tbl.name }
[ 0.3210272789001465, -0.020524343475699425, 0.6456305980682373, 1.0319703817367554, -0.6908275485038757, 0.15896368026733398, 0.6340603232383728, -0.2060471773147583, -0.9228039979934692, 0.9098023772239685, -0.5555316209793091, -0.1416569948196411, 0.22765694558620453, 0.13795223832130432,...
func (tbl RecordTable) PkColumn() string { return tbl.pk }
[ 0.7277754545211792, -0.22059667110443115, 0.2971342206001282, 0.7094513773918152, 0.29463303089141846, 0.5369579792022705, 1.8566715717315674, 0.38530588150024414, -0.9873751997947693, -0.3035900294780731, -0.27184388041496277, 0.1656070351600647, 0.20917239785194397, -0.18318581581115723,...
func (tbl RecordTable) DB() sqlapi.SqlDB { return tbl.db.(sqlapi.SqlDB) }
[ 0.18635313212871552, 0.16171392798423767, 0.20405779778957367, 1.7171992063522339, 0.014092299155890942, 0.45149606466293335, 0.142208069562912, -0.3070373833179474, 0.4528830051422119, -0.37362027168273926, 0.7538464665412903, 0.20868629217147827, -0.15901552140712738, 0.15332122147083282...
func (tbl RecordTable) Execer() sqlapi.Execer { return tbl.db }
[ 0.7605810165405273, -0.057509951293468475, 0.2590627074241638, 0.7175116539001465, -0.6586189866065979, 0.41538217663764954, 0.32617029547691345, 0.6993475556373596, -0.054323699325323105, -0.7556720972061157, 0.8505122065544128, -0.09508703649044037, 0.05158214643597603, 0.889280378818512...
func (tbl RecordTable) Tx() sqlapi.SqlTx { return tbl.db.(sqlapi.SqlTx) }
[ 0.419516384601593, 0.7126160860061646, 0.2995237708091736, 0.24470609426498413, -0.2870030105113983, 0.2398940473794937, -0.6391336917877197, 0.04421541839838028, 0.44265785813331604, 0.11254532635211945, -0.3774375021457672, -0.1846332848072052, -0.010206086561083794, -0.9688038229942322,...
func (tbl RecordTable) IsTx() bool { return tbl.db.IsTx() }
[ 0.19487722218036652, 0.8705403804779053, 0.334959477186203, 0.4108700156211853, -0.26819077134132385, 0.07920964062213898, -0.31323978304862976, 0.6719197034835815, 0.30073457956314087, 0.4970463514328003, -0.7261865139007568, -0.39373624324798584, -0.6508280038833618, -0.3140527307987213,...
func (tbl RecordTable) Using(tx sqlapi.SqlTx) RecordTable { tbl.db = tx return tbl }
[ 0.7008765935897827, 0.8940927982330322, 0.5494916439056396, 0.10006117820739746, 0.027929112315177917, 0.020320437848567963, 0.2220158874988556, -0.15759983658790588, -0.11862540990114212, 0.2508825659751892, 0.13029442727565765, 0.12181128561496735, -0.0696074441075325, -0.145452022552490...
func (tbl RecordTable) Query(query string, args ...interface{}) (sqlapi.SqlRows, error) { return support.Query(tbl, query, args...) }
[ 0.3038293123245239, 0.3892351984977722, 0.3633630871772766, 0.7843542695045471, -0.339516282081604, -0.34835776686668396, -0.4042136073112488, 0.9220536351203918, -0.03168908506631851, -0.026458267122507095, 0.0010347635252401233, -0.05745096504688263, -0.44585034251213074, 0.3118491470813...
func (tbl RecordTable) QueryOneNullString(req require.Requirement, query string, args ...interface{}) (result sql.NullString, err error) { err = support.QueryOneNullThing(tbl, req, &result, query, args...) return result, err }
[ -0.32398611307144165, -0.39226004481315613, 0.5487642288208008, 0.11702277511358261, -0.4142448902130127, -0.12537410855293274, -0.2573276460170746, -0.7293376326560974, 0.4784080982208252, -0.019455350935459137, 0.48074886202812195, 0.38726168870925903, -0.30940380692481995, 0.67091095447...
func (tbl RecordTable) QueryOneNullInt64(req require.Requirement, query string, args ...interface{}) (result sql.NullInt64, err error) { err = support.QueryOneNullThing(tbl, req, &result, query, args...) return result, err }
[ -0.7288565635681152, -0.004588650073856115, 0.40415284037590027, 0.6247081756591797, -0.4323921799659729, -0.540393054485321, -0.1470491737127304, -0.30434200167655945, 0.4024946391582489, 0.07995354384183884, 0.28310513496398926, 0.07578999549150467, -0.8111541867256165, 0.990788459777832...
func (tbl RecordTable) QueryOneNullFloat64(req require.Requirement, query string, args ...interface{}) (result sql.NullFloat64, err error) { err = support.QueryOneNullThing(tbl, req, &result, query, args...) return result, err }
[ -0.5746089220046997, 0.2518807649612427, 0.540277898311615, 0.9056875109672546, -0.1338789165019989, -0.853620171546936, 0.35188984870910645, -0.6576284170150757, 0.47773870825767517, -0.46161603927612305, 0.470973402261734, 0.07789251208305359, -1.0887848138809204, 1.4435416460037231, -...
func New(out io.Writer) *Writer { return &Writer{ bottomPad: DEFAULT_BOTTOM_PAD, width: DEFAULT_TABLE_WIDTH, cols: make([]colSpec, 0, 8), output: out, buf: bytes.NewBuffer(make([]byte, 0, 64)), filledcols: false, } }
[ -0.15708984434604645, 0.31670472025871277, 0.2948385775089264, 0.3992356061935425, -0.5255984663963318, -0.7808130383491516, 0.3843524158000946, -0.5896497368812561, -0.9926599264144897, -0.24004311859607697, -0.07007812708616257, -0.46612420678138733, 0.8055352568626404, 0.535318493843078...
func (w *Writer) SetBottomPadding(p int) { w.bottomPad = p }
[ -0.7089123129844666, 0.42339587211608887, 0.4893931746482849, -0.021436195820569992, 0.32716622948646545, 0.18862566351890564, 0.6697339415550232, -0.5585600733757019, 0.02518629841506481, -0.22214484214782715, -0.8253719210624695, 0.3569241464138031, -1.4407604932785034, 0.358261525630950...
func (w *Writer) SetTableWidth(wid int) { w.width = wid }
[ -0.19196103513240814, -0.18834511935710907, 0.4287169277667999, 0.5729357600212097, -0.24667321145534515, -0.023081107065081596, 0.7481145858764648, -0.08080203086137772, -0.44995805621147156, -0.07596252858638763, -0.08883166313171387, 0.06706402450799942, -0.28236380219459534, 1.12563717...
func (w *Writer) AddColumn(rightPad, width int) { w.cols = append(w.cols, colSpec{rightPad, width}) }
[ -0.2134150117635727, -0.5469740629196167, 0.4409680962562561, 0.07316447049379349, 0.5241594314575195, 0.21893301606178284, 0.10935360938310623, 0.11357349902391434, -0.0035011463332921267, -1.2523833513259888, -0.7959576845169067, -0.2686413526535034, 0.40790829062461853, 0.74183636903762...
func (w *Writer) Write(b []byte) (written int, err error) { if !w.filledcols { if err = w.fillColSpecs(); err != nil { return } w.filledcols = true } if _, err = w.buf.Write(b); err != nil { return } var row string var n int for { row, err = w.buf.ReadString('\n') if err == io.EOF { err = nil...
[ -0.40742361545562744, 0.7767671942710876, 0.6264380812644958, -0.024676721543073654, 0.6349965333938599, -0.7494282722473145, 1.1509641408920288, 0.1740020215511322, -0.3848819136619568, 0.1846756637096405, -0.4615406394004822, -0.5056777000427246, -0.3933795392513275, 0.9294891357421875, ...
func NewInfoPage(p *BoardPage, listIdx, taskIdx int) tview.Primitive { task, err := p.data.GetTask(listIdx, taskIdx) if err != nil { app.Stop() log.Fatal(err) } info := tview.NewModal(). SetText(fmt.Sprintf("Task: %v\n Task Description: %v", task.ItemName, task.ItemDescription)). SetBackgroundColor(theme.Pr...
[ -0.012617683969438076, 0.007372292224317789, 0.7376188039779663, -0.31837907433509827, -0.1331104040145874, 0.37211862206459045, -0.28049349784851074, 0.011643319390714169, -0.19239574670791626, 1.242829442024231, 0.22067424654960632, -0.0846906378865242, -0.027373598888516426, 1.112612009...
func TestTokenCreateHandler2(t *testing.T) { app, trx, down, err := models.NewAppForTest(nil, t) assert.Nil(t, err) defer down(t) testDBConn = trx router := Routers() w := httptest.NewRecorder() api := buildRoute(config.DefaultConfig.HTTP.APIPrefix, "/token/create") body := fmt.Sprintf("appUid=%s&nonce=%s", ap...
[ -0.30830904841423035, 0.16472385823726654, 0.7755200266838074, 0.08381442725658417, 0.3831113874912262, 0.6119306087493896, -0.04138323664665222, 0.22487306594848633, -0.8120915293693542, -0.5285528302192688, -0.86368328332901, -0.4770614504814148, 0.5535142421722412, 0.4098209738731384, ...
func TestTokenCreateHandler3(t *testing.T) { app, trx, down, err := models.NewAppForTest(nil, t) assert.Nil(t, err) defer down(t) testDBConn = trx router := Routers() w := httptest.NewRecorder() api := buildRoute(config.DefaultConfig.HTTP.APIPrefix, "/token/create") expiredAt := time.Now().Add(10 * time.Hour) ...
[ -0.1796310395002365, -0.043143294751644135, 0.7672678828239441, 0.035726021975278854, 0.3051186203956604, 0.7674669027328491, -0.2870400547981262, 0.38854989409446716, -0.49225637316703796, -0.32362285256385803, -1.0230498313903809, -0.44826579093933105, 0.5222006440162659, 0.1406124979257...
func TestTokenCreateHandler4(t *testing.T) { app, trx, down, err := models.NewAppForTest(nil, t) assert.Nil(t, err) defer down(t) ctx, _ := gin.CreateTestContext(httptest.NewRecorder()) bw := &bodyWriter{ResponseWriter: ctx.Writer, body: bytes.NewBufferString("")} ctx.Writer = bw ctx.Set("db", trx) ctx.Set("ap...
[ 0.3104434609413147, 0.0797828808426857, 0.6706689596176147, 0.37621793150901794, 0.45475372672080994, 1.0748883485794067, 0.2568475902080536, -0.06666406244039536, -0.25209465622901917, -0.7235397696495056, -0.30998510122299194, -0.42451736330986023, -0.12425730377435684, 0.239473372697830...
func RetryKVClient(c *Client) pb.KVClient { retryWrite := &retryWriteKVClient{pb.NewKVClient(c.conn), c.retryWrapper} return &retryKVClient{&retryWriteKVClient{retryWrite, c.retryAuthWrapper}} }
[ 0.5267003178596497, -0.6214922666549683, 0.22647316753864288, 0.8010598421096802, -0.5041791796684265, 0.0460795983672142, -0.31681811809539795, -0.2658595144748688, 0.22712251543998718, -0.21500864624977112, 0.4789753258228302, 0.44888386130332947, -0.9108496308326721, -0.8854702115058899...
func RetryLeaseClient(c *Client) pb.LeaseClient { retry := &retryLeaseClient{pb.NewLeaseClient(c.conn), c.retryWrapper} return &retryLeaseClient{retry, c.retryAuthWrapper} }
[ 0.9223027229309082, -0.9907529950141907, 0.42544662952423096, -0.35261574387550354, -0.3947250247001648, 0.5356321334838867, -0.4746542274951935, -0.047555889934301376, 0.689690351486206, -0.6588544845581055, -0.6096773743629456, 0.48776450753211975, -1.4206002950668335, -0.409574747085571...
func RetryClusterClient(c *Client) pb.ClusterClient { return &retryClusterClient{pb.NewClusterClient(c.conn), c.retryWrapper} }
[ 0.5002210140228271, -0.40275248885154724, 0.08509965240955353, 0.8432533144950867, -0.43802836537361145, 0.38008958101272583, 0.6273235082626343, -0.05763811990618706, 0.054650623351335526, -0.09560420364141464, -0.22522413730621338, 1.1599841117858887, -1.1527537107467651, -1.162301778793...
func RetryAuthClient(c *Client) pb.AuthClient { return &retryAuthClient{pb.NewAuthClient(c.conn), c.retryWrapper} }
[ 0.40724244713783264, -0.82978355884552, 0.17723284661769867, 0.9769597053527832, -0.8716756105422974, 0.8194928169250488, 0.4921983778476715, -0.0329134501516819, 0.6310181617736816, -0.9172430038452148, -0.2976337671279907, 0.9088948369026184, -0.8588827848434448, -1.248591661453247, 0....
func (self *KSTestFingerprint) calcThreshold(othr *KSTestFingerprint) float64 { c := confidenceMappings[self.confidence] n := float64(len(self.edf)) m := float64(len(othr.edf)) return c * math.Sqrt((n+m)/(n*m)) }
[ 0.4869789779186249, 0.47240474820137024, 0.18778353929519653, -0.3417227268218994, -0.20866698026657104, 0.6110479831695557, -0.07802308350801468, 0.35945942997932434, 0.021915262565016747, 0.1525852084159851, -0.03132472559809685, -0.21499212086200714, -1.343669056892395, 0.10921805351972...
func calcD(f1, f2 []float64) float64 { D := 0.0 n := len(f1) m := len(f2) i := 0 j := 0 for i < n && j < m { for i < n && j < m && f1[i] < f2[j] { i++ } for i < n && j < m && f1[i] > f2[j] { j++ } for i < n && j < m && f1[i] == f2[j] { i++ j++ } cdf1 := float64(i) / float64(n) cdf2 := ...
[ 0.5541096925735474, 0.34213101863861084, 1.0918697118759155, 0.3219745457172394, -0.9386881589889526, 0.6372452974319458, -0.04240768402814865, -0.028430461883544922, -1.153123140335083, -0.3732915222644806, 0.6453585624694824, 0.3299929201602936, -0.040030937641859055, 0.8250823020935059,...
func NewSPI(devicePath string, nrOfLEDs int, fixSPI bool) ConnectionSPI { logFields := log.Fields{"package": logPkg, "conn": "SPI", "func": "NewSPI"} if _, err := host.Init(); err != nil { log.Fatal(err) } hz := physic.Hertz * 2400000 log.WithFields(logFields).Infof("Open spi-dev '%s' with max speed '%v'",...
[ 0.05197575315833092, -0.33786845207214355, 0.6672284007072449, 0.5272786617279053, -0.937432050704956, -0.4518125057220459, 0.1249879002571106, 0.2828821837902069, 0.17215780913829803, 0.250933438539505, -0.019847188144922256, -0.3085925877094269, -0.5002492070198059, -0.2010856717824936, ...
func (c *ConnectionSPI) Render(pixels []RGBPixel) { logFields := log.Fields{"package": logPkg, "conn": "SPI", "func": "RenderLEDs"} log.WithFields(logFields).Infof("Render %d LEDs", len(pixels)) // Fix for Raspberry Pi 3 Model B+ (5.15.84-v7+) // Data signal seems to be splitted sending less than 11 LEDS if l...
[ -0.4255531132221222, 0.572464644908905, 0.6385440230369568, -0.37626883387565613, 0.3799794018268585, 0.6855457425117493, -0.8941342830657959, 0.1959138959646225, 0.5317370295524597, 0.8603283166885376, -0.40706631541252136, -0.0651339590549469, -1.1025991439819336, 0.48629528284072876, ...
func (c *ConnectionSPI) Exit() { logFields := log.Fields{"package": logPkg, "conn": "SPI", "func": "Exit"} log.WithFields(logFields).Warn("Exit") c.Clear() c.Close() }
[ 0.35061129927635193, 0.44178128242492676, 0.21088217198848724, -0.010635963641107082, 0.10296265035867691, 0.2697315216064453, -0.28889670968055725, 0.4077107310295105, -0.4427667558193207, 0.5704323053359985, -0.39392879605293274, -0.18093927204608917, -0.4648365378379822, 0.7398329973220...
func NewSync(opts ...Option) Sync { options := Options{} for _, o := range opts { o(&options) } return &memorySync{ options: options, locks: make(map[string]*memoryLock), } }
[ 1.0639547109603882, -0.22266153991222382, 0.435859739780426, 0.9643908143043518, -1.0902763605117798, -0.8387070298194885, 0.24444319307804108, -0.7770945429801941, 0.28593751788139343, 0.30160367488861084, 0.15930460393428802, 0.660727322101593, 0.15855935215950012, -0.15870925784111023, ...
func (s *TemplateService) NewCopyTemplateParams(id string) *CopyTemplateParams { p := &CopyTemplateParams{} p.p = make(map[string]interface{}) p.p["id"] = id return p }
[ -1.0280447006225586, -0.5890308618545532, 0.41290029883384705, 0.12399957329034805, -1.596781611442566, 0.19446134567260742, -0.3757126033306122, 0.5442290902137756, -0.3187182545661926, 0.9457843899726868, -0.9043512344360352, 0.4326230585575104, -0.05830902233719826, 0.7478913068771362, ...
func (s *TemplateService) CopyTemplate(p *CopyTemplateParams) (*CopyTemplateResponse, error) { resp, err := s.cs.newRequest("copyTemplate", p.toURLValues()) if err != nil { return nil, err } var r CopyTemplateResponse if err := json.Unmarshal(resp, &r); err != nil { return nil, err } // If we have a async ...
[ -1.1989994049072266, 0.15476632118225098, 0.9207693338394165, 0.14503273367881775, -1.2029887437820435, -0.3909724950790405, -0.1962144523859024, -0.11416592448949814, -0.32365673780441284, 0.8833802938461304, 0.2235908955335617, 0.17641805112361908, -0.9974786639213562, -0.167102113366127...
func (s *TemplateService) NewCreateTemplateParams(displaytext string, name string, ostypeid string) *CreateTemplateParams { p := &CreateTemplateParams{} p.p = make(map[string]interface{}) p.p["displaytext"] = displaytext p.p["name"] = name p.p["ostypeid"] = ostypeid return p }
[ -0.9978220462799072, -0.12484481185674667, 0.49781593680381775, 0.08885663002729416, -0.8596928715705872, 0.06643600761890411, -0.6847791075706482, 0.008820289745926857, -1.0429949760437012, 0.647261381149292, -0.7987228035926819, 0.3560566306114197, -0.903494656085968, 1.7582976818084717,...
func (s *TemplateService) CreateTemplate(p *CreateTemplateParams) (*CreateTemplateResponse, error) { resp, err := s.cs.newRequest("createTemplate", p.toURLValues()) if err != nil { return nil, err } var r CreateTemplateResponse if err := json.Unmarshal(resp, &r); err != nil { return nil, err } // If we hav...
[ -1.1163051128387451, 0.5508127212524414, 0.8204377889633179, -0.07582125812768936, -0.5067156553268433, -0.6573742628097534, -0.39158740639686584, -0.1370670348405838, -0.5508004426956177, 0.27467671036720276, 0.3369509279727936, -0.2378607541322708, -1.3352512121200562, 0.0765821635723114...
func (s *TemplateService) NewDeleteTemplateParams(id string) *DeleteTemplateParams { p := &DeleteTemplateParams{} p.p = make(map[string]interface{}) p.p["id"] = id return p }
[ -1.0189467668533325, -0.21935999393463135, 0.3851107954978943, 0.1672004759311676, -0.911621630191803, -0.34954774379730225, -0.6466191411018372, 0.6298713684082031, -0.2191135585308075, -0.06470850855112076, -0.5498498678207397, 0.5932643413543701, -0.3427446484565735, 1.3430641889572144,...
func (s *TemplateService) DeleteTemplate(p *DeleteTemplateParams) (*DeleteTemplateResponse, error) { resp, err := s.cs.newRequest("deleteTemplate", p.toURLValues()) if err != nil { return nil, err } var r DeleteTemplateResponse if err := json.Unmarshal(resp, &r); err != nil { return nil, err } // If we hav...
[ -1.0072977542877197, 0.5512444376945496, 0.776639997959137, -0.08370272815227509, -0.7132155299186707, -0.8875948786735535, -0.14903290569782257, 0.14470058679580688, -0.37211838364601135, -0.00373709830455482, 0.37426644563674927, 0.16910961270332336, -1.221329689025879, 0.248795568943023...
func (s *TemplateService) NewExtractTemplateParams(id string, mode string) *ExtractTemplateParams { p := &ExtractTemplateParams{} p.p = make(map[string]interface{}) p.p["id"] = id p.p["mode"] = mode return p }
[ -1.3277034759521484, 0.16821233928203583, 0.5629992485046387, -0.1650329828262329, -1.135685920715332, -0.5508069396018982, -0.5869802236557007, 0.6807178258895874, -0.4171062111854553, 0.7233759164810181, -1.0414294004440308, 0.0297801923006773, -0.6929041743278503, 0.6855529546737671, ...
func (s *TemplateService) NewGetUploadParamsForTemplateParams(displaytext string, format string, hypervisor string, name string, ostypeid string, zoneid string) *GetUploadParamsForTemplateParams { p := &GetUploadParamsForTemplateParams{} p.p = make(map[string]interface{}) p.p["displaytext"] = displaytext p.p["forma...
[ -0.5318064093589783, -0.05254267901182175, 0.5902405381202698, 0.1742977797985077, -0.31189537048339844, -0.3465206027030945, -0.5556861162185669, 0.10725711286067963, -1.0083017349243164, 0.05647403001785278, -0.7211262583732605, 0.5433319211006165, -0.4368300437927246, 1.6141817569732666...
func (s *TemplateService) GetUploadParamsForTemplate(p *GetUploadParamsForTemplateParams) (*GetUploadParamsForTemplateResponse, error) { resp, err := s.cs.newRequest("getUploadParamsForTemplate", p.toURLValues()) if err != nil { return nil, err } var r GetUploadParamsForTemplateResponse if err := json.Unmarshal...
[ -1.728625774383545, 0.5567933320999146, 0.854840874671936, -0.35006803274154663, -0.1343604028224945, -0.4579184651374817, -0.025025317445397377, -0.23471134901046753, -1.1536662578582764, 0.23371735215187073, -0.877079963684082, -0.0030443458817899227, -0.5994718074798584, 1.2142285108566...
func (s *TemplateService) NewListTemplatePermissionsParams(id string) *ListTemplatePermissionsParams { p := &ListTemplatePermissionsParams{} p.p = make(map[string]interface{}) p.p["id"] = id return p }
[ -0.25032368302345276, -0.2791094183921814, 0.5740526914596558, -0.28768426179885864, -1.4292300939559937, -0.8037929534912109, -0.3811693787574768, 0.561430037021637, 0.37798669934272766, -0.00902201235294342, -1.0916751623153687, -0.12349627166986465, -0.1855439394712448, 0.55585390329360...
func (s *TemplateService) GetTemplatePermissionByID(id string, opts ...OptionFunc) (*TemplatePermission, int, error) { p := &ListTemplatePermissionsParams{} p.p = make(map[string]interface{}) p.p["id"] = id for _, fn := range append(s.cs.options, opts...) { if err := fn(s.cs, p); err != nil { return nil, -1,...
[ -0.9202694296836853, 0.22719520330429077, 0.7877653241157532, -0.34261274337768555, -0.6542128920555115, -1.5547022819519043, 0.7752761244773865, -0.06958259642124176, -0.1292351335287094, 0.8481999039649963, -0.0961921438574791, -0.6397618055343628, -0.6271770596504211, 0.6510299444198608...
func (s *TemplateService) ListTemplatePermissions(p *ListTemplatePermissionsParams) (*ListTemplatePermissionsResponse, error) { resp, err := s.cs.newRequest("listTemplatePermissions", p.toURLValues()) if err != nil { return nil, err } var r ListTemplatePermissionsResponse if err := json.Unmarshal(resp, &r); err...
[ -0.9747634530067444, 0.34138959646224976, 0.6885033249855042, -0.09736064076423645, -0.6984797120094299, -1.0654221773147583, 0.17309364676475525, -0.11968246847391129, -0.2512519061565399, 0.7777559757232666, -0.25200238823890686, 0.15526419878005981, -0.6397188901901245, 0.27746990323066...
func (s *TemplateService) NewListTemplatesParams(templatefilter string) *ListTemplatesParams { p := &ListTemplatesParams{} p.p = make(map[string]interface{}) p.p["templatefilter"] = templatefilter return p }
[ -0.1985877901315689, -0.29139411449432373, 0.5857453942298889, -0.33462661504745483, -1.2838822603225708, -0.3532431125640869, -0.3250376284122467, 0.5658152103424072, 1.1158790588378906, 0.0364273376762867, -1.2642648220062256, 0.4464283585548401, -0.30367860198020935, 0.6578845977783203,...
func (s *TemplateService) GetTemplateID(name string, templatefilter string, zoneid string, opts ...OptionFunc) (string, int, error) { p := &ListTemplatesParams{} p.p = make(map[string]interface{}) p.p["name"] = name p.p["templatefilter"] = templatefilter p.p["zoneid"] = zoneid for _, fn := range append(s.cs.opt...
[ 0.22136273980140686, -0.6018802523612976, 0.7807267308235168, -0.36982688307762146, -0.5916243195533752, -0.6616827845573425, 0.6730395555496216, 0.24473091959953308, 0.6259478330612183, 0.8701355457305908, -0.38801199197769165, 0.04174070432782173, -1.0155421495437622, 1.0693250894546509,...
func (s *TemplateService) GetTemplateByName(name string, templatefilter string, zoneid string, opts ...OptionFunc) (*Template, int, error) { id, count, err := s.GetTemplateID(name, templatefilter, zoneid, opts...) if err != nil { return nil, count, err } r, count, err := s.GetTemplateByID(id, templatefilter, opt...
[ -0.12955351173877716, -0.05448601767420769, 0.5718454122543335, 0.2669709622859955, -0.34968242049217224, -1.6965562105178833, 0.554599940776825, -0.5156692862510681, -0.0802646204829216, 0.6598798036575317, -0.9889149069786072, 0.1337665617465973, -0.7127456665039062, 0.5252364873886108, ...
func (s *TemplateService) GetTemplateByID(id string, templatefilter string, opts ...OptionFunc) (*Template, int, error) { p := &ListTemplatesParams{} p.p = make(map[string]interface{}) p.p["id"] = id p.p["templatefilter"] = templatefilter for _, fn := range append(s.cs.options, opts...) { if err := fn(s.cs, p)...
[ -0.7034897804260254, -0.048953503370285034, 0.7725092768669128, -0.11088903248310089, -0.29001903533935547, -1.2526884078979492, 0.5742803812026978, -0.00724084721878171, -0.02737429551780224, 0.5006322264671326, -0.19191698729991913, -0.4265410602092743, -0.7508097290992737, 0.68653315305...
func (s *TemplateService) ListTemplates(p *ListTemplatesParams) (*ListTemplatesResponse, error) { resp, err := s.cs.newRequest("listTemplates", p.toURLValues()) if err != nil { return nil, err } var r ListTemplatesResponse if err := json.Unmarshal(resp, &r); err != nil { return nil, err } return &r, nil }
[ -1.0335242748260498, -0.016183091327548027, 0.6396284103393555, 0.24454452097415924, 0.0888863056898117, -0.7238004207611084, -0.12927617132663727, -0.7877987027168274, 0.9982032179832458, 0.42237910628318787, -1.1296149492263794, 0.32851171493530273, -1.1797680854797363, 0.019853508099913...
func (s *TemplateService) NewPrepareTemplateParams(templateid string, zoneid string) *PrepareTemplateParams { p := &PrepareTemplateParams{} p.p = make(map[string]interface{}) p.p["templateid"] = templateid p.p["zoneid"] = zoneid return p }
[ -0.9858222007751465, -0.5688050985336304, 0.5113364458084106, -0.077261783182621, -0.880641758441925, -0.36306434869766235, -0.2552550137042999, 0.3728867769241333, -0.14979593455791473, 0.48151370882987976, -0.993686318397522, 0.33304470777511597, -0.3876720666885376, 1.6163276433944702, ...
func (s *TemplateService) PrepareTemplate(p *PrepareTemplateParams) (*PrepareTemplateResponse, error) { resp, err := s.cs.newRequest("prepareTemplate", p.toURLValues()) if err != nil { return nil, err } var r PrepareTemplateResponse if err := json.Unmarshal(resp, &r); err != nil { return nil, err } return ...
[ -2.120452404022217, 0.5122976303100586, 0.7009474635124207, 0.03502450883388519, -0.559917688369751, -0.9248468279838562, 0.33721739053726196, -0.22725392878055573, 0.35058724880218506, 0.33331602811813354, -0.6344994306564331, -0.06377039849758148, -0.8069117069244385, 0.01224445737898349...
func (s *TemplateService) NewRegisterTemplateParams(displaytext string, format string, hypervisor string, name string, ostypeid string, url string) *RegisterTemplateParams { p := &RegisterTemplateParams{} p.p = make(map[string]interface{}) p.p["displaytext"] = displaytext p.p["format"] = format p.p["hypervisor"] =...
[ -1.4008209705352783, 0.47425273060798645, 0.44408345222473145, 0.13921870291233063, -0.3361966609954834, -0.311713308095932, -0.7094044089317322, 0.6136296987533569, -0.9353619813919067, 0.5591609477996826, -1.0918031930923462, 0.5085943937301636, -0.707457423210144, 1.5366390943527222, ...
func (s *TemplateService) RegisterTemplate(p *RegisterTemplateParams) (*RegisterTemplateResponse, error) { resp, err := s.cs.newRequest("registerTemplate", p.toURLValues()) if err != nil { return nil, err } var r RegisterTemplateResponse if err := json.Unmarshal(resp, &r); err != nil { return nil, err } re...
[ -2.335285186767578, 0.7428106665611267, 0.5129421353340149, 0.1635865867137909, 0.30677348375320435, -0.7745399475097656, -0.037292737513780594, -0.12893608212471008, -0.24429872632026672, 0.2609288990497589, -0.8022931814193726, 0.09759684652090073, -1.2059600353240967, 0.0273754280060529...
func (s *TemplateService) NewUpdateTemplateParams(id string) *UpdateTemplateParams { p := &UpdateTemplateParams{} p.p = make(map[string]interface{}) p.p["id"] = id return p }
[ -1.5204029083251953, -0.6133997440338135, 0.4678313136100769, 0.15111544728279114, -1.6327935457229614, -0.12563025951385498, -0.6311234831809998, 0.4618470370769501, -0.4820338487625122, 0.7844557762145996, -0.8577800393104553, 0.5344288349151611, -0.5734385848045349, 1.064419150352478, ...
func (s *TemplateService) UpdateTemplate(p *UpdateTemplateParams) (*UpdateTemplateResponse, error) { resp, err := s.cs.newRequest("updateTemplate", p.toURLValues()) if err != nil { return nil, err } var r UpdateTemplateResponse if err := json.Unmarshal(resp, &r); err != nil { return nil, err } return &r, n...
[ -2.4049389362335205, -0.28167545795440674, 0.671971321105957, 0.11773904412984848, -0.8495743274688721, -0.520839512348175, 0.21928411722183228, -0.06634414196014404, -0.1231362596154213, 0.7310922145843506, -0.5379225015640259, 0.177076056599617, -1.486751914024353, -0.3994964361190796, ...
func (s *TemplateService) NewUpdateTemplatePermissionsParams(id string) *UpdateTemplatePermissionsParams { p := &UpdateTemplatePermissionsParams{} p.p = make(map[string]interface{}) p.p["id"] = id return p }
[ -0.9483499526977539, -0.5328735709190369, 0.560022234916687, 0.07453018426895142, -1.7302485704421997, -0.3112649917602539, 0.17926780879497528, 0.4540803134441376, -0.21404065191745758, 0.7008327841758728, -0.4704114496707916, -0.002430463908240199, -0.7880316376686096, 0.2621740996837616...
func (s *TemplateService) UpdateTemplatePermissions(p *UpdateTemplatePermissionsParams) (*UpdateTemplatePermissionsResponse, error) { resp, err := s.cs.newRequest("updateTemplatePermissions", p.toURLValues()) if err != nil { return nil, err } var r UpdateTemplatePermissionsResponse if err := json.Unmarshal(resp...
[ -1.8324120044708252, -0.026359450072050095, 0.4475037455558777, -0.1336459070444107, -1.3316446542739868, -0.9413471221923828, 0.4727352261543274, 0.24436737596988678, -0.5159668326377869, 0.9014468789100647, -0.2210504412651062, 0.49367645382881165, -1.2592111825942993, -0.178766056895256...
func (s *TemplateService) NewUpgradeRouterTemplateParams() *UpgradeRouterTemplateParams { p := &UpgradeRouterTemplateParams{} p.p = make(map[string]interface{}) return p }
[ -1.3249069452285767, -0.5832433104515076, 0.4692404866218567, 0.30345526337623596, -0.9960554242134094, -0.46219509840011597, -0.710116982460022, 0.6425817012786865, -0.711214542388916, 0.23172762989997864, -0.922248899936676, -0.2803906500339508, -0.2751742899417877, 1.0939688682556152, ...
func (s *TemplateService) UpgradeRouterTemplate(p *UpgradeRouterTemplateParams) (*UpgradeRouterTemplateResponse, error) { resp, err := s.cs.newRequest("upgradeRouterTemplate", p.toURLValues()) if err != nil { return nil, err } var r UpgradeRouterTemplateResponse if err := json.Unmarshal(resp, &r); err != nil { ...
[ -2.03606915473938, -0.29176756739616394, 0.6635438203811646, 0.12792399525642395, -0.5320553183555603, -0.5756468176841736, 0.26318061351776123, 0.08325116336345673, -0.33113425970077515, 0.5629463791847229, -1.048321008682251, -0.28905045986175537, -1.2175054550170898, -0.1158485412597656...
func NewRepository(db *sqlx.DB) *Repository { return &Repository{ DbConn: db, } }
[ 0.08028575778007507, -0.158920019865036, -0.0058923824690282345, 0.25210151076316833, -0.6856866478919983, -0.6719999313354492, -1.1111023426055908, 0.346945196390152, 0.4262101650238037, -0.2730177640914917, -0.4609960913658142, 0.04836270958185196, 0.015372149646282196, 0.607291162014007...
func (m *Class) Response(ctx context.Context) *Response { if m == nil { return nil } r := &Response{ ID: m.ID, Name: m.Name, SchoolOrder: m.SchoolOrder, } return r }
[ -0.027593404054641724, -0.8163132071495056, 0.0232523325830698, 0.4588557779788971, -0.17823977768421173, -0.3413185775279999, 0.8296720385551453, -0.7396930456161499, 1.9879381656646729, -0.6174042224884033, -0.7177484631538391, -0.1471354067325592, -0.15835373103618622, 0.083118095993995...
func (m *Classes) Response(ctx context.Context) []*Response { var l []*Response if m != nil && len(*m) > 0 { for _, n := range *m { l = append(l, n.Response(ctx)) } } return l }
[ -0.6060149669647217, -0.7815682888031006, 0.19637829065322876, 0.9988365173339844, 1.1085141897201538, 0.3931962847709656, 0.7914803624153137, -0.8321781158447266, 1.7142552137374878, -0.6059393882751465, -0.0733218863606453, -0.24927319586277008, -0.1503487229347229, 1.4028403759002686, ...
func TestEnvAddOnManagedNodeGroupsCNI(t *testing.T) { cfg := NewDefault() defer func() { os.RemoveAll(cfg.ConfigPath) os.RemoveAll(cfg.KubectlCommandsOutputPath) os.RemoveAll(cfg.RemoteAccessCommandsOutputPath) }() os.Setenv("AWS_K8S_TESTER_EKS_ADD_ON_MANAGED_NODE_GROUPS_ENABLE", `true`) defer os.Unsetenv("...
[ 0.24780073761940002, 0.5438364148139954, 0.8440602421760559, -0.2226731926202774, 0.3093850910663605, 0.34862053394317627, -0.25409379601478577, -1.2823305130004883, -0.5090930461883545, 0.03033316880464554, -0.34515130519866943, 0.3916209042072296, 0.12322363257408142, 0.7361978888511658,...
func TestEnvAddOnManagedNodeGroupsInvalidInstanceType(t *testing.T) { cfg := NewDefault() defer func() { os.RemoveAll(cfg.ConfigPath) os.RemoveAll(cfg.KubectlCommandsOutputPath) os.RemoveAll(cfg.RemoteAccessCommandsOutputPath) }() os.Setenv("AWS_K8S_TESTER_EKS_ADD_ON_MANAGED_NODE_GROUPS_ENABLE", `true`) def...
[ -0.351436972618103, 0.6325185894966125, 0.8913099765777588, -0.31398293375968933, 0.3123430609703064, 0.8659984469413757, -0.07806513458490372, -0.9498241543769836, -0.2907397747039795, 0.21742098033428192, -0.11931002140045166, 0.4000730812549591, -0.4875517189502716, 0.9015066623687744, ...
func (c *criService) portForward(ctx context.Context, id string, port int32, stream io.ReadWriteCloser) error { s, err := c.sandboxStore.Get(id) if err != nil { return fmt.Errorf("failed to find sandbox %q in store: %w", id, err) } var ( netNSDo func(func(ns.NetNS) error) error // netNSPath is the network na...
[ 0.33690038323402405, 0.4326173961162567, 0.7443947196006775, 0.4143008589744568, -0.06034461036324501, -0.20074371993541718, 0.2426786869764328, -0.9773222208023071, 0.024509841576218605, -0.641202986240387, 0.14750191569328308, -0.18353237211704254, 0.15187934041023254, 0.7197691798210144...
func FillCircle(center mgl32.Vec2, radius float32, color Color) { // respect pixel offset center = center.Add([2]float32{0.5, 0.5}) setupCircleProgram(fillCircleProg, center, radius, color) renderQuad(Quad{ Left: floor32(center.X()) - ceil32(radius) - ceil32(rBlend), Right: ceil32(center.X()) + ceil32(radi...
[ 0.5044777393341064, -0.07834013551473618, 0.7656616568565369, -1.2991951704025269, 0.018474336713552475, 0.9414526224136353, 0.13382261991500854, -0.41691985726356506, -0.05372060835361481, 0.1527269184589386, -0.45925241708755493, 0.7407524585723877, -0.37481847405433655, 0.69383662939071...
func DrawCircle(center mgl32.Vec2, radius float32, lineWidth float32, color Color) { // respect pixel offset center = center.Add([2]float32{0.5, 0.5}) setupCircleProgram(drawCircleProg, center, radius, color) gl.Uniform1f(gl.GetUniformLocation(drawCircleProg, gl.Str("halfLineWidth\x00")), lineWidth/2.0) renderQu...
[ 0.3919636011123657, -0.6427934169769287, 0.7439883947372437, -0.97188800573349, -0.35816457867622375, 0.7595282793045044, -0.0708039402961731, 0.09618820995092392, 0.2628953754901886, -0.05781881883740425, -0.034575361758470535, 0.9919941425323486, -0.22813451290130615, 0.41499266028404236...
func ListFormFields(ctx *model.Context) ([]string, error) { // TODO Align output for Bangla, Hindi, Marathi. xRefTable := ctx.XRefTable fields, err := fields(xRefTable) if err != nil { return nil, err } fm := &FieldMeta{idMax: 3, nameMax: 4, defMax: 7, valMax: 5} fs, err := collectFields(xRefTable, fields...
[ -0.3281480371952057, -0.06941606849431992, 0.5891394019126892, -0.09713651984930038, -0.008157777599990368, -0.31405651569366455, -0.6813204288482666, -0.043226126581430435, 0.2498321235179901, 0.1550305336713791, -1.1708312034606934, -0.5158825516700745, -0.08685210347175598, 0.4525658190...
func RemoveFormFields(ctx *model.Context, fieldIDsOrNames []string) (bool, error) { xRefTable := ctx.XRefTable fields, err := fields(xRefTable) if err != nil { return false, err } indRefs, err := annotIndRefsForFields(xRefTable, fieldIDsOrNames, fields) if err != nil { return false, err } indRefsClone :...
[ -0.4604637622833252, 0.08445148169994354, 0.7960442304611206, -0.6029325127601624, -0.3464401364326477, -0.00628104479983449, 0.5881611108779907, -0.1374981552362442, -0.6395997405052185, 0.15424847602844238, -0.5980939269065857, -0.523761510848999, -0.771647036075592, 0.36110919713974, ...
func ResetFormFields(ctx *model.Context, fieldIDsOrNames []string) (bool, error) { xRefTable := ctx.XRefTable fields, err := fields(xRefTable) if err != nil { return false, err } var ok bool fonts := map[string]types.IndirectRef{} for i := 1; i <= xRefTable.PageCount; i++ { pgAnnots := xRefTable.PageAnn...
[ -0.9932636022567749, 0.006252353545278311, 0.7234874367713928, -0.6326763033866882, -0.36715108156204224, -0.23599153757095337, 0.5210978388786316, -0.3644351661205292, -0.17680272459983826, 0.264946848154068, -0.5747084617614746, -0.1828841269016266, -0.7750397324562073, 0.425791710615158...
func LockFormFields(ctx *model.Context, fieldIDsOrNames []string) (bool, error) { // Note: Not honoured by Apple Preview for Checkboxes, RadiobuttonGroups and ComboBoxes. xRefTable := ctx.XRefTable fields, err := fields(xRefTable) if err != nil { return false, err } var ok bool fonts := map[string]types.In...
[ -0.8583488464355469, -0.15994693338871002, 0.7659260034561157, -0.42094090580940247, -0.5171846747398376, -0.06840382516384125, 0.40065526962280273, -0.607593297958374, -0.06807402521371841, 0.04674287885427475, -0.49072226881980896, -0.4630545675754547, -0.5969855785369873, 0.637395262718...
func UnlockFormFields(ctx *model.Context, fieldIDsOrNames []string) (bool, error) { xRefTable := ctx.XRefTable fields, err := fields(xRefTable) if err != nil { return false, err } var ok bool for i := 1; i <= xRefTable.PageCount; i++ { pgAnnots := xRefTable.PageAnnots[i] if len(pgAnnots) == 0 { cont...
[ -1.0690159797668457, 0.36242106556892395, 0.7798263430595398, -0.37751978635787964, -0.1976270228624344, -0.045800793915987015, -0.1777007132768631, 0.22555150091648102, -0.19026637077331543, -0.024999991059303284, -0.5670919418334961, -0.8415729999542236, -0.8344235420227051, 0.6179668903...
func (*UTXO) Descriptor() ([]byte, []int) { return file_utxo_proto_rawDescGZIP(), []int{0} }
[ 0.12553489208221436, 0.9753457307815552, 0.3396247327327728, -0.3672064244747162, -1.046781063079834, 0.07051596790552139, -0.06440816819667816, 0.9357340335845947, -0.7945021986961365, -0.30463963747024536, -0.702082633972168, 0.12699775397777557, 0.7842705249786377, -0.2147354930639267, ...
func (s *Server) initializeCA() error { // Bail if connect isn't enabled. if !s.config.ConnectEnabled { return nil } conf, err := s.initializeCAConfig() if err != nil { return err } // Initialize the provider based on the current config. provider, err := s.createCAProvider(conf) if err != nil { return ...
[ -0.623839259147644, 0.2552485167980194, 0.7164222598075867, 0.8224744200706482, 0.07673639804124832, -0.8774891495704651, 0.9022305011749268, 0.17241623997688293, 1.0510027408599854, 0.3819519877433777, -0.08497372269630432, 0.6368398070335388, -0.3015501797199249, 1.0563983917236328, 1....
func (s *Server) startEnterpriseLeader() {}
[ -0.6914095282554626, -0.9932540655136108, 0.4121231734752655, 0.47868460416793823, 0.4289533495903015, 0.040055811405181885, 0.8272191286087036, 0.582596480846405, 1.055546760559082, 0.4392595887184143, -0.767781138420105, 1.1080657243728638, -0.3193567097187042, 0.5494502186775208, -0.6...
func NewPollerJob(resourceUrl string) PollerJob{ return PollerJob{ resourceUrl:resourceUrl, suspend: make(chan bool), resume: make(chan bool), } }
[ 0.31329891085624695, -1.1391340494155884, 0.2898634970188141, 0.23163950443267822, -1.271265983581543, 0.8779590725898743, -0.6499466300010681, 0.31170448660850525, 0.09848828613758087, -0.3024221360683441, -0.6584405899047852, -0.9158480763435364, -0.8069892525672913, -0.11453098803758621...
func (p PollerJob)Log(args...interface{}){ log.Println(args...) }
[ 0.13070321083068848, 0.4925004243850708, 0.27182459831237793, 0.5161519646644592, 0.13816307485103607, 1.0956774950027466, -0.3330309987068176, 0.5495614409446716, -0.7989419102668762, -0.935580849647522, -0.6555896401405334, -0.1495637446641922, -0.5249126553535461, 0.2940393090248108, ...
func WrapDriver(driver driver.Driver, opts ...Opt) driver.Driver { d := wrappedDriver{parent: driver} for _, opt := range opts { opt(&d.opts) } if d.Logger == nil { d.Logger = nullLogger{} } if d.Tracer == nil { d.Tracer = nullTracer{} } return d }
[ -0.13693246245384216, -0.6888630390167236, 0.5483125448226929, -0.12614470720291138, -0.49503254890441895, -0.1607675999403, -0.08800383657217026, -0.0578431710600853, 1.4857778549194336, -0.4425186216831207, 0.49992698431015015, 0.4383489787578583, 0.08502312749624252, 0.7072152495384216,...
func namedValueToValue(named []driver.NamedValue) ([]driver.Value, error) { dargs := make([]driver.Value, len(named)) for n, param := range named { if len(param.Name) > 0 { return nil, errors.New("sql: driver does not support the use of Named Parameters") } dargs[n] = param.Value } return dargs, nil }
[ -1.1668809652328491, -0.12027747929096222, 0.7879370450973511, -0.1896374374628067, -0.19630272686481476, -0.3053233027458191, -1.6378915309906006, -1.3750677108764648, -0.47905468940734863, 1.2710411548614502, -0.8988680243492126, 0.036143701523542404, 0.29027947783470154, 1.3613762855529...
func NewOrganizationsService(db *sqlx.DB) OrganizationsService { return &organizationsService{db: db} }
[ -0.32352665066719055, 0.36049503087997437, -0.12431015819311142, 0.2619001865386963, -0.19685249030590057, -0.07178714126348495, -0.17319504916667938, -1.4117754697799683, -0.25125718116760254, 0.001882190234027803, 0.2778753936290741, -0.799877941608429, -0.48269081115722656, 0.5997731685...
func (_ *BaseAggregate) Validate() []error { return nil }
[ 0.20488809049129486, -0.10643458366394043, 0.6768927574157715, 0.40368908643722534, 1.2770867347717285, 0.18473252654075623, 0.07890469580888748, -0.36758604645729065, -0.7646390199661255, -0.9758977293968201, 0.955108642578125, -0.311055064201355, -0.7053055763244629, 1.1660985946655273, ...
func (p *PersonServer) GetPerson(ctx context.Context, query *higrpc.PersonQuery) (*higrpc.PersonResponse, error) { fmt.Println("PersonServer::GetPerson is called. id :", query.Id, ", name :", query.Name) if rand.Intn(100) < 5 { return &higrpc.PersonResponse{}, nil } name := query.Name if name == "" { name = ...
[ -0.7878711819648743, -0.5093797445297241, 0.6157541275024414, -0.1960943639278412, -0.2908804416656494, 0.0527493990957737, 0.04475797712802887, -0.5649890303611755, 1.2140226364135742, -0.2790555953979492, -0.45865359902381897, -0.14960862696170807, -1.8399931192398071, 0.7686803936958313...
func (p *PersonServer) ListPerson(query *higrpc.PersonQuery, stream higrpc.PersonRoute_ListPersonServer) error { fmt.Println("PersonServer::ListPerson is called. id :", query.Id, ", name :", query.Name) // ignore query fields, only send hard coded responses for i := 0; i < 5; i++ { _ = stream.Send(&higrpc.PersonR...
[ -1.087398886680603, -1.1597926616668701, 0.5867732167243958, -0.575132429599762, -0.23295994102954865, -0.0560351237654686, -0.1597280502319336, -0.6100298166275024, 0.08103585988283157, -0.1732475906610489, -0.7969441413879395, 0.0345442034304142, -1.3868968486785889, 1.321112036705017, ...
func (p *PersonServer) SavePerson(stream higrpc.PersonRoute_SavePersonServer) error { fmt.Println("PersonServer::SavePerson is called.") now := time.Now() count := int32(0) for { in, err := stream.Recv() if err == io.EOF { break } if err != nil { return err } count++ fmt.Println(">> Name :", in...
[ -1.0715299844741821, -0.3986172080039978, 0.8440415263175964, -0.07595392316579819, -0.24874970316886902, 0.043797194957733154, -0.1346193552017212, 0.12489718198776245, -0.8418269753456116, 0.22198128700256348, -0.9345170259475708, -0.08516177535057068, -1.0835226774215698, 1.189979672431...
func (p *PersonServer) GetPersonChat(stream higrpc.PersonRoute_GetPersonChatServer) error { fmt.Println("PersonServer::GetPersonChat is called.") for { in, err := stream.Recv() if err == io.EOF { break } if err != nil { return err } fmt.Println(">> Id :", in.Id, ", Name:", in.Name) _ = stream.Sen...
[ -0.07308908551931381, -1.1351821422576904, 0.9592394828796387, 0.22857043147087097, -0.3889711797237396, -0.42794471979141235, 0.14254581928253174, -0.8492553234100342, -0.9470483660697937, -0.8341255187988281, -0.2446509301662445, 0.5807777047157288, -0.951569139957428, 0.757021427154541,...
func NewCmd(o *Options) *cobra.Command { c := command{ Command: cli.Command{Options: o.Options}, opts: o, } cmd := &cobra.Command{ Use: "module <MODULE_IMAGE>", Short: "Unpacks an OCI container image module bundled as an from the contents of the given path", Long: `Use this command to unpack a Kyma...
[ 0.5262526869773865, -0.5770593285560608, 0.7479453086853027, -0.35342860221862793, 0.15777143836021423, -0.09216677397489548, 0.7967180013656616, 0.3052387535572052, 0.5641880035400391, -0.23645615577697754, 0.9598208069801331, 0.7598308324813843, 0.29597270488739014, 0.2565692961215973, ...
func (s *Server) RegisterService(sd *grpc.ServiceDesc, ss interface{}) { s.mu.Lock() defer s.mu.Unlock() // Does some sanity checks. if _, ok := s.m[sd.ServiceName]; ok { log.Fatalf("grpc: Server.RegisterService found duplicate service registration for %q", sd.ServiceName) } ht := reflect.TypeOf(sd.HandlerType)...
[ -0.505643367767334, 0.5984474420547485, 0.6876482367515564, -0.013922701589763165, 0.21981218457221985, -0.08185689896345139, 0.2243555635213852, -0.4468664526939392, -0.3319893777370453, -0.8750532269477844, -0.35821735858917236, 1.368484377861023, -0.23321449756622314, 1.3677269220352173...
func (e Errorcode) Code() codes.Code { return e.code }
[ -0.6583552956581116, -0.8034643530845642, -0.10883437097072601, 0.48442357778549194, 0.4439409077167511, 0.5274564027786255, 0.06507766991853714, 0.924596905708313, 0.847848117351532, -0.4004238545894623, 0.6783128380775452, 0.374785840511322, 0.9828718900680542, 0.5082545280456543, 0.53...
func AddDefaultRefactorings() { AddRefactoring("rename", new(refactoring.Rename)) AddRefactoring("extract", new(refactoring.ExtractFunc)) AddRefactoring("var", new(refactoring.ExtractLocal)) AddRefactoring("toggle", new(refactoring.ToggleVar)) AddRefactoring("godoc", new(refactoring.AddGoDoc)) AddRefactoring("deb...
[ -0.47737452387809753, 0.8091151714324951, 0.463558167219162, -0.2892421782016754, 1.0602777004241943, -0.33332523703575134, -0.05314565449953079, -0.0979359969496727, 0.1466253399848938, -0.45616331696510315, -0.3614385426044464, -0.01700185425579548, -0.5070702433586121, 1.14455246925354,...
func AllRefactoringNames() []string { return refactoringsInOrder }
[ -0.800264298915863, 0.3371587097644806, 0.4731321930885315, 0.6774611473083496, -0.3422141671180725, 0.1625152975320816, -0.9354173541069031, 0.4380025565624237, 0.7494082450866699, -0.173112154006958, -0.36481156945228577, 0.46827635169029236, -0.614371657371521, 0.8095942139625549, -0....
func GetRefactoring(shortName string) refactoring.Refactoring { return refactorings[shortName] }
[ 0.13110429048538208, 0.43240976333618164, 0.5194960832595825, -0.16167175769805908, -0.37180793285369873, -0.8653000593185425, -0.09180416166782379, -0.1517985463142395, 0.4096721112728119, -0.3093107342720032, 0.25980985164642334, 1.0481681823730469, 0.1246977224946022, 0.4658122062683105...