text
stringlengths
25
2.19k
embedding
listlengths
768
768
def generate _ url ( kind, date, location ) : base _ url = kind _ map _ url. get ( kind ) if base _ url : base _ url. format ( location = location, date = date ) else : return return base _ url
[ -1.1251904964447021, -0.9227845668792725, 0.7361429333686829, 0.11586712300777435, 0.39568859338760376, 0.6396727561950684, -1.2010467052459717, 0.15241801738739014, -0.6410732865333557, 0.10988939553499222, 1.2704354524612427, 0.08171071857213974, 0.21366046369075775, 0.48411089181900024,...
def test _ categories _ param ( self ) : now = dt. now ( ) self. _ create _ conversation ( topic = " laptop " ). close ( closing _ time = now, quality = " win " ) self. _ create _ conversation ( topic = " ipad " ). close ( closing _ time = now, quality = " loss " ) self. _ create _ conversation ( topic = " iphone " ). ...
[ -0.7582871913909912, 0.08159026503562927, 0.5715067386627197, -0.3329010307788849, 0.9225994348526001, 0.5539410710334778, -0.3971938490867615, -1.3140723705291748, -0.35087573528289795, -0.619878351688385, 0.14675165712833405, -0.8258724808692932, -0.040640346705913544, 0.7068020105361938...
def start _ date _ iso ( self ) : return self. start _ date. isoformat ( )
[ 0.5854406952857971, -1.06776762008667, 0.5170756578445435, 0.4653245806694031, -0.011024578474462032, 0.42469292879104614, -0.2578238844871521, 0.165774866938591, 0.47809287905693054, 0.5069416165351868, 0.569701611995697, 0.7550801634788513, 0.5880879759788513, -0.5554998517036438, -1.3...
def min _ backoff _ seconds ( self ) : return self. _ _ min _ backoff _ seconds
[ 0.8118177652359009, -0.933566153049469, 0.4640090763568878, 0.2709246277809143, -0.8379175066947937, 0.49126508831977844, 0.12630000710487366, -0.3977326452732086, -0.15722166001796722, -0.25496813654899597, -0.298678457736969, 0.1329805999994278, -0.9435910582542419, -0.5966339707374573, ...
def writearithmetic ( command ) : if command in [ " neg ", " not " ] : writeunary ( command ) if command in [ " eq ", " gt ", " lt " ] : writebranch ( command ) if command in [ " add ", " sub ", " and ", " or " ] : writebinary ( command )
[ -0.4492048919200897, -0.2254304587841034, 0.7531762719154358, 0.25016364455223083, 0.4150906801223755, 0.9625018239021301, -0.2480255365371704, -0.1777999848127365, -0.33055222034454346, 0.3588292598724365, -0.07814215123653412, 0.2455051988363266, 0.29122379422187805, 0.9740983843803406, ...
def find _ duration ( depart, arrive ) : time1 = datetime. datetime. strptime ( depart,'% i : % m % p') time2 = datetime. datetime. strptime ( arrive,'% i : % m % p') difference = time2 - time1 return difference
[ -1.0837867259979248, -0.6762092709541321, 0.9458374977111816, -0.16820907592773438, -0.49931302666664124, 0.8336982131004333, -0.7984583973884583, -0.35824739933013916, -1.231157898902893, 1.727753758430481, -0.2289460003376007, -0.20705509185791016, -0.8765716552734375, 0.0017659836448729...
def _ quit ( self ) : self. _ bank. save ( ) self. _ account = none print ( " have a nice day! " )
[ -0.10378103703260422, -0.030361229553818703, 0.27747273445129395, -0.32954370975494385, 0.7183181047439575, 0.8290879130363464, 0.7935957908630371, -0.9282885193824768, -0.003134666010737419, -0.4545927345752716, -0.3622771203517914, 0.08991056680679321, -0.5959973335266113, 0.374502241611...
def read _ embeddings ( embeddings _ file, key _ is _ int = false ) : f = open ( embeddings _ file ) indexer = indexer ( ) vectors = [ ] first = true for line in f : if first : first = false continue if line. strip ( )! = " " : space _ idx = line. find ('' ) key = line [ : space _ idx ] numbers = line [ space _ idx + 1...
[ -0.5126677751541138, 0.18247325718402863, 0.5222790241241455, -0.08092974126338959, -0.8835591077804565, 0.2203894555568695, 0.6184430718421936, 0.6239073872566223, -0.06225075200200081, 0.24150735139846802, 0.7257330417633057, -0.12143771350383759, -0.11397437751293182, 0.320496529340744,...
def weighted _ capacity ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " weighted _ capacity " )
[ 1.1936414241790771, -0.029064977541565895, 0.6571967601776123, 0.5027074813842773, 0.7438935041427612, 1.27144455909729, 1.2550159692764282, -0.2630825340747833, -0.09950435906648636, 0.15726447105407715, 0.6366228461265564, 0.12095294147729874, -0.12516438961029053, -0.40830060839653015, ...
def sendsimplemail ( self, senderid, recipientid, simpletext ) : distributedmailmanagerai. notify. debug ( " sendsimplemail ( senderid = % d, recipientid = % d, simpletext ='% s') " % ( senderid, recipientid, simpletext ) ) self. sendupdate ('sendsimplemail ', [ senderid, recipientid, simpletext ] )
[ -0.49594560265541077, -0.32129818201065063, 0.38882026076316833, -0.4290201961994171, -1.4917643070220947, 0.407917320728302, -0.5386900901794434, 0.49932488799095154, 0.8887430429458618, -0.08126450330018997, -1.0288578271865845, 0.6698717474937439, -0.3101919889450073, -0.329571753740310...
def _ get _ filter ( self ) : condition = none for key, val in iteritems ( self. data ) : if condition is none : condition = c ( key ) = = val else : condition = condition & ( c ( key ) = = val ) return condition
[ 0.11031104624271393, -0.48608261346817017, 0.32131579518318176, -0.2658524215221405, -0.9444236755371094, -0.21498307585716248, 0.01755605638027191, 0.6698576807975769, -0.6715576648712158, -0.1628701388835907, 0.660902738571167, 0.35832732915878296, -0.24489471316337585, 0.289310336112976...
def get _ zscores ( count _ from _ data, infile ) : num _ subgraphs = len ( count _ from _ data ) zscores = np. zeros ( num _ subgraphs, dtype = np. float64 ) ensemble _ counts = pd. read _ csv ( infile, header = 0 ). as _ matrix ( ) mjus = np. mean ( ensemble _ counts, axis = 0 ) sigmas = np. std ( ensemble _ counts, ...
[ 0.2463008314371109, -0.026160230860114098, 0.3642708361148834, 0.7517760396003723, 0.2300339937210083, 0.27889013290405273, 1.0876836776733398, 0.4523451626300812, -0.5526036024093628, 0.8869794011116028, -0.03967968374490738, 0.6121712327003479, -0.44076311588287354, -0.1881997138261795, ...
def test _ userid ( self ) : testresult = { } testresult = dataparser _ map. advancesearch ( " 1 ", " _ id ", " 1 " ) # print ( testresult ) self. assertequal ( testresult [ 0 ] [ " _ id " ], 1, " user id failed " ) # check if additional information from other json is included. eg organisation name for a user self. ass...
[ -0.2974397540092468, -0.44569844007492065, 0.5210617184638977, -0.44526979327201843, -0.38437619805336, 0.5042113065719604, 0.09096766263246536, -0.1924135535955429, -0.03951559588313103, -0.6523995399475098, -0.5823045372962952, -0.09624483436346054, -0.04356290027499199, 0.35965651273727...
def _ _ init _ _ ( self ) : self. _ instance _ data = weakkeydictionary ( )
[ -0.19247683882713318, -0.1340806782245636, 0.30789801478385925, -1.0454299449920654, -0.36280548572540283, -0.0968579649925232, -0.35775601863861084, 0.8674940466880798, -0.19928143918514252, 0.04555870220065117, -1.2560062408447266, 0.5105868577957153, -0.3670470118522644, 1.1270352602005...
def test _ validate _ dob _ good ( self ) : good _ dob = " 15 / 06 / 2000 " validated = helpers. validate _ dob ( good _ dob ) self. assertequal ( validated,'06 / 15 / 2000') good _ dob = " 08 / 02 / 1992 " validated = helpers. validate _ dob ( good _ dob ) self. assertequal ( validated,'02 / 08 / 1992')
[ 0.08052985370159149, -0.17679038643836975, 0.6824744343757629, 0.9276690483093262, -0.05212234705686569, 1.3255189657211304, 0.49012818932533264, -0.9000199437141418, -0.03393283486366272, -0.8096861839294434, -0.5457786917686462, 0.2843485474586487, 0.2484775334596634, 0.3028396666049957,...
def log ( msg ) : debug ( msg ) try : f = open ( opt. log,'a') print > > f, msg f. close ( ) except : debug ( " couldn't write to log file % s! " % opt. log ) return
[ 0.018625494092702866, 0.6320406198501587, 0.6409416794776917, -0.34351223707199097, 0.7438400983810425, 0.6309151649475098, 0.39129525423049927, -0.06088515371084213, -0.3727915585041046, -0.37570369243621826, 0.4221750497817993, 0.0828595757484436, -0.674756646156311, 0.1913602352142334, ...
def get _ tile _ fraction ( tile _ id, scope = " hirise " ) : id _ = tile _ id fans, blotches = get _ fans _ blotches ( ) blotch = blotches [ blotches. tile _ id = = io. check _ and _ pad _ id ( id _ ) ] fan = fans [ fans. tile _ id = = io. check _ and _ pad _ id ( id _ ) ] gs = get _ geoseries ( fan, blotch ) unionize...
[ 0.39987024664878845, 0.5187235474586487, 0.29683464765548706, -0.30959776043891907, 0.193714439868927, -0.3289240300655365, 0.9266915321350098, -0.3623311221599579, 0.8582231402397156, 0.13717465102672577, -0.1875559687614441, 0.3532227575778961, 0.4063125550746918, 0.9508926868438721, 0...
def reset _ row _ types ( self ) : for i in range ( self. rowcount ( ) ) : for j in range ( self. columncount ( ) ) : self. item ( i, j ). setforeground ( rowtype. other. value )
[ 0.08118131756782532, 0.9070536494255066, 0.4858124852180481, 0.29620298743247986, 0.6042201519012451, -0.642363965511322, 0.8984555602073669, -0.8141485452651978, -0.3944770097732544, 0.7163286805152893, -0.31302255392074585, 1.128317952156067, -0.1550920456647873, 1.4278887510299683, 0....
def increment _ combat _ done ( self ) : self. combat _ done + = 1
[ -0.2859909236431122, -0.8111255764961243, 0.712060809135437, 0.556708037853241, 0.34891006350517273, 0.6713319420814514, 0.2850716710090637, -0.14382575452327728, -0.9631116986274719, -0.5470826625823975, -0.8213213086128235, -0.13188014924526215, 0.2141982614994049, 0.37143102288246155, ...
def get _ with _ fallback ( self, sensor _ type, names ) : for name in names : try : return self. get ( name, select = true ) except keyerror : logger. debug ('could not find % s sensor with name % r, trying next option ', sensor _ type, name ) raise keyerror ( f'could not find any { sensor _ type } sensor, tried { nam...
[ -0.24018870294094086, 0.13361144065856934, 0.2848505973815918, -0.19144277274608612, 0.6076142191886902, -0.6887257099151611, -0.900244951248169, -1.7513275146484375, 0.163759246468544, 0.014057131484150887, 0.2826548218727112, -0.17911775410175323, -0.7957779765129089, 0.47491058707237244...
def test _ change _ zoom ( ) - > none : m = sm. sepalmap ( ) zoom _ control = next ( c for c in m. controls if isinstance ( c, sm. zoomcontrol ) ) m. zoom = 10 zoom _ control. zoom ( zoom _ control. plus ) assert m. zoom = = 11 zoom _ control. zoom ( zoom _ control. minus ) assert m. zoom = = 10 return
[ 0.30528920888900757, 0.4177663326263428, 0.5190227031707764, 0.981913685798645, -0.6409336924552917, -0.29000574350357056, -0.06378084421157837, -0.4157923460006714, 1.3917492628097534, -1.3480224609375, -1.4231889247894287, -0.15472005307674408, 0.5170547962188721, 0.042853958904743195, ...
def raw _ error ( x, y, w, b _ mat = none ) : if b _ mat is none : b _ mat = gen _ basis _ matrix ( x, m = len ( w ) ) approx _ vec = approximation ( x, y, w, b _ mat ) error _ vec = approx _ vec - y if isinstance ( error _ vec, np. float64 ) : error _ vec = np. array ( [ error _ vec ] ) return error _ vec
[ -0.029221851378679276, 0.21469809114933014, 0.8073641061782837, -0.04502040147781372, -0.261020690202713, 0.015809310600161552, 0.2502438724040985, -0.1093488484621048, 0.19765518605709076, 0.37682804465293884, 0.48811325430870056, 0.9951423406600952, 0.4266580641269684, 0.3536815941333771...
def set _ new _ commands ( self, commands ) : for cmd in commands : cmd _ name = type ( cmd ). _ _ name _ _ if cmd _ name in self. speed _ commands : self. set _ speed _ cmd ( cmd ) if cmd _ name in self. altitude _ commands : self. set _ altitude _ cmd ( cmd ) if cmd _ name in self. direction _ commands : self. set _ ...
[ -0.7065773606300354, -0.4843510687351227, 0.47604885697364807, 0.5710086226463318, 0.5823451280593872, -0.28577297925949097, -0.5018119215965271, -1.113848090171814, 0.012442833743989468, -0.14731676876544952, -0.5357398986816406, 0.22077138721942902, 0.32873761653900146, 1.715167641639709...
def run ( self, searcher ) : setattr ( self. _ obj _ store, self. attribute, self. getvalue ( searcher ) ) logging. info ( u'[ preprocess ] set attribute : { 0 : s } to { 1 : s } '. format ( self. attribute, getattr ( self. _ obj _ store, self. attribute, u'n / a') ) )
[ -1.1676663160324097, -0.8672611117362976, 0.4745829105377197, -0.15215016901493073, -0.5527428984642029, -0.07209403067827225, 1.1116894483566284, -0.37711670994758606, 0.5018272399902344, 0.2795308828353882, -0.23902983963489532, 0.7308470010757446, 0.47291451692581177, 0.775352954864502,...
def test _ add _ weighted _ edge ( gr ) : gr. add _ edge ('a ','b ', 4 ) assert gr. edges _ list = = [ ('a ','b ', 4 ) ]
[ 0.37356036901474, 0.6784904599189758, 0.5313591957092285, 0.5877963304519653, 1.4288828372955322, 0.6628204584121704, -0.729731023311615, 0.16009756922721863, -0.27325132489204407, 0.547670841217041, 0.29666024446487427, -0.8320058584213257, -1.3157989978790283, 0.21165522933006287, -0.2...
def _ _ modify _ rotor _ wake _ template ( rw _ template, rotor _ setting : charmrotorsettings ) : # if there is a specified initial collective, then set that in the template if rotor _ setting. initial _ collective is not none or rotor _ setting. ct is not none : # collective line is index 6 line _ num = 6 line = rw _...
[ -0.5640887022018433, -1.062595009803772, 0.8468387126922607, -0.8774124383926392, -0.0638241171836853, -0.02197088487446308, 0.5296294689178467, -0.4512861371040344, -0.0880076140165329, 0.17164228856563568, -0.003620168659836054, -0.05659487098455429, -0.4795389473438263, -0.1170655488967...
def hasunset2linkindir ( targetside, adjside1, adjside2 ) : if not targetside. isunset ( ) : return false return targetside. islinkedto ( adjside1 ) or targetside. islinkedto ( adjside2 )
[ -0.25178563594818115, -1.0509588718414307, 0.6039760112762451, -1.4560645818710327, 0.7264933586120605, -0.15416666865348816, 0.0009592249989509583, -0.04074424132704735, 0.4821738600730896, -0.3638036847114563, 1.2999234199523926, 1.426745891571045, 0.23763571679592133, 0.7312349081039429...
def _ _ init _ _ ( self, data _ df, transforms _ json, image _ dir, mean = np. array ( [ 0. 90949707, 0. 8188697, 0. 87795304 ] ), std = np. array ( [ 0. 36357649, 0. 49984502, 0. 40477625 ] ), n = 16, zoom _ level = 2, crop _ size = 128, label _ smoothing = 0. 15, output _ type ='classification ', use _ saved = false,...
[ -0.38500648736953735, 0.05296645313501358, 0.6854248046875, -0.1728544533252716, -0.003229122143238783, -0.352469265460968, 0.28340208530426025, -0.08783511072397232, 0.15567778050899506, 0.3954276740550995, -0.07681816071271896, 1.064299464225769, 1.5486955642700195, 0.059579186141490936,...
def is _ better _ than ( self, val1, val2 ) : dist1 = math. fabs ( 1. 0 - val1 ) dist2 = math. fabs ( 1. 0 - val2 ) return dist1 < = dist2
[ 0.27440565824508667, -0.4747425615787506, 0.5865815877914429, 1.0311832427978516, -0.3229212760925293, 0.5587843656539917, -1.0644432306289673, -0.7687739729881287, -0.8365612626075745, -0.633958637714386, -0.4043486714363098, 1.180442452430725, 0.2854255735874176, 0.7265892624855042, -1...
def test _ redetect _ by _ area _ without _ face ( self ) : for detector in self. detectors : with self. subtest ( detectortype = detector. detectortype ) : bbox = rect ( 0, 0, 200, 200 ) redetectone = detector. redetectone ( image = vlimage _ one _ face, bbox = bbox ) redetect = detector. redetect ( images = [ imagefo...
[ 0.1180977150797844, 0.07987648248672485, 0.6120205521583557, 0.153157040476799, 0.9690122604370117, -0.23285254836082458, 0.8716039061546326, -0.4766329228878021, 0.836090087890625, -0.22363415360450745, -0.28902387619018555, -0.48823586106300354, 0.09384847432374954, 1.1845426559448242, ...
async def create _ key ( self, name : str, key _ type : " union [ str, keytype ] ", * * kwargs : " any " ) - > keyvaultkey : enabled = kwargs. pop ( " enabled ", none ) not _ before = kwargs. pop ( " not _ before ", none ) expires _ on = kwargs. pop ( " expires _ on ", none ) if enabled is not none or not _ before is n...
[ 0.07301478832960129, 0.22737394273281097, 0.5726073980331421, 0.7421011924743652, -0.26914578676223755, -0.05405910685658455, -1.372785210609436, -0.9358044266700745, 0.19754429161548615, 0.6758172512054443, -0.524932861328125, 0.14417041838169098, -0.5374754071235657, 0.24369268119335175,...
def interval _ overlaps ( interval1, interval2 ) : return not ( interval1 [ 1 ] < interval2 [ 0 ] or interval2 [ 1 ] < interval1 [ 0 ] )
[ -1.405509114265442, -0.3508782982826233, 0.6861918568611145, 0.9538413882255554, -0.8489898443222046, 1.358712077140808, -1.5196267366409302, -0.006371545605361462, -0.8845961689949036, 0.31844234466552734, -0.2969089448451996, 0.3389854431152344, -0.8784993290901184, -0.7713754177093506, ...
def equity _ score ( self ) : return self. _ equity _ score
[ 0.4389852285385132, -0.3940252959728241, 0.3643658459186554, -1.086299180984497, 1.776619791984558, 0.6623741388320923, -0.13668818771839142, -0.5006271600723267, -0.3934646546840668, -0.05014772340655327, 0.42393258213996887, -0.5373085737228394, -0.8735304474830627, -0.7175305485725403, ...
def is _ number ( possible _ number ) : try : float ( possible _ number ) return true except valueerror : return false
[ -0.13297614455223083, 0.18949003517627716, 0.3653145432472229, 1.9228607416152954, 0.27443835139274597, 0.8086760640144348, -0.6221768260002136, 1.0088087320327759, 0.0838000699877739, -1.0674123764038086, -0.10757246613502502, -0.28642603754997253, -0.45545098185539246, 0.0170976202934980...
def _ _ init _ _ ( self, size _ th = 3000, score _ th _ 1 = 0. 915, score _ th _ 2 = 0. 4 ) : self. size _ th = size _ th self. score _ th _ 1 = score _ th _ 1 self. score _ th _ 2 = score _ th _ 2
[ 0.27889660000801086, 0.13956518471240997, 0.5623892545700073, 0.6161777377128601, 1.072685718536377, 0.27944812178611755, 0.3936097025871277, -0.8333992958068848, -0.228608638048172, 0.6084798574447632, -0.9988815188407898, -0.15597231686115265, 0.3473239243030548, -0.08732087910175323, ...
def remove ( self, item ) : index = 0 while index < self. _ size : if self. _ data [ index ] = = item : self. delete ( index ) index - = 1 index + = 1
[ -0.30207347869873047, -0.01758386194705963, 0.3854891359806061, -0.38092464208602905, -0.5258638262748718, -0.2472609281539917, 0.6210619807243347, 0.1517782360315323, 0.8924189209938049, 0.060264427214860916, -1.2483100891113281, 0.12065418809652328, -1.0106602907180786, -0.56363499164581...
def player ( board ) : num _ of _ x = 0 num _ of _ o = 0 for i in range ( 3 ) : for j in range ( 3 ) : if board [ i ] [ j ] = = x : num _ of _ x + = 1 elif board [ i ] [ j ] = = o : num _ of _ o + = 1 if num _ of _ x = = num _ of _ o : return x else : return o raise notimplementederror
[ 0.11726117879152298, 0.5365161299705505, 0.882323145866394, 0.46858492493629456, -0.7378289103507996, -0.6355424523353577, 1.4187315702438354, -0.1785697638988495, 0.7318133115768433, 0.45985880494117737, -0.0750340074300766, -0.2780461013317108, 0.1757899969816208, -0.7779688239097595, ...
def handler _ foo _ bar ( data, content _ type ) :
[ -0.041662104427814484, -0.42848849296569824, 0.32245805859565735, 0.13503506779670715, 0.6258984804153442, 0.48139408230781555, -0.012116636149585247, -0.4361068904399872, -1.0186758041381836, -0.6422749757766724, -0.49990537762641907, 0.08601973950862885, -0.4982411563396454, 0.1653568893...
def step _ took ( self, ns _ step : float ) : if self. lag _ handler : ms _ step = ns _ step / 1000 / 1000 self. lag _ handler. step _ took ( ms _ step )
[ 0.8680645823478699, 0.7375438809394836, 0.09505147486925125, -0.0018301407108083367, -0.29574403166770935, 0.0757966861128807, 0.2615349590778351, -0.09892479330301285, -0.47196492552757263, -1.1237765550613403, -0.7886096835136414, 0.11877856403589249, 1.0406665802001953, 1.98182296752929...
def _ dec ( v : union [ layerfieldscontainer, layerfield ] ) - > int : assert not isinstance ( v, layerfieldscontainer ) or len ( v. fields ) = = 1 return int ( v. get _ default _ value ( ) )
[ 0.07726145535707474, 1.0849777460098267, 0.39606142044067383, -0.48639652132987976, 0.8510104417800903, -0.45411980152130127, 1.0163029432296753, -0.3395146429538727, -0.0939895510673523, -0.532001793384552, -0.2971920669078827, -0.29981473088264465, -0.23536117374897003, 0.631064534187316...
def _ _ gt _ _ ( self, other ) : sort _ vec = sorted ( self, reverse = true ) sort _ other = sorted ( other, reverse = true ) for first, second in zip ( sort _ vec, sort _ other ) : if first < = second : return false return true
[ -0.2515798807144165, 0.32346099615097046, 1.0898950099945068, 0.6501308083534241, -0.0717109963297844, 0.8336248397827148, -0.4402453303337097, -1.1557356119155884, -1.5380924940109253, -0.32814711332321167, -0.178600013256073, -0.43869370222091675, -0.09376554191112518, 0.4492062330245971...
def encode ( matched, priors, variances ) : # dist b / t match center and prior's center g _ cxcy = ( matched [ :, : 2 ] + matched [ :, 2 : ] ) / 2 - priors [ :, : 2 ] g _ cxcy = g _ cxcy / priors [ :, 2 : ] # match wh / prior wh g _ wh = torch. clamp ( matched [ :, 2 : ] - matched [ :, : 2 ], min = 1. ) g _ wh = torch...
[ 0.3418184816837311, -0.4794200658798218, 0.38830170035362244, -0.4291771650314331, -0.7982491254806519, -0.06862010061740875, 0.26397904753685, 0.24782419204711914, -0.1239016130566597, 0.6757977604866028, 0.16301554441452026, 0.8857690095901489, -0.29897451400756836, 0.1781071275472641, ...
def submit _ btne _ pressed ( self ) : self. text _ e = self. enter _ e. text ( ) if self. check ( self. text _ e ) : self. submit _ button _ e. setstylesheet ( " background - color : # 88d498 ; border - style : outset ; border - radius : 2px " ) self. warning _ e. hide ( ) self. new _ graph _ e = int ( self. text _ e ...
[ 0.13928411900997162, 0.8471190929412842, 0.7474299669265747, 0.24970076978206635, 0.1728622317314148, 0.27449384331703186, 0.46808716654777527, -0.043539807200431824, -0.2982374131679535, 0.9166144728660583, -0.17208416759967804, 1.0101878643035889, -0.24569164216518402, 0.1400182247161865...
def init _ nornir _ cli ( ctx ) : ctx. ensure _ object ( dict ) # list of dictionaries with original function ( key ) and set of arguments ( value ) ctx. obj [ " queue _ functions " ] = [ ] # last original functions with arguments ctx. obj [ " queue _ parameters " ] = { }
[ 0.0457092709839344, -0.23738716542720795, 0.4565270245075226, 0.0024106744676828384, 0.5361379981040955, -0.3884405791759491, 0.09592848271131516, -0.6382075548171997, -0.4583974778652191, -0.6116166710853577, -0.45004671812057495, 1.0009351968765259, 0.23627646267414093, 0.882110297679901...
def vrtstopoints ( self, line ) : l = line - 32 y = l % 4 x = ( l - y ) / 4 return [ ( x, y, i ) for i in range ( 4 ) ]
[ -0.5607045888900757, -0.07886820286512375, 0.3734132945537567, -0.03662547469139099, 0.2810060679912567, 0.01101569551974535, -0.2804851531982422, -0.1544131487607956, 0.6042131781578064, 0.8515779376029968, -1.3795537948608398, -1.197806477546692, -0.7464237809181213, -1.0127122402191162,...
def ajax _ submit _ member _ search ( request ) : member _ search _ text = " " # assume no search if ( request. method = = " get " ) : " " " the search form has been submitted. get the search text - must be get. " " " member _ search _ text = request. get. get ( " member _ search _ text ", " " ). strip ( ). lower ( ) m...
[ -0.38671794533729553, -0.19369441270828247, 0.6047279834747314, 0.2878227233886719, -0.24536757171154022, -0.035380877554416656, -0.2062225043773651, -0.43522220849990845, -0.13752464950084686, 0.0375245176255703, -0.19331379234790802, -0.22697760164737701, -0.947508692741394, 0.4995128810...
def linesforpoint ( self, p ) : i = p [ 0 ] j = p [ 1 ] k = p [ 2 ] lines = [ ] lines + = [ 4 * j + k ] lines + = [ 16 + 4 * k + i ] lines + = [ 32 + 4 * i + j ] if j = = k : lines + = [ 48 + i ] if j = = 3 - k : lines + = [ 52 + i ] if i = = k : lines + = [ 56 + j ] if i = = 3 - k : lines + = [ 60 + j ] if j = = i : l...
[ -0.21613305807113647, 0.05221359059214592, 0.7096778750419617, 0.0677582249045372, -0.07655277103185654, 0.7169387340545654, -0.541931688785553, 0.15764988958835602, 0.8983091115951538, 0.3119302988052368, 0.2840869426727295, -0.8582122921943665, -0.1592237651348114, -0.0985017865896225, ...
def _ print _ warning ( string ) : print ( _ color _ warning ( " \ nwarning : " + string. replace ( " \ n ", " \ n \ t " ) ), file = sys. stderr )
[ 1.3040854930877686, -0.16239869594573975, 0.5046442151069641, -0.633230984210968, -0.24866355955600739, -0.4076354205608368, -1.4940274953842163, -0.7739517092704773, -0.7448466420173645, 0.7951130867004395, 0.3161223828792572, 1.3764010667800903, 0.46368229389190674, -0.2684662938117981, ...
def _ _ init _ _ ( self, verbose = true ) : self. verbose = verbose # size of complete grid self. _ grid _ size = none self. _ grid _ spacing = none # cartesian values of grid self. _ cart _ max = none self. _ cart _ min = none self. _ cart _ size = none # atomic masks for partitioning the grid self. _ grid _ masks = {...
[ 0.4542761445045471, 0.08580370247364044, 0.6536950469017029, 0.43456166982650757, 0.47076764702796936, -0.7807327508926392, 0.14162369072437286, -0.5040724277496338, -0.732366681098938, 0.4200199246406555, -0.37477195262908936, 0.3764168918132782, -0.18157608807086945, 0.4528979957103729, ...
def _ mgui _ set _ max _ width ( self, value : int ) - > none : self. _ qwidget. setmaximumwidth ( value ) self. _ qwidget. resize ( self. _ qwidget. sizehint ( ) )
[ 0.08269291371107101, 0.7233551144599915, 0.47215861082077026, 0.288034588098526, -0.36026185750961304, 0.2994833290576935, -0.2679983675479889, -0.05060727521777153, 0.7362595796585083, -0.17796283960342407, -0.21929588913917542, -0.37602049112319946, 0.011300246231257915, 0.95102125406265...
def instruments ( self ) : return self. call ('instruments ','get ', { } )
[ -1.0105713605880737, 0.025053298100829124, 0.41614922881126404, 1.334825038909912, 0.2595902979373932, 0.18660315871238708, 0.1925852745771408, -0.4971086382865906, 0.0921935960650444, -0.38590672612190247, 0.0173520278185606, 0.8416280150413513, -1.5615887641906738, 0.5191335678100586, ...
def spider _ idle ( self ) : self. logger. info ('the queue is empty, wait for half minute to close the spider') time. sleep ( 30 ) req = self. next _ requests ( ) if req : self. schedule _ next _ requests ( ) else : self. crawler. engine. close _ spider ( self, reason ='finished')
[ -0.48390305042266846, -0.6788302063941956, 0.5175085067749023, -0.4134364724159241, 0.7184769511222839, 0.42363300919532776, -0.4964500665664673, -0.13755469024181366, 0.3192558288574219, -0.34097614884376526, 0.08061427623033524, 0.48050379753112793, -0.7410784363746643, 0.334044575691223...
def delete _ on _ termination ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " delete _ on _ termination " )
[ 1.416456937789917, -0.5776809453964233, 0.5688663721084595, 0.5248496532440186, 0.11459501087665558, 0.9448328018188477, -0.43434104323387146, -0.01038783136755228, 1.0433475971221924, 0.6395332217216492, -0.4610653221607208, 0.5046278238296509, -0.05655394494533539, -1.269385576248169, ...
def call ( self, pxo1, pxo2 = none, training = false ) : if pxo2 is none : _, feat, row _ splits = pxo1 # ( n, 3 ), ( n, c ), ( b ) feat _ tmp = [ ] for i in range ( 0, tf. shape ( row _ splits ) [ 0 ] - 1 ) : start _ i, end _ i, count = row _ splits [ i ], row _ splits [ i + 1 ], ( row _ splits [ i + 1 ] - row _ split...
[ 0.4288565218448639, 0.4439607858657837, 0.8067693710327148, 0.9103270769119263, -0.500252366065979, -0.18430820107460022, 0.2749185860157013, 0.5893067121505737, -0.37512847781181335, -0.21172362565994263, -0.7875484228134155, -0.07802949845790863, 0.17060218751430511, -0.7637380361557007,...
def set _ dei ( self, value ) : orig _ value = self. get _ byte ( 2 ) self. set _ byte ( 2, orig _ value | 0x10 if value else orig _ value & 0xef )
[ -0.05767100304365158, 0.5554462671279907, 0.5036792159080505, 0.4665725529193878, 0.2728275954723358, 0.10528913885354996, 0.8068529963493347, -0.20746257901191711, 0.5361872315406799, 0.007746616844087839, -0.7149414420127869, -0.0439339205622673, 0.2373168170452118, 0.7774989008903503, ...
def reorderlist ( self, head : listnode ) - > none : if not head : return head items = [ head ] while head. next : items. append ( head. next ) head = head. next while items : if len ( items ) = = 1 : items [ 0 ]. next = none break items. pop ( 0 ). next = items [ - 1 ] if len ( items ) = = 1 : items [ - 1 ]. next = no...
[ -0.1816137582063675, 0.063377745449543, 1.1268826723098755, 0.501545786857605, 0.3445678651332855, -1.009175419807434, 0.10475531965494156, 0.48799923062324524, 0.6497126221656799, 0.4538809657096863, -0.9078941345214844, 0.519149124622345, -1.0798338651657104, 0.579664945602417, -0.0159...
def check _ victory ( self ) : for i in range ( self. mat _ size ) : self. diagonal2 _ sum + = self. game _ mat [ i ] [ self. mat _ size - ( i + 1 ) ] if self. diagonal2 _ sum in self. victory : return [ " d2 ", - 1 ] for i in range ( self. mat _ size ) : for j in range ( self. mat _ size ) : self. row _ sum + = self. ...
[ -0.09015317261219025, -0.030242960900068283, 0.7678778171539307, 0.21629779040813446, 0.24466095864772797, -0.530360221862793, 0.3096614480018616, -0.21506455540657043, 0.35819557309150696, 0.6803165078163147, -0.07694027572870255, 0.3042454123497009, 0.5901249647140503, 0.4591872990131378...
def eval _ y _ predicted ( self ) : return self. _ convert _ to _ list ( self. _ eval _ y _ predicted )
[ -1.1526402235031128, -0.5848734378814697, 0.7135119438171387, 0.2738434076309204, 0.5288150906562805, 0.39619362354278564, -0.3133181035518646, 0.8646923303604126, 0.1789132058620453, -0.24624016880989075, -1.3502202033996582, 0.9330947995185852, 0.8464404940605164, 0.4907424747943878, -...
def random _ tile _ from _ list ( self, tiles, tilenum ) : return sample ( tiles, tilenum )
[ -0.6432939171791077, -0.256221741437912, 0.22968170046806335, -0.3002805709838867, -1.0508947372436523, 0.3463575839996338, -0.07851579785346985, -0.18004165589809418, 1.4791977405548096, 0.43424874544143677, -0.539355993270874, 0.150035098195076, -0.5733193755149841, -0.08995267748832703,...
def test _ user _ email _ with _ lowercase ( self ) : email = " test @ dominio. com " user = get _ user _ model ( ). objects. create _ user ( email = email, password = " test123 " ) self. assertequals ( user. email, email. lower ( ) )
[ 1.0090925693511963, -0.3379162549972534, 0.1786404401063919, 0.3983578383922577, 0.7201148867607117, 0.8062518239021301, 0.01350430678576231, 0.07512965053319931, 0.09448005259037018, -0.45639199018478394, -0.4511236846446991, 0.2284017950296402, -1.0217686891555786, -0.35308757424354553, ...
def getstatus ( self ) : return ( self. supply, self. maxsupply )
[ -0.990145206451416, -0.5670598149299622, 0.5126309990882874, -0.4289889633655548, -0.26269790530204773, -0.24390557408332825, -1.403809666633606, 0.2591969072818756, 0.3655213415622711, 0.8973165154457092, -1.5474916696548462, -0.3026009202003479, 0.2767668664455414, 0.4095636010169983, ...
def allow _ credentials ( self ) - > bool : return pulumi. get ( self, " allow _ credentials " )
[ 0.7952641844749451, 0.7539688348770142, 0.4715183973312378, 0.43038883805274963, -0.26522693037986755, 1.5267924070358276, -0.2714669108390808, -0.023268507793545723, -0.21686087548732758, 0.3227020502090454, 0.7397993803024292, 0.8084601759910583, -0.8512060642242432, -0.7711657285690308,...
def post ( body ) : name = body ['name'] doc ['name'] = name return doc, 201
[ -0.6796546578407288, 0.2143585979938507, 0.5935869216918945, -0.1760934293270111, -0.5116859674453735, 0.6424726843833923, -0.9133133292198181, -0.2467242181301117, 0.08211513608694077, 0.5317401885986328, -1.846832275390625, -0.2858657240867615, 0.02205057628452778, 0.07068384438753128, ...
def test _ basicsynchronize ( self ) : self. assertequals ( synchronousdeferred ( none ). synchronize ( ), none ) self. assertequals ( synchronousdeferred ( " foo " ). synchronize ( ), " foo " )
[ 0.663175106048584, 0.9525673985481262, 0.4017561376094818, 0.48410382866859436, 0.5686166286468506, -0.8237655758857727, -0.7602506279945374, -0.30656829476356506, 0.06424415111541748, -1.882846474647522, -1.0682846307754517, 0.14329929649829865, -0.15126179158687592, 0.4385148882865906, ...
def transplant ( self, node ) : self. _ element. transplant _ node ( node ) return self
[ -0.14419011771678925, 1.016416311264038, 0.40372657775878906, -0.40454527735710144, -0.48080974817276, 0.3268645107746124, 0.33612924814224243, 0.27940255403518677, 1.0645787715911865, -0.7701773047447205, -0.5266619920730591, 0.7814661860466003, -0.35559186339378357, -0.790582001209259, ...
def updateparams ( self, nombre, numpar ) : self. val [ nombre ] = ( self. val [ nombre ] [ 0 ], self. val [ nombre ] [ 1 ], numpar, self. val [ nombre ] [ 3 ] )
[ -0.9094029664993286, 0.31544363498687744, 0.3531717360019684, -0.46953675150871277, -0.10597476363182068, 1.11455500125885, -1.358188509941101, -0.3591642677783966, -1.651832938194275, 0.836632251739502, -0.5799272656440735, 0.3377724885940552, -1.2706266641616821, -0.19373227655887604, ...
def handle _ exec ( config _ file, session _ file ) : cfg = load _ config ( config _ file ) with use _ db ( session _ file, mode = workdb. mode. open ) as work _ db : cosmic _ ray. commands. execute ( work _ db, cfg ) sys. exit ( exitcode. ok )
[ 0.4311922490596771, -0.3808218538761139, 0.580300509929657, 1.0032049417495728, 0.9729652404785156, 0.6473454236984253, 0.47806844115257263, 0.7404385805130005, -0.9158549308776855, 0.8281868100166321, -0.2918328642845154, -0.9256399273872375, 0.0853293389081955, -0.087389275431633, 0.88...
def get _ grid _ acc ( args, bhv, score, criteria ='max') : if args. model _ type in ['gru ','ff ','tcn'] : heat _ map _ train = np. zeros ( ( len ( args. num _ epochs ), len ( args. k _ param ) ) ) heat _ map _ val = np. zeros ( ( len ( args. num _ epochs ), len ( args. k _ param ) ) ) for ii, num _ epochs in enumerat...
[ -0.01128904428333044, 0.08972632884979248, 0.9621489644050598, 0.37530016899108887, 1.1935009956359863, -0.3824295997619629, 0.2547861635684967, 0.8550558090209961, -0.6463111042976379, 0.9009475111961365, 0.5980379581451416, 1.040777564048767, 0.6896544694900513, 1.141428828239441, 0.51...
def empty ( self ) : return ( len ( self. a ) = = 0 and len ( self. b ) = = 0 )
[ -1.2006818056106567, -0.5352641940116882, 0.5359985828399658, -0.6262550354003906, 1.1772584915161133, 0.8105884194374084, -0.3673398792743683, -0.002816698281094432, 0.06086081638932228, 0.08922543376684189, -0.02223913185298443, 0.4747063219547272, -0.6257621645927429, 0.3830476105213165...
async def test _ restrictions _ current ( aresponses, authenticated _ local _ client, event _ loop, restrictions _ currently _ json ) : async with authenticated _ local _ client : authenticated _ local _ client. add ( f " { test _ host } : { test _ port } ", " / api / 4 / restrictions / currently ", " get ", aresponses...
[ -0.5411347150802612, -0.2647729814052582, 0.5400301218032837, -0.46314123272895813, 0.8898096680641174, 0.5938802361488342, 0.1800691783428192, -0.8245402574539185, -0.5785841345787048, 0.44133153557777405, -0.02882724441587925, 0.5163256525993347, -0.5948466062545776, -0.4134344756603241,...
def _ _ init _ _ ( self, nx, ny ) : x = np. linspace ( 0, 1, nx + 1 ) y = np. linspace ( 0, 1, ny + 1 ) grid = np. meshgrid ( x, y ) vertices = np. zeros ( ( ( nx + 1 ) * ( ny + 1 ), 2 ), dtype = np. float ) cells = np. zeros ( ( nx * ny, 4 ), dtype = np. int ) vertex = 0 for iy in range ( ny + 1 ) : for ix in range ( ...
[ 0.1489945948123932, 0.42431819438934326, 0.7776236534118652, 0.4097883403301239, 0.07739359885454178, -0.24838007986545563, -0.21697330474853516, -0.8370658159255981, 0.6947815418243408, -0.283554345369339, -0.2259899377822876, -0.16528572142124176, 0.01948942244052887, 0.5795419812202454,...
async def test _ remove _ nonexistent _ pin ( v3 _ server, v3 _ settings _ response ) : v3 _ server. get ( ( f " https : / / api. simplisafe. com / v1 / ss3 / subscriptions / { test _ subscription _ id } " " / settings / normal? forceupdate = true " ), status = 200, body = v3 _ settings _ response, ) async with aiohttp...
[ 0.34647366404533386, 0.48243361711502075, 0.43617045879364014, -0.29229632019996643, 1.0808180570602417, 0.7827597856521606, -0.17933115363121033, -0.15915954113006592, 1.1182096004486084, 0.744958758354187, -0.7785276174545288, 0.12270466983318329, -0.43694007396698, -0.22942224144935608,...
def is _ bool _ var ( self ) : return self. domain = = ( 0, 1 ) or self. domain = = ( ( 0, 1 ), )
[ -0.7138382196426392, -0.5793501734733582, 0.33416783809661865, 0.903153657913208, 0.4146989583969116, 0.3607364296913147, 0.043909188359975815, -0.5662656426429749, 0.3077881634235382, -0.02746743895113468, -0.3382693827152252, 1.4389681816101074, -0.4600580930709839, 0.37871256470680237, ...
def serialise ( x : dataarrays ) - > list [ bytes ] : x _ con = repeat ( np. ma. maskedarray ( data = [ ], mask = [ ] ) ) \ if x. con _ marray is none else x. con _ marray x _ cat = repeat ( np. ma. maskedarray ( data = [ ], mask = [ ] ) ) \ if x. cat _ marray is none else x. cat _ marray y = repeat ( np. array ( [ ] )...
[ 0.11560329794883728, -0.0694647952914238, 0.4927726984024048, -0.0815514400601387, 0.2347930669784546, -0.5282582640647888, 0.3845534324645996, -0.29308491945266724, 0.17352774739265442, 0.8138314485549927, -1.0937831401824951, 0.2316509634256363, 0.4527125060558319, -0.2376101166009903, ...
def query _ db ( credentials ) : connector = ( f " mongodb + srv : / / { credentials ['user'] } : { credentials ['password'] } " f " @ { credentials ['cluster'] }. qe0ku. gcp. mongodb. net / { credentials ['database'] }? retrywrites = true & w = majority " ) client = pymongo. mongoclient ( connector ) db = client [ cre...
[ -0.664318323135376, 0.24354583024978638, 0.41916874051094055, 0.2855439782142639, 0.5531653761863708, -0.0474667064845562, -0.5246981978416443, -0.08891141414642334, 0.33902156352996826, 0.5902614593505859, -0.07569347321987152, -0.17256246507167816, -0.7991841435432434, 1.1794445514678955...
def to _ row ( self ) : # known issue in impala : # https : / / community. cloudera. com / t5 / interactive - short - cycle - sql / hive - parameter - query - data - type - err - non - support - data - type / m - p / 79109 / highlight / true? device - view = desktop return row ( ingredients = self. ingredients [ : 500 ...
[ -0.7882450819015503, 0.3385343551635742, 0.5199596285820007, -0.15357790887355804, 0.05728025361895561, -0.5906357169151306, -0.6832984685897827, -0.0054929666221141815, 0.20527556538581848, 0.08389093726873398, 0.5246760845184326, 0.5405541062355042, 0.611664891242981, 0.8017414808273315,...
def translate ( x1, x2 ) : x2 + = x1 return x2
[ 0.3896937668323517, 0.08523101359605789, 0.5906606912612915, -0.10093063861131668, -0.357184499502182, -0.2671911418437958, -1.6745136976242065, -0.8346477150917053, -0.5660887956619263, 0.3851102888584137, -0.8106829524040222, 1.2650740146636963, 0.6334550976753235, -2.374525308609009, ...
def test _ get _ password _ hash ( ) : assert isinstance ( security. get _ password _ hash ( test _ password ), str )
[ 1.1975982189178467, -0.037580251693725586, 0.027079647406935692, 1.1992944478988647, 0.4361952841281891, 0.5043807625770569, -0.08919957280158997, -0.5758852958679199, 0.4908248782157898, -0.3181501626968384, 0.20572182536125183, 0.8203438520431519, -0.7437719106674194, -0.854281485080719,...
def farmer _ attack ( farmer, wolf _ pack ) : for wolf in wolf _ pack : if pygame. sprite. collide _ rect ( farmer, wolf ) : if wolf. rect. centerx < farmer. rect. centerx : farmer. image = pygame. image. load ('images / farmer / farmer _ attack _ left. png') elif wolf. rect. centerx > farmer. rect. centerx : farmer. i...
[ -0.757961630821228, -0.7853536009788513, 0.6795949935913086, 0.14387711882591248, 0.404121071100235, -0.4705260694026947, -0.3792837858200073, 0.35104069113731384, -0.3719731867313385, 1.174253225326538, -0.12102827429771423, -0.7521693706512451, -0.8327646851539612, 0.4607345759868622, ...
def word _ score ( phrase ) : high _ score = 0 high _ word ='' current = 0 index = 0 for i in range ( len ( phrase ) ) : if i = = len ( phrase ) - 1 : current + = ord ( phrase [ i ] ) - 96 if current > high _ score : high _ word = phrase [ index : i + 1 ] high _ score = current index = i + 1 current = 0 elif phrase [ i...
[ 0.41538214683532715, 0.1391175240278244, 0.6526350975036621, -0.5686567425727844, -0.011836159974336624, -0.35676899552345276, -0.04438547044992447, 0.29334408044815063, 0.2905069589614868, 1.0966897010803223, -0.3753543198108673, 0.3434036076068878, -0.8909904360771179, -0.039698705077171...
def loadbinary ( self, request _ iterator, context ) : f = io. bytesio ( ) sha256 = hashlib. sha256 ( ) for chunk in request _ iterator : sha256. update ( chunk. buffer ) f. write ( chunk. buffer ) so _ digest = sha256. hexdigest ( ) so _ path = self. _ binary _ path + so _ digest if so _ path not in self. _ loaded _ s...
[ -0.30215391516685486, -0.3668183982372284, 0.823206901550293, -0.40012502670288086, 0.06765531003475189, -0.6314117908477783, 0.40477046370506287, -0.7715809345245361, 0.7260898351669312, -0.4461345672607422, -0.35485130548477173, -1.1632338762283325, -0.4431211054325104, -0.06677556037902...
def find _ paths ( root, needed _ sum, path = [ ] ) : # check for path sum at every leaf node if root. left is none and root. right is none : # checks if current path till leaf node leads to needed sum # subtracting root. data is required to make sure of current data if ( needed _ sum - root. data ) = = 0 : print ( pat...
[ 0.16748705506324768, -0.4922272264957428, 0.8758084774017334, 0.9413012862205505, -0.19719313085079193, 1.0204578638076782, 0.55096036195755, -0.3946540951728821, -0.31857606768608093, 0.37608933448791504, -0.16425630450248718, -0.2111387699842453, -0.20506370067596436, 1.3239450454711914,...
def generateparenthesis ( self, n : int ) - > list [ str ] : result = [ ] def backtracing ( start, end, current ) : if start = = n and end = = n : # print ( current ) result. append ( " ". join ( current ) ) elif start = = n : current. append ( " ) " ) backtracing ( start, end + 1, current ) current. pop ( ) else : if ...
[ -0.644869327545166, 0.25142982602119446, 1.0002329349517822, -0.35480862855911255, -0.3331308364868164, -0.7223668098449707, 0.7874447703361511, -1.0471186637878418, 0.1437583863735199, 1.0402635335922241, -0.8173156380653381, -0.6442743539810181, -1.3713715076446533, 0.3013327717781067, ...
def dump _ queue ( queue ) : result = [ ] while true : try : thing = queue. get ( block = false ) result. append ( thing ) except queue. empty : return result
[ -1.2022857666015625, -0.3419893682003021, 0.48088809847831726, -0.31537434458732605, 0.09652993083000183, -0.5693594813346863, -1.2508362531661987, -1.2337983846664429, -0.1259794682264328, 0.013527931645512581, -0.9582007527351379, -0.10541485249996185, -1.094636082649231, 0.8465329408645...
def do _ pack ( ) : curr _ time = datetime. utcnow ( ). strftime ('% y % m % d % h % m % s') file _ = " versions / web _ static _ { }. tgz ". format ( curr _ time ) msg ='' msg + = operations. local ('mkdir - p versions') msg + = operations. local ('tar - czvf { } web _ static '. format ( file _ ) ) file _ size = os. s...
[ 0.37839215993881226, -0.06060313060879707, 0.6066739559173584, -0.02895786240696907, -0.03135187178850174, 0.7699418663978577, 0.670789897441864, -0.29045939445495605, -0.5444463491439819, 0.4847297966480255, -0.8601168394088745, 0.12205342203378677, 0.1926490217447281, 0.6532767415046692,...
def test _ del _ edge _ list ( gr ) : gr. add _ edge ('a ','b') gr. del _ edge ('a ','b') assert len ( gr. edges _ list ) = = 0
[ -0.1391744762659073, 0.7073987722396851, 0.41142016649246216, -0.04391712695360184, 0.9592952132225037, 0.35107406973838806, -0.797561764717102, 1.2211425304412842, 0.7991019487380981, 0.38370081782341003, -0.48385435342788696, -0.037650883197784424, -0.5139304399490356, 0.0725734978914260...
def _ reduce _ datetimes ( row ) : row = list ( row ) for i in range ( len ( row ) ) : if hasattr ( row [ i ],'isoformat') : row [ i ] = row [ i ]. isoformat ( ) return tuple ( row )
[ -0.9517164826393127, 1.1128839254379272, 0.7373918294906616, 0.03567836806178093, 0.1841859221458435, -0.5799456238746643, -0.007432728074491024, 0.23163262009620667, 0.36308228969573975, 1.5394501686096191, 0.00408539455384016, -1.4084076881408691, -0.06946231424808502, 0.5571856498718262...
def rotate _ ccw ( self ) : current = self. config. displayorientation if current = = win32con. dmdo _ default : self. rotation _ 90 ( ) elif current = = win32con. dmdo _ 90 : self. rotation _ 180 ( ) elif current = = win32con. dmdo _ 180 : self. rotation _ 270 ( ) elif current = = win32con. dmdo _ 270 : self. rotation...
[ 0.11036528646945953, 0.02034294232726097, 0.5821207165718079, 0.04395410045981407, -0.28644201159477234, 0.24950526654720306, 1.2447521686553955, -1.027908444404602, -0.5036077499389648, -0.07505162060260773, 0.06618595123291016, 0.5463451743125916, -0.9502356648445129, 0.6513403058052063,...
def read _ file ( fp ) : with open ('data /'+ fp,'rb') as f : return f. read ( )
[ 0.36420875787734985, -0.28510528802871704, 0.3084602952003479, -0.8250142931938171, -0.29219409823417664, 1.201521873474121, 0.0781298577785492, -0.457939088344574, -1.0090394020080566, -0.6227810978889465, 0.4550321400165558, -0.4347812235355377, 0.11930865794420242, -0.6047008633613586, ...
def winbio _ winbiogetlogonsetting ( jitter ) : ret _ ad, args = jitter. func _ args _ stdcall ( [ " value ", " source " ] ) raise runtimeerror ('api not implemented') jitter. func _ ret _ stdcall ( ret _ ad, ret _ value )
[ -0.2013804018497467, 0.14203016459941864, 0.5227323770523071, 0.2804739773273468, -0.5626946687698364, -0.2986884117126465, 0.49670159816741943, -0.6967586278915405, 0.3176461160182953, 0.7295525074005127, -0.7979671359062195, 0.5086151957511902, -1.195482611656189, 0.43801653385162354, ...
def get _ size ( self ) : return self. _ _ size
[ -0.29147815704345703, 0.1632031947374344, 0.3532716929912567, -0.5221422910690308, 0.1776081621646881, 0.41146546602249146, 0.8918547630310059, -0.17550969123840332, 0.07197751104831696, -1.6958645582199097, -0.20294024050235748, 0.18527522683143616, -0.5619375705718994, -0.247396975755691...
def sort _ sample ( self ) : import numpy as np return np. argsort ( self. sample )
[ 0.06679122895002365, -0.9189842343330383, 0.49804064631462097, -0.1465422660112381, -0.4920884072780609, 0.16536952555179596, 0.3567623198032379, -0.7624290585517883, -0.21399347484111786, 0.37603870034217834, 0.7997448444366455, 1.237951397895813, -0.5873416662216187, 0.47270363569259644,...
def solve _ isinstance ( expr, vars ) : lhs = solve ( expr. lhs, vars ) try : t = solve ( expr. rhs, vars ). value except errors. efilterkeyerror : t = none if t is none : raise errors. efiltertypeerror ( root = expr. rhs, query = expr. source, message = " cannot find type named % r. " % expr. rhs. value ) if not isins...
[ -0.9969263672828674, 0.035873401910066605, 0.606489360332489, -0.32884481549263, 0.20246092975139618, -0.22788916528224945, 0.17224055528640747, -0.41880160570144653, 0.32073280215263367, 1.134944200515747, 0.1045103669166565, 0.6782256960868835, -0.772682249546051, 0.08141350001096725, ...
def authorization _ header ( self, request = none ) - > str : return none
[ -0.6906705498695374, -0.2019020915031433, 0.5373722314834595, 0.9613747000694275, -0.7388358116149902, 0.34136778116226196, -0.11335008591413498, -0.09744041413068771, 0.6669423580169678, -0.6029755473136902, 0.7981598377227783, 0.10856594145298004, 0.16042587161064148, -0.8715515732765198...
def map _ dict _ keys ( func, d ) : return dict ( ( func ( k ), v ) for k, v in viewitems ( d ) )
[ -1.2243343591690063, 0.26472488045692444, 0.19361512362957, -0.3861517012119293, -1.761699914932251, -0.4156484305858612, -0.17970047891139984, 0.6564615964889526, -0.20166993141174316, -0.4387269616127014, 0.04839726909995079, 0.2253415584564209, 1.804638385772705, 0.09695115685462952, ...
def test _ multi _ line _ comments _ file ( self ) : self. assertisnone ( self. _ _ execute _ test _ on _ file ( " / * " + jsccommentstestsuite. _ _ example _ jsc + " * / " ) ) self. assertisnone ( self. _ _ execute _ test _ on _ file ( " / * \ n " + jsccommentstestsuite. _ _ example _ jsc + " \ n * / " ) ) self. asser...
[ 0.6500773429870605, -0.7332146763801575, 0.8051040172576904, -0.44307756423950195, 0.5791140794754028, 0.4601822793483734, -0.2823387384414673, -0.474638432264328, -0.47300511598587036, -0.05442940071225166, -0.625479519367218, 0.05557936802506447, 0.6161218881607056, 0.7899114489555359, ...
def epoch _ iter ( model, data, optimizer ) : average _ epoch _ elbo = [ ] if model. training : for step, batch in enumerate ( data ) : # print ( batch ) s = batch. size ( ) batch = batch. reshape ( s [ 0 ], s [ 1 ] * s [ 2 ] * s [ 3 ] ) elbo = model ( batch ) average _ epoch _ elbo. append ( float ( elbo ) ) optimizer...
[ -0.34261566400527954, 0.1542479395866394, 0.7067702412605286, 0.44873887300491333, 0.18494556844234467, 0.371904194355011, -0.19196589291095734, 0.40069887042045593, -1.0065962076187134, 1.1674766540527344, -0.5842558145523071, 0.20493924617767334, 0.23846952617168427, 0.8733391761779785, ...
def process _ store ( file _ name : str, filter _ fn = none, process _ fn = none ) - > dict [ str, dict ] : table _ df = pd. read _ csv ( file _ name, sep = " \ t " ) table _ items = { } for _, row in tqdm ( table _ df. iterrows ( ), total = table _ df. shape [ 0 ] ) : id = str ( uuid4 ( ) ) skip = false fact = { " id ...
[ -0.2151256799697876, 0.3722570240497589, 0.5349969267845154, -0.2851845920085907, -0.5892637968063354, -0.43619826436042786, 0.00032499738154001534, 0.5063888430595398, -1.1896519660949707, 0.3374212682247162, -0.2549286484718323, -0.10582362115383148, 0.8517899513244629, -0.46165642142295...
async def _ list ( self, ctx ) : users = [ ] for user in self. registered _ users : user = await self. bot. get _ user _ info ( user ) users. append ( user. mention ) await self. bot. say ( " " " these are the users currenty registered for a raid! { } " " ". format ( ", ". join ( users ) ) )
[ 0.25460517406463623, -0.07999159395694733, 0.4144982397556305, 0.2687157392501831, 1.8093000650405884, 0.07807531952857971, -0.1730593740940094, 0.9908725619316101, -0.5536594390869141, 0.5083571076393127, 0.10436160862445831, 1.854777455329895, -0.4479984641075134, 0.7345917224884033, -...
def getmovefromterm ( self, term ) : if self. thebackingmachine = = none : return none try : return self. thebackingmachine. getmovefromterm ( term ) except exception as e : self. failgracefully ( e, none ) except threaddeath as d : raise d except outofmemoryerror as e : raise e except error as e : self. failgracefully...
[ 0.34353992342948914, -0.3584614396095276, 0.7148316502571106, 0.5587406754493713, -0.34589701890945435, -0.26473468542099, -0.35226497054100037, -1.1132171154022217, 0.36423176527023315, -0.02010132186114788, 0.5377663373947144, 0.4608297646045685, -0.8956862092018127, -0.6511403918266296,...