text
stringlengths
25
2.19k
embedding
listlengths
768
768
def _ get _ global _ gloo _ group ( ) : if dist. get _ backend ( ) = = " nccl " : return dist. new _ group ( backend = " gloo " ) else : return dist. group. world
[ 1.0435166358947754, 1.1913409233093262, 0.4513137936592102, -0.18967340886592865, 0.2465709149837494, 0.9534156918525696, 0.0636654794216156, -1.2633845806121826, -0.7883596420288086, 0.4887129068374634, 0.40168145298957825, 1.2990845441818237, -0.7769581079483032, 0.5017573237419128, 0....
def ttable _ getedgetablepn ( * args ) : return _ snap. ttable _ getedgetablepn ( * args )
[ -1.0427489280700684, 0.1348901391029358, 0.8243190050125122, 1.3530604839324951, 0.7050541639328003, -0.2300606667995453, 0.3730095624923706, -0.3088230788707733, -0.7969083786010742, 0.35997796058654785, -0.1716410219669342, -0.9807170629501343, -0.1654329001903534, -0.19237729907035828, ...
def selfsimjoin ( self, * args ) : return _ snap. ptable _ selfsimjoin ( self, * args )
[ -0.3879508674144745, 0.6316776871681213, 0.5567200183868408, 1.765672206878662, -0.4080466032028198, 0.3361777365207672, 1.4582188129425049, 0.16411368548870087, -0.7605934143066406, 0.26036950945854187, -0.6366442441940308, -0.6289370656013489, -1.2170811891555786, 0.7630134224891663, 0...
def reset _ discourse _ csv ( self, path ) : data, type _ data = parse _ file ( path, [ ] ) q = self. query _ discourses ( ) property _ names = [ x for x in type _ data. keys ( ) ] q. set _ properties ( * * { x : none for x in property _ names } ) self. hierarchy. remove _ discourse _ properties ( self, property _ name...
[ -0.4193202555179596, -0.9219167828559875, 0.2807321846485138, -0.12911830842494965, 0.2128673791885376, -0.47323253750801086, 0.12353253364562988, 0.05386245250701904, -0.7910876274108887, 0.08082914352416992, -0.24879848957061768, 1.6399856805801392, -0.4378524124622345, -0.36524790525436...
def _ _ lt _ _ ( self, * args ) : return _ snap. tinthi _ _ _ lt _ _ ( self, * args )
[ 0.4127974212169647, -0.703420102596283, 0.25965332984924316, -0.474489688873291, 0.48808565735816956, -0.09861761331558228, -0.5127984285354614, -1.5102617740631104, -0.9673996567726135, -0.2810932397842407, -1.0322253704071045, -0.3447040021419525, -0.6553511023521423, 0.5168055891990662,...
def _ as _ indexed _ slices _ list ( inputs, optimize = true ) : if not isinstance ( inputs, ( list, tuple ) ) : raise typeerror ( f " expected a list or tuple, not { type ( inputs ) }. " ) outputs = [ _ as _ indexed _ slices ( i, optimize = optimize ) for i in inputs ] with _ int32 _ index = [ o. indices for o in outp...
[ -1.3002179861068726, 0.3422607183456421, 0.6343129277229309, 0.7251884341239929, 0.029329916462302208, -0.344093382358551, 0.7936038374900818, -0.8117408752441406, 0.7202605605125427, 1.0076959133148193, 0.44640710949897766, 0.30253326892852783, -0.3410298526287079, 0.2244187742471695, -...
def print _ output ( usb _ information ) : print ('{ : - ^ 15 } '. format ('' ) ) if isinstance ( usb _ information, dict ) : for key _ name, value _ name in usb _ information. items ( ) : print ('{ } : { } '. format ( key _ name, value _ name ) ) elif isinstance ( usb _ information, tuple ) : print ('device : { } '. f...
[ -0.22987785935401917, -0.1819145530462265, 0.7567728757858276, 0.5938796997070312, -0.6749716997146606, 0.6049233078956604, 0.1899009346961975, -0.020782170817255974, -0.6405476927757263, -0.5979762077331543, 0.655062735080719, 0.07114637643098831, -0.36834919452667236, 0.05728745833039284...
def output _ model ( self, name, description ) : print'\ n'print " class % s ( models. fmmodel ) : " % name print'" " "'if description [ " description " ] : for row in description ['description']. split ('\ n') : print " ", row print " \ n " print " fileid : ", description ['fileid'] print'" " "'for field in descriptio...
[ -0.3061220049858093, -0.6458367705345154, 0.9982995986938477, -0.7178888916969299, -0.1476178765296936, -0.12866206467151642, -0.21079984307289124, -0.2186633199453354, -0.9345819354057312, 0.18800295889377594, -0.09251952916383743, 0.2500736117362976, 0.4592323899269104, 0.895404875278472...
def getavggstat ( self, clipat1 = false ) : return _ snap. tgstatvec _ getavggstat ( self, clipat1 )
[ -1.21916663646698, 0.5918556451797485, 0.2671663463115692, -0.25148093700408936, -0.1291654407978058, 0.8220214247703552, 0.5264553427696228, -1.220980167388916, -1.2378826141357422, 0.6370190382003784, -0.4396706521511078, 0.8170827031135559, 0.4587559103965759, 0.9964631199836731, -0.1...
def itksubtractconstantfromimagefilterid2did2 _ superclass _ cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilterid2did2 _ superclass _ cast ( * args )
[ 0.5661188364028931, -0.7363395094871521, 0.38450556993484497, -0.8218042850494385, -1.2911975383758545, 0.19830404222011566, -0.1930166631937027, 0.439777672290802, -0.5427566170692444, -0.438007652759552, -1.2155424356460571, 1.027564287185669, 0.5843592286109924, -0.09087428450584412, ...
def guess _ attributes ( self, file ) : return guessit. guess _ video _ info ( file, info = ['filename'] )
[ -0.9493329524993896, -1.0295486450195312, 0.3715367019176483, 0.9478817582130432, -0.1032780259847641, -0.17246468365192413, 0.3450634479522705, 0.38910356163978577, -0.7146480083465576, -0.007772889919579029, -0.8169685006141663, 0.22434669733047485, -0.13430504500865936, 0.84009706974029...
def reserve ( self, * args ) : return _ snap. pngraphmp _ reserve ( self, * args )
[ -0.2004040777683258, 0.45252376794815063, 0.23450438678264618, -1.0278253555297852, 1.780213475227356, -0.194274440407753, 0.58243727684021, -1.2877357006072998, -0.8590606451034546, -1.0035417079925537, -0.5921085476875305, -0.5701816082000732, -1.5611021518707275, -0.37567323446273804, ...
def pyplot _ plot ( acc _ raw, acc _ smoothed, gyro _ raw, gyro _ smoothed ) : fig, ( ax1, ax2 ) = plt. subplots ( nrows = 2, ncols = 1, sharex = true ) fig. tight _ layout ( pad = 3. 0 ) axes = ('x ','y ','z') colours = ('r ','g ','b') for i in range ( 3 ) : ax1. plot ( acc _ raw [ i ], label ='acc'+ axes [ i ], lines...
[ 1.4083608388900757, 0.759027898311615, 0.7949391603469849, -0.7134449481964111, -0.38716554641723633, 0.6952069997787476, 0.9536441564559937, -0.3182978928089142, -0.45496487617492676, -0.37316325306892395, 0.4477936029434204, 1.359121561050415, 0.67183917760849, -0.2827719449996948, 1.2...
def new ( * args ) : return _ snap. tmemout _ new ( * args )
[ 0.15574607253074646, -0.800563395023346, 0.18119807541370392, -0.7477982640266418, -0.2592339813709259, -0.16354720294475555, 0.8257697820663452, 0.6291603446006775, -1.5093374252319336, -0.2594219744205475, -0.27195844054222107, -1.3304251432418823, 0.24801594018936157, 0.8273094296455383...
def write ( self ) : if self. overwrite or not self. filepath. exists ( ) : self. filepath. write _ text ( self. text ) else : message = " { } already exists. do you wish to overwrite this file? " \ " [ y / n ] : \ n " overwrite = yes _ no _ query ( message. format ( self. filepath. as _ posix ( ) ) ) if overwrite : se...
[ -0.7487802505493164, -0.3104906976222992, 0.4127804636955261, -0.08192073553800583, 1.190902829170227, 0.4184790253639221, 0.47584623098373413, -0.19706161320209503, -0.5053595900535583, 0.0633191391825676, 0.41389650106430054, -0.31646594405174255, -0.6703810095787048, 0.3566209375858307,...
def _ int64 _ feature ( value ) : return tf. train. feature ( int64 _ list = tf. train. int64list ( value = np. atleast _ 1d ( value ) ) )
[ -0.5588597059249878, -0.25100064277648926, 0.1822749227285385, 0.2703935205936432, -0.3756644129753113, -0.5855714678764343, 0.4576326608657837, -0.19144512712955475, 0.10556650906801224, -0.22978831827640533, -0.7305972576141357, 0.23049208521842957, -0.3784245550632477, -0.50857841968536...
def decide _ rps ( player1, player2 ) : # check if the correct type is passed ( string ) if type ( player1 ) is str and type ( player2 ) is str : # set all input to uppercase and ensure the correct values are passed ( rock, paper, or scissors ) for p1 + 2 if player1. upper ( ) = = " rock " or player1. upper ( ) = = " p...
[ -0.5433039665222168, -0.13976266980171204, 1.0404753684997559, -0.34555160999298096, -0.6040192246437073, 0.32171306014060974, -0.2256978452205658, -0.708890974521637, -0.7898874878883362, 1.2167619466781616, 0.44160646200180054, 0.0631115660071373, -1.1112277507781982, -0.1253562569618225...
def unpacktoexpression ( self ) : symbolsboundinletstatement, nativeexpression = self. nativestatementterm _. extractexpressionandboundvariables ( ) expression = expression. expression ( nativeexpression, self. codedefpoint _ ) return symbolsboundinletstatement, expression
[ 0.1606462001800537, -0.9523549675941467, 0.5226417779922485, -0.5484462380409241, -0.5516961216926575, -0.6270478963851929, 0.2628660500049591, 0.6040055155754089, 0.4880152642726898, 0.009222639724612236, -0.7943353652954102, 0.7617744207382202, -0.25636282563209534, 0.23906829953193665, ...
def reserve ( self, * args ) : return _ snap. tnegraph _ reserve ( self, * args )
[ -0.36025673151016235, 1.467212438583374, -0.04407460242509842, -0.608924150466919, 0.8070825338363647, -0.35879039764404297, 0.6034551858901978, -0.5992218255996704, -0.6590907573699951, 0.13829700648784637, -0.8359976410865784, -1.566720962524414, -0.9662387371063232, -0.5610385537147522,...
def _ _ eq _ _ ( self, * args ) : return _ snap. tstrhi _ _ _ eq _ _ ( self, * args )
[ -0.3548509180545807, 0.11928381025791168, 0.16325600445270538, -0.4810161590576172, 0.8453633785247803, 0.3830876052379608, 0.7802788615226746, 0.5047265291213989, -1.2925125360488892, 0.35573697090148926, -1.2681385278701782, -1.3348066806793213, 0.5192387104034424, 0.3873603045940399, ...
def _ _ init _ _ ( self, models ) : if not isinstance ( models, list ) : self. models = [ models ] else : self. models = models self. n _ models = len ( self. models )
[ -1.4920392036437988, 0.4188757836818695, 0.22456872463226318, 1.5176321268081665, 0.58438640832901, 0.40873268246650696, -0.392072856426239, -0.051811281591653824, 0.8141717314720154, -0.12950550019741058, -0.8764999508857727, -0.9765060544013977, -0.8469235301017761, 1.1942404508590698, ...
def exponential _ decay ( ) : name = " exponential _ decay " gamma = 0. 96 step _ size = 100000
[ 1.1205558776855469, -0.33759990334510803, 0.21260453760623932, 0.453715980052948, 0.8072901368141174, -0.3225671350955963, 0.1676153689622879, 1.1907334327697754, -0.28955933451652527, -0.48908624053001404, -0.623928427696228, -0.10035471618175507, 0.18921218812465668, 1.1785082817077637, ...
def tdirnet _ load ( * args ) : return _ snap. tdirnet _ load ( * args )
[ -1.3319746255874634, 1.0909907817840576, 0.3311449885368347, -1.0083794593811035, -0.2326856553554535, 0.5186215043067932, 0.3539568781852722, -1.2324808835983276, -0.43052685260772705, 0.07662416249513626, -0.8585470914840698, -1.522316575050354, -0.09074342995882034, -0.4093077778816223,...
def addintvattrdatn ( self, * args ) : return _ snap. tneanet _ addintvattrdatn ( self, * args )
[ -1.2514290809631348, 0.10844175517559052, 0.446380615234375, -0.6774538159370422, 0.6145521402359009, 0.27641597390174866, 0.7428868412971497, -0.14975112676620483, -0.2536424696445465, -0.5851684212684631, -0.09086805582046509, -1.107837438583374, 0.3964826166629791, -0.1251324713230133, ...
def begeaflti ( self, * args ) : return _ snap. tcrossnet _ begeaflti ( self, * args )
[ 0.9966487884521484, 0.6386157274246216, 0.1786334216594696, 0.26335397362709045, 1.2363241910934448, 0.2001376897096634, 0.9605926871299744, 0.248374342918396, -0.8467870950698853, 0.3646833896636963, -0.12998494505882263, -0.5703027248382568, -0.30205073952674866, 0.9689246416091919, -0...
def read _ and _ bucket _ data ( data _ file, eval _ data = false ) : try : # print ('' ) # data = pickle. load ( open ( data _ file ) ) with open ( data _ file,'rb') as f : data = pickle. load ( f ) bucketed _ data = bucket _ data ( data, eval _ data = eval _ data ) return bucketed _ data except ioerror as e : print (...
[ 0.4504771828651428, -0.40451645851135254, 0.6580745577812195, 0.0549408495426178, -0.2671400308609009, 1.2586740255355835, 0.06954366713762283, 0.4217066168785095, -0.9564889669418335, -0.03523910790681839, 0.22760097682476044, 0.4451863765716553, 0.2355126142501831, -0.1694810390472412, ...
def s _ hv ( self ) : return self. single _ triggers _ hv
[ 0.6131422519683838, 0.48211511969566345, 0.3247166574001312, 1.3736718893051147, 0.20769326388835907, 0.4053462743759155, 0.2374308854341507, 0.6226108074188232, 0.4745558500289917, -0.4801851511001587, -0.7050381898880005, 0.34195148944854736, -0.06513378024101257, -0.3764801323413849, ...
def _ add _ file _ creates ( self, node, files ) : for file in files : if file : nextid = len ( self. nodemetadata ) fcnodename = " file create { 0 } ". format ( nextid ) self. nodemetadata [ fcnodename ] = dict ( ) self. nodemetadata [ fcnodename ] ['pid'] = node self. nodemetadata [ fcnodename ] ['file'] = file self....
[ -0.2789871394634247, 0.43321630358695984, 0.5416650772094727, -0.5281556844711304, 1.325522541999817, 0.26617124676704407, -0.5774626135826111, 0.39260101318359375, -0.7061818838119507, -0.0017309195827692747, 0.41508927941322327, -0.5556970834732056, 0.27302348613739014, 0.328600168228149...
def getfltval ( self, * args ) : return _ snap. ttable _ getfltval ( self, * args )
[ -0.5541876554489136, 1.015688419342041, 0.45311272144317627, 0.5292716026306152, 0.4723750054836273, 0.09381740540266037, 0.027149386703968048, -0.9129459261894226, -1.0392441749572754, -0.9274767637252808, -0.373573362827301, 0.05973387509584427, 0.1360304057598114, 1.4252150058746338, ...
def extract _ js _ from _ html ( input _ ) : if isinstance ( input _, bs4. beautifulsoup ) : bs = input _ elif isinstance ( input _, basestring ) : bs = parse _ html ( input _ ) else : raise valueerror ( " unknown input _ - expected str or bs4. beautifulsoup " " got'% s'" % ( type ( input _ ) ) ) return [ ( copy. deepc...
[ -0.7214990258216858, -0.046001166105270386, 0.5766303539276123, 0.2633873224258423, -1.000299096107483, -1.239230751991272, 0.109443299472332, -0.3647412657737732, 0.5173303484916687, 0.4500901401042938, -1.1136791706085205, 0.5048357844352722, 0.41607245802879333, 1.0423338413238525, 1....
def getadddat ( self, * args ) : return _ snap. tcncomv _ getadddat ( self, * args )
[ -0.03095974400639534, 0.5545582175254822, 0.39182448387145996, -0.7967050671577454, 1.2945746183395386, 0.7054904699325562, 0.3764730989933014, -0.960291862487793, -0.18680936098098755, -1.5498733520507812, 0.17558366060256958, -0.31075483560562134, -0.6034135818481445, 1.2646747827529907,...
def test _ client ( ) : return create _ app ( ). test _ client ( )
[ 1.1816219091415405, -0.5109544396400452, 0.024805426597595215, 0.2197287678718567, 0.49231648445129395, 0.48501917719841003, 0.7939695119857788, -0.9737388491630554, -0.37805476784706116, -0.7643347382545471, 0.29156067967414856, 0.5544337630271912, -0.9784548878669739, -1.2015318870544434...
def rebalance ( self, day, taxes, max _ margin _ to _ assets _ ratio, sell _ best _ for _ taxes _ first ) : if self. margin _ to _ assets ( ) > ( 1 + epsilon ) * max _ margin _ to _ assets _ ratio : amount _ of _ cash _ needed = ( self. margin - self. assets * max _ margin _ to _ assets _ ratio ) / ( 1 - max _ margin _...
[ -0.51406329870224, -0.04051933065056801, 0.8172320127487183, -0.9747703671455383, 0.49396005272865295, 0.0482226200401783, 0.13901419937610626, -0.4277322292327881, 0.22374649345874786, -0.49296697974205017, 1.6326490640640259, -0.11932455003261566, -0.2943321466445923, 0.10565637797117233...
def call ( self, inputs, initial _ state ) : # todo : create self attention output, h, c = self. lstm _ s _ 1 ( inputs, initial _ state = initial _ state ) # print ('\ n \ nlstm _ s _ 1 output = ', output ) initial _ state = ( h, c ) output, h, c = self. lstm _ s _ 2 ( output, initial _ state = initial _ state ) # prin...
[ 0.062439192086458206, -0.7426759004592896, 0.6801695227622986, 0.018397612497210503, 0.006769226398319006, 0.1462901532649994, 0.3659708797931671, 0.04052198305726051, -0.4097696840763092, -0.17433671653270721, -0.5508958101272583, 0.09617017209529877, 0.005403085611760616, 0.5244187712669...
def downloadfile ( url ) : # recuperation du nom du fichier a travers un slicing temporynameoffile = url [ 40 : ] headers = {'user - agent':'mozilla / 5. 0 ( x11 ; linux x86 _ 64 )'' applewebkit / 537. 11 ( khtml, like gecko )'' chrome / 23. 0. 1271. 64 safari / 537. 11 ','accept':'text / html, application / xhtml + xm...
[ 0.40765923261642456, -0.5562366247177124, 0.8907077312469482, -0.1454988420009613, -0.017681201919913292, -0.05714472755789757, 0.2756144404411316, 0.3440871238708496, -0.5416120886802673, 0.49484559893608093, 0.19536323845386505, -0.7288993000984192, -0.5520040988922119, -0.22767120599746...
def gentree _ pungraph ( * args ) : return _ snap. gentree _ pungraph ( * args )
[ -1.4696862697601318, 1.3861242532730103, 0.5873585939407349, 0.6148114800453186, -0.09296423941850662, 0.09232597798109055, 0.6505135893821716, 0.9975637197494507, -0.3899421691894531, 0.12660065293312073, -1.208276629447937, -0.6677613854408264, -1.1650826930999756, 0.6841098070144653, ...
def create _ layer ( prev, n, activation ) : w = tf. contrib. layers. variance _ scaling _ initializer ( mode = " fan _ avg " ) model = tf. layers. dense ( units = n, kernel _ initializer = w, activation = activation, name = " layer " ) return model ( prev )
[ 0.08210112154483795, 0.243193119764328, 0.371733158826828, 0.39413753151893616, 0.5289151668548584, 0.376508891582489, 0.26255324482917786, -0.5688627362251282, -0.5341043472290039, 0.35192036628723145, -0.26642879843711853, -0.4530933201313019, 0.1225801408290863, 0.02738603763282299, -...
def train _ truecase ( input, save _ to, lang, threads ) : log. info ( f'training truecase model, save _ to = { save _ to }') pipeline. train _ truecase ( input, save _ to = save _ to, threads = threads ) log. info ('done!')
[ -0.5437814593315125, 0.6274063587188721, 0.1886555701494217, 0.15830641984939575, 1.0177421569824219, -0.2785106301307678, 0.1534404158592224, 0.6230978965759277, -0.8163259029388428, 1.1279700994491577, -1.160937786102295, -0.3788827061653137, -0.2419079840183258, -0.4265962541103363, -...
def indexwordbystrongs ( words _ rc ) : logger = logging. getlogger ( logger _ name ) index = { } for category in words _ rc. chapters ( ) : for word in words _ rc. chunks ( category ) : if not word. endswith ( '. md') : # tricky : exclude erroneous files such as. ds _ store continue word = os. path. splitext ( word ) ...
[ 0.9313885569572449, -0.43562591075897217, 0.4731043577194214, -0.44761577248573303, -0.6788036227226257, -0.11355993151664734, 0.5894041061401367, 0.05263091251254082, -0.5182464122772217, 0.3892258405685425, -0.2634173631668091, -0.495540589094162, -0.32094311714172363, 0.2911051511764526...
def startup ( self ) : # turn on the chiller self. _ write _ ('chen = 1') # enables the chiller several minutes before turning on laser if self. test : time. sleep ( 1 ) else : time. sleep ( 180 ) # 180s = 3 minutes before turning on laser ( manual 4 - 22 ) self. _ write _ ( '? k') # check keyswitch is on if self. test...
[ 0.20815341174602509, -0.9720115065574646, 0.7208943367004395, 0.9708037376403809, -0.16037750244140625, 0.5868304967880249, -0.05815187469124794, 0.5587865710258484, -0.5053086280822754, -0.035246264189481735, -0.3465329110622406, 0.5390552878379822, -0.8365183472633362, 0.428711473941803,...
def _ _ init _ _ ( self, * args ) : _ snap. tinttrinthi _ swiginit ( self, _ snap. new _ tinttrinthi ( * args ) )
[ 0.05999527871608734, -0.2867182493209839, -0.09519641846418381, -0.7129685878753662, -0.05626280605792999, -0.5817811489105225, 0.44027507305145264, -0.43182265758514404, -1.1793090105056763, -0.06159927695989609, -1.0194982290267944, 0.469990611076355, -0.7160605788230896, 0.1421896815299...
def update _ adagrad ( self, grad, lr, reg, norm _ thresh = none ) : # print'word grad = { } '. format ( grad ) # print numpy. sqrt ( ( self. wsqsum * * 2 ). sum ( ) ) for ( word, g ) in grad. iteritems ( ) : widx = self. getwidx ( word ) if widx is not none : self. wsqsum [ :, widx ] + = g * * 2 g / = numpy. sqrt ( se...
[ 0.16676467657089233, -0.497038334608078, 0.5478234887123108, -1.2400506734848022, -0.8133342266082764, 0.5072100758552551, 0.4155241847038269, -0.0015872061485424638, 0.07945562154054642, 0.9954156875610352, 0.5480169653892517, 1.024213433265686, -0.3065057098865509, 0.6198767423629761, ...
def vendor _ id ( self ) : return self. _ vendor _ id
[ 1.0059080123901367, -0.16730426251888275, 0.1572859138250351, 0.8585690855979919, 0.2632025480270386, 1.1177598237991333, 1.1375831365585327, 0.9202908873558044, 0.9350196719169617, -0.40333837270736694, -0.08611930161714554, 1.0339559316635132, 0.09027654677629471, 0.7954283356666565, 0...
def getrndni ( self, * args ) : return _ snap. tngraphmp _ getrndni ( self, * args )
[ 0.1315583735704422, 0.20719510316848755, 0.3285391926765442, 0.8135114312171936, 0.7967010736465454, -0.4758475422859192, 0.13948693871498108, -1.0119317770004272, -1.7469804286956787, -0.9775691032409668, -0.920784592628479, -0.36953073740005493, -1.3947465419769287, 0.28003743290901184, ...
def change _ timezone ( timezone ) : command = constants. settimezone exec _ console _ command ( command. format ( timezone ) ) return constants. timezonechanged. format ( timezone )
[ -1.3429973125457764, -0.563716471195221, 0.31936776638031006, -0.0726499855518341, -0.19458697736263275, -0.650793731212616, 0.43931421637535095, 0.05709819495677948, 0.8240359425544739, 0.8629132509231567, -0.5970463752746582, 0.41835036873817444, -0.5538630485534668, 0.020207440480589867...
def name ( self ) : return hub. smartplug _ status [ self. _ id ]. location
[ -0.9109349846839905, -1.4562575817108154, 0.5388931632041931, 0.19840417802333832, -0.41698265075683594, 0.004708691034466028, -0.3065488636493683, 0.7028490304946899, 1.2857170104980469, 0.17437158524990082, -0.20002178847789764, -0.15862946212291718, 0.11849275231361389, -0.6317017078399...
def getrandomactivitiesbygender ( self, gender, samplesize = 10 ) : summedactivities = { } athletes = os. listdir ( self. path ) for athlete in athletes : if " female " in athlete : if gender. lower ( ) = = " female " : activities = self. path +'/'+ athlete activities _ list = os. listdir ( activities ) try : activitie...
[ -0.898713231086731, 0.6491793394088745, 0.9261850118637085, 0.2524048388004303, -0.5670742392539978, -0.11280573904514313, 1.436158537864685, -0.3516397476196289, 0.3142530620098114, -0.37689080834388733, 0.013498078100383282, 0.3648131787776947, -0.28465569019317627, -0.4984215795993805, ...
def imagetransformer _ base _ 10l _ 8h _ big _ uncond _ dr03 _ dan _ 64 _ 2d ( ) : hparams = image _ transformer2d _ base ( ) hparams. unconditional = true hparams. hidden _ size = 512 hparams. batch _ size = 1 hparams. img _ len = 64 hparams. num _ heads = 8 hparams. filter _ size = 2048 hparams. batch _ size = 1 hpar...
[ -0.5922355651855469, -0.08597307652235031, 0.8400413393974304, -0.7741202116012573, -0.21376678347587585, -0.27577340602874756, -0.3207041323184967, 0.5058569312095642, -0.21086297929286957, 0.04012557864189148, -0.37846046686172485, 0.40198537707328796, -0.025585152208805084, 0.5263572931...
def update _ reqs ( ) : with virtualenv ( ) : env. run ('pip install - r % s'% env. requirements )
[ -1.0026476383209229, -1.0963163375854492, 0.633204996585846, 0.6263326406478882, 0.5052212476730347, 0.8295698165893555, -0.4846504330635071, 0.3896665871143341, 0.028614431619644165, 1.0318642854690552, -0.27926522493362427, 0.19562982022762299, -0.33566752076148987, 0.8870020508766174, ...
def shortest _ path ( graph, a _ node, b _ node ) : front = deque ( ) front. append ( a _ node ) came _ from = { a _ node : [ a _ node ] } while front : cp = front. popleft ( ) for np in graph. neighbors ( cp ) : if np not in came _ from : front. append ( np ) came _ from [ np ] = [ came _ from [ cp ], np ] " " " flatt...
[ 1.0332701206207275, -0.23122449219226837, 0.33733686804771423, -0.45977386832237244, 0.15522171556949615, -0.24131976068019867, -0.0222062636166811, 0.7885780334472656, -0.023465024307370186, 0.5834997892379761, 0.3824155330657959, 1.1854393482208252, 0.023574158549308777, -0.0171273350715...
def handlewinning ( self ) : if self. hero _ top. is _ alive and self. hero _ bottom. is _ alive : return message = none if not self. hero _ top. is _ alive : self. window. blit ( self. won _ player, ( 0, 0 ) ) else : self. window. blit ( self. won _ ia, ( 0, 0 ) ) pygame. mixer. channel ( 0 ). play ( pygame. mixer. so...
[ -0.03138696774840355, -0.2762850821018219, 0.5956081748008728, 0.7426515221595764, 0.9473165273666382, -0.02394150383770466, 0.8544092774391174, -0.4313220679759979, 0.27180030941963196, -0.044169772416353226, 0.2904921770095825, 0.22490409016609192, -0.2124406099319458, 0.7644161581993103...
def close ( self, reason = none ) : raise notimplementederror
[ 0.22052444517612457, -0.36900436878204346, 0.4155659079551697, -0.03401736542582512, -0.3898492157459259, 1.4232232570648193, -0.027616385370492935, -0.24615181982517242, 0.4919687807559967, -1.0821895599365234, 0.8926019668579102, 0.833794116973877, -0.3528155982494354, 0.2925695180892944...
def submit _ workflow ( workflow ) : if app. config ['mode'] not in ('scanner') : abort ( 404 ) server = app. config ['postproc _ server'] if not server : logger. error ( " remote server was not configured, please set the " "'postprocessing _ server'value in your configuration! " ) abort ( 500 ) logger. debug ( " creat...
[ -0.862824559211731, -0.4921787977218628, 0.839682936668396, -0.04188480228185654, -0.16025350987911224, 0.23995168507099152, 0.02841421775519848, -0.6664541363716125, -0.3042672276496887, -0.04530241712927818, -1.3969500064849854, 0.12392020970582962, -1.2908827066421509, 1.308068871498108...
def addfltattre ( self, * args ) : return _ snap. pneanetmp _ addfltattre ( self, * args )
[ -0.8129370808601379, 0.6644464135169983, 0.39640605449676514, -0.17453835904598236, 1.1305692195892334, -0.1473972201347351, -0.32676705718040466, -0.6657674908638, -0.8511561751365662, -1.3305234909057617, -0.2943004369735718, -1.1045643091201782, -1.2912791967391968, 1.103108525276184, ...
def mt _ caption _ collate ( data ) : # separate source and target sequences src _ sent, tgt _ sent, att _ feats, img _ masks, box _ feats, img _ ids = list ( zip ( * data ) ) # t2i def generate _ inputs ( ) : # sent = np. array ( sent ) x _ img = torch. stack ( att _ feats, dim = 0 ) img _ loc = torch. stack ( box _ f...
[ -0.6816578507423401, -0.8137869834899902, 1.0081504583358765, -0.22048431634902954, -0.5469771027565002, -0.4160947799682617, 0.36443379521369934, -0.38018935918807983, -0.1606147289276123, 0.6926977038383484, -0.271848201751709, -0.5206215977668762, 0.6549597382545471, 0.4485354721546173,...
def _ is _ valid _ maya _ attr ( path ) : if isinstance ( path, basestring ) and ". " in path : node, attr = path. split ( ". " ) return cmds. attributequery ( attr, node = node, exists = true ) return false
[ -0.6297494173049927, -0.763391375541687, 0.5814464688301086, 0.1877593696117401, -1.5618325471878052, 0.3267157971858978, 0.3599264621734619, 0.1337089240550995, 0.5447706580162048, 0.0443984679877758, 1.1570677757263184, 0.17828698456287384, -0.6508828997612, -0.1728028953075409, -0.920...
def find _ all _ fieldnames ( dictionary _ list ) : fieldnames = [ ] for dictionary in dictionary _ list : for key in dictionary : if key not in fieldnames : fieldnames. append ( key ) return fieldnames
[ -0.19179846346378326, 0.1925305426120758, 0.5992090702056885, -0.24537180364131927, 0.1821964979171753, -0.0015656137838959694, -0.692791223526001, 1.052458643913269, 0.11322667449712753, 0.00512758269906044, -1.4021327495574951, -0.45314279198646545, -0.6705535054206848, 1.402621626853942...
def getnodewcc _ pungraph ( * args ) : return _ snap. getnodewcc _ pungraph ( * args )
[ -1.0137584209442139, 0.8716065287590027, 0.38717836141586304, 0.07907123118638992, -0.08565722405910492, -0.9308038949966431, 0.7778406143188477, -0.46480947732925415, 0.28368431329727173, -0.5659070611000061, -0.3027396500110626, 0.13655024766921997, -0.6803402900695801, 0.663210272789001...
def strattrvalueni ( self, * args ) : return _ snap. pneanetmp _ strattrvalueni ( self, * args )
[ -0.8996621370315552, -0.2755815088748932, 0.3011631965637207, -0.15017946064472198, 0.041968125849962234, 0.591834306716919, -0.1818675547838211, -1.048915982246399, -1.6433148384094238, -0.24992483854293823, -0.5775764584541321, -0.8505934476852417, -0.9448246359825134, 0.2759145200252533...
def test _ add _ exe _ args _ list _ of _ mixed _ lists ( ) : settings = runsettings ( " python " ) with pytest. raises ( typeerror ) as type _ error : settings. add _ exe _ args ( [ [ " 1 ", " 2 ", 3 ], [ " 4 ", " 5 ", 6 ] ] ) assert " executable arguments should be a list of str " in type _ error. value. args
[ -0.2693274915218353, 0.4448484182357788, 0.6926052570343018, 0.8858458399772644, 1.3089853525161743, 0.9015642404556274, -0.4337519109249115, -0.20989148318767548, 0.012703511863946915, 0.7591171860694885, -0.8718929290771484, -0.4913404583930969, -1.0722815990447998, 1.0394184589385986, ...
def gsm _ status ( self ) : return self. create _ structure ( self. _ urls ['gsm'],'symbol')
[ -0.5793177485466003, 0.003665223717689514, 0.053710076957941055, -0.4513116478919983, 0.6616018414497375, -0.12108220160007477, -0.4444936215877533, -0.5980137586593628, -0.19200079143047333, -1.0205261707305908, -0.7948613166809082, 0.5215663909912109, -0.25283414125442505, 0.261753588914...
def test _ atomic _ base64 _ binary _ min _ length _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ min _ length _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - minlength - 1. xsd ", i...
[ 0.2098565697669983, -0.425340473651886, 0.41829633712768555, 1.2577674388885498, -0.10052577406167984, 0.14722149074077606, 0.12033170461654663, -0.2549058496952057, 0.5747166275978088, 0.5199626088142395, -0.15772627294063568, 0.16150255501270294, -0.9027999043464661, 0.17799028754234314,...
def defrag ( self, onlynodelinks = false ) : return _ snap. tneanet _ defrag ( self, onlynodelinks )
[ -1.0856585502624512, 1.0681650638580322, 0.0934070348739624, -0.09194072335958481, 0.5441932678222656, -0.13392050564289093, 0.8686664700508118, 0.4890992343425751, -0.046287208795547485, -0.7757314443588257, 0.8782985806465149, -1.275188684463501, 0.3205171525478363, 1.8319575786590576, ...
def savepajek _ pneanet ( * args ) : return _ snap. savepajek _ pneanet ( * args )
[ -1.4084670543670654, 0.12435796111822128, 0.4233666956424713, 0.0505419485270977, 0.1911601573228836, 0.7237960696220398, -0.24340902268886566, -0.6425004601478577, -0.775651752948761, -0.32397833466529846, -1.4601629972457886, -1.8308556079864502, -0.6505705118179321, 0.878699004650116, ...
def tpairhashimpl1 _ gethashcd ( * args ) : return _ snap. tpairhashimpl1 _ gethashcd ( * args )
[ 0.548211395740509, 0.09364080429077148, 0.7541811466217041, 0.6958698034286499, -0.3158975839614868, 1.4973467588424683, 0.3548879027366638, 0.5538918375968933, -0.6316781640052795, -0.05854607746005058, 0.6718214154243469, -0.45133495330810547, -0.4476211667060852, 0.394339919090271, 1....
def run ( self ) : analyzer. run ( self ) # # only do'meme'types right now if self. data _ type = ='meme': try : # # just get some json, using the user input as the seach query generators = requests. get ('http : / / version1. api. memegenerator. net / generators _ search? q = % s & pageindex = 0 & pagesize = 5'% self....
[ -0.9029415845870972, 0.3478509485721588, 0.4789077937602997, -0.3310169279575348, 0.004598032217472792, 0.1745373010635376, 0.15867066383361816, 0.014196506701409817, -0.5881631970405579, -0.7490576505661011, -0.03396257758140564, 0.04661410674452782, -0.8786302804946899, 0.888387978076934...
def mydate ( ) : from datetime import datetime return ( datetime. now ( ). strftime ( " % y - % m - % d % h : % m : % s " ) )
[ 0.06709720194339752, -1.2674310207366943, 0.8375585079193115, -0.4278216063976288, -0.40888485312461853, 0.5284034013748169, -1.425769567489624, 0.5355923771858215, -0.47029030323028564, 0.1598009169101715, -0.6570217609405518, 0.43574827909469604, 0.2293773889541626, -0.44332316517829895,...
def player _ should _ hit ( self, state ) : return self. policy [ state ]
[ -0.9834997057914734, 0.5453121662139893, 0.43315672874450684, -0.3932351768016815, 0.19736331701278687, 1.282168984413147, -0.4993067681789398, -0.41681694984436035, 0.5531676411628723, 0.12531481683254242, 0.19402141869068146, 0.2219438999891281, -0.4827735722064972, -1.4199538230895996, ...
def get _ sec _ axes ( filename ) : hdulist = fits. open ( filename ) t _ int = hdulist [ 0 ]. header [ " t _ int " ] # gets time interval ( delta t ) from header nchunks = hdulist [ 0 ]. header [ " nchunks " ] # number of time subintegrations bw = hdulist [ 0 ]. header [ " bw " ] # gets bandwidth from header nchans = ...
[ 1.1241238117218018, -0.783359706401825, 0.7806838154792786, -0.6645816564559937, 0.09566114097833633, -0.35581550002098083, 0.273830771446228, 0.5803377628326416, -0.3162698745727539, 0.2102917581796646, -1.029994010925293, 0.5897319316864014, -0.3360790014266968, 0.9099300503730774, 1.4...
def addgraph ( self, name ) : response = self. session. post ( self. url + " / " + name, { } ) raise _ for _ status ( response ) return response. json ( )
[ -1.3481438159942627, 0.5089775323867798, 0.7158575654029846, 0.03167593479156494, -0.7634468078613281, -0.49114128947257996, -1.1049141883850098, -1.107966423034668, 0.6542191505432129, 0.9739042520523071, -1.4642387628555298, 0.23755739629268646, -1.410193681716919, -0.741238534450531, ...
def test _ noticeversion ( self ) : self. assertequal ( self. root. tag,'notice') self. assertequal ( self. root. get ('version'),'2. 0')
[ 0.728449821472168, -1.0626975297927856, 0.23509089648723602, 0.4964057505130768, 1.3863645792007446, 0.80885249376297, -0.5381009578704834, -0.03013739548623562, -0.2575337588787079, -0.05905557796359062, -0.7914021015167236, 0.3046531081199646, 0.9894670844078064, 1.8326616287231445, -0...
def test _ specific _ returns _ self ( self ) : self. assertequal ( self. field, self. field. specific )
[ -0.025286946445703506, -0.4307402968406677, 0.15321144461631775, -0.10762001574039459, 0.9541006088256836, 0.851985514163971, 0.4274241626262665, 0.24256300926208496, 0.32916754484176636, -1.2259491682052612, -0.8293048143386841, 0.7186479568481445, 0.005258683580905199, -0.657028555870056...
def searchforw ( self, * args ) : return _ snap. schema _ searchforw ( self, * args )
[ -0.8036925196647644, 1.3540771007537842, 0.7184011340141296, 0.7395099401473999, 0.9322313666343689, -0.3642151951789856, 0.5969886183738708, -0.307372510433197, -0.8920891880989075, -1.0972347259521484, 0.14204607903957367, -0.3954959511756897, -0.6539112329483032, 0.6760966777801514, -...
def read _ protein ( self, hotspot _ result = none ) : if not hotspot _ result : hr = self. get _ hotspot ( ) else : hr = hotspot _ result return hr. protein
[ 0.0617331862449646, -0.6625043153762817, 0.3962114155292511, 0.4740309417247772, 0.3510644733905792, 0.12332668155431747, -0.7948186993598938, 0.08036823570728302, 0.2920081913471222, -0.4786922037601471, 0.02036302350461483, 0.11493619531393051, -0.9315401911735535, -0.2683533728122711, ...
def ttable _ getfltnodepropertytable ( * args ) : return _ snap. ttable _ getfltnodepropertytable ( * args )
[ -0.13117605447769165, 0.059344582259655, 0.48023882508277893, -0.005110043101012707, 0.6101261973381042, -0.5597453117370605, 0.07810146361589432, -0.4890647530555725, -1.7543623447418213, -0.45358818769454956, 0.26972469687461853, 0.2518254816532135, 0.10229573398828506, 0.181225270032882...
def delete ( self, key ) : try : s = self. get ( key, last = false, consistent _ read = true ) if s is none : return 0 count = 0 for item in s : self. sdb. delete _ attributes ( item. name ) count = count + 1 return count except exception, e : raise sdb _ access ( e )
[ -0.8730595111846924, 0.8534353971481323, 0.8821395635604858, 0.5839698910713196, -0.4470923840999603, -0.7508223056793213, 0.5189957022666931, 0.8067013621330261, -0.24955852329730988, 0.5512579083442688, 0.18004466593265533, -0.94668048620224, -0.7928691506385803, 0.2681553363800049, 0....
def hull _ area ( xy ) : hull = convexhull ( xy ) return hull. area
[ 0.12716327607631683, 0.06382013857364655, 0.25440695881843567, -0.5264155864715576, -0.44255903363227844, -0.6707903146743774, -0.18183062970638275, -0.822488009929657, 0.9938418865203857, 0.45997607707977295, 0.2828487157821655, 1.1489906311035156, 0.17209933698177338, 0.03576657921075821...
def _ _ init _ _ ( self, outline _ node : element ) : if outil. is _ valid _ tag ( outline _ node ) : outil. get _ valid _ attribute ( outline _ node,'text') self. _ node = outline _ node else : raise ( malformedoutline ( f'invalid element < { outline _ node. tag } > in outline') )
[ 0.4427422881126404, 0.04589301720261574, 0.4088932275772095, 0.02242789976298809, -1.0356290340423584, -0.5537007451057434, -0.26247382164001465, 1.3079771995544434, 0.30943071842193604, -0.1884939968585968, -0.3062570095062256, -0.10813452303409576, 0.8185321092605591, -0.0887690931558609...
def at ( self, * args ) : return _ snap. tgstatvec _ at ( self, * args )
[ -1.4926397800445557, -0.17135414481163025, 0.3880434036254883, -0.7854019999504089, 0.7230038046836853, 0.7524453997612, 1.7969627380371094, -1.060071587562561, -1.443743109703064, -0.1980404555797577, 0.011457056738436222, 0.3122406005859375, 0.5679754614830017, 0.1943356692790985, -1.2...
def addnode ( self, * args ) : return _ snap. pngraphmp _ addnode ( self, * args )
[ -0.7034000754356384, 0.8648943901062012, 0.6308723092079163, 0.10736403614282608, 1.261661171913147, 0.38110771775245667, 0.3459504544734955, -0.6239575743675232, -0.2614363431930542, -0.9231958985328674, -0.09943051636219025, -0.3241218328475952, -1.4872719049453735, 0.4361228048801422, ...
def update ( self ) : hub. update _ smartplugs ( )
[ -1.0735762119293213, -1.1500909328460693, 0.28342896699905396, 1.1236473321914673, 0.5804367661476135, -0.11043887585401535, -0.15366578102111816, 1.0230193138122559, 0.633212149143219, 0.14260685443878174, -0.18074023723602295, 0.48688259720802307, -0.9285885095596313, -0.0683633610606193...
def gencircle _ pungraph ( * args ) : return _ snap. gencircle _ pungraph ( * args )
[ -1.6280170679092407, 0.6711324453353882, 0.4014667868614197, -0.027350077405571938, -0.47240617871284485, -0.01969572901725769, 1.242728352546692, 0.6478944420814514, 0.07323324680328369, 0.7845119833946228, -1.3881431818008423, -0.9287994503974915, -0.861336886882782, 0.34559908509254456,...
def _ _ eq _ _ ( self, * args ) : return _ snap. tneanetainti _ _ _ eq _ _ ( self, * args )
[ -0.7570652961730957, -0.1811796873807907, -0.20020893216133118, -0.8019018769264221, 0.9455491900444031, 0.22095933556556702, 0.13984215259552002, -0.9966517090797424, -0.6337306499481201, 0.5257226228713989, -0.5369548797607422, -1.817685604095459, 0.34514665603637695, 0.42473411560058594...
def test _ check _ number _ of _ packs _ in _ marketplace ( xsiam _ client : xsiamapiclient ) : search _ all _ packs _ filter = create _ filter ( size = 1 ) results = xsiam _ client. search _ marketplace ( search _ all _ packs _ filter ) assert results ['total'] > 900
[ 0.4322565197944641, 0.9809605479240417, 0.5186822414398193, 0.37518635392189026, 0.7180335521697998, -0.6542545557022095, -0.4437575042247772, -0.17086948454380035, 1.0254112482070923, -0.3801758885383606, -1.0827269554138184, 0.28959205746650696, -0.24704623222351074, -0.16025382280349731...
def validate _ ttl ( ttl ) : if ttl < 0 or ttl > 2147483647 : # see rfc 2181 raise validationerror ( " ttls must be within the 0 to " " 2147483647 range. " )
[ -0.03760422021150589, -0.10620354115962982, 0.3612305521965027, -0.9068031311035156, -0.3983970284461975, 0.775253415107727, -0.18965183198451996, -0.7997283935546875, -0.09911465644836426, 0.15506185591220856, -0.34749433398246765, -0.8401978611946106, 0.3669567406177521, 0.10444821417331...
def build _ master _ info ( master _ by _ period, list _ field _ keys ) : list _ ids = [ ] for period _ dict in master _ by _ period : list _ ids + = period _ dict. keys ( ) list _ ids = list ( set ( list _ ids ) ) master _ by _ id = { } for id in list _ ids : dict _ id = dict ( zip ( list _ field _ keys, [ [ ] for i i...
[ -0.7219077944755554, -0.4022639989852905, 0.5487968921661377, -0.26220303773880005, -0.5174171328544617, -0.30315840244293213, -0.32470929622650146, 0.9754974246025085, -0.18959370255470276, 0.28584611415863037, -1.2881031036376953, 0.019413810223340988, 0.20636990666389465, -0.01724649220...
def cstr ( self, * args ) : return _ snap. tstr _ cstr ( self, * args )
[ -0.3767431676387787, 0.19535283744335175, 0.1380699723958969, 0.31083163619041443, 0.2620199918746948, 1.1441200971603394, 0.6142299771308899, 0.3321552872657776, -1.2152138948440552, -0.09755484014749527, -0.14710725843906403, -1.4445223808288574, -0.39465904235839844, 0.4177282154560089,...
def _ _ add _ _ ( self, * args ) : return _ snap. schema _ _ _ add _ _ ( self, * args )
[ -0.9725974202156067, 0.20197224617004395, 0.42327868938446045, 0.2817254662513733, -0.027449142187833786, -0.016378987580537796, -0.4887022078037262, 0.18664243817329407, 0.09929397702217102, -0.46845853328704834, -0.4925960898399353, -0.609442412853241, 0.2402345836162567, 0.1316282749176...
def transfer _ file ( ) : if os. path. exists ( " transfer. txt " ) : return else : with open ( " transfer. txt ", " w " ) as file : return
[ 1.2407121658325195, -0.3087425231933594, 0.7415061593055725, -0.12543483078479767, 0.388133704662323, 1.4191802740097046, 0.24099178612232208, -0.016635263338685036, -0.2845676839351654, -0.20300698280334473, 0.4394918382167816, 0.2708185017108917, 0.33477699756622314, -0.09642255306243896...
def run _ epoch _ pie ( session, model, train _ data, valid _ data, keep _ prob = 1. 0, passes = 1. 0, verbose = false ) : if not train _ data. num _ batches > 0 : raise runtimeerror ( " batch _ size * max _ unrollings is larger " " than the training set size. " ) uq = true start _ time = time. time ( ) train _ mpiw = ...
[ -0.586311399936676, 0.35536521673202515, 0.9880841970443726, 0.22129346430301666, -0.8912351727485657, 0.31242936849594116, 0.44979923963546753, 0.07409404963254929, 0.1070123240351677, 0.12436933070421219, -0.2451101541519165, -0.36838507652282715, 0.2914336025714874, -0.02922908589243889...
def act ( self, obs, action _ space ) : " " " returns - - - - - - - action : int stop ( 0 ) : this action is a pass. up ( 1 ) : move up on the board. down ( 2 ) : move down on the board. left ( 3 ) : move left on the board. right ( 4 ) : move right on the board. bomb ( 5 ) : lay a bomb. " " " if not self. initialized :...
[ -0.7018994092941284, -0.5711587071418762, 0.8285340070724487, -0.09041951596736908, 0.004323070403188467, -0.46198421716690063, 1.4380438327789307, 0.27602484822273254, -0.5595700740814209, 0.07516181468963623, -0.04375253990292549, -0.4151049554347992, -0.1825445294380188, 0.2344556003808...
def config ( ) : csv = true tensorboard = true errors = [ " mae ", " rmse " ]
[ 0.8000526428222656, 1.0124064683914185, 0.2120615392923355, 0.3269408047199249, 0.589402437210083, 0.767253041267395, 0.21282970905303955, 1.0689541101455688, -0.3180031180381775, 0.11394772678613663, -0.06802356988191605, 0.13460128009319305, 0.6350059509277344, 0.9081313610076904, 0.28...
def parsefromhash ( config ) : if type ( config )! = type ( { } ) : raise exception ( " type of'config'not right ( should be hash ) " ) if " length " in config and " state " in config : # this is a normal atomic signal return signal ( length = config [ " length " ], state = config [ " state " ] ) elif " sub _ signals "...
[ 0.6597575545310974, -0.20710746943950653, 0.5068276524543762, 0.9598622918128967, -0.6309436559677124, 0.31838342547416687, -0.06352859735488892, 0.07184291630983353, -0.0018719900399446487, 0.1535193920135498, -1.3162521123886108, -0.0749732106924057, -0.039425238966941833, 0.576779425144...
def _ getsignalhandlers ( object _ xml _ content ) : signal _ handlers = list ( ) if isinstance ( object _ xml _ content, ( list, tuple ) ) : for child in object _ xml _ content : signal _ handler = _ getsignalhandlers ( child ) signal _ handlers + = signal _ handler elif isinstance ( object _ xml _ content, dict ) : i...
[ -0.09875579923391342, -0.6144058108329773, 0.8336946368217468, 0.6384508013725281, -0.39092057943344116, 0.16544130444526672, -0.08289529383182526, -0.5871912240982056, 0.31898045539855957, 0.11793851852416992, -0.7800933718681335, -0.6409982442855835, 0.07109714299440384, 0.25965166091918...
def _ _ copy _ _ ( self ) : res = matrix ( self. m, self. n, init = false ) res. data = self. data return res
[ -0.6347991228103638, -1.679407000541687, 0.24083787202835083, -0.49212679266929626, -0.9479334354400635, 0.6375303268432617, 0.6484258770942688, -0.6395695209503174, 0.6511855721473694, -0.8301813006401062, -0.042512815445661545, 0.8326840996742249, -0.8249212503433228, -0.5424866080284119...
def p ( * args ) : assert len ( args ) = = 8 return " \ \ \ \ ". join ( args )
[ 0.3955892026424408, 0.09482414275407791, 0.44256025552749634, 0.08678355813026428, 0.6172894835472107, 0.8378106951713562, -0.5670332312583923, -0.3455422818660736, -0.6076774597167969, 0.4616662263870239, 0.6549332737922668, -0.6210451722145081, -1.4644094705581665, -0.7975888848304749, ...
def load _ json ( filename, schema = none, date _ format = none, field _ aliases = none ) : json _ data = [ ] with open ( filename, " r ", encoding = " utf8 " ) as f : for line in f. readlines ( ) : if line : json _ data. append ( json. loads ( line ) ) return ingest _ data ( json _ data, schema = schema, date _ format...
[ -0.21210579574108124, -0.2047634869813919, 0.6542078256607056, -0.19820109009742737, -0.23455901443958282, -0.14944592118263245, -1.0687614679336548, 0.6399176120758057, -0.03192334994673729, 0.4576145112514496, 0.2154879868030548, 0.28901296854019165, 0.4404740035533905, 0.197425186634063...
def _ validate _ node ( node ) : if not isinstance ( node, tree. _ node ) : raise typeerror ( " not a tree node " ) return node
[ -0.8316438794136047, 0.4956200122833252, 0.40209388732910156, -0.6808658242225647, -0.2749800682067871, 0.5451655387878418, -0.7414332032203674, -0.2566162645816803, 0.19020871818065643, -0.029221653938293457, 0.7061594128608704, 0.5992767214775085, -0.59809410572052, -0.23634810745716095,...
def onserviceshutdownhandler ( signum, frame ) : print ( " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " ) print ( getdt ( ),'| serial terminal service | caught signal % d'% signum ) print ( " - - - - - - - - - - - - - - - - - - -...
[ 0.6349796056747437, -0.9247329831123352, 1.2329767942428589, -0.20959417521953583, -1.0377933979034424, 0.24929489195346832, 0.20035716891288757, -0.4698255658149719, -0.2419937700033188, 0.5944954752922058, -0.2240707278251648, 0.10542840510606766, -0.5032414793968201, 0.45998620986938477...
def group _ title ( self ) : return''
[ 0.06655337661504745, 0.10805341601371765, 0.3710923492908478, -0.2647651731967926, -0.2195935696363449, 0.541782796382904, -0.6773909330368042, -0.7555656433105469, -0.5554808974266052, -0.34235042333602905, 0.13021476566791534, 0.224350705742836, -1.1062685251235962, 0.2531551122665405, ...