text
stringlengths
7
2.39k
embedding
listlengths
768
768
ReadStrings prompts the user for a list of strings.
[ -0.5556192398071289, 0.16615170240402222, 0.4814438223838806, 0.24014349281787872, -0.03495056554675102, 0.30961844325065613, -0.49584048986434937, -0.06960075348615646, 0.10475154221057892, -0.3969501554965973, 0.5947592854499817, 0.8433200716972351, -0.7918260097503662, -0.93521618843078...
ReadBool prompts the user for a boolean value.
[ -0.009783066809177399, -0.1485314816236496, 0.5748880505561829, 1.5061168670654297, -0.19363947212696075, 0.9535661339759827, 0.015101557597517967, -0.14263112843036652, -0.3273652493953705, -0.5905382633209229, 0.875554621219635, 0.35190701484680176, 0.039835669100284576, -2.0065662860870...
Scenes outputs scene changes in seconds.
[ 0.3648742139339447, -0.9463922381401062, 0.17993362247943878, 0.3322129249572754, -1.0081199407577515, -0.9654885530471802, 0.6684806942939758, -1.170457124710083, -0.018402287736535072, 0.6701563596725464, -0.8041967749595642, 0.511897623538971, 0.2926120162010193, 1.3828856945037842, -...
ParseScenes reads scene change timestamps (seconds).
[ 0.1850060671567917, -0.22713907063007355, 0.20156759023666382, -0.0962909609079361, 0.07386277616024017, -1.1835589408874512, -0.30679407715797424, -0.5974238514900208, 0.48002785444259644, 1.1489040851593018, -0.9261848330497742, -0.18119902908802032, 0.7388096451759338, -0.08226100355386...
SceneIntervals detects scene change includes minDuration for each scene.
[ 0.2764747738838196, -0.7409369945526123, 0.22300203144550323, 0.4504208266735077, -0.7549397945404053, 0.46129482984542847, -0.28659215569496155, -0.5706192255020142, 0.6710737347602844, 0.7456462979316711, -0.6237106323242188, 0.1179957166314125, 0.10835752636194229, 1.4830317497253418, ...
Intervals includes minDuration for each segment.
[ 0.07397996634244919, -0.35466283559799194, 0.13900691270828247, 0.5317464470863342, -0.1980307698249817, 1.4018144607543945, -0.4395608603954315, -0.5751625895500183, 0.9146649837493896, 0.9955179691314697, -0.2611730992794037, -0.4309403896331787, -0.00762677937746048, 0.6073247790336609,...
===== [ Constants and Variables ] ===== ===== [ Types ] ===== ===== [ Implementations ] ===== ===== [ Private Functions ] ===== ===== [ Public Functions ] ===== NewDefaultResourceCmd : "cbadm defaultresource " (for CBSpider)
[ 0.4207330048084259, -0.39787358045578003, 0.8366587162017822, 0.13093939423561096, 0.08434832096099854, 0.04714791476726532, 0.9546420574188232, -0.09005811810493469, 0.14027152955532074, -0.2384408712387085, -0.4912974536418915, -0.3610643744468689, -0.644237756729126, 1.39765465259552, ...
NewDefaultResourceLoadCmd : "cbadm defaultresource load"
[ 0.5867655873298645, -0.24842548370361328, 0.13269197940826416, -0.21736077964305878, -0.04469699785113335, 0.16479934751987457, 0.10656222701072693, -0.5200098752975464, 0.8678022027015686, -0.19602040946483612, 0.1116907075047493, -0.23795196413993835, -0.4023136794567108, 0.9112108349800...
Unmarshal unmarshals the littleendian binary representation of volume information flags. The provided data must be at least 2 bytes long, or unmarshal will panic.
[ 0.623923122882843, 0.10255681723356247, 0.4511498808860779, -0.8427901864051819, 0.4253515899181366, 0.12331335246562958, -0.6130309104919434, 0.12143862992525101, -0.09097225964069366, -0.9369977712631226, -0.24473117291927338, -0.4866073429584503, -0.3913585841655731, -0.3990643322467804...
String returns a description of the volume information flags.
[ 0.5633445382118225, -0.8072556853294373, 0.14622758328914642, -0.26224204897880554, 1.1371204853057861, 0.5628644824028015, -0.3445557653903961, -0.6495642066001892, -0.6360965967178345, 0.07450839132070541, 0.4156712591648102, 0.4609469473361969, -0.48698553442955017, -0.5416764616966248,...
RPC sets the type of service, eg. stack, grpc but this func will be deprecated
[ 0.03791334852576256, 0.47512364387512207, 0.6782280802726746, 0.17926999926567078, 0.11687740683555603, -0.13060984015464783, -0.06433016061782837, -1.3919522762298584, -0.006389319896697998, 0.3940790593624115, 0.014883918687701225, 1.0799635648727417, -1.1496007442474365, 0.7143522500991...
Context specifies a context for the service. Can be used to signal shutdown of the service. Can be used for extra option values.
[ -0.6337961554527283, 0.29311826825141907, 0.6315537691116333, -0.3352552354335785, 0.08144200593233109, 0.7713339328765869, -0.7435742616653442, -0.5541889667510986, 1.1973978281021118, -0.2734319865703583, -0.6152163147926331, 0.4128704071044922, 0.07256440073251724, -0.526339590549469, ...
HandleSignal toggles automatic installation of the signal handler that traps TERM, INT, and QUIT. Users of this feature to disable the signal handler, should control liveness of the service through the context.
[ 0.07220744341611862, -0.3347870707511902, 0.5365489721298218, 0.9529950618743896, -0.2868182361125946, 1.343977689743042, 0.20817412436008453, 0.36421340703964233, 0.9360807538032532, -0.38702312111854553, -0.7267230153083801, -0.5419526100158691, -0.3230431377887726, 0.4308648109436035, ...
Registry sets the registry for the service and the underlying components
[ -0.04984042048454285, 0.4872108995914459, 0.023274049162864685, -0.8015431761741638, 0.9838055372238159, -0.20334820449352264, 0.5242852568626404, 0.5355046391487122, 0.5649163722991943, -1.0959312915802002, -0.03267878666520119, 0.6601115465164185, 0.2536790072917938, 0.971215009689331, ...
Selector sets the selector for the service client
[ 0.1493828147649765, -0.6866146326065063, 0.07751213014125824, -0.8382353186607361, 0.11779554188251495, 0.32013219594955444, 0.021406859159469604, -0.5696033239364624, -0.14926603436470032, -0.7050067186355591, 0.04774939641356468, 0.7850097417831421, -0.40954384207725525, 0.08327260613441...
Transport sets the transport for the service and the underlying components
[ -0.02650436758995056, -0.2327420562505722, 0.04567372426390648, -1.0188175439834595, 0.3084423840045929, 0.4527435004711151, -0.08825153857469559, -0.7565957903862, 0.5913757085800171, -1.4516195058822632, -1.190786600112915, 0.9186223745346069, 0.07162465155124664, 0.5069882869720459, -...
Address sets the address of the server
[ -1.0067689418792725, -0.7497033476829529, 0.5220751166343689, -0.5522653460502625, -0.20300953090190887, 1.1334660053253174, -0.21140362322330475, 0.7179936766624451, 0.9750300049781799, 0.3721200227737427, -0.8714854717254639, 1.9725192785263062, -0.946135401725769, 1.2499369382858276, ...
Name of the service
[ 0.1433587372303009, -0.8335428237915039, 0.4358345568180084, -0.6048497557640076, -0.49631360173225403, 0.23057788610458374, -0.48724550008773804, -1.3387408256530762, -0.3921240568161011, 0.7051602602005005, -0.20927824079990387, 0.31543534994125366, 0.17368324100971222, 0.723134934902191...
Version of the service
[ 0.06934676319360733, -1.2125600576400757, 0.2367124855518341, 0.08154230564832687, -0.17525455355644226, 0.390150249004364, -0.3904392719268799, -0.981628954410553, -0.09272509068250656, 1.110628366470337, -0.9470545053482056, 0.45312798023223877, -0.21352657675743103, 0.5364673137664795, ...
Metadata associated with the service
[ 0.048420753329992294, -0.29755938053131104, 0.1712474822998047, -0.2116437405347824, 1.112748146057129, 0.07921811193227768, -0.9691764712333679, -0.7811188101768494, -0.6952852606773376, 0.1603085845708847, 0.32653090357780457, 1.0811375379562378, 0.8174610137939453, 0.736807644367218, ...
Profile to be used for debug profile
[ 0.615682065486908, 0.09338665753602982, 0.6825709342956543, 0.04908465966582298, 1.255892038345337, -0.2823431193828583, 0.27334415912628174, -1.5038923025131226, 0.007524755317717791, -0.704592764377594, -0.7259083986282349, 0.21974889934062958, -0.34256282448768616, 0.20343860983848572, ...
RegisterTTL specifies the TTL to use when registering the service
[ 0.2108750194311142, 1.149652123451233, 0.43695318698883057, -0.5379568338394165, 0.5515154600143433, 0.09614910185337067, -0.9631249904632568, 0.1759587526321411, 0.4049440324306488, 0.37237778306007385, -1.6238545179367065, -0.2090476006269455, 0.5868644118309021, -0.10164577513933182, ...
RegisterInterval specifies the interval on which to reregister
[ -0.40404459834098816, 0.21631768345832825, 0.31440502405166626, 0.5286437273025513, 0.6538302898406982, 0.6389778852462769, -0.1422719955444336, 0.6961138844490051, -0.28364166617393494, -0.328593909740448, -1.4107029438018799, 0.8403053879737854, -1.023036241531372, -0.4332088232040405, ...
WrapClient is a convenience method for wrapping a Client with some middleware component. A list of wrappers can be provided. Wrappers are applied in reverse order so the last is executed first.
[ -0.8798103332519531, -0.24435774981975555, 0.33636051416397095, 0.6091726422309875, -0.5012412071228027, 0.452725887298584, -0.3292253613471985, 0.2597362697124481, -0.40008828043937683, -0.014629234559834003, -0.24931220710277557, 0.22943313419818878, -0.7324250936508179, 0.11120340973138...
WrapCall is a convenience method for wrapping a Client CallFunc
[ 0.03294915705919266, 0.3653969168663025, 0.3765278458595276, -0.2519858181476593, -1.4025689363479614, 1.1962404251098633, -0.9549880027770996, -0.8322924375534058, 0.26258984208106995, -0.003630295628681779, 0.20951281487941742, 0.9421536326408386, 0.7528786063194275, -0.7031952142715454,...
WrapHandler adds a handler Wrapper to a list of options passed into the server
[ -1.51260507106781, -0.6079384684562683, 0.3244982957839966, 0.40969979763031006, 0.56754070520401, 1.2841081619262695, -0.9050593972206116, 0.30098751187324524, 0.09876810759305954, -0.09908027201890945, -0.4677422046661377, -0.12650306522846222, -0.4714088439941406, 1.0663317441940308, ...
WrapSubscriber adds a subscriber Wrapper to a list of options passed into the server
[ -0.6706185936927795, -0.8720235228538513, 0.5330032706260681, 0.6402890682220459, 0.39435014128685, 0.25596854090690613, -1.62503182888031, -0.13415014743804932, 0.5923518538475037, 0.26748037338256836, -0.2679344117641449, 0.34765082597732544, -0.13253676891326904, 1.2013425827026367, -...
Process creates dynamic template with the data.
[ 0.738236665725708, -0.7039584517478943, 0.1203659176826477, -0.05136224254965782, -0.15855391323566437, 0.002534281462430954, -0.4994664192199707, -0.5688169598579407, -0.2381056547164917, -0.6851868033409119, -0.46873918175697327, -0.5172763466835022, 0.7199540138244629, 0.316984713077545...
/ I have read that the TXID of a bitcoin transaction is the double sha256 of the hex of a transaction with 4 bytes (0x01000000 added = SIGHASH_ALL). However, it seems that the sigScript of each input is ignored when performing this hash calculation. Some articles also state that you should replace the sigScript or each...
[ 0.7241760492324829, -0.44956332445144653, 0.7238405346870422, 0.05551794543862343, -0.5507104396820068, -0.5385627746582031, 0.3553709387779236, 0.4324885308742523, 0.91083163022995, 0.32862576842308044, -0.9987301230430603, -0.24674631655216217, 0.014100970700383186, 0.5906500816345215, ...
/ 01000000 01 eccf7e3034189b851985d871f91384b8ee357cd47c3024736e5676eb2debb3f2 01000000 19 76a914010966776006953d5567439e5e39f86a0d273bee88ac ffffffff 01 605af40500000000 19 76a914d12a4a7d09c457fa6d345bd5c2348f109237db1188ac 00000000
[ 1.027683138847351, 0.41739726066589355, 0.8802767992019653, -0.42321935296058655, 0.34662461280822754, 0.16836054623126984, 0.6073579788208008, -0.26415371894836426, -0.04132961481809616, 0.14316296577453613, -1.0240343809127808, -0.4807775616645813, 0.08462414890527725, 0.4501335918903351...
calls setupTestFs() links the index file system into Viper creates 'config.properties' from the given string and loads it
[ 0.3134259879589081, -0.6911088824272156, 0.1753624826669693, 0.08966625481843948, 0.5369275808334351, -0.9689319133758545, 0.9772146344184875, 0.4137292206287384, 0.5190472602844238, -0.9407625794410706, 0.09554589539766312, -0.7055078744888306, -1.1809996366500854, -0.8502373099327087, ...
MarshalOscriptBuf marshals to specific format, the fields for process unmarshal/marshal are identified differently.
[ 1.0706311464309692, -0.7037236094474792, 0.2895543873310089, 0.32108840346336365, 0.3475327491760254, -0.28488975763320923, -0.3448783755302429, -0.17103299498558044, -0.030091915279626846, -1.0749781131744385, -0.0002574229147285223, 1.1098580360412598, 0.9951789379119873, 0.3320680856704...
OpenFile opens the named file for reading.
[ -0.19685398042201996, 0.15788011252880096, 0.23269374668598175, -0.20463314652442932, -0.35941025614738464, 0.6757313013076782, 0.14438819885253906, 0.6920334696769714, -1.0477403402328491, -0.4773035943508148, 0.4370536506175995, -0.314891517162323, 0.2669256627559662, -0.6758463978767395...
CreateFile creates a document.
[ 1.0959174633026123, -0.31050437688827515, 0.13506454229354858, 0.26213550567626953, 0.44301146268844604, 1.1548372507095337, 0.3150879740715027, 0.14656686782836914, -1.4117786884307861, -0.3033847212791443, 0.4002077281475067, -1.0468173027038574, -0.18001538515090942, -0.4487520158290863...
AddVersionFile adds new version of the file.
[ 0.2144547402858734, -0.9456153512001038, 0.5322093963623047, 1.0728850364685059, 0.5751540660858154, 1.7128756046295166, -0.014470582827925682, 0.681368350982666, -1.3589900732040405, 0.1466979682445526, -1.012418270111084, -0.9576596021652222, -0.25711363554000854, 0.3376022279262543, -...
ReadFile reads content and returns information about the file.
[ -0.13331663608551025, -0.5824313163757324, 0.557204008102417, -0.39584779739379883, 0.5046463012695312, 0.14225634932518005, -0.057393573224544525, -0.1436416059732437, -1.9990533590316772, -0.5645788908004761, -0.04169371351599693, -0.6195230484008789, 0.7026130557060242, -0.4011337757110...
Predicates and small utility functions
[ 0.7478795647621155, 0.14062437415122986, 0.2644655406475067, -0.09221241623163223, -1.3444026708602905, 0.2433982789516449, -0.5415257811546326, 0.9020721912384033, 0.09387747198343277, -0.9526135921478271, -0.4481949210166931, 0.407991498708725, 0.26953041553497314, -0.743330717086792, ...
newDirectory creates a new package directory tree with at most maxDepth levels, anchored at root which is relative to goroot. The result tree only contains directories that contain package files or that contain subdirectories containing package files (transitively).
[ -0.04672844707965851, 0.5373170971870422, 0.6844826936721802, 0.21099057793617249, -0.47831398248672485, -0.5668549537658691, 0.4687095880508423, -0.018742112442851067, 0.48263195157051086, -0.13853076100349426, 0.38427260518074036, 0.31701213121414185, 0.039875008165836334, 0.708588182926...
lookup looks for the Directory for a given path, relative to dir.
[ -0.8013966083526611, 0.18519574403762817, 0.5559079647064209, -0.2272457331418991, -0.8042059540748596, 0.15902768075466156, 0.787921667098999, -1.010170340538025, 0.19527870416641235, -0.6144042015075684, 1.0222190618515015, 0.16102254390716553, 0.7233383059501648, -1.286452054977417, -...
listing creates a (linear) directory listing from a directory tree. If skipRoot is set, the root directory itself is excluded from the list.
[ -0.49253028631210327, 0.49761873483657837, 0.6342452764511108, -0.0006551563856191933, -1.1349151134490967, 0.17186342179775238, 0.5916371941566467, 0.5438784956932068, 0.9585278034210205, -0.2884643077850342, 0.38849154114723206, 0.4499892294406891, 0.4236779808998108, -0.0424820892512798...
Parses a file (path) and returns the corresponding AST and a sorted list (by file position) of errors, if any.
[ 0.17061381042003632, -1.458196759223938, 0.5157816410064697, -0.25947317481040955, -0.5071758031845093, -0.47499942779541016, 0.35663944482803345, 0.22723376750946045, -0.005668436177074909, 0.4905121326446533, -0.5587710738182068, -0.25336384773254395, 0.777214765548706, 0.515859425067901...
Templates Write an ASTnode to w; optionally htmlescaped.
[ -0.9380759000778198, 0.6826621890068054, 0.34319809079170227, -0.30103784799575806, -0.4995521008968353, -0.4602159559726715, 0.11196693032979965, -0.2702452838420868, 0.8188974857330322, -0.20708052814006805, -0.4223121106624603, -0.28721144795417786, 0.8942043781280518, 0.889613151550293...
Write text to w; optionally htmlescaped.
[ -0.22742176055908203, 0.9292716979980469, 0.31114697456359863, 1.248728632926941, 0.04231251776218414, 0.13134275376796722, 0.06474657356739044, -0.08626696467399597, 0.6292493939399719, -0.2922126054763794, -0.5202219486236572, 0.1208060011267662, 0.08311017602682114, 0.6370260715484619, ...
Write anything to w; optionally htmlescaped.
[ -0.4736294150352478, 0.5499013662338257, 0.3155251741409302, 1.2781182527542114, 0.3255167603492737, -0.15677988529205322, -0.15961220860481262, -0.6481339335441589, 0.2958223223686218, -0.8579375743865967, -0.23343142867088318, 0.0964556559920311, -0.03173556178808212, 0.8925679922103882,...
Template formatter for "html" format.
[ -0.4434930086135864, -0.23200008273124695, 0.28568607568740845, -0.40100979804992676, -1.1887567043304443, -0.5793837308883667, -0.11633925884962082, -0.33203694224357605, 0.10037284344434738, -0.7203451991081238, 0.3365459442138672, -0.524724543094635, 1.3754249811172485, 0.80920761823654...
Template formatter for "htmlcomment" format.
[ 0.1996127814054489, -0.9899438619613647, 0.2996688783168793, -0.6371618509292603, -0.25394406914711, -0.7219071984291077, 0.9974084496498108, -0.5237781405448914, 0.11378485709428787, 0.015575124882161617, 0.47081393003463745, -0.5704072713851929, 0.9652972221374512, 0.631084144115448, -...
Template formatter for "" (default) format.
[ 0.20883016288280487, -0.3136429786682129, 0.21804523468017578, -0.8193480968475342, 0.4653603136539459, -0.7002873420715332, -0.4285919666290283, -0.7433739900588989, -0.14627797901630402, -0.8416827917098999, -0.5453159213066101, -0.6703261137008667, 0.4747483730316162, 0.4783741533756256...
Template formatter for "path" format.
[ -0.15839046239852905, -1.2856636047363281, 0.17726536095142365, -0.5626175999641418, -0.9003852009773254, -0.8519169688224792, 0.6944625973701477, -0.8088914155960083, 0.023311972618103027, -0.48751428723335266, 0.41877269744873047, -0.8279097676277161, 0.8853148221969604, 0.35008120536804...
Template formatter for "link" format.
[ -0.06342363357543945, -0.7065639495849609, 0.2752179205417633, -0.6923171281814575, -0.1776694804430008, -1.33891761302948, 0.5439258217811584, -0.6617645621299744, 0.7659582495689392, -1.4888789653778076, 0.5579184889793396, 0.28878116607666016, 1.1182403564453125, 0.4544673562049866, -...
Template formatter for "infoKind" format.
[ -0.0945461317896843, -1.0711822509765625, 0.17694835364818573, -0.8077679872512817, -0.43419328331947327, -0.932219922542572, -0.6328644156455994, -0.903659999370575, -0.15398649871349335, -0.15171386301517487, 0.4092676639556885, 0.018339267000555992, 0.7314403653144836, 0.606569766998291...
Template formatter for "infoLine" format.
[ 0.44259199500083923, -1.209632158279419, 0.24883942306041718, -0.573915421962738, -0.08945506811141968, -0.6605314612388611, -0.6715308427810669, -0.6391168832778931, 0.2212083786725998, -0.3089682161808014, -0.13178548216819763, -0.8753410577774048, 1.2291864156723022, 0.12094451487064362...
Template formatter for "infoSnippet" format.
[ -0.4972594678401947, -0.3831027150154114, 0.21101725101470947, -0.6272439956665039, -0.7271620631217957, -0.8563095331192017, -0.5518524646759033, -0.43855223059654236, 0.2296726107597351, 0.13795465230941772, -0.11518251150846481, -1.0410590171813965, 1.3715124130249023, 0.608199596405029...
Template formatter for "padding" format.
[ 0.327637642621994, -0.018205886706709862, 0.21554386615753174, -0.5482162833213806, -0.8370937705039978, -0.5763069987297058, 0.22284317016601562, -1.384027123451233, 0.4629793167114258, -0.18732309341430664, 0.49613428115844727, -0.7396475076675415, 1.1910773515701294, 1.312832236289978, ...
Template formatter for "time" format.
[ -0.1616474837064743, -0.39644432067871094, 0.4879799485206604, -0.6779994964599609, -0.6861075162887573, -1.1742970943450928, -0.509263813495636, -1.0542901754379272, 0.2590610086917877, 0.5621204376220703, -0.6909040808677673, -1.6765410900115967, 0.972588837146759, 1.1255232095718384, ...
commentText returns the text of the first HTML comment in src.
[ 0.1321917474269867, -0.4346286356449127, 0.5089268088340759, -0.33283981680870056, -0.2651699483394623, -0.48911526799201965, 0.44559746980667114, -0.3734523355960846, 0.7701436281204224, 0.5779659152030945, 0.15925663709640503, -0.261147677898407, -0.2622518241405487, 0.04105360060930252,...
getPageInfo returns the PageInfo for a given package directory. If there is no corresponding package in the directory, PageInfo.PDoc is nil. If there are no subdirectories, PageInfo.Dirs is nil.
[ -0.3235863447189331, 0.2932279407978058, 0.519976019859314, -0.48990899324417114, 0.5191256999969482, -0.07685298472642899, -0.30993154644966125, -0.22393403947353363, 0.41568607091903687, -0.5749411582946777, 0.21937121450901031, -0.5899304151535034, 0.15343576669692993, 0.149260237812995...
NewMongoClient creates a new Wrapper.
[ -0.2555815279483795, -0.13940413296222687, 0.0794953852891922, 0.9339450597763062, -0.31504905223846436, -0.7469213604927063, 0.07476752996444702, -0.16187892854213715, -0.5082798004150391, 0.2186158001422882, -0.8073752522468567, 0.48712238669395447, -0.8647956848144531, -0.13792777061462...
Database returns a Database object. DataLayer shadows the mongo.Database.
[ 0.013086995109915733, 0.5403015613555908, 0.027470285072922707, 0.2795867323875427, 0.18627698719501495, 0.43491289019584656, 0.3036339581012726, -0.6709764003753662, 0.7859669327735901, -0.8286101222038269, -0.31540268659591675, 0.7619948387145996, -0.4669785499572754, 0.6624943614006042,...
Close closes the MongoDB connection.
[ 0.12279554456472397, -0.37751755118370056, 0.5341259241104126, 0.5020601153373718, 0.261388897895813, 0.8242387771606445, -0.8026719093322754, -0.26951348781585693, -0.7109769582748413, -0.13372483849525452, 0.7749894857406616, 0.3756807744503021, -1.501427412033081, 0.7921112179756165, ...
Collection returns a mongo collection. CollectionLayer shadows the mongo.Collection.
[ 0.28854861855506897, -0.04489821195602417, 0.21949686110019684, 0.2750004827976227, -0.15129904448986053, 0.6605040431022644, 0.5174639821052551, -0.7968847155570984, 0.14106832444667816, -0.30061644315719604, -0.003991387784481049, 0.1647087037563324, -0.2690768241882324, 1.41634631156921...
InsertOne inserts a document.
[ -0.7552478313446045, 1.410530924797058, 0.07786325365304947, 0.6872497797012329, 0.6833005547523499, 0.14803963899612427, 0.9887509346008301, 0.49388036131858826, -0.47736918926239014, -0.2802562415599823, -1.2936352491378784, -0.9441587924957275, -1.729346513748169, -0.3729260265827179, ...
FindOne finds a document given filters and options.
[ -0.10991401970386505, 0.30970388650894165, 0.2847052812576294, 0.4559575021266937, 0.6623908877372742, -0.2239782065153122, 1.1576871871948242, -0.4128335118293762, -0.19132164120674133, 0.2256319522857666, 0.5307270288467407, -0.3478406071662903, -1.1038919687271118, 0.09593363106250763, ...
FindOneAndUpdate finds a document and updates it. Closest we have to a transaction.
[ -0.28524520993232727, -0.7299622297286987, 0.5285494923591614, -0.1476605385541916, -1.0045251846313477, -0.45893824100494385, 0.43070390820503235, -0.816477358341217, 0.053038496524095535, 0.5230197310447693, 0.5314985513687134, -0.9716734886169434, -1.4941726922988892, -0.257694661617279...
FindOneAndDelete finds a document and removes it.
[ 0.241764098405838, -0.21042034029960632, 0.48784440755844116, 0.11169268935918808, 0.16350841522216797, -0.40525752305984497, 1.2228832244873047, 0.3888232707977295, 0.46182188391685486, 0.685882031917572, 0.3899078369140625, -0.7276278734207153, -1.1957073211669922, 0.029878510162234306, ...
Decode decodes an element into a bson document. Note: Mongo's Decode() accepts a document as a parameter. This method uses Mongo's Decode(), but makes it simpler to test.
[ 0.12908188998699188, -0.08365996927022934, 0.414777934551239, 0.9086920022964478, -0.5465537309646606, -0.5011060237884521, -0.4555227756500244, -0.2116883397102356, 1.0356584787368774, -0.3473910689353943, -0.8770915865898132, 0.324130654335022, -0.6555486917495728, -0.3392655849456787, ...
/ This function will get eligible customers within 100km of the office. Arguments: ipFile io.Reader Return: []model.CustomerList list of eligible customers error error if any error occurred
[ -0.43411532044410706, -0.2648383677005768, 0.39385271072387695, 0.8286241888999939, -0.9624878168106079, 1.1342095136642456, -0.05291318893432617, 0.7908915877342224, -0.8216397166252136, 0.5751577615737915, -0.7629393339157104, 0.022918788716197014, 0.0015748724108561873, -0.3909236490726...
/ This function checks if customer is within the distance limit. Arguments: customer model.CustomerList customer Return: bool if customer is within the distance limit from the office
[ -0.008850939571857452, -0.09163381159305573, 0.5932968258857727, 1.2266006469726562, -1.6155285835266113, 1.303101897239685, -0.6312696933746338, 0.4636676013469696, -0.24400892853736877, 0.7360954284667969, -0.9859419465065002, -0.002734631299972534, -0.8886990547180176, -0.09518400579690...
/ This function calculate the distance between customer and the office. Arguments: customerLatitude float64 customer latitude customerLongitude float64 customer longitude Return: float64 distance between customer and the office
[ 0.7463734745979309, -0.8338971734046936, 0.2907111644744873, 0.07640571147203445, -0.8412165641784668, 0.7520071268081665, -0.030479656532406807, 0.6109944581985474, -0.04707418754696846, 0.9111077189445496, -0.5661279559135437, -0.4458104074001312, -0.3972524404525757, 0.07847420871257782...
/ This function generate the output and write it to the file. Arguments: customers []model.CustomerList list of eligible customers
[ -0.3088563084602356, -0.4256512224674225, 0.27349743247032166, 0.918870210647583, -0.1166832223534584, 0.5355571508407593, 0.5361723899841309, 1.4337379932403564, -1.1006109714508057, 0.1674802303314209, -0.5006037950515747, -0.32435476779937744, -0.15443336963653564, 0.6395816802978516, ...
map our config file to our web server config
[ -0.072996124625206, -1.0148234367370605, 0.4203946888446808, 0.7401454448699951, -0.6855823397636414, 0.759677529335022, 0.25143635272979736, 1.4654749631881714, -0.024478958919644356, -0.18740594387054443, -1.3235796689987183, -0.2120867222547531, 0.1379094123840332, 1.3946665525436401, ...
WithoutAll disables all decodings.
[ 0.4218723773956299, -0.2878672182559967, 0.30738869309425354, 0.45335155725479126, -1.3485459089279175, 0.7642512321472168, 0.18025104701519012, 0.6593218445777893, 0.015969086438417435, -0.33595773577690125, -1.6689338684082031, -0.48528119921684265, -0.38274523615837097, 0.94719982147216...
New decoder with all decodings enabled by default.
[ 0.3179638981819153, -0.25196874141693115, 0.20731686055660248, 1.1151316165924072, -0.5706700086593628, -0.6399850845336914, -0.8111590147018433, 0.43862006068229675, 0.49042224884033203, -1.163621187210083, -1.3185598850250244, -0.3775620460510254, -0.5830228328704834, 1.2259585857391357,...
DecodeAll decodes the given input recursively as long as a decoding was applied.
[ 0.31503599882125854, 0.18601655960083008, 0.4157898426055908, 0.7277371287345886, -0.7062923312187195, 0.17446164786815643, 0.011481630615890026, -0.4289701581001282, 0.9702646136283875, -1.514700174331665, -0.2690053880214691, 0.45475807785987854, -0.45012030005455017, 1.5523656606674194,...
Decode the given input as proto message, hex or base64 (applied in this order).
[ -0.1458008885383606, 0.005778808146715164, 0.1802375167608261, 1.4843575954437256, 0.2757751941680908, 0.576432466506958, -0.4380522668361664, 0.28400006890296936, 0.5315856337547302, -0.9241616725921631, 0.6414337158203125, 0.1340426355600357, -0.8893811702728271, 1.4770121574401855, -0...
XXX_OneofFuncs is for the internal use of the proto package.
[ -0.17013126611709595, 1.0761243104934692, 0.20915263891220093, -0.6182059049606323, 0.6224396824836731, -0.8975542783737183, 0.7869046330451965, -0.6365662217140198, 0.7954583168029785, -1.0330039262771606, 0.006769324187189341, -0.33913013339042664, -0.4915696978569031, 0.0210608523339033...
LazyCreateDynamicClient lazily creates the dynamic client if its not defined
[ 0.31069228053092957, -0.3413885831832886, 0.2868678569793701, 0.14530286192893982, 1.1091578006744385, -0.5892093777656555, 0.3799937963485718, -0.8218277096748352, -0.9171489477157593, -1.3372540473937988, -0.5642449855804443, 0.5962978601455688, -0.09812518954277039, 0.20635125041007996,...
LazyCreateKubeClient lazy creates the kube client if its not defined
[ 0.3110949695110321, -0.20542815327644348, 0.3216107189655304, 0.08885851502418518, 0.7330026626586914, -0.4595315158367157, -0.18447686731815338, -1.0084571838378906, -0.5185840129852295, -0.8576599955558777, -0.36027228832244873, 0.3288295567035675, -0.7351360321044922, 0.2372588217258453...
LazyCreateKubeClientWithMandatory if mandatory is specified then the env vars are ignored to determine if we use kubernetes or not
[ -0.32297736406326294, -0.036637745797634125, 0.34746792912483215, -0.07816136628389359, 0.505873441696167, 0.5382900238037109, -1.1157464981079102, -0.44536736607551575, -0.12681439518928528, 0.17376483976840973, 0.1806870698928833, 0.5972273945808411, -0.6589075922966003, 0.89639621973037...
LazyCreateKubeClientAndNamespace lazy creates the kube client and/or the current namespace if not already defined
[ 0.15875449776649475, -0.3952869176864624, 0.2285623401403427, -0.16196316480636597, 0.15426145493984222, -0.29364630579948425, -0.234604611992836, -1.2940877676010132, 1.0381790399551392, -0.9611141681671143, 0.19125299155712128, 0.8234614133834839, -0.6275539398193359, 0.9897297024726868,...
IsInCluster tells if we are running incluster
[ 0.5999245047569275, -0.7660213112831116, 0.7181898355484009, 0.3342900276184082, -0.0664619654417038, -0.28884613513946533, 0.23012371361255646, 0.6141418814659119, 0.01067986898124218, -0.23873108625411987, 0.06878829002380371, 1.8433407545089722, -1.3468672037124634, -0.6248505115509033,...
IsNoKubernetes returns true if we are inside a GitHub Action or not using kubernetes
[ 0.09827250987291336, -0.09426501393318176, 0.4729519784450531, 1.0375785827636719, 0.04964457452297211, -0.1459255963563919, -0.6907042264938354, -0.2658221125602722, 1.3016836643218994, 0.4018612802028656, 0.743104875087738, 0.3386375606060028, -0.28720107674598694, 0.6298484206199646, ...
NewFakeKubernetesClient creates a fake k8s client if we have disabled kubernetes
[ 0.3408065736293793, -0.67934650182724, 0.24145114421844482, 0.26579007506370544, -0.887291431427002, 0.0758792906999588, -0.7380436658859253, -0.7194576263427734, 1.1307554244995117, 0.06774555891752243, -0.36865267157554626, -0.11802229285240173, -0.7730469703674316, -0.005762507673352957...
New create a sys db populated with args and env.
[ 0.17405344545841217, -0.47348347306251526, 0.2495647817850113, 1.184861421585083, 0.8906785845756531, -0.22290170192718506, 0.06416768580675125, 0.16199824213981628, -0.8156880140304565, -0.592738151550293, -0.7839757800102234, 0.387923926115036, 0.34637609124183655, 1.6434983015060425, ...
Close the sysdb and release
[ -0.45345377922058105, -0.6515898704528809, 0.39098235964775085, 0.519807755947113, -0.6094391345977783, 1.2362802028656006, -0.27428144216537476, 0.46071702241897583, 0.5926324129104614, -0.47665107250213623, -0.2329433709383011, -0.28732338547706604, -0.6090366244316101, 1.418757677078247...
Environ dumps sys.env (which the user is free to modify) in Go readable format.
[ -0.12723244726657867, -0.4875345528125763, 0.20036768913269043, -0.19366294145584106, -0.09446322917938232, 0.45767679810523987, 0.5591464042663574, -0.06744630634784698, -0.17354346811771393, 0.2600673735141754, -0.683711588382721, 1.3143972158432007, 0.6142212152481079, 0.698940932750701...
needScale returns if a cluster is ready for rescaling. It returns true if one of the following situations is met: 1. The time has passed over the minimum retrying interval since last provision. 2. last provision < last update + the maximum agent starting period. 3. last provision < last update + the maximum agent idle ...
[ -0.7523723840713501, -0.33105340600013733, 0.6917021870613098, 0.12539903819561005, -0.34509164094924927, 0.056080520153045654, -1.2695311307907104, -0.35946154594421387, -0.29402703046798706, 1.2183266878128052, 0.05574076622724533, -0.3150774836540222, -0.6854325532913208, -0.03739636391...
example code to send a RequestVote RPC to a server. server is the index of the target server in rf.peers[]. expects RPC arguments in args. fills in reply with RPC reply, so caller should pass &reply. the types of the args and reply passed to Call() must be the same as the types of the arguments declared in the handler ...
[ -0.625268280506134, 0.06512372195720673, 1.0743409395217896, 0.01037332508713007, -0.162993922829628, 1.275942325592041, -1.0986791849136353, -0.5547125935554504, -0.28630995750427246, 0.24462376534938812, -0.10544010251760483, 0.2529871463775635, -1.8429031372070312, -0.1847580224275589, ...
Catch recovers from panic. It should be used as a deferred call. If the supplied panic callback is nil, the panic will be silently discarded. Otherwise, the callback will be invoked with the panic's information.
[ 0.9233461022377014, 0.12355609238147736, 0.5325844287872314, 0.8087054491043091, -0.6507371664047241, 0.4298221468925476, -0.6435306668281555, -0.664520263671875, 0.9538681507110596, -0.054215848445892334, -0.20367082953453064, -0.8357362151145935, 0.6676492094993591, 0.2652412950992584, ...
Do executes f. If a panic occurs during execution, the supplied callback will be called with the panic's information. If the panic callback is nil, the panic will be caught and discarded silently.
[ 0.8103844523429871, 0.4342593550682068, 0.531610906124115, 1.0151487588882446, -0.2018946409225464, 0.6874108910560608, -0.017225585877895355, -0.3775884509086609, 0.11102484166622162, 0.5866077542304993, -0.23914000391960144, -0.28474387526512146, 0.5614600777626038, 0.6070943474769592, ...
Hypot sets z to Sqrt(pp + qq) and returns z.
[ 0.3250277042388916, 0.24355798959732056, -0.02990800142288208, -0.13611449301242828, 0.2511240243911743, 0.4426991641521454, 0.25937238335609436, -0.4054493010044098, 0.9080905914306641, -0.6515696048736572, 0.21482786536216736, -0.042615849524736404, -0.5756810307502747, -0.70220172405242...
Sqrt sets z to the square root of x and returns z.
[ 0.5271070599555969, -0.8473415970802307, -0.10726562887430191, 0.3595477044582367, -0.6731346845626831, -0.43648964166641235, -0.3566317856311798, -0.9777082204818726, 2.3335471153259277, -0.8335019946098328, -0.9423226118087769, 0.8862001895904541, -0.23017768561840057, 0.1500758826732635...
perfectSquare algorithm slightly partially borrowed from
[ -0.40369749069213867, -0.40571531653404236, 0.18419654667377472, 0.6073387861251831, -1.7583324909210205, -1.016204595565796, 1.0632920265197754, 0.12652026116847992, 0.45544350147247314, 1.150044560432434, -1.1131839752197266, -0.47783395648002625, 0.7501509785652161, 0.7672498822212219, ...
makeHandler builds a router to convert subdomains into OpenFaaS gateway URLs with a username prefix and suffix of the destination function. i.e. system.o6s.io/dashboard becomes: gateway:8080/function/systemdashboard, where gateway:8080 is specified in upstreamURL
[ -0.15812107920646667, 0.21853742003440857, 0.5848851799964905, -0.1031612828373909, -1.4522860050201416, 0.36303627490997314, 0.6986644864082336, 0.46954259276390076, -0.03136896342039108, -0.7328789830207825, -0.1932462900876999, 0.6012365818023682, 0.8142465949058533, -0.4802939891815185...
helpers so we can use pkg sort
[ 0.556725800037384, -0.23396220803260803, 0.44080138206481934, 0.10815222561359406, -0.8994602560997009, -0.3375062644481659, -0.6334900259971619, -0.5238463282585144, -0.10265588760375977, -0.11559806019067764, -0.08525397628545761, -0.6313816905021667, 0.6502305865287781, 0.68727576732635...
AddMigration adds a new go migration to the goose struct.
[ -1.7486178874969482, 0.9868787527084351, 0.39993906021118164, 0.049127280712127686, 0.43067580461502075, 0.516775369644165, -0.4998943507671356, 0.06900206208229065, 0.3717629015445709, 0.14327256381511688, -1.406597375869751, -0.1287228912115097, -0.36256173253059387, 0.7851840853691101, ...
AddMigration exists for legacy support of the package global use of Goose. Calling the AddMigration method on a Goose struct is the preferred method.
[ -1.0493195056915283, 1.0040196180343628, 0.7803993225097656, 0.35726842284202576, -0.1813090741634369, 0.35367804765701294, -0.5038188695907593, -0.2707788050174713, 0.8310254812240601, -0.23683303594589233, -0.9561812877655029, -0.0780118778347969, 0.09156864881515503, 1.437807321548462, ...
collect all the valid looking migration scripts in the migrations folder and go func registry, and key them by version
[ -0.5107467770576477, -0.33345827460289, 0.262307345867157, 0.6574192047119141, 0.2810703217983246, -0.3391839861869812, 0.43889668583869934, -0.7330798506736755, -0.6599256992340088, 0.855628490447998, -0.9388102889060974, 0.845440685749054, 0.7026906609535217, 0.9318414926528931, 0.0007...
retrieve the current version for this DB. Create and initialize the DB version table if it doesn't exist.
[ 0.3850959241390228, 0.19238895177841187, 0.24186603724956512, 1.5115084648132324, 0.7574753165245056, 0.545303463935852, 0.7460756897926331, -0.33987632393836975, -0.7399439811706543, 0.18596383929252625, -0.49710503220558167, -0.49164333939552307, -0.5999032258987427, 0.6235724091529846, ...
Create the goose_db_version table and insert the initial 0 value into it
[ 0.7120128870010376, 0.7992554903030396, 0.590828537940979, 0.6057115793228149, 1.4068491458892822, 1.2529529333114624, 0.7858389019966125, 0.9008893966674805, -0.5018378496170044, 0.9117982387542725, -1.5678764581680298, 0.19667892158031464, -0.6180701851844788, 1.2740585803985596, 0.156...
/ ListenAndServeHTTP serves the APIs and the ui
[ -0.012445118278265, -0.6632157564163208, 0.20822058618068695, 0.24614734947681427, -0.04060901701450348, 0.19550076127052307, -0.3149235248565674, 0.753426194190979, 0.08634020388126373, -0.04282832518219948, -0.3491574823856354, -1.4902058839797974, -0.28743642568588257, 1.200265407562255...