text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def test _ replace _ trigger ( self ) : pass | [
0.29651594161987305,
0.5915870070457458,
0.16518738865852356,
0.7078500390052795,
0.5854821801185608,
-0.7785964608192444,
1.1171832084655762,
1.233431100845337,
0.3970705270767212,
-1.4739493131637573,
-1.8906267881393433,
0.027490584179759026,
-1.030344843864441,
-0.279434472322464,
-0... |
def addjobflagresourceargs ( parser ) : arg _ specs = [ presentation _ specs. resourcepresentationspec ('- - job ', getjobresourcespec ( ), ('the batch job resource. if not specified,'' the current batch / location is used.'), required = true, ), ] concept _ parsers. conceptparser ( arg _ specs ). addtoparser ( parser ... | [
0.3387334644794464,
-0.1794971376657486,
0.5545641779899597,
-0.07918662577867508,
0.4589675962924957,
0.5374091267585754,
-0.06787218153476715,
1.4158025979995728,
-0.7869998216629028,
-0.21051031351089478,
-0.03370717167854309,
0.13145959377288818,
-0.06409278512001038,
1.442101001739502... |
def is _ key _ modified ( self, key ) : if key is not none and not isinstance ( key, str ) : raise sdkexception ( constants. data _ type _ error,'key : key expected type : str ', none, none ) if key in self. _ _ key _ modified : return self. _ _ key _ modified. get ( key ) return none | [
-1.3308331966400146,
0.0644112378358841,
0.488366961479187,
-0.1911548376083374,
-0.5321714282035828,
-0.7034300565719604,
-0.873719334602356,
-0.6364491581916809,
0.8912372589111328,
0.6776189208030701,
0.38647326827049255,
0.7332753539085388,
-0.6463714838027954,
0.7326160073280334,
-0... |
def _ make _ status _ now ( self, * args, * * kwargs ) : if self. _ status : raise suidsetuperror ( " _ make _ status _ now called twice " ) status = self. _ status = _ suidstatus ( * args, * * kwargs ) return status | [
-0.6967131495475769,
0.07120176404714584,
0.3176315724849701,
-0.36693477630615234,
-0.060172852128744125,
0.07058841735124588,
-0.08348904550075531,
0.48855140805244446,
0.014785007573664188,
-0.48674893379211426,
-0.5849719047546387,
0.18009987473487854,
0.18007871508598328,
0.0958772748... |
def status ( self, host ) : log, barreleye _ instance = init _ env ( self. _ bac _ config _ fpath, self. _ bac _ logdir, self. _ bac _ log _ to _ file ) host = cmd _ general. check _ argument _ str ( log, " host ", host ) if host not in barreleye _ instance. bei _ agent _ dict : log. cl _ error ( " host [ % s ] is not ... | [
-0.19497324526309967,
-0.8099579215049744,
0.6287537813186646,
-0.1069921925663948,
-0.3481980562210083,
0.2059248685836792,
-0.49249058961868286,
0.7538748383522034,
-0.47742486000061035,
0.8960394263267517,
-0.5548779964447021,
0.5917363166809082,
0.053090743720531464,
0.7046319842338562... |
def check _ view _ permissions ( self ) : if self. action in ( " partial _ update ", " update " ) : result = self. check _ config _ permission ( self. kwargs [ " pk " ] ) elif self. action = = " reset _ groups " : result = has _ perm ( self. request. user, " core. can _ manage _ config " ) elif self. action = = " bulk ... | [
-1.0082546472549438,
0.5836204290390015,
0.6915491819381714,
1.0243580341339111,
-0.7871286273002625,
-0.3142794668674469,
0.6666569113731384,
0.0188383050262928,
0.11759655922651291,
0.2613307237625122,
0.7644309401512146,
0.22730328142642975,
-0.7359682321548462,
0.6433855295181274,
-0... |
def parse _ ol ( li : list ) : html = [ ] ul = false for uls in li : if len ( uls ) > 0 and uls [ 0 ] = ='-': if ul : html. append ('< li >'+ uls [ 1 : ]. lstrip ('' ) +'< / li >') else : ul = true html. append ('< ul >') html. append ('< li >'+ uls [ 1 : ]. lstrip ('' ) +'< / li >') elif ( len ( uls ) = = 0 or uls [ 0... | [
0.2688734829425812,
0.5041947364807129,
0.897799015045166,
0.0860404297709465,
-0.5846320390701294,
0.2956307530403137,
-0.9617473483085632,
0.68070387840271,
1.174872636795044,
0.47001126408576965,
-0.28228846192359924,
-0.4644410014152527,
0.4924127757549286,
0.6928737163543701,
-0.162... |
def _ _ getattr _ _ ( self, key ) : if key in self : return self [ key ] else : raise attributeerror ( " no value set for : " + key ) | [
0.3106181025505066,
-0.4610232412815094,
0.6680753827095032,
-0.5004686713218689,
-0.2774823009967804,
-0.04623057320713997,
0.08786594122648239,
-0.6058641672134399,
-0.2797887921333313,
0.025728972628712654,
1.2378342151641846,
0.16944405436515808,
0.7737329602241516,
0.5637103319168091,... |
def matches _ ref _ allele ( hgvs, genome, transcript = none ) : ref, alt = hgvs. get _ ref _ alt ( transcript. tx _ position. is _ forward _ strand if transcript else true ) chrom, start, end = hgvs. get _ coords ( transcript ) genome _ ref = get _ genomic _ sequence ( genome, chrom, start, end ) return genome _ ref =... | [
0.2050771564245224,
-0.1584043949842453,
0.5945574045181274,
0.6794137954711914,
-0.6188612580299377,
0.4050552248954773,
-0.20135511457920074,
0.14952526986598969,
-0.0066061303950846195,
0.926444947719574,
0.5851930975914001,
0.5867396593093872,
-0.5793585777282715,
0.3053947389125824,
... |
def test _ login _ required ( self ) : url = reverse ('booking : bookings') resp = self. client. get ( url ) self. assertequal ( resp. status _ code, 302 ) | [
-1.0575683116912842,
0.6382858753204346,
0.4982016384601593,
0.8116439580917358,
0.037502214312553406,
2.2110347747802734,
0.4374881088733673,
0.7774633765220642,
-0.2815302908420563,
-1.1634304523468018,
-0.19072894752025604,
0.153269425034523,
0.03817204013466835,
-0.17709991335868835,
... |
def wikipathways _ to _ bel ( file _ path : str, hgnc _ manager ) : rdf _ graph = parse _ rdf ( file _ path, fmt ='turtle') return rdf _ wikipathways _ to _ bel ( rdf _ graph, hgnc _ manager ) | [
0.16364288330078125,
-0.22695982456207275,
0.23027153313159943,
-0.1229313462972641,
0.44181743264198303,
0.4058619439601898,
-0.016937077045440674,
0.6396369934082031,
-0.1534385234117508,
0.6169316172599792,
-0.35513052344322205,
0.5037578344345093,
-0.22794483602046967,
0.36429506540298... |
def getname ( obj, force = false, fqn = false ) : # xxx : throw (? ) to raise error on fail? if fqn : return '. '. join ( _ namespace ( obj ) ) module = getmodule ( obj ) if not module : # things like " none " and " 1 " if not force : return none return repr ( obj ) try : # xxx :'wrong'for decorators and curried functi... | [
-0.500414252281189,
-0.003949723206460476,
0.7482081651687622,
-0.5846538543701172,
-1.026700735092163,
-0.5661918520927429,
0.03066093660891056,
-0.4590287208557129,
1.2474029064178467,
0.6334529519081116,
-0.7366178631782532,
0.6230248808860779,
0.4992084503173828,
0.12098345160484314,
... |
def test _ storage _ pods _ running ( multiregion _ mirror _ setup _ session ) : wait _ for _ storage _ pods ( timeout = 10 ), " some pods were not in expected state " | [
-0.9465593695640564,
-0.6419135332107544,
0.14772605895996094,
0.6213146448135376,
1.2432283163070679,
0.35219278931617737,
0.16941218078136444,
0.29515349864959717,
0.011890844441950321,
0.6507462859153748,
-0.6912124156951904,
-0.22265897691249847,
0.3662033975124359,
-0.6847617626190186... |
def _ _ getattr _ _ ( self, name ) : return getattr ( self. instance, name ) | [
-0.4908253848552704,
-1.7184600830078125,
0.5482187867164612,
-1.293307900428772,
-0.7050047516822815,
-0.05448857322335243,
0.07415727525949478,
-0.9328446984291077,
0.0322028324007988,
0.42950141429901123,
0.19423390924930573,
0.17665332555770874,
0.5446576476097107,
0.03334832191467285,... |
def hgvs _ normalize _ variant ( chrom, offset, ref, alt, genome, transcript = none ) : if len ( ref ) = = len ( alt ) = = 1 : if ref = = alt : mutation _ type ='='else : mutation _ type ='>'else : # remove 1bp padding offset + = 1 ref = ref [ 1 : ] alt = alt [ 1 : ] # 3'justify allele. strand = transcript. strand if t... | [
-0.07276924699544907,
-0.26384684443473816,
0.6427814960479736,
0.24366243183612823,
-0.5840804576873779,
-0.032138146460056305,
0.47185018658638,
0.2831380367279053,
0.5329360961914062,
0.8868176341056824,
0.23824912309646606,
0.6558296084403992,
-0.03042435646057129,
-0.16443724930286407... |
def _ compute _ dissim _ table ( neighbour _ idx, neighbour _ distances, similarity _ function = compute _ gaussian _ similarity ) : n _ samples = neighbour _ idx. shape [ 0 ] table = np. zeros ( [ n _ samples, n _ samples ] ) skip _ table = np. zeros _ like ( table, dtype = np. bool ) for first _ idx in range ( n _ sa... | [
0.11875222623348236,
0.6086851954460144,
0.6072835922241211,
-0.5130083560943604,
0.006510565523058176,
-0.03498319908976555,
0.4803256094455719,
0.09282715618610382,
-0.4885745346546173,
1.068162202835083,
0.3689141571521759,
0.4317787289619446,
0.20416554808616638,
-0.711060643196106,
... |
def get _ errors ( ) : db = psycopg2. connect ( database = dbname ) c = db. cursor ( ) c. execute ( " " " create view serverrequests as select date ( time ), count ( * ) as dailyrequests, count ( case when status! ='200 ok'then 1 end ) as dailyerrors from log group by date " " " ) c. execute ( " " " create view errorpc... | [
0.17488086223602295,
0.05209283158183098,
0.7397403717041016,
-0.049675509333610535,
0.056327201426029205,
0.4511532485485077,
0.2905670702457428,
-0.6699990630149841,
-0.7181251049041748,
-0.5015404224395752,
0.8982310891151428,
0.6492675542831421,
0.5562816262245178,
0.9116256237030029,
... |
def setframetransfermode ( mode ) : return none | [
-0.7105273008346558,
0.30151864886283875,
0.5322586297988892,
-0.17610016465187073,
0.20902153849601746,
0.7566556930541992,
0.42421120405197144,
-0.36145156621932983,
0.18909502029418945,
-0.6404905319213867,
-1.739004135131836,
-0.3416596055030823,
-0.9569520950317383,
0.2819529175758362... |
def plot _ loss _ and _ error ( history, filename ) : nb _ epoch, nb _ iter = len ( history. val _ losses ), len ( history. losses ) t1 = np. linspace ( 0, nb _ epoch, nb _ iter ) t2 = np. linspace ( 0, nb _ epoch, nb _ epoch ) plt. figure ( ) plt. plot ( t1, history. losses, label = " train loss " ) plt. plot ( t2, hi... | [
0.11148606985807419,
0.14327828586101532,
0.577116847038269,
-0.46944472193717957,
0.24123847484588623,
0.5436280369758606,
1.0123605728149414,
0.031100884079933167,
-0.20774707198143005,
-0.48547375202178955,
0.02319386601448059,
1.0516985654830933,
0.8790380954742432,
1.0563329458236694,... |
def addword ( self, word ) : temp = self. root for l in word : if l not in temp. branches : temp. branches [ l ] = node ( ) temp = temp. branches [ l ] temp. isword = true | [
0.38289010524749756,
0.22770296037197113,
0.5302965044975281,
0.5645200610160828,
-0.15957418084144592,
0.9261414408683777,
0.1360795944929123,
0.1939796358346939,
0.7022911906242371,
0.3413510024547577,
-0.28219449520111084,
0.37094056606292725,
-1.6772115230560303,
1.7661151885986328,
... |
async def close _ db ( app : sanic, loop : any ) - > none : save _ store _ blog ( blog2ldict ( app. blog ) ) save _ store _ blogs ( app. blogs ) | [
-0.17027659714221954,
1.0498729944229126,
0.38401493430137634,
0.7634628415107727,
-0.6586956977844238,
1.2514222860336304,
0.1562434434890747,
0.15224729478359222,
-0.6097380518913269,
0.6089673042297363,
-0.6592824459075928,
-0.12156673520803452,
-0.1851436048746109,
0.7157179713249207,
... |
def format _ open _ game ( _ n : int, item : kasupel. game ) - > str : mode = item. mode. name. title ( ) timings = ( f'{ pretty _ td ( item. main _ thinking _ time ) } +'f'{ pretty _ td ( item. time _ increment _ per _ turn ) }'f'main with { pretty _ td ( item. fixed _ extra _ time ) } per turn') display = f'( { item.... | [
-0.45682260394096375,
-0.19788967072963715,
0.5838357210159302,
-0.7082640528678894,
-0.8223272562026978,
0.08975410461425781,
-0.5463475584983826,
-0.39949238300323486,
-0.1293664276599884,
1.3472251892089844,
0.4841737151145935,
-0.2995542585849762,
0.1908896416425705,
0.0934838652610778... |
def extract _ rendered _ html ( driver ) : html = driver. execute _ script ( " return document. getelementsbytagname ('html') [ 0 ]. innerhtml " ) return r'< html >'+ html. encode ('utf - 8') + r'< / html > ' | [
-0.23183704912662506,
0.23456734418869019,
0.5755398273468018,
0.7007049918174744,
-0.04805014654994011,
-0.596706748008728,
-0.07013608515262604,
0.701069176197052,
0.17616146802902222,
0.5299983620643616,
0.3246478736400604,
-0.16414593160152435,
-0.6959254741668701,
0.24449776113033295,... |
def test _ status _ with _ mention _ to _ activity ( self, * _ ) : status = models. status. objects. create ( content = " test @ rat @ rat. com ", user = self. local _ user ) status. mention _ users. add ( self. remote _ user ) activity = status. to _ activity ( pure = true ) self. assertequal ( activity [ " id " ], st... | [
0.6273635029792786,
-1.0079700946807861,
0.5590968728065491,
-0.28026333451271057,
0.4602685570716858,
0.651718258857727,
0.5879525542259216,
0.009533102624118328,
0.2551825940608978,
0.24949155747890472,
-0.4980417788028717,
0.7634000182151794,
-0.31755709648132324,
-0.0022726289462298155... |
def convert _ document ( self, context, file _ id ) : self. send _ message ( context, " converting _ document " ) file _ path = self. document _ converter. find _ file _ by _ id ( file _ id ) old _ format = file _ path. split ( ". " ) [ - 1 ] if old _ format in self. document _ converter. available _ input _ formats : ... | [
0.11910458654165268,
-0.8747900724411011,
0.6140296459197998,
0.5323344469070435,
0.1090451255440712,
-0.14525854587554932,
-0.007798520382493734,
-0.29065626859664917,
0.2961081266403198,
0.7466573119163513,
0.04231532663106918,
0.49310922622680664,
-0.5750738978385925,
0.2704680562019348... |
def actions ( board ) : possible _ moves = set ( ) for i in range ( 0, 3 ) : for j in range ( 0, 3 ) : if board [ i ] [ j ] is empty : possible _ moves. add ( ( i, j ) ) return possible _ moves | [
-0.4713074862957001,
0.8872520327568054,
0.4907305836677551,
0.511051595211029,
0.39889082312583923,
-0.12195466458797455,
0.3432081341743469,
0.16107238829135895,
-0.3218231797218323,
0.8070289492607117,
-0.45367005467414856,
-0.12998974323272705,
-0.4983082413673401,
-0.594472348690033,
... |
def driver ( self ) : if not self. _ driver : raise attributeerror ( " ` driver ` is not bound on this agent implementation ( { } ). " " do you forget to call ` super ( ). on _ bind _ driver ` when you override the method " " ` on _ bind _ driver ` in your sub class? ". format ( repr ( self ) ) ) return self. _ driver | [
0.42191773653030396,
-1.2588517665863037,
0.6224744319915771,
0.17357221245765686,
0.2927432060241699,
0.2027028501033783,
0.3451038599014282,
-0.1279859095811844,
0.9940189719200134,
-0.2739119231700897,
0.43626049160957336,
0.15488630533218384,
-0.07241187244653702,
0.6700006127357483,
... |
def confirm _ action ( query, information = none, answer = none, icon = none ) : message _ box = qtwidgets. qmessagebox ( ) message _ box. settext ( query ) if information : message _ box. setinformativetext ( information ) if answer = ='yes'or answer = ='no': message _ box. setstandardbuttons ( qtwidgets. qmessagebox.... | [
0.007738534826785326,
-0.13995355367660522,
0.7461461424827576,
-0.31822144985198975,
-0.5940767526626587,
0.5322211980819702,
0.05915074422955513,
-0.773119330406189,
0.49138978123664856,
-0.019252916797995567,
-0.08814135938882828,
0.06356151401996613,
-0.05552893504500389,
0.77226305007... |
def get _ tnc _ packet ( self, record ) : # preamble to the tnc packet : if self. station = = " " : _ prefix = " " else : _ prefix = " % s > % s : " % ( self. station, self. aprs _ path ) # time : _ time _ tt = time. gmtime ( record ['datetime'] ) _ time _ str = time. strftime ( " @ % d % h % mz ", _ time _ tt ) # posi... | [
-0.1878267228603363,
-0.43194735050201416,
0.7515997886657715,
-1.4048863649368286,
-0.5529070496559143,
-0.26803192496299744,
-0.6868717074394226,
-0.18636953830718994,
-0.441084623336792,
0.009542398154735565,
0.1514209359884262,
0.37876763939857483,
0.2897891700267792,
0.020719857886433... |
def get _ translation _ entry ( self, locale ) : try : return self. translations. filter ( locale = locale ). latest ('timestamp') except cmstranslation. doesnotexist : return none | [
0.8477535247802734,
0.037310726940631866,
0.5700117349624634,
-0.3790901303291321,
0.38862743973731995,
-0.5160090923309326,
-0.4401506185531616,
-0.6823899745941162,
-0.07073798030614853,
0.11440025269985199,
-0.11608024686574936,
-0.7737976312637329,
-0.2972234785556793,
-0.1280205994844... |
def orientation ( self, * args ) : return _ topods. topods _ shape _ orientation ( self, * args ) | [
-0.3324234187602997,
0.19860634207725525,
0.26392990350723267,
-0.26752981543540955,
0.5943264365196228,
-0.007771867793053389,
1.0273698568344116,
-1.1874955892562866,
-0.7453168034553528,
0.5488828420639038,
-0.3358619511127472,
-0.4348645508289337,
-0.275013267993927,
-0.731607437133789... |
def get _ num _ block ( data : bytearray, block _ size : int ) - > int : return len ( data ) / / block _ size | [
0.8177379369735718,
0.535315752029419,
0.49481201171875,
0.12402071803808212,
-0.29739049077033997,
-0.7473934292793274,
0.43299052119255066,
0.16174936294555664,
0.2557336091995239,
-0.4197584390640259,
-0.8331698179244995,
0.5519549250602722,
-0.44096311926841736,
0.7781471014022827,
1... |
def app _ module _ setup ( module _ name : str, category : modulecategory, *, settings _ name : str | none = none, depends : list [ str ] | none = none, logger : logging. logger = log, # todo : see https : / / github. com / itisfoundation / osparc - simcore / issues / 2008 # todo : - settings _ name becomes module _ na... | [
-0.3249024748802185,
-0.5984123945236206,
0.7430035471916199,
0.3829941153526306,
0.03067665547132492,
-0.31692954897880554,
0.6387249827384949,
-0.5313054919242859,
0.4246658682823181,
1.920295238494873,
-0.4578608572483063,
0.06228618323802948,
1.2304115295410156,
0.37900927662849426,
... |
async def push _ tx ( self, bundle ) : status, error = await self. sim _ client. push _ tx ( bundle ) if error : return { " error " : str ( error ) } # common case that we want to farm this right away. additions, removals = await self. farm _ block ( ) return {'additions': additions,'removals': removals, } | [
-0.06195611134171486,
1.1015334129333496,
0.5143738389015198,
-0.17484530806541443,
-0.6809216141700745,
-0.8170865178108215,
-0.23700174689292908,
-0.8663543462753296,
0.12653861939907074,
1.4864308834075928,
-0.9097420573234558,
-0.37715455889701843,
-0.20825868844985962,
-0.206935524940... |
def test _ ing _ item _ in _ list _ case _ 1 ( self ) : ing _ list = load _ ing _ list ( ) pairs = extract _ items ( ing _ list ) ing = ingredient ( " 土 " ) self. asserttrue ( ing in pairs ) | [
-0.47557586431503296,
0.13350190222263336,
0.5043438673019409,
1.1568553447723389,
0.17052039504051208,
0.28843796253204346,
-0.16754990816116333,
1.1331431865692139,
-0.2046567052602768,
0.8972131013870239,
-1.1424946784973145,
-0.7641074061393738,
-0.8253725171089172,
0.13938039541244507... |
def main ( ) : # parse command line options try : opts, args = getopt. getopt ( sys. argv [ 1 : ],'', ['user = ','pw ='] ) except getopt. error, msg : print'python contacts _ example. py - - user [ username ] - - pw [ password ]'sys. exit ( 2 ) user ='' pw ='' # process options for option, arg in opts : if option = ='-... | [
0.26419633626937866,
-0.3513154685497284,
0.8194814920425415,
0.18058212101459503,
-0.12721703946590424,
0.35781562328338623,
0.43144431710243225,
-0.8803569674491882,
0.0037283620331436396,
-0.22158071398735046,
0.34910848736763,
0.24941451847553253,
-0.6460411548614502,
-0.12420620024204... |
def help ( ) : return _ _ salt _ _ [ " sys. doc " ] ( " power " ) | [
1.2267264127731323,
0.3817603886127472,
0.5697340369224548,
0.04576001688838005,
0.11719764024019241,
0.7622251510620117,
-0.4387247562408447,
-0.08990488201379776,
-0.9989588856697083,
0.5884042382240295,
0.929600715637207,
0.4984308183193207,
-0.18510659039020538,
-0.2216382771730423,
... |
def appendelementsfromhtml ( self, string ) : # todo : not so easy... maybe there is a python html parser we can use? pass | [
-0.5060497522354126,
-0.3062858581542969,
0.3374561369419098,
0.6965505480766296,
-0.4462206959724426,
0.4279135763645172,
-0.09447778761386871,
0.12213561683893204,
0.7240587472915649,
-0.855085551738739,
-0.2657088339328766,
0.2760009765625,
-0.38361111283302307,
0.8949360251426697,
0.... |
def hours _ to _ str ( h ) : n = trunc ( h ) h - = n h * = 60 m = trunc ( h ) h - = m h * = 60 s = trunc ( h ) return f'{ n } h { m } m { s } s ' | [
-0.4526665210723877,
-0.47617292404174805,
0.4657372534275055,
-1.01468026638031,
-0.5753612518310547,
0.20585903525352478,
-0.5789658427238464,
-0.12829402089118958,
-0.8172304630279541,
0.5251653790473938,
-0.33898553252220154,
-0.2579032778739929,
-0.2702040374279022,
-0.704674422740936... |
def on _ directive ( self, directive ) : logger. debug ('received directive from echo device : \ 033 [ 90m { { { } } } \ 033 [ 00m '. format ( json _ format. messagetodict ( directive, including _ default _ value _ fields = true ) ) ) callback _ str ='on _'+'_ '. join ( [ directive. header. namespace, directive. header... | [
-0.14300596714019775,
-0.9020587801933289,
0.8610265851020813,
-0.48099204897880554,
-0.8584079742431641,
-0.10974651575088501,
-0.46654823422431946,
-0.7976328730583191,
-0.38691475987434387,
-0.3913901150226593,
-0.5767727494239807,
0.3945072889328003,
0.7679792642593384,
0.1032469272613... |
def _ reconfigure _ port ( self ) : need _ thread = self. is _ open and self. is _ config _ ok if need _ thread and not self. plc _ thread : _ drain _ queue ( self. command _ queue ) _ drain _ queue ( self. status _ queue ) self. stop. clear ( ) self. plc _ thread = threading. thread ( name ='astrohaven plc simulator '... | [
-0.15873846411705017,
-0.26785826683044434,
0.569333016872406,
-0.5135989785194397,
0.7100557684898376,
0.43009424209594727,
-0.14936648309230804,
0.2960287034511566,
-0.2639516592025757,
-0.13078513741493225,
0.5018151998519897,
0.49256953597068787,
-0.7383148074150085,
0.3867651820182800... |
def getpointfromdist ( self, start, dist, brngdeg ) : from math import asin, sin, cos, atan2, pi, sqrt # convert to radians lat1 = start [ 1 ] * pi / 180 lon1 = start [ 0 ] * pi / 180 brng = brngdeg * pi / 180 r = 6372. 795 # earth mean radius in km d = dist / r # angular distance, radians lat2 = asin ( sin ( lat1 ) * ... | [
-0.056230947375297546,
-1.1518478393554688,
0.7761865854263306,
-0.5585154891014099,
-0.8018700480461121,
0.4370368719100952,
-0.6630660891532898,
0.6005518436431885,
-0.04853583127260208,
0.41702938079833984,
-0.5284339785575867,
0.5049529075622559,
0.0794050395488739,
-0.5346550941467285... |
def handle _ sketch _ version ( hass : homeassistant, gateway _ id : gatewayid, msg : message ) - > none : _ handle _ node _ update ( hass, gateway _ id, msg ) | [
0.3918515741825104,
0.37505480647087097,
0.4266144335269928,
-0.3753802478313446,
0.3276958763599396,
-0.4577418267726898,
0.20192527770996094,
-0.16031514108181,
0.7549330592155457,
0.4187910854816437,
-0.4497143030166626,
0.606794536113739,
0.3838326930999756,
0.5460984706878662,
-0.70... |
def _ define ( self ) : from qiskit. extensions. standard. u1 import u1gate from qiskit. extensions. standard. u3 import u3gate from qiskit. extensions. standard. x import cxgate definition = [ ] q = quantumregister ( 2,'q') rule = [ ( u1gate ( pi / 2 ), [ q [ 1 ] ], [ ] ), ( cxgate ( ), [ q [ 0 ], q [ 1 ] ], [ ] ), ( ... | [
0.11169411242008209,
0.7916343808174133,
0.4542382061481476,
0.3376360535621643,
0.7224053144454956,
-0.24467502534389496,
-0.16326148808002472,
0.6068666577339172,
0.044583410024642944,
-0.022287609055638313,
-0.8383069634437561,
0.20134085416793823,
-0.024282805621623993,
1.0952377319335... |
def additional _ tlv _ data ( self, additional _ tlv _ data ) : self. _ additional _ tlv _ data = additional _ tlv _ data | [
0.3031182885169983,
-0.6638368368148804,
-0.29218873381614685,
-0.6017064452171326,
-1.4095531702041626,
1.9518145322799683,
-0.5966048240661621,
0.4192664921283722,
0.07281722873449326,
-0.07341331988573074,
-0.7611469626426697,
-0.8932932019233704,
0.40669336915016174,
0.4591892063617706... |
def fill _ content _ resource ( self, context ) : m _ results = [ ] m _ results _ append = m _ results. append # get all type of resources # # fixme : take the baseurl and folderurl resources, unify their vulns and put them in the common url resource # m _ all _ resources = set ( [ x for x in dir ( resource ) if x. sta... | [
-0.31791117787361145,
-0.786185622215271,
0.5989896059036255,
-1.199472188949585,
0.13357451558113098,
0.18893486261367798,
0.42729753255844116,
-0.4186016023159027,
-0.573764443397522,
0.26788246631622314,
0.1633785516023636,
-0.6107860803604126,
0.5601691603660583,
1.097542405128479,
0... |
def determine _ medoids ( medoids _ dict, var _ names, hydro _ names, nmedoids _ min = 1, acceptance _ threshold = 0. 5, kmax _ iter = 100, use _ median = false ) : final _ medoids _ dict = dict ( ) nvars = len ( var _ names ) for hydro _ name in hydro _ names : if hydro _ name not in medoids _ dict : warn ( f'no inter... | [
-0.04577849805355072,
-0.5530654788017273,
0.7360571622848511,
-0.3736732602119446,
-0.18718282878398895,
-0.2505330741405487,
0.2591390013694763,
0.029527537524700165,
-0.330079585313797,
0.492457777261734,
0.29517579078674316,
0.6810150742530823,
-0.4571710526943207,
0.5201706886291504,
... |
def create _ snapshot ( self, snapshot ) : # nyi ( rdl : the v6000's 5. x. x platform does not support data # management features ) # raise notimplementederror | [
-0.3811272084712982,
0.8569623827934265,
0.3731047213077545,
0.08507698774337769,
-0.45199665427207947,
0.26045557856559753,
-0.08001332730054855,
-0.3043813407421112,
1.0873738527297974,
-1.2162739038467407,
-0.6897082924842834,
-0.6387396454811096,
0.35862278938293457,
-0.078656978905200... |
def test _ replace _ step _ parameters ( self ) : pass | [
-0.14840449392795563,
0.07568786293268204,
0.2764672338962555,
0.6786238551139832,
0.33148905634880066,
0.08957387506961823,
1.2064675092697144,
1.356009602546692,
-0.6937049031257629,
-0.6418552398681641,
-1.8441119194030762,
-0.12042254954576492,
-1.068499207496643,
0.9862037301063538,
... |
def next ( self ) : # if we don't have any more boxes remaining _ boxes = list ( filter ( lambda x : not x. finished, self. boxes ) ) if len ( remaining _ boxes ) = = 0 : if self. has _ finished _ all _ suggestions ( ) : logging. info ( " fetching next suggestions " ) exclusions = [ x. data ['place'] for x in list ( fi... | [
-0.6985716223716736,
0.08626721054315567,
0.7677115797996521,
0.028018951416015625,
0.039038944989442825,
0.2906733751296997,
0.07733277976512909,
-0.7397845983505249,
-0.10229375213384628,
0.2924307584762573,
-0.27538642287254333,
-0.2349940836429596,
-0.9961198568344116,
0.41804200410842... |
def _ _ init _ _ ( self ) : sanitizer. _ _ init _ _ ( self,'bottle ', none ) attributetaint. _ _ init _ _ ( self, - 1 ) self ['html _ escape'] = simplesanitizer ( sanitizer. xss ) | [
-0.04385533183813095,
-0.16448839008808136,
0.5548272132873535,
0.2558075785636902,
0.11967777460813522,
0.1686934381723404,
-0.16952206194400787,
0.46197012066841125,
-0.3342931270599365,
-0.3766297698020935,
-1.0101076364517212,
-0.2773406207561493,
0.7091332674026489,
0.9713024497032166... |
def get _ obj ( content, vimtype, name ) : obj = none container = content. viewmanager. createcontainerview ( content. rootfolder, vimtype, true ) for c in container. view : if name : if c. name = = name : obj = c break else : obj = c break return obj | [
0.6706995964050293,
-1.7235430479049683,
0.5339255332946777,
0.540870189666748,
-0.833616316318512,
-0.8666710257530212,
0.2850201427936554,
-1.4688024520874023,
-0.20706988871097565,
-0.41693273186683655,
0.31566953659057617,
0.8641040325164795,
-0.7310429811477661,
-0.4268224537372589,
... |
def rec _ matrix ( mat1, mat2 ) : new _ mat = [ ] if ( type ( mat1 ) and type ( mat2 ) ) = = list : for i in range ( len ( mat1 ) ) : if type ( mat1 [ i ] ) = = list : new _ mat. append ( rec _ matrix ( mat1 [ i ], mat2 [ i ] ) ) else : new _ mat. append ( mat1 [ i ] + mat2 [ i ] ) return new _ mat | [
-0.38683369755744934,
0.20878209173679352,
0.7011931538581848,
0.9043768048286438,
0.0547739639878273,
0.5030080080032349,
-0.14328783750534058,
-0.3118536174297333,
0.5096960067749023,
0.625241756439209,
0.24059340357780457,
0.9677353501319885,
-0.8027318716049194,
0.5414360165596008,
0... |
def getdependenceentropyfeaturevalue ( self ) : eps = numpy. spacing ( 1 ) nz = self. coefficients ['nz'] p _ gldm = self. p _ gldm / nz [ :, none, none ] # divide by nz to get the normalized matrix return - numpy. sum ( p _ gldm * numpy. log2 ( p _ gldm + eps ), ( 1, 2 ) ) | [
-0.5820643901824951,
-0.6688995361328125,
0.6719749569892883,
-0.5974939465522766,
0.07012128829956055,
0.3498688340187073,
0.9648575782775879,
0.3546214997768402,
-0.4197792708873749,
-0.45519036054611206,
-0.15818889439105988,
0.3422704339027405,
-0.540158212184906,
-0.17857414484024048,... |
def simulate ( self ) : self. timer. marker ( " start sim " ) # by row / time ( i ) sharesoutstanding = np. zeros ( self. process. processlife ) for i in range ( 0, self. process. processlife ) : self. simdata. pp [ i + 1 : i + self. asset. assetlife + 1, i ] = self. asset. prepaycurve self. simdata. df [ i + 1 : i + s... | [
0.5518978238105774,
0.3009997308254242,
0.9217616319656372,
-0.31651726365089417,
0.23460756242275238,
0.6456427574157715,
0.9750370979309082,
-0.20699292421340942,
0.3069632649421692,
0.3799971640110016,
0.32374897599220276,
-0.14506638050079346,
0.13263863325119019,
-0.22830413281917572,... |
def validatebed ( filepath ) : print ( " validating bed file " ) total _ error = " " warning = " " try : bed = pd. read _ csv ( filepath, sep = " \ t ", header = none ) except : raise valueerror ( " can't read in your bed file. please make sure the bed file is not binary or contains a comment / header line " ) if len (... | [
-0.6011043787002563,
-0.39986103773117065,
0.9236744046211243,
0.12116488814353943,
-0.18000948429107666,
0.5368446707725525,
0.4780990481376648,
-0.05507168173789978,
-0.9313895106315613,
0.2184765785932541,
-0.7150245904922485,
0.379692405462265,
-0.33132192492485046,
-0.3491702377796173... |
def get _ device _ id ( self ) - > str : return self. device. deviceid | [
0.3803181052207947,
-0.5331891179084778,
0.45809218287467957,
0.4694499969482422,
0.12286442518234253,
1.2062853574752808,
0.7433667182922363,
-0.12765717506408691,
1.0130921602249146,
-0.9516788721084595,
0.8914522528648376,
0.8511220216751099,
-0.11456459015607834,
0.5946719646453857,
... |
def test _ create _ class ( self ) : class _ data = { " subject " : " defence against the dark arts ", " cost " : " 39. 99 ", " schedules " : [ { " week _ day " : 2, " from " : " 08 : 00 ", " to " : " 13 : 00 " } ] } response = self. client. post ( self. url, class _ data, format ='json') self. assertequal ( 201, respo... | [
-0.6213468313217163,
0.3900505602359772,
0.6405059695243835,
0.06141873076558113,
0.37937232851982117,
1.1324931383132935,
-1.1643195152282715,
-0.13669680058956146,
-0.19404073059558868,
-0.6886827349662781,
-0.7200336456298828,
-0.18358966708183289,
0.2832977771759033,
0.0425399802625179... |
def create _ cloned _ volume ( self, volume, src _ vref ) : self. _ login ( ) self. _ create _ lun ( volume ) self. copy _ volume _ data ( self. context, src _ vref, volume ) | [
0.14228881895542145,
-0.7469075918197632,
0.3802897036075592,
0.7711076736450195,
0.04579821974039078,
0.698126494884491,
-0.6089764833450317,
-0.5660977363586426,
0.8569555282592773,
-0.39308086037635803,
-0.5756270289421082,
1.346159815788269,
-0.19411171972751617,
-0.8009921908378601,
... |
def get _ db _ info ( ) : db = weather. get _ db ( ) return jsonify ( { " count " : db. count ( ) } ) | [
-0.49417227506637573,
0.43179911375045776,
0.48327168822288513,
-0.9084873795509338,
0.2711963951587677,
-0.3129972815513611,
-0.7748252749443054,
-0.08631536364555359,
-1.0977065563201904,
0.17607086896896362,
-1.2351984977722168,
-0.030284779146313667,
-0.15366369485855103,
0.97575664520... |
def word _ wrap ( self, input _ string ) : output = " " list _ output = [ ] if len ( input _ string ) > self. max _ cols - 4 : list _ words = input _ string. split ('' ) total = 4 for word in list _ words : total + = len ( word ) + 1 if total > = self. max _ cols - 4 : list _ output. append ( output ) output = word + "... | [
-0.5184218883514404,
0.6187337040901184,
0.710383951663971,
0.36690059304237366,
-0.36419013142585754,
-0.26783326268196106,
0.052971143275499344,
-0.01750975474715233,
0.05065839737653732,
0.8488667011260986,
-0.02433154173195362,
0.07191799581050873,
-0.1719028800725937,
-0.1391724199056... |
def _ translate _ _ interfaces _ interface _ ipv6 ( input _ yang _ obj, translated _ yang _ obj = none ) : if input _ yang _ obj. ipv6. enabled. _ changed ( ) : input _ yang _ obj. ipv6. enabled = input _ yang _ obj. ipv6. enabled if input _ yang _ obj. ipv6. forwarding. _ changed ( ) : input _ yang _ obj. ipv6. forwar... | [
-0.5230941772460938,
-0.2964657247066498,
0.44568759202957153,
-0.4357006251811981,
-0.5661375522613525,
-0.7737436890602112,
1.1331392526626587,
-0.412172794342041,
0.8673357963562012,
0.6853812336921692,
-1.1239399909973145,
-0.5343868732452393,
-0.3518764078617096,
-0.21391871571540833,... |
def config _ virtualenv ( virtualenv _ config ) : pass | [
-0.08104904741048813,
-1.0251002311706543,
0.15126961469650269,
1.2671915292739868,
0.20948603749275208,
0.24612455070018768,
0.15757733583450317,
1.53889000415802,
0.48746228218078613,
1.0481640100479126,
-1.6323987245559692,
0.44299960136413574,
0.26840248703956604,
0.34788936376571655,
... |
def calculate _ snr ( self, signalvals, bgvals, factor = 0. 66 ) : mean _ phantom = np. mean ( signalvals ) # mean signal from image data ( filtered or unfiltered ) stdev _ background = np. std ( bgvals ) # noise = standard deviation of background voxel values snr _ background = ( factor * mean _ phantom ) / stdev _ ba... | [
-0.11264413595199585,
0.15674608945846558,
0.5129985213279724,
0.8366192579269409,
0.2621009349822998,
-0.2300950139760971,
0.05717271566390991,
0.2096683531999588,
-0.03139393404126167,
0.3194023072719574,
0.30928945541381836,
0.562031090259552,
-0.28471043705940247,
1.1130253076553345,
... |
def generate _ response ( overlay _ path, module _ path, environment, region ) : configfile = os. path. join ( overlay _ path, " kustomization. yaml " ) if os. path. isdir ( overlay _ path ) and os. path. isfile ( configfile ) : logger. info ( " processing kustomize overlay : % s ", configfile ) return { " skipped _ co... | [
-0.04240363463759422,
-0.06517567485570908,
0.5669129490852356,
-0.292856365442276,
-0.029508288949728012,
-0.1431976705789566,
0.4562136232852936,
-0.9567678570747375,
0.40147653222084045,
0.4205071032047272,
-0.24299256503582,
-0.8546719551086426,
-0.11408116668462753,
0.6022430062294006... |
def _ partition _ search _ problem ( self, frontier, selected _ search _ problem, tol = 1e - 6 ) : # add the integer vector to the list of tabu integer vectors projected _ space _ criterion _ indices = self. _ projected _ space _ criterion _ index _ 2 _ criterion _ index. values ( ) selected _ region = selected _ searc... | [
0.5489240288734436,
0.16910488903522491,
0.7807872295379639,
0.060352638363838196,
0.25110557675361633,
0.026795873418450356,
0.12309578061103821,
0.1591225266456604,
-0.24353867769241333,
0.2589269280433655,
0.029832947999238968,
-0.10749702900648117,
-0.6882933378219604,
-0.2612750530242... |
def upload _ wikifier _ output ( ) : if'uid'in session : response = dict ( ) user _ id = session ['uid'] project _ id = request. form ['pid'] project _ meta = dict ( ) error = wikified _ output _ uploader ( user _ id, project _ id ) project _ config _ path = get _ project _ config _ path ( user _ id, project _ id ) pro... | [
-0.766679584980011,
-1.0018900632858276,
0.6567918062210083,
-0.4747726023197174,
-0.240997776389122,
-0.38764050602912903,
0.39135193824768066,
-0.18963733315467834,
-1.216066598892212,
0.5321062803268433,
-0.6472001075744629,
0.2257886528968811,
-0.16473355889320374,
0.5461746454238892,
... |
def all _ times ( seconds, metric ) : for hour in range ( 12 ) : for minute in range ( 60 ) : for expr in seconds : second = sym. add ( expr ). subs ( { h : hour, m : minute } ) if 0 < = second < 60 : yield ( metric ( hour, minute, second ), hour, minute, second ) | [
0.37682437896728516,
0.6915255784988403,
0.6768983602523804,
0.6242381930351257,
-0.8164911270141602,
-0.043804291635751724,
-0.22530783712863922,
-1.2117153406143188,
-1.326257348060608,
0.5931995511054993,
-0.27712446451187134,
-0.45464062690734863,
0.38928094506263733,
0.356780767440795... |
def complete ( self ) : print " loading data is completed " pass | [
0.48859864473342896,
-0.6719573140144348,
0.4161607623100281,
-0.14348967373371124,
-0.26935678720474243,
1.062656044960022,
-0.43736913800239563,
-0.3599308133125305,
-0.6515752077102661,
0.10632739961147308,
-1.2657334804534912,
0.48621490597724915,
0.13526014983654022,
0.514031052589416... |
def find _ dna ( name, dna _ plate _ map _ dict, dna _ plate _ dict ) : for plate _ name, plate _ map in dna _ plate _ map _ dict. items ( ) : for i, row in enumerate ( plate _ map ) : for j, dna _ name in enumerate ( row ) : if dna _ name = = name : well _ num = 8 * j + i return ( dna _ plate _ dict [ plate _ name ]. ... | [
-0.27985355257987976,
-0.16210497915744781,
0.5835859179496765,
-0.7539346814155579,
-0.5240818858146667,
0.11567562818527222,
0.03351537138223648,
-0.9610936045646667,
-0.15490493178367615,
0.32939401268959045,
-0.2651352882385254,
0.2666492760181427,
-0.882242739200592,
0.586176455020904... |
def sleep ( interval = 60, delay = 60, modem _ off = false, acc _ off = false, confirm = false, reason = " unknown ", allow _ auto _ update = true, * * kwargs ) : # validate dynamic keyword arguments if [ k for k in kwargs. keys ( ) if not k. startswith ( " _ _ " ) ] : raise salt. exceptions. commandexecutionerror ( " ... | [
0.5697318315505981,
-0.06811440736055374,
0.9321915507316589,
0.613856852054596,
-0.2798413336277008,
0.043440576642751694,
0.10628916323184967,
-0.2039814293384552,
-0.43087029457092285,
0.02426804043352604,
0.33084845542907715,
1.2718290090560913,
-0.935650646686554,
-0.0490267276763916,... |
def test _ multiples _ numbers ( self ) : multipleofthree = multiple _ numbers. multiplenumbers ( 18 ) multipleoffive = multiple _ numbers. multiplenumbers ( 35 ) multipleofthreeandfive = multiple _ numbers. multiplenumbers ( 90 ) self. assertequal ( multipleofthree,'three') self. assertequal ( multipleoffive,'five') s... | [
-0.1515699177980423,
-0.010200493969023228,
0.32647255063056946,
0.3186587393283844,
0.6695831418037415,
0.5566070675849915,
-0.3486174941062927,
0.34865787625312805,
0.2001882940530777,
-0.7632138729095459,
-1.0783425569534302,
-0.9885795712471008,
-0.08716916292905807,
0.4494293332099914... |
def finishsequence ( self, cmd ) : cmdkeys = cmd. cmd. keywords now ='now'in cmdkeys try : sequence = self. engine. registry. identify ( cmdkeys ) sequence. dofinish ( cmd, now = now ) except exception as e : cmd. fail ( f'text = " { str ( e ) } "') return cmd. finish ( ) | [
-1.1074074506759644,
-0.7892771363258362,
0.4585152864456177,
0.5819092392921448,
-0.029490023851394653,
0.12785868346691132,
-0.16981784999370575,
-0.49366989731788635,
-0.551360011100769,
0.6501080989837646,
-0.5382034182548523,
-0.029879847541451454,
-0.5032361149787903,
1.4997384548187... |
def newconversation ( self, contacts _ uid ) : # todo : check if no conversation like this one already exists c = amsnconversation ( self. _ core, self, none, contacts _ uid ) self. _ convs. append ( c ) | [
-0.10280865430831909,
-0.4591043293476105,
0.46710658073425293,
0.06490221619606018,
0.05838945508003235,
0.3452766537666321,
-0.19062557816505432,
-0.7169159054756165,
1.8342939615249634,
-0.5368392467498779,
-0.4985382854938507,
-0.08026265352964401,
-0.5161590576171875,
0.47036492824554... |
def assert _ output ( capsys, expected _ stdout ) : actual _ stdout = capsys. readouterr ( ). out for actual _ stdout _ line, expected _ stdout _ line in zip ( actual _ stdout. splitlines ( ), expected _ stdout. splitlines ( ) ) : assert re. match ( " ^ " + expected _ stdout _ line + " $ ", actual _ stdout _ line ), " ... | [
0.13983044028282166,
-1.1858186721801758,
0.8605424761772156,
0.573926568031311,
-0.170111745595932,
0.050238482654094696,
0.04122423008084297,
-0.2963988184928894,
0.10513592511415482,
-0.24989880621433258,
0.6816880702972412,
0.3136310279369354,
-0.08451232314109802,
0.5870096683502197,
... |
def trafficloadstep ( self ) : if self. force _ auto _ sync : self. get ('trafficloadstep') return self. _ trafficloadstep | [
-0.4978678524494171,
0.4276339113712311,
0.33554700016975403,
-0.2508365213871002,
-0.003576708724722266,
0.4971282482147217,
0.2677834630012512,
-0.9469629526138306,
-0.4459379017353058,
-0.15228791534900665,
-0.8508297801017761,
-0.19307807087898254,
-0.4151568114757538,
-0.2034614980220... |
def to _ python ( self, value ) : if isinstance ( value, dirdescriptor ) : return value elif isinstance ( value, str ) : return dirdescriptor ( value ) elif isinstance ( value, dict ) : try : path = value [ " dir " ] except keyerror : raise validationerror ( " dictionary must contain a'dir'element " ) if not isinstance... | [
-0.5081480145454407,
-0.003635239088907838,
0.7825766205787659,
-0.624356746673584,
-0.34048864245414734,
-0.0318741500377655,
0.5396358966827393,
-0.028372101485729218,
0.3997562825679779,
-0.5591422915458679,
0.4976825714111328,
0.27952659130096436,
-0.03442685678601265,
0.57300460338592... |
def _ _ init _ _ ( self, format, jsonp = none, serialize _ all _ fields = false, file _ handler = none, max _ depth = 1 ) : self. format = format self. encode = getattr ( self, format ) self. jsonp = jsonp self. serialize _ all _ fields = serialize _ all _ fields self. max _ depth = max _ depth self. file _ handler = f... | [
0.02172902598977089,
-0.46920251846313477,
0.5284735560417175,
0.557537317276001,
-0.33118245005607605,
0.08825431764125824,
0.31365907192230225,
0.6692863702774048,
-0.5737012624740601,
-1.006762981414795,
0.14432521164417267,
0.1689346879720688,
-0.37431207299232483,
0.6612294316291809,
... |
def get _ xy _ pos ( relativenullpoint, p ) : deltalatitude = p. latitude - relativenullpoint. latitude deltalongitude = p. longitude - relativenullpoint. longitude latitudecircumference = 40075160 * cos ( relativenullpoint. latitude * pi / 180 ) resultx = deltalongitude * latitudecircumference / 360 resulty = deltalat... | [
0.4583398401737213,
-0.49916189908981323,
0.7512515187263489,
-0.8031736612319946,
-0.131498783826828,
-0.13180534541606903,
-0.26385214924812317,
0.022168561816215515,
-0.11421779543161392,
-0.03453420475125313,
-0.8090552687644958,
-0.6296792030334473,
-0.5168694257736206,
-0.55526477098... |
def download ( ctx, account = none, tag = none, days = none, debug = false ) : if debug : settings. set _ debug _ mode ( ) settings. set _ steem _ node ( ) account = account or settings. get _ env _ var ( " steem _ account " ) tag = tag or settings. get _ env _ var ( " steem _ tag " ) days = days or settings. get _ env... | [
0.7301807999610901,
1.3432921171188354,
0.44750624895095825,
1.4255703687667847,
0.12079687416553497,
0.015537310391664505,
0.4452449381351471,
-0.18056288361549377,
-0.41268035769462585,
-0.1221616193652153,
0.06756959110498428,
0.5066208839416504,
-0.3107762336730957,
0.6926631331443787,... |
def status ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " status " ) | [
0.648990273475647,
-0.37072157859802246,
0.26162824034690857,
0.3389660716056824,
0.8354038000106812,
1.3880674839019775,
-0.10290729254484177,
0.4514903426170349,
1.040076494216919,
-0.05561817064881325,
-0.10378003865480423,
0.691322922706604,
0.2887861728668213,
-1.0722068548202515,
-... |
def spectra _ evidences ( self, usi, project _ accession, assay _ accession, peptide _ sequence, modified _ sequence, result _ type, page _ size, page, sort _ direction, sort _ conditions ) : request _ url = self. api _ base _ url + " spectra? " if usi : usiarray = usi. split ( " \ \ n " ) for usielement in usiarray : ... | [
-0.8792510628700256,
-0.013364684768021107,
0.7236313223838806,
-0.5803641676902771,
0.19911518692970276,
-0.05734050273895264,
-0.5023286938667297,
0.10643511265516281,
0.13523930311203003,
0.92375648021698,
0.2785964906215668,
0.8870641589164734,
-0.16189885139465332,
0.9226776957511902,... |
def bt _ write _ inquiry _ mode ( sock, mode ) : # save current filter # old _ filter = sock. getsockopt ( bluez. sol _ hci, bluez. hci _ filter, 14 ) # setup socket filter to receive only events related to the # write _ inquiry _ mode command flt = bluez. hci _ filter _ new ( ) opcode = bluez. cmd _ opcode _ pack ( bl... | [
-0.5435286164283752,
0.17062117159366608,
0.8944833874702454,
-0.6006072759628296,
0.628141462802887,
0.6018816232681274,
0.5508154630661011,
-0.3954343795776367,
-0.39935556054115295,
0.19930146634578705,
-0.10037042945623398,
0.0961768627166748,
-1.4656811952590942,
-0.3623775541782379,
... |
def _ _ cargar _ roles _ al _ sistema ( ) - > none : crea _ roles _ predeterminados ( ) | [
-0.4021214544773102,
0.7279849052429199,
0.3481837809085846,
-0.10172394663095474,
1.3512059450149536,
0.2634480893611908,
-0.5250473022460938,
-0.08155100047588348,
-0.739266574382782,
-0.2827969193458557,
0.3433494567871094,
0.19836576282978058,
-0.0169684961438179,
0.8885642290115356,
... |
def adf _ check ( self, time _ series, var ) : result = adfuller ( time _ series, maxlag = none, regression = var, autolag ='aic ', store = false ) # result = ( adf, pvalue, usedlag, nobs, critical _ values, icbest, resstore ) # condition to check stationarity - > we are looking for those non - stationary so return = 1... | [
-0.679641604423523,
-0.5931877493858337,
0.3984076678752899,
0.7480556964874268,
-0.027268139645457268,
0.08164606988430023,
-0.1079045757651329,
-0.038758695125579834,
-0.5148005485534668,
0.4003117084503174,
1.017045497894287,
0.6425936818122864,
-0.9987162947654724,
0.07259094715118408,... |
def startswith ( self, prefix : str ) - > bool : node = self charlist = [ char for char in prefix ] for char in charlist : if char in node. childlist : index = node. childlist. index ( char ) node = node. children [ index ] else : return false return true | [
-0.07883928716182709,
0.03291574493050575,
0.6234365701675415,
-0.06122322753071785,
-0.8448942303657532,
-0.7351281642913818,
-0.7918885946273804,
0.10055601596832275,
0.35282713174819946,
0.06448853760957718,
-0.6515399813652039,
0.5932283997535706,
-0.23065195977687836,
-0.1547918915748... |
def setup ( hass, config ) : # data that you want to share with your platforms api = ziggonext ( config [ domain ] [ conf _ username ], config [ domain ] [ conf _ password ], config [ domain ] [ conf _ country _ code ] ) api. connect ( ) hass. data [ ziggo _ api ] = api hass. helpers. discovery. load _ platform ('media... | [
0.3321550786495209,
0.7824576497077942,
0.4070571959018707,
0.3195931315422058,
0.13770708441734314,
-0.05769406259059906,
0.4417808949947357,
0.3772258758544922,
0.03909911960363388,
0.26080796122550964,
-1.0304937362670898,
0.4296483099460602,
-0.7458459734916687,
0.22949044406414032,
... |
def luminance ( frame ) : return np. dot ( frame, np. array ( [. 3,. 59,. 11 ] ) ) | [
0.7522147297859192,
-0.9631644487380981,
0.5050915479660034,
-0.6331269145011902,
0.9522989392280579,
-0.03847089037299156,
-0.625210702419281,
-0.03472809121012688,
1.4570449590682983,
0.7270961403846741,
-0.004742852877825499,
0.005552499555051327,
-0.38524532318115234,
-0.98094576597213... |
def expand _ short _ options ( argument ) : return ('-'+ char for char in argument [ 1 : ] ) | [
0.31457704305648804,
0.9931008219718933,
0.7448203563690186,
-0.35097649693489075,
0.001651067053899169,
0.28336572647094727,
-0.1963377594947815,
-0.12387098371982574,
0.7765607237815857,
0.12306787073612213,
-0.060199931263923645,
1.2479822635650635,
0.674920916557312,
-0.367166042327880... |
def threads ( self, filter = none, pid = none ) : log. debug ( " executing volatility threads plugin on " " { 0 } ". format ( self. memdump ) ) self. _ _ config ( ) results = [ ] self. config. pid = pid self. config. filter = filter command = self. plugins [ " threads " ] ( self. config ) for thread, addr _ space, mods... | [
-0.4212362468242645,
-0.7096096277236938,
0.5483295917510986,
-0.8184742331504822,
0.842666506767273,
-0.5295336842536926,
-0.690771758556366,
0.3145638108253479,
0.011327085085213184,
0.8323994874954224,
-0.1502753347158432,
0.6062872409820557,
-0.576019823551178,
0.4189217984676361,
-0... |
def _ _ init _ _ ( self, * args ) : _ topods. topods _ tshell _ swiginit ( self, _ topods. new _ topods _ tshell ( * args ) ) | [
0.1339581161737442,
0.4186100363731384,
0.49740055203437805,
-0.12574733793735504,
-0.3965950906276703,
0.24854321777820587,
0.5852635502815247,
-0.11735484004020691,
-0.5736521482467651,
0.25504064559936523,
-0.8547739386558533,
-0.7304674983024597,
0.3207462728023529,
0.5326038599014282,... |
def contains ( self, key ) : with self. lock : if self. _ _ getitem _ _ ( key ) = = false : return false else : return true | [
-1.1921617984771729,
-0.06901556253433228,
0.3284291625022888,
-0.08803588896989822,
-0.4963933229446411,
0.39334914088249207,
-0.7083213329315186,
-0.6896770000457764,
-0.18845969438552856,
0.17179661989212036,
-0.040420565754175186,
-0.3387085795402527,
-1.8749144077301025,
0.30838626623... |
def scrape _ update ( id ) : scrape _ data = get _ scarpe ( id ) if request. method = = " post " : urltitle = str ( request. form [ " urltitle " ] ) r = requests. get ( urltitle ) soup = beautifulsoup ( r. text,'html. parser') pagetitle = soup. title. text # import pdb ; pdb. set _ trace ( ) error = none if not urltitl... | [
-0.9165382981300354,
-0.17106325924396515,
0.8256884813308716,
-0.11357040703296661,
-0.24416854977607727,
0.7375717163085938,
-0.8368418216705322,
0.44822296500205994,
0.32208138704299927,
0.6895231604576111,
0.25464004278182983,
-0.3544120788574219,
0.12656015157699585,
-0.23963741958141... |
def _ _ str _ _ ( self ) : return'token ( { type }, { value } ) '. format ( type = self. type, value = repr ( self. value ) ) | [
-0.671032726764679,
-1.6941161155700684,
0.48830267786979675,
-1.0501863956451416,
-0.4872410297393799,
0.16564227640628815,
-0.30376967787742615,
-0.08421999961137772,
0.09952392429113388,
-0.3058333396911621,
0.5346530079841614,
1.5240217447280884,
0.6287437677383423,
-0.4600505828857422... |
def setseriesformat ( self, * args ) : return _ itkimageserieswriterpython. itkimageserieswriterif3if2 _ setseriesformat ( self, * args ) | [
-0.5571812391281128,
0.4873773753643036,
0.18353287875652313,
0.1405772715806961,
-0.3680131733417511,
-0.29442209005355835,
-0.08274119347333908,
-0.5839449167251587,
0.14046107232570648,
0.3426175117492676,
-0.24224425852298737,
0.8354856967926025,
-0.41448310017585754,
0.301165908575058... |
def collate ( csvpath _ list ) : # print ('dbg : csvpath _ list = ', list ( csvpath _ list ) ) columnnames = ['launch ','size ','apps ','chances ','won _ chances'] launch _ days = defaultdict ( lambda : defaultdict ( int ) ) # ld [ ( m, d ) ] = dict [ year ] = num _ apps permits = defaultdict ( int ) # permits [ date ]... | [
-0.30241236090660095,
-0.18064765632152557,
0.7822449207305908,
0.006952377501875162,
-0.4505000710487366,
0.42667055130004883,
0.3707299530506134,
0.7741707563400269,
0.2946610450744629,
0.43425261974334717,
0.42681387066841125,
-0.5331712961196899,
0.4010813236236572,
1.3530757427215576,... |
def _ parse _ cmgl ( s ) : res = s. strip ( ). rstrip ( ) parts = [ ] messages = [ ] for l in res. split ('\ n') [ 1 : ] : l = l. strip ( ). rstrip ( ) # the response has been fully processed. let's # return the last message set. if l [ : 2 ] = ='ok': if not parts and not messages : break m ='\ n '. join ( parts ) mess... | [
0.16797244548797607,
-0.21743908524513245,
0.8594606518745422,
-0.4546630084514618,
-0.8147189617156982,
-1.192974328994751,
-0.017436902970075607,
-0.8848816752433777,
0.3418091833591461,
-0.5927567481994629,
-0.12094287574291229,
-0.34959909319877625,
-0.9532232284545898,
-0.085067972540... |
def update ( self, current, values = [ ], exact = [ ], strict = [ ] ) : for k, v in values : if k not in self. sum _ values : self. sum _ values [ k ] = [ v * ( current - self. seen _ so _ far ), current - self. seen _ so _ far ] self. unique _ values. append ( k ) else : self. sum _ values [ k ] [ 0 ] + = v * ( curren... | [
-0.26494523882865906,
0.13039065897464752,
0.7859765291213989,
-0.4402582049369812,
0.3516860604286194,
0.3649354875087738,
0.9934192895889282,
0.1510184407234192,
-0.35618817806243896,
0.459097295999527,
0.47998663783073425,
0.6122956871986389,
0.16061407327651978,
0.6765046119689941,
-... |
def test _ missing _ details ( self ) : # validate a form with a blank required field, ` ` job _ title ` ` form = self. form _ data ( name _ 0 = " david mcquire ", email _ 0 = " info @ specterops. io ", phone _ 0 = " ( 555 ) 555 - 5555 ", job _ title _ 0 = " ceo ", note _ 0 = " a note about this contact ", name _ 1 = "... | [
0.3450031876564026,
-0.18329742550849915,
0.5919392704963684,
-0.9634921550750732,
0.46855494379997253,
0.7950942516326904,
-0.4389166831970215,
0.14237354695796967,
-0.5297594666481018,
-1.1311794519424438,
-0.19674921035766602,
-0.18452399969100952,
0.017683008685708046,
0.21351160109043... |
def pixel _ to _ unit ( self, pt : point ) - > point : # todo : allow for different scales in x and y return point ( x = pt. x * self. _ units _ per _ pixel, y = pt. y * self. _ units _ per _ pixel ) | [
-1.0096296072006226,
-0.36576205492019653,
0.4149510860443115,
-1.028409719467163,
0.055192962288856506,
0.5820786952972412,
-0.539951503276825,
-1.310317873954773,
0.6088083982467651,
0.5288103818893433,
0.31785261631011963,
0.2928498089313507,
0.364591509103775,
-0.46506941318511963,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.