text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (o *EnvironmentUsageDto) GetMobileSessionsOk() (*int64, bool) {
if o == nil || o.MobileSessions == nil {
return nil, false
}
return o.MobileSessions, true
} | [
-0.10731257498264313,
-0.9418312907218933,
0.08606784045696259,
0.5341268181800842,
-0.7712107300758362,
-0.4374794065952301,
1.022485613822937,
-0.6168121695518494,
1.1221312284469604,
1.477601170539856,
-1.261854648590088,
-1.430696964263916,
-0.24351608753204346,
0.00034720919211395085,... |
func (o *EnvironmentUsageDto) HasMobileSessions() bool {
if o != nil && o.MobileSessions != nil {
return true
}
return false
} | [
0.4580405056476593,
-0.7430259585380554,
0.358760803937912,
0.17064321041107178,
0.22108778357505798,
-0.4921511113643646,
0.5355333685874939,
-0.4320257306098938,
1.413051724433899,
0.004470170941203833,
-0.5351572036743164,
-1.575976014137268,
-0.5499333143234253,
0.28444352746009827,
... |
func (o *EnvironmentUsageDto) SetMobileSessions(v int64) {
o.MobileSessions = &v
} | [
-0.18888667225837708,
-0.5596022605895996,
-0.24660223722457886,
0.4828895628452301,
-0.8623850345611572,
-0.524965226650238,
0.48913508653640747,
-1.6928499937057495,
0.9787285327911377,
0.24729090929031372,
0.012081432156264782,
0.03537487983703613,
-0.4759390354156494,
-0.19698832929134... |
func (o *EnvironmentUsageDto) GetTotalRUMUserPropertiesUsed() int64 {
if o == nil || o.TotalRUMUserPropertiesUsed == nil {
var ret int64
return ret
}
return *o.TotalRUMUserPropertiesUsed
} | [
0.16277939081192017,
-0.6006993651390076,
0.28166618943214417,
0.7013079524040222,
-0.11679260432720184,
-0.7511122822761536,
1.4244877099990845,
-0.3471328318119049,
0.38160276412963867,
-0.6884558200836182,
-0.2634762227535248,
-0.7194156646728516,
-0.9494292736053467,
-0.969507217407226... |
func (o *EnvironmentUsageDto) GetTotalRUMUserPropertiesUsedOk() (*int64, bool) {
if o == nil || o.TotalRUMUserPropertiesUsed == nil {
return nil, false
}
return o.TotalRUMUserPropertiesUsed, true
} | [
-0.29857879877090454,
-0.8474982976913452,
0.6628604531288147,
0.014089835807681084,
-0.0356483981013298,
-0.6095284819602966,
1.2160627841949463,
-0.12282700091600418,
-0.5320789813995361,
0.3692197799682617,
-0.5065202116966248,
-0.9231756329536438,
0.32474222779273987,
-0.35465049743652... |
func (o *EnvironmentUsageDto) HasTotalRUMUserPropertiesUsed() bool {
if o != nil && o.TotalRUMUserPropertiesUsed != nil {
return true
}
return false
} | [
0.23223485052585602,
-0.6498593091964722,
0.37860703468322754,
-0.05706556513905525,
0.2135927975177765,
-1.3955800533294678,
1.2227226495742798,
0.492482453584671,
-0.23132707178592682,
-0.4367709755897522,
-0.8453043699264526,
-1.0048625469207764,
-0.02441946417093277,
-0.389046490192413... |
func (o *EnvironmentUsageDto) SetTotalRUMUserPropertiesUsed(v int64) {
o.TotalRUMUserPropertiesUsed = &v
} | [
-0.35881343483924866,
-0.5715591907501221,
0.15882639586925507,
-0.44838935136795044,
0.05684594064950943,
-0.5484334826469421,
1.264512062072754,
-0.43479469418525696,
-0.2775355577468872,
-0.25334423780441284,
-0.17461726069450378,
-0.11084797233343124,
0.1302391141653061,
-0.78149300813... |
func (o *EnvironmentUsageDto) GetNewProblems() int64 {
if o == nil || o.NewProblems == nil {
var ret int64
return ret
}
return *o.NewProblems
} | [
0.14499416947364807,
-0.2828173339366913,
0.11618509143590927,
0.4231976270675659,
-0.057661350816488266,
0.05545617640018463,
-0.07456976920366287,
-0.8853249549865723,
0.2106078565120697,
-0.49163001775741577,
-0.040091048926115036,
-0.8784244060516357,
-0.8168436288833618,
0.78940701484... |
func (o *EnvironmentUsageDto) GetNewProblemsOk() (*int64, bool) {
if o == nil || o.NewProblems == nil {
return nil, false
}
return o.NewProblems, true
} | [
-0.20377521216869354,
-0.9102215766906738,
0.11772899329662323,
-0.005669048987329006,
-0.05870504677295685,
0.33006995916366577,
0.2534591853618622,
-1.1215505599975586,
-0.6984253525733948,
0.4985875189304352,
-1.0021758079528809,
-0.9436884522438049,
-0.014601625502109528,
0.57666575908... |
func (o *EnvironmentUsageDto) HasNewProblems() bool {
if o != nil && o.NewProblems != nil {
return true
}
return false
} | [
0.3453623354434967,
-0.14706416428089142,
-0.03199322521686554,
-0.6968188881874084,
0.7710492014884949,
-0.04600835591554642,
-0.5078526735305786,
-0.6411656141281128,
-0.6949611306190491,
-0.20861223340034485,
-0.38441240787506104,
-0.8484193682670593,
-0.17605513334274292,
0.52819383144... |
func (o *EnvironmentUsageDto) SetNewProblems(v int64) {
o.NewProblems = &v
} | [
-0.09367530792951584,
-0.17113634943962097,
-0.16280347108840942,
-0.6342939138412476,
-0.06965905427932739,
0.1860685646533966,
-0.48697441816329956,
-1.895240068435669,
-0.32881399989128113,
0.083390973508358,
0.05185316503047943,
0.31200748682022095,
-0.20467135310173035,
0.166018560528... |
func (o *EnvironmentUsageDto) GetHostUsages() []HostUsageDto {
if o == nil || o.HostUsages == nil {
var ret []HostUsageDto
return ret
}
return *o.HostUsages
} | [
-0.055134959518909454,
0.40192756056785583,
0.2974777817726135,
0.4982996881008148,
0.1531500369310379,
-0.08086821436882019,
0.023404959589242935,
0.43735864758491516,
-0.22138305008411407,
-0.07997260987758636,
-0.5189571976661682,
-0.8495088219642639,
-0.4651276767253876,
0.430166453123... |
func (o *EnvironmentUsageDto) GetHostUsagesOk() (*[]HostUsageDto, bool) {
if o == nil || o.HostUsages == nil {
return nil, false
}
return o.HostUsages, true
} | [
-0.03235000744462013,
0.42840975522994995,
0.32967591285705566,
0.1315983533859253,
0.005618312396109104,
0.21198035776615143,
0.3547404110431671,
0.6234095692634583,
-1.278671145439148,
0.8621603846549988,
-1.198833703994751,
-0.9023284316062927,
1.2148953676223755,
0.5104864239692688,
... |
func (o *EnvironmentUsageDto) HasHostUsages() bool {
if o != nil && o.HostUsages != nil {
return true
}
return false
} | [
1.2301678657531738,
0.7633190751075745,
0.5507426857948303,
0.7148536443710327,
0.7157850861549377,
-0.42480263113975525,
-0.1468074768781662,
0.667549192905426,
-0.5506896376609802,
0.09130849689245224,
-0.8957780599594116,
-1.6431612968444824,
-0.38572514057159424,
0.7035211324691772,
... |
func (o *EnvironmentUsageDto) SetHostUsages(v []HostUsageDto) {
o.HostUsages = &v
} | [
0.21811139583587646,
0.09927433729171753,
0.3641088902950287,
0.12855009734630585,
0.39985358715057373,
-0.037765469402074814,
-0.3648369610309601,
-0.3148074448108673,
-0.6598401069641113,
0.6488704681396484,
0.017177600413560867,
0.12032593041658401,
0.03944220021367073,
0.33764076232910... |
func (o *EnvironmentUsageDto) GetDownloads() []DownloadsDto {
if o == nil || o.Downloads == nil {
var ret []DownloadsDto
return ret
}
return *o.Downloads
} | [
0.5265486836433411,
0.3809831738471985,
0.20107513666152954,
0.8620120882987976,
0.2557152211666107,
-0.7999874949455261,
0.43116623163223267,
-0.9623074531555176,
0.7278702259063721,
-0.8329416513442993,
0.024963928386569023,
-1.1650880575180054,
-0.1511985808610916,
1.164232850074768,
... |
func (o *EnvironmentUsageDto) GetDownloadsOk() (*[]DownloadsDto, bool) {
if o == nil || o.Downloads == nil {
return nil, false
}
return o.Downloads, true
} | [
0.3733896315097809,
1.0170540809631348,
0.3275235891342163,
0.4628811180591583,
0.729873538017273,
-0.5461028218269348,
0.2822551429271698,
-0.2806629240512848,
-0.023406878113746643,
-0.127989262342453,
-0.36561834812164307,
-0.6085200905799866,
0.4958413243293762,
0.7049942016601562,
0... |
func (o *EnvironmentUsageDto) HasDownloads() bool {
if o != nil && o.Downloads != nil {
return true
}
return false
} | [
0.8991371393203735,
0.5418838858604431,
0.10896044969558716,
-0.13853174448013306,
0.7611022591590881,
-0.6551826596260071,
-0.2491522878408432,
-0.30541133880615234,
-0.14491711556911469,
-1.0819875001907349,
-0.07872185856103897,
-0.8872566819190979,
0.0018471681978553534,
1.263485431671... |
func (o *EnvironmentUsageDto) SetDownloads(v []DownloadsDto) {
o.Downloads = &v
} | [
0.35132530331611633,
0.3806498646736145,
-0.003798592370003462,
0.2320188283920288,
-0.01273740828037262,
-0.21846400201320648,
-0.7342286705970764,
-2.0303866863250732,
-0.5672429203987122,
-0.34911730885505676,
0.6399935483932495,
0.5266179442405701,
0.25957900285720825,
0.55399924516677... |
func (o *EnvironmentUsageDto) GetSyntheticUsages() []SyntheticUsageDto {
if o == nil || o.SyntheticUsages == nil {
var ret []SyntheticUsageDto
return ret
}
return *o.SyntheticUsages
} | [
-0.250291645526886,
0.14249294996261597,
0.650785505771637,
0.5578723549842834,
0.26648077368736267,
-0.6026853919029236,
0.3014969229698181,
-0.6611363291740417,
0.03897291049361229,
0.5048378109931946,
-0.3520944118499756,
0.3839506208896637,
-0.043739721179008484,
0.7307757139205933,
... |
func (o *EnvironmentUsageDto) GetSyntheticUsagesOk() (*[]SyntheticUsageDto, bool) {
if o == nil || o.SyntheticUsages == nil {
return nil, false
}
return o.SyntheticUsages, true
} | [
0.04047662764787674,
-0.3238031268119812,
0.703447163105011,
0.02829805389046669,
0.19624105095863342,
-0.2665010690689087,
0.5246238708496094,
-0.15010884404182434,
-0.5611501932144165,
1.436025619506836,
-1.353818655014038,
0.20816567540168762,
1.1772960424423218,
0.805926501750946,
-0... |
func (o *EnvironmentUsageDto) HasSyntheticUsages() bool {
if o != nil && o.SyntheticUsages != nil {
return true
}
return false
} | [
0.5245696902275085,
0.25587359070777893,
0.5416123270988464,
0.3454991579055786,
0.8662897348403931,
-0.8832822442054749,
-0.06334798038005829,
0.6820423007011414,
-1.0096598863601685,
0.1181543618440628,
-0.7278644442558289,
-0.867286205291748,
0.2379104495048523,
0.6585913300514221,
0.... |
func (o *EnvironmentUsageDto) SetSyntheticUsages(v []SyntheticUsageDto) {
o.SyntheticUsages = &v
} | [
-0.34823375940322876,
0.22307197749614716,
0.37109577655792236,
-0.2313731610774994,
0.24091024696826935,
-0.3176226019859314,
-0.3507302403450012,
-1.100265622138977,
-0.5926982164382935,
0.8773918151855469,
-0.30943799018859863,
1.3099013566970825,
0.5388254523277283,
0.1980002373456955,... |
func (o *EnvironmentUsageDto) GetSyntheticBillingUsage() []SyntheticBillingUsageDto {
if o == nil || o.SyntheticBillingUsage == nil {
var ret []SyntheticBillingUsageDto
return ret
}
return *o.SyntheticBillingUsage
} | [
-0.4922947287559509,
0.5098611116409302,
0.6588624715805054,
0.9555597305297852,
0.30031463503837585,
-0.2490854561328888,
-0.07284598797559738,
-0.2449914664030075,
-0.5393600463867188,
0.21431392431259155,
-1.1712480783462524,
0.1742059886455536,
-0.4252202808856964,
0.8176043033599854,
... |
func (o *EnvironmentUsageDto) GetSyntheticBillingUsageOk() (*[]SyntheticBillingUsageDto, bool) {
if o == nil || o.SyntheticBillingUsage == nil {
return nil, false
}
return o.SyntheticBillingUsage, true
} | [
-0.08445732295513153,
0.31128066778182983,
0.606056809425354,
1.1359854936599731,
0.26919859647750854,
0.10665436089038849,
0.3673016428947449,
0.6425791382789612,
-0.9933761358261108,
1.1585309505462646,
-1.2417445182800293,
-0.4608694016933441,
0.7052732706069946,
0.9417797923088074,
-... |
func (o *EnvironmentUsageDto) HasSyntheticBillingUsage() bool {
if o != nil && o.SyntheticBillingUsage != nil {
return true
}
return false
} | [
0.11759113520383835,
0.4825327694416046,
0.5593574643135071,
0.6689270734786987,
0.40722760558128357,
-0.501356840133667,
-0.17510028183460236,
0.8469896912574768,
-1.1605956554412842,
-0.23142969608306885,
-1.4120508432388306,
-0.6452673673629761,
0.011766902171075344,
1.2687519788742065,... |
func (o *EnvironmentUsageDto) SetSyntheticBillingUsage(v []SyntheticBillingUsageDto) {
o.SyntheticBillingUsage = &v
} | [
-0.6418260335922241,
0.6544261574745178,
0.2993057072162628,
0.3445167541503906,
0.1931993067264557,
0.24168848991394043,
-0.3669808506965637,
-0.27529579401016235,
-1.127807378768921,
0.8359778523445129,
-1.0330272912979126,
0.9354442954063416,
0.23936326801776886,
0.7507373094558716,
-... |
func (o *EnvironmentUsageDto) GetCustomMetrics() []CustomMetricDto {
if o == nil || o.CustomMetrics == nil {
var ret []CustomMetricDto
return ret
}
return *o.CustomMetrics
} | [
0.7471493482589722,
0.467572957277298,
0.3552326261997223,
0.7558035850524902,
-0.24352538585662842,
-0.1997368037700653,
0.9850990772247314,
-0.0038577462546527386,
0.2895691394805908,
-0.3154860734939575,
-0.6565594673156738,
-0.043472032994031906,
-1.3215069770812988,
0.3827218115329742... |
func (o *EnvironmentUsageDto) GetCustomMetricsOk() (*[]CustomMetricDto, bool) {
if o == nil || o.CustomMetrics == nil {
return nil, false
}
return o.CustomMetrics, true
} | [
0.7026330828666687,
1.0047407150268555,
0.4742392897605896,
0.0728854164481163,
-0.37918516993522644,
-0.09031157940626144,
0.5483673810958862,
0.18219906091690063,
-0.26289165019989014,
0.4003162980079651,
-1.3564627170562744,
0.1589597761631012,
-0.7077962756156921,
-0.16802403330802917,... |
func (o *EnvironmentUsageDto) HasCustomMetrics() bool {
if o != nil && o.CustomMetrics != nil {
return true
}
return false
} | [
1.0837866067886353,
0.6468722820281982,
0.13855941593647003,
-0.3902677297592163,
0.11914801597595215,
-0.4866313934326172,
0.4945676326751709,
0.5931402444839478,
-0.5510349273681641,
-0.001683449256233871,
-1.194487452507019,
-0.10170646756887436,
-1.0254706144332886,
0.3486216962337494,... |
func (o *EnvironmentUsageDto) SetCustomMetrics(v []CustomMetricDto) {
o.CustomMetrics = &v
} | [
0.37340298295021057,
0.8486024141311646,
0.201247900724411,
-0.16666479408740997,
-0.07369928807020187,
0.10408792644739151,
0.2035834640264511,
-0.9427124261856079,
-0.5881683826446533,
0.06623440980911255,
-0.4567488133907318,
1.4230471849441528,
-0.5944394469261169,
-0.18910233676433563... |
func (o *EnvironmentUsageDto) GetDavisDataUnits() []DavisDataUnitsUsageDto {
if o == nil || o.DavisDataUnits == nil {
var ret []DavisDataUnitsUsageDto
return ret
}
return *o.DavisDataUnits
} | [
-1.7629287242889404,
1.6426652669906616,
0.4955344796180725,
-0.043359655886888504,
0.27037540078163147,
0.276600182056427,
-0.17856287956237793,
-0.08796951919794083,
0.17143209278583527,
-1.2268548011779785,
-0.2638295590877533,
0.6052506566047668,
0.004706673789769411,
0.146589249372482... |
func (o *EnvironmentUsageDto) GetDavisDataUnitsOk() (*[]DavisDataUnitsUsageDto, bool) {
if o == nil || o.DavisDataUnits == nil {
return nil, false
}
return o.DavisDataUnits, true
} | [
-1.4345481395721436,
1.0773375034332275,
0.2944631278514862,
0.1548565924167633,
-0.011691747233271599,
-0.07270288467407227,
0.4908432960510254,
-0.1510162651538849,
-0.15903553366661072,
-0.2718636989593506,
-0.7042537331581116,
0.22697296738624573,
0.942829966545105,
0.06576107442378998... |
func (o *EnvironmentUsageDto) HasDavisDataUnits() bool {
if o != nil && o.DavisDataUnits != nil {
return true
}
return false
} | [
-0.8788337707519531,
1.742633581161499,
0.5071333050727844,
-0.3146120309829712,
0.7341253757476807,
-0.13657411932945251,
-0.024592509493231773,
0.5107501149177551,
-0.2834898829460144,
-1.3165297508239746,
-0.26671236753463745,
-0.21175062656402588,
0.742817759513855,
0.7077736854553223,... |
func (o *EnvironmentUsageDto) SetDavisDataUnits(v []DavisDataUnitsUsageDto) {
o.DavisDataUnits = &v
} | [
-1.5670164823532104,
1.225034236907959,
0.26357215642929077,
-0.7614732384681702,
0.4909861385822296,
0.6417760252952576,
-0.23666052520275116,
-0.3730517327785492,
-0.186643585562706,
-0.6161409020423889,
-0.2599763572216034,
1.1838762760162354,
0.6326903700828552,
-0.18802103400230408,
... |
func (o *EnvironmentUsageDto) GetTrial() bool {
if o == nil || o.Trial == nil {
var ret bool
return ret
}
return *o.Trial
} | [
0.07085923850536346,
0.134719118475914,
0.4021443724632263,
0.8589302897453308,
0.11358136683702469,
-0.10700754076242447,
0.4970414340496063,
0.0541866160929203,
0.585425615310669,
-0.36386916041374207,
-0.4488386809825897,
-0.3416694700717926,
-1.1511722803115845,
0.3916187584400177,
0... |
func (o *EnvironmentUsageDto) GetTrialOk() (*bool, bool) {
if o == nil || o.Trial == nil {
return nil, false
}
return o.Trial, true
} | [
0.2484104186296463,
0.2770408093929291,
0.5326697826385498,
0.5040386915206909,
0.6413002014160156,
-0.11093916743993759,
0.9078839421272278,
1.2254562377929688,
0.43671512603759766,
0.03485768660902977,
-0.5489410161972046,
-0.04907914623618126,
0.14016030728816986,
0.02720491588115692,
... |
func (o *EnvironmentUsageDto) HasTrial() bool {
if o != nil && o.Trial != nil {
return true
}
return false
} | [
0.6564909815788269,
0.04268234223127365,
0.3185037076473236,
0.48907747864723206,
0.992863655090332,
-0.0734531432390213,
-0.21230097115039825,
0.5655927658081055,
-0.02102987840771675,
-0.5103468298912048,
-0.7758714556694031,
-0.28671929240226746,
-0.31692788004875183,
0.3587035834789276... |
func (o *EnvironmentUsageDto) SetTrial(v bool) {
o.Trial = &v
} | [
-0.12094314396381378,
0.3493897020816803,
0.09754325449466705,
0.09365267306566238,
-0.07647978514432907,
0.3140508830547333,
-0.5469273924827576,
-0.5005396604537964,
-0.45947593450546265,
0.7500221729278564,
-0.321157842874527,
1.0495356321334839,
-0.49422702193260193,
-0.356311738491058... |
func (o *EnvironmentUsageDto) GetInternalUse() bool {
if o == nil || o.InternalUse == nil {
var ret bool
return ret
}
return *o.InternalUse
} | [
-0.518543541431427,
-0.21491378545761108,
0.684041440486908,
-0.054562442004680634,
-0.2905057668685913,
-0.25272366404533386,
-0.031024811789393425,
0.4913043975830078,
-0.12822742760181427,
-0.593163788318634,
0.0248845387250185,
-0.7574726939201355,
-2.4076201915740967,
0.39558309316635... |
func (o *EnvironmentUsageDto) GetInternalUseOk() (*bool, bool) {
if o == nil || o.InternalUse == nil {
return nil, false
}
return o.InternalUse, true
} | [
-0.7725105881690979,
-0.3183528482913971,
0.6230940818786621,
-0.31485286355018616,
0.20193889737129211,
-0.6142697334289551,
0.2459724247455597,
0.7107582092285156,
-0.5078743100166321,
0.3963196873664856,
-0.48698052763938904,
-0.33990129828453064,
-0.7089227437973022,
0.5303846001625061... |
func (o *EnvironmentUsageDto) HasInternalUse() bool {
if o != nil && o.InternalUse != nil {
return true
}
return false
} | [
0.2752203047275543,
-0.308133065700531,
0.47844570875167847,
-0.6557776927947998,
0.45415621995925903,
-0.7857121229171753,
-0.3652259111404419,
0.8459868431091309,
-0.5456943511962891,
-0.8583080172538757,
-0.5246466398239136,
-0.8269702792167664,
-1.5613985061645508,
0.6328358054161072,
... |
func (o *EnvironmentUsageDto) SetInternalUse(v bool) {
o.InternalUse = &v
} | [
-0.5380838513374329,
0.4224857687950134,
0.4785040020942688,
-0.8420008420944214,
-0.45761463046073914,
-0.08153828233480453,
-0.2627006471157074,
-0.31020236015319824,
-1.1312450170516968,
0.34985223412513733,
0.03193741664290428,
0.2836465835571289,
-1.7397947311401367,
-0.09289685636758... |
func (o *EnvironmentUsageDto) GetHighAvailabilityCluster() bool {
if o == nil || o.HighAvailabilityCluster == nil {
var ret bool
return ret
}
return *o.HighAvailabilityCluster
} | [
0.600130558013916,
-0.5111491084098816,
0.40389081835746765,
0.8846030831336975,
0.9126477241516113,
0.31402239203453064,
0.42823976278305054,
0.9959267973899841,
0.13625386357307434,
-0.24541570246219635,
-0.811833381652832,
-0.25155022740364075,
-0.188092440366745,
0.030180973932147026,
... |
func (o *EnvironmentUsageDto) GetHighAvailabilityClusterOk() (*bool, bool) {
if o == nil || o.HighAvailabilityCluster == nil {
return nil, false
}
return o.HighAvailabilityCluster, true
} | [
0.05550461634993553,
0.3034340441226959,
0.4649209976196289,
1.2762762308120728,
1.1184533834457397,
0.030445827171206474,
0.7344997525215149,
1.2612574100494385,
-0.20119372010231018,
0.003979395609349012,
-0.7706571221351624,
-0.2715827226638794,
-0.0008614510297775269,
0.328078895807266... |
func (o *EnvironmentUsageDto) HasHighAvailabilityCluster() bool {
if o != nil && o.HighAvailabilityCluster != nil {
return true
}
return false
} | [
0.9972797632217407,
-0.4004957675933838,
0.3258185088634491,
0.5829600095748901,
1.011968731880188,
0.2812521159648895,
0.005458406638354063,
1.0525761842727661,
-0.5027022361755371,
-0.20972704887390137,
-1.3431501388549805,
-0.3682333827018738,
0.31877413392066956,
0.5404086112976074,
... |
func (o *EnvironmentUsageDto) SetHighAvailabilityCluster(v bool) {
o.HighAvailabilityCluster = &v
} | [
0.4790845513343811,
-0.5266895890235901,
0.004145288839936256,
-0.22645863890647888,
0.41560783982276917,
0.46979987621307373,
0.005647031124681234,
0.34171006083488464,
-0.7315346598625183,
0.5424784421920776,
-0.6381475329399109,
0.3816317319869995,
0.6705706119537354,
-0.320577979087829... |
func (o *EnvironmentUsageDto) GetLogStorageUsageBytes() int64 {
if o == nil || o.LogStorageUsageBytes == nil {
var ret int64
return ret
}
return *o.LogStorageUsageBytes
} | [
-0.1761179268360138,
0.15373903512954712,
0.09834299236536026,
-0.11908338218927383,
0.4540775418281555,
-0.9787380695343018,
-0.13630311191082,
-0.40108054876327515,
0.6032400131225586,
-0.5408731698989868,
-0.8483443260192871,
-0.23193052411079407,
-0.9226853847503662,
-0.355789661407470... |
func (o *EnvironmentUsageDto) GetLogStorageUsageBytesOk() (*int64, bool) {
if o == nil || o.LogStorageUsageBytes == nil {
return nil, false
}
return o.LogStorageUsageBytes, true
} | [
0.2871796488761902,
-0.014644407667219639,
0.21524456143379211,
-0.2942301332950592,
0.311486154794693,
-0.9073272347450256,
0.1082206517457962,
-0.1271032989025116,
-0.3829847276210785,
0.7207335233688354,
-1.5569863319396973,
0.16895614564418793,
0.0149383544921875,
0.042141254991292953,... |
func (o *EnvironmentUsageDto) HasLogStorageUsageBytes() bool {
if o != nil && o.LogStorageUsageBytes != nil {
return true
}
return false
} | [
0.050836093723773956,
0.13693609833717346,
0.3016878068447113,
-0.5106683373451233,
0.7114396691322327,
-1.3071762323379517,
-0.15960633754730225,
0.33684128522872925,
0.18621261417865753,
-0.5354927778244019,
-1.079836368560791,
-0.4285377562046051,
0.059451330453157425,
0.086099401116371... |
func (o *EnvironmentUsageDto) SetLogStorageUsageBytes(v int64) {
o.LogStorageUsageBytes = &v
} | [
-0.4802201986312866,
0.4257380962371826,
-0.21309146285057068,
-0.577719509601593,
0.46583887934684753,
-0.3819761276245117,
-0.11490298807621002,
-0.4296759068965912,
-0.15264779329299927,
0.18701085448265076,
-0.6233708262443542,
0.46405163407325745,
-0.23215484619140625,
-0.369296044111... |
func (o *EnvironmentUsageDto) GetLogUploadVolumeBytes() int64 {
if o == nil || o.LogUploadVolumeBytes == nil {
var ret int64
return ret
}
return *o.LogUploadVolumeBytes
} | [
-0.5987929105758667,
-0.050943922251462936,
0.4868778884410858,
-0.43325120210647583,
0.2885201871395111,
-0.9836176037788391,
-0.7850558757781982,
-0.4185485243797302,
0.6882162690162659,
-0.45163601636886597,
-0.8564862012863159,
-0.3214148283004761,
-0.9717763662338257,
-0.5650259852409... |
func (o *EnvironmentUsageDto) GetLogUploadVolumeBytesOk() (*int64, bool) {
if o == nil || o.LogUploadVolumeBytes == nil {
return nil, false
}
return o.LogUploadVolumeBytes, true
} | [
0.0920252576470375,
0.9297479391098022,
0.6294339895248413,
0.009498776867985725,
0.609932541847229,
-0.7432673573493958,
-0.6808913946151733,
-0.27972832322120667,
-0.13915930688381195,
0.2783520221710205,
-1.4099961519241333,
-0.1720554232597351,
0.5050525665283203,
-0.23169837892055511,... |
func (o *EnvironmentUsageDto) HasLogUploadVolumeBytes() bool {
if o != nil && o.LogUploadVolumeBytes != nil {
return true
}
return false
} | [
-0.0803278461098671,
-0.020006604492664337,
0.7401002049446106,
-0.6660593748092651,
0.6824131011962891,
-1.1961948871612549,
-0.8039965629577637,
0.2529902160167694,
0.1436472237110138,
-0.5176393389701843,
-1.1529773473739624,
-0.5459215641021729,
0.1879073977470398,
0.05362313613295555,... |
func (o *EnvironmentUsageDto) SetLogUploadVolumeBytes(v int64) {
o.LogUploadVolumeBytes = &v
} | [
-0.5969977378845215,
0.013637499883770943,
0.23154713213443756,
-0.5351532101631165,
0.18463070690631866,
-0.45212849974632263,
-1.0005830526351929,
-0.6009852290153503,
0.059218358248472214,
-0.06900861859321594,
-0.6808905005455017,
0.27990198135375977,
-0.26116272807121277,
-0.637268185... |
func (o *EnvironmentUsageDto) GetSessionReplays() int64 {
if o == nil || o.SessionReplays == nil {
var ret int64
return ret
}
return *o.SessionReplays
} | [
-0.029935384169220924,
0.5698983669281006,
0.3346823751926422,
0.9059265851974487,
-0.08450523018836975,
-0.46652042865753174,
1.0565788745880127,
-1.0054380893707275,
1.3378055095672607,
0.059813808649778366,
0.2688848674297333,
-0.2898072302341461,
-0.9821264147758484,
-0.231962263584136... |
func (o *EnvironmentUsageDto) GetSessionReplaysOk() (*int64, bool) {
if o == nil || o.SessionReplays == nil {
return nil, false
}
return o.SessionReplays, true
} | [
-0.21194474399089813,
1.086761474609375,
0.5565320253372192,
0.5797038078308105,
0.05013829097151756,
-0.46582892537117004,
0.5865262150764465,
-0.18098199367523193,
0.713348925113678,
0.46925199031829834,
-0.49084728956222534,
0.47310057282447815,
0.32541730999946594,
-0.5125364661216736,... |
func (o *EnvironmentUsageDto) HasSessionReplays() bool {
if o != nil && o.SessionReplays != nil {
return true
}
return false
} | [
0.22316057980060577,
0.6955264806747437,
0.5734034180641174,
0.19470876455307007,
0.5266463160514832,
-0.5193842053413391,
0.5512040257453918,
-0.1545339673757553,
0.8936834931373596,
0.012561052106320858,
-0.34991949796676636,
-0.3603254556655884,
-0.3798598349094391,
0.007055093534290790... |
func (o *EnvironmentUsageDto) SetSessionReplays(v int64) {
o.SessionReplays = &v
} | [
-0.42342644929885864,
0.38161608576774597,
0.16596680879592896,
0.03800926357507706,
-0.33736029267311096,
-0.3772736191749573,
0.5100678205490112,
-1.4505760669708252,
0.746401309967041,
0.6898026466369629,
0.3906487822532654,
0.8906880617141724,
-0.07815687358379364,
-0.3964853882789612,... |
func (o *EnvironmentUsageDto) GetMobileSessionReplays() int64 {
if o == nil || o.MobileSessionReplays == nil {
var ret int64
return ret
}
return *o.MobileSessionReplays
} | [
0.182692751288414,
-0.003244356717914343,
0.34656453132629395,
0.637626051902771,
-0.3411951959133148,
-0.393134206533432,
0.40519171953201294,
-0.5628299117088318,
1.521238923072815,
0.3817442059516907,
0.19996939599514008,
-0.6795939207077026,
-0.9121032953262329,
-0.20352816581726074,
... |
func (o *EnvironmentUsageDto) GetMobileSessionReplaysOk() (*int64, bool) {
if o == nil || o.MobileSessionReplays == nil {
return nil, false
}
return o.MobileSessionReplays, true
} | [
-0.13358892500400543,
0.6679492592811584,
0.6879927515983582,
0.7589623332023621,
-0.17733809351921082,
-0.4433417022228241,
0.172859326004982,
0.23443567752838135,
1.0606329441070557,
0.34883883595466614,
-0.39333540201187134,
0.287323921918869,
0.23938524723052979,
-0.13741903007030487,
... |
func (o *EnvironmentUsageDto) HasMobileSessionReplays() bool {
if o != nil && o.MobileSessionReplays != nil {
return true
}
return false
} | [
0.24505233764648438,
0.07332539558410645,
0.7053520679473877,
-0.12711575627326965,
0.45968782901763916,
-0.6463918089866638,
0.36774662137031555,
0.09166774153709412,
0.9366552829742432,
0.15158675611019135,
-0.2935163974761963,
-0.7183104157447815,
-0.34843677282333374,
0.295878082513809... |
func (o *EnvironmentUsageDto) SetMobileSessionReplays(v int64) {
o.MobileSessionReplays = &v
} | [
-0.317361056804657,
-0.108766570687294,
0.1713128685951233,
0.03536007180809975,
-0.2622544467449188,
-0.31882211565971375,
0.33661800622940063,
-0.669983983039856,
0.9650552868843079,
0.7263163924217224,
0.4030815064907074,
0.39924517273902893,
-0.11834483593702316,
-0.3734114468097687,
... |
func (c *ClusterServiceVersion) SetPhase(phase ClusterServiceVersionPhase, reason ConditionReason, message string) {
c.Status.LastUpdateTime = metav1.Now()
if c.Status.Phase != phase {
c.Status.Phase = phase
c.Status.LastTransitionTime = metav1.Now()
}
c.Status.Message = message
c.Status.Reason = reason
if le... | [
0.08925838023424149,
-0.30405890941619873,
0.6749812364578247,
-0.16329999268054962,
0.150641068816185,
-0.25755563378334045,
-0.20662736892700195,
0.5003661513328552,
0.28436973690986633,
0.8769214153289795,
0.3497130572795868,
0.8473044037818909,
-0.8435080647468567,
0.5319074392318726,
... |
func (c *ClusterServiceVersion) SetRequirementStatus(statuses []RequirementStatus) {
c.Status.RequirementStatus = statuses
} | [
-1.2818869352340698,
-1.141659140586853,
0.0846739113330841,
0.23233336210250854,
0.5105797052383423,
0.8576462864875793,
-0.3306189179420471,
0.7506656050682068,
0.7932133674621582,
0.5938297510147095,
-1.070078730583191,
0.22382701933383942,
0.7231823801994324,
1.3380273580551147,
-0.6... |
func (c *ClusterServiceVersion) IsObsolete() bool {
for _, condition := range c.Status.Conditions {
_, ok := obsoleteReasons[condition.Reason]
if ok {
return true
}
}
return false
} | [
0.09218934923410416,
-0.6797334551811218,
0.6022590398788452,
-0.0448899045586586,
0.35694247484207153,
-0.48430976271629333,
-0.6378803253173828,
-0.17340406775474548,
0.13546979427337646,
0.8446434140205383,
0.7420832514762878,
0.5697296857833862,
-1.0631073713302612,
0.14812034368515015... |
func (ref CommitState) Path() binpath.Text {
return binpath.Text{RootBucket, DriveBucket, ref.drive.String(), CommitBucket, ref.commit.String(), StateBucket, ref.state.String()}
} | [
0.16277368366718292,
-1.1558079719543457,
0.23766301572322845,
-0.46359139680862427,
-0.18384386599063873,
0.6501724123954773,
0.07469278573989868,
-1.2495684623718262,
-0.18558992445468903,
0.3101079761981964,
0.33869826793670654,
-0.3890635371208191,
-0.7306389808654785,
0.51834458112716... |
func (ref CommitState) StateNum() commit.StateNum {
return ref.state
} | [
-0.5906196236610413,
-1.0423874855041504,
0.3762381970882416,
-0.060646239668130875,
-0.19359709322452545,
-0.19922944903373718,
0.8013200163841248,
-0.37255147099494934,
1.4208165407180786,
-0.28891971707344055,
-0.4737280607223511,
0.2870779037475586,
-0.3163318336009979,
-0.490670382976... |
func (ref CommitState) Create(data commit.State) error {
value, err := json.Marshal(data)
if err != nil {
return err
}
return ref.db.Update(func(tx *bolt.Tx) error {
com := commitBucket(tx, ref.drive, ref.commit)
if com == nil {
return commit.NotFound{Drive: ref.drive, Commit: ref.commit}
}
states, er... | [
-0.39159852266311646,
-0.054060861468315125,
0.8256507515907288,
-0.23289154469966888,
-0.04209002107381821,
-0.050981950014829636,
-0.40259990096092224,
-0.5399969220161438,
-0.21552319824695587,
0.6728014349937439,
-0.223345085978508,
-1.26515531539917,
-0.37719857692718506,
0.1048206984... |
func (ref CommitState) Data() (data commit.State, err error) {
err = ref.db.View(func(tx *bolt.Tx) error {
col := commitBucket(tx, ref.drive, ref.commit)
if col == nil {
return commit.NotFound{Drive: ref.drive, Commit: ref.commit}
}
states := col.Bucket([]byte(StateBucket))
if states == nil {
return co... | [
-0.3593887984752655,
-0.587753176689148,
0.635630190372467,
-0.708048403263092,
-0.16224826872348785,
-0.12088829278945923,
-0.2878813147544861,
-0.23049311339855194,
-0.15129755437374115,
-0.18827824294567108,
0.14314278960227966,
-0.14685344696044922,
-0.05301514267921448,
0.023108955472... |
func New(lib io.CUILib) *CUI {
catList := component.NewListComponent("Categories")
taskList := component.NewListComponent("Tasks")
stateBar := component.NewTextComponent("State")
descBox := component.NewTextComponent("Description")
c := &CUI{
CUILib: lib,
grid: component.NewGridComponent(
map[string]compone... | [
-0.021503720432519913,
-0.3828805088996887,
0.5623946785926819,
-0.23373501002788544,
-0.5816240906715393,
-0.10124843567609787,
0.532993733882904,
0.2660318613052368,
-0.7630509734153748,
-0.2790594696998596,
0.0674298033118248,
-0.6174815893173218,
0.38254815340042114,
0.5820268988609314... |
func NewEntity(institutionID string) *Entity {
return &Entity{
InstitutionID: institutionID,
}
} | [
0.682878851890564,
-0.9436761140823364,
-0.11095506697893143,
0.23150649666786194,
0.541824460029602,
0.6447353363037109,
0.39629119634628296,
0.5593233108520508,
1.0544471740722656,
0.4240051805973053,
0.7138763070106506,
1.1523947715759277,
0.12706908583641052,
0.02377026528120041,
-0.... |
func (t *Tree) Copy() *Tree {
if t == nil {
return nil
}
return &Tree{
Name: t.Name,
Root: t.Root.CopyStatement(),
text: t.text,
}
} | [
0.030637867748737335,
-0.9226376414299011,
0.3166268765926361,
-0.014441135339438915,
-2.31939959526062,
0.42796242237091064,
-0.5380750298500061,
-0.25131651759147644,
0.24144186079502106,
1.1015141010284424,
-0.17213688790798187,
0.009732924401760101,
-0.16554738581180573,
0.091267026960... |
func Parse(name, text string) (*Tree, error) {
t := New(name)
t.text = text
return t.Parse(text)
} | [
0.268263041973114,
0.28713029623031616,
0.28860709071159363,
-0.13580988347530365,
-1.7590328454971313,
-0.7244341969490051,
-1.8094791173934937,
-0.2294234037399292,
-0.6704233884811401,
0.10808227211236954,
-0.8113296031951904,
-0.1507599949836731,
-1.1196820735931396,
-0.004625540226697... |
func (t *Tree) next() item {
if t.peekCount > 0 {
t.peekCount--
} else {
t.token[0] = t.lex.nextItem()
}
return t.token[t.peekCount]
} | [
-0.3992574214935303,
0.06715736538171768,
0.535586953163147,
0.8409278392791748,
-0.7174047827720642,
0.14400990307331085,
-1.1789852380752563,
0.635985255241394,
-0.2164115309715271,
-0.19627781212329865,
-0.24617409706115723,
0.7614260911941528,
0.027066878974437714,
0.16521205008029938,... |
func (t *Tree) backup() {
t.peekCount++
} | [
-0.5843104124069214,
0.43332964181900024,
0.46566852927207947,
-0.4501895010471344,
-0.22114944458007812,
0.4325549900531769,
0.7205163240432739,
0.30232715606689453,
-0.4128433167934418,
0.4540529251098633,
-0.6284406781196594,
0.6585925221443176,
0.09995023161172867,
0.6799343824386597,
... |
func (t *Tree) peek() item {
if t.peekCount > 0 {
return t.token[t.peekCount-1]
}
t.peekCount = 1
t.token[0] = t.lex.nextItem()
return t.token[0]
} | [
-0.2513176500797272,
0.21332807838916779,
0.6906739473342896,
0.1515403389930725,
-0.13770270347595215,
-0.35170817375183105,
-0.704200804233551,
-0.0024351351894438267,
-0.5668898224830627,
0.2012740522623062,
-0.02251388318836689,
0.6516833901405334,
0.44357845187187195,
-0.3609233498573... |
func (t *Tree) nextNonSpace() (token item) {
for {
token = t.next()
if token.typ != itemWhitespace {
break
}
}
return token
} | [
-0.334737628698349,
-0.24827343225479126,
0.43241721391677856,
0.17564505338668823,
-1.197373867034912,
0.30083632469177246,
-0.6104546785354614,
-0.46111032366752625,
0.7592138051986694,
0.012487059459090233,
-0.13824345171451569,
0.62935471534729,
-1.0417388677597046,
0.892969012260437,
... |
func (t *Tree) peekNonSpace() (token item) {
for {
token = t.next()
if token.typ != itemWhitespace {
break
}
}
t.backup()
return token
} | [
-0.405272513628006,
-0.08258625119924545,
0.3704141080379486,
-0.4216235876083374,
-1.0439505577087402,
-0.23308899998664856,
-0.7610672116279602,
-0.8359261751174927,
0.31591689586639404,
0.5552473068237305,
-0.155991792678833,
0.8899447917938232,
-0.6041806936264038,
0.8470112681388855,
... |
func New(name string) *Tree {
return &Tree{
Name: name,
}
} | [
-0.10548994690179825,
-0.477150022983551,
0.02662496641278267,
-0.7477585673332214,
-1.6829079389572144,
-0.386692076921463,
-1.1697351932525635,
0.12285273522138596,
-0.8440160751342773,
0.505906343460083,
-1.134199857711792,
0.3865515887737274,
0.17095163464546204,
0.6809477210044861,
... |
func (t *Tree) errorf(format string, args ...interface{}) {
t.Root = nil
format = fmt.Sprintf("statement: %s:%d: %s", t.Name, t.token[0].line, format)
panic(fmt.Errorf(format, args...))
} | [
0.476947158575058,
-0.7174206376075745,
0.29336315393447876,
-0.31973785161972046,
0.5832313299179077,
-0.19707795977592468,
-0.19194993376731873,
0.27588096261024475,
-0.9997921586036682,
0.19654399156570435,
-0.07586242258548737,
0.37226590514183044,
0.7630887627601624,
0.729823887348175... |
func (t *Tree) expect(expected itemType, context string) item {
token := t.nextNonSpace()
if token.typ != expected {
t.unexpected(token, context)
}
return token
} | [
-0.1452721208333969,
0.13127799332141876,
0.3297407925128937,
-0.3778446614742279,
-0.4216866195201874,
0.3008785843849182,
-0.8736112713813782,
-0.20482060313224792,
0.375232994556427,
0.13393057882785797,
0.09746335446834564,
1.3050909042358398,
-0.3905753195285797,
-0.06222223490476608,... |
func (t *Tree) expectOneOf(expected []itemType, context string) item {
token := t.nextNonSpace()
found := false
for _, e := range expected {
if token.typ == e {
found = true
break
}
}
if !found {
t.unexpected(token, context)
}
return token
} | [
-0.05530353635549545,
-0.2548117935657501,
0.39782026410102844,
-0.4960176646709442,
0.07816197723150253,
-0.617967963218689,
-0.8101910948753357,
-0.07239113003015518,
0.5345956683158875,
0.5201449394226074,
0.43237918615341187,
0.28291189670562744,
-0.5273501873016357,
0.2217242419719696... |
func (t *Tree) unexpected(token item, context string) {
t.errorf("unexpected %s in %s", token, context)
} | [
0.5058256983757019,
-0.46093761920928955,
0.22847804427146912,
-0.7499746084213257,
-0.005618463270366192,
0.5895040035247803,
-1.1809141635894775,
1.2886536121368408,
-0.4012187123298645,
0.48809248208999634,
-0.7672803401947021,
1.0911465883255005,
0.9367519021034241,
-0.2877170443534851... |
func (t *Tree) recover(errp *error) {
e := recover()
if e != nil {
if t != nil {
t.lex.drain()
t.stopParse()
}
*errp = e.(error)
}
return
} | [
0.0949171707034111,
-0.4944577217102051,
0.6116002798080444,
-0.25552570819854736,
-0.26503849029541016,
-0.2790171205997467,
-0.4688955545425415,
0.587923526763916,
0.1156093031167984,
0.03159637004137039,
0.34782034158706665,
-0.3220802843570709,
-0.5554052591323853,
-0.3925233483314514,... |
func (t *Tree) startParse(lex *lexer) {
t.Root = nil
t.lex = lex
} | [
0.7480394840240479,
-0.5036056637763977,
0.3213696777820587,
-0.015715746209025383,
-0.3703925609588623,
-0.657138466835022,
-1.6285581588745117,
0.8590912818908691,
-0.8269007205963135,
-0.21467183530330658,
-0.4469519555568695,
1.0562033653259277,
-0.7243916988372803,
0.8882266283035278,... |
func (t *Tree) Parse(text string) (tree *Tree, err error) {
defer t.recover(&err)
t.startParse(lex(t.Name, text))
t.text = text
t.parse()
t.stopParse()
return t, nil
} | [
0.382711797952652,
0.15613025426864624,
0.3553873598575592,
-0.04319053143262863,
-1.17429518699646,
-0.4961920380592346,
-1.1117122173309326,
0.07772266864776611,
-0.04657484218478203,
-0.14225967228412628,
-0.31374841928482056,
-0.2150927186012268,
-1.1659414768218994,
-0.123415976762771... |
func IsEmptyTree(n Node) bool {
switch n := n.(type) {
case nil:
return true
case *ListNode:
for _, node := range n.Nodes {
if !IsEmptyTree(node) {
return false
}
}
case *IdentifierNode:
return n.Ident == ""
case *NullNode:
case *BoolNode:
case *NumberNode:
case *StringNode:
return false
ca... | [
-1.227217674255371,
0.6362270712852478,
0.6437162756919861,
-0.42503848671913147,
-0.22281552851200104,
0.2769891321659088,
-0.7575013637542725,
-0.2996339201927185,
0.44829633831977844,
0.20997105538845062,
-0.8505848050117493,
-0.1188419908285141,
-0.30982059240341187,
1.4477143287658691... |
func (t *Tree) parse() {
t.Root = t.newStatement(t.peek().pos, nil)
op := t.peekNonSpace()
if itemOperatorsStart <= op.typ && op.typ <= itemOperatorsEnd {
t.Root.Operator = t.operator()
}
tok := t.nextNonSpace()
if tok.typ != itemEOF {
t.errorf("unexpected token after operator: %q", tok)
}
} | [
-0.31079795956611633,
0.4377591013908386,
0.4652805030345917,
0.2483738213777542,
-0.6678709983825684,
-0.76896733045578,
-0.36898285150527954,
-0.5089215040206909,
-0.2583881914615631,
0.026514414697885513,
-0.11782333999872208,
-0.48473262786865234,
-0.18145418167114258,
0.33764371275901... |
func (t *Tree) operator() *OperatorNode {
token := t.expectOneOf(operators, "operator")
return t.newOperator(token.val, token.pos, t.list())
} | [
-0.9026833176612854,
0.24619975686073303,
0.3422519564628601,
0.020288899540901184,
-0.9065083265304565,
-0.391378790140152,
-0.5885979533195496,
0.8491455316543579,
0.6995615363121033,
-0.11954037100076675,
-0.4352283775806427,
-0.916577935218811,
0.045705005526542664,
0.2914024889469147,... |
func (kg *groupKeyList) Index(key flux.GroupKey) int {
i := kg.InsertAt(key)
if i >= len(kg.elements) || kg.elements[i].deleted || !kg.elements[i].key.Equal(key) {
return -1
}
return i
} | [
-1.5720317363739014,
0.4576610326766968,
0.7198899984359741,
-0.24610655009746552,
-0.6995012164115906,
0.2127956598997116,
0.9825261831283569,
0.3110094964504242,
-0.4989139139652252,
0.7892066240310669,
-0.4157310426235199,
0.232735276222229,
-1.519507884979248,
0.053903963416814804,
0... |
func (kg *groupKeyList) InsertAt(key flux.GroupKey) int {
if kg.Last().Less(key) {
return len(kg.elements)
}
return sort.Search(len(kg.elements), func(i int) bool {
return !kg.elements[i].key.Less(key)
})
} | [
-1.7289272546768188,
0.925438404083252,
0.9278087615966797,
-1.0126078128814697,
-0.49499422311782837,
-0.2082701325416565,
0.413373738527298,
-0.8280109763145447,
-1.2185449600219727,
0.3111283779144287,
-0.9002993106842041,
-0.6772524118423462,
-1.6091147661209106,
0.5960700511932373,
... |
func NewGroupLookup() *GroupLookup {
return &GroupLookup{
lastIndex: -1,
nextID: 1,
}
} | [
-1.0120916366577148,
-0.10714595764875412,
0.44230663776397705,
0.33197563886642456,
-0.5583438277244568,
-0.10929666459560394,
0.6586282849311829,
-0.5144994854927063,
-0.7671345472335815,
0.19644717872142792,
0.5106601119041443,
-0.28427112102508545,
-1.0127073526382446,
-0.9365435838699... |
func (l *GroupLookup) Lookup(key flux.GroupKey) (interface{}, bool) {
if key == nil || len(l.groups) == 0 {
return nil, false
}
group := l.lookupGroup(key)
if group == -1 {
return nil, false
}
i := l.groups[group].Index(key)
if i != -1 {
return l.groups[group].At(i), true
}
return nil, false
} | [
-1.9735405445098877,
0.819976806640625,
0.6414082646369934,
-0.2983805239200592,
-0.8537079095840454,
-0.5537363290786743,
0.3958430588245392,
-0.20558084547519684,
-0.2103090137243271,
0.8333247303962708,
-0.13455435633659363,
-0.46443334221839905,
-0.993581235408783,
0.17291678488254547,... |
func (l *GroupLookup) LookupOrCreate(key flux.GroupKey, fn func() interface{}) interface{} {
group, ok := l.Lookup(key)
if !ok {
group = fn()
l.Set(key, group)
}
return group
} | [
-0.8348501324653625,
0.8305227160453796,
0.39013755321502686,
-0.02638484351336956,
-0.17890368402004242,
-0.7452481985092163,
-0.2418985366821289,
-0.3259401023387909,
-0.2115606665611267,
-0.11764057725667953,
0.7942436337471008,
-0.9199088215827942,
0.17831137776374817,
-0.3240565359592... |
func (l *GroupLookup) Set(key flux.GroupKey, value interface{}) {
group := l.lookupGroup(key)
l.createOrSetInGroup(group, key, value)
} | [
-1.3616584539413452,
0.7868800163269043,
0.17870210111141205,
-0.24953912198543549,
-0.19785399734973907,
0.1613187938928604,
0.06443770974874496,
-0.4627949893474579,
-0.5449526309967041,
0.6960752606391907,
0.232840433716774,
-0.06274501234292984,
-0.18875114619731903,
0.5175358057022095... |
func (l *GroupLookup) Clear() {
l.lastIndex = -1
l.nextID = 1
l.groups = nil
} | [
-1.8263386487960815,
0.6988776922225952,
0.16337864100933075,
-0.5517177581787109,
-0.3288598358631134,
0.5736409425735474,
0.46511104702949524,
-1.0114312171936035,
-0.2747316062450409,
0.06647221744060516,
1.069318413734436,
0.0568610355257988,
-0.2741835415363312,
-0.2993979752063751,
... |
func (l *GroupLookup) lookupGroup(key flux.GroupKey) int {
if l.lastIndex >= 0 {
kg := l.groups[l.lastIndex]
if !key.Less(kg.First()) {
// If the next group doesn't exist or has a first value that is
// greater than this key, then we can return the last index and
// avoid performing a binary search.
if... | [
-1.4049128293991089,
1.235297441482544,
0.7795702219009399,
-0.616799533367157,
-1.0087065696716309,
-0.7916078567504883,
0.8955503702163696,
-0.9291557669639587,
-0.5181159377098083,
-0.22553248703479767,
0.4502721428871155,
0.09864763915538788,
-0.8635838031768799,
0.5972594022750854,
... |
func (l *GroupLookup) createOrSetInGroup(index int, key flux.GroupKey, value interface{}) {
// If this index is at -1, then we are inserting a value with a smaller key
// than every group and we need to create a new group to insert it at the
// beginning.
if index == -1 {
l.groups = append(l.groups, nil)
copy(l... | [
-0.6589498519897461,
0.7601817846298218,
0.820000171661377,
-0.17374786734580994,
-0.4655221402645111,
-0.41527557373046875,
0.6014925241470337,
-0.5805739164352417,
0.17986908555030823,
0.9156302809715271,
-0.009300419129431248,
-0.29860422015190125,
-0.42926788330078125,
0.34546574950218... |
func (l *GroupLookup) newKeyGroup(entries []groupKeyListElement) *groupKeyList {
id := l.nextID
l.nextID++
return &groupKeyList{
id: id,
elements: entries,
}
} | [
-1.332484245300293,
0.3126548230648041,
0.11156928539276123,
0.36160269379615784,
-1.2740617990493774,
-0.3818705379962921,
-0.14172591269016266,
-0.40735432505607605,
0.16301609575748444,
0.6130198240280151,
-0.7142400741577148,
-0.007551804184913635,
-1.1823753118515015,
0.99215739965438... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.