text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def is _ clear _ text _ password ( attribute _ name ) : # clear text password attributes are not in the alias definition and are skipped on discover or set # clear text do not have encrypted on the end return ('credential'in attribute _ name or'pass'in attribute _ name or'encrypted'in attribute _ name ) \ and not attri... | [
-0.2530709505081177,
-0.3580690622329712,
0.4796060621738434,
0.03706493228673935,
-1.2003992795944214,
1.0469067096710205,
-0.3234657347202301,
-0.20294751226902008,
0.25076577067375183,
2.1343157291412354,
0.20447880029678345,
0.41394567489624023,
0.3723071217536926,
0.5897888541221619,
... |
def impscan ( self, pid = none ) : log. debug ( " executing volatility impscan plugin on " " { 0 } ". format ( self. memdump ) ) self. _ _ config ( ) results = [ ] if pid = = none : log. debug ( " no pid for impscan, returning empty dict. " ) return dict ( config = { }, data = [ ] ) self. config. pid = pid command = se... | [
-0.9437544345855713,
-0.3036904036998749,
0.5594510436058044,
-0.5871908664703369,
-0.18555901944637299,
-1.1817957162857056,
-0.7455166578292847,
0.28658750653266907,
0.5843029618263245,
0.27672234177589417,
-0.7076736688613892,
0.04932195320725441,
-0.9948654174804688,
0.5247257947921753... |
def detach ( self, instance _ id ) : if instance _ id and instance _ id = = self. instance _ id : return self. connection. detach _ disk ( disk _ id = self. id, instance _ id = instance _ id ) return false | [
-0.32599037885665894,
-0.013544624671339989,
0.6208016276359558,
-0.6891074180603027,
-0.7045440673828125,
0.77568519115448,
0.3516729176044464,
0.13790670037269592,
0.03401986137032509,
0.01399189792573452,
-0.4195551872253418,
-0.027326315641403198,
-1.1177424192428589,
0.439847677946090... |
def audit ( osmfile ) : osm _ file = open ( osmfile, " r ", encoding = " utf8 " ) street _ types = defaultdict ( set ) for event, elem in et. iterparse ( osm _ file, events = ( " start ", ) ) : if elem. tag = = " node " or elem. tag = = " way " : for tag in elem. iter ( " tag " ) : if is _ street _ name ( tag ) : audit... | [
0.9815217852592468,
0.03338637948036194,
0.7280640602111816,
-0.32452863454818726,
-0.3735073506832123,
-0.36235398054122925,
0.6139440536499023,
0.24939505755901337,
-1.0257782936096191,
0.36455902457237244,
-0.10925577580928802,
0.23716869950294495,
-0.27430540323257446,
1.19668376445770... |
def readall ( self ) : return b'' | [
0.5094490051269531,
-0.377086341381073,
0.5384229421615601,
0.4558808505535126,
-0.01952453888952732,
0.6409569978713989,
-1.343040943145752,
-0.7047297954559326,
0.3024202287197113,
-1.0067429542541504,
0.28703776001930237,
0.7434066534042358,
-0.8885744214057922,
-0.25599387288093567,
... |
def rpc ( self ) : raise notimplementederror ('this poco agent does not have a explicit rpc connection.') | [
0.5678821802139282,
-0.44655507802963257,
0.5575194358825684,
-0.6416932344436646,
0.17824697494506836,
-0.038728997111320496,
-0.09428493678569794,
-0.3736485242843628,
0.3240017294883728,
-0.09526167809963226,
0.1695825159549713,
-0.280997633934021,
-0.9813543558120728,
-0.05641277879476... |
def _ strip _ path ( path, part ='' ) : if'' = = part : # if there is nothing to do because part is empty return path # go home # maybe alternative # re. sub ( r " / * { } / * ". format ( part + " + " ), " ", path ) # eg. part ='static ', path ='static / img / frontpage - script. jpg'# old : # re. sub ( " / * " + part ... | [
0.12330661714076996,
-1.0024516582489014,
0.7228814363479614,
0.0010217602830380201,
-1.2304272651672363,
0.45301905274391174,
0.45986342430114746,
0.5987756252288818,
0.19932234287261963,
0.3479142487049103,
0.17211277782917023,
0.025542499497532845,
-0.37398454546928406,
-0.4009739160537... |
def _ get _ isolate _ node ( self, isolate _ name ) : try : # read the configuration, without logging file errors config = self. _ configuration. read ( " { 0 }. js ". format ( isolate _ name ), false ) # return the indicated node return config. get ('node') except exception : # ignore i / o error : the isolate has no ... | [
-1.1341291666030884,
0.008067007176578045,
0.8239341378211975,
-0.02582002431154251,
-0.42950043082237244,
-0.48603320121765137,
0.3773385286331177,
-0.2148752361536026,
-0.046714287251234055,
0.720856249332428,
0.2748541235923767,
-0.005351260770112276,
-0.5105974078178406,
-0.92429924011... |
def min _ coils _ lp ( coil _ widths, product _ widths, wastes, waste _ max, instance _ name = " " ) : prob = pulp. lpproblem ( " mcp instance : % s " % instance _ name, pulp. lpminimize ) # - - - total coil usage - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ... | [
-0.17686203122138977,
-0.9068286418914795,
1.0635398626327515,
-0.8026723861694336,
-0.9502118229866028,
-0.3359690308570862,
0.3580666482448578,
-0.11720084398984909,
0.2981083393096924,
0.8524335622787476,
-0.3427780568599701,
0.14809459447860718,
-0.6152828335762024,
-0.6347696781158447... |
def restart _ names ( ) : try : load _ faces ( ) load _ names _ in _ dicts ( ) except exception as e : messagebox. showerror ( " restart names error ", str ( e ) ) | [
-0.19166168570518494,
0.14645929634571075,
0.4151434004306793,
-0.44577756524086,
-0.3952474296092987,
-0.15381473302841187,
0.4509241580963135,
-0.2964610457420349,
-0.6786454319953918,
0.5607314705848694,
-0.694654107093811,
0.8698930740356445,
-0.19824948906898499,
0.1066717803478241,
... |
def create _ tables _ dynamo ( * * kwargs ) : # get the dynamodb credentials from the airflow airflow variabe, establish connection dynamodb = boto3. resource ( kwargs ['db'], aws _ access _ key _ id = kwargs ['key'], aws _ secret _ access _ key = kwargs ['s _ key'], region _ name = kwargs ['r _ name'] ) # create dynam... | [
0.5642600655555725,
0.02079530619084835,
0.5144160985946655,
0.10324886441230774,
0.5626831650733948,
0.6431542634963989,
-0.12818214297294617,
0.5536544919013977,
-0.38800859451293945,
0.05841616913676262,
0.3362579047679901,
0.12357953190803528,
-0.10627929866313934,
0.23758536577224731,... |
def getreadouttime ( ) : andor _ solis. getreadouttime. restype = ctypes. c _ uint readouttime = ctypes. c _ float ( ) result = andor _ solis. getreadouttime ( ctypes. byref ( readouttime ) ) check _ status ( result ) return float ( readouttime. value ) | [
0.2430952936410904,
-0.22525113821029663,
0.6071191430091858,
-0.11543186008930206,
-0.5074201822280884,
-0.7054619193077087,
0.22894471883773804,
0.11256324499845505,
-0.014908324927091599,
0.21551118791103363,
0.6486714482307434,
-0.07042492181062698,
-0.5753812193870544,
-0.319392591714... |
def num _ syllables ( self ) : return len ( self. coarse _ stress _ pattern ) | [
1.0098686218261719,
0.7560213804244995,
0.3092257082462311,
-0.7401403188705444,
0.20245361328125,
0.7607804536819458,
0.912889301776886,
0.40144652128219604,
0.21456842124462128,
-0.5124008059501648,
-1.4433778524398804,
0.039120275527238846,
0.009464059956371784,
-0.2437610924243927,
-... |
def generate _ snp _ positions ( numsnp, lensequences ) : return sorted ( sample ( range ( lensequences ), numsnp ) ) | [
-0.3019659221172333,
-0.8142173886299133,
0.30328699946403503,
-0.17514488101005554,
-0.44918403029441833,
0.18526536226272583,
-0.5158615112304688,
0.05486690253019333,
2.2634098529815674,
0.45579588413238525,
-0.3310176432132721,
0.18714576959609985,
-0.3988225758075714,
-0.6767322421073... |
def create _ project ( ) : if'uid'in session : response = dict ( ) if'ptitle'in request. form : project _ title = request. form ['ptitle'] project _ id = generate _ id ( ) response ['pid'] = project _ id create _ directory ( app. config ['upload _ folder'], session ['uid'], project _ id, project _ title ) else : respon... | [
-1.00382661819458,
-0.024929465726017952,
0.4856041371822357,
0.42385411262512207,
-0.07660187035799026,
0.3927760422229767,
-0.3483090400695801,
-0.643564760684967,
0.40313902497291565,
-0.15887819230556488,
0.15535368025302887,
-0.8270153403282166,
-0.6713119149208069,
0.1002870425581932... |
def _ generate _ qubits ( self ) : return cirq. linequbit. range ( 4 ) | [
-0.15746013820171356,
-0.17193371057510376,
0.340957909822464,
-0.03377842903137207,
0.42081794142723083,
0.4484986960887909,
-0.396453857421875,
-0.15743716061115265,
-0.31118616461753845,
-0.9493942856788635,
-0.8107044100761414,
-0.3029745817184448,
-0.6186680197715759,
-0.0754229873418... |
def runplan ( some _ plan, left, right, boat, backup ) : global tries reset _ game ( left, right, boat, backup ) tries = tries + 1 if len ( some _ plan ) = = 0 : # initial empty plan return 0 for i in range ( len ( some _ plan ) ) : if ( some _ plan [ i ] [ 0 ] = = cross ) : y = some _ plan [ i ] [ 0 ] ( boat ) else : ... | [
-1.0532877445220947,
0.2523901164531708,
0.7797207832336426,
0.4393949806690216,
0.23297956585884094,
-0.09382551163434982,
0.40971407294273376,
-0.31551721692085266,
-0.08588320761919022,
0.6336520910263062,
-0.5987781286239624,
-0.02855961211025715,
-0.8475587368011475,
0.008331834338605... |
def cartesian _ to _ spherical _ torch ( x, y, z ) : phi = torch. atan2 ( y, x ) * 180 / np. pi theta = torch. acos ( z ) * 180 / np. pi return phi, theta | [
-0.17121608555316925,
-1.1475380659103394,
0.2970212399959564,
-0.6400151252746582,
-0.8014625310897827,
-0.1051802933216095,
-1.2670143842697144,
-0.06535887718200684,
-0.46477845311164856,
0.592825174331665,
-1.054822325706482,
0.3230619728565216,
0.8400784134864807,
-0.9124189019203186,... |
def validate _ tuples ( func : callable ) - > callable : def decorating _ function ( self, rows : iterable [ namedtuple ] ) - > none : # wrap single values into an iterable if type ( rows ) = = self. tuple : rows = [ rows ] def is _ valid ( row ) : return type ( row ) = = self. tuple if all ( map ( is _ valid, rows ) )... | [
-1.4690216779708862,
0.6013889908790588,
0.5206449627876282,
0.24550676345825195,
-0.36910349130630493,
0.02267337404191494,
-0.0002435445785522461,
0.05420413613319397,
0.12533383071422577,
0.24104160070419312,
0.9516494870185852,
-0.5645509958267212,
0.5717029571533203,
0.199777483940124... |
async def table _ teacher _ application _ exists ( self ) - > bool : mycursor, db = await the _ database ( ) await mycursor. execute ( " show table status like'teacherapplication'" ) exists = await mycursor. fetchall ( ) await mycursor. close ( ) if len ( exists ) : return true else : return false | [
-1.1442241668701172,
-0.03745679929852486,
0.69928377866745,
0.557199239730835,
0.3199979364871979,
0.9983740448951721,
-0.44854089617729187,
0.4885454475879669,
-0.895298421382904,
1.1443625688552856,
-0.5392904877662659,
-0.4681941568851471,
0.08184771239757538,
1.1569825410842896,
-0.... |
def send _ flow _ mod ( self, datapath, priority, match, actions, idle _ timeout = 0, hard _ timeout = 0 ) : ofproto = datapath. ofproto parser = datapath. ofproto _ parser inst = [ parser. ofpinstructionactions ( ofproto. ofpit _ apply _ actions, actions ) ] mod = parser. ofpflowmod ( datapath = datapath, priority = p... | [
-0.8014945983886719,
0.027526650577783585,
0.5145658254623413,
0.14124898612499237,
0.5320215225219727,
0.09934474527835846,
-0.015391843393445015,
-0.08359036594629288,
0.86455899477005,
-0.4082928001880646,
0.031973566859960556,
0.33123692870140076,
-0.3893330693244934,
-0.22057977318763... |
def get _ records _ count ( self, partitioning = none, partition _ id = none ) : raise exception ( " unimplemented " ) | [
0.09253697097301483,
-0.118459053337574,
0.7971020340919495,
-0.12720125913619995,
0.35307008028030396,
-0.5027891993522644,
-0.5668916702270508,
1.3266074657440186,
-1.0050569772720337,
0.04089376702904701,
-0.3359896242618561,
0.21075472235679626,
-0.20752599835395813,
-0.603176057338714... |
def cost _ function ( x, y, beta ) : # number of training examples m = len ( y ) # calculate the cost with the given parameters j = ( np. sum ( ( predict ( x, beta ) - y ) * * 2 ) + beta [ :, 0 ]. dot ( beta ) ) / 2 / m return float ( j ) | [
-0.2611490488052368,
-0.3050990104675293,
0.2656363546848297,
-0.10384237766265869,
-0.10711519420146942,
-0.7855461835861206,
0.2542545199394226,
-0.07148505002260208,
-1.4883884191513062,
0.8987569808959961,
-0.7460744976997375,
0.16339759528636932,
-0.051230624318122864,
0.2143596112728... |
def executor _ decorator ( fn ) : def wrapped _ fn ( self, executor ) : " " " install a particular execution context before running ` fn `. " " " # executors inheriting from ` executor _ base. executor ` will need to be # wrapped in an execution context. the ` referenceexecutor ` is special and # inherits from ` contex... | [
-0.3397347033023834,
0.3831290900707245,
0.43958669900894165,
0.1437520831823349,
0.5747069716453552,
-0.48287084698677063,
0.13539883494377136,
0.46024417877197266,
0.7842615842819214,
0.1458640843629837,
0.4563315212726593,
0.09488383680582047,
0.5942755341529846,
0.434945672750473,
0.... |
def _ getassociatedrst ( self ) : a = self. _ associatedrst if a is not none : return a p = self. _ parent assert p is not none if isinstance ( p, unitbase ) : return getrst ( p ) else : return p. _ getassociatedrst ( ) | [
0.5518078804016113,
-0.07603086531162262,
0.580525279045105,
0.0030025101732462645,
0.6591483950614929,
-0.6446219086647034,
0.4894357919692993,
-1.4807231426239014,
0.9190676212310791,
-0.9588350653648376,
0.9947608709335327,
0.20555752515792847,
-0.4186495244503021,
0.13765329122543335,
... |
def compute _ adjacency _ matrix ( self, threshold ) : self. w = np. zeros ( ( self. n, self. n ) ) for i in range ( self. n ) : for j in range ( i + 1, self. n ) : dist = np. linalg. norm ( self. data [ i ] - self. data [ j ] ) if ( dist < threshold ) : lambd = 0. 1 self. w [ i, j ] = np. exp ( - dist / lambd ) self. ... | [
0.4834701716899872,
-0.5858814120292664,
0.6274019479751587,
0.04224918410181999,
-0.34014785289764404,
-0.07577680796384811,
0.36256951093673706,
0.3238413333892822,
0.3164442181587219,
-0.13387899100780487,
0.9751945734024048,
0.9533006548881531,
-0.31523609161376953,
0.6274944543838501,... |
def get _ entry ( self, name, field = none ) : self. log. debug ( " retrieving field entry in field'{ }'for name'{ }'". format ( field, name ) ) if self. name _ view. get ( name, none ) is none : self. log. warn ( " no field'{ }'for name'{ }'". format ( field, name ) ) return none if field : return self. db. get ( self... | [
0.038676392287015915,
0.26298588514328003,
0.40189728140830994,
-0.511614978313446,
-0.02399223856627941,
-0.392401784658432,
-0.4691992998123169,
-0.6811415553092957,
-0.13488154113292694,
-0.1968538463115692,
0.28060585260391235,
0.33330243825912476,
-0.6137914061546326,
0.71340411901474... |
def question ( self, obj ) : return obj. text [ : 20 ] | [
0.252386212348938,
-0.7742241621017456,
0.44992032647132874,
-1.0455071926116943,
-0.5287483334541321,
0.7196318507194519,
0.1615992784500122,
-0.62700355052948,
0.8159347176551819,
0.40217268466949463,
-0.6346781849861145,
-0.3630058467388153,
-0.10102326422929764,
-1.3159253597259521,
... |
def setadditionalfields ( self, field _ names ) : self. _ field _ names. extend ( field _ names ) | [
-0.20366136729717255,
0.3756886124610901,
0.26735690236091614,
-0.677932858467102,
0.5387483835220337,
0.9618012309074402,
-0.6529811024665833,
0.0998055562376976,
0.5258684754371643,
-0.8317095637321472,
-1.860615611076355,
0.23116518557071686,
-0.08038599789142609,
0.40958669781684875,
... |
def test _ channel _ presence _ array _ list ( ) : chan _ presence = mob. channel _ presence ( chmap _ list ) assert np. all ( chan _ presence = = np. array ( [ [ 0., 0. 8, 0. 2, 0. ], [ 0., 0. 6, 0. 4, 0. ], [ 0., 0. 4, 0. 6, 0. ], [ 0., 0. 2, 0. 8, 0. ] ] ) ) | [
0.29293587803840637,
-1.5083954334259033,
0.7291337251663208,
-0.15599769353866577,
1.8114880323410034,
0.8604121804237366,
-0.47485843300819397,
0.11376900970935822,
0.5943366885185242,
0.1983061283826828,
-0.5708613991737366,
0.02613857202231884,
-0.4330900013446808,
0.9626986384391785,
... |
async def _ parse _ value ( self, responses : sourceresponses ) - > value : dates = [ self. _ board. get ( " createdat " ), self. _ board. get ( " modifiedat " ) ] for lst in self. _ lists : dates. extend ( [ lst. get ( " createdat " ), lst. get ( " updatedat " ) ] ) dates. extend ( [ card [ " datelastactivity " ] for ... | [
-0.23558802902698517,
0.6665111780166626,
0.5690535306930542,
-1.1721309423446655,
0.1146131083369255,
-0.3539077043533325,
-0.358737587928772,
-0.3076123893260956,
0.05462806299328804,
-0.2985368072986603,
0.4058912396430969,
-1.0204389095306396,
0.7328646779060364,
0.3296937942504883,
... |
def combine _ folder _ and _ file _ name ( folder _ name, file _ name ) : combined _ name = os. path. normpath ( f'{ folder _ name } { " / " if folder _ name else " " } { file _ name }') combined _ name = os. path. normpath ( combined _ name ) return combined _ name | [
0.5094267725944519,
-1.089672327041626,
0.529585063457489,
0.5303736329078674,
0.1278647929430008,
0.6614516377449036,
0.08297119289636612,
1.1500005722045898,
-1.1461427211761475,
0.38043051958084106,
1.7765462398529053,
-0.3383001387119293,
-0.13761484622955322,
1.0464513301849365,
0.1... |
def import _ tentaclio _ plugins ( list _ packages : packagelister = packages _ distributions ( ). keys, ) - > none : for package in list _ packages ( ) : if package. startswith ( " tentaclio _ " ) : logger. info ( f " importing plugin : { package } " ) importlib. import _ module ( package ) | [
0.5011650919914246,
-0.25434714555740356,
0.2534824013710022,
0.652826189994812,
0.31457099318504333,
-0.3692401051521301,
0.11042357981204987,
-0.2120024710893631,
0.594422459602356,
0.7328938245773315,
-1.9510419368743896,
-0.42503976821899414,
0.0885256752371788,
0.20509257912635803,
... |
def get _ relations ( self ) : relations = set ( ) for relation in self. _ field. process. relations : for partition in relation [ " partitions " ] : if partition [ " entity _ id " ] = = self. entity _ id : relations. add ( relationdescriptor. from _ dict ( relation ) ) return list ( relations ) | [
0.1781967431306839,
0.24933499097824097,
0.5465772151947021,
-0.8710285425186157,
1.5996416807174683,
-0.33628731966018677,
-1.262284278869629,
0.043089739978313446,
-0.3808741271495819,
-0.43984782695770264,
0.4719211757183075,
0.4382820725440979,
-0.46003368496894836,
0.11133816093206406... |
def test _ setattr ( self ) : hw _ thread _ instance = hardwarethread ( ) # lamp _ time def invalid _ add _ attribute ( ) : hw _ thread _ instance. lamp _ time = 5 self. assertraises ( attributeerror, invalid _ add _ attribute ) def invalid _ read _ attribute ( ) : a = hw _ thread _ instance. lamp _ time self. assertra... | [
0.04806509241461754,
0.10734061896800995,
1.0719928741455078,
0.15016938745975494,
0.048592180013656616,
0.726788341999054,
0.48031800985336304,
-0.8791478872299194,
-0.3359653055667877,
0.03897540271282196,
-0.21006615459918976,
-0.18309558928012848,
0.036568015813827515,
0.95018935203552... |
def display _ mds ( * strings : str | tuple [ str ] # any number of strings with text in markdown format ) : for string in strings : display _ markdown ( markdown ( data = string ) ) | [
-0.35668084025382996,
-0.2316814512014389,
0.32025131583213806,
-0.3976743519306183,
-0.7080041766166687,
0.550840437412262,
-0.4725777506828308,
-0.3860261142253876,
-0.5319669842720032,
-0.663987934589386,
1.7632598876953125,
0.6330036520957947,
-0.032127633690834045,
0.341391921043396,
... |
def test _ packages ( self ) : self. asserttrue ( self. check _ package _ output ( " node - - version ", " v12. " ) ) self. asserttrue ( self. is _ package _ present ( " npm " ) ) | [
0.12583720684051514,
0.5781179666519165,
0.424422025680542,
-0.18227657675743103,
1.101908564567566,
0.7024837732315063,
-0.09504921734333038,
0.22990716993808746,
0.030078763142228127,
-0.2685011327266693,
-0.2415858656167984,
0.035088811069726944,
0.5292628407478333,
0.4664008319377899,
... |
def id _ from _ member _ id ( self, element _ id : int ) - > int : found _ id = none for k, v in vars ( self ). items ( ) : if ( v. member = = element _ id ) : found _ id = k return found _ id | [
0.8386123180389404,
-1.0764673948287964,
0.3501453995704651,
0.3724444508552551,
-0.04696543887257576,
-0.16187678277492523,
0.05044501647353172,
-0.4054482877254486,
0.1982518881559372,
0.22437356412410736,
-0.029881551861763,
0.566493570804596,
-1.119049310684204,
0.6781431436538696,
0... |
def wall _ drawing _ 797 ( width, count, distance ) : # how to simulate a hand - drawn line? | [
0.8256083726882935,
1.0269867181777954,
0.19325771927833557,
0.7214999198913574,
0.8233990669250488,
0.8625185489654541,
0.5496359467506409,
-0.3277101516723633,
0.4271314740180969,
-1.1526240110397339,
-0.19308124482631683,
-0.658633828163147,
0.28246164321899414,
-0.16085022687911987,
... |
def visualize _ detection ( image _ path, image : np. array, quads : list, output _ dir : str = none, file _ name : str = " result _ ", color : tuple = ( 0, 0, 0 ) ) : # deepcopy image so that original is not altered image = copy. deepcopy ( image ) # get result file name and path filename, file _ ext = os. path. split... | [
0.01779848337173462,
-0.16870446503162384,
0.852157711982727,
0.23449179530143738,
-0.9251416325569153,
0.025195594877004623,
0.4704796075820923,
-0.22678476572036743,
0.9118487238883972,
0.31893545389175415,
0.20301689207553864,
0.3705943822860718,
0.6093252897262573,
-0.2689003348350525,... |
def start ( self ) : timer = timer ( self. publishing _ interval, self. _ run _ batched _ receiver ) timer. name = " kadabrabatchedreceiverrunner " self. timer = timer timer. start ( ) | [
0.7936227917671204,
-0.2582751214504242,
0.3145346939563751,
0.35997915267944336,
0.12712323665618896,
-0.06514988839626312,
-0.49480095505714417,
1.5331528186798096,
-0.4983915388584137,
-0.7028418779373169,
-0.3319830000400543,
0.7723771929740906,
-0.08438108116388321,
0.9072069525718689... |
def start _ end ( start, end ) : session = session ( engine ) results = session. query ( measurement. date, func. min ( measurement. tobs ), func. avg ( measurement. tobs ), func. max ( measurement. tobs ) ). filter ( measurement. date > start ). filter ( measurement. date < end ). group _ by ( measurement. date ). all... | [
-0.894616961479187,
-0.08421565592288971,
0.7938308119773865,
0.05645157769322395,
-0.36161288619041443,
0.06217750534415245,
-0.4857254922389984,
0.06283272057771683,
-0.998779296875,
1.4426827430725098,
-0.1666450947523117,
-0.06798374652862549,
0.8980739116668701,
0.7680867314338684,
... |
def log ( self, epoch, cycle, stats ) : print ('# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #') print ('epoch : { } '. format ( epoch ) ) print ('cycle : { } '. format ( cycle ) ) _ = [ print ('{ } : { } '. format ( k, v ) ) for k, v in stats. items ( ) ] with self. summary _ writer. as _ de... | [
-0.11691969633102417,
0.37108179926872253,
0.6856294274330139,
-0.301861435174942,
0.10122823715209961,
0.31540191173553467,
0.611395001411438,
-0.3892214894294739,
-0.9825772047042847,
0.4709516763687134,
-0.5670584440231323,
0.8723713159561157,
0.6646412014961243,
0.4107566773891449,
-... |
def get _ tcp ( self ) : return filter ( lambda x : x [ 1 ]. name = ='tcp ', self. packets ) | [
0.6008373498916626,
-0.1561320275068283,
0.6571779251098633,
0.2613704204559326,
-0.09314507246017456,
0.10648339986801147,
-0.8594436645507812,
-0.5922842025756836,
0.542925238609314,
1.0221171379089355,
0.07899168878793716,
0.2954419255256653,
-0.33343052864074707,
-0.8528171181678772,
... |
def get _ group _ sets ( self, course ) - > list [ dict ] : # pragma : nocover return [ ] | [
-1.3991427421569824,
0.6339022517204285,
0.3461589813232422,
0.3764577805995941,
0.1402449905872345,
0.2038595974445343,
0.4077607989311218,
-0.6843598484992981,
-0.5619876980781555,
0.004596197046339512,
0.28275564312934875,
0.13912060856819153,
-0.11457861214876175,
0.5428311824798584,
... |
def fetch ( self, grouped : virtualdatasetbox, * * load _ settings : dict [ str, any ] ) - > xarray. dataset : merged = merge _ search _ terms ( select _ keys ( self, self. _ load _ keys ), select _ keys ( load _ settings, self. _ load _ keys ) ) if'measurements'not in self : measurements = load _ settings. get ('measu... | [
-0.45336365699768066,
0.1265193521976471,
0.3985127806663513,
0.2760581374168396,
-0.06867940723896027,
-0.0836230218410492,
-0.20945166051387787,
-1.129759669303894,
-0.6028304696083069,
0.18104054033756256,
0.6164275407791138,
0.5126475691795349,
0.04965528845787048,
0.47181084752082825,... |
def addperson ( self, entityid, imunization, status ) : person = person ( entityid, imunization, status ) self. _ _ personrepository. save ( person ) | [
-0.8660227060317993,
-0.4243623614311218,
0.32727721333503723,
-0.3302251696586609,
0.5929453372955322,
1.5170494318008423,
-0.6171227097511292,
1.4013453722000122,
0.42596036195755005,
0.15416821837425232,
-0.5671715140342712,
-1.1335991621017456,
-0.47381791472435,
0.9699318408966064,
... |
def _ _ init _ _ ( self, patient, provider, prescriber = none ) : self. ord _ num = caredelivery. current _ ord _ num # nombre entier / / numero d'ordre du decompte dans l'organisme caredelivery. current _ ord _ num + = 1 self. patient = patient self. provider = provider if prescriber : self. prescriber = prescriber el... | [
0.011383170261979103,
-0.7267218828201294,
0.5289286375045776,
-0.3507668972015381,
0.22115518152713776,
-0.014652584679424763,
-0.6553526520729065,
0.5218583941459656,
-0.5564754009246826,
-0.16438937187194824,
-0.1280178427696228,
0.5369394421577454,
0.28613072633743286,
0.66767358779907... |
def test _ change _ trigger _ setting ( self ) : pass | [
-0.4585917592048645,
1.0092250108718872,
0.2554866671562195,
0.6900643110275269,
0.11257200688123703,
-1.1597321033477783,
1.1013059616088867,
0.02460763044655323,
-0.14205367863178253,
-0.5494917631149292,
-1.7081927061080933,
0.3414299786090851,
-0.7892876267433167,
0.18436934053897858,
... |
def test _ channel _ abandon ( ) : ch _ abandon = mob. calculate _ channel _ abandonment ( chmap, basevalues _ idx = basevalue, window _ idx = time _ window ) assert np. all ( ch _ abandon = = np. array ( [ [ 0., 0. 25, 0. 5, 0. 75, 1. ] ] ) ) | [
0.07919570803642273,
-0.6082788109779358,
0.45063406229019165,
-0.13298329710960388,
0.6120307445526123,
0.2420421689748764,
0.02919074334204197,
-0.7766585946083069,
-0.525432288646698,
-0.22755315899848938,
-0.08663558214902878,
0.37354934215545654,
-0.45283740758895874,
0.51465058326721... |
def parse ( self, selector ) : log. debug ( self. obj ) tokens = lex ( selector ) if self. peek ( tokens,'operator') = ='*': self. match ( tokens,'operator') results = list ( object _ iter ( self. obj ) ) else : results = self. selector _ production ( tokens ) results = [ node. value for node in results ] # single resu... | [
-1.3361625671386719,
-0.041472434997558594,
0.7772086262702942,
0.497750848531723,
-0.7184690237045288,
-1.159834623336792,
-0.5830381512641907,
-0.55623859167099,
0.5097668170928955,
0.010554924607276917,
-0.084105484187603,
-0.21863238513469696,
-0.29633858799934387,
-0.15855762362480164... |
def whether _ differentiable ( ) : sess = tf. session ( ) init = tf. global _ variables _ initializer ( ) # tf. gradients a = tf. constant ( 2. ) b = 2 * a y = a + b g = tf. gradients ( y, [ a, b ], stop _ gradients = [ a, b ] ) sess. run ( init ) print ( sess. run ( y ) ) print ( sess. run ( g ) ) # above is equivalen... | [
0.007950812578201294,
-0.1594330072402954,
0.7542285919189453,
0.30291232466697693,
-0.10803744941949844,
0.41529133915901184,
0.7270671725273132,
-0.62894606590271,
-0.28777796030044556,
0.4237718880176544,
-0.7454662919044495,
0.3591042459011078,
0.6617572903633118,
-0.04522572457790375,... |
def test _ empty _ agmt ( self ) : self. state. name = none self. assertisnone ( self. state. name ) | [
0.10597170144319534,
-0.07527309656143188,
0.3551938235759735,
-0.9163339734077454,
0.6084016561508179,
-0.25780218839645386,
-0.6269561648368835,
-0.5434535145759583,
0.5058001279830933,
-0.00735508231446147,
-0.553975522518158,
0.7757784724235535,
-0.13797813653945923,
0.2608829736709595... |
def process ( self, parsedrequest ) : return ( " http / 1. 1 200 ok ", " < html > < body > < h1 > it works! < / h1 > < / body > < / html > " ) | [
-0.7627324461936951,
-0.31473034620285034,
0.7170504331588745,
0.03815928474068642,
0.003769512288272381,
0.5579180121421814,
-0.6025199294090271,
-0.13875848054885864,
-0.14869388937950134,
-0.3194637596607208,
0.3626736104488373,
-0.06834247708320618,
-0.09438753873109818,
0.457116574048... |
def testresolvequerywithsearcherror ( self ) : with login ( u'username ', uuid4 ( ), self. transact ) as session : deferred = self. facade. resolvequery ( session,'has fluiddb / id') yield self. assertfailure ( deferred, tparseerror ) | [
0.09082254022359848,
0.48467761278152466,
0.36982935667037964,
0.19965900480747223,
0.6903650164604187,
0.12031079828739166,
-0.7856525182723999,
-0.24845623970031738,
-0.29202133417129517,
-1.0029977560043335,
-0.40407443046569824,
-1.2491636276245117,
-0.18147441744804382,
0.376469790935... |
def update ( self ) : self. check _ for _ exit ( ) | [
-0.4014436602592468,
-1.130449891090393,
0.23173388838768005,
1.062455654144287,
-0.03219155594706535,
1.0089991092681885,
0.19391274452209473,
0.10213474184274673,
-0.49016016721725464,
0.27031365036964417,
0.5756803154945374,
-0.09335041791200638,
-0.862362802028656,
0.38013559579849243,... |
def farm _ start ( self, ass _ file _ path, rop _ path, session _ id, frame, cpu, ram, region ) : pass | [
0.36501479148864746,
-1.2078137397766113,
0.39233770966529846,
0.7436138987541199,
0.6788075566291809,
-0.26235660910606384,
0.8737210035324097,
-0.14248554408550262,
0.5142776966094971,
-0.2674438953399658,
0.1799893081188202,
1.4684059619903564,
0.4737391769886017,
-0.8278007507324219,
... |
def get _ surr _ rows ( row, endpoints, g ) : ( y, z ) = row surr = [ ] if y > = 1 : surr. append ( ( ( y - 1, z ), endpoints ) ) if z > = 1 : surr. append ( ( ( y, z - 1 ), endpoints ) ) if ( g [ " ylo " ] + ( y + 1 ) * g [ " dy " ] ) < g [ " yhi " ] : surr. append ( ( ( y + 1, z ), endpoints ) ) if ( g [ " zlo " ] + ... | [
-0.03275642916560173,
0.5287290811538696,
0.5383196473121643,
0.35586655139923096,
-0.24024415016174316,
-0.6148555278778076,
0.12849663197994232,
0.19913166761398315,
0.33677902817726135,
-0.004068144131451845,
-0.05916886776685715,
-0.231686532497406,
-0.05098659545183182,
0.127461448311... |
def test _ check _ input _ invalid _ list ( ) : with pytest. raises ( typeerror ) : mob. check _ inputs ( ['str ', 5, 1. ], basevalues _ idx = [ 0 ], window _ idx = 1 ) | [
-0.47025275230407715,
0.20121316611766815,
0.40901753306388855,
1.1753567457199097,
0.6245574951171875,
0.5917848944664001,
0.06467995792627335,
0.007683551870286465,
0.42424604296684265,
0.12775731086730957,
-0.2727894186973572,
0.1869521290063858,
-1.328380823135376,
1.3038173913955688,
... |
def use _ source _ receiver _ offset ( self ) : return self. _ use _ source _ receiver _ offset | [
-0.8022172451019287,
-0.6131532192230225,
0.6377288699150085,
-1.0707632303237915,
-0.3942716419696808,
0.8707243204116821,
1.162481427192688,
0.22054477035999298,
0.06119170039892197,
-0.3508296608924866,
-0.011816389858722687,
0.04009811207652092,
-0.3996132016181946,
-0.0583246275782585... |
def bootstrapping ( data, num _ learners = 3 ) : data ['user _ id'] = np. array ( data ['user _ id'] ) data ['question _ id'] = np. array ( data ['question _ id'] ) data ['is _ correct'] = np. array ( data ['is _ correct'] ) # bootstrap bootstrapped _ data = [ ] for _ in range ( num _ learners ) : bootstrap = { } # sam... | [
-0.05946134775876999,
-0.4259079098701477,
0.6970066428184509,
-0.5713674426078796,
-0.4759056568145752,
0.5103796124458313,
-0.6450215578079224,
0.24970442056655884,
0.49165353178977966,
0.6054365634918213,
-0.19136713445186615,
0.5318482518196106,
0.3620414733886719,
0.4575546979904175,
... |
def toanttask ( self, doc ) : node = doc. createelementns ( " ", " copy " ) node. setattributens ( " ", " verbose ", " true " ) node. setattributens ( " ", " failonerror ", " false " ) node. setattributens ( " ", " file ", self. srcfile ) node. setattributens ( " ", " todir ", self. todir ) node. setattributens ( " ", ... | [
0.08465968072414398,
0.010117593221366405,
0.7631168365478516,
-0.7663449645042419,
-0.9168010354042053,
0.5453253388404846,
0.7231673002243042,
0.23537470400333405,
-0.07913108170032501,
1.0749226808547974,
0.13264156877994537,
-0.32041287422180176,
1.1246033906936646,
-0.1463146209716797... |
def compare ( particlelist ) : t = 1 delta _ t = 0. 5 tgrid = np. linspace ( 0, t, t / delta _ t + 1 ) # result _ list = [ ] # if len ( particlelist ) = = 1 : # first _ result = \ # [ # particlelist [ 0 ]. coordinates [ 0 ], # particlelist [ 0 ]. coordinates [ 1 ], # particlelist [ 0 ]. speed [ 0 ], # particlelist [ 0 ... | [
0.18756477534770966,
-0.34736526012420654,
1.0201860666275024,
-0.3131713271141052,
0.18606311082839966,
0.09307654947042465,
0.793577253818512,
-0.4364016354084015,
-0.6085421442985535,
0.8093135952949524,
-0.9171416759490967,
-0.5068332552909851,
-1.0356063842773438,
0.9264460802078247,
... |
def _ findfile ( self, sregexp, fmandatory = false ) : oregexp = re. compile ( sregexp ) ; for sfile in self. _ asbuildfiles : if oregexp. match ( os. path. basename ( sfile ) ) and os. path. exists ( sfile ) : return sfile ; if fmandatory : reporter. error ('failed to find a file matching " % s " in % s.'% ( sregexp, ... | [
0.21690620481967926,
-0.34483128786087036,
0.777694582939148,
-0.0769953653216362,
-0.3202455937862396,
0.11561495810747147,
0.7125202417373657,
0.004973030649125576,
-0.7830970287322998,
-0.24220488965511322,
1.3755247592926025,
-0.35593312978744507,
-0.5330979228019714,
0.223747670650482... |
def exception _ table _ length ( self ) : return len ( self. exception _ table ) | [
1.3177926540374756,
0.6506192088127136,
0.06632403284311295,
0.06944435089826584,
-0.23484677076339722,
0.6416102051734924,
0.4188886880874634,
0.7871512770652771,
-0.2090330272912979,
-0.11844072490930557,
-0.8773724436759949,
0.06889316439628601,
-0.0404592826962471,
-0.07956260442733765... |
def preprocess ( jet, cluster, output = " kt ", regression = false, r _ clustering = 0. 3 ) : jet = copy. deepcopy ( jet ) constituents = jet [ " content " ] [ jet [ " tree " ] [ :, 0 ] = = - 1 ] if regression : genpt = jet [ " genpt " ] # # # run kt ( r = 0. 3 ) on the constituents c of j, resulting in subjets sj1, sj... | [
0.7405403852462769,
-0.3222488760948181,
0.7907304167747498,
-0.8185632824897766,
-0.5302960276603699,
0.284806489944458,
0.5477900505065918,
-0.17623737454414368,
-0.4171678125858307,
0.2497994601726532,
-0.24053525924682617,
-0.1154382973909378,
-0.5404321551322937,
0.5011414885520935,
... |
def add ( self, session ) : connection = self. _ db _ pool. connect ( ) cursor = connection. cursor ( ) cursor. execute ( " insert into sessions ( id, data, expires ) values ( % s, % s, % s ) ", ( session. id, json. dumps ( session. _ data ), session. expires ) ) connection. commit ( ) | [
-1.3533986806869507,
-0.1080135703086853,
0.6815618276596069,
-0.7873406410217285,
0.6220129132270813,
0.2696666121482849,
-0.4471551179885864,
-0.9949458837509155,
0.6408838033676147,
0.045243751257658005,
-0.9816073775291443,
-0.05187312513589859,
-0.35576537251472473,
-0.242407903075218... |
def clone ( remote ) : run ( " git clone % s " % remote ) | [
0.23672519624233246,
-0.42656973004341125,
0.515531063079834,
0.037101637572050095,
-0.8686695694923401,
2.1656901836395264,
-1.1085387468338013,
-0.900981068611145,
-0.6353051066398621,
0.28583675622940063,
-0.8076152801513672,
0.9927840828895569,
-0.673173189163208,
-0.7483985424041748,
... |
def user _ name ( self ) - > pulumi. output [ str ] : return pulumi. get ( self, " user _ name " ) | [
0.5601070523262024,
-0.2202320396900177,
0.4486132264137268,
0.7459738850593567,
-0.29544422030448914,
0.7041280269622803,
0.5892691016197205,
0.17860612273216248,
-0.05549222603440285,
0.08125124126672745,
-0.023436415940523148,
0.4507538080215454,
0.8254261612892151,
-1.211319923400879,
... |
def show _ menu ( ) : if not gd. gui. menu. item ('postproc') : create _ menu ( ) | [
1.1479898691177368,
0.4387703835964203,
0.5283405184745789,
-0.061724815517663956,
0.10712362825870514,
0.6166122555732727,
0.23749424517154694,
0.603432297706604,
-0.5254949927330017,
-0.37629234790802,
0.20979495346546173,
0.2238507866859436,
-0.651469886302948,
1.1108530759811401,
0.0... |
def getlargedependencehighgraylevelemphasisfeaturevalue ( self ) : ivector = self. coefficients ['ivector'] jvector = self. coefficients ['jvector'] nz = self. coefficients ['nz'] ldhgle = numpy. sum ( self. p _ gldm * ( ( jvector [ none, none, : ] * * 2 ) * ( ivector [ none, :, none ] * * 2 ) ), ( 1, 2 ) ) / nz return... | [
0.1550314724445343,
0.2951633930206299,
0.6235880851745605,
-0.3651117980480194,
0.13878807425498962,
0.8719534277915955,
0.26659029722213745,
0.5596122741699219,
-0.13331522047519684,
0.2519175410270691,
-0.597068190574646,
0.5096906423568726,
-0.4281384348869324,
0.966689944267273,
0.4... |
async def recheckroles ( self, ctx ) : author = ctx. message. author server = ctx. message. server channel = ctx. message. channel isadmin = author. permissions _ in ( channel ). administrator # only allow admins to change server stats if not isadmin : await self. bot. send _ message ( channel,'you do not have sufficie... | [
-0.12874381244182587,
0.1827438920736313,
0.6848893761634827,
0.4290362596511841,
0.4855915307998657,
0.4210675358772278,
-0.29231005907058716,
-0.06615257263183594,
-0.1549089103937149,
0.07785169035196304,
0.1618456244468689,
1.767618179321289,
-0.8711034655570984,
1.0580857992172241,
... |
def db _ settings ( ) : db _ env = os. environ. pop ( environment _ variable, " " ) dj _ env = os. environ. pop ( django _ settings _ var, " " ) settings = conf. settings yield { environment _ variable : db _ env, django _ settings _ var : dj _ env, } if db _ env : os. environ [ environment _ variable ] = db _ env if d... | [
-0.5181105136871338,
0.5582166314125061,
0.6263483166694641,
-0.20858313143253326,
0.6356470584869385,
-0.034487515687942505,
-0.12223029136657715,
-0.880397379398346,
-0.8553354144096375,
0.976952075958252,
-0.9878098964691162,
0.18533578515052795,
-0.05756613612174988,
1.0298606157302856... |
def api _ get _ metadata ( id = none ) : auth _ func ( ) if not id : return jsonify ( { } ) query = db. session. query ( metadata ). filter _ by ( dataset _ id = id ) result = [ ] for elem in query : result. append ( elem. as _ dict ( ) ) return jsonify ( result ) | [
-1.4914394617080688,
0.568461537361145,
0.3609904944896698,
-0.13769850134849548,
0.09692875295877457,
-1.2466660737991333,
-1.5715526342391968,
-0.30237454175949097,
0.05316067859530449,
0.6450212001800537,
-0.41717132925987244,
0.8524056673049927,
0.7043697834014893,
0.4512953758239746,
... |
def _ _ init _ _ ( _ _ self _ _, *, instance _ name : pulumi. input [ str ], instance _ type : pulumi. input [ str ], custom _ oss _ bucket : optional [ pulumi. input [ str ] ] = none, kms _ encrypted _ password : optional [ pulumi. input [ str ] ] = none, kms _ encryption _ context : optional [ pulumi. input [ mapping... | [
-0.3997265100479126,
0.2906154692173004,
0.7763378620147705,
-0.5290424227714539,
-0.12309762090444565,
0.12472093105316162,
-1.496850609779358,
0.5855505466461182,
0.5309926867485046,
0.69647216796875,
-0.456402063369751,
0.7560811638832092,
0.14386901259422302,
-0.8392824530601501,
-0.... |
def one _ off ( self, lc ) : dtrend, lcs _ diff, lcs _ gd, good _ ons, good _ offs, bigoffs = main ( lc ) plot _ bigoffs ( dtrend, bigoffs ) plot _ bigoffs ( lcs _ diff, bigoffs ) plot _ bigoffs ( lcs _ gd, bigoffs ) | [
0.29572659730911255,
0.33780527114868164,
0.36937499046325684,
-1.144453525543213,
-0.060083262622356415,
1.2524107694625854,
0.332004576921463,
-0.06817301362752914,
0.5957516431808472,
-0.5629208087921143,
0.010847658850252628,
0.3242782950401306,
0.19704429805278778,
0.6685994863510132,... |
def enqueue ( self, data : object ) - > none : self. queue. append ( data ) # assign the rear as size of the queue and front as 0 if self. front is none : self. front = self. rear = 0 else : self. rear = self. size self. size + = 1 | [
-0.10290547460317612,
0.02717461809515953,
0.465878963470459,
-0.556331992149353,
0.6490256190299988,
-0.1858009696006775,
-0.32115960121154785,
0.1792522370815277,
0.5845133662223816,
-0.6855006814002991,
-1.2644946575164795,
1.4416558742523193,
-0.5083820819854736,
1.015973448753357,
0... |
def _ _ init _ _ ( self, brick _ class, json _ dict : dict = none, datastring : str ='', filepath : str ='', config : config = none, demo : bool = false, fps : int = 30 ) : super ( ). _ _ init _ _ ( ) json _ dict = json _ dict or { } self. brick _ class = brick _ class self. config = config or none self. filepath = fil... | [
0.26513931155204773,
0.03306962177157402,
0.7036906480789185,
0.45608413219451904,
-0.12441080063581467,
-0.3237658441066742,
-0.010410081595182419,
0.6053877472877502,
-0.3263460695743561,
0.057021163403987885,
-0.8038209676742554,
-0.21099188923835754,
-0.08363742381334305,
0.28723809123... |
def compute _ num _ grads _ center ( self, x, y, h = 1e - 5 ) : # df / dx ≈ ( f ( x + h ) - f ( x - h ) ) / 2h according to the central difference formula params = [ self. u, self. v, self. w, self. b, self. c ] num _ grads = [ ] for i, param in enumerate ( params ) : grad = np. zeros ( param. shape ) it = np. nditer (... | [
-0.28403440117836,
0.1697481870651245,
0.9489157199859619,
0.265204519033432,
-0.05448717623949051,
-0.16864605247974396,
-0.3880634307861328,
0.444724977016449,
-0.20657481253147125,
0.7374005913734436,
-0.2567623555660248,
1.0102916955947876,
-0.15734797716140747,
0.5716463327407837,
0... |
def test _ packages _ invalid _ input ( self ) : role = role. query. filter _ by ( name = " event organizer " ). first ( ) user = testmodelfactory. create _ user ( ) user. role = role venue = testmodelfactory. create _ venue ( ) event = testmodelfactory. create _ event ( " test event ", " live " ) event. user = user ev... | [
-0.1560637652873993,
0.576138436794281,
0.6823708415031433,
0.2516748011112213,
0.3448912501335144,
0.7084843516349792,
0.13991248607635498,
0.029730986803770065,
0.14453603327274323,
-0.8637949228286743,
-0.47408607602119446,
0.01664980873465538,
-0.20817604660987854,
0.6327940225601196,
... |
def status _ unmute ( self, id : union [ status, idtype ] ) - > status : id = self. _ _ unpack _ id ( id ) return self. _ _ api _ request ('post ', f'/ api / v1 / statuses / { id } / unmute') | [
-0.7654141187667847,
-0.4628501236438751,
0.2566673457622528,
0.09667455404996872,
-0.00923223327845335,
-0.4047636389732361,
-0.931605875492096,
0.23763249814510345,
1.3410309553146362,
-0.1454668492078781,
-1.4140602350234985,
0.888277530670166,
-0.9019050598144531,
-0.4412514269351959,
... |
def sfc _ sfciskeyprotected ( jitter ) : ret _ ad, args = jitter. func _ args _ stdcall ( [ " hkey ", " lpsubkey ", " samdesired " ] ) raise runtimeerror ('api not implemented') jitter. func _ ret _ stdcall ( ret _ ad, ret _ value ) | [
0.5688914060592651,
0.5193271636962891,
0.5007616877555847,
1.213254451751709,
-0.185343936085701,
-0.5932753682136536,
-0.1700744330883026,
-0.7143014669418335,
-0.1846744418144226,
-0.4043106138706207,
-0.4137328863143921,
0.40597212314605713,
-0.4734143316745758,
0.6204813122749329,
0... |
def _ _ str _ _ ( self ) : return self. name | [
-0.5453370213508606,
-2.027775526046753,
0.6040013432502747,
-1.4269241094589233,
-0.9844933152198792,
0.6848733425140381,
-0.27778488397598267,
-0.8094081878662109,
0.29809877276420593,
0.3331766724586487,
-0.24466970562934875,
0.7710034847259521,
0.401455283164978,
-0.6452644467353821,
... |
def microvolt _ gain ( self ) : return self. _ microvolt _ gain | [
0.47472280263900757,
0.5301170945167542,
0.24794593453407288,
0.22977253794670105,
-0.5583539605140686,
0.8870562314987183,
0.258980929851532,
-0.2948496341705322,
-0.3167910873889923,
-1.1122050285339355,
-0.9599348306655884,
0.4949071705341339,
-0.03761272504925728,
-0.35000157356262207,... |
def process _ frame ( self, frame : bytesalike ) : if self. frame _ receiver : self. frame _ receiver. process _ frame ( frame ) else : log. error ( f " frame receiver not registered for { self } " ) | [
-0.18939463794231415,
0.23225095868110657,
0.391180157661438,
0.07502897083759308,
0.8616423010826111,
-1.0725864171981812,
-0.025356821715831757,
0.21695494651794434,
1.1985920667648315,
-0.6679343581199646,
-0.5554705262184143,
0.36730796098709106,
-0.453797847032547,
0.9552242755889893,... |
def requires ( variable _ name, service _ name, optional = false ) : def class _ builder ( original _ class ) : new _ class = original _ class name = get _ name ( new _ class ) _ component _ info [ name ] ['requires']. add ( ( variable _ name, service _ name, optional ) ) # rebinds class with name _ class _ binding [ n... | [
-0.47499051690101624,
-1.2803207635879517,
0.5136590600013733,
-0.15827181935310364,
-1.154727578163147,
0.18321861326694489,
-0.8820789456367493,
0.1737714558839798,
0.829331636428833,
-0.19665782153606415,
0.01433334220200777,
-0.07519710063934326,
0.3783400058746338,
0.4096100330352783,... |
def greaterequalfunc ( self, data ) : return self. field. sortvalue ( data ) > = \ self. field. adjustedcomparevalue ( self. value ) | [
-0.35916244983673096,
-0.15849727392196655,
0.4993486702442169,
-0.37828588485717773,
0.006141631864011288,
0.5423008799552917,
-0.1503375768661499,
-1.1189254522323608,
-0.5913885235786438,
-0.17496554553508759,
-0.7283357977867126,
0.09496717900037766,
0.08662855625152588,
-0.06955783069... |
def sdc ( self ) - > pulumi. input [ str ] : return pulumi. get ( self, " sdc " ) | [
0.7046183347702026,
0.2093118131160736,
0.5957045555114746,
0.2688138484954834,
0.3725029230117798,
0.9185765385627747,
0.6897701025009155,
-0.4922250807285309,
0.6120301485061646,
-0.6149776577949524,
0.3331214189529419,
0.48232781887054443,
1.1231831312179565,
-0.8818724751472473,
-1.0... |
def get _ user _ relationship ( self, user _ id ) : url = self. client. users +'/ { } / relationship '. format ( user _ id ) return self. client. get ( url, bucket = _ func _ ( ) ) | [
-0.14747539162635803,
0.4138472378253937,
0.4327699542045593,
0.7647200226783752,
-0.06446976214647293,
-0.22764822840690613,
-0.48528122901916504,
-1.0644904375076294,
0.3413144052028656,
-0.6200562715530396,
-0.2723141312599182,
0.2109289914369583,
-0.8978285193443298,
-0.047191530466079... |
def assign _ user _ group ( sender, instance, created = false, * * kwargs ) : if not created : return if instance. is _ expert ( ) or instance. is _ manager ( ) or instance. is _ risk _ expert ( ) : return instance. add _ to _ experts ( ) | [
-0.7091970443725586,
0.5645694732666016,
0.35684844851493835,
0.42606601119041443,
0.2434653639793396,
0.5256969332695007,
0.1362757533788681,
0.00871611014008522,
-0.3102838099002838,
0.002616768702864647,
-0.3515300154685974,
0.576525866985321,
-0.4823911190032959,
1.0661320686340332,
... |
def solve ( self ) : # sort tasks by total cost ( freq * cost ) # non periodic tasks are put at the end self. tasks. sort ( key = lambda t : - 1 if t. period is none else t. period * t. cost, reverse = true ) slots = [ [ ] for i in range ( self. slot _ count ( ) ) ] for task in self. tasks : if task. period is none : b... | [
0.1601593792438507,
0.5350881218910217,
1.177040934562683,
-0.14517542719841003,
-0.5518826246261597,
0.5853358507156372,
1.11934494972229,
0.4363083839416504,
-0.28040051460266113,
0.044475920498371124,
0.06659242510795593,
0.20677237212657928,
0.37325239181518555,
-0.013389790430665016,
... |
def add ( self, val1, val2 ) : self. counts [ ( val1, val2 ) ] + = 1 | [
-0.17551805078983307,
-0.22417570650577545,
0.37334561347961426,
0.41172078251838684,
0.30217674374580383,
0.8662815093994141,
-1.032788872718811,
-0.49065807461738586,
-0.820005476474762,
-0.8431063294410706,
-0.06937921792268753,
0.5969205498695374,
0.39485031366348267,
0.090954765677452... |
def farm _ cpu _ menu ( self ) : pass | [
-0.2933007478713989,
0.23027023673057556,
0.27897322177886963,
1.3082572221755981,
-0.1756727546453476,
0.4008875787258148,
1.31474769115448,
-0.218912273645401,
-0.42911040782928467,
-0.41354891657829285,
0.08349447697401047,
0.5271053314208984,
-0.965659499168396,
-0.15508493781089783,
... |
def readable ( self ) : return false | [
-0.500551700592041,
-0.14557568728923798,
0.5281161069869995,
0.4290306270122528,
-0.10264535248279572,
1.4076085090637207,
0.07793351262807846,
-0.05851846933364868,
-1.0368221998214722,
0.04014565423130989,
0.2790171205997467,
-0.40130776166915894,
-1.3670883178710938,
-0.701547980308532... |
def inv _ 22 ( m ) : invm = np. empty ( m. shape ) delta = det _ 22 ( m ) invm [..., 0, 0 ], invm [..., 1, 1 ] = m [..., 1, 1 ], m [..., 0, 0 ] invm [..., 1, 0 ] = - m [..., 1, 0 ] invm [..., 0, 1 ] = - m [..., 0, 1 ] invm = invm. t / delta. t return invm. t | [
-0.2446751892566681,
-0.10773497074842453,
0.7094125747680664,
-0.5927438735961914,
-0.4917302131652832,
-0.10134876519441605,
0.7891690135002136,
0.5700113773345947,
-0.7045530676841736,
0.7158979773521423,
-0.534287691116333,
-0.05759063735604286,
-0.19917194545269012,
-0.593145072460174... |
def _ get _ next _ job ( self ) : bracket = none if len ( self. active _ brackets ) = = 0 or \ np. all ( [ bracket. is _ bracket _ done ( ) for bracket in self. active _ brackets ] ) : # start new bracket when no pending jobs from existing brackets or empty bracket list bracket = self. _ start _ new _ bracket ( ) else ... | [
-0.14209653437137604,
0.008390946313738823,
0.6392431259155273,
-0.31886187195777893,
-0.8095646500587463,
-0.6517108678817749,
-0.12465810775756836,
-0.005931209772825241,
-0.7235184907913208,
-0.5969674587249756,
-0.5880942344665527,
-0.011423573829233646,
-0.23086963593959808,
0.8787243... |
def add ( ctx, dir, # type : str message, # type : str task, # type : str type, # type : str file, # type : str verbose # type : bool ) : ctx. verbose = verbose unreleased _ path = os. path. realpath ( os. path. join ( os. getcwd ( ), dir,'unreleased') ) os. makedirs ( unreleased _ path, exist _ ok = true ) branch = vc... | [
0.40891048312187195,
-0.05645916983485222,
0.859922468662262,
0.10088762640953064,
0.5657294392585754,
0.5166224241256714,
0.39155182242393494,
0.5108929872512817,
-0.0395076647400856,
0.17307770252227783,
0.11075328290462494,
0.9043519496917725,
-0.40339747071266174,
0.4153674840927124,
... |
def _ _ init _ _ ( self, client, module _ id = 1 ) : self. client = client self. module _ id = module _ id self. _ soap _ actions = none | [
0.9355736970901489,
-0.49348020553588867,
0.3589695990085602,
0.06179143115878105,
-0.18683768808841705,
0.17440049350261688,
0.11991306394338608,
-0.055370476096868515,
1.029571294784546,
-0.0185814518481493,
-0.10226108133792877,
1.228943109512329,
-0.631800651550293,
1.0491385459899902,... |
def getcamerainformation ( index ) : andor _ solis. getcamerainformation. restype = ctypes. c _ uint information = ctypes. c _ long ( ) result = andor _ solis. getcamerainformation ( ctypes. c _ int ( index ), ctypes. byref ( information ) ) check _ status ( result ) return int ( information. value ) | [
-1.0888818502426147,
0.19654597342014313,
0.4441564977169037,
-0.1851816028356552,
-0.18804551661014557,
-0.9871527552604675,
0.7624195218086243,
-0.6809954047203064,
1.2640202045440674,
-0.31753379106521606,
-0.5074753165245056,
0.01604326255619526,
-0.5664486289024353,
0.1700122505426406... |
def generate _ pulse ( self, period, times = 0 ) : if times = = 0 : # generate pulses forever if period not in range ( 3, 4294967296 ) : raise valueerror ( " valid period is between 3 and 4294967296. " ) self. microblaze. write _ mailbox ( 0, period ) self. microblaze. write _ blocking _ command ( generate _ forever ) ... | [
-0.8039846420288086,
1.367539882659912,
0.7880681753158569,
0.5127872824668884,
0.23867516219615936,
0.4162180423736572,
0.6531278491020203,
-0.4309275448322296,
0.3231655955314636,
-0.3777749538421631,
-0.4393884539604187,
0.1985856592655182,
-0.5748186111450195,
-0.07291169464588165,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.