text
stringlengths
25
2.19k
embedding
listlengths
768
768
def getoutdegcnt _ pneanet ( * args ) : return _ snap. getoutdegcnt _ pneanet ( * args )
[ -0.8527562618255615, 0.6170729398727417, 0.5486872792243958, -0.10281625390052795, 0.3456239700317383, 0.10549072176218033, 0.07148677855730057, -0.04522229731082916, -0.8721767663955688, -1.1197024583816528, 0.12713190913200378, -1.1452245712280273, 0.2768615186214447, 0.6860394477844238,...
def is _ reboot _ action ( conn, bios _ update _ msg, verbose = false ) : msg = bios _ update _ msg reboot _ action = re. search ( r'manual steps are required ', msg ) if reboot _ action : logging. debug ( " soft reboot required before the fdt update " ) logging. debug ( " wait 320 seconds to reboot " ) conn. sendline ...
[ -0.6635265946388245, 0.4174855351448059, 0.6659192442893982, 1.443136215209961, -0.3402799069881439, -0.11796792596578598, -0.0186708252876997, -0.00371021730825305, 0.46561968326568604, 0.7682138681411743, 0.4046720564365387, 0.3672885298728943, -0.8380735516548157, 0.5924381613731384, ...
def get _ max _ seq _ len ( indexed _ pairs ) : max _ seq _ len = 0 # max _ seq ='' for indexed _ pair in indexed _ pairs : max _ seq _ len = max ( max _ seq _ len, len ( indexed _ pair [ 0 ] ) ) max _ seq _ len = max ( max _ seq _ len, len ( indexed _ pair [ 1 ] ) ) # if len ( indexed _ pair [ 0 ] ) > max _ seq _ len ...
[ -0.010647888295352459, -0.6562087535858154, 0.7627460360527039, 0.2331354171037674, -0.23419469594955444, -0.3961855471134186, 0.20273429155349731, 0.5566794872283936, 0.3698122203350067, 0.8724184036254883, -0.16777463257312775, -0.44359952211380005, -0.16822518408298492, 0.43583884835243...
def addvmerged ( self, * args ) : return _ snap. tintintvv _ addvmerged ( self, * args )
[ -0.9884796142578125, 0.33150097727775574, 0.4630919396877289, 0.5758461356163025, 0.7770877480506897, 0.12841686606407166, -0.09397506713867188, 0.4024057686328888, 0.32862547039985657, -0.3143612742424011, -1.148817777633667, 0.22468407452106476, -1.4606419801712036, 0.7857421040534973, ...
def index ( self, elem, field ) : for i, b in enumerate ( self. bpm ) : if b [ 0 ] = = elem and b [ 1 ] = = field : return i for i, t in enumerate ( self. cor ) : if t [ 0 ] = = elem and t [ 1 ] = = field : return i raise valueerror ( " ( % s, % s ) are not in this orm data " % ( elem, field ) )
[ -0.26752176880836487, -0.5221844911575317, 0.2881855070590973, -0.7038289904594421, -0.19078907370567322, 0.4356759786605835, 0.9364547729492188, 0.036893680691719055, -1.0518126487731934, 0.1168019101023674, 0.2602633833885193, 0.5383127331733704, -1.464250922203064, -0.9741357564926147, ...
def transform _ split ( self, train _ composition = 0. 7 ) : if train _ composition > 1 or train _ composition < 0 : raise exception ('train composition must be between 0 - 1') train _ size = int ( len ( self. series ) * train _ composition ) train = self. series [ 0 : train _ size ] test = self. series [ train _ size ...
[ -1.0392271280288696, 0.4240753948688507, 0.526996374130249, -0.27403154969215393, 0.5437555909156799, -0.2477298080921173, 1.316588044166565, 0.6121879816055298, -0.2618730664253235, -0.2495223730802536, -0.4006860852241516, -0.5144062042236328, -0.500219464302063, -1.0949115753173828, 0...
def union ( table _ a, table _ b, all _ = false ) : table = table. from _ iter ( table _ a ) for row in rows ( table _ b ) : table. insert ( * row ) if all _ : return table return table. distinct ( )
[ 0.6133596897125244, 0.8194565176963806, 0.7475829720497131, 0.8989516496658325, -0.010526097379624844, -0.35810720920562744, -0.652750551700592, 1.0469454526901245, -0.2986278235912323, 0.5905776023864746, 0.23170439898967743, 0.3475829064846039, -0.14887680113315582, -0.21532104909420013,...
def create _ add _ dialog ( cls ) : return adddialog ( " task addition dialog window ", true,'write your task title here ','write your task details here')
[ 0.7100350856781006, -0.2926652729511261, 0.5287984609603882, 0.30079659819602966, -0.2748655378818512, 0.45669031143188477, -0.20482899248600006, 0.40370285511016846, -0.3865160346031189, -0.285167396068573, -0.0127096651121974, 0.07603783160448074, 0.030242176726460457, 0.7907127737998962...
def use ( self ) : # construct the widget if needed. widget = self. setupwidget ( ) # show and activate the widget. widget. show ( ) widget. activatewindow ( )
[ 0.8619027137756348, -0.0190853551030159, 0.3167700469493866, 0.1236347034573555, 0.2274090051651001, -0.7626731991767883, 1.2908430099487305, 1.4810124635696411, -0.12533389031887054, -1.2963811159133911, 0.6163716316223145, 0.9260194301605225, -0.16621585190296173, 0.7076579928398132, -...
def dijkstra ( g : graph, start : int ) - > tuple [ dict [ int, int ], dict [ int, int ] ] : vertices = g. get _ vertices ( ) dist : dict [ int, int ] = { v : math. inf for v in vertices } pred : dict [ int, int ] = { v : none for v in vertices } dist [ start ] = 0 done : set [ int ] = set ( ) todo : list [ tuple [ int...
[ 0.21047858893871307, -0.29666802287101746, 0.6264092922210693, -0.2844087481498718, -1.2517117261886597, -0.045679930597543716, -0.09579063951969147, 0.3212873041629791, 0.13991329073905945, 0.7207095623016357, -1.3079898357391357, 0.216817706823349, 0.2380310446023941, 0.4256187379360199,...
def create _ random _ users ( count : int ) : if isinstance ( count, str ) and count. isnumeric ( ) : count = int ( count ) if not isinstance ( count, int ) : print ('count user is not integer or exist') return random _ users = [ ] for x in range ( count ) : username = " ". join ( [ random. choice ( string. ascii _ let...
[ -0.9710263609886169, -0.03827018663287163, 0.536529541015625, 0.14804600179195404, 0.22579599916934967, 0.5581911206245422, -0.26000088453292847, -0.6505111455917358, 0.10886837542057037, 0.7095757126808167, -0.583278238773346, -0.9171780347824097, -0.2694028317928314, 0.6493614912033081, ...
def _ parse _ set ( self, p _ dict _ 1, p _ dict _ 2, p _ dict _ 3, p _ dict _ priority ) : # obselete p _ dict _ 2 _ 2 # print'debug, parse begin'v _ list = self. parsertest _ 1 ( p _ dict _ 1 ) # qualified parser list # print'debug qulified list ', v _ list if len ( v _ list ) = = 0 : return 0 # zero match try : self...
[ -0.511347234249115, -0.6993289589881897, 0.9168456792831421, -0.4369860291481018, -0.046333618462085724, -0.31711339950561523, -1.1877800226211548, 0.4095979630947113, -0.5836410522460938, -0.43329599499702454, 0.09104525297880173, -0.3431897461414337, -0.47044023871421814, 0.4233380556106...
def acquireframes ( self, n = 1, stack = true ) : if n > 1 and not stack : raise valueerror ( " using stack = false is only allowed when n = = 1. " ) # todo : add a non - blocking mode that returns a future. frames = self. _ acquireframes ( n ) if not stack : frames = frames [ 0 ] info = dict ( self. getparams ( [ " bi...
[ -0.8367390036582947, 0.8355951905250549, 0.41683271527290344, 0.6249442100524902, 0.2202998399734497, -1.3136292695999146, -0.14805082976818085, -0.8616766929626465, 0.2409898191690445, -0.8650826215744019, -0.6382757425308228, 0.5696049332618713, 0.030200807377696037, 0.7616575956344604, ...
def postal _ problem ( ) : raise notimplementederror ( " problem 6 incomplete " )
[ 0.28778237104415894, -0.3919070065021515, 0.6199567317962646, 0.5359321236610413, -0.5427181124687195, 0.6838967800140381, 0.0854346826672554, 0.5215950012207031, 0.45043250918388367, 0.5109411478042603, -0.8103953003883362, -0.3881479501724243, -0.03685648366808891, 0.06622491776943207, ...
def getval ( self, * args ) : return _ snap. pneanetv _ getval ( self, * args )
[ -0.7638456225395203, 1.045698881149292, 0.5527913570404053, 0.8164005279541016, 0.78827303647995, 0.7425013780593872, -0.43293145298957825, -0.8256112337112427, -0.3067980110645294, -0.8081156015396118, -0.07019783556461334, -1.0195567607879639, 0.24293622374534607, 0.6344152092933655, -...
def test _ atomic _ any _ uri _ max _ length _ 1 _ nistxml _ sv _ iv _ atomic _ any _ uri _ max _ length _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - maxlength - 2. xsd ", instance = " nistdata...
[ -0.0945894792675972, -0.5040206909179688, 0.3780795931816101, 1.195779800415039, -0.6018019914627075, -0.05083014443516731, -0.06784883886575699, -0.049760378897190094, -0.49527186155319214, -0.162027508020401, -0.17717362940311432, -0.03551289066672325, -0.02980734407901764, 0.59546041488...
def start _ streaming ( self, callback ) : _ _ temp = [ ] for i in range ( len ( self. data ) ) : for j in self. data [ i ] : _ _ temp. append ( j ) sample = openbcisample ( i, _ _ temp ) _ _ temp = [ ] # if not self. test : # time. sleep ( 1. / self. sample _ rate ) callback ( sample )
[ 0.4008331298828125, 0.3300023078918457, 0.4776703119277954, 0.3165644407272339, -0.19100385904312134, -0.3057815432548523, 1.2692288160324097, 0.3839510679244995, 0.4634959101676941, -0.17867356538772583, -0.4299308955669403, 0.7602015733718872, -1.6595546007156372, 1.3697021007537842, -...
def search ( raw, data _ paths ) : files _ dict = [ ] for task _ name, task in raw. iteritems ( ) : for data _ source _ name, patterns in task. iteritems ( ) : for pattern _ name, pattern in patterns. iteritems ( ) : for data _ path in data _ paths : for root, _, files in os. walk ( data _ path ) : for filepath in file...
[ -0.204485684633255, 0.6009213328361511, 0.4710577428340912, -0.4882546663284302, -0.38303685188293457, -0.19812512397766113, 1.257932186126709, 0.5319315195083618, -0.776202917098999, -0.8190323710441589, 0.24163547158241272, -0.07560738176107407, 0.3676757514476776, -0.33275750279426575, ...
def _ get _ element _ details ( self, element ) : price = float ( re. sub ( " [ ^ 0 - 9. ] ", " ", element. find _ all ('span') [ - 1 ]. text ) ) user = re. sub ( " item listed by ", " ", element. find ('img') ['alt'] ) ref = re. findall ( r'' + user +'- (. +? ) / ', element. find _ all ('a') [ 0 ] ['href'] ) [ 0 ] url...
[ -0.7253805994987488, -0.037706755101680756, 0.5855937004089355, 0.5876262784004211, 0.7001495957374573, 0.05839710682630539, 0.07843735069036484, 0.05223513022065163, 0.44247961044311523, 0.5906338095664978, -0.45317956805229187, 0.10930687189102173, 0.646824300289154, 0.5447636842727661, ...
def test _ editing _ text _ post _ ignores _ non _ existing _ mentioned _ usernames ( self ) : user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user = user ) post = user. create _ public _ post ( text = make _ fake _ post _ text ( ) ) fake _ username ='nonexistinguser'post _ text ='hello ...
[ 0.4143308699131012, -0.1036360114812851, 0.5391315817832947, -0.23342961072921753, -0.1452743113040924, 1.0743303298950195, -0.15746235847473145, 0.8116887211799622, -0.5820239186286926, -0.0891120433807373, -0.8697616457939148, -0.18263086676597595, -0.8489945530891418, 0.1297936290502548...
def bind ( self ) : super ( container, self ). bind ( ) self. on _ trait _ change ( self. _ send _ relayout,'share _ layout, padding')
[ 0.922897219657898, 0.75901198387146, 0.2254074364900589, 0.5753450989723206, 0.47521498799324036, -0.12840966880321503, 1.3508061170578003, -0.1973748803138733, -0.043845344334840775, -0.5190555453300476, -0.2582884132862091, 0.8960997462272644, 0.034459102898836136, 0.9587493538856506, ...
def minus ( self, * args ) : return _ snap. ptable _ minus ( self, * args )
[ -1.2813166379928589, 0.3737819790840149, 0.5803999304771423, 1.0626939535140991, -0.11226698011159897, 1.4293551445007324, 0.8618636131286621, -0.3243313729763031, -0.7124426364898682, -0.8500415086746216, -0.38479354977607727, -0.7487812042236328, -0.6088528633117676, 0.6587981581687927, ...
def mcstatus ( self, irc, msg, args ) : listmode = false if self. registryvalue ('listmode') : listmode = true boldbanner ='\ x02'if not self. registryvalue ('boldbanner') : boldbanner ='' banner = format ( " [ % s % s % s ] ", boldbanner, _ ('minecraft status'), boldbanner ) try : statusreq = urlopen ( self. _ statusu...
[ -0.7993862628936768, -0.31201261281967163, 0.8391502499580383, -0.12570644915103912, -0.4011062979698181, -0.07754409313201904, -0.7583950161933899, 0.2893882095813751, -0.13812483847141266, 0.5733845233917236, -0.33930703997612, 0.377255380153656, -0.45584794878959656, 0.8942715525627136,...
def set _ keys _ to _ df ( csv _ filepath, issuer ) : df = pd. read _ csv ( csv _ filepath ) df ['issuer'] = issuer df. set _ index ( ['poolno ','issuer'], inplace = true ) return df
[ -0.3536296486854553, 0.15325157344341278, 0.23793548345565796, -0.22433698177337646, -0.0022725709713995457, -0.005188267212361097, 0.5316480398178101, 0.7783887982368469, -0.06277614086866379, -0.11079252511262894, 0.5766172409057617, 0.8607255816459656, 0.05143788829445839, -1.3942341804...
def validate _ realms ( self, client _ key, token, request, uri = none, realms = none ) : raise notimplementederror ( " subclasses must implement this function. " )
[ -0.33558225631713867, -0.30102574825286865, 0.4868497848510742, 0.11826711893081665, -0.09575611352920532, 0.4643331468105316, -0.047318752855062485, -0.3463352620601654, -0.3531428277492523, -0.07205979526042938, 0.8015552163124084, 0.3707811236381531, -0.2623138725757599, 0.2781516909599...
def query ( self, qs = " ", method = " ", method _ arg = 0, limit = 10000000, * * metadata ) : hash = hashlib. sha1 ( ) hash. update ( self. path ) has _ metadata = false corpus _ file = none for key, value in metadata. items ( ) : if isinstance ( value, str ) : if value = = " " : pass else : value = [ value ] metadata...
[ -0.4747059941291809, -0.23618052899837494, 0.6742897629737854, -0.17297010123729706, 1.0783253908157349, -0.5333572626113892, -0.5173152089118958, 0.549443244934082, -0.6444639563560486, 0.5086736083030701, 0.5671695470809937, 0.05902685225009918, -0.6168134808540344, 0.2001943588256836, ...
def fill _ in _ char ( original _ word, answer _ word, char ) : list _ orignal = list ( original _ word ) list _ ans = list ( answer _ word ) count = 0 for x in list _ orignal : if x = = char : list _ ans [ count ] = x count + = 1 return''. join ( list _ ans )
[ 0.20051702857017517, -0.34332597255706787, 0.4573315680027008, -0.32796597480773926, -0.6873016357421875, 0.22879120707511902, 0.7217241525650024, 0.40741023421287537, -0.22730861604213715, 0.7984374761581421, -0.2653394639492035, 0.8264297246932983, -0.4435432255268097, -0.013823972083628...
def listen _ thread ( self ) : while true : try : data = self. recive _ data ( ) comando = pickle. loads ( data ) self. anadir _ comando ( comando ) except connectionerror : self. log ( " servidor desconectado ", " listen _ thread " ) self. socket _ cliente. close ( ) self. log ( " socket cerrado ", " listen _ thread "...
[ 0.7680543065071106, -0.7360821962356567, 0.5811800360679626, 0.01861361414194107, 0.3100770115852356, 0.29167601466178894, -0.7792367339134216, -0.6039795875549316, -0.5974334478378296, -0.39162126183509827, 0.1849980503320694, 0.5663750767707825, -0.40621304512023926, -0.5365785360336304,...
def test _ unit _ dead ( self ) : unit1 = unit ( ) unit2 = unit ( ) unit1. health - = 100 with self. assertraises ( unitdeadexception ) : unit1. move _ forward ( ) with self. assertraises ( unitdeadexception ) : unit1. attack ( unit2 )
[ -0.5371773838996887, 0.26753899455070496, 0.6091415286064148, 0.5082423686981201, 0.936398446559906, 1.2540830373764038, 0.24392065405845642, -0.06704838573932648, 0.037841711193323135, -1.2059743404388428, 0.5938631296157837, 0.6485750675201416, 0.1607985496520996, 0.2238772213459015, 0...
def points _ to _ inches ( points : union [ float, int ] ) - > union [ float, int ] : return points / 72. 27
[ -0.35098540782928467, 1.2159076929092407, 0.32471317052841187, 0.3872467875480652, -0.030780311673879623, 0.8716521263122559, -0.02144034206867218, 0.3621101379394531, 0.20173051953315735, 0.47628912329673767, -0.061541587114334106, 0.21880768239498138, -0.10741890966892242, -0.70325678586...
def getidvsattrn ( self, * args ) : return _ snap. tundirnet _ getidvsattrn ( self, * args )
[ -1.6003029346466064, -0.36775878071784973, 0.38925814628601074, 0.4905526638031006, 0.33929234743118286, -0.565683126449585, 0.09962540864944458, -0.635522723197937, 0.30793657898902893, -0.7911933660507202, 0.11241760104894638, 0.2667659521102905, -0.7184926271438599, 0.2743014693260193, ...
def _ _ init _ _ ( self, input _ size, output _ size, hidden _ size = 128 ) : super ( simplemlp, self ). _ _ init _ _ ( ) self. name = " simplemlp " # building network modules self. linear = nn. sequential ( nn. linear ( in _ features = input _ size, out _ features = hidden _ size ), nn. batchnorm1d ( hidden _ size ), ...
[ 0.46926096081733704, -0.26864394545555115, 0.8515318036079407, 0.38594380021095276, -0.7833099961280823, 0.8054065108299255, -0.4855481684207916, 0.38646218180656433, 0.8100136518478394, -0.24811971187591553, -1.2063815593719482, -0.09153278172016144, -0.22442293167114258, -0.7050137519836...
def update _ combo ( combo, new _ vals ) : selected _ val = combo. currenttext ( ) old _ vals = [ combo. itemtext ( i ) for i in range ( combo. count ( ) ) ] # check if combo items changed if not _ is _ permutation ( old _ vals, new _ vals ) : # determine if selected value is in the new list selected _ id = - 1 try : s...
[ -0.9801846742630005, 0.027925871312618256, 0.44516268372535706, 0.6910388469696045, -0.020084675401449203, 0.18354375660419464, -0.01584557257592678, 0.632645308971405, 0.15569187700748444, 0.3966967761516571, -0.5733595490455627, -0.5352478623390198, -0.912186861038208, 0.1253822743892669...
def boxfg ( outdir = ". " ) : import os from pylab import plot, text, hstack from numpy import loadtxt try : fname = os. path. join ( outdir,'setfixedgrids. data') fgrids = loadtxt ( os. path. join ( outdir,'setfixedgrids. data'), skiprows = 7 ) except : print " * * * problem loading ", fname if fgrids. ndim = = 1 : nf...
[ 0.48494455218315125, 0.7780048847198486, 0.7537265419960022, 0.023827558383345604, -0.598479688167572, -0.48034417629241943, 0.16147755086421967, -0.3647236227989197, -0.8631629943847656, -0.035309452563524246, -0.03593666851520538, 0.6218284368515015, 0.23070649802684784, 1.01003587245941...
def transform ( self, array : np. ndarray ) - > np. ndarray : raise notimplementederror ('implement me')
[ -0.684856653213501, -0.8372182846069336, 0.46888548135757446, 0.08619531989097595, 0.4216111898422241, 0.38585418462753296, 0.3565068542957306, -0.0648050606250763, 0.9152250289916992, -0.17133724689483643, -0.3530800938606262, 0.8278038501739502, -0.17237399518489838, 0.865364670753479, ...
def loadtxt ( path ) : file = open ( path, " r " ) lines = file. readlines ( ) n = int ( float ( lines [ 0 ]. strip ( ) ) ) k = float ( lines [ 1 ]. strip ( ) ) m = [ ] for i in range ( n ) : m. append ( [ ] ) m [ i ] = list ( map ( int, map ( float, lines [ i + 2 ]. strip ( ). split ( " " ) ) ) ) return n, k, m
[ 0.07826150953769684, -0.38168278336524963, 0.6104918718338013, -1.0408506393432617, -1.0642861127853394, 0.013756290078163147, -0.3032147288322449, 0.6501603126525879, -1.6620293855667114, 1.0906627178192139, -0.9008297920227051, -0.787043571472168, -0.2787262499332428, 0.14091026782989502...
def fault _ allocation ( df _ option, fault _ type, fault _ level ) : # check if the dataframe is defined df _ option. check _ type ( pd. core. frame. dataframe, inspect. stack ( ) [ 0 ] [ 3 ] ) df = df _ option. get ( ) # add the attribute'details'if df does not have it if not hasattr ( df,'details') : df = misc _ fun...
[ -0.27233219146728516, 0.6710337400436401, 0.36920133233070374, -0.3583122789859772, 1.0789393186569214, -0.8745108246803284, 0.6121944189071655, -0.1316646784543991, 0.32009395956993103, -0.7172566056251526, 0.7424423694610596, 0.6736713647842407, 0.09299229830503464, 0.04611554741859436, ...
def get _ entity _ from _ ext ( self, tablename : str = none ) - > _ ormtype : # if oauth 2. 0 is active then self. tablename has priority self. tablename = self. tablename or tablename if not self. tablename : # in case ` update _ token ( ) ` is called, ` table _ name ` is in the token try : self. tablename = self. de...
[ -0.7909355163574219, -0.43199270963668823, 0.9485781192779541, 0.8496943116188049, -0.5127069354057312, -0.34530505537986755, 0.10675211995840073, -0.276168555021286, -0.06827924400568008, 0.04379111900925636, 0.10594812780618668, 0.17997848987579346, 0.11815022677183151, 0.037093542516231...
def task _ collect _ data ( ) : yield art. make _ data _ collector ( )
[ -0.16372713446617126, 0.06808266788721085, 0.2856009006500244, -0.5354989171028137, -0.4507419168949127, 0.3802680969238281, 0.2371291071176529, -0.5714852213859558, -0.5439537763595581, -0.43276771903038025, -0.7528173327445984, 0.3780675232410431, 1.7795730829238892, 0.14848053455352783,...
def _ find _ chairbots ( image ) : # detectmarkers returns : ( corners, ids, rejectedimgpoints ) dictionary = cv2. aruco. getpredefineddictionary ( cv2. aruco. dict _ 4x4 _ 50 ) corners, ids, _ = cv2. aruco. detectmarkers ( image, dictionary ) found _ chairbots = [ ] # checks all fiducials in dictionary if len ( corner...
[ -0.16092748939990997, -0.71497642993927, 0.4614982604980469, -0.3811119496822357, -0.10151150822639465, -0.05626032128930092, 0.33844703435897827, -0.3684666156768799, -0.5255389213562012, 0.19474954903125763, -0.44106045365333557, 0.37378206849098206, -0.017655521631240845, 0.733399152755...
def classify ( self, * args ) : return _ snap. ptable _ classify ( self, * args )
[ -1.1899917125701904, 0.6159409880638123, 0.4237552583217621, 1.1565302610397339, 0.1578698605298996, 0.4982578158378601, 0.5024845004081726, -0.15484270453453064, -1.2159380912780762, -0.3829130232334137, 0.1362501084804535, 0.09233538806438446, -0.732258141040802, 0.2859765589237213, 0....
def test _ is _ abstract ( self ) : self. asserttrue ( omnimodelformbase. _ meta. abstract )
[ 0.160491481423378, 0.01468104962259531, 0.40561947226524353, 0.2123483568429947, -0.009610997512936592, 1.3401633501052856, -0.5420143604278564, 0.35137876868247986, 0.35189056396484375, -0.6240896582603455, -0.505228579044342, 0.17533506453037262, 0.5191659331321716, 0.9024874567985535, ...
def load _ stack ( path ) : # match & read filenames conforming to regex ( possible additional feature for user to filter input ) match _ all ='*'supported _ extensions = [ '. png ', '. tif ', '. tiff ', '. h5 ', '. mrc ', '. ali'] image _ size = none def load _ files ( file _ path ) : name _ with _ path, ext = os. pat...
[ -0.08778321743011475, 0.3519374430179596, 1.0344765186309814, 0.6253481507301331, -0.5847522020339966, -1.1231563091278076, 0.7177832126617432, -0.30022019147872925, 0.009586246684193611, 0.8446916937828064, -0.19247432053089142, 0.3105873167514801, -0.17963187396526337, 1.022037148475647,...
def gd ( dataset, theta, alpha ) : m = dataset. x. shape [ 0 ] error = dataset. x @ theta - dataset. y grad = dataset. x. transpose ( ) @ error # # multiplying each of the x's specific to features by the error it was off by theta = theta - alpha * ( 1 / m ) * grad mse = np. average ( error * * 2 ) return theta, mse
[ 0.33922064304351807, -0.0194979477673769, 0.34881752729415894, -0.9771840572357178, -0.11091290414333344, 0.715233325958252, -0.01421386282891035, 0.6198041439056396, -0.9994627833366394, 0.4041198790073395, 0.2456592172384262, 0.6532801985740662, 0.5150108337402344, 0.7964738011360168, ...
def add _ year ( self, yy ) : try : self. item + = " year = { % i }, \ n " % yy except ( runtimeerror, typeerror, nameerror ) : print ( " error processing year for : ", yy ) sys. exit ( )
[ -0.21486373245716095, -0.3840411305427551, 0.7202358245849609, 0.12620872259140015, -0.34651631116867065, 0.7927181124687195, -0.30340811610221863, 0.22531937062740326, 0.04562918841838837, 0.1965712457895279, -0.1346893310546875, -0.2077622413635254, -0.047256216406822205, 0.8074353337287...
def create _ graph ( scope _ name, input _ len = 2, output _ len = 1, verbose = false ) : with tf. variable _ scope ('common') as variable _ scope : # for reusing graph learning _ rate = tf. placeholder ( dtype = tf. float32, name ='learning _ rate') x = tf. placeholder ( dtype = tf. float32, shape = [ none, input _ le...
[ 0.23075678944587708, 0.536905825138092, 0.8604250550270081, -0.10708779841661453, -0.1664697378873825, -0.07579644024372101, 0.16654115915298462, -0.2310447096824646, -0.5831646919250488, 1.1053080558776855, -0.6594855785369873, 0.41135281324386597, 0.7820643782615662, -0.30348169803619385...
def eval _ net ( net, dataset, gpu = false ) : net. eval ( ) tot = 0 for i, b in enumerate ( dataset ) : img = b [ 0 ] true _ mask = b [ 1 ] img = torch. from _ numpy ( img ). unsqueeze ( 0 ) true _ mask = torch. from _ numpy ( true _ mask ). unsqueeze ( 0 ) if gpu : img = img. cuda ( ) true _ mask = true _ mask. cuda ...
[ -0.46942266821861267, 0.1269432157278061, 0.6473338603973389, -0.020696602761745453, 0.2885320782661438, -0.43260782957077026, 0.5013569593429565, 0.2187081128358841, 0.3022514581680298, 0.7017068862915039, -0.02126683108508587, -0.2355809509754181, 0.12305968254804611, 0.39844802021980286...
def poser ( self, carte, index ) : " " " en haut - > - 3 en bas - > + 3 a gauche - > - 1 a droite - > + 1 " " " voisins = { } voisins [ " haut " ] = self [ index - 3 ] if index - 3 > = 0 else none voisins [ " bas " ] = self [ index + 3 ] if index + 3 < 9 else none voisins [ " gauche " ] = self [ index - 1 ] if index - ...
[ -0.1220540702342987, -0.08101440966129303, 0.7541670203208923, -1.0868712663650513, -0.016252389177680016, -0.03383399173617363, -0.1737823486328125, -0.3039647936820984, -0.7186904549598694, 0.03857359662652016, -0.17037898302078247, 0.09371470659971237, -0.3013194799423218, 0.04357152432...
def getmx ( * args ) : return _ snap. tint _ getmx ( * args )
[ -0.741005539894104, 0.5229841470718384, 0.5261932611465454, 1.9749191999435425, 0.4408899247646332, 0.054709311574697495, -0.44843387603759766, -0.4993382692337036, -0.046068720519542694, -0.9495531916618347, -0.47803473472595215, 0.4352343678474426, -1.5924850702285767, -0.164808169007301...
def name ( self ) : if self. var _ type = ='value': return'{ } { } '. format ( self. var _ name, self. var _ period ) return'{ } { } { } '. format ( self. var _ name, self. var _ type, self. var _ period )
[ -0.22648900747299194, -1.2570768594741821, 0.5510485172271729, -0.06104036048054695, -0.613631010055542, 0.7017813324928284, -0.14644569158554077, -0.8892749547958374, -0.13123928010463715, 0.6856200098991394, 0.7033974528312683, 1.2095837593078613, 0.36779162287712097, 0.6853941679000854,...
def stop _ dimmer ( self, serial _ number : str ) - > none : self. dimmers [ serial _ number ]. stop ( )
[ -1.8385992050170898, -0.5766090750694275, -0.19619524478912354, -0.7588427066802979, -0.395382285118103, -0.08898848295211792, 0.44441741704940796, 0.36989325284957886, -0.037164971232414246, -0.1348373144865036, -1.2132922410964966, 0.8684536218643188, -0.19373764097690582, 0.351771324872...
def _ _ eq _ _ ( self, * args ) : return _ snap. tintintprhi _ _ _ eq _ _ ( self, * args )
[ -0.9260882139205933, -0.41109776496887207, 0.1197003722190857, -0.46232283115386963, 0.2558342516422272, 1.064039707183838, 0.04688776656985283, -0.6871548891067505, -0.8843051791191101, 0.2605343461036682, -0.4709254801273346, -0.39584776759147644, -1.7986783981323242, 0.316194087266922, ...
def test _ can _ retrieve _ public _ community _ member _ of _ post ( self ) : user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user ) community _ owner = make _ user ( ) community = make _ community ( creator = community _ owner ) post = community _ owner. create _ community _ post ( tex...
[ 1.233595371246338, 0.18351687490940094, 0.48403945565223694, 0.706916868686676, 0.4437531530857086, 0.3546058237552643, -0.5662767291069031, -0.6850442886352539, -0.7824616432189941, -1.1466946601867676, -0.7563727498054504, -0.2847748100757599, -0.5789623856544495, -0.35486912727355957, ...
def get _ queries _ geomean _ performance _ sample ( self, metadata : dict [ str, str ] ) - > sample. sample : if not self. is _ successful ( ) : raise edwperformanceaggregationerror ('failed executions in suite.') query _ performances = [ x. performance for x in self. performance. values ( ) ] raw _ geo _ mean = geome...
[ -0.5046051144599915, 1.0589208602905273, 0.2464676946401596, -0.3688775300979614, -0.4030645191669464, 0.8988970518112183, -0.268081933259964, -1.052643895149231, -0.44153836369514465, 1.4670273065567017, 1.1788804531097412, 0.8613826632499695, -0.1445215493440628, 0.11131470650434494, -...
def test _ can _ retrieve _ foreign _ user _ public _ post ( self ) : user = make _ user ( ) foreign _ user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user ) post = foreign _ user. create _ public _ post ( text = make _ fake _ post _ text ( ) ) url = self. _ get _ url ( post ) response =...
[ 0.5977750420570374, 0.7227190136909485, 0.5682234168052673, 0.7661677598953247, 0.230240136384964, 0.7234129309654236, -0.3254230320453644, -0.5410245060920715, -0.39639347791671753, -1.4429315328598022, -1.040536880493164, -0.2813507914543152, -0.059937551617622375, -0.45090675354003906, ...
def covar ( z, lags, hh ) : covariance = [ ] n = len ( z ) d = [ [ distance ( z [ i ] [ 0 : 2 ], z [ j ] [ 0 : 2 ] ) for i in range ( n ) ] for j in range ( n ) ] for h in lags : c = [ ] mu = 0 for i in range ( n ) : for j in range ( n ) : if d [ i ] [ j ] > = h - hh and d [ i ] [ j ] < = h + hh : c. append ( z [ i ] [...
[ 0.3209247887134552, -0.5349761247634888, 0.7027885317802429, 0.17610499262809753, -0.3092398941516876, 0.4435453712940216, 0.7932384610176086, 0.14389611780643463, -0.6974517107009888, 0.9057443141937256, -0.6794695258140564, 0.597074031829834, -0.187709242105484, 0.450776606798172, 0.16...
def getval ( self, * args ) : return _ snap. tcncom _ getval ( self, * args )
[ 0.5516325235366821, 1.2838157415390015, 0.24913732707500458, 0.2636735439300537, 1.6051052808761597, -0.41508957743644714, 0.6575878858566284, -0.0036486643366515636, -0.37967798113822937, -0.41712427139282227, -0.5506946444511414, -0.6809787154197693, 0.25186687707901, 0.14464974403381348...
def step ( self, action ) : reward = 0 done = false info = { } obs = false if action = = 0 : # buy order if self. funds > 0 : buy _ funds = min ( self. max _ buy _ funds, self. funds ) # self. auth _ client. place _ market _ order ( self. product,'buy ', funds = self. funds ) print ('buys ', self. funds ) elif action =...
[ -0.5052005648612976, -0.04778240993618965, 0.6237881183624268, 0.4348863363265991, 0.8007676005363464, -0.09784508496522903, 0.1254744976758957, -0.7163335084915161, 0.3883199393749237, 0.1287049502134323, -0.004590860102325678, -0.007720342371612787, 0.08523126691579819, -0.06216775625944...
def get _ user _ id ( self, username ) : user = { " username " : username } try : user _ id = self. db. users. find _ one ( user ) [ " _ id " ] return user _ id except : return self. db. users. insert ( user )
[ -0.8557215929031372, 1.1387341022491455, 0.5379518866539001, 0.12293238937854767, 0.7982330322265625, 0.7632478475570679, 0.9360339045524597, -0.28401556611061096, 0.6141529083251953, 0.2500826120376587, -0.8878321647644043, -1.0087977647781372, -1.3984382152557373, 0.31578904390335083, ...
def reset ( self ) : for player _ num in range ( len ( self. players ) ) : self. players [ player _ num ]. reset ( )
[ -1.2156262397766113, -0.4871615767478943, 0.4383939802646637, 0.2797645330429077, 1.5483269691467285, -0.098566934466362, 0.6057100296020508, -0.011161385104060173, -0.8121913075447083, 0.8398256897926331, -0.2640111446380615, 1.4246450662612915, -0.5671622157096863, -0.1906963586807251, ...
def test _ embedded _ read _ string ( self, tcex, embedded _ value, resolved _ value ) : print ('\ nredis : < { } > '. format ( repr ( tcex. playbook. read ( embedded _ value ) ) ) ) print ('\ nresolved : < { } > '. format ( repr ( resolved _ value ) ) ) print ('redis ( type ) : { } '. format ( type ( tcex. playbook. r...
[ -0.29641568660736084, -0.4139265716075897, 0.7895723581314087, -0.3895553946495056, 0.002900264225900173, 1.075621485710144, -0.32659539580345154, -0.06736557930707932, 0.05638915300369263, -0.20040945708751678, 0.11850178241729736, 0.1375577300786972, -0.649010419845581, -0.79427921772003...
def slit _ nanoflyscan ( scan _ motor, scan _ start, scan _ stop, scan _ stepsize, acqtime, slit _ motor, slit _ start, slit _ stop, slit _ stepsize, slitgap _ motor, slit _ gap, normalize = false, scan _ only = false, shutter = false, plot = true, plot _ guess = false ) : if ('nano _ stage _ s'not in scan _ motor. nam...
[ 0.35634729266166687, -0.133758082985878, 0.5764600038528442, 0.39722439646720886, -2.036306619644165, 0.0693371444940567, 0.9235393404960632, 0.5570861101150513, 0.44721224904060364, -0.43063804507255554, 0.5945164561271667, 0.471123605966568, -0.04100249707698822, 0.3717256486415863, 0....
def ascii _ version _ of _ hidden _ card ( * cards ) : return join _ lines ( ( hidden _ card,'\ n'* 9 ) )
[ 0.25831925868988037, -0.43465012311935425, 0.4809845983982086, 0.02715739607810974, -0.2602674067020416, 0.19916954636573792, -1.1637115478515625, -0.5700680613517761, -0.276151180267334, 0.5586816072463989, -0.6391631364822388, 0.2221691608428955, 0.05950445309281349, -0.6361472606658936,...
def auto _ recreate _ insn ( * args ) : return _ ida _ auto. auto _ recreate _ insn ( * args )
[ -1.804657220840454, -0.23493565618991852, 0.28189152479171753, 1.1734142303466797, 0.7836681604385376, -0.6723783016204834, 1.1556072235107422, 0.7513698935508728, -0.1870931088924408, -0.6576051712036133, -0.8062875270843506, 0.18055066466331482, 0.1909600794315338, -0.6382461786270142, ...
def genrndgnm _ pngraph ( * args ) : return _ snap. genrndgnm _ pngraph ( * args )
[ -1.5465574264526367, 0.9681578278541565, 0.15645600855350494, -0.6318014860153198, -0.6372848749160767, 0.9317414164543152, -0.35143283009529114, -0.9180514216423035, -1.842503309249878, -0.37468719482421875, -1.1444709300994873, -0.03030991554260254, -0.42434602975845337, 0.96819698810577...
def detect ( self, image _ path ) : results = [ ] image = dlib. load _ rgb _ image ( image _ path ) # face detection ( 1 means to upsample the image for 1 time. ) bboxes = self. face _ detector ( image, 1 ) # landmark detection for bbox in bboxes : landmarks = [ ] for point in self. landmark _ detector ( image, bbox )....
[ -0.34339573979377747, -0.1564491242170334, 0.5315357446670532, 0.33805036544799805, 0.25463464856147766, -0.48016148805618286, -0.1264575868844986, 0.02060883864760399, -0.02605639211833477, 0.10870514065027237, -0.5500496029853821, -0.7707164287567139, 0.44747963547706604, 1.4001177549362...
def find _ sections ( self, filtr = lambda _ : true, limit = none ) : if limit is none : limit = maxint return finders. _ find _ sections ( self, filtr, limit )
[ -0.6464923024177551, 0.3412885069847107, 0.781838595867157, 0.38561856746673584, -0.19694848358631134, -0.10862019658088684, 0.5907715559005737, -0.8816089034080505, 0.09862684458494186, -0.27625659108161926, 0.8064325451850891, -0.6157789826393127, 0.24991299211978912, 0.9061394333839417,...
def flatdict ( dict _ ) : dict _ _ = { } for key in dict _. keys ( ) : value = dict _ [ key ] if value is not none : if isinstance ( value, enum ) : value = value. value elif isinstance ( value, date ) : value = str ( value ) dict _ _ [ key ] = value return dict _ _
[ -1.2273635864257812, 0.35289624333381653, 0.7701801061630249, -1.1933174133300781, -0.6173776388168335, 0.5384985208511353, -0.47802478075027466, 0.19396421313285828, 0.34604793787002563, 0.48069900274276733, 0.6688548922538757, 0.4368894696235657, 0.29646793007850647, 1.1446419954299927, ...
def _ _ eq _ _ ( self, * args ) : return _ snap. tstrintprvhi _ _ _ eq _ _ ( self, * args )
[ -0.08348623663187027, -0.3332550525665283, 0.15021608769893646, -1.4056998491287231, 0.06702809035778046, 0.5686967968940735, -0.2536795735359192, 0.4364801049232483, -1.4825948476791382, 0.8332786560058594, -0.40494850277900696, -0.48638609051704407, -0.4472444951534271, -0.21194675564765...
def endnaflti ( self, * args ) : return _ snap. pneanet _ endnaflti ( self, * args )
[ -0.1847984492778778, 0.31474795937538147, 0.2537492513656616, -0.4899841547012329, 0.1748746931552887, 1.0508391857147217, 0.042241550981998444, -0.744429349899292, -1.002221703529358, 0.0025081783533096313, -1.350595474243164, -1.1330901384353638, -0.1508854180574417, 0.6209242939949036, ...
def test _ loginok ( self ) : c = client ( ) login = c. login ( username ='test _ user ', password ='secret') self. asserttrue ( login )
[ 0.4269791543483734, 0.3498069643974304, 0.34726008772850037, 0.9151508808135986, -0.006218253169208765, 0.6370174884796143, -0.05446329340338707, 0.7437776327133179, -0.03071591630578041, -0.7625041604042053, -1.2400392293930054, -0.10746952146291733, -0.091011643409729, -0.695023298263549...
def valuefrommean ( self, x ) : return self. slope * x + self. mean
[ 0.15914428234100342, 0.48291441798210144, 0.44785118103027344, -0.023710526525974274, -0.7982215881347656, 0.8215014934539795, -0.09873078018426895, -1.3270103931427002, -0.019379515200853348, 0.11217236518859863, -0.023662341758608818, 0.24101237952709198, 0.40983980894088745, -0.32974049...
def exittitle ( self ) : # move the logo to the top right. logolerp = lerpposhprscaleinterval ( self. logo,. 75, ( self. winaspect -. 7, 0,. 3 ), ( 0, 0, 0 ),. 8 ) logolerp. start ( ) self. addwindownode ( self. logo, 1, -. 7 ) # fade on the'press? to start'text self. stextlerp. start ( ) # ignore the start buttons bas...
[ 0.11553902179002762, -0.04741648584604263, 0.5992282629013062, 0.015018336474895477, -0.663067102432251, 0.579486608505249, -0.08385982364416122, 0.24667467176914215, -0.3240976929664612, 0.7107999324798584, -0.36983123421669006, -0.5519577264785767, -0.10065870732069016, 0.142497733235359...
def names ( self ) : return [ name for name in self. _ column. keys ( ) ]
[ -0.8790890574455261, -0.15492062270641327, 0.2290196716785431, 0.20859120786190033, 0.4042111337184906, 0.42545056343078613, -1.2625471353530884, -0.6238900423049927, -0.33455416560173035, 0.6858044862747192, -1.1982831954956055, 0.4305014908313751, 0.620477557182312, 0.05459018424153328, ...
def restoredir ( path, dirname, bckdir, targetdir ) : bckpath ='% s % s / % s'% ( bckdir, path, dirname ) bckfile ='' # check for last full backup bcklist = glob. glob ('% s / % s * _ full *'% ( bckpath, dirname ) ) if len ( bcklist ) > = 1 : # keep most recent and remove older bckfile = bcklist [ - 1 ] info = os. lsta...
[ -0.09751967340707779, 0.0030360205564647913, 1.1661280393600464, -0.2785649597644806, -0.16231444478034973, -1.1648515462875366, 1.08054518699646, 0.7936477661132812, 0.5626944303512573, -1.0596718788146973, 0.270885169506073, 0.32807445526123047, -0.8915085196495056, -0.6125397086143494, ...
def is _ secure _ transport ( uri ) : if os. environ. get ('oauthlib _ insecure _ transport') : return true return uri. lower ( ). startswith ('https : / /')
[ -0.9180936217308044, -0.08495281636714935, 0.5568690299987793, 1.2145037651062012, -0.14809629321098328, -0.1624835580587387, -0.4462032616138458, -0.8540088534355164, 0.5334202647209167, -0.2781968414783478, -0.5414341688156128, 0.10963167250156403, -1.0851413011550903, -0.416900873184204...
def test _ multiple _ batches ( sdc _ builder, sdc _ executor, mongodb ) : if mongodb. atlas : pytest. skip ( " mongodb stages don't support connect to mongodb atlas " ) database = get _ random _ string ( string. ascii _ letters, 5 ) collection = get _ random _ string ( string. ascii _ letters, 10 ) pipeline _ builder ...
[ 0.11951790750026703, 0.5314026474952698, 0.7423772215843201, 0.29155176877975464, 0.4164082407951355, 0.44173410534858704, 0.5184227824211121, 0.26964661478996277, -0.25889819860458374, -0.021386265754699707, -0.42082807421684265, -0.039409346878528595, 0.3902657926082611, 0.46802222728729...
def tag ( self ) : return ( f " { self. component _ name } [ light _ dark " f " { self. bulge _ prior _ model _ tag } " f " { self. disk _ prior _ model _ tag } " f " { self. envelope _ prior _ model _ tag } " f " { self. constant _ mass _ to _ light _ ratio _ tag } " f " { self. dark _ prior _ model _ tag } " f " { se...
[ 0.37052711844444275, -1.191807508468628, 0.6186345219612122, -1.3680800199508667, 1.2309097051620483, 0.2902581989765167, -0.804459810256958, -0.3913257420063019, -0.76959627866745, 0.1388024538755417, -0.5713804960250854, -0.23104605078697205, 0.46408307552337646, 0.8358485698699951, -0...
def _ _ init _ _ ( self, game _ state ) : self. value = game _ state self. children = [ ] # populate from game _ state. next _ move ( )
[ -0.026099449023604393, 0.15372233092784882, 0.48935672640800476, 0.33954307436943054, -0.15107671916484833, 0.08663400262594223, -0.13242821395397186, -0.08079304546117783, 0.14667771756649017, 0.4613535404205322, -0.7365207672119141, -0.6530532836914062, 1.0757240056991577, 0.419642746448...
def match ( self, par = none, unique = false ) : # get the coordinates of the slit positions in the trace # coordinate system mask _ pix = self. mask _ to _ trace _ coo ( par = par ) # calculate the separation between each trace position with every mask position sep = self. trace _ spat [ :, none ] - mask _ pix [ none,...
[ -0.33800119161605835, -0.22440822422504425, 0.986116886138916, -0.46023955941200256, -0.3591230809688568, -0.6683191657066345, 0.5126104950904846, -0.19969408214092255, 0.603175163269043, -0.3396875560283661, -0.16383156180381775, -0.05059903487563133, -0.28445279598236084, -0.331774860620...
def extract _ adorama _ num _ results ( source ) : soup = bs4. beautifulsoup ( source,'lxml') if str ( soup. find _ all ( " title " ) [ 0 ]. contents [ 0 ] ). strip ( ) = = " access to this page has been denied. " : print ( " captcha block detected! scrape failed. " ) time. sleep ( 100 ) return 0 num _ products = int (...
[ -0.923098623752594, 0.7624301910400391, 0.6108202934265137, 0.010372026823461056, -0.3014788329601288, -0.758990466594696, 0.9490165114402771, -0.16983389854431152, 0.7126747965812683, 0.05509587377309799, -0.8560491800308228, -0.3189370036125183, 0.22342580556869507, -0.2144864946603775, ...
def tflt _ abs ( * args ) : return _ snap. tflt _ abs ( * args )
[ -0.6249120235443115, -0.23894768953323364, 0.37150853872299194, -0.6818708777427673, -0.20542071759700775, 0.9084647297859192, 0.12075547128915787, 0.12087779492139816, -1.7279479503631592, 0.4026562571525574, -0.5797144770622253, -0.8454138040542603, 0.5093502402305603, 0.8958813548088074...
def get _ gym _ space ( space, env = none, mdp = none, env _ params = none, mdp _ params = none ) : space = get _ overcooked _ obj _ attr ( space, env = env, mdp = mdp, env _ params = env _ params, mdp _ params = mdp _ params ) if type ( space ) is dict : space = gym. spaces. dict ( space ) # not tested or used anywher...
[ -0.6695311069488525, 0.31817427277565, 0.5294895768165588, 0.5955715775489807, -0.41888949275016785, -0.33799681067466736, 0.22176417708396912, -0.3278651237487793, 0.4378645122051239, -0.3344576060771942, 0.5488559603691101, 0.47457993030548096, -0.00941544584929943, 0.8444113731384277, ...
def get _ early _ stopping _ hook ( patience, threshold _ ratio ) : if threshold _ ratio : return earlystoppinghook ( patience, threshold _ ratio ) return earlystoppinghook ( patience )
[ 0.6039231419563293, -0.31987497210502625, 0.007880576886236668, 0.4964805543422699, -0.28324320912361145, 0.3521505296230316, -0.6162342429161072, -0.13887962698936462, -0.6178993582725525, -0.43972641229629517, 0.8024398684501648, -0.8600950241088867, 0.7956441640853882, -0.62590336799621...
def findradius ( self, defaultradius = 5. 0, radiusfile = " stkradiusfile. rad " ) : with open ( radiusfile,'r') as radiifile : # contains hard body radii for some objects. templines = radiifile. readlines ( ) lines = [ line for line in templines if not line. startswith ('#') and not line. startswith ('stk') ] # remove...
[ 0.31366148591041565, 0.02010156586766243, 0.4364190101623535, -0.2791944444179535, 0.6755682229995728, 0.8036726117134094, -0.17390134930610657, -0.31032437086105347, -1.366676688194275, 0.21654534339904785, -0.4807793200016022, 0.6323449015617371, -0.6129726767539978, 1.2531123161315918, ...
def getintattrinde ( self, * args ) : return _ snap. pneanet _ getintattrinde ( self, * args )
[ -0.2196437120437622, 0.08694138377904892, 0.5983422994613647, 0.40540811419487, 0.6859511733055115, 0.45856907963752747, -0.24118007719516754, -0.7337990999221802, -0.7271379828453064, -0.7757400274276733, 0.3394632041454315, -0.5315766334533691, -2.05395245552063, 0.12638919055461884, 0...
def main ( ) : # the only allowed options will be to run. / weatherstation. py - - test or #. / weatherstation. py - e endpoint - r rootca - c certificaction - k privatekey # all above options ( endpoint, rootca, etc.. ) will be generated when creating a # device within aws iot. as this is the main part of the function...
[ -0.17958123981952667, -0.34072667360305786, 0.8558228015899658, -0.07591579854488373, 0.6008700728416443, 0.316466748714447, 0.3877115249633789, -1.1543688774108887, 0.15709085762500763, -0.0017005163244903088, 0.8788655996322632, 0.29635336995124817, -0.21382562816143036, -0.0045283390209...
def book _ details ( url ) : session = requests. session ( ) r = session. get ( url, headers = headers ) soup = beautifulsoup ( r. text, parser ='html. parser') image = soup. findall ( " img ", { " class " :'bookimage'} ) [ 0 ] ['src'] title = soup. findall ( " div ", { " class " :'dotd - title'} ) [ 0 ]. text. strip (...
[ -1.4454973936080933, -0.5912954211235046, 0.6870283484458923, 0.17061172425746918, -0.10112545639276505, -0.19313549995422363, -0.740240216255188, 0.18422120809555054, -0.5238026976585388, 0.6140438318252563, -0.48894989490509033, -0.013870004564523697, 0.6329583525657654, 0.65233141183853...
def getscopestate ( self ) : with self. lock : return self. scopestate
[ -1.0638210773468018, -0.6576567888259888, 0.47901374101638794, -0.34429293870925903, -0.6689419150352478, -0.5668454766273499, 0.11619529873132706, -1.5303659439086914, 0.9733320474624634, 0.5285773873329163, 0.12689520418643951, 0.7618448138237, -1.1456587314605713, -0.9256547689437866, ...
def dst ( self ) : return self. _ dst
[ -0.009278242476284504, -0.5121508240699768, 0.2862708270549774, 0.06313444674015045, -0.7507123351097107, 1.3413233757019043, 0.4845268428325653, -0.3306882679462433, 0.3673233687877655, -0.1971932351589203, -0.4362998604774475, 0.5126208066940308, 0.3601866364479065, -0.7721561789512634, ...
def gabor _ 2d ( shape, sigma0, xi, theta, slant = none, pyramid = false, offset = none ) : # to be compatible with the matlab version shape = ( shape [ 1 ], shape [ 0 ] ) if slant is none : slant = 1. if offset is none : if pyramid : offset = ( shape [ 0 ] / 2, shape [ 1 ] / 2 ) else : offset = ( - ( - shape [ 0 ] / 2...
[ 0.3162142038345337, -0.2907908856868744, 0.8319889903068542, -0.2948426306247711, -0.8221553564071655, -0.20444266498088837, 0.018961720168590546, -0.6079615950584412, 0.014164730906486511, 0.8464826941490173, 0.08473578840494156, 0.4428841173648834, 0.5649828910827637, -0.2931334674358368...
def verify _ tracking _ number ( self, tracking _ number ) : # usps check try : check _ digit = int ( tracking _ number [ - 1 ] ) numbers = [ ] for letter in tracking _ number : numbers. append ( int ( letter ) ) numbers. reverse ( ) except valueerror : # if the tracking number has letters in it return false sum1 = 0 f...
[ -0.6145482659339905, 0.711816668510437, 1.0366451740264893, 0.4673832356929779, 0.42188993096351624, 0.8597685098648071, 0.7407938838005066, 0.240831658244133, 0.381389856338501, -0.347710520029068, -0.25596749782562256, -0.18030425906181335, -0.28115609288215637, 0.17319677770137787, -0...
def find _ dockerfile _ in _ path _ recursive ( basepath ) : ret = [ ] for root, subfolders, files in os. walk ( basepath, followlinks = true ) : for file in files : if os. path. basename ( file ) = ='dockerfile': ret. append ( os. path. join ( root, file ) ) return ret
[ 0.38652727007865906, 0.45730382204055786, 0.5564644932746887, 1.0112613439559937, 0.08919365704059601, 0.4206659197807312, 1.4983419179916382, -0.14464165270328522, -0.6852842569351196, -0.367281049489975, 0.04344288259744644, -0.06619994342327118, -0.3865779936313629, 1.2179957628250122, ...
def getwebsitenm ( * args ) : return _ snap. tstrutil _ getwebsitenm ( * args )
[ -0.7890523076057434, 0.6223679184913635, 0.1301879584789276, 1.0973503589630127, 0.2542690336704254, -0.03399431332945824, 1.0107721090316772, -0.3546634316444397, -0.4447893500328064, -0.6984779834747314, -0.4122507572174072, 0.2753148078918457, -0.6042698621749878, -0.1251484602689743, ...
def cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilteriuc3diuc3 _ superclass _ cast ( * args )
[ 1.2549445629119873, 0.2119935303926468, 0.46091946959495544, -0.09482460469007492, -0.0981358140707016, 1.4840373992919922, 0.3505978584289551, 0.6691823601722717, 0.5204309225082397, -0.2841363549232483, -0.5821313858032227, 0.03952708840370178, -0.011780083179473877, -0.20953938364982605...
def get _ accept _ header ( self, incomingheader ) : accept ='text / plain'for string in incomingheader. splitlines ( ) : if'accept'in string : accept = string. split ( ) [ 1 ] # print ('accept value is : { acc } '. format ( acc = accept ) ) return accept
[ -0.3691590130329132, -0.6384687423706055, 0.8457543253898621, -0.7546770572662354, -1.4215035438537598, 0.7009251117706299, 0.23037153482437134, -0.2633603811264038, -1.4094748497009277, 0.9131987690925598, 0.7052474617958069, 0.22631165385246277, -0.759527325630188, 0.18757028877735138, ...
def plan ( self ) - > pulumi. output [ str ] : return pulumi. get ( self, " plan " )
[ 0.5732355713844299, -0.002651083515956998, 0.3406941294670105, -0.019513370469212532, 0.2937154471874237, 1.3557734489440918, -0.17496266961097717, -0.12725047767162323, 0.46008655428886414, -0.286247193813324, 0.19915889203548431, 0.8481548428535461, 0.7154632210731506, -1.420257329940796...
def upper _ optimized _ joint _ limits ( self ) - > cs. dm : return cs. dm ( [ self. get _ joint _ upper _ limit ( jnt ) for jnt in self. urdf. joints if jnt. name in self. optimized _ joint _ names ] )
[ -0.8066371083259583, -0.19261698424816132, 0.5675315856933594, 0.4362522065639496, 0.10357646644115448, -0.09622273594141006, -0.40813764929771423, -0.3524410128593445, -0.4167112112045288, -0.0036388991866260767, -0.3249261677265167, 0.741881787776947, -0.1437499076128006, -1.225601911544...
def getval ( self, * args ) : return _ snap. tfltprv _ getval ( self, * args )
[ -0.7742881178855896, 0.8118240237236023, 0.3738964796066284, -0.4842107892036438, 0.8675987124443054, 0.10444872826337814, 0.1941102296113968, 0.40765658020973206, -1.1162993907928467, -0.09170529246330261, 0.537744402885437, -1.3899940252304077, -0.35635480284690857, 0.5816419124603271, ...
def delete _ color ( self ) : self. execute ('delete from colors')
[ 0.9096776843070984, 0.07363776862621307, 0.1785459965467453, -0.0738968700170517, 0.7426435351371765, 0.06932006031274796, -0.19862939417362213, 0.32485976815223694, -0.6805000901222229, -0.17400740087032318, 0.37595662474632263, 0.9586498141288757, -0.7165371179580688, 0.4585646688938141,...