text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (ctx *Context) IsPodFitNode(name string, node string) error { // simply skip if predicates are not enabled if !ctx.predictor.Enabled() { return nil } ctx.lock.RLock() defer ctx.lock.RUnlock() if pod, ok := ctx.schedulerCache.GetPod(name); ok { // if pod exists in cache, try to run predicates if target...
[ -0.8719555139541626, -0.16299594938755035, 0.7762800455093384, -0.28960368037223816, -0.22207854688167572, 0.5020221471786499, -0.6233394742012024, 0.06679995357990265, 0.20858724415302277, 0.2842418849468231, 0.6268747448921204, 1.1837809085845947, -0.39094677567481995, 0.0422788336873054...
func (ctx *Context) AssumePod(name string, node string) error { ctx.lock.Lock() defer ctx.lock.Unlock() if pod, ok := ctx.schedulerCache.GetPod(name); ok { // when add assumed pod, we make a copy of the pod to avoid // modifying its original reference. otherwise, it may have // race when some other go-routine...
[ -0.34033772349357605, 0.23034793138504028, 0.8191124796867371, -0.81894850730896, -0.05767466500401497, 0.08579403162002563, 0.15072613954544067, -0.15033306181430817, 0.048866886645555496, 1.2859247922897339, 0.556007981300354, 0.3272157907485962, -0.3620280921459198, -0.6475266218185425,...
func (ctx *Context) getOrCreateApplication(pod *v1.Pod) *Application { ctx.lock.Lock() defer ctx.lock.Unlock() //pod 的laber需要设置applicationID!!!!!! appId, err := utils.GetApplicationIdFromPod(pod) if err != nil { log.Logger.Error("unable to get application by given pod", zap.Error(err)) return nil } //如果app...
[ -0.3477388620376587, -0.2409612238407135, 0.6192132234573364, 0.43523550033569336, 0.05930907651782036, 0.25109657645225525, -0.3039371073246002, -1.2467482089996338, 0.6534064412117004, 0.16620801389217377, 0.5972252488136292, -0.3496859073638916, -0.5285223126411438, 0.02039486914873123,...
func main() { c, err := client.Dial(client.Options{ HostPort: client.DefaultHostPort, }) if err != nil { log.Fatalln("Unable to create client", err) } defer c.Close() workflowOptions := client.StartWorkflowOptions{ ID: updatabletimer.WorkflowID, TaskQueue: updatabletimer.TaskQueue, } wakeUpTime...
[ 0.6513407826423645, -0.1287897229194641, 0.7678408026695251, 0.6419599056243896, 0.5371689200401306, 0.4172852635383606, 0.1702248752117157, 0.09146767854690552, -0.6193607449531555, 0.6930417418479919, -0.1567496508359909, 1.0313483476638794, -0.40053948760032654, -0.0623566098511219, 0...
func NewAccountIamMember(ctx *pulumi.Context, name string, args *AccountIamMemberArgs, opts ...pulumi.ResourceOption) (*AccountIamMember, error) { if args == nil || args.BillingAccountId == nil { return nil, errors.New("missing required argument 'BillingAccountId'") } if args == nil || args.Member == nil { retu...
[ 0.23073242604732513, 0.006612643599510193, 0.393777072429657, 0.005074379500001669, -0.1695277839899063, 0.5992313027381897, 0.3800184428691864, 0.18081550300121307, 0.751002311706543, 0.5868135690689087, -0.17628058791160583, -0.23911555111408234, -0.4079061448574066, -0.5086768865585327,...
func GetAccountIamMember(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AccountIamMemberState, opts ...pulumi.ResourceOption) (*AccountIamMember, error) { var resource AccountIamMember err := ctx.ReadResource("gcp:billing/accountIamMember:AccountIamMember", name, id, state, &resource, opts...) if err !...
[ 0.516920804977417, -0.3882516324520111, 0.24102658033370972, 0.1902647316455841, -0.3184852600097656, 0.1760013997554779, -0.05502324923872948, -0.3417060077190399, 1.7323520183563232, 0.24247297644615173, 0.5037569403648376, 0.8405102491378784, -0.014902704395353794, -1.4885597229003906, ...
func NewAcceptResponseMessage(id, v int) message { return message{t: AcceptResponse, id: id, v: v} }
[ 0.2622315287590027, -0.7729530334472656, 0.26154592633247375, -0.8729321360588074, -0.8584136366844177, -0.5786387920379639, -0.051775749772787094, -0.9457394480705261, 0.19360888004302979, 0.02168809436261654, -0.23031821846961975, -0.3092877268791199, -0.5866749882698059, -0.228004574775...
func createPerfSchemaTable(meta *model.TableInfo) *perfSchemaTable { columns := make([]*table.Column, 0, len(meta.Columns)) for _, colInfo := range meta.Columns { col := table.ToColumn(colInfo) columns = append(columns, col) } t := &perfSchemaTable{ meta: meta, cols: columns, } return t }
[ 0.37124642729759216, 0.23150597512722015, 0.5081622004508972, 0.0008828755817376077, -0.2826234698295593, -0.17629912495613098, -0.3600142300128937, -0.0356101393699646, -0.8944697976112366, 0.10199996083974838, 0.6418859362602234, -0.8459138870239258, -0.25777193903923035, -0.221429049968...
func (vt *perfSchemaTable) IterRecords(ctx sessionctx.Context, startKey kv.Key, cols []*table.Column, fn table.RecordIterFunc) error { if len(startKey) != 0 { return table.ErrUnsupportedOp } return nil }
[ -0.5986147522926331, 0.5227860808372498, 0.4849242866039276, 0.0736016258597374, -0.0015640307683497667, -0.12915900349617004, -0.05515364184975624, 0.6976444721221924, -0.9240530133247375, 0.4985448122024536, 0.5031465888023376, -0.07192965596914291, -1.4853097200393677, -0.87314999103546...
func (vt *perfSchemaTable) RowWithCols(ctx sessionctx.Context, h int64, cols []*table.Column) ([]types.Datum, error) { return nil, table.ErrUnsupportedOp }
[ -0.24938929080963135, 0.4544011354446411, 0.11230970919132233, 0.03194483369588852, -0.1387556940317154, -0.004767092410475016, -0.1302276849746704, -0.4356173872947693, -0.03933452442288399, -0.7950865626335144, -0.32718849182128906, -0.6499701142311096, -0.18783777952194214, -0.241034880...
func (vt *perfSchemaTable) Row(ctx sessionctx.Context, h int64) ([]types.Datum, error) { return nil, table.ErrUnsupportedOp }
[ -1.010893702507019, 1.30955171585083, 0.3592590093612671, 0.54746413230896, -0.24581609666347504, 0.3783775269985199, 0.23637883365154266, 0.3818027675151825, 0.5719407200813293, -0.8569059371948242, 0.06503983587026596, 0.012004027143120766, -0.34903037548065186, 0.3263482451438904, -0....
func (vt *perfSchemaTable) Cols() []*table.Column { return vt.cols }
[ -0.34873902797698975, -0.5730226635932922, 0.15700297057628632, 0.3189679682254791, 0.3922390341758728, 0.19881364703178406, -0.35382288694381714, -0.26228195428848267, 0.23220638930797577, -0.6636096835136414, -0.017777932807803154, 0.10539279878139496, -0.18156352639198303, -0.2568774819...
func (vt *perfSchemaTable) WritableCols() []*table.Column { return vt.cols }
[ -0.4311240613460541, -0.7533895373344421, 0.11692040413618088, 0.28328102827072144, -0.07265700399875641, 0.3507840037345886, 0.32257789373397827, -0.1929931789636612, -0.586729884147644, -0.05271396040916443, -0.4588833153247833, 0.7342925071716309, -0.6275280117988586, -1.107202410697937...
func (vt *perfSchemaTable) Indices() []table.Index { return nil }
[ -1.0927823781967163, 0.07282042503356934, 0.034480173140764236, -0.28834033012390137, 0.24116533994674683, 0.422219842672348, 0.340700626373291, 0.7315654754638672, 0.11516307294368744, -0.6472187042236328, 0.28293901681900024, -0.7505826950073242, -0.8662580847740173, -0.15187528729438782...
func (vt *perfSchemaTable) WritableIndices() []table.Index { return nil }
[ -1.1891858577728271, -0.29833462834358215, 0.0777679830789566, -0.3737362325191498, -0.40970659255981445, 0.06951342523097992, 0.7308207154273987, 0.8152625560760498, 0.02307354286313057, -0.23726530373096466, 0.06285391002893448, 0.3690569996833801, -1.1653916835784912, -0.531926453113555...
func (vt *perfSchemaTable) DeletableIndices() []table.Index { return nil }
[ -0.34792396426200867, 0.17883537709712982, 0.2522042691707611, 0.21144013106822968, -0.19654236733913422, 0.12717752158641815, 0.37736785411834717, 0.5763232707977295, 0.6312675476074219, -0.2476557493209839, 0.018665572628378868, -0.18820573389530182, -0.9576402306556702, -0.2547664642333...
func (vt *perfSchemaTable) RecordPrefix() kv.Key { return nil }
[ 0.020783843472599983, 0.6109243035316467, 0.3617483377456665, -0.07858661562204361, 0.3622678220272064, -0.10996955633163452, -0.35516685247421265, 0.5516786575317383, -0.09194813668727875, -0.1590799242258072, -0.2989692687988281, 0.6279428601264954, -0.6992833018302917, 0.579576849937439...
func (vt *perfSchemaTable) IndexPrefix() kv.Key { return nil }
[ -0.5257731080055237, 0.2202708125114441, 0.1748918741941452, 0.19538480043411255, -0.2238469272851944, -0.18432395160198212, 0.18796595931053162, 0.36358553171157837, 0.33632373809814453, 0.14080967009067535, 0.2090185135602951, -0.24504096806049347, -0.8055863976478577, -0.012392635457217...
func (vt *perfSchemaTable) FirstKey() kv.Key { return nil }
[ 0.3933686912059784, 0.22645817697048187, 0.26615110039711, 0.24485792219638824, 0.9075382351875305, 0.18235662579536438, -0.29300302267074585, 0.4255160987377167, 0.2841110825538635, -0.8290730714797974, 1.1166980266571045, -0.9127268195152283, -0.652685284614563, 0.7893885970115662, -0....
func (vt *perfSchemaTable) RecordKey(h int64) kv.Key { return nil }
[ -0.27414947748184204, 1.4753625392913818, 0.5135481357574463, 0.5966981053352356, 0.4459686577320099, 0.02201387658715248, 0.3768022656440735, 0.37943553924560547, -0.43368974328041077, -0.03275284171104431, -0.07978623360395432, 0.24467960000038147, -0.8919135928153992, 0.7851265072822571...
func (vt *perfSchemaTable) AddRecord(ctx sessionctx.Context, r []types.Datum, skipHandleCheck bool) (recordID int64, err error) { return 0, table.ErrUnsupportedOp }
[ -0.23726694285869598, 0.7840294241905212, 0.6590965986251831, 0.8669596314430237, 0.3726232945919037, 1.5779244899749756, 0.8226171135902405, 0.4073452651500702, 0.2322206348180771, -0.8435438275337219, 0.7569329142570496, -0.3948728144168854, -1.2001607418060303, 0.48354336619377136, 0....
func (vt *perfSchemaTable) RemoveRecord(ctx sessionctx.Context, h int64, r []types.Datum) error { return table.ErrUnsupportedOp }
[ -0.16204117238521576, 0.6817283630371094, 0.39880356192588806, 0.34159836173057556, -0.12592557072639465, 0.7000064849853516, 0.3587213456630707, 1.0712547302246094, -0.2218877077102661, -0.14516419172286987, 0.08956505358219147, -0.4741477370262146, -0.9840210676193237, 0.3457191884517669...
func (vt *perfSchemaTable) UpdateRecord(ctx sessionctx.Context, h int64, oldData, newData []types.Datum, touched []bool) error { return table.ErrUnsupportedOp }
[ -0.26933541893959045, 0.28630170226097107, 0.42896369099617004, 0.020174380391836166, -0.5743935108184814, 1.0085468292236328, -0.002865847200155258, 0.6956800222396851, -0.37424781918525696, 0.23858097195625305, 0.32507631182670593, 0.16958177089691162, -0.684805154800415, 0.6347458362579...
func (vt *perfSchemaTable) AllocAutoID(ctx sessionctx.Context) (int64, error) { return 0, table.ErrUnsupportedOp }
[ 0.4769240617752075, 0.05374627932906151, 0.31868845224380493, 0.3725452721118927, -0.2975021302700043, 0.4645098149776459, 0.22043871879577637, 0.582014799118042, 0.7174456119537354, 0.4646303951740265, 0.9033334255218506, 0.3960431218147278, -0.1220470666885376, -0.2473689615726471, -0....
func (vt *perfSchemaTable) Allocator(ctx sessionctx.Context) autoid.Allocator { return nil }
[ -0.24241554737091064, 0.08154017478227615, 0.25158336758613586, -0.18696235120296478, -0.6755443811416626, 0.7187286019325256, 0.4232610762119293, 0.0813799798488617, 1.3431847095489502, -0.8651918768882751, 1.2332243919372559, -0.24907566606998444, -0.19555801153182983, -0.265309393405914...
func (vt *perfSchemaTable) RebaseAutoID(ctx sessionctx.Context, newBase int64, isSetStep bool) error { return table.ErrUnsupportedOp }
[ -0.3628944158554077, -0.6746808290481567, 0.2003907561302185, 1.5214128494262695, -0.18621031939983368, -0.031050723046064377, -0.012452908791601658, 0.24517233669757843, -0.2391257882118225, 0.7924277186393738, -0.6351495981216431, 0.25431233644485474, -0.7820104956626892, 0.2065625488758...
func (vt *perfSchemaTable) Meta() *model.TableInfo { return vt.meta }
[ 0.5396354794502258, 0.0706663653254509, 0.3170313239097595, 0.6076498031616211, -0.1739504635334015, 0.5923509001731873, -0.3033435046672821, -0.2507135570049286, -1.1779091358184814, -0.6286197304725647, 0.7450217604637146, 0.06452527642250061, 0.5173406600952148, -0.12987378239631653, ...
func (vt *perfSchemaTable) GetPhysicalID() int64 { return vt.meta.ID }
[ 0.7708700895309448, 0.2872704565525055, 0.3680683374404907, 0.39970535039901733, 0.04638134688138962, 0.9627274870872498, -0.5035163760185242, -0.06369772553443909, -0.509570300579071, 0.029133927077054977, 1.324830412864685, 0.4126201868057251, -0.49086353182792664, -0.2105577290058136, ...
func (vt *perfSchemaTable) Seek(ctx sessionctx.Context, h int64) (int64, bool, error) { return 0, false, table.ErrUnsupportedOp }
[ -1.0590479373931885, 0.6774759888648987, 0.4764314591884613, 0.11960691958665848, -0.38225650787353516, 0.805091142654419, 0.7823987007141113, -0.15585364401340485, -0.2806282043457031, -0.5640458464622498, -0.12491310387849808, -0.20936451852321625, -1.169097661972046, 0.06745477765798569...
func (vt *perfSchemaTable) Type() table.Type { return table.VirtualTable }
[ 0.4872169494628906, 0.250894159078598, 0.21868348121643066, 0.9114534258842468, -0.038079217076301575, 0.7161152362823486, 0.627114474773407, -0.47054895758628845, 0.31672048568725586, 0.276394784450531, 0.5725879669189453, 0.33376190066337585, -1.1575331687927246, 0.497677206993103, -0....
func pixelBufferLength(bytesPerPixel int, r Rectangle, imageTypeName string) int { totalLength := mul3NonNeg(bytesPerPixel, r.Dx(), r.Dy()) if totalLength < 0 { panic("image: New" + imageTypeName + " Rectangle has huge or negative dimensions") } return totalLength }
[ 0.370941162109375, 0.3906816244125366, 0.5177809596061707, 0.06038477644324303, -0.394796222448349, 0.957486629486084, -0.29260358214378357, -0.7528085112571716, 0.8683655261993408, -0.1331910938024521, -0.45987439155578613, -0.7023797631263733, -0.4355946183204651, 0.5865432620048523, 0...
func (p *RGBA) PixOffset(x, y int) int { return (y-p.Rect.Min.Y)*p.Stride + (x-p.Rect.Min.X)*4 }
[ 0.6187123656272888, -0.28006693720817566, 0.3508085310459137, -0.9586707353591919, -0.45866289734840393, 0.8619085550308228, -0.2628437578678131, -1.1455769538879395, 0.6086353063583374, -0.11264695227146149, -0.2668200731277466, 0.30885937809944153, -0.06607862561941147, -0.62506276369094...
func (p *RGBA) SubImage(r Rectangle) Image { r = r.Intersect(p.Rect) // If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside // either r1 or r2 if the intersection is empty. Without explicitly checking for // this, the Pix[i:] expression below can panic. if r.Empty() { return &RGBA{} } ...
[ 0.09894721210002899, -0.33159777522087097, 0.519690990447998, 0.41172972321510315, -0.2691485583782196, 0.3401433825492859, 0.3376503586769104, -0.3932948112487793, -0.029229778796434402, 0.00946041475981474, 0.6100343465805054, 0.30529212951660156, -0.5290666818618774, -0.1239785179495811...
func (p *RGBA) Opaque() bool { if p.Rect.Empty() { return true } i0, i1 := 3, p.Rect.Dx()*4 for y := p.Rect.Min.Y; y < p.Rect.Max.Y; y++ { for i := i0; i < i1; i += 4 { if p.Pix[i] != 0xff { return false } } i0 += p.Stride i1 += p.Stride } return true }
[ -0.7394574880599976, 0.12181123346090317, 0.9901858568191528, -1.0610270500183105, -0.30417507886886597, 0.4703879654407501, 0.6580477952957153, -0.9551477432250977, -0.0589924119412899, 0.10508406907320023, -0.3110145032405853, -1.109220027923584, -0.3437766432762146, -0.0957692489027977,...
func NewRGBA(r Rectangle) *RGBA { return &RGBA{ Pix: make([]uint8, pixelBufferLength(4, r, "RGBA")), Stride: 4 * r.Dx(), Rect: r, } }
[ -0.30449458956718445, -0.4685209095478058, 0.47890427708625793, -0.12005119025707245, -0.6042425036430359, -0.5480124354362488, 0.26302531361579895, -1.4980711936950684, 0.44792667031288147, 0.14677250385284424, -0.16184858977794647, 0.26850083470344543, -0.44174569845199585, 0.54690033197...
func (p *RGBA64) PixOffset(x, y int) int { return (y-p.Rect.Min.Y)*p.Stride + (x-p.Rect.Min.X)*8 }
[ 0.3325996994972229, -0.021938113495707512, 0.3297533690929413, -0.6700612902641296, -0.6954249739646912, 0.8955205678939819, -0.5424984693527222, -1.1243947744369507, 0.8019786477088928, -0.00980295892804861, -0.040621332824230194, 0.4936997592449188, 0.08101386576890945, -0.76315361261367...
func (p *RGBA64) SubImage(r Rectangle) Image { r = r.Intersect(p.Rect) // If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside // either r1 or r2 if the intersection is empty. Without explicitly checking for // this, the Pix[i:] expression below can panic. if r.Empty() { return &RGBA64{} ...
[ -0.0424959622323513, -0.07397876679897308, 0.4351738393306732, 0.7106591463088989, -0.5358182191848755, 0.2916463613510132, 0.026347991079092026, -0.36471322178840637, 0.08851038664579391, 0.06321883201599121, 0.6881661415100098, 0.3022685647010803, -0.312557190656662, -0.3430034816265106,...
func (p *RGBA64) Opaque() bool { if p.Rect.Empty() { return true } i0, i1 := 6, p.Rect.Dx()*8 for y := p.Rect.Min.Y; y < p.Rect.Max.Y; y++ { for i := i0; i < i1; i += 8 { if p.Pix[i+0] != 0xff || p.Pix[i+1] != 0xff { return false } } i0 += p.Stride i1 += p.Stride } return true }
[ -0.9270015358924866, 0.15369880199432373, 0.9716523885726929, -0.7778321504592896, -0.6826147437095642, 0.3332723379135132, 0.5200828313827515, -0.9146916270256042, 0.18517835438251495, 0.37006768584251404, -0.06411956250667572, -0.928650975227356, -0.13615070283412933, -0.0911355465650558...
func NewRGBA64(r Rectangle) *RGBA64 { return &RGBA64{ Pix: make([]uint8, pixelBufferLength(8, r, "RGBA64")), Stride: 8 * r.Dx(), Rect: r, } }
[ -0.4604540169239044, -0.12434572726488113, 0.15620777010917664, 0.2670798599720001, -0.622057318687439, -0.40643826127052307, -0.17972859740257263, -1.1003304719924927, 0.42557284235954285, 0.4884021580219269, 0.06594105064868927, -0.10446420311927795, -0.06175337731838226, 0.5584333539009...
func (p *NRGBA) PixOffset(x, y int) int { return (y-p.Rect.Min.Y)*p.Stride + (x-p.Rect.Min.X)*4 }
[ 0.578834056854248, -0.32477790117263794, 0.34990227222442627, -0.8757243156433105, -0.43233397603034973, 0.9087966680526733, -0.25625109672546387, -1.3309874534606934, 0.5555241703987122, -0.11689009517431259, -0.31592029333114624, 0.41976985335350037, -0.07154896855354309, -0.689598381519...
func (p *NRGBA) SubImage(r Rectangle) Image { r = r.Intersect(p.Rect) // If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside // either r1 or r2 if the intersection is empty. Without explicitly checking for // this, the Pix[i:] expression below can panic. if r.Empty() { return &NRGBA{} }...
[ 0.003685776377096772, -0.320806086063385, 0.5456787943840027, 0.4395236074924469, -0.32602447271347046, 0.3207157850265503, 0.4030319154262543, -0.6279690265655518, 0.02815413288772106, 0.019329311326146126, 0.6128587126731873, 0.33059829473495483, -0.6043680310249329, -0.11329047381877899...
func (p *NRGBA) Opaque() bool { if p.Rect.Empty() { return true } i0, i1 := 3, p.Rect.Dx()*4 for y := p.Rect.Min.Y; y < p.Rect.Max.Y; y++ { for i := i0; i < i1; i += 4 { if p.Pix[i] != 0xff { return false } } i0 += p.Stride i1 += p.Stride } return true }
[ -0.7092036604881287, 0.12290079146623611, 0.9500116109848022, -0.9569216370582581, -0.321785569190979, 0.48684024810791016, 0.688010573387146, -1.1095085144042969, -0.06840851157903671, 0.10953599214553833, -0.2511724829673767, -1.0529099702835083, -0.45223867893218994, 0.02008233405649662...
func NewNRGBA(r Rectangle) *NRGBA { return &NRGBA{ Pix: make([]uint8, pixelBufferLength(4, r, "NRGBA")), Stride: 4 * r.Dx(), Rect: r, } }
[ -0.5822982788085938, -0.5604566335678101, 0.3097516596317291, 0.06993801891803741, -0.8443849086761475, -0.41695213317871094, 0.7471060752868652, -1.803558588027954, 0.48612648248672485, 0.26853224635124207, -0.4765595495700836, 0.1332569271326065, -0.8292484879493713, 0.7315477132797241, ...
func (p *NRGBA64) PixOffset(x, y int) int { return (y-p.Rect.Min.Y)*p.Stride + (x-p.Rect.Min.X)*8 }
[ 0.31646421551704407, -0.13645868003368378, 0.333334743976593, -0.6341173648834229, -0.61886066198349, 0.919330358505249, -0.4537889361381531, -1.2626891136169434, 0.7690415382385254, -0.06604348868131638, -0.08341217041015625, 0.5564500689506531, 0.02184813655912876, -0.7659373879432678, ...
func (p *NRGBA64) SubImage(r Rectangle) Image { r = r.Intersect(p.Rect) // If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside // either r1 or r2 if the intersection is empty. Without explicitly checking for // this, the Pix[i:] expression below can panic. if r.Empty() { return &NRGBA64{...
[ -0.09185253828763962, -0.18185147643089294, 0.4769127070903778, 0.6967760324478149, -0.4419150650501251, 0.28415781259536743, 0.15877723693847656, -0.5312849879264832, 0.04450592026114464, -0.07674171030521393, 0.6478111147880554, 0.31788620352745056, -0.46525654196739197, -0.2665660977363...
func (p *NRGBA64) Opaque() bool { if p.Rect.Empty() { return true } i0, i1 := 6, p.Rect.Dx()*8 for y := p.Rect.Min.Y; y < p.Rect.Max.Y; y++ { for i := i0; i < i1; i += 8 { if p.Pix[i+0] != 0xff || p.Pix[i+1] != 0xff { return false } } i0 += p.Stride i1 += p.Stride } return true }
[ -0.9018459320068359, 0.12918344140052795, 0.9454891085624695, -0.7211110591888428, -0.68805330991745, 0.3727392852306366, 0.6204579472541809, -1.0061495304107666, 0.13679227232933044, 0.3320246636867523, -0.05606571584939957, -0.8897929191589355, -0.2629261910915375, 0.0176206286996603, ...
func NewNRGBA64(r Rectangle) *NRGBA64 { return &NRGBA64{ Pix: make([]uint8, pixelBufferLength(8, r, "NRGBA64")), Stride: 8 * r.Dx(), Rect: r, } }
[ -0.8433214426040649, -0.24821825325489044, 0.09866408258676529, 0.4880151152610779, -0.7620505690574646, -0.4497089982032776, 0.32521337270736694, -1.575913906097412, 0.6267011761665344, 0.3159794211387634, -0.07359353452920914, -0.08446334302425385, -0.4183231592178345, 0.8016607165336609...
func (p *Alpha) PixOffset(x, y int) int { return (y-p.Rect.Min.Y)*p.Stride + (x-p.Rect.Min.X)*1 }
[ 0.3578391969203949, -0.3494608700275421, 0.407154381275177, -1.0356594324111938, -0.5779681205749512, 1.1388386487960815, -0.4833245873451233, -0.8340359330177307, 0.594271183013916, -0.09756027907133102, -0.20100165903568268, 0.38605573773384094, -0.001151776174083352, -0.5304027795791626...
func (p *Alpha) SubImage(r Rectangle) Image { r = r.Intersect(p.Rect) // If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside // either r1 or r2 if the intersection is empty. Without explicitly checking for // this, the Pix[i:] expression below can panic. if r.Empty() { return &Alpha{} }...
[ 0.068998321890831, -0.4674207866191864, 0.5465236306190491, 0.3103231191635132, -0.5383432507514954, 0.5462120175361633, 0.05563416704535484, -0.07136448472738266, -0.06931669265031815, 0.04849446937441826, 0.44655588269233704, -0.08350340276956558, -0.5563250780105591, -0.0100026903674006...
func (p *Alpha) Opaque() bool { if p.Rect.Empty() { return true } i0, i1 := 0, p.Rect.Dx() for y := p.Rect.Min.Y; y < p.Rect.Max.Y; y++ { for i := i0; i < i1; i++ { if p.Pix[i] != 0xff { return false } } i0 += p.Stride i1 += p.Stride } return true }
[ -0.936963677406311, 0.04333943873643875, 1.0169063806533813, -1.1998814344406128, -0.6189719438552856, 0.6279114484786987, 0.38513922691345215, -0.6465622782707214, -0.13241085410118103, 0.25201550126075745, -0.25657591223716736, -1.043487787246704, -0.16479896008968353, 0.0597513653337955...
func NewAlpha(r Rectangle) *Alpha { return &Alpha{ Pix: make([]uint8, pixelBufferLength(1, r, "Alpha")), Stride: 1 * r.Dx(), Rect: r, } }
[ -0.36322298645973206, -0.7190901041030884, 0.542465329170227, 0.25982725620269775, -1.4662401676177979, 0.08333145827054977, -0.0015290295705199242, -0.9774016737937927, 0.9745668172836304, -0.015580125153064728, -0.19054459035396576, 0.013995912857353687, 0.11100699752569199, 0.6361837387...
func (p *Alpha16) PixOffset(x, y int) int { return (y-p.Rect.Min.Y)*p.Stride + (x-p.Rect.Min.X)*2 }
[ 0.7095760107040405, -0.19517013430595398, 0.4380161762237549, -1.1690235137939453, -0.4771808385848999, 1.0872917175292969, -0.7115384936332703, -1.0550687313079834, 0.46372073888778687, -0.16341494023799896, -0.30303826928138733, 0.572300374507904, 0.23904192447662354, -0.8811607360839844...
func (p *Alpha16) SubImage(r Rectangle) Image { r = r.Intersect(p.Rect) // If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside // either r1 or r2 if the intersection is empty. Without explicitly checking for // this, the Pix[i:] expression below can panic. if r.Empty() { return &Alpha16{...
[ 0.385125994682312, -0.17449945211410522, 0.5504711270332336, 0.013323646038770676, -0.33560171723365784, 0.5145993232727051, -0.21475864946842194, -0.30454757809638977, 0.025577815249562263, 0.06473270803689957, 0.452728271484375, 0.038857270032167435, -0.33267471194267273, -0.572979450225...
func (p *Alpha16) Opaque() bool { if p.Rect.Empty() { return true } i0, i1 := 0, p.Rect.Dx()*2 for y := p.Rect.Min.Y; y < p.Rect.Max.Y; y++ { for i := i0; i < i1; i += 2 { if p.Pix[i+0] != 0xff || p.Pix[i+1] != 0xff { return false } } i0 += p.Stride i1 += p.Stride } return true }
[ -0.6489954590797424, 0.2823634743690491, 1.0781757831573486, -1.246322751045227, -0.5861346125602722, 0.5015589594841003, 0.3419927954673767, -0.7575973272323608, -0.18292534351348877, 0.439919650554657, -0.2511444389820099, -0.8645938634872437, -0.03141914680600166, -0.2684449553489685, ...
func NewAlpha16(r Rectangle) *Alpha16 { return &Alpha16{ Pix: make([]uint8, pixelBufferLength(2, r, "Alpha16")), Stride: 2 * r.Dx(), Rect: r, } }
[ 0.4370388686656952, -0.3371191918849945, 0.4070933163166046, -0.6755585074424744, -1.365921139717102, 0.44429898262023926, -0.5094009041786194, -0.9587599039077759, 1.1631478071212769, 0.2809041440486908, -0.7001593112945557, 0.6938329339027405, 0.6049649715423584, -0.24937842786312103, ...
func (p *Gray) PixOffset(x, y int) int { return (y-p.Rect.Min.Y)*p.Stride + (x-p.Rect.Min.X)*1 }
[ 0.03208097070455551, -0.005583749618381262, 0.42973268032073975, -0.9391271471977234, -0.6824238300323486, 1.1151593923568726, -0.3770972490310669, -1.0400807857513428, 0.6047461628913879, 0.23093022406101227, -0.2147129625082016, 0.6693779826164246, 0.14882831275463104, -0.629885792732238...
func (p *Gray) SubImage(r Rectangle) Image { r = r.Intersect(p.Rect) // If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside // either r1 or r2 if the intersection is empty. Without explicitly checking for // this, the Pix[i:] expression below can panic. if r.Empty() { return &Gray{} } ...
[ -0.4245544672012329, 0.13746309280395508, 0.4833036959171295, 0.2307337075471878, -0.362628310918808, 0.6429221034049988, 0.1306467205286026, -0.47277992963790894, 0.03293122351169586, 0.31013619899749756, 0.48040422797203064, 0.5546141266822815, -0.49322181940078735, -0.27120622992515564,...
func (p *Gray) Opaque() bool { return true }
[ -1.448356032371521, 0.15528085827827454, 0.6021000146865845, -0.3367229700088501, -0.26202136278152466, 2.0179080963134766, 0.24953559041023254, -0.33029425144195557, -0.5750758647918701, 0.6532757878303528, -0.006366748362779617, -0.3534676730632782, -0.6397786140441895, 0.404278635978698...
func NewGray(r Rectangle) *Gray { return &Gray{ Pix: make([]uint8, pixelBufferLength(1, r, "Gray")), Stride: 1 * r.Dx(), Rect: r, } }
[ -0.5746532678604126, 0.16553667187690735, 0.37772607803344727, 0.034506238996982574, -1.0145163536071777, 0.09858516603708267, -0.4130057990550995, -1.7533149719238281, 0.6983246207237244, -0.5265159010887146, -0.48985570669174194, 0.7874535322189331, -0.23141154646873474, 0.23992988467216...
func (p *Gray16) PixOffset(x, y int) int { return (y-p.Rect.Min.Y)*p.Stride + (x-p.Rect.Min.X)*2 }
[ 0.5053073763847351, -0.05607539787888527, 0.4699190557003021, -1.0021641254425049, -0.5003811120986938, 0.9886085987091064, -0.6096926927566528, -1.1178252696990967, 0.35283172130584717, 0.07976020872592926, -0.30559682846069336, 0.6320416331291199, 0.3494177460670471, -0.8010782599449158,...
func (p *Gray16) SubImage(r Rectangle) Image { r = r.Intersect(p.Rect) // If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside // either r1 or r2 if the intersection is empty. Without explicitly checking for // this, the Pix[i:] expression below can panic. if r.Empty() { return &Gray16{} ...
[ 0.13579216599464417, 0.09723611921072006, 0.576993465423584, 0.062297478318214417, -0.10229089856147766, 0.4480084180831909, -0.06412052363157272, -0.3890973627567291, -0.13156574964523315, 0.1999935507774353, 0.5258902311325073, 0.35041722655296326, -0.33518800139427185, -0.47075301408767...
func (p *Gray16) Opaque() bool { return true }
[ -0.5979376435279846, 0.27657321095466614, 0.6692050695419312, -0.40832260251045227, 0.0023755256552249193, 1.5271103382110596, 0.12177284806966782, -0.4127790033817291, -0.5842151641845703, 0.48011696338653564, -0.05175430327653885, -0.5115925073623657, -0.3567849397659302, 0.0082546966150...
func NewGray16(r Rectangle) *Gray16 { return &Gray16{ Pix: make([]uint8, pixelBufferLength(2, r, "Gray16")), Stride: 2 * r.Dx(), Rect: r, } }
[ 0.6228819489479065, 0.26417943835258484, 0.3692218065261841, -0.6057710647583008, -0.398954302072525, 0.0225436519831419, -0.45774930715560913, -1.3252490758895874, 0.4578169584274292, -0.13634592294692993, -0.9015094637870789, 1.017669439315796, 0.36952492594718933, 0.081399105489254, -...
func (p *CMYK) PixOffset(x, y int) int { return (y-p.Rect.Min.Y)*p.Stride + (x-p.Rect.Min.X)*4 }
[ 0.5431787371635437, -0.18910545110702515, 0.437017560005188, -0.842633843421936, -0.969535768032074, 0.8254050612449646, -0.3870304822921753, -0.9924086332321167, 0.41925889253616333, -0.05969526991248131, -0.47809579968452454, 0.015077651478350163, -0.1138506680727005, -0.7583527565002441...
func (p *CMYK) SubImage(r Rectangle) Image { r = r.Intersect(p.Rect) // If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside // either r1 or r2 if the intersection is empty. Without explicitly checking for // this, the Pix[i:] expression below can panic. if r.Empty() { return &CMYK{} } ...
[ 0.11717526614665985, -0.22699299454689026, 0.5134484767913818, 0.5507859587669373, -0.9370054602622986, 0.20720817148685455, 0.26489803194999695, -0.1995721459388733, -0.23367133736610413, 0.00162508396897465, 0.38721978664398193, -0.04319486767053604, -0.6537169218063354, -0.1448527425527...
func (p *CMYK) Opaque() bool { return true }
[ -0.9077238440513611, -0.08114022761583328, 0.6079325079917908, -0.055723704397678375, -0.8376043438911438, 1.4316017627716064, 0.5299466252326965, -0.31036603450775146, -0.4887814223766327, 0.07652105391025543, -0.2592398226261139, -1.156829595565796, -0.8933705687522888, 0.622240304946899...
func NewCMYK(r Rectangle) *CMYK { return &CMYK{ Pix: make([]uint8, pixelBufferLength(4, r, "CMYK")), Stride: 4 * r.Dx(), Rect: r, } }
[ 0.0712750181555748, -0.3073829710483551, 0.2208179235458374, 0.1490943282842636, -1.6019208431243896, -0.45431506633758545, 0.6992446780204773, -1.0300191640853882, 0.7826921939849854, -0.13885928690433502, -0.1802852302789688, -0.32823997735977173, -0.12389819324016571, 0.3397445678710937...
func (p *Paletted) PixOffset(x, y int) int { return (y-p.Rect.Min.Y)*p.Stride + (x-p.Rect.Min.X)*1 }
[ 0.3420872986316681, -0.1557956337928772, 0.40030771493911743, -1.176592230796814, -0.8665000200271606, 1.310582160949707, -0.4518180787563324, -0.9630194902420044, 0.4593285620212555, -0.2318335920572281, -0.5411702394485474, 0.6931710839271545, 0.12247765809297562, -0.8604153394699097, ...
func (p *Paletted) SubImage(r Rectangle) Image { r = r.Intersect(p.Rect) // If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside // either r1 or r2 if the intersection is empty. Without explicitly checking for // this, the Pix[i:] expression below can panic. if r.Empty() { return &Palette...
[ 0.10689284652471542, -0.30913054943084717, 0.5654783248901367, -0.07487980276346207, -0.6547495722770691, 0.7449431419372559, -0.004089901689440012, -0.25628459453582764, 0.004923174623399973, -0.10689716041088104, 0.1344425231218338, 0.4508715569972992, -0.5204644203186035, -0.39783513545...
func (p *Paletted) Opaque() bool { var present [256]bool i0, i1 := 0, p.Rect.Dx() for y := p.Rect.Min.Y; y < p.Rect.Max.Y; y++ { for _, c := range p.Pix[i0:i1] { present[c] = true } i0 += p.Stride i1 += p.Stride } for i, c := range p.Palette { if !present[i] { continue } _, _, _, a := c.RGBA() ...
[ -1.0560407638549805, -0.2200920581817627, 0.9449302554130554, -1.5044687986373901, -0.7122241258621216, 0.828874409198761, 0.476717084646225, -0.4530714154243469, -0.33162790536880493, 0.18674996495246887, -0.7757332921028137, -0.8889471292495728, -0.13361050188541412, 0.002683711005374789...
func NewPaletted(r Rectangle, p color.Palette) *Paletted { return &Paletted{ Pix: make([]uint8, pixelBufferLength(1, r, "Paletted")), Stride: 1 * r.Dx(), Rect: r, Palette: p, } }
[ 0.7306338548660278, -0.7222042083740234, 0.4257543385028839, -0.45751652121543884, -0.8919140696525574, 0.9617441892623901, -0.5766478180885315, -0.4805532693862915, 0.6471254229545593, -0.5383448600769043, -0.2582750916481018, 0.8984964489936829, -0.46810540556907654, -0.16051173210144043...
func (e *ExampleAnnotation) MarshalJSON() ([]byte, error) { return json.Marshal(*e) }
[ -0.16925561428070068, -0.37062814831733704, 0.29564985632896423, 0.12199074029922485, -0.17072369158267975, 0.12710076570510864, -0.10479024052619934, 1.0739295482635498, 0.9187967777252197, 0.8860105276107788, -0.9319004416465759, 1.1695176362991333, 0.6101906895637512, 0.9656199216842651...
func (e *ExampleAnnotation) UnmarshalJSON([]byte) error { return fmt.Errorf("unimplemented") }
[ -0.27329087257385254, 0.10846398770809174, 0.5523443222045898, -0.922905445098877, -0.5243311524391174, 0.169544979929924, 0.5162546038627625, 0.7378947734832764, 0.376831591129303, 1.1250866651535034, -1.246211290359497, 0.4478440582752228, 0.49938690662384033, 1.0476235151290894, 0.081...
func CreateDemoDeviceInstance() (*oc.Device, error) { // Initialize a device. d := &oc.Device{ System: &oc.System{ Hostname: ygot.String("rtr02.pop44"), ΛHostname: []ygot.Annotation{ &ExampleAnnotation{ConfigSource: "devicedemo"}, }, }, } // Create a new interface under the device. In this case /i...
[ -0.15391649305820465, 0.3876124620437622, 0.9278833866119385, -0.2633018493652344, 0.8398846387863159, 0.2851366698741913, 0.5871651768684387, -0.5864641070365906, 0.3180558979511261, -1.175285816192627, -0.5507145524024963, -0.12338833510875702, 0.4747299253940582, 0.7447223663330078, 0...
func EmitJSON(d *oc.Device) (string, error) { return ygot.EmitJSON(d, nil) }
[ -1.1009202003479004, 0.49496713280677795, 0.47147777676582336, -0.1416284590959549, -0.6364424824714661, -0.5228049755096436, 0.4619309604167938, -0.4182043671607971, 0.40846091508865356, 0.6923509240150452, -1.2161766290664673, 1.182451844215393, 0.48738351464271545, 0.7623334527015686, ...
func EmitRFC7951JSON(d *oc.Device) (string, error) { return ygot.EmitJSON(d, &ygot.EmitJSONConfig{ Format: ygot.RFC7951, RFC7951Config: &ygot.RFC7951JSONConfig{ AppendModuleName: true, }, }) }
[ -0.7501837015151978, -0.33970439434051514, 0.5180085301399231, -0.8226752281188965, -0.8754186630249023, -0.5752782225608826, -0.3230907917022705, 0.2213287055492401, 0.6644379496574402, 0.39114028215408325, -0.921536386013031, 0.032428473234176636, 0.504445493221283, 0.6664730310440063, ...
func addNetworkInstance(d *oc.Device) error { netinst, err := d.NewNetworkInstance("DEFAULT") if err != nil { return err } p, err := netinst.NewProtocol(oc.PolicyTypes_INSTALL_PROTOCOL_TYPE_BGP, "15169") if err != nil { return err } ygot.BuildEmptyTree(p) p.Bgp.Global.As = ygot.Uint32(15169) return nil ...
[ -0.18609930574893951, 1.1551059484481812, 0.734260618686676, -0.7230501174926758, 0.7407885193824768, 0.9053992629051208, -0.2664746344089508, 0.2685927748680115, 0.35921710729599, -0.14735408127307892, -0.44057974219322205, -0.6885820031166077, -1.2559151649475098, 0.9330387711524963, 0...
func (m *Meta) normalizePath(path string) string { m.fixupMissingWorkingDir() return m.WorkingDir.NormalizePath(path) }
[ -0.36984285712242126, 0.2242487370967865, 0.2413729578256607, 0.3038395941257477, -0.6615683436393738, 0.7100524306297302, 0.7918607592582703, -0.894997239112854, 0.8619310259819031, -0.1359488070011139, 1.1148782968521118, -0.437068909406662, -0.9505811929702759, 0.2883724868297577, 0.2...
func (m *Meta) loadConfig(rootDir string) (*configs.Config, tfdiags.Diagnostics) { var diags tfdiags.Diagnostics rootDir = m.normalizePath(rootDir) loader, err := m.initConfigLoader() if err != nil { diags = diags.Append(err) return nil, diags } config, hclDiags := loader.LoadConfig(rootDir) diags = diags....
[ 0.5551266074180603, 0.005521065555512905, 0.43195533752441406, 0.6039190292358398, -0.4735163748264313, -0.32774630188941956, 0.3202553689479828, 0.9362808465957642, -0.29764920473098755, -0.21990542113780975, 0.3097962737083435, -0.08507134020328522, 0.6221699714660645, 1.973045825958252,...
func (m *Meta) loadSingleModule(dir string) (*configs.Module, tfdiags.Diagnostics) { var diags tfdiags.Diagnostics dir = m.normalizePath(dir) loader, err := m.initConfigLoader() if err != nil { diags = diags.Append(err) return nil, diags } module, hclDiags := loader.Parser().LoadConfigDir(dir) diags = diag...
[ -0.7370077967643738, 0.37798428535461426, 0.5028231739997864, -0.16231611371040344, 0.030248887836933136, 0.29127877950668335, 0.0909089595079422, 0.7138312458992004, 0.8337404131889343, 0.3920260965824127, -0.12410155683755875, 0.1800311654806137, 0.028497815132141113, 1.340808391571045, ...
func (m *Meta) loadSingleModuleEarly(dir string) (*tfconfig.Module, tfdiags.Diagnostics) { var diags tfdiags.Diagnostics dir = m.normalizePath(dir) module, moreDiags := earlyconfig.LoadModule(dir) diags = diags.Append(moreDiags) return module, diags }
[ -0.6446117758750916, 0.4251560568809509, 0.493950217962265, -0.7062651515007019, -0.2788354158401489, 0.06380090117454529, 0.0611683689057827, 0.24715542793273926, 0.8766709566116333, -0.10969232022762299, -0.21964429318904877, 0.7811623215675354, 0.6438891291618347, 1.4382933378219604, ...
func (m *Meta) dirIsConfigPath(dir string) bool { loader, err := m.initConfigLoader() if err != nil { return true } return loader.IsConfigDir(dir) }
[ -1.2970472574234009, 0.36794865131378174, 0.4264127314090729, 1.0735820531845093, -0.4102040231227875, -0.33792945742607117, 0.13642868399620056, 0.04155533015727997, 0.549281895160675, 1.0143500566482544, -0.5981867909431458, -0.11574910581111908, -0.25576546788215637, 0.6088433861732483,...
func (m *Meta) loadBackendConfig(rootDir string) (*configs.Backend, tfdiags.Diagnostics) { mod, diags := m.loadSingleModule(rootDir) // Only return error diagnostics at this point. Any warnings will be caught // again later and duplicated in the output. if diags.HasErrors() { return nil, diags } if mod.CloudC...
[ 0.40569955110549927, 0.08220773190259933, 0.5594890713691711, 0.013876947574317455, -0.25094732642173767, -0.7691303491592407, -0.20621150732040405, 0.2575438916683197, -0.5498078465461731, 0.545412540435791, 0.09667490422725677, 0.3795754015445709, -0.5830807089805603, 1.1910518407821655,...
func (m *Meta) loadHCLFile(filename string) (hcl.Body, tfdiags.Diagnostics) { var diags tfdiags.Diagnostics filename = m.normalizePath(filename) loader, err := m.initConfigLoader() if err != nil { diags = diags.Append(err) return nil, diags } body, hclDiags := loader.Parser().LoadHCLFile(filename) diags = ...
[ 0.19294913113117218, -0.009428591467440128, 0.5766046047210693, -0.23514524102210999, -0.16576170921325684, 0.752054750919342, -0.305474191904068, 0.7639440894126892, -0.7875894904136658, 0.3013891577720642, -0.5733518600463867, -0.8160011172294617, -0.08039852976799011, 0.9248334765434265...
func (m *Meta) installModules(rootDir string, upgrade bool, hooks initwd.ModuleInstallHooks) (abort bool, diags tfdiags.Diagnostics) { rootDir = m.normalizePath(rootDir) err := os.MkdirAll(m.modulesDir(), os.ModePerm) if err != nil { diags = diags.Append(fmt.Errorf("failed to create local modules directory: %s", ...
[ -0.6729488372802734, 0.13593612611293793, 0.47418105602264404, -0.21298612654209137, 0.32357487082481384, 0.12880359590053558, 0.5804362893104553, 0.06139729544520378, -0.4678458571434021, 0.6335974335670471, 0.5996443033218384, -1.0635758638381958, -1.1633546352386475, 0.2766660451889038,...
func (m *Meta) initDirFromModule(targetDir string, addr string, hooks initwd.ModuleInstallHooks) (abort bool, diags tfdiags.Diagnostics) { // Installation can be aborted by interruption signals ctx, done := m.InterruptibleContext() defer done() targetDir = m.normalizePath(targetDir) moreDiags := initwd.DirFromMod...
[ -0.05879688635468483, -0.023429421707987785, 0.5352162718772888, 0.1326029896736145, -0.32017838954925537, 0.32903388142585754, 0.9672195315361023, 0.20588938891887665, 0.17417268455028534, 0.05250900238752365, 0.2730812132358551, 0.19670280814170837, -0.3738589584827423, 0.773146748542785...
func (m *Meta) configSources() map[string][]byte { if m.configLoader == nil { return nil } return m.configLoader.Sources() }
[ -0.43686869740486145, 0.5235411524772644, 0.15106070041656494, 0.12036849558353424, -0.5373823046684265, -0.6632532477378845, -0.28480392694473267, 0.1895606815814972, -0.244236558675766, 0.06282533705234528, -0.8956417441368103, -0.8175353407859802, -0.4585978090763092, 1.0913422107696533...
func (m *Meta) registerSynthConfigSource(filename string, src []byte) { loader, err := m.initConfigLoader() if err != nil || loader == nil { return // treated as no-op, since this is best-effort } loader.Parser().ForceFileSource(filename, src) }
[ -0.8290255069732666, 0.9054057598114014, 0.36715611815452576, 0.005076784174889326, 0.8001264333724976, -0.8055312037467957, -0.06394840776920319, 0.4176637530326843, -0.7165786623954773, 0.4266943037509918, -1.6545594930648804, 0.6113004088401794, 0.12495139986276627, 0.807100236415863, ...
func (m *Meta) initConfigLoader() (*configload.Loader, error) { if m.configLoader == nil { loader, err := configload.NewLoader(&configload.Config{ ModulesDir: m.modulesDir(), Services: m.Services, }) if err != nil { return nil, err } loader.AllowLanguageExperiments(m.AllowExperimentalFeatures) m...
[ -0.11610031127929688, 0.47060683369636536, 0.548237144947052, 0.16095976531505585, -1.202138900756836, -0.3015638589859009, -0.3757763206958771, 0.24291548132896423, -0.5554414987564087, 0.3884790539741516, -0.04647303372621536, -0.3365824818611145, -0.23917002975940704, 1.4051908254623413...
func (m *Meta) moduleInstaller() *initwd.ModuleInstaller { reg := m.registryClient() return initwd.NewModuleInstaller(m.modulesDir(), reg) }
[ 0.006122712977230549, -0.6730349659919739, 0.04636396840214729, -0.790534257888794, 0.06709539145231247, 0.48485326766967773, 0.9928123354911804, 0.7916196584701538, 0.9361855983734131, -0.27065765857696533, 0.3666885495185852, 0.03448542580008507, -1.1228461265563965, 0.7083296179771423, ...
func (m *Meta) registryClient() *registry.Client { return registry.NewClient(m.Services, nil) }
[ 0.17776712775230408, 0.8995311260223389, 0.18298548460006714, -0.22563472390174866, 0.2501993775367737, -0.22773784399032593, 0.8702677488327026, -0.26961952447891235, -0.1151939332485199, -0.5197145342826843, 0.5305529832839966, 0.9445546865463257, -0.2773538827896118, -1.0763177871704102...
func configValueFromCLI(synthFilename, rawValue string, wantType cty.Type) (cty.Value, tfdiags.Diagnostics) { var diags tfdiags.Diagnostics switch { case wantType.IsPrimitiveType(): // Primitive types are handled as conversions from string. val := cty.StringVal(rawValue) var err error val, err = convert.Con...
[ -0.4019847512245178, 0.19199833273887634, 0.550601065158844, 0.2106337696313858, -0.7046158313751221, -0.5215032696723938, -0.15366904437541962, -0.005014190450310707, -0.8101216554641724, -0.08385112881660461, 0.00029731926042586565, 0.5280155539512634, 0.5886887907981873, 0.5278591513633...
func Split(str string) []string { var res []string if len(str) == 0 { return res } var index, brk int runes := []rune(str) l := len(runes) for { brk = nextBreak(str, index) if brk < l { res = append(res, string(runes[index:brk])) index = brk } else { break } } if index < l { res = ap...
[ -0.5724117755889893, 0.7518436908721924, 0.44143572449684143, 0.748704731464386, -0.1853666603565216, 0.27845606207847595, 0.7129546999931335, -0.3073864281177521, 0.5138390064239502, -0.05038992688059807, -0.12410267442464828, 0.524504542350769, -1.158790111541748, -0.23386067152023315, ...
func Counter(str string) int { if len(str) == 0 { return 0 } var count, index, brk int runes := []rune(str) l := len(runes) for { brk = nextBreak(str, index) if brk < l { index = brk count++ } else { break } } if index < l { count++ } return count }
[ 0.37888452410697937, -0.05502917990088463, 0.7422908544540405, 0.1793399453163147, -1.0859276056289673, 0.5932795405387878, 0.9869560599327087, 0.30116769671440125, 0.2527906596660614, -0.5375035405158997, -0.10790754854679108, 0.18049760162830353, -0.4861449599266052, 0.5421817898750305, ...
func checkAnnotationOnSvcPvc(svcPVC *v1.PersistentVolumeClaim, allowedTopologies map[string][]string, categories []string) error { annotationsMap := svcPVC.Annotations if accessibleTopoString, x := annotationsMap[tkgHAccessibleAnnotationKey]; x { accessibleTopology := strings.Split(accessibleTopoString, ":") top...
[ -0.17749422788619995, -0.5504367351531982, 0.8113623857498169, 0.0427815318107605, -0.6310365200042725, 0.4637507200241089, 0.07838352769613266, -0.11902125924825668, -0.3158843219280243, 0.6534246802330017, 0.9336975812911987, 0.41135355830192566, -0.40517228841781616, 0.47074460983276367...
func isValuePresentInTheList(strArr []string, str string) bool { for _, s := range strArr { if strings.Contains(s, str) { return true } } return false }
[ 0.32961246371269226, -1.2208540439605713, 0.3965041935443878, 0.16966068744659424, 0.07432647794485092, 0.7655448317527771, -1.0482208728790283, 0.9858293533325195, 0.005243992432951927, 0.7469401359558105, 0.07522395998239517, -0.31851959228515625, -0.6677525043487549, 0.8375740051269531,...
func verifyAnnotationsAndNodeAffinity(allowedTopologyHAMap map[string][]string, categories []string, pod *v1.Pod, nodeList *v1.NodeList, svcPVC *v1.PersistentVolumeClaim, pv *v1.PersistentVolume, svcPVCName string) { framework.Logf("Verify SV PVC has TKG HA annotations set") err := checkAnnotationOnSvcPvc(svcPVC, a...
[ 0.2662458121776581, 0.15739016234874725, 0.5872910618782043, 0.37981075048446655, 0.6025733947753906, 1.1622579097747803, 0.7371920347213745, -0.37298572063446045, -0.15482507646083832, -0.3732222616672516, 0.16759881377220154, 0.6106488704681396, 0.26757755875587463, 1.2609044313430786, ...
func verifyVolumeProvisioningWithServiceDown(serviceName string, namespace string, client clientset.Interface, storagePolicyName string, allowedTopologyHAMap map[string][]string, categories []string, isServiceStopped bool, f *framework.Framework) { ctx, cancel := context.WithCancel(context.Background()) defer cance...
[ -0.056425515562295914, 0.025624245405197144, 0.8280364871025085, 0.398693323135376, 0.28652191162109375, 0.36374545097351074, 0.3251428008079529, -0.008179238066077232, 0.6669784188270569, 0.41265255212783813, 0.4284461736679077, 0.5070509910583496, -0.5860496759414673, 0.5679723620414734,...
func verifyOnlineVolumeExpansionOnGc(client clientset.Interface, namespace string, svcPVCName string, volHandle string, pvclaim *v1.PersistentVolumeClaim, pod *v1.Pod, f *framework.Framework) { rand.New(rand.NewSource(time.Now().Unix())) testdataFile := fmt.Sprintf("/tmp/testdata_%v_%v", time.Now().Unix(), rand.Intn...
[ 0.22640179097652435, 0.2349472939968109, 0.946243405342102, 0.40334203839302063, 0.6996334791183472, 0.7913384437561035, 0.5454978942871094, -0.08417215198278427, 0.071173295378685, -0.23799099028110504, 0.17297959327697754, 0.31319373846054077, -0.4268733859062195, 0.17768600583076477, ...
func verifyOfflineVolumeExpansionOnGc(client clientset.Interface, pvclaim *v1.PersistentVolumeClaim, svcPVCName string, namespace string, volHandle string, pod *v1.Pod, pv *v1.PersistentVolume, f *framework.Framework) { ginkgo.By("Check filesystem size for mount point /mnt/volume1 before expansion") originalFsSize, ...
[ 0.5370028018951416, 0.09808924794197083, 0.8158416748046875, 0.02627553977072239, 0.467611163854599, 0.5665785074234009, 0.5611912608146667, -0.4138934314250946, 0.19762831926345825, -0.7253047227859497, 0.78584223985672, 0.6537277102470398, -0.20782677829265594, 0.4124391973018646, 1.15...