text stringlengths 7 2.39k | embedding listlengths 768 768 |
|---|---|
Configure sets up the logging framework In production, the container logs will be collected and file logging should be disabled. However, during development it's nicer to see logs as text and optionally write to a file when debugging problems in the containerized pipeline The output log file will be located at /var/log... | [
0.4571997821331024,
0.12282948940992355,
0.5625152587890625,
0.5810215473175049,
0.3040687143802643,
-0.5046167373657227,
0.06100040674209595,
0.17398500442504883,
-0.5370281934738159,
-0.43625158071517944,
0.43892139196395874,
-0.02276684157550335,
0.4464636743068695,
0.6831530928611755,
... |
NewStreamBuilder creates a new StreamBuilder. | [
0.4652809500694275,
0.276614248752594,
0.15082921087741852,
1.6722055673599243,
-0.5778984427452087,
0.1084812805056572,
0.44675394892692566,
0.42127352952957153,
0.5128176808357239,
-1.4010577201843262,
-0.4741688072681427,
0.33504819869995117,
-1.339959979057312,
1.4167990684509277,
-0... |
Source adds a Source to the stream, returning the Stream. | [
-0.6234337687492371,
0.5506246089935303,
0.26813769340515137,
0.28563612699508667,
-0.9360233545303345,
-0.21502789855003357,
-0.030997872352600098,
-0.5875532627105713,
1.116490125656128,
-1.242457628250122,
-0.573424220085144,
0.9603387713432312,
-0.6423575282096863,
0.46041855216026306,... |
Build builds the stream Topology. | [
-0.17359599471092224,
-0.7841336131095886,
-0.010518841445446014,
0.717403769493103,
0.2882338762283325,
0.528484046459198,
1.42953622341156,
-0.5151869654655457,
0.12523743510246277,
-0.8087980151176453,
-0.09909588098526001,
0.7288180589675903,
0.1893729567527771,
0.21482627093791962,
... |
Filter filters the stream using a predicate. | [
0.17299745976924896,
0.21371105313301086,
0.20312289893627167,
0.2721465528011322,
-1.3535840511322021,
0.22104208171367645,
0.42701455950737,
0.33102646470069885,
-0.7284040451049805,
-0.7028321027755737,
0.5957768559455872,
1.4497328996658325,
-0.22832714021205902,
0.9817187190055847,
... |
FilterFunc filters the stream using a predicate. | [
0.8765101432800293,
0.3484666645526886,
0.3327751159667969,
0.5897269248962402,
-1.0401607751846313,
-0.14896002411842346,
1.1274486780166626,
0.8296141624450684,
-0.8399233818054199,
-0.29924798011779785,
0.9556460380554199,
1.9474239349365234,
0.8077965974807739,
0.2373899221420288,
-1... |
Branch branches a stream based on the given predicates. | [
0.26843321323394775,
0.24966338276863098,
0.29903125762939453,
1.7435452938079834,
-0.5441780090332031,
1.1132962703704834,
-0.08904790878295898,
0.5167911052703857,
-0.5785986185073853,
-0.48811161518096924,
1.0452418327331543,
1.3570878505706787,
-0.8912785053253174,
0.31920406222343445,... |
FanOut creates multiple streams based on the number of streams necessary. It should be used when the same message is supposed to be processed by multiple sinks. | [
1.5172573328018188,
1.2029343843460083,
0.615996778011322,
0.1682509183883667,
0.031406618654727936,
-0.9228506088256836,
0.962018609046936,
-0.276846706867218,
-0.6236234307289124,
-0.7395820021629333,
-0.14792782068252563,
0.4875516891479492,
-0.7704561352729797,
1.1072005033493042,
-0... |
BranchFunc branches a stream based on the given predicates. | [
0.8074651956558228,
0.28551897406578064,
0.3166786730289459,
1.7338677644729614,
-0.49451112747192383,
0.651728630065918,
0.806591808795929,
1.0434693098068237,
-0.930042564868927,
0.03460899740457535,
0.7391428351402283,
1.9466338157653809,
0.09142549335956573,
-0.25816231966018677,
-0.... |
Map runs a mapper on the stream. | [
-0.9331925511360168,
-0.7911145091056824,
0.30377140641212463,
0.38401785492897034,
-1.418447494506836,
0.0027742949314415455,
-0.16574083268642426,
-0.36844614148139954,
0.7566893696784973,
-0.5278999209403992,
-0.19662362337112427,
-0.04394092038273811,
0.587157130241394,
0.9150065183639... |
MapFunc runs a mapper on the stream. | [
-0.227211132645607,
-0.5545583367347717,
0.260949969291687,
0.3461228311061859,
-1.1375420093536377,
-0.42864465713500977,
0.3488190472126007,
0.047178156673908234,
0.2581189274787903,
-0.4587709307670593,
0.044019002467393875,
0.696455180644989,
1.2229762077331543,
0.23707754909992218,
... |
FlatMap runs a flat mapper on the stream. | [
-1.1597797870635986,
-0.4319292902946472,
0.2578960657119751,
0.359600305557251,
-0.4004392623901367,
0.28534504771232605,
0.6311808228492737,
-0.3379007577896118,
1.2117958068847656,
-1.4924476146697998,
0.10471662878990173,
0.13307224214076996,
-0.23538951575756073,
0.5186537504196167,
... |
FlatMapFunc runs a flat mapper on the stream. | [
-0.5278353095054626,
-0.47658589482307434,
0.23634636402130127,
0.42405593395233154,
-0.5103644132614136,
-0.1420273631811142,
1.2808401584625244,
-0.19957157969474792,
0.5732109546661377,
-0.9236712455749512,
0.5145396590232849,
0.8103338479995728,
0.35187390446662903,
0.1683090776205063,... |
Merge merges one or more streams into this stream. | [
-0.8553333282470703,
0.09049765020608902,
0.2874356806278229,
1.2303236722946167,
0.6483203768730164,
-0.09655177593231201,
-0.3415195941925049,
-0.7539342045783997,
0.23515546321868896,
-1.6198450326919556,
-0.8343888521194458,
0.049605924636125565,
-1.7458586692810059,
1.3350869417190552... |
Print prints the data in the stream. | [
0.6089353561401367,
-0.45557698607444763,
0.18540719151496887,
-0.8424383401870728,
0.3489038348197937,
0.5851590633392334,
-0.4904406666755676,
-1.1461641788482666,
-0.7550323009490967,
-1.2791846990585327,
-0.019628532230854034,
1.6346962451934814,
-0.7700504064559937,
0.887143611907959,... |
Process runs a custom processor on the stream. | [
0.4387134611606598,
-0.825728178024292,
0.24845170974731445,
-0.61479651927948,
-0.6292771100997925,
-1.0068565607070923,
0.08090845495462418,
0.014735890552401543,
0.5871616005897522,
-0.5527029633522034,
-0.5021960735321045,
1.4141956567764282,
0.1259036809206009,
1.1241310834884644,
-... |
Wrap all route handlers to handle all errors and sending all HTTP responses Probably a nicer way to do this with Mux middleware | [
-0.613627552986145,
-0.4576323926448822,
0.6081328988075256,
1.0407823324203491,
-0.6063092350959778,
0.5030508041381836,
-0.4610201418399811,
-0.3672347664833069,
0.7117241621017456,
-0.5516773462295532,
0.22618894279003143,
-0.14598476886749268,
0.5040438771247864,
0.215789794921875,
0... |
sanitize prepares a string as a raw string constant. | [
0.6445356607437134,
-0.3423937261104584,
0.2762230634689331,
-1.1283318996429443,
-1.2617954015731812,
-0.9946022033691406,
-0.5187730193138123,
-0.3267512917518616,
-0.2927817702293396,
-0.13890080153942108,
-0.1276848465204239,
0.21592935919761658,
0.4371415078639984,
-1.191920518875122,... |
newTokenResponseWriter will return an instance of the tokenResponseWriter | [
0.03311299532651901,
-0.8186476230621338,
0.04664938524365425,
-0.5572764277458191,
-0.1765550971031189,
-1.6592317819595337,
-0.14699289202690125,
0.24632014334201813,
0.7051848769187927,
-1.451380968093872,
-0.67552250623703,
-0.664891242980957,
-0.265421062707901,
-0.2693072557449341,
... |
Write delegates to the wrapped ResponseWriter | [
-0.7249876260757446,
-0.5484741926193237,
0.20537391304969788,
0.30127230286598206,
1.0349453687667847,
-0.08881940692663193,
0.7613807916641235,
-0.4610890746116638,
0.9772465825080872,
-1.252433180809021,
0.3358474671840668,
0.05960628390312195,
0.3401423394680023,
-0.26114025712013245,
... |
Header delegates to the wrapped ResponseWriter | [
-0.3650658428668976,
-0.6111158728599548,
0.26681533455848694,
0.49829375743865967,
-0.15509910881519318,
0.21020938456058502,
0.22121134400367737,
-0.6387500166893005,
0.9222153425216675,
-1.2147526741027832,
0.4072018563747406,
-0.22718358039855957,
0.4305707514286041,
-1.086514234542846... |
WriteHeader adds a refreshed token to the response and then delegates to the wrapped ResponseWriter | [
-0.2976515293121338,
-1.1601756811141968,
0.4358944892883301,
0.42573127150535583,
0.4199337959289551,
-0.42536091804504395,
-0.507580578327179,
-0.6498132944107056,
0.9292476773262024,
-0.6438575983047485,
-0.4001026153564453,
-0.09815113991498947,
0.33424219489097595,
-0.7200161218643188... |
/ Highly divisible triangular number Problem 12 The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ... Let us list the factors of the first seven triangle numb... | [
0.4897046387195587,
0.27433276176452637,
0.900946319103241,
-0.6681625247001648,
-0.023586049675941467,
-0.09479928761720657,
1.0729042291641235,
-0.1815662533044815,
0.7657942771911621,
-0.042707838118076324,
-0.5278441905975342,
-0.0717373788356781,
0.5445405840873718,
0.5666202306747437... |
NewConfig returns the config | [
0.03386150673031807,
-0.906781017780304,
0.12292766571044922,
0.4181644022464752,
-0.631632387638092,
-0.5612174868583679,
-0.09117452055215836,
1.1280872821807861,
-0.11492972820997238,
-0.021456798538565636,
-0.42478373646736145,
-0.17041118443012238,
-0.19790640473365784,
0.916985392570... |
BaseURL returns the base url for the env | [
0.5679242610931396,
-0.8726435899734497,
0.29432711005210876,
0.7045027613639832,
1.3848084211349487,
1.0299170017242432,
-0.10376914590597153,
1.009337067604065,
-0.6197242140769958,
0.39629024267196655,
0.2195712924003601,
0.5849043130874634,
-0.06467267870903015,
1.0122954845428467,
-... |
IsDevelopment returns whether the env is development or not | [
0.11483342945575714,
0.034308262169361115,
0.4301983118057251,
1.3724493980407715,
0.33153706789016724,
0.902235746383667,
0.23039209842681885,
-0.9074747562408447,
0.6550742387771606,
-0.1791214942932129,
-0.0002827598655130714,
-0.14555680751800537,
0.27507010102272034,
0.836408495903015... |
IsProd returns whether the env is prod or not | [
-0.42267653346061707,
0.4846019148826599,
0.5180180668830872,
1.6329971551895142,
0.031411170959472656,
1.0722482204437256,
-0.13987815380096436,
-0.4774243235588074,
0.684600830078125,
-0.056092411279678345,
0.7619577646255493,
1.0228344202041626,
-0.5546855330467224,
0.005820008460432291... |
newCmdJoin returns "kubeadm join" command. NB. joinOptions is exposed as parameter for allowing unit testing of the newJoinData method, that implements all the command options validation logic | [
0.6007112264633179,
-0.9678440690040588,
0.4363098740577698,
1.1829348802566528,
-0.2183191180229187,
1.2390556335449219,
-0.5986884236335754,
-0.535232424736023,
-0.1325267255306244,
-0.6418642997741699,
1.128986120223999,
-0.02305041439831257,
-1.0263192653656006,
0.9376766085624695,
-... |
addJoinConfigFlags adds join flags bound to the config to the specified flagset | [
0.04458653926849365,
-0.5337770581245422,
0.7057623267173767,
0.8392817974090576,
0.6786222457885742,
1.3993879556655884,
0.07009471952915192,
0.10734004527330399,
-0.5181457996368408,
-0.3569398820400238,
-0.46582740545272827,
-0.3971526622772217,
-1.6909987926483154,
0.2368943989276886,
... |
addJoinOtherFlags adds join flags that are not bound to a configuration file to the given flagset | [
0.35384267568588257,
-1.0217567682266235,
0.5991870760917664,
0.9502541422843933,
0.33281683921813965,
1.2150237560272217,
-0.15355628728866577,
-0.510901927947998,
-0.456472247838974,
-0.8734527230262756,
-0.3547321856021881,
-0.5435929894447327,
-1.9994726181030273,
0.6555644273757935,
... |
newJoinOptions returns a struct ready for being used for creating cmd join flags. | [
-0.015577229671180248,
-0.8751596212387085,
0.3855362832546234,
0.9679516553878784,
-0.4780586063861847,
0.6163457632064819,
-0.23708871006965637,
-0.6991068124771118,
-0.6774874329566956,
-0.5535654425621033,
-0.5067246556282043,
-0.42828306555747986,
-1.6998958587646484,
-0.2397271990776... |
newJoinData returns a new joinData struct to be used for the execution of the kubeadm join workflow. This func takes care of validating joinOptions passed to the command, and then it converts options into the internal JoinConfiguration type that is used as input all the phases in the kubeadm join workflow | [
-0.38725852966308594,
-0.7573192119598389,
0.4285587966442108,
0.7271891236305237,
-0.6280016303062439,
1.0963715314865112,
-0.0007812380790710449,
0.15076252818107605,
0.0012891825754195452,
0.15614117681980133,
0.7697598338127136,
0.18723663687705994,
-1.5523704290390015,
0.3229408264160... |
CertificateKey returns the key used to encrypt the certs. | [
0.3714507818222046,
0.25804394483566284,
0.2778586149215698,
0.7373602390289307,
1.0791643857955933,
0.4357738196849823,
0.6362465620040894,
-0.2169174998998642,
-0.27177101373672485,
0.6934176087379456,
-0.5079620480537415,
-0.26509854197502136,
0.07053416967391968,
-0.28865036368370056,
... |
Cfg returns the JoinConfiguration. | [
0.3243594765663147,
0.010828408412635326,
0.3533308804035187,
0.5957372784614563,
-0.25160351395606995,
-0.23914392292499542,
0.37334951758384705,
1.1503132581710815,
0.26272088289260864,
-0.1409715861082077,
-0.3853605389595032,
-1.2355679273605347,
-1.1853944063186646,
0.2139594107866287... |
DryRun returns the DryRun flag. | [
-0.8195111751556396,
0.07694648206233978,
0.1145503968000412,
-0.08311037719249725,
-0.3520354628562927,
1.2409394979476929,
0.6983464956283569,
0.5099464058876038,
-0.79795902967453,
-1.0394841432571411,
-0.30318108201026917,
0.14671367406845093,
-0.3831924498081207,
0.01855739951133728,
... |
KubeConfigDir returns the path of the Kubernetes configuration folder or the temporary folder path in case of DryRun. | [
-0.7090538740158081,
-0.046722475439310074,
0.4240386486053467,
0.03523575887084007,
-0.6304767727851868,
0.3608197867870331,
0.15815789997577667,
-0.204189270734787,
0.1815979778766632,
0.010054820217192173,
0.6729844212532043,
-0.5635861158370972,
-0.09578893333673477,
1.0659338235855103... |
KubeletDir returns the path of the kubelet configuration folder or the temporary folder in case of DryRun. | [
-0.14529140293598175,
0.26294073462486267,
0.34576576948165894,
-0.11257070302963257,
-0.43919065594673157,
0.3022966682910919,
0.2442406862974167,
-0.6760706901550293,
0.0941709578037262,
0.13748963177204132,
1.4844133853912354,
0.03682888299226761,
-0.024538546800613403,
0.82189249992370... |
ManifestDir returns the path where manifest should be stored or the temporary folder path in case of DryRun. | [
-0.36883121728897095,
-0.3137328028678894,
0.6051667332649231,
0.17781968414783478,
-1.3124682903289795,
0.1079699844121933,
-0.13751116394996643,
0.6950356960296631,
0.8453720808029175,
-1.4318485260009766,
1.1071165800094604,
0.2900761663913727,
0.06317149102687836,
1.2905553579330444,
... |
CertificateWriteDir returns the path where certs should be stored or the temporary folder path in case of DryRun. | [
-0.8817933797836304,
-0.5366928577423096,
0.6728606224060059,
0.24817606806755066,
0.2913971543312073,
0.30051130056381226,
1.5727202892303467,
0.2063966989517212,
0.1309938132762909,
-0.6541439890861511,
0.5677764415740967,
-0.4208330810070038,
-0.33726686239242554,
0.20429150760173798,
... |
TLSBootstrapCfg returns the clusterinfo (kubeconfig). | [
0.5211058855056763,
-0.09208342432975769,
0.16356389224529266,
-0.37013790011405945,
-0.730988621711731,
-0.4219244122505188,
-0.5637130737304688,
-0.38779059052467346,
-0.18431439995765686,
0.7069868445396423,
-0.15059135854244232,
-0.6521908044815063,
0.008451270870864391,
-0.30000844597... |
InitCfg returns the InitConfiguration. | [
-0.0003785150474868715,
-0.8412575125694275,
0.18501418828964233,
-0.31588467955589294,
-0.3073565661907196,
-0.6802722215652466,
0.8681312203407288,
0.7103421092033386,
-0.3332758843898773,
0.08515242487192154,
-1.4459530115127563,
-0.01216518972069025,
-0.5395578742027283,
0.817050576210... |
Client returns the Client for accessing the cluster with the identity defined in admin.conf. | [
-0.04340486600995064,
-0.13196994364261627,
-0.009354001842439175,
0.6489292979240417,
1.0263426303863525,
0.13354288041591644,
0.6871418356895447,
-0.8966876864433289,
0.2716391682624817,
0.39702779054641724,
0.4692988395690918,
1.3326269388198853,
-0.21578340232372284,
-1.233356356620788... |
OutputWriter returns the io.Writer used to write messages such as the "join done" message. | [
-0.6805369257926941,
0.1017979308962822,
0.215630441904068,
0.2647363543510437,
0.44715437293052673,
-0.020132839679718018,
1.413917899131775,
-0.4144100248813629,
-1.125536322593689,
-0.02103913575410843,
0.3622592091560364,
-0.7024459838867188,
-0.8159030079841614,
-0.9922998547554016,
... |
PatchesDir returns the folder where patches for components are stored | [
0.6818817853927612,
-0.7463241815567017,
0.4309895634651184,
-1.2810001373291016,
-0.6310317516326904,
0.6843466758728027,
1.3118160963058472,
-0.06037839874625206,
0.954505205154419,
-2.245593786239624,
0.20679911971092224,
0.17829185724258423,
0.3500601649284363,
0.40270179510116577,
-... |
fetchInitConfigurationFromJoinConfiguration retrieves the init configuration from a join configuration, performing the discovery | [
0.3771750330924988,
-0.7796234488487244,
0.5169257521629333,
0.8938074111938477,
-0.259585976600647,
0.2602385878562927,
0.6386255025863647,
-0.2410586178302765,
-0.18086758255958557,
0.11967228353023529,
-0.8895876407623291,
-0.15158091485500336,
-0.2808156907558441,
-0.08709274977445602,... |
fetchInitConfiguration reads the cluster configuration from the kubeadmadmin configMap | [
0.0977516621351242,
-0.2979941964149475,
0.23059137165546417,
0.10207633674144745,
0.10612532496452332,
-0.2650144696235657,
-0.6487576365470886,
-0.7028307318687439,
-0.043829772621393204,
0.8947204351425171,
-0.1433507800102234,
0.9640946984291077,
-0.07622141391038895,
0.467597961425781... |
GetConfiguration returns the configuration settings | [
-0.8117738962173462,
-0.03612978383898735,
0.4656258225440979,
0.4674343168735504,
0.5784599781036377,
-1.8840738534927368,
0.8766801953315735,
-0.17982187867164612,
0.08196502178907394,
0.8109048008918762,
-1.05448317527771,
-1.1124736070632935,
-0.6381151676177979,
0.2752003073692322,
... |
NewDeleteSharedDashboardResponse instantiates a new DeleteSharedDashboardResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed. | [
0.8087134957313538,
0.17425337433815002,
0.25947824120521545,
0.8345384001731873,
0.5254818201065063,
-0.2683866024017334,
1.8234257698059082,
0.6475874781608582,
0.48780643939971924,
-0.40303799510002136,
-0.6872300505638123,
-0.252334862947464,
-0.8474596738815308,
0.25680848956108093,
... |
NewDeleteSharedDashboardResponseWithDefaults instantiates a new DeleteSharedDashboardResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set. | [
0.8231490850448608,
0.5780342221260071,
0.29887300729751587,
0.8208502531051636,
1.4956707954406738,
-0.6192227602005005,
0.9159488677978516,
0.5031399130821228,
0.6647287607192993,
-0.8390698432922363,
-1.0288422107696533,
-1.3087687492370605,
-0.8725296258926392,
-0.0005347036640159786,
... |
GetDeletedPublicDashboardToken returns the DeletedPublicDashboardToken field value if set, zero value otherwise. | [
0.7705116868019104,
1.1798073053359985,
0.3559327721595764,
0.8280123472213745,
-0.218922421336174,
0.3220285475254059,
0.978816568851471,
0.8639479279518127,
-0.5236417651176453,
-2.295651912689209,
-0.39992767572402954,
0.5257574915885925,
0.17415526509284973,
0.11011350154876709,
0.30... |
GetDeletedPublicDashboardTokenOk returns a tuple with the DeletedPublicDashboardToken field value if set, nil otherwise and a boolean to check if the value has been set. | [
0.3408401906490326,
1.3528966903686523,
0.5396221876144409,
0.9199603796005249,
0.04479207098484039,
0.10743723809719086,
0.8734480738639832,
1.2122867107391357,
-0.8388845920562744,
-1.8176724910736084,
-1.0250320434570312,
0.261054128408432,
0.6756930351257324,
0.2743249237537384,
0.07... |
HasDeletedPublicDashboardToken returns a boolean if a field has been set. | [
0.9385374784469604,
1.386133074760437,
0.36676397919654846,
0.17289488017559052,
0.5097625255584717,
0.20642870664596558,
0.56877601146698,
1.116070032119751,
-0.8059510588645935,
-1.8357477188110352,
-1.1815277338027954,
0.2602267265319824,
0.11639605462551117,
0.2903563380241394,
-0.03... |
SetDeletedPublicDashboardToken gets a reference to the given string and assigns it to the DeletedPublicDashboardToken field. | [
0.826223611831665,
0.6789374947547913,
0.3641279339790344,
-0.25818175077438354,
-0.4870491027832031,
0.48034852743148804,
0.7093902230262756,
0.9700640439987183,
-0.6697736382484436,
-2.136587381362915,
-0.7006904482841492,
1.2337760925292969,
0.1763874590396881,
-0.4236220121383667,
0.... |
MarshalJSON serializes the struct using spec logic. | [
0.25918298959732056,
-0.38238516449928284,
0.14824220538139343,
-0.18096104264259338,
-0.0529361218214035,
-0.32223188877105713,
0.7403388619422913,
-0.17518135905265808,
0.6532479524612427,
-0.7173995971679688,
-0.7469438910484314,
0.337753027677536,
0.4169560372829437,
0.0696427002549171... |
UnmarshalJSON deserializes the given payload. | [
-0.3795377314090729,
0.38149139285087585,
0.3215300440788269,
-1.7776495218276978,
-1.090027928352356,
-0.44120660424232483,
-0.6612616777420044,
-0.24255777895450592,
0.5988753437995911,
-0.2859729528427124,
0.08901388943195343,
-0.767743706703186,
0.4577064514160156,
-0.500046968460083,
... |
RandNormalVector returns a random observation. | [
-1.0183016061782837,
-0.3039577603340149,
0.19639845192432404,
-0.19371242821216583,
-1.1276417970657349,
0.6711546182632446,
0.5748240351676941,
-0.10152987390756607,
0.7009085416793823,
-0.3074086606502533,
0.46727076172828674,
0.8617687225341797,
0.04937396198511124,
-0.6577184796333313... |
RandIntFromDist randomly selects an item using a discrete PDF. TODO: This is not optimal but should work for testing. | [
-0.39678555727005005,
-0.8073597550392151,
0.3050006330013275,
-0.5415948629379272,
-0.30704009532928467,
-0.6446811556816101,
-0.006255900487303734,
-0.33966171741485596,
1.1081430912017822,
-0.7493293285369873,
0.33994144201278687,
-0.02133534662425518,
0.1620122641324997,
-1.07806205749... |
RandIntFromLogDist random selects an item using a discrete PDF. Slice dist contains log probabilities. | [
-0.36589938402175903,
-0.9097923040390015,
0.3441128730773926,
-0.6932915449142456,
-0.6681628227233887,
-0.3490704894065857,
-0.5801885724067688,
-0.40066322684288025,
1.1017484664916992,
-0.4320526719093323,
-0.06200344115495682,
0.51297926902771,
0.19434267282485962,
-1.3578107357025146... |
/ Objective := generate a random matrix of given size parameters : r : number of rows c : number of columns limit : max value return : Mat Objective | [
-0.34915444254875183,
0.4856356978416443,
0.5637192130088806,
-0.09316573292016983,
0.015908168628811836,
0.4791446030139923,
0.5439900159835815,
-0.20482881367206573,
0.2754279673099518,
-0.3120887279510498,
0.583258867263794,
0.014784274622797966,
0.3286187946796417,
-0.6799811124801636,... |
/ Objective := generate a Identity matrix of given size parameters : s : number of columns or rows return : Mat Objective | [
-0.6573625802993774,
0.4098866879940033,
0.42749375104904175,
0.3675497770309448,
-0.1720769852399826,
0.018816914409399033,
0.8667412996292114,
-0.2865541875362396,
0.8631103038787842,
-0.9352924227714539,
-0.26544100046157837,
-0.12952099740505219,
0.5043469667434692,
-0.5501317381858826... |
/ Objective := print the matrix in readable format parameters : mat : the matrix to print | [
-0.12580831348896027,
0.08952734619379044,
0.6004784107208252,
-0.6551445722579956,
-0.31553876399993896,
0.7601404786109924,
0.04424295201897621,
-1.0856094360351562,
-0.6893482804298401,
0.6362269520759583,
1.288469672203064,
0.7943488955497742,
1.030220866203308,
0.30020394921302795,
... |
/ Objective := add scaler value from matrix. parameters : s : the scalar value to add. return : mat : the modified matrix. | [
-0.43739449977874756,
-0.33493566513061523,
0.3969270884990692,
-0.35413846373558044,
-1.3858287334442139,
-0.038506459444761276,
-0.4466054439544678,
-1.0957001447677612,
0.17024561762809753,
0.20134751498699188,
0.8175929188728333,
0.36155518889427185,
0.5016960501670837,
0.2700835168361... |
/ Objective := add matrix from matrix parameters : mat : the matrix to add. return : mat : the modified matrix. | [
-0.598297655582428,
-0.11115847527980804,
0.45031866431236267,
-0.015983520075678825,
-0.46509048342704773,
0.7695925831794739,
0.11050361394882202,
-0.7263215184211731,
0.6870257258415222,
0.050842516124248505,
1.1970168352127075,
0.5570084452629089,
0.1989573985338211,
0.0106651782989501... |
/ Objective := subtract scaler value from matrix parameters : s : the scalar to subtract. return : mat : the modified matrix. | [
-0.501201868057251,
-0.8438596725463867,
0.4615752696990967,
-0.24585357308387756,
-1.67313551902771,
-0.00483626127243042,
0.4806894361972809,
-0.19797855615615845,
-0.24092569947242737,
-0.07122056186199188,
0.4032835364341736,
0.11874962598085403,
0.3776731789112091,
-0.3465037643909454... |
/ Objective := subtract matrix from matrix parameters : mat : the matrix to subtract. return : mat : the modified matrix. | [
-0.32053348422050476,
-0.02958599664270878,
0.569599986076355,
-0.1656612902879715,
-0.987869143486023,
0.6972230076789856,
0.6624478697776794,
0.18016135692596436,
0.18702808022499084,
-0.07157360017299652,
0.6176286935806274,
0.29595863819122314,
0.27519485354423523,
-0.6431000828742981,... |
/ Objective := return the transpose of the given matrix | [
-0.2918109893798828,
0.5316323041915894,
0.5453031063079834,
0.18248432874679565,
-0.2995068430900574,
-0.9373043775558472,
0.5753920078277588,
-0.27842962741851807,
-0.2824578583240509,
0.9655961394309998,
0.37106555700302124,
-1.2000823020935059,
0.06186898052692413,
-0.5656973719596863,... |
/ Objective := Multiply scaler value with matrix parameters : s : the scalar to multiply. return : mat : the modified matrix. | [
-0.8972516655921936,
-0.5564977526664734,
0.38957393169403076,
0.06955414265394211,
-1.4561582803726196,
-0.4029684364795685,
-0.421374648809433,
-0.9317930340766907,
0.11934523284435272,
0.3707547187805176,
0.709563136100769,
-0.3120436370372772,
0.7711719870567322,
0.4930427670478821,
... |
/ Objective := Multiply scaler value with matrix parameters : mat : the mat to multiply with. return : mat : the modified matrix. | [
-1.0441814661026,
-0.10509219020605087,
0.5567041039466858,
-0.0491165891289711,
-1.2518564462661743,
0.06933656334877014,
-0.6070677638053894,
-1.210286259651184,
-0.16729429364204407,
0.8099838495254517,
0.8279996514320374,
-0.57306969165802,
0.3054423928260803,
0.9852517247200012,
-0.... |
/ Objective := Divide scaler value with matrix parameters : s : the scalar to divide. return : mat : the modified matrix. | [
-0.7336394786834717,
-0.7579253315925598,
0.37578433752059937,
-0.039502132683992386,
-1.0364590883255005,
-0.051233455538749695,
0.393560528755188,
-0.9422625303268433,
-0.13491861522197723,
-0.0633915364742279,
0.7253596782684326,
-0.15942499041557312,
0.5372901558876038,
0.3157398402690... |
/ Objective := Find inverse of a matrix if possible | [
-0.5349910855293274,
0.48348167538642883,
0.5117161870002747,
1.2433432340621948,
-0.49669596552848816,
-0.325345903635025,
0.2882702648639679,
-0.22471536695957184,
-0.9442647099494934,
0.31860023736953735,
0.26389241218566895,
-0.4734005630016327,
-0.7192842364311218,
-0.7655091881752014... |
/ Objective := Find the determinent of the Matrix normally split the matrix until its 2 X 2 and then recursively call back. parameters : mat : matrix on which to operate. return : deter : dterminant of the matrix float32 value. | [
0.4733335077762604,
0.37135446071624756,
0.6053465008735657,
0.19236546754837036,
-0.28719109296798706,
0.35649919509887695,
0.5947399735450745,
-0.769114077091217,
0.04233785346150398,
-0.7650637626647949,
0.18137991428375244,
-0.44471320509910583,
0.23809602856636047,
0.12641431391239166... |
/ Objective := Find the Adjoint Matrix parameters : mat : matrix on which to operate. return : mat : adjoint matrix deter : dterminant of the matrix float32 value. | [
0.26922282576560974,
0.6083877682685852,
0.5155132412910461,
-0.525092601776123,
-0.031446073204278946,
1.0700416564941406,
0.6891613006591797,
-1.4601233005523682,
-0.5871207118034363,
-0.7395076751708984,
0.8280010223388672,
-0.05063791945576668,
-0.7528775930404663,
0.118790403008461,
... |
/ Objective := Split the matrix into sub matrix based on the placement of the cofficient. parameters : mat : matrix on which to operate. row : the row placement of the cofficient. col : the column placement of the cofficient. return : a : the cofficient of the caller matrix mat : the sub matrix, after removing the row ... | [
0.8183971643447876,
0.6883634924888611,
0.4032837748527527,
-0.5236081480979919,
0.04164443910121918,
-0.2999752163887024,
1.598766803741455,
0.34778285026550293,
-0.07791419327259064,
0.18379192054271698,
0.5368356108665466,
0.6365792751312256,
0.015408707782626152,
-0.6174824833869934,
... |
Handles an individual parser hint | [
0.02829335257411003,
-0.5195915102958679,
0.4021066129207611,
0.24136102199554443,
0.34237873554229736,
0.08356788009405136,
-0.6317131519317627,
-0.3016173541545868,
-0.38640356063842773,
-0.6979187726974487,
-0.29779404401779175,
-0.09999847412109375,
-1.0683202743530273,
-0.217127919197... |
Handles a 'group' parser hint Succeeds if all parser hints match | [
0.05173460766673088,
0.1933295726776123,
0.3020879328250885,
0.6423426866531372,
0.6839321255683899,
0.8293150663375854,
-0.26158347725868225,
-0.6379351615905762,
-1.1896597146987915,
-0.07204636186361313,
0.030126072466373444,
-0.3512500822544098,
-1.153264045715332,
0.1956745982170105,
... |
Handles a 'rule' parser hint | [
1.318838119506836,
-0.012488923966884613,
0.40793198347091675,
0.18329893052577972,
1.4930002689361572,
0.13708442449569702,
-0.4270944595336914,
0.0879281759262085,
0.39053666591644287,
-0.682368278503418,
0.18413379788398743,
-0.37684470415115356,
-0.6394733190536499,
0.2448744773864746,... |
Handles an 'any' parser hint Succeeds if any parser hints match | [
0.1542436182498932,
-0.4803534150123596,
0.3639858365058899,
0.7312100529670715,
0.7106226682662964,
0.4366655647754669,
-1.1614729166030884,
-0.12520426511764526,
-0.9928796887397766,
-0.5903067588806152,
-0.01744796521961689,
-0.7011562585830688,
-1.0069509744644165,
0.2167915552854538,
... |
///////////////////////////////////// DB readonly methods TODO(nlacasse): Use prepared statements, otherwise we have an extra roundtrip to the db, which is slow on cloud sql. | [
-0.7305974960327148,
-0.22622033953666687,
0.7801026105880737,
0.04797511175274849,
-0.39923107624053955,
-0.4384749233722687,
-0.5484090447425842,
-0.3800150454044342,
-0.6471184492111206,
0.3138987421989441,
0.1420990526676178,
-0.02248132973909378,
0.17077673971652985,
0.965880930423736... |
Only default bundles can be retrieved by slug for now. | [
0.3665851056575775,
0.20375512540340424,
0.054373059421777725,
0.5686780214309692,
0.7664927840232849,
-0.20990021526813507,
-0.48823514580726624,
-0.440401166677475,
-0.33605533838272095,
-0.6499683260917664,
0.5287613272666931,
-0.5112800598144531,
-0.6798194646835327,
0.6977366805076599... |
All default bundles have nonempty slugs. Check just in case. | [
0.6500234603881836,
0.32321298122406006,
0.294644296169281,
0.5052226781845093,
0.9972872138023376,
0.035166431218385696,
-0.21703016757965088,
0.5196093320846558,
-0.9152125120162964,
-0.3060514032840729,
0.28957635164260864,
-0.5778682827949524,
-0.6817960739135742,
1.328731656074524,
... |
GetBundleByLinkIdOrSlug retrieves a BundleData object linked to by a BundleLink with a particular id or slug. Id is tried first, slug if id doesn't exist. Note: This can fail if the bundle is deleted between fetching BundleLink and BundleData. However, it is highly unlikely, costly to mitigate (using a serializable tra... | [
-0.2960934042930603,
-1.195414662361145,
0.24745343625545502,
-0.09721215814352036,
0.014571581967175007,
-0.8931292295455933,
0.08989620208740234,
0.039315350353717804,
0.0008334883023053408,
-0.8444516658782959,
0.7833696603775024,
0.7808985710144043,
0.08148244768381119,
0.7321350574493... |
GetDefaultBundleList retrieves a list of BundleLink objects describing default bundles. All default bundles have slugs. | [
-0.49899178743362427,
0.3859018385410309,
0.139486163854599,
0.8242428302764893,
1.415461778640747,
-0.41629090905189514,
-0.2648688852787018,
0.2949189245700836,
-0.5979802012443542,
-0.5141451954841614,
-0.7211518883705139,
0.12685421109199524,
-0.3126283884048462,
0.8114046454429626,
... |
////////////////////////////////// DB write methods | [
-1.762220859527588,
-0.7018939852714539,
1.0864962339401245,
0.2359316051006317,
0.9627267122268677,
0.40211257338523865,
0.8449859619140625,
0.324558824300766,
-0.7021331191062927,
0.509867787361145,
-0.8031588196754456,
-0.8971232175827026,
-1.0727187395095825,
0.36192429065704346,
-0.... |
StoreBundleLinkAndData creates a new bundle data for a given json byte slice if one does not already exist. It will create a new bundle link pointing to that data. All DB access is done in a transaction, which will retry up to 3 times. Both the link and the data are returned, or an error if one occured. Slugs are curre... | [
-0.6863273978233337,
-0.3846728205680847,
0.30639204382896423,
-0.3259720802307129,
-0.10337930917739868,
0.014926254749298096,
0.4737982451915741,
0.026050878688693047,
0.03477274626493454,
-0.7813931107521057,
-0.7576966285705566,
0.2786372900009155,
-0.5408896207809448,
-0.1102516502141... |
ReplaceDefaultBundles removes slugs and default flags from all existing default bundles and inserts all bundles in newDefBundles as default bundles. Each bundle in newDefBundles must have a unique nonempty slug. | [
0.4057256579399109,
0.21732978522777557,
0.42081189155578613,
1.1153373718261719,
1.1798090934753418,
0.2655720114707947,
0.5827369689941406,
0.16762611269950867,
-0.352017879486084,
0.19678297638893127,
-0.8920934200286865,
-0.25165778398513794,
-0.6743844747543335,
0.6837890148162842,
... |
//////////////////////////////////////// Transaction support Runs function txf inside a SQL transaction. txf should only use the database handle passed to it, which shares the prepared transaction cache with the original handle. If txf returns nil, the transaction is committed. Otherwise, it is rolled back. txf is retr... | [
0.856017529964447,
0.4662303030490875,
0.6821349859237671,
-0.23065967857837677,
-0.1447661817073822,
-0.3080514371395111,
-0.3061749339103699,
0.6348497271537781,
0.034042730927467346,
0.5482252836227417,
-0.6243589520454407,
-0.11538736522197723,
-0.990677535533905,
-0.7895339131355286,
... |
////////////////////////////////////////// Helper methods randomLink creates a random link id for a given hash. | [
0.30005136132240295,
-0.19962835311889648,
0.31261777877807617,
-0.910654604434967,
0.1664753407239914,
-0.2744029462337494,
-0.7451173067092896,
-0.17974220216274261,
0.5938017964363098,
-0.8053995966911316,
-0.24641767144203186,
-0.37234067916870117,
-0.7662384510040283,
0.66654211282730... |
waitTimeout waits for the waitgroup for the specified max timeout. Returns true if waiting timed out. | [
-0.42132195830345154,
1.1141588687896729,
0.3532675802707672,
0.1005895584821701,
-0.3019814193248749,
0.3971683382987976,
-0.8507418632507324,
0.6298022866249084,
-0.970714271068573,
0.1813797652721405,
-0.5589030981063843,
-1.458269476890564,
-0.3330712616443634,
-0.5000733137130737,
-... |
Print format & print log | [
0.1336897909641266,
-1.539644479751587,
0.31756189465522766,
0.053246378898620605,
-0.40598630905151367,
-0.19209042191505432,
-0.7549821734428406,
-0.5767061710357666,
0.10893406718969345,
-0.49034538865089417,
1.3384732007980347,
1.0719166994094849,
0.6433092951774597,
1.2660578489303589... |
XXX_OneofWrappers is for the internal use of the proto package. | [
-0.8683516383171082,
0.18757401406764984,
0.3127884864807129,
0.32401785254478455,
0.2218254655599594,
0.17011336982250214,
0.1014440506696701,
-0.21650563180446625,
1.2567812204360962,
-0.36039498448371887,
0.415141224861145,
-0.1402573585510254,
-0.47066307067871094,
0.3434690535068512,
... |
Prefix of service kv store | [
0.5659325122833252,
0.4634583592414856,
0.044227857142686844,
0.04178322106599808,
-0.7363806366920471,
-0.7486514449119568,
-1.572708010673523,
-0.366821825504303,
1.0447498559951782,
0.17334775626659393,
0.19936040043830872,
0.6615402102470398,
0.24440328776836395,
0.1887078583240509,
... |
~flagdemo opt str "test string" ayy lmao | [
0.7200799584388733,
0.11738713085651398,
0.2727811932563782,
0.3155221939086914,
0.4156022071838379,
0.5241007208824158,
0.17361964285373688,
-0.7804961800575256,
0.06821953505277634,
-0.52567458152771,
0.09844070672988892,
0.18736384809017181,
-0.40055063366889954,
-0.426030695438385,
-... |
NewAttacker returns a new Attacker with default options which are overridden by the optionally provided opts. | [
-0.6398195624351501,
-0.6474316120147705,
0.5962018966674805,
0.554905354976654,
-1.0030312538146973,
-0.7122024297714233,
-0.6600456237792969,
0.3246883451938629,
0.08626438677310944,
-0.8396400809288025,
0.2720739543437958,
0.32464325428009033,
-0.7437467575073242,
-0.2391849160194397,
... |
Workers returns a functional option which sets the initial number of workers an Attacker uses to hit its targets. More workers may be spawned dynamically to sustain the requested rate in the face of slow responses and errors. | [
0.05829073116183281,
0.3575350046157837,
0.6523117423057556,
-0.1251133531332016,
1.134918212890625,
0.24186107516288757,
0.7527964115142822,
-0.80034339427948,
0.012366300448775291,
-0.4386714696884155,
-0.05732427537441254,
0.41881802678108215,
0.19253091514110565,
-1.2274292707443237,
... |
MaxWorkers returns a functional option which sets the maximum number of workers an Attacker can use to hit its targets. | [
-0.14908283948898315,
0.3947103023529053,
0.434479296207428,
0.12630921602249146,
0.8054826855659485,
0.11308113485574722,
-0.04537869989871979,
-0.21769897639751434,
0.1384846270084381,
-0.15163929760456085,
-0.13469961285591125,
0.546541154384613,
-0.06631512939929962,
-1.570809721946716... |
Connections returns a functional option which sets the number of maximum idle open connections per target host. | [
-0.8238366842269897,
-0.10653720051050186,
0.5790280103683472,
-0.14347238838672638,
0.8918883204460144,
-0.11756772547960281,
0.1045321598649025,
-0.04912463575601578,
0.39516735076904297,
-0.6743444800376892,
-0.14167232811450958,
0.0279548242688179,
-0.034404247999191284,
-1.49923300743... |
MaxConnections returns a functional option which sets the number of maximum connections per target host. | [
-0.2183399200439453,
0.0841389074921608,
0.4671563506126404,
0.4985937476158142,
0.4980536103248596,
-0.4005493223667145,
-0.0928914025425911,
-0.16219095885753632,
0.5459709167480469,
-0.30346181988716125,
0.25322970747947693,
-0.1759515255689621,
0.3975881338119507,
-1.0050033330917358,
... |
ChunkedBody returns a functional option which makes the attacker send the body of each request with the chunked transfer encoding. | [
0.9120877981185913,
0.11446165293455124,
0.37891876697540283,
-0.27983060479164124,
0.6215065717697144,
0.17611752450466156,
-0.3757069706916809,
-1.1221628189086914,
0.38904818892478943,
-0.29236891865730286,
-0.6743375658988953,
0.6608272790908813,
0.03457651287317276,
-0.349941909313201... |
Redirects returns a functional option which sets the maximum number of redirects an Attacker will follow. | [
0.2811678647994995,
0.3400612473487854,
0.43082520365715027,
0.3814999759197235,
0.4734688699245453,
-0.4918280243873596,
0.9339479804039001,
-0.4148419201374054,
1.755927324295044,
-1.1691969633102417,
-0.4891184866428375,
-0.13576915860176086,
0.7830966711044312,
-1.4766871929168701,
-... |
Proxy returns a functional option which sets the `Proxy` field on the http.Client's Transport | [
0.6392660140991211,
0.6557079553604126,
0.34156474471092224,
-0.6352633833885193,
0.5893726348876953,
-0.41088566184043884,
-0.09760197252035141,
-0.32772472500801086,
-0.18937860429286957,
-0.18693776428699493,
-0.719197690486908,
0.02678447961807251,
0.003946560900658369,
-0.940413475036... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.