text
stringlengths
25
2.19k
embedding
listlengths
768
768
def test _ list _ integer _ max _ length _ 4 _ nistxml _ sv _ iv _ list _ integer _ max _ length _ 5 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - maxlength - 5. xsd ", instance = " nistdata / list / ...
[ -0.5836603045463562, -0.026679864153265953, 0.1253969967365265, 0.7648513913154602, -0.783561646938324, 0.04744064807891846, -0.19563494622707367, -0.003943437710404396, 0.86445552110672, 0.9450852870941162, -1.1792508363723755, -0.3765261173248291, -0.8320152759552002, 0.8158736824989319,...
def prepare _ next _ turn ( grid ) : empties = get _ empty _ cells ( grid ) y, x = random. choice ( empties ) grid [ y ] [ x ] = 2 if random. random ( ) < prob _ 2 else 4 return any _ possible _ moves ( grid )
[ -0.6232654452323914, 0.28348851203918457, 0.36094748973846436, 0.5870018601417542, 0.40112200379371643, -0.583056628704071, -0.36582356691360474, -0.5107282400131226, 0.2707379460334778, -0.12094774842262268, -0.3443880081176758, 0.2910996675491333, -0.20892536640167236, -0.117582291364669...
def process _ url ( request, service _ name, model _ name, action _ name, object _ id ) : log. info ('process _ url service, model, action, objid : % s % s % s % s'% ( \ service _ name, model _ name, action _ name, object _ id ) ) if not data. get ( service _ name ) : log. info ('no service name or service name not fou...
[ -0.44833824038505554, -0.4581581950187683, 1.1491281986236572, 0.11185090243816376, -0.07741344720125198, -0.12612700462341309, 0.26381173729896545, 0.6810190677642822, 0.07711515575647354, 0.7019906044006348, 0.16698740422725677, 0.43244385719299316, 0.5057876110076904, 0.5458216071128845...
def _ _ init _ _ ( self, psw _ file : optional [ str ] = none ) : if psw _ file is none : psw = getpass ( prompt = " password : " ) self. _ psw = bytes ( psw, " utf - 8 " ) else : self. _ psw = read _ psw _ file ( path ( psw _ file ) )
[ 0.6035026907920837, -0.6832102537155151, 0.5184100866317749, 0.60896897315979, -0.4457133412361145, 0.3440515100955963, -0.36372748017311096, 0.6832534670829773, -0.5821366906166077, -0.6614710092544556, 0.13052096962928772, -0.28511327505111694, -0.11016657203435898, 0.6004155278205872, ...
def active _ route _ miles _ to _ arrival ( self ) - > optional [ float ] : if " active _ route _ miles _ to _ arrival " in self. _ vehicle _ data. get ( " drive _ state ", { } ) : return self. _ vehicle _ data. get ( " drive _ state ", { } ). get ( " active _ route _ miles _ to _ arrival " ) return none
[ -0.3190968334674835, -1.9352233409881592, 0.5623281002044678, -0.6621953845024109, 0.31085535883903503, 0.008596778847277164, -0.3996940851211548, -0.014673261903226376, 0.17835979163646698, 0.7764875292778015, 0.20249637961387634, 0.8664436340332031, 0.16444356739521027, -0.42853042483329...
def input _ fn ( data _ file, num _ epochs, shuffle, batch _ size ) : assert tf. gfile. exists ( data _ file ), ('% s not found. please make sure you have either run data _ download. py or'' set both arguments - - train _ data and - - test _ data.'% data _ file ) def parse _ csv ( value ) : print ('parsing ', data _ fi...
[ -0.025582890957593918, -0.2839653789997101, 0.46293050050735474, -0.35740870237350464, -0.0867835283279419, -0.3029322624206543, 0.42483004927635193, 0.6983468532562256, -0.4019954800605774, -0.23195497691631317, -0.3599340319633484, 0.38901716470718384, 0.4210187494754791, -0.096349738538...
def create ( cls, * * kwargs ) : created _ obj = super ( ). create ( * * kwargs ) if kwargs. get ('verified') is true : course _ run = created _ obj. course _ run program = course _ run. course. program if program. financial _ aid _ availability : linefactory. create ( course _ key = course _ run. edx _ course _ key, o...
[ 0.8176379799842834, 0.0463721789419651, 0.27598798274993896, 1.004577398300171, 1.046251654624939, 1.2774536609649658, -0.9529759287834167, -0.24004335701465607, 0.05513978376984596, -0.1916446089744568, -0.06226624548435211, 0.22205127775669098, 0.20069681107997894, 0.610196590423584, 0...
def pick _ letter ( ) - > str : rare _ letters ='qwxz'vowels ='aeiouy'consonants ='cdfghjklmnpqrstv'pick = random ( ) if pick > 0. 9 : return choice ( rare _ letters ) elif pick > 0. 3 : return choice ( vowels ) else : return choice ( consonants )
[ -0.14518262445926666, -0.8270370364189148, 0.2181873619556427, -0.44084686040878296, 0.039058733731508255, 0.824095606803894, -0.038869280368089676, -0.31607598066329956, 1.3536053895950317, 0.27636581659317017, 0.31263256072998047, 0.5506871938705444, -0.18344810605049133, -0.582101643085...
def test _ atomic _ qname _ enumeration _ 1 _ nistxml _ sv _ iv _ atomic _ qname _ enumeration _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - enumeration - 2. xsd ", instance = " nistdata / atomic ...
[ -0.5411173105239868, -1.2427775859832764, 0.5038689374923706, 0.25315800309181213, -0.6179219484329224, 0.18255193531513214, 0.24022264778614044, -0.834667980670929, -0.556370198726654, 0.5321881175041199, -0.8145844340324402, 0.1182752475142479, 0.32579880952835083, 0.19377529621124268, ...
def _ _ init _ _ ( self, base _ url, start _ id = 1, verbose = false, do _ attachments = true ) : self. base _ url = base _ url. rstrip ('/') +'/'# contains additional info for a ticket which cannot # be get with single - ticket export ( create / mod times is # and example ). self. ticket _ map = { } self. start _ id =...
[ -0.064182810485363, -0.4555757939815521, 0.6441417932510376, 0.697289228439331, -0.1461678445339203, -0.47896191477775574, 0.3948500156402588, 0.1616278439760208, 0.23037081956863403, -0.42013123631477356, -0.6718840003013611, 0.02415807731449604, 0.06769731640815735, 0.42013776302337646, ...
def config ( self, paths : dict, shim : dict = none ) : logger. debug ( " configuration requested : % s ", { " paths " : paths, " shim " : shim } ) if not self. is _ initialized : raise commerror ( " comms haven't been initialized properly. " ) requirejs. _ _ libs. update ( paths ) requirejs. _ _ shim. update ( shim or...
[ -0.8621873259544373, -0.4077620804309845, 0.5160723328590393, -0.13161832094192505, 0.8827091455459595, -0.23925690352916718, 0.5224469900131226, 0.6332590579986572, -0.206430584192276, -0.15105977654457092, -0.47140151262283325, -0.44735053181648254, -0.9485806226730347, 1.018488883972168...
def send _ command _ xml ( xml _ cmd ) : cmd ='omp - - pretty - print - - xml = \'' + etree. tostring ( xml _ cmd, encoding = " unicode " ) +'\'' xml _ string = subprocess. check _ output ( shlex. split ( cmd ) ) if print _ commands _ and _ output : print ( cmd ) print ( prettify _ xml _ string ( xml _ string ) ) if ge...
[ 0.2603703439235687, -0.7195630669593811, 0.7234023809432983, -0.24183297157287598, -1.0557754039764404, -0.16276930272579193, -0.4679577648639679, -0.655171275138855, 0.42782679200172424, -0.5142707824707031, 1.2051535844802856, -0.2488575130701065, -0.47471606731414795, -0.225720599293708...
def isbaidu ( url ) : # example : http : / / www. baidu. com / s? wd = mao + is + cool & rsv _ bp = 0 & ch = & tn = baidu & bar = & rsv _ spt = 3 & ie = utf - 8 pattern ='http : / / www. baidu. com / s \? wd = [ \ s + ] +'matches = re. match ( pattern, url ) if matches! = none : return true return false
[ -1.0431567430496216, -0.05055749788880348, 0.479590505361557, 0.4366607964038849, -0.187591552734375, 0.2152872234582901, 0.15746988356113434, 0.802718460559845, 0.2557591497898102, -0.36728033423423767, -0.39650392532348633, 1.2610093355178833, -1.1215120553970337, 0.3537807762622833, -...
def model _ to _ dict ( inst, cls ) : # can use inst. _ _ class instead of cls * * * * looking into this convert = { " datetime " : datetime. isoformat } d = dict ( ) for c in cls. _ _ table _ _. columns : if c. name. startswith ( " _ " ) : continue v = getattr ( inst, c. name ) current _ type = str ( c. type ) if curr...
[ -1.4587446451187134, -0.8489242792129517, 0.8509741425514221, -0.8727246522903442, -0.8383392095565796, -0.27878299355506897, -0.20427803695201874, -0.6482290029525757, -0.8668200373649597, 1.0724376440048218, -1.0583006143569946, -0.29716914892196655, 0.8185397982597351, 0.731508135795593...
def generate _ signature ( request ) : # v1. 4. 0 deprecation warning if settings. plugins _ config [ " nautobot _ chatops " ]. get ( " webex _ teams _ token " ) and not settings. plugins _ config [ " nautobot _ chatops " ]. get ( " webex _ token " ) : signing _ secret = settings. plugins _ config [ " nautobot _ chatop...
[ -0.5758985280990601, 0.3666115403175354, 0.6419957876205444, 0.03923152759671211, -0.2869296669960022, -0.3518329858779907, -0.7280857563018799, 0.02369588613510132, -0.1042545735836029, 0.43289947509765625, -0.27343136072158813, -0.7033090591430664, -0.24568980932235718, 0.153536319732666...
def _ get _ torch _ inputs ( input _ data, sequence _ lengths ) : input _ data = torch. tensor ( input _ data ) sequence _ lengths = torch. unsqueeze ( torch. tensor ( sequence _ lengths ), - 1 ) return input _ data, sequence _ lengths
[ -0.22063487768173218, -0.4176751971244812, 0.3354707956314087, -0.7511403560638428, 0.13818232715129852, -0.615021288394928, -0.35484209656715393, 0.34979262948036194, -0.17140206694602966, 0.433874249458313, -0.5371957421302795, 0.5335138440132141, 0.2034449577331543, -0.9145566821098328,...
def fastqa _ reader ( vocab, config = dict ( ) ) : from jtr. jack. tasks. xqa. fastqa import fastqainputmodule, fatqa _ model _ module from jtr. jack. tasks. xqa. shared import xqaoutputmodule shared _ resources = sharedvocabandconfig ( vocab, config ) return jtreader ( shared _ resources, fastqainputmodule ( shared _ ...
[ 0.25216639041900635, -0.3493940234184265, 0.3710525631904602, -0.44125130772590637, -1.1067514419555664, -0.502647876739502, 0.5357622504234314, -0.6039099097251892, 0.5693902373313904, 0.11774548143148422, 0.25063851475715637, -0.39406120777130127, -0.3393578827381134, 0.22324863076210022...
def visulaizeeigen ( v, num ) : intensity = np. zeros ( gridsize ) for c, val in zip ( coordinates, v [ :, num ] ) : lat, lon = parsecoordinates ( c ) l, r = lat. index ( lat ), long. index ( lon ) intensity [ l ] [ r ] = val # remove negative values by scaling min = np. min ( intensity ) for i in range ( 0, gridsize [...
[ -0.2262638360261917, 0.3113154172897339, 0.8088985681533813, -0.49776238203048706, -0.2548257112503052, 0.03051493503153324, 0.5823258757591248, 0.6342509388923645, 0.22972044348716736, 0.8921680450439453, 0.2790064811706543, 0.406968891620636, 0.15569370985031128, 0.5152298212051392, -0...
def test _ list _ integer _ pattern _ 2 _ nistxml _ sv _ iv _ list _ integer _ pattern _ 3 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - pattern - 3. xsd ", instance = " nistdata / list / integer / sc...
[ -0.5360388159751892, -0.03704235702753067, 0.5734294056892395, 0.3018093705177307, -0.37526240944862366, 0.3677632808685303, -0.1556406021118164, 0.6216952800750732, 1.0111467838287354, 1.1493209600448608, -1.2025914192199707, -0.14011162519454956, -0.23564431071281433, 0.22998103499412537...
def compute _ alf ( self ) : poly = [ ] alf = [ ] c = self. compute _ c ( ) for i in range ( 1, self. m + 1 ) : for j in range ( 0, c + 1 ) : acc = ( ( i - 1 ) / ( self. t * * j ) ) % self. t alf. append ( acc ) poly. append ( alf ) alf = [ ] return poly
[ 0.8305646181106567, -0.647166907787323, 0.5525113344192505, -0.2942793369293213, -0.3519677519798279, 0.8400915861129761, 0.2086145281791687, -0.06681755185127258, 0.5145691633224487, 0.7886568307876587, 0.5327884554862976, 0.40798547863960266, 0.14360268414020538, 0.7621573805809021, 0....
def _ _ init _ _ ( self, config = none ) : self. config = config
[ 0.5030252933502197, -0.5294789671897888, 0.13672824203968048, -0.005654706619679928, -0.3308042287826538, -0.47175517678260803, 0.08114110678434372, 1.411051869392395, 0.6382958292961121, -0.019382406026124954, -1.2103034257888794, -0.33310985565185547, -0.1524875909090042, 1.1491312980651...
def test _ atomic _ language _ pattern _ 2 _ nistxml _ sv _ iv _ atomic _ language _ pattern _ 3 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - pattern - 3. xsd ", instance = " nistdata / atomic ...
[ 0.34882107377052307, -0.07532276213169098, 0.5470268130302429, 0.5502416491508484, -0.20972570776939392, 0.47564175724983215, -0.5556936860084534, -0.04671820253133774, 0.3215070366859436, 0.8853647112846375, -0.07250384986400604, -0.23603099584579468, -0.22340938448905945, -0.476099878549...
def _ _ ne _ _ ( self, other ) : return not self = = other
[ -1.2292824983596802, -0.6514386534690857, 0.6120245456695557, 0.16604311764240265, 0.13938051462173462, 0.4793989956378937, -0.7392147779464722, -1.1260026693344116, -0.082207590341568, -0.27900615334510803, -0.7796158790588379, -0.17859119176864624, -0.23501822352409363, -0.33838322758674...
def _ join _ loop ( table, test, pa, pb, ta, tb, inner, full ) : first = true second = dict ( ) table _ a = tuple ( _ pre _ process ( ta, pa ) ) table _ b = tuple ( _ pre _ process ( tb, pb ) ) for row _ cache in table _ a : match = false for add in table _ b : row = row _ cache. copy ( ) row. update ( add ) if test ( ...
[ -0.19839712977409363, 0.4098771810531616, 0.7667146921157837, 0.2960715591907501, -0.5792015194892883, 0.2673090100288391, -0.06455767154693604, 0.14677156507968903, -0.59581458568573, 0.36102280020713806, 0.10512591898441315, -0.9511541128158569, -0.4971335530281067, -0.008975501172244549...
def to _ numpy ( self, x ) : import torch if not isinstance ( x, torch. tensor ) : raise myiainputtypeerror ( f " expected torch. tensor but got { x }. " ) return x. detach ( ). cpu ( ). numpy ( )
[ -0.27778148651123047, -0.12134811282157898, 0.3178620934486389, -0.26532691717147827, 0.38308098912239075, -0.024329660460352898, 0.5970680117607117, -1.070717453956604, 0.6965143084526062, -0.002866707742214203, -1.287593960762024, 0.910397469997406, 0.22679124772548676, -0.89205789566040...
def launch ( main _ func, num _ gpus _ per _ machine, num _ machines = 1, machine _ rank = 0, dist _ url ='auto ', args = ( ) ) : world _ size = num _ machines * num _ gpus _ per _ machine if world _ size > 1 : # https : / / github. com / pytorch / pytorch / pull / 14391 # todo prctl in spawned processes if dist _ url ...
[ 0.46218201518058777, 0.6935698390007019, 0.8403491377830505, 0.7502220273017883, -0.2963060736656189, 0.3414563536643982, 0.4675644040107727, 0.6973211169242859, -0.5551109910011292, -0.13691382110118866, 0.6163289546966553, -0.18916986882686615, 0.6355168223381042, 0.5915071368217468, -...
def powered _ lift _ gate ( self ) - > bool : return self. _ car. get ( " vehicle _ config ", { } ). get ( " plg " )
[ 0.17552441358566284, -0.008229092694818974, 0.4382696747779846, 0.20289602875709534, -0.8364821672439575, 0.28579866886138916, -1.2428826093673706, 0.17059127986431122, -0.5816636681556702, 0.7191663384437561, -0.36270421743392944, -0.270881712436676, -1.2195323705673218, -0.02406501397490...
def verification _ result ( self, verification _ result ) : self. _ verification _ result = verification _ result
[ 0.414093941450119, -0.0874919667840004, -0.21580711007118225, 1.1204389333724976, 0.451153963804245, -0.011722997762262821, 0.5143508315086365, 0.22603841125965118, -0.21064653992652893, -0.6703073978424072, -2.2045698165893555, -1.1629093885421753, 0.005968641024082899, 0.1827617287635803...
def test _ atomic _ any _ uri _ white _ space _ nistxml _ sv _ iv _ atomic _ any _ uri _ white _ space _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - whitespace - 1. xsd ", instance = " nistdata ...
[ -0.609284520149231, -0.27001023292541504, 0.4114123284816742, 0.6616523861885071, -0.2663044333457947, -0.1310967355966568, 0.5692460536956787, -0.6803890466690063, 0.19082777202129364, 0.01263513695448637, 0.5690362453460693, -0.07667586207389832, -0.507725179195404, 1.1755777597427368, ...
def _ parse _ syntax ( self, raw ) : raw = str ( raw ) # treat the value as a string regardless of its actual data type has _ syntax = re. findall ( r'< ( \ ^ )? ( fk _ _ )? ( \ w + )? ( [ 0 - 9 ] * [. ]? [ 0 - 9 ] +? )? ( \ : )? ( [ 0 - 9 ] * [. ]? [ 0 - 9 ] +? )? ( \ : )? ( [ 0 - 9 ] * [. ]? [ 0 - 9 ] +? )? > ', raw,...
[ -0.09337767213582993, -0.10063910484313965, 1.0285749435424805, -0.6439563035964966, -1.3006274700164795, -1.674153447151184, 0.04606645926833153, -0.06696735322475433, 0.2982056438922882, 0.2685107886791229, -0.241475448012352, 0.3519977033138275, 0.36744099855422974, 0.591912567615509, ...
def market _ index ( cls, date, benchmarks = [ " hs300 ", " csi500 ", " sse50 ", " cbi ", " nfi ", " y1 _ treasury _ rate " ], whole = false ) : if whole is false : _ _ sql = " select { 0 }, ` statistic _ date ` from market _ index where statistic _ date < ='{ 1 }'and statistic _ date > ='{ 2 }'\ order by statistic _ d...
[ 0.21418240666389465, 0.4806313216686249, 0.6534380316734314, 0.394620805978775, -0.47514569759368896, 0.11671142280101776, 0.13627326488494873, -1.5609405040740967, -0.31703880429267883, 0.3394995331764221, 0.6171129941940308, 0.7125875949859619, -0.021850991994142532, 0.17718900740146637,...
def inverse _ transform ( self, y ) : n _ samples = len ( y ) result = sparse. lil _ matrix ( ( n _ samples, self. label _ count ), dtype ='i8') for row in range ( n _ samples ) : assignment = y [ row ] result [ row, self. reverse _ combinations [ assignment ] ] = 1 return result
[ -1.2345964908599854, -0.2884884178638458, 0.4592209756374359, -0.158134326338768, 0.5331560969352722, -0.5073953866958618, 0.6121748685836792, 0.31188178062438965, 0.43401968479156494, 0.13692878186702728, -0.17717526853084564, 0.16476482152938843, -0.39127451181411743, -0.5730769634246826...
def on _ mouse _ press ( self, x, y, button, modifiers ) : # used for selecting enemies if button = = arcade. mouse _ button _ left : # only can select a new enemy is the previse enemy selected is dead if self. target _ selected is false : # count value keeps track of what number the player is up to on the enemy health...
[ -0.8242132067680359, -0.8367588520050049, 1.0444469451904297, -0.5630672574043274, 0.7249783277511597, -0.29942312836647034, -0.2696012854576111, 0.0808277428150177, 0.3587492108345032, 0.6831746101379395, -0.2621197998523712, 0.37837928533554077, 0.17493292689323425, -0.07087209820747375,...
def snli _ collate _ func ( batch ) : prem _ list = [ ] hyp _ list = [ ] label _ list = [ ] prem _ length _ list = [ ] hyp _ length _ list = [ ] for datum in batch : label _ list. append ( datum [ 4 ] ) prem _ length _ list. append ( datum [ 1 ] ) hyp _ length _ list. append ( datum [ 3 ] ) max _ prem _ length = max ( ...
[ 0.20402666926383972, -0.023325741291046143, 0.9668294191360474, 0.042592987418174744, 0.015315091237425804, 0.5740322470664978, -0.5737006664276123, 0.406676322221756, 0.004020990803837776, 0.3499496281147003, -0.3359840214252472, 0.07510717213153839, -0.26079338788986206, 0.03924281895160...
def main ( ) : array = [ np. array ( [ 0. 5, 0. 9, 1. 7, 2. 4 ] ), np. array ( [ 8. 7, 9. 3, 10. 6, 12. 1 ] ), np. arange ( 0. 25, 2. 5, 0. 01 ) ] ylin = lineartrendline ( * array ) yquad = quadraticdisplay ( * array ) ypower = powerdisplay ( * array ) yexp = exponentialdisplay ( * array ) ylog = logarithmicdispaly ( *...
[ 1.4190945625305176, -0.7481072545051575, 0.8600010275840759, 1.0324914455413818, -0.0695636197924614, 0.5768852233886719, 0.41078269481658936, -0.7575193047523499, -0.0466773696243763, -0.7900429368019104, -0.03454849123954773, 0.541987955570221, 0.14447972178459167, -0.22237177193164825, ...
def get _ full _ order _ book _ agg ( self, symbol ) : return self. get _ request ('/ api / v1 / market / orderbook / level2? symbol ='+ symbol )
[ -1.2717678546905518, 0.5556983351707458, 0.6282733678817749, 0.6365037560462952, -0.2931462526321411, -0.6626314520835876, -0.12798263132572174, -1.0151723623275757, -0.6773102879524231, 0.5771484375, -0.12594929337501526, 0.9459425210952759, -0.4706796407699585, 0.6826142072677612, -0.1...
def getdraftthingtypes ( self, parameters = none ) : draftthingtypesurl = apiclient. draftthingtypesurl % ( self. host ) r = requests. get ( draftthingtypesurl, auth = self. credentials, params = parameters, verify = self. verify ) status = r. status _ code if status = = 200 : self. logger. debug ( " draft thing types ...
[ -1.942662239074707, 0.14257915318012238, 0.6509602665901184, 0.07214122265577316, 0.276650607585907, 0.08816897124052048, -0.7204605340957642, -0.9703370928764343, -0.46106162667274475, 0.6184694766998291, -0.7291035652160645, 1.1577198505401611, -1.7441861629486084, 0.29368141293525696, ...
def conv _ cond _ concat ( x, y ) : x _ shapes = x. get _ shape ( ) y _ shapes = y. get _ shape ( ) return tf. concat ( [ x, y * tf. ones ( [ tf. shape ( x ) [ 0 ], tf. shape ( x ) [ 1 ], tf. shape ( x ) [ 2 ], tf. shape ( y ) [ 3 ] ] ) ], 3 )
[ 0.3417254686355591, -0.09976612031459808, 0.629205584526062, 0.23810100555419922, -0.8397406339645386, 0.17125210165977478, -1.3225123882293701, -0.12105780094861984, -0.8468723297119141, 1.603804111480713, 0.4893512725830078, 0.41948243975639343, 0.3635788559913635, -0.39155441522598267, ...
def post ( self, request, * args, * * kwargs ) : snel = str ( request. post. get ('snel ','' ) ) [ : 1 ] keuze = str ( request. post. get ('keuze ','' ) ) [ : 7 ] # afkappen voor extra veiligheid account = self. request. user if keuze = ='verzend': bestel _ mutatieverzoek _ transport ( account, bestel _ transport _ ver...
[ -0.32311564683914185, -0.22437627613544464, 0.5607190132141113, 0.3719126880168915, -0.6214680075645447, 0.2545355558395386, 0.6419578194618225, -0.20329086482524872, 0.5930851101875305, -0.24350854754447937, -0.04736714065074921, 0.34131884574890137, -0.057005155831575394, 0.5362558364868...
def construct _ of ( self, inn, of ) : if of = ='linear': return inn if of = ='exp': return t. exp ( inn ) elif of = ='sigmoid': return 5. 0 / ( 1. 0 + t. exp ( - inn ) ) elif of = ='softsign': return inn / ( 1 + t. abs _ ( inn ) ) elif of = ='square': return t. sqr ( inn ) elif of = ='expexp': return t. exp ( t. exp (...
[ -0.5678923726081848, -0.954338014125824, 0.617529034614563, -0.9622125625610352, -0.8966584205627441, -0.9489316344261169, -0.174676313996315, -0.4717895984649658, 0.04249941185116768, -0.17674212157726288, 0.42436647415161133, -0.017102668061852455, 0.5392293930053711, -0.7591657638549805...
def test _ atomic _ boolean _ pattern _ 4 _ nistxml _ sv _ iv _ atomic _ boolean _ pattern _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - pattern - 5. xsd ", instance = " nistdata / atomic / bo...
[ -0.024362022057175636, -0.4443575441837311, 0.4260273575782776, 0.7138864398002625, -0.1711885780096054, 0.14385011792182922, 0.43150264024734497, -0.6229269504547119, -0.55498206615448, 0.9301965236663818, -0.4690147936344147, -0.059408508241176605, -0.8268772959709167, -0.114268906414508...
def test _ parseshowcdpneighbors ( self ) : expected = output _ cdp _ neighbors _ processed result = parsesshowcdpneighbors ( output _ cdp _ neighbors ) assert result = = expected
[ 0.18950684368610382, 0.5603160262107849, 0.437928169965744, -0.36150050163269043, -0.9049038887023926, 0.19985158741474152, 0.7030189037322998, -0.3927346467971802, -0.50750333070755, -0.28008130192756653, -0.4427727460861206, 0.5229098200798035, 0.20415246486663818, -0.009724031202495098,...
def billing _ country _ name ( self, billing _ country _ name ) : self. _ billing _ country _ name = billing _ country _ name
[ 0.031210144981741905, 0.12693749368190765, -0.25339457392692566, 0.8285239934921265, -0.5407792925834656, 1.7526800632476807, 0.6434803605079651, 0.5659837126731873, -0.4669629633426666, -0.28988614678382874, -0.574829638004303, -0.9122733473777771, -0.45262229442596436, 1.3180196285247803...
def write _ in _ file ( locations _ list ) : with open ( " sorted _ films. txt ", " w ", encoding = " utf - 8 " ) as f : for line in locations _ list : try : f. write ( f " { line [ 1 ] } | { line [ 0 ] } | { line [ 2 ] } \ n " ) except typeerror : continue
[ -0.6939221620559692, -1.3472800254821777, 0.4269220232963562, 0.47127461433410645, 0.6841422915458679, 1.3193289041519165, 0.06716152280569077, 0.8322416543960571, -0.4857324957847595, 0.028899958357214928, -0.4238075613975525, -0.22352366149425507, -0.20308537781238556, 0.705756425857544,...
def _ _ init _ _ ( self, master, header, num _ rows, num _ columns, logged _ in, picture ) : self. master = master self. master. option _ add ('* font ','calibri 14') self. master. option _ add ('* background ','# 90e3f7') self. master. option _ add ('* foreground ','black') self. master. option _ add ('* label. font '...
[ 0.5366507172584534, 0.6399006247520447, 1.0496474504470825, 0.36765268445014954, -0.672935426235199, -0.1378592997789383, -0.10323094576597214, -0.02083669975399971, 0.746968686580658, 0.15418791770935059, -0.006071438547223806, -0.27138379216194153, 0.44798099994659424, 1.3877614736557007...
def test _ list _ integer _ length _ 2 _ nistxml _ sv _ iv _ list _ integer _ length _ 3 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - length - 3. xsd ", instance = " nistdata / list / integer / schem...
[ -0.4937257170677185, 0.13077977299690247, 0.46713024377822876, 0.649130642414093, -0.156577929854393, 0.6051215529441833, -0.7210538983345032, 0.7245588302612305, 1.335504174232483, 1.2975342273712158, -0.8596833348274231, 0.0017467293655499816, -0.10550637543201447, 0.3197537362575531, ...
def compress _ crypt ( directory, password, cipher, delete = false ) : outfile = " { } { } ". format ( directory, ". tar. gz " ) command = [ " tar ", " - czf ", outfile, directory ] if check _ commnad ( directory, password, cipher ) : call ( command ) crypto ( [ outfile ], password, cipher ) return true else : return f...
[ 0.5118601322174072, 0.7777159810066223, 0.43606939911842346, 0.6472177505493164, -0.1723444014787674, 0.2759178578853607, 0.2220131754875183, 0.3128562569618225, -0.26850876212120056, 0.6320634484291077, -0.12928293645381927, -0.3371700346469879, -1.1555845737457275, 0.773545503616333, -...
def cn _ applyshear ( self, * args, * * kwargs ) : depr ('applyshear ', 1. 1,'obj = obj. shear ( shear )') new _ obj = self. copy ( ). shear ( * args, * * kwargs ) self. _ profile = new _ obj. _ profile self. _ profile _ for _ stored = none # reset the stored profile as it is no longer up - to - date self. _ _ class _ ...
[ 0.7173063158988953, -0.6475208401679993, 0.5904499888420105, 0.1435161530971527, -0.2656088173389435, 0.4969569742679596, 0.9147990345954895, -1.0621389150619507, 0.858163058757782, -0.617344319820404, -1.0697969198226929, 1.197306752204895, -0.5611526966094971, 0.3835030794143677, 0.664...
def test _ atomic _ hex _ binary _ enumeration _ 2 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ enumeration _ 3 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - enumeration - 3. xsd ", instance ...
[ -0.27783411741256714, -0.34456560015678406, 0.637765109539032, 0.4916788935661316, 0.19127044081687927, 0.5472341775894165, -0.3925389051437378, -0.10305342823266983, 0.13682197034358978, 0.49961957335472107, -0.3465398848056793, -0.6086505055427551, -0.25991129875183105, 0.085500083863735...
def g _ kernel ( size, one _ d = false ) : g = guassian _ kernel # perform n 1d convolutions of the base kernel with itself and save as # vector for _ in range ( size - 2 ) : g = convolve ( guassian _ kernel, g ) if one _ d : s = np. sum ( g ) return g / s # create a n by n grid formed by the calculated vector x, y = n...
[ -0.4824240207672119, 1.316516637802124, 0.46157121658325195, 0.06300374865531921, -0.7751017808914185, -0.633879542350769, 0.2843555808067322, -0.4508761763572693, -0.12346881628036499, -0.13465017080307007, 0.05490623041987419, 0.16255812346935272, 0.18556851148605347, 1.3448874950408936,...
def stripsuffix ( glyphname ) : dotindex = glyphname. find ( ". " ) return glyphname [ : dotindex ]
[ 0.2017255574464798, -0.002420074073597789, 0.4398445188999176, -1.223360538482666, -0.26653796434402466, 0.013647026382386684, 0.6259559392929077, -0.2370942234992981, 0.6933480501174927, 0.27644312381744385, -0.9562126994132996, 0.9937437176704407, -0.10056682676076889, -0.965626776218414...
def database _ worker ( db _ obj, thread _ queue, process _ queue ) : while true : # grab data _ ls from the thread _ queue. data _ in = thread _ queue. get ( ) # none will signal termination of the thread. if data _ in is none : break # time database access. t0 = process _ time ( ) # get data _ ls for this node from t...
[ -0.36808308959007263, -0.24038681387901306, 0.5962085723876953, -0.7771959900856018, -0.01170635037124157, -0.18051226437091827, -0.46899744868278503, 0.2564490735530853, -0.9772585034370422, 0.8067671656608582, -0.553186297416687, 0.1253829151391983, -0.042668528854846954, 0.6181094050407...
def reviewnextcharacter ( self, inputevent ) : context = self. getflatreviewcontext ( ) moved = context. gonext ( flat _ review. context. char, flat _ review. context. wrap _ line ) if moved : self. _ reviewcurrentcharacter ( inputevent ) self. targetcursorcell = self. getbraillecursorcell ( ) return true
[ -0.5821250677108765, -0.5862712264060974, 0.42143210768699646, 0.05741792544722557, -0.9182283878326416, 0.8058596253395081, -0.09830443561077118, -0.22682808339595795, 0.1618388593196869, -0.13215255737304688, -0.5073508620262146, 0.9177936315536499, -0.5652387142181396, -0.20845881104469...
def _ _ len _ _ ( self ) : return len ( self. _ items )
[ -0.44111740589141846, -0.5267407894134521, 0.14720043540000916, -1.7404340505599976, 0.514149010181427, 0.12549740076065063, 0.1095062792301178, 0.7914211750030518, 0.35739415884017944, -0.8264126181602478, -1.435698390007019, -0.2610217332839966, 0.8000274896621704, -0.6365620493888855, ...
def subpixel ( superpix, nside _ superpix, nside _ subpix ) : if nside _ superpix = = nside _ subpix : return superpix vec = hp. pix2vec ( nside _ superpix, superpix ) radius = np. degrees ( 2. * hp. max _ pixrad ( nside _ superpix ) ) subpix = query _ disc ( nside _ subpix, vec, radius ) pix _ for _ subpix = superpixe...
[ 0.7723270654678345, 0.2645561695098877, 0.8150205612182617, 0.3624783158302307, -1.0355514287948608, -0.10227818787097931, -0.8585879802703857, -0.45027855038642883, 0.46520960330963135, -0.8595624566078186, 0.42602261900901794, 1.1592425107955933, -0.5161169767379761, -0.5140699148178101,...
async def remote _ auto _ steering _ wheel _ heat _ climate _ request ( self, enable : bool ) - > none : data = await self. _ send _ command ( " remote _ auto _ steering _ wheel _ heat _ climate _ request ", on = enable ) if data and data [ " response " ] [ " result " ] is true : params = { " auto _ steering _ wheel _ ...
[ -0.4840208888053894, 0.3658309876918793, 0.7560756206512451, 0.5469996929168701, 0.4534318745136261, 0.5740907788276672, -0.853111982345581, 0.682957112789154, -0.8253945112228394, 0.4961722791194916, -0.5254113674163818, 1.190020203590393, -1.0912370681762695, 0.18062813580036163, 0.467...
def fit ( self, x _ train, y _ train ) : self. x _ train = x _ train self. y _ train = y _ train att _ vals = { } headers = ['att'+ str ( i ) for i in range ( len ( self. x _ train [ 0 ] ) ) ] # for each header, grab the index also for i, header in enumerate ( headers ) : att _ vals [ header ] = [ ] # for each header, ...
[ 0.0510958693921566, -0.056435324251651764, 0.573022723197937, -1.062593936920166, -0.5277921557426453, -0.10444208979606628, -0.9384000897407532, -0.038443394005298615, -1.0251190662384033, -0.585684061050415, 0.06481801718473434, 0.5379538536071777, 0.3612271547317505, 0.00701332883909344...
def _ deserialize ( response _ entity _ type ) : def decorator ( f ) : def wrapper ( * args, * * kwargs ) : response = f ( * args, * * kwargs ) setattr ( response. request,'entity ', none ) setattr ( response,'entity ', none ) deserialize _ format = none content _ type = response. headers. get ('content - type ','' ) f...
[ -0.19396449625492096, -1.6957123279571533, 0.636143147945404, -1.01398503780365, -0.30351826548576355, -0.5775710940361023, -0.1318095177412033, -0.5208588242530823, 0.6223880648612976, -0.48673921823501587, 0.9574962258338928, -0.7923248410224915, 0.18190997838974, 0.26879480481147766, ...
def _ state _ changed ( self, state : any ) - > none : for callback _ fn in self. _ callbacks : try : callback _ fn ( state ) except exception : # pylint : disable = broad - except logger. exception ( f " exception on calling { callback _ fn } " ) for watcher in list ( self. _ watchers ) : if state not in watcher. _ st...
[ 0.2387053519487381, 0.3131374716758728, 0.2418718934059143, 0.1618417650461197, 0.1388767659664154, -0.8421566486358643, 0.37758758664131165, -0.5624385476112366, 0.18469452857971191, 0.21436035633087158, -0.6828088760375977, -0.05498518422245979, 0.01885310560464859, 1.32430899143219, 0...
def load _ letters ( letters _ to _ load = ['all'], size = 81, use _ variants = 0 ) : from os import listdir from os. path import dirname basedir = dirname ('/ users / joecipolla / documents / reference / education / 490 - deep _ learning / letter _ mgmt') if size = = 25 : alpha _ dir = basedir +'/ 5x5 _ alphabet /'eli...
[ -1.2991819381713867, -0.5100423097610474, 0.7850459218025208, -1.1327691078186035, -0.3777986764907837, 0.4414178431034088, 0.6095470190048218, -0.003542324062436819, 0.45822644233703613, 0.7362794280052185, -0.5760713219642639, 0.5863085985183716, 0.03056878037750721, 0.5673525929450989, ...
def test _ list _ integer _ length _ 4 _ nistxml _ sv _ iv _ list _ integer _ length _ 5 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - length - 5. xsd ", instance = " nistdata / list / integer / schem...
[ -0.3731827437877655, 0.10505279898643494, 0.29263705015182495, 0.010506494902074337, -0.40880873799324036, -0.0770915150642395, -0.18513712286949158, -0.05413425341248512, 0.9223356246948242, 0.9180442690849304, -1.2038297653198242, -0.5813952088356018, -0.8063266277313232, 0.6288096904754...
def possible _ moves ( self ) : x = 0 y = 0 moves = [ ] while ( x > self. board. size ) : while ( y > self. board. size ) : if self. board [ x ] [ y ] = = 0 : continue moves = moves + self. spot _ possible _ moves ( x, y ) y = y + 1 x = x + 1 return moves
[ -0.6734482049942017, -0.0846571996808052, 0.6042929291725159, 0.9739165902137756, 0.43089964985847473, 0.21198217570781708, -0.1352192908525467, -0.14315207302570343, 0.7129826545715332, 0.3659649193286896, -0.23183225095272064, -0.29311567544937134, -0.359183669090271, 0.7270728945732117,...
def test _ atomic _ any _ uri _ max _ length _ nistxml _ sv _ iv _ atomic _ any _ uri _ max _ length _ 1 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - maxlength - 1. xsd ", instance = " nistdata / a...
[ 0.10212408006191254, -0.19631683826446533, 0.35182541608810425, 1.0948877334594727, -0.2684227228164673, -0.07635938376188278, -0.22291705012321472, -0.016109570860862732, 0.2869471609592438, -0.1931372880935669, 0.3030260503292084, -0.4851328730583191, -0.49746859073638916, 0.315386444330...
def decodewithb64 ( data ) : pattern ='/ (? < path > [ \ s ] + ) \? (? < query > [ \ s ] + )'matches = re. search ( pattern, url ) path = matches. group ('path') query = matches. group ('query') # string out the encoding characters and decode the data path. replace ( " / ", " " ) query. replace ( " ; ", " " ) query. re...
[ 0.10495684295892715, -0.7097415924072266, 0.4738220274448395, 0.5952383875846863, -0.7610588073730469, -0.47055748105049133, -0.464690238237381, 0.7177656292915344, 0.6000384092330933, -0.05609069764614105, 0.0023116222582757473, -0.24349114298820496, -0.416269987821579, -0.036839321255683...
def _ _ determine _ repo _ install _ args ( self ) : options = self. options branch = options. git _ branch owner = ('spinnaker'if options. github _ user in ('default ','upstream') else options. github _ user ) git _ dir = os. path. dirname ( _ _ file _ _ ) if not branch : branch = gitrunner ( options ). query _ local ...
[ -0.22833965718746185, -0.5970014333724976, 0.4198535978794098, 0.4814426600933075, 0.7429354190826416, -0.12629815936088562, -0.029264084994792938, 0.5730602145195007, -0.04668744280934334, 0.36229294538497925, -0.2332613170146942, -0.13886727392673492, -0.46469447016716003, 1.000506520271...
def find _ songs ( artist = " ed sheeran " ) : songs = [ ( a, n ) for a, n in zip ( music. artists, music. name ) if a = = artist ] for track in songs : yield track [ 1 ]
[ -0.2979660630226135, 0.42791417241096497, 0.4621516466140747, 0.09277230501174927, -0.29664647579193115, 0.3613719642162323, -0.14610730111598969, -0.2838801145553589, -0.7934858202934265, 0.06921987980604172, -0.45015427470207214, -0.25673869252204895, 0.689490556716919, 0.546236395835876...
def submission _ to _ utt ( submission, check _ dups = true ) : meta = {'children': [ ],'depth': 0,'permalink': submission. permalink,'type':'submission ','subreddit': submission. subreddit. display _ name,'title': submission. title,'is _ self': submission. is _ self } if not submission. is _ self : meta ['link'] = sub...
[ -0.7481661438941956, -0.23714055120944977, 0.8091856241226196, -0.3821747899055481, 0.11892320215702057, -0.1727123111486435, -0.8969565629959106, 0.06415484845638275, 0.6778642535209656, 0.8631296753883362, 0.0017711942782625556, 0.43742629885673523, 0.8114184141159058, 0.0964692980051040...
def signin _ data _ validator ( self, signin _ data ) : signinvalidata = userauthvalidator ( ) email _ check = signinvalidata. validemail ( signin _ data ['email'] ) passwd _ check = signinvalidata. validsigninpassword ( signin _ data ['password'] ) if email _ check & passwd _ check : return true return false
[ -0.7613250613212585, -0.886186420917511, 0.5385810136795044, 0.3652794361114502, -1.1038724184036255, 1.4743142127990723, -0.38048121333122253, 1.3547693490982056, 0.01524970680475235, -0.48935574293136597, -0.33500438928604126, -0.3993857502937317, -0.3341085612773895, -0.1580135822296142...
def test _ run _ tests _ returns _ false _ with _ timeout ( self ) : self. testrun. base _ dir = self. workdir # inject our temp folder path = self. workdir test _ package = " my - tests " executor = mock _ executor _ with _ cmd ( self. testrun, true, none, hostname = " hostname ", testrun _ timeout = 1 ) expected _ st...
[ -0.6330563426017761, 0.12565432488918304, 0.5534629225730896, 0.06720543652772903, 0.1686951071023941, 0.669906497001648, -0.07005023211240768, 0.5569756627082825, -0.16896575689315796, -0.4435444176197052, -0.28259873390197754, -0.37292250990867615, -0.7245295643806458, 0.6568609476089478...
def visit _ assign ( self, node ) : for target in node. targets : if target. id! ='expr': continue expr = ast. expression ( numbers ( ). visit ( node. value ) ) ast. fix _ missing _ locations ( expr ) self. expr = compile ( expr,'< string > ', mode ='eval') break
[ -0.4859139025211334, -0.7853267788887024, 0.5547018647193909, -0.33538347482681274, -0.24049974977970123, -0.5478895902633667, 0.10637463629245758, 0.8530147671699524, -0.4642349183559418, 0.6127948760986328, 0.5376999974250793, 0.18443556129932404, 0.3835134208202362, 1.3638639450073242, ...
def main ( ) : clock = pygame. time. clock ( ) ff = fallingfigure ( ) # stands for falling figure game _ blocks = [ ] score = 0 game _ level = 0 lines _ cleared _ total = 0 if game _ level = = 0 else game _ level * 10 run = true while run : clock. tick ( fps ) right, left = false, false for e in pygame. event. get ( ) ...
[ 0.7449068427085876, 0.40447649359703064, 1.150474190711975, 0.6748965978622437, -0.3224371075630188, -0.05817309021949768, 0.6253979802131653, -0.26177820563316345, -0.9538446068763733, 0.16236035525798798, -0.6340968608856201, -0.6244247555732727, -0.3294673562049866, 1.129069447517395, ...
def test _ list _ integer _ min _ length _ 2 _ nistxml _ sv _ iv _ list _ integer _ min _ length _ 3 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - minlength - 3. xsd ", instance = " nistdata / list / ...
[ -0.18439404666423798, -0.3302096724510193, 0.4264489710330963, 0.2936699390411377, -0.32035037875175476, 0.35843920707702637, -0.9215626120567322, 0.09885557740926743, 1.5971169471740723, 0.602281391620636, -0.8741500973701477, -0.000143537821713835, -0.7011325359344482, 0.3071045279502868...
def run _ with _ reloader ( main _ func, extra _ files = none, interval = 1, reloader _ type ='auto') : import signal reloader = reloader _ loops [ reloader _ type ] ( extra _ files, interval ) signal. signal ( signal. sigterm, lambda * args : sys. exit ( 0 ) ) try : if os. environ. get ('werkzeug _ run _ main') = ='tr...
[ 0.1227339655160904, -0.4500272274017334, 0.7705731391906738, 1.1182000637054443, 0.013570970855653286, 0.45229917764663696, 0.19374439120292664, 0.7026721239089966, -0.7592252492904663, 0.5556266903877258, 0.12242971360683441, 0.5953443050384521, -0.7536607384681702, 0.8933225870132446, ...
def test _ atomic _ base64 _ binary _ min _ length _ 1 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ min _ length _ 2 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - minlength - 2. xsd ...
[ 0.2995750308036804, -0.7251721024513245, 0.38995063304901123, 1.0535531044006348, -0.008823247626423836, -0.190181165933609, -0.07627877593040466, -0.665844738483429, -0.1886288970708847, -0.06450875848531723, -0.4653455913066864, 0.3218405842781067, -0.6993868947029114, 0.3958123922348022...
def shift _ tensor ( l : torch. tensor, n : int = 1 ) - > torch. tensor : out = rotate _ tensor ( l, n = n ) out [ - n : ] = 0 return out
[ -1.2530549764633179, 0.6223413944244385, 0.5764926671981812, 0.7001875042915344, 0.391229510307312, 0.2456718236207962, -0.23664706945419312, -0.4977230131626129, 0.4229472577571869, 0.08240442723035812, -1.0559791326522827, -0.41097453236579895, -0.11505898088216782, -1.020447015762329, ...
def checkimaginaire ( self, part ) : if part = ='i': return {'imaginaire':'i ','sign':'+ ','coefficient':'1'}
[ -1.1603554487228394, -0.611329197883606, 0.4540676474571228, -0.5234132409095764, -0.8680363297462463, -0.5051295757293701, -0.07067511230707169, -0.393078088760376, -0.08228232711553574, 0.829637885093689, -0.7834668159484863, -0.7795793414115906, -0.694645345211029, -0.49017253518104553,...
def initbeta2 ( im, frac =. 2 ) : return [ frac * im. shape [ 0 ], frac * im. shape [ 1 ] ]
[ -0.362081378698349, -0.8167681694030762, 0.46690288186073303, 0.13105039298534393, 0.9641987681388855, -0.8153122067451477, 0.9120256304740906, -1.057839035987854, -0.3226165771484375, -0.31605881452560425, -0.3747466206550598, 0.12473839521408081, 0.6633486747741699, 0.36186161637306213, ...
def _ update _ interface _ references ( self, namespace ) : self. _ update _ namespace _ references ( namespace ) for name in namespace. attributes. values ( ) : self. _ update _ type _ references ( namespace, name ) for name in namespace. methods. values ( ) : self. _ update _ type _ references ( namespace, name ) for...
[ -1.0519742965698242, 0.5977721214294434, 0.5146335959434509, -0.4514354467391968, -0.28449952602386475, -0.22420918941497803, 0.3631543219089508, -0.9448273777961731, 0.35016101598739624, 0.3201726973056793, -0.23526044189929962, 0.6251562833786011, -0.9368036985397339, 1.502720832824707, ...
def print _ interface _ and _ stats ( node, interface, if _ stats ) : print ( " = = = = = = % s interface info for % s id % s : " % ( interface. interface _ id, node. resource _ type, node. id ) ) pp. pprint ( interface ) pp. pprint ( if _ stats )
[ 0.6890228390693665, 0.29285216331481934, 0.43850451707839966, -0.810125470161438, 0.5323140621185303, 0.3978654444217682, 0.072642982006073, -1.0670421123504639, -0.3165527284145355, -0.4330383539199829, 0.9245165586471558, 1.0120140314102173, -0.031062161549925804, 0.8037680387496948, 0...
def deriv ( self, x0s ) : a _ params, b _ params = zip ( * map ( self. _ local _ params, x0s ) ) return np. exp ( a _ params * np. log ( x0s ) + b _ params ) * a _ params / x0s
[ 0.6530461311340332, -0.5443410277366638, 0.3322809338569641, -0.5569751262664795, 0.12580376863479614, -0.4325920045375824, -0.3259035050868988, 0.7208560705184937, -0.5392391085624695, 0.08504421263933182, -0.29135337471961975, 0.8762245774269104, -0.12292781472206116, 0.4445623457431793,...
def top ( self, amount ) : if amount = = - 1 : amount = len ( self. _ _ data _ area ) elif 0 < = amount < 1 : amount = round ( amount * len ( self. _ _ data _ area ) ) assert isinstance ( amount, int ), " amount was not understood! " for row, count in zip ( self, range ( amount + 1 ) ) : yield row
[ -0.6114580035209656, 0.36327433586120605, 0.7646734118461609, -0.2289711982011795, -1.069962739944458, -0.3478081226348877, 0.5971133708953857, -0.696599543094635, 0.5082310438156128, -0.054180119186639786, 0.894689679145813, -0.05477912724018097, 0.04696967080235481, 0.8221780061721802, ...
def run _ forever ( self ) : self. running = true while self. running : self. do _ single _ loop ( )
[ 0.001670047058723867, -0.6110923886299133, 0.33536720275878906, 0.8082669377326965, 1.4353388547897339, 1.131723165512085, 0.38019803166389465, 0.7420295476913452, -0.7006646394729614, -1.011149525642395, -0.6197345852851868, -0.03684991970658302, -1.1747499704360962, 0.3846622705459595, ...
def create _ cmd _ arguments ( aux ) : # create argument parser parser = argparse. argumentparser ( description = " weighted ensemble data analysis and plotting ( we - dap ). \ n " " given an input west. h5 file from a successful westpa simulation, prepare " " probability distributions and plots. " ) # # # # # # # # # ...
[ 0.4413476586341858, -0.13002242147922516, 0.8661988377571106, -0.4289061427116394, 0.10001226514577866, 0.05853789672255516, 0.7118078470230103, 0.14526136219501495, -0.9708305597305298, 0.10854744911193848, -0.01029557827860117, 0.5927550196647644, 0.19484442472457886, 0.6904355883598328,...
def test _ help ( self ) : print ( f'{ self. test _ help. _ _ name _ _ }'f': executing unit test for property " help " of class " slashnexthostreport ".') self. assertequal ( self. host _ report _ action. help, self. help )
[ 1.2977750301361084, 0.30894342064857483, 0.31366249918937683, 0.4253722131252289, 1.6376127004623413, 1.3482786417007446, 1.5147520303726196, -0.19797387719154358, -0.4171104431152344, -0.4576110243797302, 0.13644468784332275, 0.6451451182365417, -0.3872881829738617, -0.31626686453819275, ...
def load _ mnist ( path, kind ='train') : labels _ path = os. path. join ( path,'% s - labels. idx1 - ubyte'% kind ) images _ path = os. path. join ( path,'% s - images. idx3 - ubyte'% kind ) with open ( labels _ path,'rb') as lbpath : magic, n = struct. unpack ('> ii ', lbpath. read ( 8 ) ) labels = np. fromfile ( lbp...
[ -0.8330397605895996, -0.4669717848300934, 0.6587060689926147, -0.8003875613212585, -0.8726904988288879, 0.6234201788902283, -0.5136430859565735, 0.04959910362958908, 0.532631516456604, 0.6356472373008728, -0.0883559137582779, 0.8869225382804871, -0.694824755191803, -0.20934662222862244, ...
def colname _ aggregate _ lookup ( self ) : lookup = { } for group, groupby in self. groups. items ( ) : for agg in self. aggregates : for col in agg. get _ columns ( prefix = self. _ col _ prefix ( group ) ) : if col. name in lookup : raise valueerror ( " duplicate feature column name found : ", col. name ) lookup [ c...
[ -0.3614567518234253, 0.10815388709306717, 0.8048262000083923, -0.5323644876480103, -0.04012010619044304, -0.6915065050125122, 0.26789623498916626, -0.8563752174377441, -1.0054939985275269, 0.738290011882782, -0.30002832412719727, -0.43455860018730164, 0.9393930435180664, -0.188808709383010...
def _ _ call _ _ ( self, ctx : resourceprocessingcontext [ rt ] ) - > asynciterable [ tuple [ resource, resourcelocation ] ] :
[ -1.2213901281356812, -0.2766803503036499, 0.34467750787734985, -0.7343831062316895, -0.18413415551185608, -0.4817514419555664, -0.09428071230649948, 0.18017664551734924, 0.19848528504371643, 0.1220848336815834, 0.2238352745771408, -0.41112810373306274, 0.7325770854949951, -0.53440469503402...
def tag _ visible ( element ) : if element. parent. name in {'style ','script ','head ','title ','meta ','[ document ]'} : return false if isinstance ( element, comment ) : return false return true
[ -0.39764541387557983, 0.44517359137535095, 0.7276774048805237, 0.17914249002933502, -0.5813280940055847, 0.3640839457511902, -0.12547935545444489, -0.9506281018257141, -0.04033934324979782, 1.1399158239364624, -0.4045264720916748, 0.17187994718551636, -0.15621140599250793, 1.14593827724456...
def scheduled _ departure _ time _ minutes ( self ) - > int : return self. _ vehicle _ data. get ( " charge _ state ", { } ). get ( " scheduled _ departure _ time _ minutes " )
[ -0.6359508633613586, 0.0015670594293624163, 0.5738973021507263, -0.4913281500339508, 0.3980923891067505, -0.059127077460289, -1.5190598964691162, -0.09725326299667358, 0.20775611698627472, -0.3105045557022095, -0.6636933088302612, -0.4090595543384552, 0.15069320797920227, -0.90522772073745...
def to _ data ( self, *, defaults = false ) : data = { } put _ id _ into ( self. id, data, defaults ) put _ name _ into ( self. name, data, defaults ) put _ position _ into ( self. position, data, defaults ) return data
[ -1.1676957607269287, 0.02449222467839718, 0.34767305850982666, -1.1866397857666016, 0.0886240154504776, 0.16898463666439056, -1.3822499513626099, -0.30915796756744385, -0.6352710723876953, -0.3966415226459503, -2.0085482597351074, -0.7390085458755493, -0.17883245646953583, -0.3775717020034...
def detect _ object ( img, haa _ cas ) : tree = et. parse ( haa _ cas ) root = tree. getroot ( ) size = root [ 0 ] [ 0 ]. text x = int ( size. split ('' ) [ 0 ] ) y = int ( size. split ('' ) [ 1 ] ) cascade = cv2. cascadeclassifier ( haa _ cas ) rects = cascade. detectmultiscale ( img, 1. 3, 4, cv2. cascade _ scale _ i...
[ -0.5134508013725281, -0.40876322984695435, 0.8214006423950195, 1.0240083932876587, 0.3764565587043762, -0.4821188449859619, -0.26758071780204773, 0.04355929046869278, 1.1598379611968994, 0.5216497182846069, -0.9033764004707336, -0.25248804688453674, 1.0191975831985474, 0.9040371179580688, ...
def off _ peak _ hours _ end _ time ( self ) - > int : return self. _ vehicle _ data. get ( " charge _ state ", { } ). get ( " off _ peak _ hours _ end _ time " )
[ -0.5110328793525696, -0.00923921074718237, 0.5107295513153076, -0.04996125027537346, 0.18493889272212982, 0.6231364607810974, -0.6612759828567505, 0.3508358299732208, -0.33967462182044983, 1.1541177034378052, -0.28153833746910095, 0.19987143576145172, -0.5752151012420654, 0.112782813608646...
def _ constrain _ presence ( self, method : str, value : union [ str, none ] ) - > bool : if not value : return true return getattr ( self. presence _ manager, method ) ( * [ self. presence _ manager. homestates [ s ] for s in value. split ( ',') ] )
[ -1.1458699703216553, -0.4022868871688843, 0.45386236906051636, 0.22770832479000092, -0.26424720883369446, 0.18311721086502075, -0.3023991882801056, 0.06567131727933884, 0.08023426681756973, 0.5935995578765869, 0.6585360169410706, -0.6165667176246643, -0.6316500306129456, 0.4469223618507385...
def test _ fail _ threshold _ too _ big ( self ) : self. assertfiltererrors ( {'threshold': 101,'addresses': [ address ( self. trytes1 ) ], }, {'threshold': [ f. max. code _ too _ big ], }, )
[ -0.19192203879356384, 0.9537867307662964, 0.20036077499389648, -0.23879364132881165, 0.11103138327598572, -0.4288361966609955, -0.3712804913520813, 0.4026908278465271, -0.32022783160209656, 0.13681989908218384, -0.8942849040031433, 0.6253306865692139, 0.8076632618904114, 0.6425354480743408...
def start ( self ) : self. _ watch _ threads ( ) self. _ loop. start ( )
[ 0.816641092300415, -0.6297072172164917, 0.2576085031032562, 0.6861886382102966, 0.709902286529541, 0.6502285599708557, 0.6333529353141785, 0.46170225739479065, -0.24843169748783112, -0.3417931795120239, 0.04449867457151413, 1.3741517066955566, 0.06571543216705322, 0.6919236779212952, -0....
def test _ list _ integer _ min _ length _ 1 _ nistxml _ sv _ iv _ list _ integer _ min _ length _ 2 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - minlength - 2. xsd ", instance = " nistdata / list / ...
[ -0.6026391983032227, -0.7755690217018127, 0.429204523563385, 0.9120999574661255, -0.5780213475227356, -0.09416920691728592, -0.5266462564468384, 0.10606802254915237, 0.9185512661933899, 0.3979272246360779, -1.0377367734909058, 0.32502779364585876, -0.3576371371746063, 0.9697157144546509, ...
def get _ nearest _ indices ( row, geometry _ column = ['geometry _ radolan _ x'], coordinate _ array = [ np. zeros ( ( 5, 5 ) ) ] ) : index = list ( ) for i in range ( 0, len ( geometry _ column ) ) : index. append ( np. argmin ( np. abs ( coordinate _ array [ i ] - row [ geometry _ column [ i ] ] ) ) ) return index
[ 0.02178121730685234, -0.38390421867370605, 0.5181758403778076, 0.6837310791015625, -0.26764142513275146, 0.8248035907745361, -0.05070669576525688, -1.0038657188415527, -0.36353302001953125, 0.6327564120292664, 0.5486425757408142, 0.7330238223075867, 0.2947409152984619, -0.11611176282167435...
def score _ test _ basic ( self, test ) : def min _ latency _ rtt ( exp ) :'''returns the minimum allowed latency for an rtt buckets exponent'''if exp = = 0 : return 0. 0 return math. pow ( 2, exp - 1 ) rtt _ fields = ['rtt _ less _ 2 _ exp _ 0 ','rtt _ less _ 2 _ exp _ 1 ','rtt _ less _ 2 _ exp _ 2 ','rtt _ less _ 2 _...
[ 0.42630040645599365, 0.3613147735595703, 0.7323013544082642, -0.7962368726730347, -0.06195278465747833, 0.2652225196361542, 0.7177308201789856, -0.8859226107597351, -0.6465165615081787, 0.4996771216392517, 0.7237032055854797, -0.4199187159538269, -0.13043536245822906, 0.34396058320999146, ...
def plot _ histogram _ years ( years _ 0, years _ 1, years _ 2 ) : array _ years0 = np. array ( years _ 0 ) plt. figure ( 1 ) plt. hist ( array _ years0, bins = 100 ) plt. title ('years cluster 0') plt. xlabel ('years') plt. ylabel ('frequency') plt. savefig ('k _ 10cluster0. png') array _ years1 = np. array ( years _ ...
[ 0.8299932479858398, 0.3700055778026581, 0.9430795311927795, -0.3593887388706207, 0.6851465702056885, 0.33428218960762024, 0.6436150074005127, 0.26130175590515137, -0.3064272999763489, 0.3535618185997009, -0.3225134611129761, 0.9714574217796326, 0.5558255910873413, 0.24282091856002808, 1....
def most _ frequent ( arr ) : v, c = np. unique ( arr, return _ counts = true ) return int ( v [ np. argmax ( c ) ] )
[ 0.5200881361961365, -0.3116209805011749, 0.3484792709350586, 0.7471967339515686, -0.5695464015007019, -0.35344409942626953, 0.7663339376449585, -0.03578389808535576, 0.2590547800064087, -0.6497869491577148, 0.862885057926178, -0.1108742356300354, -0.0612516850233078, 0.5781823396682739, ...