text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def save _ policy ( self, model ) : tmp = [ ] for ptype, ast in model [ " p " ]. items ( ) : for rule in ast. policy : tmp. append ( ptype + ", " + util. array _ to _ string ( rule ) + " \ n " ) for ptype, ast in model [ " g " ]. items ( ) : for rule in ast. policy : tmp. append ( ptype + ", " + util. array _ to _ stri... | [
-0.30055904388427734,
-0.2950955927371979,
0.5299332737922668,
-0.6415146589279175,
1.059012770652771,
1.3509693145751953,
-0.8404167890548706,
0.2599108815193176,
-0.7099384665489197,
0.9274073243141174,
-0.7042165398597717,
-0.12804685533046722,
-0.35660219192504883,
0.7394365072250366,
... |
def _ get _ legacy _ ec _ make _ vars ( board ) : make _ cmd = subprocess. run ( [ " make ", f " board = { board } ", " shell = / bin / bash ", " print - make - vars " ], check = true, encoding = " utf - 8 ", stdout = subprocess. pipe, stderr = subprocess. devnull, ) make _ vars = { } for line in make _ cmd. stdout. sp... | [
-0.18034100532531738,
0.25553035736083984,
0.5276268124580383,
-1.2796634435653687,
-1.2814961671829224,
-0.044503986835479736,
-0.22594957053661346,
-0.6756876707077026,
-1.268204689025879,
0.061964210122823715,
-0.8727187514305115,
0.23775628209114075,
0.8124517202377319,
0.0066537889651... |
def _ _ init _ _ ( self, lcd _ display, screen _ actions, actions, draw _ screen = none ) : self. actions = actions self. edit _ mode = false self. action = none self. screen _ actions = screen _ actions self. draw _ screen = draw _ screen # maintain current action self. len = len ( self. actions ) self. curr _ action ... | [
-0.20746201276779175,
0.14048367738723755,
0.5164043307304382,
-0.010832172818481922,
-0.0018830985063686967,
-0.4642165005207062,
0.2545056939125061,
-0.27641671895980835,
0.8356778025627136,
-0.7673710584640503,
0.1733817309141159,
0.09613536298274994,
0.25190484523773193,
0.777454853057... |
def register ( ) : form = registerform ( ) username = request. form. get ('username') password = request. form. get ('password') if form. reset. data : # if click " reset " return redirect ( url _ for ('register') ) if form. validate _ on _ submit ( ) : dynamodb = boto3. resource ('dynamodb ', region _ name ='us - east... | [
-0.6515437960624695,
1.3769444227218628,
0.8201354146003723,
1.0396472215652466,
0.3238506019115448,
0.05879742652177811,
0.0997593030333519,
0.4384056627750397,
-0.4865444302558899,
0.04013649746775627,
-0.39569127559661865,
-0.5216554999351501,
0.5989196300506592,
-0.0981762483716011,
... |
def create _ user ( self, email = none, password = none, * * extra _ fields ) : extra _ fields. setdefault ('is _ staff ', false ) extra _ fields. setdefault ('is _ superuser ', false ) extra _ fields. setdefault ('is _ validated ', false ) return self. _ create _ user ( email, password, * * extra _ fields ) | [
-0.3058272898197174,
1.234779715538025,
0.5918974280357361,
0.1829848736524582,
0.4216350018978119,
0.6766132116317749,
-0.2980864346027374,
0.06654267013072968,
-0.1646231710910797,
-0.4713175892829895,
-0.9541538953781128,
-0.07948312163352966,
-0.18580441176891327,
-0.20114769041538239,... |
def assert _ shape ( node, shape ) : if shape is none : return # none shape is the bottom of the information hierarchy assert ( len ( node. get _ shape ( ) ) = = len ( shape ) ) assert ( all ( [ s1 = = s2 or s2 is none for s1, s2 in zip ( node. get _ shape ( ), shape ) ] ) ) | [
0.5418503284454346,
-0.20393414795398712,
0.5243600606918335,
-0.32835128903388977,
1.4420716762542725,
0.021808916702866554,
-0.14291106164455414,
-0.17714262008666992,
-0.0984351858496666,
-0.4158308506011963,
-0.29239359498023987,
1.250691294670105,
-0.42145463824272156,
0.6525002717971... |
def inside _ unit _ circle ( point ) : distance = math. sqrt ( point [ 0 ] * * 2 + point [ 1 ] * * 2 ) return distance < 1 | [
-0.525712251663208,
-0.028803294524550438,
0.26229405403137207,
-0.0852929949760437,
-0.1518717259168625,
0.46962666511535645,
-0.08808115124702454,
-0.6525352001190186,
0.24890121817588806,
0.6776697635650635,
-0.280679851770401,
0.08840472251176834,
-0.6987220048904419,
-0.71070951223373... |
def show _ list ( self, commands, raw _ text = false ) : return _ list = [ ] if raw _ text : response _ list = self. _ cli _ command ( commands, method = u'cli _ ascii') for response in response _ list : if response : return _ list. append ( response [ u'msg']. strip ( ) ) else : response _ list = self. _ cli _ command... | [
-0.6127867102622986,
0.052420202642679214,
0.671711266040802,
0.16347049176692963,
0.15423905849456787,
-0.794240415096283,
-0.242998868227005,
0.11292524635791779,
0.439807653427124,
0.39079001545906067,
-0.12828895449638367,
0.10307452827692032,
0.060043852776288986,
1.3381813764572144,
... |
def parse _ wildcards ( self, received _ data ) : wildcards _ dict = { } for inport, inpacket in received _ data. items ( ) : if inport in self. wildcard _ expressions : wildcards _ dict [ inport ] = self. wildcard _ expressions [ inport ]. parse ( inpacket ) self. log. debug ( " port { }, with wildcard pattern { }, wi... | [
0.23791071772575378,
-0.5346306562423706,
0.6308829188346863,
-1.1085660457611084,
-0.5886325836181641,
-0.3390841484069824,
-0.45581522583961487,
0.8090156316757202,
0.10303091257810593,
-0.10530389100313187,
-0.44678637385368347,
0.8055368661880493,
-0.5361764430999756,
-0.01931158080697... |
def push _ topsets ( self, n, complete = false ) : self. _ bnd _ wing ( n, edge _ kind ='face') # the slice. _ bnd _ xyz methods will work for volumes if we provide the right input kwargs = {'edge _ kind':'face ','vx _ kind':'edge ','vx _ add': 8 } self. _ bnd _ slipwall ( n, * * kwargs ) self. _ bnd _ flow ( n,'inflow... | [
-0.43479475378990173,
0.2852059602737427,
0.657240092754364,
0.2642006576061249,
0.006637368816882372,
0.30032479763031006,
0.23636993765830994,
-1.1219192743301392,
0.08730427175760269,
0.3542076051235199,
0.1720493882894516,
-0.1341238170862198,
-0.5109726190567017,
1.534841537475586,
... |
def getstrmapbyname ( self, * args ) : return _ snap. trowiterator _ getstrmapbyname ( self, * args ) | [
-0.4956526458263397,
-0.37550514936447144,
0.2938217222690582,
0.021587753668427467,
-0.2152215540409088,
-0.5276010632514954,
0.7314130663871765,
-0.9939185380935669,
-0.6409516930580139,
0.0199747197329998,
-0.6689034700393677,
-0.6720861792564392,
-0.5741865038871765,
0.0583047345280647... |
def add ( self, * args ) : return _ snap. schema _ add ( self, * args ) | [
-1.3001757860183716,
0.16995002329349518,
0.5870791077613831,
0.7065306901931763,
0.5660165548324585,
0.4480716586112976,
0.1936539113521576,
0.9327490925788879,
0.2685145139694214,
-0.5454810261726379,
-0.37565627694129944,
-0.4723626971244812,
-0.8261600732803345,
0.32958275079727173,
... |
def test _ update _ stack _ graph ( self ) : def all _ stack _ up ( ) : for valve in self. valves _ manager. valves. values ( ) : valve. dp. dyn _ running = true for port in valve. dp. stack _ ports : port. stack _ up ( ) def up _ stack _ port ( port ) : peer _ dp = port. stack ['dp'] peer _ port = port. stack ['port']... | [
0.25348982214927673,
0.6407435536384583,
0.7848309278488159,
0.08460454642772675,
0.25123026967048645,
-0.3982110023498535,
1.2023184299468994,
-0.5951488018035889,
0.20673663914203644,
-0.48856765031814575,
-0.5188946723937988,
0.37295812368392944,
0.053368862718343735,
-0.752700746059417... |
def align _ shift ( size, val ) : if size = = 32 : if val & 3 : raise valueerror ( " 32 bit operand not aligned to 4 bytes " ) return val > > 2 elif size = = 16 : if val & 1 : raise valueerror ( " 16 bit operand not aligned to 2 bytes " ) return val > > 1 elif size = = 8 : return val > > 0 else : raise valueerror ( " i... | [
-0.32380977272987366,
-0.49534109234809875,
0.855365514755249,
0.491332471370697,
-1.150831937789917,
0.7694531083106995,
-0.23821841180324554,
-0.9928370118141174,
0.13064557313919067,
-0.363695353269577,
0.5854622721672058,
0.43542057275772095,
-0.6322649121284485,
0.14331817626953125,
... |
def getdegcnt _ pneanet ( * args ) : return _ snap. getdegcnt _ pneanet ( * args ) | [
-0.6117533445358276,
0.5577839612960815,
0.4895886480808258,
0.506665050983429,
1.0314974784851074,
0.37782013416290283,
-0.016500752419233322,
-0.1554361879825592,
-0.9379759430885315,
-1.4457521438598633,
-0.25994873046875,
-0.9801185727119446,
0.23837655782699585,
0.996380090713501,
-... |
def test _ atomic _ qname _ max _ length _ 4 _ nistxml _ sv _ iv _ atomic _ qname _ max _ length _ 5 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - maxlength - 5. xsd ", instance = " nistdata / atomic ... | [
0.251721054315567,
-0.5896890163421631,
0.20088215172290802,
0.0787515789270401,
-0.9391818046569824,
-0.03245438635349274,
-0.2990955114364624,
-0.8691325187683105,
-0.1389293074607849,
0.5571339130401611,
-0.8823219537734985,
-0.16009604930877686,
-0.05015776678919792,
0.1606004685163498... |
def reviewspellcurrentitem ( self, inputevent, targetcursorcell = 0 ) : self. _ reviewcurrentitem ( inputevent, targetcursorcell, 2 ) return true | [
-0.5822906494140625,
-0.9290235638618469,
0.28474733233451843,
0.018183868378400803,
-0.9706889390945435,
1.401042103767395,
0.05903760343790054,
0.2951033413410187,
-0.10781256854534149,
0.5318892002105713,
-0.06988829374313354,
0.5639076828956604,
-0.6376515626907349,
-0.6130704283714294... |
def _ _ eq _ _ ( self, * args ) : return _ snap. tintfltkdv _ _ _ eq _ _ ( self, * args ) | [
-0.38037538528442383,
-0.1356312334537506,
-0.050399407744407654,
-0.06657402217388153,
0.21869651973247528,
-0.33920159935951233,
0.723105788230896,
-0.20244452357292175,
-0.7486459612846375,
-0.31936904788017273,
-0.26544448733329773,
-0.8663883805274963,
0.022863125428557396,
1.40127408... |
def run ( self ) : try : while true : # wait for either incomming message from the server ( via the client ) or from the user # via the command line socket _ list = [ self. pipe _ in _ dia ] # get the list sockets which are readable read _ sockets, _, _ = select. select ( socket _ list, [ ], [ ] ) for sock in read _ so... | [
-0.4326266646385193,
-0.6179253458976746,
0.784857988357544,
-0.1722918152809143,
0.07232154160737991,
0.8228159546852112,
0.5095880627632141,
0.28590452671051025,
-0.7074408531188965,
-0.7054190635681152,
0.4147944152355194,
0.4080463647842407,
-0.8419632315635681,
0.2954536974430084,
0... |
def setup _ module ( module ) : if verbose : print ( " setup _ module module : % s " % module. _ _ name _ _ ) | [
-0.30049529671669006,
-0.2017381489276886,
0.3896561861038208,
0.10974270105361938,
1.0577991008758545,
0.9937698841094971,
0.7570708990097046,
-0.31463098526000977,
0.7198669910430908,
1.1614595651626587,
-0.14809077978134155,
1.5222609043121338,
0.29237526655197144,
0.4641953110694885,
... |
def grammars ( cls, iterable ) : return [ cls ( g ) for g in iterable ] | [
-0.9167983531951904,
-0.09455463290214539,
0.1588275283575058,
0.6926631927490234,
0.4124903678894043,
0.20694448053836823,
-0.8909173607826233,
-0.519778311252594,
-0.3475068509578705,
0.47795793414115906,
-0.3090507686138153,
0.1328885704278946,
-0.5988337397575378,
0.1983361393213272,
... |
def _ check _ sfps ( rule, port _ obj _ l, t _ obj ) : global _ rule _ template, _ sfp _ rules, _ alert _ tbl _ d, _ sfp _ file if _ sfp _ rules is none : return # perform all the checks for the sfps on the switch. sfp data is not valid for disabled ports enabled _ ports = brcddb _ search. match _ test ( port _ obj _ l... | [
0.29424506425857544,
-0.4944722056388855,
0.6505939364433289,
-0.020998839288949966,
0.4621299207210541,
0.5118514895439148,
-0.0030448089819401503,
0.7964732646942139,
-0.7914846539497375,
0.33935627341270447,
0.17710210382938385,
0.09586906433105469,
-0.32041803002357483,
0.5822281241416... |
def namedoutput ( self, rowwriter, headingpolicy = none ) : return self. _ namedoutput ( self, rowwriter, headingpolicy ) | [
-0.5562078952789307,
-0.31022119522094727,
0.3169308602809906,
0.2912498414516449,
-1.4749151468276978,
-0.9071320295333862,
-0.07036074995994568,
-1.3785383701324463,
0.3577954173088074,
0.24542151391506195,
-0.09572378545999527,
-0.8853847980499268,
0.2818181812763214,
-0.026674220338463... |
def addvmerged ( self, * args ) : return _ snap. tfltv _ addvmerged ( self, * args ) | [
-0.3821437954902649,
0.4897880256175995,
0.33560287952423096,
-0.013255415484309196,
1.1486663818359375,
-0.14052286744117737,
0.3474828004837036,
0.9132809638977051,
-0.2201366424560547,
-0.375630259513855,
-1.007014274597168,
-0.7310975790023804,
-0.5038717985153198,
1.9163713455200195,
... |
def list _ models ( self ) : models = [ ] for _, model in self. models. items ( ) : models + = [ model. to _ dict ( ) ] return models | [
-1.917795181274414,
-0.7423849701881409,
0.19791652262210846,
-0.30547553300857544,
1.3098074197769165,
0.18061909079551697,
-1.7812225818634033,
0.237544447183609,
0.2106187790632248,
0.8148399591445923,
-1.2257468700408936,
-0.3501092791557312,
0.3750464916229248,
0.9327723383903503,
-... |
def new ( * args ) : return _ snap. tnegraph _ new ( * args ) | [
-1.024818778038025,
0.4428107440471649,
0.2732730209827423,
-0.6138715744018555,
-0.6437581777572632,
-0.15875214338302612,
0.31065624952316284,
-0.5027599930763245,
-1.202431082725525,
0.6182073950767517,
-0.906912088394165,
-1.5198878049850464,
0.6662222146987915,
0.3241751194000244,
-... |
async def receive _ json ( self, content ) : # messages will have a " command " key we can switch on command = content. get ( " command ", none ) try : print ( command ) if command = = " join " : # make them join the group print ( " join " ) await self. join _ group ( content [ " group " ] ) elif command = = " leave " ... | [
-0.4053586721420288,
-0.15083768963813782,
0.686427116394043,
-0.008599583990871906,
0.2599238157272339,
-0.4788128435611725,
-0.13685961067676544,
-0.8127036690711975,
-0.8102506399154663,
0.3562300503253937,
0.08221392333507538,
0.7386931777000427,
-0.4020344913005829,
0.3887227475643158... |
def wfreq ( sample ) : sample _ num = sample. split ('_') [ 1 ] sample _ metadata = session. query ( samples _ metadata ). filter ( samples _ metadata. sampleid = = sample _ num ). first ( ) sample _ metadata. wfreq return jsonify ( sample _ metadata. wfreq ) | [
-0.4891155958175659,
0.3454315662384033,
0.40519964694976807,
-0.725063145160675,
-0.4719160497188568,
-1.634940266609192,
0.02043808624148369,
-0.9424720406532288,
-0.05351542308926582,
0.4860037863254547,
0.31490692496299744,
0.4930747449398041,
-0.19971583783626556,
0.20446309447288513,... |
def test _ moment _ ceiling ( ) : def expected _ ceiling ( unit, now ) : if unit in ['second ','minute ','hour ','day'] : mag = tu. magnitude ( unit ) exp = now + mag - ( now % mag ) - 1 elif unit = ='week': tm = time. gmtime ( now ) exp = nldt. timegm ( ( tm. tm _ year, tm. tm _ mon, tm. tm _ mday + ( 6 - tm. tm _ wda... | [
-0.4556173086166382,
0.058399949222803116,
0.6616065502166748,
-0.3567768931388855,
0.25017696619033813,
0.8168222904205322,
0.015409855172038078,
-0.9456552863121033,
0.19626154005527496,
0.08372373133897781,
-0.26759442687034607,
-0.47459933161735535,
-0.7368158102035522,
1.0815984010696... |
def getshareswithauxinfo ( self, shares, prime ) : if type ( shares )! = list : raise typeerror ( " invalid shares : list expected " ) elif type ( prime ) not in [ int, long ] : raise typeerror ( " invalid prime : int or long expected " ) sharestosend = [ ] ylist = [ ] blist = [ ] clist = [ ] for i in range ( 0, len ( ... | [
-0.7505708336830139,
0.05758997052907944,
0.8721022009849548,
-0.06935258954763412,
0.07871267199516296,
-0.055963318794965744,
-0.16434191167354584,
-0.31673958897590637,
0.15320660173892975,
0.280021995306015,
-0.39599353075027466,
0.11763029545545578,
0.08502598106861115,
0.954623699188... |
def intattrnameei ( self, * args ) : return _ snap. tcrossnet _ intattrnameei ( self, * args ) | [
-0.1550230085849762,
1.2425673007965088,
0.46189451217651367,
0.413198322057724,
0.2571093738079071,
0.07594175636768341,
0.9320738315582275,
0.2764168083667755,
-0.8177928328514099,
0.6353737115859985,
0.046189963817596436,
-1.1024243831634521,
-1.022876262664795,
0.4740118086338043,
0.... |
def precipitation ( ) : session = session ( engine ) query _ results = session. query ( measurement. date, measurement. prcp ). all ( ) session. close ( ) precipitation _ data = [ ] for date, prcp in query _ results : precipitation _ data _ dict = { } precipitation _ data _ dict [ " date " ] = date precipitation _ data... | [
-0.6096988916397095,
-0.262549489736557,
0.6260807514190674,
-0.4649702310562134,
-0.1561526507139206,
0.048196952790021896,
-1.2549549341201782,
-0.4297373294830322,
-0.40983715653419495,
0.741669237613678,
0.0626143217086792,
-0.5799432396888733,
0.17161992192268372,
1.0868364572525024,
... |
def getsechashcd ( * args ) : return _ snap. tstrhashf _ djb _ getsechashcd ( * args ) | [
1.2893612384796143,
0.6378747820854187,
0.3213259279727936,
0.561989426612854,
-0.07451784610748291,
-0.1797986775636673,
0.84642493724823,
0.8513694405555725,
-0.523764967918396,
-0.9972818493843079,
-0.13815677165985107,
-0.48636195063591003,
0.12904256582260132,
0.4741304814815521,
0.... |
def test _ get _ ddp _ capacity ( self ) : with patch ( self. drives _ property, new _ callable = propertymock ) as drives : drives. return _ value = self. drives _ data storagepool = self. _ initialize _ dummy _ instance ( { " state " : " present ", " name " : " pool ", " criteria _ drive _ count " : " 12 ", " raid _ ... | [
-0.25202521681785583,
0.45207250118255615,
0.5585532784461975,
-0.24802523851394653,
0.8193952441215515,
-0.015037138015031815,
0.9408393502235413,
-0.11173796653747559,
0.42359665036201477,
-0.40103229880332947,
0.1500338762998581,
-0.44255003333091736,
-0.20703555643558502,
-0.5468358397... |
def game _ over _ screen ( game _ state ) : clear _ term ( ) if game _ state = = 1 : tprint ( " draw " ) rprint ( " [ bold yellow ] mutual destruction, both fleets have been sunk! [ / ] ",'\ n') elif game _ state = = 2 : tprint ( " you lose " ) rprint ( " [ bold red1 ] your opponent has sunk your fleet! [ / ] ",'\ n') ... | [
-0.5540379285812378,
-0.10814223438501358,
1.0669254064559937,
-0.22498148679733276,
-0.4176011383533478,
0.6595121026039124,
-0.061053741723299026,
-1.3774462938308716,
0.11281191557645798,
0.3918265402317047,
0.05768666788935661,
-0.028224242851138115,
0.5098778605461121,
0.0455457940697... |
def test _ add _ key ( self ) : pass | [
-0.30201056599617004,
0.5383161306381226,
0.1845666468143463,
1.1287627220153809,
0.7821292877197266,
0.9419763684272766,
0.36698150634765625,
-0.5000330805778503,
-0.14899466931819916,
-0.600904643535614,
-0.42133843898773193,
0.07185501605272293,
-1.5083011388778687,
0.3055407404899597,
... |
def save _ high _ score ( stats ) : if stats. score = = stats. high _ score : with open ('high _ score. txt ','w') as f _ obj : f _ obj. write ( str ( stats. score ) ) | [
1.0368472337722778,
-0.6205995082855225,
0.4458138048648834,
0.648000955581665,
1.1345683336257935,
0.3995223641395569,
0.09060138463973999,
-0.4518267810344696,
0.5403924584388733,
0.5500506162643433,
-1.43439781665802,
0.1569938361644745,
0.3262205421924591,
-0.012863337062299252,
0.13... |
def write ( self, data ) : # type : ( bytes ) - > none if not self. _ compressor : raise valueerror ('compressor not initialized') self. _ uncompressed _ position + = len ( data ) compressed = self. _ compressor. compress ( data ) if compressed : self. _ file. write ( compressed ) | [
-0.27682554721832275,
-0.20124107599258423,
0.2840985059738159,
-0.2681732475757599,
0.8003681898117065,
0.21968258917331696,
0.4125365614891052,
0.09129426628351212,
-0.474899023771286,
-0.7170291543006897,
-0.9002378582954407,
-0.3863217234611511,
-0.8449982404708862,
0.5464611649513245,... |
def add _ metric ( self, name ) : for sub _ log in self. _ sub _ logs : sub _ log. add _ metric ( name ) | [
0.6178624033927917,
0.5471171736717224,
0.8579679727554321,
0.7685492038726807,
-0.5662739872932434,
0.8855692148208618,
-0.16761669516563416,
-0.5129451155662537,
-0.7517389059066772,
0.2834378778934479,
-0.3684595823287964,
0.4664553105831146,
0.4975582957267761,
0.4520590007305145,
-0... |
def save ( self, save _ file = none, use _ current _ directory = false ) : if save _ file is none : if type ( self. filename ) = = str : to _ save = self. filename + ". ge { 0 }. pgz ". format ( self. detector ) else : raise runtimeerror ( " the name for the save file needs to be explicitly specified here " ) else : to... | [
0.04221903160214424,
0.1662602573633194,
0.732536256313324,
0.5011299252510071,
1.406126618385315,
0.436272531747818,
0.418332040309906,
0.3964173495769501,
-0.6745961308479309,
0.6609520316123962,
-0.532254695892334,
-0.5948731303215027,
-0.573531985282898,
0.8136935234069824,
0.2457462... |
def initialize ( ship _ size ) : row = randint ( 0, grid. shape [ 0 ] - ship _ size ) col = randint ( 0, grid. shape [ 1 ] - ship _ size ) return row, col | [
-0.758888840675354,
-0.14326195418834686,
0.6177252531051636,
-0.9557065367698669,
0.04567340016365051,
0.032599419355392456,
0.3744972348213196,
-0.4580702483654022,
0.8044646978378296,
0.026862336322665215,
-0.515442430973053,
0.7027331590652466,
0.44551998376846313,
0.3129231631755829,
... |
def derive _ key ( password : bytes, salt : bytes ) - > bytes : assert ( len ( salt ) = = salt _ size ) kdf = pbkdf2hmac ( algorithm = hashes. sha256 ( ), length = key _ size, salt = salt, iterations = key _ stretch _ count, backend = default _ backend ( ) ) key = kdf. derive ( password ) return key | [
0.8416677713394165,
0.40205973386764526,
0.551873505115509,
0.1808093786239624,
0.3592510521411896,
0.03935772553086281,
-0.8153339624404907,
0.27907049655914307,
0.06420449912548065,
-0.0027734211180359125,
0.1731797158718109,
-0.2364642322063446,
-0.5032991766929626,
-0.00321299419738352... |
def addedge ( self, * args ) : return _ snap. tcrossnet _ addedge ( self, * args ) | [
-0.34276705980300903,
1.6670066118240356,
0.3918873965740204,
0.5427325367927551,
0.9267770051956177,
0.4605429470539093,
0.5605394244194031,
0.793761134147644,
-0.4085337221622467,
-0.8097588419914246,
0.4172458052635193,
-1.5559234619140625,
-1.1452854871749878,
0.8407138586044312,
0.2... |
def get _ user ( accesstoken = none ) : pass | [
0.27269235253334045,
0.3536584675312042,
0.21386300027370453,
1.2468199729919434,
0.4084330201148987,
-0.9099751710891724,
-0.6764461994171143,
-0.3251120150089264,
-0.13524462282657623,
-1.0415611267089844,
0.12109219282865524,
1.3049527406692505,
0.19049565494060516,
-1.266355037689209,
... |
def get _ pathname ( self ) : return self. image _ data. path | [
-0.2250702679157257,
-0.6288762092590332,
0.36961865425109863,
0.11049453169107437,
-0.34995296597480774,
0.31783345341682434,
1.065337896347046,
0.594133734703064,
-0.06055687367916107,
0.013942521996796131,
0.8153999447822571,
0.23084205389022827,
-0.12216278910636902,
0.255171000957489,... |
def check _ version ( version, fallback = " master " ) : parse = version ( version ) if parse. local is not none : return fallback return version | [
0.6247314214706421,
-0.3872927129268646,
0.45155757665634155,
0.33028241991996765,
-0.46803316473960876,
-0.18477439880371094,
0.12331514805555344,
0.8575057983398438,
0.19719401001930237,
0.3406018614768982,
-0.8249921798706055,
-0.862064003944397,
-1.4140313863754272,
0.08530215173959732... |
def io _ toposort ( i, o, orderings = { } ) : # the inputs are used only here in the function that decides what'predecessors'to explore iset = set ( i ) def deps ( obj ) : rval = [ ] if obj not in iset : if isinstance ( obj, symbol ) : if obj. expr : rval = [ obj. expr ] if isinstance ( obj, expr ) : rval = list ( obj.... | [
-0.8232539296150208,
0.42140454053878784,
0.648202121257782,
0.6742543578147888,
-0.5275049805641174,
-0.5638800263404846,
0.2794561982154846,
-0.7940993309020996,
0.2828615605831146,
0.6782306432723999,
0.18997351825237274,
-0.02376878820359707,
0.009087437763810158,
-0.40124356746673584,... |
def _ startprocessstatusrpcserver ( self ) : if self. _ rpc _ server : return self. _ rpc _ server = plaso _ xmlrpc. xmlprocessstatusrpcserver ( self. _ getstatus ) hostname ='localhost'# try the pid as port number first otherwise pick something random # between 1024 and 60000. if self. _ pid < 1024 or self. _ pid > 60... | [
-0.1922919899225235,
-1.04183030128479,
0.6185121536254883,
-0.7034273743629456,
0.6508190035820007,
0.5335268974304199,
-0.3750954568386078,
0.27016669511795044,
0.8020132780075073,
-0.48089271783828735,
-0.0046982066705822945,
0.18601156771183014,
-0.7278625965118408,
-0.1109082251787185... |
def _ handle _ summary ( self, wrapped _ add _ summary, summary, global _ step = none ) : vals = self. _ summary _ values ( global _ step ) if vals : self. log. debug ( " summary values via add _ summary : % s ", vals ) summary = tf _ scalar _ summary ( vals ) wrapped _ add _ summary ( summary, global _ step ) | [
-0.38363757729530334,
0.9459996819496155,
0.3883272707462311,
0.8548452258110046,
0.1834029108285904,
0.07578253000974655,
-0.15297456085681915,
-0.10934201627969742,
-0.002596567152068019,
0.5299590229988098,
0.3376612365245819,
0.46548014879226685,
0.4946410655975342,
0.5077813863754272,... |
def calculate _ ac _ inv _ costs ( scenario, sum _ results = true, exclude _ branches = none, base _ grid = none, ) : grid _ differences = scenario. get _ grid ( ) if base _ grid is none : base _ grid = scenario. get _ base _ grid ( ) else : _ check _ grid _ models _ match ( base _ grid, grid _ differences ) # find upg... | [
0.09327581524848938,
0.5062257051467896,
0.7951314449310303,
-0.12098552286624908,
-0.11445997655391693,
-0.644116997718811,
0.5604062080383301,
-0.076140396296978,
-0.22244997322559357,
0.7956690788269043,
-0.010180177167057991,
-0.29146233201026917,
-0.1576530635356903,
-0.10014366358518... |
def addv ( self, * args ) : return _ snap. tcncomv _ addv ( self, * args ) | [
-0.5016716718673706,
0.45713523030281067,
0.3473316729068756,
0.0457850843667984,
0.7330473065376282,
0.30176520347595215,
0.9990451335906982,
0.4271106719970703,
-0.19224633276462555,
-0.35007643699645996,
-0.3235757350921631,
-0.40113967657089233,
-0.05498570576310158,
0.9715251326560974... |
def wait _ for _ install ( self, repository, log = none, timeout = 3600 ) : # we request a repository revision, but galaxy may decide to install the next downloable revision. # this ensures we have a revision to track, and if not, finds the revision that is actually being installed name = repository ['name'] owner = re... | [
-0.1901053935289383,
-0.20714598894119263,
0.641971230506897,
-0.0144378412514925,
-0.09108582884073257,
-0.48879095911979675,
-0.20485639572143555,
-0.36195358633995056,
-0.4038313925266266,
0.2906069755554199,
0.17401643097400665,
0.15965710580348969,
-0.27194586396217346,
0.318133294582... |
def _ sum _ amount _ all ( self ) : for order in self : amount _ total _ dp = amount _ total _ rrp = amount _ total _ discount = amount _ total _ forecast _ discount = total _ line _ items = 0. 0 for line in order. order _ line : amount _ total _ dp + = line. price _ subtotal amount _ total _ rrp + = line. rrp _ amount... | [
0.1854591965675354,
-0.29712289571762085,
1.0620388984680176,
-0.045375484973192215,
0.4426268935203552,
-0.2683103084564209,
0.17630013823509216,
-0.06789379566907883,
0.5032515525817871,
0.17116326093673706,
-0.042448513209819794,
-0.32018280029296875,
1.4443690776824951,
0.1936361789703... |
def _ _ eq _ _ ( self, * args ) : return _ snap. tuint64hi _ _ _ eq _ _ ( self, * args ) | [
-1.0387957096099854,
0.22531604766845703,
-0.031286679208278656,
0.6417111754417419,
0.3090555965900421,
0.683362603187561,
0.017551690340042114,
0.5702985525131226,
-1.174363613128662,
0.7263076305389404,
-0.4260517358779907,
-1.5227556228637695,
0.022321665659546852,
0.1257287859916687,
... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tintboolhi _ _ _ lt _ _ ( self, * args ) | [
0.9880495071411133,
-1.0088380575180054,
0.2438172996044159,
-0.3379696309566498,
0.3603557348251343,
0.18458883464336395,
-0.5424836874008179,
-1.378526210784912,
-2.015410900115967,
-0.015904288738965988,
-0.6579497456550598,
-0.19394193589687347,
-1.122801423072815,
0.4032021164894104,
... |
async def join _ group ( self, group _ id ) : # the logged - in user is in our scope thanks to the authentication asgi middleware group = await get _ group _ or _ error ( group _ id, self. scope [ " user " ] ) # send a join message if it's turned on if settings. notify _ users _ on _ enter _ or _ leave _ groups : await... | [
-0.22301515936851501,
0.45896536111831665,
0.4838341474533081,
0.08314697444438934,
0.5040717720985413,
-0.18743275105953217,
0.13645465672016144,
-0.4113287329673767,
-0.38036268949508667,
0.30693525075912476,
-0.12898769974708557,
0.7485801577568054,
-0.9468365907669067,
1.09943234920501... |
def active _ route _ longitude ( self ) - > optional [ float ] : if " active _ route _ longitude " in self. _ vehicle _ data. get ( " drive _ state ", { } ) : return self. _ vehicle _ data. get ( " drive _ state ", { } ). get ( " active _ route _ longitude " ) return none | [
0.13762055337429047,
-2.0665481090545654,
0.5867770314216614,
-0.46285462379455566,
0.5698938965797424,
-0.5038560628890991,
-0.5762670040130615,
0.4401072561740875,
0.4410180449485779,
0.40752100944519043,
0.11523029953241348,
0.42964163422584534,
0.06687802821397781,
-0.5715389251708984,... |
def clean _ whitespace ( self, text ) : replace = { ord ('\ f') :'', ord ('\ t') :'', ord ('\ n') :'', ord ('\ r') : none } return text. translate ( replace ) | [
0.4657234847545624,
-0.5925257205963135,
0.3140663802623749,
-0.8491445183753967,
-0.6758204698562622,
-1.0070737600326538,
-0.8104979395866394,
-0.40766820311546326,
-0.0016432387055829167,
0.4349682331085205,
-0.6808672547340393,
-0.16652530431747437,
0.09954426437616348,
0.3058534562587... |
def done ( ) : global file, mess m. showinfo ('procedure ','where would you like the embedded file to be saved? \ n'' select the path in the next window.') out = asksaveasfilename ( title ='save your embedded file as ', filetypes = [ ('image files ', '. png') ], defaultextension = '. png ', initialdir = os. getcwd ( ),... | [
0.4148551821708679,
-0.17566056549549103,
0.7647303938865662,
0.3725268840789795,
0.15128599107265472,
0.9731500148773193,
1.055562138557434,
-0.28158897161483765,
-1.2662206888198853,
0.617116391658783,
0.16792038083076477,
0.9134530425071716,
-0.785237193107605,
0.824310839176178,
0.14... |
def duplicate _ datasets ( datasets ) : checked _ datasets _ = [ ] for dataset in datasets : if dataset in checked _ datasets _ : raise recipeerror ( " duplicate dataset { } in datasets section ". format ( dataset ) ) checked _ datasets _. append ( dataset ) | [
-0.413727730512619,
0.4763199985027313,
0.25886160135269165,
-0.14157530665397644,
0.20211119949817657,
0.3642684519290924,
-0.3284838795661926,
0.0729561373591423,
0.7692546844482422,
-0.0011428912403061986,
-0.12282734364271164,
1.0830644369125366,
0.7035388946533203,
1.005499243736267,
... |
def validate _ pin ( pin ) : try : if len ( pin ) = = 4 and pin. isdigit ( ) : return true except exception as e : lgr. error ('validate _ pin : % s ', e ) return false | [
-0.48086845874786377,
0.4918655455112457,
0.6318737864494324,
0.16632644832134247,
-0.238215833902359,
1.6269266605377197,
0.006711354944854975,
-0.5093879699707031,
-0.00015460893337149173,
0.23257869482040405,
-0.6230766773223877,
-0.9547337889671326,
-1.0541696548461914,
-0.097090072929... |
def zones ( self ) - > sequence [ str ] : return pulumi. get ( self, " zones " ) | [
-0.26687711477279663,
0.4454900920391083,
0.2426830381155014,
1.239553451538086,
1.3875386714935303,
1.0205304622650146,
0.44170352816581726,
-0.05725152790546417,
1.2888484001159668,
0.6305510997772217,
-1.0906221866607666,
0.2137889564037323,
-0.15046289563179016,
-0.399149090051651,
-... |
def isintattre ( self, * args ) : return _ snap. pneanet _ isintattre ( self, * args ) | [
-0.2632259428501129,
0.40505844354629517,
0.6842023134231567,
-0.13021239638328552,
1.079819917678833,
-0.3467313051223755,
-0.4003741145133972,
-0.8776490092277527,
-0.6643190979957581,
-0.44076260924339294,
0.014192506670951843,
-0.7164148092269897,
-2.3248507976531982,
-0.17301481962203... |
def _ stracetochrometrace ( pid, infile ) : # map of fd : file _ name for open file descriptors. useful for displaying # file name instead of the descriptor number. fd _ map = { } # map of tid : interrupted _ call for the interrupted call on each thread. it is # possible to context switch during a system call. in this ... | [
0.9466984868049622,
0.11080606281757355,
0.7088818550109863,
-0.09615553915500641,
-0.30305051803588867,
-1.1332402229309082,
-0.12782183289527893,
-0.28860631585121155,
-0.639144778251648,
1.1594427824020386,
-0.3780035972595215,
0.19702644646167755,
0.060108233243227005,
-0.3918787837028... |
def tovargraphsequence ( self, * args ) : return _ snap. ptable _ tovargraphsequence ( self, * args ) | [
-1.3718611001968384,
0.26193177700042725,
0.316962867975235,
1.4534820318222046,
0.3682258129119873,
-0.594882607460022,
0.5679246783256531,
-0.7303358912467957,
-0.712092399597168,
1.7016721963882446,
-0.9355547428131104,
0.12021388858556747,
-1.0961177349090576,
-0.5254499316215515,
-0... |
def feedlocalizerxy ( self, commresult _ m ) : sensor _ data = self. getsensordata ( ) self. logger. debug ( " about to put data into qnav _ loc, object { } ". format ( str ( self. qnav _ loc ) ) ) self. qnav _ loc. put ( { " dxy " : self. disttolocuc ( commresult _ m ), " dtheta " : 0, " sensordata " : sensor _ data, ... | [
-0.2719275951385498,
-0.10183414071798325,
0.4065394103527069,
-1.5226346254348755,
0.3052895665168762,
0.02167024090886116,
0.21169117093086243,
-0.25491663813591003,
-0.3575950860977173,
-0.7505394816398621,
-0.8737155199050903,
0.10226575285196304,
-0.05464041233062744,
-0.2107629328966... |
def getpagerank _ pungraph ( * args ) : return _ snap. getpagerank _ pungraph ( * args ) | [
-0.6436800956726074,
1.0204410552978516,
0.42947012186050415,
1.1004818677902222,
0.3475485146045685,
-0.7636638283729553,
-0.0639428049325943,
0.8815706968307495,
0.12978090345859528,
-0.3840174674987793,
-0.08028578013181686,
0.47043174505233765,
-0.7499133348464966,
0.22108297049999237,... |
def pixelization _ prior _ model ( self ) - > af. priormodel : if ( self. _ pixelization _ prior _ model. cls is not pix. voronoibrightnessimage or self. inversion _ pixels _ fixed is none ) : return self. _ pixelization _ prior _ model pixelization _ prior _ model = self. _ pixelization _ prior _ model pixelization _ ... | [
-0.04806963726878166,
0.3906998038291931,
0.7392496466636658,
0.04232131317257881,
0.46383148431777954,
0.4971645474433899,
0.3811139762401581,
-0.48672235012054443,
0.7850164771080017,
0.10839319974184036,
0.542761504650116,
-0.19647732377052307,
-0.8605246543884277,
0.8498165607452393,
... |
def getintattrinde ( self, * args ) : return _ snap. pneanetmp _ getintattrinde ( self, * args ) | [
-0.15031057596206665,
-0.4857875406742096,
0.5369307398796082,
0.46111810207366943,
0.5142485499382019,
0.5265183448791504,
-0.07320138067007065,
-0.8184239864349365,
-1.016494870185852,
-0.870357096195221,
0.32032448053359985,
-0.6290136575698853,
-2.144270658493042,
0.47928091883659363,
... |
def host2ip ( hostname, allow _ localhost = false ) : key ='{ } : { } '. format ( hostname, allow _ localhost ) if key in _ host _ cache : return _ host _ cache [ key ] try : ip _ list = list ( sockets [ 4 ] [ 0 ] for sockets in socket. getaddrinfo ( hostname, 22, 0, 0, socket. ipproto _ tcp ) ) if allow _ localhost : ... | [
-0.9519625306129456,
-0.19101375341415405,
0.582377016544342,
0.47285476326942444,
-0.6695041060447693,
-0.16973388195037842,
0.4717314839363098,
0.874916136264801,
-0.3300986886024475,
0.6351833343505859,
0.45226722955703735,
-0.4634404480457306,
-0.060140788555145264,
-0.3850994706153869... |
def getsattrve ( self, * args ) : return _ snap. tdirnet _ getsattrve ( self, * args ) | [
-0.07406127452850342,
0.5528835654258728,
0.32992976903915405,
-0.1935342401266098,
0.7989197969436646,
-0.4195171594619751,
0.5864042043685913,
-0.3961752653121948,
-0.5594357848167419,
-0.9929842948913574,
-0.20617952942848206,
-0.3808843493461609,
-0.694144606590271,
0.3500787615776062,... |
def getweightedpagerank ( * args ) : return _ snap. getweightedpagerank ( * args ) | [
0.03357003256678581,
-0.3676401376724243,
0.7178875803947449,
0.7204586863517761,
0.6575003862380981,
0.11629437655210495,
0.2928582429885864,
-0.017951270565390587,
-0.58965665102005,
-1.0643538236618042,
-0.36030325293540955,
0.1365751177072525,
-1.3638070821762085,
1.41461181640625,
-... |
def mousemoveevent ( self, event ) : pass | [
0.07293619215488434,
-1.2355268001556396,
0.5879637002944946,
0.6703274250030518,
0.17333772778511047,
0.9148955941200256,
0.12973706424236298,
0.5620226263999939,
0.19117982685565948,
0.05141197144985199,
-1.0177240371704102,
0.4625999629497528,
0.7165465950965881,
-0.009065068326890469,
... |
def _ _ init _ _ ( self, * args ) : _ snap. tinttr _ swiginit ( self, _ snap. new _ tinttr ( * args ) ) | [
-0.3290100395679474,
-1.0425076484680176,
0.10193691402673721,
0.4174211621284485,
-0.7379528284072876,
0.03732052817940712,
0.6063215732574463,
0.2503649592399597,
-0.4078716039657593,
-0.021732723340392113,
-0.3985704779624939,
0.027003707364201546,
-1.1474089622497559,
0.756022632122039... |
def _ _ ne _ _ ( self, * args ) : return _ snap. tstr _ _ _ ne _ _ ( self, * args ) | [
-0.9020130634307861,
0.5649512410163879,
0.11464095860719681,
-0.4887200593948364,
0.5667304992675781,
-0.24182553589344025,
-0.23361845314502716,
-0.28595438599586487,
-1.5127586126327515,
-0.016684142872691154,
-0.40791258215904236,
-1.3230093717575073,
0.6201995611190796,
-0.31367123126... |
def intersect ( * args ) : return _ snap. intersect ( * args ) | [
-1.0022939443588257,
0.26777347922325134,
0.7571977376937866,
0.9563185572624207,
-0.39906737208366394,
0.758749783039093,
0.43189969658851624,
-0.34508249163627625,
-0.8794663548469543,
0.12479683756828308,
-0.04476246237754822,
-1.4480961561203003,
-0.9600768685340881,
0.4218381643295288... |
def test _ image _ in _ both _ yml _ and _ directory ( monkeypatch ) : integration _ path = os. path. normpath ( os. path. join ( f'{ git _ path ( ) } / demisto _ sdk / tests ','test _ files ','not _ default _ image _ integration - zoom. yml') ) structure = mock _ structure ( file _ path = integration _ path ) validato... | [
-0.0026814346201717854,
0.18305175006389618,
0.32036203145980835,
0.10536672919988632,
1.0737714767456055,
0.4509742558002472,
0.706483006477356,
0.6219258308410645,
-0.26423609256744385,
-0.24822156131267548,
-0.3971681296825409,
0.5570460557937622,
0.4526412785053253,
1.3358534574508667,... |
def loadss ( * args ) : return _ snap. ttable _ loadss ( * args ) | [
-0.8834150433540344,
0.9857789874076843,
0.47767001390457153,
0.5688625574111938,
-0.581886887550354,
-0.43347758054733276,
0.4220229983329773,
-0.6973755955696106,
-0.5545901656150818,
0.03813870623707771,
-0.5026097893714905,
-0.269435316324234,
-0.08084938675165176,
0.6355880498886108,
... |
def _ traverse _ tree ( self, side, match, value ) : if self. value < value : return side ('right ', value ) if self. value > value : return side ('left ', value ) if self. value = = value : return match ( ) | [
-0.1206674575805664,
0.34719395637512207,
0.6367508172988892,
-0.36828291416168213,
-0.9718652367591858,
-0.20474044978618622,
-0.17884671688079834,
-1.343021035194397,
-0.3113059997558594,
-0.16671352088451385,
0.39329949021339417,
-0.2922210693359375,
-0.4940375089645386,
0.1609537303447... |
def qrot ( q, v ) : assert q. shape [ - 1 ] = = 4 assert v. shape [ - 1 ] = = 3 assert q. shape [ : - 1 ] = = v. shape [ : - 1 ] # ( batch _ size, num _ points ) # qvec = q [..., 1 : ] # 四 元 的 部 分. q 一 ( 5, 10, 3 ) 的 tensor, q [..., : 1 ] 的 ( 5, 10, 1 ) q [ :, : 1 ] 的 ( 5, 1, 3 ) # w = q [..., : 1 ] # 四 元 的 部 分 # t = 2... | [
0.3922020494937897,
-0.09946487843990326,
0.792597770690918,
-0.043893467634916306,
-0.0704861506819725,
-0.11467836052179337,
0.5710620880126953,
-0.9190070629119873,
0.3907201290130615,
-0.06873884797096252,
-0.8317579627037048,
-0.24295416474342346,
-0.010273787193000317,
-1.16233849525... |
def eig ( self ) : ( vecs, vals ) = mateig ( voigt2mat ( self. mhat ) ) # return vectors and values return ( vecs, vals * self. norm ) | [
-0.4818238914012909,
-0.12799137830734253,
0.24584129452705383,
-0.16512732207775116,
-0.26510295271873474,
0.9896601438522339,
-0.1819852888584137,
0.590208888053894,
-0.6264361143112183,
0.1544884592294693,
-0.11812936514616013,
-0.9275004863739014,
0.33479055762290955,
1.344928383827209... |
def region _ extracted ( orig, x, y, w, h ) : roi = orig [ y : y + h, x : x + w ] return roi | [
0.5748469233512878,
-1.1776063442230225,
0.258611261844635,
-0.7315146923065186,
-0.7830671668052673,
-0.435943603515625,
0.1569042056798935,
0.004190173465758562,
-0.005116012413054705,
0.058691613376140594,
-0.19053898751735687,
0.75271075963974,
-0.25614339113235474,
-1.5014780759811401... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tstrstrprhi _ _ _ lt _ _ ( self, * args ) | [
-0.004294300451874733,
-0.9578386545181274,
0.20442990958690643,
-1.5659058094024658,
0.5178400874137878,
0.5028190612792969,
-0.5358595848083496,
-1.1205531358718872,
-1.5583570003509521,
-0.5862962007522583,
-0.7827398777008057,
-1.495772123336792,
-1.4947535991668701,
0.2953850030899048... |
def run _ epoch _ mve ( session, model, train _ data, valid _ data, keep _ prob = 1. 0, passes = 1. 0, verbose = false ) : if not train _ data. num _ batches > 0 : raise runtimeerror ( " batch _ size * max _ unrollings is larger " " than the training set size. " ) uq = true start _ time = time. time ( ) train _ mse = t... | [
-0.1153787225484848,
0.1693384200334549,
0.9148338437080383,
0.3120900094509125,
-0.3967169225215912,
0.43532702326774597,
-0.07459118217229843,
0.21016286313533783,
-0.36369720101356506,
0.2198626548051834,
-0.04219343140721321,
0.19787678122520447,
0.4635993540287018,
0.539877712726593,
... |
def to _ ogm ( self, val ) : return val | [
-1.2656601667404175,
-0.04181932657957077,
0.25045353174209595,
-0.327349454164505,
0.22575920820236206,
0.957272469997406,
-0.7141817808151245,
-1.6995201110839844,
0.3279295265674591,
-0.11698545515537262,
-0.06696843355894089,
-0.061152659356594086,
-0.04365028813481331,
0.0169123411178... |
def finalise ( self ) : self. _ writer. seek ( 0 ) self. _ writer. write _ uint64 ( int ( time ( ) ) ) self. _ writer. close ( ) | [
-0.11557374894618988,
-0.3955788016319275,
0.4629259705543518,
-0.9726754426956177,
1.1067283153533936,
-0.026277082040905952,
0.7961013317108154,
0.17096692323684692,
-0.5158007740974426,
0.08275093138217926,
-0.16020280122756958,
-0.1611700803041458,
-0.5496653914451599,
0.85508763790130... |
def sortbydat ( self, asc = true ) : return _ snap. tintinth _ sortbydat ( self, asc ) | [
-0.12660647928714752,
-0.32961052656173706,
0.08829914033412933,
-0.973609447479248,
-0.001072704792022705,
0.696507453918457,
0.19799093902111053,
-0.9602974057197571,
-0.5216383337974548,
-0.4785787761211395,
-0.8518118858337402,
0.8309966921806335,
-0.4842246472835541,
0.130637586116790... |
def get _ namespace ( namespace _ name : optional [ str ] = none, opts : optional [ pulumi. invokeoptions ] = none ) - > awaitablegetnamespaceresult : _ _ args _ _ = dict ( ) _ _ args _ _ ['namespacename'] = namespace _ name opts = pulumi. invokeoptions. merge ( _ utilities. get _ invoke _ opts _ defaults ( ), opts ) _... | [
0.27927055954933167,
0.5358981490135193,
0.7274377942085266,
0.23955072462558746,
0.06457466632127762,
-0.8424362540245056,
-1.3657587766647339,
-0.6712498068809509,
1.7720643281936646,
-0.35660573840141296,
-0.5520824790000916,
1.6717323064804077,
-0.6175658106803894,
0.22948355972766876,... |
def delete _ random _ users ( ) : for x in base. get ('random - user') : db. users. delete _ many ( {'username': x. get ('username') } ) | [
-1.0378230810165405,
-0.015026884153485298,
0.15696364641189575,
0.28895148634910583,
0.773050844669342,
0.45535820722579956,
0.15702354907989502,
0.5323533415794373,
0.03514295443892479,
0.05989190936088562,
-0.5881131887435913,
-0.2495715320110321,
-0.5075191855430603,
0.6037558913230896... |
def set _ button _ keys ( self, deck _ id : str, page : int, button : int, keys : str ) - > none : if self. get _ button _ keys ( deck _ id, page, button )! = keys : self. _ button _ state ( deck _ id, page, button ) [ " keys " ] = keys self. _ save _ state ( ) | [
-1.0013264417648315,
-0.37138286232948303,
0.3589895963668823,
-0.30789056420326233,
0.7433838248252869,
-0.29844966530799866,
-1.3886960744857788,
-0.1550634652376175,
-0.041878681629896164,
0.7868983149528503,
-1.3603328466415405,
-0.16099613904953003,
0.28772613406181335,
0.412602275609... |
def getprcstr ( * args ) : return _ snap. tflt _ getprcstr ( * args ) | [
-0.031259097158908844,
0.18521210551261902,
0.22624264657497406,
0.2740936875343323,
0.6939544677734375,
0.5050813555717468,
0.41413387656211853,
-0.36284229159355164,
-1.6770048141479492,
-0.4929490089416504,
0.47623756527900696,
-0.8906206488609314,
-0.8440187573432922,
0.185840457677841... |
async def watch _ trades ( self, symbol : str, since : optional [ int ] = none, limit : optional [ int ] = none, params = { } ) : await self. load _ markets ( ) symbol = self. symbol ( symbol ) trades = await self. watch _ public ('trades. subscribe ', symbol, params ) if self. newupdates : limit = trades. getlimit ( s... | [
0.18984189629554749,
0.9427564740180969,
0.6288558840751648,
0.23404447734355927,
-0.06662815064191818,
-0.725796639919281,
-0.2773090600967407,
-0.7909961938858032,
0.031271155923604965,
-0.34204965829849243,
-0.3294126093387604,
1.684019684791565,
-0.1571022868156433,
-0.4544243812561035... |
def getcrossedge ( self, * args ) : return _ snap. tcrossnet _ getcrossedge ( self, * args ) | [
0.7369983792304993,
1.3788304328918457,
0.3150581419467926,
1.1466615200042725,
1.1860159635543823,
-0.32872048020362854,
0.30986976623535156,
0.31287822127342224,
-0.7150512933731079,
-0.07232329994440079,
0.15283110737800598,
-1.420569896697998,
-1.1956616640090942,
0.7067444920539856,
... |
def get _ lang _ data ( basepath, lang, mtype ) : # add " locale " folder if reqd if os. path. basename ( basepath )! ='locale': basepath = os. path. join ( basepath,'locale') if not lang : lang = webnotes. lang path = os. path. join ( basepath, lang +'-'+ mtype + '. json') langdata = { } if os. path. exists ( path ) :... | [
0.00014749412366654724,
-0.970955491065979,
0.7503271102905273,
-0.6146684885025024,
-0.9068455696105957,
0.7250775694847107,
-0.5705190896987915,
-0.3964443504810333,
-0.2981879711151123,
0.028083939105272293,
-0.45914268493652344,
0.2527320683002472,
0.2391759753227234,
0.424618035554885... |
def _ _ getitem _ _ ( self, key ) : return [ self. prem _ list [ key ], len ( self. prem _ list [ key ] ), self. hyp _ list [ key ], len ( self. hyp _ list [ key ] ), self. target _ list [ key ] ] | [
-1.6832143068313599,
0.2335721105337143,
0.3818018138408661,
-0.6605172157287598,
0.0005705045768991113,
-0.14952673017978668,
-0.47391343116760254,
0.3896373212337494,
0.29799404740333557,
0.312764436006546,
-0.7493449449539185,
-0.05680597200989723,
-0.08407177776098251,
0.22796024382114... |
def _ _ init _ _ ( self, name, port, baudrate, bytesize, parity, stopbits, xonxoff, rtscts, dsrdtr, value _ template, ) : self. _ name = name self. _ state = none self. _ port = port self. _ baudrate = baudrate self. _ bytesize = bytesize self. _ parity = parity self. _ stopbits = stopbits self. _ xonxoff = xonxoff sel... | [
0.2630728781223297,
0.2818969488143921,
0.45995277166366577,
-0.30055975914001465,
-0.9639967679977417,
-0.3583923280239105,
-0.3807612657546997,
0.3969056308269501,
-0.05654705688357353,
-0.03277893364429474,
-0.9239367842674255,
0.24563166499137878,
0.11502813547849655,
-0.10971307754516... |
def issorted ( self, asc = true ) : return _ snap. tstrintprv _ issorted ( self, asc ) | [
-0.3165275454521179,
-0.7635964155197144,
0.24804838001728058,
-1.658408522605896,
-0.3953225314617157,
-0.022225139662623405,
0.05654992163181305,
-0.00852303858846426,
-0.7700660824775696,
0.0908544510602951,
-0.24327373504638672,
0.28682053089141846,
-0.9782755374908447,
-0.182580664753... |
def get _ data _ pixel ( ax, fig, x, y, s ) : xy _ pixels = ax. transdata. transform ( np. vstack ( [ x, y ] ). t ) xpix, ypix = xy _ pixels. t boxes = [ ] for x _ j, y _ j, s _ j in zip ( xpix, ypix, s ) : if s _ j < 25 : s _ j = 25 box _ size = fig. dpi * np. sqrt ( s _ j ) / 70. 0 x0 = x _ j - box _ size / 2. 0 y0 =... | [
-0.22914455831050873,
1.0173711776733398,
0.6509893536567688,
-0.17199942469596863,
-0.6608966588973999,
-0.09014903753995895,
0.10301169753074646,
-0.6058319211006165,
0.07849513739347458,
0.2063969373703003,
-0.45183223485946655,
0.6938050389289856,
1.0393935441970825,
-0.889653444290161... |
def _ fixme _ prebind _ hack ( sockfamily, childaddr ) : if'nopreload'not in os. environ : for sock _ type in ( socket. sock _ stream, socket. sock _ dgram ) : sock = socket. socket ( sockfamily, sock _ type ) sock. setsockopt ( sockfamily, socket. so _ reuseaddr, 1 ) sock. bind ( ( childaddr, 53 ) ) if sock _ type & s... | [
0.0013189680175855756,
0.5194900035858154,
0.6563946008682251,
-0.32337865233421326,
-0.5350463390350342,
-0.5103206634521484,
1.1988049745559692,
-0.7355095744132996,
1.0134514570236206,
-0.3024007976055145,
-0.39484134316444397,
0.958391010761261,
-0.46630656719207764,
0.9986992478370667... |
def _ generate _ system ( self ) : system _ shape = ( self. system _ size, self. system _ size ) # initialise two dictionary of keys sparse matrices for construction a = sparse. dok _ matrix ( system _ shape, dtype ='complex') b = sparse. dok _ matrix ( system _ shape, dtype ='complex') # iterate through each y _ step ... | [
0.08800343424081802,
-0.1522577852010727,
0.9532040357589722,
0.16847233474254608,
0.5099051594734192,
-0.16328778862953186,
0.9435176849365234,
-0.32979121804237366,
0.1778491735458374,
-0.006759037729352713,
-0.2389981746673584,
0.19217857718467712,
-0.025234054774045944,
1.1995426416397... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.