text
stringlengths
7
2.39k
embedding
listlengths
768
768
Your code here RPC handlers for the worker to call. Example an example RPC handler. the RPC argument and reply types are defined in rpc.go.
[ 0.5418946743011475, 0.18126161396503448, 0.5413039922714233, 0.6458324790000916, 0.4136500060558319, 1.4103046655654907, -0.3888062536716461, -0.30094480514526367, 0.2051778882741928, 0.3149537742137909, -1.1762553453445435, 0.5190181136131287, -1.160050868988037, -0.3644726872444153, -1...
UpdateTaskStatus change task status when task done or error
[ -0.9477915167808533, -0.7161743640899658, 0.4805716276168823, 0.6634705066680908, -0.0873352438211441, 0.45771920680999756, 0.005115903448313475, 0.7458301186561584, -0.3838951587677002, 1.1687901020050049, -1.6991312503814697, 0.12873470783233643, 1.0072541236877441, 0.4915023446083069, ...
start a thread that listens for RPCs from worker.go
[ 1.252482295036316, -0.9008768796920776, 0.331221342086792, -0.6493754386901855, 1.3164275884628296, 1.0700645446777344, -0.30753013491630554, -0.24274587631225586, -0.3565559685230255, -0.9284306168556213, -0.2791231870651245, 0.9082028269767761, -0.7282663583755493, -0.2110782414674759, ...
Done check whether it can stop. main/mrmaster.go calls Done() periodically to find out if the entire job has finished.
[ 0.15836243331432343, 0.3033837080001831, 0.6296942234039307, 1.090619444847107, -0.011046674102544785, 0.3598775267601013, -0.20554420351982117, -0.4054665267467499, -1.1402342319488525, 0.08181643486022949, -0.14686350524425507, -0.04002155736088753, -0.7724170088768005, 1.088395714759826...
MakeMaster as the name create a Master. main/mrmaster.go calls this function. nReduce is the number of reduce tasks to use.
[ -0.09799947589635849, 0.7274498343467712, 0.6678130626678467, 0.8494914770126343, -0.30661138892173767, -0.2716705799102783, 0.26888927817344666, 0.20178961753845215, -0.12757550179958344, -0.35816869139671326, -1.0472527742385864, -0.2143668383359909, -0.2795429825782776, 0.17676773667335...
check if current time is during day
[ -0.9413034915924072, -0.0006218105554580688, 0.46052783727645874, 1.0751829147338867, -0.5867502093315125, 0.3829909861087799, 0.004491550847887993, -0.47044068574905396, -0.7999748587608337, 0.5839436650276184, 0.4786294102668762, -0.19072240591049194, -0.8566297888755798, 1.2449123859405...
/ the mian enter of algorithm of quicksort
[ 0.3628315031528473, -0.15063261985778809, 0.23191049695014954, 0.3486262857913971, -0.6342687606811523, -0.9270142912864685, 0.03899772837758064, -0.2121923267841339, 0.6157078742980957, -0.12530530989170074, 0.08589943498373032, -0.3310197591781616, -0.3289548456668854, -0.109539382159709...
/ the split part of algorithm of quicksort
[ -0.30975934863090515, 0.09033946692943573, 0.2424979954957962, -0.3407956659793854, -0.8250946402549744, -0.8820196986198425, 0.7934450507164001, 0.5911056399345398, 0.3176271617412567, 0.24366693198680878, -0.25465652346611023, -0.701286256313324, -0.623914897441864, -0.2564733922481537, ...
GetAwsSession Returns an AWS session for the specified server cfguration
[ -0.9279608726501465, 0.1871272623538971, 0.20303617417812347, -0.5273418426513672, -1.0974398851394653, -0.5491306781768799, 0.19249510765075684, -0.955552339553833, 0.32935428619384766, 0.37788739800453186, -0.8279869556427002, 0.3937584459781647, 0.05251382291316986, -0.3756259083747864,...
NewAuthorizer registers a new resource with the given unique name, arguments, and options.
[ -0.051694002002477646, -0.4307793974876404, 0.25001460313796997, 0.4622947871685028, -0.534031867980957, -0.7751564383506775, 0.44760698080062866, 0.7801655530929565, -0.14097188413143158, -0.2328415960073471, -0.6360881328582764, 0.3228074014186859, -0.28279179334640503, 0.453121900558471...
GetAuthorizer gets an existing Authorizer resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
[ -0.23762273788452148, -0.5185965299606323, 0.2827982008457184, 0.28625938296318054, -0.7917141318321228, -1.1008583307266235, -0.5621167421340942, 0.4426802098751068, 0.12420567870140076, -0.22520481050014496, 0.2929677665233612, 0.9917870163917542, 0.353501558303833, -0.6750397086143494, ...
URN is this resource's unique name assigned by Pulumi.
[ 0.3258594572544098, -0.39325329661369324, 0.32769328355789185, -0.07163136452436447, 1.072798490524292, 0.1807616651058197, 0.6070690751075745, 1.3540054559707642, 0.704304039478302, -1.0499311685562134, -1.0073562860488892, 0.5436997413635254, 0.7955619096755981, -1.1274117231369019, -0...
ID is this resource's unique identifier assigned by its provider.
[ 0.22989115118980408, -0.7597854733467102, 0.20662787556648254, -0.0469360426068306, 0.6705145835876465, 0.920996367931366, 0.27481716871261597, 0.40081483125686646, 2.2350125312805176, 0.004636136814951897, -1.174757480621338, 0.5452966690063477, -0.2690785527229309, -0.33200234174728394, ...
The credentials required for the authorizer. To specify an IAM Role for API Gateway to assume, use the IAM Role ARN.
[ -0.024268994107842445, -0.007506967056542635, 0.5207709074020386, 0.3629301190376282, 0.12348059564828873, -0.09564224630594254, -0.18629714846611023, 0.5318410992622375, 0.2094118446111679, -0.5121563673019409, -0.04363780468702316, 0.31993210315704346, -0.0561835840344429, 0.502755045890...
The TTL of cached authorizer results in seconds. Defaults to `300`.
[ 0.947147786617279, 0.5068221688270569, 0.31747400760650635, 0.1946476697921753, 0.212699294090271, 0.6964707970619202, 0.0425909124314785, 0.11821959167718887, 1.0660260915756226, 0.5425989031791687, -0.9135854840278625, 0.49499642848968506, 0.8577262759208679, -0.5143202543258667, -0.68...
The source of the identity in an incoming request. Defaults to `method.request.header.Authorization`. For `REQUEST` type, this may be a commaseparated list of values, including headers, query string parameters and stage variables e.g. `"method.request.header.SomeHeaderName,method.request.querystring.SomeQueryStringName...
[ -0.8393771648406982, 0.2544846534729004, 0.7582225799560547, 0.9907800555229187, 0.3568003475666046, 0.1120925322175026, 0.19865021109580994, -0.5872906446456909, 0.7293745279312134, 0.14751997590065002, -0.41386905312538147, -0.13321428000926971, -0.1429818868637085, 0.12974412739276886, ...
A validation expression for the incoming identity. For `TOKEN` type, this value should be a regular expression. The incoming token from the client is matched against this expression, and will proceed if the token matches. If the token doesn't match, the client receives a 401 Unauthorized response.
[ 0.21871215105056763, -0.14666061103343964, 0.702690601348877, -0.023878945037722588, -0.35623425245285034, 1.1804910898208618, 0.22559724748134613, -0.40618228912353516, 0.3767882287502289, -0.2038513720035553, -0.795342743396759, 1.1356405019760132, -0.19124451279640198, -0.86475294828414...
The name of the authorizer
[ 0.7314812541007996, -0.011631074361503124, 0.34169086813926697, 0.5995625853538513, -1.123721718788147, 0.1281905174255371, 0.5390838980674744, 1.2010574340820312, 0.042442720383405685, 0.1962757706642151, 0.5820233821868896, 0.7641851305961609, 0.6793049573898315, 0.20877628028392792, 0...
The ID of the associated REST API
[ 1.1351933479309082, -1.5867100954055786, 0.4285205900669098, 0.21681682765483856, 0.5779957175254822, 0.8050046563148499, -0.14090916514396667, -0.4505462646484375, 1.468812346458435, -0.36765211820602417, -0.43114665150642395, 0.14816434681415558, -0.8983127474784851, -0.2483980357646942,...
The type of the authorizer. Possible values are `TOKEN` for a Lambda function using a single authorization token submitted in a custom header, `REQUEST` for a Lambda function using incoming request parameters, or `COGNITO_USER_POOLS` for using an Amazon Cognito user pool. Defaults to `TOKEN`.
[ 0.2314537912607193, 0.2122967541217804, 0.4896611273288727, -0.09840553998947144, 0.547441840171814, 0.20644700527191162, 0.4769441485404968, -0.25609543919563293, 0.09977319836616516, -0.4845305383205414, -0.2375965416431427, 1.2492358684539795, 0.19537001848220825, 0.2296925038099289, ...
Search performs a symbol search on the symbols service.
[ -1.2719477415084839, 0.921451210975647, -0.20577740669250488, -0.38588348031044006, 0.9376859664916992, -0.6292044520378113, 0.44949743151664734, -0.9903671145439148, -0.07600337266921997, -0.5564994812011719, -0.223716601729393, 0.6945586800575256, -0.19824135303497314, 0.4822871685028076...
ValidateNetwork validates a Network object.
[ -1.2475742101669312, -0.4843197762966156, 0.028001440688967705, 1.444488525390625, 1.0664030313491821, 0.3649400472640991, -0.10290458053350449, -0.5931522250175476, 0.03293227776885033, -1.1942397356033325, -1.1074323654174805, -1.0120439529418945, -0.36615797877311707, 0.1865611374378204...
ValidateNetworkUpdate validates a Network object before an update.
[ -0.6974833607673645, -1.0913065671920776, 0.13842570781707764, 0.9198430776596069, -0.32839149236679077, 0.19690552353858948, -0.3244089186191559, -0.7992252707481384, 0.28011035919189453, -0.37952721118927, -0.141628235578537, -1.402064323425293, -0.5199499130249023, -0.4248025417327881, ...
ValidateNetworkSpec validates the specification of a Network object.
[ -0.3359944820404053, 0.11254050582647324, 0.17870894074440002, -0.25410863757133484, 0.5590873956680298, 0.40390971302986145, 0.6604815125465393, -0.1891709864139557, -0.07432259619235992, -0.08093588054180145, -0.5682867765426636, -0.6151122450828552, 0.9390709400177002, 0.120919562876224...
ValidateNetworkSpecUpdate validates the spec of a Network object before an update.
[ -0.28070297837257385, -0.30266231298446655, 0.27673059701919556, 0.12613917887210846, -0.12417039275169373, 0.21624763309955597, 0.006860776804387569, -0.7045643925666809, 0.19394759833812714, 0.21037544310092926, 0.22424615919589996, -1.2499394416809082, 0.5408523678779602, 0.160853371024...
ValidateNetworkStatus validates the status of a Network object.
[ -0.47640520334243774, -0.2959015369415283, -0.08172083646059036, 0.15833666920661926, 0.31976115703582764, 0.8775296807289124, -0.07681363075971603, -0.22680817544460297, 0.4046446681022644, -0.35446059703826904, -1.5535320043563843, -1.518000602722168, 0.4985007047653198, 0.16661901772022...
ValidateNetworkStatusUpdate validates the status field of a Network object.
[ -0.17367792129516602, -0.7234476208686829, -0.05490223318338394, 0.6219910979270935, -0.3457093834877014, 0.8191432952880859, -0.2760920524597168, 0.09811437129974365, 0.6508686542510986, -0.3792976140975952, -0.9274213910102844, -1.6426255702972412, 0.18104839324951172, -0.346730709075927...
Your code here RPC handlers for the worker to call. an example RPC handler. the RPC argument and reply types are defined in rpc.go.
[ 0.4705519378185272, 0.2251276671886444, 0.5090392827987671, 0.6228089332580566, 0.3985305726528168, 1.4161664247512817, -0.31343674659729004, -0.38697612285614014, 0.24814768135547638, 0.27569442987442017, -1.1499137878417969, 0.4799875319004059, -1.2018203735351562, -0.38373228907585144, ...
start a thread that listens for RPCs from worker.go
[ 1.252482295036316, -0.9008768796920776, 0.331221342086792, -0.6493754386901855, 1.3164275884628296, 1.0700645446777344, -0.30753013491630554, -0.24274587631225586, -0.3565559685230255, -0.9284306168556213, -0.2791231870651245, 0.9082028269767761, -0.7282663583755493, -0.2110782414674759, ...
/ should hold lock before enter this func
[ 1.1233316659927368, -0.8179715871810913, 0.5036240220069885, 0.921188473701477, 0.6154696941375732, 0.9114577174186707, 1.5203293561935425, -0.4921755790710449, 0.4564099907875061, -1.2708697319030762, 0.4011726379394531, 0.594031810760498, -1.5358654260635376, -0.7131792902946472, -0.32...
/ should hold lock before enter this func
[ 1.1233316659927368, -0.8179715871810913, 0.5036240220069885, 0.921188473701477, 0.6154696941375732, 0.9114577174186707, 1.5203293561935425, -0.4921755790710449, 0.4564099907875061, -1.2708697319030762, 0.4011726379394531, 0.594031810760498, -1.5358654260635376, -0.7131792902946472, -0.32...
main/mrmaster.go calls Done() periodically to find out if the entire job has finished.
[ 0.3617371618747711, 0.0858190730214119, 0.7026136517524719, 0.8065122365951538, 0.11613058298826218, 0.2611274719238281, -0.10293994843959808, -0.2955765426158905, -0.5826358199119568, -0.03718426078557968, -0.5298596024513245, 0.15746831893920898, -0.7878917455673218, 1.0609997510910034, ...
create a Master. main/mrmaster.go calls this function. nReduce is the number of reduce tasks to use.
[ -0.5018556714057922, 0.9523068070411682, 0.6438329815864563, 0.6667267680168152, -0.11991900950670242, -0.5071204304695129, 0.501285195350647, 0.10294020920991898, -0.1915319561958313, -0.42838671803474426, -1.079622745513916, -0.606652557849884, -0.6247345805168152, 0.5697841048240662, ...
TestRejectStaleTermMessage tests that if a server receives a request with a stale term number, it rejects the request. Our implementation ignores the request instead. Reference: section 5.1
[ -0.24556127190589905, 0.44897347688674927, 0.32267722487449646, -0.14894793927669525, -0.24420718848705292, 1.0500514507293701, -0.07647072523832321, -0.7200456261634827, -0.03776313364505768, -0.5356521010398865, -0.31820032000541687, -0.25989818572998047, -0.4401510953903198, 0.424323827...
TestStartAsFollower tests that when servers start up, they begin as followers. Reference: section 5.2
[ -0.10558339953422546, -0.08075760304927826, 0.38120850920677185, 0.33693212270736694, 0.06914626806974411, 0.36795657873153687, 1.8666876554489136, -0.4907425045967102, 0.34016162157058716, -0.4730604588985443, -0.6482611894607544, 1.0203262567520142, 0.34057363867759705, 0.736611843109130...
TestLeaderBcastBeat tests that if the leader receives a heartbeat tick, it will send a msgApp with m.Index = 0, m.LogTerm=0 and empty entries as heartbeat to all followers. Reference: section 5.2
[ 1.1252381801605225, 0.6099867224693298, 0.494049608707428, 0.8864372372627258, 0.5459937453269958, 0.857811450958252, 0.4653010070323944, -0.5199953317642212, 0.49122872948646545, -0.3605700731277466, -0.23564264178276062, 0.3742716908454895, -0.8948412537574768, 0.928381621837616, -0.07...
testNonleaderStartElection tests that if a follower receives no communication over election timeout, it begins an election to choose a new leader. It increments its current term and transitions to candidate state. It then votes for itself and issues RequestVote RPCs in parallel to each of the other servers in the clust...
[ -0.6283810138702393, -0.45674991607666016, 0.40159928798675537, 0.6412162184715271, -0.17887502908706665, 0.34552454948425293, 0.4728144407272339, -0.9536245465278625, 0.5736450552940369, -0.1717052161693573, -0.2719939351081848, 0.2547878623008728, -1.1883752346038818, 0.4764481484889984,...
TestLeaderElectionInOneRoundRPC tests all cases that may happen in leader election during one round of RequestVote RPC: a) it wins the election b) it loses the election c) it is unclear about the result Reference: section 5.2
[ -0.7387158274650574, -0.4959816336631775, 0.6056991815567017, 0.36613139510154724, 1.1848258972167969, 0.2605898380279541, 0.2387421876192093, -0.6601467132568359, 0.38245534896850586, -0.18484078347682953, 0.4769977331161499, 0.28497833013534546, -2.1001415252685547, 0.5389392375946045, ...
TestFollowerVote tests that each follower will vote for at most one candidate in a given term, on a firstcomefirstserved basis. Reference: section 5.2
[ 0.7529444694519043, -0.30322641134262085, 0.29783228039741516, 0.8530325889587402, 0.19682180881500244, 0.15462961792945862, 0.6689510941505432, -0.5964575409889221, 0.011546134948730469, -0.7974497079849243, -0.41397836804389954, -0.0405673123896122, 0.2065025120973587, 0.4842935502529144...
TestCandidateFallback tests that while waiting for votes, if a candidate receives an AppendEntries RPC from another server claiming to be leader whose term is at least as large as the candidate's current term, it recognizes the leader as legitimate and returns to follower state. Reference: section 5.2
[ 0.9382234811782837, -0.6976439356803894, 0.3681429922580719, 0.04187535122036934, -0.1496010422706604, 0.3947855234146118, -0.16854679584503174, -0.5196253061294556, 0.5279477834701538, -0.48433560132980347, -0.36740842461586, 0.426538348197937, -0.8317861557006836, 0.5013024806976318, 0...
testNonleaderElectionTimeoutRandomized tests that election timeout for follower or candidate is randomized. Reference: section 5.2
[ -0.30117881298065186, -0.20401552319526672, -0.05690041556954384, 0.14064228534698486, 0.560699462890625, 0.6841267943382263, 0.9068922996520996, 0.07730838656425476, 1.0123696327209473, 0.8476821780204773, -0.6236818432807922, -0.413474977016449, -0.8524295091629028, 0.8158816695213318, ...
testNonleadersElectionTimeoutNonconflict tests that in most cases only a single server(follower or candidate) will time out, which reduces the likelihood of split vote in the new election. Reference: section 5.2
[ -0.20574159920215607, 0.43963199853897095, 0.24862107634544373, 0.738440990447998, 0.7634779810905457, 0.5538532733917236, 0.9152976274490356, 0.21992899477481842, 0.483460932970047, 0.8388682007789612, -0.12266738712787628, -0.8303847908973694, -1.60564124584198, 0.14379911124706268, 0....
TestLeaderStartReplication tests that when receiving client proposals, the leader appends the proposal to its log as a new entry, then issues AppendEntries RPCs in parallel to each of the other servers to replicate the entry. Also, when sending an AppendEntries RPC, the leader includes the index and term of the entry i...
[ 0.6353093385696411, 0.8123117685317993, 0.5547477602958679, -0.5516855716705322, 0.7005288600921631, 0.17357836663722992, 0.5885644555091858, -0.2580239474773407, 1.027522325515747, 0.38620683550834656, -0.6169669032096863, 0.25942131876945496, -0.9625133872032166, -0.36195555329322815, ...
TestLeaderCommitEntry tests that when the entry has been safely replicated, the leader gives out the applied entries, which can be applied to its state machine. Also, the leader keeps track of the highest index it knows to be committed, and it includes that index in future AppendEntries RPCs so that the other servers e...
[ 0.9554455280303955, -0.08379572629928589, 0.37528863549232483, -0.31601789593696594, 0.5311037302017212, 0.37509170174598694, 0.31860923767089844, 0.28905346989631653, 0.9052830934524536, 0.5523426532745361, -0.33950531482696533, 0.34019941091537476, -0.7624821662902832, -0.029484177008271...
TestLeaderAcknowledgeCommit tests that a log entry is committed once the leader that created the entry has replicated it on a majority of the servers. Reference: section 5.3
[ 0.9699159264564514, 0.03992173820734024, 0.45140936970710754, -1.1841624975204468, 0.2711396813392639, 0.29340794682502747, 0.6832876205444336, 0.44237762689590454, -0.16000571846961975, 0.8271557092666626, -0.2823738753795624, 0.510178804397583, -0.243992879986763, 0.3527018129825592, 0...
TestFollowerCommitEntry tests that once a follower learns that a log entry is committed, it applies the entry to its local state machine (in log order). Reference: section 5.3
[ 2.109318256378174, -1.0532996654510498, 0.4098505675792694, 0.07789435982704163, 0.5926916599273682, 0.5387377142906189, 1.0525065660476685, -0.6052307486534119, 0.7110999226570129, 0.26605430245399475, -0.21026870608329773, 0.3808706998825073, 0.23710884153842926, 0.19582444429397583, 0...
TestFollowerCheckMsgApp tests that if the follower does not find an entry in its log with the same index and term as the one in AppendEntries RPC, then it refuses the new entries. Otherwise it replies that it accepts the append entries. Reference: section 5.3
[ 1.1610121726989746, 0.1582973450422287, 0.4299282133579254, 0.7076204419136047, -0.11322429031133652, 1.0912326574325562, 0.597551703453064, -1.4594452381134033, 0.409596711397171, -0.28747808933258057, 0.13961172103881836, -0.1368735283613205, -0.8903464078903198, 0.8990703225135803, 0....
TestFollowerAppendEntries tests that when AppendEntries RPC is valid, the follower will delete the existing conflict entry and all that follow it, and append any new entries not already in the log. Also, it writes the new entry into stable storage. Reference: section 5.3
[ 1.0811536312103271, -0.1957252472639084, 0.6575155854225159, 0.6676950454711914, 0.7635118961334229, 0.3955162465572357, 0.6074184775352478, -0.6755383014678955, 0.7559252977371216, -0.1375214010477066, -0.3315906524658203, -0.9884110689163208, -0.7023400664329529, 0.5795667767524719, 0....
TestLeaderSyncFollowerLog tests that the leader could bring a follower's log into consistency with its own. Reference: section 5.3, figure 7
[ 1.098548173904419, 0.18883375823497772, 0.39475077390670776, 0.4962327182292938, -0.6834304928779602, 0.0613330602645874, 1.394612193107605, -0.7757856845855713, 0.4406011700630188, -0.2757434844970703, -0.8188360333442688, 0.5710862874984741, 0.7266651391983032, 0.4213090240955353, 0.87...
TestVoter tests the voter denies its vote if its own log is more uptodate than that of the candidate. Reference: section 5.4.1
[ 0.11328072100877762, -0.4537155032157898, 0.3177732825279236, 0.9801021814346313, -0.23721179366111755, 0.3677583932876587, 1.0892324447631836, -0.9182563424110413, -0.000016903504729270935, -0.24987494945526123, -0.23478473722934723, -0.7026011943817139, 0.17745092511177063, 0.66618120670...
Free decrements the reference count on a message, and releases its resources if no further references remain. While this is not strictly necessary thanks to GC, doing so allows for the resources to be recycled without engaging GC. This can have rather substantial benefits for performance.
[ 0.590390145778656, 0.403615266084671, 0.8039279580116272, -1.2019016742706299, 0.17630760371685028, -0.009570475667715073, 0.9710075855255127, -1.8341647386550903, -0.274422824382782, -0.2129639834165573, 0.517149806022644, 0.7421920299530029, -1.6413819789886475, 1.153580665588379, 0.37...
Dup creates a "duplicate" message. What it really does is simply increment the reference count on the message. Note that since the underlying message is actually shared, consumers must take care not to modify the message. (We might revise this API in the future to add a copyonwrite facility, but for now modification is...
[ -0.5689729452133179, 0.1074686199426651, 1.0143318176269531, -0.4974784255027771, -0.25091636180877686, 0.21151411533355713, 0.8363165259361267, -1.1281582117080688, 0.4176592528820038, 0.3104827105998993, -0.023991812020540237, 1.2511924505233765, -0.7705702781677246, -0.36812204122543335...
Expired returns true if the message has "expired". This is used by transport implementations to discard messages that have been stuck in the write queue for too long, and should be discarded rather than delivered across the transport. This is only used on the TX path, there is no sense of "expiration" on the RX path.
[ 0.3774596154689789, -0.44467875361442566, 0.7057215571403503, -0.4942610263824463, 0.447561651468277, -0.21663856506347656, -0.8986040949821472, -0.17248302698135376, -0.05623994022607803, -0.029440419748425484, -0.0589645691215992, -0.24926258623600006, -0.8951209783554077, 0.400867104530...
NewMessage is the supported way to obtain a new Message. This makes use of a "cache" which greatly reduces the load on the garbage collector.
[ 0.009140906855463982, 0.5222283005714417, 0.5981016159057617, -0.07841075956821442, -0.35771942138671875, -0.6192315816879272, -0.750699520111084, -0.8389393091201782, 0.13410693407058716, -0.2253452092409134, 0.39748889207839966, 0.3699430823326111, -0.6909322738647461, 0.9573925733566284...
Your KthLargest object will be instantiated and called as such: obj := Constructor(k, nums); param_1 := obj.Add(val);
[ 0.7143523693084717, 0.01575274020433426, 0.5749204158782959, 1.0886603593826294, 0.32712608575820923, 0.6086212396621704, -0.23347054421901703, 0.4016469120979309, -0.13142940402030945, -0.4525788724422455, -0.48918208479881287, 0.05357799306511879, 1.3128783702850342, 0.29177477955818176,...
AddGigasecond returns a time (10^9 seconds) past the given time.
[ 0.4830958843231201, 1.604768991470337, 0.39089861512184143, -0.578636646270752, -0.5059729814529419, 0.15687227249145508, -0.518582284450531, -1.396131992340088, -0.44313234090805054, 0.3376119136810303, 0.07126854360103607, -0.3657912015914917, -0.7208042144775391, 0.832444429397583, 0....
Initialize sets up necessary googleprovided sdks and other local data
[ -0.6431893706321716, 0.5881770253181458, 0.23077473044395447, 1.2707998752593994, 0.4993727505207062, 0.06925579160451889, -0.09753536432981491, 0.4982227087020874, 1.047835350036621, 0.044581592082977295, -0.8271685838699341, 0.1226034089922905, 0.2733286917209625, 1.0696980953216553, 0...
GetResourceRecordSets will return all resource record sets for a managed zone
[ 0.5986121296882629, -0.20329226553440094, 0.4198414087295532, 0.0610860176384449, -0.7592715620994568, -0.175434872508049, 0.3987746834754944, -0.28332963585853577, 0.6954929828643799, -0.5188441872596741, 0.9114713668823242, 0.06654904782772064, -0.1936972439289093, 0.1754292994737625, ...
GetResourceRecordSet will search for an existing record set by the resourcer record set name
[ 0.10589254647493362, -0.33912980556488037, 0.2846395969390869, -0.6345290541648865, -0.24150562286376953, -0.6384602785110474, -0.2942102551460266, -0.9707799553871155, -0.685236930847168, -0.22508065402507782, 1.1041905879974365, 0.12317553162574768, -0.05500581115484238, -0.4390916526317...
SetResourceRecordSets will create or update a DNS zone with one or more record sets
[ -0.33524414896965027, 0.004762809723615646, 0.33681169152259827, 0.2017287164926529, 0.06283549219369888, -0.19124698638916016, 0.7711942195892334, -0.6727669835090637, 1.130807876586914, -0.3092728555202484, -0.1763012856245041, -0.4312303960323334, 0.07151608169078827, -0.496203184127807...
DeleteResourceRecordSets will remove all resource record sets from a managed zone
[ 0.8114516139030457, -0.648516058921814, 0.38783082365989685, 0.08466498553752899, -0.6667261719703674, 0.22258307039737701, 0.7646031975746155, -0.23106379806995392, 0.8141385316848755, -0.5339726805686951, 0.8109272718429565, 0.40291690826416016, -0.12739917635917664, 0.16662950813770294,...
Meta sets the meta data to be included in the aggregation response.
[ 0.2008855640888214, 0.2867903411388397, 0.6559897661209106, 0.600936233997345, 0.23673222959041595, 0.2582678198814392, 0.061143189668655396, -0.040072668343782425, -0.5311473608016968, -0.31505241990089417, 0.6986863613128662, 0.23358550667762756, 1.3333114385604858, -0.4308895766735077, ...
NewCreateSubCategoryCreated creates CreateSubCategoryCreated with default headers values
[ 1.4280513525009155, 0.06777043640613556, 0.31362804770469666, 1.4465583562850952, 0.1919684261083603, 0.061623722314834595, 0.6885385513305664, -0.8344331383705139, -0.9233171343803406, -1.6400840282440186, -0.78196120262146, -0.5907039642333984, 0.3595881760120392, 0.7122433185577393, -...
WithPayload adds the payload to the create sub category created response
[ 1.0229897499084473, 0.2754342555999756, 0.32067152857780457, -0.1333644986152649, -0.46865102648735046, 0.4609292447566986, -0.492963045835495, -1.0462610721588135, 0.23372887074947357, -1.442043662071228, -0.3727338910102844, -0.7288745045661926, 1.3278651237487793, -0.20958131551742554, ...
SetPayload sets the payload to the create sub category created response
[ 0.7914128303527832, 0.42941683530807495, 0.033514827489852905, -0.21252846717834473, -0.059259507805109024, 0.8386396765708923, -0.3443222641944885, -0.9426361322402954, -0.24246421456336975, -1.3268330097198486, -0.575760543346405, -0.26409196853637695, 1.087945580482483, 0.15663711726665...
WriteResponse to the client
[ -0.8717360496520996, -0.7780736088752747, 0.015380468219518661, -0.39356309175491333, 1.163083553314209, -1.0627659559249878, 1.0685317516326904, 0.5657004714012146, 0.3969784379005432, 0.2617418169975281, -0.801733672618866, -1.1366636753082275, -0.8097860217094421, -0.8602311611175537, ...
NewCreateSubCategoryBadRequest creates CreateSubCategoryBadRequest with default headers values
[ -0.09828229248523712, -0.30238792300224304, 0.5975355505943298, 1.1455553770065308, 0.07089239358901978, 0.1955755203962326, -0.27994492650032043, -0.29516008496284485, -0.9976696968078613, -1.3430160284042358, -0.262786328792572, 0.9980630874633789, -0.34507662057876587, 1.243567228317260...
WriteResponse to the client
[ -0.8717360496520996, -0.7780736088752747, 0.015380468219518661, -0.39356309175491333, 1.163083553314209, -1.0627659559249878, 1.0685317516326904, 0.5657004714012146, 0.3969784379005432, 0.2617418169975281, -0.801733672618866, -1.1366636753082275, -0.8097860217094421, -0.8602311611175537, ...
New creates processor for k8s Secret resource.
[ 0.4560389518737793, -0.7486382126808167, 0.24188561737537384, 0.12942379713058472, -0.30172157287597656, -0.4328737258911133, -1.0308655500411987, -0.16672933101654053, 0.15756770968437195, 0.2973554730415344, -1.3119796514511108, 0.6713952422142029, 0.75379878282547, -0.04912957549095154,...
Process k8s Secret object into template. Returns false if not capable of processing given resource type.
[ -0.6461297869682312, -0.09060090035200119, 0.4206558167934418, 0.14863330125808716, -0.7934916019439697, -0.05010118708014488, -0.869147002696991, -0.8965172171592712, 0.3644455373287201, 0.2635556161403656, -1.0336123704910278, -0.9337825179100037, -0.09845632314682007, -0.340546786785125...
Create provides a mock function with given fields: ctx, in
[ -0.6722217202186584, 0.25941768288612366, 0.394740492105484, 0.16510002315044403, 0.7531232833862305, 0.9219468235969543, -0.5779249668121338, 0.4481516480445862, -0.44577556848526, -0.5921460390090942, -0.555059552192688, -0.2657683193683624, -0.42048192024230957, -1.0447522401809692, -...
Delete provides a mock function with given fields: ctx, constraintID, formationTemplateID
[ -0.2463507205247879, -0.3449126183986664, 0.23403850197792053, 0.09573892503976822, 0.48935428261756897, -0.27377206087112427, 0.7708155512809753, 0.7027660608291626, 0.4987269341945648, -0.3669523298740387, -0.2187991887331009, -0.6772466897964478, -0.2741467356681824, -0.5025979280471802...
NewConstraintReferenceService creates a new instance of ConstraintReferenceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
[ -0.27435654401779175, -0.19089734554290771, 0.25956013798713684, 0.12879446148872375, 0.5406227707862854, -0.04781124368309975, 1.1042205095291138, -0.48444974422454834, 0.32391229271888733, 0.4936937689781189, 0.31147927045822144, 0.03358938917517662, -1.6394487619400024, 0.23432750999927...
var queryType = "DataType" GET DATA TYPE DETAILS
[ 0.6747058629989624, 1.347945213317871, 0.016874268651008606, -0.12043510377407074, 0.8429044485092163, -0.7045301795005798, -0.2810472548007965, -0.543136477470398, 0.8926997184753418, -0.5806605815887451, -0.2737409472465515, 1.306052327156067, -0.15888836979866028, 0.872569739818573, -...
GET LIST PAGES/POST ADD PAGES
[ -0.54022616147995, -0.11094172298908234, 0.5607063174247742, 0.7287099361419678, 0.9649040102958679, 0.23904156684875488, -1.0218967199325562, 0.3581210970878601, 1.687058925628662, -0.20028837025165558, -0.24397632479667664, -0.5343019366264343, -0.3709823787212372, 1.0943496227264404, ...
idDistance calculates the distance of a and b accounting for wraparound using max. Wraparound means that a may be closer to b if they traveled through max. The lowest value of the following is returned: |a b| max a + b + 1 max b + a + 1 Expressions that evaluate to be larger than max are ignored to prevent overflowing.
[ -0.12368807941675186, -0.542799174785614, 0.47517427802085876, 0.11139369010925293, -0.44484829902648926, -0.005966234486550093, 0.3425053358078003, 0.18190182745456696, 0.7331576943397522, -0.01494322158396244, 0.036185264587402344, 0.40300828218460083, 0.08419924974441528, -0.63623493909...
absSub :: | a b |
[ 0.516236424446106, -0.08296174556016922, 0.4956248700618744, 1.4609328508377075, -0.6414284110069275, 0.805541455745697, -0.9674869179725647, -0.6147071719169617, -0.9086843132972717, -0.4993657171726227, 0.5042198300361633, 0.726177990436554, 1.4050036668777466, -0.7109636664390564, 0.1...
Returns true when v + o would overflow max.
[ 0.507574200630188, 0.4187763035297394, 0.2592332065105438, 0.9197263121604919, -0.34624752402305603, 0.40444687008857727, -0.6550500988960266, -1.1815705299377441, 1.04976487159729, 0.11494382470846176, -0.5098263025283813, 0.0013788938522338867, 0.6650404334068298, -1.1031070947647095, ...
sub :: v o
[ 0.7026553153991699, -0.10456737130880356, 0.31806886196136475, 0.8566042184829712, -1.2691707611083984, 0.042549360543489456, -0.06811247766017914, -0.19139812886714935, -0.2151293307542801, -0.05722006782889366, -1.429133415222168, 1.0680042505264282, 1.4331411123275757, -1.27424168586730...
idAdd :: v + o
[ 0.344939649105072, -0.68211829662323, 0.371439129114151, -0.12153444439172745, 0.020492102950811386, 0.9952689409255981, -0.33644455671310425, -1.0557969808578491, 1.9088213443756104, -0.06208743527531624, -0.8639047145843506, 1.1488399505615234, 0.3047637641429901, -0.7266538143157959, ...
control the terminal mode Set a tty terminal to raw mode.
[ -0.727053165435791, -0.35910511016845703, 0.4016231596469879, -1.1831674575805664, -0.009362473152577877, 0.36357632279396057, -0.8851467370986938, -0.7220832109451294, 0.07834078371524811, -0.5751375555992126, -0.5226246118545532, -0.3567662835121155, 1.6442773342132568, -1.05739116668701...
Restore the terminal mode.
[ 0.14027731120586395, -1.0004217624664307, 0.25636717677116394, -0.8226622939109802, 0.0682605728507042, 0.44727158546447754, -0.6471678018569946, 0.12805387377738953, -0.29590094089508057, -0.2628517746925354, -0.06498527526855469, 0.2748825252056122, -0.23760385811328888, -1.6685968637466...
Add a byte to a utf8 decode. Return the rune and it's size in bytes.
[ -0.03964594006538391, 0.39957195520401, 0.5695416331291199, -0.7713035345077515, -0.047370050102472305, -1.0750036239624023, -0.017304519191384315, 0.7977630496025085, 0.35318464040756226, -0.4657055735588074, -0.37960758805274963, 0.1998627483844757, -0.09551650285720825, -0.2648108303546...
read a single rune from a file descriptor (with timeout) timeout >= 0 : wait for timeout seconds timeout = nil : return immediately
[ 1.0738246440887451, 0.36997660994529724, 0.6278761029243469, 0.14092785120010376, -0.8716952800750732, -0.6898438334465027, -0.8543244004249573, 0.674597978591919, -0.642993152141571, -0.3212870955467224, 1.0837335586547852, 0.6711925268173218, 0.10175498574972153, -0.2745882570743561, -...
If fd is not readable within the timeout period return true.
[ 0.08546381443738937, 0.12504899501800537, 0.4958153963088989, 0.1672821193933487, -1.3294378519058228, 0.9909330010414124, -0.5043087005615234, -0.3248114585876465, -1.107606291770935, 0.0014166991459205747, 1.624601125717163, -0.6729326844215393, -0.3851199150085449, -0.5726796984672546, ...
Write a string to the file descriptor, return the number of bytes written.
[ -0.1150587722659111, 0.10670096427202225, 0.7412686347961426, -0.8973808884620667, -0.1638609915971756, -1.3037090301513672, 0.27530714869499207, 0.5121014714241028, -0.5223641395568848, -1.165333867073059, -0.2578974962234497, -0.2870228588581085, -0.28137561678886414, -0.3098680675029754...
Get the horizontal cursor position
[ 0.7904615998268127, -0.48545199632644653, 0.2715992331504822, 0.9610626101493835, 0.06578830629587173, 0.229798823595047, -0.3022327423095703, 1.0508854389190674, -0.5446938276290894, 0.054625097662210464, -0.6973404288291931, -0.3590885102748871, -0.4690665602684021, -0.753909707069397, ...
Get the number of columns for the terminal. Assume defaultCols if it fails.
[ -0.2808341383934021, 0.823123574256897, 0.2291358858346939, 0.40226560831069946, 0.5424641966819763, -0.6034395694732666, 0.23479147255420685, -0.17467941343784332, -1.021619200706482, -0.6827968955039978, -0.8672098517417908, -0.8240829110145569, -0.02857106551527977, -0.7975257635116577,...
Return true if we know we don't support this terminal.
[ -1.0254838466644287, 0.3019315302371979, 0.3858109712600708, -0.14948657155036926, -0.6565089821815491, 0.33072179555892944, -1.1672992706298828, -0.36969634890556335, -0.38127613067626953, -0.5331754684448242, -0.6084018349647522, -0.47845882177352905, -1.215954303741455, 0.71347296237945...
show hints to the right of the cursor
[ 0.4387105405330658, 0.16354471445083618, 0.48215484619140625, 0.25620323419570923, -0.924206554889679, 0.3327675759792328, 0.23093537986278534, -0.9083589911460876, -0.3730851709842682, 0.9354273080825806, 0.07916169613599777, 0.10411719232797623, -0.12603814899921417, 0.8725723624229431, ...
refresh the edit line
[ -0.5171419382095337, -1.3081164360046387, 0.14726105332374573, 0.5625512599945068, 0.41651153564453125, -0.24658119678497314, -0.44060179591178894, -0.7749640941619873, -0.037200916558504105, 0.06540415436029434, 0.02865154854953289, 0.46892690658569336, 0.5553173422813416, -0.458528250455...
delete the character at the current cursor position
[ 0.6342220306396484, -1.5211817026138306, 0.344635546207428, -0.1192026138305664, -0.21049794554710388, -0.19196514785289764, 0.564014732837677, 0.6565279960632324, 0.19180229306221008, -0.2925281226634979, -0.10806841403245926, 0.6153162717819214, -0.5508999228477478, -0.2837793827056885, ...
delete the character to the left of the current cursor position
[ 1.811489462852478, -1.3897383213043213, 0.5158056616783142, -0.4913945198059082, -0.16266842186450958, 0.005419687833636999, -0.27917367219924927, 0.12924832105636597, 0.6945679783821106, 0.33169957995414734, -0.6831799149513245, 0.21929217875003815, -0.9073251485824585, 0.2997146546840668...
insert a character at the current cursor position
[ -0.3393044173717499, -0.6811992526054382, 0.39898571372032166, -0.7595627307891846, 0.3383331000804901, 0.13646532595157623, 0.8552156686782837, 0.5082569122314453, -0.40284594893455505, -0.3616845905780792, -0.6323444247245789, -0.024938607588410378, -1.2631584405899048, -0.65933817625045...
Swap current character with the previous character.
[ -0.4056529402732849, -0.39211171865463257, 0.6905040740966797, -0.32845669984817505, 0.08946938812732697, 0.09678652137517929, 0.7376154065132141, 0.6093034148216248, -0.3178084194660187, -0.21548649668693542, 0.35797929763793945, 1.3791131973266602, -0.6711615920066833, -1.263713359832763...
Set the line buffer to a string.
[ 0.946151077747345, -1.006542444229126, 0.11846743524074554, -0.49229365587234497, 0.36447790265083313, 0.88733971118927, -0.5011590719223022, -0.683303952217102, -0.3570771813392639, -0.9211702346801758, -1.1327242851257324, 0.7365560531616211, -0.7435128688812256, -0.2526876628398895, -...
Move cursor on the left.
[ 0.897583544254303, -0.4941571056842804, 0.3212088346481323, 1.0031580924987793, 0.23623095452785492, -0.5103801488876343, -0.4199610650539398, -0.24597963690757751, 0.6280944347381592, 0.47616061568260193, -1.4568824768066406, 0.06042492389678955, -0.4551723599433899, 0.9657063484191895, ...
Move cursor to the right.
[ -0.14767810702323914, 0.2828107476234436, 0.11005569994449615, 1.2814559936523438, -0.01551753655076027, -0.5798314213752747, -0.14370319247245789, -0.3693484663963318, -0.37910908460617065, 0.23073336482048035, -0.02976476028561592, 0.42656630277633667, -0.13981416821479797, 0.70706999301...
Move to the start of the line buffer.
[ 0.6837247610092163, -0.6657425761222839, 0.4837168753147125, 0.14717699587345123, 0.856450080871582, 0.6787791848182678, 0.21960677206516266, -0.21574817597866058, -0.11010680347681046, -0.43922340869903564, -0.7040339708328247, 0.7492809295654297, -0.1336285024881363, -0.3916752338409424,...
Move to the end of the line buffer.
[ 0.5221827626228333, -0.5284446477890015, 0.45164695382118225, 0.006544881500303745, 0.8960921168327332, 0.7472675442695618, -0.2455892115831375, -0.6276483535766602, -0.26659834384918213, -0.038617558777332306, -0.9480684995651245, 0.27486029267311096, -0.2848588228225708, -0.1962451636791...