text
stringlengths
25
2.19k
embedding
listlengths
768
768
def _ _ init _ _ ( self, * args ) : _ snap. tgstat _ swiginit ( self, _ snap. new _ tgstat ( * args ) )
[ 0.40505897998809814, 0.7966786623001099, -0.17227007448673248, -0.894923210144043, -0.22626012563705444, -0.025451626628637314, 0.9062124490737915, -0.6117331981658936, -0.9793745279312134, -0.10084408521652222, -0.9654593467712402, -0.7879951000213623, 0.1885615885257721, 1.01251292228698...
def deletvalues ( self, channel _ id, stream _ id ) : self. cursor. execute ('delete from chat _ log where channel _ id =? and stream _ id =? ', ( channel _ id, stream _ id ) )
[ 1.3903194665908813, -0.8196966052055359, 0.4983358085155487, -0.6256392598152161, 0.18139208853244781, 0.0006421314901672304, -1.2993943691253662, -0.41752392053604126, -0.8187007904052734, 0.5154170393943787, 0.3314674198627472, 1.628378987312317, -0.0925370380282402, 0.4002883732318878, ...
def makingsandwiches ( bread, ingredients ) : print ( f'we have { bread } available today.') ingredients. append ( input ('please enter your bread selection :') ) ingredients. append ( input ('please provide the items you would like on your sandwich :') )
[ -0.681612491607666, -0.4956703782081604, 0.3349156379699707, 0.6780785322189331, -0.06147116795182228, 0.28869470953941345, -0.31443294882774353, 0.6599963903427124, -0.22221703827381134, -0.4512965679168701, 0.09547323733568192, 1.0361659526824951, 0.2868708372116089, 0.8033190369606018, ...
def is _ path _ length _ leq _ k ( graph, node1, node2, k ) : try : path _ length = nx. shortest _ path _ length ( graph, node1, node2 ) if path _ length > k or path _ length is - 1 : return false except nx. networkxnopath : return false return true
[ 0.5955280661582947, -0.019799066707491875, 0.44411006569862366, 0.9570331573486328, -0.002401751698926091, 0.6957406401634216, -0.9800803661346436, 0.785508394241333, -0.12019101530313492, 0.7021975517272949, -0.39085790514945984, -0.8332110643386841, 0.020814092829823494, 0.32120215892791...
def admin _ reset _ user _ password ( userpoolid = none, username = none ) : pass
[ -0.3924720585346222, 0.03453097864985466, 0.025594208389520645, 1.198287844657898, 0.2575214207172394, -0.2050745040178299, 1.3840142488479614, -0.5187787413597107, -0.06273627281188965, 1.1026076078414917, -0.8461741805076599, 2.2411458492279053, -0.7433828115463257, -0.5363562703132629, ...
def ck _ agg ( a, log ) : try : agg = int ( a ) except typeerror : log. error ('" agg _ level " parameter must be either 1 or 2. exiting...') raise validationexception if agg < 1 or agg > 2 : log. error ('" agg _ level " parameter must be either 1 or 2. exiting...') raise validationexception else : return agg
[ -0.08906107395887375, 0.9058811068534851, 0.6673619151115417, 0.6003351211547852, -0.8045045733451843, 0.08516960591077805, 1.130057454109192, -0.15755467116832733, -1.1752674579620361, 1.1178276538848877, 1.2902839183807373, 0.7040930986404419, -0.6161317825317383, 1.029366374015808, 1....
def getlampinfo ( self, metadata ) : if metadata is none : raise runtimeerror ( " cannot determine lamp information because metadata was not provided " ) lamps = getlamps ( metadata ) lampelements = getlampelements ( metadata ) if self. config. assumesky or not lamps : if self. config. assumesky or self. config. assume...
[ -0.9039990901947021, 0.35276612639427185, 0.37425243854522705, -0.15219299495220184, -0.6974636912345886, 0.6543821096420288, -0.7258096933364868, -0.6230353116989136, 0.3378780782222748, -0.4316469430923462, 0.03944193199276924, -0.046084798872470856, 0.028514908626675606, 0.5953395366668...
def create _ close _ button ( self ) : self. close _ button = qtwidgets. qpushbutton ( " close app ", self ) self. close _ button. setobjectname ( " close _ button " ) self. close _ button. setstylesheet ( widget _ styles. close _ button _ stylesheet ) self. close _ button. setfixedwidth ( 100 ) self. close _ button. s...
[ 0.20877641439437866, 0.19184404611587524, 0.5413033962249756, -0.0036362081300467253, 0.014148419722914696, 1.3911263942718506, -0.5915333032608032, -0.17440855503082275, -0.13410300016403198, 0.6410975456237793, 0.10596880316734314, -0.1952006071805954, 0.10652308166027069, 0.698854506015...
def addcomponent ( self, c ) : self. components. add ( c ) if isinstance ( c, ( proposition, ) ) : self. propositions. add ( c )
[ -0.13719744980335236, -0.8109800815582275, 0.6917299032211304, -0.40742307901382446, 0.6105931997299194, 1.3755830526351929, -0.09377562254667282, 0.2667863070964813, 0.46835681796073914, -0.745553731918335, 0.6428715586662292, -0.5278562903404236, -0.3115800619125366, 0.7380037307739258, ...
def check _ number _ of _ results ( queue _ size, component _ analysis _ count, stack _ analysis _ count ) : log. info ( " queue size : { size } ". format ( size = queue _ size ) ) expected = component _ analysis _ count + 2 * stack _ analysis _ count if queue _ size! = expected : log. warning ( " warning : { expected ...
[ 0.775084376335144, 0.3220847547054291, 0.5666971802711487, -0.08070410043001175, 0.8168401718139648, -0.37359917163848877, 0.13320985436439514, -0.08274814486503601, -0.1881704330444336, -0.6731954216957092, 0.35120463371276855, 0.37864139676094055, 0.4445614814758301, 0.8502662777900696, ...
def input ( self ) : return self. _ input _ node
[ -0.3547595739364624, -0.4074311852455139, 0.36670830845832825, -0.1685437560081482, -0.5289247632026672, 1.4951585531234741, 1.5178372859954834, 0.17306819558143616, 0.6563376188278198, -0.8630326986312866, 0.43758440017700195, 1.567793369293213, -0.7150986194610596, -0.8836072683334351, ...
def changecontext ( self, * args ) : return _ snap. ttable _ changecontext ( self, * args )
[ -1.6738001108169556, 0.8383376002311707, 0.7649046778678894, 0.6325487494468689, 0.3742065727710724, -0.13316023349761963, 1.1054470539093018, 0.07519031316041946, -1.1371341943740845, 0.8137192130088806, -0.6744546294212341, -0.204249769449234, 0.09591980278491974, 0.8569093942642212, -...
def defrag ( self, onlynodelinks = false ) : return _ snap. pngraph _ defrag ( self, onlynodelinks )
[ -0.7276880741119385, 1.6497187614440918, 0.249656543135643, 0.42773503065109253, 0.6222301721572876, -0.3367300033569336, 1.1340116262435913, 0.19059507548809052, -0.15446729958057404, -1.3972331285476685, -0.0494435615837574, -0.07255349308252335, -0.1588411182165146, 1.031355857849121, ...
def connect _ producer ( self, bootstrap _ servers ='127. 0. 0. 1 : 9092 ', client _ id ='robot ', * * kwargs ) : self. producer = kafkaproducer ( bootstrap _ servers = bootstrap _ servers, client _ id = client _ id, * * kwargs )
[ 0.13992007076740265, -0.09952100366353989, 0.4092819094657898, 1.1135191917419434, -0.5483304858207703, -0.44695547223091125, -0.6479984521865845, -0.2672514319419861, -0.11292091757059097, 0.32489317655563354, -0.012795669957995415, 0.5958994626998901, -0.47323086857795715, 0.021650405600...
def bfs ( self, v _ start, v _ end = none ) - > [ ] : result = [ ] que = [ ] que. insert ( 0, v _ start ) if v _ start > = len ( self. adj _ matrix ) or v _ start < 0 : return result while que! = [ ] : cur = que. pop ( ) if cur not in result : result. append ( cur ) i = 0 temp = [ ] while i < len ( self. adj _ matrix [...
[ 0.19715070724487305, -0.2408064305782318, 0.7716756463050842, 0.875169038772583, 0.5841707587242126, -0.16911335289478302, -0.4608888626098633, -0.03736346215009689, 0.42542746663093567, 0.7310623526573181, 0.1128397136926651, 1.0951025485992432, -1.2559597492218018, 0.1056324765086174, ...
def add _ item _ to _ bag ( request, product _ id ) : # incase object isn't found shop _ product = get _ object _ or _ 404 ( product, pk = product _ id ) qty = int ( request. post. get ('quantity') ) redirect _ url = request. post. get ('redirect _ url') shopping _ bag = request. session. get ('bag ', { } ) if product ...
[ -1.3911012411117554, -0.7777421474456787, 0.6202878952026367, 1.3435028791427612, 0.927606463432312, 1.220564603805542, 0.1200512945652008, -1.1274454593658447, 1.3513407707214355, -0.22004008293151855, -0.9493603706359863, -0.022476451471447945, 0.543766975402832, 0.2113751769065857, -0...
def getunidevuint64 ( self, range = 0 ) : return _ snap. trnd _ getunidevuint64 ( self, range )
[ -1.3476427793502808, 0.8667498826980591, 0.24007682502269745, 0.8051233291625977, 1.7195850610733032, -0.24225810170173645, 0.18650396168231964, 0.15950414538383484, -0.16747809946537018, -1.749840497970581, 0.17747032642364502, -0.8595858216285706, -0.2676994502544403, 0.2302878350019455,...
def begin _ custom _ environment _ action ( self, project _ name : str, environment _ name : str, body : union [ json, io ], user _ id : str = " me ", * * kwargs : any ) - > lropoller [ none ] : _ headers = case _ insensitive _ dict ( kwargs. pop ( " headers ", { } ) or { } ) _ params = kwargs. pop ( " params ", { } ) ...
[ -0.16067469120025635, -0.33914297819137573, 0.8933630585670471, -0.39314359426498413, -0.16399502754211426, -0.22230909764766693, 0.2516520619392395, -0.5333960056304932, -0.31646063923835754, 0.7408713698387146, -0.061686232686042786, 1.206020474433899, 0.12928614020347595, 0.087943911552...
def description ( self ) : return " crops the image with the specified arguments "
[ 0.12250307202339172, 0.35519227385520935, 0.43749094009399414, -0.24938079714775085, 0.5710145235061646, -0.09108270704746246, -0.4993588328361511, 0.1643613874912262, -0.4510837197303772, 1.171339988708496, 1.1013219356536865, 0.38318949937820435, 0.1446358859539032, 0.15455909073352814, ...
def schema _ getv ( * args ) : return _ snap. schema _ getv ( * args )
[ -0.5427058935165405, 0.36115357279777527, 0.5600692629814148, 1.353581190109253, 0.4914630651473999, -0.3296227753162384, 0.40666818618774414, 0.6518414616584778, -0.06265853345394135, -0.12994049489498138, -0.39413172006607056, 1.1314260959625244, -0.021997878327965736, -0.328019082546234...
def _ _ init _ _ ( self, * args ) : _ snap. tstrstrvhi _ swiginit ( self, _ snap. new _ tstrstrvhi ( * args ) )
[ -0.00451638363301754, -0.34750837087631226, 0.09069962054491043, -0.7955707907676697, 0.05919826403260231, -0.22088623046875, 0.5130354166030884, 0.044251348823308945, -1.5719349384307861, -0.21092237532138824, -0.9785609245300293, -0.37015658617019653, -0.8873273730278015, -0.380022436380...
def can _ rotate _ c ( self ) : right _ m = self. get _ right ( ) right _ m - = self. gridsize # right m becomes the most bottom block if not self. can _ move _ d ( right _ m ) : return false up _ m = self. get _ up _ coord ( ) up _ m - = self. gridsize # up most block becomes the rightmost block if not self. can _ mov...
[ -0.2266705334186554, 0.4521348774433136, 1.026387095451355, 0.5119929909706116, -0.44298967719078064, -0.19666875898838043, 0.841488778591156, -0.7038288712501526, -0.7919690608978271, -0.16180965304374695, -0.39375728368759155, -0.03756583109498024, -1.2391244173049927, 0.1516494750976562...
def getnodeoutdegv _ pngraph ( * args ) : return _ snap. getnodeoutdegv _ pngraph ( * args )
[ -1.6906524896621704, 1.3596473932266235, 0.2206975519657135, -0.6106114387512207, -0.5201373100280762, -0.13934370875358582, 0.15098468959331512, -0.5154302716255188, -1.1455658674240112, -0.2866904139518738, -0.02341540902853012, 0.12182261794805527, 0.2884843647480011, -0.067342720925807...
def get _ current ( ) : try : return applicationround. objects. get ( is _ active = true ) except applicationround. doesnotexist : return none
[ 1.0593876838684082, -1.3473374843597412, 0.5397112369537354, 0.19177015125751495, 0.7027985453605652, -0.04400504752993584, 0.08876422047615051, -0.7769121527671814, -0.4042316675186157, 0.6052846312522888, 0.9475914835929871, 0.8997973203659058, -0.5819572806358337, -0.24616998434066772, ...
def _ _ eq _ _ ( self, * args ) : return _ snap. tintprstrvhi _ _ _ eq _ _ ( self, * args )
[ -1.0194672346115112, -0.05549422279000282, 0.32792502641677856, -0.06977593153715134, 0.15659508109092712, 0.1108158677816391, 0.3963998258113861, 0.012069802731275558, -0.8370289206504822, 0.34243330359458923, -1.5849175453186035, -0.21770736575126648, -1.0259666442871094, 0.5999400019645...
def _ _ init _ _ ( self, parent, d ) : self. _ _ d = d a = parent. diamond _ bracket _ matrix ( d ) heckealgebraelement _ matrix. _ _ init _ _ ( self, parent, a )
[ 0.30353859066963196, 0.2736806571483612, 0.5074406862258911, 0.4651024639606476, -0.08413288742303848, 0.6509677171707153, 1.076425552368164, 0.10899724066257477, 0.5058673620223999, -1.539033055305481, -0.13348796963691711, 0.26152294874191284, 0.5237753987312317, 1.267274260520935, 0.5...
def insert ( self, new _ element, position ) : new _ element. next = self. get _ position ( position + 1 ) self. get _ position ( position - 1 ). next = new _ element self. length + = 1
[ -0.6634580492973328, 0.3778395354747772, 0.4873037338256836, 0.16449759900569916, 0.30945736169815063, 0.38358861207962036, -0.2924705743789673, 0.7360376715660095, -0.10079299658536911, 0.4971067011356354, -1.4965307712554932, -0.0664491057395935, -1.4155473709106445, 0.5721906423568726, ...
def _ _ eq _ _ ( self, other ) : if isinstance ( other, ( int, float ) ) : return np. equal ( self. val, other ) elif isinstance ( other, reverse ) : return np. equal ( self. val, other. val ) else : raise typeerror ( " please only compare reverse object with another reverse object or int or float. " )
[ -0.8195473551750183, -0.4252800941467285, 0.8565890192985535, 0.08594004809856415, 0.7438027858734131, 0.36650922894477844, 0.19691593945026398, -1.0274640321731567, 0.3311701714992523, 0.042438264936208725, -0.0535772442817688, 0.9715033173561096, -0.31489795446395874, 0.00237390608526766...
def test _ is _ stereo _ 2 ( ) : assert not mono _ 22050 _ 16bits. is _ stereo ( )
[ 0.303535521030426, 0.49230363965034485, 0.3737720251083374, 2.121464729309082, 0.6350017786026001, 0.49483320116996765, 0.6711304783821106, -0.9895333647727966, 0.7728145122528076, -0.9436805248260498, -1.2761484384536743, 0.6938879489898682, -0.3476909101009369, -0.3674093782901764, -0....
def test _ compute _ add ( test _ client ) : data = {'value1': 1,'value2': 2 } url ='/ compute / add'response = test _ client. post ( url, json = data ) assert response. status _ code = = 200 assert response. data = = b'3 \ n '
[ -0.3770994544029236, 0.8982653617858887, 0.6627955436706543, 0.5564347505569458, 1.0561954975128174, 0.9340885281562805, -0.8550356030464172, 0.035164725035429, -0.7381609082221985, -0.21090523898601532, -0.5802217125892639, 0.19996313750743866, -0.30029749870300293, 0.10765351355075836, ...
def get _ button _ for _ template ( self, name ) : return ( name, button _ text [ name ], self. get _ button _ class ( name ) )
[ -1.100990653038025, -0.637470006942749, 0.4333380162715912, -0.2700705826282501, -0.5865565538406372, 0.0720018520951271, -0.8307733535766602, -0.029092226177453995, -0.7220604419708252, 0.2838711142539978, -1.8535016775131226, -0.9852911829948425, 0.45176661014556885, 0.22775673866271973,...
def loadedgelist _ pngraph ( * args ) : return _ snap. loadedgelist _ pngraph ( * args )
[ -1.4735935926437378, 1.4027422666549683, 0.2061389982700348, -0.31933268904685974, -0.5501421093940735, -0.02645201049745083, -0.4529811143875122, -0.4344574511051178, 0.37919914722442627, 0.13820931315422058, -1.2979578971862793, -0.0041612666100263596, -0.4543319642543793, 0.692594528198...
def sortbykey ( self, asc = true ) : return _ snap. tintflth _ sortbykey ( self, asc )
[ 0.06539686024188995, 0.22752459347248077, 0.022864636033773422, 0.26399070024490356, 0.15659865736961365, -0.3205695152282715, 0.5619529485702515, -0.33855921030044556, -0.985463559627533, -0.29068678617477417, -0.556393563747406, -0.33880290389060974, -1.2217605113983154, 0.87022197246551...
def get _ gdp _ data ( ) : with open ( f _ dir + f _ name ) as f : data _ list = list ( csv. reader ( f ) ) [ 4 : 57 ] column _ name = data _ list [ 0 ] [ 1 : ] column _ name = [ column _ name [ 0 ] ] + ['y'+ str ( year ) for year in column _ name [ 1 : ] ] column _ data = [ data [ 1 : ] for data in data _ list [ 1 : ]...
[ -0.9522388577461243, -0.315317302942276, 0.9208973050117493, -0.024448547512292862, 0.3630067706108093, 0.6936737298965454, -0.1113027036190033, 0.3879123032093048, -0.3861279785633087, 0.4858914613723755, -1.2333155870437622, 0.8995231986045837, 1.0138912200927734, -0.1569438874721527, ...
def setupenvironment ( self, codesetup ) : codesetup. setupenvironment ( self )
[ -0.5646795630455017, -0.2775105834007263, 0.12862375378608704, -0.08516614139080048, 0.4262736439704895, 0.0751618817448616, 1.3331489562988281, 0.46749693155288696, -0.08095026016235352, 0.26555874943733215, 0.07460226118564606, 0.1871686726808548, -0.3103688657283783, 1.026813268661499, ...
def create _ widgets ( self ) : self. master. title ( " tasker " ) self. menubar = taskermenubar ( self ) self. menubar. pack ( side = " top ", fill = tk. x, expand = false ) self. buttonbar = taskerbuttonbar ( self, size = 28 ) self. buttonbar. pack ( side = " top ", fill = tk. x, expand = false ) self. treeview = tas...
[ 0.09109865128993988, 0.7341641187667847, 0.799584686756134, 0.5157480835914612, -0.15568770468235016, 0.2241019606590271, 0.7296083569526672, -0.13640575110912323, -0.8333449363708496, -0.27981722354888916, -0.341254323720932, -0.9058675169944763, 0.21927055716514587, 1.735548734664917, ...
def reset ( self ) : self. _ grid = [ [ 0 for _ in range ( self. _ width ) ] for _ in range ( self. _ height ) ] self. new _ tile ( ) self. new _ tile ( )
[ -0.46452653408050537, 0.09961782395839691, 0.3706128001213074, 0.2362646609544754, 0.8328227996826172, -0.6694495677947998, 0.2940673530101776, -0.2701466381549835, -1.2052922248840332, 0.014145192690193653, -0.4407300651073456, 1.1543277502059937, -0.34380027651786804, 0.5609834790229797,...
def a ( self ) : return self. adc
[ 0.011780202388763428, -1.0647107362747192, 0.3950789272785187, -1.0501494407653809, 0.24171499907970428, 0.17780178785324097, 1.2173811197280884, -1.0328006744384766, 0.9800914525985718, -1.0816364288330078, 1.4855269193649292, 1.6306366920471191, 0.16991758346557617, 0.17155900597572327, ...
def test _ get _ command _ for _ testrunner _ normal _ ssh ( self ) : executor = self. real _ executor executor. stand _ alone = false command = executor. _ get _ command _ for _ testrunner ( ) self. _ assertcommandcontains ( command, " testrunner - lite " ) self. _ assertcommandcontains ( command, " root @ 192. 168. 2...
[ 0.14224810898303986, -0.014063309878110886, 0.44929206371307373, 0.8533082604408264, 0.6654637455940247, 0.1648474484682083, 0.0780281350016594, 0.2632122039794922, -0.38172072172164917, -0.915145993232727, 0.047044891864061356, 0.5904306173324585, 0.25885793566703796, 1.0490708351135254, ...
def test _ example _ input _ two _ checked _ example _ checkbox ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input two " ) input _ page. entity...
[ 0.03154470771551132, 0.27316832542419434, 0.4898982346057892, 0.9174106121063232, 0.6431111097335815, 0.9287140965461731, -0.0007281231810338795, 0.11427117139101028, -0.037092700600624084, -0.04648245871067047, -0.6074591279029846, 0.2768822908401489, 0.4520197808742523, 0.013476918451488...
def get _ plugin _ config ( ) : return json. loads ( os. getenv ( " dku _ plugin _ config " ) )
[ -0.9547154307365417, -0.4681619107723236, 0.33433297276496887, 0.12015612423419952, -0.7930479049682617, -1.0979164838790894, -0.8851335644721985, -0.016243677586317062, -0.6171831488609314, 0.8520737886428833, -1.4611587524414062, 0.738023579120636, -0.22837412357330322, 0.020940937101840...
def _ _ init _ _ ( self, params ) : self. cell _ type = params ['cell _ type'] self. num _ units = params ['num _ units'] self. enc _ layers = params ['num _ encoder _ layers'] self. dec _ layers = params ['num _ decoder _ layers'] self. embeddings = params ['embeddings'] self. word2int = params ['word2int'] self. voca...
[ 0.5322563648223877, -0.06984210759401321, 0.6727818846702576, 0.7008111476898193, 0.338076114654541, -0.32665687799453735, 0.021304478868842125, -0.17171765863895416, -0.6567149758338928, 0.27557259798049927, 0.07732079178094864, 0.9328368306159973, 0.1665506362915039, 1.1734470129013062, ...
def _ action _ senddao ( self ) : # enqueue self. _ action _ enqueuedao ( ) # the root now knows a source route to me # i can serve as join proxy : start sending dios and ebs # i can send data back - and - forth with an app self. mote. tsch. startsendingebs ( ) # mote self. mote. app. startsendingdata ( ) # mote # sche...
[ 0.31095972657203674, -0.24978849291801453, 0.5746462941169739, 0.33734777569770813, 0.23712147772312164, 0.02506413497030735, 0.7718305587768555, 1.0221092700958252, 0.535854160785675, -0.22176116704940796, -0.6790964007377625, 0.8545648455619812, 1.1050175428390503, 0.8256417512893677, ...
def cli ( ) : try : # generate the builder object builder = builder ( config [ " file _ path " ] ) logger = builder. get _ logger ( ) result = none # check the account logger. debug ('checking account...') username = builder. get _ carto _ username ( ) logger. debug ('working with { } user '. format ( username ) ) # fi...
[ 0.7432926893234253, 0.12429913878440857, 0.7595943212509155, 1.2391945123672485, 0.5183941125869751, -0.1308119148015976, 0.3727825880050659, -0.09872104227542877, -0.3219511806964874, -0.37437787652015686, 0.2215123474597931, 0.36624640226364136, -0.0915159061551094, -0.14315716922283173,...
def xmlparse ( self, text ) : return xml ( text )
[ 0.4171827733516693, -0.7029703855514526, -0.0014852742897346616, 0.029731472954154015, -1.2247085571289062, 0.5123275518417358, -1.4240870475769043, 0.49050530791282654, 1.1121577024459839, -1.7656936645507812, 0.4069368243217468, -0.7309702634811401, -1.020780086517334, -0.729304015636444...
def _ _ init _ _ ( self, x, y, kernel, optimize = false, niter = 100 ) : self. x = x self. y = y self. kernel = kernel self. mean _ vector = np. array ( [ self. kernel. mean ( xm ) for xm in self. x ] ) if optimize = = true : self. optimize ( ) self. cov _ matrix = np. matrix ( [ [ kernel. cov ( xm, xn ) for xm in x ] ...
[ -0.06996005773544312, 0.5189224481582642, 0.664863646030426, 0.8550350069999695, 0.14166729152202606, -0.6401302218437195, -0.8125776648521423, 0.33776259422302246, -0.6848536729812622, 0.15558351576328278, -0.3458431363105774, 0.1978714019060135, -0.2673972547054291, 0.3836156129837036, ...
def creategknewservicerequestmessage ( self, correctlyformatted = true ) : path _ descriptors ='/ plugins / son - mano - service - lifecycle - management / test / test _ descriptors /'nsd _ descriptor = open ( path _ descriptors +'sonata - demo. yml ','r') vnfd1 _ descriptor = open ( path _ descriptors +'firewall - vnf...
[ -0.24281342327594757, -0.35134726762771606, 0.47269076108932495, -0.3245668113231659, -0.28100892901420593, -0.7119528651237488, -0.3896465301513672, -0.5825062990188599, -0.5120719075202942, 0.20273074507713318, 0.25378379225730896, 0.5824325680732727, -0.2324131578207016, 0.5770488381385...
def parse _ encryption _ algorithms _ list _ from _ file ( file _ path ) : with open ( file _ path,'r') as sc _ file : ciphersuites = [ line. strip ( ). split ('' ) for line in sc _ file. readlines ( ) ] ciphersuites = [ ciphersuite [ 1 ] for ciphersuite in ciphersuites if len ( ciphersuite ) > 1 ] print ( f'total ciph...
[ -0.04958315193653107, -0.5663936734199524, 0.4914892315864563, 0.33156314492225647, -0.3698180913925171, 0.6377016305923462, 0.19538414478302002, 0.4518669545650482, 0.35339176654815674, 1.715850591659546, -1.1305128335952759, 0.11779521405696869, 0.004526843316853046, 0.25317129492759705,...
def bantix _ download ( self, download = true ) : if download : self. download _ data ('bantix')
[ 1.016190767288208, -0.6167769432067871, 0.09627669304609299, 1.0237187147140503, 0.35912469029426575, 0.7991746068000793, -0.25981268286705017, 0.029514707624912262, -0.05829991027712822, 0.07564390450716019, -0.39876335859298706, 0.8455600738525391, -0.4787077307701111, -0.242377907037734...
def getweightedpagerankmp ( * args ) : return _ snap. getweightedpagerankmp ( * args )
[ -0.03642747178673744, -1.0425727367401123, 0.43310075998306274, 0.19229091703891754, 1.065354824066162, 0.11571937799453735, 0.34025314450263977, -0.09781207889318466, 0.051447127014398575, -0.1176089197397232, 0.3377733528614044, -0.36839812994003296, -1.9107731580734253, 0.90169095993041...
def test _ atomic _ boolean _ pattern _ 3 _ nistxml _ sv _ iv _ atomic _ boolean _ pattern _ 4 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - pattern - 4. xsd ", instance = " nistdata / atomic / bo...
[ -0.1679099202156067, -0.4282661974430084, 0.5261749029159546, 0.6749274730682373, -0.38944464921951294, 0.34874778985977173, -0.29663440585136414, -0.1676032990217209, -0.626269519329071, 0.8832064867019653, -0.5054184794425964, -0.13976791501045227, -0.06934289634227753, -0.48264798521995...
def _ waitforstatusnotrunning ( self ) : # we wait slightly longer than the status check sleep time. time. sleep ( 2. 0 ) time _ slept = 2. 0 while self. _ status _ is _ running : time. sleep ( 0. 5 ) time _ slept + = 0. 5 if time _ slept > = self. _ process _ join _ timeout : break
[ 0.17192146182060242, -0.7043097019195557, 0.18627962470054626, 0.2834659814834595, -0.2146698385477066, 1.0716460943222046, -0.4044906497001648, 0.042088013142347336, -1.252424716949463, -0.6662523150444031, 0.09374300390481949, -0.26204246282577515, -0.8417789340019226, 0.5119717121124268...
def cntselfedges _ pungraph ( * args ) : return _ snap. cntselfedges _ pungraph ( * args )
[ -0.4005804657936096, 0.20243290066719055, 0.1267096996307373, 0.284533828496933, -0.41502147912979126, -0.8214151859283447, 1.1897070407867432, 0.6899726390838623, 0.18087729811668396, 0.4030657410621643, -1.4846794605255127, -0.3951740264892578, -0.2535545229911804, 0.2048046588897705, ...
def trunc ( self, * args ) : return _ snap. tintintvv _ trunc ( self, * args )
[ -0.14241406321525574, 0.41281071305274963, 0.49316883087158203, 0.3033768832683563, 0.5602135062217712, 0.2644879221916199, 0.7359821796417236, 0.0007530604489147663, -0.2700737714767456, 0.008417443372309208, -0.1392296552658081, 1.7234628200531006, -0.6051757335662842, -0.298796027898788...
def random _ policy ( state ) : print ( " random policy " ) action = { " command " : random. choice ( [ 0, 1, 2, 3 ] ) } return action
[ -0.5942950248718262, -0.24478194117546082, 0.16011925041675568, -0.4974968731403351, 0.4113680422306061, 1.0574642419815063, -0.3404408097267151, -0.13779880106449127, 1.4536103010177612, 0.07742458581924438, -1.0370770692825317, -0.14311940968036652, 0.024236679077148438, -0.2756523787975...
def check _ output ( command _ args, encoding = none ) : assert encoding assert command _ args [ 2 ] = ='download'competition _ or _ dataset = command _ args [ - 1 ] if err _ msg : raise subprocess. calledprocesserror ( 1, command _ args, err _ msg ) out _ dir = command _ args [ command _ args. index ('- - path') + 1 ]...
[ -0.34675276279449463, -0.5888779759407043, 0.7815752029418945, -0.17451229691505432, 0.10075953602790833, 0.12755779922008514, 0.7854074239730835, -0.33243367075920105, -0.7083383798599243, 0.5249120593070984, 1.1224225759506226, 0.21927742660045624, 0.07912813127040863, -0.067797139286994...
def owl _ test ( ) : import owlready2 onto = owlready2. get _ ontology ( base _ iri = " master. rdf " ) onto. _ load ( ) get _ ontology ( " master. rdf # " ) with onto : class drug ( owlready2. thing ) : pass # class constructors def constructor ( self, arg ) : self. constructor _ arg = arg def define _ class ( name, a...
[ 0.250030517578125, -0.13851748406887054, 0.6858397126197815, -0.2897528111934662, 0.7187234163284302, -0.029557092115283012, -0.2780975103378296, 0.2659083902835846, 0.3492105007171631, -0.43540289998054504, -0.7249938249588013, 0.7722682952880859, 0.22484087944030762, -0.13630454242229462...
def has _ dirs ( self ) : raise notimplementederror
[ -0.5424222350120544, 0.7029401063919067, 0.6571050882339478, 0.9156201481819153, 0.29290327429771423, 0.425711065530777, 0.7251632213592529, 0.5279995799064636, 0.5533801317214966, -1.0347983837127686, -0.3498860001564026, -0.5732789635658264, 0.36129164695739746, 1.1617047786712646, -1....
def explain ( self, request : dict [ str, any ] ) - > str : return " the'{ }'model serving function named'{ }'". format ( self. model. name, self. name )
[ -0.6575013995170593, 0.19665805995464325, 0.5174000263214111, -1.1590226888656616, -0.1855800598859787, 0.06390389800071716, 0.0004282117006368935, -0.5054095983505249, -0.7313851714134216, -0.06933247298002243, 0.32851019501686096, 0.6177712082862854, 0.5456143021583557, 0.501740396022796...
def read ( self ) : if isinstance ( self. comm, serial. serial ) : # decode from bytes then strip return self. comm. read ( 1000 ). decode ( ). strip ( ) elif isinstance ( self. comm, telnetlib. telnet ) : return self. comm. read _ eager ( ) elif self. comm = = 1 and len ( self. config ['galil'] ['simulategalil'] ) : r...
[ 0.16713978350162506, -0.046122677624225616, 0.5893202424049377, -0.19483941793441772, -0.26870521903038025, 0.36093369126319885, -1.1182680130004883, -0.7528841495513916, 0.6069798469543457, -0.2299925535917282, 1.0841925144195557, 0.5268124341964722, -0.44021445512771606, -0.7378063201904...
def cmpi ( self, * args ) : return _ snap. tstr _ cmpi ( self, * args )
[ -0.4005272686481476, -0.37970444560050964, 0.20571105182170868, -0.23039992153644562, 0.41114622354507446, 0.6026839017868042, 0.8835787177085876, -0.20182977616786957, -1.2234647274017334, 0.27882325649261475, -0.6259791254997253, -1.2244809865951538, -0.4767141044139862, -0.4787844419479...
def _ peak _ directions ( self, blob ) : return peak _ directions ( blob, self. sphere, * * self. _ pf _ kwargs ) [ 0 ]
[ -0.29203274846076965, -0.44244030117988586, 0.3426878750324249, 0.816173255443573, 0.6748603582382202, -0.16432622075080872, 0.3981408476829529, 0.09221726655960083, 0.5506240129470825, 1.393972396850586, -0.6321403384208679, 0.018545541912317276, -0.13763229548931122, -0.48425161838531494...
def folderrenamed ( self, parentpath : unicode, oldfoldername : unicode, newfoldername : unicode ) - > none :...
[ -0.07873211801052094, -0.3460889756679535, 0.3931330740451813, 0.4084005057811737, -0.5263347625732422, -0.518109142780304, -0.38886943459510803, -0.03104998730123043, -0.5218162536621094, -0.32698026299476624, -0.5523174405097961, 1.0850708484649658, -0.1373211294412613, 0.472196519374847...
def _ _ virtual _ _ ( ) : if _ _ grains _ _. get ( " zfs _ support " ) : return _ _ virtualname _ _ else : return false, " the zfs module cannot be loaded : zfs not supported "
[ 0.04063784331083298, -0.2986464500427246, 0.46514254808425903, -0.08413166552782059, -0.4710792899131775, -0.12685702741146088, -0.4367790222167969, 0.2582629919052124, 0.30215415358543396, 0.6384016275405884, 0.2368825376033783, -0.10998113453388214, -0.7589834928512573, 0.019428055733442...
def has _ video _ already _ been _ processed ( self, video _ file _ path ) : already _ processed _ videos _ set = set ( [ row [ " meta " ] [ " videopath " ] for row in self. dataset ] ) return video _ file _ path in already _ processed _ videos _ set
[ -0.08382806181907654, -0.3695487380027771, 0.4449142813682556, 0.6954813003540039, 0.7957739233970642, -0.2292127162218094, 0.446353554725647, 0.23544977605342865, -0.19561339914798737, 0.39414817094802856, -0.07458405196666718, 0.8318498134613037, 0.011303040198981762, 0.5835901498794556,...
async def test _ site _ cannot _ update ( hass : homeassistant, requests _ mock : requests _ mock. mocker ) - > none : # all metoffice test data encapsulated in here mock _ json = json. loads ( load _ fixture ( " metoffice. json " ) ) all _ sites = json. dumps ( mock _ json [ " all _ sites " ] ) wavertree _ hourly = js...
[ -0.583831250667572, 0.6087853312492371, 0.5856825709342957, -0.8201601505279541, -0.15966235101222992, 0.21807487308979034, -0.38678982853889465, 0.037990812212228775, 0.3729771375656128, 0.056966692209243774, -0.7924067378044128, 0.6231724619865417, -0.033110324293375015, 0.77177208662033...
def getkcoreedges _ pneanet ( * args ) : return _ snap. getkcoreedges _ pneanet ( * args )
[ -0.7378394603729248, 0.46218904852867126, 0.4600820541381836, 1.0212024450302124, -0.22375883162021637, -0.42376789450645447, -1.1405150890350342, -0.547439694404602, -0.5065494179725647, 0.25158971548080444, -0.2716737985610962, -0.7253878116607666, -0.8994210362434387, -0.255208224058151...
def test _ get _ login _ form1 ( self ) : pass
[ -0.7990114092826843, -0.055225174874067307, 0.13767842948436737, 1.203417181968689, 0.31212711334228516, 0.5226799249649048, 0.7272261381149292, -0.3050765097141266, 0.17975394427776337, -1.0092730522155762, -0.9991382360458374, 1.051076889038086, -0.951797604560852, -0.7820726037025452, ...
def get _ entry ( self, filepath ) : with self. con : cur = self. con. cursor ( mdb. cursors. dictcursor ) cur. execute ( " select * from songs where songs. file _ path like " + "'" + self. escape ( filepath ) + "'" ) d = cur. fetchone ( ) d ['file _ path'] = self. unescape ( d ['file _ path'] ) d ['artist'] = self. un...
[ -0.000001076062517313403, -0.45942434668540955, 0.5526869893074036, -0.8759071826934814, -0.34301406145095825, 0.14293272793293, -0.48447704315185547, 0.26528891921043396, -0.8608709573745728, 0.5496724247932434, 0.10912836343050003, 0.23395955562591553, -0.4722735583782196, -0.09190779924...
def _ _ init _ _ ( self ) : global max _ threads, socket _ timeout, dl _ timeout self. mc = pycurl. curlmulti ( ) self. url _ queue = dict ( ) self. npackages = 0 # prepare a ring of download handlers for packages self. mc. handles = [ ] for i in range ( max _ threads ) : sc = pycurl. curl ( ) sc. fp = none sc. setopt ...
[ 0.010061534121632576, -0.09087448567152023, 0.618048369884491, -0.041004057973623276, -0.054328013211488724, -0.2787288725376129, 0.019991163164377213, 0.07167953997850418, 0.6130778789520264, -0.5504418611526489, -0.5061804056167603, -0.5063021183013916, 0.008491117507219315, 1.0788667201...
def request _ change ( self, request, pk ) : version = self. get _ object ( ) comment = request. data. get ( " comment " ) try : with transaction. atomic ( ) : sender _ memberships = [ membership for membership in unitmembership. objects. filter ( unit _ _ in = version. report. referral. units. all ( ), user = request....
[ -0.7234246730804443, -0.05389230698347092, 0.8243235945701599, 0.07024899870157242, 0.1984817534685135, 0.2311774492263794, 0.26640376448631287, -0.17997930943965912, 0.14479947090148926, 0.7823396921157837, -0.13515441119670868, 0.7923917770385742, -0.48028427362442017, 0.3010257482528686...
def test _ list _ decimal _ min _ length _ 3 _ nistxml _ sv _ iv _ list _ decimal _ min _ length _ 4 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - minlength - 4. xsd ", instance = " nistdata / list / ...
[ 0.026676662266254425, -0.292035847902298, 0.49140459299087524, 0.2681741714477539, -0.42680197954177856, -0.05349726229906082, -0.24843935668468475, -0.132120743393898, 0.552375853061676, -0.20626455545425415, -1.498952031135559, -0.5376197099685669, -0.5377020239830017, -0.006077461875975...
def timings _ enabled ( ) - > bool : return pyglet. window. basewindow. dispatch _ event = = _ dispatch _ event
[ 0.5967403650283813, 0.868332028388977, 0.629933774471283, 0.7535868883132935, -0.35301923751831055, 0.5168394446372986, 0.30621957778930664, 0.08494209498167038, 0.6717810034751892, 0.7440969347953796, -1.2238813638687134, -0.25189951062202454, -0.2079637497663498, 1.170833706855774, -0....
def _ _ eq _ _ ( self, * args ) : return _ snap. tneanetaflti _ _ _ eq _ _ ( self, * args )
[ -0.16156277060508728, -0.06767456233501434, -0.09160803258419037, -0.5102012753486633, 0.6872100830078125, 0.22011807560920715, 0.7428803443908691, -0.3564590513706207, -0.496482253074646, 0.8708401918411255, -0.36831504106521606, -1.1767642498016357, 0.9368177652359009, 0.3832636475563049...
def frame _ ch1 _ raw _ change ( self ) : self. frame _ ch1 _ sgm. setcurrentindex ( self. frame _ ch1 _ raw. currentindex ) self. frame _ ch1 _ flt. setcurrentindex ( self. frame _ ch1 _ raw. currentindex )
[ -1.055113673210144, -0.9040365219116211, 0.4373326301574707, -0.32487764954566956, -0.20579230785369873, 0.19647008180618286, 1.0307337045669556, 0.18602241575717926, -0.38307157158851624, 0.27613887190818787, -1.0077046155929565, 1.545340657234192, 1.0564124584197998, -0.22581800818443298...
def deep _ update ( target : dict, source : dict ) - > none : for key, value in source. items ( ) : if isinstance ( value, collections. mapping ) : updated _ value = target. get ( key, { } ) # if the new value is map, but the old value is not - # overwrite the old value. if not isinstance ( updated _ value, collections...
[ -0.8859577775001526, 0.2695882022380829, 0.7625688314437866, -0.20214734971523285, -0.9953880906105042, 0.04269978031516075, -0.4706335663795471, 0.4945366382598877, 0.22026945650577545, -0.19769227504730225, -0.055474717170000076, 0.7553620934486389, 0.36038339138031006, 0.259817540645599...
def rename _ pin ( self, old _ pin, new _ pin ) : # type : ( str, str ) - > none self. pin _ map [ old _ pin ] = new _ pin
[ -0.9854774475097656, -1.230150580406189, 0.49190884828567505, -0.3901796340942383, -0.15656088292598724, 0.9257921576499939, -0.6065716743469238, 0.21768580377101898, -0.10147259384393692, 0.9816854000091553, -0.6891152858734131, 1.7807427644729614, 0.28830212354660034, -0.3119566142559051...
def save ( self, msg = none ) : if msg is none : msg ='saving % s'% self. name log. debug ( msg ) self. repo. additem ( self, msg )
[ -0.17085178196430206, 0.8008620738983154, 0.5648359060287476, -0.23370304703712463, 1.2967848777770996, 0.27335894107818604, -0.13154512643814087, 0.6092314720153809, -0.2469262331724167, -0.3499469757080078, -1.1027452945709229, -0.6205479502677917, -1.1512243747711182, 1.2118438482284546...
def del _ all _ flags ( flags ) : flags _ dict = flags. _ flags ( ) keys _ list = [ keys for keys in flags _ dict ] for keys in keys _ list : flags. _ _ delattr _ _ ( keys )
[ -0.1254166215658188, -0.17564500868320465, 0.46128442883491516, 0.2767592966556549, 0.3510856032371521, 0.8836379051208496, 0.060067448765039444, 0.1570499688386917, -0.3347960114479065, -0.43034055829048157, -0.6751017570495605, 0.2255607396364212, -0.5385948419570923, 1.8228968381881714,...
def _ _ on _ activate _ parent ( self ) : event = activateparentevent ( ) qcoreapplication. sendevent ( self. scheme ( ), event )
[ 0.7427780628204346, -0.8262700438499451, 0.4041106700897217, -0.0406377799808979, 0.16485020518302917, -0.6254028677940369, 0.3119713068008423, -0.4165772497653961, 0.26724952459335327, 0.23320908844470978, -0.6947493553161621, 0.4062921106815338, -0.21924495697021484, -0.4141996502876282,...
def add _ dummy _ data ( self ) : new _ lines _ to _ add = f'{ self. current _ timestamp - 1800 } william rebeca \ n { self. current _ timestamp - 1800 } sarah nathan \ n { self. current _ timestamp - 1740 } william holden \ n { self. current _ timestamp - 60 } john patricia'with open ( self. file _ test,'r +') as f : ...
[ -0.19305908679962158, -0.6838095188140869, 0.6265764832496643, -0.710621178150177, 1.382826328277588, 0.8149391412734985, -0.008760527707636356, -0.15625375509262085, 0.3224108815193176, -0.1279691457748413, -0.24735623598098755, 0.7476049661636353, -0.04452938586473465, -0.070315189659595...
def handleanyevent ( self, event ) : for applyfilter in self. events : line = applyfilter ( event ) if line is none : continue # handle line and exit self. handleline ( line ) return
[ 0.512664258480072, -0.6849750876426697, 0.6556962728500366, 0.6985577344894409, 0.621509850025177, -0.6969610452651978, -0.10984241217374802, 0.13161930441856384, 0.2797691524028778, -1.2593016624450684, -0.28931477665901184, -0.569409966468811, -0.22504235804080963, 1.3813674449920654, ...
def get _ brn _ title ( soup ) : table _ list = soup. find _ all ( " table " ) row = table _ list [ 2 ]. find ( " tr " ) col _ list = row. find _ all ( " td " ) col = col _ list [ 2 ] title = col. get _ text ( ) return title
[ -0.2767733335494995, 0.17944659292697906, 0.9519575834274292, 0.4790063202381134, 0.2952048182487488, -0.4430713355541229, -0.060122404247522354, -0.5127047300338745, 0.16064858436584473, -0.06742307543754578, -0.3671378791332245, 0.023075062781572342, 0.12278436869382858, 0.07855986058712...
def test _ atomic _ id _ enumeration _ nistxml _ sv _ iv _ atomic _ id _ enumeration _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - enumeration - 1. xsd ", instance = " nistdata / atomic / id / schema + ...
[ -0.337551087141037, -0.955984354019165, 0.46186044812202454, 0.3278561532497406, -0.08953599631786346, -0.027143845334649086, 0.48199257254600525, -0.02731459029018879, 0.7832274436950684, 0.9595139622688293, 0.07553740590810776, 0.14718544483184814, 0.17021740972995758, -0.069355063140392...
def setval ( self, * args ) : return _ snap. tgstat _ setval ( self, * args )
[ -0.3181776702404022, 1.018393635749817, 0.3377143442630768, 0.2561549246311188, -0.35395723581314087, 0.5454798340797424, 0.8951545357704163, -0.3523249328136444, -1.2121471166610718, 0.12032395601272583, -0.34292808175086975, -0.8781846165657043, 0.5709438920021057, 0.7516728043556213, ...
def get _ current _ version ( self, s3 _ bucket, document _ s3 _ path, raise _ on _ object _ not _ found = true ) : try : response = boto3. client ( " s3 ", region _ name = self. _ region, * * self. _ credentials ). head _ object ( bucket = s3 _ bucket, key = document _ s3 _ path ) if not response. get ( " versionid " ...
[ 0.5548107624053955, -0.550303041934967, 0.8534696698188782, 0.21838338673114777, -0.22265249490737915, 1.263991355895996, 0.24075593054294586, 0.075102798640728, 0.3779941499233246, 1.6232906579971313, 0.06305456161499023, 0.9197004437446594, -1.118111491203308, -0.6966467499732971, 0.23...
def setup ( self ) : self. dut = model ( )
[ 0.6045366525650024, -0.3533414304256439, 0.2640703022480011, -0.10076173394918442, 1.8396713733673096, 0.8602074384689331, 0.9710007905960083, 0.2275928407907486, -0.136870339512825, 0.1900050938129425, -1.2155450582504272, 0.09477837383747101, 0.6148600578308105, 0.10787829011678696, -1...
def fixed _ signal ( n, coords, mu, sigma, normalized = true ) : if sigma! = 0 : v = np. random. normal ( 0, sigma, ( n, 1 ) ) else : v = np. zeros ( ( n, 1 ) ) if len ( coords ) > 0 : if normalized : v [ coords, 0 ] + = float ( mu ) / np. sqrt ( len ( coords ) ) else : v [ coords, 0 ] + = float ( mu ) return v
[ -0.22346794605255127, 0.3996395468711853, 0.2993469834327698, 0.16456575691699982, 0.15348047018051147, -0.1167917251586914, -0.22977814078330994, 0.09268805384635925, 0.38153454661369324, 0.11143101006746292, 0.2692795991897583, 0.5894464254379272, -0.27430251240730286, 0.3379307687282562...
def extractnames ( urls ) : def extractname ( line ) : link, name = line. split ( ) return name return [ extractname ( line ) for line in urls. splitlines ( ) if line. strip ( ) ]
[ -0.3638164699077606, -0.5924109816551208, 0.6807511448860168, -0.17803442478179932, -0.4795161485671997, -0.6137083768844604, -0.7478639483451843, 0.40360012650489807, -0.012179224751889706, 0.4317393898963928, -1.1137820482254028, -0.5972902178764343, -0.03340424224734306, 0.4909200370311...
def total _ sum _ of _ squares ( y ) : return sum ( v * * 2 for v in de _ mean ( y ) )
[ -0.509734034538269, 0.28427642583847046, 0.5327076315879822, -0.15093296766281128, -0.32968342304229736, -0.9197096228599548, 0.7917218804359436, -1.2869501113891602, 0.6667124032974243, 0.9199377298355103, -0.9249382615089417, 0.15929153561592102, 0.8873317837715149, -0.3108060657978058, ...
def isin ( self, * args ) : return _ snap. tintfltkdv _ isin ( self, * args )
[ -0.15210215747356415, 0.1873546540737152, 0.31088557839393616, 0.5613694190979004, -0.38936755061149597, -0.24733342230319977, 0.3813651502132416, 0.4866642653942108, -1.118709683418274, -0.9543577432632446, -0.16637364029884338, 0.35648635029792786, -0.6249082088470459, 0.9111649394035339...
def test _ specific ( self ) : base _ instance = omnifield. objects. get ( pk = self. field. pk ) instance = base _ instance. specific self. assertisinstance ( base _ instance, omnifield ) self. assertnotisinstance ( base _ instance, omnifloatfield ) self. assertisinstance ( instance, omnifloatfield )
[ 0.005410396493971348, 0.45343995094299316, 0.15052200853824615, -0.12470819801092148, 0.39949655532836914, 1.006238579750061, 0.2673201262950897, 0.1908876746892929, 0.6097451448440552, -0.8818286061286926, -0.7165098786354065, 0.5618030428886414, -0.5972617268562317, 0.10923116654157639, ...
def start ( self ) : self. logctl. info ('starting') # check for a pidfile to see if the daemon is already running. self. readpid ( ) if self. isrunning ( ) : self. logctl. info ('already running with pid % d'% self. pid ) ; return true # start the daemon pid = self. daemonize ( ) if pid = = 0 : # child self. trapexits...
[ -0.12882329523563385, -0.5400455594062805, 0.7204150557518005, 0.16147564351558685, -0.3143206536769867, 0.49388590455055237, -0.3915196359157562, 0.8283689618110657, 0.1063099130988121, -0.4807448387145996, -0.3250390589237213, -1.030185341835022, -0.4230170249938965, -0.02118641138076782...
def post ( self, request ) : serializer = todoserializer ( data = request. data ) # check to see if the data in the ` request ` is valid. # if the cannot be de - serialized into a todo object then # a bad request response will be returned containing the error. # else, save the data and return the data and a successfull...
[ -0.3868826627731323, 0.20546112954616547, 0.7058970332145691, 1.1878999471664429, -0.09897201508283615, 0.5050017833709717, -0.8425199389457703, 0.30572575330734253, -0.21392348408699036, -0.702941358089447, -0.7998067736625671, -0.06432116776704788, 0.3173735737800598, -0.6473236680030823...
def update ( self, context, next _ byte, dry _ run = false ) : assert len ( context ) = = self. depth return self. _ update _ rec ( self. root _ id, context [ : ], next _ byte, dry _ run )
[ -0.7406006455421448, 0.3716714084148407, 0.4196198284626007, -0.48901376128196716, -0.8101189136505127, -0.03368035703897476, 0.41528230905532837, -1.0340124368667603, 0.6011409163475037, -0.11632023751735687, -0.6409686207771301, 0.6734898090362549, -1.2691771984100342, -0.014614972285926...
def decryption ( self, key ) : try : with open ( self. currentpath,'rb') as cryptedfile : data = pk. load ( cryptedfile ) if set ( data. keys ( ) ) not in ( set ( ( " file ", " key " ) ), set ( ( " empty _ dirs ", " files ", " key " ) ) ) : raise exception except : messagebox. showerror ( " file corrupted ", " impossib...
[ -0.4080875515937805, 0.6258364915847778, 0.6102569699287415, 0.24122002720832825, 0.283392995595932, 0.059186335653066635, 0.8911354541778564, 0.8452956676483154, -0.3572450578212738, 0.22955696284770966, 0.4160959720611572, -0.34731045365333557, -0.7449865341186523, 0.9272153973579407, ...
def getdat ( self, * args ) : return _ snap. tstrvhi _ getdat ( self, * args )
[ 0.45441141724586487, 0.5160898566246033, 0.43140676617622375, -0.7882102131843567, 1.2191225290298462, 0.2516292929649353, 0.6194784045219421, -0.4728330075740814, -0.8483087420463562, -0.31202346086502075, -0.2896422743797302, -0.23190607130527496, -0.07673493027687073, -0.051109105348587...
def _ _ init _ _ ( self, jsonreportfile = none, jsonreportdict = none, plotnetwork = true, plotfiles = true, plotfilecreates = true, plotfiledeletes = true, plotfilemoves = true, plotfilecopies = true, plotfilewrites = true, plotfilereads = true, plotregistry = true, plotregistrywrites = true, plotregistryreads = true,...
[ 1.1141774654388428, 0.6604610681533813, 0.6437932252883911, -0.38215118646621704, -0.49825748801231384, 0.12094365805387497, 0.8975400328636169, 0.15763947367668152, -0.056455593556165695, -0.6119833588600159, 0.15764804184436798, 0.4066811203956604, -0.002882215194404125, -0.2183738350868...
def parse _ fq ( fq ) : def get _ fq _ reads ( allreads ) : fqd = { } myflag = true for line in allreads : line = line. decode ('utf - 8'). rstrip ( ) if myflag = = true : instrument = line. split ( ) [ 0 ]. split ( " : " ) [ 0 ] myflag = false if line. startswith ( instrument ) : seqname = line [ 1 : ]. split ( ) [ 0 ...
[ 0.5107288360595703, -1.1762908697128296, 0.8254114985466003, -0.43037164211273193, -1.2967593669891357, -0.4773738384246826, -0.21389205753803253, 0.14405016601085663, 0.17218807339668274, -0.22336673736572266, 0.30543768405914307, -0.6164678335189819, -0.22823014855384827, 0.6832456588745...
def test _ setter _ height _ type ( self ) : base. _ base _ _ nb _ objects = 0 self. assertraises ( typeerror, rectangle, 2, [ 1, 2 ] ) self. assertraises ( typeerror, rectangle, 2, ( 1, 2 ) ) self. assertraises ( typeerror, rectangle, 2, 12. 5 ) self. assertraises ( typeerror, rectangle, 2, { 1, 2 } ) self. assertrais...
[ -0.6587523221969604, 0.39780640602111816, 0.6020575165748596, 1.1058759689331055, 0.43854472041130066, 0.23094455897808075, 0.7605153322219849, -0.9543164968490601, -0.7982156276702881, 0.588249683380127, -1.3000982999801636, -0.3078511655330658, -0.2644198536872864, 1.2748024463653564, ...