text
stringlengths
25
2.19k
embedding
listlengths
768
768
def test _ grpdiff _ bsln ( self ) : assert ( self. roi _ gs _ df is not none ), " run remove _ site _ effects ( ) first " # define log file logfile = self. roidata _ dir + " grpdiff _ bsln _ " + self. metric + " _ log. txt " if os. path. isfile ( logfile ) : os. remove ( logfile ) # use data with outliers excluded / i...
[ 0.5571169257164001, 0.07563915103673935, 0.5363926291465759, -0.1665450632572174, 0.4076775014400482, 0.34600403904914856, 0.6572569012641907, -0.5933026075363159, -0.5333943963050842, -0.03306020051240921, 0.39725425839424133, 0.47416120767593384, -0.3433443009853363, -0.09687428176403046...
def _ reviewcurrentline ( self, inputevent, speechtype = 1 ) : context = self. getflatreviewcontext ( ) [ linestring, x, y, width, height ] = \ context. getcurrent ( flat _ review. context. line ) # don't announce anything from speech if the user used # the braille display as an input device. # if not isinstance ( inpu...
[ -0.5078265070915222, -1.2297991514205933, 0.6927399039268494, -0.2917063236236572, -0.5996626019477844, 0.4620814621448517, -0.7365710735321045, -0.22540783882141113, -0.06647654622793198, -0.2858439087867737, 0.5066109895706177, 0.23460392653942108, -0.9071633219718933, 0.0759341642260551...
def replacegroundsbyid ( data ) : mapping = dict ( zip ( groundtype, range ( len ( groundtype ) ) ) ) data ['sol']. replace ( mapping, inplace = true )
[ -0.03889342024922371, 0.4473556578159332, 0.4278115928173065, 0.25993460416793823, 0.8958103060722351, 0.4790770411491394, 0.41703248023986816, -0.4792759418487549, -0.035300206393003464, 0.49000632762908936, -0.7168270349502563, -0.050923872739076614, -0.8162741661071777, 0.98117792606353...
def repro _ func ( lst _ steps ) : if ( ( lst _ steps. count ('e') + lst _ steps. count ('f') ) > = 2 ) : return false else : return true
[ -0.5241087079048157, 1.1657392978668213, 0.41787898540496826, 0.08854017406702042, -0.5107221603393555, 0.5436793565750122, -0.26349276304244995, 1.3691259622573853, -0.5343323349952698, 0.5703955888748169, -0.517760157585144, -0.5183566212654114, 0.30150967836380005, 0.7252473831176758, ...
def isleaf ( self ) : return ( self. childs [ 0 ] is none and self. childs [ 1 ] is none and self. childs [ 2 ] is none and self. childs [ 3 ] is none )
[ 0.22706498205661774, -0.8240509033203125, 0.5486937165260315, -0.3289768099784851, 0.6138482689857483, 0.01254725456237793, -0.7221584916114807, 0.2809026539325714, 0.7879361510276794, -0.3314749300479889, -0.9209449291229248, -0.33613577485084534, -0.7160271406173706, 0.30429598689079285,...
def getlastevent ( self, typeid, deviceid, eventid ) : events = apiclient. deviceeventcacheurl % ( self. host, typeid, deviceid, eventid ) r = requests. get ( events, auth = self. credentials, verify = self. verify ) status = r. status _ code if status = = 200 : response = r. json ( ) if response [ " format " ] = = " j...
[ -1.2772870063781738, -0.2876119613647461, 0.9721044898033142, 0.028976280242204666, -0.5197600722312927, -0.44995519518852234, -0.556014358997345, -0.8215885758399963, 0.19437524676322937, 0.7294789552688599, -0.1162799596786499, 0.8515207767486572, -1.1583808660507202, -0.0761961489915847...
def _ _ call _ _ ( self, doc : doc ) - > doc : if not self. lowercase : remove _ lowercase ( doc ) if self. accents is not none : self. accents ( doc ) if self. quotes is not none : self. quotes ( doc ) if self. spaces is not none : self. spaces ( doc ) if self. pollution is not none : self. pollution ( doc ) return do...
[ 0.4434617757797241, -0.408471018075943, 0.40863779187202454, -0.8229102492332458, -0.867310106754303, -0.021157871931791306, -0.3401564061641693, -0.12307745963335037, 0.3774174153804779, 0.12152410298585892, 0.2551861107349396, -0.051453933119773865, -0.9068180322647095, 0.926208138465881...
def get _ namespace _ authorization _ rule ( name : optional [ str ] = none, namespace _ name : optional [ str ] = none, resource _ group _ name : optional [ str ] = none, opts : optional [ pulumi. invokeoptions ] = none ) - > awaitablegetnamespaceauthorizationruleresult : _ _ args _ _ = dict ( ) _ _ args _ _ ['name'] ...
[ 0.7878143787384033, 0.21875204145908356, 0.5821189880371094, 0.31242626905441284, -0.07365039736032486, -0.22139669954776764, -0.5285189747810364, -0.17069540917873383, 0.527932345867157, 0.15477575361728668, 0.7074074745178223, 1.5725393295288086, -0.402235746383667, -0.0888572558760643, ...
def detect _ faces ( image, face _ detector = none, eye _ detector = none ) : if face _ detector is none : print ( " error : no face detector input, please give the detector of face or eye " ) return - 1 img _ gray = cv2. cvtcolor ( image, cv2. color _ rgb2gray ) faces = face _ detector. detectmultiscale ( img _ gray, ...
[ -0.6154502630233765, -0.3277657628059387, 0.789214015007019, 0.8511618971824646, 0.5190157890319824, -0.36404678225517273, -0.3123703598976135, -0.09270831942558289, 0.3895798325538635, 0.5312082767486572, 0.05310023948550224, -0.2987714409828186, 0.5483952164649963, 1.447860598564148, -...
def _ _ init _ _ ( self ) : self. _ playbook _ root = ss. config. get _ config _ value ('ansible _ playbook _ root ', none ) self. _ inventory _ path = os. path. join ( self. _ playbook _ root, ss. config. get _ config _ value ('ansible _ inventory ', none ) ) self. _ playbook _ path = os. path. join ( self. _ playbook...
[ -0.692263662815094, -0.8371611833572388, 0.5200420618057251, 1.4850374460220337, -0.023859191685914993, 0.3153970241546631, 0.5162733197212219, 0.5438672304153442, -0.7535028457641602, 0.9384520053863525, -1.005026936531067, -0.02873823791742325, -0.4737497866153717, 0.6980625987052917, ...
def whichxytheta ( self, step _ prev, step _ cur ) : self. logger. debug ( " step _ prev is { }, step _ cur is { } ". format ( str ( step _ prev ), str ( step _ cur ) ) ) prev _ theta = round ( float ( step _ prev [ " cont _ theta " ] ), 5 ) prev _ x = round ( float ( step _ prev [ " cont _ x " ] ), 5 ) prev _ y = roun...
[ 0.23478226363658905, -0.834406852722168, 0.9348670840263367, -0.7009568214416504, -0.4724355638027191, -0.06331811100244522, 0.9881488680839539, -0.597559928894043, -1.2148289680480957, 0.5272974967956543, 0.823554277420044, 0.6596590876579285, -0.09890613704919815, 0.3094633221626282, 0...
def select ( self ) : # number of dimensions. k = self. models [ 0 ]. x. shape [ 1 ] # compute the number of evaluations to perform. as a heuristic, we use # ten times the number of hyperparameters. n _ evals = 10 * k # create random points in the vicinity of the optimal input. this is for # exploitation purposes. x _ ...
[ 0.07401315867900848, 0.3073749840259552, 0.6958525776863098, 0.40370962023735046, 0.503649890422821, -0.5057733058929443, 0.12905900180339813, -0.29488417506217957, -0.09064354747533798, -0.11860974878072739, 0.4989396333694458, 0.6392340660095215, -0.008495512418448925, -0.129151403903961...
def cmd ( self ) : return none
[ 0.017359687015414238, -0.969939112663269, 0.19585086405277252, 0.451357364654541, 0.8180887699127197, 0.7503261566162109, 1.1250009536743164, -0.6491976976394653, 1.0491453409194946, -2.342590570449829, 0.6123907566070557, 0.24618393182754517, -0.009286735206842422, 0.44075295329093933, ...
async def get _ password _ reset ( self, password _ reset _ id ) - > user : await self. connect _ to _ database ( ) password _ reset _ q = await self. db ['passwordresets']. find _ one ( {'id': objectid ( password _ reset _ id ) } ) if password _ reset _ q : return await self. serializepasswordreset ( password _ q = pa...
[ -0.21334531903266907, 0.33429908752441406, 0.2944624722003937, -0.4777596592903137, 0.6545554995536804, -1.1148111820220947, -0.7131333351135254, -1.0996370315551758, 0.6908709406852722, 0.3488662838935852, -0.14052368700504303, 0.8114979267120361, -0.4701874256134033, -0.6422232389450073,...
def test _ example _ input _ one _ required _ field _ interval ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input one " ) input _ page. entity1...
[ -0.7694301605224609, 0.21297229826450348, 0.6382779479026794, 0.3414255380630493, 0.43239158391952515, 1.4989885091781616, 0.3366997241973877, -0.16520659625530243, -0.2510780990123749, 0.2724878191947937, -1.3446053266525269, -0.2096046805381775, -0.6193495392799377, 0.1020892933011055, ...
def _ _ len _ _ ( self ) : if self. length is none : self. length = 0 for _ in self : self. length + = 1 return self. length
[ -0.21451428532600403, 0.1328831911087036, 0.4546504616737366, -1.0943571329116821, 1.2368735074996948, -0.12034792453050613, 0.5854963660240173, 1.142997145652771, 1.4799854755401611, -0.7103399038314819, -1.5158499479293823, -0.517033040523529, -0.35801762342453003, 0.768384575843811, -...
def list _ jobs ( ) : return json. dumps ( { jobid : workflow _ to _ dict ( wf ) for jobid, wf in persistence. get _ queue ( ). iteritems ( ) } )
[ -0.7327439188957214, -1.27472984790802, 0.2808030843734741, -1.1421953439712524, 0.0873761922121048, -1.2153671979904175, -1.0653313398361206, -0.3544922471046448, -0.17761296033859253, 0.14938801527023315, -0.671885073184967, 0.3040929436683655, 0.15620540082454681, 0.7930736541748047, ...
def wrapper ( * args, * * kwargs ) : message _ warn =''. join ( ['{ : } must be installed '. format ( package _ name ),'to use { : }. '. format ( func. _ _ name _ _ ),'see instructions at ','https : / / github. com / pysat / pysatmissions'] ) try : func ( * args, * * kwargs ) except nameerror as nerr : # triggered if c...
[ -0.10917793214321136, -0.06977963447570801, 0.776983380317688, 0.2695640027523041, -0.12985944747924805, -0.8805949091911316, -0.8732612133026123, -0.30234986543655396, 0.03811124339699745, 1.0932786464691162, 1.1153093576431274, -0.027922073379158974, 0.8555883765220642, 0.663810014724731...
def test _ atomic _ qname _ pattern _ nistxml _ sv _ iv _ atomic _ qname _ pattern _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - pattern - 1. xsd ", instance = " nistdata / atomic / qname / schema...
[ -0.10364393889904022, -0.7125657796859741, 0.5020626187324524, 0.4344363212585449, -0.5401856899261475, 0.35465341806411743, -0.15618591010570526, -0.5354999303817749, 0.007866894826292992, 0.6227207779884338, -0.3929440975189209, 0.13589203357696533, 0.21177716553211212, -0.05149965360760...
def set _ username ( self, value ) : super ( searchbycategoryinputset, self ). _ set _ input ('username ', value )
[ -1.1556366682052612, 0.9147526621818542, 0.3511204123497009, 0.491102010011673, -0.16482891142368317, -0.18948253989219666, 1.2761881351470947, -0.29020342230796814, -0.4677801728248596, -0.4402274191379547, -0.6545559167861938, -0.7043029069900513, 0.1275908648967743, 0.054922934621572495...
def _ _ init _ _ ( _ _ self _ _, resource _ name : str, opts : optional [ pulumi. resourceoptions ] = none, data _ access _ spec : optional [ pulumi. input [ pulumi. inputtype ['googleclouddataplexv1dataaccessspecargs'] ] ] = none, data _ attribute _ id : optional [ pulumi. input [ str ] ] = none, data _ taxonomy _ id ...
[ -0.1323411911725998, -0.30972781777381897, 0.689342200756073, -1.1568986177444458, -0.21448500454425812, 0.7179210782051086, 0.4007551670074463, 0.41992560029029846, 0.5673960447311401, -0.8950098752975464, -0.08448120951652527, 1.0350780487060547, 0.7704066634178162, -1.2514249086380005, ...
def profle _ setting ( ) : # handle if signed in if not authentication ( session ). is _ signed _ in ( ) : return redirect ( " / login " ) return render _ template ( " user / profile _ setting. html " )
[ -0.3384985625743866, 0.9722377061843872, 0.3988373279571533, 1.3076279163360596, -0.10538972169160843, 0.2195473462343216, 0.12715323269367218, -0.1764860898256302, 0.7583202123641968, 0.45669782161712646, 0.5983126759529114, -0.642297089099884, 0.11208701133728027, -0.3399696350097656, ...
def _ _ mul _ _ ( self, other ) : if not isinstance ( other, ( int, long ) ) : raise typeerror ('encrypted message must be multiplied by a number') return encryptedmessage ( self. pub, pow ( self. ctxt, other % self. pub. n _ sq, self. pub. n _ sq ) )
[ -0.0898979976773262, 0.7384335994720459, 0.7331224679946899, 0.3271201252937317, -0.02762012928724289, -0.18378153443336487, -0.7121990919113159, -1.4700841903686523, 1.165884017944336, 0.08103189617395401, -0.389528751373291, 0.13227757811546326, -1.0793787240982056, 0.16825395822525024, ...
def processoptions ( self, optlist ) : outputstatisticsannotations. processoptions ( self, optlist ) for o, a in optlist : if o = = " - - ref _ domains " : self. mtablenamereferencedomains = a elif o = = " - - ref _ families " : self. mtablenamereferencefamilies = a elif o = = " - - full - table " : self. mfulltable = ...
[ -0.5446754097938538, -0.35897746682167053, 0.531559944152832, 0.11066586524248123, -0.00037106912350282073, -0.11791810393333435, 0.6931480169296265, -0.398893266916275, -0.3280005156993866, 0.18132999539375305, -0.16512414813041687, -0.16700510680675507, 0.6815789937973022, 1.047258734703...
def test _ atomic _ qname _ length _ 4 _ nistxml _ sv _ iv _ atomic _ qname _ length _ 5 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - length - 5. xsd ", instance = " nistdata / atomic / qname / schem...
[ 0.08063030987977982, -0.3125411570072174, 0.2704230546951294, -0.001712535391561687, -0.5125656723976135, 0.14014188945293427, 0.12090208381414413, -0.7832180857658386, 0.017206432297825813, 0.7587479948997498, -0.790094792842865, -0.31038081645965576, -0.38649579882621765, 0.1128248050808...
def actionswithhandindex ( self, state, hand _ index, ingame ) : # list of legal actions actions = [ ] # if betting, only one list if hand _ index = = 5 : actions = self. getlegalthings ( state, 0 ) else : # list of legal actions for playing actions = self. getlegalthings ( state, ingame ) [ hand _ index ] # print " ac...
[ -0.40486377477645874, -0.4602848291397095, 0.5844467878341675, 0.34310197830200195, 0.6091261506080627, 0.19595766067504883, -0.23695392906665802, -0.4239822328090668, 0.8991270661354065, 0.3879774510860443, 0.06565842032432556, 0.48405730724334717, -0.3817387521266937, 0.13611562550067902...
def schema ( self ) : return schema ( self )
[ 0.09548445791006088, -0.7052221894264221, -0.017217161133885384, 0.4475522041320801, 0.05317545309662819, -0.24477607011795044, -0.41703832149505615, 0.38319090008735657, 0.5607847571372986, -1.8172543048858643, 0.2527429461479187, 0.3884744346141815, -0.18897835910320282, -0.9801552295684...
def find _ songs _ close ( artist = " ed sheeran " ) : songs = [ ( a, n ) for a, n in zip ( music. artists, music. name ) if a = = artist ] def energy _ songs ( energy = 0. 8 ) : songs = [ ( a, n, e ) for a, n, e in zip ( music. artists, music. name, music. energy ) if e > energy and a = = artist ] return songs return ...
[ -0.7756787538528442, -0.43222442269325256, 0.609682559967041, -0.029678143560886383, -0.4070349335670471, 0.8740934133529663, 0.042820852249860764, 0.09022270888090134, -0.6673958897590637, 0.26843661069869995, -0.09336541593074799, -0.42987871170043945, 0.008132655173540115, 0.81972408294...
def meas _ function ( self, digital _ number, gains, dark _ signal, temp ) : return gains * ( digital _ number - dark _ signal ) + temp * * 0. 3
[ 0.3567619025707245, 0.5790292024612427, 0.19554154574871063, -0.23955804109573364, 0.24747569859027863, 0.02531038597226143, 0.2551436722278595, -0.6681596040725708, 0.06008455902338028, -0.2955882251262665, 0.10306250303983688, 0.27470383048057556, 0.5785427093505859, 0.27669456601142883,...
def test _ list _ decimal _ max _ length _ 1 _ nistxml _ sv _ iv _ list _ decimal _ max _ length _ 2 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - maxlength - 2. xsd ", instance = " nistdata / list / ...
[ -0.5916826128959656, -0.33345329761505127, 0.4397646486759186, 1.2459222078323364, -0.2553931176662445, -0.017543772235512733, -0.5387374758720398, 0.5911545753479004, 0.6339235901832581, -0.08723774552345276, -1.1612600088119507, 0.07071488350629807, 0.48239198327064514, 0.640106678009033...
def loop ( self ) : try : while self. running : for cmd in self. core. recv ( ) : if not self. running : break self. _ handle _ log ( cmd ) self. _ handle _ read ( cmd ) self. _ handle _ reply ( cmd ) self. _ handle _ timeout ( ) else : if not self. running : break self. _ handle _ read ( ) self. _ handle _ timeout ( )...
[ -0.5377832055091858, -0.5663418769836426, 0.5203999876976013, -0.30881646275520325, -0.013261962682008743, -0.1417275369167328, 0.22257059812545776, -1.2850795984268188, -0.23198175430297852, -0.4596326947212219, 0.7835968732833862, -0.3845032751560211, -0.7890092134475708, -0.417859286069...
def test _ pass _ threshold _ optional ( self ) : request = {'addresses': [ address ( self. trytes1 ) ], } filter _ = self. _ filter ( request ) self. assertfilterpasses ( filter _ ) self. assertdictequal ( filter _. cleaned _ data, {'addresses': [ address ( self. trytes1 ) ],'threshold': 100, }, )
[ -0.23101302981376648, 0.4633737802505493, 0.30296745896339417, -0.0027203585486859083, -0.03429269418120384, -0.11777500808238983, -0.6955363750457764, 0.26666268706321716, 0.17768386006355286, 0.09670240432024002, -0.6542658805847168, 0.33879581093788147, 0.5460315346717834, -0.2668491899...
def generate _ report ( data _ list ) : # draw the menu selection menu _ selection ( " menu _ 6 - generate report? ", menu _ 6 ) value = get _ integer ( " select report generation ", " 0 ", len ( menu _ 6 ) - 1 ) # clear the menu and the selection line clear _ area ( 20, 6, 40, 15, background, background ) clear _ line...
[ -0.16703803837299347, 0.7171258330345154, 0.6490397453308105, -0.003921789117157459, 0.5222795009613037, 0.07382386177778244, 1.148403286933899, 0.32599973678588867, 0.17135144770145416, -0.491818368434906, -0.19779200851917267, -0.21465884149074554, -1.3371014595031738, 0.6538552641868591...
def read _ urls ( filename ) : # + + + your code here + + + f = open ( filename,'ru') images = re. findall ( r'get \ s ( \ s + / puzzle / \ s + ) \ shttp ', f. read ( ) ) paths = { } extractfile = re. search ( r'\ s _ ( \ s + ) ', filename ) baseurl ='' if extractfile : baseurl = extractfile. group ( 1 ) for image in i...
[ -1.017215371131897, -0.47751885652542114, 0.6908262372016907, 0.31401821970939636, -0.35542482137680054, -0.37928682565689087, 0.7143938541412354, 0.858833372592926, -0.6417474150657654, 0.6994298100471497, -0.47005948424339294, -0.5985317230224609, 0.4145491421222687, 0.49206292629241943,...
async def get _ account ( self, phone _ iso : str, phone _ number : str, pubkey : str ) - > str : params = {'api _ key': self. api _ key,'phone _ iso': phone _ iso,'phone _ number': phone _ number,'public _ key': pubkey } try : async with clientsession ( ) as session : async with session. get ( self. request _ url, par...
[ -0.1856263130903244, -0.24139195680618286, 0.720237672328949, 0.2259257733821869, 0.0460924357175827, -0.38132545351982117, -0.44310078024864197, -0.7843888401985168, 1.017867922782898, 0.18985426425933838, 0.5763602256774902, 0.48629772663116455, -0.4212096631526947, -0.4424368143081665, ...
def test _ general _ failures ( self ) : # verifies the return of the creation of a non existent module module = modulesource. create ( " nonexistentmodule " ) self. assertequal ( module, none )
[ -0.3632669746875763, 0.38978081941604614, 0.02371429279446602, -0.6984537839889526, 1.6098216772079468, 1.332727074623108, -0.03694823756814003, -0.2823668420314789, 0.3116525411605835, -0.048687949776649475, -1.051095724105835, 0.007790748029947281, -0.49696117639541626, 0.414830297231674...
def find _ transformation _ full ( lines ) : if len ( lines ) = = 0 : return bounds = lines [ 0 ]. chars [ 0 ]. refined _ box for ln in lines : for ch in ln. chars : bounds = [ min ( bounds [ 0 ], ch. refined _ box [ 0 ] ), min ( bounds [ 1 ], ch. refined _ box [ 1 ] ), max ( bounds [ 2 ], ch. refined _ box [ 2 ] ), ma...
[ 0.23768238723278046, -0.8120174407958984, 0.8168533444404602, 0.15163452923297882, 0.2697686553001404, -0.6592386960983276, -0.03644559159874916, -0.6327792406082153, -0.231282576918602, -0.7100920081138611, -0.49617043137550354, -0.09858652949333191, 0.4944273829460144, 0.6795129179954529...
def setup _ system ( self, p, q, p _ mask, q _ mask, span ) : # initialize the various variables self. p = p self. q = q self. p _ mask = p _ mask self. q _ mask = q _ mask self. span = span # lookup the embedding for context and question p = tf. nn. embedding _ lookup ( self. embeddings, self. p ) q = tf. nn. embeddin...
[ -0.2505432665348053, -0.25223878026008606, 0.5948880314826965, 0.10415700823068619, 0.4992651045322418, 0.5929336547851562, 0.14457698166370392, -0.43386179208755493, 0.7509639263153076, -0.40965211391448975, -0.17142736911773682, 0.3407912850379944, -0.03190159797668457, 0.394596785306930...
def load _ secrets _ from _ dir ( directory ) : for filename in os. listdir ( directory ) : with open ( os. path. join ( directory, filename ) ) as f : # yield the filename on the format " upper _ underscore " instead of " lower - dash " yield filename. replace ('- ','_'). upper ( ), f. read ( ). strip ( )
[ -0.6572232246398926, -0.35695263743400574, 0.6814111471176147, -0.6221442818641663, -0.4944141209125519, -0.21115396916866302, -1.027571678161621, 0.008500272408127785, -0.00152321788482368, 0.576862633228302, -0.3825910687446594, 0.3016956150531769, 1.1481571197509766, 0.9210515022277832,...
def createeventtype ( self, name, schemaid, description = none ) : req = apiclient. alleventtypesurl % ( self. host, " / draft " ) body = { " name " : name, " schemaid " : schemaid } if description : body [ " description " ] = description resp = requests. post ( req, auth = self. credentials, headers = { " content - ty...
[ 0.009600725024938583, -0.09963230043649673, 0.7322626113891602, 0.3244585692882538, 0.13580401241779327, -0.07809710502624512, -0.770444929599762, 0.6388579607009888, 0.6258382201194763, 0.7077392339706421, -1.0898902416229248, 0.42422494292259216, -1.5572093725204468, 0.6570753455162048, ...
def iframe _ decorator ( func : callable ) : # adding these rules here because of weirdness around including # this decorator ( that depends on the iframebasepageobject ) inside # the class, while still making it available to subclasses def func _ wrapper ( self, * args, * * kwargs ) : iframe _ selector = self. get _ i...
[ -1.1587969064712524, -0.1297699511051178, 0.5936732888221741, 0.26990944147109985, 0.2973111867904663, -0.53050696849823, 0.4264070391654968, 0.2354043573141098, 1.3029130697250366, 0.4958064556121826, 1.171159267425537, 0.18386578559875488, -0.33413082361221313, 0.3985535502433777, 0.43...
def _ start ( self ) : if not self. running : self. running = true self. thread = threading. thread ( target = self. loop ) self. thread. daemon = true self. thread. start ( ) self. reset _ system ( )
[ 0.0003545317449606955, -0.11459031701087952, 0.18397726118564606, 0.27202802896499634, 0.6743822693824768, 0.15861444175243378, -0.40937697887420654, 0.44355857372283936, 0.007278877776116133, -0.0843956470489502, 0.2099284827709198, 0.8343216776847839, -0.6941913962364197, 0.2203917205333...
def _ render ( self, mode ='human ', close = false ) : raise notimplementederror
[ -1.1182770729064941, -0.06172633171081543, 0.7294052243232727, -0.1797357052564621, -0.9596623182296753, 1.3911384344100952, 0.12771615386009216, 0.04317976161837578, -1.1317963600158691, 0.13384021818637848, 0.14819245040416718, -0.6964027881622314, -0.09846946597099304, 0.032779529690742...
def _ as _ child ( self, process, gnupg _ commands, args ) : # child for std in _ stds : p = process. _ pipes [ std ] os. dup2 ( p. child, getattr ( sys, " _ _ % s _ _ " % std ). fileno ( ) ) for k, p in process. _ pipes. items ( ) : if p. direct and k not in _ stds : # we want the fh to stay open after execing fcntl. ...
[ 0.2521130442619324, -0.06358519196510315, 0.8166376948356628, -0.44422784447669983, 0.1062217578291893, 0.5683315992355347, -0.7512121796607971, -0.4819702208042145, -1.0116723775863647, -0.06284632533788681, 0.17745183408260345, 0.21137912571430206, 0.585015594959259, 0.6327012181282043, ...
def cluster ( clustertype, data, * * kwargs ) : method = methods [ clustertype ] [ 3 ] return method ( data, * * kwargs )
[ -0.34970518946647644, 0.1997966468334198, 0.11010420322418213, -0.19723622500896454, -0.059607189148664474, -0.7496686577796936, -0.41407671570777893, -0.5262875556945801, 0.4862266182899475, -0.11956872045993805, 0.11923781782388687, 1.1733165979385376, -0.5432721376419067, -0.16329999268...
def get _ feature _ filename ( feature _ extractor _ name, h _ stride, v _ stride, feature _ height, fov ) : return " features _ { } _ h - { } _ v - { } _ height - { } _ fov - { }. sstable @ 100 ". format ( feature _ extractor _ name, h _ stride, v _ stride, feature _ height, fov )
[ 0.5670443773269653, -0.5386465787887573, 0.651336669921875, 0.9094979166984558, -0.1967439502477646, -0.7251772880554199, 0.6171985864639282, 0.6251963973045349, -1.2161180973052979, 0.7513384222984314, -0.27242574095726013, 0.4810435175895691, 1.205268383026123, -0.10192468017339706, 0....
def get _ tf _ fixed _ config ( self, job _ obj, total _ num _ of _ node = 0 ) : if self. lhs _ pending _ config. get ( job _ obj ) is none : logging. debug ( " total _ num _ of _ node : % d " % total _ num _ of _ node ) init _ conf = pstunerconfiguration ( total _ num _ of _ node - 1, 1, 14, 2, 1, 200, 3, 0. 0001 ) sw...
[ -0.4475948214530945, 0.02391735650599003, 0.6643418073654175, -0.21721385419368744, 0.01415845938026905, -0.5805758237838745, 0.49266329407691956, -0.09446237981319427, -0.8902393579483032, 0.36087682843208313, -0.47337624430656433, -0.6253089308738708, -0.7951958179473877, 0.7022123336791...
def test _ atomic _ qname _ min _ length _ 4 _ nistxml _ sv _ iv _ atomic _ qname _ min _ length _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - minlength - 5. xsd ", instance = " nistdata / atomic ...
[ 0.4713318347930908, -0.7846477031707764, 0.29103153944015503, -0.38085228204727173, -0.6208879947662354, -0.13245441019535065, -0.060509394854307175, -1.3258166313171387, 0.31895944476127625, 0.11915562301874161, -0.6196713447570801, -0.15590664744377136, -0.8310423493385315, -0.0958412289...
def set ( self, * * kw ) : if " element " in kw : self. element = kw [ " element " ] nrow = len ( self. element ) self. _ twtable = np. zeros ( ( nrow, len ( self. _ cols ) ),'d') for i, k in enumerate ( self. _ cols ) : self. _ twtable [ :, i ] = kw. get ( k, np. nan ) self. chrom = kw. get ( " chrom ", none ) self. t...
[ -0.41503751277923584, 0.7213605642318726, 0.3411203920841217, -0.13714534044265747, -0.2945963740348816, 0.07241086661815643, 0.2466002106666565, -0.4773487448692322, -0.8135076761245728, 0.24673619866371155, -0.5935449004173279, 0.8102575540542603, 0.10824235528707504, 0.4837968051433563,...
def to _ dict ( self ) : new _ dict = self. _ _ dict _ _. copy ( ) new _ dict ['_ _ class _ _'] = type ( self ). _ _ name _ _ new _ dict ['updated _ at'] = self. updated _ at. isoformat ( ) new _ dict ['created _ at'] = self. created _ at. isoformat ( ) return new _ dict
[ -1.2068983316421509, -1.04417884349823, 0.7929385900497437, -0.848584771156311, -0.5904183983802795, 0.695164144039154, -0.5064375400543213, -0.5376791954040527, -0.29673177003860474, 0.27298927307128906, -0.5848953723907471, 0.7145000696182251, 0.7276163101196289, 0.7436565160751343, 0....
def get _ ranges _ colormap ( values, range = none, cmap ='gist _ earth ', norm = none, norm _ ref = none, n _ cmap _ levels = none, * * kwargs ) : values _ flat = np. ndarray. flatten ( values ) if range is none : min _ = min ( values _ flat ) max _ = max ( values _ flat ) else : min _ = range [ 0 ] max _ = range [ 1 ...
[ -0.4893394708633423, -0.6612350940704346, 0.5318591594696045, 0.39616885781288147, -0.22739914059638977, -0.3711320161819458, 0.23520666360855103, -0.017783453688025475, 0.2863663136959076, 0.08420518785715103, 0.1976490467786789, 0.034118566662073135, -0.7383402585983276, 0.55130219459533...
def draw _ bitmap ( self ) : wx. beginbusycursor ( ) self. compute. progress = self. make _ progress _ reporter ( ) self. compute. while _ waiting = self. draw _ progress self. compute. compute _ pixels ( ) wx. callafter ( self. fire _ event, aptusrecomputedevent ) self. refresh ( ) bitmap = self. bitmap _ from _ compu...
[ -0.20325767993927002, 0.10827622562646866, 0.5264805555343628, -0.20429649949073792, -0.1589285135269165, 0.41519245505332947, 0.6332476139068604, -0.3952619135379791, -0.255815327167511, -1.1340079307556152, 0.5115576386451721, 0.45022454857826233, -0.32793185114860535, 0.3071434199810028...
def adjustorigincenter ( frame ) : trans = pya. trans. new ( - frame. center ( ) ) for inst in layout. top _ cell ( ). each _ inst ( ) : layout. top _ cell ( ). transform ( inst, trans ) for li in layout. layer _ indices ( ) : for shape in layout. top _ cell ( ). each _ shape ( li ) : layout. top _ cell ( ). shapes ( l...
[ 0.32381877303123474, -0.8191589713096619, 0.7878096103668213, -0.23141290247440338, -0.8472427129745483, 0.23124653100967407, 1.053652048110962, 0.41044607758522034, 0.7489327788352966, 0.20917418599128723, 0.34662526845932007, -0.15570564568042755, 0.07637624442577362, 0.3247201144695282,...
def savefactormatrices ( partition ) : ret = [ ] rows = list ( partition ) error = 0. 0 for row in rows : label = row [ 0 ] xi = row [ 1 ] ki = xi. shape [ 0 ] dashidx = label. rindex ('-') dotidx = label. rindex ( '.') labelid = int ( label [ dashidx + 1 : dotidx ] ) # solve for ci ci = np. zeros ( ( ki, r ) ) zitzic ...
[ -0.30205366015434265, -0.8551328182220459, 0.7096425890922546, 0.30439528822898865, 0.7474701404571533, -0.42219167947769165, 0.9580655097961426, 0.2813567817211151, -0.1957448124885559, 0.6107165813446045, -0.1574700027704239, -0.5979179739952087, -0.024482890963554382, 0.1426923722028732...
def test _ case _ name _ length ( self ) : # get object case _ 1 = case. objects. get ( case _ name ='case _ 1') # get max length max _ length = case _ 1. _ meta. get _ field ('case _ name'). max _ length # compare self. assertequal ( max _ length, 50 )
[ 0.4122353494167328, 0.03183344006538391, 0.19914324581623077, 0.44837021827697754, 0.19117851555347443, 1.167283296585083, -0.3282581865787506, 0.12098794430494308, 0.9068345427513123, 0.893690824508667, -0.5963596701622009, -0.31117361783981323, 0.38477808237075806, 0.4447041153907776, ...
def angle _ diff ( a1, a2 ) : angles = a1 - a2 angles [ angles > np. pi ] - = 2 * np. pi angles [ angles < - np. pi ] + = 2 * np. pi return angles
[ -0.7104401588439941, -0.7276845574378967, 0.4375981390476227, -0.299052894115448, -0.06852028518915176, 0.8516176342964172, -0.3308272957801819, 0.4065384268760681, 0.09609806537628174, 1.0778448581695557, -0.5248183608055115, 0.41158241033554077, -0.05888335406780243, -0.28430667519569397...
def test _ stats ( self ) : self. ep. search ( " stats / system " ) self. ep. search ( " stats / volumes " )
[ 0.6547896862030029, 0.624518871307373, 0.3867734372615814, 0.24955859780311584, 1.6496105194091797, -0.0032295696437358856, 0.098915234208107, -1.2000174522399902, 0.8600342273712158, -1.2677536010742188, 0.7377537488937378, -0.4121510982513428, 0.5909034013748169, 0.5487871766090393, -0...
def getdata ( datafile ) : data = np. loadtxt ( datafile ) return data
[ 0.36893531680107117, -0.5205629467964172, 0.05230584740638733, -1.582147479057312, -0.19919531047344208, 1.5520343780517578, -0.39582499861717224, -0.04349686577916145, -0.540787935256958, -0.425391286611557, -0.5254842638969421, 0.8922989368438721, -0.42431139945983887, -0.755527794361114...
def test _ get _ cve _ filter _ by _ published _ state ( ) : res = requests. get ( f'{ env. awg _ base _ url } { cve _ url } / ', headers = utils. base _ headers, params = {'state':'published'} ) assert res. status _ code = = 200 recordslength = len ( json. loads ( res. content. decode ( ) ) ['cverecords'] ) assert rec...
[ 0.09337569773197174, -0.05972057580947876, 0.348073810338974, -0.016956351697444916, 0.8309592604637146, 0.16114366054534912, -0.19307327270507812, 0.9629874229431152, 0.14009909331798553, -0.11813559383153915, -0.30737653374671936, 0.5017463564872742, 0.49212610721588135, -0.1714067310094...
def testsrun ( self, value ) : pass
[ -0.43441104888916016, -0.3452288508415222, 0.22105804085731506, 0.5861657857894897, 0.35599106550216675, 0.9215478897094727, 1.176905870437622, -0.7148502469062805, 0.33255815505981445, -0.8087886571884155, -0.766051173210144, -0.2075236737728119, -1.1642547845840454, 0.5373026132583618, ...
def subscription _ update ( instance : subscription, * * kwargs ) - > none : if kwargs [ " created " ] : message = _ ( " your subscription succesfully activated! " " you can check your subscription state in “ my activities ” " " section " ) instance. company. notify _ workers ( message, message. success ) notification ...
[ 0.5748302936553955, -0.12891507148742676, 0.43947964906692505, 0.48296740651130676, -0.18783193826675415, 0.012237192131578922, -0.4282650351524353, 0.19387337565422058, 0.047940902411937714, 0.13767845928668976, -0.9959027767181396, 0.40538397431373596, 0.5388936400413513, -0.070530630648...
def image _ type ( self ) : return''
[ -0.267593652009964, 0.16826754808425903, 0.3627088665962219, -0.034931693226099014, 0.913814902305603, 0.5792098641395569, -0.04619221389293671, -0.46472159028053284, 0.6361120939254761, -0.2089730203151703, -0.29766178131103516, 0.6313621997833252, -0.5637020468711853, 1.1611239910125732,...
def lm _ tfinal ( mass, spin, modes ) : f _ 0, tau = get _ lm _ f0tau _ allmodes ( mass, spin, modes ) t _ max = { } for lmn in modes : l, m, nmodes = int ( lmn [ 0 ] ), int ( lmn [ 1 ] ), int ( lmn [ 2 ] ) for n in range ( nmodes ) : t _ max ['% d % d % d'% ( l, m, n ) ] = qnm _ time _ decay ( tau ['% d % d % d'% ( l,...
[ 0.3768656551837921, -0.43628188967704773, 0.46490830183029175, -0.7591936588287354, -0.4794306457042694, -0.4592871367931366, -1.4429516792297363, 0.1828249841928482, -0.663833737373352, 0.6709216237068176, -1.126083254814148, -0.5328034162521362, 0.3934471905231476, 0.5629725456237793, ...
def test _ block _ template _ with _ missing _ template ( app ) : with app. app _ context ( ) : with pytest. raises ( templatenotfound ) : blocktemplatedmessage ( " tests / missing. html " )
[ 1.4468965530395508, 0.312597393989563, 0.48507562279701233, 0.7614020705223083, 0.18774102628231049, 0.6325832009315491, 0.6295092701911926, -0.427906334400177, -0.12698087096214294, 0.5978348255157471, -0.5460989475250244, -0.01170358993113041, -0.14079700410366058, 1.117984652519226, 0...
def determine ( self, current = none, maximum = none ) : if not current : current = self. current if not maximum : maximum = self. maximum if current > self. upper _ bound : return current if maximum < self. upper _ bound : return maximum return max ( current, min ( self. upper _ bound, maximum / 2 ) )
[ -0.5021889209747314, -1.3795428276062012, 0.5312521457672119, 1.389889121055603, -0.00009394271182827652, -0.005387924611568451, -0.22039514780044556, 0.35602423548698425, -0.56937175989151, -0.8250901103019714, 0.2112678587436676, 0.7824889421463013, -0.904093861579895, 0.3132175803184509...
def rargmax ( vector ) : m = np. amax ( vector ) indices = np. nonzero ( vector = = m ) [ 0 ] return pr. choice ( indices )
[ -0.36603468656539917, -0.08686090260744095, 0.49339064955711365, 0.5911778211593628, -0.00007797777652740479, -0.19533097743988037, -0.7418882846832275, 0.417865127325058, 0.6025636792182922, 1.0225427150726318, 0.7524088025093079, 0.47574639320373535, -0.7810191512107849, -0.5532494783401...
def on _ epoch _ end ( self ) : file _ indexes = np. repeat ( np. arange ( 340 ), self. n _ samples ) row _ indexes = np. tile ( np. random. choice ( np. arange ( self. n _ max _ samples ), size = self. n _ samples, replace = false ), len ( self. word _ encoder. classes _ ) ) self. indexes = np. transpose ( np. array (...
[ -0.7144550681114197, 0.0960325226187706, 0.3882717788219452, -0.504132091999054, 0.35919612646102905, 0.17083454132080078, 0.7480512261390686, 0.7195824384689331, -0.22536127269268036, 0.6122465133666992, 0.06366422027349472, 0.734595537185669, 0.10153497755527496, 0.76230388879776, 0.49...
def _ _ init _ _ ( self, * args, * * kwargs ) : super ( ). _ _ init _ _ ( * args, * * kwargs ) self. _ return = none
[ -0.5163983702659607, 0.2007741779088974, 0.49459776282310486, 0.003999581094831228, 0.3084569275379181, -0.6585487723350525, 0.1163427010178566, -0.2528468072414398, 0.131281778216362, -0.6017764210700989, -0.716719925403595, 0.334291934967041, -0.9877081513404846, 0.1419408917427063, 1....
def _ richcmp ( self, other, op ) : # convert other to a rational instance where reasonable. if isinstance ( other, numbers. rational ) : return op ( self. _ numerator * other. denominator, self. _ denominator * other. numerator ) if isinstance ( other, float ) : if math. isnan ( other ) or math. isinf ( other ) : retu...
[ 0.36046135425567627, -0.6530312299728394, 0.7454115748405457, -0.45415282249450684, -0.037274498492479324, -0.13822975754737854, -0.21433749794960022, -1.1139640808105469, 0.6771345734596252, -0.6383906006813049, 0.7006992101669312, -0.2182624787092209, 0.0688946396112442, -0.7686448693275...
def is _ time _ around ( expected _ time, loop = none, delta =. 01 ) : now = loop. time ( ) if loop else time. time ( ) return ( expected _ time - delta ) < = now < = ( expected _ time + delta )
[ -0.3548852503299713, -0.13873499631881714, 0.6933571696281433, 0.5868188142776489, -0.30832022428512573, 0.9494668245315552, 0.2451220601797104, -0.04227280616760254, -0.06773649156093597, 0.541586697101593, 0.4080950915813446, 0.37716367840766907, -0.8293484449386597, 0.893901526927948, ...
def numpyarrayf32 ( * args, * * kwargs ) : return np. array ( * args, dtype = np. float32, * * kwargs )
[ 0.6067742705345154, -0.13330702483654022, 0.6196867823600769, -0.18263231217861176, 0.7627032399177551, 0.482571005821228, -0.558282196521759, -1.2374128103256226, -0.660075306892395, -0.5970633029937744, -0.6522785425186157, 0.5428397059440613, -0.29778948426246643, 1.597853183746338, 0...
def log _ to _ linear ( log _ xs, log _ ys, dlogy _ dlogxs, base = none ) : if base is none : return dlogx _ dlogys * np. exp ( log _ ys - log _ xs ) else : return dlogx _ dlogys * base * * ( log _ ys - log _ xs )
[ 0.11172713339328766, -0.008481627330183983, 0.6818368434906006, -0.5440477132797241, -0.03430530056357384, -0.7115632891654968, -1.4775935411453247, -0.2295883446931839, 0.8595805168151855, 0.05839861184358597, -0.5331913828849792, 0.6582799553871155, 0.7973071336746216, -1.037156462669372...
def rank ( self, queries ) : doc _ ids _ ordered = [ ] doc _ ids _ ordered _ extra = [ ] x = self. pipe. transform ( queries ) df = pd. dataframe ( x. toarray ( ), columns = self. pipe ['count']. get _ feature _ names ( ) ) query _ df = df. transpose ( ) query _ df. columns = range ( len ( queries ) ) query _ df ['idf'...
[ 0.01883406564593315, 0.11722531169652939, 0.6470379829406738, -0.5914607048034668, 0.05461280047893524, -0.11643243581056595, 0.45323315262794495, 0.1212785616517067, -0.3350619673728943, 0.024715978652238846, 0.7378942370414734, 0.2636388838291168, -0.657896101474762, -0.3947980999946594,...
def generate _ data ( min _ blobs, max _ blobs ) : output _ size = max _ blobs - min _ blobs + 1 train _ all _ n = np. zeros ( [ output _ size, num _ imgs, img _ height * img _ width ] ) train _ incr _ all _ n = np. zeros ( [ output _ size, num _ imgs, num _ incr, img _ height * img _ width ] ) for i in range ( output ...
[ -0.2590042054653168, -0.052352722734212875, 0.756756067276001, 0.4801340401172638, -0.539924681186676, -0.08845130354166031, 0.3877995014190674, -0.1462286114692688, -0.14184294641017914, -0.14620216190814972, -0.5946822762489319, -0.0684506744146347, 0.3310356140136719, 0.2911694347858429...
def width ( self ) : return self. _ img. num _ cols ( )
[ -0.9186849594116211, 0.4642045497894287, 0.6242350935935974, 0.5151180624961853, 0.7611662745475769, -0.4394095540046692, 0.8645726442337036, -0.03185585141181946, 0.596250593662262, -1.2956607341766357, -0.6065508127212524, -0.08793579787015915, 0.6082531213760376, 0.19973528385162354, ...
def command _ feature ( self, brain, arg ) : f = open ( os. getcwd ( ) + " / data / features. txt ", " a " ) f. write ( " ". join ( arg ) + " \ n " )
[ 0.2544454336166382, -0.9192366600036621, 0.4933793544769287, -0.06496632099151611, 1.1866761445999146, 1.2266440391540527, 0.737510085105896, 1.242730975151062, -0.5450143218040466, -0.33526289463043213, -1.2492908239364624, 0.9920916557312012, -0.5907282829284668, 0.7053634524345398, -0...
def test _ atomic _ any _ uri _ enumeration _ 1 _ nistxml _ sv _ iv _ atomic _ any _ uri _ enumeration _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - enumeration - 2. xsd ", instance = " nistdata...
[ -0.815528929233551, -1.169754981994629, 0.537377655506134, 0.979903519153595, -0.44434356689453125, -0.19566500186920166, 0.4383847713470459, -0.2469104677438736, -0.6563234925270081, 0.0065869977697730064, -0.2753998935222626, -0.06476131081581116, -0.049424026161432266, 0.367721259593963...
def test _ example _ input _ two _ required _ field _ index ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input two " ) input _ page. entity2. e...
[ -0.7382861971855164, -0.04869220405817032, 0.6743448972702026, 0.009232270531356335, 0.6561844348907471, 1.0717487335205078, 0.23691126704216003, -0.3172603249549866, -0.06378751248121262, 0.1818169206380844, -1.5337021350860596, 0.15468722581863403, -0.0016414220444858074, -0.182740628719...
def merge _ population _ data ( df _ dcmetro, df _ population ) : df _ population _ dcarea = df _ population. loc [ df _ population ['state']. isin ( ['virginia ','district of columbia ','maryland ','west virginia'] ) ] df _ population _ dcarea. rename ( columns = {'geography _ county':'regionname'}, inplace = true ) d...
[ -0.812549352645874, 0.7517945170402527, 0.7505635619163513, -0.6094127297401428, -0.11904280632734299, 0.8863077163696289, 0.38910096883773804, -0.32158875465393066, -0.4810113310813904, 0.29540809988975525, 0.07575458288192749, 0.01947213150560856, 0.5200913548469543, -0.03017145209014415...
def get _ accuracy ( n ) : return ( float ( n [ 0 ] [ 0 ] + n [ 1 ] [ 1 ] ) / ( n [ 0 ] [ 0 ] + n [ 1 ] [ 1 ] + n [ 0 ] [ 1 ] + n [ 1 ] [ 0 ] ) )
[ -0.4447389245033264, -0.20389819145202637, 0.48606666922569275, -0.6318842768669128, 0.6753473281860352, -0.38226476311683655, 0.5611134767532349, -0.6922899484634399, -0.09407491236925125, 0.350995808839798, -0.03749269247055054, 0.264877587556839, 0.4964144825935364, 0.28218382596969604,...
def test _ train _ on _ the _ fly ( self ) : input _ seqs _ file = namedtemporaryfile ( prefix ='rdptaxonassignertest _ ', suffix = '. fasta') input _ seqs _ file. write ( test _ seq _ coll. tofasta ( ) ) input _ seqs _ file. seek ( 0 ) exp _ assignments = rdp _ trained _ test1 _ expected _ dict app = rdptaxonassigner ...
[ -0.2405732125043869, -0.4982600212097168, 0.7251154780387878, -0.1486392319202423, -0.09932398051023483, 0.8091985583305359, 0.5377205014228821, 0.423237681388855, -0.35795244574546814, 0.34095248579978943, -0.28736457228660583, -0.2492884248495102, -0.2778927981853485, -0.0231475010514259...
def process _ upload ( upload _ id ) : click. echo ( " processing upload " ) logger. info ('getting upload') upload = upload. from _ id ( upload _ id ) logger. info ('updating upload status') upload. update _ upload _ status ('processing') logger. info ('processing upload ( % s ) for user % s with files % s ', upload. ...
[ -0.9183266758918762, 0.30300214886665344, 0.9431158900260925, 0.2336026132106781, 0.9031174778938293, -0.20798273384571075, -0.12849797308444977, -0.8516716957092285, 0.12973086535930634, -0.06585249304771423, -0.04623394459486008, -0.08782926201820374, 0.04008480906486511, 0.7858408093452...
def _ _ wait _ for _ read ( self, raw _ socket : socket. socket, timeout : float ) - > none : self. _ _ logger. debug ( " waiting for socket to be readable " ) ready _ to _ read, _, _ = select ( [ raw _ socket ], [ ], [ ], timeout ) if raw _ socket not in ready _ to _ read : raise ircsocketexception ( " socket operatio...
[ -0.8149237632751465, 0.48456472158432007, 0.4262810945510864, -1.1471214294433594, -0.6498022079467773, 0.027882937341928482, -0.5931290984153748, -0.22569623589515686, -0.5137145519256592, 0.15146523714065552, 0.5020845532417297, 0.7275474071502686, 0.25618067383766174, -0.598197758197784...
def get _ full _ name ( self, reverse = false ) : last = self. user. profile. last _ name first = self. user. profile. first _ names if reverse : return ', '. join ( [ last, first ] ) else : return''. join ( [ first, last ] )
[ 0.3174162209033966, 0.29261884093284607, 0.9983030557632446, 0.27457305788993835, 0.18294565379619598, 0.17091797292232513, -0.7517474889755249, -0.3963395953178406, -0.27878692746162415, 0.4054417610168457, -0.09673219919204712, 0.024805979803204536, -0.4868064522743225, -0.31669840216636...
def writeangspread ( self, ctype, fname, ainds ) : if ctype not in self. clsnaps. keys ( ) : raise notimplementederror ( " unknown cluster type in angspread " ) cutoff = self. cldict [ ctype ] if self. comm. get _ rank ( ) = = 0 : fid = open ( fname,'w') clsnaps = self. clsnaps [ ctype ] for clsnap in clsnaps : angspre...
[ -0.8795490264892578, -0.8538137674331665, 0.5711190700531006, -0.582196831703186, 0.21213150024414062, 1.4177443981170654, 0.07859489321708679, -0.15829123556613922, 0.4911610782146454, 0.6545359492301941, 0.5895217657089233, -0.11889731138944626, 0.7725563049316406, -0.21219685673713684, ...
def test _ atomic _ hex _ binary _ enumeration _ 1 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ enumeration _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - enumeration - 2. xsd ", instance ...
[ -0.6800605058670044, -0.8620853424072266, 0.6163575053215027, 0.917608380317688, -0.3088052272796631, 0.33976301550865173, 0.2735779285430908, -0.006000194698572159, -0.9463754296302795, 0.40383008122444153, -1.0461299419403076, -0.1398298740386963, 0.25029608607292175, 0.7269997000694275,...
def parse _ arguments ( ) : parser = argumentparser ( description = " evaluate a model. " ) parser. add _ argument ('- - data ', help = " path to the test data for evaluation. " ) parser. add _ argument ('- - stat ', help = " path to save statistic about the evaluation. " ) parser. add _ argument ('- - weight ', help =...
[ 0.08618107438087463, -0.048366546630859375, 0.6833882331848145, -0.7549920082092285, 0.5915995836257935, -0.06735590100288391, -0.1343946009874344, 0.027810782194137573, -0.7807557582855225, 0.21759508550167084, -0.5037539005279541, 0.08226165920495987, -0.2892480492591858, 0.6750122904777...
def _ apply _ regional _ scalars _ helper ( df : pd. dataframe ) - > pd. dataframe : df [ columns. draws ] = df [ columns. draws ]. mul ( df [ columns. mean ], axis = 0 ) return df
[ 0.16279830038547516, 1.210245132446289, 0.5075663328170776, -1.4819178581237793, -0.1538512259721756, -0.11009116470813751, -0.1388521045446396, -0.7410979866981506, 0.08915393054485321, 0.6980313062667847, 0.579737663269043, 1.07027268409729, 1.378364086151123, -1.0852043628692627, 0.10...
def calc _ ent ( x ) : x _ value _ list = set ( [ x [ i ] for i in range ( x. shape [ 0 ] ) ] ) ent = 0. 0 for x _ value in x _ value _ list : p = float ( x [ x = = x _ value ]. shape [ 0 ] ) / x. shape [ 0 ] logp = np. log2 ( p ) ent - = p * logp return ent
[ 0.44770359992980957, -0.15321345627307892, 0.48285049200057983, -0.4954189956188202, 0.10391227155923843, 0.248891219496727, 0.06428136676549911, 0.3683423399925232, 0.14383763074874878, 0.6730473637580872, -0.14662760496139526, 0.5930948257446289, 0.35181552171707153, -0.22134679555892944...
def build _ rte _ model ( rte _ data ) : # load model options print'loading uni - skip model parameters...'with open ('% s. pkl'% path _ to _ umodel,'rb') as f : uoptions = pkl. load ( f ) # load parameters # fix decoder keyerror uoptions ['decoder'] ='gru'uparams = init _ params ( uoptions ) del uparams ['wemb'] upara...
[ 0.005419852677732706, -0.12787550687789917, 0.7263429164886475, 0.2639717757701874, -0.21023203432559967, -0.13839678466320038, 0.6756157279014587, 0.5191516876220703, 0.033883508294820786, -0.24733282625675201, 0.2508779466152191, -0.18926770985126495, 0.23099906742572784, 0.1368271708488...
def all _ available _ dates ( reference _ stock ='anz') : global date _ cache if reference _ stock in date _ cache : return date _ cache [ reference _ stock ] # use reference _ stock to quickly search the db by limiting the stocks searched dates = quotation. objects. mongo _ distinct ('fetch _ date ', {'asx _ code': re...
[ -0.06851179152727127, 0.2670300304889679, 0.5689034461975098, 0.7538571953773499, -0.23440638184547424, 0.5166297554969788, -0.7057515978813171, -0.511618971824646, 0.8506878018379211, 0.8857810497283936, 0.07605629414319992, 0.5449899435043335, 0.048505689948797226, 1.2892217636108398, ...
def feed ( self ) : return self. _ feed
[ 0.5357849597930908, -1.0221600532531738, 0.08594472706317902, -0.10779859870672226, 0.4740356504917145, 0.6621875762939453, 0.3032975494861603, -0.7009061574935913, 0.24759359657764435, -1.7348603010177612, 0.12002222239971161, 1.3081759214401245, -0.3319537937641144, -0.9304079413414001, ...
def spec _ world _ to _ pix ( worldunit, wcs, axisnumber, unit ) : coords = list ( wcs. wcs. crpix ) coords [ axisnumber ] = worldunit. to ( unit ). value coords = list ( np. broadcast ( * coords ) ) return wcs. wcs _ world2pix ( coords, 0 ) [ :, axisnumber ]
[ -0.49127015471458435, -0.2405572533607483, 0.49653908610343933, -0.804277777671814, -0.3847276270389557, 0.3169204294681549, 0.6739957928657532, -0.377858430147171, 0.7850570678710938, 0.8182218074798584, 0.5456308722496033, 1.5529427528381348, 0.5512282252311707, -0.6292617321014404, 0....
def encode ( bkd, net, mdl, net _ in, net _ out, name, verbose = 0 ) : # scalar to vector output try : len ( net _ out ) except : net _ out = [ net _ out ] # build a model descriptor desc = util. modeldesc ( net, mdl, name ) # process the network layer by layer for k, layer in enumerate ( net. layers ( ) ) : # add the ...
[ 0.6856764554977417, 0.10358935594558716, 0.8030365109443665, 0.10410608351230621, 0.03402842581272125, 0.03261136636137962, -0.4288577735424042, 0.20254985988140106, -0.172321155667305, -0.0739997923374176, 0.11427920311689377, 0.045393455773591995, -0.31731411814689636, 0.1264524459838867...
def save _ to _ dict ( self ) : return self. _ _ dict _ _
[ -1.429054617881775, -1.4976036548614502, 0.5735893249511719, -1.2973829507827759, -0.618354320526123, -0.06187143176794052, 0.397003710269928, -0.5210437774658203, -0.08683864027261734, -0.12291073799133301, -1.251198172569275, -0.13818678259849548, -0.28508639335632324, 0.4682874679565429...
def _ _ init _ _ ( self ) : self. opt _ port = 0 self. opt _ rdns = false self. opt _ verbose = false self. opt _ timeout = default _ timeout
[ 0.7577478289604187, 1.0291998386383057, 0.42625901103019714, 0.07652413845062256, 1.169095754623413, -0.04449918493628502, -0.7078652381896973, -0.051885753870010376, 0.33763062953948975, 0.7018914818763733, -0.7922971248626709, 0.5443193912506104, -0.9290040731430054, 0.3885144889354706, ...
def endloop ( self, setup ) : # print self. cfg _ ana self. mainlogger. info ('' ) self. mainlogger. info ( str ( self ) ) self. mainlogger. info ('' )
[ -0.13325510919094086, -0.8342812061309814, 0.34401583671569824, -0.7153916358947754, -0.5900880694389343, 0.5213761925697327, 0.7518163323402405, -0.23426492512226105, -0.6324859261512756, 0.3995340168476105, 0.27820155024528503, -0.11093130707740784, -0.34588199853897095, 1.42545402050018...
def test _ bstrap ( self ) : aln = load _ aligned _ seqs ( join ( data _ dir, " brca1. fasta " ), moltype = " dna " ) aln = aln. take _ seqs ( aln. names [ : 3 ] ) aln = aln. omit _ gap _ pos ( allowed _ gap _ frac = 0 ) opt _ args = dict ( max _ evaluations = 20, limit _ action = " ignore " ) m1 = evo _ app. model ( "...
[ 0.056912459433078766, 0.162550687789917, 0.7713227272033691, 0.1782897263765335, 0.34058159589767456, 0.3528682589530945, -0.3108302652835846, -0.4890991747379303, -0.01977115496993065, 0.03041790798306465, -0.6690923571586609, 0.1325933039188385, 0.23477528989315033, 0.2113013118505478, ...
def info ( self ) : return'_ multi _ obj ','multi - object '
[ -0.03833324834704399, -0.8290814161300659, 0.6575356721878052, 0.31827905774116516, 0.6164530515670776, 0.6432639360427856, 0.558096706867218, -0.42043742537498474, -0.26352065801620483, 0.5214155912399292, -1.5724000930786133, -0.1886052042245865, 1.3140007257461548, 0.7430235743522644, ...
def _ get _ paths ( self ) : if self. during _ training : # get log path test _ log _ path _ = join ( self. cfg. test _ log _ path, self. version ) + self. append _ info test _ log _ path = test _ log _ path _ i _ append _ info = 0 if self. epoch _ train = = 0 : while isdir ( test _ log _ path ) : i _ append _ info + =...
[ -0.4042510986328125, -0.12778012454509735, 0.8427826166152954, 0.4366196095943451, 0.3973528742790222, -0.12399853765964508, 0.7991238236427307, -0.502456545829773, -1.1651942729949951, 0.4398287832736969, -0.0820346400141716, -0.9521443843841553, 0.06070301681756973, 0.3463467061519623, ...