text
stringlengths
25
2.19k
embedding
listlengths
768
768
def fnbc ( elsd, d, t ) : if elsd. has _ key ('f2') : return { elsd ['s1']. x1 : motion ( t ), elsd ['f2']. f : force ( d [ m2. v ] ) } else : return { elsd ['s1']. x1 : motion ( t ) }
[ -0.35830003023147583, 0.26392436027526855, 0.23425410687923431, 0.15691784024238586, 0.2848922908306122, -0.6751965880393982, -0.701158344745636, -0.40322622656822205, -0.7956360578536987, -0.6987643837928772, -0.058624397963285446, -0.44545692205429077, 1.4387365579605103, 0.1956267058849...
def _ _ init _ _ ( self, q, q _ target, num _ actions, gamma = 0. 95, batch _ size = 64, epsilon = 0. 1, tau = 0. 01, lr = 1e - 4, burn _ in = 0, update = " soft ", buffer _ cap = 1e5, epsilon _ upperbound = 1, epsilon _ lowerbound = 0. 1, epsilon _ planning _ episodes = 100 ) : np. random. seed ( none ) self. device =...
[ 1.0369070768356323, -0.5966656804084778, 0.6549066305160522, -0.06735402345657349, 0.21092182397842407, -0.22398847341537476, -0.6996690034866333, 0.020480146631598473, 0.1884315013885498, 0.2438882440328598, 0.2819910943508148, 0.41174113750457764, 0.6472311019897461, -0.4323834776878357,...
def media _ position _ updated _ at ( self ) - > dt. datetime | none : if not self. _ currently _ playing : return none return utc _ from _ timestamp ( self. _ currently _ playing [ " timestamp " ] / 1000 )
[ -0.13259141147136688, -1.4094306230545044, 0.4739338457584381, -0.031024456024169922, -0.32564204931259155, -0.22817032039165497, -0.5130884051322937, -0.7441371083259583, 0.3064219653606415, 0.3723227083683014, 0.21760746836662292, -0.26297372579574585, -0.3840830326080322, -0.91595166921...
def set _ clean _ status ( self ) : self. void _ game _ count = 0 self. games _ in _ progress = { } self. games _ to _ replay = { } try : self. competition. set _ clean _ status ( ) except competitionerror, e : raise ringmastererror ( e ) self. status _ is _ loaded = true
[ -0.6170355081558228, -0.44633349776268005, 0.3221902847290039, -0.19164539873600006, 0.5495072603225708, 0.3403112292289734, 0.2462189793586731, 0.009032895788550377, -0.3505721390247345, 0.7479172348976135, -0.8583829998970032, 0.7377961277961731, -0.18219497799873352, 0.7749283909797668,...
def test _ complex _ attr ( ) : a = ( 1. 0 + 2. 0j ) * physicalquantity ( 1,'v') assert str ( a. real ) = ='1. 0 v'assert str ( a. imag ) = ='2. 0 v '
[ -0.5927385687828064, -2.049744129180908, 0.2703450322151184, 0.31971365213394165, -0.7694512605667114, 0.20787155628204346, 0.9883569478988647, -0.25994524359703064, 0.36095935106277466, -0.40062451362609863, 0.02616480551660061, -0.1175563856959343, 0.6013529896736145, -0.2098121345043182...
def update _ ending _ balance ( self ) : total = self. beginning for transaction in self. credits ( ) : # deduct amount from transactions where this account is credited if not transaction. complete : total - = transaction. amount for transaction in self. debits ( ) : # add amount from transactions where this account is...
[ 0.5548753142356873, -0.3833869695663452, 0.8575529456138611, -0.6702865958213806, -0.1334349662065506, 0.6771535277366638, 0.07922428101301193, -0.20006965100765228, -0.11874506622552872, 0.8826812505722046, -0.3197212815284729, -0.12987199425697327, -0.8576595187187195, 1.167605996131897,...
def test _ atomic _ hex _ binary _ max _ length _ 1 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ max _ length _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - maxlength - 2. xsd ", instance ...
[ 0.009700287133455276, -0.25739023089408875, 0.37752753496170044, 1.118265151977539, -0.44818976521492004, 0.4371021091938019, -0.31525200605392456, 0.14771254360675812, -0.6259092688560486, 0.2353823333978653, -1.0043199062347412, -0.2899712324142456, 0.18441644310951233, 0.825203180313110...
def genkml ( data, kmlfile, icons ) : optional = 0 kmlout = open ( kmlfile,'w') # kml header kmlout. write ('<? xml version = " 1. 0 " encoding = " utf - 8 "? > \ n') kmlout. write ('< kml xmlns = " http : / / earth. google. com / kml / 2. 0 " > \ n') kmlout. write ('< document > \ n') for type in icons : kmlout. write...
[ 0.21475905179977417, 0.0947519838809967, 0.8123258352279663, -0.16200686991214752, -0.7131282091140747, 1.1482646465301514, 0.07837929576635361, 0.519989013671875, -0.03774818032979965, 0.31604889035224915, -0.3177921772003174, -0.5676102042198181, 0.18204249441623688, 0.23625408113002777,...
def network _ pruner ( network : dict ) - > dict : try : min _ value = min ( network. values ( ) ) except valueerror : return { } return { k : v for k, v in network. items ( ) if v > min _ value }
[ -0.4839244782924652, -0.18120361864566803, 0.1671995222568512, -0.1682446002960205, -0.33834409713745117, 0.04886271432042122, -1.108820915222168, -0.9432411193847656, -0.04750347137451172, -0.39522868394851685, -0.21364536881446838, -1.0698317289352417, -0.04961467161774635, -0.2121032327...
def dbcheckattributevalue ( self, entity _ id, attribute _ id ) : cursor = self. dbconnect ( ) query ='select value from catalog _ product _ entity _ varchar where entity _ id ='+ entity _ id +'and attribute _ id ='+ attribute _ id +'and entity _ type _ id = 4'try : cursor. execute ( query, plain _ query = false ) data...
[ 0.16688743233680725, -0.6240326762199402, 0.6180838942527771, -0.041166335344314575, 0.6876378059387207, -0.022467143833637238, -0.24432316422462463, -0.5252941250801086, -0.5938662886619568, 0.9931210279464722, 1.2271074056625366, 0.6481853127479553, 0.16257667541503906, 0.170052990317344...
def countplayers ( ) : # sql is a variable containing the sql command used with the database to # protect against sql injection. commit _ flag ='yes'with connect ( commit _ flag ) as c : sql = " select count ( * ) from players ; " c. execute ( sql ) result = c. fetchone ( ) num = result [ 0 ] return num
[ -0.2581758499145508, 0.17210501432418823, 0.7990859746932983, 0.5176142454147339, 0.923602283000946, -0.346624493598938, 0.16390585899353027, 0.36545759439468384, -1.1682491302490234, 0.2711811065673828, -0.6407628059387207, -0.15601131319999695, -1.3037608861923218, -0.24729089438915253, ...
def loss _ func ( self, probs, labels ) : l = tf. keras. losses. sparse _ categorical _ crossentropy ( labels, probs ) l = tf. math. reduce _ sum ( l ) return l
[ 0.20162522792816162, -0.08310566842556, 0.12695780396461487, 0.5098311305046082, 0.3909497857093811, 0.08253917098045349, 0.07758285105228424, 0.659085214138031, -0.3285740315914154, 0.24853184819221497, 0.13815154135227203, 0.15782040357589722, 0.3641921579837799, -1.1329296827316284, -...
def token _ types ( self ) : return {'bearer': self. _ add _ bearer _ token,'mac': self. _ add _ mac _ token }
[ -0.21689273416996002, -0.5019742250442505, 0.4548322260379791, -0.7920485734939575, -0.17958122491836548, -0.12378963828086853, -0.5266339778900146, -0.3204779624938965, -0.24044373631477356, 0.14684458076953888, -1.5353617668151855, 0.3467450737953186, 0.07584881782531738, 0.4151439666748...
def getnum ( * args ) : return _ snap. tch _ getnum ( * args )
[ 0.4047657549381256, 0.8418595790863037, 0.3338349461555481, 0.8451125025749207, 1.7832307815551758, -0.37262389063835144, 1.1663267612457275, -0.37366679310798645, -0.5977751016616821, -0.7150809168815613, -0.994748592376709, -0.37040701508522034, 0.3886837065219879, 0.0017891655443236232,...
def _ _ init _ _ ( self ) : engine = db _ connect ( ) create _ table ( engine ) self. session = sessionmaker ( bind = engine ) print ( " * * * * reviewspipeline : database connected * * * * " )
[ 0.33071771264076233, -0.13355500996112823, 0.5043891072273254, 0.1299811154603958, 0.5641817450523376, 0.5994042158126831, -0.5366346836090088, 0.171892449259758, -1.4189984798431396, 0.11073382943868637, 0.18736933171749115, 0.006136896554380655, 0.5211026668548584, 0.36482661962509155, ...
def calc _ f _ trans _ statelist ( num _ nodes, p _ state _ sub, tp, f _ trans _ tr ) : f _ trans _ tr [ : ] = 1. - tp * np. sum ( p _ state _ sub, axis = 0 )
[ -0.39803415536880493, 1.1026630401611328, 0.1600310206413269, -0.029310528188943863, 0.3174399137496948, -0.4487135112285614, 0.40086790919303894, 0.7906572818756104, -0.13638556003570557, 0.5860324501991272, -1.0885303020477295, -0.9747297763824463, 0.724787175655365, -0.6393341422080994,...
def run _ hybrid _ ss _ min _ test _ generator ( ) : def _ run _ hybrid _ ss _ min ( seq, expected ) : results = unafold. run _ hybrid _ ss _ min ( seq, true ) assert results = = expected test _ seqs = os. listdir ( test _ dir + " run _ hybrid _ ss _ min " ) for test in test _ seqs : try : print test _ dir + " run _ hy...
[ -0.48609670996665955, -0.9741103649139404, 0.8946407437324524, 0.08830038458108902, 0.051983848214149475, 0.5344218611717224, 0.8560452461242676, 0.27936816215515137, 0.6716540455818176, -0.7074849009513855, -0.09584569931030273, 0.00708587234839797, 0.1978163719177246, -0.1024103984236717...
def auth _ plain ( self, challenge = none ) : return " \ 0 % s \ 0 % s " % ( self. user, self. password )
[ -0.2511012554168701, -0.7683980464935303, 0.5544899106025696, -0.2546902894973755, -1.014365315437317, 0.709393322467804, -0.8621705770492554, -0.21793051064014435, 0.4352223575115204, -0.3610064387321472, 0.4140247106552124, 0.5252205729484558, -0.12173034250736237, -0.19335657358169556, ...
def _ _ eq _ _ ( self, other ) : if not isinstance ( other, getsesamestatusresponse ) : return false return self. _ _ dict _ _ = = other. _ _ dict _ _
[ 0.182368203997612, -0.6203089356422424, 0.6475508809089661, -0.06613057851791382, 0.017360586673021317, 0.04664954915642738, -0.1412186175584793, -0.4836226999759674, 2.086705207824707, -0.03917450085282326, -1.4570682048797607, -0.6614081859588623, -0.06820868700742722, -0.054776649922132...
def _ _ init _ _ ( self ) : color. _ _ init _ _ ( self,'empty')
[ -0.034013740718364716, -0.4593675434589386, 0.45455309748649597, -0.481499046087265, 0.9828557372093201, 0.6298574805259705, 0.1934611052274704, 0.38092005252838135, 0.07712932676076889, -0.5430142879486084, -0.7397181987762451, 0.5174956321716309, 0.026592930778861046, 0.9427945017814636,...
def shared _ param _ clone ( self, rng = none, xd = none ) : clone _ net = hydranet ( rng = rng, xd = xd, params = self. params, \ shared _ param _ dicts = self. shared _ param _ dicts ) return clone _ net
[ 0.09544414281845093, -0.23631949722766876, 0.5973287224769592, 0.31915929913520813, -0.34470510482788086, 1.2205679416656494, 0.5226750373840332, -0.28618714213371277, -0.03394400328397751, -0.5414009094238281, -0.11476925015449524, 0.5736086964607239, 0.06911849975585938, 0.00842183362692...
def tint _ getmn ( * args ) : return _ snap. tint _ getmn ( * args )
[ -0.5182080268859863, -0.3695196509361267, 0.4198651909828186, 1.364277720451355, 1.010636806488037, -1.0422945022583008, 0.2750262916088104, -0.5398436188697815, -0.2526455223560333, -0.510945200920105, -0.87495356798172, 0.03461326286196709, -0.6134223937988281, 0.07012291997671127, 1.5...
def begei ( self, * args ) : return _ snap. tngraph _ begei ( self, * args )
[ 0.33237287402153015, 1.2877020835876465, -0.00997890904545784, 1.1738876104354858, 1.9787541627883911, -0.29943180084228516, 0.4528069794178009, -0.009858795441687107, -1.9433770179748535, 0.7259353399276733, -0.47067102789878845, -0.7413376569747925, -1.480294108390808, 0.0351722538471221...
def adderrorcode ( self, typeid, deviceid, errorcode ) : devicediagnostics = apiclient. devicediagerrorcodes % ( self. host, typeid, deviceid ) r = requests. post ( devicediagnostics, auth = self. credentials, data = json. dumps ( errorcode ), headers = {'content - type':'application / json'}, verify = self. verify ) s...
[ -1.4833019971847534, 0.010802756994962692, 1.0954184532165527, 0.03328080102801323, 0.0027295087929815054, 0.14222539961338043, 0.10908500105142593, 0.18943051993846893, 0.3983919620513916, 0.11249659210443497, 0.10119529813528061, 0.520547091960907, -0.5432541966438293, 0.2190624773502349...
def test _ cartocontext _ write _ index ( self ) : cc = cartoframes. cartocontext ( base _ url = self. baseurl, api _ key = self. apikey ) df = pd. dataframe ( {'vals': range ( 3 ),'ids': list ('abc') }, index = list ('xyz') ) df. index. name ='named _ index'cc. write ( df, self. write _ named _ index ) df _ index = cc...
[ -0.39590024948120117, -0.5845367908477783, 0.2936427593231201, -0.7165520787239075, 0.6784221529960632, -0.5476815700531006, 0.07759329676628113, -0.6647713780403137, -0.10031846165657043, -0.10166090726852417, -0.8712392449378967, 0.10093723982572556, 0.2197244018316269, -1.77902460098266...
def peer ( peer _ ip ) : return flask. jsonify ( api _ utils. get _ peer _ conf _ and _ state ( peer _ ip ) )
[ -0.8961995840072632, -0.3593119978904724, 0.21538689732551575, 0.25695115327835083, -0.32381150126457214, -1.2235355377197266, -0.5329471826553345, -0.27479419112205505, -0.27338263392448425, 0.18941599130630493, -0.40563079714775085, -0.9033613204956055, -0.10512369871139526, 0.1729057282...
def programs _ df ( self ) - > pd. dataframe : df = self. _ df. groupby ('benchmark'). min ( ) df = df [ ['program : benchmark _ suite _ name ','program : benchmark _ name ','program : opencl _ kernel _ name ','program : opencl _ src ', ] ] df. set _ index ( ['program : benchmark _ suite _ name ','program : benchmark _...
[ 0.18369635939598083, 1.10325288772583, 0.5088890790939331, -0.14889559149742126, 0.4782869517803192, 0.18653899431228638, 0.5086073875427246, -1.0897737741470337, -0.22962765395641327, -0.07563196867704391, 0.7230026721954346, 0.7119942903518677, -0.4054774343967438, -0.5038551688194275, ...
def test _ atomic _ base64 _ binary _ min _ length _ 1 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ min _ length _ 2 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - minlength - 2. xsd ...
[ 0.06683444231748581, -0.7162859439849854, 0.4482872486114502, 1.3513922691345215, -0.15031617879867554, -0.01584308221936226, -0.10169375687837601, -0.345050573348999, -0.12744131684303284, 0.21612656116485596, -0.419589102268219, 0.6531534790992737, -0.34492871165275574, 0.302649736404418...
def count _ runs ( shot _ sequences, run _ length ) : # your code here # raise notimplementederror ( ) reg _ exp = " (? < = { } ) ". format ( " ". join ( str ( 1 ) for _ in range ( run _ length ) ) ) if isinstance ( shot _ sequences, str ) : shot _ sequences = pd. series ( shot _ sequences ) return shot _ sequences. ma...
[ -0.026969630271196365, -0.44947388768196106, 0.5929868221282959, 0.7757634520530701, -0.1934451013803482, -0.2704504430294037, -0.22890016436576843, 0.5658109188079834, 0.6476739048957825, 0.6383482217788696, -1.0708634853363037, 0.8994739055633545, 0.05310499295592308, 0.06162441149353981...
def remove _ noise ( lrlanes, threshold = 0. 08 ) : # peaks in a histogram hist = np. sum ( lrlanes, axis = 0 ) hist _ norm = hist / hist. max ( axis = 0 ) histn = hist _ norm > threshold # create mask mask = np. tile ( histn. transpose ( ), ( lrlanes. shape [ 0 ], 1 ) ). astype ( np. uint8 ) result = cv2. bitwise _ an...
[ 0.32697558403015137, -0.44238415360450745, 0.723595380783081, 0.12406474351882935, -0.567023515701294, -0.20051485300064087, -0.3462579548358917, 0.25346851348876953, 0.7205535173416138, 0.36689168214797974, -0.35829755663871765, -0.0372479185461998, -0.2262403964996338, 0.3511438071727752...
def _ get _ test _ db _ conn ( ) : from src. model. db _ connection import get _ db _ connection # add configurations for test db aws instance. return get _ db _ connection ( )
[ 0.10584750026464462, 0.21796908974647522, 0.3574710786342621, -0.30592983961105347, 0.31955796480178833, -0.0016931399004533887, 0.5899830460548401, -0.12252917140722275, 0.11761662364006042, -0.34655240178108215, -0.48261526226997375, 0.07264822721481323, -0.2577897012233734, -0.026253689...
def rm _ land ( dset, lf ) : assert hasattr ( dset,'lat'), f'no lat in data set, { dset. coords = }'assert len ( dset ['lat'] ) = = len ( lf ['lat'] ), f " no good! data : { len ( dset ['lat'] ) }, land : { len ( lf ['lat'] ) } " if np. count _ nonzero ( dset ['lat'] = = lf ['lat'] )! = len ( lf ['lat'] ) : print ( f "...
[ 0.4011080861091614, 0.01835266500711441, 0.4016832411289215, -1.150620698928833, -0.4549260437488556, 0.35709837079048157, -0.961833655834198, 0.6358329653739929, -0.08141271024942398, -0.4463489055633545, 0.9388749003410339, 0.16364164650440216, 0.08784662187099457, -0.1388092339038849, ...
def document ( self, docspec, fileout ) : docds = self. _ parsedocspec ( docspec ) # print docds self. writer. write ( docds, fileout )
[ 0.3837498128414154, -0.49595320224761963, 0.11557897180318832, -0.34326666593551636, -0.008632342331111431, 0.36322253942489624, 0.7103482484817505, 0.9673078656196594, -0.5968104004859924, -0.471719354391098, 0.04222026839852333, 0.36265385150909424, 0.760831892490387, 0.2880198657512665,...
def draw ( self ) : for enemy in enemylist : enemy. draw ( )
[ -1.3626824617385864, -0.24919919669628143, 0.1363774538040161, 0.2127304971218109, 1.210524082183838, 0.922174870967865, -0.4068866968154907, 0.8908067941665649, -0.42086824774742126, 0.41890010237693787, -0.34964045882225037, -0.028862638399004936, 0.2823970913887024, 1.3095661401748657, ...
def add _ value ( self, value ) : self. _ values. append ( value )
[ -0.5559970140457153, 0.9146137237548828, 0.14930132031440735, -0.08009757846593857, 0.3627370595932007, 1.088173508644104, -0.7472798228263855, -0.14555244147777557, -0.011648774147033691, -0.9744232296943665, -0.3555190861225128, 0.06599663197994232, 0.5406209230422974, 1.0768524408340454...
def _ _ init _ _ ( self ) : # flag this instance as compiled now self. is _ compiled = true super ( hlayer4rule3, self ). _ _ init _ _ ( name ='hlayer4rule3 ', num _ nodes = 0, edges = [ ] ) # set the graph attributes self [ " mm _ _ " ] = ['himesismm'] self [ " name " ] = " " " layer4rule3 " " " self [ " guid _ _ " ] ...
[ 0.019588829949498177, 0.297778844833374, 0.7491499185562134, -0.17126396298408508, 0.07721666246652603, 0.5191507935523987, 0.3254081606864929, 0.5493621230125427, 0.047453172504901886, 0.3490053117275238, 0.06961218267679214, -0.03145924583077431, -0.674369752407074, 0.5595632791519165, ...
def _ read _ file _ header ( f ) : ident = f. read ( 8 ) version, data _ link _ type = struct. unpack ( " > ii ", f. read ( 4 + 4 ) ) return ( ident, version, data _ link _ type )
[ -0.41274160146713257, -0.491688996553421, 0.5286339521408081, -0.25889623165130615, 0.028599122539162636, 0.5198993682861328, -0.21502061188220978, 0.45400556921958923, -1.0965657234191895, 0.050523560494184494, -0.6888585090637207, 0.13804320991039276, -0.130146324634552, -1.1124489307403...
def has _ iteration ( self, it _ name : str ) - > bool : iterations = lapi. list _ iterations ( self. lasif _ comm, output = true, verbose = false ) if it _ name. startswith ( " iteration _ " ) : it _ name = it _ name. replace ( " iteration _ ", " " ) if isinstance ( iterations, list ) : if it _ name in iterations : re...
[ -0.5592469573020935, 0.7226012349128723, 0.5954171419143677, -0.3736955225467682, -0.20548884570598602, -0.04279313609004021, -0.7577784657478333, 0.14908385276794434, -0.2605205774307251, 1.1686466932296753, -0.2018127143383026, -0.6057870984077454, -0.4067053496837616, 1.0400052070617676...
def _ rest _ api _ url ( self ) : return " https : / / de. wikibooks. org / api / rest _ v1 "
[ -0.5431016683578491, -1.2900701761245728, 0.36527183651924133, 0.2413025200366974, 0.4397142827510834, 0.9682744145393372, -1.0685904026031494, 1.0613585710525513, -0.7302728295326233, 0.11599743366241455, 0.17572925984859467, 0.2001102715730667, -0.7936345338821411, -0.3429546356201172, ...
def get _ global _ link _ rpy _ function ( self, link : str, n : int = 1, numpy _ output : bool = false ) : return self. make _ function ( " quat ", link, self. get _ global _ link _ rpy, n = n, numpy _ output = numpy _ output )
[ -0.7858344316482544, 0.011236002668738365, 0.41159918904304504, -0.07333845645189285, 0.2761509120464325, -0.5380116105079651, 0.6901031732559204, -1.176700472831726, 0.20437417924404144, -0.2528897523880005, -0.21308983862400055, 1.0292749404907227, -0.9122036695480347, -0.684567511081695...
def setupclass ( cls ) : cls. maxdiff = none cls. ess _ settings = {'gaussian': ['server1'],'molpro': ['server2 ','server1'],'qchem': ['server1'] } cls. project _ directory = os. path. join ( arc _ path,'projects ','arc _ project _ for _ testing _ delete _ after _ usage3') cls. spc1 = arcspecies ( label ='methylamine '...
[ 0.24955004453659058, -0.18181034922599792, 0.9399954080581665, 0.0944918617606163, 0.4414796531200409, 0.3238043189048767, 0.2548151910305023, 0.024486154317855835, -0.5906651616096497, -0.6573290228843689, 0.11934655904769897, 0.7033644318580627, 0.5252072811126709, -0.06930049508810043, ...
def main _ map ( request ) : # database queries all _ events = musicevents. objects. all ( ) distinct _ city = musicevents. objects. values ('city'). distinct ( ). order _ by ('city') distinct _ country = musicevents. objects. values ('country'). distinct ( ). order _ by ('country') distinct _ band = musicevents. objec...
[ 0.47312408685684204, -0.594603955745697, 0.7329011559486389, -0.5088694095611572, -0.8472098112106323, 1.2176387310028076, 0.3838346302509308, 1.0291239023208618, 0.6542651653289795, -0.2646113634109497, 0.8032253980636597, -0.6238719820976257, 0.07961717993021011, 0.12959952652454376, -...
def _ get _ job ( self ) : if self. stopping : return job _ manager. nojobavailable if self. terminal _ reader. stop _ was _ requested ( ) : self. _ halt _ competition ( " stop instruction received from terminal " ) if self. presenter. shows _ warnings _ only : self. terminal _ reader. acknowledge ( ) return job _ mana...
[ -0.15509642660617828, -0.8484668731689453, 0.8082172870635986, -0.12666213512420654, -0.2251497209072113, 0.16886408627033234, 0.43366050720214844, -0.07386188954114914, -0.44891101121902466, -0.2426844984292984, 1.0079247951507568, -0.04473016783595085, -0.7944798469543457, -0.38461163640...
def describeaccountbalance ( self, request ) : try : params = request. _ serialize ( ) headers = request. headers body = self. call ( " describeaccountbalance ", params, headers = headers ) response = json. loads ( body ) model = models. describeaccountbalanceresponse ( ) model. _ deserialize ( response [ " response " ...
[ -0.8669358491897583, 0.7444531321525574, 0.48399510979652405, -0.02291683666408062, 0.7015478014945984, -0.19784413278102875, 0.22942334413528442, -1.300883412361145, 0.3926965892314911, -0.07519488036632538, 0.10820229351520538, 0.6526106595993042, -0.4055369198322296, 0.20676769316196442...
def get _ message _ list ( path ) : import re messages = [ ] with open ( path,'r') as sourcefile : txt = sourcefile. read ( ) messages + = re. findall ('_ \ ( " ( [ ^ " ] * ) " \ ) ', txt ) messages + = re. findall ( " _ \ ('( [ ^'] * )'\ ) ", txt ) messages + = re. findall ('_ \ ( " { 3 } ( [ ^ " ] * ) " { 3 } \ ) ', ...
[ -0.8399913907051086, -0.4373507797718048, 0.7743728756904602, -0.6972901821136475, -0.25132015347480774, -0.3491775393486023, 0.06852497905492783, 0.1824502944946289, -0.4995110332965851, 0.9989628791809082, -1.3541679382324219, 0.23559923470020294, -0.198551744222641, 0.5430378317832947, ...
def _ _ lshift _ _ ( self, * args ) : return _ snap. tsout _ _ _ lshift _ _ ( self, * args )
[ 0.3688499927520752, 0.4565253257751465, 0.2765841484069824, -0.6701738238334656, -0.8014305233955383, -0.018767351284623146, -0.7104642391204834, 0.32935768365859985, -0.5007936358451843, -0.3362957835197449, -0.6343479156494141, -0.6849638819694519, 0.025235719978809357, 1.151163935661316...
def remove _ short _ words ( min _ word _ len : int ) - > striter2tuplet : def short _ word _ remover ( doc : iterable [ str ] ) - > tuple [ str,... ] : " " " parameters - - - - - - - - - - doc : iterable of str a document given as an iterable over words. returns - - - - - - - tuple of str the document as tuple of stri...
[ 0.8368908166885376, -0.4318770468235016, 0.4989422559738159, -0.7991483807563782, -1.5022945404052734, -0.534628689289093, -0.43067365884780884, -0.0473780557513237, -0.6070054769515991, 0.7649899125099182, -0.3358514606952667, 0.2154828906059265, 0.07410147041082382, -0.057281672954559326...
def kmer _ map ( input _ file, k, get _ seq = true ) : kmer _ dict = { } for ident, sequence in fasta. fastareader ( input _ file ) : # execute fastareader on query or reference sequence = sequence. upper ( ) for i in range ( 0, len ( sequence ) - k ) : kmer = sequence [ i : i + k ] # get k length slice of file if get ...
[ -0.07873483002185822, -1.0444276332855225, 0.49791306257247925, -0.3192538022994995, -1.0594855546951294, 0.12617529928684235, 0.24704542756080627, 1.6588866710662842, -0.3717750012874603, 1.4668644666671753, -0.013170422054827213, -0.775641143321991, -0.20158171653747559, 0.73697090148925...
def check _ support _ process ( conn, model, version ) : # check the version support version = str ( version ) [ 2 : - 2 ] try : update _ part _ number = ( bios. fw [ model ] [ " bios " ] ) uut _ part _ number = get _ part _ info ( conn ) file _ name = bios. bios _ fw _ files [ ( update _ part _ number, version ) ] exc...
[ 0.15780165791511536, -0.7517864108085632, 0.7811018824577332, 0.3880486786365509, -0.7165181040763855, 0.4225218594074249, -0.3228164613246918, 0.5795777440071106, -0.887340247631073, 0.7646456956863403, -0.38562241196632385, -0.5134971141815186, -0.8491761684417725, 0.2548099756240845, ...
def daily ( self ) : if self. schedule _ freq _ type = ='daily': return {'active _ start _ time': schedulepattern. _ time _ converter ( self. _ pattern ['active _ start _ time'],'% h : % m ', false ),'repeat _ days': self. _ pattern ['freq _ recurrence _ factor'] } return false
[ -1.4475187063217163, -0.11710084974765778, 0.6683031916618347, 0.12190930545330048, 0.243235245347023, -0.12874379754066467, 0.26013439893722534, -0.4063921272754669, -0.6227369904518127, 0.32571300864219666, -0.36846259236335754, 0.12663690745830536, 0.26779142022132874, 0.352014124393463...
def frame _ update _ from _ modif ( self ) : self. frame _ orig. setcurrentindex ( self. frame _ modif. currentindex )
[ -0.7840955257415771, -1.4747681617736816, 0.3084777891635895, -0.09904099255800247, 0.01786642335355282, -0.1233859434723854, 0.3660409450531006, 0.8457091450691223, -0.11504524946212769, 0.0994800552725792, -0.11060463637113571, 1.1080541610717773, -0.33735567331314087, -0.374874562025070...
def _ verify _ optional _ args ( request ) : memo _ type = request. post. get ( " memo _ type " ) if memo _ type and memo _ type not in ( " text ", " id ", " hash " ) : return render _ error _ response ( " invalid'memo _ type'" ) memo = request. post. get ( " memo " ) if memo _ type and not memo : return render _ error...
[ 0.3259850740432739, 0.07180444896221161, 0.47259455919265747, 1.113326072692871, 0.8619145154953003, -0.37669211626052856, -0.5378111004829407, -0.6930072903633118, 0.5279645323753357, 0.39273780584335327, 0.22916866838932037, 0.19837629795074463, -0.5793210864067078, 1.4005234241485596, ...
def decode _ single ( rel _ codes : tensor, boxes : tensor, weights : sequence [ float ], bbox _ xform _ clip : float ) - > tensor : # offset is 4 in case of 2d data and 6 in case of 3d offset = boxes. shape [ 1 ] boxes = boxes. to ( rel _ codes. dtype ) widths = boxes [ :, 2 ] - boxes [ :, 0 ] heights = boxes [ :, 3 ]...
[ 0.30541712045669556, -0.03723541274666786, 0.8669992685317993, -0.44727620482444763, -0.758362889289856, 0.025333812460303307, 0.4248824715614319, 0.6989791393280029, 0.20883828401565552, -0.35713082551956177, -0.4220574200153351, -0.04798957332968712, 0.5543059706687927, -0.44918578863143...
def getnextlnbf ( self, * args ) : return _ snap. tsin _ getnextlnbf ( self, * args )
[ -0.20303645730018616, 0.586054801940918, 0.3918800950050354, 0.8656854629516602, -0.7848207354545593, 0.5426345467567444, -0.8752936720848083, 0.2139495462179184, -0.5956385731697083, -0.8702335953712463, -1.3807874917984009, -0.3796504735946655, -0.8146381974220276, 0.4060998558998108, ...
def generate _ initial _ state ( n _ sites ) : state _ list = [ ] for site in range ( n _ site ) : state = basis ( 2, int ( np. rand ( ) ) ) state _ list. append ( state ) return np. array ( state _ list )
[ -0.9879763126373291, -0.26242291927337646, 0.37814074754714966, 0.05095575004816055, 0.35959580540657043, 0.8039822578430176, 0.30448681116104126, 0.08024758100509644, 1.2277686595916748, 0.06085307523608208, -1.4649248123168945, 0.019587604328989983, -0.020474599674344063, 0.7501671314239...
def merge ( input _ streams : tp. sequence [ tp. io [ bytes ] ], output _ stream : tp. io [ bytes ] ) - > none : fl = false heap = [ ] ident = 0 for line in input _ streams : if line! = b'' : arr _ bytes = line. getvalue ( ). split ( b'\ n') arr _ digits = [ int ( s. decode ( " utf - 8 " ) ) for s in arr _ bytes if s! ...
[ 0.06106016784906387, -0.6411557197570801, 0.9450838565826416, -0.018871702253818512, -0.034125521779060364, -0.6509248614311218, 0.04631100967526436, -0.656250536441803, -0.1832181215286255, -0.0460648238658905, -0.2916237413883209, 0.15195125341415405, -1.0361112356185913, 0.3291971385478...
def test _ dur _ add ( ) : pytest. debug _ func ( ) d = d ( hours = 3 ) # payload assert d + " 2018 - 01 - 01 " = = m ( " 2018 - 01 - 01 03 : 00 : 00 " )
[ -0.4478278160095215, 0.8081632256507874, 0.7614881992340088, -0.11746401339769363, -0.34146177768707275, 1.2843033075332642, -0.4598959684371948, -0.7901785373687744, 0.553117573261261, -0.3746524155139923, -0.377677857875824, 0.030828310176730156, 0.44658035039901733, 0.3601939380168915, ...
def test _ login _ requred ( self ) : restricted _ pages = ['/ admin / ','/ admin / add / text /'] restricted _ pages. append ('/ admin / edit / % s /'% self. text _ entry. id ) restricted _ pages. append ('/ admin / delete /') # check in turn that each of the restricted pages may not be accessed for url in restricted ...
[ -0.8214859962463379, 0.34484657645225525, 0.5609996914863586, -0.07287169247865677, 0.6601920127868652, 0.86890709400177, -0.17854252457618713, -0.2810235619544983, 0.9412378668785095, -0.9042714238166809, 0.4199896454811096, 0.5314511060714722, -0.1445642113685608, 0.2851780652999878, 0...
def big _ device ( w = 400. 0, h = 400. 0, n = 16, port _ pitch = 15. 0, layer = layer. wg, wg _ width = 0. 5 ) : component = pp. component ( ) p0 = np. array ( ( 0, 0 ) ) dx = w / 2 dy = h / 2 points = [ [ dx, dy ], [ dx, - dy ], [ - dx, - dy ], [ - dx, dy ] ] component. add _ polygon ( points, layer = layer ) port _ ...
[ -0.01503417082130909, 0.4876849353313446, 0.938451886177063, -0.8437289595603943, -0.0021079531870782375, 0.15097923576831818, 0.5175600051879883, -0.5575021505355835, 0.0976652204990387, -0.23385027050971985, 0.12546402215957642, -0.12246419489383698, 0.396746426820755, 0.1081890240311622...
def handle _ defect ( self, obj, defect ) : if self. raise _ on _ defect : raise defect self. register _ defect ( obj, defect )
[ 0.6667065024375916, 0.8198392987251282, 0.3092614710330963, 0.8280655145645142, 0.11693066358566284, -0.01032746210694313, -0.3034677803516388, 0.19861368834972382, 0.861615777015686, -0.41576114296913147, -1.5362285375595093, 0.21389567852020264, 0.1694209724664688, 0.2601338028907776, ...
def get _ trial _ id ( ) : trialid =''. join ( [ " { } ". format ( randint ( 0, 9 ) ) for num in range ( 0, 6 ) ] ) return trialid
[ 0.7595050930976868, -0.5484443306922913, 0.5002686381340027, -0.39587607979774475, 0.4570266008377075, 0.8415780067443848, -0.7740470767021179, 0.11028796434402466, 0.7623701095581055, 0.18069644272327423, -0.29981353878974915, 0.18663036823272705, -0.5390444993972778, 0.008587534539401531...
def addtoqueue ( seriesid ) : login ( ) if not isregistered ( ) : return false log. debug ( " add mediaid : % s " % seriesid ) response = makeapirequest2 ( " req = rpcapiuserqueue _ add & group _ id = % s " % seriesid ) log. debug ( " add response : % s " % response ) return true
[ -1.388498306274414, 0.10294599086046219, 0.6552133560180664, -0.4970017671585083, 0.08364260196685791, 0.3479808568954468, -0.09242662787437439, -1.0394537448883057, 1.290946364402771, 0.21893148124217987, -0.3451392948627472, 1.0634874105453491, -1.5773497819900513, 0.4501470923423767, ...
def _ _ init _ _ ( _ _ self _ _, resource _ name : str, args : regioncommitmentargs, opts : optional [ pulumi. resourceoptions ] = none ) :...
[ 0.5070616602897644, -0.19471418857574463, 0.4323344826698303, -0.6279531121253967, 0.1522258073091507, -0.05092741921544075, 0.7627085447311401, 0.7736907601356506, 0.27227073907852173, 0.5893067717552185, 0.32820698618888855, 0.2827361226081848, -0.10897646099328995, -0.6810698509216309, ...
def secure _ http _ stacta ( secure _ http _ testdata _ dir ) : return secure _ http _ testdata _ dir / " cleantopo " / " cleantopo. json "
[ -0.45155835151672363, -1.3231384754180908, 0.29551780223846436, -0.23622213304042816, 0.17434081435203552, 0.7941031455993652, 0.6308549046516418, -0.29730987548828125, -0.14800743758678436, -0.17264974117279053, 0.05017385631799698, 1.0055831670761108, 0.7860655784606934, -1.1474472284317...
def scan _ ensemble ( ens ) : if ens. isbeamvelocity : ensembleqc. scan _ bad _ velocity ( ens. wt. velocities ) if ens. isinstrumentvelocity : ensembleqc. scan _ bad _ velocity ( ens. instrumentvelocity. velocities ) if ens. isearthvelocity : ensembleqc. scan _ bad _ velocity ( ens. earthvelocity. velocities ) ensembl...
[ -0.6528076529502869, -0.506315290927887, 0.5681720972061157, -0.23966962099075317, 0.06543093174695969, 0.32390448451042175, 0.05660155043005943, -0.8359441757202148, 0.3167784512042999, -0.07266639918088913, 0.43075039982795715, 0.529198169708252, 0.45163848996162415, 1.468956470489502, ...
def perform _ docs _ build _ for _ single _ package ( build _ specification : buildspecification ) - > builddocsresult : builder = airflowdocsbuilder ( package _ name = build _ specification. package _ name ) console. print ( f " [ info ] { build _ specification. package _ name : 60 } : [ / ] building documentation " )...
[ -0.445159375667572, 0.5760754942893982, 0.5151958465576172, 0.24484477937221527, 1.0110669136047363, -0.09201545268297195, 0.4579317271709442, 0.7845903038978577, 0.47025051712989807, -0.5010652542114258, 0.4066615104675293, 0.2755640149116516, 0.44214364886283875, -0.5387104153633118, 0...
def itksubtractconstantfromimagefilteriul3diul3 _ cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilteriul3diul3 _ cast ( * args )
[ 0.5717276930809021, 0.6155556440353394, 0.6856856942176819, -0.8642012476921082, -0.9564021825790405, 1.1877272129058838, -0.09590861201286316, 1.0845792293548584, 0.38164153695106506, 0.1617487221956253, -0.59354567527771, 0.0697556659579277, 0.03508546203374863, -1.4650866985321045, 0....
def test _ atomic _ language _ pattern _ 3 _ nistxml _ sv _ iv _ atomic _ language _ pattern _ 4 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - pattern - 4. xsd ", instance = " nistdata / atomic ...
[ 0.013697143644094467, 0.18743079900741577, 0.5029707551002502, 0.42255234718322754, -0.3544067442417145, 0.39592263102531433, -0.31209859251976013, 0.06736628711223602, 0.44600769877433777, 0.6605733036994934, -0.1309884935617447, -0.6938176155090332, -0.36540138721466064, -0.5213752985000...
def test _ atomic _ any _ uri _ max _ length _ 2 _ nistxml _ sv _ iv _ atomic _ any _ uri _ max _ length _ 3 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - maxlength - 3. xsd ", instance = " nistdata...
[ 0.027831271290779114, -0.010215881280601025, 0.48491567373275757, 1.3206011056900024, -0.31433144211769104, 0.461591899394989, -0.7706583142280579, 0.41792747378349304, 0.540732741355896, 0.2507524788379669, 0.20554716885089874, 0.001186611596494913, -0.060398343950510025, -0.2460172921419...
def color _ pixels _ hsv ( img, white _ color _ range, yellow _ color _ range ) : img = np. copy ( img ) # convert to hsv color space and separate the v channel hsv = cv2. cvtcolor ( img, cv2. color _ rgb2hsv ). astype ( np. float ) # create masks for white and yellow colors white _ mask = cv2. inrange ( hsv, white _ c...
[ -0.7089060544967651, -0.7454652190208435, 0.725100576877594, -0.08417126536369324, 0.5586068630218506, -0.33346062898635864, -0.06403850764036179, -0.09591035544872284, 0.9344137907028198, 0.8233472108840942, 0.35226184129714966, 0.9064289331436157, 0.5038097500801086, 0.7089463472366333, ...
def get _ benchmark _ run ( self, dut ) : # if terminated, stop providing any br. if self. _ terminated : return none # if dut bears an unrecognized label, return none. if dut. label is none : return none # if br list for the dut's label is empty ( that means all brs for this # label have been done ), return none. with...
[ -0.28118640184402466, 0.3840389847755432, 0.8420133590698242, 0.2286987006664276, 0.32035717368125916, 0.17127983272075653, -0.2811609208583832, -1.3686580657958984, 0.14177241921424866, 0.057660482823848724, -0.668961763381958, 0.8233249187469482, -0.491576224565506, -0.08038528263568878,...
def degree ( self, v ) : self. _ validate _ vertex ( v ) return len ( self. _ adj [ v ] )
[ -0.40107935667037964, 0.8675768375396729, 0.35697999596595764, -0.04844750463962555, -0.5265462398529053, 0.619061291217804, 0.8953110575675964, 1.2687671184539795, 1.1473296880722046, 0.14432500302791595, -0.8172658085823059, -0.10097166150808334, -0.5233684778213501, -0.05962503701448440...
def addsattrdate ( self, * args ) : return _ snap. tneanet _ addsattrdate ( self, * args )
[ 0.6152229905128479, 0.30518025159835815, 0.3390995264053345, -0.39114636182785034, 0.4820876121520996, 0.6087602376937866, -0.6926203966140747, -0.29387983679771423, -0.5941837430000305, -1.2559521198272705, 0.20832815766334534, -0.9162585735321045, 0.12370440363883972, 1.830378532409668, ...
def facet _ grid ( x = none, y = none ) : return _ facet ('grid ', x = x, y = y )
[ 0.25568005442619324, 0.8935461044311523, 0.38406866788864136, 0.3660390377044678, -0.2894025146961212, -0.8522244691848755, -0.17463158071041107, -1.1525471210479736, -0.49956756830215454, 0.5631982088088989, 0.07446582615375519, 1.4397430419921875, 0.616986870765686, -0.2690325975418091, ...
def _ _ init _ _ ( self, config : authconfiguration ) : self. _ _ declarative _ base = declarative _ base ( ) if config. get _ db _ connection _ string ( ) is none : raise runtimeerror ('a value for the configuration parameter ` db _ connection _ string ` is needed.') db _ connection _ string : str = config. get _ db _...
[ -0.11247260868549347, -0.08812788873910904, 0.6111483573913574, 1.0012127161026, 0.21406058967113495, 0.3236579895019531, 0.24686992168426514, -0.07444598525762558, -0.0683664083480835, 0.03367600589990616, -0.13409464061260223, 0.0029948928859084845, 0.8722857236862183, 0.3376779854297638...
def _ today ( self ) : return date. today ( )
[ -0.2846411466598511, -0.7142531275749207, 0.18495509028434753, -0.1548617035150528, 0.2941592335700989, 0.7435595393180847, -0.23142656683921814, -0.8724724650382996, -1.259971022605896, -1.0438157320022583, -0.17833907902240753, -0.29451897740364075, 0.19957247376441956, -0.25637975335121...
async def append _ description ( self, ctx : context, *, description : unicode ) - > none : self. embeds [ ctx. author ]. embed. description + = description await ctx. send ( " embeds description appended. " )
[ 0.5417671203613281, 0.5890564322471619, 0.4620789885520935, 1.1438343524932861, 0.28536373376846313, 1.354524850845337, -1.2860089540481567, -0.05718899890780449, 0.7456703782081604, -0.4581301510334015, -0.4323141872882843, 1.385721206665039, -0.7486663460731506, 0.6403669714927673, -0....
def fully _ resolve ( self ) : e = deepcopy ( self ) for command _ type in rv. all _ commands ( ) : e. update _ for _ command ( command _ type, e ) return e
[ 0.1618509143590927, -0.034198325127363205, 0.5575094223022461, 0.8956478834152222, 0.6320094466209412, -0.8829337358474731, 0.0626966580748558, -0.30491355061531067, 0.21390196681022644, -0.7853947877883911, 0.5121279954910278, -0.04406607896089554, -0.3543476462364197, 0.3142668306827545,...
def show _ privileges ( self ) : print ( f " hello, sysadmin. here are your current admin privileges : " ) for privilege in self. current _ privileges : print ( f " - { privilege. capitalize ( ) } " )
[ 0.45096564292907715, -0.5402990579605103, 0.6509436964988708, 0.20197944343090057, -0.008961169049143791, 0.13745906949043274, -0.9829641580581665, 0.2796493470668793, -0.01467907428741455, 0.2947898805141449, 0.34612756967544556, 2.1524574756622314, -0.1825520098209381, 0.6614014506340027...
def mssne _ implem ( x _ hds, init, n _ components = 2, ret _ sim _ hds = false, fit _ u = true, dm _ hds = none, cur _ seed = none ) : global sim _ dr _ nitmax, sim _ dr _ gtol, sim _ dr _ ftol, sim _ dr _ maxls, sim _ dr _ maxcor, n _ eps _ np _ float64, module _ name # checking the value of dm _ hds dm _ hds _ none ...
[ -0.00838598981499672, 0.8558229804039001, 1.1074180603027344, -0.1299353539943695, -0.5739120244979858, -0.7073774933815002, -0.8369218707084656, -0.11787836998701096, -0.06999184936285019, 0.7091552019119263, -0.7511109113693237, 0.05347464233636856, 0.06456129252910614, 0.329393446445465...
def send ( self, s ) : if self. debuglevel > 0 : self. _ print _ debug ('send : ', repr ( s ) ) if hasattr ( self,'sock') and self. sock : if isinstance ( s, str ) : # send is used by the'data'command, where command _ encoding # should not be used, but'data'needs to convert the string to # binary itself anyway, so that...
[ -0.6909053325653076, -0.002416253788396716, 0.4217027425765991, 0.4535912573337555, -0.6510472297668457, 0.021337544545531273, -0.13152502477169037, -0.4247851073741913, 0.43948057293891907, 0.165529265999794, -0.3679546117782593, 1.1825364828109741, -0.7136442065238953, 0.948408842086792,...
def book _ manager ( * args ) : while len ( endflag ) = = 0 and len ( symklns [ insids [ 0 ] ] ) < models [ insids [ 0 ] ]. pdobserve : # try : # time. sleep ( 0. 01 ) for symbol in insids : in _ position = false last _ signal = none for sig in signals [ symbol ] : model = models [ symbol ] sv _ time = int ( client. ti...
[ -0.42930489778518677, -0.40493467450141907, 0.8886371850967407, 0.9472206830978394, 0.1650862991809845, 0.6150571703910828, 0.15974362194538116, -0.4688708186149597, -0.8750963807106018, 0.18819642066955566, -0.4181006848812103, -0.07158701866865158, -0.45607784390449524, 0.678994357585907...
def get _ proteins ( db : session, species : list [ str ], taxon _ id : list [ int ], vog _ id : list [ str ] ) : log. debug ( " searching proteins in the database... " ) query = db. query ( protein. id ) if taxon _ id : query = query. filter ( protein. taxon _ id. in _ ( set ( taxon _ id ) ) ) if vog _ id : query = qu...
[ 0.6576140522956848, -0.4462965428829193, 0.38776254653930664, 0.586656928062439, 0.7526016235351562, 0.11171657592058182, -1.7057448625564575, -0.18081088364124298, -0.9023929238319397, 0.23750415444374084, 0.4053504765033722, 0.6188603639602661, -1.1870484352111816, 0.2400778979063034, ...
def prob4 ( search _ query ) : raise notimplementederror ( " problem 4 incomplete " )
[ -0.004331376403570175, -0.21671678125858307, 0.4896501302719116, 0.6874816417694092, -0.09790240973234177, 0.4899039566516876, 0.27776071429252625, -0.36698058247566223, 0.41419532895088196, 0.36978957056999207, -0.004841468296945095, -0.16766075789928436, -0.33339637517929077, 0.124939687...
def create _ file _ dialog ( self, start _ path = " / home " ) : file _ dialog = qfiledialog ( ) file _ dialog. setfilemode ( qfiledialog. anyfile ) file _ dialog. setdirectory ( start _ path ) return file _ dialog
[ 0.9331681132316589, -0.8853989839553833, 0.31683212518692017, 0.02104119211435318, -0.20039542019367218, 0.5063856244087219, 0.4612451195716858, 1.0073070526123047, -0.6278970241546631, -1.1136107444763184, 0.07605545967817307, -0.014469540677964687, 0.014845727011561394, 0.514931261539459...
def message _ hostname ( self, contenttype ) : if contenttype = ='application / json': return'{'+'hostname : { host } '. format ( host = socket. gethostname ( ) ) +'} \ r \ n'else : return'{ host } \ r \ n '. format ( host = socket. gethostname ( ) )
[ 0.0905255526304245, -0.8204184174537659, 0.8083104491233826, -0.739996612071991, -0.7160460352897644, -0.31039032340049744, -0.9266183376312256, -0.744254469871521, -1.0898560285568237, 0.49969759583473206, 1.0310442447662354, 1.1185126304626465, -0.28250017762184143, 0.49244236946105957, ...
def calc _ z _ purepython ( maxiter : int, zs : list [ complex ], cs : list [ complex ] ) - > list [ int ] : output : list [ int ] = [ 0 ] * len ( zs ) for i in range ( len ( zs ) ) : n = 0 z : complex = zs [ i ] c : complex = cs [ i ] while abs ( z ) < 2. and n < maxiter : z = z * z + c n + = 1 output [ i ] = n return...
[ -1.3533450365066528, -0.45861735939979553, 0.4103695750236511, 1.219558596611023, -0.5194682478904724, -0.2965795397758484, 0.7328670024871826, 0.49576088786125183, 0.7252575159072876, 0.07420475035905838, -1.7134571075439453, -0.31913623213768005, 0.1504182070493698, 0.2926618158817291, ...
def instance _ from _ config ( config ) : layout _ dict = layout ( ) validate _ config ( config, layout _ dict ) print ( config ) for key in config : try : config [ key ] = ast. literal _ eval ( config [ key ] ) except valueerror : pass # merging config into layout, every layout needs a " run _ id " variable layout _ d...
[ -0.006932899355888367, -0.033521607518196106, 0.70269775390625, -0.7350584864616394, -0.4057990610599518, 0.6637461185455322, 0.23696531355381012, -0.2500162124633789, -0.2598907947540283, 0.03637479618191719, 0.22252961993217468, 0.3085053563117981, -0.21456237137317657, 0.591541528701782...
def full _ name ( self ) : return self. name +'' + self. surname
[ 0.9743203520774841, -1.2903330326080322, 0.7711706757545471, -0.9649205207824707, -1.0016191005706787, 0.6171596646308899, -1.5370692014694214, 0.1975998431444168, 0.8676703572273254, 0.4038947522640228, -0.5060637593269348, 0.6494441032409668, 0.47125479578971863, 0.3297935724258423, 0....
def chat ( self ) : return self. _ chat
[ 0.5246202349662781, -0.3845787048339844, 0.4116854965686798, 0.6243997812271118, -0.6512359380722046, 1.082327961921692, 0.8533028960227966, -0.6547958850860596, -0.18672563135623932, -1.2057915925979614, 0.912630021572113, 0.5068621039390564, -0.12198996543884277, -0.6593771576881409, -...
def get _ uid ( prefix ='' ) : _ uid _ prefixes [ prefix ] + = 1 return _ uid _ prefixes [ prefix ]
[ -0.7339145541191101, 0.0499846413731575, 0.37913328409194946, -0.17428839206695557, -0.4202251434326172, -0.1666393131017685, 0.1402166187763214, 0.41142404079437256, 1.213634729385376, -1.2060400247573853, -0.3885982632637024, 1.2323682308197021, -0.1326693445444107, -0.5244870185852051, ...
def repl ( ) : environment = init _ default _ environment ( ) while true : exp = raw _ input ( " lisp > " ) if exp = = " quit " : break exptree = parse _ expression ( exp ) print evaluate ( exptree, environment )
[ 0.4996762275695801, -0.08192313462495804, 0.6331067085266113, -0.004723934922367334, -0.6812209486961365, 0.7665815949440002, -0.20300404727458954, 0.46659132838249207, -0.3184756934642792, -0.1574673056602478, 0.029088446870446205, 0.546704113483429, -0.32598087191581726, -0.6133141517639...
def describe _ user _ pool _ domain ( domain = none ) : pass
[ -1.0141559839248657, 0.9599074721336365, 0.12315557897090912, 0.23234723508358002, 0.3221055865287781, 0.2343965619802475, 0.9513277411460876, -1.095847249031067, 0.45095452666282654, -0.8045320510864258, 0.03421153873205185, 2.6311519145965576, -0.7218788266181946, 0.02551477588713169, ...
def set _ ghost _ cells ( self, data _ all : np. ndarray, *, args = none ) - > none : for b in self : b. set _ ghost _ cells ( data _ all, args = args )
[ -0.551548182964325, 0.042235150933265686, 0.422154039144516, 1.515215516090393, 1.3222171068191528, 0.488408625125885, 0.425374299287796, 0.013517034240067005, -0.8406010270118713, -0.3645695447921753, 0.02860427275300026, 0.8845617771148682, -0.34821921586990356, 2.210236072540283, -1.5...
def lm _ ffinal ( mass, spin, modes ) : f _ 0, tau = get _ lm _ f0tau _ allmodes ( mass, spin, modes ) f _ max = { } for lmn in modes : l, m, nmodes = int ( lmn [ 0 ] ), int ( lmn [ 1 ] ), int ( lmn [ 2 ] ) for n in range ( nmodes ) : f _ max ['% d % d % d'% ( l, m, n ) ] = qnm _ freq _ decay ( f _ 0 ['% d % d % d'% ( ...
[ 0.41070207953453064, -0.34612399339675903, 0.43543827533721924, -0.24711918830871582, -0.4965241253376007, -0.8101840019226074, -0.932547926902771, 0.142492413520813, -0.40730056166648865, -0.7308535575866699, -0.06990848481655121, -0.18399125337600708, 0.17077113687992096, 0.7768535017967...
def transform ( self, x ) : result = [ self. my _ operation ( text ) for text in x ] return pd. dataframe ( result, columns = ['tok _ cnt'] )
[ -0.8637996912002563, 1.2640427350997925, 0.3653399348258972, -0.07832532376050949, -0.9213699698448181, -1.315151572227478, -0.08788604289293289, 0.7327411770820618, -0.3690482974052429, -0.33351948857307434, -0.3917502462863922, -0.5735912322998047, -0.2195233851671219, -0.875046968460083...
def run _ query _ row ( cur, sql, params = none, * * kwargs ) : params = params or kwargs rows = run _ query ( cur, sql, params ) if len ( rows ) = = 0 : return none return rows [ 0 ]
[ 0.24759241938591003, 0.06105545535683632, 0.3404976725578308, 0.5770372152328491, -0.40600302815437317, -1.0007392168045044, -0.8575090765953064, 0.08061045408248901, 0.5311141610145569, -0.36819398403167725, 1.3901875019073486, 0.37652096152305603, -0.16934654116630554, 0.4068340063095093...
def forward ( observation, emission, transition, initial ) : n, m = emission. shape t = observation. shape [ 0 ] alpha = np. zeros ( ( n, t ) ) aux = ( initial. t * emission [ :, observation [ 0 ] ] ) alpha [ :, 0 ] = aux. reshape ( - 1 ) for t in range ( 1, t ) : prev = alpha [ :, t - 1 ] trans = transition em = emiss...
[ 0.12604570388793945, -0.016881797462701797, 0.7400714755058289, -0.7394265532493591, -0.044471289962530136, -0.010826741345226765, 0.00039436109364032745, 0.9718925356864929, -0.8134579062461853, 0.8076188564300537, 0.08819608390331268, -0.0017764479853212833, 0.9931710958480835, 0.2052689...
def site _ scanner ( session ) : df = load _ data _ file ( ) df _ list = list ( df. link ) new _ item _ list = [ ] # print ( df _ list ) # r = s. get ( settings. home _ page ) # s. post ( r. url, data = login _ cred, verify = false ) # log in the redirected login page r = session. get ( settings. home _ page ) # go bac...
[ -0.930578887462616, -0.2013000100851059, 0.7863949537277222, 0.08809009194374084, 0.3280910849571228, -0.7694423198699951, 0.43514445424079895, -0.156352236866951, 0.2010279893875122, -0.5318957567214966, -0.5647872090339661, 0.07591332495212555, -0.009755964390933514, 0.2992185056209564, ...
def test _ feature _ request _ priority _ default ( self ) : # bill lumbergh continues to attempt creating some frs. common _ values = {'user _ id': 4,'client _ id': 3,'target _ date': self. base _ date } fr1 _ title ='allow security answers to contain spaces.'fr1 = featurerequest ( title = fr1 _ title, * * common _ va...
[ -0.3113096356391907, 0.20805290341377258, 0.6188992857933044, 1.1193656921386719, 1.1567127704620361, -0.4028444290161133, -0.8718862533569336, -0.2130957394838333, -0.33671674132347107, -1.1015936136245728, -0.44046154618263245, -0.5570441484451294, -0.2397117018699646, 0.4480840861797333...