text
stringlengths
25
2.19k
embedding
listlengths
768
768
def endnastri ( self, * args ) : return _ snap. pneanet _ endnastri ( self, * args )
[ -0.05188637971878052, 0.8606010675430298, 0.402149498462677, 0.06440954655408859, 0.5686048865318298, 0.24393101036548615, -0.43720385432243347, -0.7442880868911743, -0.5714849829673767, -0.6464007496833801, -1.3470044136047363, -0.8390896916389465, -0.2984767556190491, 0.9487987756729126,...
def _ _ init _ _ ( self ) : self. dic = { } self. reversedic = { } self. count = 0
[ -0.13117796182632446, 0.021789392456412315, 0.41726410388946533, -0.5857015252113342, 0.5538188815116882, -0.14347334206104279, 0.6125738620758057, 1.1281110048294067, -1.1126327514648438, -0.6510845422744751, -0.5318410992622375, 0.044059399515390396, -0.23173122107982635, 0.7973949313163...
def get _ historic _ klines ( self, return _ = false ) : history = self. _ client. get _ klines ( symbol = self. market, interval = self. interval, limit = self. limit ) df = pd. dataframe ( history, columns = config. all _ history _ colnames ) df = df [ config. select _ historic _ colnames ] df ['datetime'] = self. ms...
[ -0.16693753004074097, 0.9479801058769226, 0.6399080753326416, 0.16332855820655823, 0.15775561332702637, -0.19342505931854248, -0.17701436579227448, 0.02456747181713581, -0.5144739747047424, 0.5324580073356628, 0.6784356236457825, 0.5994358062744141, -0.20618987083435059, -0.375840127468109...
def reconnect _ agent ( hostname ) : run _ command _ on _ agent ( hostname,'sh net - services - agent. sh')
[ -0.5145776867866516, -0.7984529733657837, 0.46260637044906616, 0.3754415214061737, -0.08075609058141708, -0.37168508768081665, -0.04687187820672989, -0.16286976635456085, -0.16205629706382751, 0.4526718556880951, -0.25028547644615173, 0.48562073707580566, 0.5611724257469177, -0.12884843349...
def custom _ headers ( self ) : return self. _ _ custom _ headers
[ 0.1799934208393097, -0.9191431403160095, 0.3412942886352539, -0.09286076575517654, -0.3535548448562622, -0.04514051601290703, 0.12033382803201675, -1.006308913230896, 0.2730013430118561, -0.31864848732948303, -0.6690328121185303, 0.299303263425827, -0.2887336015701294, -0.8805396556854248,...
def _ _ init _ _ ( self, * args ) : _ snap. tlognotify _ swiginit ( self, _ snap. new _ tlognotify ( * args ) )
[ 0.04795312508940697, 0.6685096621513367, -0.005913682281970978, -0.43169161677360535, -0.22940123081207275, -0.7473600506782532, 0.0246061272919178, 0.6578314304351807, -1.538386583328247, 0.7799326777458191, -1.6635830402374268, -0.6499622464179993, 0.6134328246116638, 0.738890528678894, ...
def _ _ get _ list _ of ( self, attr _ name = " followers " ) : attr _ count = self. _ _ get _ number _ of ( " https : / / www. instagram. com / { } / { } / ". format ( self. user _ id, attr _ name ) ) self. text _ to _ speech ( " { } count is { } ". format ( attr _ name, attr _ count ) ) attr _ btn = self. driver. fin...
[ -0.7896062731742859, 0.13718028366565704, 0.9195104837417603, 0.34934696555137634, -0.20106670260429382, -0.3285932242870331, 0.7398207783699036, -0.18360134959220886, 0.590491771697998, 0.9019103050231934, -0.34913763403892517, -0.5024499297142029, -0.3153168857097626, 0.9554859399795532,...
def _ _ len _ _ ( self ) : return len ( self. heap )
[ 0.382664293050766, -0.7618731260299683, 0.39163345098495483, -1.2265934944152832, 0.3226074278354645, 0.623883068561554, -0.4277988374233246, 0.6009756326675415, 0.9847825169563293, -0.700605034828186, -1.1027193069458008, -0.07874499261379242, 0.46549126505851746, -0.2660905718803406, 0...
def evaluate _ models ( results ) : for model in results. keys ( ) : preds = results [ model ] ['preds'] labels = results [ model ] ['labels'] run = { } qrel = { } for i, p in enumerate ( preds ) : run ['q { } '. format ( i + 1 ) ] = { } qrel ['q { } '. format ( i + 1 ) ] = { } for j, _ in enumerate ( range ( len ( p )...
[ -1.1411410570144653, -0.6161994934082031, 0.5313769578933716, -1.6242313385009766, 0.19152960181236267, 0.15690499544143677, 0.20489493012428284, -0.0779334008693695, -0.83314049243927, 0.13553938269615173, -0.5644960999488831, -0.7260937690734863, 0.32291552424430847, 0.16988378763198853,...
def get _ filtered _ node _ names ( graph : nx. graph, query _ paramses : sequence [ " graphqueryparams " ] ) - > list : subgraph = get _ filtered _ subgraph _ view ( graph, query _ paramses ) res = list ( subgraph. nodes ) return res
[ -0.337031751871109, 0.7679234743118286, 0.4878242611885071, 0.349491149187088, -0.29861849546432495, 0.2843070924282074, -0.16282908618450165, -0.07489625364542007, -0.30287966132164, 0.914336621761322, -0.17980314791202545, 0.8810169696807861, 0.8144876956939697, -0.7595291137695312, -1...
def _ commit _ reassignments ( self, inventory, reowned, comment ) : # if dynamo owns all files, all we need to do is update the inventory. # it is however possible that the other hand the underlying storage system requires some operation. need _ operation = hasattr ( self. deletion _ op,'schedule _ reassignments') if ...
[ -0.32526639103889465, -0.2811431884765625, 0.7608963251113892, 0.19364549219608307, -0.10720352083444595, -1.0255311727523804, 1.4202277660369873, 0.8405731320381165, -0.1330016553401947, 0.5205544233322144, 0.06303795427083969, 0.6726398468017578, 0.09769665449857712, -0.03923529759049415...
def calc _ tk _ stat ( games, k ) : # # # begin solution tk _ make = count _ conditionally ( games,''. join ( str ( 1 ) for _ in range ( k ) ),'1') / ( count _ conditionally ( games,''. join ( str ( 1 ) for _ in range ( k ) ),'1') + count _ conditionally ( games,''. join ( str ( 1 ) for _ in range ( k ) ),'0') ) tk _ m...
[ -0.178372323513031, 0.3837551474571228, 0.6121649146080017, -0.8542513847351074, -0.5111202597618103, -0.039557084441185, 0.8741347193717957, -0.2592962980270386, -0.5388047695159912, 1.3196922540664673, 0.14876557886600494, 0.15380418300628662, 0.4531717300415039, -0.1536530703306198, 0...
def clean _ transform ( self ) : if ( self. _ _ df _ epics ['epic progress']. dtypes = = " o " ) : self. _ _ df _ epics ['epic progress'] = pd. eval ( self. _ _ df _ epics ['epic progress'] ) if ( self. _ _ df _ feats ['feature progress']. dtypes = = " o " ) : self. _ _ df _ feats ['feature progress'] = pd. eval ( self...
[ -0.4257690906524658, -0.31264710426330566, 0.6661968231201172, -1.099489688873291, 0.6047903299331665, 0.34635794162750244, 0.5691263675689697, 0.2649001479148865, -0.43512630462646484, 0.27064260840415955, 0.09074096381664276, 0.27863192558288574, 0.2782839834690094, -0.8548351526260376, ...
def parse _ basic _ block _ body ( lexer, module, basic _ block ) : while true : token, tag = lexer. get _ next _ token ( peek = true, accept _ eol = true ) if token = ='' : lexer. done _ with _ line ( ) elif tag = ='label': raise parseerror ('label without terminating previous basic block') elif token = ='}': raise pa...
[ 0.20044228434562683, -0.12273894995450974, 0.9765463471412659, 0.5929475426673889, -0.17174679040908813, 0.33325445652008057, -1.212181568145752, -1.1404317617416382, -0.7738310694694519, 0.09968049079179764, -0.05889708921313286, 0.1148141473531723, -1.0225383043289185, 0.816261351108551,...
def setallpanelstorenderer ( renderer, reset = true ) : modelpanels = cmds. getpanel ( type ='modelpanel') or [ ] for panel in modelpanels : cmds. modeleditor ( panel, edit = true, renderername = renderer ) if reset or os. environ. get ('maya _ disable _ vp2 _ when _ possible ', false ) : cmds. ogs ( reset = true )
[ -0.596663236618042, -0.191033273935318, 0.8375795483589172, 0.040719859302043915, 0.09594786167144775, 0.1131376177072525, -0.5573185086250305, -0.5163791179656982, 0.07631184905767441, 0.26981762051582336, -0.3388454020023346, -0.11953511089086533, -0.6756386160850525, 1.166041374206543, ...
def divide ( x, y ) : return x / y
[ -0.04846729710698128, 0.023314552381634712, 0.4338495433330536, -0.11953174322843552, 0.05112790688872337, 0.6740896701812744, -1.1482232809066772, -1.3852157592773438, -0.9144962430000305, -0.2384081333875656, 0.3061668872833252, 0.2907117009162903, 0.450960248708725, -0.5985274910926819,...
def open ( self ) : device _ type ='oneaccess _ oneos'if self. transport = = " telnet " : device _ type ='oneaccess _ oneos _ telnet'self. device = self. _ netmiko _ open ( device _ type, netmiko _ optional _ args = self. netmiko _ optional _ args )
[ -0.8480399250984192, 0.33634841442108154, 0.45242080092430115, 0.32905611395835876, -0.33700665831565857, -0.36007294058799744, 0.6715956330299377, 0.2033872753381729, 1.2758172750473022, -1.2462507486343384, -0.27567315101623535, 0.10143131017684937, -0.017174115404486656, 0.5597600340843...
def _ _ eq _ _ ( self, * args ) : return _ snap. tfltprv _ _ _ eq _ _ ( self, * args )
[ -1.5869868993759155, -0.028560305014252663, 0.04291040822863579, -1.1707886457443237, 0.6776321530342102, 0.029678111895918846, 0.23173369467258453, 0.5680875778198242, -0.8020060062408447, 0.2849106192588806, -0.4208393096923828, -1.9319730997085571, -0.19379590451717377, 0.73316526412963...
def prediction ( self, x ) : mean = self. kernel. mean ( x ) cov _ vector = np. array ( [ self. kernel. cov ( x, xm ) for xm in self. x ] ) return np. sum ( mean + np. dot ( np. dot ( self. inverted _ cov _ matrix, cov _ vector ), ( self. y - self. mean _ vector ) ) )
[ -0.8645210266113281, 0.021234000101685524, 0.7209218144416809, 0.16777993738651276, -0.8166400790214539, 0.11116904765367508, 0.1158740445971489, 0.06729865074157715, 0.09759704023599625, 0.3537957966327667, -0.7248797416687012, 0.6911333203315735, -0.23170222342014313, 0.12201885879039764...
def getdat ( self, * args ) : return _ snap. tstrinthi _ getdat ( self, * args )
[ 1.2172558307647705, 0.17029240727424622, 0.36494895815849304, -1.3065602779388428, 1.1953028440475464, 0.5076829791069031, 0.2663024365901947, -0.45547428727149963, -1.6867356300354004, -0.27855464816093445, -0.35412147641181946, -0.4497605562210083, -0.11520558595657349, -0.44686207175254...
def restart ( self, event _ data = none ) : self. _ current _ step = 0 self. reset _ step ( ) self. active = true self. fire ( { " event " : " sequencerestarted " } ) logger. log _ formatted ( log _ level [ " info " ], f'sequence { font _ cyan } { self. name } { font _ reset } ','restarted ','warning')
[ -0.25791922211647034, -0.4387224614620209, 0.42315441370010376, 0.005355433560907841, -0.09840492159128189, -0.5993268489837646, 0.0869966521859169, 0.8493418097496033, -0.09746057540178299, 0.08829019218683243, -1.0460883378982544, 1.1098523139953613, -0.332682728767395, -0.04626923426985...
def collect _ run _ 4 _ results ( ) : get _ benders _ results _ from _ logs ( " output _ 3 _ train ", " run _ 4 _ benders _ results. csv " ) get _ yaml _ results _ from _ solutions ( " solutions _ 3 ", " run _ 4 _ quality _ results. csv " )
[ 0.5534754395484924, -0.7204866409301758, 0.41475456953048706, 0.9505060315132141, 0.17694289982318878, -0.08341874182224274, 0.3780749440193176, -0.9503056406974792, -1.1639270782470703, -0.7431542873382568, -0.24124771356582642, 0.19143198430538177, 0.5939216017723083, 0.19168667495250702...
def _ _ init _ _ ( self, * args ) : _ snap. tstruint64vhi _ swiginit ( self, _ snap. new _ tstruint64vhi ( * args ) )
[ -0.4890333116054535, -0.00914898794144392, 0.04581649973988533, -0.18156911432743073, -0.21394184231758118, 0.035322155803442, 0.13034892082214355, 0.6188446283340454, -0.9886305332183838, -0.34381672739982605, 0.035245925188064575, -0.5731103420257568, 0.43953362107276917, 0.2218490689992...
def test _ keras ( ) : ( x _ train, y _ train ), ( x _ test, y _ test ) = mnist. load _ data ( ) x _ train = x _ train. astype ('float32') / 255 trainvectors = x _ train. reshape ( 60000, 784 ) y _ train = np _ utils. to _ categorical ( y _ train, 10 ) model = sequential ( ) model. add ( dense ( 10, input _ shape = ( 7...
[ 0.7820642590522766, 0.46310147643089294, 0.7615540623664856, 0.7566403746604919, 0.14561493694782257, 0.2443290501832962, 0.0497608557343483, 0.628115177154541, 0.40744951367378235, -0.13939431309700012, -0.46572479605674744, 0.8685383796691895, 0.6507729887962341, 0.03945251554250717, -...
def printgraphstattable _ pungraph ( * args ) : return _ snap. printgraphstattable _ pungraph ( * args )
[ -0.6220971345901489, 0.7905065417289734, 0.27957141399383545, 1.0752896070480347, -0.5754796266555786, -0.4000333547592163, 0.7909058928489685, -0.4509631097316742, -0.7798370122909546, 0.001816128147765994, -0.4357336163520813, 0.46030184626579285, -0.840026319026947, 0.07888155430555344,...
def force _ created _ at ( self, t = none ) : if t is none : t = util. now _ int ( ) else : util. check _ attr _ type ( t, int ) self. _ h5file. attrs [ " created _ at " ] = util. time _ to _ str ( t )
[ -0.4023244082927704, 0.2663549482822418, 0.5249784588813782, -0.5354028940200806, 1.1634265184402466, 0.460697740316391, 0.24190089106559753, -0.739396870136261, -1.850538969039917, -0.7459281086921692, -0.637794554233551, -0.40552327036857605, 0.827865481376648, 0.649391770362854, 0.409...
def load _ status ( self ) : try : status _ format _ version, status = self. _ load _ status ( ) if ( status _ format _ version! = self. status _ format _ version or status ['comp _ vn']! = self. competition. status _ format _ version ) : raise standarderror self. void _ game _ count = status ['void _ game _ count'] se...
[ -0.08901575207710266, -0.807904839515686, 0.6540966629981995, 0.01223804522305727, 0.2415790855884552, 0.1263965666294098, -0.08556370437145233, 0.2909109592437744, 0.027827411890029907, 0.439653217792511, -0.5356736183166504, -0.0837617740035057, 0.02889256924390793, 0.1345251053571701, ...
def gen ( ) : while true : rval, frame = video. read ( ) # detect cars in the video cars3 = car _ cascade. detectmultiscale ( frame, 1. 3, 8 ) take _ photo = false for ( x, y, w, h ) in cars3 : cv2. rectangle ( frame, ( x, y ), ( x + w, y + h ), ( 0, 255, 0 ), 2 ) coordxcentroid = int ( ( x + x + w ) / 2 ) coordycentro...
[ -0.9370833039283752, -0.3167453408241272, 1.0040860176086426, 0.2659662067890167, 0.021968383342027664, 0.03255253657698631, 0.36683881282806396, -0.41346707940101624, -0.526627779006958, 0.278820663690567, -0.44815152883529663, 0.06904807686805725, 0.3457571268081665, 0.6189987659454346, ...
def begnastri ( self, * args ) : return _ snap. pneanet _ begnastri ( self, * args )
[ 0.3678555190563202, 0.4989536702632904, 0.25865843892097473, 0.6164445281028748, 1.148516058921814, 0.40039241313934326, -0.19400127232074738, -1.1929672956466675, -0.6621561646461487, -1.0019829273223877, -0.670422375202179, 0.0003786260786000639, -0.27150827646255493, 0.6428300142288208,...
def getrndnid ( self, * args ) : return _ snap. tngraphmp _ getrndnid ( self, * args )
[ 0.730364203453064, 0.08352752774953842, 0.24926389753818512, 0.09773005545139313, 0.809118926525116, 0.5069957971572876, -0.005760022904723883, -0.6998902559280396, -1.3005973100662231, -0.43065905570983887, -0.23693573474884033, -0.12251584976911545, -1.354845404624939, 0.7863671779632568...
def counttriangles _ pngraph ( * args ) : return _ snap. counttriangles _ pngraph ( * args )
[ -0.34314462542533875, 1.2986232042312622, -0.10199455916881561, -0.7838504910469055, -0.5310949087142944, 0.385320782661438, 0.8245765566825867, -0.8946852087974548, -0.0899835079908371, 0.3030051589012146, -0.9583632349967957, -0.6794096827507019, 0.45396628975868225, -0.64267498254776, ...
def addv ( self, * args ) : return _ snap. schema _ addv ( self, * args )
[ -0.878751277923584, 0.7894544005393982, 0.6908487677574158, 1.140317440032959, 0.34673309326171875, 0.31366294622421265, 0.5039091110229492, 0.7085941433906555, 0.09178376197814941, -0.47339293360710144, -0.5819101333618164, 0.4741343855857849, -0.5875343084335327, 0.3244546949863434, 0....
def getintattrindn ( self, * args ) : return _ snap. tneanet _ getintattrindn ( self, * args )
[ -1.1645469665527344, -0.005675292573869228, 0.5924882888793945, 0.15843084454536438, 0.5500890016555786, -0.43060413002967834, 0.9335914254188538, -0.2183477282524109, -0.642536461353302, -0.874690592288971, -0.03130637854337692, -0.32290831208229065, -1.026530385017395, -0.075197570025920...
def parallelize ( self, device _ map = none ) : if hasattr ( self. plm, " parallelize " ) : self. plm. parallelize ( device _ map ) self. device _ map = self. plm. device _ map self. template. cuda ( ) self. verbalizer. cuda ( ) else : raise notimplementederror ( " parallelize method was not implemented for this plm. "...
[ -0.2894355058670044, 0.5243825912475586, 0.4129885137081146, 0.7220341563224792, 0.06025712937116623, -0.33510828018188477, 0.5751519799232483, 0.6614364385604858, 0.30601534247398376, -0.7371839284896851, 0.6813071370124817, -0.18544019758701324, -0.7770490646362305, 0.5132913589477539, ...
def generate _ csv ( split _ range : str, scan _ name = args. scan _ name, exclusions = args. exclusions ) : with open ('target. csv ','w') as fd : fd. write ( f'" { split _ range } ", " { args. scan _ name } ", " { args. exclusions } "') print ('[ * ] a csv file " targets. csv " created')
[ -0.23815836012363434, -0.6989603638648987, 0.4963107705116272, 0.20523449778556824, 0.07607259601354599, 0.8438049554824829, 0.3584009110927582, 0.9392532110214233, -0.1383954882621765, -0.48776838183403015, -0.12014898657798767, 0.8733295202255249, 0.3463762104511261, -0.2361195832490921,...
def colmod ( self, * args ) : return _ snap. ttable _ colmod ( self, * args )
[ -0.7869150638580322, 0.15530480444431305, 0.4377303421497345, 0.38927772641181946, 0.48216089606285095, 0.8717947602272034, 0.405777245759964, -0.4052988886833191, -0.9293761849403381, 0.6744145154953003, -0.08564584702253342, -0.502484142780304, 0.09901534765958786, 0.3006278872489929, ...
def parse2 ( tokens, grammar = read _ timex _ grammar ( ) ) : tokens = list ( tokens ) parser = parser ( grammar ) while tokens : parser. parse ( tokens ) try : tree = parser. parses ( ). next ( ) next _ parse = parser. grammar. eval ( tree ) if isinstance ( next _ parse, donotparse ) : # not sure whether this is used,...
[ -0.1510922610759735, -0.16262440383434296, 0.7571894526481628, 0.1269129067659378, -0.4889909327030182, -0.37405186891555786, -1.240393042564392, -0.12233566492795944, -0.039231643080711365, 0.763401210308075, -0.19475989043712616, -0.0714309960603714, -0.24245460331439972, 1.0826541185379...
def inference ( self ) : batch _ size = self. encoder _ outputs. size ( 0 ) trg _ len = self. encoder _ outputs. size ( 1 ) diacritic = ( torch. full ( ( batch _ size, ), self. start _ symbol _ id ). to ( self. device ). long ( ) ) outputs, alignments = [ ], [ ] self. initialize ( ) for _ in range ( trg _ len ) : outpu...
[ -0.9074060916900635, -0.14354351162910461, 0.6002925634384155, 0.10735494643449783, -0.30810609459877014, -0.7596953511238098, 0.93761146068573, 0.2721908986568451, -0.5559892058372498, 0.010325374081730843, 0.04440964385867119, -0.2940298616886139, 0.2773512303829193, 0.39866071939468384,...
def begei ( self, * args ) : return _ snap. tneanet _ begei ( self, * args )
[ -0.008935907855629921, 0.7174549698829651, 0.0590498186647892, 0.6022483706474304, 1.9416654109954834, 0.07455461472272873, 0.3982751667499542, -0.651307225227356, -1.6334288120269775, 0.23084162175655365, 0.0014779737684875727, -0.9540312886238098, -0.8013386726379395, 0.665982723236084, ...
def process _ actionaliases ( self, action _ aliases ) : self. help ='' self. pattern _ action = { } for action _ alias in action _ aliases : if not action _ alias. enabled : continue for _ format in action _ alias. formats : try : display, representations = self. _ normalise _ format ( _ format ) except exception as e...
[ -0.07347965240478516, -0.5350741147994995, 0.6222327947616577, -0.4318088889122009, 0.6166493892669678, 0.2550320625305176, 0.6922905445098877, -0.3346417248249054, -0.07484649121761322, 0.10435175895690918, 0.5883432030677795, 0.9048528075218201, 0.9276418089866638, 1.359872579574585, 0...
def _ _ lt _ _ ( self, * args ) : return _ snap. tintprinthi _ _ _ lt _ _ ( self, * args )
[ 0.6438996195793152, -0.7288522720336914, 0.4886802136898041, -1.2157790660858154, 0.12836897373199463, -0.07608410716056824, -0.8935266733169556, -1.002743124961853, -0.9088520407676697, -0.9001626372337341, -0.8704045414924622, 0.2601149380207062, -1.418461799621582, 0.6745652556419373, ...
def add ( self, * args ) : return _ snap. tintintvv _ add ( self, * args )
[ -1.784983515739441, 0.0016232817433774471, 0.5348667502403259, 0.8457620143890381, 0.4924943149089813, 0.5923448204994202, 0.0996645987033844, 0.35091787576675415, 0.14005368947982788, -0.2260074019432068, 0.09186962991952896, 0.694162905216217, -1.4083833694458008, 0.4377865195274353, 0...
def create _ app ( config = none, app _ name = none, blueprints = none ) : if app _ name is none : app _ name = defaultconfig. project if blueprints is none : blueprints = default _ blueprints app = flask ( app _ name ) configure _ app ( app, config ) configure _ extension ( app ) configure _ blueprints ( app, blueprin...
[ 1.1029462814331055, 0.2633679211139679, 0.622538149356842, 1.4250879287719727, -0.0074231126345694065, 0.45857569575309753, -0.620850145816803, 0.44341516494750977, 0.20464259386062622, 0.2541961073875427, -0.16311714053153992, -0.1841307133436203, -0.19384494423866272, 0.3830506205558777,...
def _ _ init _ _ ( self, file, validate = 0, subfontindex = 0 ) : self. validate = validate self. readfile ( file ) self. _ filename = getattr ( file,'name ','' ) if self. _ filename. startswith ('<') : self. _ filename ='' iscollection = self. readheader ( ) if iscollection : self. readttcheader ( ) self. getsubfont (...
[ 0.3296223282814026, -0.1980038434267044, 0.653742253780365, 0.9582322239875793, -1.061808466911316, 0.38803818821907043, 0.42812830209732056, -0.013749889098107815, -0.05025188624858856, -0.7545051574707031, -0.2802671194076538, -0.07847927510738373, 0.42991963028907776, 0.255136102437973,...
def delete _ node _ by _ uid ( uid ) : try : node = dataobject. nodes. get ( uid = uid ) node. delete ( ) return true except : try : node = e1 _ crm _ entity. nodes. get ( uid = uid ) node. delete ( ) return true except : return none
[ 0.2987779974937439, 0.5663298964500427, 0.5598689317703247, -0.3891327381134033, 0.6294202208518982, 0.2628941237926483, 0.5474320650100708, 0.25512516498565674, 0.7367660403251648, 0.4781997501850128, 0.2488590031862259, 0.8112707138061523, -0.46221521496772766, 0.3191777765750885, -0.9...
def _ _ init _ _ ( self, * args ) : _ snap. tmmnetcrossneti _ swiginit ( self, _ snap. new _ tmmnetcrossneti ( * args ) )
[ 0.25125932693481445, 0.6087825298309326, -0.20770598948001862, 0.4984230101108551, -0.12265920639038086, 0.3182674050331116, 0.36767882108688354, -0.4510895907878876, -0.48753106594085693, 0.7080955505371094, -0.2896179258823395, -0.7429173588752747, -0.543612003326416, 1.4102458953857422,...
async def send _ request ( self, request ) : host _ index = self. _ host _ resolver. get _ host _ index ( ) request. headers ['authorization'] = self. _ auth _ header resp = await self. _ http. send _ request ( session = self. _ sessions [ host _ index ], method = request. method, url = self. _ url _ prefixes [ host _ ...
[ -0.98779296875, -0.05302531644701958, 0.7016531825065613, 0.10621197521686554, 0.226934015750885, -0.4824559986591339, -0.8692574501037598, -0.6951467990875244, 0.6799472570419312, 0.09843382984399796, 0.3224957585334778, 0.7329544425010681, 0.3023828864097595, -0.6855801939964294, 0.107...
def addpagelink ( self, link _ to, author ) : name = link _ to. name [ link _ to. name. find ('/') + 1 : ] initial = name [ 0 ]. upper ( ) begin = self. text. find ( " = = % s = = " % initial ) if initial <'z': end = self. text. find ( " = = % s = = " % chr ( ord ( initial ) + 1 ), begin + 1 ) else : end = - 1 if self....
[ -0.23809973895549774, -0.25633111596107483, 0.7953385710716248, 0.1216183602809906, 0.3403185307979584, 0.3521004617214203, -0.09083565324544907, 0.32298436760902405, -0.020733186975121498, -0.2151629626750946, 0.44480061531066895, -0.1867002695798874, -0.7526253461837769, 0.04638277366757...
def _ generate _ discretisation _ step ( self, y _ step ) : a _ first _ forward, b _ first _ forward = \ self. _ generate _ first _ order _ system ( y _ step ) a _ second _ forward, b _ second _ forward = \ self. _ generate _ first _ order _ system ( y _ step ) a _ first _ backward, b _ first _ backward = \ self. _ gen...
[ -0.07048135250806808, 0.11281110346317291, 0.7601593732833862, -0.40707868337631226, 0.6305534243583679, -0.2223072201013565, 0.8008856177330017, -0.23279719054698944, -0.609205961227417, -0.40891408920288086, -0.9283679723739624, -0.5122908353805542, 0.3918047249317169, 1.086189866065979,...
def _ _ init _ _ ( self, * args ) : _ snap. tsint _ swiginit ( self, _ snap. new _ tsint ( * args ) )
[ -0.02643844485282898, 0.7735592722892761, 0.2225562334060669, -0.946222186088562, 0.13056834042072296, -0.262628972530365, 0.5440958142280579, 0.2648346722126007, -1.551169991493225, 0.4663715958595276, -1.5370261669158936, -1.1915303468704224, -0.3716839551925659, 0.44040530920028687, 0...
def serialize ( self ) : return {'firstname': self. firstname,'lastname': self. lastname,'playernum': self. playernum,'position': self. position,'height': self. height,'weight': self. weight,'age': self. age,'college': self. college,'birthplace': self. birthplace,'role': self. role,'id': self. id, }
[ -1.0954774618148804, -1.6503239870071411, 0.6935786008834839, -1.2599867582321167, -0.9272007346153259, 0.11119186878204346, -0.21069592237472534, -0.4892042577266693, 0.5827778577804565, -0.0480094775557518, -1.4283535480499268, 0.08474071323871613, -0.08933163434267044, 0.375673890113830...
def group _ title ( self ) : return'< legend > % s < / legend >'% ( net. websafe ( self. description ) )
[ 1.0111382007598877, 0.5294594168663025, 0.30539652705192566, -0.6889120936393738, -0.4972951412200928, 0.2125406265258789, -1.1924865245819092, 0.02585030160844326, 0.09742241352796555, 0.2260235995054245, 0.5402477383613586, 0.6452720165252686, -0.31310680508613586, 0.5460765957832336, ...
def describebillsummarybypaymode ( self, request ) : try : params = request. _ serialize ( ) headers = request. headers body = self. call ( " describebillsummarybypaymode ", params, headers = headers ) response = json. loads ( body ) model = models. describebillsummarybypaymoderesponse ( ) model. _ deserialize ( respon...
[ -0.8259764313697815, 1.2205687761306763, 0.9707652926445007, -0.7223567962646484, -0.7421581149101257, 0.3650166094303131, -0.27592897415161133, -0.840247631072998, 0.16586260497570038, 0.19311460852622986, -0.5576903820037842, 0.553040623664856, -0.3155147135257721, 0.5120657682418823, ...
def lengthdistribution ( self ) : self. printstatus ( ) print " " " # # length : number of units / sequences per family # nunits : number of domains of that length # nunits / sin : number of domains without singletons # nsin : number of singletons with that length # " " " print " length \ tnunits \ tnunits / sin \ tnsi...
[ 0.8342323303222656, 0.3608894646167755, 0.5534380078315735, -0.6004393100738525, 0.6590213775634766, 0.7300734519958496, 0.8851099610328674, 0.2742539048194885, 0.34746253490448, -0.5180732607841492, 0.16515757143497467, 0.16872642934322357, 0.3427130877971649, 0.9818119406700134, 0.5423...
def execute ( self ) : # print ( " executing range _ cursor " ) # self. timer. start ( ) # note : # # csv files use | as a delimiter and have a trailing delimiter so record delimiter is | \ n # # note : as responses are chunked the file headers are only returned in the first chunk. we ignore them for now # just because...
[ -0.3014127314090729, -0.25948184728622437, 0.7378538250923157, 0.20260213315486908, 0.4812568426132202, -0.29236215353012085, -0.15665379166603088, -0.5560112595558167, -0.9006046652793884, -0.19665782153606415, 0.6299940943717957, 0.23476558923721313, -0.6640433669090271, -0.4549281597137...
def configtype ( subconfig ) : if isinstance ( subconfig, application ) : return configuration. config _ type _ application if isinstance ( subconfig, compositefilter ) : return configuration. config _ type _ composite raise nextruntimeerror ( " unexpected instance type " )
[ -0.6543928980827332, 0.7419735789299011, 0.6074822545051575, 0.3944282829761505, -0.47318947315216064, 0.5946003198623657, 0.9011297225952148, 0.2642974257469177, -0.09641340374946594, 0.8549060821533203, -0.6265032887458801, 0.8452785015106201, -0.6974788308143616, 0.566669225692749, 0....
def follow ( submission ) : global following if submission not in following : following. append ( submission ) following _ update _ single ( submission )
[ 0.148884117603302, -0.07236343622207642, 0.39919018745422363, 1.2970067262649536, -0.20776988565921783, 0.9061872363090515, -0.6335524320602417, -0.5429412126541138, 0.7706289887428284, -0.53314608335495, -0.4781920611858368, 0.5958502292633057, -0.5413931608200073, 1.5005087852478027, -...
def _ _ init _ _ ( self, markers, sample _ time ) : self. markers = markers self. last _ time = none # used to keep track of time between measurements self. q _ t = np. diag ( [ 0. 1, 0. 1 ] ) self. r _ t = np. diag ( [ 0. 01, 0. 01, np. pi / 180 / 2 ] ) # your code here self. sample _ time = sample _ time self. x _ t ...
[ 0.47114259004592896, -0.638436496257782, 0.83985835313797, 0.45177653431892395, 0.3950905203819275, 0.08233247697353363, 0.14359262585639954, 0.2384965568780899, 0.3791181445121765, 0.30543503165245056, -0.7005069851875305, -0.571063220500946, 0.46769431233406067, 0.32842910289764404, -0...
def minimax ( self, grid, alpha, depth = 0 ) : if depth = = 0 : # or time. clock ( ) - 0. 1 > 0 : return sum ( item * item for sublist in grid. map for item in sublist ) mini = float ('inf') cells = grid. getavailablecells ( ) for cell, num in [ ( cell, num ) for cell in cells for num in [ 2, 4 ] ] : gridcopy = grid. c...
[ -0.24285535514354706, -0.04054657742381096, 0.7787334322929382, 0.34211888909339905, -0.2515556216239929, -0.7825214266777039, 0.0022836371790617704, 0.19566486775875092, 0.07894574105739594, 0.22006118297576904, -0.18310154974460602, -0.008676802739501, -1.4201031923294067, 0.786034464836...
def get _ tester _ metadata ( tester _ id ) : persistor = testerpersisor ( ) if not persistor. ensure _ tester _ is _ valid ( tester _ id ) : return io. bad _ request ('tester must have at least one image and video.') tester = persistor. get _ tester ( tester _ id ) if not tester : return io. bad _ request ( f'tester n...
[ -0.5535967350006104, -0.4487801492214203, 0.5470079779624939, 0.46153387427330017, 0.10494662076234818, -0.26994261145591736, 0.2819015383720398, -0.201468363404274, 0.2785120904445648, 0.16972218453884125, 0.22859826683998108, -0.177321657538414, -0.12827272713184357, 1.264717936515808, ...
def pmultiplyt ( self, * args ) : return _ snap. tngraphmtx _ pmultiplyt ( self, * args )
[ -0.21842116117477417, 0.5131317973136902, 0.3397118151187897, -0.2642163932323456, 0.45483070611953735, -0.16765397787094116, 0.08427261561155319, -0.5999088883399963, -1.0336410999298096, 0.3427271246910095, 0.1403723508119583, -0.9419213533401489, -1.0341228246688843, -0.0707098022103309...
def getimages ( self ) - > list [ int ] :...
[ -1.1754313707351685, 0.8288156986236572, 0.4538261592388153, 1.1444144248962402, 1.0805608034133911, -0.817858874797821, 0.7257751822471619, 0.5275536775588989, 0.027436748147010803, -0.5900524258613586, -1.072840690612793, 0.1406719982624054, -0.1843949556350708, 0.8575750589370728, -0....
def searchforw ( self, * args ) : return _ snap. tfltv _ searchforw ( self, * args )
[ -0.6423904299736023, 1.317732572555542, 0.45123615860939026, 0.08799869567155838, 0.7544384002685547, -0.7614062428474426, 0.9937461614608765, -0.4350436329841614, -1.7143174409866333, -1.1792079210281372, 0.35823407769203186, -1.2196238040924072, -0.2771063446998596, 1.8521140813827515, ...
def tnegraph _ new ( * args ) : return _ snap. tnegraph _ new ( * args )
[ -1.1540557146072388, 0.49013233184814453, 0.22639383375644684, -0.6452481150627136, -0.9692763686180115, -0.21946623921394348, 0.21313165128231049, -0.5639296770095825, -1.1533663272857666, 0.9582422971725464, -1.3106091022491455, -1.5498915910720825, 0.7476242780685425, 0.474649578332901,...
def getfltattrdatn ( self, * args ) : return _ snap. tneanet _ getfltattrdatn ( self, * args )
[ -0.5689375400543213, 0.5945051312446594, 0.3610704839229584, -1.0323190689086914, 1.0069360733032227, -0.7268772125244141, 0.27198320627212524, -0.035898517817258835, -0.6117970943450928, -1.4755744934082031, -0.39439988136291504, -0.3805989623069763, 0.9169917702674866, 0.8058304190635681...
def strip _ html ( text ) : soup = beautifulsoup ( text, " html. parser " ) return soup. get _ text ( )
[ -0.28579533100128174, 0.21387405693531036, 0.10551603138446808, 0.029660655185580254, -1.063367486000061, 0.42928534746170044, -0.15033406019210815, 0.5169446468353271, 0.7116572260856628, 0.3731016218662262, -0.5493309497833252, 0.3631303012371063, -0.21280540525913239, -0.524838745594024...
def attrnameni ( self, * args ) : return _ snap. tneanet _ attrnameni ( self, * args )
[ -0.6098783016204834, 0.35690104961395264, 0.015078093856573105, -0.061809927225112915, -0.5617825388908386, -0.45913249254226685, -0.35434719920158386, -0.8805760145187378, -0.5758070945739746, 0.8488466739654541, -0.3104788362979889, -1.162215232849121, 0.45969048142433167, 0.049774080514...
def test _ atomic _ qname _ pattern _ 1 _ nistxml _ sv _ iv _ atomic _ qname _ pattern _ 2 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - pattern - 2. xsd ", instance = " nistdata / atomic / qname / sc...
[ -0.2163919359445572, -0.3602069318294525, 0.5474080443382263, 0.3322437107563019, -0.3893827497959137, 0.5883015394210815, -0.48749276995658875, -0.531675398349762, 0.09101805090904236, 0.3399948179721832, -0.4763338565826416, 0.04585364833474159, 0.24527573585510254, -0.3305368721485138, ...
def _ _ eq _ _ ( self, * args ) : return _ snap. tstrfltvhi _ _ _ eq _ _ ( self, * args )
[ -0.5325452089309692, 0.5079545378684998, 0.14040832221508026, 0.057183731347322464, 0.3779747784137726, -0.23770582675933838, 0.37467965483665466, 0.06747905164957047, -0.792987048625946, -0.8010759949684143, -1.00045907497406, -0.6644385457038879, 0.32282763719558716, 1.7260982990264893, ...
def wx _ animacja ( self, nazwa _ pliku ) : wyniki = [ ] lista = [ ] with open ( nazwa _ pliku ) as f : # jest tylko 1 otawrcie pliku zmiast kazdrazowego przy wywolaniu funkcji klucz _ zab = f. readline ( ) # zbiera klucz zabezpieczajcy klucz _ zab = klucz _ zab. replace ('\ n ','' ) if klucz _ zab! = konfiguracja ['kl...
[ -0.4668712019920349, -0.27418485283851624, 0.4294697940349579, 0.4390569031238556, -1.0523643493652344, 0.4394233822822571, 1.3106882572174072, -0.12862113118171692, -0.7988907098770142, 0.4367573857307434, -0.5286189913749695, 0.023898502811789513, 0.0020233658142387867, 1.268635272979736...
def process _ images ( images _ path, width, height ) : processed _ imgs = [ ] resized _ imgs = [ ] for image _ path in images _ path : img = image. open ( image _ path ) resized _ img = img. resize ( [ width, height ], image. antialias ) resized _ imgs. append ( resized _ img ) processed _ img = np. array ( resized _ ...
[ -0.8062921762466431, -0.047579891979694366, 0.6515893936157227, -0.38530927896499634, 0.47856605052948, -0.5670914649963379, 0.42534521222114563, 0.29898205399513245, -0.27440571784973145, 0.6724739074707031, 0.5254595279693604, -0.33556434512138367, 0.670760989189148, 0.9757524728775024, ...
def test _ atomic _ boolean _ pattern _ 2 _ nistxml _ sv _ iv _ atomic _ boolean _ pattern _ 3 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - pattern - 3. xsd ", instance = " nistdata / atomic / bo...
[ -0.07607659697532654, -0.35824501514434814, 0.5581242442131042, 0.7319650650024414, -0.26299089193344116, 0.7220351099967957, -0.6265786290168762, 0.08420958369970322, -0.11863826215267181, 1.2713038921356201, -0.30016785860061646, 0.3744666576385498, 0.10769958794116974, -0.51929748058319...
def addmerged ( self, * args ) : return _ snap. tcncomv _ addmerged ( self, * args )
[ -0.5348139405250549, 0.47794750332832336, 0.30726784467697144, -0.07289785146713257, 1.815504789352417, 0.3386280834674835, 0.6423925161361694, 0.2236887514591217, -0.08682958036661148, -1.6564887762069702, -1.0898374319076538, -0.5401929020881653, -1.055721640586853, 1.9035812616348267, ...
def tflt _ getinrng ( * args ) : return _ snap. tflt _ getinrng ( * args )
[ 0.2645953297615051, 0.47133898735046387, 0.2267867922782898, -0.31109821796417236, 0.05037809908390045, -0.2187270224094391, 0.01043149083852768, 0.10317564010620117, -1.4813989400863647, -0.14351114630699158, -0.5495958924293518, -0.2704869210720062, -1.064421534538269, 0.6357723474502563...
def norm _ allcolumns _ perday ( df, index _ ='datetime') : df _ = df. copy ( ) index _ values = df _ [ index _ ]. values. copy ( ) df _ [ index _ ] = [ i [ : 10 ] for i in df _ [ index _ ]. values ] df _ = df _. set _ index ( index _ ) for i in sorted ( list ( set ( df _. index. tolist ( ) ) ) ) : df _. loc [ i ] = df...
[ -0.24123477935791016, 0.30708596110343933, 0.9746989607810974, 0.032855208963155746, 0.11341109126806259, 0.1679583638906479, 0.38200843334198, -0.057733193039894104, -0.16413366794586182, -0.21266163885593414, 0.5813382863998413, -0.2614913582801819, 0.973309338092804, -0.4836404919624328...
def test _ constructor ( self ) : assert isinstance ( self. j, jungle )
[ 0.24627585709095, -0.43720483779907227, -0.05938635393977165, 0.39701351523399353, 0.3869435489177704, 0.9228696823120117, 0.7672439217567444, -0.6431185603141785, 0.5645650625228882, -1.5024034976959229, -0.2872166037559509, 0.12033037841320038, 0.015276780351996422, 0.9084964990615845, ...
def transfercookiestoplex ( ) : # this function does nothing atm return import os. path, plistlib filename = os. path. expanduser ( " ~ / library / cookies / cookies. plist " ) try : thelist = plistlib. readplist ( filename ) except ioerror : # hm, okay, whatev, no file or gimpiness, let's bail return cookielist = [ ] ...
[ 0.06376996636390686, 0.1079072505235672, 0.6452418565750122, 0.949682354927063, 0.0966503843665123, -0.1444050520658493, 0.15505914390087128, 0.20474554598331451, 0.346244752407074, 0.25224512815475464, -1.0298283100128174, 0.43944045901298523, -0.5031571984291077, -0.1888069063425064, -...
def test _ atomic _ hex _ binary _ enumeration _ 1 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ enumeration _ 2 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - enumeration - 2. xsd ", instance ...
[ -0.5241990089416504, -0.8777135610580444, 0.6110727190971375, 0.8317956328392029, -0.012988759204745293, 0.07907060533761978, -0.03802148252725601, -0.2019544094800949, -0.6508198976516724, 0.06678308546543121, -0.5403941869735718, -0.3390740156173706, 0.05154288187623024, 0.71412479877471...
def getrndesubgraph _ pngraph ( * args ) : return _ snap. getrndesubgraph _ pngraph ( * args )
[ -0.5152139067649841, 1.6302728652954102, 0.22719252109527588, 0.2760804295539856, -0.6884632110595703, 0.01788698509335518, -0.535946249961853, -0.929837167263031, -0.42090505361557007, -0.8178990483283997, -1.1331382989883423, 0.2873598039150238, -0.44935905933380127, 0.21124328672885895,...
def updategrid ( self, city = none ) : # infect neighbours of those infected based upon individual's r0 infected = self. getinfected ( city = city ) neighboursofinfected = self. getneighbours ( infected, 1 ) infectedpeople = list ( zip ( * infected ) ) [ 2 ] infectedr0s = list ( ) for x in infectedpeople : try : infect...
[ -0.46352407336235046, -1.0899358987808228, 0.9965415596961975, -0.5676465630531311, -0.6454691290855408, -0.0019198959926143289, 0.2986505925655365, 1.1651816368103027, 0.7691559195518494, 0.10377369821071625, 0.5171521306037903, 0.1906159520149231, -0.49345654249191284, 0.3134811818599701...
def setup _ sensors ( self, vehicle, debug _ mode = false ) : bp _ library = carladataprovider. get _ world ( ). get _ blueprint _ library ( ) for sensor _ spec in self. _ agent. sensors ( ) : # these are the sensors spawned on the carla world bp = bp _ library. find ( str ( sensor _ spec ['type'] ) ) if sensor _ spec ...
[ -0.4715889096260071, -0.9270071387290955, 0.7096265554428101, -0.761788547039032, 0.5593570470809937, 0.23741193115711212, 0.023961203172802925, -0.28234660625457764, 0.26827290654182434, 0.5938061475753784, -0.2686852812767029, -0.1393434703350067, -0.03331233933568001, 0.3188803791999817...
def addnodeunchecked ( self, * args ) : return _ snap. tngraphmp _ addnodeunchecked ( self, * args )
[ -0.622040867805481, 0.5932643413543701, 0.4318114221096039, -0.28457018733024597, 1.544715166091919, 0.2987325191497803, 1.0098118782043457, -0.14690415561199188, -0.5063693523406982, -0.7240399718284607, 0.11420157551765442, -0.3681778311729431, -1.4274499416351318, -0.03833872452378273, ...
def get _ object ( url ) : stream = urllib. request. urlopen ( url ) bytes = stream. read ( ) encoding = stream. info ( ). get _ content _ charset ('utf - 8') return json. loads ( bytes. decode ( encoding ) )
[ -0.9049839377403259, -1.3210614919662476, 0.7643918991088867, -0.5581393837928772, -1.1839667558670044, -0.327289879322052, -0.3822096288204193, -0.746133029460907, 0.03743967041373253, 0.13593421876430511, -1.148194670677185, 0.49943679571151733, -0.01268476527184248, -1.4422080516815186,...
def do _ get ( self, url, timeout = none ) : try : resp = requests. get ( url, timeout = timeout ) return resp except exception as ex : # self. _ logger. warning ( " exception in http get towards url = < { } > ". format ( ex ) ) return none
[ -0.2814699411392212, -0.3648725748062134, 0.6263204216957092, 0.13013580441474915, 0.06639440357685089, -0.050095319747924805, -0.9735001921653748, -0.40615156292915344, -0.409063458442688, 0.4562280774116516, 0.1242087259888649, 0.4654560983181, -0.7610124349594116, -0.8164414763450623, ...
def geotiff ( self, * * kwargs ) : if'proj'not in kwargs : kwargs ['proj'] = self. proj return to _ geotiff ( self, * * kwargs )
[ 0.14382314682006836, 0.3531685173511505, 0.15361922979354858, 0.1634339988231659, 0.09266001731157303, 0.753261148929596, -0.3627798855304718, -0.12924863398075104, -0.6428795456886292, 0.377004474401474, -0.5152112245559692, 0.43305015563964844, -1.0751357078552246, 0.1496235579252243, ...
def _ update _ session _ meta ( self ) : self. follower _ cnt = self. _ _ get _ number _ of ( " https : / / www. instagram. com / { } / followers / ". format ( self. user _ id ) ) self. following _ cnt = self. _ _ get _ number _ of ( " https : / / www. instagram. com / { } / following / ". format ( self. user _ id ) ) ...
[ -0.8917984366416931, -0.8328723907470703, 0.4892781376838684, 0.25387996435165405, 0.04769267141819, -0.09403139352798462, 0.09040739387273788, -0.12035804986953735, 0.3799308240413666, 0.48233762383461, -0.41836827993392944, 0.9158192873001099, 0.4982973337173462, -0.08834010362625122, ...
def show _ machine _ info ( ) : def percent ( num ) :'''percentage rounded to one decimal'''return'{ } % '. format ( round ( num, 1 ) ) app. logger. info ('generating information about the server.') data = ordereddict ( ) cpus = os. sysconf ( os. sysconf _ names ['sc _ nprocessors _ onln'] ) data ['number _ of _ cpus']...
[ 0.051017992198467255, 0.7316511273384094, 0.4844457805156708, -0.9934335947036743, -0.26003822684288025, 0.4568384885787964, 0.09229528903961182, 0.15014515817165375, -1.199671983718872, 0.008333548903465271, 0.14854708313941956, 0.1711372584104538, 0.03911082446575165, 1.0011906623840332,...
def addvmerged ( self, * args ) : return _ snap. schema _ addvmerged ( self, * args )
[ -0.4048880338668823, 0.7880944013595581, 0.5993556976318359, 0.6924601197242737, 1.2040451765060425, 0.15568630397319794, 0.23691672086715698, 0.8793368935585022, 0.4876839816570282, -0.41008707880973816, -1.4696632623672485, -0.26661011576652527, -1.2858177423477173, 0.9433373808860779, ...
def get _ streaming _ url ( self ) : return self. streaming _ url
[ -0.013601034879684448, 0.47345685958862305, 0.4303838312625885, 0.8951813578605652, 0.1566256880760193, 1.0278071165084839, 0.29930686950683594, 0.31803131103515625, -0.5918542742729187, -0.09222787618637085, -0.17769593000411987, 1.5299644470214844, -0.7282388210296631, 0.50355064868927, ...
def gradient _ positions ( self, q ) : self. model. params ['forces']. set ( 0. ) self. set _ coords ( q ) self. model. update _ forces ( ) return - self. model. params ['forces']. get ( ). copy ( )
[ -1.3191907405853271, 0.08717719465494156, 0.5355350375175476, -1.4801310300827026, 0.5354617238044739, 0.9912160634994507, 0.1023254543542862, -0.6107273101806641, -0.4467366933822632, -0.0236012302339077, -0.7030122876167297, -0.29400908946990967, -0.8413977026939392, 0.7115359902381897, ...
def load ( self, recordlist ) : validrecords = [ ] # validate and store each of the records that are # greater than zero in length. for record in recordlist : if len ( record. strip ) > 0 : validrecords. append ( record. strip ( ) ) records = validrecords validrecords = none # parse the header records. self. parseheade...
[ -0.15891660749912262, 0.23646187782287598, 0.5330086350440979, -0.0013569035800173879, 0.3003535270690918, -0.24743172526359558, -0.7162749767303467, 0.4587098956108093, -0.05900092422962189, -0.3677578270435333, -0.760658323764801, -0.7327056527137756, -0.4779207110404968, 0.4106328189373...
def print _ log ( text, logfile ) : print ( text ) with open ( logfile,'a') as of : of. write ( text + " \ n " )
[ 1.1670782566070557, -0.7064488530158997, 0.27303534746170044, -0.5075270533561707, -0.16322848200798035, 1.1412912607192993, -0.4965810179710388, 0.193885937333107, -0.7853912711143494, 0.03704290837049484, -0.26212045550346375, 0.6009514331817627, -0.36877551674842834, -0.2438881993293762...
def oauthtokenfromhttpbody ( http _ body ) : token = oauth. oauthtoken. from _ string ( http _ body ) oauth _ token = oauthtoken ( key = token. key, secret = token. secret ) return oauth _ token
[ 0.11148230731487274, -0.8099706768989563, 0.3528502881526947, 0.008729877881705761, -0.17393240332603455, 0.47779902815818787, -0.6600242853164673, 0.46378982067108154, 0.44023531675338745, -0.059728194028139114, -0.5913711786270142, 1.00858473777771, 0.5832241773605347, -0.573522984981536...
def geteigvals ( * args ) : return _ snap. geteigvals ( * args )
[ -1.2642309665679932, 1.0841902494430542, 0.7334140539169312, 0.7885465621948242, 0.5807219743728638, 0.40278246998786926, 0.5448093414306641, -0.42362669110298157, -0.7935557961463928, -0.45383185148239136, -0.6912804841995239, -0.7566391825675964, -0.8361393213272095, 0.7247836589813232, ...
def _ _ do _ mb _ request ( self, request, * args, * * kwargs ) : mb _ meta = none for i in range ( retry ) : try : mb _ meta = request ( * args, * * kwargs ) break except ngs. responseerror as e : raise e except ngs. networkerror : # can't reach the musicbrainz server - wait 10 seconds and try again time. sleep (. 2 )...
[ -0.6977728605270386, -0.0076594362035393715, 1.01145339012146, 0.19641947746276855, 0.7708730697631836, -0.44636639952659607, -0.7900837659835815, -0.6241623163223267, 0.13990245759487152, 0.051143549382686615, 0.937414824962616, 0.5378366708755493, -0.7026891708374023, -0.7995758652687073...
def exec _ cmd ( cmd ) : proc = popen ( cmd, shell = true, stdout = pipe, stderr = pipe ) output, error = proc. communicate ( ) if proc. returncode! = 0 : print " failed to execute : " print str ( cmd ) print " error message : " print str ( error ) print str ( output ) return output, proc. returncode
[ 0.2761671245098114, -1.1041303873062134, 0.6839067935943604, 0.04124836623668671, -0.30063432455062866, 0.020458007231354713, -0.14157187938690186, 0.5529170632362366, -0.5076272487640381, -0.2673429548740387, 0.36944499611854553, 0.047393929213285446, 0.11337438225746155, 0.14605677127838...
def make _ gh ( api _ url = none ) : if api _ url is none : api _ url = github _ api _ url import keyring # for some reason this doesn't play nicely with threads on lazy import. gh = none token = keyring. get _ password ( api _ url,'token') if token is none : click. echo ('no saved github token found in keychain, lets ...
[ 0.019937120378017426, 0.34102293848991394, 0.5524837970733643, 0.42942360043525696, 1.0434393882751465, 0.12623561918735504, -1.060968041419983, -0.24888406693935394, 0.08387447148561478, -0.6691862940788269, -0.5295441746711731, 0.16159434616565704, -0.777306854724884, -0.3760599792003631...
def on _ update ( self, count ) : self. _ logger. info ( " update count : % s " % count )
[ 0.37138843536376953, -1.1610971689224243, 0.4198238253593445, 0.1115342378616333, -0.37556329369544983, -0.33439236879348755, -0.6171348690986633, -0.2330537885427475, -0.7657842636108398, 0.7191157937049866, -1.1234554052352905, -0.1362069845199585, 0.26399415731430054, -0.322350502014160...
def data _ sources ( self ) - > list [ reqbodydatasources ] : return self. _ data _ sources
[ -0.7207422852516174, 0.37479057908058167, -0.07250260561704636, -0.3029640316963196, 0.9707577228546143, 0.7071819305419922, -0.6594652533531189, 0.13875597715377808, 1.1347910165786743, -0.9412742853164673, -1.4890532493591309, 0.30882808566093445, -0.16875915229320526, 0.8783267736434937...
def isin ( self, * args ) : return _ snap. tintprv _ isin ( self, * args )
[ -1.3711661100387573, -0.5550032258033752, 0.7237292528152466, 0.2234625667333603, -0.13722369074821472, 0.2929168939590454, -0.08221250027418137, 0.8318685293197632, -0.6024869680404663, -0.6521100401878357, -0.7228313088417053, 0.5419583320617676, -1.903861165046692, -0.1650169938802719, ...