text
stringlengths
25
2.19k
embedding
listlengths
768
768
def make _ function ( self, label : str, link : str, method : callable, n : int = 1, base _ link : union [ none, str ] = none, axis : union [ none, cs. dm ] = none, numpy _ output = false, ) : q = cs. sx. sym ( " q ", self. ndof ) args = [ link, q ] if axis is not none : args. append ( axis ) kwargs = { } if base _ lin...
[ -0.3693059980869293, 0.26301130652427673, 0.7738887071609497, 0.588109016418457, 0.06856474280357361, -1.128623604774475, 0.31385594606399536, -0.15924261510372162, 0.49537065625190735, -1.003645658493042, -0.8779006600379944, 0.28618621826171875, 0.2523186206817627, 0.15595999360084534, ...
def wczytaj _ zestaw ( nazwa _ pliku ) : with open ( nazwa _ pliku, " r " ) as plik : a = plik. readline ( ) plik. close ( ) if a! = konfiguracja [ " klucz _ zabezpieczajacy _ zestaw " ] + " \ n " : print ( " wybrany plik nie jest plikiem programu " ) return plansza = np. zeros ( ( 100, 100 ) ) tupele = np. genfromtxt ...
[ -0.9187734723091125, -0.5385851263999939, 0.12984628975391388, 0.08170560747385025, -0.45882725715637207, 0.31114867329597473, 1.2146402597427368, 0.03028993122279644, -0.029871538281440735, 0.8643679618835449, -0.8321249485015869, 0.5166757702827454, 0.2559282183647156, 0.0072186663746833...
def distance ( a, b ) : assert ( len ( a. indep ) = = len ( b. indep ) ), " something is wrong " assert ( a. id! = b. id ), " something is wrong " sum = 0 for i, j in zip ( a. indep, b. indep ) : sum + = ( i - j ) * * 2 return sum * * 0. 5
[ 0.13656216859817505, -0.5346194505691528, 0.5956764817237854, 0.270767480134964, -0.4633582532405853, 0.2102186381816864, 0.4434735178947449, 0.4836294651031494, 0.07060858607292175, 0.5280967354774475, -0.24010881781578064, 0.38716644048690796, -0.8275168538093567, -0.554399311542511, -...
def input _ combos ( self, combo _ len = none ) : repeat = len ( self. _ ordering ) if combo _ len is none else combo _ len return itertools. product ( ( false, true ), repeat = repeat )
[ -1.125044345855713, 0.678180992603302, 0.5545583963394165, 0.8589116334915161, -0.14700937271118164, 0.37755224108695984, 0.7385021448135376, -0.021231383085250854, 0.1540777087211609, 0.3947773575782776, -0.7597668170928955, -0.3982381522655487, -0.9153541922569275, -0.3503253757953644, ...
def sort ( self, asc = true ) : return _ snap. tfltv _ sort ( self, asc )
[ -0.6945112943649292, 0.6636618375778198, 0.09770841151475906, -0.2715783715248108, -0.10953760147094727, -0.5565432906150818, 0.9060048460960388, 0.271769255399704, -1.1569836139678955, -0.839602530002594, -0.49999719858169556, -0.6234722137451172, -0.15142793953418732, 2.0586822032928467,...
def _ get _ regional _ scalars _ path ( parent _ dir : str ) - > str : return join ( parent _ dir, filepaths. input _ files _ dir, filepaths. regional _ scalars )
[ 0.903986930847168, -0.1931607574224472, 0.3473277688026428, -0.7654484510421753, -0.13403856754302979, 0.9699086546897888, 0.5901359915733337, -0.6567512154579163, -0.8357810378074646, -0.024997379630804062, 0.5725297927856445, 1.2714101076126099, -0.22759468853473663, 0.10653075575828552,...
def _ getportlist ( desired _ protocol, appc _ port _ list ) : # the port specification is optional. if appc _ port _ list is none : return portspec ( false, [ ] ) json _ lib. assertisinstance ( appc _ port _ list, list,'port specification list') allow _ all = false port _ list = [ ] for port _ dict in appc _ port _ li...
[ -0.12751074135303497, -0.36071136593818665, 0.5031828880310059, -0.23101724684238434, 0.3514915704727173, -0.5462400913238525, 0.42421871423721313, -0.23770518600940704, -0.48623836040496826, 0.01704830676317215, 0.10633830726146698, 0.7206128835678101, -0.08597210049629211, 0.100082747638...
def tstr _ putfext ( * args ) : return _ snap. tstr _ putfext ( * args )
[ -0.5771650075912476, 0.9106698036193848, 0.32057252526283264, -0.5289139151573181, 0.13867606222629547, -0.11481358110904694, -0.7423878312110901, -0.5937274694442749, -1.0457950830459595, -0.17389562726020813, -1.0644971132278442, -0.3497104048728943, -0.44040432572364807, 0.7112160921096...
def test _ dur _ sub _ exc ( ) : pytest. debug _ func ( ) d = d ( hours = 3 ) x = [ 1, 2, 3 ] with pytest. raises ( typeerror ) as err : # payload assert d - x msg = ( txt ['optypes - 02']. format ( d. _ _ class _ _, x. _ _ class _ _ ) ) assert msg in str ( err )
[ -0.4761943221092224, 1.0772006511688232, 0.7204034328460693, -0.07121212035417557, -0.211988627910614, 1.0156532526016235, -0.06593605130910873, -0.6677491068840027, 0.20230066776275635, -0.30792462825775146, -0.7522740960121155, 0.7305355668067932, 0.3140111267566681, 0.27315640449523926,...
def getvalstr ( * args ) : return _ snap. tgstat _ getvalstr ( * args )
[ -0.012134626507759094, 0.14097943902015686, 0.00798296369612217, 0.8838740587234497, 0.08793922513723373, 1.2530676126480103, -0.07991605997085571, -1.2382738590240479, -1.42654287815094, -0.29218119382858276, 0.42620542645454407, -0.5706272721290588, 0.25070133805274963, 0.674152374267578...
def fields ( self ) : fields = set ( ) for index in self. data : for patch in self. data [ index ] : for field in self. data [ index ] [ patch ]. keys ( ) : if field not in fields : fields. add ( field ) return fields
[ 0.29962414503097534, -0.2270641326904297, 0.6204252243041992, -1.5135880708694458, 0.115046925842762, 0.7383950352668762, -0.13689348101615906, -0.41128069162368774, 0.3399718105792999, -0.6082067489624023, -1.1050238609313965, -0.1416880041360855, -0.5747131705284119, -1.2105151414871216,...
def anonymize _ df ( df, cfg ) : # for all target columns, if in _ source _ ids not null, hash value for column in cfg ['anonymize'] ['target _ fields']. split ( ',') : root _ col = column. split ( '.') [ 0 ] # if column isn't nested value, avoid json serialization if column = = root _ col : df = anonymize _ top _ leve...
[ -0.9855865240097046, 0.38063663244247437, 0.5199084281921387, 0.3154830038547516, 0.3424956798553467, -0.8427802920341492, -0.06980706006288528, -0.07487864792346954, -0.4747766852378845, 0.2824583053588867, -1.0686225891113281, 0.721053957939148, 0.42914748191833496, -0.30181148648262024,...
def mkdir _ ssh ( ) : cmd ='mkdir - p - m 0700. ssh'run ( cmd )
[ 0.6563889980316162, 0.1544596254825592, 0.6392486095428467, 0.35763677954673767, -0.17783167958259583, 1.5223019123077393, 0.373370885848999, -0.10134544968605042, -0.021488461643457413, -1.253188133239746, -0.17046186327934265, 0.47062253952026367, 0.2637920379638672, 0.1305428296327591, ...
def get _ cookies ( self ) : return self. _ current _ cookies
[ -0.9114491939544678, -0.6336973905563354, 0.3878025412559509, 0.9454699754714966, 0.3052317798137665, -0.47439640760421753, 0.6170458197593689, -0.3762427568435669, -0.6599072813987732, -0.35141441226005554, 0.20340310037136078, 1.4086508750915527, -0.6182190775871277, -0.05293504148721695...
def addsorted ( self, * args ) : return _ snap. tstrv _ addsorted ( self, * args )
[ -0.9235866665840149, 0.39611226320266724, 0.2860095202922821, -0.10563275963068008, 0.11801282316446304, -0.007204939145594835, 0.8902606964111328, -0.3042084276676178, -0.6319133043289185, -1.3616360425949097, -0.6122834086418152, 0.022076640278100967, -0.2295285314321518, 0.9244431853294...
def get _ cs _ parameters ( self, dilations = [ 1, 0, - 1, - 2, - 3 ], alpha0 = np. float64 ( 2 ), b0 = np. float64 ( 1. 0 ), b0scalebase = np. float ( 1. 0 ), sigma _ center = 0. 5, sigma _ surround = 0. 8 ) : b0 = np. float64 ( b0 ) b0scalebase = np. float64 ( b0scalebase ) alpha0 = np. float64 ( alpha0 ) sigma _ cen...
[ 0.25517624616622925, 0.3525647819042206, 0.9129238724708557, 0.5533308386802673, 0.3845962882041931, -0.5744971632957458, 0.8884739875793457, 0.6508275866508484, 0.261057585477829, 0.530439555644989, -0.09982619434595108, 0.012135236524045467, 0.10315128415822983, 0.8633511662483215, 1.0...
def sort ( self, * args ) : return _ snap. tintstrh _ sort ( self, * args )
[ -0.43598097562789917, -0.5861542820930481, 0.13557855784893036, 0.5423941016197205, -0.6539503931999207, -0.028185224160552025, 0.6206963658332825, -1.048326849937439, -0.8043323159217834, -0.6438521146774292, -0.546990156173706, 0.65712571144104, -1.1682450771331787, -0.011992701329290867...
def setupclass ( cls ) : _, db = tempfile. mkstemp ( suffix = '. sqlite') cls. app = flask ('foo') cls. app. config ['classic _ database _ uri'] = f'sqlite : / / / { db }'cls. app. config ['sqlalchemy _ track _ modifications'] = false cls. app. config ['wait _ for _ services'] = false with cls. app. app _ context ( ) :...
[ 0.13492029905319214, 0.23682425916194916, 0.7078754901885986, 0.47011521458625793, 0.2718614935874939, 0.831748366355896, 0.31733018159866333, 0.025357607752084732, -0.04383888468146324, -0.3601432144641876, -0.5721355080604553, -0.7928004860877991, 0.6418805718421936, 0.6077348589897156, ...
def test _ atomic _ base64 _ binary _ min _ length _ 2 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ min _ length _ 3 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - minlength - 3. xsd ...
[ 0.48514261841773987, -0.09823267161846161, 0.49269193410873413, 0.7247771620750427, 0.066022127866745, 0.4076622724533081, -0.5750299096107483, -0.2979709804058075, 0.6659446358680725, 0.4024082124233246, -0.3437338173389435, 0.21071787178516388, -0.8268386125564575, -0.26354551315307617, ...
def dataframe _ selection _ to _ dict ( df, sel _ itm ) : dd = {'name': sel _ itm } sdf = df. loc [ sel _ itm ] for id in sdf. index. values : dd [ id ] = sdf [ id ] return dd
[ -1.6408720016479492, -0.40429753065109253, 0.20923852920532227, -0.6255878210067749, -0.226853147149086, -0.7652058005332947, 0.2429758757352829, -0.2987557053565979, 0.036342937499284744, 0.5001751780509949, -0.6719487309455872, 0.2314666360616684, 0.7543200850486755, -0.9675254225730896,...
def validate _ user ( self, username, password, client, request, * args, * * kwargs ) : raise notimplementederror ('subclasses must implement this method.')
[ -0.6740753650665283, -0.45606207847595215, 0.5203736424446106, 0.7036508917808533, -0.423376202583313, 1.0731264352798462, 0.4092174470424652, -0.5569634437561035, -0.5171365141868591, -0.5108357071876526, -0.22131186723709106, 0.02472497522830963, -0.09835926443338394, -0.1289093047380447...
def describevoucherinfo ( self, request ) : try : params = request. _ serialize ( ) headers = request. headers body = self. call ( " describevoucherinfo ", params, headers = headers ) response = json. loads ( body ) model = models. describevoucherinforesponse ( ) model. _ deserialize ( response [ " response " ] ) retur...
[ -0.8411995768547058, 0.6380186676979065, 0.5623577833175659, 0.06329946219921112, 0.2697090208530426, -0.3615564703941345, -0.09057946503162384, -0.4378323256969452, -0.41096168756484985, 0.030944867059588432, -0.3909602165222168, 1.0511876344680786, -0.2538328170776367, 0.7527997493743896...
def test _ atomic _ hex _ binary _ length _ 3 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ length _ 4 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - length - 4. xsd ", instance = " nistdata / ...
[ 0.3087918758392334, -0.29757416248321533, 0.3869510293006897, 0.3464867174625397, -0.1408880650997162, 0.25272679328918457, -0.4906339645385742, 0.11771902441978455, -0.4226375222206116, 0.2447247952222824, -0.8183397054672241, -0.6606369018554688, -0.058740321546792984, 0.4645046293735504...
def is _ skew _ symmetric ( self ) : return self = = - self. transpose ( )
[ -0.8212500214576721, 0.7338735461235046, 0.46309003233909607, 0.748959481716156, 0.18972791731357574, -0.37212368845939636, 0.19138260185718536, -0.351123183965683, 0.9722411632537842, 0.6462821364402771, -0.6399282217025757, 0.2855646312236786, -0.35130777955055237, 0.4771309196949005, ...
def binary _ fp _ comp ( self, implicit = false ) : bits = [ ] for fp _ byte in struct. pack ('> f ', self. _ fp30bit ) : for _ in range ( 8 ) : bits. append ( 1 if fp _ byte & 0x80 else 0 ) fp _ byte < < = 1 sign = ( bits [ 0 ], ) exponent = tuple ( bits [ 1 : 9 ] ) mantissa = tuple ( ( [ 1 ] if implicit else [ ] ) + ...
[ -0.17905886471271515, -0.7092992663383484, 0.6994218230247498, -0.07273396104574203, 0.39802056550979614, 0.24321946501731873, 0.26575303077697754, -0.11731172353029251, -0.2737506330013275, 0.34054771065711975, -1.1127365827560425, -0.03247317299246788, -0.8540851473808289, 0.345933496952...
def storestrcol ( self, * args ) : return _ snap. ptable _ storestrcol ( self, * args )
[ -0.23540887236595154, -0.12417653203010559, 0.2571071982383728, -0.0601639486849308, 0.08365557342767715, 0.1421041637659073, 1.2452669143676758, -0.6609207391738892, -1.1408504247665405, -0.14956782758235931, -1.0701981782913208, 0.07569391280412674, -0.8808963298797607, -0.14348904788494...
def put _ api _ v1 ( self, endpoint, params = none, data = none ) : headers = { " authorization " : " % s % s " % ( self. auth. token _ type, self. auth. access _ token ), " content - type " : " application / json " } api _ url = " { } / { } ". format ( self. api _ url, endpoint ) resp = self. session. put ( api _ url,...
[ -1.2385410070419312, -0.3823193311691284, 0.6288737058639526, -0.013270090334117413, 0.17512990534305573, -0.1810881793498993, -0.33068183064460754, 0.08204374462366104, -0.024976614862680435, 1.3054604530334473, -0.46645253896713257, 0.7415235638618469, -1.4379068613052368, -1.24205398559...
def _ _ eq _ _ ( self, * args ) : return _ snap. tstrprboolhi _ _ _ eq _ _ ( self, * args )
[ -0.17358946800231934, -0.306119441986084, 0.10887943208217621, -0.705683708190918, 0.6735093593597412, 1.0476163625717163, 0.008104241453111172, 0.8060773015022278, -1.5779492855072021, 0.8703386187553406, -1.0472320318222046, -0.7579815983772278, -0.3334561288356781, -0.19429636001586914,...
def getmxsccsz _ pungraph ( * args ) : return _ snap. getmxsccsz _ pungraph ( * args )
[ 0.5924950838088989, 1.1089107990264893, 0.28337225317955017, 2.091766357421875, -1.2111186981201172, 0.04007168114185333, -0.45377442240715027, 0.5067752599716187, 0.3998892903327942, -0.37030264735221863, -0.3233654499053955, -0.31968921422958374, -0.33373934030532837, 0.5782562494277954,...
def print _ parameters ( parameters ) : print " {'animal _ y': %. 3f, " % parameters ['animal _ position'] [ 1 ] print "'animal _ z': %. 3f, " % parameters ['animal _ position'] [ 2 ] print "'dome _ y': %. 3f, " % parameters ['dome _ center'] [ 1 ] print "'dome _ z': %. 3f, " % parameters ['dome _ center'] [ 2 ] print ...
[ 0.08193505555391312, -0.6313681602478027, 0.7069132328033447, -1.129451870918274, -0.2786406874656677, 1.0107340812683105, -0.5930191874504089, -0.09374529123306274, -0.8540129661560059, 1.0195202827453613, -0.08556686341762543, 1.0809274911880493, -0.026033228263258934, 0.4533933401107788...
def assembledgtofv ( nodes, weights, n, nlim ) : dg2fv = [ [ 0. 0 for _ in range ( nlim ) ] for _ in range ( n ) ] dxi = 1. 0 / float ( nlim ) xleft = 0. 0 xi = 0. 0 for i in range ( 0, nlim ) : xleft = i * dxi for j in range ( 0, n ) : xi = xleft + dxi * nodes [ j ] phi, _ = mathsutils. basefunc1d ( xi, nodes, n ) for...
[ -0.2387097179889679, 0.9203267097473145, 0.6593454480171204, -0.09450212866067886, -0.23168393969535828, -0.5479361414909363, 0.11159614473581314, -0.4207198917865753, -0.9558790922164917, 0.3762967884540558, 0.1174401193857193, -0.05002117156982422, 0.15768355131149292, 0.7185620069503784...
def getcurve ( ws, munithandle, curveidx ) : command = " femtoapifile. getcurve ('" + str ( munithandle ) + " ','" + str ( curveidx ) + "') " print ( command ) simplecmdparser = ws. sendjscommand ( command ) resultcode = simplecmdparser. getresultcode ( ) if resultcode > 0 : print ( " return code : " + str ( resultcode...
[ -0.29129543900489807, -0.30753710865974426, 0.9912264943122864, -1.0030977725982666, -0.14329612255096436, -0.4274112284183502, -0.6070541143417358, -1.3731718063354492, -0.3196723759174347, -0.3327186405658722, -0.6191076636314392, 0.647894561290741, -0.5429159998893738, 0.032554645091295...
def testlistdisks ( self, mock _ gce _ api ) : disks = mock _ gce _ api. return _ value. disks. return _ value. aggregatedlist disks. return _ value. execute. return _ value = mock _ disks _ aggregated list _ disks = fake _ analysis _ project. compute. listdisks ( ) self. assertequal ( 2, len ( list _ disks ) ) self. a...
[ -0.43587830662727356, 0.6505181193351746, 0.53802889585495, -0.357464462518692, 1.4058723449707031, 0.42491984367370605, -0.08758331835269928, -0.08229682594537735, -0.15535224974155426, -0.1338338553905487, -0.4026491641998291, -0.07813936471939087, 0.15249410271644592, 0.6488093137741089...
def ascon _ process _ ciphertext ( s, b, rate, ciphertext ) : c _ lastlen = len ( ciphertext ) % rate c _ padded = ciphertext + zero _ bytes ( rate - c _ lastlen ) # first t - 1 blocks plaintext = to _ bytes ( [ ] ) for block in range ( 0, len ( c _ padded ) - rate, rate ) : if rate = = 8 : ci = bytes _ to _ int ( c _ ...
[ 0.5310003757476807, 0.17162929475307465, 0.9379832744598389, -0.7182757258415222, -0.8760213851928711, -0.5462088584899902, 0.4191063344478607, -0.33220189809799194, 0.6093517541885376, 1.1665738821029663, -0.6037271022796631, -0.054788947105407715, -0.46375229954719543, -0.535277307033538...
def changechall ( self, * args ) : return _ snap. tstr _ changechall ( self, * args )
[ 0.29466745257377625, 0.25743934512138367, 0.506598949432373, 0.1924993395805359, -0.1823536902666092, 0.3658389151096344, 0.5478618741035461, 0.5384717583656311, -0.88232421875, 0.43940189480781555, -0.5762611627578735, 0.6312371492385864, 0.9824191927909851, 1.0612835884094238, 1.357350...
def savetxt ( self, * args ) : return _ snap. tgstatvec _ savetxt ( self, * args )
[ -1.41217839717865, 0.2931862473487854, 0.4136219024658203, -0.1680207997560501, 0.22992289066314697, 0.4132826626300812, 1.5021530389785767, -0.9199907779693604, -0.8626570701599121, 0.3993549048900604, -1.204880952835083, -0.5535094141960144, -0.33812791109085083, 0.44840922951698303, -...
def setup _ nginx ( ) : # making a backup of the original file and then symlinking # our version sudo ('mv / etc / nginx / nginx. conf / etc / nginx / nginx. conf. orig') nginx _ conf = os. path. join ( env. project, env. confs,'nginx. conf') sudo ('ln - s % s / etc / nginx / nginx. conf'% nginx _ conf ) # simlinking t...
[ 0.9981730580329895, -0.538242518901825, 0.7252591848373413, 0.8181119561195374, 0.09864621609449387, 0.4247293770313263, 0.3897387385368347, 1.2185142040252686, 0.34503376483917236, 0.728604793548584, -0.6604841947555542, 0.8299188017845154, 0.1413497030735016, -0.18112704157829285, 0.57...
def new ( * args, * * kargs ) : obj = itksubtractconstantfromimagefilterius3dius3. _ _ new _ orig _ _ ( ) import itktemplate itktemplate. new ( obj, * args, * * kargs ) return obj
[ 0.6047755479812622, -0.27344757318496704, 0.3342454433441162, -0.8184685111045837, -0.9284741282463074, 0.3380294144153595, -0.0869143158197403, 0.29856693744659424, 0.230352982878685, 0.061989665031433105, -0.7220532894134521, -0.27649208903312683, -0.11737507581710815, -0.544244110584259...
def test _ publication _ status _ is _ reflected _ after _ files _ expire ( self ) : paper _ id ='1901. 00123'with self. app. app _ context ( ) : session = classic. current _ session ( ) # publication agent publishes the paper. db _ submission = session. query ( classic. models. submission ) \. get ( self. submission. ...
[ 0.8309220671653748, -1.0450594425201416, 0.3890474736690521, -0.16043613851070404, 0.20079252123832703, 0.6328079104423523, -0.42553913593292236, 1.174376130104065, -0.14035606384277344, -0.1376560926437378, -0.302987277507782, -0.0005860559758730233, -0.03414338082075119, 0.93898046016693...
def main ( ) : changed _ files, ret _ code = exec _ cmd ( " git diff - - staged - - name - only head " ) python _ files = [ ] for f in changed _ files. split ( ) : file _ type, ret _ code = exec _ cmd ( " file { } ". format ( f ) ) if " python script " in file _ type or f. endswith ( ". py " ) : python _ files. append ...
[ 0.1947731226682663, -0.5962002873420715, 0.9240971207618713, 0.1329103261232376, 0.6220642328262329, 0.5166153907775879, 0.4801176190376282, 0.18024711310863495, -0.18352343142032623, 0.6081151366233826, 0.23145796358585358, 0.05876892805099487, -0.13909944891929626, 1.0031602382659912, ...
def test _ new _ user _ create _ page ( self ) : url = reverse ('admin : core _ user _ add') res = self. client. get ( url ) self. assertequal ( res. status _ code, 200 )
[ 0.05319937318563461, 0.7411381602287292, 0.19460688531398773, 0.472343385219574, 1.0670777559280396, 1.2785571813583374, -0.20906513929367065, -0.27806565165519714, -0.30521366000175476, -0.3234686553478241, -0.23980171978473663, -0.1714831441640854, -0.10986382514238358, 0.260382920503616...
def pizza ( request, pizza _ id ) : pizza _ = pizza. objects. get ( id = pizza _ id ) toppings = pizza _. topping _ set. order _ by ('- date _ added') context = {'pizza': pizza _,'toppings': toppings } return render ( request,'pizzas / pizza. html ', context )
[ 0.06415301561355591, 0.3753432631492615, 0.3687276244163513, 0.4059268534183502, -0.848558783531189, 0.2353028804063797, -0.05049644038081169, 0.5791984796524048, -0.037045110017061234, -0.10499779880046844, 0.4802637994289398, -0.2883857190608978, 0.8896627426147461, 0.7249806523323059, ...
def precipitation _ statistics ( row, ds _ rado = xr. dataset ( ), geometry _ col ='geometry _ radolan ', temporal _ resolution ='daily ', timesteps _ backward = 7, current _ date = datetime ( 2010, 12, 12 ) ) : # write valid radolan precipitation parameter, either daily or hourly if temporal _ resolution = ='daily': p...
[ 0.3752703070640564, 0.4958374500274658, 0.8657180070877075, -0.7387683987617493, -0.06701108068227768, -0.009335179813206196, -0.13594037294387817, -0.3650975227355957, -0.22795236110687256, 0.20445573329925537, 0.8251170516014099, 0.08681582659482956, 1.254500389099121, -0.048128493130207...
def _ create _ examples ( self, lines, set _ type ) : examples = [ ] for ( i, line ) in enumerate ( lines ) : if i = = 0 : continue guid = " % s - % s " % ( set _ type, line [ 0 ] ) try : text _ a = line [ 3 ] text _ b = line [ 4 ] label = line [ 5 ] except indexerror : continue examples. append ( inputexample ( guid =...
[ 0.06189821660518646, -0.020368490368127823, 0.2050926238298416, -0.08960529416799545, 0.24635006487369537, 0.06559596210718155, -0.7039624452590942, -0.600256621837616, -0.3953697681427002, 0.517805814743042, 0.22562333941459656, -0.1870437115430832, -0.4083506762981415, 0.4179723262786865...
def move ( self, dest, col, card, undo = true ) : ml = [ ] while self. board [ col ] [ - 1 ] [ 0 ]! = card and len ( self. board [ col ] ) > 0 : ml. append ( self. board [ col ] [ - 1 ] ) self. board [ col ] = self. board [ col ] [ : - 1 ] ml. append ( self. board [ col ] [ - 1 ] ) self. board [ col ] = self. board [ c...
[ -0.974588930606842, 0.33969199657440186, 1.0042431354522705, -0.21195539832115173, -0.4924940764904022, -0.10320328921079636, 0.22309105098247528, 0.41554635763168335, -0.5239134430885315, 1.0173901319503784, -0.9035145044326782, -0.20120829343795776, 0.3078952431678772, -0.625525295734405...
def fromparents ( cls, parent _ 1, parent _ 2, input _ size = config. input _ size, output _ size = config. output _ size ) : parent _ base = none other _ parent = none if random. choice ( ( 1, 2 ) ) = = 1 : nodes = copy. deepcopy ( parent _ 1. nodes ) parent _ base = parent _ 1 other _ parent = parent _ 2 middle _ siz...
[ -0.46261999011039734, 0.06567030400037766, 1.0283253192901611, 0.14315259456634521, -0.25679877400398254, 0.33371469378471375, 0.9511507153511047, 0.37474673986434937, 0.08718831092119217, 0.797664999961853, -0.09970709681510925, 0.478691428899765, -0.43533217906951904, -0.0931175649166107...
def fix _ long _ tick _ labels ( xlimits ='auto ', ylimits ='auto ', kwargs = { } ) : from pylab import figure, xticks, yticks, xlim, ylim if xlimits! ='auto': xlim ( xlimits ) print " + + + xlim : ", xlim ( ) if ylimits! ='auto': ylim ( ylimits ) locs, labels = xticks ( ) xticks ( locs, [ str ( loc ) for loc in locs ]...
[ -0.12877358496189117, -0.1642758846282959, 0.6222311854362488, -0.7329152226448059, -0.3538569211959839, -0.012454668991267681, 0.09785584360361099, 0.33623963594436646, -0.06045205518603325, -0.2944653034210205, -0.6168473958969116, 0.5076577663421631, 0.1858854740858078, -0.4767440855503...
def quantize ( graph, is _ training, extra _ option, weight _ bits = 8, # for last value quantize activation _ bits = 8, # for moving avg quantize ema _ decay = 0. 999, quant _ delay = none, vars _ collection = ops. graphkeys. moving _ average _ variables ) : if extra _ option is none : return input _ to _ ops _ map = ...
[ 0.10913106799125671, 0.1890876144170761, 0.9562903046607971, 0.26745206117630005, 0.47589418292045593, -0.46865135431289673, 1.0990018844604492, -0.4268142580986023, 0.02845676615834236, 0.6310621500015259, -0.05234864726662636, -0.168203204870224, 0.4240880608558655, 0.08618789911270142, ...
def b _ delta _ similarity ( rewards, states, similarity, alpha ) : # init s _ names = set ( states ) v _ dict = { } rpe _ dict = { } r _ sim _ dict = { } for s in s _ names : v _ dict [ s ] = [ 0. ] rpe _ dict [ s ] = [ ] r _ sim _ dict [ s ] = [ ] for r, s, d in zip ( rewards, states, similarity ) : # # skip terminal...
[ 0.2903877794742584, 0.12706907093524933, 0.6926469802856445, -0.8175415396690369, -0.05113226920366287, 0.6326201558113098, 0.0029778943862766027, 0.7206370830535889, 0.01854899525642395, 0.9315357208251953, -0.40042245388031006, -0.2937181890010834, -0.21005243062973022, -0.18263995647430...
def test _ list _ decimal _ max _ length _ nistxml _ sv _ iv _ list _ decimal _ max _ length _ 1 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - maxlength - 1. xsd ", instance = " nistdata / list / deci...
[ -0.26644718647003174, 0.3138694763183594, 0.380881667137146, 0.8289780616760254, -0.12827470898628235, 0.3550850749015808, -0.5730106830596924, 0.5294499397277832, 1.4865798950195312, 0.1342320591211319, -0.8912612795829773, -0.5369904041290283, -0.12400753796100616, 0.21707896888256073, ...
def _ _ str _ _ ( self ) : sb = stringbuilder ( ) sb. append ( " digraph propnet \ n { \ n " ) for component in components : sb. append ( " \ t " + component. _ _ str _ _ ( ) + " \ n " ) sb. append ( " } " ) return sb. _ _ str _ _ ( )
[ -0.16050681471824646, -0.9516063332557678, 0.806801438331604, -0.6494781970977783, -0.3315436840057373, 0.4003262221813202, -0.42299818992614746, -0.31004512310028076, 0.29124853014945984, -0.9133211374282837, 0.5958688855171204, 0.014940796419978142, 0.035612963140010834, -0.8477416634559...
def mass _ prior _ model _ tag ( self ) - > str : if self. mass _ prior _ model is none : return " " return f " _ _ { conf. instance ['notation'] ['prior _ model _ tags'] ['mass'] [ self. mass _ prior _ model. name ] } "
[ 0.574140191078186, -0.7154536843299866, 0.6622205972671509, -0.5991419553756714, 0.30234935879707336, 0.6832339763641357, 0.04517223313450813, -0.22832080721855164, -0.5411149263381958, -0.13757242262363434, 0.23419888317584991, -0.05109065771102905, 0.7538452744483948, 1.121351957321167, ...
def aggregatecols ( self, * args ) : return _ snap. ptable _ aggregatecols ( self, * args )
[ -1.2968486547470093, 1.2063113451004028, 0.5277534127235413, 1.1378003358840942, 0.9407022595405579, 0.22545310854911804, 1.2513298988342285, -1.1572479009628296, -1.338375449180603, 0.2437448799610138, -0.32915765047073364, -0.7623665928840637, -0.8451693058013916, -0.5849561095237732, ...
def _ _ init _ _ ( self, password : str ) - > none : super ( ). _ _ init _ _ ( ) self. _ password : str | none = password
[ -0.14844700694084167, -0.16571295261383057, 0.3003314733505249, 0.08940204232931137, -0.21950222551822662, -0.8442934155464172, -0.08997632563114166, 0.3314139246940613, 1.0223993062973022, -0.506260097026825, -0.603747546672821, 0.36943668127059937, 0.2589780390262604, 0.7157845497131348,...
def as _ bits ( self ) : return " { : 0b } ". format ( self. c )
[ 0.649797260761261, -0.8011441230773926, 0.4889596998691559, -0.532860279083252, 0.9647367596626282, 1.0203572511672974, -0.40369510650634766, -1.0824638605117798, 0.2200929969549179, 0.060568634420633316, 0.12690913677215576, 0.8996789455413818, 0.1538846343755722, 0.47310394048690796, -...
def takespectral ( self, * args ) : return _ snap. tgstat _ takespectral ( self, * args )
[ 0.8552315831184387, 0.2615586519241333, 0.4755868911743164, -0.45898425579071045, -0.8472469449043274, -0.10707937180995941, 1.0648183822631836, -0.6861864328384399, -0.7610703110694885, 0.3441692292690277, -0.3354874551296234, -0.23269008100032806, -0.39186447858810425, 0.6743517518043518...
def deledge ( self, * args ) : return _ snap. pngraphmp _ deledge ( self, * args )
[ -0.4648749828338623, 0.6711584329605103, 0.47300443053245544, 0.05448763445019722, 0.8719508647918701, 0.4058249890804291, 0.17646269500255585, 0.10463137179613113, -0.6078344583511353, -0.9678906202316284, -0.20155560970306396, -0.37733447551727295, -1.9864044189453125, 0.3594846427440643...
def qnm _ time _ decay ( tau, decay ) : return - tau * numpy. log ( decay )
[ 0.37729376554489136, -1.0503093004226685, 0.03417930752038956, -0.09220091998577118, -0.3614579737186432, -0.42572006583213806, -1.224320411682129, -1.0474271774291992, 0.6591343283653259, -0.07207541167736053, 0.18959109485149384, -0.13379724323749542, 0.05731598287820816, 0.2779859602451...
def _ _ init _ _ ( self, * args ) : _ snap. tintinthhi _ swiginit ( self, _ snap. new _ tintinthhi ( * args ) )
[ -0.016919143497943878, -0.36481669545173645, 0.18935826420783997, 0.6214338541030884, 0.5603827834129333, 0.07938514649868011, 0.3952069878578186, 0.09480436146259308, -1.1704440116882324, -0.03316536173224449, -1.5235751867294312, 0.1489889770746231, -0.9312645792961121, 0.415481060743331...
def reverse ( self, * args ) : return _ snap. tstrv _ reverse ( self, * args )
[ -1.3710607290267944, 0.7247528433799744, 0.014233731664717197, -0.5499652028083801, 0.8231842517852783, 0.020195046439766884, 1.2106261253356934, 0.9335132241249084, -1.9484658241271973, -0.5640947818756104, -0.8210281729698181, 0.07570836693048477, -0.3397568166255951, -0.2935123145580292...
def bc2cd ( self, bc ) : sd = self. m * ballistics. kg2lb / ( self. cal * * 2 ) cg = 0. 5191 self. cd = sd * cg / bc self. bc = bc return self. cd
[ 0.8846115469932556, -0.5250442624092102, 0.3688628673553467, -0.127751886844635, -1.0933512449264526, 0.8594008088111877, 0.7248691916465759, -0.08290984481573105, 0.18216952681541443, -0.6996949315071106, 0.08705458045005798, 0.15315058827400208, -1.3849574327468872, 0.5809116959571838, ...
def isnode ( self, * args ) : return _ snap. tngraph _ isnode ( self, * args )
[ -0.48219922184944153, 0.881576657295227, 0.13625766336917877, 0.8082923889160156, 1.2103346586227417, -0.402055025100708, 0.5141005516052246, 0.24551469087600708, -0.08884114027023315, 1.2498512268066406, -0.3292604386806488, -1.0432970523834229, -0.7795613408088684, -0.12127537280321121, ...
def bellman _ a ( self, a, v, gamma, str _ state, rewards ) : # update for one state r = rewards [ str _ state ] [ a ] next _ state = self. transition ( str _ state, a ) r + = gamma * v [ next _ state ] return r
[ -0.7723267674446106, -1.4241973161697388, 0.43156933784484863, -1.4097044467926025, -0.4207151234149933, -0.4808579683303833, -0.2565572261810303, 0.3873398005962372, 0.9929340481758118, 0.6635379195213318, -0.08273907005786896, 0.8925488591194153, -0.7773106098175049, -0.6873846650123596,...
def createsession ( ) : engine = create _ engine ('sqlite : / / / / home / juho / dropbox / koti / food. db ', echo = false ) # create a session session = sessionmaker ( bind = engine ) return session ( )
[ -0.22143399715423584, 0.05691978335380554, 0.32393068075180054, 0.38064056634902954, 0.5464619398117065, -0.5076887011528015, -0.6013105511665344, -0.6651846170425415, -0.1554955542087555, -0.7182223796844482, -0.3434056043624878, -0.22614707052707672, -0.29424700140953064, -0.678236782550...
def generate _ answer ( self, question ) : # recognize intent of the question using ` intent _ recognizer `. # don't forget to prepare question and calculate features for the question. prepared _ question = text _ prepare ( question ) features = self. tfidf _ vectorizer. transform ( [ prepared _ question ] ) intent = s...
[ 0.03161033242940903, -0.6916811466217041, 0.528788685798645, 0.371160626411438, -0.1905907839536667, 0.21511974930763245, -0.20587991178035736, -0.3945886492729187, -0.03975043445825577, 0.24419954419136047, -0.17159250378608704, -0.40670067071914673, -0.028507649898529053, 0.1039506047964...
def _ process _ duplicate _ extensions ( self, ext ) : ext _ dict = dict ( ) no _ duplicate _ ext = [ ] for e in ext : if type ( e ) in ext _ dict : pass else : no _ duplicate _ ext. append ( e ) ext _ dict [ type ( e ) ] = true return no _ duplicate _ ext
[ -1.0444483757019043, 0.07804887741804123, 0.7814865112304688, -0.0065273684449493885, -0.23223848640918732, 0.07694151997566223, -0.19560931622982025, -0.22057946026325226, 0.9361082315444946, 1.6469756364822388, -1.3641033172607422, 0.500467836856842, -0.2519060969352722, 1.10341179370880...
def get _ vaccine _ slots ( vaccine _ data, failed _ retries ) : try : df = pd. dataframe ( vaccine _ data ['sessions'] ) if df. empty : return false df = df [ required _ fields ] df = df [ df ['vaccine']. isin ( config _ dict ['vaccine']. split ( ',') ) ] df = df [ df ['min _ age _ limit']. isin ( [ int ( x ) for x in...
[ -0.10177212953567505, -0.12189096212387085, 0.8887438178062439, -0.040869686752557755, -0.4121609032154083, 0.17141537368297577, -0.671684205532074, 0.017965679988265038, -0.8872200846672058, 0.7562594413757324, 0.26635560393333435, 0.9927231669425964, 0.34168875217437744, 0.42880317568778...
def pretty _ print ( matrix ) : print ( " " * 5 ), for idx in range ( 1, 10 ) : sys. stdout. write ( " % d " % idx ) print ( " " ) for idx, genes in enumerate ( matrix ) : print ( " p % d : % s " % ( ( idx + 1 ), ( " " * ( 2 if ( idx < 9 ) else 1 ) ) ) ), for gene in genes : if gene : char = " # " else : char = ". " sy...
[ 0.31529200077056885, 0.3854542672634125, 0.6957228183746338, -0.09210563451051712, -0.241074338555336, -0.044085074216127396, 0.3596746325492859, -0.1256900131702423, -0.4225567579269409, 0.4085592031478882, 0.5891592502593994, 0.5215417146682739, 0.10988509654998779, 0.14140771329402924, ...
def _ _ init _ _ ( _ _ self _ _, resource _ name : str, opts : optional [ pulumi. resourceoptions ] = none, auto _ renew : optional [ pulumi. input [ bool ] ] = none, category : optional [ pulumi. input [ str ] ] = none, description : optional [ pulumi. input [ str ] ] = none, license _ resource : optional [ pulumi. in...
[ 0.6786099672317505, -0.7060729265213013, 0.5142080187797546, -0.8660577535629272, 0.23911747336387634, 0.1586093306541443, 0.17086483538150787, 0.4932229518890381, 0.7285186052322388, 0.4474327266216278, 0.19859559834003448, 0.5736009478569031, -0.01440487802028656, -0.4180491268634796, ...
def test _ edit _ specimen _ img _ logged _ in ( self ) : with app. test _ client ( ) as client : client. post ( " / login ", data = { " username " : " tester1 ", " password " : " password1 " }, follow _ redirects = true, ) resp = client. get ( " / specimen / 12 / edit _ image " ) html = resp. get _ data ( as _ text = ...
[ -0.7212277054786682, -0.07192046195268631, 0.5165167450904846, 0.5957305431365967, 0.4313455820083618, 0.07588201761245728, 0.46978163719177246, 0.25105223059654236, 0.11804508417844772, -0.028957510367035866, -0.04374071583151817, 0.6790586709976196, 0.17886720597743988, 0.066178716719150...
def getanfeffdiam _ pneanet ( * args ) : return _ snap. getanfeffdiam _ pneanet ( * args )
[ -0.3322889804840088, 0.6742619872093201, 0.21285121142864227, 0.12254232913255692, 0.2753048539161682, 0.4440922141075134, -0.6924734115600586, -1.1275030374526978, -0.8104697465896606, -1.3588110208511353, -0.12689277529716492, 0.04277573153376579, 0.4663543701171875, 1.4029271602630615, ...
def mask ( data, * * options ) : return get _ component ( loggingmaskingpackage. component _ name ). mask ( data, * * options )
[ 0.16196894645690918, -0.09625837206840515, 0.27283188700675964, 0.5518285036087036, 0.38119980692863464, -0.46466097235679626, -0.8073018193244934, -0.46202507615089417, 1.1775749921798706, -0.42437541484832764, 0.1692471206188202, 0.07441350817680359, -0.5000922083854675, -0.6581348180770...
def sg _ marker _ plot ( x, y, up, sg _ mrk _ sz, sg _ dist, hor _ pos = true ) : if up : mrk _ tmp = sg _ mrk _ up else : mrk _ tmp = sg _ mrk _ dw if hor _ pos : plt. plot ( x + sg _ dist, y, color = sg _ col, markeredgecolor = sg _ col, markersize = sg _ mrk _ sz, marker = mrk _ tmp ) else : plt. plot ( x, y + sg _ ...
[ -0.012085960246622562, 0.28031426668167114, 0.528722882270813, 0.21483582258224487, -0.7293719053268433, 0.5233672857284546, 0.08756650984287262, 0.6417765021324158, 0.3837001919746399, 0.5925097465515137, -0.1746336668729782, 1.0740610361099243, 0.15585364401340485, -0.09270281344652176, ...
def seturl ( self, url ) : if parseurl ( resolveurl ( url, self. cname ) ) > = url _ invalid : return false # syntax error # url looks valid, so use it if self. url! = url : self. url = url self. camera _ info = none # missing if url changed return true
[ -0.7198292016983032, -0.2166311889886856, 0.5690121054649353, 0.5478640794754028, -0.11035963892936707, 0.47540518641471863, -0.3759228587150574, 0.3358655273914337, 0.69693523645401, -0.17504456639289856, -1.0707672834396362, -0.5635502338409424, -0.7812586426734924, 0.6031733751296997, ...
def delifin ( self, * args ) : return _ snap. tcncomv _ delifin ( self, * args )
[ -0.050118617713451385, 0.641583263874054, 0.3692028820514679, -0.25197964906692505, 0.48826441168785095, 0.3553171157836914, 0.4802301228046417, 0.23779653012752533, -0.8526638746261597, -1.0787075757980347, -0.42518389225006104, -0.37208840250968933, -1.0764354467391968, 1.014144897460937...
def configure _ app ( app, config = none ) : app. config. from _ object ( defaultconfig )
[ 0.8634085059165955, -0.010221283882856369, 0.2008628398180008, 1.011156678199768, 0.39572495222091675, 0.1816118359565735, -0.5197119116783142, 1.1363587379455566, 0.7966028451919556, 0.6880522966384888, -0.9174894094467163, -0.7965590357780457, 0.5695744752883911, 0.5003087520599365, 0....
def get _ rp _ ra ( r, vr, vt, params ) : e =. 5 * ( vr * * 2. + vt * * 2. ) + phi ( r, params ) l = vt * r eps = 1e - 8 if np. abs ( rperi _ rapo _ eq ( r, e, l, params ) ) < 1e - 7 : # we are at peri or apo peps = rperi _ rapo _ eq ( r + eps, e, l, params ) meps = rperi _ rapo _ eq ( r - eps, e, l, params ) if peps <...
[ 0.1653093844652176, -0.8065211176872253, 0.9247671365737915, -1.1951971054077148, -0.351931095123291, 0.24122357368469238, -0.1129964143037796, -0.16354161500930786, 0.5586594343185425, 0.8640094995498657, 0.7288618683815002, 0.15744708478450775, -0.930272102355957, 0.40956124663352966, ...
def initialize _ path _ client _ hack ( self, root _ api ) : self. _ clients ['paths']. _ initialize _ with _ recipe _ api ( root _ api )
[ -0.5807782411575317, -0.49735116958618164, 0.19919772446155548, 0.996438205242157, 0.41200917959213257, -0.1978926807641983, 0.7163981795310974, -0.02168574184179306, -0.2743438184261322, -0.016112497076392174, -0.5389622449874878, 0.51169353723526, -0.5536991953849792, 0.3974960148334503,...
def run ( self ) : thread = thread ( target = constant _ record _ and _ copy, args = ( self. updatetargetangle, ) ) thread. start ( ) while self. target _ angle = = none or self. theta = = none : self. r. sleep ( ) while not rospy. is _ shutdown ( ) : self. commander. publish ( self. createvelocity ( ) ) # print " angl...
[ -0.03390822932124138, -0.7615100145339966, 0.42042076587677, 0.39373651146888733, 0.9008229970932007, 0.480858713388443, 0.022010227665305138, 0.24259361624717712, 0.12848666310310364, -0.17071883380413055, 1.0059515237808228, 1.231580138206482, -0.673024594783783, -0.3984082341194153, 0...
def getsandboxspec ( self, appc _ contents, sandbox _ spec _ name ) : wrapper = sandboxspecwrapper ( ) overlay _ name = none app _ list = json _ lib. getvalueoftype ( appc _ contents, key _ apps _ list, list,'app list') for app in app _ list : json _ lib. assertisinstance ( app, dict,'app') # aid debugging of problems ...
[ 0.009997154586017132, -0.06327956914901733, 0.6464152932167053, 0.2278931438922882, -0.18572530150413513, 0.01676803082227707, -0.22660905122756958, -0.6412724852561951, 0.5393218398094177, 0.44044917821884155, 0.5572752356529236, 0.329609215259552, 0.4593821167945862, 0.6799156069755554, ...
def test _ getextensionsnotsupportedonjava ( self ) : self. addcleanup ( setattr, sys, " platform ", sys. platform ) sys. platform = " java " self. writesetup ( " twisted. sorcery ", " topfiles " ) self. assertextensions ( [ ] )
[ -0.46850401163101196, 0.5955275893211365, 0.3586291968822479, 0.5291765332221985, 0.30860525369644165, -0.051936324685811996, 0.3503924012184143, -0.28764933347702026, 0.6462216973304749, 0.5931779146194458, -0.5424506068229675, -0.6117731332778931, -0.47310203313827515, 0.7241474390029907...
def dir _ threshold1 ( img, sobel _ kernel = 3, thresh = ( 0, np. pi / 2 ) ) : # calculate the x and y gradients sobelx = cv2. sobel ( img, cv2. cv _ 64f, 1, 0, ksize = sobel _ kernel ) sobely = cv2. sobel ( img, cv2. cv _ 64f, 0, 1, ksize = sobel _ kernel ) # take the absolute value of the gradient direction, # apply ...
[ 0.1711140275001526, 0.5376672744750977, 0.9239672422409058, 0.7844616770744324, -0.3974388539791107, -0.07103967666625977, -0.010981123894453049, -0.4395473301410675, 0.21106010675430298, 0.16817128658294678, 0.1468854397535324, 0.8449442386627197, 0.10473379492759705, 0.5887616276741028, ...
def password ( self, password ) : rep = self. send ( f " pass { password } " + crlf ) return rep
[ -0.5280773639678955, -0.03372406214475632, 0.4101179540157318, -0.07793192565441132, 0.47324138879776, -0.3423898220062256, -0.2582664489746094, -0.15667547285556793, 0.45298323035240173, 0.16545923054218292, 0.10811930894851685, -0.22349032759666443, -1.340118169784546, -0.556208074092865...
def createtestuser ( username ) : # todo : refactor how i'm dealing with user creation for these tests. it's # kind of kludgey right now... user, created = user. objects. get _ or _ create ( username = username ) if created : user. set _ password ('12345') user. save ( ) return user
[ 0.12840059399604797, -0.01823265105485916, 0.21798910200595856, 0.2674184739589691, 0.7480963468551636, 0.28681451082229614, 0.9763733744621277, -0.766838788986206, 0.6340860724449158, -0.5045062303543091, -0.7486699819564819, -1.549741268157959, -0.6996310949325562, 0.18936729431152344, ...
def get _ names ( genes, individual ) : name = " " for idx in individual : name + = genes [ idx ] + " " return name
[ -0.6742815375328064, -0.36623886227607727, 0.4744921624660492, -0.06704892963171005, -0.19133274257183075, 0.32470864057540894, -1.3296464681625366, 0.4920077919960022, -0.5059230327606201, 1.585564374923706, -0.34809666872024536, 1.0581974983215332, 0.3590365946292877, -0.1610490828752517...
def copyuniquefrom ( self, * args ) : return _ snap. tintprv _ copyuniquefrom ( self, * args )
[ -0.984545111656189, -0.5870705842971802, 0.48901644349098206, 0.1958068609237671, -0.04306250065565109, 0.42613357305526733, 0.23932108283042908, 0.6017510294914246, -0.08577118068933487, -0.19725865125656128, -0.9021096229553223, -0.18136616051197052, -0.5247399210929871, -0.1408019959926...
def bookmarks ( self ) : div = self. _ soup _ bookmarks. find ( " div ", { " class " : " bookmarks - index dashboard filtered region " } ) h2 = div. h2. text. split ( ) return int ( h2 [ 4 ]. replace ( ', ','' ) )
[ -0.2988520860671997, 0.4600312113761902, 0.539010763168335, -0.34825220704078674, 0.4360140264034271, -0.5922011137008667, 0.816535234451294, 0.20311643183231354, -0.46011096239089966, -0.026149718090891838, -0.14927223324775696, 0.29697367548942566, -0.208851158618927, -0.721220850944519,...
def getsattrdatn ( self, * args ) : return _ snap. tneanet _ getsattrdatn ( self, * args )
[ -0.30669498443603516, -0.1454191654920578, 0.34317588806152344, 0.03685692697763443, 0.658099889755249, -0.4656955599784851, 0.5564999580383301, 0.15368832647800446, -0.46483153104782104, -1.3814071416854858, -0.774478554725647, 0.20585031807422638, 0.8064075708389282, 1.0416269302368164, ...
def addkey ( self, * args ) : return _ snap. tintinth _ addkey ( self, * args )
[ -1.4436196088790894, 0.2991717755794525, 0.5499309301376343, 0.982090950012207, 0.5478392839431763, 0.4756177067756653, -0.004105499945580959, -0.991067111492157, -0.5632529854774475, -0.4649544060230255, -0.7718207240104675, -0.06636957824230194, -1.9119173288345337, 0.5406519770622253, ...
def _ _ iadd _ _ ( self, * args ) : return _ snap. tuint64 _ _ _ iadd _ _ ( self, * args )
[ -1.1286216974258423, 0.3312899172306061, 0.09475139528512955, 0.05737362802028656, -0.4082668721675873, 0.7650017142295837, -0.1996181756258011, -0.01956886798143387, -0.11703231930732727, 0.6953521370887756, 1.295966625213623, -0.9131291508674622, 0.0692412331700325, -0.17339973151683807,...
def test _ accounting _ average _ cost _ basis ( accountant ) : pot = accountant. pots [ 0 ] events = pot. processed _ events cost _ basis = pot. cost _ basis manager = cost _ basis. get _ events ( a _ eth ). acquisitions _ manager # step 1. add an acquisition add _ acquisition ( pot, amount = fval ( 2 ), price = fval ...
[ 0.13884420692920685, -0.34327030181884766, 0.8096945285797119, 0.5547286868095398, 0.39634907245635986, 0.6948913335800171, 1.0586315393447876, -0.47151198983192444, 0.15479828417301178, 0.1206333264708519, 0.33510881662368774, -0.48734351992607117, 0.6022115349769592, 0.3869412839412689, ...
def run ( main = none, argv = none ) : # define help flags. _ define _ help _ flags ( ) # parse known flags. argv = flags. flags ( _ sys. argv if argv is none else argv, known _ only = true ) main = main or _ sys. modules [ " _ _ main _ _ " ]. main # call the main function, passing through any arguments # to the final ...
[ -0.3839140236377716, -0.06311865895986557, 0.7666959166526794, 0.7815167903900146, 0.3251708745956421, 0.5590499043464661, 0.3237975239753723, 0.9022075533866882, -0.10185466706752777, -0.20819346606731415, -0.14137981832027435, 0.6290145516395569, -0.544437825679779, -0.001705698785372078...
def _ resolve _ dependencies ( self, dependencies ) : dependencies = dependencies if isinstance ( dependencies, list ) else \ [ dependencies ] result = set ( dependencies ) for dependency in dependencies : result | = self. _ resolve _ dependencies ( dependency. depends _ on ) return result
[ -1.006454348564148, 0.7522473335266113, 0.6046518087387085, 0.5829801559448242, 0.46731433272361755, -0.8686309456825256, -0.5934919118881226, -0.18437480926513672, -0.014849265106022358, -0.34406578540802, -0.5229522585868835, -1.1233104467391968, -0.6246635913848877, 0.5490135550498962, ...
def intvattrvalueei ( self, * args ) : return _ snap. tneanet _ intvattrvalueei ( self, * args )
[ -0.6064706444740295, 0.21288543939590454, 0.09048148989677429, -0.06397134065628052, 0.8043715953826904, 0.5341210961341858, 0.4171661138534546, -0.460693359375, -1.3930168151855469, 0.47707462310791016, 0.5937246680259705, -1.126218318939209, 0.08798900246620178, 0.3651808798313141, 0.8...
def respond _ to _ auth _ challenge ( clientid = none, challengename = none, session = none, challengeresponses = none ) : pass
[ -0.32310596108436584, -0.9281817674636841, 0.3125269412994385, 0.6931720972061157, -0.43622294068336487, -0.7198077440261841, 0.8020593523979187, 0.5344390869140625, 1.4814012050628662, -0.2566964626312256, 0.03951519727706909, 0.4427112340927124, 0.12367163598537445, -0.518028199672699, ...
def average ( * attrs ) : return _ create _ and _ connect _ node ('average ', * attrs )
[ -1.1423919200897217, 1.0423983335494995, 0.3383994698524475, -0.05340438336133957, -0.7256013751029968, 0.22601810097694397, 0.5333999991416931, -0.16603705286979675, -0.8623932600021362, 0.32117193937301636, 0.15587791800498962, 0.23601964116096497, -0.1881735622882843, -0.357808381319046...
def test _ get _ token ( client, session, model, tokens ) : response = client. get ( " / models / 1 ", headers = { " authorization " : f " bearer { tokens ['read'] } " } ) assert response. status _ code = = 200 assert response. json [ " name " ] = = " ijo1366 "
[ -0.2443784773349762, -0.2825563848018646, 0.486725389957428, -0.3082593083381653, 0.5694006085395813, -0.09433774650096893, -0.728537917137146, -0.09445788711309433, -0.19347111880779266, -0.7119762301445007, -0.5020076632499695, 0.2993355095386505, 0.7551737427711487, -1.3042720556259155,...
def _ _ init _ _ ( self, learning _ rate : float, class _ weights : optional [ torch. tensor ] = none, * * kwargs : any ) - > none : super ( ). _ _ init _ _ ( * * kwargs ) self. weight _ decay = 1e - 4 self. learning _ rate = learning _ rate self. train _ metrics : list [ metric ] = [ areaunderroccurve ( ), areaunderpr...
[ 0.7261964678764343, 0.4586290717124939, 0.7094835638999939, 0.8421058058738708, -0.39385220408439636, 0.06769409030675888, 0.442965030670166, -0.1743389368057251, -0.1533835530281067, -0.36388906836509705, 0.03265542909502983, -0.018051398918032646, 0.9114282727241516, 0.8392794728279114, ...
def set _ value _ type ( self ) : if isinstance ( self. value, str ) : self. value _ type ='categorical'elif isinstance ( self. value, number ) : self. value _ type ='numerical'else : raise typeerror ( f'value { self. value } is neither { str } nor { number }')
[ -0.2516045868396759, -0.3928174376487732, 0.3914549648761749, 0.3091569244861603, 0.6385061740875244, 0.7103097438812256, -0.026124581694602966, -0.01329269353300333, -0.5688856840133667, -0.6310387849807739, 0.6318528056144714, 1.506718397140503, 0.18418161571025848, 1.0929100513458252, ...
def _ _ str _ _ ( self ) : return ( " % g \ n " " % g \ n " " % g \ n " " % g \ n " " % g \ n " " % g \ n " " % g \ n " " % g \ n " " % g \ n " " % g \ n " " % g \ n " " % g \ n " " % g \ n " " % g \ n " " % s " % ( self. dx, self. dy, self. dz, self. dt, self. mx, self. my, self. mz, self. pmlx, self. pmly, self. pmlz...
[ -0.07041192799806595, -0.22040414810180664, 0.8596130013465881, -1.048823356628418, 0.01519942656159401, 0.2182588279247284, -0.7602564692497253, -1.1119544506072998, -0.577452540397644, -0.2806535065174103, -0.27105236053466797, -0.1200253888964653, 0.07980815321207047, 0.2221715152263641...