text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def getapplicationnames ( self ) : return [ app. getname ( ) for app in self. _ applications ] | [
-0.5176487565040588,
-0.5741063356399536,
0.6339372992515564,
0.807197093963623,
-0.5288031101226807,
0.9175529479980469,
-1.013818621635437,
-0.004023317713290453,
0.7551742792129517,
1.1773838996887207,
-0.15017147362232208,
0.10922101140022278,
0.4622623920440674,
0.876824676990509,
-... |
def gobraillehome ( self, inputevent = none ) : if self. flatreviewcontext : return self. toggleflatreviewmode ( inputevent ) else : return braille. returntoregionwithfocus ( inputevent ) | [
0.3134811818599701,
-0.2825809121131897,
0.49157196283340454,
0.38063934445381165,
-0.11966514587402344,
0.5599508881568909,
0.752237856388092,
0.04926742985844612,
0.7449503540992737,
-0.21482597291469574,
-0.16351161897182465,
1.1323144435882568,
-1.0337486267089844,
-0.44757992029190063... |
def test _ get _ diff _ dependent _ tests ( self ) : plugin = dependencytree ( ) plugin. diff _ files ='plugin / plugin. py'plugin. dep _ tree ='plugin / mock _ tests / test _ deptree. dot'plugin. conf = config ( ) tests = plugin. get _ diff _ dependent _ tests ( ) self. assertequal ( 1, len ( tests ) ) self. assertin ... | [
0.04205573350191116,
-0.2563983201980591,
0.5641775727272034,
0.13635806739330292,
1.0974266529083252,
0.5891931653022766,
1.3780770301818848,
0.49982643127441406,
0.21762216091156006,
-0.6847609877586365,
-1.2565371990203857,
0.09724264591932297,
-0.22585929930210114,
0.5068580508232117,
... |
def select _ item ( self, selector, elem = none, locator = by. css _ selector, timeout = 5 ) : if elem : return select ( elem ) else : return select ( self. look _ for _ element ( selector = selector, locator = locator, timeout = timeout ) ) | [
-0.12370477616786957,
-0.003106852062046528,
0.1586119681596756,
1.2151455879211426,
0.003221864579245448,
-0.4550682008266449,
-0.5863732099533081,
-0.015557246282696724,
0.8754188418388367,
0.290385365486145,
0.1984100043773651,
-0.07967009395360947,
0.33105260133743286,
-1.0510886907577... |
def _ _ init _ _ ( self, action _ size, buffer _ size, batch _ size, seed ) : self. action _ size = action _ size self. memory = deque ( maxlen = buffer _ size ) # internal memory ( deque ) self. batch _ size = batch _ size self. experience = namedtuple ( " experience ", field _ names = [ " state ", " action ", " rewar... | [
0.6573193073272705,
0.11824682354927063,
0.6585555672645569,
-0.2546564042568207,
0.3667825758457184,
-0.15920475125312805,
-0.1783219426870346,
-0.4556804597377777,
0.29227954149246216,
0.29180097579956055,
-0.6216040253639221,
0.2740587592124939,
0.16136384010314941,
0.5329344868659973,
... |
def type ( self ) - > pulumi. output [ str ] : return pulumi. get ( self, " type " ) | [
0.9004611372947693,
0.39422792196273804,
0.352120041847229,
0.5082957148551941,
0.798453688621521,
0.6544904112815857,
0.31385141611099243,
-0.36475086212158203,
0.48763349652290344,
0.060487788170576096,
0.4900969862937927,
0.80482417345047,
-0.28954213857650757,
-0.9427587985992432,
-0... |
def storprop _ dvdlauncher ( jitter ) : ret _ ad, args = jitter. func _ args _ stdcall ( [ " hwnd ", " driveletter " ] ) raise runtimeerror ('api not implemented') jitter. func _ ret _ stdcall ( ret _ ad, ret _ value ) | [
-1.471140742301941,
-0.8035138249397278,
0.4148450493812561,
0.45706796646118164,
-0.7929558157920837,
-0.004967499990016222,
0.7918850779533386,
0.24279816448688507,
0.4678613245487213,
0.09246700257062912,
-0.18155665695667267,
-0.08624306321144104,
-0.9528111815452576,
0.944646120071411... |
def download _ images ( self ) : while true : res = input ( f " do you want proceed with downloading { len ( self. elements ) } images? ( y / n ) " ) if res = = " y " : self. folder = self. search extensions = [ ". jpg ", ". jpg ", ". png ", ". png ", ". gif ", ". gif " ] if not os. path. exists ( self. folder ) : os. ... | [
-0.7098257541656494,
0.08129695802927017,
0.6106958389282227,
0.6755789518356323,
0.0055486951023340225,
-0.08524305373430252,
0.9325470328330994,
-0.3854800760746002,
0.08511704206466675,
-0.8324952125549316,
0.3773990571498871,
-0.047352615743875504,
-0.22402219474315643,
1.1176972389221... |
def value ( self, step ) : raise notimplementederror | [
-1.0044052600860596,
-0.2316610962152481,
0.2969041168689728,
0.7783880233764648,
-0.3800751864910126,
0.20071880519390106,
0.013344593346118927,
-0.4277760982513428,
-1.009751558303833,
-0.7661523818969727,
-0.46192362904548645,
-0.3217877745628357,
0.9268258810043335,
1.6859272718429565,... |
def deletephysicalinterface ( self, physicalinterfaceid ) : req = apiclient. onephysicalinterfaceurl % ( self. host, " / draft ", physicalinterfaceid ) resp = requests. delete ( req, auth = self. credentials, verify = self. verify ) if resp. status _ code = = 204 : self. logger. debug ( " physical interface deleted " )... | [
-1.5118693113327026,
-0.06671157479286194,
0.26356470584869385,
0.25342461466789246,
-0.27682793140411377,
0.21434924006462097,
-0.34311643242836,
-0.7967329621315002,
0.2432890236377716,
-0.8148230314254761,
0.0573103204369545,
0.005705396179109812,
-2.519523859024048,
0.26506054401397705... |
def scalar ( expr, is _ mixed = false ) : return scalar ( expr, is _ mixed = is _ mixed ) | [
-0.02605303004384041,
0.1096351370215416,
0.37770646810531616,
0.29640257358551025,
-1.2452855110168457,
0.010369816794991493,
-0.34363606572151184,
0.9978741407394409,
-0.01503250002861023,
-0.44886720180511475,
-0.05729213356971741,
0.6063834428787231,
0.051094900816679,
0.06661707907915... |
def expected _ integrated _ grad ( x, model, baselines, num _ steps = 25, class _ index : int = none, func = tf. math. reduce _ mean, ) : grads = [ ] for baseline in baselines : grads. append ( integrated _ grad ( x, model, baseline, num _ steps = num _ steps, class _ index = class _ index, func = func, ) ) return np. ... | [
-0.360897958278656,
1.0848902463912964,
0.6450072526931763,
-0.333540141582489,
0.22943653166294098,
0.2555403709411621,
0.5223659873008728,
0.3481540083885193,
-0.3451421856880188,
0.29467546939849854,
-0.6514219045639038,
0.6936169862747192,
-0.016442105174064636,
0.1787128448486328,
-... |
def export _ batch _ metadata _ to _ fc ( tsca _ id, namespace, workspace ) : patient _ metadata = " % s / fc _ upload _ patients _ tsca _ % s. txt " % ( tsca _ id, tsca _ id ) sample _ set _ metadata = " % s / fc _ upload _ sample _ set _ tsca _ % s. txt " % ( tsca _ id, tsca _ id ) tumors _ sample _ set _ metadata = ... | [
-0.11511918902397156,
-0.08471037447452545,
0.7819178104400635,
-0.1586233228445053,
0.5425775051116943,
-0.5687974095344543,
0.04253444820642471,
-0.9903051853179932,
-0.6372137665748596,
0.6409788727760315,
-0.5199379324913025,
0.1938631385564804,
0.4684174656867981,
0.22152073681354523,... |
def _ _ str _ _ ( self ) : outstr = str ( self. title + " \ n " ) outstr = outstr + " mdc parameters : nclasses = " + str ( self. nclasses ) + ", nfeatures = " + str ( self. nfeatures ) + \ ", nsamples = " + str ( self. nsamples ) + " \ n " for i in range ( 0, self. nclasses ) : outstr = outstr + " class " + str ( i ) ... | [
-0.30554312467575073,
-1.0545371770858765,
0.9170230031013489,
-0.800435483455658,
-0.7982051372528076,
0.5121755599975586,
0.4812735915184021,
-0.9537206888198853,
-0.9060713648796082,
0.5872360467910767,
1.3619978427886963,
0.32704001665115356,
0.019565491005778313,
0.6561168432235718,
... |
def _ bytes _ feature ( value ) : # note : tf. train. byteslist does not work well with np. asleast _ 1d. if input # value is all 0s, then tf. train. byteslist would truncate the result from # np. asleast _ 1d ( value ) as a emptry string. return tf. train. feature ( bytes _ list = tf. train. byteslist ( value = [ valu... | [
0.2738659381866455,
-0.0024072215892374516,
0.4156327545642853,
-0.5202881097793579,
-0.07668505609035492,
-0.536626935005188,
0.023137997835874557,
-0.015419531613588333,
0.3991866707801819,
-0.7728878855705261,
-0.9533089399337769,
0.3306727111339569,
0.2576651871204376,
0.15596137940883... |
def show _ popup _ message ( self, text ) : self. root. ids. popup _ message. text = text self. root. ids. popup. open ( ) | [
0.8341958522796631,
0.17701703310012817,
0.4392893612384796,
-0.3962674140930176,
-0.9761194586753845,
0.3820933699607849,
0.6197056770324707,
1.5321550369262695,
0.0840902328491211,
0.60072922706604,
0.23235954344272614,
1.0275793075561523,
-1.0138912200927734,
0.5117362141609192,
-0.24... |
def _ ortho _ init ( shape, * _, * * _ kwargs ) : # lasagne ortho init for tf shape = tuple ( shape ) if len ( shape ) = = 2 : flat _ shape = shape elif len ( shape ) = = 4 : # assumes nhwc flat _ shape = ( np. prod ( shape [ : - 1 ] ), shape [ - 1 ] ) elif len ( shape ) = = 5 : # assumes nhwdc flat _ shape = ( np. pro... | [
0.05483526736497879,
-0.12370961904525757,
0.8548467755317688,
-1.0135453939437866,
-0.537144124507904,
-0.2583915591239929,
0.03978554159402847,
-0.4948912262916565,
-0.6401975154876709,
0.7220546007156372,
-0.04191036522388458,
-0.29505419731140137,
0.7053653001785278,
-0.223130181431770... |
def get _ serial ( self ) : logging. info ( " keithley. get _ serial ( ) called. " ) serial = self. keithley. get _ serial ( ) logging. info ( " serial = [ % s ] " % serial ) logging. info ( " keithley. get _ serial ( ) done. " ) return serial | [
-0.43985629081726074,
-0.21285054087638855,
0.43148913979530334,
0.6773281097412109,
0.7735956311225891,
-1.6681619882583618,
-0.6039320826530457,
-0.8114756345748901,
0.38718101382255554,
-0.3338626027107239,
-0.28912171721458435,
1.3108514547348022,
-0.4088367819786072,
-0.09033843874931... |
def sort _ dict _ by _ value ( dict _ to _ sort ) : return ordereddict ( sorted ( dict _ to _ sort. items ( ), key = lambda e : e [ 1 ] ) ) | [
-0.6089617013931274,
-0.04259483516216278,
0.277395635843277,
-0.45008403062820435,
-0.8457527756690979,
0.1943880021572113,
-0.11787281185388565,
-0.5324101448059082,
-0.47944143414497375,
0.5930799245834351,
0.45035800337791443,
0.3969937264919281,
0.5295811295509338,
-0.1260652691125869... |
def get _ sphere _ normals ( image _ size = 512, sphere _ radius = 224 ) : center _ x, center _ y = image _ size / / 2, image _ size / / 2 sphere _ normals = np. zeros ( ( image _ size, image _ size, 3 ) ) for i in range ( image _ size ) : for j in range ( image _ size ) : x = ( i - center _ x ) / sphere _ radius y = (... | [
-0.7924094200134277,
-0.4673077166080475,
0.44272270798683167,
0.21398891508579254,
-1.1777751445770264,
-0.12778370082378387,
0.06211068853735924,
0.5683146715164185,
0.7439307570457458,
1.2889043092727661,
-0.3649631440639496,
1.0907267332077026,
-0.77326899766922,
0.058532387018203735,
... |
def plot3d ( pixels, colors _ rgb, axis _ labels = list ( " rgb " ), axis _ limits = ( ( 0, 255 ), ( 0, 255 ), ( 0, 255 ) ) ) : # create figure and 3d axes fig = plt. figure ( figsize = ( 8, 8 ) ) ax = axes3d ( fig ) # set axis limits ax. set _ xlim ( * axis _ limits [ 0 ] ) ax. set _ ylim ( * axis _ limits [ 1 ] ) ax.... | [
0.7741563320159912,
0.09583420306444168,
1.0009338855743408,
-0.6284474730491638,
-0.6536020040512085,
1.0326359272003174,
-0.4092278778553009,
-0.17577612400054932,
-0.45706814527511597,
-0.06192958354949951,
0.8433765172958374,
0.9085429906845093,
-0.08971767872571945,
-1.182344913482666... |
def _ index _ profiles ( profiles : list ) : values = { } ids = set ( [ p. get ('id') for p in profiles if p. get ('id') ] ) for index, profile in enumerate ( profiles ) : chars = 2 while profile. get ('id') is none : for i in range ( 100 ) : p _ id = b85encode ( uuid4 ( ). bytes ). decode ('ascii') [ 0 : chars ] if p ... | [
-1.0075627565383911,
0.10109595209360123,
0.47068357467651367,
-0.44655948877334595,
-0.10458867251873016,
-0.10236126184463501,
0.4918503165245056,
-0.22289890050888062,
0.15406210720539093,
1.0551048517227173,
-1.4382966756820679,
-0.5893751978874207,
-0.6493428945541382,
-0.379979759454... |
def download _ page ( self ) : # use the mobile version - the html is better - formed parsed _ url = urlparse ( self. url ) query = dict ( parse _ qsl ( parsed _ url. query ) ) query [ " view " ] = " mobile " url = urlunparse ( ( parsed _ url. scheme, parsed _ url. netloc, parsed _ url. path, parsed _ url. params, urle... | [
-0.11555863916873932,
0.06873467564582825,
0.7097190618515015,
0.008000260218977928,
-0.30091091990470886,
-0.0052745891734957695,
-0.406495600938797,
-0.020640414208173752,
0.7092609405517578,
0.28926143050193787,
0.9893918037414551,
-0.6429065465927124,
-0.854910671710968,
0.299592912197... |
def converttourl ( cpathname ) : if len ( cpathname ) > 1 : if cpathname [ 1 : 2 ] = = " : " : cpathname = " / " + cpathname [ 0 ] + " | " + cpathname [ 2 : ] cpathname = string. replace ( cpathname, " \ \ ", " / " ) cpathname = " file : / / " + cpathname return cpathname | [
-0.21030528843402863,
-0.913164496421814,
0.7809568047523499,
-0.13143935799598694,
-0.5135133266448975,
0.3807563781738281,
0.9294523596763611,
1.2170206308364868,
-0.6775491237640381,
0.7186208367347717,
0.1969633251428604,
-0.7427726984024048,
0.1818438023328781,
-0.16398504376411438,
... |
def _ _ ge _ _ ( self, other ) : if type ( self ) is not type ( other ) : return notimplemented return self. _ is _ greater _ than _ same _ type ( other ) or self. _ is _ equal _ same _ type ( other ) | [
-1.6180298328399658,
0.9396705627441406,
0.7633830904960632,
0.4268706142902374,
0.6207582950592041,
0.6066015362739563,
-0.17898564040660858,
-1.1141853332519531,
0.12220420688390732,
0.5620355606079102,
-0.6164153218269348,
0.05666569247841835,
-0.40061384439468384,
0.8568708896636963,
... |
def testpatchedsudsjurkoappenderissue78 ( self ) : # create a fake customer that contains only an empty value for the # trackingurl template. in the bug, this would be excluded from the output. customer = {'trackingurltemplate':'','xsi _ type':'customer'} customer _ service = self. adwords _ client. getservice ('custom... | [
0.05287402495741844,
0.8334159255027771,
0.5475038886070251,
-0.09106270968914032,
-0.5099872350692749,
0.10730435699224472,
-0.2732563018798828,
0.011722108349204063,
1.124091625213623,
-0.2459779977798462,
-0.3503658175468445,
0.5842036604881287,
0.1363343745470047,
0.27685657143592834,
... |
def extract _ classids _ and _ bboxes ( boxes _ info ) : boxes = [ ] class _ ids = [ ] for box _ info in boxes _ info : print ( box _ info ) class _ ids. append ( box _ info ['class _ id'] ) boxes. append ( [ box _ info ['y1'], box _ info ['x1'], box _ info ['y2'], box _ info ['x2'] ] ) print ( class _ ids ) boxes = np... | [
-1.2931100130081177,
-1.276706337928772,
0.643940806388855,
0.009169521741569042,
0.5557793974876404,
0.1789066195487976,
0.05339248105883598,
-0.21986645460128784,
0.026770800352096558,
-0.015744509175419807,
-0.7939620614051819,
-0.20992498099803925,
0.6957563161849976,
0.922505676746368... |
def test _ get _ cve _ filter _ by _ unrecognized _ state _ available ( ) : res = requests. get ( f'{ env. awg _ base _ url } { cve _ url } / ', headers = utils. base _ headers, params = {'state':'available'} ) assert res. status _ code = = 400 assert'available'not in res. content. decode ( ) | [
-0.48958224058151245,
-0.07884733378887177,
0.3596242070198059,
0.2893253266811371,
0.5463675856590271,
0.8350915908813477,
-0.7953470349311829,
0.4411565065383911,
0.18580156564712524,
0.054642532020807266,
-0.46889224648475647,
0.4212857484817505,
0.963443398475647,
-0.10261750966310501,... |
def on _ draw ( self ) : arcade. start _ render ( ) # only draws if the player is alive if self. health! = 0 : # draws the background self. draw _ background ( ) # draws all enemies for enemy in self. enemy _ list : enemy. draw ( ) # draws circles representing health for person in range ( 1, ( self. health + 1 ) ) : pe... | [
0.09361422061920166,
-0.32502272725105286,
0.8335661292076111,
-0.3377009630203247,
0.8217357993125916,
0.7251922488212585,
-0.451762318611145,
-0.45963817834854126,
0.6478654742240906,
-0.4677961766719818,
0.23445218801498413,
-0.22839471697807312,
0.21936406195163727,
0.17302332818508148... |
def _ watcher _ result _ callback ( watcher : future ) - > callable : # docstyle. def _ callback ( result ) : if watcher. done ( ) : # pragma : nocover return watcher. set _ result ( result ) return _ callback | [
-0.23221996426582336,
-0.07134579867124557,
0.16964749991893768,
0.03320121020078659,
-0.5912626385688782,
-0.7327739596366882,
0.6399412751197815,
-0.8627853393554688,
0.21557587385177612,
-0.013882079161703587,
-0.5318748950958252,
-0.81296306848526,
0.6458497643470764,
0.235751241445541... |
def render ( self, mode = " human ", close = false ) : observation = self. to _ observation ( self. state, self. position ) observation _ chars = [ [ self. print _ field ( observation [ c, r ] ) for c in range ( self. grid _ shape [ 0 ] ) ] for r in reversed ( range ( self. grid _ shape [ 1 ] ) ) ] last _ action _ stri... | [
-0.4324885308742523,
0.43349164724349976,
1.1312694549560547,
-0.3922416567802429,
-0.415668249130249,
0.4505590796470642,
-0.07550273835659027,
-0.34028488397598267,
-0.8446696400642395,
0.4963602125644684,
0.45186683535575867,
0.15051963925361633,
0.0265843253582716,
0.4823775589466095,
... |
def upload _ cohort _ all _ tumors ( paths _ to _ samples _ info, google _ bucket _ id, name, namespace, workspace, blacklist = [ ] ) : all _ samples = get _ samples _ multiple _ batches ( paths _ to _ samples _ info, google _ bucket _ id ) tumor _ samples = all _ samples [ all _ samples. sample _ type = = " tumor " ] ... | [
-0.13214944303035736,
-0.708685576915741,
0.6360936164855957,
-0.4456161856651306,
-0.11830832064151764,
-0.13997897505760193,
0.01796865090727806,
-0.4122433364391327,
-0.5601130127906799,
1.0050528049468994,
0.12895458936691284,
0.4277997612953186,
0.5310219526290894,
0.21739356219768524... |
def _ get _ saved _ tracks ( self, progress = progress ( ) ) : q = { " limit " : 50 } url = " me / tracks " page = self. get _ api _ v1 ( url, q ) results = self. _ extract _ page ( page, progress ) return tuple ( track ( saved [ " track " ] ) for saved in results ) | [
-0.8926182389259338,
0.41456207633018494,
0.6371744275093079,
0.6617181301116943,
0.6925479173660278,
0.14925314486026764,
-0.5497341156005859,
-0.5808722972869873,
-1.0245165824890137,
-0.1857793778181076,
-0.5040178894996643,
-1.160025954246521,
-0.7584390640258789,
-0.1390162855386734,
... |
def download _ files ( self, conn, get _ req, file _ list, target _ dir ) : get _ req. transfer _ id = get _ req. migration. external _ id get _ req. save ( ) # now do the download via a multiprocess process n _ files = len ( file _ list ) n _ threads = int ( self. ftp _ settings [ " threads " ] ) n _ files _ per _ lis... | [
-0.31643104553222656,
0.6523537635803223,
0.879979133605957,
0.13625945150852203,
1.1775797605514526,
-0.9319376349449158,
-0.08740159124135971,
0.36592671275138855,
-0.43018484115600586,
0.08600898087024689,
-0.32188844680786133,
-0.05053052306175232,
-0.7042816877365112,
0.49473437666893... |
def process _ repository ( self, repository ) : if repository is none or repository. handle in self. referenced [ " repository " ] : return self. referenced [ " repository " ]. add ( repository. handle ) self. process _ notes ( repository ) self. process _ addresses ( repository ) self. process _ urls ( repository ) | [
-0.2241063416004181,
0.3896178603172302,
0.4949474632740021,
-1.0751221179962158,
1.0861190557479858,
-0.38140830397605896,
-0.05630047991871834,
-0.6324015259742737,
0.899482786655426,
-0.5847461819648743,
-0.1900007724761963,
0.016705576330423355,
-0.26061728596687317,
0.9990666508674622... |
def test _ validate _ http _ request _ when _ uploading _ status ( self ) : with mock _ wire _ protocol ( data _ file ) as protocol : test _ goal _ state = protocol. client. _ goal _ state plugin = protocol. client. get _ host _ plugin ( ) status _ blob = protocol. client. status _ blob status _ blob. data = faux _ sta... | [
0.42797625064849854,
-0.22873017191886902,
0.8898274302482605,
0.12000599503517151,
0.6595329642295837,
0.5975848436355591,
-0.6272711753845215,
0.07907311618328094,
-0.5206398963928223,
0.27195432782173157,
-0.6052834987640381,
0.3126501441001892,
-0.31815457344055176,
0.32770776748657227... |
def test _ model _ summed _ branch _ lengths ( self ) : _ data = { " human " : " atgcggctcgcggaggccgcgctcgcggag ", " mouse " : " atgcccggcgccaaggcagcgctggcggag ", " opossum " : " atgccagtgaaagtggcggcggtggctgag ", } aln = make _ aligned _ seqs ( data = _ data, moltype = " dna " ) model1 = evo _ app. model ( " f81 ", opt... | [
0.9087262153625488,
0.02131296880543232,
0.5273623466491699,
-0.56679767370224,
0.45614299178123474,
1.091938853263855,
0.12548838555812836,
0.3724445104598999,
0.2650594115257263,
0.2240568846464157,
-0.9172214269638062,
-0.07528012245893478,
0.581712007522583,
0.3177444040775299,
0.453... |
def lo _ enabled ( self ) : if self. module. device : if self. module. device. is _ qrm _ type : self. _ settings. lo _ enabled = self. module. device. get ( f " out { self. port _ number } _ in { self. port _ number } _ lo _ en " ) elif self. module. device. is _ qcm _ type : self. _ settings. lo _ enabled = self. mod... | [
0.6288679838180542,
-0.4631553888320923,
0.556657612323761,
-0.2995166778564453,
-0.20658829808235168,
0.15474390983581543,
0.1784379929304123,
-0.3742769956588745,
0.526970386505127,
-0.04118604212999344,
-0.27253198623657227,
0.2663567364215851,
-1.119611382484436,
-0.0021099457517266273... |
def test _ list _ integer _ min _ length _ 1 _ nistxml _ sv _ iv _ list _ integer _ min _ length _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - minlength - 2. xsd ", instance = " nistdata / list / ... | [
-0.4569145739078522,
-0.7962766289710999,
0.3949008882045746,
0.614890992641449,
-0.7025582790374756,
-0.17067451775074005,
-0.11153385043144226,
-0.20369240641593933,
0.5188241004943848,
0.41491031646728516,
-1.397202968597412,
0.20407958328723907,
-0.5795028805732727,
1.130075216293335,
... |
def test _ atomic _ id _ pattern _ 4 _ nistxml _ sv _ iv _ atomic _ id _ pattern _ 5 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - pattern - 5. xsd ", instance = " nistdata / atomic / id / schema + instance... | [
0.11587405949831009,
-0.09002163261175156,
0.3829888701438904,
0.31867432594299316,
-0.44159185886383057,
0.2104150354862213,
0.3184460997581482,
-0.6168608069419861,
0.39589953422546387,
0.9123899340629578,
-0.3523484170436859,
-0.07586256414651871,
-0.5918996930122375,
-0.227192074060440... |
def sorted _ heatmap ( weights ) : weights = weights. reshape ( weights. shape [ : 2 ] ) row _ order = np. array ( sorted ( weights, key = lambda row : np. sum ( row ) ) ) col _ order = np. array ( sorted ( row _ order. t, key = lambda row : - np. sum ( row ) ) ). t cmap = plt. get _ cmap ( " blues " ) fig1 = plt. figu... | [
0.5470230579376221,
-0.3181275725364685,
0.9769722819328308,
-0.09797735512256622,
0.010174659080803394,
0.3311680853366852,
0.13931354880332947,
-0.1063530221581459,
-0.10423828661441803,
0.18910007178783417,
0.6972860097885132,
0.26085665822029114,
0.6331227421760559,
0.953718364238739,
... |
def test ( did _ pass ) : # on definit d'abord une fonction " did _ pass " que l'on va utiliser dans les autres fonctions test. linenum = sys. _ getframe ( 1 ). f _ lineno if did _ pass : msg = " test at line { 0 } ok. ". format ( linenum ) else : msg = ( " test at line { 0 } failed. ". format ( linenum ) ) print ( msg... | [
0.8298074007034302,
-0.27539464831352234,
0.6677111983299255,
0.1731925755739212,
0.9190044403076172,
0.3071616590023041,
0.8418555855751038,
-0.331108421087265,
-0.4148930013179779,
-1.2025202512741089,
-0.3534316122531891,
0.8347474932670593,
0.21019871532917023,
0.010573110543191433,
... |
def test _ atomic _ any _ uri _ enumeration _ 3 _ nistxml _ sv _ iv _ atomic _ any _ uri _ enumeration _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - enumeration - 4. xsd ", instance = " nistdata... | [
-0.8930741548538208,
-0.6716524362564087,
0.5679326057434082,
0.9524818658828735,
-0.07817497849464417,
-0.04466394707560539,
0.21927288174629211,
0.042679108679294586,
0.24713030457496643,
0.16382592916488647,
0.24248816072940826,
-0.5180491805076599,
-0.4200144410133362,
-0.3428435325622... |
def getstatus ( self ) : self. send _ getstatus ( ) return self. recv _ getstatus ( ) | [
-0.392574280500412,
-0.4273957312107086,
0.68421870470047,
0.6084079742431641,
0.18920578062534332,
-0.5960264801979065,
-0.3217095732688904,
-0.11273729801177979,
0.646480143070221,
-0.2869419455528259,
-1.3499641418457031,
0.9661741256713867,
-0.9044182896614075,
0.46861791610717773,
0... |
def main _ index ( request, service _ name = none, model _ name = none, action _ name = none, object _ id = none ) : context _ data = process _ url ( request, service _ name, model _ name, action _ name, object _ id ) log. info ('index : service _ name : % s'% ( service _ name ) ) log. info ('index : model _ name : % s... | [
-0.1429453194141388,
-0.6113337278366089,
0.8320586681365967,
0.6077563762664795,
-0.566085159778595,
-0.02021048218011856,
0.38199302554130554,
0.2092420756816864,
-0.1445530354976654,
0.36487406492233276,
0.7306318879127502,
0.7529537081718445,
0.15196767449378967,
-0.26815763115882874,
... |
def provisioning _ state ( self ) - > pulumi. output [ str ] : return pulumi. get ( self, " provisioning _ state " ) | [
0.26504838466644287,
-0.5235426425933838,
0.2356261909008026,
0.14276067912578583,
-0.10754995793104172,
0.9865447282791138,
-0.11480506509542465,
0.31414350867271423,
0.8774012327194214,
0.6819149255752563,
0.2214599996805191,
0.26798978447914124,
0.34951168298721313,
-1.045824408531189,
... |
def repeat _ layer ( l : nn. module, times : int ) - > list [ nn. module ] : return [ l ] + [ copy. deepcopy ( l ) for _ in range ( times - 1 ) ] | [
-1.2824746370315552,
0.9781257510185242,
0.5044456720352173,
0.3929034173488617,
-0.07648609578609467,
0.5809260010719299,
-0.5843345522880554,
-0.7491195797920227,
1.078479290008545,
0.6624578237533569,
-1.2798246145248413,
0.39656105637550354,
0.3777667284011841,
0.7338931560516357,
-0... |
def _ _ init _ _ ( self, id, videoid, authorid, authorname, commenttext, publisheddate ) : self. id = id self. videoid = videoid self. authorid = authorid self. authorname = authorname self. commenttext = commenttext self. publisheddate = publisheddate self. polarity = get _ sentiment _ polarity ( self. commenttext ) s... | [
0.23963311314582825,
-1.0498052835464478,
0.457126259803772,
0.9586316347122192,
0.43416017293930054,
0.029786499217152596,
-1.1545971632003784,
0.3917561173439026,
0.4834425747394562,
-0.1153501495718956,
-0.33090561628341675,
0.643809974193573,
-0.700935423374176,
0.6561930775642395,
-... |
def get _ label _ file ( subject _ dir ) : f _ list = os. listdir ( subject _ dir ) for f in f _ list : if re. search ('_ ff. nii. gz ', f ) : return os. path. join ( subject _ dir, f ) | [
0.3816851079463959,
-0.33281055092811584,
0.6764718294143677,
-0.07791146636009216,
0.2746278643608093,
0.023982256650924683,
0.7017495632171631,
-0.4284837543964386,
-0.46956175565719604,
0.10643375664949417,
0.8731822371482849,
-0.007976449094712734,
-0.3395175635814667,
0.28310924768447... |
def _ is _ greater _ than _ same _ type ( self, other ) : self _ position = self. position other _ position = other. position if self _ position > other _ position : return true if self _ position < other _ position : return false return self. id > other. id | [
-0.8592067956924438,
-0.5315786600112915,
1.0222752094268799,
0.30439814925193787,
0.4497634768486023,
0.6686753034591675,
-0.3975573778152466,
-1.3894389867782593,
-0.23071150481700897,
0.10745347291231155,
-1.2977937459945679,
-0.10600955784320831,
-0.5141377449035645,
0.5703130960464478... |
def _ _ init _ _ ( self ) : self. tablesize = 8 self. load = 0 self. doublingthreshold = 0. 7 self. table = [ [ ] for _ in range ( self. tablesize ) ] self. hashconstant = ( 5 * *. 5 - 1. 0 ) / 2. 0 | [
0.6199253797531128,
0.6150115132331848,
0.5355334877967834,
0.6211930513381958,
-0.35872358083724976,
0.0939658060669899,
0.4951391816139221,
-0.47478437423706055,
-0.5300788283348083,
-0.14044611155986786,
-1.3312644958496094,
0.28663280606269836,
-0.13897062838077545,
1.0413788557052612,... |
def draw _ bullet ( self ) : pygame. draw. rect ( self. screen, self. color, self. rect ) | [
-0.6105013489723206,
-0.36834755539894104,
0.3652614951133728,
-0.19400209188461304,
1.213632345199585,
1.5905028581619263,
-0.876503050327301,
-0.17265227437019348,
-0.2788239121437073,
-0.6021715998649597,
0.11869700998067856,
0.772052526473999,
0.14817258715629578,
0.49856212735176086,
... |
def charging _ state ( self ) - > str : return self. _ vehicle _ data. get ( " charge _ state ", { } ). get ( " charging _ state " ) | [
-0.14005449414253235,
-0.415276437997818,
0.42572230100631714,
0.18818728625774384,
-0.08946321904659271,
0.649177610874176,
-0.9638543128967285,
-0.2663324475288391,
0.08894628286361694,
0.10402292013168335,
-0.06919123977422714,
-0.42569056153297424,
-0.008071988821029663,
0.017508056014... |
def test _ atomic _ id _ enumeration _ 4 _ nistxml _ sv _ iv _ atomic _ id _ enumeration _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - enumeration - 5. xsd ", instance = " nistdata / atomic / id / schem... | [
-0.1796717494726181,
-0.8618214130401611,
0.34876611828804016,
0.2194325476884842,
-0.28201353549957275,
-0.32374611496925354,
0.4035612940788269,
-1.0104385614395142,
0.08295972645282745,
0.6814145445823669,
-0.3802024722099304,
-0.06223464384675026,
-0.6425596475601196,
0.121069356799125... |
def continuous ( self, pattern _ dict ) : if isinstance ( pattern _ dict, bool ) : pattern _ dict = { } pattern _ dict ['freq _ type'] ='continuous'schedule _ pattern = schedulepattern ( self. _ pattern ) self. _ pattern = schedule _ pattern. create _ schedule _ pattern ( pattern _ dict ) self. _ modify _ task _ proper... | [
0.03874669969081879,
0.4271256625652313,
0.604195773601532,
-0.07905615866184235,
0.12014128267765045,
1.0775734186172485,
0.7483595013618469,
1.349206566810608,
-0.054399240761995316,
0.3235490322113037,
-0.48117154836654663,
-0.27010583877563477,
-0.04972832649946213,
-1.0000816583633423... |
def emergency _ stop ( self ) : # pylint : disable = no - self - use control = carlaegovehiclecontrol ( ) control. steer = 0. 0 control. throttle = 0. 0 control. brake = 1. 0 control. hand _ brake = false return control | [
0.038009025156497955,
-0.0910240113735199,
0.2646315395832062,
-0.06767767667770386,
0.7586441040039062,
0.584282398223877,
-0.21884530782699585,
0.25958487391471863,
-0.7404706478118896,
-0.060187313705682755,
-0.34938502311706543,
-0.958257257938385,
-0.20176705718040466,
-0.854454994201... |
def calc _ lightpath _ state ( self, open _ limit : int, closed _ limit : int ) - > lightpathstate : self. _ inserted = bool ( closed _ limit ) self. _ removed = bool ( open _ limit ) trans = 0. 0 if self. _ inserted else 1. 0 return lightpathstate ( inserted = self. _ inserted, removed = self. _ removed, output = { se... | [
0.04817284271121025,
-0.42584437131881714,
0.49522706866264343,
-0.17139162123203278,
-1.2726091146469116,
-0.30132803320884705,
0.40691065788269043,
0.4103001058101654,
0.577915370464325,
-0.24690671265125275,
-0.30995088815689087,
-0.440056174993515,
-0.8415370583534241,
-0.7005203366279... |
def _ replace _ node _ with _ majority _ class ( self, tree, index ) : # we will do breadth first traversal and stop at the given index nodes _ traversed = 0 traversal _ queue = deque ( [ tree. root ] ) node = none while nodes _ traversed < index : node = traversal _ queue. popleft ( ) if node. label not in [ 0, 1 ] : ... | [
-1.0534851551055908,
-0.10707933455705643,
0.7973286509513855,
-0.36197564005851746,
0.2907731831073761,
0.21443119645118713,
-0.8859395980834961,
0.3399856686592102,
0.023891456425189972,
0.6846653819084167,
0.5633042454719543,
0.6625406742095947,
-0.05434485152363777,
0.7801609635353088,... |
def end _ timestamp ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " end _ timestamp " ) | [
0.4779396951198578,
0.6073092222213745,
0.45440518856048584,
0.2692529857158661,
1.3099641799926758,
1.3799304962158203,
-0.2509860396385193,
0.15483726561069489,
0.7126580476760864,
0.46121522784233093,
-0.04293962940573692,
0.5944513082504272,
-0.09257713705301285,
-0.7389822006225586,
... |
def dfs _ to _ dicts ( all _ preds, peprec = none, rt _ to _ seconds = true ) : if type ( peprec ) = = pd. dataframe : peprec _ to _ dict = peprec. copy ( ) rt _ present ='rt'in peprec _ to _ dict. columns if rt _ present and rt _ to _ seconds : peprec _ to _ dict ['rt'] = peprec _ to _ dict ['rt'] * 60 peprec _ to _ d... | [
-0.5616639256477356,
-0.056640978902578354,
0.6844958066940308,
-0.7553454041481018,
0.09076270461082458,
-0.037618257105350494,
-0.6869345903396606,
0.6371743083000183,
-1.022883653640747,
0.5210806131362915,
-0.11024925857782364,
-0.24175263941287994,
0.47774630784988403,
0.4043128490447... |
def _ page _ end _ check ( self ) : # checking if we have reached the page and getting show more results button try : # if we get the show more button we click it and load more elements show _ more _ results = self. driver. find _ element _ by _ class _ name ( " mye4qd " ) action = actionchains ( self. driver ) action.... | [
-0.23216211795806885,
0.07628072053194046,
0.8260151147842407,
0.315710186958313,
0.29818984866142273,
0.5199246406555176,
0.10065988451242447,
-0.649317741394043,
0.19528381526470184,
-0.08224279433488846,
0.3041401505470276,
-0.23255129158496857,
-0.4389980733394623,
0.9332563877105713,
... |
def test _ atomic _ any _ uri _ enumeration _ 2 _ nistxml _ sv _ iv _ atomic _ any _ uri _ enumeration _ 3 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - enumeration - 3. xsd ", instance = " nistdata... | [
-0.7136289477348328,
-0.9200029373168945,
0.4881598651409149,
0.6450151205062866,
-0.398699551820755,
0.053201161324977875,
-0.4380337595939636,
-0.014337746426463127,
0.25071263313293457,
0.3422302007675171,
0.0974121019244194,
-0.1078164279460907,
-0.13319896161556244,
-0.094150371849536... |
def test _ atomic _ qname _ max _ length _ 2 _ nistxml _ sv _ iv _ atomic _ qname _ max _ length _ 3 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - maxlength - 3. xsd ", instance = " nistdata / atomic ... | [
0.5724030137062073,
-0.23689326643943787,
0.36108410358428955,
0.1665012389421463,
-0.3375717103481293,
0.42909353971481323,
-0.8953084349632263,
-0.5137988328933716,
0.5591425895690918,
0.49389153718948364,
-0.40518760681152344,
-0.25699734687805176,
0.017917035147547722,
-0.4644721150398... |
def test _ atomic _ any _ uri _ min _ length _ nistxml _ sv _ iv _ atomic _ any _ uri _ min _ length _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - minlength - 1. xsd ", instance = " nistdata / a... | [
0.09833423048257828,
-0.555329442024231,
0.45184794068336487,
0.7072710990905762,
-0.5262545943260193,
-0.1337880641222,
0.1494901329278946,
-0.4597354531288147,
0.28997817635536194,
-0.09610757976770401,
0.0977758839726448,
-0.07776883244514465,
-0.7339452505111694,
0.4055251181125641,
... |
def test _ get _ consensus _ assignment ( self ) : in1 = [ ['ab ','bc ','de'], ['ab ','bc ','fg ','hi'], ['ab ','bc ','fg ','jk'] ] # defaults params = {'id _ to _ taxonomy _ fp': self. id _ to _ tax1 _ fp,'reference _ sequences _ fp': self. refseqs1 _ fp } expected = ( ['ab ','bc ','fg'], 2. / 3., 3 ) t = uclustconsen... | [
-0.03732886165380478,
-0.2638925015926361,
0.7029005885124207,
0.2461838275194168,
0.3406946063041687,
-0.15373268723487854,
0.38316500186920166,
0.09830030053853989,
-0.8798702359199524,
0.06885966658592224,
0.4891084134578705,
0.055958349257707596,
0.24694658815860748,
-0.298677504062652... |
def collect ( self ) : self. initialize _ logging ( ) # need to initialize logging again in child process cause multiprocessing self. logger. info ( " starting data collection process \ n " ) self. initialize _ database _ connections ( ) # self. logger. info ( " got to this point. " ) # self. logger. info ( f " this is... | [
-0.1179058626294136,
-0.27164313197135925,
0.9133577942848206,
-0.261637806892395,
0.5036131143569946,
0.12116848677396774,
0.4238765239715576,
-0.4546695947647095,
-0.9131661057472229,
0.2525143325328827,
-0.15089312195777893,
0.8487969040870667,
0.6197854280471802,
1.4866472482681274,
... |
def get _ clusters _ serial ( self, ctype, box, lcompute = none ) : if ctype not in self. cldict. keys ( ) : raise notimplementederror ( " unknown cluster type \ in get _ clusters _ serial. " ) clusters = self. clsnaps [ ctype ] cutoff = self. cldict [ ctype ] func = self. clfunc [ ctype ] if lcompute is not none : lfi... | [
-0.9133576154708862,
0.003125459188595414,
0.5766755938529968,
-0.3822266757488251,
0.8141988515853882,
0.17276258766651154,
0.37358778715133667,
0.03427737578749657,
0.8060978055000305,
-0.45612266659736633,
-0.7045652270317078,
0.7500123977661133,
0.7107879519462585,
-0.09290049225091934... |
def _ free _ backpack _ buffers ( self, global _ step, verbose = false ) : if verbose : print ( " freeing backpack buffers " ) ext = self. _ get _ extensions ( global _ step ) for param in self. _ get _ tracked _ params ( ) : for e in ext : try : field = e. savefield delattr ( param, field ) if verbose : print ( f " de... | [
0.4634035527706146,
-0.11101645976305008,
0.6333034634590149,
0.2419111132621765,
0.13403986394405365,
0.5587263703346252,
0.8335974216461182,
-0.9815353751182556,
-0.7327933311462402,
0.6531807780265808,
-0.8115047812461853,
0.44192278385162354,
-0.6696481704711914,
1.636431097984314,
-... |
def sshfp _ from _ key ( type, key, fingerprint _ type ='sha - 1') : if not type in g _ type _ mapping : raise ansiblefiltererror ( " the given ssh key type'{ }'is unknown ". format ( type ) ) if isinstance ( fingerprint _ type, str ) : if fingerprint _ type in g _ digest _ mapping : digest _ type = g _ digest _ mappin... | [
0.11068566143512726,
-0.11197888106107712,
0.8555155992507935,
-0.16610847413539886,
-0.6405827403068542,
-0.5609663724899292,
-0.04342784360051155,
0.7242479920387268,
-0.11690405011177063,
0.5528071522712708,
-0.04337947815656662,
0.6950793862342834,
0.26674437522888184,
0.94408041238784... |
def cluster ( data, *, msr, k, prior = 0., seed = 0, nmkc = 0, ntimes = 1, lspp = 0, use _ exponential _ skips = false, n _ local _ trials = 1, weights = none, mbsize = - 1, clustereps = 1e - 4, temp = - 1., cs = false, with _ rep = true, outpref = " mc. cluster. output ", maxiter = 50 ) : soft = temp > 0. # enable sof... | [
0.8056303858757019,
0.2578537166118622,
0.704279363155365,
0.6021154522895813,
-1.5240823030471802,
-0.014159807935357094,
-0.32463860511779785,
0.8249012231826782,
1.1143152713775635,
0.16956177353858948,
0.54365074634552,
0.17739656567573547,
-0.6595301628112793,
0.009019860997796059,
... |
def get _ album _ from _ context ( self, context ) : album _ id = id _ from _ uri ( context [ " uri " ] ) result = self. get _ api _ v1 ( " albums / { } ". format ( album _ id ) ) return album ( result ) | [
-0.23056696355342865,
-0.7119593620300293,
0.1845821887254715,
1.066453456878662,
0.7980514764785767,
0.6159880757331848,
-0.347555011510849,
-1.2866111993789673,
0.7229123711585999,
-0.2757309675216675,
-0.3591112494468689,
1.3903188705444336,
-0.3530906140804291,
-0.7739731669425964,
-... |
def delete _ folder ( absolute _ path : str, * relative _ paths : str ) - > none : path = os. path. join ( absolute _ path, * relative _ paths ) if os. path. isfile ( path ) : os. remove ( path ) else : for file _ or _ dir in os. listdir ( path ) : delete _ folder ( path, file _ or _ dir ) os. rmdir ( path ) | [
0.4685858488082886,
-0.44527265429496765,
0.7469809055328369,
1.2335319519042969,
0.21357819437980652,
1.1085337400436401,
0.47140347957611084,
0.0710437074303627,
-0.15518061816692352,
0.016363171860575676,
0.7388413548469543,
-0.6983197331428528,
0.5344493389129639,
0.38183894753456116,
... |
def summary ( self ) : url = lendingclub _ url ('accounts ', self. investor _ id,'summary') response = self. session. get ( url = url ) response. raise _ for _ status ( ) return namedtuple _ from _ json ('lendingclubsummary ', response. json ( ) ) | [
-1.128881573677063,
0.8228059411048889,
0.3596573770046234,
-0.05080204829573631,
0.1602577120065689,
-0.473755419254303,
-1.047404170036316,
-0.9046787023544312,
0.1459881067276001,
0.28426748514175415,
-0.13618376851081848,
0.3208800256252289,
-0.9163976907730103,
-0.36339783668518066,
... |
def auth ( self, username = from _ mail, password = password ) : print ( self. user ( username ) ) return self. password ( password ) | [
-0.6342811584472656,
-1.194541335105896,
0.32376188039779663,
1.0437105894088745,
-0.9581778645515442,
0.10005971044301987,
0.19329087436199188,
-0.21446585655212402,
0.39503493905067444,
-0.5283295512199402,
-0.1914062798023224,
1.4362417459487915,
-0.35896918177604675,
-0.424819767475128... |
def generate _ data _ with _ n _ blobs ( n ) : # mt num _ blobs = n # test two blobs num _ blobs _ incr = n + 1 train = np. zeros ( [ num _ imgs, img _ height * img _ width ] ) # input img size train _ incr = np. zeros ( [ num _ imgs, num _ incr, img _ height * img _ width ] ) img _ count = 0 i = 0 while ( i < num _ im... | [
-0.04997357353568077,
0.22445103526115417,
1.0386117696762085,
-0.06159909814596176,
-0.1313229203224182,
0.31383809447288513,
1.0937387943267822,
-1.0022728443145752,
0.0014452746836468577,
0.2719169557094574,
-0.41606050729751587,
-0.7780436277389526,
-0.47326403856277466,
0.229166194796... |
def _ learn ( self ) : features, labels = self. agent. get _ training _ data ( self. batch _ size, self. gamma, self. network ) verbose = 0 if self. counter % 50 = = 0 : print ( self. counter ) verbose = 1 self. network. model. fit ( features, labels, nb _ epoch = 1, batch _ size = self. batch _ size, verbose = verbose... | [
-0.5572627186775208,
-0.25701385736465454,
0.39842063188552856,
0.38422691822052,
1.0699987411499023,
-0.2422681450843811,
0.7091271877288818,
0.17188362777233124,
-0.374081015586853,
-0.9814802408218384,
-0.03186676278710365,
-0.34609681367874146,
0.32765209674835205,
0.388161838054657,
... |
def poise ( input _ in _ poise ) : return input _ in _ poise * 10 * * - 7 | [
0.42534196376800537,
0.05415249988436699,
0.5185309052467346,
-0.2952366769313812,
-0.17501571774482727,
0.04628290235996246,
-0.14834637939929962,
0.6355899572372437,
-0.462586373090744,
0.04380211979150772,
-0.5139473080635071,
-1.154923915863037,
-1.5156991481781006,
-0.2441446632146835... |
def parse _ command _ line ( args ) : cli _ parser = argparse. argumentparser ( description = " car driving times tool ", conflict _ handler ='error') cli _ parser. add _ argument ( " - r ", " - - route - id ", nargs = '? ', required = true, help = " specify a route id " ) cli _ parser. add _ argument ( " - s ", " - - ... | [
-0.20183362066745758,
-0.4395972490310669,
0.8238601088523865,
-0.3064109981060028,
0.36883825063705444,
0.08160565048456192,
-1.0643733739852905,
0.11693783104419708,
-0.9673227667808533,
0.5001412034034729,
-0.2940046787261963,
-0.5636838674545288,
-0.2800281345844269,
0.4703460037708282... |
def trimrigth ( alpha _ trim, currenthit, cdsseq, geneseq ) : for i in range ( currenthit [ 1 ] - alpha _ trim, currenthit [ 0 ] + alpha _ trim, - alpha _ trim ) : percentidentity = computealignmentpercentidentity ( cdsseq [ currenthit [ 0 ] : i ], geneseq [ currenthit [ 2 ] : currenthit [ 3 ] - ( currenthit [ 1 ] - i ... | [
-0.3481234312057495,
-1.1492234468460083,
0.5233669281005859,
-0.5901190042495728,
0.5627105236053467,
0.42319953441619873,
0.912026584148407,
0.4045933187007904,
0.2397526502609253,
1.101706862449646,
-0.026968490332365036,
-0.4884369671344757,
-0.8911918997764587,
-1.2349330186843872,
... |
def _ _ init _ _ ( self, sc _ objects, name2bam, * * kwargs ) : self. name2bam _ loc = name2bam self. sc _ objects = sc _ objects # load snptables name2snptable = { } name2scaffs = defaultdict ( list ) name2isp = { } for sc in self. sc _ objects : for isp, name in zip ( sc. profiles, sc. names ) : name2scaffs [ name ].... | [
0.2849060297012329,
-0.49683135747909546,
0.7439672946929932,
0.7876811623573303,
-0.3806643486022949,
0.4459962546825409,
0.49067795276641846,
-0.29503244161605835,
0.16146710515022278,
-0.07954506576061249,
-0.9582751393318176,
-0.35347598791122437,
0.39077842235565186,
0.345525234937667... |
def create ( name ) : if name in game. games : game = game. games [ name ] else : game. games [ name ] = game = game ( name ) return game | [
-0.012525304220616817,
0.20688468217849731,
0.587883710861206,
-0.19847193360328674,
0.09200237691402435,
0.5745067596435547,
-1.7746309041976929,
-1.3541873693466187,
0.12288739532232285,
0.9543933868408203,
-0.18922822177410126,
-0.8929575681686401,
-0.8812233805656433,
-0.22281397879123... |
def _ _ init _ _ ( self, master ) : super ( ). _ _ init _ _ ( master,'log in ', 4, 1, false, true ) self. master = master self. master. title ('log in') self. master. geometry ('650x420 + 25 + 25') l _ username = label ( self. main _ frame, text = " username ", width = 13 ) l _ username. grid ( row = 1, column = 0 ) e ... | [
-0.24197420477867126,
0.5842074155807495,
1.0568615198135376,
0.6069995760917664,
-0.2219320386648178,
-0.0418434664607048,
0.48508134484291077,
0.4238329827785492,
0.7001309990882874,
0.08616796880960464,
-0.5867148637771606,
-0.00008667519432492554,
0.16880826652050018,
1.384225487709045... |
def stat ( self ) : rep = self. send ( " stat " + crlf ) return rep | [
0.22628238797187805,
-0.06181526184082031,
0.34408682584762573,
-0.35365787148475647,
0.9340449571609497,
-0.7601504325866699,
-0.1852756291627884,
-0.6846367716789246,
0.6299046277999878,
-0.4190696179866791,
0.23059506714344025,
0.1730927973985672,
-1.3993585109710693,
-0.368539661169052... |
def test _ parsesshowrunint ( self ) : expected = output _ run _ all _ int _ processed result = parsesshowrunint ( output _ run _ all _ int ) assert result = = expected | [
0.13736730813980103,
-0.22141754627227783,
0.5551616549491882,
-0.6973665356636047,
-0.36721858382225037,
-0.20366813242435455,
0.37530726194381714,
0.13381485641002655,
0.3330577313899994,
-1.01018488407135,
-0.2569252550601959,
0.7937505841255188,
0.4685222804546356,
0.31186890602111816,... |
def test _ convert _ value ( self ) : self. assertequal ( util. convert _ value ( 10,'debit'), - 10 ) self. assertequal ( util. convert _ value ( 10,'credit'), 10 ) | [
-0.6032727956771851,
0.7216586470603943,
0.46929413080215454,
-0.37717992067337036,
1.37952721118927,
0.18983733654022217,
-0.5612572431564331,
0.1719415932893753,
-0.09977096319198608,
0.20698508620262146,
-0.17682905495166779,
-0.04461280629038811,
0.23325882852077484,
0.1220188289880752... |
def conoptdistance ( x, y ) : if len ( x ) % 3! = 0 or len ( y ) % 3! = 0 : raise runtimeerror ( " 3d array has a number of entries not divisible \ by 3. " ) ats = len ( x ) / 3 xa = np. reshape ( x, [ ats, 3 ] ) ya = np. reshape ( y, [ ats, 3 ] ) # return np. min ( euclidean _ distances ( xa, ya, squared = true ) ) re... | [
0.44871780276298523,
-0.14226581156253815,
0.7041549682617188,
-0.19665440917015076,
-0.000916666816920042,
0.09907326847314835,
-0.9184700846672058,
-0.08155088126659393,
0.5485318899154663,
1.5375094413757324,
0.4424162805080414,
0.19017697870731354,
-0.03899048641324043,
-0.526948869228... |
def test _ atomic _ base64 _ binary _ pattern _ 1 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ pattern _ 2 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - pattern - 2. xsd ", instance ... | [
-0.3787853717803955,
-0.7266979217529297,
0.5418065786361694,
1.67648184299469,
0.04095239192247391,
0.0937434509396553,
0.3376575708389282,
0.10188599675893784,
-0.4555830955505371,
0.4568365812301636,
-0.3813672661781311,
0.6563804745674133,
0.0026935627683997154,
0.20650339126586914,
... |
def _ gaussianlistsmoother ( self, buffer, degree = 5 ) : # solution temporaire pour agrandir la liste de 9 elems # l'algorithme perd des donnees en cours de route # valide seulement pour un buffer de 64 et un degree de 5 list = [ buffer [ 0 ] ] * 5 for i in range ( len ( buffer ) ) : list. append ( buffer [ i ] ) for ... | [
0.48558562994003296,
-0.015681549906730652,
0.7865894436836243,
-0.7481611967086792,
-0.7824624180793762,
0.4478445053100586,
0.2038974016904831,
-0.5670281648635864,
0.44303956627845764,
0.7216037511825562,
-0.6423952579498291,
0.4203077554702759,
-0.9943569898605347,
0.9816290140151978,
... |
async def set _ cabin _ overheat _ protection ( self, option : str ) - > none : if option = = " off " : body _ on = false fan _ only = false elif option = = " no a / c " : body _ on = true fan _ only = true elif option = = " on " : body _ on = true fan _ only = false data = await self. _ send _ command ( " set _ cabin ... | [
-0.4157473146915436,
0.10813547670841217,
0.7417483925819397,
0.7030388712882996,
0.31258079409599304,
0.6882039308547974,
-0.010408928617835045,
-0.5201533436775208,
0.45906227827072144,
-0.06708163768053055,
-0.8935034275054932,
0.21094068884849548,
-1.102347731590271,
-0.119979694485664... |
def _ post _ clean ( self ) : print ('_ post _ clean') self. instance. attr. initiate _ attributes ( ) for attribute in self. instance. attr. get _ all _ attributes ( ) : field _ name ='attr _ % s'% attribute. code # an empty text field won't show up in cleaned _ data. if field _ name in self. cleaned _ data : value = ... | [
-0.7642948031425476,
-0.3329370617866516,
0.40836459398269653,
-1.0667378902435303,
-0.5176900625228882,
-0.45145854353904724,
0.49286919832229614,
0.21745909750461578,
-0.4730491638183594,
0.08406737446784973,
-0.9084563851356506,
0.17940635979175568,
0.8312886953353882,
0.822609901428222... |
def get _ adjoint _ source _ file ( self, event : str, iteration : str ) - > str : adjoint _ filename = " stf. h5 " adj _ sources = self. lasif _ comm. project. paths [ " adjoint _ sources " ] it _ name = self. lasif _ comm. iterations. get _ long _ iteration _ name ( iteration ) return os. path. join ( adj _ sources, ... | [
0.6151885986328125,
0.22145941853523254,
0.45779740810394287,
-0.9240017533302307,
-0.3621627688407898,
0.7142272591590881,
0.6581857204437256,
-0.42998793721199036,
-1.3357282876968384,
0.7735461592674255,
0.4603450298309326,
-0.5034815669059753,
-0.17816738784313202,
-0.21466492116451263... |
def _ _ getitem _ _ ( self, index ) : if index < len ( self. ids0 ) : img _ name = self. ids0 [ index ] tumer _ site = torch. longtensor ( [ 0 ] ) else : img _ name = self. ids1 [ index - len ( self. ids0 ) ] tumer _ site = torch. longtensor ( [ 1 ] ) image = image. open ( img _ name ). convert ('rgb') if self. transfo... | [
-1.415679931640625,
-0.3833078145980835,
0.3547288477420807,
-0.6355725526809692,
-0.027716591954231262,
-0.3982292711734772,
0.6121396422386169,
-0.042962267994880676,
0.5052886009216309,
0.11671667546033859,
-0.12486246228218079,
0.3547842502593994,
0.4666680693626404,
-0.696550488471984... |
def test _ list _ decimal _ max _ length _ 3 _ nistxml _ sv _ iv _ list _ decimal _ max _ length _ 4 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - maxlength - 4. xsd ", instance = " nistdata / list / ... | [
-0.2366568148136139,
0.1559097319841385,
0.3570033013820648,
0.5521913766860962,
-0.05626201629638672,
-0.04332786053419113,
-0.6540394425392151,
0.25733858346939087,
0.9161284565925598,
-0.053659312427043915,
-1.0572879314422607,
-0.8233269453048706,
-0.11702065169811249,
0.00168708409182... |
def nlterms ( self, eq, degree, structure ) : if eq in ('state ','x') : self. xdegree = np. asarray ( degree ) self. xstructure = structure # all possible terms self. xpowers = combinations ( self. n + self. m, degree ) self. n _ nx = self. xpowers. shape [ 0 ] self. xactive = \ select _ active ( self. xstructure, self... | [
0.12957797944545746,
-0.3297460079193115,
0.5371944308280945,
-0.3118346929550171,
-0.08917316049337387,
-0.45493006706237793,
-0.13822129368782043,
0.11189806461334229,
0.1432327926158905,
0.08142633736133575,
-0.2672998011112213,
-0.3044481575489044,
0.46158578991889954,
0.23273158073425... |
def uri _ cache ( func ) : @ common. catch _ exceptions def uc _ wrapper ( self, obj, * args, * * kwargs ) : " " " use the cache to fetch the uri. " " " # keys are of the form : < function > : < uri > # e. g, get _ albums _ from _ artist # spotify : album : kjasg98qw35hg0 logger. info ( " searching for % s ( % s, % s, ... | [
-1.1776378154754639,
0.5091034770011902,
0.6301934123039246,
0.020533772185444832,
-0.6047422885894775,
-0.19861729443073273,
0.05564606562256813,
-0.3146979510784149,
0.5400926470756531,
0.1190805733203888,
0.5177971720695496,
0.4903891384601593,
0.4506149888038635,
-0.6481322050094604,
... |
def test _ list _ integer _ pattern _ nistxml _ sv _ iv _ list _ integer _ pattern _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - pattern - 1. xsd ", instance = " nistdata / list / integer / schema... | [
-0.7805612683296204,
-0.13035175204277039,
0.553673267364502,
0.6437347531318665,
-0.17997176945209503,
0.0393453948199749,
0.2209164947271347,
0.8518534898757935,
1.6324687004089355,
0.9282944798469543,
-0.5318030118942261,
-0.3484056293964386,
-0.4453345835208893,
0.5775736570358276,
0... |
def setcoalescesentences ( self, value ) : return self. _ set ( coalescesentences = value ) | [
0.3535013496875763,
-0.22213859856128693,
0.2969030737876892,
-0.3641011416912079,
0.22233083844184875,
0.015756748616695404,
0.6022708415985107,
-0.0707753524184227,
0.3111626207828522,
0.2880629599094391,
-0.2270582616329193,
-0.9209215641021729,
-0.625365138053894,
0.7363678216934204,
... |
def check _ if _ integer ( self, max _ number : float, min _ number : float, value, check : bool = true, msg : str ='' ) - > str : try : if not value : return f'{ msg } - value is empty'val = int ( value ) if check : if min _ number < val < max _ number : return'' return f'{ msg } - please enter value between { min _ n... | [
-0.34342053532600403,
0.4958483874797821,
0.5688549280166626,
0.6184791922569275,
-0.3972889482975006,
0.7612716555595398,
-0.28583019971847534,
-0.46518054604530334,
-0.6231203079223633,
0.23882688581943512,
0.9264661073684692,
0.41674938797950745,
-0.6949712634086609,
0.1982712596654892,... |
def gen _ points _ in _ gdf _ polys ( geometry, values, points _ per _ value = none, seed = none ) : if points _ per _ value : new _ values = ( values / points _ per _ value ). astype ( int ) else : new _ values = values new _ values = new _ values [ new _ values > 0 ] g = gpd. geodataframe ( data = {'vals': new _ valu... | [
0.05098475515842438,
0.4900831878185272,
0.48680445551872253,
0.24469761550426483,
-0.5415550470352173,
0.7302049398422241,
-0.25509190559387207,
0.030399156734347343,
-0.15656867623329163,
-0.38289791345596313,
0.6872761845588684,
0.19699229300022125,
0.18620432913303375,
-0.2242611646652... |
def test _ atomic _ hex _ binary _ enumeration _ nistxml _ sv _ iv _ atomic _ hex _ binary _ enumeration _ 1 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - enumeration - 1. xsd ", instance = " ... | [
-0.6560867428779602,
-0.3191480040550232,
0.6479858160018921,
0.6542457938194275,
0.07869107276201248,
0.658624529838562,
-0.08246727287769318,
0.2819528877735138,
0.42501094937324524,
0.5667314529418945,
-0.29702869057655334,
-0.6800206899642944,
-0.21019525825977325,
0.20309922099113464,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.