text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (o *Workloadv1Location) HasName() bool { if o != nil && o.Name != nil { return true } return false }
[ -0.07701940089464188, -0.15805378556251526, 0.27493879199028015, 0.4689248204231262, -0.32199496030807495, -0.375861257314682, 0.25207626819610596, 0.016015971079468727, 0.1170533299446106, 0.8641018271446228, -0.632438600063324, -1.3877346515655518, -0.28997012972831726, 0.106897883117198...
func (o *Workloadv1Location) SetName(v string) { o.Name = &v }
[ -0.1599677950143814, -0.25014781951904297, -0.17113462090492249, 0.1468992680311203, -1.4576345682144165, -0.3870210647583008, -0.026735063642263412, -0.6679478883743286, -0.12642702460289001, 0.9517106413841248, -0.3246929943561554, 0.3968195617198944, -0.22720351815223694, -0.52598071098...
func (o *Workloadv1Location) GetCity() string { if o == nil || o.City == nil { var ret string return ret } return *o.City }
[ 0.4604121148586273, 0.2972142696380615, 0.12913775444030762, 0.7833937406539917, -0.10967706143856049, -0.026264242827892303, 1.0833379030227661, -0.1138409823179245, 0.8832177519798279, -0.6347030997276306, -0.42608851194381714, -1.6852786540985107, -0.31913304328918457, 0.423730134963989...
func (o *Workloadv1Location) GetCityOk() (*string, bool) { if o == nil || o.City == nil { return nil, false } return o.City, true }
[ 0.22388963401317596, 0.01307560782879591, 0.22041447460651398, 0.7640649080276489, -0.554014265537262, 0.26105809211730957, 0.7769567966461182, 0.6132042407989502, -0.1448603868484497, 0.7335733771324158, -1.3739460706710815, -1.3075703382492065, 0.1813749074935913, 0.4111955463886261, 0...
func (o *Workloadv1Location) HasCity() bool { if o != nil && o.City != nil { return true } return false }
[ 0.5569273829460144, 0.06733547151088715, 0.09066939353942871, 0.42746827006340027, 0.06694237887859344, 0.0009047548519447446, 0.38631361722946167, 0.9270998239517212, 0.5091148614883423, -0.8196455240249634, -0.8519782423973083, -1.5693795680999756, 0.1493702530860901, 0.44087597727775574...
func (o *Workloadv1Location) SetCity(v string) { o.City = &v }
[ 0.3645724058151245, -0.036732327193021774, -0.42646196484565735, 0.37263932824134827, -1.2573336362838745, 0.14732231199741364, -0.02451690472662449, -0.3785669505596161, 0.0844837948679924, 0.21585901081562042, -0.5329083800315857, 0.26899075508117676, -0.15802635252475739, -0.49090757966...
func (o *Workloadv1Location) GetCityCode() string { if o == nil || o.CityCode == nil { var ret string return ret } return *o.CityCode }
[ 0.7548973560333252, -0.006812575738877058, 0.11791393160820007, 0.6244177222251892, -0.3558972179889679, -0.601924479007721, 0.3142649531364441, 0.4228134751319885, 0.8479480147361755, -0.15373893082141876, -0.14023622870445251, -1.5172053575515747, -0.5909810662269592, 0.6248162984848022,...
func (o *Workloadv1Location) GetCityCodeOk() (*string, bool) { if o == nil || o.CityCode == nil { return nil, false } return o.CityCode, true }
[ 0.22353391349315643, 0.18800494074821472, 0.07556130737066269, -0.031085824593901634, -0.9442670345306396, -0.21725137531757355, 0.3352886736392975, 1.1261799335479736, -0.27189698815345764, 1.47063410282135, -0.8449203968048096, -1.1310763359069824, -0.1602933406829834, 0.9324740171432495...
func (o *Workloadv1Location) HasCityCode() bool { if o != nil && o.CityCode != nil { return true } return false }
[ 0.7805436849594116, -0.04530489817261696, 0.1594979614019394, 0.1370142698287964, -0.24643144011497498, -0.9927531480789185, -0.21764883399009705, 1.1214656829833984, 0.17567108571529388, 0.08937530964612961, -0.48338061571121216, -1.1579539775848389, -0.40463295578956604, 1.03866660594940...
func (o *Workloadv1Location) SetCityCode(v string) { o.CityCode = &v }
[ 1.0536830425262451, -0.19639141857624054, -0.23265314102172852, 0.11622544378042221, -1.5605782270431519, -0.8635481595993042, -0.40064820647239685, -0.14620453119277954, -0.09748230129480362, 0.3743423819541931, 0.04461459070444107, 0.7025759816169739, -0.4166169762611389, -0.221967026591...
func (o *Workloadv1Location) GetSubdivision() string { if o == nil || o.Subdivision == nil { var ret string return ret } return *o.Subdivision }
[ 0.5593735575675964, -0.2264430969953537, 0.4897063374519348, 0.6339436173439026, -0.5624023079872131, 0.13763873279094696, 1.1024397611618042, 0.11231835931539536, 0.7094357013702393, -1.8579095602035522, -0.47138747572898865, -0.40481483936309814, -0.5779861211776733, 0.3037054240703583, ...
func (o *Workloadv1Location) GetSubdivisionOk() (*string, bool) { if o == nil || o.Subdivision == nil { return nil, false } return o.Subdivision, true }
[ 0.2652539312839508, -0.13208362460136414, 0.6330141425132751, 0.9499362707138062, -0.5119749307632446, 0.304573655128479, 1.2997788190841675, 1.3490302562713623, -0.3982618451118469, -0.5087803602218628, -0.9425724148750305, -0.2814231216907501, 0.42129385471343994, 0.11812242865562439, ...
func (o *Workloadv1Location) HasSubdivision() bool { if o != nil && o.Subdivision != nil { return true } return false }
[ 0.8264323472976685, 0.059920333325862885, 0.33457526564598083, -0.026327570900321007, 0.30282628536224365, -0.3895513415336609, 0.11440936475992203, 0.9922854900360107, -0.3435330390930176, -1.6624900102615356, -0.9454862475395203, -0.5719678401947021, 0.015291656367480755, 0.6123598217964...
func (o *Workloadv1Location) SetSubdivision(v string) { o.Subdivision = &v }
[ 0.8162753582000732, -0.5850858688354492, -0.016424739733338356, -0.2590796947479248, -1.0513174533843994, -0.22541023790836334, 0.13005051016807556, -0.23812131583690643, -0.41270554065704346, -1.0770893096923828, -0.45099180936813354, 1.1738351583480835, -0.5355634093284607, -0.7198914289...
func (o *Workloadv1Location) GetSubdivisionCode() string { if o == nil || o.SubdivisionCode == nil { var ret string return ret } return *o.SubdivisionCode }
[ 0.6609805226325989, -0.13474130630493164, 0.3942769765853882, 0.6302808523178101, -0.5930420756340027, -0.20201805233955383, 1.0023186206817627, 0.8555430173873901, 0.4270349144935608, -0.9855814576148987, -0.06496649980545044, -0.7113092541694641, -0.6718944311141968, 0.34063205122947693,...
func (o *Workloadv1Location) GetSubdivisionCodeOk() (*string, bool) { if o == nil || o.SubdivisionCode == nil { return nil, false } return o.SubdivisionCode, true }
[ 0.5142324566841125, 0.4468916058540344, 0.4066653847694397, 0.17692433297634125, -0.6453964114189148, 0.047392744570970535, 0.9691975116729736, 1.435113549232483, -0.1815204918384552, 0.4080469310283661, -1.0760418176651, -0.16132384538650513, 0.001747636473737657, 0.34401825070381165, 0...
func (o *Workloadv1Location) HasSubdivisionCode() bool { if o != nil && o.SubdivisionCode != nil { return true } return false }
[ 0.703925371170044, 0.4506514370441437, 0.4136110544204712, -0.00579233281314373, 0.05196402594447136, -0.7852559685707092, 0.40963199734687805, 1.0726069211959839, -0.5601872801780701, -0.7797808647155762, -0.7580563426017761, -0.44333615899086, 0.008990808390080929, 0.6777714490890503, ...
func (o *Workloadv1Location) SetSubdivisionCode(v string) { o.SubdivisionCode = &v }
[ 1.0859217643737793, -0.2112879902124405, -0.09615887701511383, -0.21730279922485352, -1.2064653635025024, -0.515120267868042, 0.38855549693107605, 0.490313321352005, -0.30094799399375916, -0.4834524989128113, -0.01087113842368126, 1.126045823097229, -0.4219941794872284, -0.6172720789909363...
func (o *Workloadv1Location) GetCountry() string { if o == nil || o.Country == nil { var ret string return ret } return *o.Country }
[ 0.8280602693557739, 0.09973914921283722, -0.044988248497247696, 0.8549468517303467, 0.20751254260540009, 0.2680945098400116, 1.2258110046386719, -0.48808375000953674, 0.870440661907196, -0.4069121479988098, 0.13329623639583588, -1.2440056800842285, -0.7029858231544495, 0.5077670812606812, ...
func (o *Workloadv1Location) GetCountryOk() (*string, bool) { if o == nil || o.Country == nil { return nil, false } return o.Country, true }
[ 0.33324018120765686, -0.23504972457885742, 0.22201639413833618, 0.5809085369110107, -0.3111339509487152, 0.6255793571472168, 1.2558727264404297, 0.6804390549659729, 0.0565447136759758, 0.2635912597179413, -0.9697294235229492, -0.787541925907135, 0.05722547322511673, 0.7029077410697937, 0...
func (o *Workloadv1Location) HasCountry() bool { if o != nil && o.Country != nil { return true } return false }
[ 0.8619356155395508, -0.03009033203125, 0.00574305048212409, 0.5589152574539185, 0.6208566427230835, 0.21953073143959045, 0.649246871471405, 0.398514062166214, 0.5229299664497375, -0.7791200876235962, -0.2762265205383301, -0.6499990224838257, -0.2515559196472168, 0.4163723886013031, 0.436...
func (o *Workloadv1Location) SetCountry(v string) { o.Country = &v }
[ 0.7157766819000244, -0.36153924465179443, -0.42639967799186707, 0.4370983839035034, -0.7215080857276917, 0.3281709849834442, 0.30781498551368713, -0.5252445340156555, -0.07311562448740005, 0.1342945098876953, -0.028554806485772133, 1.1323829889297485, -0.3844868242740631, -0.57330721616745...
func (o *Workloadv1Location) GetCountryCode() string { if o == nil || o.CountryCode == nil { var ret string return ret } return *o.CountryCode }
[ 1.0731871128082275, -0.24054110050201416, -0.003515311051160097, 0.7888421416282654, -0.1886615753173828, -0.12805137038230896, 0.978779673576355, 0.1038779690861702, 0.8036990165710449, -0.1055968850851059, 0.23887459933757782, -1.1969650983810425, -0.6368352770805359, 0.8101345896720886,...
func (o *Workloadv1Location) GetCountryCodeOk() (*string, bool) { if o == nil || o.CountryCode == nil { return nil, false } return o.CountryCode, true }
[ 0.6471272706985474, -0.18695339560508728, 0.07573096454143524, -0.0031078679021447897, -0.6510391235351562, 0.3087502717971802, 1.0043301582336426, 1.0541151762008667, -0.0770050436258316, 0.9698126912117004, -1.1025421619415283, -0.6025156378746033, -0.1370725929737091, 1.1003743410110474...
func (o *Workloadv1Location) HasCountryCode() bool { if o != nil && o.CountryCode != nil { return true } return false }
[ 1.1877278089523315, -0.33019018173217773, 0.09639342129230499, 0.46666815876960754, 0.017239414155483246, -0.5735928416252136, 0.5593255162239075, 0.8326746225357056, 0.26547232270240784, -0.1677805483341217, -0.5301533937454224, -0.7652089595794678, -0.28503531217575073, 1.085714101791381...
func (o *Workloadv1Location) SetCountryCode(v string) { o.CountryCode = &v }
[ 1.486452341079712, -0.6332234740257263, -0.20140063762664795, 0.3004673719406128, -1.136380910873413, -0.368318647146225, 0.17786303162574768, -0.35376468300819397, -0.03654039278626442, 0.24354243278503418, 0.2706760764122009, 1.3160122632980347, -0.32996484637260437, -0.20753012597560883...
func (o *Workloadv1Location) GetRegion() string { if o == nil || o.Region == nil { var ret string return ret } return *o.Region }
[ 0.6144459247589111, 0.8055113554000854, -0.01707889512181282, 0.6377832889556885, -0.335422158241272, -0.1623438596725464, 1.5442025661468506, -0.48386725783348083, 1.0349130630493164, -0.7366942167282104, 0.2722209692001343, -0.6499956846237183, -0.7386975288391113, 0.40601643919944763, ...
func (o *Workloadv1Location) GetRegionOk() (*string, bool) { if o == nil || o.Region == nil { return nil, false } return o.Region, true }
[ 0.2219095230102539, 0.23025880753993988, 0.47406747937202454, 0.840597927570343, -0.2000114619731903, -0.08462773263454437, 1.18547785282135, 0.3993500769138336, 0.09734774380922318, 0.5539679527282715, -0.2655690610408783, -0.3309846520423889, 0.17689035832881927, 0.3320479989051819, -0...
func (o *Workloadv1Location) HasRegion() bool { if o != nil && o.Region != nil { return true } return false }
[ 0.6137079000473022, 0.901185929775238, 0.2426374852657318, -0.06918330490589142, 0.10385590046644211, -0.23970086872577667, 0.9281835556030273, 0.47807440161705017, 0.5476418137550354, -0.9872134923934937, -0.4032934010028839, -0.45543211698532104, -0.5667505860328674, 0.3573436439037323, ...
func (o *Workloadv1Location) SetRegion(v string) { o.Region = &v }
[ 0.4433192014694214, 0.21901533007621765, -0.2083073854446411, -0.021016905084252357, -1.2132915258407593, -0.31482967734336853, 0.26583051681518555, -0.6114957928657532, 0.07121812552213669, -0.11285971105098724, 0.38582369685173035, 1.3062138557434082, -0.46584323048591614, -0.72834634780...
func (o *Workloadv1Location) GetRegionCode() string { if o == nil || o.RegionCode == nil { var ret string return ret } return *o.RegionCode }
[ 1.0382522344589233, -0.07199332118034363, 0.22759513556957245, 1.05808424949646, 0.12384422868490219, -0.3629697263240814, 0.4881480634212494, 0.10912729799747467, 1.084770917892456, -0.1180994063615799, 0.8954369425773621, -0.5185214281082153, -0.6016803979873657, 0.44462257623672485, 0...
func (o *Workloadv1Location) GetRegionCodeOk() (*string, bool) { if o == nil || o.RegionCode == nil { return nil, false } return o.RegionCode, true }
[ 0.5452045202255249, -0.035049427300691605, 0.31527671217918396, 0.1739514023065567, -0.004078133497387171, -0.3213699758052826, 0.32719412446022034, 0.49896079301834106, 0.13216841220855713, 1.2911804914474487, -0.00822747778147459, -0.09511793404817581, 0.057047586888074875, 0.79858809709...
func (o *Workloadv1Location) HasRegionCode() bool { if o != nil && o.RegionCode != nil { return true } return false }
[ 1.1129547357559204, -0.05357975885272026, 0.4322284460067749, 0.3960058391094208, 0.46985071897506714, -1.2208364009857178, 0.09617113322019577, 0.7168347239494324, 0.3789646327495575, -0.3359515964984894, 0.33434945344924927, 0.009926087222993374, -0.3362908959388733, 0.6977251768112183, ...
func (o *Workloadv1Location) SetRegionCode(v string) { o.RegionCode = &v }
[ 1.3674567937850952, -0.5708857178688049, -0.012672403827309608, 0.24225489795207977, -0.9111417531967163, -0.9743973612785339, -0.29414835572242737, -0.18507736921310425, 0.19125129282474518, 0.07014189660549164, 1.0903555154800415, 1.7751561403274536, -0.4060508608818054, -0.6144506335258...
func (o *Workloadv1Location) GetContinent() string { if o == nil || o.Continent == nil { var ret string return ret } return *o.Continent }
[ 1.100140929222107, -0.15153738856315613, 0.21510550379753113, 0.5705942511558533, -0.4561942219734192, 0.2885136604309082, 1.5065481662750244, -0.35588857531547546, 0.24033121764659882, -0.0718705803155899, 0.2959359586238861, -0.9989191889762878, -0.7273475527763367, -0.023023447021842003...
func (o *Workloadv1Location) GetContinentOk() (*string, bool) { if o == nil || o.Continent == nil { return nil, false } return o.Continent, true }
[ 0.30804404616355896, 0.16091494262218475, 0.4848967492580414, 1.194110631942749, -0.17661002278327942, 0.09625580906867981, 1.0860459804534912, 0.80683833360672, -0.3336464464664459, 0.8632085919380188, -0.5379981994628906, -0.8207708597183228, 0.1636469066143036, 0.23364098370075226, 0....
func (o *Workloadv1Location) HasContinent() bool { if o != nil && o.Continent != nil { return true } return false }
[ 1.2652140855789185, -0.2112237513065338, 0.29062241315841675, -0.17223171889781952, 0.4215959906578064, -0.03253006190061569, 0.9917777180671692, 0.6265933513641357, -0.3934125304222107, -0.22188317775726318, -0.520220160484314, -0.9378075003623962, -0.39233624935150146, -0.123311564326286...
func (o *Workloadv1Location) SetContinent(v string) { o.Continent = &v }
[ 1.3210790157318115, -0.7677033543586731, -0.03352567180991173, -0.5063459277153015, -0.8923681974411011, 0.15144750475883484, 0.5267349481582642, -0.5682206153869629, -0.6323049068450928, 0.47320979833602905, 0.2183309942483902, 0.8930937647819519, -0.3547784388065338, -1.0316848754882812,...
func (o *Workloadv1Location) GetContinentCode() string { if o == nil || o.ContinentCode == nil { var ret string return ret } return *o.ContinentCode }
[ 1.0978373289108276, -0.40989571809768677, 0.030863875523209572, 1.033131718635559, -0.16848179697990417, 0.05720807984471321, 0.48763635754585266, 0.33361682295799255, 0.2906438112258911, 0.3433303236961365, 0.6422713994979858, -0.9955078959465027, -0.9894242286682129, 0.6869476437568665, ...
func (o *Workloadv1Location) GetContinentCodeOk() (*string, bool) { if o == nil || o.ContinentCode == nil { return nil, false } return o.ContinentCode, true }
[ 0.6607176065444946, -0.22509776055812836, 0.2623937129974365, 0.319485604763031, -0.4406812787055969, 0.488446444272995, 0.4187919497489929, 1.098541259765625, -0.2538563311100006, 1.4083079099655151, -0.5607258081436157, -0.520309329032898, -0.37385377287864685, 1.057839035987854, 0.556...
func (o *Workloadv1Location) HasContinentCode() bool { if o != nil && o.ContinentCode != nil { return true } return false }
[ 1.34554922580719, -0.4953252673149109, 0.10929102450609207, 0.4109392762184143, 0.5133646130561829, -0.3989590108394623, -0.05724015831947327, 0.8921777009963989, -0.39574548602104187, 0.3594668209552765, -0.20588870346546173, -0.8285749554634094, -0.7139097452163696, 0.9535753130912781, ...
func (o *Workloadv1Location) SetContinentCode(v string) { o.ContinentCode = &v }
[ 1.6139956712722778, -0.7643504738807678, -0.21875320374965668, -0.08167294412851334, -0.841975212097168, -0.12619277834892273, -0.03211100399494171, 0.115818552672863, -0.21547779440879822, 0.6187312602996826, 0.5776400566101074, 0.9612966775894165, -0.8071903586387634, -0.3828764259815216...
func (o *Workloadv1Location) GetLatitude() float64 { if o == nil || o.Latitude == nil { var ret float64 return ret } return *o.Latitude }
[ 0.3813456594944, 0.465823233127594, 0.12121225148439407, 0.9296128153800964, 0.12934468686580658, -0.4254547357559204, 0.9703418612480164, -0.13744761049747467, 0.7994952201843262, -0.4937627613544464, -0.06900051981210709, -2.2185797691345215, -1.0375454425811768, 0.575613260269165, 0.4...
func (o *Workloadv1Location) GetLatitudeOk() (*float64, bool) { if o == nil || o.Latitude == nil { return nil, false } return o.Latitude, true }
[ 0.3387477993965149, 0.17958039045333862, 0.321463018655777, 0.758360743522644, -0.5659191012382507, 0.5907608270645142, 0.9726955890655518, 1.0641250610351562, -0.4369080066680908, 0.9767060279846191, -0.3978041410446167, -1.4060969352722168, 0.4048710763454437, 0.7464784383773804, 0.443...
func (o *Workloadv1Location) HasLatitude() bool { if o != nil && o.Latitude != nil { return true } return false }
[ 0.7559465765953064, 0.28145283460617065, 0.3567589521408081, 0.39235588908195496, 0.432828813791275, -0.07061977684497833, 0.2820321023464203, 0.8593586683273315, -0.11220309883356094, -0.31425222754478455, -0.6437762379646301, -2.1956660747528076, -0.42430579662323, 0.1683816760778427, ...
func (o *Workloadv1Location) SetLatitude(v float64) { o.Latitude = &v }
[ 0.3478507697582245, 0.8145081996917725, -0.13639472424983978, 1.1263132095336914, -0.30446216464042664, -0.10258989781141281, 0.11174061894416809, -0.7676078081130981, -0.44385480880737305, 0.5475484132766724, 0.14646118879318237, -0.6558977365493774, -0.5387258529663086, -0.02918212860822...
func (o *Workloadv1Location) GetLongitude() float64 { if o == nil || o.Longitude == nil { var ret float64 return ret } return *o.Longitude }
[ 0.4640868902206421, 0.03864361345767975, 0.08333656936883926, 1.002327799797058, 0.46248748898506165, -0.4213981330394745, 0.4843382239341736, 0.11732777208089828, 1.0060644149780273, -0.5070850849151611, -0.5013673305511475, -1.874356985092163, -0.735160768032074, 0.6387977600097656, 0....
func (o *Workloadv1Location) GetLongitudeOk() (*float64, bool) { if o == nil || o.Longitude == nil { return nil, false } return o.Longitude, true }
[ 0.5191507339477539, -0.2249944806098938, 0.28696489334106445, 0.2445921003818512, -0.02369380183517933, 0.6030467748641968, -0.07940882444381714, 1.0458171367645264, 0.029498549178242683, 0.6933490633964539, -1.0705267190933228, -0.9196077585220337, 0.4140465557575226, 0.8720818758010864, ...
func (o *Workloadv1Location) HasLongitude() bool { if o != nil && o.Longitude != nil { return true } return false }
[ 1.1955649852752686, -0.15812113881111145, 0.35154131054878235, 0.2623181939125061, 0.8969478011131287, -0.09036513417959213, -0.27696120738983154, 1.105806589126587, 0.5455899834632874, -0.3154471218585968, -1.4084880352020264, -1.7801225185394287, -0.4098057150840759, 0.33509454131126404,...
func (o *Workloadv1Location) SetLongitude(v float64) { o.Longitude = &v }
[ 0.6091741919517517, 0.7062667012214661, 0.004314770922064781, 1.142726182937622, 0.09952683001756668, -0.4628055989742279, -0.33163389563560486, -0.6295680999755859, -0.1974518746137619, 0.3804899752140045, -0.3206919729709625, -0.34400230646133423, -0.38991862535476685, 0.2109524756669998...
func decompose(path string) (parents []string, leaf string) { if !strings.ContainsRune(path, '.') { leaf = path } else { parents = strings.Split(path, ".") leaf = parents[len(parents)-1] parents = parents[:len(parents)-1] } return parents, leaf }
[ -0.4764363765716553, -0.44275957345962524, 0.8446140289306641, -0.1563532054424286, -0.34610798954963684, -0.9417852759361267, -0.31016597151756287, 0.18399804830551147, -0.7052116990089417, 0.26616910099983215, -0.15693597495555878, -0.6924098134040833, -1.1470798254013062, 0.509835064411...
func getFormatted(unconstructedTypes map[string]UnconstructedTdlTypeIF) map[string]*TdlFormattedType { formatted := make(map[string]*TdlFormattedType) for k := range unconstructedTypes { tdlType := unconstructedTypes[k] formatted[k] = tdlType.FormatTdlType() } return formatted }
[ -0.30752816796302795, -1.1911293268203735, 0.48552438616752625, -0.8697452545166016, 0.16506187617778778, -0.029968494549393654, -0.3166896104812622, -0.44137758016586304, -0.3862200379371643, -0.3819780945777893, -0.018194936215877533, 0.13980916142463684, 0.5616451501846313, 1.1506718397...
func BuildJson(unconstructedTypes map[string]UnconstructedTdlTypeIF) map[string]interface{} { formatted := getFormatted(unconstructedTypes) json := make(map[string]interface{}) for path := range formatted { parents, leaf := decompose(path) parentJson := json for _, parent := range parents { if _, ok := par...
[ -1.1112834215164185, -1.1648674011230469, 0.6386533379554749, -0.6370797157287598, -0.6692098379135132, -0.5179416537284851, 0.9209093451499939, 0.02146017923951149, -0.752837061882019, -0.04078171029686928, -0.3771117031574249, -0.5450583100318909, 0.120172418653965, 0.9571706056594849, ...
func UpdateJson(unconstructedTypes map[string]UnconstructedTdlTypeIF, json map[string]interface{}) map[string]interface{} { formatted := getFormatted(unconstructedTypes) for path := range formatted { parents, leaf := decompose(path) parentJson := json for _, parent := range parents { parentJson = parentJson[...
[ -1.2187222242355347, -1.4609441757202148, 0.5532614588737488, -1.0669543743133545, -1.01526939868927, -0.43255099654197693, 0.5622326135635376, -0.010551628656685352, -0.6594603657722473, 0.456784725189209, -0.3880358636379242, -0.3399856984615326, -0.004040214698761702, 0.9662173390388489...
func (s *Service) inviteUserHandler(w http.ResponseWriter, r *http.Request) { // Get the authenticated user from the request context authenticatedUser, err := GetAuthenticatedUser(r) if err != nil { response.UnauthorizedError(w, err.Error()) return } // Request body cannot be nil if r.Body == nil { respons...
[ -0.3453192412853241, -0.11598140001296997, 0.8117120862007141, 0.7522889375686646, -0.2868090867996216, 0.3482048213481903, 0.8025476932525635, 0.1976548731327057, -0.13304296135902405, 0.9043117165565491, -0.9349390268325806, 0.033737581223249435, -0.7040111422538757, 0.17791597545146942,...
func PlayWithPointer() { var s1 string = `some strings` var i1 int32 = 12 var i2 int64 = 24 var f1 float32 = 4.123 var f2 float64 = 233.235874742 var b1 bool = true fmt.Printf("s1 = %v; i1 = %v; i2 = %v; f1 = %v; f2 = %v; b1 = %v;\n", s1, i1, i2, f1, f2, b1) var s1p *string = &s1 var i1p *int32 = &i1 var i2...
[ 0.23331338167190552, -0.9011051058769226, 1.1029162406921387, -0.21693305671215057, -1.0623892545700073, 0.18563909828662872, 0.20715779066085815, -0.19130152463912964, 0.1746360957622528, 0.2624763250350952, 0.3355593979358673, 0.6686491370201111, -0.6919798254966736, -0.18144547939300537...
func NewConfigFile() (*ConfigFile, error) { usr, err := user.Current() if err != nil { return nil, err } location := filepath.Join(usr.HomeDir, configFile) return &ConfigFile{ location: location, }, nil }
[ -0.16159290075302124, -0.47394853830337524, -0.006157740950584412, 1.1070129871368408, -0.4610733687877655, 0.055704377591609955, 0.4396030902862549, 0.5976670980453491, -1.2334898710250854, 0.06063499301671982, -0.7292678356170654, -0.21398217976093292, -0.2956414520740509, 0.893266439437...
func (cf *ConfigFile) Set(key string, val interface{}) error { c, err := cf.Open() if err != nil { switch err.(type) { case *os.PathError: err := cf.createConfigFile() if err != nil { return err } c, _ = cf.Open() default: return err } } b, err := ioutil.ReadAll(c) if err != nil { r...
[ -0.32555559277534485, -0.36196351051330566, 0.571046769618988, -0.32800576090812683, -0.32183143496513367, -0.18999716639518738, -0.023259786888957024, 0.572025716304779, -1.4283523559570312, 0.6553916931152344, -0.16630075871944427, 0.2544962465763092, 0.37525734305381775, 0.9200077056884...
func (cf *ConfigFile) Open() (io.Reader, error) { _, err := os.Stat(cf.location) if err != nil { return nil, err } return os.Open(cf.location) }
[ -0.5409287810325623, -0.2831895351409912, 0.23524591326713562, -0.4015977680683136, 0.022038286551833153, 0.2066533863544464, 0.734506368637085, 1.1239728927612305, -1.582794189453125, -0.30669155716896057, 0.383707195520401, -0.3211894631385803, -0.3972153663635254, -0.037501558661460876,...
func (m *SQLRoutine) CreateCommand() *cli.Command { return &cli.Command{ Name: "routine", Usage: "A group of commands for generating, running, and removing SQL commands", Description: "A group of commands for generating, running, and removing SQL commands", Flags: []cli.Flag{ &cli.StringFlag{ ...
[ 0.16070285439491272, 0.07368182390928268, 0.8377118706703186, -0.1164434403181076, 1.1055874824523926, 0.043353572487831116, 0.2603987157344818, -0.4657919108867645, -0.5077799558639526, -0.3636855483055115, 0.049503084272146225, 0.17573951184749603, 0.06563741713762283, 0.6364634037017822...
func (s *JobApiTestSuite) SetupTest() { if !*runIntegrationTests { s.T().SkipNow() return } if !*isDevMode { err := test.WaitForReady(*namespace, *initializeTimeout) if err != nil { glog.Exitf("Failed to initialize test. Error: %s", err.Error()) } } s.namespace = *namespace var newExperimentClient ...
[ -0.2328033447265625, -0.22507666051387787, 0.8056076169013977, -0.2086237221956253, 0.7966133952140808, -0.5339077711105347, 0.5315046906471252, -0.9740645885467529, -0.17202359437942505, -0.6293731331825256, 0.3807436227798462, 0.45931774377822876, -0.5600554943084717, 0.1406775563955307,...
func (s *JobApiTestSuite) cleanUp() { test.DeleteAllRuns(s.runClient, s.resourceNamespace, s.T()) test.DeleteAllJobs(s.jobClient, s.resourceNamespace, s.T()) test.DeleteAllPipelines(s.pipelineClient, s.T()) test.DeleteAllExperiments(s.experimentClient, s.resourceNamespace, s.T()) }
[ 0.6017163395881653, -0.44865673780441284, 0.4385923743247986, -0.34799450635910034, 0.4056810438632965, -0.0016536240000277758, 1.0803967714309692, -0.36751246452331543, 0.43494993448257446, -1.1250699758529663, -0.08550882339477539, 0.2800823450088501, 0.04699980095028877, 0.3173888921737...
func (t testCommand) Run() error { if t.shouldFail { return errors.New("I AM ERROR") } return nil }
[ -0.1274937242269516, -0.4728696346282959, 0.29677900671958923, 0.2835312485694885, 0.3438712954521179, 0.7506141066551208, 0.1714269518852234, -0.18647977709770203, -0.19748248159885406, -0.7936561107635498, -0.30749496817588806, -0.40871328115463257, -0.9866023063659668, -0.06708242744207...
func beforeTest() { hashFilePath = fixturesPath("valid.md5") caFilePath = fixturesPath("valid.pem") }
[ 1.5077643394470215, 0.02274617739021778, 0.3661494553089142, 0.780333936214447, 0.6788769364356995, 0.7681723237037659, 1.3029770851135254, 0.12917448580265045, 0.1867690235376358, -0.8100242614746094, -0.32567721605300903, -1.2237287759780884, -0.061294712126255035, -0.5149000883102417, ...
func fixturesPath(file string) string { path, _ := os.Getwd() return filepath.Join(path, "fixtures", file) }
[ 0.8795563578605652, 0.10743895173072815, 0.23281890153884888, -0.15345703065395355, 0.00914723053574562, 0.4683375358581543, 2.368192434310913, -0.6136801242828369, -0.49790722131729126, -0.18762260675430298, -0.1805095374584198, -0.6446250081062317, 0.0791078731417656, 0.5404654741287231,...
func CartList(c *gin.Context) { id, _ := strconv.Atoi(c.Query("cartId")) var CartitemViewModel []Cartitem if (id > 0) { //database.DBConn.Where("cart_id = ?", id).Find(&Cartitems) database.DBConn.Model(&Cartitem{}).Select(" cart_id, item_id, count(cart_id) as count ").Group(` cart_id, item_id `).Having(" cart_id...
[ -0.20553456246852875, -0.8180108666419983, 0.7330647110939026, 0.0290951170027256, 0.2420465648174286, -0.44473499059677124, -0.1769285947084427, -0.09657022356987, -0.5244194269180298, 0.5477333664894104, -0.25272923707962036, 0.07788670808076859, 0.970504641532898, 0.32346653938293457, ...
func (c orderController) get(ctx *routing.Context) error { id, err := ozzo_routing.ParseUintParam(ctx, "id") if err != nil { errorshandler.BadRequest("ID is required to be uint") } entity, err := c.Service.Get(ctx.Request.Context(), id) if err != nil { if err == apperror.ErrNotFound { c.Logger.With(ctx.Req...
[ -1.1546881198883057, -0.24156717956066132, 1.0019067525863647, -0.3593352437019348, 0.9377299547195435, -0.020030740648508072, 0.10587230324745178, -0.6913213133811951, 0.12846532464027405, 0.07952880859375, 0.5974082350730896, 0.8383091688156128, -0.1654982566833496, 0.6070160865783691, ...
func (c orderController) list(ctx *routing.Context) error { cond := &selection_condition.SelectionCondition{ SortOrder: []map[string]string{{ "name": "asc", }}, } items, err := c.Service.Query(ctx.Request.Context(), cond) if err != nil { if err == apperror.ErrNotFound { c.Logger.With(ctx.Request.Contex...
[ -0.7826856970787048, -0.9437246918678284, 0.5754365921020508, -0.018613649532198906, 0.6172693967819214, -0.8174710869789124, 0.0990169569849968, -0.2815884053707123, 0.09289953112602234, 0.6339870095252991, -0.2189757227897644, -0.03373568132519722, 0.2814508080482483, 0.7690573930740356,...
func main() { // Initialise a controller var control = controller.Controller{ Nodes: make(map[string]*utils.Node), Services: make(map[string]*utils.Service), Pods: make(map[string]*utils.Pod), Client: state.GetClientOutOfCluster(), Triggers: triggers.Triggers, FuzzyQueue: make(chan *utils.Event, 100), ...
[ 0.5170794129371643, 0.13824257254600525, 0.5077014565467834, -0.16533657908439636, 0.8385989665985107, -0.017369208857417107, 0.6926256418228149, 0.0881642997264862, -0.06470174342393875, -0.7816280126571655, -0.5595553517341614, 0.6617302298545837, 0.09867909550666809, 0.05611416697502136...
func Author(author string) func(f *Feed) error { return func(f *Feed) error { f.Channel.Author = author return nil } }
[ -0.09314388781785965, -0.34179428219795227, 0.31580328941345215, 0.14286965131759644, -0.2675574719905853, -0.5942795872688293, 0.6322407722473145, 0.19931188225746155, -0.05879328027367592, -0.20702970027923584, -0.38949429988861084, 1.3150721788406372, 0.9452306628227234, 0.7461705803871...
func Block(f *Feed) error { f.Channel.Block = ValueYes return nil }
[ -0.4262520372867584, 1.0837631225585938, 0.46382957696914673, -0.13917739689350128, 0.9146643877029419, 0.4570219814777374, 0.41905301809310913, -0.5609152913093567, -0.8798134922981262, -0.704329788684845, -0.6388929486274719, 0.8783479332923889, 0.05730060860514641, 1.0739705562591553, ...
func Explicit(f *Feed) error { f.Channel.Explicit = ValueYes return nil }
[ 0.19046315550804138, 0.056604623794555664, 0.5784116983413696, -0.8037238121032715, 1.0031620264053345, 0.20248597860336304, -0.33621159195899963, -0.33652448654174805, -1.1924917697906494, -0.4958747625350952, -0.42817923426628113, 1.4806621074676514, 1.6343069076538086, 0.756633877754211...
func Complete(f *Feed) error { f.Channel.Complete = ValueYes return nil }
[ 0.23340372741222382, -0.2230750471353531, 0.46557825803756714, -0.13717252016067505, 0.30045077204704285, -0.3955895006656647, 0.18078096210956573, -0.6487113833427429, -1.1339771747589111, 0.47266292572021484, -0.829725444316864, 0.3896760940551758, 0.2975056767463684, 0.41223007440567017...
func NewFeedURL(newURL string) func(f *Feed) error { return func(f *Feed) error { u, err := url.Parse(newURL) if err != nil { return err } if !u.IsAbs() { return ErrInvalidURL } f.Channel.NewFeedURL = newURL return nil } }
[ -0.18929797410964966, -0.2964867651462555, 0.7580664157867432, 0.21784624457359314, -0.663508415222168, 0.32608768343925476, -0.6082999110221863, -0.3373735547065735, -0.12349266558885574, -0.15236106514930725, -0.6949063539505005, 1.265181541442871, 0.604603111743927, 0.7721288204193115, ...
func Subtitle(subtitle string) func(f *Feed) error { return func(f *Feed) error { f.Channel.Subtitle = subtitle return nil } }
[ 1.1588988304138184, 0.0069877272471785545, 0.37501755356788635, 0.13921743631362915, -0.03657712787389755, -0.40246573090553284, -0.6555466055870056, -0.17692220211029053, -0.2713414430618286, -0.33089348673820496, -0.9108629822731018, 0.8742122054100037, -0.10861282795667648, -1.019564270...
func Summary(summary string) func(f *Feed) error { return func(f *Feed) error { f.Channel.Summary = &ItunesSummary{summary} return nil } }
[ -0.45107167959213257, 0.5693881511688232, 0.452061265707016, -0.2590629458427429, -0.06045131757855415, -0.4301832616329193, 0.014671066775918007, -0.06260140240192413, 0.2253577560186386, 0.155949205160141, -0.3717508614063263, 1.1683261394500732, -0.3251839280128479, -0.43885689973831177...
func Owner(name string, email string) func(f *Feed) error { return func(f *Feed) error { f.Channel.Owner = &ItunesOwner{ Name: name, Email: email, } return nil } }
[ 0.2027585804462433, -0.24049751460552216, 0.3205031752586365, 0.5408704280853271, -0.22059811651706696, -0.27254366874694824, 0.32950395345687866, -0.344011515378952, -0.665442168712616, -0.4284200370311737, -0.5622785687446594, 1.1941338777542114, -0.1497732400894165, -0.6637859344482422,...
func Image(href string) func(f *Feed) error { return func(f *Feed) error { u, err := url.Parse(href) if err != nil { return err } if !u.IsAbs() { return ErrInvalidImage } f.Channel.Image = &ItunesImage{ Href: href, } return nil } }
[ -0.3373376727104187, 0.33522358536720276, 0.5521508455276489, -0.35986483097076416, -0.17019863426685333, -0.14241506159305573, -0.47747746109962463, 0.334818959236145, -0.4600733816623688, 0.5654469728469849, 0.8765856027603149, 0.3845423758029938, -0.019948497414588928, 0.176755353808403...
func TestBasicInsertRollover(t *testing.T) { q := NewCircularFifoQueue(10) for i := 0; i < 15; i++ { q.Enqueue(i) } for i := 5; i < 15; i++ { x := q.Dequeue() if x != i { t.Fatal("Unexpected response", x, "wanted", i) } } }
[ 0.6081347465515137, 1.0121184587478638, 0.6354727149009705, -0.48147812485694885, 0.7647523283958435, -0.1729360818862915, 0.4670483469963074, -1.121986746788025, 0.10085271298885345, -0.31020408868789673, -1.0870479345321655, -0.512438178062439, -1.1953275203704834, 0.18112137913703918, ...
func TestBasicInsertRemoveRollover(t *testing.T) { q := NewCircularFifoQueue(10) for i := 0; i < 15; i++ { q.Enqueue(i) } for i := 0; i < 3; i++ { q.Dequeue() } for i := 8; i < 15; i++ { x := q.Dequeue() if x != i { t.Fatal("Unexpected response", x, "wanted", i) } } }
[ 0.7890961170196533, 0.953406035900116, 0.6679514646530151, -0.7039105296134949, 0.5552904605865479, -0.1064353957772255, 0.460212379693985, -0.9904115796089172, 0.4449232518672943, -0.15688440203666687, -0.9462956190109253, -0.8830533027648926, -1.1008689403533936, 0.12335152179002762, 0...
func TestBasicLenRollover(t *testing.T) { q := NewCircularFifoQueue(10) for i := 0; i < 15; i++ { q.Enqueue(i) } for i := 0; i < 3; i++ { q.Dequeue() } if q.Len() != 7 { t.Fatal("Unexpected response", q.Len(), "wanted", 7) } }
[ 0.970995306968689, 1.0808676481246948, 0.7247799634933472, -0.22006116807460785, 0.5037579536437988, 0.11222527921199799, 0.07399187237024307, -1.1531392335891724, 0.3157682418823242, -0.46685636043548584, -0.41902413964271545, -0.5027431845664978, -0.7382254600524902, 0.1680378019809723, ...
func TestBasicCallbackRollover(t *testing.T) { q := NewCircularFifoQueue(10) for i := 0; i < 15; i++ { q.Enqueue(i) } for i := 0; i < 3; i++ { q.Dequeue() } start := 8 q.Do(0, func(val interface{}) bool { if start != val { t.Fatal("Unexpected response", val, "wanted", start) } start++ return true ...
[ 0.7251443862915039, 0.7249513864517212, 0.6423059105873108, -0.029534677043557167, 0.4522116482257843, 0.14393165707588196, 0.44897714257240295, -1.285372018814087, 0.39463502168655396, -0.592568576335907, -0.8427099585533142, -0.13356949388980865, -0.3319426476955414, 0.31614387035369873,...
func (s GetCanaryInput) String() string { return awsutil.Prettify(s) }
[ 0.5725415349006653, -0.3596816956996918, 0.016657685860991478, -0.026631120592355728, -0.626928985118866, 0.6137478351593018, 0.9074039459228516, -0.9699328541755676, 0.1622343510389328, -0.36653605103492737, -0.0009953933767974377, 0.9788137674331665, 0.4500064253807068, -0.11258532106876...
func (s *GetCanaryInput) Validate() error { invalidParams := aws.ErrInvalidParams{Context: "GetCanaryInput"} if s.Name == nil { invalidParams.Add(aws.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(aws.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { ret...
[ 0.023215604946017265, 0.16998416185379028, 0.49322709441185, 0.45434874296188354, -0.21229514479637146, -0.13858287036418915, -0.0767819806933403, -0.6782740950584412, -0.013734990730881691, -0.03588124364614487, 0.24254989624023438, 0.42649492621421814, -0.5622557401657104, 0.756496250629...
func (s GetCanaryInput) MarshalFields(e protocol.FieldEncoder) error { e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{}) if s.Name != nil { v := *s.Name metadata := protocol.Metadata{} e.SetValue(protocol.PathTarget, "name", protocol.QuotedValue{V...
[ 0.274585485458374, 0.3247266709804535, 0.3324592709541321, -0.562576949596405, 0.16760289669036865, 0.2469853162765503, -0.04894344136118889, -0.03994259983301163, 0.04041219875216484, -0.10422240942716599, -0.6252020001411438, 0.35114991664886475, -0.45206159353256226, -0.0814889594912529...
func (s GetCanaryOutput) String() string { return awsutil.Prettify(s) }
[ 1.1710623502731323, -0.6693880558013916, 0.0760410726070404, 0.12355424463748932, -0.9292128682136536, -0.28970903158187866, 0.9558464288711548, -0.8978654742240906, -0.4019131064414978, -0.35207250714302063, 0.29866987466812134, 0.4067307710647583, 0.7129834890365601, -0.2879752218723297,...
func (s GetCanaryOutput) MarshalFields(e protocol.FieldEncoder) error { if s.Canary != nil { v := s.Canary metadata := protocol.Metadata{} e.SetFields(protocol.BodyTarget, "Canary", v, metadata) } return nil }
[ 0.6650291681289673, 0.32741814851760864, 0.19096039235591888, 0.041675493121147156, 0.579544723033905, 0.24161747097969055, 0.10865575820207596, 0.532122015953064, 0.04592788964509964, -0.3104662299156189, -0.34659403562545776, 0.37810617685317993, -0.7188633680343628, 0.21783870458602905,...
func (r GetCanaryRequest) Send(ctx context.Context) (*GetCanaryResponse, error) { r.Request.SetContext(ctx) err := r.Request.Send() if err != nil { return nil, err } resp := &GetCanaryResponse{ GetCanaryOutput: r.Request.Data.(*GetCanaryOutput), response: &aws.Response{Request: r.Request}, } retur...
[ -0.141931414604187, -0.4570479691028595, 0.35762685537338257, 0.6335381865501404, 0.14863553643226624, -0.5040870904922485, -0.16989488899707794, -1.1421642303466797, 0.07517609745264053, -0.24536563456058502, -0.2486010193824768, 0.9302347898483276, -0.28580641746520996, 0.288990825414657...
func (r *GetCanaryResponse) SDKResponseMetdata() *aws.Response { return r.response }
[ 0.6502503752708435, -0.5739340782165527, 0.3280198574066162, 0.16597549617290497, -0.17222997546195984, 0.02778976410627365, -0.5207505226135254, -0.7296392321586609, 0.8974462747573853, -0.42013442516326904, -0.47078800201416016, 0.2504889667034149, 0.06453944742679596, -1.073018431663513...
func (h *GetInformationHandlerImpl) Handle(params information.GetHaproxyProcessInfoParams, principal interface{}) middleware.Responder { info, err := h.Client.Runtime.GetInfo() if err != nil || len(info) == 0 { code := misc.ErrHTTPInternalServerError msg := err.Error() e := &models.Error{ Code: &code, ...
[ -0.0011510021286085248, 0.2969968020915985, 0.9895857572555542, -0.4851721525192261, 0.4126664102077484, 0.5345393419265747, 0.14921018481254578, -0.013141309842467308, -0.25918713212013245, -0.7059506773948669, 0.44672971963882446, -0.04664640873670578, -0.9953835606575012, -0.01339054014...
func newFingerprintLocker(preallocatedMutexes int) *fingerprintLocker { if preallocatedMutexes < 1024 { preallocatedMutexes = 1024 } return &fingerprintLocker{ make([]paddedMutex, preallocatedMutexes), uint(preallocatedMutexes), } }
[ -0.6411208510398865, 0.11089121550321579, 0.3798019289970398, 0.23378300666809082, -0.9131531715393066, -0.10078898072242737, 0.6587814688682556, -0.25831085443496704, 1.158493995666504, -0.6833680868148804, -0.701651394367218, 0.15162430703639984, -0.7052662372589111, 0.8635625243186951, ...
func (l *fingerprintLocker) Lock(fp model.Fingerprint) { l.fpMtxs[hashFP(fp)%l.numFpMtxs].Lock() }
[ -0.6217299103736877, 0.3673914670944214, 0.11939099431037903, 0.33587440848350525, 0.053153298795223236, 0.887527585029602, 1.288255214691162, -0.1325499415397644, 0.3762849271297455, -1.488423228263855, -0.480682373046875, -0.9566763043403625, -0.8839262127876282, 0.022600853815674782, ...
func (l *fingerprintLocker) Unlock(fp model.Fingerprint) { l.fpMtxs[hashFP(fp)%l.numFpMtxs].Unlock() }
[ -0.8035427331924438, 0.2561013400554657, 0.21782781183719635, 0.32414188981056213, -0.21968667209148407, 0.39023557305336, 1.040848970413208, 0.6277136206626892, 0.08911728113889694, -0.8203509449958801, -0.3660585880279541, -0.7886145114898682, -0.7576904296875, -0.5434907078742981, -0....
func hashFP(fp model.Fingerprint) uint { return uint(fp ^ (fp >> 32) ^ (fp >> 16)) }
[ 1.1173012256622314, 0.8260087370872498, 0.4167037904262543, 0.4359280467033386, -0.06348935514688492, 0.6731380224227905, 0.0599186010658741, 0.34246909618377686, 0.060126762837171555, -0.8035445809364319, -0.3097934424877167, -1.0199247598648071, -0.5883593559265137, -0.5696995854377747, ...
func GetPersistentVolumeClaimDetail(client kubernetes.Interface, appCoreClient *appCore.ApplicationClient, namespace string, name string) (*PersistentVolumeClaimDetail, error, *v1.PersistentVolumeClaim) { log.Printf("Getting details of %s persistent volume claim", name) rawPersistentVolumeClaim, err := client.CoreV1...
[ 0.6642520427703857, -0.7848983407020569, 0.7115058302879333, -0.2247646152973175, -0.7912363409996033, 0.17921169102191925, -1.303285002708435, -0.08263780176639557, 0.727130651473999, 0.3949807584285736, 0.5022556185722351, 1.32057785987854, -0.2698964476585388, 0.11434297263622284, 1.0...
func (f *Filter) marshal() (buf *bytes.Buffer, hash [sha512.Size384]byte, err error, ) { f.lock.RLock() defer f.lock.RUnlock() debug("write bf k=%d n=%d m=%d\n", f.K(), f.n, f.m) buf = new(bytes.Buffer) err = binary.Write(buf, binary.LittleEndian, f.K()) if err != nil { return nil, hash, err } err = bin...
[ 0.46339061856269836, -0.12905427813529968, 0.6348165273666382, -0.10518743842840195, -0.3076058328151703, -0.116141676902771, -0.4815691411495209, -0.08002757281064987, -0.29109248518943787, -0.4356187880039215, -0.38082289695739746, 0.9215290546417236, -0.1557961255311966, 0.7952202558517...
func (f *Filter) MarshalBinary() (data []byte, err error) { buf, hash, err := f.marshal() if err != nil { return nil, err } debug( "bloomfilter.MarshalBinary: Successfully wrote %d byte(s), sha384 %v", buf.Len(), hash, ) data = buf.Bytes() return data, nil }
[ 0.8271206617355347, -0.21927034854888916, 0.45429158210754395, 0.5347808003425598, 1.0828051567077637, -0.5864652395248413, -0.6781551241874695, -0.8463073968887329, -0.040883619338274, -0.13679051399230957, -0.7152028679847717, 1.1202490329742432, -0.493495911359787, 0.46906235814094543, ...
func TestScaleDownWhenQueueMessagesLessThanTarget(t *testing.T) { c := desiredWorkerTester{ queueName: "q", queueMessages: 10, messagesSentPerMinute: float64(10), secondsToProcessOneJob: float64(0.3), targetMessagesPerWorker: 200, currentWorkers: 20, idleWorkers: ...
[ 0.571090579032898, -0.9648615717887878, 0.643852949142456, -0.9348942637443542, 0.4638936519622803, 0.3355303704738617, 0.14278069138526917, -1.4482190608978271, -0.03751007467508316, -0.6357951164245605, -0.20710593461990356, 0.1899046152830124, -0.4421473741531372, 0.7443274259567261, ...
func TestScaleUpWhenCalculatedMinIsGreaterThanMax(t *testing.T) { c := desiredWorkerTester{ queueName: "q", queueMessages: 1, messagesSentPerMinute: float64(2136), secondsToProcessOneJob: float64(10), targetMessagesPerWorker: 2500, currentWorkers: 10, idleWorkers: ...
[ 0.19695958495140076, 0.15880373120307922, 0.798947274684906, 0.1408347487449646, 0.38181382417678833, 0.6132194399833679, -0.14537745714187622, -0.6687352061271667, -0.34765416383743286, -0.20084217190742493, -1.0641415119171143, 0.2702825665473938, -0.699759840965271, 1.0119693279266357, ...
func TestScaleForLongRunningWorkersTakingMinutesToProcess(t *testing.T) { c := desiredWorkerTester{ queueName: "q", queueMessages: 100, targetMessagesPerWorker: 10, currentWorkers: 0, idleWorkers: 0, minWorkers: 0, maxWorkers: 500, ...
[ 0.23459354043006897, -0.4886084794998169, 0.60417640209198, -0.6971547603607178, 0.443271666765213, 0.5526487231254578, -0.279194712638855, -0.47340482473373413, -0.17149876058101654, -0.09639885276556015, -0.5871862769126892, -0.4135018289089203, -0.8104601502418518, 0.48050007224082947, ...