text
stringlengths
25
2.19k
embedding
listlengths
768
768
def test _ atomic _ base64 _ binary _ pattern _ 3 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ pattern _ 4 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - pattern - 4. xsd ", instance ...
[ -0.03974713012576103, -0.19257082045078278, 0.5072585344314575, 1.1967393159866333, -0.12121861428022385, 0.22236749529838562, 0.4943980574607849, -0.12287374585866928, -0.5915157794952393, 0.4908958375453949, -0.9134883880615234, -0.13302382826805115, -0.6892452239990234, -0.2594992220401...
def get _ all ( ) : columns = ['artist. name ','artist. image _ url ','artist. uri ','artist. videos ','video. name ','video. uri'] try : message ='success'data = artist. query. outerjoin ( artist. videos ). options ( contains _ eager ( artist. videos ), ). limit ( 10 ). all ( ) except exception as error : message ='% ...
[ -0.766925573348999, 0.0726466253399849, 0.7368395328521729, -0.19326308369636536, 0.25751179456710815, -0.39701077342033386, -0.4001964032649994, 0.19180631637573242, 0.2877095639705658, 0.3183235824108124, -0.20269431173801422, 0.39614593982696533, -0.25607189536094666, 0.7604751586914062...
def set _ new _ coords ( self, ilat, ilng ) : self. lat = ilat self. lng = ilng
[ -1.2256906032562256, -1.0240947008132935, 0.292771577835083, -1.5163699388504028, -0.2400558590888977, 0.4982632100582123, -1.451655387878418, 0.12485982477664948, -0.9120806455612183, -0.10936534404754639, -0.4762532413005829, 0.391567200422287, 0.2055186778306961, -0.38345712423324585, ...
def iterate ( query, app _ id, fields = none, filter _ func = none, batch _ size = _ default _ batch _ size, batch _ run = false ) : # pragma : no cover. remote _ api. enableremoteapi ( app _ id ) cursor = none while true : entities, next _ cursor, more = query. fetch _ page ( batch _ size, start _ cursor = cursor ) if...
[ 0.4759615659713745, 0.6725021600723267, 0.48383256793022156, -0.08558034896850586, -0.0008417848730459809, 0.7029477953910828, -0.4724850058555603, -0.3471929430961609, -0.1318284571170807, -0.016095353290438652, 1.1055241823196411, 0.4039227366447449, 0.47627323865890503, -0.2115180939435...
def test _ token _ function ( self ) : assert tokentestmodel. objects. count ( ) = = 0 for i in range ( 10 ) : tokentestmodel. create ( key = i, val = i ) assert tokentestmodel. objects. count ( ) = = 10 seen _ keys = set ( ) last _ token = none for instance in tokentestmodel. objects ( ). limit ( 5 ) : last _ token = ...
[ -0.45917895436286926, 0.6671869158744812, 0.5539567470550537, -0.7671617269515991, 1.3230063915252686, -0.37636998295783997, 0.608356237411499, -0.02592133730649948, -0.5102314949035645, -1.1255595684051514, -0.9495135545730591, -0.21763372421264648, 0.2463594228029251, -0.2137328833341598...
def lcm _ mp ( m ) : q = m. query q. true _ answer = np. matmul ( q. query _ matrix, q. domain _ hist ) # print ( q. true _ answer ) # need to split the beta eps _ max = m. est _ cost eps0 = eps _ max / q. count _ poking lap _ b = q. get _ sensitivity ( ) / eps0 lap _ noises = np. random. laplace ( 0, lap _ b, len ( q....
[ 0.15429681539535522, -0.49484434723854065, 0.7801505923271179, -0.8332394957542419, -0.30870547890663147, 0.4288475513458252, -0.07255247980356216, 0.39058706164360046, 0.12242873013019562, 0.36914750933647156, -0.07583360373973846, -0.31309354305267334, -0.7480936646461487, 0.636122941970...
def get _ storageclasses ( self ) : # storageclasses = memcache. get ('storageclasses') # if storageclasses is not none : # return storageclasses params = {'limit': 1000 } storageclasses = self. get _ paged _ list ( self. bitstore. storageclasses ( ), params ) # memcache. add ('storageclasses ', storageclasses, self. m...
[ -0.8346545696258545, 0.4381401240825653, 0.5976648926734924, 0.7177160382270813, 0.831913411617279, -0.003065606113523245, -0.7768254280090332, -0.6435075402259827, 0.7611973285675049, -0.39112356305122375, -0.17647604644298553, 0.2365412563085556, 0.1821812093257904, 0.8723534345626831, ...
def delete ( ctx, # mandatory main parameter volumeid ) : " " " interval elapses. after making a request to delete a volume, any active iscsi connections to the volume are immediately terminated " " " " " " and no further connections are allowed while the volume is in this state. a marked volume is not returned in targ...
[ -0.3090214729309082, -0.5939510464668274, 0.9352182149887085, 0.23284955322742462, 0.7774342894554138, -0.15140143036842346, 0.3990266025066376, -0.22033050656318665, 0.8248046636581421, -0.06735417246818542, 0.19952018558979034, 1.1334680318832397, -0.6882529854774475, -0.2257728427648544...
def set _ render _ mode ( self, mode ) : self. _ mesh. set _ render _ mode ( mode )
[ -0.433552086353302, 0.7371875047683716, 0.5466436147689819, -0.08942056447267532, 0.11861379444599152, 1.795055866241455, 0.09386521577835083, 0.017884235829114914, -0.31318655610084534, -0.8396185040473938, -1.200626254081726, -0.01587589830160141, -0.8205180168151855, 0.09682700783014297...
def add _ user ( self, user : notetonuser ) - > none : user _ = self. db. get _ user ( user. id ) if user _ is none : self. db. add _ new _ user ( user ) user _ = user logger. info ( f'{ user _ } is added to manager') self. users [ user. id ] = user _
[ -0.605423629283905, 0.34196820855140686, 0.4673018455505371, 0.45830097794532776, 0.5650853514671326, 0.90381920337677, -0.30355775356292725, -0.6958255171775818, 0.4881575107574463, -0.9366530179977417, -1.3496794700622559, 0.33967605233192444, -0.27542635798454285, 1.4944734573364258, ...
def exists ( ) : check50. exists ( " queue. h " ) check50. exists ( " queue. c " ) check50. exists ( " queue _ example. c " ) check50. exists ( " makefile " ) check50. include ( " queue _ example _ soln " )
[ 0.6753291487693787, -0.7706249356269836, 0.5092028379440308, 0.5866990089416504, 1.0501753091812134, 1.1412793397903442, -0.4712384045124054, 0.6198060512542725, 0.1403915286064148, 0.24313043057918549, -0.6989663243293762, -0.034850478172302246, 0.9283913373947144, 0.4982689619064331, -...
def show _ dialog ( parent, size _ calculator = none ) : dialog = selectmediadialog ( parent, size _ calculator = size _ calculator ) parent. wait _ window ( dialog. top ) return dialog. result
[ 0.3864193856716156, 0.5604475140571594, 0.49931254982948303, -0.036714762449264526, -1.2609286308288574, -0.8930124640464783, 0.5948179960250854, -0.18586879968643188, 0.44676902890205383, -0.3076135516166687, 0.21267974376678467, 0.12548404932022095, -0.2166397124528885, 0.665883958339691...
def get _ grid _ height ( self ) : return self. _ tiles _ height
[ 0.3040907382965088, 0.5017586946487427, 0.377761572599411, 1.1318018436431885, -0.14125193655490875, 0.11862009018659592, 0.6825796365737915, -0.18464069068431854, -0.9458678960800171, -0.015003242529928684, -0.5285060405731201, 0.35380879044532776, -0.2958582043647766, 0.24679823219776154...
def divide _ conquer _ nd ( self ) : outdim = self. y. shape [ 1 ] # the divide and conquer algorithm operates on a pseudo pareto set # that is a mapping of the real pareto set to discrete values pseudo _ pf = np. argsort ( self. front. value, axis = 0 ) + 1 # + 1 as index zero is reserved for the ideal point # extend ...
[ 0.2173272967338562, -0.01917361281812191, 0.9255955219268799, 0.40258291363716125, -0.3672228157520294, 0.11490754038095474, 0.4112286865711212, -0.093439020216465, -0.22559814155101776, -0.1311330497264862, 0.42934903502464294, 0.2533468008041382, -0.07413814961910248, 0.4181811213493347,...
def linearization _ recur2 ( root ) : def helper ( root ) : nonlocal new if root : helper ( root. left ) root. left = none new. right = root new = new. right helper ( root. right ) dummy = new = treenode ( ) helper ( root ) return dummy. right
[ 0.717312753200531, 0.1886526197195053, 0.5768676400184631, 0.2595955729484558, -0.750559389591217, -0.7625130414962769, -0.13558343052864075, -0.4050503969192505, 0.39483508467674255, 0.07052019238471985, -1.0352004766464233, 0.6258891820907593, -0.7673643231391907, 1.4094208478927612, 0...
def make _ s3 _ key _ public ( ) : key = request. form ['key'] s3key = bucket. lookup ( key ) if s3key : print'making % s publicly accessible'% s3key s3key. set _ acl ('public - read') return'{ } '
[ -0.0061201537027955055, 0.2080761194229126, 0.38620176911354065, -0.020753853023052216, -0.8303629755973816, 1.0117032527923584, 0.04649750888347626, 0.020210565999150276, 0.10967894643545151, 0.5094308853149414, 0.4099953770637512, 0.18761971592903137, 0.2743385136127472, -0.3197548687458...
def test _ atomic _ any _ uri _ enumeration _ 2 _ nistxml _ sv _ iv _ atomic _ any _ uri _ enumeration _ 3 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - enumeration - 3. xsd ", instance = " nistdata...
[ -0.4702318608760834, -0.7797374725341797, 0.59056556224823, 0.6255234479904175, 0.004769866354763508, -0.03720283880829811, -0.16635796427726746, -0.23542001843452454, 0.3693488538265228, 0.0744285136461258, 0.28727737069129944, -0.4370635747909546, -0.46783894300460815, -0.222616046667099...
def expand ( self, coord, axis, in _ place = true ) : if axis = ='x': shape = ( len ( self. yc ), len ( coord ) ) d = np. full ( shape, np. nan ) if self. err is not none : err = np. full ( shape, np. nan ) else : err = none for i in range ( len ( self. xc ) ) : i0 = np. where ( coord = = self. xc [ i ] ) [ 0 ] [ 0 ] d...
[ 0.5018983483314514, 0.13805407285690308, 1.1344187259674072, -0.5976523756980896, -0.4301370680332184, -0.16670092940330505, 0.484711229801178, 0.6476329565048218, 0.3945315480232239, -0.25043538212776184, 0.4694118797779083, 1.4189575910568237, -0.14652825891971588, -0.020267698913812637,...
def sech ( x ) : e = numpy. exp ( - abs ( x ) ) return 2 * e / ( 1 + e * * 2 )
[ 1.4216556549072266, 0.5481290817260742, 0.3250788152217865, 0.9534809589385986, -0.5398028492927551, 1.1265052556991577, -0.16459472477436066, -0.14851349592208862, 0.271512508392334, 0.019243959337472916, -0.8591267466545105, 0.4254520535469055, 0.825834333896637, -0.7375910878181458, 1...
def df _ factory ( w ) : def df ( v ) : dfv = ( 1 - v * * 2 ). t [ :, :, np. newaxis ] * w [ np. newaxis, :, : ] wv2v = w. dot ( v ) * 2 * v for i in range ( v. shape [ 0 ] ) : dfv [ :, i, i ] - = wv2v [ i, : ] return dfv return df
[ -0.42751309275627136, -0.008122632279992104, 0.4918907880783081, -0.12588123977184296, -0.7954486012458801, -0.5482615232467651, 0.9298446774482727, -0.7582790851593018, -0.025988111272454262, -0.4156128764152527, 0.03921492397785187, 0.25203388929367065, 0.6386061310768127, -0.12121609598...
def extract _ stack ( f = none, limit = none ) : if f is none : f = sys. _ getframe ( ). f _ back if limit is none : # limit the amount of work to a reasonable amount, as extract _ stack ( ) # can be called for each coroutine and future in debug mode. limit = debug _ stack _ depth stack = traceback. stacksummary. extra...
[ 0.025814352557063103, 1.3126614093780518, 0.9221026301383972, 0.3203626275062561, -0.1412767469882965, -1.3172253370285034, 0.7227945923805237, -0.07861609011888504, -0.14236608147621155, 0.2345048189163208, 0.22444294393062592, -0.11007899791002274, -0.02872590720653534, -0.69829994440078...
def media _ track ( self ) - > int | none : item = self. _ currently _ playing. get ( " item " ) or { } return item. get ( " track _ number " )
[ -0.34474459290504456, -0.07414034754037857, 0.4873404800891876, 0.5669718384742737, 0.4090215563774109, -0.1539820283651352, 0.8338596820831299, 0.0753536969423294, -0.4931431710720062, -0.6929739713668823, 0.4719809591770172, 0.28295522928237915, -0.48008909821510315, -0.10676112771034241...
def remove _ old _ files ( algo _ name, today, rel _ path, environ = none ) : error = none algo _ folder = get _ algo _ folder ( algo _ name, environ ) folder = os. path. join ( algo _ folder, rel _ path ) ensure _ directory ( folder ) # run on all files in the folder for f in os. listdir ( folder ) : try : file _ path...
[ 0.32769328355789185, 0.6509014368057251, 0.960411012172699, -0.43030300736427307, 0.1841551959514618, 0.8717358708381653, 0.5009732842445374, 0.340459406375885, -0.9262012243270874, 0.8087373971939087, 0.8132176995277405, 0.31857770681381226, 0.20077304542064667, 0.4339277744293213, -0.3...
def sne _ bin _ search _ fct ( ds _ hds _ i _ js, den _ s _ i, i, log _ perp ) : return sne _ entropy _ p _ i _ js ( ds _ hds _ i _ js = ds _ hds _ i _ js, den _ s _ i = den _ s _ i, i = i ) - log _ perp
[ -0.10934583097696304, 0.3042755126953125, 0.3512217402458191, -0.6124193668365479, -0.4810313880443573, -0.7821923494338989, 0.22808127105236053, -0.7899066805839539, -0.3700793981552124, -0.057434648275375366, 0.08477973937988281, 0.06787272542715073, 0.0440109558403492, -1.62652730941772...
def test _ atomic _ any _ uri _ length _ 1 _ nistxml _ sv _ iv _ atomic _ any _ uri _ length _ 2 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - length - 2. xsd ", instance = " nistdata / atomic / any...
[ -0.17989009618759155, -0.6162235736846924, 0.44843918085098267, 1.2419226169586182, -0.2584644854068756, -0.25941985845565796, -0.04774856939911842, 0.11841583251953125, -0.45287665724754333, -0.1187405064702034, 0.12325387448072433, -0.04429399222135544, 0.1984361857175827, 0.462593823671...
def get _ program ( path ) : # this stuff needs to go into parser index = fetch _ url ( " http : / / au. tv. yahoo. com % s " % path ) program = classes. program ( ) program. id = re. findall ( " vid :'(. *? )'", index ) [ 0 ] program. title = re. findall ( " < h1 > (. *? ) < / h1 > ", index ) [ 0 ] try : program. cate...
[ -0.5130725502967834, -0.44648727774620056, 0.8738380670547485, -0.5763199329376221, 0.36635398864746094, -0.41802340745925903, -0.48870545625686646, 0.33069080114364624, 0.5527057647705078, -0.06874626874923706, -0.7129098773002625, 0.904448390007019, 0.24867282807826996, -0.36874413490295...
def geteventtypes ( self, draft = false, name = none, schemaid = none ) : if draft : req = apiclient. alleventtypesurl % ( self. host, " / draft " ) else : req = apiclient. alleventtypesurl % ( self. host, " " ) if name or schemaid : req + = "? " if name : req + = " name = " + name if schemaid : if name : req + = " & "...
[ 0.13972221314907074, -0.11737600713968277, 0.7285564541816711, 0.47051119804382324, 0.056732647120952606, -0.49647435545921326, -0.7859710454940796, 0.750044584274292, 0.8561508059501648, 0.6203863620758057, -0.7939523458480835, 0.5955482125282288, -1.673563838005066, 0.8067491054534912, ...
def test _ list _ integer _ min _ length _ 3 _ nistxml _ sv _ iv _ list _ integer _ min _ length _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - minlength - 4. xsd ", instance = " nistdata / list / ...
[ -0.2447519153356552, -0.39616164565086365, 0.3186950087547302, 0.5514766573905945, -0.5016531944274902, 0.2633788585662842, -0.5852924585342407, 0.13154882192611694, 1.2611720561981201, 0.5878733992576599, -0.8511344790458679, -0.4070636034011841, -0.8888207077980042, 0.160780668258667, ...
def _ _ init _ _ ( self, t, traj, ats ) : snapshot = traj [ t ] self. timestep = t self. ats = ats binds = np. argsort ( snapshot. particles. body ) self. pos = snapshot. particles. position [ binds ] sz = np. shape ( self. pos ) if sz [ 0 ] % ats! = 0 : raise runtimeerror ( " number of particles not divisible by numbe...
[ -0.2107894867658615, 0.10571757704019547, 0.32170119881629944, -0.734671413898468, -0.3724013566970825, -0.13996730744838715, -0.29397889971733093, -0.018501438200473785, 0.09372877329587936, 0.19416004419326782, -0.16709280014038086, -0.48414450883865356, 0.6824486255645752, 0.03071723319...
def parse _ args ( ) : # options = none ) : parser = argparse. argumentparser ( description = " perform daily processing of spectral " + " data using the desi pipeline. " ) parser. add _ argument ( " - - cameras ", type = str, required = false, help = " explicitly define the spectrographs for which you want " + " to re...
[ -0.22145672142505646, 0.07656679302453995, 1.0255972146987915, 0.04707255959510803, 0.05250033736228943, -0.2515200078487396, -0.017636576667428017, 0.17252251505851746, -0.4370330274105072, -0.1615113466978073, -0.06421182304620743, -0.08091665804386139, 0.06682015210390091, 0.79413765668...
def distance ( self, node1, node2 ) : path = self. breadthfirst ( node1, node2 ) return len ( path ) - 1 if path is not none else none
[ 0.3138100504875183, 0.6218478083610535, 0.728283703327179, 0.27364587783813477, 0.20794396102428436, -0.1123839020729065, -0.2728016674518585, 0.4052148461341858, 0.002571114804595709, 0.6122848391532898, -0.36152052879333496, 0.569907009601593, -0.8297767639160156, 0.27133044600486755, ...
def get _ end _ channel ( self ) : return self. channels [ 1 ]
[ -0.6877515912055969, -0.13365057110786438, 0.6411083340644836, -0.044696658849716187, 0.9512120485305786, 0.4645947217941284, -0.15579140186309814, -0.8699135780334473, -0.6910983324050903, -0.13895733654499054, 0.9435079097747803, 1.2947899103164673, -0.5082369446754456, -0.19151973724365...
def test _ atomic _ language _ white _ space _ nistxml _ sv _ iv _ atomic _ language _ white _ space _ 1 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - whitespace - 1. xsd ", instance = " nistdat...
[ -0.2691732943058014, 0.18933185935020447, 0.3718109130859375, 0.1457013636827469, -0.18907849490642548, 0.37094613909721375, 0.158209428191185, -0.27559754252433777, 1.0131860971450806, 0.8137990236282349, 0.2543444037437439, -0.019006863236427307, -0.34540003538131714, 0.5352871417999268,...
def include _ media _ object ( self, handle ) : return handle in self. referenced [ " mediaobject " ]
[ 1.173002004623413, -0.849662184715271, 0.48086488246917725, 0.04740849882364273, -0.28006207942962646, 0.9889990091323853, 0.362236887216568, -0.792061984539032, 0.7976741194725037, -0.9685890674591064, -0.12202189117670059, 0.6633588671684265, -1.0349406003952026, 0.8597326874732971, -1...
def get _ vm _ in _ folder ( content, vimtype, name, folder ) : obj = none container = content. viewmanager. createcontainerview ( content. rootfolder, vimtype, true ) for c in container. view : if name : if ( c. name = = name ) and ( c. parent. name = = folder ) : obj = c break else : obj = c break return obj
[ 0.43024933338165283, -1.1427788734436035, 0.5025253295898438, 0.5738909244537354, -0.6892943978309631, -0.5652472972869873, -0.10089990496635437, -0.804128110408783, -0.6908624172210693, -0.3636210262775421, 0.6687561273574829, 1.197222352027893, -1.1322234869003296, 0.2771255373954773, ...
def is _ valid _ image ( image ) : return image. endswith ( ". jpg " ) or image. endswith ( ". png " )
[ -0.9083455801010132, 0.25561222434043884, 0.6470600366592407, 0.9942635893821716, -0.601823091506958, 0.7574722766876221, -0.35701343417167664, 0.03091069869697094, 0.3607289493083954, 0.21528193354606628, 0.7655335068702698, -0.44009464979171753, -0.01538010872900486, 1.1886065006256104, ...
def test _ atomic _ language _ enumeration _ 3 _ nistxml _ sv _ iv _ atomic _ language _ enumeration _ 4 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - enumeration - 4. xsd ", instance = " nistda...
[ -0.19704437255859375, -0.5876097083091736, 0.4852563738822937, 0.44362708926200867, -0.5280641913414001, 0.18680903315544128, 0.46075594425201416, 0.007626634556800127, -0.30979740619659424, 0.7620875239372253, -0.8451528549194336, -0.5254887342453003, -0.09148742258548737, -0.330654084682...
def _ cache _ hash ( self ) - > int : return hash ( tuple ( bc _ ax. _ cache _ hash ( ) for bc _ ax in self ) )
[ 0.4901086986064911, 0.43775081634521484, 0.21888023614883423, 0.261153906583786, -0.2233205884695053, 0.5969877243041992, 0.5455440878868103, -0.07995888590812683, -0.5435392260551453, 0.4896118938922882, -0.6778876781463623, 0.27285921573638916, -0.6161693930625916, -0.9728410243988037, ...
def get _ pants _ curve _ turning ( self, pants _ curve ) : return self. get _ switch _ turning ( self. pants _ curve _ to _ switch ( pants _ curve ) )
[ -1.104642629623413, -1.1151015758514404, 0.440206915140152, -0.49604707956314087, 0.3575592637062073, -0.132913738489151, -0.12324309349060059, -0.9633976817131042, -0.1389296054840088, -0.7837339043617249, -0.41948193311691284, 1.8504135608673096, -0.055698495358228683, -0.015111571177840...
def get _ info _ from _ ghc _ info ( ghc _ info _ str ) : # return it as a dictionary - makes it easier # format : # < < ghc : 104577794416 bytes, 2920 gcs, 1809257145 / 13082145336 avg / max bytes residency ( 18 samples ), 27498m in use, 0. 004 init ( 0. 066 elapsed ), 71. 468 mut ( 58. 753 elapsed ), 686. 069 gc ( 40...
[ 0.8110565543174744, -0.702118992805481, 0.7118953466415405, -1.2009820938110352, -0.15286500751972198, -0.655622661113739, 0.005467158742249012, -0.32269594073295593, -0.7647006511688232, 0.21310262382030487, -0.510031521320343, 0.2434339076280594, 0.02284071035683155, 0.6746008992195129, ...
def _ build _ graph ( self, graph ) : raise exception ('needs to be implemented')
[ -1.3612298965454102, 0.0302966870367527, 0.1627829670906067, 0.3858709931373596, 0.24169346690177917, 0.38028010725975037, 0.172143816947937, 0.7543911933898926, 0.41160592436790466, -0.03011365979909897, 0.19832327961921692, -0.4944664239883423, 0.06534341722726822, -0.38392603397369385, ...
def fret _ markers _ enabled ( self ) : return self. show _ fret _ markers
[ -0.34214919805526733, 0.01211923360824585, 0.227731391787529, 0.21310849487781525, 0.5666943788528442, -0.6510967016220093, 0.8333163261413574, -0.19093544781208038, 0.4730435013771057, -0.24366459250450134, -0.5958576798439026, 0.7088606953620911, -0.7183794975280762, 0.2879996597766876, ...
def make _ add _ identifier ( identifier, build _ names ) : identifier + ='add _'number = 1 # iterate until finding a non - used identifier while identifier + str ( number ) in build _ names : number + = 1 # update identifier identifier + = str ( number ) # update the build names build _ names. add ( identifier ) retur...
[ -0.7918815016746521, -0.6173861026763916, 0.7178663015365601, -0.6594638824462891, -0.2072398066520691, 0.8913422226905823, -0.13273006677627563, 0.09167613089084625, 0.6205862760543823, 0.04214104637503624, -0.33623433113098145, 0.23647098243236542, -0.18404017388820648, -0.35872295498847...
def select ( fromtable : arrable, cols : str, where : str ) : orig _ cols = fromtable. get _ col _ names ( ) cols = cols. strip ( ). split ( ", " ) where = wherepredicates ( where ) res = [ ] for i, row in enumerate ( fromtable. get _ rows ( ) ) : if where. ismatch ( row, orig _ cols ) : val = { entry : row [ entry ] f...
[ 0.02657870203256607, -0.91390061378479, 0.5139809250831604, 0.5671859979629517, -1.116636872291565, -1.1729520559310913, -1.0225919485092163, -0.10547679662704468, -0.5776063203811646, 0.6143811345100403, -0.20620369911193848, 0.2652541995048523, 0.6984855532646179, -1.1354516744613647, ...
def test _ confirmar _ turno ( self ) : data = { " id " : str ( self. tr. pk ), " paciente " : str ( self. paciente. numero _ documento ), " obra _ social " : str ( self. obra _ social. pk ) } # es necesario serializar antes de enviar form _ data = json. dumps ( data ) url = reverse ('calendario. confirm ', kwargs = {'...
[ 0.3434699773788452, -0.37899765372276306, 0.846735417842865, -0.07550165057182312, 0.8856381177902222, 0.47881191968917847, -0.4363363981246948, -0.5430763959884644, -0.45644429326057434, 0.23745255172252655, -0.1690402626991272, 0.1320759803056717, 0.4431787431240082, -0.49989834427833557...
def _ _ get _ row _ data ( ) : raw _ data = [ ] files _ info = [ ] t0 = time. time ( ) logging. info ('reading raw data') for parent, _, file _ names in os. walk ( raw _ data _ dir ) : for filename in file _ names : full _ file _ name = os. path. join ( parent, filename ) with open ( full _ file _ name,'r ', encoding =...
[ -0.6092092990875244, -0.11726947128772736, 0.7890751361846924, -0.8111605048179626, -0.25794103741645813, -0.041883133351802826, -0.08237229287624359, 0.44852200150489807, -0.7013425230979919, -0.07369232177734375, -0.11706076562404633, -0.06513845175504684, 1.2385101318359375, 0.917975962...
def get _ day ( ) : my _ day = db. session. query ( day ). all ( ) return jsonify ( day = my _ day )
[ -1.264094352722168, -0.08017613738775253, 0.3948809802532196, 0.4618567228317261, -0.18514981865882874, -0.3454919159412384, -0.9009033441543579, -0.6175614595413208, -1.3031563758850098, -0.650435745716095, -0.6760467290878296, 0.23527196049690247, 0.4617515504360199, 0.6903094053268433, ...
def copy _ file ( source, destination, passnum = 1, version = 2, overwrite = false ) : def get _ true _ dest _ from _ message ( detail ) : message = str ( detail ). split ( ) if ( message [ 2 ] = = "'/ home / ashley / google " ) : # for google drive only true _ dest = message [ 2 ] + " " + message [ 3 ] else : true _ d...
[ -0.6983069181442261, -0.39319637417793274, 0.9601261019706726, 0.396083801984787, -0.6361032724380493, 0.7285193800926208, 0.43507713079452515, -0.07958486676216125, -0.039458367973566055, 0.43466776609420776, 0.1374884396791458, -0.11158300191164017, 0.36408668756484985, -0.23591448366641...
def generate _ forecast _ for _ single _ time _ series ( series, model, start = none, end = none, resolution = none, params = none ) : # generate params related to forecast timing timing _ params = _ generate _ timing _ params ( series, start, end, resolution ) # create forecaster. every forecast model has some types o...
[ -0.1957922875881195, 0.2680114805698395, 0.811821460723877, 1.3619896173477173, -0.30040642619132996, -0.2828771471977234, -0.025456877425312996, -0.03345191106200218, -0.06216142699122429, -0.11989136785268784, -0.5674730539321899, 0.163664311170578, 0.22488993406295776, -0.21082445979118...
def read _ elem ( cls, elem, fd ) : id _ = elem. attrib. get ( " id " ) if id _ is not none : id _ = int ( id _ ) name = elem. attrib. get ( " name ", " " ) width = elem. attrib. get ( " width " ) if width is not none : width = int ( width ) height = elem. attrib. get ( " height " ) if height is not none : height = int...
[ 0.5376006364822388, -0.5581470727920532, 0.9803498387336731, 0.046988971531391144, -1.4995529651641846, -0.1231217235326767, -0.13509275019168854, 0.11165739595890045, -0.17350150644779205, -0.31259745359420776, 0.07093165069818497, -0.06082458049058914, 0.8021717667579651, 0.0764123648405...
def generate _ forecast _ from _ ci ( data, model, start = none, end = none, resolution = none, params = none ) : if ( params is none ) or ('column _ name'not in params ) : column _ name ='carbon _ intensity'else : column _ name = params ['column _ name'] # extract carbon intensity data data _ ci = _ extract _ time _ s...
[ 0.22574849426746368, 0.12063685804605484, 0.3267744481563568, 1.0629010200500488, -0.6195340752601624, -0.5262011289596558, 0.13453571498394012, 0.48953816294670105, -1.3630797863006592, 0.18537205457687378, -0.5930039286613464, -0.2559509873390198, -0.9925448298454285, -0.64661705493927, ...
def test _ get _ cve _ filter _ by _ assignershortname ( ) : res2 = requests. get ( f'{ env. awg _ base _ url } { cve _ url } / ', headers = utils. base _ headers, params = {'assigner _ short _ name':'mitre'# use org uuid as assigner } ) assert res2. status _ code = = 200 recordslength = len ( json. loads ( res2. conte...
[ -0.22307772934436798, -0.23082241415977478, 0.41807058453559875, -0.2646806538105011, -0.034087907522916794, 0.26775458455085754, -0.1690066009759903, 0.8119161128997803, -0.2244240641593933, 0.2431652992963791, -0.10832682251930237, 0.6516566276550293, 0.12615150213241577, 0.1363614052534...
def saycharacter ( self, obj ) : text = obj. querytext ( ) offset = text. caretoffset # if we have selected text and the last event was a move to the # right, then speak the character to the left of where the text # caret is ( i. e. the selected character ). # eventstring, mods = self. utilities. lastkeyandmodifiers ( ...
[ 0.15532591938972473, -1.0172617435455322, 0.8792433142662048, -0.1543469876050949, 0.10403164476156235, -0.38538628816604614, 0.24225479364395142, -0.6239317655563354, 0.39309802651405334, -0.37625420093536377, 0.3406253457069397, 1.0395293235778809, -0.3643846809864044, 0.4688914716243744...
def next ( self, msg, sender ) : if msg. sender : sender = msg. sender batch _ size = msg. payload batch = [ ] rq = super ( ). get _ result _ q ( ) pull _ size = 0 if batch _ size > 0 : if rq. empty ( ) is false : i = 0 while rq. empty ( ) is false and i < batch _ size : try : pull _ size + = 1 val = rq. get _ nowait (...
[ -0.15111340582370758, 1.2364554405212402, 0.7814394235610962, 0.5323991179466248, -0.35152459144592285, -0.9032408595085144, -0.0587841235101223, -0.4884450435638428, 0.28638043999671936, -0.8922296762466431, -0.10267431288957596, 0.6133869886398315, -0.2657250761985779, 0.4831897020339966...
def create _ edge _ list ( vertex _ list ) : edge _ list = [ ] num = len ( vertex _ list ) connection _ matrix = [ [ false for y in range ( num ) ] for x in range ( num ) ] # todo : should only need to go through the first half of the vertices to # create a complete graph # for instance, you won't need edge ( a, b ) & ...
[ -0.46815550327301025, -0.5001587867736816, 0.5106796622276306, 0.7184461951255798, 0.2853389084339142, 0.08303141593933105, 0.10617518424987793, 0.7584688663482666, 0.6028717160224915, 1.2807499170303345, -0.771250307559967, -0.816097617149353, -1.0965135097503662, 0.2266397774219513, -1...
def register _ error ( self, code = 1, errmsg = none ) : if errmsg is not none : if self. errmsg is none : self. errmsg = errmsg elif errmsg not in self. errmsg : self. errmsg + = ", " + errmsg if code is not none : self. exit _ code = code or self. exit _ code
[ -1.011784315109253, 0.8540444374084473, 0.5564398765563965, -0.6039281487464905, 1.223339557647705, -0.6584625840187073, -1.31607186794281, 1.0846028327941895, 0.4949547350406647, 0.09684715420007706, -0.6592262983322144, 0.48415857553482056, -0.39193201065063477, 1.6488029956817627, 0.8...
def test _ ensure _ primary _ ip _ not _ exist ( self ) : onboarding _ kwargs = { " netdev _ hostname " : " device1 ", " netdev _ nb _ role _ slug " : plugin _ settings [ " default _ device _ role " ], " netdev _ nb _ role _ color " : plugin _ settings [ " default _ device _ role _ color " ], " netdev _ vendor " : " ci...
[ 0.00797136127948761, -0.025649096816778183, 0.5462349653244019, 0.8381146192550659, 0.5826205015182495, 0.5590955018997192, 0.620608925819397, 0.1375737190246582, 0.703548014163971, -1.2572157382965088, -0.5853878259658813, -0.7430068850517273, -0.5497812628746033, 0.6415395140647888, 0....
def make _ python _ identifier ( string, namespace = none, reserved _ words = none, convert ='drop ', handle ='force') : if namespace is none : namespace = dict ( ) if reserved _ words is none : reserved _ words = list ( ) # reserved the names of pysd functions and methods reserved _ words + = dir ( ) + fdir ( ) + edir...
[ 0.07164023816585541, -0.30921587347984314, 0.7758589386940002, -0.750118613243103, -1.514465570449829, -0.2895771265029907, -0.5268571376800537, -0.4825323522090912, 1.111495852470398, -0.17742732167243958, -0.7623520493507385, 0.6644240021705627, -0.18637698888778687, 0.13677147030830383,...
def retrievestock ( ) : db = sqlite3. connect ( db _ file ) c = db. cursor ( ) cmd = " select data from apis where api ='iex'" stocks = c. execute ( cmd ). fetchall ( ) print ( stocks ) stock _ list ='' if stocks : stock _ list = stocks [ 0 ] [ 0 ] return stock _ list
[ -0.8598805665969849, 0.05281796678900719, 0.4887869954109192, 0.07449642568826675, 1.5282334089279175, -0.18546544015407562, -0.8191885948181152, -0.34022441506385803, 0.3278534412384033, 0.24504996836185455, -0.08304910361766815, -0.29052457213401794, -0.7173252701759338, 0.40817332267761...
def delete _ joke ( joke _ id ) : joke = joke. query. filter _ by ( id = joke _ id, user = current _ user ). first _ or _ 404 ( ) db. session. delete ( joke ) db. session. commit ( ) current _ app. logger. info ( f'delete joke { joke }') return'', 204
[ -0.8150734901428223, 0.017717227339744568, 0.44750213623046875, 1.403232216835022, 0.3008473813533783, -1.1673574447631836, 0.1041746735572815, 0.7912200093269348, 0.0855381190776825, 0.1924668401479721, 0.04252329468727112, -0.2233380377292633, -0.32938048243522644, 1.2586246728897095, ...
def _ createstructure ( self ) : for i, x in enumerate ( self. main _ grps ) : if i = = 0 : self. mod _ dict [ x ] = " { } _ { } _ { } _ { } ". format ( self. side, self. name, x, self. instance _ num ) mc. group ( n = self. mod _ dict [ x ], empty = true, parent = self. modulegrp ) else : self. mod _ dict [ x ] = " { ...
[ -0.5963538289070129, -0.11713442206382751, 0.33836403489112854, -1.5780086517333984, -0.3718138039112091, 0.3862561583518982, 0.4923379123210907, -0.2130856215953827, -0.21185553073883057, -0.11202449351549149, -0.07821045070886612, -0.02054646611213684, -0.09232897311449051, 0.27081990242...
def appendattr ( self, attr _ type, value = none ) : valtype = self. _ translators [ attr _ type ] if valtype = = none : valtype ='data'# defaults to data return getattr ( self,'_ append _'+ valtype ) ( attr _ type, value )
[ -0.15116916596889496, 0.47185155749320984, 0.49797502160072327, -0.34269967675209045, -0.35636773705482483, -0.30515867471694946, -0.8262477517127991, -0.5256994366645813, 0.8150025010108948, -0.3028181791305542, 0.913367509841919, 0.0981343537569046, 0.6644750237464905, 0.6791858673095703...
def find ( self, searchpath, name ) : r = [ false, none ] for s in searchpath : r = self. _ recfind ( s, name ) if r [ 0 ] : break if not r [ 0 ] : return [ false, none ] elif r [ 0 ] : return [ true, plugin ( r [ 1 ], name ) ]
[ -0.9363018274307251, -1.0478723049163818, 0.46539899706840515, 0.18375027179718018, 0.07793447375297546, -1.0038776397705078, -0.393596351146698, -0.6410462856292725, -0.13201040029525757, 1.4130996465682983, -1.1375521421432495, 0.12257923930883408, -1.0482732057571411, 0.3282813429832458...
def handle _ clear _ button ( self, is _ add = false, is _ search = false ) : # if is _ add, clear the add movie input if is _ add : self. root. ids. title. text ='' self. root. ids. year. text ='' self. root. ids. category. text ='' # if is _ search, clear the search input elif is _ search : self. root. ids. title _ s...
[ -0.26404353976249695, 0.24355490505695343, 0.838546872138977, 0.6388499736785889, -0.040361203253269196, 0.9146960973739624, -0.4743460714817047, -0.666852593421936, 0.7145962715148926, 0.8963072896003723, 0.6357316970825195, 0.9222267866134644, -0.23959149420261383, 1.2146168947219849, ...
def add ( self, number ) : if len ( self. values ) = = 1 : # jesli dodawany jest pierwszy element to nie ma sensu kopcowac self. values. append ( number ) else : child = len ( self. values ) self. values. append ( number ) const = ( child + ( self. branches - 2 ) ) / / self. branches # ojciec ( adres ) wezła umiejszcza...
[ -0.32772669196128845, 0.484553724527359, 0.7256364226341248, 0.34813475608825684, -0.3321094214916229, 0.47331687808036804, 0.523148238658905, -0.9131322503089905, 0.10998095571994781, -1.0285720825195312, -0.9045054912567139, -0.18609412014484406, 0.03867034241557121, 0.9543357491493225, ...
def dbs _ to _ cancel _ migration _ on ( self ) - > optional [ sequence [ str ] ] : return pulumi. get ( self, " dbs _ to _ cancel _ migration _ on " )
[ 0.12223375588655472, 0.10625716298818588, 0.641331672668457, 0.5722157955169678, 0.3775303065776825, 1.075128436088562, -0.497530460357666, 0.6417346000671387, 0.7353618144989014, 1.2299374341964722, -1.7555681467056274, 0.3688172698020935, 0.056426387280225754, -0.4843270182609558, -1.0...
def test _ list _ integer _ enumeration _ 2 _ nistxml _ sv _ iv _ list _ integer _ enumeration _ 3 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - enumeration - 3. xsd ", instance = " nistdata / list / ...
[ -0.8583832383155823, -0.3479512333869934, 0.5571471452713013, 0.3462359309196472, -0.16507473587989807, 0.33483362197875977, -0.5264155268669128, 0.6487298011779785, 1.6423277854919434, 0.9547053575515747, -0.7753542065620422, -0.284694105386734, -0.3493889570236206, 0.2490038275718689, ...
def download _ remote _ samples ( namespace, workspace ) : res = firecloud _ api. get _ entities _ tsv ( namespace, workspace, " sample " ) with open ('remote _ samples. txt ','w') as outfile : outfile. write ( res. text ) return
[ 0.3988221287727356, -0.4302767515182495, 0.4389868378639221, -0.827522337436676, 0.2148207724094391, 0.7288860082626343, -0.6455277800559998, -0.34220966696739197, -0.2526712417602539, 0.10716123878955841, -0.8141400218009949, 0.5715876221656799, -0.08240935951471329, 0.23745931684970856, ...
def _ _ init _ _ ( self, name, anion _ filename, anion _ resname, cation _ filename, cation _ resname, topology _ filename, pressure, cation _ number, cation _ atoms, anion _ atoms, box _ dim = box _ dim, equil _ time = equil _ time, prod _ time = prod _ time, salt _ conc = ion _ conc, hill _ height = hill _ height, si...
[ 0.28522568941116333, -0.4005197584629059, 0.7480624914169312, 0.5498688220977783, 0.40898361802101135, 0.6928941011428833, 0.6549246907234192, 0.23811618983745575, -0.24856100976467133, 0.7211666107177734, -0.008226077072322369, -0.4858754575252533, 0.10513464361429214, -0.3824517726898193...
def testgftrlwithl1 _ l2 _ sparse ( self ) : for dtype in [ dtypes. half, dtypes. float32 ] : with self. cached _ session ( ) as sess : var0 = variables. variable ( [ [ 1. 0 ], [ 2. 0 ] ], dtype = dtype ) var1 = variables. variable ( [ [ 4. 0 ], [ 3. 0 ] ], dtype = dtype ) grads0 = ops. indexedslices ( constant _ op. c...
[ 0.6920674443244934, 0.2551153302192688, 0.6779077649116516, -0.42892178893089294, 0.519997775554657, 0.4471334218978882, -0.18839263916015625, -0.7946019172668457, -0.9026177525520325, -0.0902564749121666, -0.4318901002407074, 0.36039820313453674, 0.2647647261619568, 0.6946209669113159, ...
def preprocess _ sent ( vocab, sents ) : res = [ ] total, replaced = 0, 0 for sent in sents : new _ sent = [ ] for token in sent : if token [ 0 ] in vocab and vocab [ token [ 0 ] ] > = min _ freq : new _ sent. append ( token ) else : new _ sent. append ( ( replace _ word ( token [ 0 ] ), token [ 1 ] ) ) replaced + = 1 ...
[ 0.14853648841381073, -0.31249475479125977, 0.533578097820282, -0.6193575263023376, 0.1619352549314499, -1.8278145790100098, 0.16301026940345764, 0.2709822952747345, 0.4851488769054413, 0.8385090231895447, -0.2735072076320648, 0.1600528508424759, -0.1921333521604538, 0.7637814879417419, -...
def blstmconcatlayer ( input _ layer, n _ hidden, grad _ clip, nonlinearity ) : ingate = lasagne. layers. recurrent. gate ( w _ in = lasagne. init. uniform ( 0. 1 ), w _ hid = lasagne. init. uniform ( 0. 1 ), \ w _ cell = lasagne. init. uniform ( 0. 1 ), b = lasagne. init. uniform ( 0. 1 ) ) forgetgate = lasagne. layer...
[ 1.2022509574890137, 0.0742754191160202, 1.077701210975647, -0.18909402191638947, -0.8651105761528015, 0.4280998706817627, -0.45143643021583557, -0.30697983503341675, -0.11024019867181778, 0.4550584852695465, -0.39355456829071045, 0.11782202124595642, 0.08511818945407867, 1.0177985429763794...
def _ _ init _ _ ( self, handler, board, loop, thread _ id, pull _ images, sampling _ interval = 60 ) : self. _ loop = loop self. _ handler = handler self. _ sampling _ interval = sampling _ interval self. _ pull _ images = pull _ images self. _ client = httpclient. asynchttpclient ( ) self. _ thread _ id = thread _ id...
[ 0.32579293847084045, 0.15694475173950195, 0.5139784812927246, -0.14660373330116272, -0.1332005262374878, 0.26155397295951843, 0.15336129069328308, -0.07242602854967117, -0.5650519728660583, -0.5593051910400391, -0.7452038526535034, -0.42688727378845215, 0.161663219332695, 0.322072863578796...
def _ _ init _ _ ( self ) : super ( calculator, self ). _ _ init _ _ ( ) self. current _ input = " " self. previous _ number = none self. operation = operation. equals self. load _ ui ( ) self. connect _ buttons ( ) self. reset _ current = false self. update _ input ( )
[ -0.051611755043268204, 0.29332268238067627, 0.6295970678329468, 0.6103976964950562, -0.18591974675655365, -0.08398111164569855, 1.30095636844635, 0.14424404501914978, 0.32036536931991577, -0.10344070196151733, -0.6327508091926575, -1.0839024782180786, -0.2949393689632416, 0.689751088619232...
def assertfileheadlines ( filename, lines ) : _ _ tracebackhide _ _ = true if not lines : return orig _ len = len ( lines ) with path ( filename ). open ( ) as f : def skip _ none ( fline, line ) : if line is none : line = fline return ( fline, line ) flines, lines = zip ( * [ skip _ none ( fline, line ) for fline, lin...
[ 0.5768265724182129, -0.4143304228782654, 0.6697988510131836, 0.16218985617160797, 0.05365088954567909, 0.42209166288375854, -0.08149169385433197, 0.5810225009918213, 0.44167575240135193, -0.38631731271743774, -0.003007898572832346, -0.5730552673339844, -0.5542013049125671, 0.75914424657821...
def get _ description ( self, item, lang ) : descriptions = item. get ('descriptions') if lang in descriptions and'' in descriptions [ lang ] : return html _ escape ( descriptions [ lang ] ) else : return autodescribe ( item ['id'], lang )
[ 0.6115323901176453, 0.004647404886782169, 0.21215835213661194, 0.18114949762821198, 0.37988975644111633, -0.3484584391117096, -1.7372554540634155, -0.42702698707580566, -0.1849873811006546, 0.8137438893318176, -0.000519366527441889, 0.30511072278022766, 0.3142019808292389, -0.0705070719122...
def setcolor ( self, col ) : self. color = col
[ -0.12099259346723557, -0.09243643283843994, 0.41199153661727905, -0.18684448301792145, 0.9164386987686157, 0.8906410932540894, 0.1876652091741562, -0.011130161583423615, -1.0735255479812622, 0.2986446022987366, -0.707221508026123, 0.8291034698486328, 0.5887228846549988, 0.6959564089775085,...
def _ grow _ ones ( ll ) : ur = ( ll [ 0 ] - 1, ll [ 1 ] - 1 ) maxarea = _ area ( ll, ur ) xmax = n for iy in xrange ( ll [ 1 ], m ) : if data [ n * iy + ll [ 0 ] ] = = 0 : break # we'd like to improve this, see below max _ rect3 for ix in xrange ( ll [ 0 ], xmax ) : if data [ n * iy + ix ] = = 0 : xmax = ix ix - = 1 b...
[ -0.54583740234375, 1.031296730041504, 0.8330767750740051, 0.021379809826612473, -0.0708761215209961, -0.25835534930229187, 1.095593810081482, -0.01426857803016901, 1.341591238975525, -0.3046642541885376, 0.2047470062971115, -0.6046687960624695, -0.3850882053375244, 0.40461453795433044, -...
def _ _ init _ _ ( self, fun = none, args = none, identifier = none, tasktype : tasktypes = tasktypes. normal ) : if not identifier : self. identifier = fun. _ _ name _ _ + randomhex ( len = 5 ) else : self. identifier = identifier if not fun : if identifier! = " _ queueendsignal " or tasktype! = tasktypes. queue _ end...
[ -0.744240403175354, 0.3366807997226715, 0.6536766290664673, 0.5972949862480164, -0.24575786292552948, -0.049661796540021896, 0.2904863655567169, 0.23378267884254456, -0.22623413801193237, 0.21062715351581573, -0.7761864066123962, -0.1390194147825241, 0.4539188742637634, 0.9060668349266052,...
def visualize _ summary _ statistics ( self, quantiles = ( 0, 0. 75, 0. 9, 0. 99, 0. 999, 0. 9999, 1 ) ) : data _ quantiles = np. quantile ( self. concentrations, quantiles, axis = 0 ) for line, quant in zip ( data _ quantiles, quantiles ) : plt. plot ( line, label = f " { quant } " ) plt. legend ( ) plt. yscale ( " lo...
[ 1.0554330348968506, -0.05292700603604317, 0.6258482933044434, -0.5653091073036194, 0.047992683947086334, 0.37705445289611816, 0.33209842443466187, -0.8295602202415466, 0.18975044786930084, -0.3376435935497284, 0.6176177263259888, 0.5226713418960571, 1.2899283170700073, 0.7861554026603699, ...
def delete _ batch ( self, conn, del _ req, batch _ id ) : del _ req. transfer _ id = del _ req. migration. external _ id del _ req. save ( ) archive _ set = del _ req. migration. migrationarchive _ set. order _ by ('pk') # change the working directory to the external batch id conn. cwd ( " / " + del _ req. migration. ...
[ 0.45041120052337646, 0.3918529152870178, 0.9424222111701965, 0.33818280696868896, 0.8427486419677734, -0.3655814826488495, 0.24874460697174072, -0.09981895983219147, 0.166032075881958, -0.05138084664940834, 0.05424536019563675, 0.3314066529273987, -0.4437685012817383, 0.6839388608932495, ...
def split _ dataset ( dataset, test _ size = 0. 2, train _ size = 0. 7 ) : # train, test = train _ test _ split ( dataset, test _ size ) pass # return train, test
[ 0.000657739641610533, 0.24202221632003784, 0.3017028570175171, -0.08772237598896027, -0.4410877227783203, -0.10094189643859863, 0.36558693647384644, 0.5467644929885864, 0.5021482110023499, -0.3451721668243408, -0.07607423514127731, 0.1664976179599762, -0.758199155330658, -0.495625615119934...
def shuffle _ playlist ( self ) : shuffle ( self. selected _ playlist ) self. show _ playlist ( ) self. play _ playlist ( )
[ -0.22201168537139893, -0.3719666004180908, 0.17028287053108215, 0.5618760585784912, 0.6820714473724365, -0.18771803379058838, 1.9011569023132324, -0.580785870552063, 1.219781517982483, 0.057170525193214417, 0.08309794962406158, 0.8063687682151794, -0.654636025428772, 0.5045248866081238, ...
def _ check _ unique ( self, cr, uid, ids, context = none ) : for rec in self. browse ( cr, uid, ids, context = context ) : idss = self. search ( cr, uid, [ ('employee _ id ','= ', rec. employee _ id. id ), ('id ', '! = ', rec. id ) ] ) if idss : raise osv. except _ osv ( _ ('error'), _ ('this employee already have fue...
[ -0.5041496753692627, -0.11261001229286194, 0.7667638063430786, -0.5404948592185974, 0.7230442762374878, -0.4265981912612915, -0.33955880999565125, 0.7065061926841736, 0.07825913280248642, -0.019233234226703644, -0.010010449215769768, 0.10043559223413467, -0.39465436339378357, 0.62175434827...
def accept _ connections ( ) : while true : client, client _ address = server. accept ( ) print ( " % s : % s has connected. " % client _ address ) client. send ( bytes ( " connection established. ", " utf - 8 " ) ) time. sleep ( 0. 08 ) client. send ( bytes ( " type login < login > < password > to enter as existing us...
[ -0.24602054059505463, -0.3135265111923218, 0.6786816120147705, -0.6633583307266235, 0.13225498795509338, 0.214389830827713, 0.7650755643844604, -0.30976223945617676, -0.6642895340919495, 0.0950242131948471, -0.25869911909103394, 1.0977504253387451, -0.2797258496284485, 0.7896484136581421, ...
def search _ posts ( user _ id ) : i = 0 validinput = false keywords = input ( " enter 1 or more keywords to search for a post : " ) # cant search for nothing # validate user input while keywords in nothing or ord ( keywords [ 0 ] ) in invalid _ char _ array : print ( " you must enter something " ) keywords = input ( "...
[ 0.545272171497345, -0.08411457389593124, 0.821679949760437, 0.5139616131782532, -0.3081357479095459, 0.48833155632019043, 0.4127468764781952, -0.6823461651802063, -0.5269760489463806, -0.21123626828193665, 0.03809412941336632, -0.2891586720943451, -1.1192764043807983, 0.39683717489242554, ...
def map _ key ( self ) : return self. display ( " " " 地 信 \ n % s : 口 \ n % s : \ n % s : 出 口 \ n % s : 家 \ n % s : 金 \ n % s : \ n % s : 神 \ n % s : 食 " " " % ( " ", " ", " 出 ", " 我 ", " ", " ", " ", " 食 " ) )
[ 0.13656292855739594, -0.5378540754318237, 0.9468334913253784, -0.6341698169708252, -1.491429328918457, 0.6526577472686768, -1.0238637924194336, -0.03708914294838905, -0.15411263704299927, 1.058509111404419, 0.34014350175857544, 1.2916669845581055, -0.41806843876838684, -0.19641675055027008...
def test _ atomic _ any _ uri _ enumeration _ 2 _ nistxml _ sv _ iv _ atomic _ any _ uri _ enumeration _ 3 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - enumeration - 3. xsd ", instance = " nistdata...
[ -0.8527314066886902, -0.6273216009140015, 0.6292152404785156, 1.0272026062011719, -0.14622259140014648, 0.333422988653183, -0.18792586028575897, 0.24013985693454742, 0.6010398268699646, 0.5425309538841248, 0.3898148536682129, -0.06120767071843147, -0.13223539292812347, -0.3878088891506195,...
def test _ atomic _ id _ enumeration _ 2 _ nistxml _ sv _ iv _ atomic _ id _ enumeration _ 3 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - enumeration - 3. xsd ", instance = " nistdata / atomic / id / schem...
[ -0.24598127603530884, -0.8492211699485779, 0.45845791697502136, 0.23760886490345, -0.5322967171669006, 0.3975311815738678, -0.4040684700012207, -0.23300011456012726, 0.3912290930747986, 1.1612207889556885, -0.29431766271591187, 0.49067223072052, 0.34170588850975037, -0.33894386887550354, ...
def _ write _ memory _ snapshot ( self, log _ stream, snapshot _ name ) : if self. _ memory _ profiler and log _ stream : for line in self. _ memory _ profiler. snapshot ( snapshot _ name ) : log _ stream. write _ line ( line )
[ 0.3304024636745453, 0.2502323091030121, 0.5005716681480408, 0.4350818693637848, -0.5743467807769775, -1.2450082302093506, -0.5358015298843384, -0.5809482932090759, 0.5620655417442322, 0.1024114340543747, -0.3595789670944214, 0.2098984271287918, 0.5628852844238281, 0.6944347620010376, -0....
def write _ msp ( all _ preds _ in, peprec _ in, output _ filename ='ms2pip _ predictions ', write _ mode ='wt + ', unlog = true, return _ stringbuffer = false ) : def write ( msp _ output ) : if use _ tqdm & len ( spec _ ids ) > 100000 : spec _ ids _ iterator = tqdm ( spec _ ids ) else : spec _ ids _ iterator = spec _...
[ -0.4968660771846771, -1.2370100021362305, 0.8846789598464966, -0.5697893500328064, -0.3310232162475586, 0.09469106048345566, 0.13054963946342468, 0.7786864042282104, -0.5857120156288147, 0.4147055745124817, 0.17382892966270447, -0.03808039799332619, -0.006664528977125883, 0.193622916936874...
async def websocket ( url ) : client = perspectivetornadoclient ( ) await client. connect ( url ) return client
[ 0.14001363515853882, -0.004787358455359936, 0.22031980752944946, -1.0454957485198975, -0.34258410334587097, -1.1084606647491455, -0.779988706111908, -0.7776928544044495, -0.0017964676953852177, 0.04345034062862396, -0.47722625732421875, 0.7171279788017273, -0.3831762969493866, -1.500362992...
def _ groupby ( fromtable : arrable, groupon : str ) : res = defaultdict ( list ) groupon = groupon. strip ( ) for row in fromtable. get _ rows ( ) : res [ row [ groupon ] ]. append ( row ) return list ( [ arrable ( ). init _ from _ arrable ( fromtable. get _ col _ names ( ), grouparr ) for grouparr in res. values ( ) ...
[ -0.20640212297439575, -0.19857464730739594, 0.6728639006614685, 0.44906145334243774, -0.9396539330482483, -0.9286116361618042, -0.4247959852218628, 0.237808495759964, -0.9773913025856018, 0.6057605147361755, 0.39860570430755615, -0.10241388529539108, 0.31977325677871704, -0.011879766359925...
def play _ card ( self, num ) : return self. cards. pop ( num )
[ -0.5020701289176941, 0.2531408667564392, 0.6092666387557983, -0.2474426031112671, -0.04289925843477249, -0.6933394074440002, 0.21565715968608856, -0.23532812297344208, 0.38379278779029846, 0.27333226799964905, 0.13709613680839539, 0.2625475227832794, -0.8302639722824097, -1.949162483215332...
def hashkey ( username, realm, password ) : return stunmsg _ c. stun _ genkey ( username, realm, password )
[ -0.23245109617710114, 0.4912184476852417, 0.30180057883262634, 1.0149474143981934, -0.2777070105075836, -0.44007185101509094, 0.7629854679107666, 0.3402479290962219, -0.5706217288970947, 0.3776928782463074, -0.3947432041168213, 0.10603705793619156, -0.777235746383667, -0.8464761972427368, ...
def setup _ peer _ mfnets _ graph ( nnodes ) : # initialize empty graph graph = nx. digraph ( ) # add nodes ane edges for ii in range ( 1, nnodes + 1 ) : graph. add _ node ( ii ) for ii in range ( 1, nnodes ) : graph. add _ edge ( ii, nnodes ) return graph
[ -0.6093417406082153, 0.9616119861602783, 0.5288482904434204, -0.08580733090639114, -0.3791321814060211, -0.09041653573513031, 0.20516309142112732, 0.1463974416255951, 0.7751480937004089, 0.4994644820690155, -0.21264921128749847, -0.6331625580787659, -0.5209876894950867, 0.16532711684703827...
def async _ using _ zwave _ js ( lock : keymasterlock = none, entity _ id : str = none, ent _ reg : entityregistry = none ) - > bool : return zwave _ js _ supported and _ async _ using ( zwave _ js _ domain, lock, entity _ id, ent _ reg )
[ -0.35340893268585205, 0.6903956532478333, 0.3379097580909729, -0.004291394725441933, -0.43511831760406494, -1.010437250137329, -0.011102687567472458, -0.4837941527366638, 0.7110611796379089, 0.8424772024154663, 0.06358984112739563, 0.7850761413574219, -0.29909127950668335, 0.98758476972579...
def test _ data _ after ( self ) : code, reply = self. do _ cmd ( b " data ", flush = true ) self. assertnotequal ( code, 354, b " data command accepted before mail " ) self. do _ cmd ( b " mail from : < " + from + b " > " ) code, reply = self. do _ cmd ( b " data " ) self. assertnotequal ( code, 354, b " data command ...
[ 0.404356986284256, 0.7464960217475891, 0.4951789081096649, -0.5451481938362122, 0.2525557279586792, 1.4130847454071045, 0.5513119101524353, -0.2867400050163269, 0.39011380076408386, -1.2796505689620972, -0.6220248937606812, 1.0757592916488647, -0.6546136140823364, 0.19493505358695984, -0...
def _ shiftalienright ( self ) : self. _ steps = self. _ steps + 1 self. _ alienfire ( ) for i in self. _ aliens : if i is not none : for j in i : if j is not none : j. x = j. x + alien _ h _ walk
[ -0.4612347483634949, 0.33464351296424866, 0.6204943656921387, 0.8792552351951599, 0.33382323384284973, 0.3374100625514984, -0.38586297631263733, -0.16153322160243988, -0.4545065462589264, -0.19135591387748718, 0.16906079649925232, -0.7137094140052795, -0.3271937072277069, 1.318017244338989...
def dequeue ( self ) : return self. _ items. pop ( 0 )
[ 0.14241845905780792, -0.3399141728878021, 0.8457537293434143, -0.42919591069221497, 0.5228668451309204, -0.364036500453949, -0.3952045738697052, 0.10912474244832993, -0.7714762687683105, -0.28959357738494873, -0.3321946859359741, 0.06004106253385544, -0.6319077014923096, -0.289651185274124...