text
stringlengths
25
2.19k
embedding
listlengths
768
768
def eval _ js ( self, expr, callback = none ) : logger. log ( 5, " % s eval js % s ", self. _ _ class _ _. _ _ name _ _, expr ) return self. page ( ). runjavascript ( expr, callback or ( lambda _ : _ ) )
[ -0.5350419282913208, -0.384674996137619, 0.5855284929275513, -0.9960293173789978, -0.9968692064285278, -0.961401104927063, 0.24939526617527008, 0.027702821418642998, 1.114071249961853, 0.3917655348777771, -0.23119422793388367, 0.5431928634643555, -0.026365719735622406, 0.5562705993652344, ...
def begni ( self, * args ) : return _ snap. pneanetmp _ begni ( self, * args )
[ 0.3553639352321625, -0.008404629305005074, 0.36707377433776855, 1.3854917287826538, 1.1811004877090454, 0.11306300759315491, -0.5898592472076416, -0.7503142952919006, -0.7307002544403076, -0.5151917934417725, -0.7180269360542297, -0.9634979367256165, -0.8940182328224182, 0.6009166240692139...
def to _ global _ object _ id ( cls, uid ) : return binascii. unhexlify ( uid )
[ 0.3781925439834595, -0.5848454833030701, 0.3870950937271118, -0.1681516021490097, -0.2507132887840271, 1.5491409301757812, -0.4364991784095764, 0.33164888620376587, 0.782097578048706, 0.6044638156890869, -1.0414360761642456, 0.8857647180557251, -0.5877106785774231, -0.01290819514542818, ...
def test _ put _ token ( client, session, model, tokens ) : response = client. put ( " / models / 1 ", json = { " name " : " changed " }, headers = { " authorization " : f " bearer { tokens ['write'] } " }, ) assert response. status _ code = = 204
[ -1.0551918745040894, -0.04457144811749458, 0.375946581363678, -0.41191932559013367, 0.5395976901054382, -0.22415697574615479, -0.710735023021698, -0.06954727321863174, 0.0486733615398407, -0.030301887542009354, -1.7325856685638428, -0.09632433205842972, -0.031699150800704956, -0.4991267323...
def getval2 ( self ) : return _ snap. tstrtattrpr _ getval2 ( self )
[ 0.31568825244903564, -0.7960531115531921, 0.16672299802303314, 0.30484333634376526, -0.19229479134082794, 0.394916296005249, -0.39722537994384766, -0.49541935324668884, -1.170745849609375, -0.1708388477563858, -0.30920442938804626, -0.04053628072142601, 0.4558286666870117, 0.58904385566711...
def get _ nelbo ( self ) : batch _ size = tf. cast ( tf. shape ( self. x ) [ 0 ], " float32 " ) # the kl does not change among samples kl = self. get _ kl _ multi ( ) ell = self. get _ ell ( ) # batch _ ell = tf. reduce _ mean ( tf. reduce _ sum ( ell, [ - 1 ] ) ) batch _ ell = tf. reduce _ mean ( ell ) nelbo = kl - tf...
[ 0.5743197798728943, 0.0809246078133583, 0.6589957475662231, 0.8762789368629456, -0.09131551533937454, 0.8299407958984375, -0.34643301367759705, 0.08199009299278259, -0.3021625578403473, 0.5991274118423462, -1.2854011058807373, -0.07440247386693954, 0.5208858251571655, 0.6717627048492432, ...
def pid _ alive ( pid ) : try : os. kill ( pid, 0 ) except oserror : return false else : return true
[ 0.24803440272808075, -1.2117339372634888, 0.7198360562324524, 0.19187191128730774, 0.47953730821609497, 1.4346847534179688, -1.5427124500274658, 0.05044613033533096, -0.4034214913845062, 0.8105682134628296, 0.21905240416526794, -1.1306695938110352, -0.5283509492874146, -1.110945701599121, ...
def dropnested ( text, opendelim, closedelim ) : openre = re. compile ( opendelim ) closere = re. compile ( closedelim ) # partition text in separate blocks { } { } spans = [ ] # pairs ( s, e ) for each partition nest = 0 # nesting level start = openre. search ( text, 0 ) if not start : return text end = closere. searc...
[ -0.2836284935474396, -0.456509530544281, 1.1098408699035645, -0.3760465085506439, -1.625786542892456, 0.21938547492027283, 0.3300074338912964, -0.05331145599484444, 0.047428030520677567, -0.057811886072158813, 0.21438418328762054, -0.3054129481315613, -0.8836787343025208, -0.26055622100830...
def addchto ( self, * args ) : return _ snap. tcha _ addchto ( self, * args )
[ 0.5350562930107117, 0.8973909616470337, 0.21075406670570374, -0.4008331298828125, 0.6456286907196045, 0.2356465458869934, 0.4682178497314453, -0.011957312002778053, -1.7324613332748413, 0.1974240392446518, -0.7116869688034058, -0.6155678033828735, -0.0526544488966465, 0.6517829298973083, ...
def has _ latest _ version ( self, path ) : # no - op for already - absolute paths. path = self. absolute ( path ) if path not in self. cache : return false cached _ mtime = self. cache [ path ] [ 0 ] return os. stat ( path ). st _ mtime < = cached _ mtime
[ -0.01975088194012642, -0.6857356429100037, 0.7811130285263062, 0.5332862138748169, -0.7286832928657532, 0.6901307106018066, -0.5830526947975159, -0.5371772646903992, 0.29501378536224365, 0.906420111656189, -0.6792792081832886, 0.08683637529611588, 0.6161222457885742, 0.5112404227256775, ...
def print _ repo _ file ( cls, template _ name, repo _ url, gpg _ url, file _ name = none, * * kw ) : template = apt _ templates [ template _ name ] logger. info ('contents of % s deb sources. list file :'% template _ name ) logger. info ( template. format ( repo _ url = repo _ url, codename = kw. pop ('codename') ) )
[ -0.057140570133924484, 0.006674584001302719, 0.5478982925415039, -0.9721034169197083, 0.19935046136379242, -0.43874335289001465, -1.0147968530654907, 0.6524613499641418, -1.3053300380706787, -0.2081412374973297, -0.6455358266830444, -0.4539623558521271, 0.6914047002792358, 0.20969180762767...
def _ _ call _ _ ( self, * args ) : return _ snap. tintstrh _ _ _ call _ _ ( self, * args )
[ -0.3725656569004059, -0.14888623356819153, 0.06488775461912155, 0.4052152931690216, -0.8397275805473328, 0.17003925144672394, -0.5250350832939148, -0.999782145023346, -0.6487271189689636, -0.07883421331644058, -0.4230446517467499, -0.2778065800666809, -0.5247892141342163, -0.68704718351364...
def get _ default _ monitors ( self, config ) : return [ ]
[ -1.1935491561889648, 0.11804963648319244, 0.19815009832382202, 1.1797585487365723, 1.6949704885482788, 0.4529383182525635, -0.27766257524490356, -0.3996168375015259, 0.42332693934440613, -0.49023133516311646, -1.1073784828186035, -0.6061421036720276, -1.2690364122390747, 1.604246973991394,...
def _ _ lt _ _ ( self, * args ) : return _ snap. tstrvhi _ _ _ lt _ _ ( self, * args )
[ 0.8141798377037048, -0.14474129676818848, 0.08061913400888443, -1.0133419036865234, 0.5372292399406433, -0.30208149552345276, -0.23578812181949615, -0.6124030947685242, -1.3645802736282349, 0.06825808435678482, -0.829582929611206, -0.7270125150680542, -0.48361364006996155, 0.63646131753921...
def test _ get _ action _ step _ error _ action ( self ) : action _ resource = actionsstepsresource ( ) with patch. object ( actionsstepsresource,'get _ action _ db') as mock _ method : mock _ method. return _ value = none with pytest. raises ( apierror ) as api _ error : action _ resource. get _ action _ step ('59bb33...
[ -0.4941411316394806, -0.4572165012359619, 0.16532482206821442, 0.07295922935009003, 0.9601137638092041, -0.011776145547628403, -0.20970672369003296, -0.3477461040019989, -0.27512386441230774, 0.12065307050943375, -0.17769382894039154, 0.30400148034095764, 0.26803064346313477, 0.34392809867...
def split _ to _ segments ( sequence _ feature, segment _ lens ) : device = infer _ device ( sequence _ feature ) batch _ size = sequence _ feature. shape [ 0 ] feat _ dim = sequence _ feature. shape [ - 1 ] max _ num _ segments = segment _ lens. shape [ 1 ] max _ segment _ len = segment _ lens. max ( ). item ( ) # ens...
[ -0.6447075009346008, -0.04347611218690872, 0.7976093292236328, 0.20412959158420563, 0.6186010241508484, -0.651966392993927, 0.4369213879108429, 0.47274529933929443, 0.4279540479183197, 0.1805553287267685, -1.008622169494629, -0.17945998907089233, 0.12139588594436646, -0.6592440605163574, ...
def source _ file _ fixture ( tmpdir ) : source = tmpdir. join ( " error _ code. py " ) source. write ( " import collections \ nimport not _ a _ module \ nbar = collections. counter ( ) \ nprint ('foo') \ n " ) return source
[ 0.7119956612586975, 0.006676964927464724, 0.4081762731075287, -0.9569661617279053, 0.7149798274040222, 0.5120569467544556, 1.2043311595916748, 0.0404348187148571, -0.026592720299959183, -0.10093285888433456, -0.5168091654777527, -0.3507377803325653, -0.007080006413161755, 0.322812885046005...
def test _ stop _ asg _ scheduler ( aws _ region, tag _ key, tag _ value, result _ count ) : client = boto3. client ( " autoscaling ", region _ name = aws _ region ) launch _ conf _ name = " lc - test " + str ( randint ( 0, 1000000000 ) ) asg _ name = " asg - test " + str ( randint ( 0, 1000000000 ) ) launch _ asg ( aw...
[ -0.058968525379896164, -0.2189742624759674, 0.4999590218067169, -0.6440751552581787, -0.7641021609306335, 0.21081168949604034, -0.055137839168310165, -0.1295001059770584, -0.3518737852573395, 0.8263413906097412, -0.39995333552360535, -0.06369835138320923, 0.39497125148773193, 0.31494355201...
def pintodatabase ( t ) : import prconfig print t. recreateme ( ) yn = raw _ input ( " pin to the database? y / [ n ] " ). strip ( ). lower ( ) if not yn. startswith ( " y " ) : return f = open ( " / ". join ( prconfig. _ _ file _ _. split ('/') [ 0 : - 1 ] + [ " testfiledb. py " ] ),'a') if not f : raise ioerror ( " d...
[ -0.14157743752002716, 0.01834757812321186, 0.7896089553833008, -0.15751437842845917, 0.5921252369880676, 1.459313988685608, 1.2649521827697754, 0.005100339185446501, -0.3074353337287903, -0.17923197150230408, -0.24410396814346313, 0.10458389669656754, -1.086513638496399, 0.1067341193556785...
def display _ banner ( self ) : # we do not display the prompt until negotiation # is considered successful. self. shell. display _ text ( prompt _ eval ( self. shell, u'\ r \ n '. join ( ( u'', u'', u'welcome to % s version % v ', u'local time is % t % z ( % z ) ', u'plese wait... { } '. format ( random _ busywait ( )...
[ 0.4773525595664978, 0.32531094551086426, 0.8066375255584717, 0.36361366510391235, 0.15395759046077728, 1.2358496189117432, -0.4443618059158325, 0.09457158297300339, -0.19380448758602142, -0.1198107972741127, -0.9561650156974792, 1.0395594835281372, -0.26804301142692566, 0.190789595246315, ...
def print _ infos ( self, cmd ) : if cmd. all or cmd. c _ macro : print ( self. as _ c _ macros ( ) ) if cmd. all or cmd. product _ info : print ( self. product _ info ( ) ) if cmd. all or cmd. tex _ macro : print ( self. as _ tex _ macros ( ) )
[ 0.22272364795207977, -1.1050136089324951, 0.37039685249328613, 0.6289717555046082, 0.015289908275008202, 0.48303502798080444, -0.31102612614631653, -0.6479880809783936, -0.5367379784584045, -0.623261034488678, 0.6062793731689453, 0.8227187395095825, 0.7522137761116028, 1.6978871822357178, ...
def getnrfext ( * args ) : return _ snap. tstr _ getnrfext ( * args )
[ 0.3976673483848572, 1.0419888496398926, 0.29353877902030945, 0.36125239729881287, 0.5271601676940918, -0.36202648282051086, -0.4789227247238159, -0.7110916972160339, -0.5981135964393616, -0.842746376991272, -0.8007171154022217, 0.44249674677848816, -0.5148399472236633, 0.8097294569015503, ...
def test _ home _ renders ( self ) : c = client ( ) response = c. get ( reverse ('index _ view') ) self. assertequal ( response. status _ code, 200 ) self. asserthasgoogleanalytics ( response )
[ 1.0980002880096436, 0.9406932592391968, 0.321974515914917, 0.7199069857597351, 1.2358478307724, 0.9164898991584778, 0.4247504770755768, -0.18395735323429108, 0.20862343907356262, -1.05380117893219, 0.2621484398841858, 0.49833187460899353, 0.10826144367456436, -0.03451007604598999, -0.584...
def wall _ from _ geometry ( self, geom, param = 1, calculate _ angle = false ) : # todo : use self. _ rasterize, using shapelib. rasterize mat = geom _ rasterize ( geom, self. size, self. size _ in _ pixels ) mat * = param if calculate _ angle : ang = self. angles _ from _ geom ( geom ) else : ang = none wall = wall (...
[ 0.5127062201499939, 0.6310620307922363, 0.3954634666442871, 0.6327710747718811, -0.1641780585050583, 0.01790766976773739, 0.3437851369380951, -1.3664779663085938, -0.0759475901722908, -0.45489028096199036, -0.05563252046704292, 0.37557849287986755, -0.20804885029792786, 0.3079301714897156,...
def _ check _ index ( self, index ) : if index < 0 or index > = self. size : raise invalidarrayindex ( " expected range of index 0 to { }, provided { } ". format ( self. size, index ) )
[ -0.6021469831466675, -0.3862292766571045, 0.3159725069999695, -0.2598768472671509, -0.0631398856639862, 0.8906849026679993, -0.25298088788986206, 0.34174644947052, 0.5273692607879639, -0.4914233982563019, 0.17111338675022125, 0.7380291819572449, -0.257154256105423, 0.25654950737953186, 0...
def _ build _ summaries ( self, batch _ type, max _ outputs = 3 ) : raise notimplementederror ('_ build _ summaries should be implemented in child components.')
[ -0.27445435523986816, 0.2081770896911621, 0.48965007066726685, 0.28553086519241333, 0.4447055459022522, 0.4918685257434845, -0.3130163252353668, 0.2103249728679657, -0.20697900652885437, -0.4590911865234375, 0.014931351877748966, -0.5309572815895081, 0.8361161947250366, -0.256702184677124,...
def plotfiresize ( self, * args ) : return _ snap. tffggen _ plotfiresize ( self, * args )
[ -0.9080920219421387, 1.9808539152145386, 0.26876673102378845, 0.503645658493042, -0.5168209075927734, -0.2939847409725189, 0.5344057679176331, 0.7447531223297119, -1.1530063152313232, -0.7296143770217896, -1.0433250665664673, -0.367938756942749, -0.41427937150001526, 1.8850016593933105, ...
def putch ( self, * args ) : return _ snap. tcha _ putch ( self, * args )
[ -0.17879949510097504, 1.080394983291626, 0.36640694737434387, -0.28647997975349426, 0.7853136658668518, 1.5069295167922974, 1.4703198671340942, 0.17021511495113373, -0.6559469699859619, 0.3564474880695343, -0.2924209535121918, -0.33233723044395447, -0.287232369184494, 0.24469368159770966, ...
def eta _ test ( eta _ test _ array ) : for i in eta _ test _ array : radius = find _ radius ( mass _ star, delta _ m, i, xi, mue, pp _ factor ) # converting to mks pc, rhoc, tc = central _ thermal _ for _ main ( mass _ star, radius, mue ) t _ eff = teff _ for _ main ( mass _ star ) # find integrated values ; arrays in...
[ -0.12442684918642044, -0.8949224352836609, 0.7186303734779358, -0.31899529695510864, 0.5676790475845337, 0.52048259973526, 0.006977573037147522, -0.17153620719909668, -1.008933424949646, 0.46110597252845764, 0.34229978919029236, -0.648353636264801, -0.14454536139965057, 1.288217544555664, ...
def on _ panic ( etype, value, tb ) : logging. critical ( traceback. format _ exception ( etype, value, tb ) ) _ be. propagate _ exc ( systemexit, 1 )
[ 1.025848627090454, 0.08171967417001724, 0.39854660630226135, 1.2025963068008423, -0.014459487050771713, 0.06713002175092697, -0.28915807604789734, 0.2188362330198288, 0.45493873953819275, 1.4438973665237427, 0.07611512392759323, -0.3886508047580719, 0.5736041069030762, -0.1766660064458847,...
def list _ directories ( root _ dir ) : logger = logging. getlogger ( _ _ name _ _ ) logger. debug ('listing directories in % s'% root _ dir ) directories = [ ] for d in os. listdir ( root _ dir ) : path = os. path. join ( root _ dir, d ) if os. path. isdir ( path ) : directories. append ( path ) return directories [ :...
[ 0.022445296868681908, -0.38841721415519714, 0.6976161599159241, 0.7269198298454285, 0.3376215398311615, -0.5030505061149597, -0.3187543451786041, 0.3032926619052887, 1.2033401727676392, -0.3218003809452057, 0.33340755105018616, 0.873269259929657, -0.39993980526924133, 1.2175551652908325, ...
def sgminer _ parser ( ) : s = socket. socket ( socket. af _ inet, socket. sock _ stream ) s. connect ( ('127. 0. 0. 1 ', int ( 4028 ) ) ) s. send ( json. dumps ( { " command " : " gpu ", " parameter " : " 0 " } ) ) # s. send ( json. dumps ( { " command " : api _ command [ 0 ] } ) ) response = linesplit ( s ) response ...
[ 0.2687738239765167, -0.18236969411373138, 0.9388169050216675, 0.38241681456565857, 0.6191237568855286, -0.31258076429367065, -0.7820013165473938, -0.8020191788673401, -0.7522514462471008, -0.09479668736457825, -0.01094963401556015, 0.46258124709129333, -0.5337806940078735, 0.75965833663940...
def stack _ authentication ( self ) : return self. _ stack _ authentication
[ -0.8542559146881104, 0.5235827565193176, 0.2772113084793091, 1.6043769121170044, -0.23348814249038696, 0.27361243963241577, 1.020592451095581, -0.679737389087677, 0.27204737067222595, 0.7334489226341248, -0.6627556085586548, 0.938327431678772, -0.5341078042984009, -0.4672410190105438, 0....
def cntoutdegnodes _ pneanet ( * args ) : return _ snap. cntoutdegnodes _ pneanet ( * args )
[ -1.5074719190597534, 0.7078402042388916, 0.12202535569667816, -0.7979552745819092, 0.7368612885475159, 0.6337320804595947, -0.3669336140155792, 0.15073145925998688, -1.0895905494689941, -0.1816253811120987, -0.8804362416267395, -1.0267449617385864, 0.35807403922080994, 0.21539561450481415,...
def isintvattrdeletede ( self, * args ) : return _ snap. pneanet _ isintvattrdeletede ( self, * args )
[ -0.6262933611869812, -0.2931324243545532, 0.5136222839355469, 0.026734935119748116, 0.695642352104187, 0.714948832988739, -0.7355512976646423, -0.8816717267036438, -0.2859945297241211, 0.4377218186855316, 0.4569716155529022, -1.1306424140930176, -1.5027393102645874, 0.05993202328681946, ...
def init _ deck ( self ) : s = 8 h = 0 c = 0 d = 0 if self. suits = = 2 : s = 4 h = 4 elif self. suits = = 4 : s = 2 h = 2 c = 2 d = 2 for i in xrange ( s ) : for j in xrange ( 1, 14 ) : self. _ deck. append ( [ j,'s ', false ] ) for i in xrange ( h ) : for j in xrange ( 1, 14 ) : self. _ deck. append ( [ j,'h ', false...
[ -0.6181327104568481, 1.0046111345291138, 0.6208606958389282, -0.6732049584388733, 0.09594368934631348, -0.2116563767194748, 0.34871962666511536, 0.42023560404777527, 0.11231254041194916, -0.5603870749473572, -0.49255135655403137, 0.16019219160079956, 0.2869209051132202, 0.70517897605896, ...
def test _ record _ rejection _ in _ rejected _ state ( ) : with open ( '. / src / test / cve _ tests / cve _ record _ fixtures / rejectexisting. json') as json _ file : data = json. load ( json _ file ) res = requests. put ( f'{ env. awg _ base _ url } { cve _ url } / cve - 1999 - 0001 / reject ', headers = utils. bas...
[ 0.11994166672229767, -0.01179558876901865, 0.471577912569046, -0.5523663759231567, 0.3618031442165375, 0.716759204864502, -0.3286992311477661, 0.6305767893791199, -0.16618666052818298, 0.9892981052398682, -0.675747811794281, 0.8970678448677063, 0.11217626184225082, -0.968892514705658, 0....
def get _ git _ version _ fp ( ) : try : import st _ version return st _ version. get _ git _ version ( ) except importerror : return'' except attributeerror : return''
[ 0.7022193074226379, -0.34137454628944397, 0.3244055509567261, -0.05600178241729736, -0.373573899269104, 0.34257379174232483, 0.17291182279586792, -0.9542708396911621, -0.5648990273475647, 0.7161673903465271, -0.13820764422416687, -0.07823693752288818, -0.1940622180700302, -0.11988186836242...
def put ( self, id, host ) : host _ dct = host. as _ dict ( ) host = pecan. request. hosts _ rpcapi. update _ computehost ( id, host _ dct ) if host is none : raise exceptions. notfound ( object = {'host _ id': id } ) return host. convert ( host )
[ -0.7461400032043457, -0.22847671806812286, 0.3808840215206146, 0.015399374067783356, -0.5723114013671875, 0.6672359108924866, -0.652967095375061, 0.004839817527681589, -0.3399958610534668, 0.7616329193115234, -0.409476101398468, 0.5597190856933594, -1.2775146961212158, -0.19917328655719757...
def list _ genomes ( conf ) : print'\ navailable genomes :'for genome in conf ['genomes'] : print genome print sys. exit ( )
[ 0.7723850011825562, -0.3133775591850281, 0.5078450441360474, 0.7647637724876404, 0.2511770725250244, 0.6564863324165344, -0.6301167011260986, 0.5527995228767395, -0.6864191889762878, 1.1478652954101562, -0.7422786951065063, 1.5922456979751587, 0.17015650868415833, 1.252800703048706, -0.2...
def test _ split _ param _ vec ( self ) : # store the results of split _ param _ vec ( ) split _ results = mixed _ logit. split _ param _ vec ( self. fake _ betas, return _ all _ types = false ) # check for expected results. self. assertisnone ( split _ results [ 0 ] ) self. assertisnone ( split _ results [ 1 ] ) npt. ...
[ -0.9176642298698425, -0.11127740889787674, 0.7375258803367615, -0.30371755361557007, 1.191849708557129, 0.28168511390686035, 0.44271305203437805, -0.5433316826820374, -0.3617035746574402, -0.3585614264011383, -1.131935715675354, 0.3630406856536865, -1.10035240650177, -0.20278403162956238, ...
def load _ model ( self, opt, model _ id = none, * * model _ kwargs ) : model _ id = self. preload _ model ( opt, model _ id = model _ id, * * model _ kwargs ) load _ time = self. models [ model _ id ]. load _ time return model _ id, load _ time
[ -0.44645601511001587, 0.3557441830635071, 0.5786489844322205, 0.1804639846086502, 0.09040538221597672, -0.22726373374462128, -1.136718511581421, -0.5443685054779053, 0.3860580325126648, 1.1796491146087646, -1.4023360013961792, 0.2634369134902954, -0.21651716530323029, 0.6884519457817078, ...
def locate _ mfg _ split ( val ) : schvals = ['rec solar ','photronic ','science & technology ',') ','usa ','holdings ','holding ','frontier ','liberty ','industries ','hong kong ','q cells ','q - cells ','nologies ','semiconductor ','wind ','co ','singapore ','o. ','ogy ','ies ','ade ','ble ','ms ','nal ','ing ','rgy ...
[ -0.6422945857048035, -0.7717332243919373, 0.9721820950508118, -0.6903120279312134, -0.8979861736297607, 0.08680710196495056, 0.4192814528942108, 0.6372341513633728, 0.27303579449653625, 0.4661787152290344, -0.3325101137161255, -0.2397272139787674, -0.12439027428627014, 0.19083930552005768,...
def run _ conversation _ test ( bot _ args, conversation, session _ id = " test " ) : responses = [ ] for interaction in conversation : api _ function = getattr ( client, interaction [ " operation " ] ) response = api _ function ( * * bot _ args, sessionid = session _ id, * * interaction [ " args " ] ) responses. appen...
[ -0.8071363568305969, -1.1027216911315918, 0.4475948214530945, 0.146125927567482, 1.3898199796676636, -0.38107845187187195, 0.3271061182022095, -0.4872121810913086, 0.4399716556072235, 0.1647888571023941, -0.07013604044914246, -0.7248908877372742, -1.0160530805587769, 0.02633787877857685, ...
def timezone ( self, timezone ) : if timezone is none : raise valueerror ( " invalid value for ` timezone `, must not be ` none ` " ) self. _ timezone = timezone
[ -0.31490248441696167, 0.418216735124588, -0.28062936663627625, 0.1225743517279625, 0.7389880418777466, -0.18184645473957062, 0.8134964108467102, 0.6974576711654663, 0.7237085103988647, -0.05287697911262512, -1.0237576961517334, -0.6104093790054321, -0.6771742105484009, 0.5032229423522949, ...
def compute _ time _ encoding ( t, attention _ dim ) : assert ( t > = 0 ) with tf. name _ scope ('time _ encoding _ computation') : a = np. zeros ( ( attention _ dim, ) ) for i in range ( attention _ dim ) : i2 = i / / 2 exponent = 2 * i2 / attention _ dim multiplier = 10000. 0 * * exponent x = t / multiplier if i % 2 ...
[ 0.2925836145877838, 0.24270594120025635, 0.5035897493362427, 0.408252090215683, -0.770652174949646, -0.14019644260406494, 0.8058393597602844, 0.28093189001083374, 0.2529923915863037, 1.5381752252578735, -0.14785049855709076, 0.24192474782466888, 0.27129650115966797, 0.3994722366333008, 0...
def test _ minimize _ poly _ 100d _ lc _ constr ( self ) : with self. assertraises ( notimplementederror ) : opt _ params = {'eta': 1e - 6,'eta _ min': 1e - 4,'eps': 1e - 12,'discrete': true,'constr': cconstraintl2 ( ) } self. _ test _ minimize ( coptimizerpgdls,'beale ', opt _ params = opt _ params )
[ 0.30835166573524475, -0.6513093113899231, 0.5034762024879456, -0.5139424204826355, 0.5832510590553284, 1.0090728998184204, 0.1944153755903244, -0.1986924111843109, -0.18375588953495026, -0.07977233827114105, -0.738516092300415, -0.6332567930221558, 0.24857868254184723, 0.2965220510959625, ...
def cluster _ to _ attach ( self, cluster _ to _ attach ) : self. _ cluster _ to _ attach = cluster _ to _ attach
[ -0.9322479367256165, -0.36093437671661377, 0.32275867462158203, -0.14948788285255432, 0.33870917558670044, 0.9817521572113037, 0.5968045592308044, 0.6593450903892517, 0.051924072206020355, -0.2341555953025818, 0.144868403673172, 0.660279393196106, 0.36338698863983154, -0.3752557337284088, ...
def getnaintvi ( self, * args ) : return _ snap. pneanet _ getnaintvi ( self, * args )
[ -0.45118099451065063, 0.04448869079351425, 0.2171938419342041, 0.5228992104530334, 0.9263100028038025, 0.15823893249034882, -0.22209179401397705, -1.0101995468139648, -0.8077664375305176, -1.0953989028930664, -0.40069472789764404, -0.7679711580276489, -1.2263882160186768, 0.177153050899505...
def load _ graph ( self, filepath ) : logger. debug ( " loading graph... " ) # herausfinden in welchem tab man sich befindet # logger. debug ( " tabs ", self. nb. tabs ( ) ) newest _ tab = list ( self. nb. tabs ( ) ) [ - 1 ]. split ( ". " ) [ 1 ] current _ tab = self. tabs [ newest _ tab ] self. subject _ state = self....
[ 0.45621970295906067, -0.06526421010494232, 0.4923348128795624, -0.017279457300901413, -0.5278536677360535, 0.8261535167694092, 0.5815635323524475, -0.9487133622169495, -0.5427510142326355, 0.6265161037445068, 0.19023337960243225, 0.8870599865913391, 0.23966635763645172, -0.2839232385158539...
def insubtree ( i, j ) : if i = = j : return true return any ( insubtree ( k, j ) for k in i. children )
[ 0.2787378132343292, 0.2303469479084015, 0.5145338177680969, 0.6205160617828369, -1.4051892757415771, -0.0384749174118042, 0.07706732302904129, -0.04558364674448967, -0.6389199495315552, 0.1774216592311859, -1.0489181280136108, -0.07153547555208206, -1.1158872842788696, -0.05014480277895927...
def getei ( self, * args ) : return _ snap. tngraphmp _ getei ( self, * args )
[ -0.022253433242440224, 0.5646207332611084, 0.12220295518636703, 0.6675845384597778, 2.6377971172332764, -0.5569300055503845, 1.4892247915267944, -0.7128133177757263, -1.6534425020217896, -0.2159203737974167, -0.055534522980451584, -1.0811779499053955, -1.2464700937271118, -0.53685742616653...
def isattrdeletedn ( self, * args ) : return _ snap. tneanet _ isattrdeletedn ( self, * args )
[ -0.8529900312423706, -0.02818499319255352, 0.3342501223087311, -0.18829506635665894, 0.37797725200653076, -0.6025421023368835, -0.35784876346588135, 0.19393959641456604, 0.9599044322967529, -0.3908342123031616, -0.2866132855415344, -0.27755725383758545, -0.002167046070098877, 0.79974931478...
def put ( self, uid ) : parser = ak _ parser. copy ( ) parser. add _ argument ('lang ', type = lang _ parser ) parser. add _ argument ('height ', type = float ) parser. add _ argument ('age ', type = int ) parser. add _ argument ('weight ', type = float ) parser. add _ argument ('gender ', type = gender _ parser ) pars...
[ -1.150587558746338, 0.36039480566978455, 0.7616854906082153, -0.6255311965942383, -0.6191802620887756, 0.17182350158691406, 0.02654406800866127, -0.3127056360244751, -0.5224929451942444, 0.43661314249038696, -0.7818529009819031, -0.5183484554290771, -1.3162813186645508, 0.01174698304384946...
def readcoor ( self ) : boxs = [ ] ele1s = [ ] ele2s = [ ] clays = [ ] eleme1 = [ ] eleme2 = [ ] clay = [ ] clayao = [ ] ions = [ ] perion = [ ] self. file. readline ( ) while 1 : box1 = self. read _ box ( ) line = self. read _ xyz ( eleme1, eleme2, clay, clayao, perion ) aozz = np. array ( clayao ) [ :, 2 ] aozz. sort...
[ -0.1929626762866974, -1.1245664358139038, 0.9759211540222168, 0.7599388360977173, -0.20839902758598328, 0.4459831416606903, 1.3125991821289062, -0.04057479277253151, -0.8338191509246826, 0.045609746128320694, 0.01824423484504223, 0.04482648894190788, -0.5095974802970886, 0.8544838428497314...
def _ _ lt _ _ ( self, * args ) : return _ snap. tstrprboolhi _ _ _ lt _ _ ( self, * args )
[ 0.8463178277015686, -0.6617938876152039, 0.17737865447998047, -0.9958088994026184, 0.6399723291397095, 0.7070409655570984, -0.5045595765113831, -0.30318814516067505, -1.950269103050232, 0.018199849873781204, -0.7848957777023315, -0.9308964610099792, -1.0202436447143555, 0.1365613043308258,...
def loadconnliststr _ pneanet ( * args ) : return _ snap. loadconnliststr _ pneanet ( * args )
[ -1.411431908607483, -0.10480111092329025, 0.19868586957454681, 0.44700300693511963, -0.2892754077911377, -0.6409294009208679, -1.298601508140564, -0.8721324801445007, -0.43732574582099915, -0.300553560256958, -0.4139149487018585, -0.8189806938171387, -0.6132623553276062, 0.1140225231647491...
def _ update _ pool _ status ( self, pools ) : for pool in pools : if'provisioning _ status'in pool : provisioning _ status = pool ['provisioning _ status'] if ( provisioning _ status = = plugin _ const. pending _ create or provisioning _ status = = plugin _ const. pending _ update or provisioning _ status = = plugin _...
[ -0.5028783082962036, -1.7044795751571655, 0.21064183115959167, -0.041099078953266144, 0.45962288975715637, 0.7412202954292297, -0.35705459117889404, 0.29971808195114136, 0.4090845584869385, 1.319880485534668, -0.644916296005249, 0.5651112794876099, -0.7629324793815613, 0.046609487384557724...
def buy ( ) : if request. method = = " post " : # quantity required by the buyer src = request. form. get ( " symbol " ) qtd = int ( request. form. get ( " quantity " ) ) id _ session = session [ " user _ id " ] # get dates iex quote = lookup ( src ) name = quote [ " name " ] symbol = quote [ " symbol " ] price = quote...
[ 0.001636042259633541, 0.21349391341209412, 1.1431777477264404, 0.2902909815311432, 1.0158370733261108, -0.22559569776058197, 0.4277060627937317, 0.16803887486457825, 0.021222686395049095, 0.04909517988562584, -0.053167905658483505, 0.23068571090698242, -0.1800304353237152, 0.22689905762672...
def register ( target, current = true ) : root = winreg. hkey _ current _ user if current else winreg. hkey _ local _ machine # extensions winreg. setvalueex ( winreg. createkey ( root, key _ c % ". py " ), " ", 0, winreg. reg _ sz, " python. file " ) winreg. setvalueex ( winreg. createkey ( root, key _ c % ". pyw " ),...
[ -0.6738766431808472, -0.0037410652730613947, 0.8403398394584656, -0.031353533267974854, 0.48185455799102783, 0.21795441210269928, 0.7331627011299133, 0.5543916821479797, -0.5906649827957153, 0.4650324285030365, -0.4066634774208069, 0.6083916425704956, -0.605065107345581, 0.9297719597816467...
def _ _ init _ _ ( self, html _ filename ) : self. fn = html _ filename self. bn = os. path. basename ( self. fn ) with open ( html _ filename,'r') as f _ html _ input : self. data = numpy. array ( [ val for val in sum ( [ list ( map ( float, match. groups ( ) [ 0 ]. split ( ) ) ) for match in map ( stats. matchn9, f _...
[ 0.8035041689872742, 0.045547354966402054, 0.614262580871582, -0.25250518321990967, 0.35865429043769836, 0.09106191247701645, 1.0262343883514404, 0.8101259469985962, -0.34063398838043213, -0.9818391799926758, 0.10646937042474747, -0.2936572730541229, 0.44354933500289917, 0.9751966595649719,...
def get _ labels ( self ) : return list ( self. library. keys ( ) )
[ -1.0477650165557861, -1.1710805892944336, 0.15192441642284393, 0.169566348195076, 0.724698007106781, 1.1425732374191284, -1.163968563079834, 0.3404819965362549, 0.2659018635749817, 0.34417399764060974, -0.5603927373886108, 0.027483494952321053, -0.9572386741638184, 0.4866848886013031, -0...
def begeaflti ( self, * args ) : return _ snap. tneanetmp _ begeaflti ( self, * args )
[ 0.6973937153816223, -0.3830029368400574, 0.09553501754999161, -0.5463013052940369, 1.6497950553894043, 0.18025356531143188, 0.1472584307193756, -0.21187090873718262, -0.9384317994117737, 0.926348865032196, -0.19631683826446533, -0.6817113757133484, -0.6289425492286682, 1.0364620685577393, ...
async def send _ request ( self, request ) : # pragma : no cover raise notimplementederror
[ -1.7961413860321045, 0.37591034173965454, 0.5571768283843994, 0.7807363271713257, 0.9770430326461792, 0.2202964723110199, -0.3798254132270813, -0.7945238351821899, 0.13137343525886536, -0.028179695829749107, 0.4044375419616699, 0.5808883905410767, 0.678454577922821, 0.36453813314437866, ...
def getservicestatus ( self ) : servicestatus = apiclient. servicestatus % ( self. host ) r = requests. get ( servicestatus, auth = self. credentials, verify = self. verify ) status = r. status _ code if status = = 200 : self. logger. debug ( " service status successfully retrieved " ) return r. json ( ) elif status = ...
[ -1.300650715827942, -0.8803586959838867, 0.5432726144790649, -0.06424008309841156, -0.16639885306358337, -0.5351214408874512, -0.6613523960113525, -0.13846255838871002, -0.47468018531799316, 0.022122155874967575, -0.7599007487297058, 0.8804298043251038, -1.2758691310882568, 0.1026214882731...
def test _ duration _ minus ( ) : pytest. debug _ func ( ) # payload ( duration - duration = > duration ) assert d ( hours = 1 ) - d ( minutes = 30 ) = = d ( seconds = 1800 ) # payload ( duration - number - of - seconds = > duration ) assert d ( minutes = 10 ) - 150 = = d ( seconds = 450 ) with pytest. raises ( typeerr...
[ -0.5634776949882507, 0.6098818182945251, 0.6414276361465454, 0.2240578979253769, -0.2707546055316925, 1.0641798973083496, -0.10568419843912125, -1.2323424816131592, 0.2704198360443115, -0.04557235166430473, -0.5019758343696594, 0.4036615788936615, 0.29631540179252625, 0.3961772918701172, ...
def read _ file ( self, path ) : try : with open ( path,'r') as file : return file. read ( ) except ioerror as e : print ( " fatal error : file ( { } ) could not be located or is not readable. ". format ( path ) )
[ 0.5365923643112183, -0.574820339679718, 0.42388927936553955, 0.2657368779182434, 0.02923453599214554, 1.0514403581619263, -0.34566330909729004, -0.4294782280921936, -1.015151858329773, 0.11139407008886337, 1.5413731336593628, -0.20204266905784607, 0.20388928055763245, -1.1131155490875244, ...
def geteid ( self, * args ) : return _ snap. pneanet _ geteid ( self, * args )
[ 0.22164548933506012, 0.41166311502456665, 0.6344909071922302, 0.6582496166229248, 1.8385761976242065, 1.1575794219970703, 0.1640026569366455, -0.40100035071372986, -0.12440064549446106, -0.6566490530967712, -0.08185794204473495, -1.4641348123550415, -0.7651849985122681, 0.9841309189796448,...
def addmp ( self, * args ) : return _ snap. tinttrv _ addmp ( self, * args )
[ -1.2085684537887573, -0.46332061290740967, 0.403574675321579, 0.3280700147151947, 0.05072598531842232, 0.5478659868240356, 0.7430567741394043, -0.1009860709309578, -0.05107267200946808, -0.6184092164039612, 0.835479736328125, 0.46248090267181396, -1.2991976737976074, 0.7100435495376587, ...
def create _ output _ nodes ( self, output _ node, sub _ dirs ) : output _ map = dict ( ) for sub _ dir in sub _ dirs : new _ node = self. create _ s3 _ data _ node ( s3path ( sub _ dir, is _ directory = true, parent _ dir = output _ node. path ( ) ) ) new _ node. add _ dependency _ node ( output _ node ) output _ map ...
[ -0.7090815305709839, -0.0002226118667749688, 0.6232234835624695, -0.2821292281150818, 0.1752937138080597, 0.5398149490356445, 0.7623487114906311, 0.37024742364883423, -0.5704673528671265, 0.5887578725814819, -0.8957371115684509, 0.10679902136325836, 0.9032697081565857, -0.436763733625412, ...
def getfracandpf ( p, q ) : # initialize the fractions. note that this reduces correctly, but loses # sign information : # # a1 = z % * cos ( thetaz ), b1 = z % * sin ( thetaz ) and so on. f = np. sqrt ( np. square ( p ) + np. square ( q ) ) # initialize power factors. using divide's'out'and'where'arguments, we # ensur...
[ -0.2004106044769287, -0.2635192573070526, 0.77101731300354, -0.4993358552455902, -0.19090797007083893, -0.3188597559928894, -0.23891083896160126, -0.08878935128450394, -0.5343645215034485, -0.048524897545576096, 0.09281642735004425, -0.26821649074554443, 0.09180063754320145, 0.292675375938...
def replytosentence ( voc, sentence, search _ method ) : indexes _ batch = [ sentencetoindexes ( voc, sentence ) ] lengths = torch. tensor ( [ len ( indexes ) for indexes in indexes _ batch ] ) input _ batch = torch. longtensor ( indexes _ batch ). transpose ( 0, 1 ) input _ batch = input _ batch. to ( config. device )...
[ 0.08064333349466324, 0.21844874322414398, 0.6397218704223633, -0.07826926559209824, 0.797227144241333, -1.504209041595459, -0.1854373812675476, -0.3325076103210449, -0.05564064905047417, 1.457529067993164, -0.4723259210586548, 0.029052291065454483, -0.26235485076904297, -0.4970540106296539...
def test _ atomic _ hex _ binary _ length _ 3 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ length _ 4 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - length - 4. xsd ", instance = " nistdata / ...
[ 0.1293283998966217, 0.2362491488456726, 0.49114421010017395, 0.3618350028991699, 0.13433758914470673, 0.4820641577243805, -0.40762290358543396, 0.22530345618724823, 0.20465624332427979, 0.1614890694618225, -0.601341724395752, -0.9692520499229431, -0.3009619414806366, 0.22664932906627655, ...
def assemblek1 ( kxi, xgpn, n ) : phi1, _ = mathsutils. basefunc1d ( 1. 0, xgpn, n ) frm = [ [ 0 for _ in range ( n ) ] for _ in range ( n ) ] for k in range ( 0, n ) : for l in range ( 0, n ) : frm [ k ] [ l ] = phi1 [ k ] * phi1 [ l ] return [ [ frm [ i ] [ j ] - kxi [ i ] [ j ] for j in range ( n ) ] for i in range ...
[ -0.47503459453582764, 0.05697769671678543, 0.7081896662712097, 0.5175845623016357, -0.38125866651535034, -0.18291857838630676, 0.06859470903873444, 0.6280167102813721, -0.260916531085968, 0.9030334949493408, -0.3603087067604065, -0.31685179471969604, -0.6949615478515625, 0.4725664556026459...
def checkcomplete ( self, col ) : if len ( self. board [ col ] ) > 0 : if self. board [ col ] [ - 1 ] [ 0 ] = = 1 : for i in xrange ( len ( self. board [ col ] ) - 2, - 1, - 1 ) : if self. board [ col ] [ i ] [ 0 ] - 1! = self. board [ col ] [ i + 1 ] [ 0 ] : break if self. board [ col ] [ i ] [ 0 ] = = 13 and i > 0 : ...
[ -0.1771802455186844, 0.3955061137676239, 1.154396653175354, 0.05472422018647194, -0.24169404804706573, -0.3005751073360443, 1.0893720388412476, 0.06445618718862534, 0.41659632325172424, 1.5560752153396606, -0.596695601940155, -0.05540414899587631, -0.4315374195575714, 0.30040332674980164, ...
def get _ free _ client _ id ( max _ attempts : optional [ int ] ) - > int : free _ client _ id = - 1 max _ attempts = 1 if max _ attempts is none else max _ attempts for i in random. sample ( range ( 1, max _ attempts + 1 ), max _ attempts, ) : try : ib _ connection = ib _ connect ( i, is _ notebook = false ) except t...
[ -0.6851345896720886, 0.5327714085578918, 0.43332618474960327, -0.2519627511501312, -0.5830042958259583, 0.5229048728942871, 0.6261934638023376, -0.4915679097175598, -0.12280712276697159, 0.113920196890831, 0.37987083196640015, -0.017895860597491264, -1.765399694442749, -0.3706703782081604,...
def test _ atomic _ any _ uri _ white _ space _ nistxml _ sv _ iv _ atomic _ any _ uri _ white _ space _ 1 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - whitespace - 1. xsd ", instance = " nistdata ...
[ -0.5280165076255798, -0.24265775084495544, 0.4180199205875397, 0.6358440518379211, 0.04261672869324684, -0.18170759081840515, 0.272929310798645, -0.6371411681175232, 0.3648458421230316, -0.22868990898132324, 0.7524871826171875, -0.24108724296092987, -0.6042637228965759, 0.9809119701385498,...
def create _ block ( self, name = " ", type _ = " ", compression = compression. auto, copy _ from = none, keep _ copy _ id = true ) : if copy _ from : if not isinstance ( copy _ from, block ) : raise typeerror ( " object to be copied is not a block " ) clsname = " data " src = " { } / { } ". format ( clsname, copy _ fr...
[ -0.42062532901763916, -0.03837326541543007, 0.9271121025085449, 0.47646909952163696, -1.1254029273986816, 0.9859858155250549, 0.29606157541275024, -1.490498423576355, -0.3352067470550537, 0.24692381918430328, -0.46496573090553284, 0.3503167927265167, 0.12074906378984451, -0.109985709190368...
def from _ dict ( cls, data, * * kwargs ) : _ id = data. pop ( " $ id " ) return cls ( id = _ id, * * data, * * kwargs )
[ -0.16682028770446777, -0.48874855041503906, 0.409801185131073, -0.30236533284187317, -0.7632991075515747, 0.3867190480232239, -1.824893593788147, 0.14229696989059448, 0.7577990889549255, -0.032838381826877594, -0.6985262036323547, -0.15266114473342896, 0.04415374994277954, -0.3555434346199...
def describe _ user _ pool _ client ( userpoolid = none, clientid = none ) : pass
[ -0.1994468718767166, -0.1200573667883873, 0.07552694529294968, 0.11111753433942795, -0.32613980770111084, 0.3473731279373169, 0.6731220483779907, -0.9303956627845764, 0.23576731979846954, -0.007077227812260389, -0.3955625593662262, 2.077378273010254, -0.8013770580291748, -0.266368597745895...
def deserialize ( self, data ) : return self. dfs ( data. split ( ',') )
[ -0.7125676870346069, 0.3895789682865143, 0.29775649309158325, -0.7687522172927856, -0.34626609086990356, -1.2577273845672607, -0.8898975849151611, 0.0756325051188469, 0.3911057710647583, -1.285012125968933, 0.49196675419807434, -0.9106916785240173, -1.1645212173461914, -1.7150579690933228,...
def protonethead ( query, support, support _ labels, n _ way, n _ shot, normalize = true ) : tasks _ per _ batch = query. size ( 0 ) n _ support = support. size ( 1 ) n _ query = query. size ( 1 ) d = query. size ( 2 ) assert ( query. dim ( ) = = 3 ) assert ( support. dim ( ) = = 3 ) # print ( query. size ( ), support....
[ -0.18175667524337769, 1.0093746185302734, 0.7537468671798706, 0.35617154836654663, -0.12184910476207733, -0.08397508412599564, -0.6219796538352966, 0.330189973115921, 0.33711954951286316, 0.6282115578651428, 0.4851014018058777, -0.012643461115658283, 0.1503019481897354, -0.2137456536293029...
def getsubvalv ( self, * args ) : return _ snap. tfltv _ getsubvalv ( self, * args )
[ 0.20824986696243286, 0.3293895721435547, 0.344113826751709, 0.8619537949562073, -0.48114505410194397, -0.10599713772535324, 0.7916871309280396, 1.2715692520141602, -1.508458137512207, -0.9530956149101257, -0.7988725304603577, 0.37044161558151245, 0.3282182514667511, 1.017981767654419, 0....
def make _ logdir ( args, model _ name : str ) : # code copied from ignite repo # current _ time = datetime. now ( ). strftime ('% b % d _ % h - % m - % s') # logdir = os. path. join ('runs ', current _ time +'_'+ socket. gethostname ( ) +'_'+ model _ name ) logdir = os. path. join ('runs ', f'{ args. dataset } _ { mod...
[ 0.041887324303388596, -0.03405687212944031, 0.9129081964492798, -0.4592059552669525, -0.37759414315223694, 0.36632949113845825, 0.3493189215660095, -0.3614737391471863, -0.8630111813545227, -0.12480509281158447, 0.3074627220630646, 0.5104209184646606, -0.02927275002002716, 0.01329698972404...
def predict ( self, xs, ys = none ) : batchsize = xs [ 0 ]. shape [ 0 ] loss = 0 feed _ dict = { x _ i : batch _ x _ i for x _ i, batch _ x _ i in zip ( self. x, xs ) } sample _ weights = np. expand _ dims ( np. ones ( batchsize ), - 1 ) with tf. variable _ scope ('model ', reuse = tf. auto _ reuse ) : if ys is not non...
[ -0.23831242322921753, -0.548591136932373, 0.7614855170249939, 0.4598723351955414, -0.7854662537574768, -1.2114026546478271, -0.26549482345581055, 0.5009101629257202, -0.0959770679473877, -0.3150375783443451, -0.3133906424045563, 0.7052438855171204, 0.6310566067695618, 0.3920104503631592, ...
def get _ data _ html ( self, dataset = none ) : if dataset is none : # get the new data data = { } # data ['item'] = { } # for i in self. plugin. items : # data ['item'] [ i ] ['value'] = self. plugin. getitemvalue ( i ) # # return it as json the the web page # try : # return json. dumps ( data ) # except exception as...
[ -1.0574127435684204, -0.2932991683483124, 0.5665119290351868, -0.35158875584602356, -0.6329789161682129, -0.14384131133556366, -0.7203950881958008, 0.0678505226969719, -0.1262010633945465, -0.2689448297023773, -0.5245018601417542, 0.8086649775505066, 0.046039044857025146, 0.688783764839172...
def old _ guard ( a, b, c, d, e, f, g ) : # ignore a without a heavy check on each invocation # this kills it right at the function call if a : return for _ in range ( 1 ) : if b : break if c : if d : break if e : return if f : return if g : return # this is the guarded code # it is assumed at this point that the check...
[ 0.13213032484054565, 0.29729756712913513, 0.5035109519958496, 0.28116127848625183, 0.6305410265922546, -0.011046815663576126, 0.39013445377349854, 0.1001385748386383, -0.29871535301208496, -0.06891168653964996, 0.3999727964401245, -0.4783378839492798, -0.7631946206092834, 0.053010977804660...
def subconfigbynameandtye ( self, name, typeid ) : if typeid = = self. config _ type _ application : return self. applicationbyname ( name ) if typeid = = self. config _ type _ composite : return self. compositefilterbyname ( name ) raise nextinternalerror ( f " unknown typeid { typeid } " )
[ -0.9151861071586609, -0.7370386719703674, 0.4789292514324188, 0.20799888670444489, -0.8721241354942322, -0.06843772530555725, -0.25108811259269714, -1.1421074867248535, -0.8278627991676331, 1.0315390825271606, -0.36055466532707214, 1.2705206871032715, -0.5887835621833801, 0.465936392545700...
def test _ get _ rapid _ data _ incorrect ( self ) : # tests if ip address is wrong. _, resp, self. cookies = rapid _ datatypes. get _ rapid _ data ('10 ', self. cookies, self. digest _ auth,'t _ rob1 ','mainmodule ','const _ number') self. assertisinstance ( resp, exception ) # checks if the input data is not correct....
[ -0.07697725296020508, -0.21266797184944153, 0.7525017261505127, 0.22122609615325928, 0.8480445146560669, -0.32778626680374146, -0.06076236814260483, -0.03232457861304283, -0.7086350321769714, -0.13317550718784332, -0.5889075398445129, 0.46047696471214294, -0.15961311757564545, -0.204252302...
def test _ initial _ data ( self ) : self. assertisnone ( omnimultiplechoicefield. initial _ data )
[ 0.20020709931850433, 0.135109543800354, 0.25786346197128296, 0.15187709033489227, 0.7808506488800049, 1.3530043363571167, 0.04140837490558624, 0.3877958357334137, 0.09965488314628601, -0.546676516532898, -0.705040693283081, 0.11673898994922638, -0.5700228214263916, 0.47533953189849854, -...
def vector _ deriv ( xs, ys, order = 2 ) : if len ( xs )! = len ( ys ) : raise valueerror ( " len ( xs ) = % d and len ( ys ) = % d. " % ( len ( xs ), len ( ys ) ) ) if order = = 2 : dy _ dxs = ( ( np. roll ( ys, + 1 ) - np. roll ( ys, - 1 ) ) / ( np. roll ( xs, + 1 ) - np. roll ( xs, - 1 ) ) ) dy _ dxs [ 0 ] = ( - 3. ...
[ -0.4409577250480652, 0.3554530143737793, 1.2836403846740723, -0.3664425313472748, -0.009209053590893745, -0.6850762963294983, -0.248324915766716, -0.258727103471756, -0.05406288802623749, 0.0672704204916954, -0.250529944896698, 0.35802367329597473, 0.7219005823135376, -0.46464845538139343,...
def extract _ top _ skills ( training _ data ) : skills _ dict = read _ skills _ from _ json _ file ( training _ data ) # read the top n skills for each job title skill _ features = [ ] for skill in skills _ dict : skill _ list = skills _ dict [ skill ] skill _ count = counter ( skill _ list ) top _ job _ skills = sort...
[ -0.8057567477226257, -0.7782847285270691, 0.38162827491760254, 0.2901509404182434, -0.5323219299316406, -0.0038911630399525166, 0.30320897698402405, -0.18745304644107819, -0.4359029233455658, 0.0642627626657486, -0.7230170965194702, 0.273172527551651, 0.7285801768302917, -0.313274949789047...
def test _ query _ serialize _ multiple _ rs ( self ) : self. check _ query _ serialize _ multiple ( " rs " )
[ -0.7350619435310364, 0.8392112851142883, 0.2945748567581177, 0.47959619760513306, 0.7885493040084839, -0.2407914698123932, -0.332821786403656, -1.0913790464401245, 0.5661029815673828, -0.03390250355005264, -0.5458480715751648, 0.22510255873203278, -0.48322030901908875, 0.433689683675766, ...
def create _ data _ set ( data _ path ) : images _ path = [ os. path. join ( data _ path, item ) for item in os. listdir ( data _ path ) ] image _ data = [ ] image _ labels = [ item for item in os. listdir ( data _ path ) ] for i, im _ path in enumerate ( images _ path ) : im = io. imread ( im _ path, as _ gray = true ...
[ -1.2614301443099976, 0.2812410593032837, 0.6894333362579346, -1.1061792373657227, 0.12976689636707306, 0.5586991310119629, -0.20882128179073334, -0.2044767290353775, -0.10376724600791931, 0.6056695580482483, 0.22874046862125397, 0.13229140639305115, 0.6695974469184875, 0.2324620932340622, ...
def random _ seed ( self, random _ seed ) : self. _ random _ seed = random _ seed
[ 0.1568635255098343, 0.1838333010673523, -0.07366985827684402, -0.17717911303043365, 0.050221096724271774, 0.6975345015525818, 0.00242164870724082, 0.5481715202331543, 0.22426138818264008, -1.2502127885818481, -1.2248804569244385, 0.34568870067596436, 0.27643463015556335, 0.9219946265220642...
def getfltattrinddatn ( self, * args ) : return _ snap. pneanet _ getfltattrinddatn ( self, * args )
[ -0.3569055497646332, 0.8318921327590942, 0.3772886395454407, -1.2670962810516357, 0.9898465871810913, -0.007225814275443554, -0.11353222280740738, -0.1708158552646637, -0.6595667004585266, -1.7129287719726562, -0.8638870120048523, 0.09637729823589325, 0.45786935091018677, 0.601788282394409...
async def recoverrole ( self, ctx ) : server = ctx. message. server. id author = ctx. message. author if server not in self. json : await self. bot. say (': warning : recoverrole isn \'t setup yet. please ask your admin to set it up.') elif self. json [ server ] ['toggle'] is false : await self. bot. say (': warning : ...
[ 0.004243881907314062, 0.46973922848701477, 0.755134642124176, 0.033985257148742676, 0.6625986099243164, -0.0463714525103569, -0.550529956817627, 0.08156441897153854, 0.5435149669647217, -0.7575216889381409, -0.11361712217330933, 0.9189590811729431, -0.5542090535163879, -0.2727125883102417,...
def test _ isunicode _ list ( self ) : assert not isunicode ( ['hello ','world'] )
[ -0.5092899203300476, 0.35854455828666687, 0.33177974820137024, 0.5471892952919006, 0.43677929043769836, 1.240570068359375, -0.6008480787277222, 1.3228424787521362, 1.0107637643814087, 0.25105172395706177, -1.8616646528244019, -0.30995240807533264, -1.0579018592834473, 1.004115343093872, ...
def list _ user _ import _ jobs ( userpoolid = none, maxresults = none, paginationtoken = none ) : pass
[ -0.31832170486450195, 0.27388837933540344, 0.3553793132305145, 0.5038929581642151, 0.2009865641593933, -0.1647649109363556, 0.6012262105941772, -0.7269586324691772, 0.6861562728881836, -0.14085420966148376, -1.149306058883667, 0.38875848054885864, -0.6668616533279419, -0.4378446340560913, ...
def get _ intermediate _ outputs ( self, layers, batch _ samples, forward _ pass = true ) : if forward _ pass : _ = self. get _ logits ( torch. tensor ( batch _ samples ) ) layer _ names = [ ] for layer in layers : if isinstance ( layer, str ) : layer _ names. append ( layer ) else : layer _ names. append ( list ( self...
[ -0.02053276263177395, -1.1195870637893677, 0.5905371904373169, -0.019836805760860443, 0.492191344499588, -0.5386611223220825, 0.0026362882927060127, -0.5175765752792358, -0.7452306747436523, 0.4293833374977112, -0.30565643310546875, 0.08509916812181473, -0.9868415594100952, 0.5644778609275...