text stringlengths 7 2.39k | embedding listlengths 768 768 |
|---|---|
LoadPrivateKey loads a private key from file in keystorePath | [
0.002257108688354492,
-0.16721072793006897,
0.3218650221824646,
0.25710567831993103,
-1.0213044881820679,
0.22559845447540283,
-0.48878753185272217,
-0.7535250186920166,
0.12787476181983948,
0.6519063711166382,
-0.6724046468734741,
-0.2853407859802246,
-0.41656485199928284,
-0.443441092967... |
GeneratePrivateKey creates a private key and stores it in keystorePath | [
-0.5680590867996216,
0.20586925745010376,
0.2304045855998993,
0.4667990505695343,
0.03987598791718483,
0.6407780051231384,
0.254040002822876,
-0.44604769349098206,
0.19309614598751068,
-0.7779645919799805,
-1.1287055015563965,
-0.6366714835166931,
-0.0664876252412796,
-0.09586169570684433,... |
Pprint prettyprints a compilation error. | [
1.0009287595748901,
0.04035799577832222,
0.29041120409965515,
-0.6598153114318848,
-0.3317505717277527,
-0.17090581357479095,
0.26563525199890137,
-0.3360193371772766,
-0.37682321667671204,
-0.38040319085121155,
1.1523888111114502,
1.0981724262237549,
0.33115431666374207,
0.166099503636360... |
what about local syms? | [
0.8513584136962891,
-0.6367706060409546,
0.02582535147666931,
0.024481287226080894,
0.07393334805965424,
-0.6129142642021179,
1.2574023008346558,
0.24956612288951874,
0.9035641551017761,
-0.6638593077659607,
-1.1774346828460693,
0.408843457698822,
1.4024245738983154,
0.7367544174194336,
... |
Return a new instance of Finder | [
0.07683634012937546,
-1.3540303707122803,
0.4143146276473999,
0.6354053020477295,
-0.5452373027801514,
0.36214905977249146,
-0.28795406222343445,
-1.3075969219207764,
-0.7247905135154724,
-1.1844618320465088,
-0.43108874559402466,
-0.5806615352630615,
-0.5747010111808777,
0.581613540649414... |
Check if need to exclude this file/folder or not. | [
-0.293861985206604,
0.27662113308906555,
0.8151170611381531,
1.0417029857635498,
-0.9949992895126343,
1.1790238618850708,
-0.07279153168201447,
-0.09921352565288544,
-0.49516284465789795,
-0.3451550006866455,
0.016129586845636368,
-0.1848406046628952,
-0.898129940032959,
1.36702299118042,
... |
Check if file name is valid | [
0.9575718641281128,
-0.927406907081604,
0.5716163516044617,
1.6300586462020874,
-0.4964423179626465,
1.2712180614471436,
-0.07246973365545273,
0.3263179659843445,
-0.7298779487609863,
0.027529990300536156,
0.8782907724380493,
-0.6546437740325928,
-0.03139251843094826,
0.32783693075180054,
... |
Search Files recursively and filter name that we need to exclude and invalid name. | [
-0.10110967606306076,
0.0420340821146965,
0.562593936920166,
0.7754872441291809,
-1.8169198036193848,
0.5124285221099854,
-0.08209896832704544,
-0.5308724641799927,
-0.11129864305257797,
0.06387553364038467,
-0.5017966628074646,
-0.695137083530426,
-0.3285159468650818,
0.8818827867507935,
... |
Find word in line By string | [
1.3023226261138916,
-1.2934890985488892,
0.3239150047302246,
0.43778181076049805,
-0.3934016823768616,
-0.2778899073600769,
0.47229263186454773,
-0.41865429282188416,
-1.1760377883911133,
0.1349288374185562,
0.12737321853637695,
0.28432175517082214,
-0.8702548742294312,
0.4478507936000824,... |
Find word in line By regex | [
0.6715406775474548,
-0.7519615888595581,
0.5462485551834106,
0.5527905225753784,
0.19497686624526978,
-0.08047010749578476,
0.9167396426200867,
0.5895118713378906,
-1.1336196660995483,
0.06119198724627495,
0.47797858715057373,
0.1366153061389923,
-0.8867753148078918,
0.2898203432559967,
... |
Read line by line and send lines to check | [
0.5038565993309021,
-0.8118847608566284,
0.37352821230888367,
0.8716860413551331,
0.875281572341919,
0.31375226378440857,
-0.22827911376953125,
-0.4016796350479126,
-0.9966339468955994,
-0.09894759953022003,
0.7410889863967896,
-0.34120675921440125,
-0.276134729385376,
0.06434237211942673,... |
Find Text in line | [
0.7670298218727112,
-0.9279173016548157,
0.4666905403137207,
0.5308984518051147,
-0.24600251019001007,
-0.31275370717048645,
-0.25348275899887085,
-0.8525538444519043,
-0.8271942734718323,
-0.22230477631092072,
0.06253153085708618,
-0.5588287711143494,
-0.5563369393348694,
-0.0037977211177... |
ReadMsgAPI is For reading message history of a channel using HTTP REST API | [
-0.8428370356559753,
-0.3688529133796692,
0.7141464948654175,
-0.4474007189273834,
0.25952067971229553,
-0.6954669952392578,
-0.9841375350952148,
-0.4656730592250824,
-0.6365658044815063,
0.30638375878334045,
1.0166467428207397,
1.4939652681350708,
-0.5003547668457031,
0.5131107568740845,
... |
Info logs an info message with context | [
0.4898183345794678,
-0.408210813999176,
0.5742244720458984,
-0.03707151487469673,
0.5188552141189575,
-0.5905985236167908,
-0.6402915716171265,
-0.5019186735153198,
-0.13967229425907135,
0.058735355734825134,
-0.6651451587677002,
0.9544818997383118,
0.42966988682746887,
0.5765212774276733,... |
InfoWithFields logs an info message with context | [
0.7435711622238159,
0.02634149231016636,
0.44863224029541016,
-0.3704070448875427,
0.25881338119506836,
-0.1373315453529358,
-0.6672809720039368,
-0.7926109433174133,
-0.4166554808616638,
-0.404035359621048,
-1.0426968336105347,
0.19198603928089142,
0.47997087240219116,
0.4390961527824402,... |
Debug logs a debug message with context | [
0.7609214782714844,
0.1507743000984192,
0.44210904836654663,
-0.18808087706565857,
0.5223444104194641,
-0.4023069143295288,
-0.3507348895072937,
-0.006104826927185059,
1.2068935632705688,
-0.4720059335231781,
-0.16225218772888184,
0.8706884384155273,
-0.15570281445980072,
0.783289909362793... |
DebugWithFields logs an info message with context | [
0.731231689453125,
0.20997051894664764,
0.4334394931793213,
-0.6663519740104675,
0.4117871820926666,
-0.14825844764709473,
-0.6859555244445801,
-0.8241981267929077,
0.15793505311012268,
-0.9118139147758484,
-0.8066813945770264,
0.062224943190813065,
0.367584228515625,
0.8315669298171997,
... |
RunBuildSteps runs all of the configured build steps | [
-0.11989542841911316,
-0.68047696352005,
0.17086143791675568,
1.955507516860962,
0.6754132509231567,
1.1353681087493896,
1.0146877765655518,
-0.5925291776657104,
-0.1065157800912857,
-1.4087368249893188,
-1.1265850067138672,
-0.3025026023387909,
0.2779967486858368,
1.4008207321166992,
-0... |
GetLastHead returns hash of last head | [
0.29998579621315,
-0.8016318082809448,
0.6268690228462219,
-0.10236182808876038,
-0.06493999063968658,
0.016437964513897896,
-0.5955526232719421,
-0.9159867167472839,
0.3639611303806305,
0.5884811878204346,
-0.10512766987085342,
-0.6296127438545227,
-0.6823650002479553,
-1.5273758172988892... |
SaveLastHead saves last head hash | [
0.25409963726997375,
-0.6213887333869934,
0.21779030561447144,
-0.2266443520784378,
0.6287500858306885,
0.08824355155229568,
-0.3047686219215393,
-0.5143653154373169,
0.10250477492809296,
0.5896410942077637,
-0.8506056070327759,
-0.8112455606460571,
-0.848258376121521,
-0.8920357823371887,... |
Init initializes the pipeline provisioner | [
0.9051798582077026,
-0.7856922149658203,
0.3233611583709717,
-0.225007563829422,
0.2166418582201004,
0.43713101744651794,
-0.1806384176015854,
0.9574794769287109,
-0.6661309599876404,
0.0735362246632576,
-0.2020869255065918,
-0.24780158698558807,
0.2073962241411209,
0.3090032935142517,
0... |
Provision runs the pipeline provisioning task | [
0.3399493396282196,
-0.49022820591926575,
0.183319553732872,
1.107282042503357,
0.3077974319458008,
0.20695072412490845,
0.48479145765304565,
0.7519309520721436,
-0.22493138909339905,
0.7108166813850403,
0.09690984338521957,
-0.036552030593156815,
0.9065178036689758,
0.3069189190864563,
... |
QueryUser returns data for a specific Torn user, by ID. QueryUser can take multiple additional options for addition data. See | [
-0.6246983408927917,
0.863479733467102,
0.01864153891801834,
0.22844403982162476,
0.13554860651493073,
-0.2459804117679596,
-0.2612091302871704,
-1.138454794883728,
0.180623397231102,
-1.536385416984558,
-0.7818893194198608,
0.34025993943214417,
-0.49499446153640747,
-1.0388603210449219,
... |
IsSpan will return true if this name was created by newResourceScopeSpan | [
-0.2297200709581375,
-0.720653772354126,
0.15822479128837585,
0.9535778760910034,
-0.83206707239151,
0.4059465825557709,
0.5919328331947327,
-1.0034440755844116,
1.8207440376281738,
-0.20798730850219727,
-0.313795268535614,
0.18388840556144714,
0.5179568529129028,
0.5953814387321472,
-0.... |
mulInt64WithOverflow checks for overflow in multiplying two int64s. See | [
-0.31424930691719055,
-0.29972216486930847,
0.2733438014984131,
1.1955517530441284,
-0.8811452984809875,
0.5153906941413879,
-0.3931724429130554,
-1.8291985988616943,
1.2044416666030884,
-0.4527930021286011,
0.8472811579704285,
-0.13306497037410736,
-0.36972054839134216,
-0.127462282776832... |
only used by string_helper.go | [
1.003902554512024,
-0.9265624284744263,
0.5551983714103699,
-0.3456663191318512,
-0.5117936730384827,
-0.668906033039093,
0.24373790621757507,
0.025279290974140167,
-0.31271687150001526,
0.021856294944882393,
-0.10947243124246597,
0.6544491648674011,
0.41696450114250183,
0.2517691552639007... |
only used by jvm.go | [
0.017566591501235962,
0.5941179394721985,
0.5494502186775208,
0.9218254089355469,
-0.8376172184944153,
0.04929192364215851,
0.7423686981201172,
-0.282647967338562,
-0.5637757778167725,
0.6988362073898315,
0.14669689536094666,
0.8201891779899597,
0.3479500710964203,
1.0002493858337402,
-0... |
WithLimitReachedHandler will configure the Middleware to use the given LimitReachedHandler. | [
0.25494688749313354,
-0.20923060178756714,
0.41203173995018005,
0.2830589711666107,
-0.9919847846031189,
0.7917919754981995,
-0.14572258293628693,
0.06292496621608734,
0.40551066398620605,
-0.5961105227470398,
-0.7532119750976562,
-0.14644870162010193,
0.804619550704956,
0.3564642369747162... |
DefaultLimitReachedHandler is the default LimitReachedHandler used by a new Middleware. | [
0.20801576972007751,
-0.46190714836120605,
0.17610962688922882,
0.4522089958190918,
-0.524142861366272,
0.9799785614013672,
-0.23817500472068787,
-0.10828909277915955,
0.047135766595602036,
-0.6199500560760498,
-0.6994481682777405,
-0.3088279664516449,
-0.6746814250946045,
-0.9186307787895... |
WithExcludedKey will configure the Middleware to ignore key(s) using the given function. | [
-0.15060900151729584,
0.7597731351852417,
0.34618306159973145,
0.7397359609603882,
-1.4610710144042969,
0.5566403269767761,
-0.23946189880371094,
0.4556047320365906,
0.552113950252533,
0.3498639762401581,
-0.27098894119262695,
0.1191180944442749,
-0.38451164960861206,
0.9763785600662231,
... |
WithKeyGetter will configure the Middleware to use the given KeyGetter. | [
-0.448035329580307,
-0.08781161159276962,
0.3841691315174103,
0.5661848187446594,
-1.4048404693603516,
-0.07267408818006516,
-0.8080022931098938,
-0.05480556562542915,
0.4179525375366211,
0.08845820277929306,
-0.49378928542137146,
-0.4606666564941406,
0.5341702103614807,
1.348804235458374,... |
GetIPKey extracts IP from request and returns hashed IP to use as store key. | [
-1.4208910465240479,
0.15485544502735138,
0.36964771151542664,
0.8926588892936707,
-0.36193639039993286,
-0.7065778970718384,
-0.35985079407691956,
0.12293151021003723,
0.19623231887817383,
0.26892727613449097,
0.3408415615558624,
-1.5096967220306396,
0.2968839704990387,
-1.066054940223693... |
GetIP returns IP address from request. If options is defined and TrustForwardHeader is true, it will lookup IP in XForwardedFor and XRealIP headers. | [
-0.48567405343055725,
0.5708726048469543,
0.3796921670436859,
0.48048219084739685,
0.09963147342205048,
-0.4904441833496094,
0.24681326746940613,
-0.4910604953765869,
0.09719167649745941,
0.0027216642629355192,
1.557568073272705,
-0.5482226610183716,
0.478412389755249,
-1.1138718128204346,... |
GetIPWithMask returns IP address from request by applying a mask. | [
-1.3701426982879639,
-0.6195152401924133,
0.44233936071395874,
1.571004033088684,
-0.4314464330673218,
-0.6526028513908386,
-0.11260019242763519,
-1.0273041725158691,
0.6211921572685242,
-0.14960826933383942,
1.0006098747253418,
-0.44857141375541687,
0.6969022750854492,
-1.5203158855438232... |
randomFloat returns a random floating point number for the given attribute range | [
-0.1913195550441742,
-0.7447685599327087,
0.46783187985420227,
-0.3689046800136566,
0.16314733028411865,
0.19434136152267456,
1.025046706199646,
0.36963117122650146,
-0.027173759415745735,
-1.0864492654800415,
0.41600501537323,
0.22242100536823273,
-0.07103975117206573,
0.1877790242433548,... |
randomInt returns a random integer value from the range | [
-0.8806384205818176,
-0.45894360542297363,
0.3454446494579315,
-0.920129120349884,
-0.4951956868171692,
0.6300275921821594,
-0.1442095786333084,
-0.6092362403869629,
-0.12177722901105881,
-1.1057382822036743,
0.3646204471588135,
-0.11182266473770142,
-1.0764538049697876,
-0.68206387758255,... |
randomGender picks a gender with a 50/50 chance | [
-0.708066463470459,
-0.6293803453445435,
0.1285785734653473,
-0.11055265367031097,
-0.7903023958206177,
0.7667626738548279,
-0.027666807174682617,
0.5115159749984741,
0.6260375380516052,
-0.7105984091758728,
-0.21041858196258545,
-0.06253884732723236,
-0.41406136751174927,
0.83984965085983... |
PlantsToJSON stores the current edible plants in the world into a json file | [
-1.16818106174469,
-1.8705954551696777,
0.46839791536331177,
-0.4433124363422394,
-0.6425859332084656,
0.28607267141342163,
0.8372424840927124,
0.19321410357952118,
-0.4338892102241516,
0.9348461031913757,
-1.645517110824585,
0.44616833329200745,
0.47831037640571594,
-0.3225041925907135,
... |
BeingsToJSON stores the current living beings to a file | [
-1.4414241313934326,
-1.851832628250122,
0.43362554907798767,
-0.644292950630188,
-0.34852051734924316,
0.7531673312187195,
-0.25950080156326294,
0.0019900850020349026,
-0.7185260653495789,
-0.25742480158805847,
-0.9089943766593933,
0.5082077980041504,
-0.08146683126688004,
0.5853961706161... |
IsOutOfBounds check if a location is inside the terrain zone. Returns true if location outside the bounds. | [
-0.2364087700843811,
-0.39115476608276367,
0.491811066865921,
-0.005507487338036299,
-0.6578267812728882,
0.5711354613304138,
0.49629801511764526,
-0.9192830920219421,
0.06659873574972153,
0.2616368234157562,
-0.00279394187964499,
-0.12347898632287979,
-0.38713136315345764,
-0.045364350080... |
ParseHexColorFast converts HEX color string to RGBA. | [
0.37319278717041016,
-0.753119170665741,
0.37052446603775024,
-0.2561907470226288,
0.230926051735878,
-0.4693351984024048,
-0.2641092538833618,
0.5947728157043457,
-0.4001995921134949,
-0.8878083825111389,
-0.019266273826360703,
-0.7523077726364136,
0.10381525754928589,
1.3683781623840332,... |
CalculateZoneLimits returns the upper bound values for zones if ratios are given of how much area each zone covers The number of zones can vary but sum(ratios) must equal to 1.0 | [
0.5019599795341492,
0.4953739643096924,
0.5298782587051392,
1.9897066354751587,
-0.8866076469421387,
0.3316325843334198,
1.644142985343933,
-0.17377786338329315,
1.5110379457473755,
-0.13204367458820343,
0.009562024846673012,
-0.2964089810848236,
-0.4471290707588196,
0.7602353096008301,
... |
CreateCarnivores generates instances of beings and fills them with random attributes Provide the number of beings to create Note that the beings are added to the world and previously created beings are kept | [
-0.8243867754936218,
-0.08540517836809158,
0.5045523047447205,
-0.4090566337108612,
0.8241389989852905,
0.5262212157249451,
-0.5230578184127808,
-0.3929736316204071,
-0.7598580121994019,
-0.6597221493721008,
-0.9579723477363586,
-0.2866062521934509,
-0.6147063374519348,
0.8583213686943054,... |
CreateFishies generates random instances of beings that live in water | [
-0.6842159032821655,
-0.19399940967559814,
0.42878174781799316,
-0.8237670660018921,
0.35208699107170105,
1.5692170858383179,
0.7432441711425781,
-0.5599023699760437,
0.3953262269496918,
-0.2941029667854309,
-0.5101177096366882,
0.3886403441429138,
-0.6174513101577759,
0.9413480758666992,
... |
CreateFlyers generates instances of random flying beings | [
-1.052945613861084,
0.368521124124527,
0.26298266649246216,
-0.24667252600193024,
0.5144799947738647,
1.225209355354309,
-0.5925033688545227,
-0.8018379211425781,
-0.2813187539577484,
-0.5990350842475891,
-0.17750881612300873,
-0.479238361120224,
-1.1689332723617554,
1.9742752313613892,
... |
CreateRandomCarnivore returns a new being with random parameters (places it onto the map) | [
-0.8933120965957642,
-1.5999044179916382,
0.2980557382106781,
-0.4120861887931824,
0.2852934002876282,
0.4333772361278534,
-1.1997805833816528,
-0.4261009097099304,
-0.5205719470977783,
-0.4629374146461487,
-0.6497886776924133,
0.12942351400852203,
-0.5847773551940918,
0.19559378921985626,... |
CreateRandomFlyer generate an instance of a being that can fly | [
-0.6692580580711365,
-0.23014208674430847,
0.4384599030017853,
0.3951902687549591,
-0.4147121012210846,
1.2920211553573608,
-0.46070998907089233,
-0.4746599495410919,
0.5044643878936768,
-0.9232125282287598,
-0.5786507725715637,
-0.23632173240184784,
-0.7914167046546936,
1.4598538875579834... |
CreateRandomFish generates an instance of a being that lives in water | [
-0.513100802898407,
-0.05337977781891823,
0.4189683794975281,
-0.23326724767684937,
-0.22625795006752014,
1.8141881227493286,
0.6511267423629761,
-0.24479860067367554,
0.8564269542694092,
-0.7499798536300659,
-0.5497626066207886,
0.7158044576644897,
-0.6580494046211243,
0.3805016279220581,... |
ThrowBeing randomly places the a being onto the map (onto walkable surfaces) Use with caution as it adjusts the beings habitat to that spot | [
0.09845785051584244,
-0.3899591565132141,
0.38970494270324707,
-0.6316236257553101,
0.4109187722206116,
1.0160614252090454,
0.3178006112575531,
0.0528465211391449,
0.9248307347297668,
0.23509477078914642,
0.30369892716407776,
-0.17813333868980408,
0.04541373625397682,
1.0887134075164795,
... |
ThrowPlant randomly places a plant (food) onto the map | [
0.20688527822494507,
-0.39745640754699707,
0.03947550803422928,
-0.793141782283783,
-0.9715521335601807,
0.4493744969367981,
-0.4274791479110718,
0.48807698488235474,
0.7650303244590759,
-0.052160315215587616,
-0.6226183176040649,
-0.39663493633270264,
-0.34965217113494873,
-0.136558458209... |
LaunchPlant randomly places a plant onto water (will become a water plant) | [
0.4712631106376648,
-0.3780575394630432,
0.018694430589675903,
-0.5637533664703369,
-1.241267442703247,
1.2019362449645996,
0.19156552851200104,
0.6255663633346558,
1.2813202142715454,
-0.7582828998565674,
-0.3243417739868164,
0.8586233258247375,
-0.5275947451591492,
0.04382503777742386,
... |
UpdateBeing executes the next action for the being Returns action done as string and UUIDs of objects affected by action | [
-1.9525675773620605,
-1.003817081451416,
0.47971683740615845,
0.4630974531173706,
0.3750225603580475,
-0.0973299965262413,
-0.13942472636699677,
-0.41309690475463867,
0.1879388839006424,
1.5104336738586426,
-0.5756625533103943,
0.10650962591171265,
-0.24885213375091553,
-0.0755266919732093... |
Wander moves a being similar to Brownian Motion Implementation reference: I have adjusted the following parameters: the time step (delta t) is the speed of each creature the previous position is the current position of the being the next position is recalculated until a valid one is found | [
-0.6371424794197083,
-0.09078897535800934,
0.6406633257865906,
0.5485832095146179,
0.5088441371917725,
-0.16508285701274872,
0.4608398973941803,
-0.6431908011436462,
-0.40357843041419983,
0.2857257127761841,
-0.40245360136032104,
-0.15279388427734375,
-0.9872782826423645,
0.981623530387878... |
canPlaceBeing checks if a being can move to that spot Returns false if the spot is already occupied by another being or if the surface type does not allow to walk on it (e.g. water or mountain peaks) | [
-0.0056779333390295506,
0.1427779197692871,
0.5502952933311462,
0.22262783348560333,
0.2740819752216339,
0.9400789737701416,
1.0409290790557861,
-0.206869438290596,
-0.6041578650474548,
0.5188441276550293,
0.5774584412574768,
-0.38308244943618774,
-0.8524895906448364,
1.0201016664505005,
... |
UpdatePlant updates the attributes for plant. It can grow, produce seeds or wither Returns action done as string and list of UUIDs of objects affected by action | [
-1.2885491847991943,
-1.4432083368301392,
0.355483740568161,
0.43858233094215393,
-0.6900778412818909,
-0.3668292164802551,
0.7257965207099915,
0.4182162582874298,
0.2408459335565567,
1.118220329284668,
-0.7030658721923828,
-0.10175003856420517,
0.02213733270764351,
-0.763700008392334,
-... |
DisperseSeeds plants seeds within some range from plant Returns UUIDs of newly planted plants | [
-0.29631200432777405,
-0.8102043271064758,
0.19242818653583527,
0.5108697414398193,
-0.3106759190559387,
0.28020504117012024,
0.48885461688041687,
-0.04513590410351753,
0.7293704152107239,
0.28766384720802307,
-0.4691808521747589,
-0.505740761756897,
0.1839601993560791,
-1.6670490503311157... |
UpdatePlantSpot updates the spot and area with the given plant ID. If uuid.Nil is given, it removes the plant from the world Does not check if spot is valid, use canPlacePlant for that | [
-0.3847888112068176,
-0.8961336612701416,
0.5334068536758423,
-0.13499578833580017,
-1.4102613925933838,
0.08447962999343872,
0.3516015410423279,
1.2593358755111694,
0.7917243242263794,
1.2623573541641235,
0.558285653591156,
-0.3677651584148407,
-0.49426698684692383,
-0.5600929260253906,
... |
MutateValue produces a new value from the parent value It uses a normal distribution with standard deviation of mutation rate and it does not overflow attribute range | [
0.40827614068984985,
0.23300769925117493,
0.6117876768112183,
0.7396467924118042,
-1.0785801410675049,
0.872168242931366,
0.48965466022491455,
-0.7113056182861328,
0.4519943594932556,
-0.4089016020298004,
0.5703191161155701,
0.3913446366786957,
0.7497767210006714,
0.3451896905899048,
-0.... |
Mutate values produces a value between first two parameters with a standard deviation of mutation rate | [
0.30934035778045654,
0.1243966594338417,
0.708806574344635,
0.8391611576080322,
-0.08554968982934952,
0.427740216255188,
-0.6449089646339417,
-0.9798559546470642,
-0.5471487045288086,
0.09631621837615967,
0.42475005984306335,
0.5814133882522583,
0.3637966811656952,
0.0066045173443853855,
... |
MidpointCircleAt creates a circle with the provided coordinates as the middle point and the radius. Returns a list of locations for the filled circle (including midpoint). If circle extends over world edges, then those locations are filtered out | [
-0.240154430270195,
-1.0328869819641113,
0.5602911710739136,
-0.7694547176361084,
-0.23695485293865204,
-0.5635323524475098,
-0.48164552450180054,
-1.0667473077774048,
0.32349202036857605,
0.7988733053207397,
0.4683445394039154,
-0.33265483379364014,
-0.43771642446517944,
-0.38259547948837... |
canPlacePlant checks if a plant with certain size can grow on the given location Couple of rules: the plant center must be in a habitable zone the growing area is perceived as a circle around the center, with plant.GrowthArea being the circle diameter for simplicity sake the radius is rounded (meaning we get diameter +... | [
0.5630958676338196,
-0.2899070680141449,
0.6532129049301147,
0.26078468561172485,
-0.727005124092102,
0.4456943869590759,
1.032605528831482,
0.3561685383319855,
0.40661999583244324,
0.316692978143692,
-0.0987786129117012,
-0.06254395842552185,
-0.5650414228439331,
-0.03809916973114014,
-... |
Checks if a water plant can be placed onto the coordinates Same rules apply as for place plant, only that the surface must be water | [
0.7139468789100647,
-0.2566593289375305,
0.216490238904953,
0.017025668174028397,
-0.9228060841560364,
2.022976875305176,
1.1466747522354126,
0.0992838442325592,
-0.0036654220893979073,
0.43856745958328247,
0.5738799571990967,
0.15428391098976135,
-0.7771895527839661,
0.2652651369571686,
... |
New returns new terrain generated using Perlin noise | [
1.1008796691894531,
-1.341475248336792,
0.04887133464217186,
-0.32771942019462585,
-1.3168550729751587,
0.8462237119674683,
-0.637161135673523,
-1.0972861051559448,
-0.5474313497543335,
-0.30292782187461853,
-0.18116268515586853,
-0.09390134364366531,
-0.7707560062408447,
0.733595192432403... |
Provide food generates random plants across the terrain | [
-0.04525202512741089,
0.10222175717353821,
0.07098659873008728,
0.43357592821121216,
-0.4271814525127411,
0.8008195161819458,
0.23217208683490753,
-0.14887785911560059,
0.21165622770786285,
-0.21127401292324066,
0.050674840807914734,
-0.647852897644043,
-0.08236183226108551,
0.836415529251... |
randomPlant returns a food object with random parameters | [
0.11736851930618286,
-0.9709823727607727,
0.16510267555713654,
-0.2380508929491043,
-1.0209476947784424,
-0.06581604480743408,
-0.8026731610298157,
-0.16326339542865753,
0.2135581225156784,
-0.8895427584648132,
-0.5464282035827637,
0.6904020309448242,
-0.9988317489624023,
0.110665418207645... |
GetTerrainImage is a getter for the colored terrain (zones) | [
-0.5392615795135498,
-0.12540124356746674,
0.19498276710510254,
-0.18086117506027222,
-0.0712345615029335,
0.4395666718482971,
0.3440840542316437,
-0.6990161538124084,
-0.28176337480545044,
0.4409417510032654,
0.20699778199195862,
0.5156208276748657,
0.4447917342185974,
-0.4283755123615265... |
GetBeings is a getter for all living beings | [
-0.17885762453079224,
-0.3295252323150635,
0.5768574476242065,
0.41669410467147827,
0.5343806147575378,
0.7208727598190308,
-1.8936302661895752,
-0.7143520712852478,
0.07444281876087189,
-0.4175548553466797,
-0.1159212589263916,
0.3522721529006958,
-0.4828880727291107,
1.468612551689148,
... |
GetFood is a getter for all the edible food | [
-0.03990638256072998,
-0.16792599856853485,
0.4348188638687134,
1.4763524532318115,
0.3999026417732239,
-0.7588951587677002,
-0.9561190605163574,
0.3403082489967346,
-0.5369939804077148,
-0.4015865921974182,
-0.4577101171016693,
0.5353384613990784,
0.17353443801403046,
0.4044419229030609,
... |
GetSize returns the world bounds (width and height) | [
-0.12983515858650208,
-0.44143781065940857,
0.557872474193573,
0.505974531173706,
-0.524776041507721,
0.4331377446651459,
0.33848053216934204,
-1.0914028882980347,
0.12451611459255219,
-0.26083874702453613,
-0.3443077504634857,
0.20999282598495483,
-1.0640528202056885,
1.645054578781128,
... |
GetSurfaceColorAtSpot returns the color of the surface (aka the zone) at the desired location | [
-0.4350622296333313,
-0.9912009835243225,
0.24846361577510834,
-0.7404584288597107,
-0.09190935641527176,
0.23913989961147308,
1.18058180809021,
-0.6148820519447327,
-0.32043778896331787,
0.25601163506507874,
0.3086225986480713,
0.15855401754379272,
0.3582502603530884,
0.3501323461532593,
... |
GetSurfaceNameAt returns the common name of the surface at the provided location Panics if location is out of bound | [
-0.09636031836271286,
-0.4750286340713501,
0.6191976070404053,
-0.4214732050895691,
-0.8093177080154419,
0.8697861433029175,
0.9978270530700684,
-1.19949471950531,
0.24489407241344452,
0.48108696937561035,
-0.1935584843158722,
-0.26463574171066284,
0.08370842784643173,
0.4207199811935425,
... |
GetBeingAt returns the ID of the being at the provided location Returns uuid.Nil if no being present | [
-0.730304479598999,
-0.4369395673274994,
0.6326397657394409,
-1.0088257789611816,
0.759160041809082,
-0.06406246870756149,
-0.4929773211479187,
0.558529257774353,
0.287718802690506,
1.13490629196167,
0.33693927526474,
0.3275769054889679,
-0.5169433951377869,
-0.21727406978607178,
-0.7405... |
GetFoodWithID returns an item from the food list with given ID. Returns nil if ID does not exist | [
0.6969342231750488,
-0.7047414183616638,
0.4753989577293396,
1.0935752391815186,
-0.051536690443754196,
-1.3014576435089111,
-1.5680928230285645,
-0.5421677827835083,
0.5432609915733337,
-0.11381818354129791,
-0.4880128800868988,
0.4364951550960541,
0.03953076899051666,
0.8511556386947632,... |
IsHabitable returns if the provided spot allows movement and seeding plants | [
-0.47020450234413147,
-0.7240929007530212,
0.20681074261665344,
1.2305418252944946,
-0.28594738245010376,
0.4298867881298065,
0.7090467214584351,
-0.09914659708738327,
-0.01781335286796093,
0.9513143301010132,
0.5892936587333679,
-0.6708786487579346,
-0.21835504472255707,
-0.71370643377304... |
SenseActionFor uses the sense range of the being to decide on its next action Rules: 1. priorities are in this order: drinks, food, mating, stress 2. if any value is above threshold prefer its action, in case many are above threshold follow the previous order 3. if stress is above threshold and can not eat/drink or mat... | [
-1.0459848642349243,
-1.3175221681594849,
0.6011195182800293,
-0.3059167265892029,
0.007513791788369417,
-0.023708993569016457,
-0.3887634873390198,
-1.0405038595199585,
1.0143331289291382,
0.193209707736969,
0.5750288963317871,
0.3148602545261383,
0.1670536994934082,
-0.03817968815565109,... |
Distance returns the euclidean distance between two locations. To speed up we leave out the square root | [
0.20713095366954803,
-1.2213290929794312,
0.19196990132331848,
-0.051977261900901794,
-0.4898609519004822,
0.11280111223459244,
-0.6780841946601868,
0.892973780632019,
0.6806002855300903,
0.5459964871406555,
0.5893996357917786,
0.2977254390716553,
-0.061005838215351105,
-0.5611187815666199... |
MoveBeingToLocation moves the being to the provided location | [
-1.4472780227661133,
-0.39620304107666016,
0.3857997953891754,
-0.45331060886383057,
1.2012674808502197,
0.022384868934750557,
-0.0637168437242508,
-0.08463918417692184,
-0.546878457069397,
1.2222567796707153,
-1.0800594091415405,
0.40548408031463623,
0.4544091820716858,
0.1948737949132919... |
QuenchThirst tries to drink water if being is located 1 field away from water Returns true when being was able to drink, otherwise returns false | [
0.1559509038925171,
-0.17182840406894684,
0.3627423346042633,
-0.1169549897313118,
0.24865765869617462,
0.5667572617530823,
-0.26928526163101196,
-0.8636767268180847,
-0.2581939399242401,
-0.263084352016449,
-0.10186951607465744,
-0.5471254587173462,
-1.2541954517364502,
-0.528581440448761... |
QuenchHunger tries to eat food if being is located on top of or next to food For food selection see method RandomWorld.MoveBeingTo() Returns true if being ate | [
-0.090878926217556,
-0.35570842027664185,
0.5565993189811707,
0.8269656896591187,
0.10988913476467133,
0.1851133108139038,
-0.1715693175792694,
-1.4149447679519653,
-0.2508133351802826,
-0.08397114276885986,
-0.173060342669487,
0.030930371955037117,
-0.7526900768280029,
0.9010998606681824,... |
AdjustStressFor updates the stress value for the being The highest stress (255) is achieved when all basic necessities (food, drinks, mating) are at 255 and being is outside its natural habitat zone. The basic necessities all give the same amount of stress (multiplier of 0.1667), being outside the natural habitat doubl... | [
-0.3680551052093506,
-0.33244580030441284,
0.43405118584632874,
-0.18794797360897064,
-0.8429745435714722,
-0.04228045791387558,
0.16376273334026337,
-0.44265472888946533,
0.3250620663166046,
-0.010716663673520088,
-0.34572747349739075,
0.7245028018951416,
-0.02245757356286049,
0.386299580... |
AdjustNeeds increases the being needs for the current epoch Higher values lower need for food / drinks: Durability Higher values increase need for food / drinks: Speed Stress Size | [
-0.9948654174804688,
-0.009356389753520489,
0.554103672504425,
-0.4862534701824188,
-0.10693559795618057,
0.05321427807211876,
-0.33340415358543396,
0.12939658761024475,
-0.9346557855606079,
-0.2613168954849243,
-0.49563413858413696,
0.9149046540260315,
-0.3113495111465454,
0.6845620274543... |
MateBeing tries to mate two adjacent beings with opposite genders and produce offspring The mutation rate is taken from the initiator Returns IDs of children produced | [
-0.894347071647644,
0.3153158724308014,
0.4141029417514801,
0.7895941734313965,
-0.19089965522289276,
0.1506187915802002,
-1.0446183681488037,
-0.5282703638076782,
-0.7457301616668701,
0.6565062403678894,
-0.7972805500030518,
-0.5487052202224731,
-0.8450976014137268,
0.7763311862945557,
... |
The init function reads all schema descriptors with runtime code (default values, validators, hooks and policies) and stitches it to their package variables. | [
0.012224702164530754,
-0.3973427712917328,
0.2568233609199524,
0.4391254484653473,
0.49543920159339905,
-0.31710413098335266,
-0.5216326713562012,
0.5024438500404358,
-0.47731539607048035,
-0.10358253866434097,
0.080186627805233,
0.5231166481971741,
0.3529464304447174,
0.5291982293128967,
... |
find entity of a class with x value as the argument | [
-0.5865285396575928,
-0.7817662954330444,
0.5717126131057739,
-0.3180519640445709,
0.27008920907974243,
0.7433192729949951,
0.6166692972183228,
-0.9760556817054749,
0.1872403621673584,
0.11277303099632263,
0.02809940278530121,
0.458528608083725,
0.8227913975715637,
0.6606066823005676,
-0... |
count entities belonging to a class | [
-0.4218733310699463,
-1.523016333580017,
0.2503901422023773,
-0.12381529808044434,
1.0316383838653564,
0.2006370723247528,
0.6873878836631775,
-0.1623236984014511,
0.13942916691303253,
-0.6904709339141846,
-0.16297772526741028,
-0.2178175449371338,
0.8234198093414307,
0.6580487489700317,
... |
list entities belonging to a class | [
-0.5048831701278687,
-1.5038487911224365,
0.12504146993160248,
-0.45463985204696655,
1.058578372001648,
-0.1442962884902954,
0.027460426092147827,
0.1228756308555603,
0.8213934898376465,
-0.11598201096057892,
0.29102206230163574,
0.24407958984375,
0.4252671003341675,
1.156661033630371,
-... |
Complete the hourglassSum function below. | [
-0.06024070829153061,
-0.2291347086429596,
0.20817716419696808,
1.1150184869766235,
0.21003136038780212,
0.20581784844398499,
1.1433730125427246,
-0.2576530873775482,
0.23078566789627075,
0.7751185894012451,
-1.190920352935791,
-0.3031669855117798,
-0.9228396415710449,
-0.8337687849998474,... |
/ ID returns the namespace name | [
-0.18775388598442078,
-0.8017309308052063,
0.2212715893983841,
0.4070669710636139,
-0.9824802279472351,
-0.7194936871528625,
-1.60123610496521,
-1.1137213706970215,
1.8620835542678833,
-0.2722620368003845,
-0.4741193652153015,
-0.19874517619609833,
0.10819561779499054,
0.35180366039276123,... |
/ Hash returns a fnv hasve of the Secret Data | [
0.08136696368455887,
0.28029197454452515,
0.11614049226045609,
1.1749674081802368,
-0.26305583119392395,
0.14951792359352112,
-1.4905877113342285,
-0.011698775924742222,
-0.8105185031890869,
-1.1377067565917969,
-1.1364169120788574,
0.7718667387962341,
-0.10363711416721344,
-0.457997709512... |
/ Watch returns a k8s watch.Interface that subscribes secretes that change in any namespace | [
0.8287727236747742,
-0.29908454418182373,
0.15409378707408905,
0.857698380947113,
-0.06137721985578537,
0.6089977025985718,
-1.1991634368896484,
-1.010381817817688,
0.5777259469032288,
-0.7725823521614075,
-1.077700138092041,
1.5319792032241821,
0.45281165838241577,
0.5904479026794434,
-... |
/ Get returns a list of Secrets in form of WatchableResources interfaces and a k8s resource version. If any error occurs it is returned from k8s client. | [
-0.3982327878475189,
-0.13566192984580994,
0.1829807460308075,
0.5056995749473572,
0.06509162485599518,
-0.3309224247932434,
-0.6084650754928589,
-0.5698482990264893,
-0.12032081186771393,
1.0592657327651978,
-0.5079013705253601,
0.5278165936470032,
0.18272235989570618,
-0.0256246104836463... |
/ ConvertToModel converts an api.Secret k8s secret to a WatchableResource | [
-0.1379782259464264,
-0.05455127730965614,
0.3550736606121063,
0.22481223940849304,
-0.07247141748666763,
-0.381705641746521,
-0.7018640637397766,
-0.3215584456920624,
0.529483437538147,
0.5597573518753052,
-1.4200290441513062,
0.2675853669643402,
0.7053699493408203,
-0.17855709791183472,
... |
/ Watchable tests where the api.Secret inputed has the Name of of the configured APIKeySecret | [
0.04740007966756821,
0.08548582345247269,
0.1967564970254898,
0.04877240210771561,
0.1645825207233429,
-0.4777943789958954,
-0.34533995389938354,
-0.6794842481613159,
-0.3501858711242676,
0.4545656442642212,
-1.3258056640625,
0.2251124382019043,
-0.30297133326530457,
0.01542460173368454,
... |
/ CacheAdd adds Secret to the caches Secret bucket | [
-0.19813671708106995,
-0.06077158451080322,
0.49213820695877075,
0.9047262668609619,
0.004444321151822805,
0.4510035514831543,
-0.7243555784225464,
0.16096171736717224,
0.37822312116622925,
-0.07937613129615784,
-1.3020108938217163,
0.37978458404541016,
0.2049783170223236,
0.56999242305755... |
/ CacheRemove removes the Secret using the id given from the Cache's Secrets bucket | [
-0.6265395283699036,
0.4332957863807678,
0.4694948196411133,
0.5331441164016724,
-0.31666359305381775,
-0.49641990661621094,
-0.6775063872337341,
0.7807836532592773,
-0.09485601633787155,
0.8914146423339844,
-1.390851616859436,
0.232870951294899,
-0.7834156155586243,
-0.01172645203769207,
... |
/ CacheCompare compares the given Secret with the Secret in the cache, if equal returns true otherwise returns false. If cache value does not exist return false. | [
-0.6908339262008667,
-0.3583657443523407,
0.6112847924232483,
0.41312286257743835,
-0.6464133262634277,
0.2008197158575058,
-0.9092739224433899,
-0.2874198257923126,
0.13113519549369812,
0.9160960912704468,
-0.7071759700775146,
-0.3422420918941498,
-0.27446016669273376,
0.5547490119934082,... |
/ IDFromObject returns the Namespace name from the api.Secret | [
-0.6988908648490906,
-0.731584906578064,
0.46890977025032043,
0.8134567737579346,
-0.45521509647369385,
-0.18736715614795685,
-0.7872529625892639,
-1.8597208261489868,
1.5938174724578857,
-0.04776889830827713,
-1.1142683029174805,
0.5245873332023621,
-0.24528804421424866,
-0.67597734928131... |
NewArtistDAO the contruct of ArtistDao returns the a new instance | [
0.0907125324010849,
-0.7582947015762329,
0.45448797941207886,
-0.3083474934101105,
-0.9453783631324768,
0.27832677960395813,
1.0767860412597656,
1.474946141242981,
0.060054268687963486,
-0.9096294641494751,
-0.7230032682418823,
0.31047704815864563,
-0.1775127649307251,
0.15571889281272888,... |
getColletion retrieves the collection of dao to manage | [
0.046273261308670044,
0.524130642414093,
0.430925190448761,
0.13570013642311096,
1.1826711893081665,
-0.7662208676338196,
0.44600310921669006,
0.40535274147987366,
0.7542498707771301,
-0.3648858666419983,
0.11652100831270218,
-0.624298095703125,
0.6401302814483643,
0.18289808928966522,
0... |
Create inserts data into database | [
0.11527138203382492,
1.1214244365692139,
0.2655446231365204,
0.5709037184715271,
0.8145052194595337,
1.2782821655273438,
-0.9534546732902527,
-0.10913228988647461,
-1.7255715131759644,
-0.3389968276023865,
-0.5667244791984558,
-1.512407660484314,
-0.6710817217826843,
0.3193640112876892,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.