text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (o *KubernetesNodeGroupProfile) GetObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ObjectType, true
} | [
-0.39097529649734497,
0.3726420998573303,
0.6416831016540527,
-0.1961268037557602,
0.3521629273891449,
0.421732634305954,
0.02272104099392891,
0.04051236808300018,
-0.2807919979095459,
1.8117895126342773,
-1.2704341411590576,
-1.4715116024017334,
0.08669210225343704,
0.01602771319448948,
... |
func (o *KubernetesNodeGroupProfile) SetObjectType(v string) {
o.ObjectType = v
} | [
0.032241251319646835,
0.34611254930496216,
-0.08838152885437012,
-0.5944068431854248,
0.08152201771736145,
0.3765221834182739,
-0.17772065103054047,
-1.071488618850708,
-0.576888918876648,
0.8522794246673584,
-0.4313476085662842,
-0.31426745653152466,
-0.7437699437141418,
-0.29781380295753... |
func (o *KubernetesNodeGroupProfile) GetCurrentsize() int64 {
if o == nil || o.Currentsize == nil {
var ret int64
return ret
}
return *o.Currentsize
} | [
-0.048930902034044266,
0.005555037874728441,
0.0030970845837146044,
0.45668649673461914,
-0.3002637028694153,
0.080904521048069,
0.7870528697967529,
0.21429865062236786,
-0.20017081499099731,
-0.32634058594703674,
0.41306403279304504,
-0.87239009141922,
-1.0831066370010376,
1.2093629837036... |
func (o *KubernetesNodeGroupProfile) GetCurrentsizeOk() (*int64, bool) {
if o == nil || o.Currentsize == nil {
return nil, false
}
return o.Currentsize, true
} | [
-0.10312344133853912,
-0.090806744992733,
0.31071823835372925,
0.45181480050086975,
-0.30254778265953064,
0.26708608865737915,
1.2510243654251099,
0.42109841108322144,
-0.3003568649291992,
0.6170114874839783,
-0.31827861070632935,
-1.0066832304000854,
-0.34568125009536743,
1.47450566291809... |
func (o *KubernetesNodeGroupProfile) HasCurrentsize() bool {
if o != nil && o.Currentsize != nil {
return true
}
return false
} | [
0.3710494339466095,
-0.21970915794372559,
0.12086011469364166,
0.015763340517878532,
0.13504599034786224,
-0.19710955023765564,
0.5871735215187073,
0.4232870638370514,
-0.5810385346412659,
-0.43351346254348755,
-0.418547123670578,
-0.9824072122573853,
-0.2952299118041992,
1.259497642517089... |
func (o *KubernetesNodeGroupProfile) SetCurrentsize(v int64) {
o.Currentsize = &v
} | [
0.37083694338798523,
0.13458797335624695,
-0.2829064428806305,
0.15450210869312286,
-0.7577266693115234,
0.1408638060092926,
0.455095112323761,
-0.823797881603241,
-0.45075276494026184,
0.6078303456306458,
0.6425744891166687,
0.08197025954723358,
-0.5301642417907715,
0.761445939540863,
0... |
func (o *KubernetesNodeGroupProfile) GetDesiredsize() int64 {
if o == nil || o.Desiredsize == nil {
var ret int64
return ret
}
return *o.Desiredsize
} | [
-0.22030416131019592,
0.7948927879333496,
0.44623178243637085,
1.2654988765716553,
0.4646189212799072,
-0.33454588055610657,
0.5300787687301636,
0.5341979265213013,
-0.333924800157547,
-1.414632797241211,
0.41921332478523254,
-0.6240444183349609,
-0.8461479544639587,
0.9419705271720886,
... |
func (o *KubernetesNodeGroupProfile) GetDesiredsizeOk() (*int64, bool) {
if o == nil || o.Desiredsize == nil {
return nil, false
}
return o.Desiredsize, true
} | [
-0.4965278208255768,
0.7493981122970581,
0.5816358327865601,
0.7750481367111206,
0.36104413866996765,
-0.07334588468074799,
0.8782172203063965,
0.9716006517410278,
-0.24962756037712097,
-0.22256137430667877,
-0.7478987574577332,
-0.7350639700889587,
0.46817317605018616,
0.8354285359382629,... |
func (o *KubernetesNodeGroupProfile) HasDesiredsize() bool {
if o != nil && o.Desiredsize != nil {
return true
}
return false
} | [
-0.1792161464691162,
0.903752326965332,
0.45356497168540955,
0.33235597610473633,
0.6247942447662354,
-0.768347442150116,
0.0029841612558811903,
0.7394019961357117,
-0.7052387595176697,
-1.29832124710083,
-0.767996072769165,
-0.5285989046096802,
0.19519339501857758,
0.9486231207847595,
0... |
func (o *KubernetesNodeGroupProfile) SetDesiredsize(v int64) {
o.Desiredsize = &v
} | [
-0.3366161584854126,
0.9653945565223694,
-0.051070936024188995,
0.817297101020813,
0.055171575397253036,
-0.1861065775156021,
0.2663809061050415,
-0.48521319031715393,
-0.6351256966590881,
-0.5324944257736206,
0.12350240349769592,
0.23513364791870117,
-0.2948383688926697,
0.483465939760208... |
func (o *KubernetesNodeGroupProfile) GetGpuConfig() []InfraBaseGpuConfiguration {
if o == nil {
var ret []InfraBaseGpuConfiguration
return ret
}
return o.GpuConfig
} | [
-1.0073814392089844,
0.8402172923088074,
0.4936111569404602,
1.2556763887405396,
0.4056912660598755,
-0.0331888422369957,
-0.25729894638061523,
-0.11226066946983337,
-0.759645402431488,
0.4376847445964813,
-0.8039563894271851,
-0.19310928881168365,
-0.4097351133823395,
0.5875920653343201,
... |
func (o *KubernetesNodeGroupProfile) GetGpuConfigOk() ([]InfraBaseGpuConfiguration, bool) {
if o == nil || o.GpuConfig == nil {
return nil, false
}
return o.GpuConfig, true
} | [
-1.0701541900634766,
1.3620668649673462,
0.5463440418243408,
0.8205170631408691,
0.054268039762973785,
0.2554542124271393,
0.1826326698064804,
1.0076215267181396,
-1.1026676893234253,
1.3655943870544434,
-0.8652865290641785,
-0.6774080395698547,
-0.05171120539307594,
0.5562870502471924,
... |
func (o *KubernetesNodeGroupProfile) HasGpuConfig() bool {
if o != nil && o.GpuConfig != nil {
return true
}
return false
} | [
-0.5160365104675293,
1.1009464263916016,
0.22888417541980743,
-0.02508838288486004,
0.2783677577972412,
-0.7276290655136108,
-0.32138022780418396,
0.5424261093139648,
-1.0641555786132812,
0.5328322649002075,
-1.0505739450454712,
-0.8975442051887512,
0.19200436770915985,
0.8673633933067322,... |
func (o *KubernetesNodeGroupProfile) SetGpuConfig(v []InfraBaseGpuConfiguration) {
o.GpuConfig = v
} | [
-1.1272507905960083,
0.6637563109397888,
0.1493237167596817,
0.5396164059638977,
-0.03264322131872177,
0.004672729875892401,
-0.12704114615917206,
-0.2792339622974396,
-1.4934234619140625,
0.8773052096366882,
-0.9116514921188354,
-0.26862311363220215,
-0.1936301290988922,
0.993978679180145... |
func (o *KubernetesNodeGroupProfile) GetLabels() []KubernetesNodeGroupLabel {
if o == nil {
var ret []KubernetesNodeGroupLabel
return ret
}
return o.Labels
} | [
-0.2172408252954483,
0.8511216044425964,
0.12549781799316406,
0.1656937450170517,
0.42920148372650146,
0.32783830165863037,
0.011941296979784966,
-1.6222988367080688,
0.18937860429286957,
-0.46111297607421875,
0.6412583589553833,
-0.6252872943878174,
-0.8626593351364136,
0.9371948838233948... |
func (o *KubernetesNodeGroupProfile) GetLabelsOk() ([]KubernetesNodeGroupLabel, bool) {
if o == nil || o.Labels == nil {
return nil, false
}
return o.Labels, true
} | [
-0.019597278907895088,
0.660736083984375,
0.3226368725299835,
-0.6512066721916199,
-0.15401585400104523,
0.2270268350839615,
-0.14769604802131653,
-1.037774920463562,
-0.33573633432388306,
0.4046299159526825,
-0.0253071878105402,
-1.2062368392944336,
-0.39603933691978455,
0.801671802997589... |
func (o *KubernetesNodeGroupProfile) HasLabels() bool {
if o != nil && o.Labels != nil {
return true
}
return false
} | [
0.45994219183921814,
0.7061460614204407,
0.17701762914657593,
-0.768708348274231,
0.5404145121574402,
-0.16146220266819,
-0.4466007947921753,
0.06110360473394394,
-0.17575351893901825,
-0.6674726605415344,
0.4621110260486603,
-1.3140149116516113,
-0.7004729509353638,
0.7855844497680664,
... |
func (o *KubernetesNodeGroupProfile) SetLabels(v []KubernetesNodeGroupLabel) {
o.Labels = v
} | [
-0.8240415453910828,
0.7711478471755981,
0.07540970295667648,
-0.10740210860967636,
-0.1877393275499344,
0.3130885064601898,
-0.5361877679824829,
-1.6486122608184814,
-0.6561098694801331,
0.45771047472953796,
0.49067744612693787,
-0.6930295825004578,
-0.8437961935997009,
1.0077646970748901... |
func (o *KubernetesNodeGroupProfile) GetMaxsize() int64 {
if o == nil || o.Maxsize == nil {
var ret int64
return ret
}
return *o.Maxsize
} | [
0.1205008253455162,
0.7096568942070007,
0.188347727060318,
1.1778908967971802,
-0.268818199634552,
-0.2487339973449707,
-0.04465620592236519,
0.1327032893896103,
0.648057758808136,
-0.8243182897567749,
0.2528567910194397,
-1.2726222276687622,
-1.310893177986145,
0.8513765335083008,
1.146... |
func (o *KubernetesNodeGroupProfile) GetMaxsizeOk() (*int64, bool) {
if o == nil || o.Maxsize == nil {
return nil, false
}
return o.Maxsize, true
} | [
-0.20324742794036865,
0.5127958655357361,
0.3459215462207794,
1.064621090888977,
-0.34804806113243103,
-0.3726302981376648,
0.47652122378349304,
0.8354204893112183,
0.3079642951488495,
0.4945663511753082,
-1.040862798690796,
-1.5956714153289795,
-0.32826298475265503,
1.4278433322906494,
... |
func (o *KubernetesNodeGroupProfile) HasMaxsize() bool {
if o != nil && o.Maxsize != nil {
return true
}
return false
} | [
0.22511042654514313,
0.3407641649246216,
0.2132616639137268,
0.5367156267166138,
-0.06003040075302124,
-0.605021059513092,
-0.5360036492347717,
0.5215145945549011,
0.07463248819112778,
-0.666388213634491,
-0.8638735413551331,
-1.0748164653778076,
-0.42093050479888916,
0.8713269829750061,
... |
func (o *KubernetesNodeGroupProfile) SetMaxsize(v int64) {
o.Maxsize = &v
} | [
0.3181877136230469,
0.6345215439796448,
-0.31197112798690796,
0.905971109867096,
-0.7310161590576172,
-0.29056140780448914,
-0.8243430852890015,
-0.6798570156097412,
-0.03515015169978142,
0.2325914353132248,
0.31779488921165466,
0.0671953335404396,
-0.605832040309906,
0.4101397693157196,
... |
func (o *KubernetesNodeGroupProfile) GetMinsize() int64 {
if o == nil || o.Minsize == nil {
var ret int64
return ret
}
return *o.Minsize
} | [
-0.03129297494888306,
0.3091423511505127,
-0.27793630957603455,
0.9186555743217468,
-0.3050043284893036,
-0.13421206176280975,
0.0914313867688179,
-0.5557922124862671,
0.5742027759552002,
-1.0231528282165527,
0.3494534194469452,
-0.6939625144004822,
-1.5320852994918823,
0.8624795079231262,... |
func (o *KubernetesNodeGroupProfile) GetMinsizeOk() (*int64, bool) {
if o == nil || o.Minsize == nil {
return nil, false
}
return o.Minsize, true
} | [
-0.2339823842048645,
0.04300528019666672,
0.30990850925445557,
0.7919084429740906,
-0.5187859535217285,
-0.45055311918258667,
0.5227935910224915,
0.1670534312725067,
0.38596418499946594,
0.2990069091320038,
-0.5491833686828613,
-0.5510138273239136,
-0.6220290660858154,
1.322547435760498,
... |
func (o *KubernetesNodeGroupProfile) HasMinsize() bool {
if o != nil && o.Minsize != nil {
return true
}
return false
} | [
0.18797656893730164,
0.05077163502573967,
0.053681135177612305,
0.2661786675453186,
0.13179169595241547,
-0.7250906825065613,
-0.1843709647655487,
-0.2571605443954468,
0.4027273654937744,
-0.8988291025161743,
-0.5675276517868042,
-0.570774495601654,
-0.7845339775085449,
1.0199980735778809,... |
func (o *KubernetesNodeGroupProfile) SetMinsize(v int64) {
o.Minsize = &v
} | [
0.02666356973350048,
0.48630356788635254,
-0.2909258306026459,
0.6921390295028687,
-0.8699567317962646,
-0.22785037755966187,
-0.542155921459198,
-1.469059705734253,
0.08732158690690994,
0.013438724912703037,
0.5039316415786743,
0.5933119654655457,
-0.7133675813674927,
0.46965235471725464,... |
func (o *KubernetesNodeGroupProfile) GetNodeType() string {
if o == nil || o.NodeType == nil {
var ret string
return ret
}
return *o.NodeType
} | [
0.14348407089710236,
0.7928087115287781,
0.3039676547050476,
0.3158707618713379,
0.22502672672271729,
-0.4033730626106262,
0.2566273808479309,
-0.5816617012023926,
0.5412476062774658,
0.11247280985116959,
-0.03843749687075615,
-1.2094030380249023,
-1.0028170347213745,
1.0890518426895142,
... |
func (o *KubernetesNodeGroupProfile) GetNodeTypeOk() (*string, bool) {
if o == nil || o.NodeType == nil {
return nil, false
}
return o.NodeType, true
} | [
-0.48781898617744446,
0.9139778017997742,
0.5842182040214539,
0.05122009292244911,
-0.06681257486343384,
-0.14571985602378845,
0.3661608397960663,
-0.021876657381653786,
-0.12108704447746277,
1.1211975812911987,
-1.2731189727783203,
-0.9684091210365295,
-0.10522039234638214,
1.131702899932... |
func (o *KubernetesNodeGroupProfile) HasNodeType() bool {
if o != nil && o.NodeType != nil {
return true
}
return false
} | [
-0.21910764276981354,
1.3967808485031128,
0.16099150478839874,
-0.17985643446445465,
0.6085470914840698,
-0.9474852085113525,
-0.1418381780385971,
-0.4994685649871826,
-0.03966158255934715,
0.21499252319335938,
-0.4603646397590637,
-0.6261253356933594,
-0.2953642010688782,
1.41684091091156... |
func (o *KubernetesNodeGroupProfile) SetNodeType(v string) {
o.NodeType = &v
} | [
0.42638853192329407,
0.5812651515007019,
-0.19962309300899506,
-0.32690858840942383,
-0.07373695820569992,
-0.6686002016067505,
-0.47920548915863037,
-1.081495761871338,
-0.1787828505039215,
0.493895560503006,
0.17452436685562134,
0.8290907144546509,
-0.6542385220527649,
0.1065139919519424... |
func (o *KubernetesNodeGroupProfile) GetTaints() []KubernetesNodeGroupTaint {
if o == nil {
var ret []KubernetesNodeGroupTaint
return ret
}
return o.Taints
} | [
0.08892864733934402,
0.27924636006355286,
0.3326180577278137,
0.22510358691215515,
0.7898522019386292,
0.26788002252578735,
0.9720761775970459,
-1.825498342514038,
0.3023327589035034,
-0.47678256034851074,
0.609520435333252,
0.10363009572029114,
-0.4940718412399292,
0.628883421421051,
0.... |
func (o *KubernetesNodeGroupProfile) GetTaintsOk() ([]KubernetesNodeGroupTaint, bool) {
if o == nil || o.Taints == nil {
return nil, false
}
return o.Taints, true
} | [
-0.3152432143688202,
-0.12607789039611816,
0.5136752724647522,
0.21307095885276794,
0.05422919988632202,
-0.05387929826974869,
0.9219110012054443,
-0.9465259909629822,
0.12350278347730637,
0.30069488286972046,
-0.3784230947494507,
-0.16115814447402954,
0.6190652847290039,
0.204704225063323... |
func (o *KubernetesNodeGroupProfile) HasTaints() bool {
if o != nil && o.Taints != nil {
return true
}
return false
} | [
0.6466076970100403,
0.6632430553436279,
0.3579603135585785,
-0.44411396980285645,
0.8134089112281799,
-0.23148119449615479,
0.7059752941131592,
-1.0605549812316895,
0.3059311509132385,
-0.5298617482185364,
0.08549664914608002,
-0.7379581332206726,
0.07532648742198944,
0.4752442240715027,
... |
func (o *KubernetesNodeGroupProfile) SetTaints(v []KubernetesNodeGroupTaint) {
o.Taints = v
} | [
-0.15945303440093994,
0.09198131412267685,
0.19964666664600372,
-0.18044157326221466,
0.5530667304992676,
0.27009326219558716,
0.5473893284797668,
-2.2295475006103516,
-0.39003533124923706,
0.2008725255727768,
0.6071693301200867,
-0.026930686086416245,
-0.20888973772525787,
0.7152146100997... |
func (o *KubernetesNodeGroupProfile) GetClusterProfile() KubernetesClusterProfileRelationship {
if o == nil || o.ClusterProfile == nil {
var ret KubernetesClusterProfileRelationship
return ret
}
return *o.ClusterProfile
} | [
0.7560810446739197,
0.745134711265564,
0.5104709267616272,
0.7939531803131104,
0.08650875091552734,
-0.5011431574821472,
0.382923424243927,
-1.0328068733215332,
1.0946292877197266,
0.3146762549877167,
-0.3257271647453308,
-1.096346378326416,
-1.445091724395752,
0.24670346081256866,
0.890... |
func (o *KubernetesNodeGroupProfile) GetClusterProfileOk() (*KubernetesClusterProfileRelationship, bool) {
if o == nil || o.ClusterProfile == nil {
return nil, false
}
return o.ClusterProfile, true
} | [
0.5471540093421936,
0.47067251801490784,
0.379966139793396,
0.5224120616912842,
-0.18295514583587646,
-0.03998515009880066,
0.7821046113967896,
0.07915784418582916,
-0.389606237411499,
1.1931239366531372,
-1.2433363199234009,
-1.0818977355957031,
-0.8938519358634949,
0.033323969691991806,
... |
func (o *KubernetesNodeGroupProfile) HasClusterProfile() bool {
if o != nil && o.ClusterProfile != nil {
return true
}
return false
} | [
1.0551997423171997,
0.7205836772918701,
0.26386991143226624,
0.3782193958759308,
0.28981879353523254,
-0.509729266166687,
0.6389296054840088,
-0.14009463787078857,
-0.25846895575523376,
0.30415233969688416,
-1.2371954917907715,
-1.2716586589813232,
-1.1763465404510498,
0.3755098879337311,
... |
func (o *KubernetesNodeGroupProfile) SetClusterProfile(v KubernetesClusterProfileRelationship) {
o.ClusterProfile = &v
} | [
0.9330676794052124,
0.447407066822052,
0.3446480631828308,
0.2274988442659378,
-0.10647134482860565,
-0.13101421296596527,
-0.08618973195552826,
-1.3968080282211304,
0.6306904554367065,
1.1021287441253662,
-0.11206522583961487,
-0.062385570257902145,
-0.806435227394104,
-0.1582183837890625... |
func (o *KubernetesNodeGroupProfile) GetInfraProvider() KubernetesBaseInfrastructureProviderRelationship {
if o == nil || o.InfraProvider == nil {
var ret KubernetesBaseInfrastructureProviderRelationship
return ret
}
return *o.InfraProvider
} | [
-0.22240425646305084,
0.8926652073860168,
0.0844816118478775,
0.576757550239563,
-0.22995421290397644,
-0.016505464911460876,
0.3677569627761841,
-0.6620970964431763,
0.5222528576850891,
-0.2335885912179947,
0.05705070495605469,
-1.072900652885437,
-1.7697020769119263,
0.4003371298313141,
... |
func (o *KubernetesNodeGroupProfile) GetInfraProviderOk() (*KubernetesBaseInfrastructureProviderRelationship, bool) {
if o == nil || o.InfraProvider == nil {
return nil, false
}
return o.InfraProvider, true
} | [
-0.7727574706077576,
0.8739703893661499,
0.32412970066070557,
0.8037251234054565,
0.03979036957025528,
-0.06264964491128922,
1.057375431060791,
0.13047151267528534,
0.01039422582834959,
-0.005636945366859436,
-0.21724379062652588,
-0.5618862509727478,
-0.9487815499305725,
0.219918072223663... |
func (o *KubernetesNodeGroupProfile) HasInfraProvider() bool {
if o != nil && o.InfraProvider != nil {
return true
}
return false
} | [
-0.17751355469226837,
0.8924732208251953,
0.08693268895149231,
0.039007704704999924,
0.502153754234314,
-0.3290349543094635,
0.4400053024291992,
0.1223185583949089,
-0.644848108291626,
0.1599380224943161,
-0.5136523246765137,
-0.7786698937416077,
-1.0622535943984985,
0.8167471289634705,
... |
func (o *KubernetesNodeGroupProfile) SetInfraProvider(v KubernetesBaseInfrastructureProviderRelationship) {
o.InfraProvider = &v
} | [
-0.33588096499443054,
0.8320474028587341,
-0.04983903840184212,
0.1656537652015686,
-0.010749367997050285,
0.25905606150627136,
0.31177785992622375,
-1.3636542558670044,
0.1371736079454422,
0.26003357768058777,
0.29932233691215515,
-0.21508944034576416,
-1.0911939144134521,
0.0845541432499... |
func (o *KubernetesNodeGroupProfile) GetIpPools() []IppoolPoolRelationship {
if o == nil {
var ret []IppoolPoolRelationship
return ret
}
return o.IpPools
} | [
-0.9073566794395447,
0.2756364345550537,
0.008657616563141346,
0.3645398020744324,
0.18976561725139618,
0.7339149713516235,
0.9131399393081665,
-0.9884617328643799,
0.6132436394691467,
-0.45886945724487305,
-0.5770554542541504,
-0.39666318893432617,
-1.0749232769012451,
-0.7617162466049194... |
func (o *KubernetesNodeGroupProfile) GetIpPoolsOk() ([]IppoolPoolRelationship, bool) {
if o == nil || o.IpPools == nil {
return nil, false
}
return o.IpPools, true
} | [
-1.2134360074996948,
0.8766664862632751,
0.4508291184902191,
0.19727358222007751,
-0.26401224732398987,
0.08268126100301743,
0.6598719954490662,
-0.30221232771873474,
0.26483649015426636,
0.6807039380073547,
-1.6377663612365723,
-0.8267158269882202,
-0.014222737401723862,
-0.97083002328872... |
func (o *KubernetesNodeGroupProfile) HasIpPools() bool {
if o != nil && o.IpPools != nil {
return true
}
return false
} | [
-0.4121279716491699,
0.5685272812843323,
0.3650849759578705,
-0.5365826487541199,
0.3720060884952545,
-0.12445054203271866,
0.5042593479156494,
-0.46909797191619873,
-0.2368653267621994,
-0.06896857172250748,
-1.0440707206726074,
-1.3185449838638306,
-0.653896152973175,
-0.1364177912473678... |
func (o *KubernetesNodeGroupProfile) SetIpPools(v []IppoolPoolRelationship) {
o.IpPools = v
} | [
-1.0871456861495972,
0.19381901621818542,
-0.09582743793725967,
-0.19225667417049408,
-0.3034128248691559,
0.8245210647583008,
0.5316144824028015,
-1.6465847492218018,
0.17127323150634766,
0.48299455642700195,
-0.6722172498703003,
-0.1314423531293869,
-0.823033332824707,
-0.726198494434356... |
func (o *KubernetesNodeGroupProfile) GetKubernetesVersion() KubernetesVersionPolicyRelationship {
if o == nil || o.KubernetesVersion == nil {
var ret KubernetesVersionPolicyRelationship
return ret
}
return *o.KubernetesVersion
} | [
0.310661256313324,
0.25660550594329834,
0.22965525090694427,
0.7243234515190125,
-0.3350483477115631,
0.02742050029337406,
-0.25296759605407715,
-1.1427001953125,
1.3572276830673218,
0.18353606760501862,
-0.05557802692055702,
-1.3818062543869019,
-0.6730476021766663,
-0.0365925207734108,
... |
func (o *KubernetesNodeGroupProfile) GetKubernetesVersionOk() (*KubernetesVersionPolicyRelationship, bool) {
if o == nil || o.KubernetesVersion == nil {
return nil, false
}
return o.KubernetesVersion, true
} | [
0.14779232442378998,
-0.057809825986623764,
0.10394071042537689,
0.8552337884902954,
-0.7799087166786194,
0.4001315236091614,
-0.06432020664215088,
-0.2405165731906891,
0.6226495504379272,
1.3154687881469727,
-0.9660840630531311,
-1.5090744495391846,
0.398608535528183,
-0.01248354278504848... |
func (o *KubernetesNodeGroupProfile) HasKubernetesVersion() bool {
if o != nil && o.KubernetesVersion != nil {
return true
}
return false
} | [
0.3262419104576111,
0.17039752006530762,
0.02970416471362114,
0.7204614281654358,
-0.04168029502034187,
-0.7060440182685852,
-0.6130033731460571,
-0.3355473577976227,
0.30896520614624023,
0.01070346124470234,
-0.740911602973938,
-1.6587861776351929,
0.2231387346982956,
0.705822229385376,
... |
func (o *KubernetesNodeGroupProfile) SetKubernetesVersion(v KubernetesVersionPolicyRelationship) {
o.KubernetesVersion = &v
} | [
0.24040809273719788,
-0.22604243457317352,
-0.024594906717538834,
0.19260762631893158,
-0.48616504669189453,
0.4089209735393524,
-0.8463267087936401,
-1.0796430110931396,
0.923473060131073,
0.6514773964881897,
-0.046269677579402924,
-0.6907802820205688,
-0.28771325945854187,
-0.66515946388... |
func (o *KubernetesNodeGroupProfile) GetNodes() []KubernetesNodeProfileRelationship {
if o == nil {
var ret []KubernetesNodeProfileRelationship
return ret
}
return o.Nodes
} | [
0.572874128818512,
1.1444684267044067,
0.06356270611286163,
0.21747314929962158,
1.1881239414215088,
-0.29528751969337463,
0.7019240856170654,
-1.1897125244140625,
0.7853352427482605,
0.16382646560668945,
-0.1079259142279625,
-0.01487908698618412,
-0.9846324324607849,
-0.027568938210606575... |
func (o *KubernetesNodeGroupProfile) GetNodesOk() ([]KubernetesNodeProfileRelationship, bool) {
if o == nil || o.Nodes == nil {
return nil, false
}
return o.Nodes, true
} | [
0.19386857748031616,
1.1483796834945679,
0.3299870789051056,
-0.484708309173584,
0.5211519002914429,
-0.3903138339519501,
0.7518420219421387,
-0.7986091375350952,
-0.15596257150173187,
1.0725743770599365,
-0.7508930563926697,
-0.5666511654853821,
-0.022496934980154037,
0.03807133436203003,... |
func (o *KubernetesNodeGroupProfile) HasNodes() bool {
if o != nil && o.Nodes != nil {
return true
}
return false
} | [
0.15168029069900513,
1.6006982326507568,
-0.01979738101363182,
-0.5688966512680054,
0.9046123027801514,
-0.9357267618179321,
0.11528598517179489,
-0.36770960688591003,
-0.17189957201480865,
-0.23264291882514954,
-0.08243412524461746,
-0.6034042239189148,
-0.12991122901439667,
0.28220358490... |
func (o *KubernetesNodeGroupProfile) SetNodes(v []KubernetesNodeProfileRelationship) {
o.Nodes = v
} | [
0.06113412603735924,
1.0679422616958618,
0.07839754223823547,
-0.1415606141090393,
0.7094743251800537,
-0.12560559809207916,
-0.08332201093435287,
-1.4387555122375488,
0.1460011750459671,
0.8577576279640198,
-0.05485626682639122,
-0.0017421148950234056,
-0.671292781829834,
-0.1314077526330... |
func (c *Client) TimestampCreate(ctx context.Context, hash string, options *CreateOptions) (*TimestampResponse, error) {
type createRequest struct {
Comment string `json:"comment,omitempty"`
Hash string `json:"hash"`
Notifications []Notification `json:"notifications,omitempty"`
... | [
-0.3204946219921112,
0.6018821597099304,
0.8552473783493042,
-0.08861792832612991,
0.8367487788200378,
-0.4049385190010071,
-0.2721464931964874,
-0.5606244802474976,
-0.018052956089377403,
1.1356515884399414,
-0.8515254855155945,
-0.7689695954322815,
-0.49373897910118103,
-0.10196125507354... |
func makeTestWorker(probeType ProbeType, probe *api.Probe, result probe.Result, expectedError error) *worker {
w := NewWorker("testUnit", "10.20.30.40", probeType, probe)
w.prober.exec = fakeExecProber{result, expectedError}
w.startedAt = time.Now()
return w
} | [
-0.6693340539932251,
0.17333565652370453,
0.5257940888404846,
-0.10726618021726608,
0.12491323053836823,
0.7884982824325562,
0.3382435142993927,
-0.5960239171981812,
0.2563337981700897,
-0.04601430520415306,
-0.5763635039329529,
-0.4427218735218048,
-1.2118686437606812,
-0.3301238715648651... |
func (flags *Etcd) setupDefaults(log zerolog.Logger) error {
return nil
} | [
-0.035139311105012894,
0.8240424394607544,
0.24799586832523346,
-0.33091092109680176,
1.1893892288208008,
0.2759706974029541,
-0.007989530451595783,
0.3171218931674957,
-0.2913055717945099,
-0.3378885090351105,
0.2751714885234833,
-0.7440338730812073,
-0.4289504587650299,
0.862732648849487... |
func (flags Etcd) CreateClientEndpoints(sctx *ServiceContext) string {
return flags.createEndpoints(sctx, defaultEtcdClientPort, nil)
} | [
0.4183976948261261,
-0.13570734858512878,
0.18479788303375244,
-0.833981454372406,
0.666374921798706,
0.9588221311569214,
-0.7336028218269348,
-0.523078441619873,
-0.16992950439453125,
0.1212802529335022,
-0.4983033239841461,
-0.15100333094596863,
-0.5964856743812561,
-0.04891841113567352,... |
func (flags Etcd) CreateInitialCluster(sctx *ServiceContext) string {
return flags.createEndpoints(sctx, defaultEtcdPeerPort, func(node Node) string {
return node.Name + "="
})
} | [
-0.10319264978170395,
-0.33364614844322205,
0.3502300977706909,
-0.9412010908126831,
0.9275158047676086,
1.0224655866622925,
-0.7333763837814331,
-0.00996299460530281,
0.17343783378601074,
0.113850899040699,
0.6187923550605774,
0.668583333492279,
0.01515963114798069,
0.4345453679561615,
... |
func (flags Etcd) createEndpoints(sctx *ServiceContext, port int, prefixBuilder func(Node) string) string {
var endpoints []string
for _, n := range sctx.nodes {
if n.IsControlPlane {
prefix := ""
if prefixBuilder != nil {
prefix = prefixBuilder(*n)
}
endpoints = append(endpoints, fmt.Sprintf("%shtt... | [
0.21228519082069397,
-0.0647941380739212,
0.41001027822494507,
-0.614780843257904,
0.8138749003410339,
0.37680795788764954,
-0.9421173334121704,
0.5388879776000977,
0.0998431071639061,
0.7276332974433899,
0.7682955265045166,
-0.39600670337677,
-0.4696887731552124,
0.27229851484298706,
-0... |
func NewGithubProcessor(cfg Config, deps Dependencies) *Processor {
return &Processor{Config: cfg, Dependencies: deps}
} | [
-0.00042171706445515156,
-0.48591405153274536,
0.12716510891914368,
-0.7319687604904175,
-0.7046220898628235,
-0.13809381425380707,
-0.4536788761615753,
0.7479218244552612,
0.8547267317771912,
0.9637026190757751,
-0.9219101667404175,
-0.12313920259475708,
-0.3925362527370453,
0.94964098930... |
func (s *Processor) Process(ctx context.Context, handle string, commentURL string, pullURL string) error {
log := s.Logger.With().Str("handle", handle).Logger()
comment, err := s.extractComment(ctx, commentURL)
if err != nil {
return err
}
if !strings.HasPrefix(comment.Body, commentPrefix) {
log.Debug().Interf... | [
0.5829663276672363,
-0.5220121145248413,
0.9418575167655945,
0.23560379445552826,
0.5764358043670654,
-0.11781611293554306,
0.2845814824104309,
0.02719561755657196,
0.3905242383480072,
-0.588925838470459,
0.46618929505348206,
0.5244530439376831,
0.15479399263858795,
0.5740640759468079,
0... |
func (s *Processor) extractPullRequestInfo(ctx context.Context, pullUrl string) (repo, error) {
r := repo{}
if err := s.get(ctx, pullUrl, &r); err != nil {
return repo{}, err
}
return r, nil
} | [
-1.071657419204712,
-0.20263375341892242,
0.1841391921043396,
0.07023049145936966,
-0.6276934146881104,
-0.6472687721252441,
-0.2047799825668335,
0.11609072238206863,
0.7255889177322388,
-0.022263672202825546,
-0.151046022772789,
-0.7288469076156616,
-0.09970702975988388,
-0.72150772809982... |
func (s *Processor) extractComment(ctx context.Context, commentUrl string) (comment, error) {
s.Logger.Debug().Str("comment-url", commentUrl).Msg("extacting comment from url")
c := comment{}
if err := s.get(ctx, commentUrl, &c); err != nil {
return c, err
}
return c, nil
} | [
-0.5681630969047546,
-0.7291674017906189,
0.5011783838272095,
-0.08450964093208313,
0.014794128946959972,
-0.8420988321304321,
0.8521055579185486,
0.1908707171678543,
0.6768175363540649,
0.540444552898407,
-0.5067377090454102,
-0.22149482369422913,
-0.9908352494239807,
-0.3901427984237671,... |
func InitLogs(verboseFlag bool, logFile string) {
logrus.SetFormatter(&logrus.TextFormatter{
ForceColors: true,
FullTimestamp: true,
TimestampFormat: "2006/01/02 15:04:05",
})
logrus.SetReportCaller(verboseFlag)
logrus.SetLevel(logLevel)
logrus.SetOutput(os.Stdout)
if logFile != "" {
logFileHandle... | [
0.5686680674552917,
-0.020256219431757927,
0.5186122059822083,
0.1372593641281128,
0.07475973665714264,
0.0531591959297657,
-0.48918262124061584,
0.38955122232437134,
-0.8356435298919678,
-0.3223533630371094,
0.05574638769030571,
0.6176325678825378,
-0.5509523749351501,
0.9070647954940796,... |
func SetDebugLevel() {
logLevel = logrus.DebugLevel
} | [
0.1832312047481537,
-0.12830114364624023,
0.18491710722446442,
0.2520676851272583,
0.08424422889947891,
0.47780776023864746,
-0.09588906913995743,
-0.21866557002067566,
-0.45449718832969666,
-0.14896531403064728,
-1.1792099475860596,
1.0877711772918701,
0.010955789126455784,
0.863834917545... |
func Log(req http.Request, reqID string, message string) {
logLine := fmt.Sprintf("%s %s %s - %s", req.Proto, req.Method, req.URL.String(), message)
logrus.WithFields(logrus.Fields{"ReqID": reqID}).Info(logLine)
} | [
-0.34022390842437744,
-0.1452387124300003,
0.432065486907959,
-0.23307523131370544,
0.3741668164730072,
0.4550718367099762,
-0.5508982539176941,
0.3355402946472168,
-0.6998922824859619,
-1.374664306640625,
0.022191768512129784,
1.0718677043914795,
0.06126606464385986,
0.5269393920898438,
... |
func LogRequest(req http.Request, statusCode int, lenContent int, reqID string, cached bool, cachedLabel string) {
// NOTE: THIS IS FOR EVERY DOMAIN, NO DOMAIN OVERRIDE.
// WHEN SHARING SAME PORT NO CUSTOM OVERRIDES ON CRITICAL SETTINGS.
logLine := config.Config.Log.Format
protocol := strings.Trim(req.Proto,... | [
-0.2967873215675354,
-0.49042218923568726,
0.6765628457069397,
-0.5511972904205322,
0.25702106952667236,
0.2256864607334137,
-0.7769982218742371,
0.3864450752735138,
-0.225422203540802,
-0.6888136267662048,
-0.03426138311624527,
0.8154997825622559,
0.33783093094825745,
0.5951772332191467,
... |
func LogSetup(server config.Server) {
forwardHost := utils.IfEmpty(server.Upstream.Host, "*")
forwardProto := server.Upstream.Scheme
lbEndpointList := fmt.Sprintf("%v", server.Upstream.Endpoints)
if len(server.Upstream.Endpoints) == 0 {
lbEndpointList = "VOID"
}
logrus.Infof("Server will run on :%s and :%s an... | [
-1.0014159679412842,
-0.3206431567668915,
0.7339534759521484,
-1.1486598253250122,
-0.3451978266239166,
0.424285888671875,
0.3770236074924469,
0.7136402130126953,
-0.12829801440238953,
0.21702232956886292,
-0.46925193071365356,
1.1314201354980469,
0.691375195980072,
0.5122426748275757,
0... |
func New() *logrus.Logger {
return logrus.New()
} | [
0.029053229838609695,
-1.0432465076446533,
-0.011361117474734783,
-0.7856714129447937,
-0.953327476978302,
-0.7057502865791321,
-0.7016995549201965,
0.03062605857849121,
-0.5594003796577454,
-1.435062050819397,
-0.2437402755022049,
1.0488386154174805,
0.3757339417934418,
0.7137123942375183... |
func NewGlobal() *logrus.Logger {
log = New()
return log
} | [
0.5111898183822632,
-0.34942692518234253,
0.26769864559173584,
-0.045644477009773254,
-0.9918695688247681,
0.5967848896980286,
-0.04684184864163399,
0.09377934038639069,
-0.8890906572341919,
-0.205852672457695,
-0.43933555483818054,
1.5951485633850098,
-1.020206093788147,
0.810010373592376... |
func GetGlobal() *logrus.Logger {
if log == nil {
return NewGlobal()
}
return log
} | [
0.660611093044281,
0.35070720314979553,
0.6553381681442261,
0.6350030899047852,
-0.5452985763549805,
0.39565688371658325,
0.25128886103630066,
0.08689799904823303,
-0.15836334228515625,
-0.36662426590919495,
0.0457584448158741,
1.839467167854309,
-1.0148884057998657,
0.2837812900543213,
... |
func HookSentry(log *logrus.Logger, sentryDsn string) {
if sentryDsn == "" {
return
}
hook, err := logrus_sentry.NewSentryHook(sentryDsn, []logrus.Level{ // TODO: Make them customizable?
logrus.PanicLevel,
logrus.FatalLevel,
logrus.ErrorLevel,
logrus.WarnLevel,
})
if err != nil {
panic(err)
}
hook... | [
0.6723906993865967,
0.3733179569244385,
0.557221531867981,
-0.10946493595838547,
0.7980562448501587,
-0.49014684557914734,
-0.5361029505729675,
0.19925779104232788,
0.4755479693412781,
0.5126810669898987,
-0.1739293783903122,
0.8866496086120605,
0.245356023311615,
0.08812743425369263,
0.... |
func HookSyslog(log *logrus.Logger, syslogProtocol string, syslogEndpoint string) {
if syslogEndpoint == "" {
return
}
hook, err := lSyslog.NewSyslogHook(syslogProtocol, syslogEndpoint, syslog.LOG_WARNING, "")
if err != nil {
panic(err)
}
log.Hooks.Add(hook)
} | [
1.0055763721466064,
-0.033695269376039505,
0.33138391375541687,
0.37353333830833435,
-0.2556866407394409,
0.04072938859462738,
-0.14785633981227875,
0.897827684879303,
0.022124677896499634,
0.0913277268409729,
-0.9136545658111572,
0.6192933320999146,
0.11487049609422684,
0.0005225867498666... |
func (c *consumerImpl) Stop() {
c.logger.Info("Stopping consumer")
c.cancelFunc()
c.consumerHandler.stop()
} | [
0.07567262649536133,
-0.9509192109107971,
0.12942954897880554,
0.19135057926177979,
0.5312167406082153,
0.12305237352848053,
0.9346604943275452,
0.9124096632003784,
-1.1670465469360352,
0.864842414855957,
-0.273914098739624,
0.27452531456947327,
0.061050962656736374,
-0.3073786795139313,
... |
func (c *consumerImpl) Messages() <-chan messaging.Message {
return c.msgChan
} | [
-0.41260647773742676,
-0.37645313143730164,
0.3589353561401367,
-0.7622495889663696,
0.5919250845909119,
0.13236530125141144,
0.3064813017845154,
-1.1127760410308838,
0.04162672907114029,
-0.37435030937194824,
0.5498141050338745,
0.8141289353370667,
-0.8485409021377563,
1.014746069908142,
... |
func (h *consumerHandlerImpl) Setup(session sarama.ConsumerGroupSession) error {
h.Lock()
defer h.Unlock()
h.currentSession = session
h.manager = newPartitionAckManager(h.metricsClient, h.logger)
h.logger.Info("start consumer group session", tag.Name(string(session.GenerationID())))
h.metricsClient.IncCounter(me... | [
0.5118548274040222,
-0.579849362373352,
0.4825635850429535,
-0.19736988842487335,
-0.21759983897209167,
-0.5462942719459534,
1.2792267799377441,
-0.6925511360168457,
-0.16528208553791046,
0.6497908234596252,
0.091639444231987,
0.056744009256362915,
-0.31901153922080994,
0.24066883325576782... |
func (h *consumerHandlerImpl) Cleanup(sarama.ConsumerGroupSession) error {
return nil
} | [
0.6617559790611267,
-0.9054004549980164,
0.1666879951953888,
0.29924625158309937,
-0.5303447842597961,
-0.4945237636566162,
1.6369377374649048,
-0.33017104864120483,
0.7311281561851501,
-0.6858092546463013,
0.033684853464365005,
-0.25076690316200256,
-0.38520628213882446,
0.556312739849090... |
func (h *consumerHandlerImpl) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error {
h.RLock()
defer h.RUnlock()
// NOTE: Do not move the code below to a goroutine.
// The `ConsumeClaim` itself is called within a goroutine:
for message := range claim.Messages() {
h.manager.Ad... | [
0.5806857943534851,
-0.028631778433918953,
0.41835513710975647,
-0.27080056071281433,
0.09332572668790817,
-0.46581971645355225,
-0.011202906258404255,
0.07739675045013428,
-0.22710061073303223,
0.1445804387331009,
-0.07776083052158356,
-0.2796178460121155,
-0.2006106823682785,
0.718969166... |
func NewStanLogger() *StanLogger {
return &StanLogger{}
} | [
-0.4309563636779785,
-0.8983795046806335,
0.0487542562186718,
0.14947175979614258,
-1.7648696899414062,
-0.6833604574203491,
-0.7357179522514343,
-0.1030544713139534,
-0.671044647693634,
-0.973483145236969,
-0.6579604744911194,
0.14429286122322083,
0.12893109023571014,
1.1859421730041504,
... |
func (s *StanLogger) SetLogger(log Logger, logtime, debug, trace bool, logfile string) {
s.mu.Lock()
s.log = log
s.ltime = logtime
s.debug = debug
s.trace = trace
s.lfile = logfile
s.mu.Unlock()
} | [
-0.27120405435562134,
0.19247640669345856,
0.2990778982639313,
0.265402227640152,
-0.12354525178670883,
0.3302363455295563,
-0.0061745247803628445,
0.3962361514568329,
-0.38962239027023315,
-0.48874446749687195,
-0.7282402515411377,
-0.4023478329181671,
-0.2037023901939392,
1.1031025648117... |
func (s *StanLogger) SetFileSizeLimit(limit int64) {
s.mu.Lock()
s.fszl = limit
s.mu.Unlock()
} | [
0.09443698078393936,
0.06261921674013138,
0.4703311026096344,
0.4635160267353058,
-0.4557685852050781,
-0.2853703498840332,
0.5526130795478821,
0.2918003499507904,
-0.04265652224421501,
-0.5257569551467896,
-0.44736045598983765,
0.09251757711172104,
-0.13326182961463928,
0.2027835845947265... |
func (s *StanLogger) SetLoggerWithOpts(log Logger, nOpts *natsd.Options, debug, trace bool) {
s.mu.Lock()
s.log = log
s.debug = debug
s.trace = trace
s.updateNATSOptions(nOpts)
s.mu.Unlock()
} | [
-0.3891826868057251,
-0.07730469852685928,
0.3582538962364197,
-0.3157072067260742,
-0.4252558648586273,
-0.37331268191337585,
-1.166525959968567,
-0.7440124154090881,
0.25285372138023376,
-0.16195057332515717,
-0.12557941675186157,
0.11363092809915543,
0.3905152380466461,
1.26788747310638... |
func (s *StanLogger) UpdateNATSOptions(nOpts *natsd.Options) {
s.mu.Lock()
s.updateNATSOptions(nOpts)
s.mu.Unlock()
} | [
-1.4514573812484741,
-0.5118213891983032,
0.14345577359199524,
-0.18978846073150635,
-0.48908472061157227,
-0.01905898191034794,
-0.6022090911865234,
-0.9354485273361206,
-0.24954384565353394,
0.5448808670043945,
-0.10352599620819092,
0.6309949159622192,
-0.0325498953461647,
0.708929419517... |
func (s *StanLogger) SetNATSServer(ns *natsd.Server) {
s.mu.Lock()
s.ns = ns
ns.SetLogger(s.log, s.ndbg, s.ntrc)
s.mu.Unlock()
} | [
-1.3152499198913574,
-0.5637794137001038,
0.24187104403972626,
-1.1213322877883911,
-0.7234854102134705,
0.14504636824131012,
-0.6900596022605896,
-0.5753127336502075,
-0.28304779529571533,
-0.27732059359550476,
-1.0441672801971436,
0.9592456221580505,
-0.013540429063141346,
1.226374864578... |
func (s *StanLogger) GetLogger() Logger {
s.mu.RLock()
l := s.log
s.mu.RUnlock()
return l
} | [
-0.48237180709838867,
0.15741822123527527,
0.4190635681152344,
0.8881998658180237,
-0.24662365019321442,
-0.2986735999584198,
0.36664748191833496,
-0.14916758239269257,
0.3334135115146637,
-1.219408631324768,
0.4049108326435089,
0.28146177530288696,
-0.7134423851966858,
0.8387734889984131,... |
func (s *StanLogger) ReopenLogFile() {
s.mu.Lock()
if s.lfile == "" {
s.mu.Unlock()
s.Noticef("File log re-open ignored, not a file logger")
return
}
if l, ok := s.log.(io.Closer); ok {
if err := l.Close(); err != nil {
s.mu.Unlock()
s.Errorf("Unable to close logger: %v", err)
return
}
}
// Pas... | [
-0.1881522834300995,
-0.15067827701568604,
0.5158694982528687,
-0.016937218606472015,
-0.8940389752388,
0.06486393511295319,
0.5305435657501221,
0.23828156292438507,
-0.8494563698768616,
-0.8790059089660645,
-0.14105936884880066,
0.10977882146835327,
0.10399140417575836,
0.3606721460819244... |
func (s *StanLogger) Close() error {
s.mu.Lock()
defer s.mu.Unlock()
if l, ok := s.log.(io.Closer); ok {
return l.Close()
}
return nil
} | [
0.1016668900847435,
-0.09514624625444412,
0.5965573787689209,
0.7893510460853577,
-1.2449930906295776,
0.21751943230628967,
0.2526654601097107,
-1.2480926513671875,
-0.4839380979537964,
-0.9519447684288025,
0.5568369030952454,
-0.2344692349433899,
-0.5601702928543091,
0.9842559099197388,
... |
func (s *StanLogger) Noticef(format string, v ...interface{}) {
s.executeLogCall(func(log Logger, format string, v ...interface{}) {
log.Noticef(format, v...)
}, format, v...)
} | [
0.49856144189834595,
-0.038088612258434296,
0.6854554414749146,
0.4054943323135376,
-0.02038133144378662,
-0.1607089638710022,
-0.024260180070996284,
-0.28212663531303406,
-0.770942747592926,
-0.42652904987335205,
-0.024424796923995018,
0.6119863986968994,
0.9107843041419983,
1.22795331478... |
func (s *StanLogger) Fatalf(format string, v ...interface{}) {
s.executeLogCall(func(log Logger, format string, v ...interface{}) {
log.Fatalf(format, v...)
}, format, v...)
} | [
0.5534874200820923,
0.015280527994036674,
0.6765961647033691,
0.7688357830047607,
0.2307439148426056,
0.32783693075180054,
-0.42259714007377625,
-0.19310709834098816,
0.12030205875635147,
-0.2999473810195923,
0.49415323138237,
0.5434003472328186,
0.7447813749313354,
0.8735225796699524,
0... |
func (s *StanLogger) Debugf(format string, v ...interface{}) {
s.executeLogCall(func(log Logger, format string, v ...interface{}) {
// This is running under the protection of StanLogging's lock
if s.debug {
log.Debugf(format, v...)
}
}, format, v...)
} | [
-0.15733759105205536,
0.5886883735656738,
0.6376402378082275,
0.6130337715148926,
-0.021251196041703224,
-0.6718332767486572,
-0.584657609462738,
-0.5995782017707825,
-0.39894038438796997,
-0.5478574633598328,
0.0011357228504493833,
0.3759433627128601,
0.35392194986343384,
1.09949624538421... |
func (s *StanLogger) Tracef(format string, v ...interface{}) {
s.executeLogCall(func(logger Logger, format string, v ...interface{}) {
if s.trace {
logger.Tracef(format, v...)
}
}, format, v...)
} | [
0.7707313895225525,
0.5311519503593445,
0.611240029335022,
0.6029379963874817,
0.237979918718338,
-0.29738596081733704,
0.3296637237071991,
-0.37952396273612976,
0.2403615564107895,
-0.36379191279411316,
-0.09960701316595078,
0.27944618463516235,
0.3246229887008667,
1.1122808456420898,
-... |
func (s *StanLogger) Warnf(format string, v ...interface{}) {
s.executeLogCall(func(logger Logger, format string, v ...interface{}) {
logger.Warnf(format, v...)
}, format, v...)
} | [
0.08689957112073898,
0.24432456493377686,
0.6644608974456787,
0.3860057294368744,
0.18707621097564697,
-0.04661184549331665,
-0.14056020975112915,
-0.2605796158313751,
-0.6973875761032104,
-0.20850495994091034,
0.39165937900543213,
1.110314130783081,
0.8952494859695435,
0.6751673221588135,... |
func (t *TransactionContext) CheckOrgValid(org string) bool {
id, err:=t.GetClientIdentity().GetMSPID()
fmt.Println("MSPID: ",id)
if err!= nil {
return false
}
return id==org || id==readonlyOrgMSP
} | [
0.2964039146900177,
-0.8380950093269348,
0.764068067073822,
0.2252226173877716,
-0.24091261625289917,
1.1803089380264282,
-0.53082275390625,
0.5633044838905334,
0.018438318744301796,
1.1522188186645508,
0.0779726505279541,
1.1761382818222046,
-0.8316676020622253,
0.2188129872083664,
-0.7... |
func (c *Config) CreateFile() (io.ReadWriteCloser, error) {
err := c.createDorgConfigFile()
if err != nil {
return nil, err
}
configFile, err := os.Create(c.Filepath)
if err != nil {
msg := fmt.Sprintf("Cannot create config file [%s]", c.Filepath)
return nil, errors.Wrap(err, msg)
}
return configFile, nil... | [
-0.024167964234948158,
-0.015317763201892376,
0.4459860324859619,
0.08862920850515366,
1.005259394645691,
0.5897641181945801,
0.6581723093986511,
-0.00035767449298873544,
-1.4753854274749756,
0.6493061780929565,
0.7406030893325806,
-1.18462336063385,
-0.7281362414360046,
0.6105228662490845... |
func (c *Config) OpenFile() (io.ReadWriteCloser, error) {
configFile, err := os.Open(c.Filepath)
if err != nil {
msg := fmt.Sprintf("Cannot open config file [%s]", c.Filepath)
return nil, errors.Wrap(err, msg)
}
return configFile, nil
} | [
-0.6603710651397705,
0.12046291679143906,
0.22822962701320648,
-0.23385250568389893,
0.17639583349227905,
-0.1068146824836731,
0.45438072085380554,
0.5378454327583313,
-1.1871637105941772,
0.2588706314563751,
0.680931031703949,
-0.6658379435539246,
-0.863637387752533,
0.4450991153717041,
... |
func (c *Config) SaveToFile(configFile io.WriteCloser) error {
err := c.createDorgConfigFile()
if err != nil {
return err
}
configJson, jsonErr := json.MarshalIndent(*c, "", "\t")
if jsonErr != nil {
msg := fmt.Sprintf("Cannot marshal [%v] into JSON", *c)
return errors.Wrap(jsonErr, msg)
}
_, wErr := con... | [
-0.8694294095039368,
-0.30820369720458984,
0.7070141434669495,
-0.4443337917327881,
0.7074635624885559,
0.31055834889411926,
0.6928457617759705,
-0.17297448217868805,
-1.5967004299163818,
1.362891674041748,
-0.9761162400245667,
-0.6718666553497314,
-0.15063513815402985,
0.3312188684940338,... |
func TryParseConfig(configFile io.ReadCloser) (Config, error) {
configBytes, err := readBytesFromFile(configFile)
if err != nil {
return Config{}, err
}
var config Config
jsonErr := json.Unmarshal(configBytes, &config)
if jsonErr != nil {
msg := fmt.Sprintf("Cannot unmarshal this file into JSON: \n [%s]",
... | [
-0.21834246814250946,
-0.7203402519226074,
0.7830331325531006,
-0.5309810638427734,
-0.7829729914665222,
0.10396404564380646,
-0.0027618161402642727,
-0.28174808621406555,
-1.038945198059082,
0.28807321190834045,
-0.07827706634998322,
-0.5503941774368286,
-0.39156749844551086,
0.8889155387... |
func (c Config) Equals(another Config) bool {
pathEquals := c.Filepath == another.Filepath
dpEquals := c.DownloadsPath == another.DownloadsPath
tpEquals := c.TargetBasePath == another.TargetBasePath
return pathEquals && dpEquals && tpEquals
} | [
-0.9822990894317627,
-1.1735897064208984,
0.4597192704677582,
-0.15666499733924866,
0.8701722025871277,
-0.11597894877195358,
-0.5232833623886108,
-0.011758895590901375,
-0.25180017948150635,
0.14141874015331268,
-0.9077194333076477,
0.10164933651685715,
0.17336979508399963,
0.503894984722... |
func (c *Config) createDorgConfigFile() error {
configPath := filepath.Join(homeDirPath(), ConfigFileName)
file, configFileErr := os.Open(configPath)
defer file.Close()
if os.IsNotExist(configFileErr) {
_, newFileErr := os.Create(configPath)
if newFileErr != nil {
msg := fmt.Sprintf("Cannot create config fi... | [
0.08603963255882263,
-0.19958136975765228,
0.5800730586051941,
-0.03147105872631073,
1.04127836227417,
0.9217894673347473,
1.0341581106185913,
-0.1383485049009323,
-1.714875340461731,
0.18083828687667847,
-0.7599021792411804,
-0.49690374732017517,
0.02524217590689659,
0.7799115180969238,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.