text
stringlengths
25
2.19k
embedding
listlengths
768
768
def test _ post _ get _ lastmod _ datetime _ empty ( datetime _ now, db ) : dt = postcontroller. get _ lastmod _ datetime ( ) assert ( dt - datetime _ now ). total _ seconds ( ) < 1
[ 0.10171443223953247, 0.6593191027641296, 0.5353842973709106, 0.027226880192756653, 1.0434925556182861, 0.9000697135925293, -0.4391636252403259, -0.3118927478790283, -0.2399614453315735, -0.7000255584716797, -0.5799304246902466, -0.5290340781211853, -0.0931122899055481, 1.0057131052017212, ...
def setcommonnodeattrs ( self, * args ) : return _ snap. ttable _ setcommonnodeattrs ( self, * args )
[ -1.380696177482605, 1.3175348043441772, 0.2763081192970276, 0.3452637791633606, 0.49285972118377686, 0.1649436354637146, 1.578575849533081, 0.12452390044927597, -1.481522798538208, 1.2483978271484375, 0.11984995007514954, -0.6967518329620361, -0.8538466691970825, 0.5415623188018799, 0.02...
def test _ atomic _ hex _ binary _ min _ length _ 2 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ min _ length _ 3 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - minlength - 3. xsd ", instance ...
[ 0.3799322247505188, -0.18077780306339264, 0.474582701921463, 0.4619537889957428, -0.29430878162384033, 0.7061458230018616, -0.7068015336990356, -0.1466420739889145, 0.112034872174263, 0.44661983847618103, -0.8764350414276123, -0.21657627820968628, -0.39003390073776245, 0.16746917366981506,...
def tstr _ getnrfpath ( * args ) : return _ snap. tstr _ getnrfpath ( * args )
[ -0.014383340254426003, 0.21935933828353882, 0.24811016023159027, 0.37523090839385986, 0.6926460266113281, 0.06913194060325623, 0.86805260181427, -1.2216370105743408, -1.2798587083816528, -0.18128345906734467, -0.18719704449176788, -0.8798927664756775, -0.8429925441741943, -0.10310380160808...
def intattrnameni ( self, * args ) : return _ snap. tneanet _ intattrnameni ( self, * args )
[ -1.2411226034164429, 0.056307826191186905, 0.05211884528398514, -0.5407103300094604, -0.5168030858039856, -0.025072498247027397, 0.1545392870903015, -0.34039369225502014, -0.7807424068450928, 0.5926854610443115, -0.08168868720531464, -0.537927508354187, -0.43900439143180847, 0.825568199157...
def addv ( self, * args ) : return _ snap. tintv _ addv ( self, * args )
[ -1.118552803993225, 0.14369453489780426, 0.5766116976737976, 1.1794347763061523, -0.026670994237065315, 0.3751998543739319, 0.5621098279953003, -0.08004359155893326, -0.12533630430698395, -0.5705258846282959, -0.38020777702331543, 0.62058025598526, -0.9823155999183655, 0.740202784538269, ...
def post ( self, topic _ id : str ) - > none : assert self. user _ id is not none assert self. normalized _ request is not none assert self. normalized _ payload is not none title = self. normalized _ payload ['title'] description = self. normalized _ payload ['description'] thumbnail _ filename = self. normalized _ pa...
[ -0.2849544286727905, -0.07775616645812988, 0.5603011846542358, 0.762872576713562, 0.7587944865226746, 0.5068964958190918, 0.315491259098053, -0.16287030279636383, -0.690138041973114, -0.22203606367111206, -0.3255864381790161, -0.4416643977165222, 0.5155053734779358, 0.7146440744400024, 0...
def addv ( self, * args ) : return _ snap. tintprv _ addv ( self, * args )
[ -1.3947827816009521, -0.065447598695755, 0.5850428938865662, 0.7006112337112427, -0.05805050954222679, 0.41824913024902344, 0.019064005464315414, 0.34304940700531006, -0.30774930119514465, -0.41559284925460815, -0.34465572237968445, 0.017929868772625923, -1.1849353313446045, 0.612686872482...
def _ get _ lr ( self, index ) : if self. lr _ scheduler is not none : lr = self. lr _ scheduler ( self. num _ update ) else : lr = self. lr if index in self. lr _ mult : lr * = self. lr _ mult [ index ] elif index in self. idx2name : lr * = self. lr _ mult. get ( self. idx2name [ index ], 1. 0 ) return lr
[ -0.28387075662612915, 0.12659376859664917, 0.5322445631027222, -0.7796705365180969, -0.6554315686225891, -0.2873774766921997, -0.9028059244155884, -0.8978237509727478, 1.4362611770629883, -0.19114762544631958, 0.5788887739181519, 0.016763560473918915, -0.6318677663803101, 0.068826526403427...
def find _ lib _ path ( ) : dll _ path = [ ] curr _ path = os. path. dirname ( os. path. abspath ( os. path. expanduser ( _ _ file _ _ ) ) ) dll _ path. append ( curr _ path ) # dll _ path. append ( os. path. join ( curr _ path, ".. / build " ) ) dll _ path. append ( os. path. join ( curr _ path, " lib " ) ) for path i...
[ 0.26281335949897766, -1.6936359405517578, 0.9479087591171265, -0.11874708533287048, 0.978721022605896, 0.6263402104377747, 0.6810020804405212, -0.08593518286943436, -0.7461035847663879, 0.5958356857299805, 0.34009331464767456, -1.0604699850082397, -0.4338984489440918, 0.8506360054016113, ...
def getkeydat ( self, * args ) : return _ snap. tintstrh _ getkeydat ( self, * args )
[ 0.44099166989326477, -0.8603522777557373, 0.42990240454673767, -0.006103076506406069, -0.08839241415262222, 0.13545241951942444, 0.13450555503368378, -1.3175694942474365, -0.885447084903717, -1.2085727453231812, -0.17722144722938538, 0.42966023087501526, -0.7538692355155945, -0.57435053586...
def reset ( self ) : self. datasetmenuversion = - 1
[ -1.173964500427246, 0.7639434933662415, 0.017924176529049873, 0.26454588770866394, 0.4404614269733429, 0.31873929500579834, 0.39841428399086, 0.9897687435150146, -0.8442215323448181, -0.19619594514369965, 0.07831012457609177, 1.5270413160324097, -0.08515089750289917, 0.1709381341934204, ...
def test _ example _ input _ one _ edit _ uneditable _ field _ name ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper, add _ input _ one ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. table. edit _ row ( " dummy _ input _ one " ) self. ...
[ -0.4819687306880951, 0.6351636052131653, 0.42539656162261963, 0.28777480125427246, 0.3802785575389862, 0.772132158279419, 0.4517243206501007, 0.0883893370628357, 0.09760095179080963, 0.6570265889167786, -0.4540967047214508, -0.555186927318573, -0.2779384255409241, -0.18664932250976562, -...
def merge _ aug _ results ( self, aug _ bboxes, aug _ scores, img _ metas ) : recovered _ bboxes = [ ] for bboxes, img _ info in zip ( aug _ bboxes, img _ metas ) : img _ shape = img _ info [ 0 ] ['img _ shape'] scale _ factor = img _ info [ 0 ] ['scale _ factor'] flip = img _ info [ 0 ] ['flip'] flip _ direction = img...
[ -0.3504755198955536, -0.9013997316360474, 0.8481320738792419, 0.05240288004279137, 0.5686984062194824, 0.1772838979959488, -0.16757841408252716, 0.2268114686012268, 0.513178288936615, -0.18722553551197052, 0.15622663497924805, 0.17317798733711243, 0.7461848855018616, 0.23687313497066498, ...
def standardize _ inputs ( inpath, outpath, threshold = 180 ) : raw _ scans = np. load ( inpath ) out _ scans = [ ] for i, scan in enumerate ( raw _ scans ) : # delete scans with less than [ threshold ] valid readings. default 200 # ( just don't add scan to output array ) # pass scan right through to output if it has 2...
[ -0.23505465686321259, -0.5259618759155273, 0.5371359586715698, -0.054036304354667664, -0.5514198541641235, -0.031091608107089996, 0.3517789840698242, 0.15408864617347717, 0.18439975380897522, -0.10616468638181686, -0.009620310738682747, 0.19624051451683044, 0.4386058747768402, -0.475704431...
def list _ authorized _ keys _ of _ magnet ( remote _ keys _ path = none ) : if not remote _ keys _ path : remote _ keys _ path ='~ /. ssh / authorized _ keys'repo ='git @ bitbucket. org / magnet - cl / keygen. git'tmp _ path = '. tmp _ keygen'print ( green ('getting keys from magnet keygen') ) local ('mkdir - p { } '....
[ -0.1119140014052391, -0.26366403698921204, 0.6357107162475586, 0.04548559710383415, -0.6122539043426514, 0.008642583154141903, -0.15452741086483002, 0.966338574886322, -0.38998669385910034, 1.105605959892273, 0.20714113116264343, 0.7715423107147217, -0.14817768335342407, 1.3003956079483032...
def genforestfire ( * args ) : return _ snap. genforestfire ( * args )
[ -0.9641964435577393, 0.3311178684234619, 0.4487828314304352, 2.044466018676758, 0.5639486312866211, 0.2266804426908493, 0.36918941140174866, 0.869896411895752, -1.4851850271224976, -0.9164946675300598, -1.0230872631072998, -1.281868815422058, -0.6448399424552917, 1.464347004890442, -0.82...
def md5 _ redux ( s ) : return'0x'+ md5. new ( str ( s ) ). hexdigest ( ) [ : bit _ size / 4 ]
[ 0.32062751054763794, -0.30676135420799255, 0.4398443102836609, -0.7149204015731812, -0.8494452834129333, -0.35733166337013245, 0.1450212299823761, -0.31312450766563416, 0.8454983830451965, -0.3635157346725464, -0.05099254846572876, -0.21413612365722656, 0.6556210517883301, -0.3404684662818...
def large _ switch _ to _ extremal _ interval ( self, large _ switch, side ) : corrected _ side = side if large _ switch > 0 else ( side + 1 ) % 2 return np. sign ( large _ switch ) * self. _ large _ switch _ to _ extremal _ interval [ corrected _ side ] [ abs ( large _ switch ) - 1 ]
[ -0.8135986328125, 0.20995640754699707, 0.558632493019104, -0.17206241190433502, -0.7648285627365112, 0.5886505842208862, -0.44240444898605347, 0.3113568127155304, 0.3280872702598572, 0.23391833901405334, -0.1006748229265213, 0.14875724911689758, -0.2622475028038025, -0.10246256738901138, ...
def trove _ dashboard _ relation _ joined ( ) : juju _ log ('trove - plugin - relation - joined hook run') # the trove - dashboard plug - in is running relation _ set ( trove _ plugin = true )
[ 1.1856275796890259, 0.2994501292705536, 0.5535946488380432, 0.46484798192977905, 1.3418742418289185, 0.03703443333506584, 0.45407500863075256, 0.9479914307594299, -0.026074590161442757, 0.026673151180148125, -0.49621257185935974, 0.4081496596336365, -0.580643355846405, -0.7500321865081787,...
def last ( self, * args ) : return _ snap. tintintvv _ last ( self, * args )
[ -0.967526912689209, 0.3901321291923523, 0.558363676071167, 0.3931620419025421, 1.0991250276565552, -0.08905323594808578, -0.032986026257276535, -0.24343416094779968, -0.468855619430542, 0.38130855560302734, -0.29831141233444214, 0.3622001111507416, -1.5785490274429321, -0.19981233775615692...
def testfirstlastseq ( self ) : self. assertequal ( self. sf. buffer _ file. first _ seq, 1 ) self. assertequal ( self. sf. buffer _ file. last _ seq, 0 ) first _ seq, _ = self. sf. buffer _ file. _ getfirstunconsumedrecord ( ) self. assertequal ( first _ seq, 1 ) self. sf. buffer _ file. truncate ( ) self. assertequal...
[ 0.5843257904052734, -0.3439905047416687, 1.039067029953003, -0.1175735592842102, 1.3797721862792969, -0.4162525236606598, 0.6126341223716736, 0.12961633503437042, -0.23653066158294678, -0.1353103667497635, -0.7103804349899292, -0.27019938826560974, -0.12653058767318726, 0.2506725490093231,...
def testupdatebasicaddandremove ( self ) : conf = xml _ configuration. configuration. emptyconfiguration ( ) properties _ to _ update = {'key1':'value1 ','key2':'value2 ', } optional _ properties _ to _ add = { } conf. update ( properties _ to _ update, optional _ properties _ to _ add ) self. assertequal ('value1 ', c...
[ -0.2760181128978729, -0.27771300077438354, 0.6889062523841858, -0.4850704073905945, 0.21336866915225983, -0.17779074609279633, -0.4777999520301819, -0.03831208124756813, -0.4693038761615753, 0.22007989883422852, -0.4548987150192261, -0.3848254084587097, 0.050554513931274414, -0.51017224788...
def endei ( self, * args ) : return _ snap. tneanetmp _ endei ( self, * args )
[ -0.25634756684303284, 0.539638102054596, 0.073398657143116, 0.25548556447029114, 1.9628888368606567, 0.42059704661369324, 0.40868479013442993, 0.22965964674949646, -1.351352572441101, 0.4303601384162903, -0.4404601752758026, -1.3554749488830566, -1.3562761545181274, 0.6013441681861877, 0...
def mkclone ( * args ) : return _ snap. tstr _ mkclone ( * args )
[ -0.7148287892341614, 0.36950698494911194, 0.6136211156845093, 0.9328961372375488, -0.17468738555908203, 0.3768346905708313, 0.3255976438522339, -0.24612049758434296, -1.217365026473999, 1.211915135383606, -0.05996112897992134, -1.253525972366333, -0.32514381408691406, -0.7314165234565735, ...
def normalize ( self, xmin, xmax, ymin, ymax, allow _ scaling = true ) : viewrange = [ [ xmin, xmax ], [ ymin, ymax ] ] for axis in range ( 2 ) : # clamp xrange and yrange if allow _ scaling : diff = viewrange [ axis ] [ 1 ] - viewrange [ axis ] [ 0 ] delta = none if self. _ maxrange [ axis ] is not none and diff > sel...
[ -0.2522755265235901, 0.10627041757106781, 0.9552478194236755, -0.0733860656619072, -1.099453330039978, -0.6808298230171204, 0.06249783933162689, -0.4237463176250458, 0.24617443978786469, 0.1546195149421692, 0.5591057538986206, 0.3474569320678711, -0.15445739030838013, 0.056159403175115585,...
def _ _ iadd _ _ ( self, * args ) : return _ snap. tint _ _ _ iadd _ _ ( self, * args )
[ -0.11771779507398605, -0.7865997552871704, 0.49192363023757935, -0.1354687660932541, -0.010493909008800983, 0.8799368739128113, -0.2858927547931671, -0.5889798998832703, 0.02776486612856388, 0.33046627044677734, 0.22614498436450958, 0.25476059317588806, -0.5375051498413086, -0.153544619679...
def addvmerged ( self, * args ) : return _ snap. tintprv _ addvmerged ( self, * args )
[ -0.96443772315979, -0.015195087529718876, 0.5400991439819336, 0.34452369809150696, 0.6169999837875366, 0.23579448461532593, -0.3485657870769501, 0.5346059203147888, 0.30947646498680115, -0.5089287161827087, -1.1665515899658203, -0.36514797806739807, -1.6575878858566284, 1.0834542512893677,...
def _ encrypt ( bitstring ) : size = len ( bitstring ) encrypted = [ ] for byte in range ( int ( size / 8 ) ) : # get the next 8 bits and convert them to integers value = int ( bitstring [ 8 * byte : 8 * ( byte + 1 ) ], 2 ) # by inserting the values at position 0, we're inverting # the sequence of bytes, as required by...
[ -1.0811082124710083, 0.5953457355499268, 0.46550652384757996, -0.48122698068618774, 0.7122679948806763, -0.3532482087612152, 0.1061854213476181, -0.5487286448478699, 0.31109514832496643, 0.7392455339431763, -1.3242709636688232, 0.16159389913082123, -1.1497607231140137, 0.11077132076025009,...
def searchvforw ( self, * args ) : return _ snap. tcncomv _ searchvforw ( self, * args )
[ -0.17363470792770386, 0.9271689057350159, 0.09739506244659424, -0.2472037672996521, 0.8057622313499451, -0.3923993408679962, 0.2657501995563507, -0.6368853449821472, -0.3723401129245758, -0.4065850079059601, 0.24619784951210022, -0.8221952319145203, 0.31757065653800964, 1.2449246644973755,...
def delete _ tab ( self, event = none ) - > none : # pylint : disable = w0613 # todo self. tabs des zu loeschenden = none damit alle referenzen geloescht sind # todo und garbage collected werden kann self. nb. forget ( self. nb. select ( ) )
[ 0.8434743285179138, -0.4652910530567169, 0.21516762673854828, 0.39982977509498596, 0.6102455854415894, 0.8033496141433716, 0.48195675015449524, -1.0760087966918945, 0.20190516114234924, -0.4886937141418457, -0.2942139804363251, 0.369157075881958, 0.024129781872034073, 0.8706080913543701, ...
def act ( self, state, deterministic ) : self. q. eval ( ) # if still in burn - in phase if self. history < = self. burn _ in : if np. random. uniform ( ) > 0. 5 : action _ id = 1 else : action _ id = 0 return action _ id r = np. random. uniform ( ) if deterministic or r > self. epsilon : state = torch. from _ numpy ( ...
[ -0.6758202910423279, -0.7976922988891602, 0.6486417651176453, 0.5230358839035034, 0.23993906378746033, 0.3234812319278717, 0.05928252264857292, 0.016998816281557083, 0.9547474980354309, -0.26586487889289856, 0.018016844987869263, 0.4965307414531708, -0.16721417009830475, 0.4893125295639038...
def catches ( catch = none, handler = none, exit = true ) : catch = catch or exception def decorate ( f ) : @ wraps ( f ) def newfunc ( * a, * * kw ) : try : f ( * a, * * kw ) except catch as e : if handler : return handler ( e ) else : logger. error ( make _ exception _ message ( e ) ) if exit : sys. exit ( 1 ) return...
[ -0.202108234167099, -0.11852999031543732, 0.49903547763824463, 1.0193839073181152, -1.1305536031723022, 0.5991566777229309, -0.45047855377197266, 0.17732873558998108, 0.06154823303222656, 0.14465492963790894, 0.8255379796028137, -0.24593302607536316, 0.7842795252799988, 0.1944526880979538,...
def _ _ call _ _ ( self, * args ) : return _ snap. tcncom _ _ _ call _ _ ( self, * args )
[ -0.4005497992038727, 1.2689318656921387, -0.00887157954275608, -0.30215463042259216, 0.7859629392623901, -0.1471717208623886, -0.4625731110572815, -0.44812408089637756, -0.7373667359352112, -0.08744301646947861, -0.9951806664466858, -1.6090145111083984, 0.07844456285238266, -0.197663486003...
def _ _ lt _ _ ( self, * args ) : return _ snap. tuint64hi _ _ _ lt _ _ ( self, * args )
[ -0.048430826514959335, 0.13069580495357513, 0.03594754636287689, -0.029354436323046684, 0.10357147455215454, 0.04569549858570099, -0.757871687412262, -0.5667672753334045, -1.4606375694274902, -0.09527019411325455, 0.05735192820429802, -1.748578667640686, -0.4271428883075714, 0.615555703639...
def test _ edit _ specimen _ details _ notes _ anon ( self ) : with app. test _ client ( ) as client : resp = client. post ( " / specimen / 12 / edit _ details ", data = { " notes " : " now we have notes! " } ) specimen = specimen. query. get ( 12 ) self. assertnotequal ( specimen. details. notes, " now we have notes! ...
[ 0.2703785300254822, 0.1715276837348938, 0.293768972158432, -0.21204890310764313, 0.854172945022583, 0.7755676507949829, -0.37355077266693115, -0.025109820067882538, 0.1952226758003235, -0.09859603643417358, -0.35827842354774475, 0.9372765421867371, -0.1914980560541153, 0.024850012734532356...
def calculate _ vm _ from _ vj _ vr ( vj, vr ) : if vj is not none and vr is not none : vm = math. sqrt ( vj * * 2 + vr * * 2 ) return vm return none
[ 0.7766332030296326, -0.8102222084999084, 0.589319109916687, 0.38496580719947815, 0.12314066290855408, -0.5840044617652893, -0.41158679127693176, -0.16088666021823883, 0.9232121109962463, 0.8419404625892639, -0.07105576246976852, 0.2403549700975418, -0.8491931557655334, 0.1992371678352356, ...
def eventtime ( self, i ) : super ( logdistribution, self ). eventtime ( i ) t = self. date + 10. * * ( i * self. interval ) return int ( round ( t ) )
[ 0.4068130850791931, 0.11759544163942337, 0.555791437625885, -1.0454660654067993, 0.2941001057624817, 0.2907606363296509, 0.6149829626083374, -0.3194683790206909, 0.16477204859256744, 0.19763125479221344, -0.41388094425201416, -0.39849692583084106, -0.12663079798221588, -0.2372397929430008,...
def _ _ init _ _ ( self, * args ) : _ snap. tintprinthi _ swiginit ( self, _ snap. new _ tintprinthi ( * args ) )
[ 0.20061956346035004, -0.2452540546655655, 0.14406917989253998, 0.38966336846351624, -0.31842973828315735, -0.20900243520736694, -0.13729281723499298, 0.007680871523916721, -0.5942330956459045, -0.17866256833076477, -0.9021289348602295, 0.31167662143707275, -1.3009814023971558, 0.4847720563...
def addintattre ( self, * args ) : return _ snap. tcrossnet _ addintattre ( self, * args )
[ 0.05318284034729004, 1.0017433166503906, 0.6767340302467346, -0.5263979434967041, 0.8900402784347534, -0.3583831191062927, 0.7750013470649719, -0.1715356558561325, -0.6607517004013062, -0.500165581703186, 0.3375335931777954, -1.0838446617126465, -2.0376224517822266, 0.24371573328971863, ...
def random _ splittable _ value ( self, variable : int ) - > any : if variable not in self. splittable _ variables ( ) : raise nosplittablevariableexception ( ) max _ value = self. max _ value _ of _ column ( variable ) candidate = np. random. choice ( self. get _ column ( variable ) ) while candidate = = max _ value :...
[ -1.0457093715667725, 0.22773204743862152, 0.5064005255699158, 0.3142912983894348, -0.5332145094871521, -0.13717451691627502, 0.8114727139472961, -0.49825555086135864, -0.14265115559101105, 0.33026108145713806, -0.4357765018939972, 0.26321426033973694, -0.19624459743499756, 0.03555302694439...
def _ _ str _ _ ( self ) : return self. _ _ class _ _. _ _ name _ _
[ -0.8612803816795349, -1.8076813220977783, 0.9335286617279053, -0.7762848138809204, -0.5902804732322693, 0.7119099497795105, -0.18293848633766174, -0.7158270478248596, 0.6119793653488159, 0.5080739855766296, -0.12727798521518707, 0.7859722971916199, 0.7080664038658142, -0.22340664267539978,...
def test _ add _ mixl _ specific _ results _ to _ estimation _ res ( self ) : # create a fake results dictionary results _ dict = { } results _ dict [ " long _ probs " ] = self. prob _ array # get the probability of each sequence of choices, given the draws args = [ results _ dict [ " long _ probs " ], self. estimator....
[ -0.15703622996807098, -0.16260521113872528, 0.8294934630393982, -0.08652915805578232, 0.09875448048114777, -0.049010585993528366, -0.21053457260131836, 0.13049784302711487, 0.5124371647834778, -0.09415499120950699, -0.7510943412780762, 0.17231789231300354, -0.022397778928279877, 0.09531531...
def tmemout _ new ( * args ) : return _ snap. tmemout _ new ( * args )
[ 0.261001318693161, -0.878521740436554, 0.1576583832502365, -1.2248649597167969, -0.4175131022930145, -0.3073417842388153, 0.7015396356582642, 0.5724501609802246, -1.4876888990402222, 0.2686014175415039, -0.27859923243522644, -1.2515510320663452, 0.24116887152194977, 0.8192650675773621, 0...
def squareofstate ( state ) : import math if not squarable ( state ) : return " state not squarable " return int ( math. sqrt ( len ( state ) ) )
[ -0.6247629523277283, -0.4828380346298218, 0.4522709548473358, -0.3863924443721771, -0.4191650152206421, -0.8655332922935486, 0.20883476734161377, -0.24403026700019836, 1.4475808143615723, -0.10772357881069183, -0.402364581823349, -0.3571821451187134, -0.2915371358394623, -0.204103872179985...
def get _ request _ token _ secret ( self, client _ key, token, request ) : raise notimplementederror ( " subclasses must implement this function. " )
[ -0.7299191951751709, -0.07359568029642105, 0.6753265261650085, 0.5266022086143494, 0.19921250641345978, -0.1459440141916275, -1.0773433446884155, -0.7964009046554565, -0.8097160458564758, -0.4953296184539795, -0.7596391439437866, 0.4663577973842621, 0.3245585560798645, -0.3171302378177643,...
def get _ all _ perms _ for _ model _ cached ( model, ttl = 60, * * extra ) : # what are the permissions that this model accepts? cache _ key = " model _ perms. % s. % s " % ( model. _ meta. app _ label, model. _ meta. model _ name ) model _ perms = cache. get ( cache _ key ) logger. debug ( " model _ perms _ cache = %...
[ -0.32019802927970886, 0.5882510542869568, 0.6848722100257874, 0.6041487455368042, -0.9720088243484497, -0.4144432246685028, -0.7681100964546204, 0.2275812178850174, 0.3560754060745239, 0.9357306957244873, -0.7710500955581665, -0.33141323924064636, 0.0025478526949882507, 0.5629200339317322,...
def test _ update _ weights _ and _ biases ( self ) - > none : random _ function = make _ random _ function ( [ # weights for the first neuron. 0. 0, 0. 0, # weights for the second neuron. 0. 0, 0. 0, ] ) dense _ layer = denselayer ( neuron _ count = 2, activation = relu, activation _ prime = relu _ prime, random _ fun...
[ 0.3217436969280243, -0.01794295758008957, 0.4710674285888672, 0.2443085014820099, 0.8228007555007935, -0.18545882403850555, 0.4253477454185486, -0.0007035916205495596, -0.1507076621055603, -0.014837524853646755, -0.5478715300559998, 0.4671066403388977, -0.20045560598373413, 0.4739407002925...
def _ fetch _ to _ internal _ buffer ( self, num _ bytes : int ) - > none : if ( not self. _ read _ eof and self. _ read _ position > 0 and ( self. _ read _ buffer. tell ( ) - self. _ read _ position ) < num _ bytes ) : # there aren't enough number of bytes to accommodate a read, so we # prepare for a possibly large re...
[ 0.0885980948805809, -0.8792514204978943, 0.9414480328559875, -0.39561864733695984, -0.033957913517951965, -0.167049378156662, 0.3153206706047058, -0.9348241090774536, -0.49608758091926575, -0.6862183809280396, 0.11219684034585953, 0.16460996866226196, -0.18175773322582245, 0.47260013222694...
def gvizgetlayoutstr ( * args ) : return _ snap. gvizgetlayoutstr ( * args )
[ 0.13515546917915344, -0.4773073196411133, 0.15505340695381165, 1.1189218759536743, 0.04934336245059967, 0.29341715574264526, 1.4820945262908936, -1.503190279006958, -0.6450595259666443, -1.0425422191619873, 0.9418131113052368, -0.4443414807319641, -0.3137374818325043, -0.6466251015663147, ...
def test _ multiple _ partitions _ same _ location ( self, vector, unique _ database ) : tbl _ name = " same _ loc _ test " fq _ tbl _ name = unique _ database + ". " + tbl _ name tbl _ location ='% s / % s. db / % s'% ( warehouse, unique _ database, tbl _ name ) # cleanup any existing data in the table directory. self...
[ -0.2717397212982178, -0.1918913871049881, 0.7023941874504089, 0.09678199142217636, 0.2531501054763794, -0.08690320700407028, 1.1639636754989624, 0.04511518031358719, -0.3359988033771515, 0.28590643405914307, 0.12980417907238007, -0.500633180141449, -0.0044098347425460815, -0.61774265766143...
def isstrattrdeletede ( self, * args ) : return _ snap. tcrossnet _ isstrattrdeletede ( self, * args )
[ 0.9726020097732544, 0.40403610467910767, 0.4844829738140106, -0.4486500322818756, 0.6999284029006958, -0.11405152827501297, 0.28674089908599854, 0.4902941882610321, 0.24762995541095734, 0.13823629915714264, -0.26437607407569885, -0.6810334324836731, -0.8481016159057617, 0.3493318557739258,...
def _ fasta _ qual _ gen ( self, fasta _ gen, qual _ gen ) : _ iter = zip ( fasta _ gen, qual _ gen ) for ( seq _ id, seq ), ( qual _ id, qual ) in _ iter : self. state ['sequenceid'] = seq _ id self. state ['sequence'] = seq self. state ['qualid'] = qual _ id self. state ['qual'] = qual # as we're updating state in pl...
[ -0.959145724773407, -1.1652673482894897, 0.468437135219574, -0.8916201591491699, -0.030760066583752632, -0.5146673917770386, -0.5418599843978882, 0.23273229598999023, -0.00611330009996891, 0.43089041113853455, -0.32537540793418884, -0.03144124150276184, 0.2648496925830841, 0.21144767105579...
def decode ( self, data : bytes ) - > str : if self. decoder is none : # if this is the first decode pass then we need to determine which # encoding to use by attempting utf - 8 and raising any decode errors. attempt _ utf _ 8 = codecs. getincrementaldecoder ( " utf - 8 " ) ( errors = " strict " ) try : attempt _ utf _...
[ 0.0865468680858612, -0.12023448199033737, 0.3722425103187561, -0.02019702084362507, -0.6550019383430481, -0.11870332062244415, -0.4833931624889374, 0.0633668452501297, 0.37342867255210876, -0.7303166389465332, 0.7304381728172302, -0.349765807390213, -0.6350336074829102, 0.465541273355484, ...
def on _ pushbutton _ stop _ realtime _ clicked ( self ) : # self. sendcmdstoprealtime ( ) print ( sys. _ getframe ( ). f _ code. co _ name ) self. realtimethread. stop ( ) self. pushbutton _ start _ realtime. setenabled ( true )
[ 0.3151679039001465, -0.6288666725158691, 0.5662553310394287, 0.09421078860759735, -0.18336361646652222, 0.21974016726016998, 0.06751305609941483, 1.150679349899292, -0.00007871230627642944, 0.8552149534225464, -1.3226724863052368, 0.17380796372890472, -1.0596985816955566, 0.437566846609115...
def move ( self, old _ path, new _ path ) : if self. _ service. version < 4 : raise runtimeerror ( " service on other device too old " ) old _ path = old _ path. encode ( " utf - 8 " ) new _ path = new _ path. encode ( " utf - 8 " ) encoded = ( struct. pack ( " < bxhh ", filetransferservice. move, len ( old _ path ), l...
[ -0.13965529203414917, -0.15181158483028412, 0.7825922966003418, 0.4091127812862396, -0.008667792193591595, 0.1532362848520279, -0.3554839491844177, -0.348463773727417, -0.5090765953063965, 0.1948293298482895, -0.22529561817646027, 0.4463212788105011, -0.9106386303901672, -0.256819963455200...
def test _ atomic _ hex _ binary _ pattern _ 2 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ pattern _ 3 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - pattern - 3. xsd ", instance = " nistdata...
[ 0.05158766359090805, -0.010867645032703876, 0.5881954431533813, 0.6739072799682617, 0.22973018884658813, 0.5734848380088806, -0.6115844249725342, -0.01850944012403488, 0.07861224561929703, 0.37921029329299927, -0.37265104055404663, -0.5077182650566101, -0.26969224214553833, 0.0875510051846...
def getrndwalkrestart _ pneanet ( * args ) : return _ snap. getrndwalkrestart _ pneanet ( * args )
[ -1.1661752462387085, 0.616838812828064, 0.28073030710220337, 0.006358047481626272, 0.3210959732532501, 0.8343743085861206, -0.5099160671234131, -1.071940302848816, -0.33839157223701477, -1.350142240524292, -0.42464232444763184, -0.734778106212616, -0.9340271353721619, 0.3868580758571625, ...
def delifin ( self, * args ) : return _ snap. tinttrv _ delifin ( self, * args )
[ -0.876069962978363, -0.34932973980903625, 0.473859965801239, -0.16474966704845428, -0.45669469237327576, 0.5288423895835876, 0.5544851422309875, -0.258384644985199, -0.5239435434341431, -0.8202541470527649, -0.41229990124702454, 0.5669312477111816, -1.1886465549468994, 0.22336390614509583,...
def runhelmindex ( packagedchartsdir, bucketname ) : print ( " = = = = building index. yaml for directory ", packagedchartsdir, " = = = = " ) indexfile = packagedchartsdir + os. sep + " index. yaml " client = storage. client ( ) bucket = client. get _ bucket ( bucketname ) blob = bucket. blob ( " index. yaml " ) if blo...
[ -0.014228974469006062, -0.9789085388183594, 0.6230947971343994, 0.44142723083496094, 0.22764551639556885, 0.2470630407333374, 1.0833104848861694, 0.37819796800613403, 0.6187927722930908, 0.09061475098133087, -0.2905871570110321, 0.9097609519958496, 0.5807305574417114, -0.4641546607017517, ...
def _ _ lt _ _ ( self, * args ) : return _ snap. tintprintprvhi _ _ _ lt _ _ ( self, * args )
[ 0.45278382301330566, -0.952079176902771, 0.6717769503593445, -0.5436044931411743, 0.016601545736193657, 0.23136241734027863, -1.211597204208374, -0.5050805807113647, -1.2068039178848267, -0.7284656167030334, -0.2571321427822113, 0.08586559444665909, -2.4224014282226562, 1.282136082649231, ...
def accept _ client ( self, socket ) : conn, client _ ip = socket. accept ( ) print ( client _ ip ) conn. setblocking ( 0 ) self. in _ sockets. append ( conn ) self. workers _ info [ conn ] = { } self. workers _ info [ conn ] ['msg _ queue'] = queue ( ) self. workers _ info [ conn ] ['comp _ name'] = none self. workers...
[ -0.20044349133968353, 0.040404219180345535, 0.635447084903717, -0.9156132340431213, -0.43241608142852783, 0.1412874162197113, 0.5031716227531433, -0.054625097662210464, -1.0951677560806274, -0.1215476542711258, -0.8085129261016846, 0.2725270688533783, -0.29845333099365234, 0.47077140212059...
def accuracy ( outputs : torch. tensor, labels : torch. tensor ) - > float : assert outputs. size ( 0 ) = = labels. size ( 0 ) _, pred = torch. max ( outputs. data, 1 ) correct = ( pred = = labels ). sum ( ) total = labels. size ( 0 ) acc = 1. 0 * correct / total return float ( acc. item ( ) )
[ -0.0922420471906662, -1.1888123750686646, 0.2743787169456482, 0.2052401602268219, -0.16313603520393372, -0.43128538131713867, 0.9107646942138672, 0.0943077877163887, -0.6951754093170166, 0.40071049332618713, 0.808309018611908, 0.05526338517665863, 0.18679405748844147, 0.2578117549419403, ...
def disttolocuc ( self, dist ) : return float ( dist ) / 0. 0254
[ 0.7866029143333435, -0.7377654314041138, 0.24699293076992035, -0.8542119860649109, -0.024531831964850426, 0.3326564133167267, 0.04906420782208443, 0.2682388722896576, -0.2119126170873642, 0.11438685655593872, 0.15299730002880096, 0.21751654148101807, 0.4529225826263428, -0.6711210012435913...
def get _ motors ( f, motors = ordereddict ( ) ) : # load droplets motors. update ( ordereddict ( x ='epix / droplet _ x ', y ='epix / droplet _ y ', adu ='epix / droplet _ adu ', npix ='epix / droplet _ npix ', ipm2 ='ipm2 / sum ', ipm3 ='ipm3 / sum ', jitter ='epics / lxt _ ttc ', laser ='lightstatus / laser ', xray ...
[ -0.5773988962173462, -0.1035984605550766, 0.42173540592193604, -0.46490707993507385, -0.3770800828933716, -0.18894442915916443, -0.8695850968360901, 0.04692549630999565, -0.5193192362785339, 0.04218858480453491, -0.5639819502830505, -0.35335928201675415, 0.4323213994503021, -0.096271075308...
def prepare _ headers ( oauth _ params, headers = none, realm = none ) : headers = headers or { } # protocol parameters shall be included in the " authorization " header # field as follows : authorization _ header _ parameters _ parts = [ ] for oauth _ parameter _ name, value in oauth _ params : # 1. parameter names an...
[ -0.11129245907068253, -0.3972097337245941, 0.7669700384140015, -0.4977090358734131, -0.2917509078979492, -1.1432499885559082, -0.13269586861133575, -0.23978197574615479, 0.1466020941734314, 0.8744913935661316, 0.2238374650478363, 0.06188695505261421, 0.042785827070474625, -0.62751889228820...
def main ( ) : pygame. init ( ) # set the width and height of the screen [ width, height ] size = [ 480, 448 ] screen = pygame. display. set _ mode ( size ) pygame. display. set _ caption ( " fab fish " ) # loop until the user clicks the close button. done = false # used to manage how fast the screen updates clock = py...
[ 0.05695360153913498, -0.36184272170066833, 1.1621601581573486, 1.023147702217102, -0.41130247712135315, 0.10439958423376083, 1.1288224458694458, -0.4707363247871399, -0.11632916331291199, 0.7642571926116943, 0.0996561273932457, 0.17026878893375397, -0.5787563920021057, 0.5618715286254883, ...
def getsngvals ( * args ) : return _ snap. getsngvals ( * args )
[ -0.5244962573051453, 1.4629201889038086, 0.4471300542354584, 1.2184041738510132, 0.19789695739746094, -0.22081966698169708, 0.06344646215438843, -0.7021037936210632, -1.0234556198120117, -0.5392742156982422, -1.1624677181243896, -0.022699996829032898, -0.06880297511816025, 0.99211025238037...
def tgutil _ getpdf ( * args ) : return _ snap. tgutil _ getpdf ( * args )
[ 0.2954803705215454, -0.015538510866463184, 0.4303899109363556, -0.20063291490077972, 1.0910688638687134, -0.5379460453987122, 1.3073078393936157, 0.03758729621767998, -1.3792999982833862, -0.18414084613323212, 0.5829896330833435, -0.15665388107299805, -0.4220443367958069, 0.798462450504303...
def addstr ( self, * args ) : return _ snap. ttablecontext _ addstr ( self, * args )
[ -1.0438756942749023, 0.5736149549484253, 0.249959334731102, 1.2260631322860718, 0.30944448709487915, 0.27126622200012207, 0.25401201844215393, -0.8323541283607483, -0.7336884140968323, -0.8278745412826538, -0.18453532457351685, -0.904694139957428, -0.10738484561443329, 0.563150942325592, ...
def gen _ streamlist ( self, input, length ) : stoch _ num _ list = [ ] for i in range ( 0, 6 ) : b = self. gen _ bitstream ( input [ i ], length ) stoch _ num _ list. append ( b ) self. prob _ bitsreams. append ( stoch _ num _ list ) return stoch _ num _ list
[ -0.33503830432891846, 0.1322062909603119, 0.5455184578895569, 1.0648930072784424, 0.20437943935394287, 0.5017232298851013, 0.7361106276512146, -0.2409648299217224, 0.5752811431884766, 0.48331218957901, -1.6739566326141357, -0.013769762590527534, -1.0369350910186768, 0.9712145328521729, -...
def get _ data ( self ) : return self. _ client. get _ data ( )
[ -0.719855546951294, 0.38295966386795044, 0.23866061866283417, 0.0642203614115715, 0.7176302075386047, 0.20894426107406616, -1.0690253973007202, -0.9960045218467712, -0.2949793338775635, -1.010728120803833, -0.5196388959884644, 1.3481658697128296, -0.6701101660728455, -0.7863163352012634, ...
def test _ post _ message _ to _ post ( datetime _ now, db, emoji, sender _ instance ) : message = mock ( ) message. from _ address ='known. sender @ example. com'message. date = datetime _ now message. x _ mailer ='pytest'message. text _ plain = f'today is a good day for making { emoji } posts.'# need to create a send...
[ -0.34274399280548096, 0.6704858541488647, 0.6602038741111755, 0.07384569942951202, 0.44109824299812317, 0.7205942869186401, 0.06615495681762695, -0.018244018778204918, -0.7110219597816467, -0.521624743938446, -1.1236118078231812, -0.4183233678340912, -0.0770261138677597, 0.7217215299606323...
def qsort ( self, * args ) : return _ snap. tintintvv _ qsort ( self, * args )
[ -1.2344242334365845, 0.09508534520864487, 0.3627544641494751, -0.17265374958515167, 0.10872387886047363, 0.23479661345481873, 0.06765495240688324, -1.1108518838882446, -0.11060960590839386, -0.6114553809165955, -0.8385778665542603, 0.6265256404876709, -1.8162661790847778, 0.213075116276741...
def plot _ height _ portions ( graph, budgets, height _ portions ) : g = graph ['g'] nodes = graph ['nodes'] pos = nx. pygraphviz _ layout ( g, prog ='twopi') gray = ( 0. 75, 0. 75, 0. 75 ) graydark = ( 0. 5, 0. 5, 0. 5 ) ns = 120 labels = dict ( zip ( nodes, [ g. node [ node ] ['word']. split ( ',') [ 0 ] for node in ...
[ 0.3103182911872864, 0.4204532504081726, 0.9618609547615051, -0.031470395624637604, -0.10342732071876526, 0.5623458027839661, 0.12939126789569855, -0.06621840596199036, 0.23707740008831024, 0.0025571738369762897, 0.2970736026763916, 0.5511539578437805, 0.10696861147880554, 0.050420179963111...
def check _ correct _ step _ limits ( self ) : ok = true for par in self. pars ( ) : ok & = self. check ( par, " correct _ step _ limits ", verbose = true ) return ok
[ 0.575518786907196, 0.006823234260082245, 0.8129499554634094, 1.413885474205017, 0.2725744843482971, 1.3000775575637817, -0.3337777853012085, 0.26121658086776733, -1.2946813106536865, 0.23408259451389313, -0.127561554312706, -0.16453233361244202, -0.21886596083641052, 1.6617549657821655, ...
def test _ moment _ default _ tz _ pre ( ) : pytest. debug _ func ( ) if hasattr ( nldt. moment,'deftz') : del nldt. moment. deftz lz = get _ localzone ( ) assert lz. zone = = nldt. moment. default _ tz ( )
[ 0.6729851961135864, -0.015961643308401108, 0.12277528643608093, 0.8614787459373474, 0.6072300672531128, 0.2771393358707428, 0.7685874104499817, -0.07899235188961029, 1.1435879468917847, -0.5598747730255127, -1.0407819747924805, -0.5017573237419128, 0.032304879277944565, 1.6193394660949707,...
def iskeyid ( self, * args ) : return _ snap. tintset _ iskeyid ( self, * args )
[ -0.3280797600746155, -0.6127049326896667, 0.348639577627182, 1.0562399625778198, -0.2583557665348053, -0.10803287476301193, 0.07899168878793716, -0.8943626880645752, 0.6479939818382263, 0.09891928732395172, -0.1581549197435379, 0.8126592040061951, -1.8151026964187622, 0.35037121176719666, ...
def test _ tile _ nb _ neighbours _ on _ sidelines ( self ) : board = builder ( 10, 10, 7, 6 ). create ( ) self. asserttrue ( len ( board. getneighboursidentifier ( ( 0, 2 ) ) ), 3 ) self. asserttrue ( len ( board. getneighboursidentifier ( ( 6, 1 ) ) ), 3 ) self. asserttrue ( len ( board. getneighboursidentifier ( ( 1...
[ 1.271494746208191, 0.7310739159584045, 0.6408138275146484, -0.568817138671875, -0.008118060417473316, 1.343108057975769, 0.1284019500017166, 0.6166515946388245, -0.028248099610209465, -0.5226008892059326, -2.0176494121551514, -1.4220061302185059, -0.327002614736557, 0.2608710825443268, 0...
def _ add _ persistent _ route ( self, network, netmask, gateway ) : try : osutils = osutils _ factory. get _ os _ utils ( ) log. debug ('adding route for network : % s ', network ) args = ['route ','- p ','add ', network,'mask ', netmask, gateway,'metric ','1'] ( out, err, ret _ val ) = osutils. execute _ process ( ar...
[ 0.7210773825645447, 0.7285237312316895, 0.6697275638580322, 0.17749209702014923, 1.2866264581680298, 0.7818779945373535, -0.32239216566085815, -0.3504578471183777, -0.5746937394142151, -0.010439730249345303, 0.5296322107315063, -0.9574257135391235, -0.4404149055480957, 1.0554945468902588, ...
def basefunc1d ( xi, xin, n ) : phi = [ 1. ] * n phi _ xi = [ 0. ] * n for m in range ( 0, n ) : for j in range ( 0, n ) : if j = = m : continue phi [ m ] = phi [ m ] * ( xi - xin [ j ] ) / ( xin [ m ] - xin [ j ] ) for i in range ( 0, n ) : if i = = m : continue tmp = 1. ; for j in range ( 0, n ) : if j = = i : contin...
[ 0.33704817295074463, -0.20852221548557281, 0.5609385967254639, -0.21445710957050323, 0.043633271008729935, 0.04849831014871597, 0.5940747261047363, 0.15751788020133972, 0.23244135081768036, 0.7144755721092224, -0.3244926929473877, -0.081280916929245, -0.8274021744728088, 0.6282175183296204...
def test _ atomic _ base64 _ binary _ length _ 4 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ length _ 5 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - length - 5. xsd ", instance = "...
[ 0.20166027545928955, -0.017851805314421654, 0.3855714201927185, 0.7785361409187317, 0.05426035821437836, -0.009378695860505104, 0.2234136015176773, -0.3948616683483124, -0.10342991352081299, 0.608572244644165, -0.7542574405670166, -0.2498440146446228, -0.8385975360870361, 0.235599473118782...
def identity _ map ( cls, report _ aggregation ) : return {'related _ id': cls. get _ related _ id ( report _ aggregation. id ),'time': report _ aggregation. time, }
[ 0.20305396616458893, -0.3096891939640045, 0.4544273614883423, -0.3432246148586273, 0.9041904807090759, 0.43519890308380127, 0.4650294780731201, 0.0014573322841897607, 0.14834241569042206, 0.2964887320995331, -0.217068150639534, -0.1987772434949875, 0.8257676959037781, -0.43524909019470215,...
def findmediansortedarrays ( self, nums1 : list [ int ], nums2 : list [ int ] ) - > float : m = len ( nums1 ) n = len ( nums2 ) if ( m + n ) & 1 = = 1 : return self. find _ median ( nums1, nums2, ( m + n + 1 ) / / 2 ) else : return ( self. find _ median ( nums1, nums2, ( m + n ) / / 2 ) + self. find _ median ( nums1, n...
[ 0.24884700775146484, -0.31582117080688477, 0.6951805353164673, 0.8718976974487305, 0.10781420022249222, 0.07842930406332016, 0.028577731922268867, -0.32078179717063904, 0.39445388317108154, 0.8299875259399414, 0.3904128074645996, 1.0473790168762207, -1.0133253335952759, 1.3686760663986206,...
def testuncompactedfromstring ( self ) : long _ conf = unicode ('<? xml version = " 1. 0 "? >'' <? xml - stylesheet type = " text / xsl " href = " configuration. xsl "? >'' < configuration >'''' < property >'' < name > foo < / name >'''' < value > bar < / value >'' < / property >'''' < property >'' < name > foo2 < / na...
[ 1.005203366279602, -0.30210936069488525, 0.590870201587677, -0.7036761045455933, -0.97283536195755, 0.0894586443901062, -0.03309619799256325, 0.5138792395591736, -0.16008944809436798, -0.4194449484348297, -0.27610471844673157, -0.8281278610229492, 0.3067038655281067, -0.28025147318840027, ...
def get _ metrics ( self ) : return { k : sum ( v ) / len ( v ) for k, v in self. metrics. items ( ) }
[ -0.014731221832334995, 0.42746198177337646, 0.41858625411987305, -0.6666110157966614, -0.5417371392250061, 0.6219858527183533, 0.4862821400165558, -0.11434963345527649, -0.4026390612125397, 0.08025721460580826, -0.5310099124908447, -1.281378984451294, -0.17135848104953766, 0.43751832842826...
def text _ steno ( ) : win = toplevel ( master = root, bg ='# c0ed98') win. title ('text steno') win. geometry ('480x410') win. wm _ iconbitmap ('images / l2. ico') win _ label = label ( win, text ='text - stenography ', font = cas _ big, bg ='# c0ed98 ', fg ='# 1046b3') win _ label. place ( x = 5, y = 4 ) def encode (...
[ 1.1711301803588867, -0.8347410559654236, 1.1086997985839844, 0.04412882775068283, -0.42619574069976807, 0.26749053597450256, 0.9807677865028381, 0.32281774282455444, -0.25092190504074097, -0.061421800404787064, -0.8493278622627258, 0.49868595600128174, 0.431209921836853, 0.3922055661678314...
def setdistr ( self, * args ) : return _ snap. tgstat _ setdistr ( self, * args )
[ -0.2591215968132019, 0.36136674880981445, 0.20433883368968964, -0.023849504068493843, -0.04723254591226578, 0.6952117681503296, 1.0857027769088745, -0.39744505286216736, -1.1069915294647217, -0.8432885408401489, -0.54749596118927, -0.528369128704071, 0.2014675736427307, 1.1902976036071777,...
def set _ thresholds ( values, febs = [ ] ) : # we need a list of febs, if only one is given, # generate a list with a single element if type ( febs ) = = int : febs = [ febs ] # use all connected febs if the given list is empty if not len ( febs ) : febs = _ configs. keys ( ) # we need a list of voltages, if only one ...
[ -0.3530288636684418, 0.5899824500083923, 0.5727741122245789, 0.12175925076007843, -0.08710204064846039, 0.1386740505695343, -0.4753161072731018, -0.34168538451194763, -0.16553956270217896, -0.6888657808303833, -0.9672731757164001, 0.3848249614238739, -0.31110435724258423, 0.684799790382385...
def ttable _ getmaphitsiterator ( * args ) : return _ snap. ttable _ getmaphitsiterator ( * args )
[ -1.0505006313323975, -0.4033631682395935, 0.4531823694705963, 0.3748116195201874, -0.6528000831604004, 0.42108577489852905, 0.5303434133529663, -0.6281011700630188, -0.429316908121109, 0.00014599281712435186, 0.7657768130302429, -1.2059770822525024, 0.4526730179786682, -0.2901417911052704,...
def _ _ config _ downloader ( self, file, config _ file, is _ video = false ) : try : print ( " please wait just for moments... " ) self. file = file self. content = tools. read _ json ( self. file ) self. config _ file = config _ file self. is _ video = is _ video insta _ hashtag = instagramhashtag ( ) # image downloa...
[ -0.42189326882362366, -0.5290892124176025, 0.45110654830932617, 1.3767246007919312, 0.388584703207016, -0.24996161460876465, 0.04433063790202141, 0.7851917743682861, -0.8276984095573425, 0.8199054598808289, -0.2573540508747101, -0.3398142158985138, 0.1483902633190155, 1.4315179586410522, ...
def add _ periodic _ info ( self, info, period ) : newperiodinfo = periodicinfo ( info, period, self ) key = rand ( ) self. periodic _ infos [ key ] = newperiodinfo newperiodinfo. start ( ) return key
[ -0.41799625754356384, -0.7508738040924072, 0.6007346510887146, -0.2231488972902298, -0.14354294538497925, 1.0491361618041992, -0.6261831521987915, -0.32666727900505066, -0.06437817215919495, -1.011201024055481, -0.39547160267829895, 0.08063049614429474, -0.7340320348739624, -0.058328643441...
def test _ do _ delete ( test _ dao ) : dut = dtmsimilaritem ( test _ dao ) dut. do _ select _ all ( revision _ id = 1 ) _ error _ code, _ msg = dut. do _ delete ( dut. last _ id ) assert _ error _ code = = 0 assert _ msg = = ( " ramstk success : deleting an item from the ramstk program " " database. " )
[ 0.771170437335968, 0.8989477157592773, 0.46346476674079895, 0.5358349680900574, 1.0831043720245361, 0.41626501083374023, 0.3133087754249573, 0.8046261668205261, 0.37176212668418884, 0.4564620554447174, -0.2316281497478485, 0.25023290514945984, -0.004765715450048447, -0.5104381442070007, ...
def test _ request _ timeout _ through _ req _ cfg ( self ) : self. ep. req _ cfg. timeout = 0. 000001 self. _ test _ request _ timeout ( )
[ -0.48680225014686584, 0.5386808514595032, 0.23437617719173431, 0.7412430644035339, 0.755963146686554, 0.6415955424308777, 0.41992902755737305, 0.1796002984046936, -0.2282199114561081, 0.0183655247092247, 0.3617037236690521, -0.27446290850639343, 0.14202456176280975, 0.7665851712226868, 0...
def log _ out ( self ) : database = database ( ) sql _ command = " update users set logged _ in = 0 " results = database. run _ update ( sql _ command ) database. close ( ) self. master. destroy ( )
[ -0.6129786372184753, 0.17092430591583252, 0.47498223185539246, 0.2205905318260193, -0.10058052092790604, 0.4881531298160553, 0.5486619472503662, 1.3506147861480713, -0.25128182768821716, 0.3677096962928772, 0.08685468882322311, 0.4643453359603882, -0.9864979982376099, 0.09737055003643036, ...
def setup ( self, source _ url : str ) - > typing. type :...
[ -1.468557357788086, 0.43887683749198914, 0.30151546001434326, -0.18572182953357697, 0.24645666778087616, -0.5754116177558899, 0.6391600966453552, 0.015770085155963898, 0.979261577129364, -0.09028120338916779, -1.4645079374313354, 0.06496255099773407, -0.29138174653053284, 0.250581711530685...
def add _ unknown _ words ( self, test _ set ) : for xy _ tups in test _ set : for tup in xy _ tups : if self. existing _ words [ tup [ 0 ] ] = = false : self. d1 [ ( tup [ 0 ], unknown ) ] + = 1
[ -0.8999010324478149, 0.37668630480766296, 0.37187832593917847, -1.000980257987976, 0.6548226475715637, 0.38891080021858215, 0.39332589507102966, 0.11900622397661209, -0.16360174119472504, 0.4445478618144989, 0.44823017716407776, 0.06660386174917221, -0.3641129732131958, 0.18459758162498474...
def _ create _ entrance ( self ) - > none : # reset the current entrance position to wall if self. position _ entrance : self. maze [ self. position _ entrance ] = cell. empty. value viable _ entrances = [ ] for i in range ( 0, self. maze _ width ) : # check for all instances of the second row # ( row [ 1 ] ) having a ...
[ -0.5320913791656494, -0.11480437219142914, 0.29780441522598267, -0.026517698541283607, 0.6993040442466736, -0.3160337209701538, 1.5102732181549072, 0.6672873497009277, 0.031125543639063835, 0.012878735549747944, -0.3141089677810669, -0.1285000741481781, -0.14447081089019775, 0.353776127099...
def setintval ( self, * args ) : return _ snap. tpredicate _ setintval ( self, * args )
[ -0.8059161901473999, 0.5175415873527527, 0.49655723571777344, -0.15835681557655334, -0.21299482882022858, 0.5191696286201477, 0.2857307493686676, 0.10875465720891953, -2.0100600719451904, 0.8182496428489685, -0.4198386073112488, -0.5299000144004822, -0.44046396017074585, 0.5628595948219299...
def post _ inner _ transfer ( self, clientoid, payaccountid, recaccountid, amount ) : return self. trading _ api _ request ('post ','/ api / v1 / accounts / inner - transfer ', {'clientoid': clientoid,'payaccountid': payaccountid,'recaccountid': recaccountid,'amount': amount, } )
[ -0.14366424083709717, -0.3014828860759735, 0.6525933146476746, -0.3255264461040497, -0.3350324034690857, -0.4019944965839386, 1.0718427896499634, -0.4830562174320221, 0.5701664090156555, -1.0829524993896484, -0.7147307991981506, 1.4710450172424316, -1.0985394716262817, -0.44351670145988464...