text
stringlengths
7
2.39k
embedding
listlengths
768
768
LoadPlugin loads a plugin from a file path.
[ 0.2664342522621155, -1.3687829971313477, 0.1501578539609909, 0.30641600489616394, -0.719970166683197, 0.3195035755634308, -0.1514994204044342, 0.2787979543209076, -0.43498384952545166, -0.23157630860805511, -0.6733019351959229, 1.0073165893554688, -0.3132493495941162, -1.1011253595352173, ...
IsPluginLoaded returns whether a plugin is loaded based on the plugin ID. A positive doesn't mean the plugin is running.
[ -0.612236738204956, -1.0961869955062866, 0.4967169165611267, 0.3706498146057129, 0.7325987815856934, -0.5831837058067322, -1.2826824188232422, -0.42320236563682556, 0.7197620272636414, 0.15651068091392517, -1.396572470664978, 0.48985302448272705, -0.7096378803253174, -0.4833267629146576, ...
LoadPlugins will load all plugins in the `./plugins` folder.
[ 0.30329903960227966, -0.3432750701904297, 0.33689865469932556, 0.8624001741409302, 0.5513859987258911, 0.1684493124485016, 0.10787208378314972, -0.5767079591751099, 0.28578388690948486, -0.28531718254089355, -1.0688440799713135, 1.2321598529815674, -0.2496557980775833, 0.014264686964452267...
In order for 'go test' to run this suite, we need to create a normal test function and pass our suite to suite.Run
[ 0.2330009937286377, 0.012190978974103928, 0.29649457335472107, 0.5388233065605164, 0.38463979959487915, 0.2824794054031372, 0.05020228773355484, 0.511574387550354, -0.07780826091766357, -0.6808317303657532, -0.020686324685811996, 0.9560161828994751, -0.494625985622406, -0.348604291677475, ...
NewCryptoReader creates a new io.Reader around the given io.Reader.
[ 0.16194157302379608, -0.40633827447891235, 0.16572079062461853, -0.5267891883850098, -1.0217537879943848, -0.1110670417547226, -0.04790069907903671, -1.4002504348754883, -0.20998072624206543, -0.2796975374221802, 0.2848813235759735, 0.7419945597648621, -0.4092716574668884, -0.0013081337092...
NewCryptoWriter creates a new io.Writer around the given io.Writer.
[ 0.2339145541191101, -0.20624171197414398, 0.14852990210056305, 0.3570055663585663, -0.5676721930503845, -0.2797005772590637, 0.8508009910583496, -1.4914630651474, -0.3761293590068817, -0.4514754116535187, -0.2873997092247009, 0.01962088607251644, 0.28165391087532043, 0.693953812122345, -...
MustSave saves a file to AWS straight through.
[ -0.8955332636833191, 0.04286065697669983, 0.3770448863506317, -0.08355756849050522, 0.584476113319397, 1.5068471431732178, -0.8110072016716003, -0.5768338441848755, -0.5651594400405884, 0.3844941556453705, -0.7967405319213867, -0.03779833763837814, 0.807440996170044, 0.2637290954589844, ...
New starts a AWS method
[ -0.1908409297466278, -0.5541115403175354, 0.19216375052928925, 0.3755982518196106, -0.4416939616203308, -0.8560260534286499, -0.16227996349334717, -1.2076709270477295, 0.3999137282371521, -0.7128233909606934, -0.48411107063293457, 1.0825862884521484, 1.757897138595581, 0.12436353415250778,...
GetVerIDs grabs a view of all captured version IDs.
[ 0.3181252181529999, -0.4229266941547394, -0.02821698598563671, 1.0840098857879639, 0.47355106472969055, -0.3048749566078186, -0.7504913806915283, -0.2824641168117523, 0.8685197234153748, 0.5533818006515503, -1.1170628070831299, 1.6651993989944458, -0.1681307703256607, -0.06933566182851791,...
Read opens a generic file on AWS.
[ 0.00014037555956747383, -0.3727134168148041, 0.3815300166606903, -0.33837857842445374, -0.2275385856628418, 1.0429997444152832, -0.04853084683418274, 0.07818485796451569, -0.9259129762649536, -0.8004181981086731, 0.7787315845489502, 0.6225048899650574, 1.1950209140777588, -1.37148749828338...
Open gets JSON from AWS S3 populates the custom struct of the file key is the dir + "/" + filename returns false if err reads NoSuchKey meaning does not exist. Can read true if another error happens, so must determain how to handle error
[ -1.0417753458023071, -0.28501588106155396, 0.6657917499542236, -0.5240762233734131, -0.6852045059204102, 0.7236493825912476, 0.4851195216178894, 0.43386709690093994, -0.15887464582920074, -0.32340720295906067, 0.054471056908369064, -0.10595749318599701, 0.6959623098373413, -0.7811601161956...
Write saves a generic file on AWS.
[ -1.133599877357483, -0.3331052362918854, 0.18380814790725708, -0.24057920277118683, 1.0215545892715454, 0.708734393119812, -0.2701842486858368, -0.09770762175321579, -0.8522501587867737, 0.01841004751622677, -0.6860872507095337, 0.18156741559505463, 1.202040195465088, -0.43211084604263306,...
SaveFile saves a generic file on AWS. TODO: have future programs/libraries use 'Write'
[ -0.528862476348877, -0.1502886414527893, 0.31986474990844727, -0.20856061577796936, 0.6186783313751221, 1.009735107421875, 0.3167067766189575, 0.034171197563409805, -0.5128461718559265, -0.28842779994010925, -0.12383264303207397, 0.048351921141147614, 0.8220873475074768, -0.054432671517133...
Save sends a file to AWS S3 bucket, uses name of file. This will Put the file in the main bucket directory.
[ 0.24824364483356476, 0.02337007038295269, 0.45031750202178955, -0.2242422103881836, -0.10354733467102051, 0.9237005710601807, 0.7884970903396606, -0.09890466183423996, -0.915298342704773, 0.5513533353805542, -1.4152328968048096, -0.13246876001358032, 0.5106551051139832, -0.336721271276474,...
SaveDir writes the given directory to AWS at the specified path.
[ -0.8679720759391785, -0.24562138319015503, 0.3122473359107971, -0.6642265319824219, -0.09574393182992935, 0.6675685048103333, -0.12085909396409988, -0.12215827405452728, 0.21747279167175293, -0.2933548390865326, -0.5474708080291748, 0.7470544576644897, 0.8796239495277405, -0.40045207738876...
OpenDir gets a list of files in the bucket
[ -0.48844075202941895, -0.21387001872062683, 0.32763180136680603, 0.04946574568748474, -0.49703502655029297, -0.13156163692474365, -0.17446529865264893, 0.9330620765686035, -0.2246517390012741, -1.4445631504058838, -0.708418071269989, 0.08906728029251099, 0.1898801177740097, 0.5650590062141...
/BatchUpsert updates a table and overwrite its current the values of column.
[ -0.620638906955719, 0.006535984110087156, 0.35780811309814453, 0.6896293759346008, -0.050815168768167496, -0.5533947944641113, 0.3856789767742157, 0.2460802048444748, -1.3991862535476685, 0.6459647417068481, -1.110755205154419, 0.13536478579044342, -0.59098219871521, -0.3942371904850006, ...
/ xi = x/33 + i/3 yi = y/33 + i%3
[ -0.5490007996559143, 0.6250422596931458, 0.47919538617134094, 0.00654235016554594, -0.06936286389827728, 0.7541733980178833, 0.17949306964874268, -0.9886141419410706, 0.38896530866622925, -0.13151413202285767, -0.8986445069313049, -1.4466124773025513, -1.1086575984954834, -1.72248077392578...
Download downloads a video based on downloadMode
[ -0.07115781307220459, -0.41400977969169617, 0.390831857919693, 2.1828858852386475, -0.28390631079673767, -0.7613045573234558, -0.3072023391723633, 0.40811148285865784, 1.2254300117492676, -0.30765238404273987, 0.1720036119222641, 0.856829822063446, -0.344976544380188, 0.9267804026603699, ...
DoubleConst returns a new constant function of type Double
[ 0.105196513235569, -0.38787105679512024, 0.7001157402992249, -0.026703326031565666, -0.7557893395423889, 0.3588578701019287, 0.2715461850166321, -0.6724456548690796, -0.9213879704475403, 0.08689955621957779, -1.5834312438964844, 0.7542428970336914, 1.1918474435806274, -0.8162437081336975, ...
IntConst returns a new constant function of type Int
[ 0.5214594006538391, -0.9106910228729248, 0.537670373916626, -0.5577713847160339, -0.4068446755409241, -0.04840296134352684, -0.22695636749267578, -0.27110567688941956, -1.0286461114883423, 0.15799768269062042, -0.9367421269416809, 0.2769850790500641, 0.26026907563209534, -1.160732865333557...
UintConst returns a new constant function of type Uint
[ 0.2753414809703827, -1.1086881160736084, 0.4496154189109802, -0.7111958861351013, -0.39584872126579285, -0.1834646612405777, -0.11752571165561676, 0.20500490069389343, -0.24040131270885468, -0.7494606971740723, -0.47586119174957275, 0.10264769941568375, 0.8994058966636658, -0.9158743619918...
BoolConst returns a new constant function of type Bool
[ 1.0553624629974365, -1.0537166595458984, 0.64130699634552, 0.19051986932754517, -0.5279026031494141, 0.2188667356967926, -0.30465811491012573, 0.07360848784446716, -0.73779296875, 0.30611398816108704, -0.8751571178436279, 0.16173920035362244, 0.18428592383861542, -1.2838108539581299, -0....
StringConst returns a new constant function of type String
[ 0.8997823596000671, -1.7348976135253906, 0.43494415283203125, -0.6367937922477722, -0.6948287487030029, 0.06703419983386993, -0.3507626950740814, -0.732636570930481, -0.5370895266532898, 0.05022510886192322, -0.5682500004768372, 1.0865445137023926, 0.5634236335754395, -1.5623648166656494, ...
BytesConst returns a new constant function of type Bytes
[ 0.9842321276664734, -0.5706222653388977, 0.5541789531707764, -0.8726800084114075, -0.20983271300792694, -0.08904336392879486, -0.7867810130119324, -0.7968164086341858, -0.25583720207214355, -0.619074285030365, -1.0832128524780273, 0.8048068881034851, 0.3059875965118408, -0.6325761079788208...
DoublesConst returns a new constant function of type Doubles
[ 0.010174616239964962, -0.09821846336126328, 0.5899896025657654, -0.42155224084854126, -0.8391774296760559, -0.03409278020262718, 0.30022573471069336, -0.9195000529289246, -1.0479904413223267, -0.1527501344680786, -1.5445243120193481, 0.600730299949646, 1.5361346006393433, -0.80010002851486...
IntsConst returns a new constant function of type Ints
[ 0.1584833860397339, -0.47851860523223877, 0.5253614187240601, -0.7487725019454956, -0.6185475587844849, -0.727424144744873, -0.2642911374568939, -0.5188808441162109, -0.6737761497497559, 0.26515164971351624, -0.6385691165924072, 0.5862346887588501, -0.1288672685623169, -1.2942912578582764,...
UintsConst returns a new constant function of type Uints
[ 0.24929311871528625, -0.5954976081848145, 0.514197051525116, -0.6910669207572937, -0.056245025247335434, -0.3586243689060211, -0.5299215316772461, -0.1461462676525116, -0.07630965858697891, -0.5617395043373108, -0.3993890881538391, 0.3682842254638672, 0.8441996574401855, -0.741030931472778...
BoolsConst returns a new constant function of type Bools
[ 0.5834002494812012, -0.5825664401054382, 0.42005935311317444, -0.5440974235534668, -0.4859217405319214, -0.04318775609135628, -0.8820595145225525, -0.34642183780670166, -1.3113794326782227, 0.1248367428779602, -0.561779260635376, 0.3313095271587372, 0.4002053439617157, -1.3511178493499756,...
StringsConst returns a new constant function of type Strings
[ 0.6758162379264832, -1.1148467063903809, 0.37885046005249023, -1.5273656845092773, -0.26636672019958496, -0.19185875356197357, -0.23135346174240112, -0.5746753215789795, -0.20958082377910614, -0.1611739993095398, -0.08369557559490204, 0.8936300277709961, 0.3097306191921234, -0.886408507823...
ListOfBytesConst returns a new constant function of type ListOfBytes
[ 0.8175880312919617, -0.8130019307136536, 0.5704701542854309, -0.7944390177726746, -0.05874789506196976, -0.2335168868303299, -0.5640211701393127, 0.4117565155029297, 0.5329747796058655, -0.03573678433895111, -1.0751584768295288, 0.08912796527147293, 0.4423464834690094, 0.2462598830461502, ...
AskAccountName asks for a batch account name, potentially overridable by a CLI arg.
[ 0.5109752416610718, -0.1961205154657364, 0.6328192949295044, 1.6004267930984497, -0.15351209044456482, 0.43060070276260376, 0.7764269113540649, -0.25890475511550903, 0.40276747941970825, -0.4112083613872528, 0.3054315745830536, 0.6115597486495972, 0.75472092628479, 0.36116886138916016, -...
CreateAndSave creates a batch account and saves it to the config.
[ 0.07481013983488083, -0.030258696526288986, 0.14880135655403137, 1.2956516742706299, 0.989456295967102, 0.5567218065261841, 0.12584170699119568, 0.22148244082927704, -0.3376452624797821, -0.05881107971072197, -1.9046465158462524, -0.2391437292098999, 0.3724209666252136, 0.10891324281692505...
CreateAccount creates a new azure batch account
[ 1.0329885482788086, -0.5706910490989685, -0.07274845242500305, 1.8323818445205688, 1.0192326307296753, 0.5457779765129089, 0.2942359149456024, 0.6383700370788574, -0.505501389503479, 0.27782562375068665, -0.1228848472237587, 0.23690254986286163, -0.6299192309379578, 0.15629889070987701, ...
/ Create a copy and return its address, so that individial tests which call this are not able to modify the original container and affect other tests by doing that
[ -0.18160460889339447, -0.7608619332313538, 0.9262522459030151, -0.5143760442733765, -1.161684274673462, 0.04422467574477196, 1.327698826789856, -0.30508726835250854, 0.5794637799263, 0.28284430503845215, 0.4350123703479767, 1.1804744005203247, -1.0168381929397583, -0.7009371519088745, -0...
NewMockMetadata creates a new HTTP server.
[ -0.9222114086151123, -0.5259584784507751, 0.3291688561439514, 0.7768310904502869, 1.1065346002578735, 0.7305071353912354, -0.1195782870054245, 0.26356786489486694, -0.6161701083183289, 0.7925237417221069, -0.6428087949752808, 0.6830961108207703, -0.8867928385734558, 0.3307168781757355, -...
GetURL returns the URL of the MockIamServer.
[ -0.3939918279647827, 0.01911206915974617, 0.384043425321579, 0.4972851574420929, 0.3771268427371979, 0.2675471305847168, 0.9423866868019104, 0.745705246925354, 1.1338533163070679, 0.5345039367675781, -0.18587879836559296, 0.38257333636283875, -1.01153564453125, 0.13977952301502228, -0.84...
NewMockOnchainDataDaoInterface creates a new mock instance
[ 0.45542317628860474, -0.3950132131576538, 0.025109250098466873, -0.5769002437591553, 0.10006238520145416, 0.98957359790802, 0.20345592498779297, -0.4669828414916992, -0.6036235094070435, -0.6384459137916565, -0.49494004249572754, 0.5206707715988159, -0.791759192943573, 0.6583265662193298, ...
EXPECT returns an object that allows the caller to indicate expected use
[ -0.8617038726806641, -0.4291757345199585, 0.7921441793441772, -0.6770946979522705, -0.7516939043998718, -0.04710967838764191, 0.08051209151744843, -0.4222958981990814, 0.2527259588241577, -0.6747550964355469, -0.0032193786464631557, -0.014756533317267895, -0.5511481165885925, -0.1986238211...
SetLastestTransaction mocks base method
[ -0.19164852797985077, -0.6115308403968811, 0.23425038158893585, -1.0296865701675415, 1.2735545635223389, -0.25139451026916504, 0.3676934838294983, -1.501774549484253, 0.07554960995912552, 0.3024023175239563, -0.5919068455696106, -1.2810472249984741, -1.0819423198699951, -0.3910190165042877...
SetLastestTransaction indicates an expected call of SetLastestTransaction
[ 0.28810352087020874, 0.47991031408309937, 0.3736357092857361, -1.320056676864624, 0.6656510233879089, 0.4206348657608032, -0.4025185704231262, -1.4220525026321411, 1.253809928894043, 0.3734453618526459, 0.2725910544395447, 0.0767473578453064, -1.1523267030715942, -0.2791982591152191, -1....
GetLastestTransaction mocks base method
[ 0.13505123555660248, -0.45767682790756226, 0.34784984588623047, -0.9109042882919312, 1.4117587804794312, -0.5537444353103638, 0.18385352194309235, -1.6334692239761353, 0.0012505162740126252, 0.06877072155475616, -0.23746980726718903, -1.2552587985992432, -1.1490589380264282, -0.78429770469...
GetLastestTransaction indicates an expected call of GetLastestTransaction
[ 0.3932282030582428, 0.46289876103401184, 0.6088789105415344, -1.1371349096298218, 0.8883034586906433, 0.11899060755968094, -0.6020776629447937, -1.4113729000091553, 1.6226924657821655, 0.33030837774276733, 0.4917953908443451, 0.1911919265985489, -1.1580934524536133, -0.6074488759040833, ...
/ 5 / \ 4 8 / / \ 11 13 4 / \ \ 7 2 1
[ -0.41187453269958496, 0.019157269969582558, 0.5042615532875061, 0.6525691151618958, -0.47307613492012024, -1.1218582391738892, 1.1353397369384766, -0.6258686184883118, 0.06564254313707352, 0.05419669672846794, -0.9727957844734192, -0.8502923846244812, -0.5702469944953918, -0.11010752618312...
NewBuild returns a new Build.
[ 0.6099147796630859, -1.9441829919815063, 0.22829467058181763, 1.409873604774475, -0.3047662377357483, 0.7749231457710266, -0.21592095494270325, -0.7069099545478821, -0.1603327840566635, -1.8660469055175781, -0.06395166367292404, 0.24518384039402008, -0.9624298810958862, 0.04376845806837082...
Listen starts listening on Stdin
[ 0.87868332862854, -1.500990629196167, 0.07693202793598175, 0.6606199741363525, 0.06659220904111862, 1.3728482723236084, -0.0025427988730371, 0.4532862603664398, -0.8809223175048828, -0.6972146034240723, -1.3355679512023926, -0.40972062945365906, 0.11144997179508209, -0.13803189992904663, ...
SendMessage sends a message on Stdout
[ -0.1426294595003128, -0.028733953833580017, 0.2899016737937927, 0.8357155919075012, 0.019600694999098778, -0.40007007122039795, -0.22799046337604523, -1.0182385444641113, -0.5721107125282288, 0.31935644149780273, 0.7604919075965881, 0.21377472579479218, -1.0823560953140259, 1.6539084911346...
Read receives a number of bytes from Stdin
[ -0.19424909353256226, 0.3763691484928131, 0.6709811091423035, 0.029640210792422295, -0.5701028108596802, 0.7450059056282043, 0.023016061633825302, -0.28177759051322937, -0.2566770613193512, -1.1240698099136353, -0.28263354301452637, 0.20033766329288483, -0.7123354077339172, -0.320883482694...
Start method starts the run loop for the worker, listening for a quit channel in case we need to stop it
[ 0.3377446234226227, -0.9141530394554138, 0.4065871238708496, -0.03728450462222099, 0.1884218454360962, 0.8713502883911133, -0.25350359082221985, -0.4689546227455139, -0.8256203532218933, 0.005756015423685312, -0.14154179394245148, 0.4213322103023529, -0.5666912198066711, 0.4302045404911041...
NewLineStartSplitFunc creates a bufio.SplitFunc that splits an incoming stream into tokens that start with a match to the regex pattern provided
[ 0.9992150068283081, -0.9472911953926086, 0.5212725400924683, -0.2720402479171753, -0.1314648538827896, -0.7313248515129089, 0.861942708492279, 0.9701340794563293, -0.0048052421770989895, -0.6716938614845276, -0.07819441705942154, 0.9791920185089111, 0.5685108304023743, -0.5515948534011841,...
NewLineEndSplitFunc creates a bufio.SplitFunc that splits an incoming stream into tokens that end with a match to the regex pattern provided
[ 0.8158307671546936, -0.2900109589099884, 0.3936735987663269, -0.4452659487724304, 0.012717649340629578, -0.4955253601074219, 0.33274170756340027, 1.2202931642532349, -0.4168827533721924, -0.41769474744796753, -0.40781369805336, 0.41248804330825806, 0.07869846373796463, -0.15616671741008759...
NewNewlineSplitFunc splits log lines by newline, just as bufio.ScanLines, but never returning an token using EOF as a terminator
[ 0.9288166165351868, -0.9115638732910156, 0.3660139739513397, 0.16231808066368103, -0.5889338254928589, -0.9541581273078918, -0.2199486643075943, 0.1156792938709259, 0.04203518107533455, 0.03509579598903656, -0.202993243932724, -0.14389711618423462, 0.6396893262863159, -0.0997270718216896, ...
Finds the perpendicular distance from a given 2D point to a line
[ 1.155843734741211, -0.9471035003662109, 0.5864379405975342, 0.6984604597091675, -0.9321804046630859, 0.8300310969352722, -0.9845395088195801, -0.08109897375106812, 0.02562021277844906, -0.28710877895355225, 0.678322970867157, -0.8153138160705566, -0.19129514694213867, -0.771023154258728, ...
Finds the farthest 2D point from a given line
[ 0.4125851094722748, -0.9223767518997192, 0.46417856216430664, 1.1483217477798462, -0.22458748519420624, -0.03084118478000164, -0.3103344440460205, -0.9889912605285645, -1.1639798879623413, -1.1960728168487549, 0.7183640003204346, 0.29820936918258667, 0.6616743803024292, 0.04685874655842781...
Uses the times array and values array to build a single array containing 2D points
[ -0.7014731168746948, -0.0548630990087986, 0.4554045498371124, 0.4031035900115967, 0.25551673769950867, 0.35752996802330017, -0.6334253549575806, -0.4174262285232544, -0.08081795275211334, 0.055892061442136765, 1.3413410186767578, 0.6042248010635376, 0.8210574984550476, 1.0153542757034302, ...
Recursive implementation of the RDP Algorithm given the epsilon value
[ 0.16419146955013275, 1.3459854125976562, 0.3239600658416748, -0.3373565375804901, -0.3133678436279297, -0.15408028662204742, -0.12495183199644089, 0.47500503063201904, 1.0930789709091187, 0.8731308579444885, -0.19941997528076172, -0.6180760264396667, -0.705012857913971, 0.6531993746757507,...
Iterative implementation of the RDP algorithm for the given retention rate
[ 0.4562695026397705, 0.31330251693725586, 0.27162662148475647, -0.7914426326751709, -0.12964479625225067, 0.1637571156024933, -0.5597417950630188, -0.07508713006973267, 0.5255239605903625, 1.2877886295318604, 0.9459501504898071, -0.3354092538356781, -0.49262356758117676, -0.345811128616333,...
Learning the value of epsilon (maxTolerance) automatically if both the epsilon value and the retention rate have not been given
[ 1.137885332107544, 0.4266379773616791, 0.32821348309516907, 0.3005993068218231, 0.44098368287086487, -0.39486566185951233, -0.13836494088172913, 0.8033950328826904, 0.3741256296634674, -0.5506436824798584, -0.3640475273132324, -0.06303294748067856, 0.26919981837272644, 0.6010214686393738, ...
Given the array of 2D points split them into separate x and y arrays
[ -1.0972888469696045, -0.896001398563385, 0.2652240991592407, 0.4281803071498871, 0.5083058476448059, 0.20216956734657288, 0.02870854362845421, 0.4287772476673126, 0.5575301051139832, 0.10126040875911713, 0.06372210383415222, -0.23851682245731354, 0.424262136220932, 0.09857602417469025, 0...
Find returns the interfaces declared in the given AstStream
[ 0.010301557369530201, -0.2060031145811081, 0.2803322374820709, 0.059775907546281815, -0.10650396347045898, -0.5779207348823547, 0.8481357097625732, -0.6889476776123047, -0.009920220822095871, 0.2088698148727417, 0.41785934567451477, 0.19949929416179657, -0.9683104753494263, 1.9678792953491...
NewAstStream creates a new ast stream instance
[ -0.07538571208715439, -0.9795717597007751, 0.3401736915111542, -0.22863028943538666, -1.6399497985839844, -0.6583592891693115, -0.6295823454856873, 0.04588402435183525, 0.10562139004468918, -0.5504189729690552, -0.47797536849975586, 0.26071497797966003, 0.23567600548267365, 1.5882456302642...
returns true when an agent has a majority of votes for the proposed view
[ -0.16948245465755463, 0.08605475723743439, 0.5345557928085327, 0.1411045789718628, 0.650016188621521, -0.3462730944156647, -1.659886121749878, 0.10135440528392792, 1.109566569328308, -0.1604509800672531, 1.0618642568588257, -0.393852174282074, 0.20088772475719452, 0.7829314470291138, -1....
NOTE important that for all the shiftTo...() functions, we must first set our state variable
[ -0.6145097613334656, 0.023204414173960686, 0.5018598437309265, 0.13772165775299072, 0.33043667674064636, -0.3289584517478943, 0.43660762906074524, -0.15228067338466644, -0.20719079673290253, -0.4281960427761078, -0.5187914371490479, 0.7371618151664734, 0.4271370470523834, -0.07253444194793...
NOTE We only become leader by doing shiftToCandidate() and voting for ourself Therefore, we know who we voted for. We have already adjusted our currentTerm (during shiftToCandidare())
[ 0.10371163487434387, -1.4250125885009766, 0.42836785316467285, 0.43872588872909546, 0.14361846446990967, 0.44419166445732117, -0.5725966691970825, 0.4063687026500702, 0.37675952911376953, -0.1695667803287506, -0.04250168800354004, 1.379459261894226, -0.35834842920303345, 0.5747798085212708...
StoreClientData allows a client to send data to the raft cluster via RPC for storage We fill the reply struct with "success = true" if we are leader and store the data successfully. If we are not leader, we will reply with the id of another node, and the client must detect this and retry at that node. If we do not know...
[ 0.17597855627536774, 0.46449440717697144, 0.5641294121742249, -0.5521860122680664, -0.07618241757154465, 0.521879255771637, 0.15920236706733704, -1.1268850564956665, 0.33943596482276917, 0.01131987664848566, -0.7523670196533203, 0.7705793976783752, -1.6521620750427246, -0.09360525757074356...
After sending updates to other nodes, we try to advance our commitIndex At the end, we try to execute log
[ -0.17589464783668518, 0.30385905504226685, 0.4422266483306885, -0.4312078654766083, 0.07263582199811935, -0.05549919232726097, -0.23265403509140015, -0.9648184180259705, -0.4831913709640503, 0.21724319458007812, 0.5009860396385193, 0.36158081889152527, -0.6541991233825684, -0.6317910552024...
Based on our commit index, apply any log entries that are ready for commit This function should be idempotent and safe to apply often.
[ 0.7969693541526794, -0.71062833070755, 0.4823569357395172, -0.422409325838089, 0.17158149182796478, -0.41880956292152405, -0.2632499635219574, 0.06191682070493698, 0.19085551798343658, 0.36540696024894714, 0.7105626463890076, 0.6289578080177307, -0.176319420337677, -0.00746324984356761, ...
AppendEntries is called by RPC from the leader to modify the log of a follower. TODO some amount of duplicated logic in AppendEntries() and Vote() Returns false if entries were rejected, or true if accepted
[ -0.04070333391427994, 0.5291159152984619, 0.6159348487854004, 0.024873677641153336, -0.5951141119003296, 0.8154401779174805, -0.333413302898407, -0.061482541263103485, 0.6945760250091553, -0.3824232518672943, 0.09723442792892456, -0.3240085244178772, -1.4045147895812988, 1.2124090194702148...
CandidateLooksEligible allows a raft node to decide whether another host's log is sufficiently uptodate to become leader Returns true if the incoming RequestVote shows that the peer is at least as uptodate as we are See paper section 5.4
[ -0.7329788208007812, -0.1957365870475769, 0.5567933320999146, 0.07103448361158371, -0.9388450980186462, 0.763566255569458, -0.6011008620262146, -0.5298029184341431, -0.48370128870010376, 0.43520310521125793, -0.24378220736980438, 0.5959430932998657, -0.29200953245162964, -0.013392243534326...
Vote is called by RPC from a candidate. We can observe the following from the raft.github.io simulation: 1) If we get a requestVoteRPC from a future term, we immediately jump to that term and send our vote 2) If we are already collecting votes for the next election, and simultaneously get a request from another node to...
[ -0.07814323157072067, -0.09457460790872574, 0.6067290902137756, 0.7481234073638916, 0.12492953985929489, 0.10369556397199631, -1.069077968597412, -0.6799544095993042, -0.1255207657814026, -0.15863536298274994, 0.14434373378753662, 0.6501599550247192, -0.43819427490234375, 0.204152554273605...
Start is the entrypoint for a raft node (constructed here or in a test) to begin the protocol
[ 0.6815500855445862, 0.38615182042121887, 0.51658034324646, 0.6110292077064514, 0.5743952393531799, 0.4661644697189331, 1.0123168230056763, 0.4094063937664032, 0.53794926404953, 0.08530193567276001, -0.6451169848442078, 1.4699132442474365, -1.1570066213607788, 0.0024959645234048367, -1.58...
Quit the protocol on a timer (to be run in separate goroutine)
[ -0.23588860034942627, -0.5055629014968872, 0.3584311604499817, 0.013175338506698608, -0.4720028340816498, 0.7203422784805298, -0.20803946256637573, -1.1533969640731812, -0.8220444917678833, 0.19326555728912354, -0.3061562776565552, -0.052060991525650024, -1.2545686960220337, 0.486468046903...
Raft is the entrypoint function for the raft replicated state machine protocol
[ 0.5448693633079529, 0.9456439018249512, 0.2522251605987549, 0.2315308153629303, 0.07023753225803375, 0.20180322229862213, 0.8711981773376465, 0.4146631360054016, -0.30719849467277527, 0.11984685808420181, -0.744331955909729, 1.5491849184036255, 0.36280980706214905, -0.5631349086761475, -...
Version is the current release version.
[ -0.6898512244224548, -2.1759843826293945, 0.12926021218299866, 1.0404689311981201, 0.6094375848770142, 1.081343173980713, 0.561148464679718, 0.45105355978012085, 0.09959159791469574, 0.6463562846183777, -0.7693260908126831, -0.2822260856628418, -0.20909784734249115, 0.28934425115585327, ...
loadEnumWithComment load list of enum + comment
[ -0.5571033358573914, -1.2275532484054565, 0.22175967693328857, -0.2736123502254486, 0.47020357847213745, -0.21153314411640167, 0.5939866304397583, -0.060265932232141495, 1.326357126235962, 1.6118454933166504, -1.1074190139770508, -0.8551812171936035, -0.3244074285030365, 1.330873727798462,...
saveTo save go source with format, saved file may need goimport
[ -0.7340083718299866, 0.01184652280062437, 0.3085176944732666, -0.12360875308513641, 0.8979189991950989, 0.3958025872707367, 0.39943456649780273, 0.048475224524736404, -0.08408068120479584, 0.6619895100593567, -0.9389532208442688, -0.17097418010234833, 0.5895682573318481, 0.3716076016426086...
GetRtLmpPrice returns the current ERCOT price
[ -0.41020679473876953, -1.1887640953063965, 0.40698087215423584, -0.47367963194847107, -0.40416136384010315, 0.48796650767326355, -1.3072679042816162, 0.20507070422172546, 0.07162763178348541, 1.8291910886764526, 0.16416439414024353, -0.7178954482078552, -1.2165964841842651, -0.394857496023...
getWebpageHTML returns the raw HTML from the ERCOT live pricing web page
[ 0.493863970041275, 0.0229718629270792, 0.47386783361434937, 0.9168575406074524, -0.47016510367393494, 0.14884479343891144, 0.245280459523201, 0.4510553777217865, 0.4463571012020111, 1.512022852897644, 0.3888649344444275, -0.35019221901893616, -0.015848318114876747, 0.16089129447937012, -...
extractPrice returns the current price for the requested settlement zone on the ERCOT web site
[ -0.6010069251060486, -0.35197311639785767, 0.4275440573692322, 0.7551983594894409, -0.10355772823095322, -0.7469788789749146, 0.3808934986591339, -0.03819005563855171, 0.7297734022140503, 1.233106255531311, 0.04844219982624054, -0.8217165470123291, -0.2743045389652252, -0.41803795099258423...
C_spatial_segment classifies a spatial segment using the given sted and prov values. // from Albatross book 2.0 at p.38 Sted in MON 2004: 1 5 (changed to) > // hh.Urb: 0 4
[ -0.03280514478683472, -0.37893328070640564, 0.5000324249267578, 0.6635621190071106, -0.7506039142608643, 0.8000741600990295, 0.5075830221176147, 0.20085401833057404, -0.4955255091190338, 0.07986204326152802, 0.49876299500465393, 1.307878017425537, 0.8045902252197266, 0.3197448253631592, ...
ReadSubzones returns a channel on witch the subzones will be returned. You must read all members until the channel is closed.
[ 0.32228952646255493, -0.2578379213809967, 0.48249948024749756, 0.8456236124038696, 0.09792204946279526, 0.5728965997695923, 0.39512768387794495, -0.5631387233734131, 0.19054803252220154, -1.2784972190856934, -0.25851336121559143, 1.32938551902771, -1.1817396879196167, -1.2651917934417725, ...
This example logs DEBUG & ERROR entries to stdout, but only ERROR entries to the log file.
[ 1.117569088935852, -0.9267371892929077, 0.29149729013442993, 0.30803486704826355, 0.2662526071071625, 0.14782026410102844, -0.5567099452018738, 0.14696381986141205, -0.08622308820486069, -0.17977921664714813, -0.09173300117254257, 1.4013599157333374, 1.2104618549346924, 0.5041791200637817,...
newTestClient returns http.Client with Transport replaced to avoid making real calls
[ 0.061789240688085556, -0.7259132862091064, 0.18137182295322418, -0.4175620973110199, -0.23600023984909058, 0.008265838027000427, -0.005554996430873871, -1.108799934387207, -0.27871668338775635, -0.20440028607845306, -0.44665661454200745, 0.13903924822807312, -1.087202787399292, -1.07356536...
New create a instance of Dao and return.
[ 0.2719877362251282, -0.09981437772512436, 0.48174047470092773, 0.4615573585033417, -0.6301807761192322, -0.612829327583313, -0.1991242617368698, 0.6961439251899719, -0.19542784988880157, -1.4296644926071167, -0.6874404549598694, -0.8917747735977173, 0.5908921957015991, -0.2052631676197052,...
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +++++++++++++++++++++++++++++++++ |x x x x x x x x| Family | XPort | +++++++++++++++++++++++++++++++++ | XAddress (Variable) +++++++++++++++++++++++++++++++++ Figure 6: Format of XORMAPPEDADDRESS Attribute
[ 0.35603150725364685, -1.115746259689331, 0.8055064082145691, -0.8942515254020691, -0.8571805953979492, 0.44323134422302246, 1.032761573791504, -0.16814005374908447, 1.2004215717315674, 0.4145600497722626, -0.25743135809898376, 0.7604917883872986, 0.34109219908714294, -0.36173179745674133, ...
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +++++++++++++++++++++++++++++++++ |0 0 0 0 0 0 0 0| Family | Port | +++++++++++++++++++++++++++++++++ | | | Address (32 bits or 128 bits) | | | +++++++++++++++++++++++++++++++++ Figure 5: Format of MAPPEDADDRESS Attribute
[ 0.020907895639538765, -0.6361936926841736, 0.8615899085998535, -0.5718886852264404, -0.9505316615104675, 0.46789681911468506, 1.42423415184021, -0.6681210994720459, 1.1196550130844116, 0.13880346715450287, 0.20429667830467224, 0.7840673923492432, 0.5882953405380249, 0.4669302701950073, 0...
renderPDF creates the actual pdf document, which is send to the user to print visitor cards. this function needs accomodations to match e.g. CI/CD
[ 0.23354026675224304, -0.5446657538414001, 0.48236745595932007, 0.10917631536722183, -0.4344615936279297, -0.3442613184452057, 0.9743891954421997, 0.9446385502815247, -0.7448874115943909, -0.12456749379634857, 0.535943329334259, 0.017951127141714096, -0.6431558728218079, -1.2035359144210815...
Ping to test the Ethereum blockchain connection return true if connected
[ -0.006413519848138094, 0.4709387719631195, 0.48093727231025696, 0.18291226029396057, 1.1222084760665894, 0.7506453990936279, -1.2883942127227783, -0.23959630727767944, -0.1951499879360199, 1.4184318780899048, -0.467136949300766, -1.2532687187194824, -1.6689616441726685, -0.8620116710662842...
Format returns formatted size given specified precision and scaling.
[ 0.2277250736951828, -0.7001857757568359, 0.39069393277168274, -0.6705920696258545, -1.335992693901062, -0.464350163936615, -0.8060719966888428, -0.509529709815979, 0.201032355427742, -0.47928065061569214, 1.2894493341445923, -0.2271091192960739, 0.6225557327270508, 0.1442510038614273, 0....
String returns commonly formatted size with one sign after period and using binarypowered prefixes like MiB.
[ 0.2632609009742737, -0.9049228429794312, 0.7200694680213928, 0.12139499187469482, -1.077939510345459, 0.39177459478378296, -0.6588946580886841, -0.48771658539772034, 0.7462678551673889, 0.16447533667087555, 0.6339349150657654, 0.21305988729000092, 0.009827583096921444, -0.14711196720600128...
AsInt64 converts size back to 64bit integer.
[ -0.4036630392074585, -0.597140908241272, 0.5235402584075928, 0.5874007344245911, 0.11469797790050507, -0.7339487075805664, 0.5223386883735657, -0.3060992360115051, 1.0555336475372314, -0.29397085309028625, -0.08231212943792343, -0.39914044737815857, -0.30545133352279663, 0.3089229464530945...
ParseServerConfig filename will parse the given file and return a ServerConfig object containing its data
[ -0.02967064455151558, -0.3427806794643402, 0.29897964000701904, 0.04112136363983154, -1.202221155166626, 0.10390295833349228, -0.2821160852909088, 1.3029699325561523, -1.1949963569641113, 0.31880611181259155, -1.0301700830459595, -0.0893470048904419, -0.5283452272415161, 0.4485017359256744...
Runner executes external commands in the real environment.
[ -0.5703386664390564, -0.048061687499284744, 0.32716646790504456, 0.8682096600532532, -0.35125109553337097, 0.7036687731742859, 0.06089780852198601, 0.03281475231051445, -0.5406705141067505, -0.23849909007549286, -0.15426908433437347, 0.6037363409996033, 0.7746611833572388, 0.28792998194694...
SaveToFile saves the input string into a file in the file system. It creates the file and all parent folder if not exist.
[ 0.2922568917274475, -0.22756007313728333, 0.39111417531967163, 0.5676102042198181, 0.7788172364234924, 0.5949385762214661, 1.0108798742294312, -0.4230654537677765, -0.9616144299507141, -0.7367784976959229, -0.6685234308242798, -1.0261682271957397, -0.16018146276474, 0.14930573105812073, ...
inspired by Gerhard Richter's 256 colors, 1974
[ -0.02426115982234478, 0.3331449031829834, 0.08371587842702866, -0.5315475463867188, -0.3913608491420746, -0.6502434015274048, 1.3958144187927246, -0.18155603110790253, 0.5008953213691711, 0.2599470019340515, -1.1009882688522339, 0.02354866825044155, -0.19957596063613892, 0.8788831830024719...
Tests Species reproduce failure
[ 0.2600944936275482, 0.11750471591949463, 0.17052406072616577, 1.4113928079605103, 0.3853425979614258, 0.5861234664916992, 0.486259788274765, -0.48180896043777466, -0.941500186920166, -0.06751972436904907, -0.7258811593055725, 0.22802463173866272, -1.2125822305679321, -0.5549870729446411, ...
Tests Species reproduce success
[ 0.08405488729476929, -0.06298764050006866, 0.2338537871837616, 1.5228543281555176, 0.48334693908691406, 0.6495229005813599, 0.19871646165847778, 0.06646373867988586, -0.6023279428482056, 0.18938830494880676, -1.0108575820922852, 0.2303164005279541, -0.9281197190284729, -0.741242527961731, ...
Creates a NamedDsFetcher from a map of DataSourcers. This is useful to bootstrap a DSL Context without any database.
[ -0.2849288284778595, 0.06686847656965256, 0.15454770624637604, -0.610711932182312, -1.5615553855895996, -0.5499398708343506, -1.4137908220291138, -0.6906390190124512, 0.4945859909057617, -0.8265248537063599, -1.1056087017059326, -0.0479634553194046, 0.26922398805618286, 0.7692028284072876,...
InitDashboardClient loads configuration and assigns the dashboard client profile (sets static client metrics)
[ 0.668804943561554, 1.0512624979019165, 0.20101511478424072, 1.1663432121276855, 0.2524838149547577, 0.45630258321762085, 2.353856325149536, -0.12004270404577255, -1.8745002746582031, -0.4013180434703827, -1.2057371139526367, -0.1531607210636139, -0.16184528172016144, 0.3555622100830078, ...
ReceiveDashboardRequest receives server requests and returns data
[ -0.3105500340461731, 0.6598567962646484, 0.5356529355049133, 0.284229576587677, 0.017184006050229073, 0.13307622075080872, 0.19380776584148407, -0.25660768151283264, -0.5011963844299316, -0.6142747402191162, 0.1563892662525177, -0.09128745645284653, -0.07064732909202576, 0.54658442735672, ...