text
stringlengths
25
2.19k
embedding
listlengths
768
768
def is _ prime ( limit ) : for number in range ( 2, limit ) : if ( limit % number ) = = 0 : return false return true
[ -1.0756422281265259, 0.041084568947553635, 0.7396855354309082, 0.8581277132034302, 0.4370514154434204, 0.5298601388931274, -1.1043736934661865, 0.5798658728599548, 0.8228021860122681, -0.21468180418014526, -0.13553974032402039, -0.5095375776290894, -1.3501631021499634, -0.09229879826307297...
def tell ( self ) : if not self. _ seekable : raise unsupportedoperation ( " tell " ) with self. _ seek _ lock : return self. _ seek
[ 0.2656041085720062, 0.551803469657898, 0.46952277421951294, 0.512669563293457, -0.019062884151935577, 0.449655145406723, 1.1128073930740356, -1.165908694267273, -0.36877942085266113, -0.7244671583175659, 0.661910891532898, 0.4886818826198578, -1.04875648021698, -1.1375325918197632, -0.02...
def set _ user _ settings ( accesstoken = none, mfaoptions = none ) : pass
[ -0.20139117538928986, 0.6561139822006226, 0.3152727782726288, 0.8012991547584534, 0.6176968812942505, -1.1554559469223022, -0.025566941127181053, -1.0057780742645264, 0.7415226697921753, -0.2664770483970642, -0.8013790845870972, 0.8063783049583435, -0.3570323586463928, -0.6003138422966003,...
def sendmoney _ andwaitforreceipt ( how _ often = 1, amount = 0 ) : # amount zero because in parity - deploy # the default account has no money yet, see # https : / / github. com / paritytech / parity - deploy / issues / 86 txparameters = {'from': w3. eth. defaultaccount,'to': w3. eth. defaultaccount,'gas': 90000,'valu...
[ 0.12027320265769958, 0.6554239392280579, 0.6097943782806396, -0.519477128982544, -0.1295682191848755, -0.8500806093215942, -0.344095379114151, -0.011954503133893013, -0.041847486048936844, 0.3627324402332306, -0.038592416793107986, -0.5356711149215698, -0.12298671901226044, -0.094565503299...
def task _ img ( ) : yield art. make _ images ( )
[ -1.0288571119308472, 0.7803826332092285, 0.2620837688446045, -0.1464785933494568, -0.06312441825866699, 0.5976571440696716, 0.6893178224563599, 0.07320275902748108, -0.8295172452926636, -0.1775742471218109, -0.39464443922042847, 0.05994177609682083, 1.3848086595535278, 0.2879102826118469, ...
def appendintvattrdate ( self, * args ) : return _ snap. tneanet _ appendintvattrdate ( self, * args )
[ -0.4461060166358948, 0.22649849951267242, 0.3696032166481018, -1.3485616445541382, 0.0704050213098526, 0.5441109538078308, -0.4569561779499054, -0.5294996500015259, -0.003001521108672023, 0.30996063351631165, 0.8790814280509949, -1.3343286514282227, -0.5774978995323181, 0.3306213319301605,...
def opacity ( self ) : return self. _ opacity
[ -0.11285057663917542, -0.6377926468849182, 0.17308087646961212, 0.782703161239624, -0.10147963464260101, 0.5742912292480469, 1.5858783721923828, -0.21777506172657013, 0.282262921333313, -0.4091286361217499, -0.08695028722286224, 0.1737915724515915, 0.0965491235256195, 0.1100369319319725, ...
def _ save _ hdf5 ( self, filename, group = " orbitresponsematrix " ) : h5zip = none #'gzip'works in default install f = h5py. file ( filename,'w') grp = f. create _ group ( group ) str _ type = h5py. new _ vlen ( str ) m, n = np. shape ( self. m ) dst = grp. create _ dataset ('m ', ( m, n ), data = self. m, compressio...
[ -0.3282390832901001, -0.7650391459465027, 0.5078428387641907, -0.6055845022201538, -0.31971824169158936, 0.5193222761154175, 0.9804169535636902, -0.44735920429229736, -0.8301072716712952, 0.11508462578058243, 0.014409227296710014, -0.4746944308280945, -1.2756856679916382, -0.25246110558509...
def go _ forward ( self, speed _ value ) : # setup motor speed self. _ speed = speed _ value self. speed = self. _ speed self. left _ wheel. forward ( ) self. right _ wheel. forward ( ) if self. _ debug : print ( self. _ debug _ info,'running forward with speed')
[ 0.32540637254714966, 0.8068346977233887, 0.38203132152557373, -0.17136594653129578, 0.18365082144737244, 0.24118632078170776, 0.3405046761035919, 0.7353329062461853, -1.0555460453033447, -0.43280258774757385, -0.4043685495853424, 0.12015562504529953, 0.5189273357391357, 1.5201839208602905,...
async def from _ str ( cls : " jsonembedparser ", ctx : context, json _ string : str ) - > t. union [ " jsonembedparser ", bool ] : json _ dict = await cls. parse _ json ( ctx, json _ string ) if json _ dict is false : return false else : return cls ( ctx, json _ dict )
[ -0.14439378678798676, -0.6310617327690125, 0.5543680191040039, -0.17136931419372559, -1.1439192295074463, 0.5923742651939392, -0.592843770980835, -0.37635087966918945, 0.8105366826057434, 0.04033027961850166, -0.8522956371307373, -0.3848518431186676, -0.394207626581192, -0.6897417902946472...
def add _ bool ( self, name, * * kwargs ) : return self. _ add _ traced _ attr ( " bool ", name, * * kwargs )
[ 0.3073979318141937, 0.4174155294895172, 0.6899881958961487, 0.5528738498687744, 0.0721282809972763, 0.8246274590492249, 0.25808194279670715, 0.23764283955097198, 0.2413712441921234, 0.49754202365875244, -1.0481077432632446, -0.3029100298881531, -0.19153043627738953, -0.6908485889434814, ...
def addedge ( self, * args ) : return _ snap. tundirnet _ addedge ( self, * args )
[ -1.1920289993286133, 0.09425684064626694, 0.12301003187894821, 0.61272794008255, 1.1042488813400269, 0.6479403376579285, 0.621369481086731, -0.24040475487709045, -0.6274389624595642, -0.6906706690788269, 0.4258115589618683, -0.9661723375320435, -1.6218935251235962, 0.8770948648452759, 0....
def autodiscover ( ) : autodiscover _ modules ( " pixels ", register _ to = tracker )
[ 0.38244420289993286, 0.26668810844421387, 0.4372415244579315, 0.6724916100502014, 1.034164547920227, -0.04925768822431564, 0.8215713500976562, -1.1231110095977783, 0.5078209638595581, -0.4050764739513397, -1.139081597328186, 0.4928392469882965, 0.8161841034889221, 1.096217393875122, -0.1...
def isok ( self, throwexcept = true ) : return _ snap. tngraphmp _ isok ( self, throwexcept )
[ 0.44533467292785645, 0.788103461265564, 0.08402006328105927, -0.3781801462173462, 0.4300304055213928, 0.6090238094329834, 1.0400094985961914, -0.6195635795593262, -0.6186816096305847, 0.9406242370605469, -0.18288832902908325, -0.5860522985458374, -0.9981148838996887, -0.43634212017059326, ...
def test _ example _ input _ two _ delete _ row _ frontend _ validation ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper, add _ input _ two ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. table. input _ status _ toggle ( " dummy _ input...
[ 0.322752982378006, 0.9612295031547546, 0.7280265688896179, 0.8069441318511963, 0.24032078683376312, 0.5538211464881897, -0.23056481778621674, 0.3933432400226593, 0.08700938522815704, -0.19140395522117615, 0.18932323157787323, 0.08998164534568787, 0.7758273482322693, 0.9768005609512329, 0...
def new _ shower _ event ( self, rng, timestamp ) : event = toymc. event ( self. truth _ label _ shower, 1, timestamp, rng. choice ( self. avail _ ads ), self. trigger _ type, self. site, * self. shower _ muon _ physical _ quantities ( rng ), ) return event
[ -0.1515236496925354, -0.2645823657512665, 0.2671908736228943, -1.0760384798049927, -1.0631321668624878, 0.2789805829524994, 0.21134424209594727, -0.6723886132240295, 1.1825623512268066, -0.40962135791778564, -0.4668174982070923, 1.7438980340957642, 0.0852544978260994, 0.3675033748149872, ...
def distance ( lat1, lon1, lat2, lon2 ) : # convert decimal degrees to radians lon1, lat1, lon2, lat2 = map ( radians, [ lon1, lat1, lon2, lat2 ] ) # haversine formula dlon = lon2 - lon1 dlat = lat2 - lat1 a = sin ( dlat / 2 ) * * 2 + cos ( lat1 ) * cos ( lat2 ) * sin ( dlon / 2 ) * * 2 c = 2 * asin ( sqrt ( a ) ) km =...
[ 0.6550503373146057, -0.46751487255096436, 0.6423784494400024, -0.08951515704393387, -0.7557827234268188, 0.4228447675704956, -0.7046293020248413, 0.745989978313446, -0.1755717396736145, -0.4911104142665863, -0.40959158539772034, -0.02554912492632866, 0.2295013964176178, -0.5527446269989014...
def test _ noscriptsinsubproject ( self ) : basedir = self. mktemp ( ) os. mkdir ( basedir ) scripts = dist. getscripts ('noscripts ', basedir = basedir ) self. assertequal ( scripts, [ ] )
[ 0.02509361132979393, -0.027264373376965523, 0.27714207768440247, -0.256008118391037, 0.24336397647857666, 0.8606493473052979, 0.3580141067504883, -0.564318835735321, -0.5071421265602112, -1.1015443801879883, -0.3820163905620575, 0.8679435849189758, -1.0664253234863281, 0.8777939677238464, ...
def get _ link _ linear _ jacobian _ function ( self, link : str, base _ link : str, n : int = 1, numpy _ output : bool = false ) - > cs. function : return self. make _ function ( " jl ", link, self. get _ link _ linear _ jacobian, base _ link = base _ link, n = n, numpy _ output = numpy _ output, )
[ 0.47083938121795654, -0.619831383228302, 0.3331978917121887, 0.14572544395923615, -0.3624057173728943, -1.0381110906600952, 0.43920621275901794, -0.5793821811676025, 0.14550553262233734, -1.1097177267074585, -0.435518354177475, 1.022355079650879, -0.025513790547847748, -0.9251096844673157,...
def getrndni ( self, * args ) : return _ snap. tneanetmp _ getrndni ( self, * args )
[ 0.04049361124634743, -0.01322365552186966, 0.4678015410900116, 0.6808208227157593, 0.7529429793357849, -0.09705303609371185, -0.48277774453163147, -0.1733832061290741, -1.0853958129882812, -0.5457496643066406, -1.0403586626052856, -1.0850785970687866, -0.40779224038124084, 0.76558071374893...
def test _ atomic _ boolean _ white _ space _ 4 _ nistxml _ sv _ iv _ atomic _ boolean _ white _ space _ 5 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - whitespace - 5. xsd ", instance = " nistdat...
[ -0.26239222288131714, -0.10796908289194107, 0.3890203535556793, 0.2827465236186981, -0.20069469511508942, 0.0222614798694849, 0.5798826813697815, -0.9586398601531982, -0.2223624736070633, 0.9904956817626953, -0.2994851768016815, 0.19462895393371582, -0.4250549376010895, 0.6515634655952454,...
def is _ valid ( u : dict ) - > none : assert all ( name in anime for name in u ), " invalid anime names " assert all ( isinstance ( x, int ) and 0 < = x < = 10 for x in u. values ( ) ), " invalid scores "
[ -1.0340626239776611, 0.3833202123641968, 0.5674288272857666, -0.5303075313568115, -0.10593060404062271, 1.521705150604248, -0.28659504652023315, 0.3597795367240906, 0.4100601077079773, -0.36512553691864014, -0.30844512581825256, 0.010194487869739532, -0.08288691937923431, 0.456238716840744...
def plotall ( self, * args ) : return _ snap. tgstat _ plotall ( self, * args )
[ 0.39278730750083923, 0.2728039622306824, 0.2674637734889984, -0.06528914719820023, -0.05896703526377678, 1.4188638925552368, 0.28307950496673584, -0.7018799185752869, -0.7367609739303589, -0.3214307427406311, -0.15887407958507538, 0.2010720819234848, -0.053141288459300995, 1.39952218532562...
def test _ model _ moltype _ mismatch ( self ) : _ data = { " human " : " atgcggctcgcggaggccgcgctcgcgga ", " mouse " : " atgcccggcgccaaggcagcgctggcgga ", " opossum " : " tgaccagtgaaagtggcggcggtggctga ", } aln = make _ aligned _ seqs ( data = _ data, moltype = " dna " ) tree = " ( mouse, human, opossum ) " m1 = evo _ ap...
[ 0.30730587244033813, -1.1276452541351318, 0.4484354555606842, -0.14581897854804993, 0.7022011280059814, 0.8474143147468567, -0.2884167730808258, -0.0564548522233963, -0.04894334822893143, 0.7258695363998413, -0.6824651956558228, 0.4307725131511688, 0.472047358751297, 0.16496603190898895, ...
def plot _ select _ series ( sim _ names, ref _ sim, pl, fname = none ) : print'select series : ', ref _ sim, sim _ names # settings fig _ sz = ( 10, 7 ) xlbl ='metric'ylbl ='human performance'all _ sims = [ ref _ sim ] + sim _ names miny = 0. 35 maxy = 1. 0 axis _ pad _ x = 0. 5 axis _ pad _ y _ extra = 0. 1 y _ ticks...
[ 0.6637669205665588, -0.09216351807117462, 0.7380807995796204, 0.15448825061321259, -0.38277560472488403, 0.44774192571640015, 1.1374322175979614, -0.6068244576454163, 0.18185852468013763, 0.3656640648841858, 0.1256096363067627, 0.6932113766670227, -0.12509112060070038, -0.02018138393759727...
def getdat ( self, * args ) : return _ snap. tintprflthi _ getdat ( self, * args )
[ 0.20830777287483215, 0.6702995300292969, 0.637657880783081, -0.04876114800572395, 1.3987488746643066, 0.7310959100723267, 0.00785575807094574, -1.0814493894577026, -0.820059061050415, -1.5947470664978027, 0.18977399170398712, -0.5537326335906982, -0.839179277420044, 0.9231656193733215, -...
def test _ check _ rxn _ e0 _ by _ spc ( self ) : rxn _ dict = \ {'label':'nc3h7 < = > ic3h7 ','index': 0,'multiplicity': 2,'charge': 0,'reactants': ['nc3h7'],'products': ['ic3h7'],'r _ species': [ {'force _ field':'mmff94s ','is _ ts': false,'label':'nc3h7 ','long _ thermo _ description': " bond corrections : {'c - c'...
[ 0.8902509212493896, -0.39468106627464294, 0.9109322428703308, -0.36545974016189575, 1.4750382900238037, 0.13850726187229156, 0.1362139731645584, 0.5206586122512817, -0.09956693649291992, -0.07840724289417267, -0.5030514597892761, 0.14849698543548584, -0.29859232902526855, -0.02048040740191...
def readline ( self ) : # type : ( ) - > bytes if not self. _ decompressor : raise valueerror ('decompressor not initialized') bytes _ io = io. bytesio ( ) while true : # ensure that the internal buffer has at least half the read _ size. going # with half the _ read _ size ( as opposed to a full _ read _ size ) to ensu...
[ 0.4382631480693817, -0.18390601873397827, 0.7509680986404419, 0.09871120750904083, -0.13446533679962158, -0.5422500967979431, -0.6238565444946289, -1.1663141250610352, -0.72114098072052, -1.3762428760528564, -0.03135254979133606, -0.3343985378742218, -0.7583491206169128, -0.564732730388641...
def _ telegram _ stop _ callback ( self, update, context ) : self. get _ logger ( ). info ('stopping telegram ros bridge for chat id { } '. format ( self. _ telegram _ chat _ id ) ) update. message. reply _ text ('disconnecting chat _ id { }. so long and thanks for all the fish!'' type / start to reconnect '. format ( ...
[ -0.52900230884552, -0.9122698903083801, 0.2897159457206726, -0.6399091482162476, -0.009266681969165802, 0.13719651103019714, 0.10594815760850906, -0.1762368232011795, 0.09576821327209473, 1.012208104133606, -0.06843974441289902, 0.10136352479457855, -0.10074464976787567, -0.528415560722351...
def test _ list _ decimal _ length _ 4 _ nistxml _ sv _ iv _ list _ decimal _ length _ 5 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - length - 5. xsd ", instance = " nistdata / list / decimal / schem...
[ -0.2880536913871765, -0.12409054487943649, 0.3680502772331238, 0.4676762521266937, -0.06242912635207176, -0.2270611822605133, 0.33108800649642944, 0.11034660786390305, 0.5407249331474304, 0.41260868310928345, -1.345365047454834, -0.719555675983429, -0.45008227229118347, 0.7553411722183228,...
def send _ ready _ to _ issue ( self, uid, processed _ result ) : processed _ result = processed _ result. lower ( ) if processed _ result not in [ " signed ", " client _ refusal " ] : raise valueerror ('processed result may be be either " signed " or " client _ refusal "') data = dict ( uid = uid, processed _ result =...
[ -0.3342159688472748, -0.010470100678503513, 0.5718203783035278, -0.6135481595993042, -0.39598348736763, 0.18186430633068085, -0.37714675068855286, -0.5597190260887146, 0.4122254252433777, 0.4395482540130615, -0.434458464384079, 0.7900545001029968, -0.7962499856948853, 0.6601912379264832, ...
def join ( self, * args ) : return _ snap. ttable _ join ( self, * args )
[ -0.814414381980896, 0.890373706817627, 0.5514702796936035, 1.0510525703430176, 0.1926700621843338, 0.6585856676101685, 0.4576084017753601, -0.09332919120788574, -1.3248291015625, 0.09949244558811188, -0.6331114768981934, -1.678941011428833, -0.5362342596054077, 0.49592238664627075, -0.38...
def dump _ queue ( queue ) : result = [ ] queue. put ( " stop " ) for i in iter ( queue. get,'stop') : result. append ( i ) # time. sleep (. 1 ) return result
[ -1.8720351457595825, -0.308991014957428, 0.43877261877059937, -0.6396462321281433, 0.029425837099552155, -0.31288620829582214, -0.4200439751148224, -0.4415432810783386, -0.22811125218868256, 0.5192782282829285, -0.8736271262168884, -0.4258219599723816, -0.5343314409255981, 1.01715469360351...
def insert _ branch ( self, to : int, _ from : int, lk : bool = false ) : _ from & = 0xfffffffc to & = 0xfffffffc self. seek ( _ from ) write _ uint32 ( self, ( to - _ from ) & 0x3fffffd | 0x48000000 | ( 1 if lk else 0 ) )
[ -0.2991981506347656, 1.3074204921722412, 0.8890633583068848, -0.22506052255630493, 0.3478177487850189, 1.081076741218567, 0.05875062942504883, -0.02886035665869713, -0.6315094232559204, -0.6352011561393738, -1.1228630542755127, 0.34033384919166565, -0.9411371946334839, -0.19439512491226196...
def test _ on _ get ( self, api _ client ) : result = api _ client. simulate _ get ( " / api / v1. 0 / actions / 123456 / steps / 123456 ", headers = common. auth _ headers ) assert result. status _ code = = 200
[ 0.11146582663059235, -0.08346981555223465, 0.4662659466266632, 0.2069551944732666, 0.6307401061058044, 0.23663084208965302, -0.5196535587310791, -0.03263618052005768, -0.28089818358421326, 0.0096164271235466, -0.20096997916698456, 0.47818824648857117, 0.18800568580627441, -0.39434155821800...
def auto _ mark ( * args ) : return _ ida _ auto. auto _ mark ( * args )
[ -1.2156896591186523, 0.348233699798584, 0.050130072981119156, 0.5405991673469543, 1.239477515220642, -0.48438966274261475, 1.6589007377624512, 0.3624352514743805, -0.3866287171840668, -0.4054795801639557, -1.0968047380447388, 0.10529396682977676, -0.4957238733768463, 0.006183688994497061, ...
def get _ ospf _ database _ checksum ( device, lsa _ type = none ) : try : out = device. parse ('show ospf database') except schemaemptyparsererror : return list ( ) ret _ list = [ ] # example dict # { #'ospf - database - information': { #'ospf - database': [ { #'lsa - type':'router ', #'checksum':'0xa9b6 ', # } ] # } ...
[ -0.2876668870449066, 0.2941371500492096, 0.49468496441841125, 0.569762647151947, 0.6808637976646423, -0.2034788280725479, -0.5894520282745361, 0.3624943196773529, 0.19558030366897583, 0.26001298427581787, -0.6583757996559143, 0.22705799341201782, -0.1555250883102417, 1.1900209188461304, ...
def addbacksorted ( self, * args ) : return _ snap. tinttrv _ addbacksorted ( self, * args )
[ -0.7862882018089294, 0.023522350937128067, 0.5376358032226562, -0.18742497265338898, 0.5214800238609314, -0.47398439049720764, 0.6788972616195679, -1.4392038583755493, -0.4756593406200409, -0.6671426296234131, -0.48134109377861023, 0.6862292289733887, -1.6409891843795776, 0.113004416227340...
def get _ player ( self, player _ num ) : return self. players [ player _ num ]
[ -0.8449842929840088, -0.44542866945266724, 0.10051372647285461, 0.32801637053489685, 0.80479496717453, -0.36532774567604065, 0.4182482957839966, -0.7468245029449463, 0.24977122247219086, -0.1818777322769165, 0.7783055305480957, 0.9690102338790894, -0.5281554460525513, -0.7926101684570312, ...
def tstrutil _ countwords ( * args ) : return _ snap. tstrutil _ countwords ( * args )
[ -0.297306627035141, 0.7677652835845947, 0.25912168622016907, -0.6494675874710083, 0.698962926864624, 0.12093307077884674, 1.1343917846679688, -0.0193592831492424, -1.081597089767456, 0.6655132174491882, -0.39114806056022644, -0.31784433126449585, 0.5819463133811951, 0.7917197942733765, 0...
def test _ moment _ floor ( ) : def expected _ floor ( unit, now ) : if unit in ['second ','minute ','hour ','day'] : mag = tu. magnitude ( unit ) exp = now - ( now % mag ) elif unit = ='week': tm = time. gmtime ( now ) exp = nldt. timegm ( ( tm. tm _ year, tm. tm _ mon, tm. tm _ mday - tm. tm _ wday, 0, 0, 0, 0, 0, 0 ...
[ -0.3504938781261444, -0.12933775782585144, 0.7086458802223206, -0.6351819038391113, 0.5965920686721802, 0.9417514801025391, 0.340537965297699, -1.2388813495635986, 0.3796762526035309, -0.42438220977783203, 0.11273141950368881, -0.7516494393348694, -0.5425676703453064, 2.008488655090332, ...
def test _ region _ create _ missing _ required _ args ( self ) : expected _ responses = [ '. *? ^ usage : craton region - create ', '. *? ^ craton region - create : error :. * $'] stdout, stderr = self. shell ('region - create') actual _ output = stdout + stderr for r in expected _ responses : self. assertthat ( actua...
[ 0.05633782222867012, -0.3533768653869629, 0.2853676974773407, -0.31727322936058044, 1.5519728660583496, 0.8139638900756836, 0.12415804713964462, -0.5414049029350281, -0.8748447895050049, -0.05213402956724167, -0.0074861845932900906, -0.1513027846813202, 0.035177361220121384, 0.782239437103...
def getlength ( buf ) : assert len ( buf ) > = 20 return stunmsg _ c. stun _ msg _ len ( buf )
[ 0.6289735436439514, 0.43461498618125916, 0.15622317790985107, -0.9324111938476562, 0.06508305668830872, -0.4948691427707672, 1.3539223670959473, 0.019412441179156303, 0.6996009945869446, -0.3604365289211273, -1.3173061609268188, -0.23151129484176636, -0.7089893817901611, 0.3461266160011291...
def scrap ( start _ date, max _ date, words = none, to _ account = none, from _ account = none, interval = 5, lang = none, headless = true, limit = float ( " inf " ), display _ type = " top ", resume = false, proxy = none, hashtag = none, show _ images = false, save _ images = false, save _ dir = " outputs ", filter _ ...
[ 0.05793790519237518, 0.025475412607192993, 0.9759650826454163, 0.3049941062927246, -0.29412195086479187, -0.4098440408706665, 0.672140896320343, -0.2222621887922287, -0.27476465702056885, 0.20580768585205078, 0.39840182662010193, 0.5936945676803589, 0.16474837064743042, 0.41598665714263916...
def parse _ input ( modfile ) : # checking that the nts _ light file given in argument exists if not os. path. exists ( modfile ) : print ( " error! file { } does not exist. execution terminated without output ". format ( modfile ) ) sys. exit ( 1 ) with open ( modfile,'r') as f : for line in f : yield line. strip ( )....
[ 0.06600482016801834, -0.6502270698547363, 0.6262107491493225, -0.22990404069423676, -0.6547554135322571, 1.1810390949249268, -0.01673000119626522, -0.1746530681848526, -0.4498927593231201, 0.2550531327724457, 0.30521145462989807, -0.19696436822414398, -0.38133764266967773, 1.09703028202056...
def compute _ cost ( theta _ 0, theta _ 1, data ) : total _ cost = 0 dependent _ value = 0 for row in data : y = row [ - 1 ] for n in range ( len ( theta _ 1 ) ) : dependent _ value = dependent _ value + row [ n ] * theta _ 1 [ n ] total _ cost = total _ cost + ( ( y - ( ( dependent _ value + theta _ 0 ) ) ) * * 2 ) to...
[ -0.0012351253535598516, 0.09545204043388367, 0.5897126197814941, -0.07692831754684448, 0.01711796410381794, -0.3154657185077667, 0.4348449110984802, 1.0169662237167358, -0.39298272132873535, 0.8380472660064697, -0.10952123999595642, 0.29268893599510193, 0.2730148434638977, 0.22515657544136...
def presenttime ( self, inputevent ) : timeformat = _ settingsmanager. getsetting ('presenttimeformat') message = time. strftime ( timeformat, time. localtime ( ) ) self. presentmessage ( message ) return true
[ -0.40976381301879883, -0.367917537689209, 0.6520514488220215, -0.37109097838401794, 0.4737826883792877, 1.0905635356903076, -0.13500241935253143, -0.4816390573978424, 0.1779525876045227, 0.8524041175842285, 0.2920813262462616, -0.5932261347770691, -1.0525645017623901, 1.0566478967666626, ...
def addatm ( self, * args ) : return _ snap. tfltprv _ addatm ( self, * args )
[ -1.3298532962799072, -0.09142299741506577, 0.30605217814445496, -0.8567995429039001, 0.8139069080352783, 0.28903430700302124, 0.034731894731521606, 0.19254706799983978, -0.8345288038253784, -0.5356079339981079, 0.640009880065918, -1.4095354080200195, 0.09846928715705872, 0.7605782747268677...
def is _ neighbour ( self, x1, y1, x2, y2 ) : xmax = self. _ x - 1 ymax = self. _ y - 1 sy = abs ( y2 - y1 ) sx = abs ( x2 - x1 ) # if the distance between x points is 1 ( or lx ) and the ys are aligned onx = ( sx = = 1 or sx = = xmax ) and sy = = 0 # if the distance between y points is 1 ( or ly ) and the xs are align...
[ -0.5324681401252747, -0.5154507160186768, 0.7655814290046692, 0.5477717518806458, -0.7759725451469421, -0.3419014811515808, -0.774616539478302, 0.18571093678474426, 0.2430703192949295, 0.35349202156066895, -0.025114744901657104, 0.4538637101650238, -0.4281271696090698, 0.13095374405384064,...
def drag _ stop ( self, event ) : print ( " stoping dragging " ) # se toma la posicion actual de los objetos arrastrados x, y = self. drag _ data [ " x " ], self. drag _ data [ " y " ] # se identifican todos los elementos que estan sobrepuestos de acuerdo a los limites de los # objetos arrastrados overlapped _ items = ...
[ 0.08289396017789841, -0.6034335494041443, 0.8244268298149109, -0.09704635292291641, 0.5402066111564636, 0.5650309920310974, 0.0858430564403534, -0.019392332062125206, -0.5581660270690918, -0.19103975594043732, -0.2351926863193512, 0.27008405327796936, 0.14498254656791687, -0.00115427921991...
async def hook _ slinger _ view ( webhook _ payload : slingerrequestpayload, ) - > slingerresponsepayload : try : validate _ url ( webhook _ payload. to _ url ) except valueerror : raise httpexception ( status _ code = httpstatus. bad _ request, detail = " parameter'to _ url'is not a valid url. ", ) try : job = send _ ...
[ -0.09540048241615295, 0.4695889949798584, 0.6835717558860779, 0.08142314851284027, -0.1174798309803009, -0.5789282321929932, -0.03850442171096802, 0.03825771063566208, -0.039780087769031525, 0.04483119025826454, 0.36050331592559814, 0.3232763707637787, 0.2982120215892792, 0.083327502012252...
def storefltcol ( self, * args ) : return _ snap. ttable _ storefltcol ( self, * args )
[ -0.5775355100631714, 0.5691657066345215, 0.4160134792327881, -0.3434719741344452, 0.8734691739082336, -0.3067881464958191, 1.4461543560028076, -1.494431972503662, -1.185200572013855, -1.007690668106079, -1.2595359086990356, -0.08859572559595108, -0.2159247249364853, 1.0797744989395142, 0...
def custom _ hostname ( self, custom _ hostname ) : self. _ custom _ hostname = custom _ hostname
[ -0.041716352105140686, -0.5531715154647827, 0.048814594745635986, 0.6325724124908447, -0.7378754019737244, 0.29421430826187134, 0.7255310416221619, 1.1352033615112305, -0.8620595335960388, -0.05981612205505371, -0.734348714351654, 0.3975053131580353, 0.11378893256187439, -0.158644527196884...
def tstrutil _ getstdname ( * args ) : return _ snap. tstrutil _ getstdname ( * args )
[ -0.13483113050460815, 0.5810294151306152, 0.14765068888664246, 0.3948354721069336, 0.04362282156944275, -0.21589314937591553, 0.3113108277320862, -0.5132279396057129, -0.9561998844146729, -0.37434297800064087, -0.8379957675933838, -0.3699750304222107, 0.11906836926937103, 0.361724585294723...
def _ _ init _ _ ( self, * args ) : _ snap. tfltprv _ swiginit ( self, _ snap. new _ tfltprv ( * args ) )
[ -1.0544722080230713, 0.2323237955570221, 0.1309787929058075, -0.6408259868621826, 0.23064619302749634, -0.3597889244556427, 0.5191689729690552, 0.8419557213783264, -1.159563422203064, 0.1542969048023224, 0.06091177836060524, -1.7624754905700684, -0.6040387153625488, 1.2523207664489746, 0...
def get _ stats ( self ) : gate _ list = [ cfg. gate _ string [ kind ] for kind in self. kind _ list ( ) ] gate _ freq = counter ( gate _ list ) gatetype _ list = [ ] for kind in self. kind _ list ( ) : if is _ clifford _ gate ( kind ) is true or is _ non _ clifford _ gate ( kind ) is true : gatetype _ list. append ('u...
[ -0.3183384835720062, 0.2773885726928711, 0.4804604947566986, -0.8473234176635742, -0.10124024748802185, -0.1524915099143982, 0.35973411798477173, -1.1834698915481567, -0.416162371635437, 0.6181234121322632, -0.5760132074356079, 0.8834155797958374, -0.6372058391571045, 1.4362850189208984, ...
def _ yearly _ relative ( self, pattern _ dict ) : _ freq _ recurrence _ factor = 1 _ freq _ interval = 1 _ freq _ relative _ interval = 1 try : if self. _ pattern ['freq _ type'] = = 128 : _ freq _ recurrence _ factor = self. _ pattern ['freq _ recurrence _ factor'] _ freq _ interval = self. _ pattern ['freq _ interva...
[ -0.512926459312439, 0.38222962617874146, 1.1834989786148071, -0.5296094417572021, -0.909015953540802, -0.28520700335502625, 0.7192592620849609, -0.2586825489997864, -0.005340108647942543, 0.6556520462036133, 0.11285066604614258, 0.2688571512699127, 0.5926734209060669, -0.1731613129377365, ...
def generateoauthauthorizationurl ( request _ token, authorization _ url ='https : / / www. google. com / accounts / oauthauthorizetoken ', callback _ url = none, extra _ params = none, include _ scopes _ in _ callback = false, scopes _ param _ prefix ='oauth _ token _ scope') : scopes = request _ token. scopes if isin...
[ -0.35285305976867676, 0.47283935546875, 0.6549004316329956, 0.23020760715007782, -0.29302141070365906, -0.43434467911720276, -0.2777997553348541, 0.2625420093536377, 0.748785138130188, 0.5702686309814453, 0.6044317483901978, 0.7816876173019409, 0.46584656834602356, -0.041169051080942154, ...
def test _ oauth _ version ( self ) : v = requestvalidator ( ) e = baseendpoint ( v ) r = e. _ create _ request ('https : / / a. b / ','get ', ('oauth _ signature = a & oauth _ consumer _ key = b & oauth _ nonce = c &'' oauth _ timestamp = a & oauth _ signature _ method = rsa - sha1 &'' oauth _ version = 2. 0'), urlenc...
[ -0.20774316787719727, -0.6074840426445007, 0.5988340973854065, 1.1949723958969116, 0.36806586384773254, 0.32243281602859497, -0.523359477519989, 0.2691271901130676, 0.17493455111980438, 0.5055549144744873, -0.020806211978197098, 0.6669526696205139, 0.18283092975616455, 0.41300100088119507,...
def _ ros _ message _ callback ( self, msg ) : self. get _ logger ( ). info ( str ( msg. data ) ) self. _ telegram _ updater. bot. send _ message ( self. _ telegram _ chat _ id, msg. data )
[ -0.20348244905471802, -0.6413869261741638, 0.5374914407730103, -0.04202747717499733, 0.20462608337402344, 0.2778383195400238, -0.17964833974838257, -0.3948264718055725, 0.014124356210231781, 0.2168293297290802, 0.16566967964172363, 0.0916433185338974, 0.6093224287033081, 0.4235488176345825...
def endni ( self, * args ) : return _ snap. tneanet _ endni ( self, * args )
[ -0.394397109746933, 1.1286451816558838, 0.2140200138092041, 0.11417993158102036, 0.6091866493225098, -0.250803679227829, -0.3022804260253906, -1.0039269924163818, -1.0305684804916382, -0.16322818398475647, -0.4546518325805664, -1.458364486694336, -0.5369685292243958, 0.1887749582529068, ...
def wood _ mr ( targettemp, basedir ) : files = [ " wood95 / co040. 2. 04dt1 ", " wood95 / co050. 2. 04dt1 ", " wood95 / co060. 2. 04dt1 ", " wood95 / co070. 2. 04dt1 ", " wood95 / co080. 2. 04dt1 ", " wood95 / co090. 2. 04dt1 ", " wood95 / co100. 2. 04dt1 ", ] m = np. array ( [ 0. 4, 0. 5, 0. 6, 0. 7, 0. 8, 0. 9, 1. 0...
[ 0.14338107407093048, -0.8176258206367493, 0.7351225018501282, -0.4529041051864624, -0.05247996002435684, 0.21925538778305054, 0.07449948787689209, -0.02838728576898575, -1.0212243795394897, 0.48066774010658264, 0.4146440029144287, 0.15132349729537964, -0.4128342270851135, 0.351514905691146...
def is _ dir ( filename ) : dir _ name = os. path. dirname ( filename ) if not os. path. exists ( dir _ name ) : os. makedirs ( dir _ name )
[ -0.13916797935962677, 0.17769481241703033, 0.8357388973236084, 0.2469923049211502, 0.6802403330802917, 1.0939667224884033, 0.9381276965141296, 0.685621440410614, 0.17884191870689392, -1.0529396533966064, -0.10529576987028122, 0.013370289467275143, 0.42505165934562683, 0.47808340191841125, ...
def removelogicalinterfacefromdevicetype ( self, typeid, logicalinterfaceid ) : req = apiclient. onedevicetypelogicalinterfaceurl % ( self. host, typeid, logicalinterfaceid ) resp = requests. delete ( req, auth = self. credentials, verify = self. verify ) if resp. status _ code = = 204 : self. logger. debug ( " logical...
[ -0.7757064700126648, -0.35144665837287903, 0.2775796353816986, -0.27990153431892395, -1.0776256322860718, 0.04951871186494827, -0.09069296717643738, -0.6709461808204651, 0.5115557909011841, 0.32673412561416626, -0.349810928106308, -0.026178471744060516, -2.2371292114257812, 0.1196283325552...
def find _ nn ( model, query _ img, loader, k, device ) : output _ network = [ ] loaded _ data = torch. stack ( [ x for i, x in enumerate ( loader ) ] ) idx = [ i for i in range ( len ( loaded _ data ) ) if torch. all ( loaded _ data [ i ]. eq ( query _ img ) ) ] [ 0 ] list _ images = loader. image _ files with torch. ...
[ -0.7288254499435425, -0.9119580984115601, 0.5441250801086426, 0.2199200689792633, -0.6374770998954773, -0.20764248073101044, -0.01408897154033184, -0.4987969398498535, -0.7981254458427429, 0.2626838684082031, -0.6259147524833679, -0.4392073154449463, -0.07320622354745865, 0.973937809467315...
def print _ first _ and _ last ( sentence ) : words = break _ words ( sentence ) print _ first _ word ( words ) print _ last _ word ( words )
[ 0.4172835648059845, -0.4388108253479004, 0.4655177891254425, -0.6352115273475647, 1.128910779953003, -0.9071642756462097, -0.3672579526901245, -0.1193021833896637, -0.6334978938102722, 0.665525496006012, -0.11284083873033524, 0.17635329067707062, -0.4243379533290863, 1.0063424110412598, ...
def create _ app ( cfg = none, app _ name = none, blueprints = none ) : if app _ name is none : app _ name = config. defaultconfig. project if blueprints is none : blueprints = default _ blueprints app = flask ( app _ name ) # todo : check params configure _ app ( app, cfg ) configure _ hook ( app ) configure _ bluepri...
[ 0.9270036220550537, 0.27815577387809753, 0.659429669380188, 1.3121869564056396, 0.20065559446811676, 0.2178577333688736, -0.42266660928726196, 0.09591083973646164, -0.04596861079335213, 0.07831109315156937, -0.0938420221209526, -0.21424371004104614, -0.20583072304725647, 0.7505559921264648...
def endeainti ( self, * args ) : return _ snap. tcrossnet _ endeainti ( self, * args )
[ -0.25549444556236267, 0.6572915315628052, 0.5316242575645447, -0.7451249361038208, 0.45933541655540466, 0.39489245414733887, 0.49677154421806335, 0.21242861449718475, -0.7176209092140198, 0.37050753831863403, -0.3529280722141266, -1.880616307258606, -0.44284912943840027, 0.8759406805038452...
def addstrattrdatn ( self, * args ) : return _ snap. tneanet _ addstrattrdatn ( self, * args )
[ -0.48507988452911377, -0.056360695511102676, 0.19220997393131256, -0.8364681005477905, 0.6505314111709595, -0.5215461254119873, 0.5314805507659912, 0.40032708644866943, -0.09903041273355484, -1.3740018606185913, -1.5413801670074463, -0.17573946714401245, 1.0133869647979736, 0.5523913502693...
def print ( self, end = " \ n \ n ", file = none ) : print ( repr ( self ), end = end, file = sys. stdout if file is none else file )
[ 0.663002073764801, -0.17352421581745148, 0.5454345941543579, -0.0009315117495134473, 0.3711332678794861, 0.5492111444473267, -0.4110898971557617, 0.7493468523025513, -1.2227563858032227, -0.5688669085502625, 0.37555131316185, 0.630680501461029, -0.7770711779594421, 0.18630127608776093, -...
def _ _ iadd _ _ ( self, * args ) : return _ snap. tflt _ _ _ iadd _ _ ( self, * args )
[ 0.045455202460289, -0.18871238827705383, 0.36280062794685364, -1.0222063064575195, -0.27942362427711487, 0.9153226017951965, 0.44946447014808655, -0.11808587610721588, -0.3960440754890442, 0.70084148645401, 0.10418351739645004, -0.9873046875, 0.36734673380851746, 0.522699236869812, 1.379...
def deleteipv6accesslist ( self, access _ list _ name ) : query ='' conn = self. get _ connection ( ) headers = {'content - type':'application / json ','authorization':'a10 % s'% self. sessionid } conn. request ('delete ', self. get _ path ( ) +'/'+ str ( access _ list _ name ). replace ( " / ", " % 2f " ) + query, hea...
[ -0.6396404504776001, -1.059571385383606, 0.7231526374816895, 0.0010174100752919912, -1.1291195154190063, -0.8865938186645508, -0.1944880336523056, 0.10340043157339096, 0.9012831449508667, 1.2823374271392822, -0.11235600709915161, 0.3091398775577545, -0.5902442932128906, -0.2879305779933929...
def vesak _ date ( self, year : int ) - > date : return self. lunar _ to _ gre ( year, 4, 15 )
[ 0.6898669600486755, 0.939044713973999, 0.23085854947566986, -0.21907900273799896, -0.12969958782196045, -0.11539314687252045, -0.5844050645828247, -0.7977731823921204, 0.5931432247161865, 0.20903103053569794, -0.37798193097114563, 0.5772068500518799, -0.26254671812057495, -0.00366258248686...
def main ( options, args ) : kapp = simplekernelapp ('qt ', none ) return start ( kapp )
[ 1.1367794275283813, -0.35973942279815674, 0.6834700703620911, 1.4142717123031616, -0.4020231366157532, 0.757403552532196, -0.15709644556045532, 0.3285847306251526, 0.39905020594596863, -0.15582039952278137, -0.15245725214481354, -0.14586585760116577, 0.025448210537433624, -0.30786997079849...
def set _ middle _ name ( self, value ) : if value! = '!': self. middle _ name = value logging. debug ( " user's middle name received " ) else : self. middle _ name =''
[ -0.08742588013410568, -0.5069662928581238, 0.2751019597053528, -0.036026470363140106, -0.9496288299560547, 0.7496582865715027, -0.5763511657714844, 0.41483625769615173, 0.6103916764259338, 0.6836977601051331, -0.5831488966941833, -0.040020279586315155, -1.0307830572128296, 0.15819384157657...
def _ _ lt _ _ ( self, * args ) : return _ snap. tintstrprinthi _ _ _ lt _ _ ( self, * args )
[ 0.6184421181678772, -1.1246418952941895, 0.38049280643463135, -0.15576037764549255, 0.39758020639419556, -0.7938552498817444, -0.6996278762817383, -0.9082698822021484, -0.7658684849739075, -0.7155119180679321, -0.17055705189704895, 0.14391952753067017, -1.1693845987319946, 0.15523774921894...
def isort ( self, * args ) : return _ snap. tintprv _ isort ( self, * args )
[ -1.5092846155166626, -0.9265307784080505, 0.519875168800354, -0.45107218623161316, -0.1344398558139801, 0.43031495809555054, -0.24030950665473938, -0.37800025939941406, -0.046477701514959335, 0.00016327561752405018, 0.2566285729408264, 0.3324536979198456, -2.3607177734375, 0.31767770648002...
def glob _ string ( self ) : return f " { self. dirpath _ glob } / { self. step } / { self. filename } "
[ 0.2662643790245056, -0.8554837107658386, 0.3213244378566742, 0.02000684291124344, -0.14563919603824615, 1.3398860692977905, 1.1431655883789062, -0.5079858303070068, -1.709860920906067, 0.293532133102417, 1.2084522247314453, 0.24015900492668152, 0.11155253648757935, -0.07069561630487442, ...
def _ _ init _ _ ( self, * args ) : _ snap. tstrstrprhi _ swiginit ( self, _ snap. new _ tstrstrprhi ( * args ) )
[ -0.6046959757804871, -0.42686599493026733, 0.09889291226863861, -1.1833699941635132, -0.06891299039125443, 0.40428099036216736, -0.174871563911438, -0.041205767542123795, -1.5518889427185059, -0.14820535480976105, -0.6646186709403992, -1.02779221534729, -1.1765108108520508, 0.3564088344573...
def install _ request _ hook ( depth : int ) - > none : if not is _ in _ ci : return # https : / / sphinx - gallery. github. io / stable / faq. html # why - is - file - not - defined - what - can - i - use base = none msg = " " try : base = _ _ file _ _ msg + = f " found file { _ _ file _ _ } \ n " except nameerror : m...
[ -0.7226729393005371, 0.12694533169269562, 1.0449409484863281, 0.25456470251083374, 0.6059446334838867, -0.232351154088974, 1.0078356266021729, 0.016981596127152443, -0.7532256841659546, -0.2058679312467575, 0.6137809157371521, 0.6522989273071289, -0.6652161478996277, 0.4830845594406128, ...
def get _ success ( ) : global user _ continue _ url return render _ template ( " success. html ", client _ ip = client _ ip, client _ mac = client _ mac, node _ mac = node _ mac, user _ continue _ url = user _ continue _ url, success _ url = success _ url, )
[ 0.8595792651176453, 0.8834628462791443, 0.23597760498523712, 0.8114882111549377, -0.667747974395752, 0.7060831189155579, -0.3769741654396057, 0.02115250565111637, -1.0330299139022827, 0.03473818302154541, 0.48529237508773804, -0.04986895993351936, 0.21458879113197327, -0.6050213575363159, ...
def error ( message, fail _ on _ error = true ) : if fail _ on _ error : logger. error ( message ) sys. exit ( ) else : logger. error ( message )
[ 0.3148622214794159, 0.32136043906211853, 0.43987756967544556, 1.133621096611023, -0.47298574447631836, 0.18187807500362396, -0.32271912693977356, 0.3051820993423462, -0.19247455894947052, 0.7335192561149597, 0.06231553480029106, 0.21902678906917572, -0.2672008275985718, 1.0248088836669922,...
def encrypt ( self, obj, pickler = pickle ) : return self. main _ encrypt ( self. pickle _ pad + pickler. dumps ( obj ) )
[ -0.32043126225471497, 0.4863218665122986, 0.2534222900867462, 0.7208210229873657, -0.32187792658805847, 0.17950528860092163, 0.21467119455337524, -1.2626402378082275, 0.5948954224586487, 0.6588773131370544, -1.148899793624878, -0.49267449975013733, -0.19547045230865479, 0.09421265125274658...
def house _ graph _ nk ( ) : g = ngraph ( ) for i in range ( 6 ) : g. addnode ( ) edges = [ ( 0, 1 ), ( 0, 2 ), ( 1, 3 ), ( 2, 4 ), ( 1, 2 ), ( 3, 4 ), ( 2, 3 ), ( 4, 5 ) ] for u, v in edges : g. addedge ( u, v ) return g
[ -0.012180136516690254, 0.38380876183509827, 0.6474074721336365, 1.0587761402130127, -0.6541342735290527, -0.7862446308135986, 0.24825003743171692, 0.1665746122598648, 0.7774608731269836, 0.34085381031036377, -0.5742560625076294, -0.3878134787082672, 0.04716060310602188, -0.1431303173303604...
def test _ example _ input _ one _ select _ value _ multiple _ select _ test ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) selected _ value = [ " a " ] input _ page. create _ new _ input. select ( " ...
[ -0.43512850999832153, -0.12508830428123474, 0.508526623249054, 0.8162673711776733, 1.1169509887695312, 0.2637723684310913, -0.22982782125473022, -0.24658061563968658, 0.8091701865196228, -0.11124972999095917, -0.319246768951416, -0.34653088450431824, 0.17602500319480896, 0.4094608724117279...
def get _ credentials ( ) : home _ dir = os. path. expanduser ('~') # homedir ='/ usr / vuthaiha credential _ dir = os. path. join ( home _ dir, '. credentials') #'/ usr / vuthaiha /. credentials'if not os. path. exists ( credential _ dir ) : os. makedirs ( credential _ dir ) credential _ path = os. path. join ( creden...
[ 0.3027641475200653, -0.9300470352172852, 0.5622372031211853, 0.6025522947311401, 0.09618770331144333, 0.0859350934624672, 0.012591006234288216, 0.0433967225253582, 0.0007124406984075904, -0.10274267196655273, 0.03150421008467674, 0.4534173011779785, -0.2631508708000183, -0.3100347518920898...
def execute ( self, endpoint, method ='get ', oauth = none, params = none, files = none ) : hooks = { } if oauth : # making an authenticated request, add the oauth hook to the request hooks = {'auth': oauth } if params is none : params = { } else : if params is none : params = self. params else : params. update ( self....
[ -1.2579319477081299, -0.3266298770904541, 0.9168154001235962, 0.03208106756210327, 0.31238341331481934, -0.6563270092010498, -1.0206849575042725, -0.6170167922973633, 0.12951461970806122, 0.5586531758308411, 0.6740140914916992, -0.31712040305137634, -0.5424141883850098, -0.3967476487159729...
def tokenize ( str, delimiter = default _ tokenizer _ delimiter ) : if str : return str. split ( delimiter ) else : return str
[ -0.20388777554035187, 0.5766607522964478, 0.27659872174263, 0.6141872406005859, -1.0760529041290283, -0.5647484064102173, -0.9768001437187195, 1.1350980997085571, 0.14972299337387085, -0.5822044014930725, 0.378511905670166, 0.042299166321754456, -0.5790348052978516, -0.5493659377098083, ...
def get _ welcome _ response ( ) : session _ attributes = { } speech _ output = " hi, welcome to bus buddy " ; # if the user either does not reply to the welcome message or says something # that is not understood, they will be prompted again with this text. should _ end _ session = true return build _ response ( sessio...
[ -0.06073230132460594, -0.3730863630771637, 0.5530195236206055, 0.3038744330406189, -0.007350902538746595, -0.7646382451057434, -0.1273147016763687, -0.6972050666809082, 0.6895695924758911, -0.15104298293590546, -0.6761358976364136, 0.019551673904061317, -0.9761767387390137, -0.758073925971...
def test _ connection ( endpoint, port ) : try : conn = psycopg2. connect ( " host = { } dbname = { } user = { } password = { } port = { } ". format ( endpoint, dwh _ db, dwh _ db _ user, dwh _ db _ password, port ) ) cur = conn. cursor ( ) cur. execute ( " select version ( ) ; " ) for row in cur : print ('row = % r'% ...
[ -0.18577764928340912, -0.022758157923817635, 0.48325225710868835, 0.40314483642578125, 0.9913877844810486, -0.16998504102230072, -0.6456028819084167, 0.06502313911914825, -1.44864821434021, 0.5950616002082825, 0.18299582600593567, 0.09966541826725006, -0.4877118170261383, -0.59935170412063...
def cost _ function ( theta, x, y ) : # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # compute the cost given the current parameter theta on the training data set ( x, y ) # # # # # # # # # # # # #...
[ 0.3298605680465698, -0.22536972165107727, 0.5944681763648987, -0.6468821167945862, -0.9846795201301575, -0.5929012298583984, 0.19958540797233582, 0.4922192692756653, -0.7354920506477356, 1.1004866361618042, -0.14102843403816223, 0.5710776448249817, -0.39422208070755005, -0.2061874568462371...
def log ( self, logdir ) : f = open ( logdir +'parsed. log ','a') try : f. write ( self. logstring ( ) + " \ n " ) finally : f. close ( )
[ 0.44962337613105774, -0.7023212909698486, 0.3561619818210602, -0.42727938294410706, 0.7441784739494324, 0.9459299445152283, -0.2171981781721115, 0.21687236428260803, 0.03428094461560249, -1.5495773553848267, -0.5766571164131165, 0.10350020229816437, 0.2540310323238373, -0.00940999854356050...
def test _ example _ input _ one _ add _ close _ entity ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input one " ) input _ page. entity1. examp...
[ -0.25090906023979187, 0.18949082493782043, 0.5420319437980652, 0.6484695672988892, 0.39054232835769653, 1.512031078338623, 0.2509371340274811, -0.17222101986408234, 0.5649170279502869, 0.20314984023571014, 0.36420246958732605, -0.5339887738227844, -0.4775582551956177, 0.40504494309425354, ...
def load ( * args ) : return _ snap. tdirnet _ load ( * args )
[ -1.3538190126419067, 1.3288943767547607, 0.3566187024116516, -0.856688916683197, -0.07255328446626663, 0.5305439829826355, 0.5199790596961975, -0.9904981255531311, -0.3785552978515625, -0.14061273634433746, -0.7663028240203857, -1.619800090789795, -0.15857817232608795, -0.3578086495399475,...
def prepare _ input ( self, inputs ) : embeddable _ data = { } # only flatten the data we want for key, value in inputs. items ( ) : if key in self. embeddings : # - - [ t x b x... ] - > [ b'x... ] embeddable _ data [ key ] = torch. flatten ( value, 0, 1 ). long ( ) # add our group id and subgroup id if we want them if...
[ -0.928798258304596, 0.9033874273300171, 0.4601382613182068, -0.6807489991188049, -0.5214827060699463, 0.3298294246196747, 0.1931448131799698, -0.9317731857299805, -0.15491816401481628, 0.26323336362838745, -0.5310106873512268, -0.3763658106327057, -0.2769920229911804, -0.01570265181362629,...
def save _ pep ( xmpp ) : xmpp. plugin ['xep _ 0048']. set _ bookmarks ( stanza _ storage ('pep'), method ='xep _ 0223')
[ -0.11881522834300995, -0.45517823100090027, 0.37894439697265625, 0.261637806892395, 0.755903959274292, 0.38120225071907043, -0.45717018842697144, 0.33247509598731995, -0.11483535915613174, 0.7331158518791199, -0.6399236917495728, 0.019651221111416817, -1.2196751832962036, -0.53367334604263...
def default ( package _ path, use _ gpg ) : interactive _ help ( ) configure _ steps = ['1. configure the ice node ( current host ) as a repository host ','2. install calamari web application on the ice node ( current host ) ','3. install ceph - deploy on the ice node ( current host ) ','4. configure host as a ceph rep...
[ 0.593701958656311, 0.13373391330242157, 0.7138404846191406, 1.2284986972808838, 1.0656882524490356, 0.02976378984749317, 0.10118614882230759, 0.13313798606395721, -0.6324834823608398, -0.1988985687494278, -0.5888408422470093, -0.33166658878326416, 0.1733962744474411, 0.44531962275505066, ...
def retrieval _ pretrain _ collate ( data ) : # separate source and target sequences t2i _ batch, i2t _ batch = list ( zip ( * data ) ) # t2i def generate _ inputs ( _ batch ) : sent, att _ feats, img _ masks, box _ feats, obj _ labels, lm _ label, itm _ label, img _ ids, ori _ feats, masked _ types = zip ( * _ batch )...
[ -0.8017319440841675, -0.6815544962882996, 0.922584593296051, -0.850560188293457, -0.08691123872995377, -0.31929701566696167, 0.7091332674026489, -0.2969970703125, 0.01706741191446781, 0.08154219388961792, -0.03245560824871063, 0.2311762422323227, 0.7386484146118164, -0.21952179074287415, ...
def test _ atomic _ id _ enumeration _ 4 _ nistxml _ sv _ iv _ atomic _ id _ enumeration _ 5 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - enumeration - 5. xsd ", instance = " nistdata / atomic / id / schem...
[ -0.40102583169937134, -1.1467105150222778, 0.36010387539863586, 0.3369847536087036, -0.7459210157394409, -0.2839890718460083, 0.2966011166572571, -0.9279018640518188, -0.3459847867488861, 0.9373573064804077, -0.648654043674469, 0.2634124159812927, -0.17068086564540863, 0.30809998512268066,...
def addmerged ( self, * args ) : return _ snap. tstrv _ addmerged ( self, * args )
[ -1.0491087436676025, 0.2191133201122284, 0.4366597533226013, -0.24116088449954987, 1.3798354864120483, 0.2793871760368347, 0.557880163192749, 0.39723941683769226, -0.3333570659160614, -1.397957444190979, -1.0476099252700806, 0.10619769245386124, -0.3432035446166992, 1.3503148555755615, 0...