text stringlengths 7 2.39k | embedding listlengths 768 768 |
|---|---|
EnsureOneOf() clears strval and value if strval is not one of the selected options. | [
0.14537376165390015,
0.20351123809814453,
0.0644710436463356,
0.1283641904592514,
0.5164842009544373,
-0.5156539678573608,
-0.3618036210536957,
-1.484285831451416,
1.1085158586502075,
-0.39984118938446045,
0.5001740455627441,
0.8235679268836975,
-0.6308106780052185,
0.39505165815353394,
... |
You are given an undirected weighted graph of n nodes (0indexed), represented by an edge list where edges[i] = [a, b] is an undirected edge connecting the nodes a and b with a probability of success of traversing that edge succProb[i]. Given two nodes start and end, find the path with the maximum probability of success... | [
0.3275020718574524,
0.19421151280403137,
0.9921907782554626,
0.678062379360199,
-0.7402629256248474,
0.23326990008354187,
0.6813445687294006,
0.4997333884239197,
-0.7441004514694214,
0.5419265031814575,
-0.2872155010700226,
-0.27115872502326965,
-0.41157716512680054,
0.2395566701889038,
... |
Fizzbuzz prints and return an array of any size you pass to it/ when the integer is divisible by 3 it prints "Fizz" When the int is divisible by 5 it prints "Buzz" when the int is divisible by 3 and 5 it prints "FizzBuzz" | [
-0.016186678782105446,
0.29330742359161377,
0.694359540939331,
0.6064384579658508,
-0.1568557769060135,
-0.06962070614099503,
-0.005199197679758072,
-0.3857164680957794,
0.27384674549102783,
-0.3426506519317627,
-0.34893494844436646,
0.1485055387020111,
-2.051269054412842,
1.09820950031280... |
Returns the specified autoscaler. | [
0.172930508852005,
-0.5756292343139648,
0.09216196835041046,
0.43165603280067444,
-0.7756739258766174,
-0.91241854429245,
-0.5695513486862183,
-1.2360498905181885,
-0.7980844378471375,
-0.14676335453987122,
0.1889449656009674,
0.6020509004592896,
0.08141618967056274,
0.33067047595977783,
... |
NewCustomerTokenWithContactDetails constructs a new CustomerTokenWithContactDetails | [
1.2738559246063232,
-1.1155712604522705,
0.2956101894378662,
-0.11917479336261749,
-0.6300354599952698,
0.34325918555259705,
0.6221498250961304,
-0.22843703627586365,
-0.3698479235172272,
-0.8282172679901123,
-0.7875099182128906,
-0.8473628163337708,
0.3666958510875702,
0.3009735941886902,... |
ListenAndServe calls the http.ListenAndServe function with the proxy handler | [
0.328201025724411,
-0.7043929696083069,
0.38736361265182495,
-0.8867781758308411,
0.1654934287071228,
-0.039504680782556534,
-1.1891199350357056,
1.1097331047058105,
-0.5993828177452087,
-0.6311625242233276,
-0.5709465146064758,
-0.685225784778595,
-0.06269314885139465,
0.37013909220695496... |
SetupProfile sets the active profile | [
0.6804075837135315,
-0.36105412244796753,
0.34695762395858765,
0.9331840872764587,
0.8417632579803467,
0.09233367443084717,
1.3171658515930176,
-0.382854700088501,
0.2564355432987213,
0.7863172292709351,
-0.5772539973258972,
-0.8704794645309448,
-0.9463808536529541,
-0.6004247665405273,
... |
NewMockCodeGenerator creates a new mock instance | [
-0.8950487971305847,
-0.34543198347091675,
0.21844971179962158,
0.498410165309906,
-1.1028661727905273,
-0.7519711852073669,
0.3925391435623169,
0.5409489870071411,
-0.24566709995269775,
-0.8093540668487549,
-0.16942864656448364,
-0.9530410766601562,
-1.02401864528656,
1.2059943675994873,
... |
EXPECT returns an object that allows the caller to indicate expected use | [
-0.861703097820282,
-0.4291759729385376,
0.7921438217163086,
-0.6770954132080078,
-0.7516936659812927,
-0.04710957035422325,
0.08051283657550812,
-0.4222961366176605,
0.2527257204055786,
-0.6747549772262573,
-0.003219333942979574,
-0.014756414107978344,
-0.5511468052864075,
-0.198623463511... |
Generate mocks base method | [
-1.662596583366394,
-0.4882044792175293,
0.155982106924057,
0.8513950705528259,
0.8955173492431641,
1.0151833295822144,
0.02846766822040081,
-0.7089573740959167,
-1.4426065683364868,
-0.8150755763053894,
-0.78913813829422,
-1.2925752401351929,
-0.4734515845775604,
1.9538503885269165,
-0.... |
Generate indicates an expected call of Generate | [
-0.7872574925422668,
0.9456124305725098,
0.46883633732795715,
0.2844598889350891,
-0.021076995879411697,
0.9306755065917969,
-0.8893917798995972,
-1.0863409042358398,
0.08478110283613205,
-0.4367358684539795,
0.09206751734018326,
-0.4711528718471527,
0.008150901645421982,
1.279502630233764... |
NewTraceExporterProcessor creates processor that feeds SpanData to the given trace exporters. | [
0.4683291018009186,
-0.038021400570869446,
0.2072247713804245,
-0.10880444943904877,
-0.2558801770210266,
-0.008910244330763817,
0.26843273639678955,
-0.4929552972316742,
0.5251637697219849,
-0.22474698722362518,
-0.062163133174180984,
0.3346177041530609,
-0.663088321685791,
-0.29412281513... |
itob returns an 8byte big endian representation of v. | [
-0.6330212950706482,
0.35739073157310486,
0.49420395493507385,
-0.667486310005188,
0.6875090003013611,
0.3411317765712738,
-0.03772197663784027,
-0.9382545351982117,
1.1582573652267456,
0.4131854772567749,
-0.40683257579803467,
1.122089147567749,
-0.6063959002494812,
-0.9748346209526062,
... |
RotN function rotates the input string by n (Caesars Cipher) | [
-1.1027086973190308,
0.28087565302848816,
0.07476212084293365,
0.7811985611915588,
-0.45856884121894836,
-0.5964744687080383,
0.5068075656890869,
-0.5617612600326538,
0.3955438733100891,
-0.668005108833313,
-1.1969226598739624,
0.18769146502017975,
-0.3415607213973999,
-1.2861969470977783,... |
status types 0 your turn 1 opponent's turn 2 game ended 3 error | [
-0.30696845054626465,
-0.039986565709114075,
0.42790794372558594,
0.7390515804290771,
0.5021055936813354,
0.4540003836154938,
-0.5253361463546753,
0.15097150206565857,
-0.2997194230556488,
1.0970454216003418,
-0.8643201589584351,
-0.7657403945922852,
0.2660053074359894,
-0.3351307809352875... |
IsExpired validate if this token is expired or not. | [
0.3698364496231079,
-0.4975542724132538,
0.3387658894062042,
0.7466009259223938,
0.3759520351886749,
-0.03710192069411278,
-2.622732639312744,
-0.20654717087745667,
0.19511736929416656,
0.1676390916109085,
-0.4612783193588257,
0.1423664540052414,
-0.21082869172096252,
-0.2508505880832672,
... |
GenerateIds calls ntimes NewUUID() in a loop and returns the result as slice. | [
-1.7870864868164062,
0.3800067901611328,
0.4752189517021179,
0.33516621589660645,
0.4934900403022766,
0.022409837692975998,
-0.6507797241210938,
-0.6137251257896423,
0.011022090911865234,
1.0497806072235107,
-1.0786535739898682,
-0.4202215075492859,
-1.1123650074005127,
0.7747913599014282,... |
NewPopUpMenu creates a new, reusable popup menu. You can show it using ShowAtPosition. Since: 2.0 | [
-1.051149606704712,
-0.6457574367523193,
0.5749810934066772,
0.9564411640167236,
-1.014823317527771,
-1.0416007041931152,
0.5306222438812256,
-0.12089285254478455,
-0.05364326760172844,
-0.37166330218315125,
-0.9669635891914368,
-0.5412294268608093,
0.4297279119491577,
0.027492249384522438... |
ShowPopUpMenuAtPosition creates a PopUp menu populated with items from the passed menu structure. It will automatically be positioned at the provided location and shown as an overlay on the specified canvas. | [
0.2226714938879013,
-0.48462507128715515,
0.6556583642959595,
-0.1844824254512787,
-1.2780956029891968,
-0.4590517580509186,
0.22159187495708466,
0.835681140422821,
-0.0967680960893631,
0.08060935139656067,
-0.16046243906021118,
-0.8192026615142822,
-0.3537265360355377,
-0.4807471930980682... |
CreateRenderer returns a new renderer for the popup menu. Implements: fyne.Widget | [
-0.11070816218852997,
-0.1722729206085205,
0.4631533622741699,
0.062328264117240906,
0.27997055649757385,
-0.7708964347839355,
-0.8507640361785889,
0.5307488441467285,
-0.6854161024093628,
-0.727510392665863,
0.1345851868391037,
-1.5294870138168335,
-0.9681254625320435,
0.519541323184967,
... |
Hide hides the popup menu. Implements: fyne.Widget | [
-0.6731513142585754,
0.4175809621810913,
0.2113850861787796,
0.857844352722168,
0.2578759789466858,
-0.9077764749526978,
0.6077604293823242,
0.8375104069709778,
-1.140002965927124,
-0.7932928800582886,
-0.011453854851424694,
-1.3591840267181396,
-0.6483145952224731,
-0.11918303370475769,
... |
Move moves the popup menu. The position is absolute because popup menus are shown in an overlay which covers the whole canvas. Implements: fyne.Widget | [
-0.7021879553794861,
-0.30263397097587585,
0.7587683796882629,
0.15290974080562592,
-0.38551515340805054,
-0.09015320241451263,
0.4467933773994446,
-0.051818158477544785,
-0.47898757457733154,
0.12148219347000122,
-0.14133207499980927,
-0.9180219173431396,
-0.13659532368183136,
0.035661652... |
Resize changes the size of the popup menu. Implements: fyne.Widget | [
-0.8536680340766907,
1.0953718423843384,
0.33420297503471375,
0.30118411779403687,
0.19654832780361176,
-1.3124909400939941,
-0.06775819510221481,
0.959843099117279,
-0.7417578101158142,
-0.5700574517250061,
-0.06756395101547241,
-1.102163553237915,
-0.6219590306282043,
0.43181708455085754... |
Show makes the popup menu visible. Implements: fyne.Widget | [
0.09219326078891754,
0.42313793301582336,
0.17069058120250702,
-0.2934368848800659,
0.32289519906044006,
-0.514965832233429,
0.6053531765937805,
1.6889084577560425,
-0.5971856713294983,
-0.19084814190864563,
0.18931208550930023,
-0.8712013959884644,
-0.19291716814041138,
0.55323725938797,
... |
ShowAtPosition shows the popup menu at the specified position. | [
-0.4918145537376404,
-0.6916896104812622,
0.31276410818099976,
-1.1127755641937256,
-0.6292353868484497,
-0.6618237495422363,
-0.5315461158752441,
0.2966136634349823,
-0.40657973289489746,
0.7122233510017395,
-0.0802346020936966,
-0.6916143298149109,
0.12097298353910446,
0.0102176209911704... |
Sign generates the authorization string with a http request and sign option. PARAMS: request: http.Request for this sign accessKeyId: the access key id for this sign secretAccessKey: the secret access key for this sign RETURN: request: the signed http request with authorization headers set | [
-0.32819312810897827,
-0.6728532910346985,
0.5458858013153076,
-0.12116527557373047,
-0.3967660665512085,
-0.28771770000457764,
-0.7926046252250671,
-0.1242644190788269,
0.17173932492733002,
0.11459764093160629,
1.0442440509796143,
-0.035777345299720764,
0.2603278160095215,
0.1555466055870... |
BeforeUnmarshalYAML implement yaml Initiator | [
0.5491687059402466,
-0.23112477362155914,
0.20621852576732635,
-0.9081083536148071,
-0.5471395254135132,
-1.314294695854187,
0.9538959264755249,
1.4326987266540527,
0.900825560092926,
-0.5231586694717407,
0.2592456340789795,
-0.14222903549671173,
1.2895482778549194,
0.4219943583011627,
-... |
IsEmpty return true if it is empty | [
-1.1860332489013672,
-0.18518860638141632,
0.5637454390525818,
0.42499491572380066,
1.468719720840454,
0.5729596614837646,
-0.5277711749076843,
-0.3650591969490051,
-0.1676439642906189,
0.719338595867157,
-0.7359461188316345,
0.13501575589179993,
-0.5111233592033386,
-0.7951247096061707,
... |
//////////// //////////TODO user id/////////// /////////////////////////////////////// | [
0.6698737144470215,
-0.8406505584716797,
1.1819990873336792,
0.7854757308959961,
-0.16842611134052277,
0.8165343403816223,
0.6338450908660889,
0.04772559553384781,
0.2901363968849182,
0.1397845298051834,
-1.3754380941390991,
0.7008436322212219,
0.018756823614239693,
-0.012924795038998127,
... |
/ Two City Scheduling There are 2N people a company is planning to interview. The cost of flying the ith person to city A is costs[i][0], and the cost of flying the ith person to city B is costs[i][1]. Return the minimum cost to fly every person to a city such that exactly N people arrive in each city. Example 1: Input... | [
-0.6255952715873718,
-0.9476926922798157,
0.8506250381469727,
-0.1409498006105423,
-0.5996671915054321,
-0.12342879176139832,
0.4525911808013916,
-0.13899245858192444,
-0.19035080075263977,
0.6266212463378906,
-0.4779525399208069,
-0.13910220563411713,
-0.571200430393219,
0.158564448356628... |
/ Queue Reconstruction by Height Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and k is the number of people in front of this person who have a height greater than or equal to h. Write an algorithm to reconstruct ... | [
-0.4379199743270874,
-0.49192845821380615,
0.834266722202301,
0.27511370182037354,
-1.0465726852416992,
-0.6674604415893555,
1.2633036375045776,
0.1523217260837555,
-0.09125373512506485,
1.0949718952178955,
-0.6153919696807861,
-0.001764824497513473,
0.402634859085083,
0.5117751955986023,
... |
Terminate closes the file handler | [
0.6960214376449585,
-1.4867746829986572,
0.12461297959089279,
0.8270872235298157,
0.01113887783139944,
1.245240569114685,
0.2375631332397461,
0.49138689041137695,
-1.644081473350525,
-1.4328562021255493,
-0.3629729151725769,
-1.579722285270691,
-0.23227648437023163,
0.36273446679115295,
... |
NewFileAuth creates a new file auth | [
0.3775824010372162,
-1.6231663227081299,
0.18095579743385315,
1.2169544696807861,
-0.5287025570869446,
0.4823462963104248,
0.21744227409362793,
0.7424481511116028,
-0.6941654086112976,
-0.8907780051231384,
-0.30165448784828186,
-0.04853123426437378,
-0.4565001130104065,
0.5117289423942566,... |
IsValid determines if the user is valid | [
0.3123472034931183,
-0.635497510433197,
0.38264983892440796,
1.7282503843307495,
-0.15878033638000488,
1.070810079574585,
-0.43429070711135864,
0.4279419481754303,
0.6193011403083801,
-0.9764406681060791,
0.3454294800758362,
0.27807292342185974,
-0.7848825454711914,
-0.4744887948036194,
... |
IsUserAuthorizedForScope verifies if a user is allowed to r/w the scope | [
-0.60085129737854,
-0.21967601776123047,
0.2521478235721588,
0.4680958390235901,
-0.7330513000488281,
-0.040605686604976654,
0.6939629912376404,
-0.3598746955394745,
0.7067121863365173,
-0.24140110611915588,
0.3911418616771698,
1.2838460206985474,
0.44415712356567383,
0.4892933666706085,
... |
Get returns a new route for this params for a GET request | [
-0.6096726655960083,
-1.0888946056365967,
0.36411088705062866,
-0.49178069829940796,
0.5352298021316528,
-0.4792006015777588,
-1.6984071731567383,
-0.09036746621131897,
-1.3470640182495117,
-0.37405925989151,
0.11870824545621872,
1.033461093902588,
0.5202935338020325,
0.4166859984397888,
... |
Post returns a new route for this params for a POST request | [
-0.16793134808540344,
-0.6951889991760254,
0.531620979309082,
0.5605716705322266,
-0.08486965298652649,
-0.10222286731004715,
-1.5875110626220703,
-0.36183345317840576,
-1.3989918231964111,
-0.9080902338027954,
-0.057748641818761826,
-0.4075179994106293,
0.32141366600990295,
0.995621800422... |
Put returns a new route for this params for a PUT request | [
-0.8902789950370789,
-0.8608954548835754,
0.3450298309326172,
-0.778282880783081,
0.04398960620164871,
0.24617968499660492,
-0.28223878145217896,
-0.17637713253498077,
-1.318847894668579,
0.19423902034759521,
0.05969104915857315,
0.22360843420028687,
-0.018212204799056053,
0.18468271195888... |
Patch returns a new route for this params for a PATCH request | [
-0.10271399468183517,
-1.5611828565597534,
0.3626585006713867,
-0.4096403419971466,
-0.3117949068546295,
0.16867271065711975,
-1.085582971572876,
-0.014800277538597584,
-0.4798031151294708,
-0.644954264163971,
0.3230265974998474,
0.8010643124580383,
0.46286240220069885,
0.5522812604904175,... |
Delete returns a new route for this params for a DELETE request | [
0.0770852118730545,
-0.9567827582359314,
0.4391510784626007,
0.19456389546394348,
0.6129232048988342,
-0.301079124212265,
-0.639265239238739,
0.11541213095188141,
-0.5278881788253784,
-0.10398446023464203,
0.274348646402359,
0.38772377371788025,
0.23209071159362793,
0.8584349751472473,
-... |
shut down a Raft server but save its persistent state. | [
-0.6620964407920837,
-0.8072577714920044,
0.35071349143981934,
0.5397229194641113,
0.219254732131958,
-0.17099802196025848,
0.8880490660667419,
-0.7540286183357239,
0.5817465782165527,
0.22670377790927887,
-1.087375521659851,
0.3426577150821686,
-1.2466957569122314,
-0.6565586924552917,
... |
Checks that no server has committed a different value for the same index. Requires mutex `mu`. | [
-0.05691513791680336,
0.7524434924125671,
0.2946787476539612,
0.22875924408435822,
0.1715284287929535,
0.30973535776138306,
1.2767400741577148,
-1.1524981260299683,
0.15193723142147064,
0.14431016147136688,
0.00039274495793506503,
1.3218201398849487,
-1.030673861503601,
0.5605234503746033,... |
applier reads message from apply ch and checks that they match the log contents | [
1.3593358993530273,
-0.7519497275352478,
0.11263569444417953,
0.4998360276222229,
-0.6395360827445984,
-0.12307344377040863,
-1.3397773504257202,
-0.6252115964889526,
-0.5900874137878418,
-0.87922203540802,
0.8834882378578186,
-0.056084536015987396,
-0.41569405794143677,
1.0277388095855713... |
Check that `command` has been committed at `index` Requires mutex `mu`. | [
0.2975417673587799,
0.885878324508667,
0.3366696834564209,
-0.10575881600379944,
1.0389823913574219,
0.23462320864200592,
-0.02228742651641369,
-0.7938552498817444,
0.0018285716651007533,
0.567512035369873,
-0.022885527461767197,
1.480248212814331,
-0.8530571460723877,
0.12372984737157822,... |
periodically snapshot raft state | [
-0.0019138724310323596,
0.4314889907836914,
0.2085064947605133,
0.7411342263221741,
-1.0303349494934082,
-0.08577118068933487,
-0.29629749059677124,
-0.687397837638855,
1.3826568126678467,
-0.37218010425567627,
-0.9956852197647095,
0.7678034901618958,
0.2742897570133209,
-0.286444008350372... |
start or restart a Raft. if one already exists, "kill" it first. allocate new outgoing port file names, and a new state persister, to isolate previous instance of this server. since we cannot really kill it. | [
0.15205493569374084,
0.24807056784629822,
0.5634934902191162,
0.787385880947113,
0.4704377055168152,
-0.6920113563537598,
0.899722695350647,
-0.09202401340007782,
0.7782800197601318,
-0.17085051536560059,
-0.4955828785896301,
0.6796020269393921,
-0.5651744604110718,
-0.568710446357727,
-... |
attach server i to the net. | [
-0.8435758948326111,
-0.7809143662452698,
0.2773682773113251,
0.06593843549489975,
0.1431775689125061,
1.4851878881454468,
0.7615112662315369,
-0.8126201033592224,
0.022988809272646904,
-0.18747450411319733,
-1.1656818389892578,
-0.2394322156906128,
-0.9366936683654785,
0.15441569685935974... |
detach server i from the net. | [
-0.17208050191402435,
-0.2564536929130554,
0.24619248509407043,
-0.36648479104042053,
-0.5672683715820312,
1.0071741342544556,
0.8269546627998352,
-0.8778074383735657,
-0.1011522114276886,
-0.13750189542770386,
-1.4284230470657349,
-0.6474308967590332,
-0.8005826473236084,
-0.7540918588638... |
check that there's exactly one leader. try a few times in case reelections are needed. | [
-0.493007093667984,
0.736743152141571,
0.35428792238235474,
1.1910122632980347,
1.1140809059143066,
-0.18904811143875122,
-0.6632492542266846,
-0.6197629570960999,
0.8413808941841125,
-0.11030714958906174,
0.06314370781183243,
0.07379946857690811,
-0.9326884150505066,
1.0092382431030273,
... |
check that everyone agrees on the term. | [
0.2451075315475464,
-0.6285132765769958,
0.35735318064689636,
1.0773072242736816,
0.28310996294021606,
1.005479335784912,
-1.4331080913543701,
0.5832099914550781,
-1.1994364261627197,
0.713878870010376,
0.6313329935073853,
0.40414267778396606,
-1.1538589000701904,
0.6806277632713318,
-0.... |
check that there's no leader | [
0.42717793583869934,
0.275570809841156,
0.21542075276374817,
0.3700098395347595,
0.790668249130249,
1.0144984722137451,
-0.4076712727546692,
-0.06194371357560158,
0.06832390278577805,
-0.6077179312705994,
-0.15590348839759827,
0.38110196590423584,
-0.9642439484596252,
1.5597035884857178,
... |
how many servers think a log entry is committed? | [
0.767761766910553,
0.08268290013074875,
0.14347374439239502,
-0.7517364025115967,
0.990543007850647,
-0.19962672889232635,
0.15268383920192719,
-0.3700546324253082,
0.31232938170433044,
0.5662700533866882,
0.30591869354248047,
1.0566985607147217,
-0.5103698968887329,
0.40435725450515747,
... |
wait for at least n servers to commit. but don't wait forever. | [
0.16265533864498138,
0.5235589742660522,
0.3213770091533661,
-0.06697896122932434,
0.1822577714920044,
0.5678542256355286,
-0.1855628490447998,
-0.8586410284042358,
-0.300625205039978,
-0.1697765290737152,
-0.4944680631160736,
0.0674336850643158,
-0.5030896663665771,
0.01736259087920189,
... |
do a complete agreement. it might choose the wrong leader initially, and have to resubmit after giving up. entirely gives up after about 10 seconds. indirectly checks that the servers agree on the same value, since nCommitted() checks this, as do the threads that read from applyCh. returns index. if retry==true, may su... | [
-0.08398251980543137,
-0.5303230881690979,
0.5873892903327942,
0.5136175751686096,
0.21701617538928986,
0.15107697248458862,
0.38721755146980286,
-0.20322862267494202,
-0.3569904863834381,
0.25515392422676086,
0.22779220342636108,
0.33291321992874146,
-1.8552498817443848,
0.971253156661987... |
start a Test. print the Test message. e.g. cfg.begin("Test (2B): RPC counts aren't too high") | [
1.4291852712631226,
0.13329605758190155,
0.41870254278182983,
0.2474520057439804,
0.4568116366863251,
0.18609118461608887,
1.1549582481384277,
-0.6814492344856262,
-0.11094487458467484,
-0.7647050023078918,
0.5742290616035461,
1.059485912322998,
-1.6137982606887817,
0.2776877284049988,
-... |
end a Test the fact that we got here means there was no failure. print the Passed message, and some performance numbers. | [
1.007568359375,
0.5499011278152466,
0.2803546190261841,
-0.3720158040523529,
0.7490050196647644,
0.6110367178916931,
1.008370041847229,
-0.3988574147224426,
-0.7841973900794983,
-0.8699517846107483,
0.3528710603713989,
0.9032432436943054,
-1.9911706447601318,
0.44195544719696045,
-0.4282... |
Maximum log size across all servers | [
0.8977353572845459,
0.367287278175354,
0.3664413392543793,
0.2594795227050781,
-0.20159631967544556,
0.2898291051387787,
-0.5137689113616943,
-0.0780714899301529,
0.25159952044487,
-0.07198896259069443,
-0.26118233799934387,
1.17295503616333,
-0.5140724182128906,
0.7680587768554688,
0.67... |
KeynavCompiledEntity generates the key for an entity following the standard pattern Because all this data is stored in memory, character count is kept to a bare minimum And many terms are severely truncated The pattern is as follows: [compiled]:[version]:[published_id]:[data_type]:[entity_type_id]:[entity_unique_id] Wi... | [
-0.38134101033210754,
-0.9431079626083374,
0.6046797037124634,
-0.6153354644775391,
0.24474263191223145,
0.6410341858863831,
0.11967892944812775,
0.1339390128850937,
-0.11013605445623398,
-0.07214031368494034,
-0.6536397337913513,
0.4453812539577484,
0.705847978591919,
0.3777787685394287,
... |
KeynavCompiledDialogRootWithinActor generates the key for a dialog root node within a actor Notice that we're not using a node ID. This is because the list of nodes within a actor are not readily available, for performance reasons. | [
0.022735467180609703,
-0.8237615823745728,
0.34251439571380615,
0.05667209252715111,
-0.8598951697349548,
-0.35147765278816223,
0.24478717148303986,
0.007181551773101091,
0.4157620668411255,
0.07125557214021683,
-0.17535437643527985,
1.328532099723816,
0.4449712634086609,
0.538318336009979... |
KeynavCompiledDialogNodeUnknownWithinActor generates the key for the unknown handler for a respective dialog node. | [
-0.6455645561218262,
-1.1377493143081665,
0.25409483909606934,
-0.7476704120635986,
-0.4746629297733307,
0.1735229194164276,
0.22779761254787445,
0.2930660843849182,
-0.6196351051330566,
-1.0842162370681763,
-0.4530165195465088,
0.58395916223526,
1.2279473543167114,
0.2483261078596115,
0... |
KeynavCompiledDialogRootUnknownWithinActor generates the key for the unknown handler for the root level dialogs with respect to the actor. | [
-0.15482723712921143,
-1.5384975671768188,
0.3366394340991974,
-0.02109810709953308,
-0.5575904250144958,
0.10547221451997757,
0.8375244140625,
0.3775967061519623,
-0.11898734420537949,
-0.9762610197067261,
-0.6426096558570862,
1.037941813468933,
0.7508870959281921,
0.9907643795013428,
-... |
KeynavCompiledDialogNodeWithinActor generates the key for a dialog node within a actor | [
-0.5995153188705444,
-1.1259185075759888,
0.17250840365886688,
-0.18934285640716553,
-1.0091379880905151,
0.0798242837190628,
0.05815660208463669,
0.29703158140182495,
0.0017477015499025583,
-0.0716809332370758,
-0.4620645344257355,
0.5189906358718872,
1.018917441368103,
0.2733040452003479... |
KeynavCompiledDialogNodeActionBundle generates the key for an action bundle within a dialog node | [
-0.30199769139289856,
-0.961688220500946,
0.20419687032699585,
-0.028006695210933685,
-0.24042582511901855,
0.17977246642112732,
0.35645923018455505,
0.30737408995628357,
-0.3605027198791504,
-0.19897960126399994,
0.06462350487709045,
-0.19000600278377533,
0.17825748026371002,
0.1216305792... |
KeynavProjectMetadataStatic generates the key to access the static metadata hash Static means these values are not updated after published. | [
-0.43003392219543457,
-0.23975175619125366,
0.0673631951212883,
0.06454569846391678,
-0.024344762787222862,
1.32632577419281,
-0.9656434059143066,
0.017806094139814377,
-1.2460983991622925,
1.073940396308899,
-0.6900133490562439,
0.4138461649417877,
0.7604913115501404,
-0.35844486951828003... |
KeynavProjectMetadataDynamic generates the key to access the dynamic metadata hash Dynamic means these values may be updated after published. | [
-0.500885546207428,
-0.18477997183799744,
0.22058328986167908,
0.30867859721183777,
0.3996587097644806,
0.65013188123703,
-0.4869690537452698,
-0.21723823249340057,
-1.4777579307556152,
0.44232451915740967,
-0.1371130347251892,
0.12671534717082977,
0.5815389156341553,
-0.390890508890152,
... |
KeynavGlobalMetaProjects generates the key to access the hash of all published projects Mapping project name to project ID | [
0.11333227902650833,
0.431237131357193,
0.09732875227928162,
-0.09702202677726746,
-0.21191318333148956,
1.2316006422042847,
-0.47109803557395935,
0.3936496675014496,
-0.5422247052192688,
0.6938822865486145,
-0.4638878405094147,
0.34958603978157043,
-0.4419793486595154,
-0.3152232766151428... |
KeynavParseFromKeyBundleID TODO: Consider if this can be helpful for event sourcing i.e. capture every action bundle that mutates states | [
0.1974269449710846,
-0.6420008540153503,
0.18326184153556824,
1.0676473379135132,
-0.5746952891349792,
-0.21920129656791687,
0.1649615317583084,
0.2320880889892578,
1.1646639108657837,
0.30815616250038147,
-0.25836968421936035,
0.038562942296266556,
0.7404817342758179,
0.8086470365524292,
... |
KeynavCompiledTriggerActionBundle generates the key for an action bundle within a trigger | [
0.01255976315587759,
-1.5133225917816162,
0.05553717538714409,
0.16759026050567627,
0.2572137117385864,
0.019586075097322464,
1.0615296363830566,
0.37357738614082336,
-0.2106683850288391,
0.2634933590888977,
-0.48715054988861084,
-0.5378783345222473,
0.5417728424072266,
-0.3290149271488189... |
KeynavCompiledTriggersWithinZone generates a key to a hash of all triggers within the zone and their keys therein. Each trigger has an associated action bundle with can be accessed via another read operation. | [
0.23182938992977142,
-1.509507656097412,
0.2736532390117645,
0.26813507080078125,
-0.2674018144607544,
-0.11094962805509567,
1.3014448881149292,
-0.11530069261789322,
0.0332091823220253,
-0.6881627440452576,
-1.4526373147964478,
-0.4998617470264435,
0.32623589038848877,
-0.0774353966116905... |
methods Lookup some item in the given skiplist return false if not found return true if found with its predessor and successor Example: / For the following skip: 1, 5, 9 1, 4, 5, 9 1, 2, 4, 5 9 1, 2, 4, 5, 6, 7, 9 lookup(5) will return: [1, 1, 2, 2], [5, 5, 5, 5], true | [
-1.4302020072937012,
0.5642271041870117,
0.7832053899765015,
0.3558058440685272,
-0.9285475611686707,
0.5267812013626099,
1.1010658740997314,
0.4982219636440277,
0.08425635099411011,
0.5910629034042358,
-1.050307035446167,
-0.9979511499404907,
0.11813267320394516,
0.1256524622440338,
-0.... |
localIP is a helper that returns a string representing the local IP or possible local addresses. If no 192.168.N.N address is found then it lists all possible local addresses. | [
0.04602687060832977,
-0.28704598546028137,
0.6373540759086609,
0.224776953458786,
-0.8461341261863708,
-0.8858566284179688,
-0.583489179611206,
0.6916451454162598,
0.73427814245224,
-0.15805545449256897,
0.9118932485580444,
-0.5823131799697876,
0.24167144298553467,
-0.8421876430511475,
-... |
myGame is a wrapper to get the game info for a particular player | [
-1.4646278619766235,
-0.44088315963745117,
0.5440898537635803,
0.05141358822584152,
-0.6110121607780457,
-0.2668936550617218,
-1.6695668697357178,
-0.6719014644622803,
-0.9914835691452026,
0.27928951382637024,
0.0936211422085762,
-0.693299412727356,
-0.22363290190696716,
-0.072956100106239... |
postAnswer is a handler to set a player's answer for a trivia question | [
-0.19083042442798615,
-1.1267881393432617,
0.4575607478618622,
-0.01813516765832901,
-0.8325005769729614,
-0.1336035579442978,
0.2814638316631317,
0.2330533117055893,
-0.4592772126197815,
0.33270564675331116,
-0.8375235795974731,
-0.6171655654907227,
-0.9192737936973572,
-0.54811030626297,... |
NewRepo creates a new users repo. | [
0.17042061686515808,
0.4564064145088196,
0.21435284614562988,
1.311288833618164,
-0.3649348318576813,
-0.11477021127939224,
0.24807964265346527,
0.47914814949035645,
0.31933853030204773,
-0.8858869671821594,
-0.9865394830703735,
-0.5971450805664062,
0.4270317256450653,
-0.1308056116104126,... |
HasAPIKeyHeader validate the API_KEY header | [
0.12028749287128448,
-0.5863983035087585,
0.5797209143638611,
0.7435429096221924,
-0.1369047313928604,
-0.2549901604652405,
-1.1267882585525513,
0.3659566044807434,
-0.17673394083976746,
0.5272486209869385,
-0.33636996150016785,
-1.221907615661621,
-0.7864851355552673,
0.0687207505106926,
... |
/ This might turn into a goroutine that connects and manages reconnections independently This is a goroutine that's called | [
-0.3152463138103485,
-0.5620638132095337,
0.5344922542572021,
0.8430296778678894,
0.15170525014400482,
-1.1174824237823486,
-0.17078503966331482,
0.028089964762330055,
0.8235488533973694,
-0.8508197665214539,
-0.707534909248352,
-0.24852290749549866,
-0.5684085488319397,
0.131372332572937,... |
These provide a way to publish update messages, but don't expose details of transport mechanism It probably makes sense to move these either to a separate package (or even just a separate file), and/or to define an interface that the MQTT, HTTP, SMS, etc. remote connections could implement. However, it might make sense... | [
0.1845954954624176,
-0.8730874061584473,
1.0326911211013794,
-0.049961525946855545,
-0.9037829041481018,
0.856349527835846,
-0.03757069632411003,
-0.687387228012085,
0.36651313304901123,
-0.2823267877101898,
-0.0029643664602190256,
-0.21582873165607452,
0.044532813131809235,
-0.08357706665... |
Encrypt given the shared key, encrypt the plain message and generate the "local" token with optional footer. | [
-0.09526484459638596,
1.6363834142684937,
0.17125311493873596,
0.4992649555206299,
0.2814653813838959,
-0.6161353588104248,
0.6376262903213501,
0.4074418246746063,
-0.24030223488807678,
-0.08822653442621231,
-0.47903990745544434,
-0.5248311758041382,
-0.19216153025627136,
0.531522631645202... |
Decrypt given a shared key and encrypted token, decrypt the token to get the message. | [
0.9133943915367126,
1.3810083866119385,
0.4495120048522949,
0.2905272841453552,
0.6169825196266174,
-1.1424851417541504,
-0.9490033984184265,
-0.029460500925779343,
-0.8724377155303955,
0.21932443976402283,
0.10435880720615387,
0.5709587335586548,
-0.8954352140426636,
-0.5889590978622437,
... |
Sign given an Ed25519 secret key "sk", a message "m", and optional footer "f" (which defaults to empty string); sign the message "m" and generate the public token. | [
-0.06470518559217453,
0.6612553596496582,
0.16459251940250397,
0.9085160493850708,
-0.9620988368988037,
-0.5129128694534302,
-0.4804493486881256,
0.8787997364997864,
-0.6686156988143921,
-0.36607611179351807,
-0.04228877276182175,
-0.022184984758496284,
-0.16599737107753754,
0.512170851230... |
Verify given a public key "pk", a signed message "sm" (that has been decoded from base64), and optional footer "f" (also that has been decoded from base64 string); verify that the signature is valid for the message. | [
0.5793510675430298,
0.9352867007255554,
0.1592114120721817,
1.435855507850647,
-0.02674347721040249,
-0.6845337748527527,
-0.12964583933353424,
0.04843501001596451,
-0.677078366279602,
-0.3418099880218506,
-0.02668079361319542,
0.46735480427742004,
-0.2874223291873932,
0.9200536012649536,
... |
newHashRange creates a new hashRange, initiated at the start position, and with the step set to fill the desired 'num' chunks | [
0.5019968152046204,
-0.20198065042495728,
0.1546565294265747,
0.8034319877624512,
-0.19666090607643127,
-0.2723933756351471,
-0.3109496235847473,
-0.08458984643220901,
-1.511022925376892,
-1.2384377717971802,
-0.4693363904953003,
-0.09007913619279861,
-0.21292470395565033,
-0.1979822367429... |
Next pushes the hash range to the next interval. | [
0.15594790875911713,
0.752398669719696,
0.228378564119339,
0.7945007085800171,
-0.27985259890556335,
0.9495481848716736,
-0.47754594683647156,
-0.6688719987869263,
-0.4931867718696594,
-0.5347139239311218,
-0.5292957425117493,
0.3983098864555359,
-1.126922845840454,
-0.762319028377533,
0... |
Start returns the first hash in the current interval. | [
0.9004024863243103,
-0.6199203729629517,
0.42908191680908203,
0.8596094250679016,
-0.48071596026420593,
0.3259750306606293,
-0.1181311383843422,
-0.5857608914375305,
-1.0803054571151733,
-0.4206016957759857,
0.6792210936546326,
0.44373950362205505,
-0.4488731324672699,
-1.329286813735962,
... |
End returns the last hash in the current interval. | [
0.5518708229064941,
-0.831439197063446,
0.6509994864463806,
0.2193460762500763,
-0.4582386910915375,
0.9439921379089355,
-0.10038478672504425,
-0.8487910628318787,
-1.295800805091858,
0.33199113607406616,
0.3792130649089813,
-0.13651154935359955,
-1.2701895236968994,
-1.0102055072784424,
... |
incHash returns the next hash, in lexicographical order (a.k.a plus one) | [
1.0855553150177002,
0.2919306457042694,
0.5000753998756409,
0.5854366421699524,
-1.2543551921844482,
0.19642913341522217,
0.20567071437835693,
0.3097933530807495,
-0.19031895697116852,
-1.024079442024231,
0.09855816513299942,
0.049408599734306335,
-0.5427590608596802,
-1.1315526962280273,
... |
uploadSingle processes the uploaded file and creates a temp file for working. uploadSingle returns the temp file as os.File , and the original filename of the uploaded file as a string. | [
-0.3139427602291107,
0.039710886776447296,
0.7977312207221985,
-0.19212758541107178,
0.33881500363349915,
0.023783717304468155,
0.27880001068115234,
0.49858731031417847,
-0.654141902923584,
0.11077070236206055,
-0.09770426154136658,
-0.2918892800807953,
-0.20261354744434357,
0.415244847536... |
uploadMultiple processes multiple uploaded files and creates temp files for each of them for working. uploadMultiple returns a slice of the temp files as []os.File. | [
-2.049893617630005,
0.32523253560066223,
1.0595850944519043,
1.2726463079452515,
1.6343547105789185,
0.02712189219892025,
-0.2660551369190216,
-0.30839601159095764,
-0.9915918111801147,
0.6255646347999573,
-0.6716499328613281,
-1.6073437929153442,
-1.0755372047424316,
1.379453182220459,
... |
NewContext constructs a new test context. | [
0.6655530333518982,
-0.8079082369804382,
0.17996788024902344,
0.4535906910896301,
0.2435198873281479,
-0.5080386996269226,
0.8308946490287781,
-0.4892576336860657,
1.5025118589401245,
-0.4655117988586426,
-0.4525294303894043,
-0.5888227820396423,
-1.1610697507858276,
-0.08283212035894394,
... |
InternalAPI gets a URL base to send HTTP requests to. | [
-1.2501351833343506,
-0.9819756746292114,
0.3749259114265442,
-0.27366530895233154,
0.12433411180973053,
-0.23843185603618622,
-0.5648760199546814,
-0.011999578215181828,
-0.8134344816207886,
-0.7165297865867615,
-0.017869751900434494,
0.1179119125008583,
-1.0077712535858154,
-0.0203313920... |
RemoteServiceAPI gets a URL base to send HTTP requests to. | [
-1.1804046630859375,
-0.8755449056625366,
0.31305786967277527,
-0.4570881724357605,
0.11782191693782806,
0.6516605615615845,
-1.224502444267273,
-0.2545391917228699,
-1.0117378234863281,
0.01648893766105175,
-0.23569345474243164,
0.5057979226112366,
-0.8433414697647095,
0.24447813630104065... |
Organization gets this context's organization. | [
0.14545121788978577,
0.3556881546974182,
0.10549379885196686,
0.7024787664413452,
0.540733814239502,
-0.433407723903656,
0.6745383739471436,
-1.1448135375976562,
0.8629891872406006,
-0.7947466969490051,
0.5406423807144165,
0.6320715546607971,
1.1664615869522095,
-0.4461726248264313,
-0.9... |
Environment gets this context's environment. | [
0.2211160957813263,
-0.4488905072212219,
-0.11329760402441025,
0.10215453803539276,
0.45957157015800476,
0.3609943687915802,
0.9941085577011108,
-1.22288179397583,
0.3771141767501831,
-0.617364764213562,
0.423846960067749,
0.769253671169281,
-0.29094934463500977,
-0.36196672916412354,
-0... |
SetOrganization sets this context's organization. | [
-0.08151956647634506,
0.5782208442687988,
0.01470249705016613,
0.7288532257080078,
0.6659485697746277,
-0.34915629029273987,
0.8887267112731934,
-0.6139590740203857,
0.5528430342674255,
-0.47280097007751465,
-0.1657457798719406,
0.5355732440948486,
1.3937277793884277,
0.5378800630569458,
... |
SetEnvironment sets this context's environment. | [
0.06338699162006378,
-0.09932177513837814,
-0.12745340168476105,
-0.2223566174507141,
0.871849000453949,
0.3562658727169037,
1.5390698909759521,
-0.44311949610710144,
0.0760316401720047,
-0.043925441801548004,
-0.2736102342605591,
0.40105289220809937,
0.013659631833434105,
0.68337523937225... |
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded. | [
-0.2691022455692291,
-0.9419267177581787,
0.5205244421958923,
-1.0505542755126953,
-1.4146522283554077,
-0.15375392138957977,
-0.11907599121332169,
-1.5095784664154053,
-0.5603106021881104,
0.2632962465286255,
0.6717758774757385,
0.045992590487003326,
-0.18437090516090393,
-0.6648545265197... |
AssetString returns the asset contents as a string (instead of a []byte). | [
-0.5553505420684814,
-1.6332672834396362,
0.41679301857948303,
-1.9074498414993286,
-0.9702814817428589,
0.42620447278022766,
-0.23817288875579834,
-1.3710856437683105,
-0.07656329870223999,
-0.21365979313850403,
1.2241034507751465,
0.24276407063007355,
-0.0923432782292366,
-0.744865298271... |
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables. | [
-0.0929306373000145,
0.15821580588817596,
0.4423462152481079,
0.7752392292022705,
-1.0880882740020752,
0.6832454800605774,
0.003947311080992222,
-1.286971092224121,
-0.07538469135761261,
0.05818919092416763,
0.03628065437078476,
0.16544577479362488,
0.16517236828804016,
-0.1151823326945304... |
MustAssetString is like AssetString but panics when Asset would return an error. It simplifies safe initialization of global variables. | [
-0.1047775149345398,
-0.21684028208255768,
0.47069230675697327,
0.3793864846229553,
-1.4843446016311646,
0.7858673930168152,
0.0009208340779878199,
-1.3939323425292969,
-0.027435200288891792,
0.333527535200119,
0.6368497610092163,
0.24819809198379517,
0.12678423523902893,
-0.19600334763526... |
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded. | [
0.07494624704122543,
-0.7035651206970215,
0.4812530279159546,
-1.3608137369155884,
-1.3336007595062256,
0.01413048431277275,
0.039905961602926254,
-1.2343008518218994,
-0.9982755780220032,
0.23097212612628937,
0.09395618736743927,
-0.508912980556488,
0.3866036832332611,
-0.4225662648677826... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.