text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (*DyndnsDyndnss) GetPath() string { return "/api/objects/dyndns/dyndns/" }
[ -0.7817526459693909, -0.21418927609920502, 0.3903965353965759, 0.024912815541028976, 0.8212766647338867, 0.49508726596832275, 1.004927635192871, -0.5680463910102844, 0.7989408373832703, -1.1588718891143799, -0.4930753707885742, 0.08094414323568344, 0.628410816192627, 0.5341771841049194, ...
func (d *DyndnsDyndns) GetPath() string { return fmt.Sprintf("/api/objects/dyndns/dyndns/%s", d.Reference) }
[ -0.6168422698974609, 0.039893750101327896, 0.3846929371356964, -0.5476839542388916, 0.9791036248207092, 0.47916892170906067, 0.9901959896087646, -0.6410349011421204, 0.8117309808731079, -1.0279902219772339, 0.3142390549182892, 0.30189600586891174, 0.386738121509552, 0.7426897287368774, 0...
func (*DyndnsDyndns) DeletePath(ref string) string { return fmt.Sprintf("/api/objects/dyndns/dyndns/%s", ref) }
[ -0.7409385442733765, -0.09700512140989304, 0.3459519147872925, -0.5153977870941162, 0.22557859122753143, 0.6117414832115173, 0.8743185997009277, -0.19395101070404053, 1.1681491136550903, -0.6814981698989868, 0.3450320363044739, -0.08281504362821579, 0.30439311265945435, 0.7454478144645691,...
func (*DyndnsDyndns) PatchPath(ref string) string { return fmt.Sprintf("/api/objects/dyndns/dyndns/%s", ref) }
[ -0.7092064619064331, -0.027500061318278313, 0.3555918037891388, -0.9394172430038452, -0.12849237024784088, 1.0671852827072144, 1.2034666538238525, -0.5437195301055908, 0.9227165579795837, -0.2752930521965027, 0.3810061514377594, 0.4498370289802551, 0.3412151634693146, 0.7040135860443115, ...
func (*DyndnsDyndns) PostPath() string { return "/api/objects/dyndns/dyndns/" }
[ -0.9941907525062561, -0.18949617445468903, 0.39446350932121277, -0.5483577847480774, 0.15332674980163574, 0.8135899901390076, 0.8213603496551514, -0.15394306182861328, 0.28294637799263, -1.0666731595993042, -0.5432159900665283, -0.10982875525951385, 0.07211212813854218, 0.4106355607509613,...
func (*DyndnsDyndns) PutPath(ref string) string { return fmt.Sprintf("/api/objects/dyndns/dyndns/%s", ref) }
[ -1.2050172090530396, 0.11778005212545395, 0.3764986991882324, -0.942230224609375, 0.3948206305503845, 0.7150527834892273, 1.002233862876892, -0.7003626227378845, 0.7673359513282776, -0.22266332805156708, 0.05722533166408539, 0.09647443890571594, -0.30876943469047546, 0.49567297101020813, ...
func (*DyndnsDyndns) UsedByPath(ref string) string { return fmt.Sprintf("/api/objects/dyndns/dyndns/%s/usedby", ref) }
[ -0.6248297691345215, 0.015383254736661911, 0.5272958874702454, -0.7553173899650574, 0.06987009197473526, -0.5223175883293152, 1.204493522644043, -0.9924569129943848, 0.2799188792705536, -0.07846196740865707, -0.2438134104013443, 0.30628731846809387, 0.323843777179718, 0.3480464220046997, ...
func (*DyndnsGroups) GetPath() string { return "/api/objects/dyndns/group/" }
[ -0.9802073240280151, 0.43799495697021484, 0.27205172181129456, 0.06604555994272232, 0.28630584478378296, 0.418449342250824, 1.0375103950500488, -0.8124229907989502, 0.15285174548625946, -0.7008781433105469, -0.0898655354976654, -0.15998341143131256, -0.4539927542209625, 0.5416514873504639,...
func (d *DyndnsGroup) GetPath() string { return fmt.Sprintf("/api/objects/dyndns/group/%s", d.Reference) }
[ -0.8004617691040039, 0.5521681308746338, 0.2613607347011566, -0.3412512242794037, 0.41441693902015686, 0.39978277683258057, 0.8346816301345825, -0.9143168330192566, 0.25919756293296814, -0.7288251519203186, 0.6969977617263794, 0.1292790025472641, -0.4805845320224762, 0.8690962791442871, ...
func (*DyndnsGroup) DeletePath(ref string) string { return fmt.Sprintf("/api/objects/dyndns/group/%s", ref) }
[ -0.8108672499656677, 0.1894581913948059, 0.2841300070285797, -0.42099428176879883, -0.1973506659269333, 0.7412779331207275, 0.8871838450431824, -0.3805069327354431, 0.48935240507125854, -0.2031422108411789, 0.7303330898284912, -0.2163422852754593, -0.5460810661315918, 0.6866376996040344, ...
func (*DyndnsGroup) PatchPath(ref string) string { return fmt.Sprintf("/api/objects/dyndns/group/%s", ref) }
[ -0.8932744264602661, 0.24987530708312988, 0.2600540518760681, -0.7733489274978638, -0.647110104560852, 1.0824995040893555, 1.1534967422485352, -0.9198710322380066, 0.32115644216537476, 0.12836575508117676, 0.8384609818458557, 0.3350132405757904, -0.43565142154693604, 0.6957890391349792, ...
func (*DyndnsGroup) PostPath() string { return "/api/objects/dyndns/group/" }
[ -1.2408411502838135, 0.14685234427452087, 0.33373674750328064, -0.3989042639732361, -0.33220958709716797, 0.8729042410850525, 0.841017484664917, -0.49547863006591797, -0.38053634762763977, -0.5626583695411682, -0.050789810717105865, -0.30778926610946655, -0.6958438158035278, 0.432549059391...
func (*DyndnsGroup) PutPath(ref string) string { return fmt.Sprintf("/api/objects/dyndns/group/%s", ref) }
[ -1.3696361780166626, 0.5147548317909241, 0.2983868420124054, -0.8169504404067993, -0.0799507200717926, 0.7407369017601013, 0.9105051755905151, -0.9525314569473267, 0.1277748942375183, 0.19524283707141876, 0.36524999141693115, 0.01021482516080141, -1.1549910306930542, 0.49017956852912903, ...
func (*DyndnsGroup) UsedByPath(ref string) string { return fmt.Sprintf("/api/objects/dyndns/group/%s/usedby", ref) }
[ -0.6928431987762451, 0.2965886890888214, 0.47397303581237793, -0.7630200386047363, -0.36616018414497375, -0.4349423944950104, 1.2388803958892822, -1.2583777904510498, -0.1436716765165329, 0.1764668971300125, 0.10719828307628632, 0.09218227118253708, -0.3324439227581024, 0.43015140295028687...
func RetrieveFeeds() ([]*Feed, error) { // Open the file. var wd, err = os.Getwd() //filepath.Dir(dataFile) //filepath.Abs(wd) var absPath, _ = filepath.Abs(wd+"\\"+dataFile) file, err := os.Open(absPath) if err != nil { return nil, err } // Schedule the file to be closed once // the function returns. def...
[ 0.2320278286933899, -0.6000261902809143, 0.5069730877876282, -0.2995225787162781, 0.5493309497833252, -0.701439619064331, 0.11858880519866943, -0.47064968943595886, -0.6462265253067017, -1.0382221937179565, -0.2795878052711487, 0.7071551084518433, -0.9513298273086548, -0.39606282114982605,...
func (reconciler *ClusterReconciler) reconcile() (ctrl.Result, error) { var err error // Child resources of the cluster CR will be automatically reclaimed by K8S. if reconciler.observed.cluster == nil { reconciler.log.Info("The cluster has been deleted, no action to take") return ctrl.Result{}, nil } err = r...
[ 0.1810968518257141, -0.16134695708751678, 0.7830613255500793, 0.28865963220596313, 0.9255568385124207, -0.5508137941360474, 0.036857008934020996, 0.22485360503196716, -0.2377977967262268, -0.48661988973617554, 0.382657915353775, -0.5908706188201904, -0.7154552340507507, 1.0470085144042969,...
func (reconciler *ClusterReconciler) takeSavepoint(jobID string) ( flinkclient.SavepointStatus, error) { var log = reconciler.log var apiBaseURL = getFlinkAPIBaseURL(reconciler.observed.cluster) var status, err = reconciler.flinkClient.TakeSavepoint( apiBaseURL, jobID, *reconciler.observed.cluster.Spec.Job.Savepo...
[ 0.009224285371601582, -0.12501591444015503, 0.6238431334495544, -0.28917133808135986, -0.0027344226837158203, -0.12285154312849045, 0.25647827982902527, 0.12779918313026428, 0.27922454476356506, 0.7200011610984802, -0.5298677086830139, 0.07364793121814728, -0.9443235993385315, 0.2525283098...
func NewEmptyVector() (vector Vector) { vector = Vector{} return vector }
[ -1.3065582513809204, -1.0070991516113281, -0.010396454483270645, -0.48107877373695374, -0.22266831994056702, -0.031217826530337334, 0.25107619166374207, 0.05687808245420456, -0.4409117102622986, -0.7422527074813843, -1.0528250932693481, 1.52068293094635, 0.1478106826543808, 0.2120546847581...
func NewEmptyMatrix(rows int) (matrix Matrix) { matrix = make(Matrix, rows) return matrix }
[ -1.2064616680145264, -0.06726707518100739, 0.20286794006824493, -0.2988765835762024, -0.44186192750930786, -0.45573264360427856, 0.005971210543066263, -0.7758303284645081, 0.48324015736579895, -0.8887415528297424, -0.32322797179222107, 0.0545274093747139, -0.25936487317085266, 0.0321331210...
func Size(data Data) (rows int, cols int) { switch data.(type) { case Matrix, [][]float64: rows = len(data.(Matrix)) if rows > 0 { cols = len(data.(Matrix)[0]) } case Vector, []float64: rows = 1 cols = len(data.(Vector)) case float64: rows = 1 cols = 1 default: LogWarnf("unhandled: %s", reflect....
[ -0.7088660001754761, 0.24357157945632935, 0.5641003847122192, -0.7508987784385681, -0.5947887897491455, -0.28852128982543945, 1.0139445066452026, -0.41234609484672546, 0.6334342360496521, -0.23831719160079956, 0.2094205915927887, 0.16009430587291718, -0.3073667883872986, 0.5645454525947571...
func Transpose(inputData Data) (data Data) { // invert the col and row vals inputVector := false outputVector := false switch inputData.(type) { case Matrix, [][]float64: // we invert the returns here cols, rows := Size(inputData) if rows > 1 { data = NewMatrix(rows, cols) } else { // only 1 row, so ...
[ -0.18342220783233643, 0.14454899728298187, 0.7189908623695374, -0.06511754542589188, -0.027575023472309113, -0.4559504985809326, -0.11562543362379074, -0.22931699454784393, 0.21143478155136108, -0.2652469277381897, 0.6401848793029785, 0.001162705011665821, -0.9491546750068665, 0.0367831587...
func Eye(size int) (matrix Matrix) { matrix = NewMatrix(size, size) for i := 0; i < size; i++ { matrix[i][i] = 1 } return matrix }
[ -1.2282156944274902, -0.12979692220687866, 0.5434884428977966, -0.2005675733089447, 0.12056275457143784, -0.3197147846221924, 0.6397611498832703, -0.5505303740501404, 0.9594442844390869, -0.16735480725765228, -0.4267885982990265, 0.1845463365316391, -0.6330037713050842, 0.09294558316469193...
func Zeros(rows int, cols int) (data Data) { if rows > 1 { data = NewMatrix(rows, cols) } else { data = NewVector(cols) } return data }
[ -0.7392923831939697, 0.26358458399772644, 0.26088523864746094, -0.12553490698337555, -0.297698974609375, -0.22501760721206665, -0.42952868342399597, -0.5112193822860718, 0.2444772869348526, -1.1018295288085938, 0.6057775616645813, 1.1827781200408936, 0.5044761300086975, -0.2720263600349426...
func Ones(rows int, cols int) (data Data) { if rows > 1 { data = NewMatrix(rows, cols) for _, row := range data.(Matrix) { for i := range row { row[i] = 1 } } } else { data = NewVector(cols) for i := range data.(Vector) { data.(Vector)[i] = 1 } } return data }
[ -1.432599663734436, 0.7216946482658386, 0.43118253350257874, -0.1387806236743927, 0.4440808892250061, -0.24860790371894836, -0.2187977135181427, 0.24483166635036469, 0.2709067463874817, -0.40999019145965576, -0.2983954846858978, 0.3409065008163452, 0.6112337708473206, 0.1394723504781723, ...
func Seq(rows int, cols int) (matrix Matrix) { matrix = NewMatrix(rows, cols) // looks awkward, but it's the most performant way seq := 1.0 for _, row := range matrix { for i := range row { row[i] = seq seq += 1.0 } } return matrix }
[ -0.3956751227378845, 0.20452871918678284, 0.3488246500492096, 0.44626909494400024, -0.3268779516220093, -0.8209390044212341, 0.4626123309135437, 0.6508625149726868, 0.42064177989959717, 0.17779292166233063, -0.1755261868238449, -0.2833244204521179, -0.01730475015938282, 0.3807156980037689,...
func Cols(inmatrix Matrix, colFrom int, colTo int) (matrix Matrix) { matrix = NewEmptyMatrix(len(inmatrix)) cols := colTo - colFrom + 1 for i, row := range inmatrix { newRow := NewVector(cols) k := 0 for j := colFrom - 1; j < colTo; j++ { newRow[k] = row[j] k += 1 } matrix[i] = newRow } return ma...
[ -0.24138927459716797, -0.2829402685165405, 0.47454461455345154, -0.0791303887963295, -0.4216940402984619, -0.7688647508621216, 0.10723841190338135, -0.2914913594722748, -0.16726388037204742, -0.16135536134243011, 0.15221844613552094, 0.2564699053764343, 0.363923579454422, -1.05711948871612...
func Rand(rows int, cols int) (matrix Matrix) { matrix = NewMatrix(rows, cols) rand.Seed(time.Now().UTC().UnixNano()) // looks awkward, but it's the most performant way for _, row := range matrix { for i := range row { row[i] = rand.Float64() } } return matrix }
[ -0.25681132078170776, 0.25791576504707336, 0.24632591009140015, -0.17618130147457123, -0.1861322820186615, -0.0697479397058487, 0.44437375664711, -0.38663235306739807, 0.4742370843887329, -0.37262052297592163, 0.9425439238548279, 0.5228971838951111, -0.10231413692235947, 0.1355253756046295...
func Unroll(matrix Matrix) (vector Vector) { rows, cols := Size(matrix) vector = NewVector(rows * cols) for i, row := range matrix { for j, val := range row { vector[(i*cols)+j] = val } } return vector }
[ 0.048611171543598175, 0.5424770712852478, 0.7188839316368103, -0.5115481615066528, -1.0082043409347534, -0.3699379563331604, 0.14207904040813446, 0.23314377665519714, 0.23820587992668152, -0.3424030542373657, 0.437192440032959, 0.6315266489982605, 0.7634803652763367, -0.6937349438667297, ...
func Reshape(vector Vector, rows int, cols int) (matrix Matrix) { matrix = NewMatrix(rows, cols) for i := 0; i < rows; i++ { for j := 0; j < cols; j++ { matrix[i][j] = vector[(i*cols)+j] } } return matrix }
[ -0.15051016211509705, -0.18731902539730072, 0.4207260310649872, -0.010666356422007084, -0.3386707901954651, -1.0121309757232666, -0.16285009682178497, 0.8574551939964294, -0.20117300748825073, -0.6420196294784546, -0.071993887424469, -0.0009565353393554688, -0.11319876462221146, -0.7747463...
func ACL() middleware.Middleware { return validateACL }
[ 1.4585157632827759, -0.3122631013393402, 0.06935093551874161, 1.1967500448226929, -0.5304449796676636, 0.3413829803466797, 0.6014745831489563, 0.05055137351155281, 1.2170010805130005, 0.16787771880626678, 1.4459810256958008, 0.7231321334838867, 0.7393600344657898, -0.1765933632850647, 0....
func MapHandler(paths map[string]string, fallback http.Handler) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { //if path match - redirect to the url path := r.URL.Path if dest, ok := paths[path]; ok { http.Redirect(w, r, dest, http.StatusFound) return } } }
[ -0.46374866366386414, -0.18347015976905823, 0.6735209822654724, 0.16725090146064758, -1.2148809432983398, 0.7999339699745178, 0.40394264459609985, 0.17463426291942596, 0.9870866537094116, -0.1371159702539444, 0.24513939023017883, -1.0680038928985596, 0.4398840367794037, -0.3107166290283203...
func YamlHandler(yamlBytes []byte, fallback http.Handler) (http.Handler, error) { // parse yaml pathUrls, err := parseYaml(yamlBytes) if err != nil { return nil, err } //convert yaml array into map key(path) - val(url) pathsMap := convertToMap(pathUrls) return MapHandler(pathsMap, fallback), nil }
[ 0.2930777370929718, -0.5747746825218201, 0.41862374544143677, -0.3359975814819336, -0.7924000024795532, -0.06452138721942902, 0.3805930018424988, 1.3355978727340698, 1.0899858474731445, -0.36973467469215393, -0.2813701331615448, -0.6481999754905701, 0.022141536697745323, 0.4196502566337585...
func NewLocalLedger() *LocalLedger { log.Printf("BLURB-LEDGER: Initializing") return &LocalLedger{ ledger: sync.Map{}, bidCounter: 0, bidMutex: sync.Mutex{}, feeds: struct { cache sync.Map length int blurbsPerUser int }{ cache: sync.Map{}, length: 100, ...
[ 1.0686588287353516, -0.7596673369407654, 0.42197558283805847, -0.4349549114704132, -1.1796845197677612, -0.42387524247169495, -0.4749598801136017, 0.5388086438179016, 0.36591213941574097, 0.12368252128362656, -0.5221810340881348, 0.8664251565933228, -0.35074567794799805, 1.3100788593292236...
func NewProductRepository(db *sqlx.DB, cache redis.Conn) ProductRepository { return productRepository{db, cache} }
[ -0.9869592189788818, 0.04874660074710846, 0.03853874281048775, 0.14866457879543304, -0.3784793019294739, -0.2768278121948242, -0.726873517036438, 0.19152668118476868, 0.7461772561073303, 0.26436835527420044, -0.6539506316184998, 0.13878369331359863, 0.47141891717910767, 0.3662838041782379,...
func ConfigLocalFilesystemLogger(logPath string, logFileName string, maxAge time.Duration, rotationTime time.Duration) *lfshook.LfsHook { baseLogPaht := path.Join(logPath, logFileName) b, _ := utils.PathExists(baseLogPaht) if !b { file, err := os.Create(baseLogPaht) logrus.Error(err) file.Close() } writer, e...
[ -0.2570358216762543, -1.0677809715270996, 0.8031789064407349, -0.32686179876327515, -0.054818540811538696, 0.34970173239707947, -0.3051816523075104, 0.3441852033138275, -0.6127458214759827, -0.05968417599797249, -0.26319512724876404, -0.05462925508618355, -0.03620511293411255, 0.5447627305...
func ConfigReader(filePath string) (Config, error) { var c Config file, err := ioutil.ReadFile(filePath) if err != nil { return c, err } err = toml.Unmarshal(file, &c) if err != nil { return c, err } return c, nil }
[ -0.37380027770996094, -0.33758974075317383, 0.3983798027038574, -0.5763143301010132, -1.5033493041992188, 0.04185580089688301, -0.26075559854507446, 0.6251141428947449, -0.6350032091140747, 0.6358744502067566, 0.13515880703926086, -0.8813266754150391, -0.22005048394203186, -0.0132346702739...
func ConfigDefault() Config { c := Config{ Cache: true, CacheRefresh: 3, CachePath: "./.hpy", Motd: true, MotdPath: "/tmp/hpy.json", Logging: true, LoggingPath: "/var/log/hpy.log", IgnoreLogging: false, Debug: false, } return c }
[ -0.13828600943088531, 0.31330016255378723, 0.43231865763664246, 1.23821222782135, 1.2079721689224243, 0.6796103119850159, -0.37496963143348694, 0.3636783957481384, -0.32192543148994446, 0.050087399780750275, -0.453490287065506, -0.4685635566711426, -0.20559461414813995, 0.8762256503105164,...
func NewApplication() *Application { return &Application{ events: make(chan tcell.Event, queueSize), updates: make(chan func(), queueSize), screenReplacement: make(chan tcell.Screen, 1), } }
[ 0.40616166591644287, -0.3260729908943176, 0.2764734923839569, 0.11160960793495178, -1.0664575099945068, 0.01744498312473297, 0.8385310173034668, -0.7641516923904419, 0.7501600384712219, 0.35385769605636597, -0.03273053839802742, -0.5294138193130493, -0.1988031268119812, 1.418747901916504, ...
func (a *Application) SetInputCapture(capture func(event *tcell.EventKey) *tcell.EventKey) *Application { a.inputCapture = capture return a }
[ -0.520226240158081, -0.3401504456996918, 0.43278250098228455, 0.8628708124160767, -0.7524190545082092, 0.37276187539100647, 0.9662916660308838, -0.11726819723844528, 0.2979793846607208, -0.17325671017169952, 0.08229412883520126, -0.07272662967443466, -0.15188351273536682, 0.932404935359954...
func (a *Application) GetInputCapture() func(event *tcell.EventKey) *tcell.EventKey { return a.inputCapture }
[ 0.29596930742263794, -0.2461535632610321, 0.5909842252731323, 0.8658511638641357, -0.6831815838813782, 0.09573977440595627, 1.200620174407959, -0.37215760350227356, 0.5767568945884705, -0.3306571841239929, 0.42624714970588684, 0.621073842048645, 0.019111033529043198, 0.7047522664070129, ...
func (a *Application) SetMouseCapture(capture func(event *EventMouse) *EventMouse) *Application { a.Lock() a.mouseCapture = capture a.Unlock() return a }
[ -0.49027299880981445, -0.7056804895401001, 0.5026065707206726, 1.06413996219635, -0.9808767437934875, -0.43331462144851685, 0.13629207015037537, 0.18679013848304749, 0.5760731101036072, -0.07456821203231812, -0.1525564342737198, 0.24519701302051544, 0.3450402319431305, 0.467660516500473, ...
func (a *Application) GetMouseCapture() func(event *EventMouse) *EventMouse { return a.mouseCapture }
[ 0.7790378928184509, -0.879897952079773, 0.5993268489837646, 1.2576631307601929, -0.6441794037818909, -0.48380836844444275, 0.05879515781998634, 0.2674882709980011, 0.7804662585258484, -0.32875487208366394, 0.3001953661441803, 0.864633321762085, 0.7092293500900269, 0.11378630250692368, 0....
func (a *Application) SetTemporaryMouseCapture(capture func(event *EventMouse) *EventMouse) *Application { a.Lock() a.tempMouseCapture = capture a.Unlock() return a }
[ -0.47103559970855713, -1.2813149690628052, 0.4583127200603485, 0.5666862726211548, -1.1086238622665405, -0.12425099313259125, 0.5544715523719788, 0.25714820623397827, 0.48578500747680664, 0.32269319891929626, -0.37177038192749023, -0.18876349925994873, 0.20567189157009125, 0.07673425227403...
func (a *Application) GetTemporaryMouseCapture() func(event *EventMouse) *EventMouse { return a.tempMouseCapture }
[ 0.57315993309021, -1.3441925048828125, 0.49165910482406616, 0.5348407030105591, -1.0319736003875732, -0.32617515325546265, 0.435456246137619, 0.3660324215888977, 0.6417505741119385, 0.18832583725452423, -0.13299386203289032, 0.27038437128067017, 0.2357814460992813, -0.4131726324558258, 0...
func (a *Application) SetScreen(screen tcell.Screen) *Application { if screen == nil { return a // Invalid input. Do nothing. } a.Lock() if a.screen == nil { // Run() has not been called yet. a.screen = screen a.Unlock() return a } // Run() is already in progress. Exchange screen. oldScreen := a.scre...
[ -0.8926206231117249, 0.6613969802856445, 0.44656965136528015, 1.1536751985549927, -0.5306954979896545, 0.11029528081417084, 1.035607933998108, -0.4374643564224243, 1.2670836448669434, -0.4619958996772766, 0.433898001909256, -0.012752627022564411, -0.7037262320518494, 1.408141851425171, 1...
func (a *Application) EnableMouse() *Application { a.Lock() a.enableMouse = true a.Unlock() return a }
[ 0.6089118123054504, -0.4669916331768036, 0.34837067127227783, 0.7645938396453857, -0.2198699414730072, 0.1766514927148819, 0.07875948399305344, 1.3292882442474365, 0.3499119281768799, -0.14146864414215088, 0.24031908810138702, 0.0744415670633316, -0.9880604147911072, 0.02524946816265583, ...
func (a *Application) Run() error { var err error a.Lock() // Make a screen if there is none yet. if a.screen == nil { a.screen, err = tcell.NewScreen() if err != nil { a.Unlock() return err } if err = a.screen.Init(); err != nil { a.Unlock() return err } if a.enableMouse { a.screen.Enab...
[ 0.003783279564231634, -0.01479042787104845, 0.8605876564979553, -0.20022566616535187, 0.11381252855062485, -0.7033251523971558, 0.9048560857772827, -0.5613460540771484, 0.5414583683013916, -0.13469359278678894, 0.12668707966804504, -0.09048483520746231, 0.408510684967041, 1.220053434371948...
func (a *Application) GetPrimitiveAtPoint(atX, atY int) Primitive { a.RLock() defer a.RUnlock() return findAtPoint(atX, atY, a.root, nil) }
[ -0.5018776655197144, -0.13888400793075562, 0.41952449083328247, -0.06454387307167053, -1.3026679754257202, -0.9370500445365906, -1.341979742050171, -1.877898931503296, -0.46174293756484985, -0.1692299246788025, 0.5864599943161011, 0.6426785588264465, -0.12878243625164032, -0.52925938367843...
func (a *Application) appendStackAtPoint(buf []Primitive, atX, atY int) []Primitive { a.RLock() defer a.RUnlock() findAtPoint(atX, atY, a.root, func(p Primitive) { buf = append(buf, p) }) return buf }
[ -0.6520941257476807, 0.006998992525041103, 0.6450309753417969, 0.264060914516449, -0.3782186806201935, -0.2815905511379242, -1.3263732194900513, -1.5604431629180908, -0.3718344271183014, -0.2352808713912964, -0.4398862421512604, -0.36628881096839905, -0.19435209035873413, 0.627847611904144...
func (a *Application) Stop() { a.Lock() defer a.Unlock() screen := a.screen if screen == nil { return } a.screen = nil screen.Fini() a.screenReplacement <- nil }
[ -0.8443208932876587, -0.026173075661063194, 0.11925358325242996, -0.48598727583885193, 0.06632097065448761, 0.27445343136787415, 0.7972407937049866, 0.015597311779856682, 0.38463038206100464, 0.6081594824790955, 0.42867082357406616, 0.05065459385514259, -0.5789472460746765, 1.0877587795257...
func (a *Application) Suspend(f func()) bool { a.RLock() screen := a.screen a.RUnlock() if screen == nil { return false // Screen has not yet been initialized. } // Enter suspended mode. screen.Fini() // Wait for "f" to return. f() // Make a new screen. var err error screen, err = tcell.NewScreen() if...
[ -0.45333683490753174, 0.7153006792068481, 0.7145408987998962, -0.2687269449234009, -0.5397332310676575, 0.6342864632606506, 0.9242421388626099, -0.6458608508110046, -0.5912928581237793, -0.11697902530431747, -0.2977711856365204, -1.2770166397094727, 0.05324189364910126, 0.4528436064720154,...
func (a *Application) Draw() *Application { a.QueueUpdate(func() { a.draw() }) return a }
[ 0.0418432392179966, -0.18803276121616364, 0.4420545697212219, 0.05275660380721092, -0.6846654415130615, 0.905125081539154, 0.5451833009719849, -0.4688992202281952, 0.5781115889549255, -0.9118695259094238, 0.81944340467453, 0.7656763195991516, -0.07625064253807068, 1.1545230150222778, -0....
func (a *Application) ForceDraw() *Application { return a.draw() }
[ -0.06256705522537231, 0.8188230395317078, 0.39530980587005615, -0.20650003850460052, -0.23759803175926208, 1.2991700172424316, -0.6409294009208679, -0.654342770576477, 0.3556478023529053, -0.9121149778366089, 0.7518390417098999, 0.7645339965820312, 0.026561710983514786, 1.5681612491607666,...
func (a *Application) draw() *Application { a.Lock() defer a.Unlock() screen := a.screen root := a.root fullscreen := a.rootFullscreen before := a.beforeDraw after := a.afterDraw // Maybe we're not ready yet or not anymore. if screen == nil || root == nil { return a } // Resize if requested. if fullscr...
[ -0.40302184224128723, 0.33438798785209656, 0.7617111802101135, 0.23349295556545258, -0.9432790875434875, 0.36574140191078186, 0.5369514226913452, -0.6730828285217285, 0.4256577789783478, -0.709501326084137, 0.7650549411773682, 0.6944746971130371, 0.09683455526828766, 1.2621899843215942, ...
func (a *Application) SetBeforeDrawFunc(handler func(screen tcell.Screen) bool) *Application { a.beforeDraw = handler return a }
[ 0.14869293570518494, 0.687821090221405, 0.35602691769599915, -0.7513851523399353, -0.5540435314178467, 0.7565152645111084, 0.8833805322647095, -0.10133068263530731, 0.25918957591056824, -1.2068880796432495, -0.3135281503200531, -0.010123202577233315, 0.7554546594619751, 0.7760769128799438,...
func (a *Application) GetBeforeDrawFunc() func(screen tcell.Screen) bool { return a.beforeDraw }
[ 0.5260261297225952, 0.807981550693512, 0.40827476978302, -0.8913421630859375, -0.27132561802864075, 0.23762641847133636, 0.3841088116168976, -0.2067108154296875, 0.4502640962600708, -1.0867787599563599, 0.5089960098266602, 0.18308435380458832, 0.5740668177604675, 0.13498158752918243, -1....
func (a *Application) SetAfterDrawFunc(handler func(screen tcell.Screen)) *Application { a.afterDraw = handler return a }
[ 0.8080114126205444, 0.1686970442533493, 0.16991157829761505, -0.36089879274368286, -1.5475988388061523, 0.47645294666290283, 1.1760072708129883, -0.015214839018881321, 0.4259927272796631, -1.322618842124939, -0.8246999979019165, 0.02823200635612011, 1.2489111423492432, 0.3614392578601837, ...
func (a *Application) GetAfterDrawFunc() func(screen tcell.Screen) { return a.afterDraw }
[ 1.1700178384780884, 0.10097246617078781, 0.22867409884929657, -0.4633072316646576, -1.3386456966400146, 0.163233682513237, 0.7742424607276917, -0.11163562536239624, 0.612851083278656, -1.4023821353912354, -0.005317399278283119, 0.41973966360092163, 1.0753037929534912, -0.16780956089496613,...
func (a *Application) SetRoot(root Primitive, fullscreen bool) *Application { a.Lock() a.root = root a.rootFullscreen = fullscreen if a.screen != nil { a.screen.Clear() } a.Unlock() a.SetFocus(root) return a }
[ 0.11734511703252792, -0.06871272623538971, 0.6556659936904907, 1.1931931972503662, -2.0013959407806396, 0.05315360054373741, 0.7506294250488281, -0.566347062587738, 1.4672801494598389, -0.3249196410179138, 0.31412044167518616, 1.387553334236145, -0.4820427894592285, 0.9506685733795166, 0...
func (a *Application) ResizeToFullScreen(p Primitive) *Application { a.RLock() width, height := a.screen.Size() a.RUnlock() p.SetRect(0, 0, width, height) return a }
[ -0.9525088667869568, 0.23686152696609497, 0.7000716924667358, 0.3169304430484772, -0.08620355278253555, -0.1514708250761032, 0.0221339650452137, -0.8816165328025818, 0.9699413180351257, -0.24534469842910767, 0.5903197526931763, -0.09970113635063171, -0.09815215319395065, 0.9434088468551636...
func (a *Application) SetAfterResizeFunc(handler func(width int, height int)) *Application { a.afterResize = handler return a }
[ 0.34940603375434875, -0.1495049148797989, 0.24662145972251892, 0.30632734298706055, -1.2864437103271484, -0.23803329467773438, 1.4541088342666626, 0.0846821591258049, 0.3757862150669098, -0.7166295051574707, -1.061419129371643, -0.13708895444869995, 0.7216931581497192, 0.3823050260543823, ...
func (a *Application) GetAfterResizeFunc() func(width int, height int) { return a.afterResize }
[ 0.9241932034492493, -0.504589319229126, 0.31119972467422485, 0.4142603576183319, -1.1641221046447754, -0.8008992075920105, 1.120818018913269, 0.2553606331348419, 0.6746616959571838, -0.7254971861839294, -0.21775580942630768, 0.46233007311820984, 0.7858064770698547, -0.2152942419052124, -...
func (a *Application) SetFocus(p Primitive) *Application { a.Lock() if a.focus != nil { a.focus.Blur() } a.focus = p if a.screen != nil { a.screen.HideCursor() } a.Unlock() if p != nil { p.Focus(func(p Primitive) { a.SetFocus(p) }) } return a }
[ -0.8014037013053894, -0.11719979345798492, 0.6258740425109863, 0.7894365787506104, -0.8207716345787048, 0.39819568395614624, 0.8012299537658691, -0.5908026695251465, 0.5491703152656555, 0.010083205066621304, 0.1347580999135971, 0.6081120371818542, -0.05467730760574341, 0.6924272179603577, ...
func (a *Application) GetFocus() Primitive { a.RLock() defer a.RUnlock() return a.focus }
[ -0.10631368309259415, 0.01718251407146454, 0.4906502366065979, 0.7996130585670471, -0.34706583619117737, -0.09287703037261963, 0.8108163475990295, -0.7381072640419006, -0.027808137238025665, -0.7957630157470703, 0.5307162404060364, 0.6405379772186279, -0.6933251619338989, 0.385354965925216...
func (a *Application) QueueUpdate(f func()) *Application { a.updates <- f return a }
[ -0.1163453534245491, -0.5667805075645447, 0.458044171333313, 0.29295212030410767, -0.5198864936828613, -0.033607397228479385, -0.045196566730737686, 0.00843756552785635, -0.1877371370792389, -0.3936959505081177, -0.02100338600575924, -0.022985095158219337, 0.23669815063476562, 0.0210789572...
func (a *Application) QueueUpdateDraw(f func()) *Application { a.QueueUpdate(func() { f() a.draw() }) return a }
[ 0.01880183443427086, -0.16881325840950012, 0.5590761303901672, -0.06733963638544083, -0.6582837700843811, 0.3469715714454651, -0.1663241684436798, -0.09715461730957031, -0.05871621519327164, -0.8639357089996338, 0.15489491820335388, 0.4613545536994934, 1.2688279151916504, 0.486126452684402...
func (a *Application) QueueEvent(event tcell.Event) *Application { a.events <- event return a }
[ 0.6469302773475647, 0.19391858577728271, 0.23354198038578033, -0.16646437346935272, 0.20388780534267426, 0.6615148782730103, 0.18791300058364868, 0.040416792035102844, 0.9517302513122559, -0.26229679584503174, -0.42131897807121277, 0.5982761383056641, 0.4412562847137451, 1.232251524925232,...
func (a *Application) RingBell() { a.Lock() fmt.Print(string(byte(7))) a.Unlock() }
[ 0.7207481861114502, 0.1736135482788086, 0.564811646938324, 0.3824954032897949, 0.20577716827392578, 0.7092791199684143, 0.6220154762268066, -0.6478865146636963, 0.5343385934829712, 0.32726654410362244, 0.3320903778076172, 0.6928507685661316, -1.2495484352111816, 0.08072761446237564, 0.34...
func TestGetContainerReference(t *testing.T) { fakeAccountName := "storageaccountname" fakeAccountKey := "test-key" fakeContainerName := "test-con" testCases := []struct { name string containerName string endpointSuffix string secrets map[string]string expectedError error }{ { nam...
[ 0.23748621344566345, 0.48085567355155945, 0.8937667012214661, 0.5833134055137634, 1.6317355632781982, -0.4242207407951355, 0.4504892826080322, -0.890559196472168, -0.38742882013320923, -0.2702241539955139, 0.16162699460983276, 0.21273191273212433, -0.179663747549057, 0.11731009185314178, ...
func getWorkDirPath(dir string) (string, error) { path, err := os.Getwd() if err != nil { return "", err } return fmt.Sprintf("%s%c%s", path, os.PathSeparator, dir), nil }
[ -0.618068277835846, 0.19578976929187775, 0.8663625121116638, 0.020031191408634186, -0.7201240062713623, 0.49666473269462585, 0.3190789222717285, -1.0594689846038818, 0.4401860237121582, 0.6533708572387695, -0.024566346779465675, -0.09746081382036209, -0.8906660079956055, 0.4811867773532867...
func NewDescriptor() *Descriptor { return &Descriptor{} }
[ 0.8528958559036255, -0.39286524057388306, 0.1173771470785141, -0.10450010001659393, -0.943885087966919, -0.25372207164764404, -0.7317721247673035, 0.2196732759475708, -0.04107947647571564, -0.9323922991752625, 0.43017977476119995, 0.6920706629753113, -0.02807758003473282, 0.087674796581268...
func (descriptor *Descriptor) Parse(file *os.File) { descriptor.UnicodeString = fmtbytes.ParseUnicodeString(file) classIDLength := fmtbytes.ReadBytesLong(file) if classIDLength == 0 { descriptor.ClassID = fmtbytes.ReadBytesString(file, 4) } else { descriptor.ClassID = fmtbytes.ReadBytesString(file, int(class...
[ -0.33507412672042847, 0.13947491347789764, 0.546288788318634, -0.667199969291687, 0.18317155539989471, -0.22872604429721832, -0.4702177941799164, 0.3316158652305603, -1.0090304613113403, -0.2169261872768402, 0.030532509088516235, 0.012063255533576012, 0.729988157749176, 0.9183221459388733,...
func newDummyCredit(t *testing.T, dbtx walletdb.ReadWriteTx, pool *Pool, series uint32, index Index, branch Branch, txHash []byte, outpointIdx uint32) Credit { var hash chainhash.Hash if err := hash.SetBytes(txHash); err != nil { t.Fatal(err) } // Ensure the address defined by the given series/branch/index is pr...
[ 0.5406486392021179, -0.18498991429805756, 0.5802190899848938, -0.8950394988059998, -0.30958089232444763, -0.271371454000473, -0.203254833817482, -0.5270578265190125, 0.5084447264671326, 0.021954303607344627, 0.24665352702140808, 0.6303739547729492, -0.3997463285923004, -0.5305847525596619,...
func NewAwsClientWrapper(client awsclient.Client) *AwsClientWrapper { return &AwsClientWrapper{client: client} }
[ 0.33053290843963623, -0.3557513356208801, -0.17144642770290375, -1.105176568031311, -1.9232828617095947, 0.3636031150817871, -0.8606703877449036, -0.8804298043251038, -0.3925900161266327, -0.24426452815532684, -0.08805492520332336, 1.2137616872787476, 0.8123676180839539, -0.248014897108078...
func (client *AwsClientWrapper) GetRunningInstances(machine *clusterv1alpha1.Machine) ([]interface{}, error) { runningInstances, err := getRunningInstances(machine, client.client) if err != nil { return nil, err } var instances []interface{} for _, instance := range runningInstances { instances = append(insta...
[ -1.644881010055542, 0.369471937417984, 0.2861269414424896, -0.040684670209884644, -0.22699905931949615, 1.1006886959075928, -0.39100295305252075, 0.009148468263447285, -1.3522768020629883, 0.08074499666690826, -0.3122706413269043, 1.3303805589675903, -1.3505343198776245, 0.4666665196418762...
func (client *AwsClientWrapper) GetPublicDNSName(machine *clusterv1alpha1.Machine) (string, error) { instance, err := getRunningInstance(machine, client.client) if err != nil { return "", err } if *instance.PublicDnsName == "" { return "", fmt.Errorf("machine instance public DNS name not set") } return *ins...
[ -0.8846538662910461, 0.8725086450576782, 0.4413815140724182, -0.025386782363057137, -1.1733012199401855, 0.691713273525238, -0.39397287368774414, -0.45492658019065857, -1.3188197612762451, 0.03525174409151077, -0.3955020010471344, 0.7348261475563049, 0.05642752721905708, 0.4071551263332367...
func (client *AwsClientWrapper) GetPrivateIP(machine *clusterv1alpha1.Machine) (string, error) { instance, err := getRunningInstance(machine, client.client) if err != nil { return "", err } if *instance.PrivateIpAddress == "" { return "", fmt.Errorf("machine instance public DNS name not set") } return *inst...
[ -0.8605974316596985, 0.5926181674003601, 0.6171044707298279, 0.42963358759880066, -0.4551267921924591, 0.35577329993247986, -0.31212398409843445, -1.017890214920044, 0.09266812354326248, -0.14968930184841156, -0.03830203041434288, 0.27806055545806885, -0.25970935821533203, -0.4241716265678...
func (client *AwsClientWrapper) GetSecurityGroups(machine *clusterv1alpha1.Machine) ([]string, error) { instance, err := getRunningInstance(machine, client.client) if err != nil { return nil, err } var groups []string for _, groupIdentifier := range instance.SecurityGroups { if *groupIdentifier.GroupName != ""...
[ -0.5580727458000183, 0.5501508116722107, 0.23114247620105743, 0.16839499771595, -0.21283696591854095, 0.25872644782066345, -0.9029251933097839, -0.8626070618629456, -0.7451574206352234, 0.17469170689582825, -0.9028210639953613, 1.4718148708343506, -1.1865772008895874, 0.38339778780937195, ...
func (client *AwsClientWrapper) GetIAMRole(machine *clusterv1alpha1.Machine) (string, error) { instance, err := getRunningInstance(machine, client.client) if err != nil { return "", err } if instance.IamInstanceProfile == nil { return "", err } return *instance.IamInstanceProfile.Id, nil }
[ -0.07809070497751236, 0.26015934348106384, 0.4884473383426666, -0.017135929316282272, -0.23344284296035767, 0.4542655646800995, -0.0988764688372612, -1.1700475215911865, -0.33775898814201355, 0.7288788557052612, -0.07433472573757172, 0.3301084339618683, -1.266789197921753, -0.0109813017770...
func (client *AwsClientWrapper) GetAvailabilityZone(machine *clusterv1alpha1.Machine) (string, error) { instance, err := getRunningInstance(machine, client.client) if err != nil { return "", err } if instance.Placement == nil { return "", err } return *instance.Placement.AvailabilityZone, nil }
[ -0.7418572902679443, -0.267462819814682, 0.28636103868484497, -0.15765462815761566, -0.7632117867469788, 0.8928056955337524, 0.565385103225708, 0.2747943699359894, -0.2670554220676422, 0.6379160284996033, -0.024657627567648888, 0.33709850907325745, -0.29691123962402344, 0.44881102442741394...
func (c *cache) Get(key string) interface{} { if v := c.get(key); v != nil { return v.Value } return nil }
[ -0.37752577662467957, 0.37838220596313477, 0.3074907958507538, 0.40419986844062805, -0.39594900608062744, -1.2146010398864746, -1.0561408996582031, -0.2542942464351654, -0.047256480902433395, 0.4931547939777374, -0.2806183993816376, 0.5295346975326538, -0.03870005905628204, 0.1583282351493...
func (c *cache) Set(key string, value interface{}) interface{} { c.mtx.Lock() c.data[key] = c.newCacheValue(value) c.mtx.Unlock() return value }
[ -0.7841160893440247, 0.13842587172985077, 0.17834562063217163, -0.43744733929634094, -1.0665632486343384, 0.18460077047348022, -0.5874159932136536, -0.4981926679611206, -0.3876323997974396, 0.32434895634651184, -0.5003366470336914, 0.36111173033714294, -0.5528554916381836, -0.3005562126636...
func NewServer(port int) *Server { return &Server{port: port} }
[ -0.4724195599555969, -0.7888115644454956, -0.028684120625257492, -0.3497314751148224, -0.6830366253852844, 0.531453013420105, -0.144516721367836, -0.45378944277763367, 0.06787225604057312, -0.3567233979701996, -0.5797480940818787, 0.21366466581821442, -0.4942053556442261, -0.32742279767990...
func (s *Server) Run() { s.connect() newClientListener := make(chan *Client) bufListener := make(chan *Message) go s.newClientListener(newClientListener) for { select { case client := <-newClientListener: client.server = s s.clients = append(s.clients, client) go client.Listen(bufListener) log.Prin...
[ -0.02809278480708599, -1.52825927734375, 0.638037919998169, -0.6679839491844177, 0.5519999265670776, 0.22615927457809448, 0.9551692605018616, -0.4381442070007324, -0.2911109924316406, 0.10424055904150009, -0.7745054960250854, 0.5209112763404846, -0.8951456546783447, 0.5985491275787354, 0...
func (s *Server) newClientListener(newClientListener chan<- *Client) { for { conn, err := s.listener.Accept() if err != nil { log.Fatalln(err) } newClientListener <- NewClient(conn) } }
[ -0.08931007981300354, -0.9925439357757568, 0.3302513360977173, -1.0022921562194824, -0.8414742946624756, 0.6951212286949158, -0.06935914605855942, -0.7065444588661194, -0.40684986114501953, 0.45613738894462585, -0.42676252126693726, 0.47568637132644653, 0.15910251438617706, 1.3419027328491...
func (s *Server) timing() { t := time.Now().Unix() if t > s.lastPulse { s.lastPulse = t for _, m := range mobs { m.Pulse() } for _, cl := range s.clients { cl.Pulse() } } if t > s.nextTick { s.nextTick = t + rand.Int63n(tickLength) + tickLength for _, m := range mobs { m.Tick() } for _, c...
[ -0.4397265613079071, 0.4169914126396179, 0.4416002631187439, -0.5281465649604797, 0.7071351408958435, 0.37301018834114075, 0.22272197902202606, -0.2815796136856079, 0.17245128750801086, -0.32259055972099304, 0.1457395702600479, -0.43831154704093933, -0.7449565529823303, 0.8083859086036682,...
func (s *Server) processMessages() { for i, m := range s.messages { if m.Process() { s.messages = append(s.messages[0:i], s.messages[i+1:]...) } } }
[ -0.2898850440979004, 0.20077669620513916, 0.4393170475959778, -0.45325279235839844, 0.44386667013168335, -0.6982020139694214, 0.7072698473930359, -0.6028112173080444, 0.2664242088794708, 0.615829348564148, 0.11463259905576706, 0.4388261139392853, -1.5586531162261963, 1.5261815786361694, ...
func (s *Server) connect() { ln, err := net.Listen("tcp", ":"+strconv.Itoa(s.port)) if err != nil { log.Fatalln(err) } else { s.listener = ln log.Println("Listening on port :" + strconv.Itoa(s.port)) } }
[ 0.4546995162963867, -1.1777637004852295, 0.49928873777389526, -0.3834136128425598, -0.1080905944108963, 0.6909337043762207, -0.43751001358032227, 0.21810214221477509, -0.7620124816894531, 0.4490300118923187, -0.08144920319318771, 0.30753037333488464, 0.43823981285095215, 0.8737462759017944...
func (s *Server) removeClient(c *Client) { c.conn.Close() for i, cl := range s.clients { if cl == c { s.clients = append(s.clients[0:i], s.clients[i+1:]...) log.Println("Client disconnected, " + strconv.Itoa(len(s.clients)) + " active clients") return } } }
[ -0.3427506387233734, -0.987758457660675, 0.44669413566589355, -0.9074758887290955, -0.5644704699516296, 0.0930854007601738, 0.5997428894042969, 0.13910990953445435, 0.31645482778549194, 0.4804988503456116, -1.0357730388641357, 0.5272813439369202, -1.3420215845108032, -0.3195977509021759, ...
func appendIfMissing(ipList []string, i string) []string { for _, ip := range ipList { if ip == i { return ipList } } return append(ipList, i) }
[ -0.6891757249832153, 0.018495997413992882, 0.36989474296569824, -0.26061925292015076, -0.019080733880400658, -0.03129331395030022, -1.9564014673233032, -0.3459925055503845, 0.2347496598958969, 1.2603076696395874, -0.3251620829105377, -0.31997179985046387, -0.27544277906417847, 0.2000251561...
func newGLWindow(opts *oswin.NewWindowOptions) (*glfw.Window, error) { _, _, tool, fullscreen := oswin.WindowFlagsToBool(opts.Flags) glfw.DefaultWindowHints() glfw.WindowHint(glfw.Resizable, glfw.True) glfw.WindowHint(glfw.Visible, glfw.True) // needed to position glfw.WindowHint(glfw.Focused, glfw.True) glfw.Win...
[ 0.21927613019943237, -0.1387394815683365, 0.8400219082832336, -0.03031807206571102, -0.9817311763763428, 0.19937027990818024, 0.08537789434194565, -0.3894377052783966, 0.381963849067688, -0.886329710483551, 0.2221488207578659, 0.5693134665489197, 0.021926529705524445, 1.0947840213775635, ...
func (w *windowImpl) NextEvent() oswin.Event { e := w.Deque.NextEvent() return e }
[ 1.1096811294555664, 0.020192885771393776, 0.25683990120887756, -0.15675362944602966, -0.4430025517940521, 0.4707038998603821, 0.5911469459533691, 0.16267253458499908, 0.6260731220245361, -1.1580513715744019, -0.1518896520137787, 1.046927809715271, -0.2403959333896637, 1.1298762559890747, ...
func (w *windowImpl) bindBackBuffer() { // w.mu.Lock() // size := w.Sz // w.mu.Unlock() // w.backBufferBound = true // gl.BindFramebuffer(gl.FRAMEBUFFER, 0) // gl.Viewport(0, 0, int32(size.X), int32(size.Y)) }
[ 0.870546817779541, -0.9480470418930054, 0.9252274632453918, 0.29952776432037354, -0.20262174308300018, -0.07606836408376694, 1.2498224973678589, -0.5160999298095703, 0.655246376991272, -0.7991376519203186, -0.7159139513969421, 0.8004778623580933, -1.479166865348816, 0.7555578351020813, -...
func calcMVP(widthPx, heightPx int, tlx, tly, trx, try, blx, bly float64) f64.Aff3 { // Convert from pixel coords to vertex shader coords. invHalfWidth := +2 / float64(widthPx) invHalfHeight := -2 / float64(heightPx) tlx = tlx*invHalfWidth - 1 tly = tly*invHalfHeight + 1 trx = trx*invHalfWidth - 1 try = try*invH...
[ 0.400305837392807, 0.05987882614135742, 0.757064938545227, -0.09352625161409378, -0.39694005250930786, -0.42373067140579224, -0.578793466091156, -0.3037489950656891, 0.4413279592990875, 0.7318078875541687, 0.47500506043434143, -0.41389721632003784, -0.23949380218982697, -0.3926819264888763...
func (w *windowImpl) drawLoop() { runtime.LockOSThread() outer: for { select { case <-w.winClose: break outer case <-w.publish: w.app.RunOnMain(func() { theGPU.UseContext(w) gl.Flush() w.glw.SwapBuffers() // gl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT) theGPU.ClearContext(w) ...
[ -0.3832148015499115, 0.16257622838020325, 0.5367658734321594, 0.7345744371414185, -0.5638914108276367, 1.312963604927063, 0.4280094504356384, -1.1275910139083862, 0.4392828047275543, -0.2616656720638275, 0.6424091458320618, 1.0202518701553345, -0.6843202710151672, 0.9619956612586975, -0....
func (w *windowImpl) DeleteTexture(t *textureImpl) { if w.textures == nil { return } delete(w.textures, t) }
[ 0.1019100621342659, -0.3894270062446594, 0.15661929547786713, -0.43715932965278625, -0.5228396654129028, -0.48619526624679565, 0.9181970357894897, -0.005396632477641106, 1.0480717420578003, 0.10440342128276825, -0.3644026815891266, -0.25266358256340027, -1.1230599880218506, 1.3040995597839...
func NewConfigMapReflector(workers uint) manager.Reflector { return generic.NewReflector(ConfigMapReflectorName, NewNamespacedConfigMapReflector, generic.WithoutFallback(), workers, generic.ConcurrencyModeLeader) }
[ -1.7179051637649536, -0.6007254123687744, 0.05397837981581688, -0.7614967226982117, -0.6601431369781494, -0.7089982628822327, -0.24845266342163086, 0.05764992907643318, 0.11183732748031616, -0.08565683662891388, -0.4227782189846039, -0.38933709263801575, -0.8211371302604675, 0.370630592107...
func RemoteConfigMapNamespacedKeyer(namespace string) func(metadata metav1.Object) []types.NamespacedName { return func(metadata metav1.Object) []types.NamespacedName { return []types.NamespacedName{{Namespace: namespace, Name: forge.LocalConfigMapName(metadata.GetName())}} } }
[ -1.030584692955017, -1.2754594087600708, 0.16443635523319244, -0.2764425277709961, -0.9705067276954651, 0.6762495636940002, -1.0536783933639526, -0.48406490683555603, 0.2257150262594223, 0.6812636852264404, -1.5190812349319458, 0.3919150233268738, -0.2819933295249939, 1.2653415203094482, ...
func NewNamespacedConfigMapReflector(opts *options.NamespacedOpts) manager.NamespacedReflector { local := opts.LocalFactory.Core().V1().ConfigMaps() remote := opts.RemoteFactory.Core().V1().ConfigMaps() // Using opts.LocalNamespace for both event handlers so that the object will be put in the same workqueue // no ...
[ -0.8869511485099792, -0.9470137357711792, 0.5228907465934753, -0.8706222772598267, -0.4331873655319214, 0.006660134065896273, -0.5106487274169922, 0.30897313356399536, 0.9228157997131348, -0.44081175327301025, -0.3127976059913635, 0.05547092854976654, -0.1643119603395462, 0.610119640827179...
func (ncr *NamespacedConfigMapReflector) RemoteRef(name string) klog.ObjectRef { return klog.KRef(ncr.RemoteNamespace(), forge.RemoteConfigMapName(name)) }
[ 0.4066302180290222, -0.9458181262016296, 0.4373305141925812, -1.078481674194336, -1.4642038345336914, 0.41650494933128357, -0.31875988841056824, -0.3790794014930725, 0.7389605045318604, 0.3917493522167206, -0.8458495140075684, 1.0362516641616821, -0.40012750029563904, -0.07842525094747543,...