text
stringlengths
25
2.19k
embedding
listlengths
768
768
def version ( self ) - > optional [ str ] : return getattr ( self. plugin,'version ', getattr ( self. plugin,'_ _ version _ _ ', none ) )
[ 0.254477858543396, -1.9652174711227417, 0.33122435212135315, 0.20540854334831238, 0.7285089492797852, -0.30659881234169006, 0.2606111764907837, -0.2530260384082794, 0.7149096727371216, 0.532349705696106, -0.5951052904129028, 0.045762304216623306, 0.08927807211875916, -0.2182905077934265, ...
def createdailyrepeatedres ( self, confname, profid, occur _ num, minutes _ delta = 30, filename = " scripts / addremovereservation / addrepeatedres. xml ", meetmeperconf = " false ", phonenumber = " " ) : print " adding a repeated reservation - " + confname + " daily occurrences - " + str ( occur _ num ) self. loadxml...
[ -0.41371116042137146, 0.19704756140708923, 1.0326995849609375, 0.3896157443523407, 0.13697335124015808, 0.23005451261997223, 0.03221563249826431, 0.6036130785942078, 0.004056600388139486, -0.03955167159438133, -0.3023114800453186, -0.7174628973007202, -1.0489674806594849, 0.032927747815847...
def setup _ server ( cls ) : # mount the endpoint cherrypy. tree. mount ( converter ( ), " / converter ", temperature _ config )
[ 0.13091504573822021, 0.3117407262325287, 0.24538502097129822, -0.009762519970536232, 1.266435146331787, -0.3825417757034302, -0.32429155707359314, 0.4958963990211487, -0.2908672094345093, 0.6175714731216431, -0.15438126027584076, -0.23697687685489655, -0.3393580913543701, 1.169660687446594...
def local _ get _ links ( path ) : path = os. path. abspath ( path ) filenames = os. listdir ( path ) filenames = [ os. path. join ( path, x ) for x in filenames ] return filenames
[ -0.033259373158216476, -0.7714633345603943, 0.791347086429596, 0.10044834017753601, 0.11431397497653961, -0.327433317899704, 0.4235660135746002, 0.20388083159923553, 0.48883527517318726, -0.49740833044052124, 0.041720397770404816, 0.6619581580162048, 0.16059833765029907, 0.606450617313385,...
def _ get _ kvm _ process _ arguments ( pid, arg _ name ) : # the " cmdline " ( e. g. / proc / self / cmdline ) is a null - separated token list try : with open ( " / proc / % s / cmdline " % pid, " r " ) as cmdline _ file : cmdline = cmdline _ file. read ( ) except ioerror : # the process seems to have died meanwhile ...
[ 0.1189831793308258, -0.9558247923851013, 0.6121479272842407, 0.13978947699069977, 0.16179583966732025, -0.6577410697937012, -1.687000036239624, 0.2848222553730011, -0.7955825924873352, 0.5439022183418274, 0.17598222196102142, 0.5408795475959778, -0.44036751985549927, 0.6542788147926331, ...
def plot _ sub ( ap, x, y, xmin, xmax, ymin, ymax, color, lsize, marker, msize, tline ='' ) : ap. set _ autoscale _ on ( false ) ap. set _ xbound ( xmin, xmax ) ap. set _ xlim ( xmin = xmin, xmax = xmax, auto = false ) ap. set _ ylim ( ymin = ymin, ymax = ymax, auto = false ) plt. plot ( x, y, color = color, lw = lsize...
[ 0.9662813544273376, -0.1547698825597763, 0.7575634121894836, -0.732870876789093, -1.4774596691131592, 0.4093276858329773, -0.7323288917541504, 0.005039668641984463, 0.09449362009763718, -0.03199116885662079, -0.4031021296977997, 1.183995246887207, 0.8437896966934204, -0.35491520166397095, ...
def load _ query ( self, query ) : self. query = query
[ 0.011580060236155987, -0.37779858708381653, -0.014723077416419983, -0.5412538051605225, -0.61405348777771, 0.046320296823978424, -1.4955581426620483, -0.4209040403366089, 0.5313114523887634, -0.04785932973027229, 0.08879801630973816, 0.02187963016331196, -0.499176025390625, 0.3085683882236...
def dices _ pb _ outcome ( * args ) : add = 0 # carrega a soma dos dados jogados outcomes = dict ( ) # contem quantas x uma saida repetiu rolls = list ( ) rolls = [ ] outcomes = dict ( rolls ) for i in range ( 1000000 ) : for j in range ( len ( args ) ) : dice _ throw = randint ( 1, args [ j ] ) add + = dice _ throw if...
[ -0.26663738489151, 0.787071943283081, 0.997377336025238, 0.14960715174674988, -0.13086052238941193, 0.46294286847114563, 0.8278601765632629, 0.6705241799354553, -0.018203075975179672, 0.4214385151863098, -0.4016571640968323, 0.2539476454257965, -0.013160130009055138, 0.7876847386360168, ...
def df _ standardize ( df, numerical _ columns ) : means = { } stds = { } res = df. copy ( ) for col in numerical _ columns : mu = res [ col ]. mean ( ) sigma = res [ col ]. std ( ) means [ col ] = mu stds [ col ] = sigma res [ col ] = ( res [ col ] - mu ) / sigma return res, means, stds
[ 0.00853718537837267, 0.3636693060398102, 0.25249895453453064, -0.014854139648377895, 0.3177320659160614, -0.31665292382240295, 0.047601405531167984, 0.5146955847740173, -1.3030445575714111, 1.0196589231491089, -0.34741538763046265, 0.44996732473373413, 0.06198803707957268, -1.0362706184387...
def wtpforsubgroup ( thefilter ) : size = thefilter. sum ( ) sim = simulatedvalues [ thefilter ] totalweight = sim ['weight']. sum ( ) weight = sim ['weight'] * size / totalweight _ wtpcar = ( 60 * sim ['wtp car time'] * weight ). mean ( ) _ wtpcar _ left = ( 60 * left [ thefilter ] ['wtp car time'] * weight ). mean ( ...
[ -0.31842342019081116, 0.6046463251113892, 0.4824284315109253, -1.2193665504455566, -0.6108343005180359, -0.45771360397338867, -0.3728211224079132, -0.1441354602575302, -1.1181888580322266, 1.368749737739563, -0.47349804639816284, 0.06359891593456268, -0.7312725782394409, -0.016879793256521...
def look _ for _ targets ( free _ space, start, targets, logger = none ) : if len ( targets ) = = 0 : return none frontier = [ start ] parent _ dict = { start : start } dist _ so _ far = { start : 0 } best = start best _ dist = np. sum ( np. abs ( np. subtract ( targets, start ) ), axis = 1 ). min ( ) while len ( front...
[ -0.1012275367975235, -0.22583112120628357, 0.9609883427619934, -0.4936100244522095, -0.27185991406440735, -0.27349260449409485, -0.02889731526374817, -0.5804255604743958, 0.1780642867088318, 0.1755509376525879, -0.1459629088640213, -0.1643248349428177, 0.17099471390247345, 0.48544666171073...
def weights ( self ) : return [ layer. weights ( ) for layer in self. _ layers ]
[ -0.20157843828201294, -0.615410327911377, 0.3077789843082428, 0.7897536754608154, 1.1623108386993408, 0.11158023774623871, -0.028960471972823143, -0.09881459921598434, -0.3997513949871063, -0.34096962213516235, -0.8754288554191589, 0.05441407486796379, 0.12788178026676178, 1.18093526363372...
def get _ all _ friends ( host, collection ) : all _ friends = [ ] for p in collection : if p = = host : continue if is _ friend ( host, p ) : all _ friends. append ( p ) return all _ friends
[ 0.20596003532409668, -0.05070313438773155, 0.5213233828544617, 2.1844494342803955, 0.6543710231781006, 0.754757285118103, -1.7158845663070679, -0.12144652009010315, -1.3133525848388672, 0.44910797476768494, -0.6023637056350708, 0.9041253328323364, -1.2766640186309814, 0.1941266655921936, ...
def sharedprefix ( args ) : i = 0 while i < min ( map ( len, args ) ) : if len ( set ( map ( operator. itemgetter ( i ), args ) ) )! = 1 : break i + = 1 return args [ 0 ] [ : i ]
[ 0.19158442318439484, 0.975834846496582, 0.7418296337127686, 0.4708954691886902, 0.7005924582481384, -0.1493525505065918, 0.4913341999053955, -0.37654706835746765, 0.04673679545521736, 0.8349788784980774, 0.044352635741233826, 0.18658562004566193, -1.3677842617034912, 0.405619353055954, 0...
def testgetvaluesforquerywithunknowntaginquery ( self ) : securetagvalueapi ( self. user ). set ( { uuid4 ( ) : { u'username / tag': 12 } } ) rundataimporthandler ( self. client. url ) self. store. commit ( ) with login ( u'username ', uuid4 ( ), self. transact ) as session : deferred = self. facade. getvaluesforquery ...
[ -0.3460708558559418, 0.511420726776123, 0.34375104308128357, 0.03197889029979706, 0.5178112387657166, 0.5243774652481079, -0.7069253921508789, -0.5495212078094482, -0.46903106570243835, -0.9297472238540649, -0.4440867006778717, -0.596454381942749, 0.4866672158241272, 0.9323715567588806, ...
def _ start _ proxy _ and _ wait _ until _ its _ up ( self, is _ record : bool ) - > none : self. _ start _ mitmdump _ service ( ) was _ proxy _ up = self. wait _ until _ proxy _ is _ listening ( ) if was _ proxy _ up : self. logging _ module. debug ( f " proxy service started in { self. get _ script _ mode ( is _ reco...
[ -0.17189449071884155, -0.2127772867679596, 0.5589634776115417, -0.12973308563232422, -0.03535616770386696, -0.37664783000946045, -0.5899007320404053, 0.6742753982543945, -0.04428677633404732, 0.3078893721103668, 0.05936253070831299, 0.8593116402626038, 0.06939564645290375, -0.3637868762016...
def test _ power _ law _ converter _ missing _ power ( ) : with pytest. raises ( runtimeerror ) as excinfo : powerlawconverter ( power = none ) assert " must specify the power " in str ( excinfo. value )
[ 0.7782637476921082, -0.37822625041007996, 0.37346822023391724, 0.3544190227985382, 0.20948286354541779, 0.12359175086021423, -1.2689425945281982, 1.0183688402175903, -0.8792228698730469, -0.048794813454151154, -0.14290879666805267, -0.7009657621383667, -0.38984259963035583, 1.6952596902847...
def flatten ( d, parent _ key ='', sep ='_ _') : # http : / / stackoverflow. com / questions / 6027558 / flatten - nested - python - dictionaries - compressing - keys items = [ ] for k, v in d. items ( ) : new _ key = parent _ key + sep + k if parent _ key else k if isinstance ( v, collections. mutablemapping ) : items...
[ -0.646176815032959, 0.6154122948646545, 0.9139623045921326, 0.3092691898345947, -1.1492862701416016, -0.391853004693985, -0.23771966993808746, 0.10065068304538727, -0.14144428074359894, 0.13730068504810333, -0.2876168191432953, -0.9479267001152039, -0.06715387105941772, 0.3291005492210388,...
def _ format _ check ( * arg, arg _ type, ) : if arg _ type. upper ( ) = ='ip': if len ( arg )! = 1 : log. error ('ip checking accept only 1 ip address.') return false else : _ arg = arg [ 0 ] try : _ ip = _ arg. split ( r '.') if len ( _ ip ) = = 4 : pass else : return false if 0 < int ( _ ip [ 0 ] ) < 255 : pass else...
[ -0.8109151124954224, -0.5201711654663086, 1.0570545196533203, 0.33686113357543945, -0.5808312296867371, -0.08484367281198502, -0.24183832108974457, -0.11498072743415833, 0.15275751054286957, -0.3890002965927124, 1.2513842582702637, -0.753291130065918, -0.24418693780899048, 0.63189941644668...
def test _ change _ password ( old _ password, new _ password1, new _ password2, status _ code, api _ client, db ) : user = user. objects. create _ user ( email ='testemail @ gmail. com ', password ='admin1600 ', is _ active = true ) api _ client. force _ authenticate ( user ) url = reverse ('users - api : password - c...
[ -0.5073111653327942, 0.28122478723526, 0.5413696765899658, 0.38875696063041687, 0.8001768589019775, 0.2713485062122345, -0.26485559344291687, 0.5277814269065857, -0.22375613451004028, 0.7978813052177429, -1.283828854560852, 0.6601151823997498, -0.1587953120470047, -0.2996620833873749, -0...
def _ parse _ action ( self, user _ args, section, action ) : # command = texts, to, match : param dict _ commands = self. yaml _ obj [ section ] [ action ] str _ param = none found = false cmd = none for str _ command in dict _ commands : sign _ index = str _ command. index ('=') cmd = str _ command [ 0 : sign _ index...
[ 0.24332083761692047, -0.9497023820877075, 0.4227307438850403, 0.2605978548526764, 0.4235377609729767, -0.6220693588256836, 0.5511147379875183, -0.4513133764266968, -0.7861785292625427, 0.4722680449485779, 0.3994147479534149, 0.2714504301548004, 0.23669122159481049, 1.0317132472991943, -0...
def _ decode _ base64 ( data ) : missing _ padding = len ( data ) % 4 if missing _ padding! = 0 : data + ='='* ( 4 - missing _ padding ) return base64. b64decode ( data )
[ -0.08662229776382446, 0.3324565589427948, 0.3228568434715271, -0.09969160705804825, 0.5820866823196411, -0.28508955240249634, -0.6801692247390747, -0.4228903651237488, 0.055692389607429504, -0.20286737382411957, 0.3502768278121948, -0.5885136723518372, -0.4867466986179352, 0.46858590841293...
def search ( request ) : queryset _ list = event. objects. order _ by ('- timestamp') # keywords if'query'in request. get : query = request. get ['query'] if query : queryset _ list = queryset _ list. filter ( name _ _ icontains = query ) # get the id of the filter selected in search # city if'city'in request. get : ci...
[ 0.010635793209075928, -0.019260112196207047, 0.7681592702865601, -0.35167357325553894, -0.3691794276237488, -0.33017584681510925, -0.612155020236969, 0.7658964991569519, 0.3645648956298828, 0.6506713628768921, 0.6212159395217896, -0.21050967276096344, 0.48666730523109436, 0.630753278732299...
def unpacking _ packet ( self ) : while true : try : data, client _ address, receive _ time = self. receiving _ queue. get ( ) self. receiving _ queue. task _ done ( ) except baseexception, e : logging. warning ( " exception : % s " % e ) continue else : # 的, 18 = 6 ( : number ) + 3 ( unsigned int ) * 4 ( 1 unsigned in...
[ -0.5420514345169067, 0.5300524234771729, 0.9820266962051392, -0.7003554105758667, 0.030640894547104836, -0.22686819732189178, 0.5134304165840149, -0.13554440438747406, -0.09485883265733719, 0.9530969262123108, -1.1219736337661743, -0.6449703574180603, -0.2862020432949066, -0.20118594169616...
def test _ zope _ root _ cookie _ login ( self ) : # install the genericsetup profile that performs the actual switch pa _ testing. applyprofile ( self. portal, " products. plonepas : root - cookie " ) transaction. commit ( ) # make the cookie plugin the default auth challenge self. assertin ( " credentials _ cookie _ ...
[ -0.12775036692619324, -0.9500752687454224, 0.43298327922821045, 0.28345268964767456, 0.3197448253631592, 0.036026421934366226, 1.1561821699142456, -0.14776155352592468, 0.9813789129257202, 0.3431616723537445, -0.04198823124170303, 0.5453187227249146, -0.043382663279771805, -1.0005398988723...
async def order _ cat _ created ( self, category _ channel, descending = false ) : sorted _ list = sorted ( category _ channel. channels, key = lambda channel : channel. created _ at, reverse = descending ) for i in range ( len ( sorted _ list ) ) : channel = sorted _ list [ i ] if channel. position = = i : continue aw...
[ 0.023557767271995544, 0.029344821348786354, 0.6336800456047058, -0.40700626373291016, 1.635789155960083, -0.3784475326538086, -0.03144210949540138, -1.2421107292175293, -1.3356592655181885, -0.5970705151557922, 0.1517699956893921, 0.05021144077181816, 0.5827540755271912, 0.79697585105896, ...
def fill _ in _ params ( self ) : params ['dc'] = self. d _ city params ['ac'] = self. a _ city params ['am'] = self. a _ date. strftime ( " % y - % m " ) params ['ad'] = self. a _ date. strftime ( " % d " ) if self. r _ date : params ['tt'] ='rt'params ['rm'] = self. r _ date. strftime ( " % y - % m " ) params ['rd'] ...
[ -0.6461603045463562, -0.1886933445930481, 0.57994145154953, -1.3448460102081299, -0.19042758643627167, 0.9290429353713989, -0.45134109258651733, -0.17480306327342987, -0.45216676592826843, 0.6168522238731384, 0.37020137906074524, 0.5286210775375366, 0.5770352482795715, 1.8684041500091553, ...
def save _ to _ db ( self ) : db. session. add ( self ) db. session. commit ( )
[ -0.7469233870506287, -0.06933892518281937, 0.7501048445701599, -0.15323153138160706, 1.457059621810913, 0.7707531452178955, 0.1349768191576004, 0.03303249925374985, -0.45505744218826294, 0.7019601464271545, -1.2797951698303223, -0.648155689239502, -0.4641384482383728, 0.38002249598503113, ...
def _ tangent _ distance _ m ( point, line _ point _ 1, line _ point _ 2 ) : # https : / / en. wikipedia. org / wiki / distance _ from _ a _ point _ to _ a _ line y _ 0, x _ 0 = point y _ 1, x _ 1 = line _ point _ 1 y _ 2, x _ 2 = line _ point _ 2 denominator = math. sqrt ( ( y _ 2 - y _ 1 ) * * 2 + ( x _ 2 - x _ 1 ) *...
[ 0.7834958434104919, -1.1055439710617065, 0.6797741055488586, -0.3514811098575592, -0.5162181258201599, 0.3511990010738373, -0.8794130086898804, -0.46005773544311523, -0.4639262557029724, 0.32565775513648987, 0.3025953769683838, -0.33835211396217346, 0.18816690146923065, -0.7382234930992126...
def init ( args ) : if not path. exists ( args. target ) : makedirs ( args. target ) chdir ( args. target ) cwd = getcwd ( ) if path. exists ( t ) : shutil. rmtree ( t ) shutil. copytree ( templates, t ) print " created { } ". format ( path. join ( cwd, t ) ) if path. exists ( a ) : shutil. rmtree ( a ) shutil. copytre...
[ -0.01074348296970129, 0.19018734991550446, 0.7344688177108765, -0.28446221351623535, -0.009160107001662254, 1.0833107233047485, 1.3454620838165283, -0.10208529978990555, -0.3683916926383972, -0.20975421369075775, -0.07563740015029907, -0.04990081116557121, 0.22377559542655945, 0.5518474578...
async def test _ discovery _ update _ unchanged _ light ( hass : homeassistant, mqtt _ mock : mqttmockhaclient, caplog : pytest. logcapturefixture, setup _ tasmota, ) - > none : config = copy. deepcopy ( default _ config ) config [ " rl " ] [ 0 ] = 2 config [ " lt _ st " ] = 1 # 1 channel light ( dimmer ) with patch ( ...
[ 0.6803057789802551, -0.5504003763198853, 0.3386879861354828, 0.4378596544265747, -0.04811607301235199, 0.4176313579082489, 0.09011263400316238, 0.055478792637586594, 0.33299338817596436, -0.5207218527793884, -0.5009466409683228, -0.48143166303634644, 0.6222990155220032, 0.7916334867477417,...
def teardown ( self ) : pass
[ 0.6825093030929565, -1.3082084655761719, 0.14743395149707794, 0.022344447672367096, 0.7737679481506348, 1.1928915977478027, 2.086796522140503, 0.20998552441596985, 0.4032772481441498, -1.0082353353500366, -0.17758291959762573, 0.37840011715888977, -1.2112221717834473, 0.07531315088272095, ...
def _ _ init _ _ ( self, text : str ) : # gui constructor super ( ). _ _ init _ _ ( ) # window title self. setwindowtitle ('data viewer') # spread - sheet view of data self. spread _ sheet = sheetview ( self, 5, 1 ) self. spread _ sheet. set _ text ( text ) # " detail " view of the selected cell. # useful when the cell...
[ 0.6578862071037292, 0.34921541810035706, 0.6569663286209106, 0.26819485425949097, -1.2300843000411987, 0.05795871838927269, 0.47670063376426697, 0.9206078052520752, 0.11565690487623215, -0.9462140798568726, -0.43947654962539673, 0.012321094051003456, 0.30275875329971313, 1.1835448741912842...
async def raise _ cover ( self, device _ id : str ) : await self. _ send _ zone _ create _ request ( device _ id, " raise " ) # if set _ value is called, we get an optimistic callback right # away with the value, if we use raise we have to set it # as one won't come unless stop is called or something goes wrong. self. ...
[ -0.49182310700416565, 0.5515967011451721, 0.41396570205688477, 0.7721157073974609, 0.13366419076919556, 0.023583922535181046, 0.40767574310302734, -0.3034168779850006, 0.6383576393127441, 0.7399653196334839, 0.0750085711479187, 0.02805843949317932, -0.12318244576454163, 0.8659102916717529,...
def cpu _ credits ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " cpu _ credits " )
[ 0.7979467511177063, 0.8155211806297302, 0.5397751331329346, 0.21007117629051208, 0.14811599254608154, 1.498490810394287, 0.09660720825195312, 0.5503858327865601, 0.25862643122673035, 0.2523980140686035, -0.09413015842437744, 0.9135695695877075, -1.0621178150177002, -1.1533257961273193, -...
def put _ back ( self ) : bank. place _ card ( self )
[ 0.3519839644432068, 0.06700838357210159, 0.40833765268325806, -0.9692391157150269, 1.2131080627441406, 0.3791694939136505, 1.1689293384552002, 0.9084849953651428, -0.5590154528617859, 0.5066912770271301, 0.08560134470462799, 0.25196290016174316, -1.2559773921966553, -0.8749052882194519, ...
def get _ dom _ elem ( ) : return dm. domelem. query. order _ by ( dm. domelem. bs _ name. asc ( ) )
[ -0.08994036912918091, 0.5594455599784851, 0.516798198223114, 0.8977305889129639, 0.058648038655519485, 0.28347957134246826, -0.1506686955690384, -0.7245019674301147, -0.07448314875364304, -0.6830394268035889, 0.4823184907436371, 1.0199052095413208, 0.6507835388183594, -0.4766499400138855, ...
def evaluation ( data _ iter ) : model. eval ( ) with torch. no _ grad ( ) : eval _ total _ loss = 0 encoder _ final = none for batch _ count, batch _ data in enumerate ( data _ iter, 1 ) : # text = batch _ data. text. to ( device ) # target = batch _ data. target. to ( device ) if opt. data _ type = = " ptb " : text, ...
[ -0.29410839080810547, -0.41526558995246887, 0.593239426612854, -0.1183219850063324, -0.32774046063423157, 0.4249114990234375, 0.4103004038333893, 0.06612037122249603, -0.3271687626838684, 0.8473237752914429, 0.18327444791793823, 0.3563300371170044, -0.09780648350715637, 0.7468451261520386,...
def on _ demand _ target _ capacity ( self ) - > optional [ pulumi. input [ int ] ] : return pulumi. get ( self, " on _ demand _ target _ capacity " )
[ -0.3327539563179016, -0.3841160833835602, 0.6264021396636963, 0.28712978959083557, 0.5170642733573914, 0.3354603946208954, 0.41042518615722656, -0.4309547543525696, 0.18868127465248108, -0.12529213726520538, 0.78757244348526, 0.9842653870582581, 0.48727235198020935, -0.9005716443061829, ...
def test _ complex ( self ) : data = {'nested': {'value':'here ','integer': 5, },'array': [ 6, {'surprise':'value'} ] } assert { * keys ( data ) } = = { ('nested ', ), ('nested ','value'), ('nested ','integer'), ('array ', ), ('array ','0'), ('array ','1'), ('array ','1 ','surprise'), }
[ -0.5036781430244446, -0.4329224228858948, 0.774839460849762, -0.2963279187679291, 0.30310720205307007, -0.010625305585563183, 0.32953324913978577, -0.05612704157829285, 0.1736299842596054, -0.8855792880058289, -1.3943135738372803, -0.5078171491622925, 0.25506749749183655, -0.18732021749019...
def testjoinresult ( self ) : def child ( i ) : return i ch1 = tasklet. new ( child ) ( 1 ) ch2 = tasklet. new ( child ) ( 2 ) self. assertequals ( 1, tasklet. join ( ch1 ) ) self. assertequals ( 2, tasklet. join ( ch2 ) )
[ -0.4692862629890442, -0.14170745015144348, 0.4142545759677887, 0.5170813798904419, -0.05904514715075493, 0.4261378347873688, 0.5790904760360718, -0.6077637672424316, -0.957816481590271, -0.9882093667984009, -1.4268947839736938, -1.2230026721954346, -0.680726945400238, -0.38297078013420105,...
def _ _ init _ _ ( self, maven _ pom _ downloader, mavenlib ) : self. _ maven _ pom _ downloader = maven _ pom _ downloader self. _ properties = { " project. version " : mavenlib. version } self. _ dependencies = [ ] self. _ exclusions = [ ] self. _ lib _ base _ url = { } parents = [ mavenlib ] self. _ all _ poms = [ ]...
[ 0.453167587518692, -0.5899759531021118, 0.6088685989379883, 0.38887929916381836, -0.5643340349197388, -0.20527510344982147, -0.6123363375663757, 0.8929071426391602, 0.16432426869869232, -0.3694670498371124, -0.4144634008407593, -0.9227543473243713, -0.307471364736557, 0.8308003544807434, ...
def get _ subfield ( jline, key, entity ) : keymap = { " 100 " : " persons ", " 700 " : " persons ", " 500 " : " persons ", " 711 " : " events ", " 110 " : " swb ", " 710 " : " swb ", " 551 " : " geo ", " 689 " : " topics ", " 550 " : " topics ", " 551 " : " geo ", " 655 " : " topics ", " 830 " : " resources " } entity...
[ -0.39439499378204346, -0.6069039106369019, 0.6610400676727295, -0.9717116355895996, -0.9020131230354309, -0.25545868277549744, 0.09802015870809555, -0.08742493391036987, -0.5182475447654724, -0.004236861597746611, -0.07357601821422577, -0.03718436136841774, 0.5463858842849731, 0.4823525249...
def post ( self ) : json _ data = request. get _ json ( ) data = { } errors = [ ] for device _ arg in [ " device _ a ", " device _ b " ] : if device _ arg in json _ data : try : self. validate _ hostname ( json _ data [ device _ arg ] ) except valueerror as e : errors. append ( " bad parameter { } : { } ". format ( dev...
[ -0.5203709006309509, 0.47742271423339844, 1.0121880769729614, 0.8139934539794922, 0.8070070147514343, -0.4739161729812622, 0.34731388092041016, -0.0898105651140213, -0.19403709471225739, -0.3107960820198059, 0.6244109869003296, -0.10854287445545197, -0.4247850179672241, 0.5648350715637207,...
def show _ list ( self, order = none, since = none ) : args = { } if order is not none : args ['order'] = order if since is not none : args ['since'] = since params = urllib. urlencode ( args ) url = self. build. url ( " / shows / list ", params ) return self. build. data ( url )
[ -0.9701891541481018, 0.943659245967865, 0.47276732325553894, 0.23729033768177032, -0.11153347790241241, -0.5578800439834595, -0.878085196018219, 0.5047233700752258, 0.04831846058368683, -0.34745997190475464, -0.07341738045215607, 1.177706241607666, -0.2982509732246399, 0.35211896896362305,...
def target _ resource _ id ( self ) - > pulumi. input [ str ] : return pulumi. get ( self, " target _ resource _ id " )
[ 0.4901992380619049, -0.4379039704799652, 0.1956198662519455, -0.13796167075634003, 0.5650086402893066, 1.3545349836349487, 0.24637475609779358, 0.6963893175125122, 1.1903941631317139, 0.3685663342475891, 0.7775205373764038, 1.3345435857772827, 0.44430848956108093, -1.097164273262024, -0....
def read _ run _ characteristics _ template ( template _ filename = none, template _ file = none ) : # check that both template file and filename are not none if template _ file is none and template _ filename is none : raise valueerror ( " template _ file and template _ filename cannot both be none " ) # determine if ...
[ 0.1305718868970871, -0.8601530194282532, 1.029409408569336, -0.058265529572963715, -0.9572556614875793, -0.22215856611728668, 0.7978581190109253, 1.3254119157791138, -1.6568373441696167, 0.5267975330352783, -0.954634964466095, 0.2839709520339966, -0.28844377398490906, 0.07030761986970901, ...
def duration _ in _ mins ( datum, city ) : if city = = " nyc " : duration = int ( datum ['tripduration'] ) duration / = 60 elif city = = " chicago " : duration = int ( datum ['tripduration'] ) duration / = 60 else : duration = int ( datum ['duration ( ms )'] ) duration / = 60000 # your code here print ( city, round ( d...
[ -0.12091021239757538, -0.4261631369590759, 0.3753814697265625, -0.9663622975349426, -0.5227343440055847, -0.0804385244846344, -0.46675872802734375, 0.336934357881546, 0.6777055859565735, 0.7002758979797363, -0.3084423840045929, 0.30006515979766846, 0.6598764061927795, -0.061593908816576004...
def log ( text, msgtype = " debug " ) : logger = getattr ( lg ( ), msgtype ) logger ( " subsystem / broker : % s ", text )
[ 0.6216667890548706, 0.38608139753341675, 0.3868221342563629, -0.02905355952680111, -0.4725264012813568, 0.16443784534931183, -0.5786811113357544, -0.3471105396747589, -0.3297625482082367, -0.44805869460105896, -0.3729724586009979, 0.7500366568565369, -1.1472930908203125, 1.590200662612915,...
def maybe _ download ( filename ) : if not os. path. exists ( filename ) : url ='http : / / nlp. stanford. edu / data /'filename, _ = urlretrieve ( url + filename, filename ) zip _ ref = zipfile. zipfile ( os. path,'r') zip _ ref. extractall ( os. path ) zip _ ref. close ( ) return filename
[ 0.22340887784957886, -0.4522291123867035, 0.7544126510620117, -0.7160270810127258, -0.08384200185537338, -0.13733038306236267, -0.2735658884048462, -0.2506393790245056, 0.29236599802970886, -0.016624920070171356, 0.5374053120613098, -0.5330083966255188, -0.17175137996673584, -0.02829885482...
def user _ extractor ( user _ data ) : return user _ data [ 0 ]
[ -0.4107396900653839, 0.09926443547010422, 0.2375970482826233, 0.21962276101112366, -0.4909003674983978, 0.06969226896762848, -0.07938560843467712, -0.3773890733718872, 0.03227175772190094, -0.49193328619003296, -0.11263346672058105, 0.05667882412672043, -0.08757560700178146, -1.13509845733...
def host _ id ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " host _ id " )
[ 1.3951207399368286, 0.4895753562450409, 0.3710741102695465, 1.0723893642425537, 0.8465602993965149, 1.7067698240280151, -0.16254304349422455, 0.5839455723762512, 0.8246785402297974, -0.27657079696655273, 0.34020745754241943, 1.144235610961914, -0.5231960415840149, -0.829445481300354, -0....
def write _ to _ definition _ file ( self, definition _ file = none, warning = true ) : # type : ( definitionfile, bool ) - > externaldefinition if not definition _ file : definition _ file = self. get _ definition _ file ( ) if not self. group : self. group = " pyrevitmep " definition _ group = definition _ file. grou...
[ -0.1224057599902153, -0.29848775267601013, 0.8161659240722656, 0.23427878320217133, 1.0127278566360474, 0.09949957579374313, 0.024144932627677917, 0.005907493177801371, -0.2190178781747818, 0.5284163355827332, -0.04518919065594673, 0.06817430257797241, -0.6877793073654175, 0.98080337047576...
def show _ notes ( self ) : returnlist = [ ] for n in self. object _ dict : if'p'in self. object _ dict [ n ] : coords = self. object _ dict [ n ] ['p'] returnlist. append ( str ( n ) +'='+ str ( coords [ 0 ] ) +'/'+ str ( coords [ 1 ] ) +'/'+ str ( coords [ 2 ] ) +'/'+ str ( coords [ 3 ] ) ) return'\ n '. join ( retur...
[ -0.04733278602361679, -1.0296300649642944, 0.8146713376045227, -1.427083969116211, -0.2182379513978958, 0.7902717590332031, -0.14673089981079102, -0.23399215936660767, -0.27221405506134033, 0.9748297929763794, 0.5077491402626038, 0.10760467499494553, 0.016431065276265144, -0.14816151559352...
def get _ drive _ fault _ one ( self ) : return self. _ get _ drive _ fault ( self. command _ get _ drive _ a _ fault )
[ -0.10452288389205933, -0.2908594608306885, 0.4029805660247803, 0.8962434530258179, 1.4187555313110352, -0.919405460357666, 0.8274674415588379, -0.6923655271530151, 0.07467322796583176, -1.5518319606781006, 0.4888192415237427, 0.4217153489589691, -1.4877179861068726, 0.47904810309410095, ...
def _ _ nonzero _ _ ( self ) : raise cpoexception ( " cpo expression can not be used as boolean. " )
[ 0.8624501824378967, -0.5911287069320679, 0.5326453447341919, 1.3482191562652588, -0.5901353359222412, 0.30645981431007385, 0.5318573117256165, 1.6578383445739746, -0.8995236754417419, 0.9107587337493896, -0.5004500150680542, -0.22476333379745483, -0.4429342746734619, -0.003198482096195221,...
def push ( self, i ) : if self. n = = self. capacity : self. _ resize ( self. capacity * 2 ) self. resizing _ array [ self. n ] = i self. n + = 1
[ -1.217881679534912, 1.2421021461486816, 0.6075134873390198, 0.37102213501930237, -0.15277984738349915, -0.04061751812696457, 0.899239182472229, -0.9431177377700806, -0.27203163504600525, 0.09111075848340988, -0.842540979385376, -0.3043486475944519, -0.6454256772994995, 0.08437877148389816,...
def _ _ setitem _ _ ( self, subscript, value ) : self. setitem ( subscript, value )
[ -0.7394320368766785, -0.5946435332298279, 0.3639431595802307, 0.0037495431024581194, -0.45039287209510803, -0.1506582647562027, -0.808430552482605, -1.0102694034576416, 0.08906177431344986, -0.2406245917081833, -1.0596718788146973, 0.8758986592292786, 0.6042604446411133, -0.542408883571624...
def _ instruction _ getter ( self, name, env _ replace ) : if name! ='label'and name! ='env': raise valueerror ( " unsupported instruction'% s'", name ) instructions = { } envs = self. parent _ env. copy ( ) for instruction _ desc in self. structure : this _ instruction = instruction _ desc ['instruction'] if this _ in...
[ -0.9061739444732666, -0.48604798316955566, 0.6374850869178772, -0.5819620490074158, -0.7000613212585449, -0.661583662033081, 0.14518097043037415, 0.27537617087364197, -0.4206671118736267, 0.0907500684261322, 0.44355085492134094, -0.014017454348504543, 0.06489811092615128, 1.017090082168579...
def datavis2 ( ) : # generate data from csv file list _ of _ rows = read _ data ( filename = " births. csv " ) month = [ int ( x [ 0 ] ) for x in list _ of _ rows ] day = [ int ( x [ 1 ] ) for x in list _ of _ rows ] intensity = [ int ( x [ 2 ] ) for x in list _ of _ rows ] m = np. zeros ( ( max ( month ) + 1, max ( da...
[ 0.05131356045603752, 0.9440768361091614, 0.6988673210144043, 0.12269700318574905, -0.6629341840744019, 0.9625048041343689, 0.7597982287406921, 0.7585951685905457, -0.3127408027648926, -0.61867356300354, 0.574659526348114, 0.5194547176361084, 0.6574007868766785, 0.6265544295310974, 0.2833...
def data ( self ) : data = { } data ['name'] = self. name data ['party'] = self. party data ['constituency'] = self. constituency data ['forname'] = self. first _ name data ['surname'] = self. last _ name data ['member _ id'] = self. member _ id data ['person _ id'] = self. person _ id data ['categories'] = [ ] for cat...
[ -0.3859497606754303, -0.9600931406021118, 0.5964801907539368, -1.5614041090011597, -0.7105489373207092, 0.9053071737289429, -1.146070122718811, 0.4860440790653229, -0.4389905333518982, -0.460202693939209, -1.108053207397461, -0.023005293682217598, 0.20276325941085815, 0.6744039058685303, ...
def test _ drag ( self ) : backend = dragbackend ( gate _ name = " xp " ) beta = parameter ( " β " ) qubit = 1 test _ tol = 0. 02 chan = parameter ( " ch0 " ) with pulse. build ( backend = backend, name = " xp " ) as x _ plus : pulse. play ( pulse. drag ( duration = 160, amp = 0. 208519, sigma = 40, beta = beta ), puls...
[ -0.07155806571245193, 0.5299307107925415, 0.7969375252723694, -0.3826736807823181, 0.16670574247837067, 0.6828208565711975, -0.11070163547992706, -0.16326797008514404, -0.24020697176456451, -0.6307533383369446, -0.6206607222557068, 0.07675258070230484, -0.500065803527832, -0.12821489572525...
def make _ file _ name _ v4 ( self, final _ sweep, starttime, order _ 5 _ damping, order _ 6 _ damping ) : outstring = output _ prefix \ + " ta0 " + str ( self. target _ area ) \ + " _ i0 " + str ( self. current _ sweep ) \ + " _ f0 " + str ( final _ sweep ) \ + convergence _ name \ + " _ v5d0 " + str ( order _ 5 _ dam...
[ 0.192408487200737, -1.3907681703567505, 0.5646345615386963, -0.8523819446563721, -0.4177922308444977, -0.15487420558929443, 0.004862011410295963, -0.16773609817028046, -0.5221772193908691, 0.24351778626441956, 0.38164022564888, -0.08349538594484329, 0.8367451429367065, 0.04478837922215462,...
def callback ( self ) : if'code'not in request. args : return none, none, none oauth _ session = self. service. get _ auth _ session ( data = {'code': request. args ['code'],'grant _ type':'authorization _ code ','redirect _ uri': self. get _ callback _ url ( ) } ) me = oauth _ session. get ('me? fields = name, id, ema...
[ -1.0571904182434082, 0.22399982810020447, 0.7931983470916748, 0.4778910279273987, -0.06563171744346619, -0.5654436349868774, -0.11673164367675781, -0.7830854058265686, 0.6698647737503052, 0.3872554898262024, -0.3155345320701599, -0.2743150293827057, -0.08806443214416504, -0.000306426431052...
def forward ( self, feat _ inputs : torch. tensor, emb _ inputs : torch. tensor ) - > torch. tensor : # name tensors for flatten feat _ inputs. names = ('b ','n ','e ', ) emb _ inputs. names = ('b ','n ','e ', ) # reshape inputs of dense layer # inputs : feat _ inputs, shape = ( b, n, e ) # output : deep _ inputs, shap...
[ -0.05442072078585625, -0.2405281811952591, 0.8448145389556885, -0.020497793331742287, 0.19620826840400696, -0.19937458634376526, 1.2071300745010376, 0.37441134452819824, -0.8996967673301697, -0.2465512454509735, -0.631956934928894, 0.7122066020965576, 0.6250794529914856, 0.2304733395576477...
def step _ alphaf _ traj ( q0, v0, qf, vf, t0, tf, qvp, tvp, alphaf ) : from numpy import matrix, array, linspace m = matrix ( [ [ 1, t0, t0 * * 2, t0 * * 3, t0 * * 4, t0 * * 5 ], [ 0, 1, 2 * t0, 3 * t0 * * 2, 4 * t0 * * 3, 5 * t0 * * 4 ], [ 1, tvp, tvp * * 2, tvp * * 3, tvp * * 4, tvp * * 5 ], [ 1, tf, tf * * 2, tf * ...
[ 0.6769243478775024, -0.13624364137649536, 0.9716959595680237, -1.1273448467254639, -0.5550171136856079, 0.011705271899700165, 0.6231194138526917, 0.09888595342636108, -0.8970896005630493, 1.0118521451950073, -0.6465610265731812, -0.47280025482177734, -0.020004522055387497, 0.26659220457077...
def raw _ team _ statistics ( ) : teams = pd. read _ sql ( " select * from team ", getdata. conn ) print ('columns : ', len ( teams. columns ) ) print ('rows with nans : ', len ( teams ) - len ( teams. dropna ( ) ) ) print ( teams. describe ( ) ) print ( teams. dtypes ) print ('\ n \ n') for col in teams. columns : pri...
[ 0.4029870629310608, 1.010721206665039, 0.7028539180755615, -0.6934768557548523, -0.09920568019151688, 0.035417184233665466, 0.16008657217025757, -0.6870887279510498, -0.7200400233268738, -0.6110826134681702, -0.15926869213581085, 0.8211171627044678, 1.7238681316375732, -0.5944081544876099,...
def type _ mu _ to _ text ( choice ) : string ='for each traveler, mu is'if choice = ='constant': string + ='< strong > constant < / strong >'elif choice = ='alphati': string + ='< strong > adaptive to the value of time < / strong > in a car ( α )'elif choice = ='minttcost': string + ='< strong > adaptive to the free f...
[ -1.0618661642074585, -0.7104448080062866, 0.9148901700973511, -0.25294169783592224, -0.86670982837677, 1.0096819400787354, -0.6678926944732666, -0.5640468001365662, 0.2416725903749466, 1.084547758102417, 0.14516733586788177, 0.7446934580802917, -0.45191651582717896, -0.24280057847499847, ...
def dummy _ pager ( user ) : from x84. bbs import getsession, getterminal, echo, ansi, getch session, term = getsession ( ), getterminal ( ) plan = user. get ( '. plan ', false ) from x84. bbs. ini import cfg def _ timeout = cfg. getint ('system ','timeout') menu = ['( c ) % - 20s - % s'% ( u'haracter encoding ', term....
[ -0.16833017766475677, -0.4330234229564667, 1.1077967882156372, -0.565851628780365, -1.191589117050171, 0.14524942636489868, -0.5979685187339783, -0.46330004930496216, 0.3317602872848511, 0.8617243766784668, -0.1286150962114334, 0.5866943597793579, 0.5297300815582275, 0.4599124789237976, ...
def generate _ imei ( n ) : def luhn _ residue ( digits ) : " " " luhn algorithm " " " return sum ( sum ( divmod ( int ( d ) * ( 1 + i % 2 ), 10 ) ) for i, d in enumerate ( digits [ : : - 1 ] ) ) % 10 part =''. join ( str ( random. randrange ( 0, 9 ) ) for _ in range ( n - 1 ) ) res = luhn _ residue ('{ } { } '. format...
[ -0.8138197660446167, 0.19601914286613464, 0.48861855268478394, -0.8192704916000366, 0.3065645694732666, 0.04032459110021591, -0.7619418501853943, -0.20638927817344666, 0.060897424817085266, -0.07458054274320602, -0.36708641052246094, -0.3676910400390625, -0.6610299944877625, -0.29930862784...
def next ( self ) : self. _ current _ waypoint + = 1
[ -0.6051023006439209, 0.1288263201713562, 0.26255762577056885, 0.24004650115966797, -0.34676188230514526, 0.8059642910957336, 0.4901677370071411, -0.17661628127098083, -0.07997636497020721, -0.4191097021102905, -0.6419719457626343, 0.8609716892242432, -0.43965545296669006, 0.225198686122894...
def runtwalk ( self, t ) : x0 = self. siminitvalues ( ) xp0 = self. siminitvalues ( ) while any ( abs ( x0 - xp0 ) < = 0. 001 ) : # with 0 is the test in pytwalk sleep ( 0. 500 ) xp0 = self. siminitvalues ( ) self. twalk = pytwalk ( n = self. n, u = self. energy, supp = self. supp ) # open the twalk object self. twalk....
[ -0.4785670340061188, -0.49597224593162537, 0.3874366283416748, -0.014612501487135887, -0.12515106797218323, 1.28263258934021, 0.7434547543525696, -0.15501464903354645, -0.15056633949279785, -0.7564817070960999, -0.3799341320991516, -0.47656503319740295, -0.04494844004511833, 0.741041958332...
def openfile ( self ) : filename = qfiledialog. getopenfilename ( self,'open file ', os. getcwd ( ),'audio ('+ self. audio _ file _ types +') ; ; \ all files ( *. * )') if filename : print ('atempting to play'+ str ( filename ) ) self. playnew ( filename )
[ 0.15491877496242523, -0.7409070730209351, 0.614689826965332, 0.22414220869541168, 0.20444154739379883, 1.1478397846221924, 0.8817310333251953, -0.016584321856498718, -0.19757075607776642, -0.5689637064933777, 0.4873412251472473, 0.14200691878795624, 0.12471873313188553, 0.12261275947093964...
def get _ group _ cv _ 111 ( ids, groups : np. array, *, val _ size, n _ splits, random _ state = 42 ) : split _ indices = kfold _ split ( ids, n _ splits, groups = groups, random _ state = random _ state ) split _ indices = split _ train ( split _ indices, val _ size, groups = groups, random _ state = random _ state )...
[ -1.1735681295394897, 0.9830125570297241, 0.5070146918296814, 0.858599066734314, -0.27709755301475525, -0.5720171928405762, 0.25457295775413513, 0.03885926306247711, 0.3412931263446808, 0.5794803500175476, 0.5015890598297119, 0.33202850818634033, 0.07960405200719833, -0.5889536738395691, ...
def demangle ( self, # type : cryptomanager field _ name, # type : str ) - > str : pass
[ -0.660315990447998, 0.5908739566802979, 0.5643410682678223, -1.3046870231628418, -0.2598310708999634, 0.035362765192985535, 0.3019215166568756, 0.010347491130232811, -0.6917915940284729, 0.15480011701583862, -0.27854883670806885, 0.1866035759449005, -1.0781868696212769, -1.0317422151565552...
def _ _ last _ state ( self, dump ) : states = self. _ _ states ( dump ) if states : return states [ - 1 ] return none
[ -0.7496950030326843, -0.088526152074337, 0.6406058073043823, -1.392225742340088, -0.5343508720397949, -0.9484084248542786, -0.2844929099082947, -0.8330271244049072, 1.0181480646133423, -0.3612089455127716, 0.4632191061973572, -1.1740866899490356, -0.4824538230895996, -1.1993932723999023, ...
def start _ check ( self, resource ) : self. logger. info ( " [ % s ] % s - checking message. " % ( resource ['id'], resource ['name'] ) )
[ 0.3928142189979553, -0.8513757586479187, 0.597919225692749, 0.15276981890201569, -0.055329788476228714, -0.06667011976242065, 0.15693260729312897, -0.2774425446987152, -0.32629814743995667, 0.3428872227668762, -0.1483563780784607, 1.2756266593933105, 0.45854833722114563, 0.4500040709972381...
def callback _ query _ answer ( self, bot : bot, update : update, answer : int ) - > none : self. logger. info ( " callback query'answer _ % s'from % s ", answer, self. _ log _ user ( update. callback _ query. from _ user ) ) bot. answer _ callback _ query ( callback _ query _ id = update. callback _ query. id, ) with ...
[ 0.08961085975170135, -0.23799575865268707, 0.6870347857475281, 0.6076114177703857, -0.6621088981628418, 0.17214062809944153, 0.8392939567565918, -0.5620917677879333, 0.6019523739814758, 0.25743749737739563, 0.08910717815160751, 0.21950581669807434, -0.8008157014846802, -0.07848870754241943...
def open ( self, who ) : # type : ( str ) - > none with self. state _ cond : if self. state = = doorstate. recently _ buzzed : if time. time ( ) < = self. last _ state _ change _ ts + 60. 0 : send _ texts ('door opened by % s'% who ) self. _ set _ state ( doorstate. open ) else : self. _ set _ state ( doorstate. neutra...
[ -1.3621056079864502, 0.37168964743614197, 0.6176037788391113, 0.14738503098487854, -0.6553682684898376, -0.1068006157875061, 0.24721457064151764, 0.8767635822296143, 1.0027475357055664, 0.126536026597023, -0.1405373513698578, 0.21435585618019104, -0.30526337027549744, 0.3138268291950226, ...
def azure _ cluster _ creator _ step2 ( request ) : if request. method = ='post': form _ past = createclusterstep1 ( request. post ) log. info ('successfully obtain data from post request createclusterstep1') if form _ past. is _ valid ( ) : form = createclusterstep2 ( request. post or none ) log. info ('rendering crea...
[ 0.048598259687423706, 0.3316970467567444, 0.5913874506950378, 0.9397549033164978, 0.18571673333644867, 0.5775712728500366, 0.21204175055027008, -0.7643329501152039, -0.7388840317726135, -0.9887040257453918, 0.6230019330978394, 0.14748196303844452, -0.13890081644058228, 0.6797229647636414, ...
def inicializajaneladefinematerial ( self ) : # # # rever etapa abaixo pois esta com muito codigo, tentar reduzir # altera as labels das unidades de medidas unidadecomprimento = " m " if self. parent. unidadecomprimento = = " [ m ] - metro " : unidadecomprimento = " m " elif self. parent. unidadecomprimento = = " [ cm ...
[ 0.3275429308414459, -0.30233296751976013, 0.7618474960327148, -1.032228708267212, -0.048025500029325485, 0.7473821640014648, 0.6940518021583557, 0.34813782572746277, 0.1369759887456894, -0.43662402033805847, -0.3227941691875458, 0.08990830183029175, 0.5041359066963196, 0.8642175793647766, ...
def get ( self, key : int ) - > int : key _ hashcode = self. hashcode ( key ) for each in self. map [ key _ hashcode ] : if each [ 0 ] = = key : return each [ 1 ] return - 1
[ -0.9963350892066956, -0.0033025946468114853, 0.6996861100196838, 0.7002018094062805, -0.3675766587257385, -0.5810192823410034, 0.20286646485328674, 0.17198219895362854, -0.6491997241973877, 0.07172592729330063, 0.49112623929977417, -0.01583186909556389, -0.7352495193481445, 0.3854081034660...
def evaluation _ similarity ( data _ iter ) : model. eval ( ) with torch. no _ grad ( ) : eval _ total _ loss = 0 for batch _ count, batch _ data in enumerate ( data _ iter, 1 ) : text = batch _ data. text. to ( device ) target = batch _ data. target. to ( device ) loss = torch. mean ( - model. forward _ similarity ( t...
[ -0.23507364094257355, -0.05192182958126068, 0.36704421043395996, -0.6795668601989746, -0.6316110491752625, 0.9588428139686584, 0.7258973717689514, 0.20278270542621613, -0.40603944659233093, 0.7274057269096375, -0.0016902323113754392, 0.12012376636266708, -0.1882392317056656, 0.483845382928...
def enumerate _ stats ( data, entity = none, period = none, stat = none ) : return util. enumerate _ stats ( data, entity, period, stat )
[ 0.08953259140253067, 0.3335782289505005, 0.37920746207237244, 0.5638713836669922, 0.606368899345398, -0.9172273874282837, -0.4493540823459625, -0.7215771675109863, 0.325329452753067, -0.45676499605178833, 0.7480451464653015, 0.8757585287094116, 1.1319738626480103, 0.1324090212583542, -0....
def create _ or _ append _ gff _ feature ( classy _ gene, gff _ dict ) : ct _ chrom, ct _ start, ct _ stop = classy _ gene. ctregion. split ('\ t') seq = spoofseq ( " actg " ) rec = seqrecord ( seq, ct _ chrom ) qualifiers = { " source " : " prediction ", " score " : 10. 0, " other " : [ classy _ gene. ptregion. replac...
[ -0.10773909837007523, -0.3487570881843567, 0.7456271052360535, -0.3071760833263397, 0.009510098956525326, -0.5188063979148865, 0.23867471516132355, 0.5205598473548889, 0.3038279116153717, 0.16472181677818298, -0.8759964108467102, 0.45452165603637695, -0.07676661759614944, 0.766238749027252...
def generate _ mask ( self, anno _ names, anno _ coords, name _ label _ dict = none, anno _ offset = ( 0, 0 ) ) : w, h = tuple ( math. ceil ( i / self. mask _ scale _ factor ) for i in self. slide. dimensions ) mask = np. zeros ( ( h, w ) ). astype ('uint8') # the init mask, and all the value is 0, cv2 shape is w * h a...
[ 0.07730036973953247, -0.4097242057323456, 0.9248276948928833, -0.19036485254764557, -0.5292553305625916, 0.9276107549667358, -0.16265662014484406, -0.2838348150253296, 0.15384232997894287, 0.39390885829925537, -0.5792793035507202, 0.5297231078147888, 0.6242046356201172, -0.1717251986265182...
def refresh _ colors ( self ) : # todo / future : temporary until i have a cleaner way to do one - time init if self. _ initialized : return # # todo / theme : # # the dark table ( qt ) theme is way better than the light theme # right now, so we're just going to force that on for everyone # for the time being. # self. ...
[ -0.19022850692272186, -0.33770474791526794, 0.33482131361961365, -0.6955821514129639, 0.35479405522346497, -0.47346559166908264, -0.29044556617736816, -0.8043542504310608, 0.14960919320583344, -0.2691761255264282, -0.6934184432029724, 0.3089190423488617, 0.3184715211391449, 0.8882059454917...
def listarnumeros ( arraynumeros ) : texto ='' # recorrer lista for numero in listanumeros : texto ='el numero con indice'+ str ( listanumeros. index ( numero ) ) +'es :'+ str ( numero ) +'\ n'+ texto pass return texto pass
[ -0.22701363265514374, -1.0214476585388184, 0.5410776138305664, 0.5403607487678528, -0.45584607124328613, -0.07994264364242554, -0.6155426502227783, 0.44736480712890625, 0.5822286009788513, 0.3564273416996002, 0.2196076661348343, 0.7159907817840576, 0.15356776118278503, 0.3350866436958313, ...
def agregar ( self, objeto ) : if self. consultar ( objeto ) is none : self. lista _ general. append ( objeto ) return true return false
[ -1.173978328704834, 1.0550187826156616, 0.9304571151733398, 0.07404478639364243, 0.2959743142127991, 0.9288662075996399, -1.274276614189148, -0.4770991802215576, 0.2966059446334839, -0.25327572226524353, -0.10196617990732193, -0.13579784333705902, -0.907867968082428, 0.6896809339523315, ...
def user _ judge ( self, judge _ filename ) : self. judge _ filename = judge _ filename self. display ( ) utils. play ( self. judge _ filename + '. wav')
[ 0.6711786389350891, -1.325528860092163, 0.4443121552467346, 0.494528591632843, -0.11636476218700409, 1.1409783363342285, 1.2759416103363037, 1.112626314163208, -0.9336265325546265, -0.3783152103424072, 0.3140544891357422, 0.4485587179660797, -0.07140058279037476, 0.6294905543327332, 0.71...
def _ get _ demozoo _ name ( demozoo _ id ) - > str : url = f'https : / / demozoo. org / api / v1 / releasers / { demozoo _ id } /'data = requests. get ( url ). json ( ) name = data. get ('name') if not name : raise exception ( f " can't find name for demozoo id'{ demozoo _ id }'" ) return name
[ -1.3336457014083862, -0.642177164554596, 0.48457470536231995, 0.46526601910591125, -0.5910843014717102, -0.4326150119304657, -0.16349992156028748, -0.7711562514305115, 0.37102586030960083, 0.4804736077785492, -1.0254327058792114, 0.0259822066873312, 0.6661928296089172, 0.8936944007873535, ...
def rollback _ resolution ( self ) : if self. _ _ rop is not none : self. _ _ rop. parm ( " override _ camerares " ). set ( self. _ _ override _ camera _ res ) self. _ _ rop. parm ( " res _ fraction " ). set ( self. _ _ res _ fraction ) self. _ _ rop. parmtuple ( " res _ override " ). set ( self. _ _ res _ override ) s...
[ -0.0566469244658947, -0.3910410404205322, 0.7585114240646362, -0.3919200897216797, 0.98674476146698, -0.18335013091564178, 0.43366482853889465, 0.11211924254894257, 0.2867213189601898, -0.0837739035487175, -0.21332493424415588, -0.4570115804672241, -1.144215703010559, 0.04007833078503609, ...
def _ update _ variables ( self, now ) : variables = self. _ homegear. getallsystemvariables ( self. _ name ) if variables is none : return state _ change = false for key, value in variables. items ( ) : if key in self. _ variables and value = = self. _ variables [ key ] : continue state _ change = true self. _ variabl...
[ -0.6226214170455933, -0.5488329529762268, 0.3618655204772949, 0.24770165979862213, -0.7907820343971252, -0.4890291690826416, -0.6838095784187317, -0.01941518299281597, -0.5943688154220581, 0.6000421643257141, -0.42333129048347473, 0.15643200278282166, -0.1297176480293274, 0.991353809833526...
def graph _ factory ( ) : settings = get _ current _ registry ( ). settings connection _ string = settings and settings ['graphdb _ connection _ string'] \ or " testdb " import os os. environ ['neo4j _ python _ jvmargs'] ='- xms128m - xmx512m'from neo4j import graphdatabase db = graphdatabase ( connection _ string ) de...
[ 0.6860674619674683, 0.4843815267086029, 0.49868497252464294, -0.16873623430728912, -0.30723798274993896, 0.4721851050853729, 0.09004953503608704, -0.37061020731925964, -0.17879728972911835, 0.27781713008880615, -0.13311739265918732, 0.4515920579433441, -1.3711919784545898, -0.5123624801635...
def update _ propensities ( sequences ) : # print'updating propensities...'import parameters from parameters import monomer _ species, n _ mono _ species, kp, kh, kr, r _ l # initialize local variables to store propensities atot = 0. 0 ap _ r = 0. 0 ap _ h = 0. 0 ap _ p = 0. 0 for id1, v in sequences. items ( ) : " " "...
[ -0.1319536715745926, -1.5177892446517944, 0.9248455166816711, -0.40090638399124146, -0.4976170063018799, -0.38371166586875916, 0.05674507096409798, 0.37348052859306335, 0.6775752902030945, 1.4441235065460205, -0.37299224734306335, 0.42429015040397644, -0.510201632976532, 0.1563899517059326...
def buildgeneterritories ( infile, outfile ) : statement ='''zcat % ( infile ) s | cgat gtf2gtf - - method = filter - - filter - method = proteincoding - - log = % ( outfile ) s. log | cgat gtf2gtf - - method = sort - - sort - order = gene | cgat gtf2gtf - - method = merge - transcripts | cgat gtf2gtf - - method = sort...
[ 0.34574654698371887, -0.4582615792751312, 0.5057089924812317, -0.06484340876340866, 0.05336436256766319, 0.0660623237490654, -0.04439173638820648, 0.07496869564056396, -1.1734539270401, -0.23623670637607574, 0.424459308385849, 0.6557928919792175, 0.560160756111145, -0.28004491329193115, ...
def _ nmlz _ index ( index : int, length : int ) - > int : index = index + length if index < 0 else index if index > = length or length = = 0 : raise indexerror ( " index out of range. " ) return index
[ -0.17344284057617188, -0.04970245435833931, 0.27341428399086, -0.5586822032928467, -0.6148579716682434, 0.000055875098041724414, 0.306410014629364, -0.6391133666038513, 0.7926419377326965, -0.5274763703346252, 0.08035232871770859, 0.6804797053337097, -0.7987116575241089, -0.363282203674316...
def get _ cdip _ wave _ records ( filepath, out _ folder, qc _ outfile = none ) : filename = os. path. basename ( filepath ) outfile = os. path. join ( out _ folder, f'{ filename }. waves. pkl') statefile = os. path. join ( out _ folder, f'{ filename }. state. pkl') # parse file into xarray dataset try : data = get _ c...
[ 0.673196017742157, 0.22534577548503876, 0.7333799600601196, -0.8133990168571472, -0.48703014850616455, 0.016499267891049385, 0.5571562051773071, 0.6339547634124756, 0.08543481677770615, 0.5761162638664246, -0.10839302837848663, -0.05769466981291771, -0.5230986475944519, 0.28902319073677063...
async def test _ attributes _ on _ off ( hass : homeassistant, mqtt _ mock : mqttmockhaclient, setup _ tasmota ) - > none : config = copy. deepcopy ( default _ config ) config [ " rl " ] [ 0 ] = 1 config [ " so " ] [ " 30 " ] = 1 # enforce home assistant auto - discovery as light mac = config [ " mac " ] async _ fire _...
[ 0.1638088971376419, -0.07942467927932739, 0.3662361204624176, -0.6752089858055115, 0.12598468363285065, 0.5223883986473083, -0.08914384990930557, 0.7175953388214111, 0.4697761535644531, -0.5554702877998352, -0.46846523880958557, 0.14250914752483368, 0.23173418641090393, 0.8077542185783386,...
def relaxhex ( x : int, glimit : int = 100 ) - > str : return hex ( x ) if x > = glimit else str ( x )
[ 0.015160595066845417, 1.2245714664459229, 0.3658190965652466, -0.3574535548686981, -0.810958981513977, 0.3754079341888428, -1.5035181045532227, -0.613204836845398, 0.1256658434867859, 0.20464342832565308, -0.1476018726825714, 0.40508732199668884, -0.04659077897667885, -1.662697196006775, ...