text
stringlengths
25
2.19k
embedding
listlengths
768
768
def create ( ) : print ( " \ 033 [ 33m " + " create a new record " + " \ 033 [ 0m " ) lst = [ input ( " \ 033 [ 33m " + " pruid : " + " \ 033 [ 0m " ), input ( " \ 033 [ 33m " + " prname : " + " \ 033 [ 0m " ), input ( " \ 033 [ 33m " + " prnamefr : " + " \ 033 [ 0m " ), input ( " \ 033 [ 33m " + " date : " + " \ 033 [...
[ 0.5432995557785034, 0.214400514960289, 1.1323869228363037, -0.5435841679573059, 0.30065640807151794, 1.3596488237380981, -0.10815928876399994, -0.6338015794754028, -1.2143468856811523, 0.10049543529748917, -0.11964209377765656, 0.68836510181427, -1.090165615081787, 0.4590179920196533, -0...
def get _ connected _ vertex _ indices ( self, vertex _ index : int ) - > tp. set [ int ] : triangles = self. get _ triangles ( allow _ primitive _ restarts = false, include _ degenerate _ faces = false ) connected = { vertex _ index } for tri in ( set ( t ) for t in triangles ) : if connected. intersection ( tri ) : c...
[ -0.09816372394561768, 0.06511396914720535, 0.6207234859466553, -0.13813859224319458, -0.31006625294685364, 0.12109284847974777, 0.9005967974662781, -1.1048784255981445, 0.36781731247901917, 0.18569143116474152, -0.5726751089096069, 0.1935364305973053, -0.5888953804969788, -0.36551108956336...
def test _ atomic _ qname _ enumeration _ 4 _ nistxml _ sv _ iv _ atomic _ qname _ enumeration _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - enumeration - 5. xsd ", instance = " nistdata / atomic ...
[ -0.3791882395744324, -0.9660494327545166, 0.3704665005207062, -0.047636728733778, -0.3942870795726776, -0.05118764191865921, 0.15880487859249115, -1.3084299564361572, -0.07987146079540253, 0.415731817483902, -0.5188937187194824, -0.37607091665267944, -0.6012611389160156, 0.0479212626814842...
def current _ commands ( self, in _ room ) : if in _ room : commands = self. command _ mapping else : commands = ordereddict ( filter ( lambda x : x [ 1 ] [ 2 ] = = true, self. command _ mapping. items ( ) ) ) # the x's passed into the lambda are ( key, list ) tuples from the command _ mapping ordereddict. return comma...
[ -1.552737832069397, -0.6463937163352966, 0.33057162165641785, 0.8718459010124207, -0.09898123890161514, -0.835023045539856, -0.37535130977630615, 0.106305792927742, -0.25149524211883545, 0.41606947779655457, 0.033351488411426544, 0.12930385768413544, -0.2583078145980835, 0.1448704153299331...
def check _ and _ trigger ( self, time, is _ stop = false ) : if not same _ time ( time, self. last ) : if ( same _ time ( time, self. next _ time ) or ( is _ stop and self. trigger _ on _ stop ) ) : self. trigger ( time, is _ stop )
[ -0.4266592860221863, 0.4850797951221466, 0.4563995599746704, 0.9151495099067688, -0.09937458485364914, -0.33848050236701965, -0.7201671600341797, -0.1784326285123825, 0.07470288127660751, 0.3515111804008484, -0.3535580337047577, -0.14975444972515106, -0.3028537631034851, 0.7510766983032227...
def test _ duration _ 1 ( ) : precision = 1e - 15 assert ( mono _ 22050 _ 16bits. duration ( ) - 6. 6873015873015875 ) < precision
[ 1.008840799331665, 0.377564400434494, 0.44948968291282654, 0.6031478643417358, 0.5625827312469482, 0.9141672849655151, 1.1014087200164795, -0.387967586517334, 0.24725472927093506, -0.4794333577156067, -0.1912410706281662, 0.01844816468656063, 0.24263079464435577, 0.48025521636009216, 0.7...
def status _ message ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " status _ message " )
[ 0.46370232105255127, -0.0009828386828303337, 0.1598246842622757, 0.4201369285583496, 1.137307047843933, 0.8581903576850891, -0.3908895254135132, 0.3344156742095947, 0.44239872694015503, -0.12086708843708038, 0.30880308151245117, 0.6741364002227783, 0.004600025713443756, -0.4568068385124206...
def focusoutevent ( self, qfocusevent ) : self. parent. listshowing = false self. hide ( ) self. parent. showlistbutton. show ( )
[ 0.8348665833473206, -0.007717918138951063, 0.39557144045829773, 0.0020781320054084063, -0.7000566124916077, 0.8764756321907043, 0.9312611222267151, 1.4968913793563843, 0.7771584391593933, 0.16025708615779877, -1.3587627410888672, 0.10460028052330017, 0.1509275585412979, 0.7444875240325928,...
def has _ horizontal _ scroll ( self ) : return len ( self. soup. select ( ". dtfc _ scrollwrapper " ) ) > 0
[ -0.08229472488164902, 0.5560106039047241, 0.6297380924224854, 0.8534113764762878, 0.2184039056301117, 0.3045017123222351, -0.7408486604690552, -0.2413121461868286, -0.22263117134571075, -0.8562477827072144, -0.6967073678970337, -0.4541643261909485, 0.48530301451683044, 1.2896522283554077, ...
def test _ atomic _ language _ pattern _ nistxml _ sv _ iv _ atomic _ language _ pattern _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - pattern - 1. xsd ", instance = " nistdata / atomic / la...
[ 0.03760184720158577, -0.3011853098869324, 0.49991196393966675, 0.7304454445838928, -0.20507533848285675, 0.31210222840309143, 0.10790405422449112, 0.42147064208984375, 0.5804712176322937, 1.0648903846740723, 0.0923672690987587, -0.179901584982872, -0.14666618406772614, -0.12025593221187592...
def _ _ init _ _ ( self, data _ dir : path ) : super ( ). _ _ init _ _ ( ) self. fns = find _ npz _ files ( data _ dir )
[ 0.4033200442790985, 0.20415280759334564, 0.29152873158454895, 0.5502443313598633, 0.5153083801269531, -0.37818485498428345, 1.1421916484832764, 0.14968760311603546, 0.31075137853622437, -0.9280088543891907, -0.7246896624565125, 0.660345196723938, 0.9365266561508179, 0.8158614039421082, -...
def getsignaturemethod ( self ) : return self. _ signature _ method
[ 0.01076312456279993, 0.0873984768986702, 0.4525194764137268, 0.3271483778953552, 0.13829250633716583, -0.5609930753707886, 1.1401604413986206, -0.09525865316390991, -0.43486204743385315, -0.02590939961373806, -0.39692744612693787, -1.216597080230713, -0.2955187261104584, 0.1610884368419647...
def _ _ init _ _ ( self ) : if widgets. _ single : raise singleton ( widgets. _ single ) widgets. _ single = self try : self. _ preferences = preferences ( ) except singleton as e : self. _ preferences = e. get _ singleton ( ) self. _ client = gconf. client _ get _ default ( ) self. _ client. add _ dir ( " / apps / gro...
[ 0.3058142364025116, 0.010995328426361084, 0.5175357460975647, -0.46437138319015503, 0.6873946189880371, 0.0853787437081337, 0.7701727151870728, 1.393004059791565, -0.6863059401512146, 0.35953086614608765, -0.4583094120025635, 0.0662882998585701, -0.4621998965740204, 1.097533106803894, 0....
def read _ file _ relevant ( filename ) : with open ( filename ) as infile : infile. readline ( ) # ignore header relevantids = set ( [ line. strip ( ) for line in infile ] ) return relevantids
[ 0.352033406496048, -0.8794364929199219, 0.7452355027198792, -1.1033555269241333, -0.1703798621892929, 0.7117694616317749, -0.7852859497070312, 0.7533503174781799, -1.5781902074813843, 0.42065590620040894, 0.024128498509526253, 0.4242486357688904, -0.02625509537756443, -0.3669198751449585, ...
def encode _ audio ( data, sr ) : import base64 if len ( data. shape ) = = 1 : n _ channels = 1 data _ audio = data else : n _ channels = data. shape [ 1 ] data _ audio = data. ravel ( ) data _ audio = data _ audio / np. amax ( data _ audio ) data _ audio = np. int16 ( data _ audio * 32767 ). tolist ( ) fp = bytesio ( ...
[ 0.3878234326839447, -0.00658582104369998, 0.7244048714637756, 0.1347557157278061, -0.008869856595993042, -0.024411240592598915, -0.06606784462928772, 0.19701644778251648, 0.7356963753700256, 0.22967244684696198, 0.2504962682723999, 0.935295820236206, 0.2526274025440216, 0.6173869371414185,...
def test _ list _ decimal _ min _ length _ 3 _ nistxml _ sv _ iv _ list _ decimal _ min _ length _ 4 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - minlength - 4. xsd ", instance = " nistdata / list / ...
[ -0.11017268151044846, -0.602765679359436, 0.4298199713230133, 0.19719737768173218, -0.4335218369960785, -0.2980007231235504, -0.7209809422492981, -0.16526736319065094, 0.7234210968017578, -0.28573742508888245, -1.2050957679748535, -0.4485229551792145, -0.3220631778240204, 0.192223355174064...
def click _ on _ link ( self, link, dont _ wait = none ) : self. wait _ for _ element _ found ( link,'a ','this') self. click _ link ( link ) self. wait _ for _ page _ loaded ( dont _ wait )
[ -0.1397857666015625, 0.054948244243860245, 0.5175935626029968, 0.3260802626609802, 1.1377253532409668, -0.22741079330444336, -0.36501723527908325, 0.15864142775535583, 0.07797210663557053, -0.2773626446723938, -0.3480840027332306, -0.45253902673721313, -0.35786670446395874, 0.8572239279747...
def fromzeros ( self ) : if self. _ newcube = = true : return true else : return false
[ -0.09695947915315628, -0.11339406669139862, 0.6065577864646912, 0.748106062412262, 0.1535997837781906, 0.22425706684589386, -0.30054062604904175, -0.21310651302337646, -0.12288780510425568, -0.6117303967475891, 0.18405333161354065, 0.24787074327468872, -1.0435484647750854, 0.60652971267700...
def create _ ssl _ listener ( self, blb _ id, listener _ port, backend _ port, scheduler, cert _ ids, health _ check _ timeout _ in _ second = none, health _ check _ interval = none, unhealth _ threshold = none, health _ threshold = none, ie6 _ compatible = none, encryption _ type = none, encryption _ protocols = none,...
[ 0.5116301774978638, -1.1107287406921387, 0.9286344051361084, -0.17532214522361755, -0.16518057882785797, 0.13442248106002808, -0.14341309666633606, -0.25349918007850647, -0.5493190288543701, 0.3738043010234833, -0.6507632732391357, 0.4551864266395569, -0.7396383285522461, 0.174858704209327...
def test _ atomic _ language _ min _ length _ nistxml _ sv _ iv _ atomic _ language _ min _ length _ 1 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - minlength - 1. xsd ", instance = " nistdata /...
[ 0.29320672154426575, -0.18942026793956757, 0.41135480999946594, 0.3279903531074524, -0.49696728587150574, 0.4235396981239319, -0.28889912366867065, -0.16904020309448242, 1.0309933423995972, 0.6116284132003784, -0.20302431285381317, -0.19040091335773468, -0.6918264031410217, -0.180785506963...
def log _ row _ count _ diff ( original _ data : iterable [ any ], filtered _ data : iterable [ any ], label : str ) - > none : original _ row _ count = len ( list ( original _ data ) ) filtered _ row _ count = len ( list ( filtered _ data ) ) assert original _ row _ count > 0,'original _ data does not contain any rows...
[ 0.8735384345054626, -0.11118537932634354, 0.7676724195480347, -0.08441168069839478, -0.32504570484161377, 0.7058135867118835, 0.13600482046604156, -0.02753484435379505, -0.24652081727981567, 0.14135324954986572, 0.6916311979293823, 0.9209030866622925, 0.6493874192237854, 0.1765485554933548...
def key _ arn ( self ) - > pulumi. input [ str ] : return pulumi. get ( self, " key _ arn " )
[ -0.41831955313682556, -0.5150778293609619, 0.3864859640598297, 0.7738754749298096, 0.4407811164855957, 1.0056906938552856, 0.5508679151535034, 1.2937712669372559, 0.0750153511762619, 0.15638072788715363, -0.00858698133379221, 1.3356009721755981, 0.1951950192451477, -0.8434762358665466, -...
def parseresponse ( responses ) : maps = [ ] for response in responses : lines = response. split ('\ r \ n') fields = { } for line in lines : line = cleantext ( line ) try : key, value = line. split (': ', 1 ) except valueerror : continue # not a pair if not key or not value : continue if key in fields : continue # dia...
[ -0.10333181917667389, -1.4665298461914062, 0.6396815180778503, -0.5789849758148193, -0.5802919864654541, -0.014505778439342976, -0.32245072722435, 0.265293151140213, 0.5441855192184448, 0.08009050786495209, -0.5262942910194397, -1.7053501605987549, -0.30955103039741516, -0.4192273616790771...
def accumulate _ intersections _ at _ large _ switch ( self, large _ switch, start _ side ) : total = self. _ get _ zero _ intersection _ array ( ) interval = self. large _ switch _ to _ extremal _ interval ( large _ sw, start _ side ) while interval is not none : total + = self. get _ intersections _ with _ interval (...
[ -0.3690642714500427, 0.277572900056839, 0.7532283067703247, -0.24015624821186066, -0.011544284410774708, -0.17772787809371948, 0.6565579771995544, -0.5139452219009399, -0.03766556829214096, 0.0413634367287159, -0.2083822637796402, -0.6659743189811707, 0.5390244722366333, 0.5612567663192749...
def update ( self ) : if self. newest : self. _ updateallpaths ( ) if self. eggify : self. _ eggify ( ) self. _ exportinformationtooptions ( ) return self. location
[ -1.2163316011428833, -0.9282519221305847, 0.3029385805130005, 0.17806567251682281, -0.13202416896820068, -0.45463570952415466, 0.7958770394325256, -0.3052254617214203, 0.07053687423467636, -0.2439754456281662, 0.5279123783111572, -0.8438899517059326, -0.4098632335662842, 0.5271735787391663...
def astar ( self, start _ r, start _ c, goal _ r, goal _ c ) : if self. ants. time _ remaining ( ) > variables. idle _ time _ remaining : def initialize _ map ( ) : def initialize _ row ( ) : for c in xrange ( self. ants. cols ) : yield none for r in xrange ( self. ants. rows ) : yield list ( initialize _ row ( ) ) # p...
[ -0.6925623416900635, -0.8401192426681519, 0.7197280526161194, -0.5076671838760376, -0.33643046021461487, 0.20055152475833893, 0.6151025295257568, -0.17507918179035187, -0.7843638062477112, 0.32859569787979126, 0.8186583518981934, -0.4510760009288788, 0.34433940052986145, -0.309046119451522...
def _ _ pos _ _ ( self ) : ts = filestoragemanagersingleton. get ( self. _ id ) return smtimeseries ( ts. times ( ), ts. values ( ) )
[ -0.3623318076133728, -0.4442141652107239, 0.33227139711380005, -0.72630774974823, -0.3218434154987335, -0.6565583348274231, -0.9295491576194763, -0.21462880074977875, 0.16886280477046967, 0.24218712747097015, -0.3195160925388336, -0.01865052431821823, 0.13894982635974884, 0.217175573110580...
def to _ json ( self ) : return json. dumps ( sanitize _ for _ serialization ( self. to _ dict ( ) ) )
[ -0.7933921217918396, -1.2017828226089478, 0.4372412860393524, -0.6405429244041443, -0.4489535093307495, -0.43742576241493225, -0.22499613463878632, -0.5229367017745972, 0.2430649846792221, 0.19001154601573944, -0.7925726771354675, 0.8012198209762573, 0.14654502272605896, -0.464980542659759...
def command _ members ( self, brain, args ) : if not args : return l = [ self. _ get _ members ( role ) for role in args ] return " \ n ". join ( l )
[ 0.011396818794310093, -0.352985143661499, 0.5182974934577942, -0.07528471201658249, 1.4987242221832275, -0.006497246213257313, -1.2094374895095825, -0.08243516832590103, -0.40826481580734253, 0.12089180201292038, 0.6276763677597046, 0.7119659781455994, -0.9124748706817627, 0.96460324525833...
def clone ( self, * * kw ) : newpolicy = self. _ _ class _ _. _ _ new _ _ ( self. _ _ class _ _ ) for attr, value in self. _ _ dict _ _. items ( ) : object. _ _ setattr _ _ ( newpolicy, attr, value ) for attr, value in kw. items ( ) : if not hasattr ( self, attr ) : raise typeerror ( " {! r } is an invalid keyword argu...
[ -0.12509891390800476, -1.0772815942764282, 0.869581401348114, 0.06957171112298965, -0.8179402947425842, 1.7791825532913208, -0.8162032961845398, -0.830104410648346, 0.29895010590553284, 0.24212421476840973, 0.1311967521905899, -0.08075150102376938, -0.04683229699730873, 0.00556771876290440...
def previous ( self ) : self. post _ api _ v1 ( " me / player / previous " )
[ -0.5802088379859924, 0.7086690664291382, 0.5828712582588196, 0.9513558149337769, 1.0144535303115845, -0.37667202949523926, 0.8260936141014099, -1.0587742328643799, 0.1542123556137085, -0.3857496380805969, -1.1053279638290405, 0.8771733641624451, -1.4877203702926636, -0.10693786293268204, ...
def new _ init ( self, * args, * * kwargs ) : # print warnings for calls with positional arguments. if args : warnings. warn ('using positional arguments with the gobject constructor has been deprecated.'' please specify keyword ( s ) for " % s " or use a class specific constructor.'' see : https : / / wiki. gnome. org...
[ -0.3492385447025299, -0.37036851048469543, 0.7548782229423523, -0.20229549705982208, -0.2957949936389923, -0.6391422748565674, -1.2358808517456055, -0.3846158981323242, -1.2236837148666382, 0.05971595644950867, -0.5521720051765442, 0.5181756615638733, 0.03646453469991684, 0.698523223400116...
def test ( self, session, valid _ x, valid _ y ) : input _ feed = { } # fill in this feed _ dictionary like : # input _ feed ['valid _ x'] = valid _ x output _ feed = [ ] outputs = session. run ( output _ feed, input _ feed ) return outputs
[ -0.16783732175827026, -0.5711262226104736, 0.25626862049102783, 0.008437983691692352, 0.16383683681488037, -0.9726940393447876, -0.6440948247909546, -0.9287585020065308, -0.0770382434129715, -0.7472858428955078, -0.2547668218612671, 0.16580837965011597, -0.49759191274642944, -1.01082301139...
def test _ package _ spec _ installed ( self ) : def is _ installed ( package _ spec ) : req = packaging. requirements. requirement ( package _ spec ) return version ( req. name ) in req. specifier assert is _ installed ('distinfo - pkg = = 1. 0') assert is _ installed ('distinfo - pkg > = 1. 0, < 2. 0') assert not is ...
[ -0.47864845395088196, -0.3834419548511505, 0.2799406051635742, 0.20026153326034546, 0.7297015190124512, 0.7935680747032166, -0.2908923923969269, 0.9505586624145508, -0.3213786482810974, 0.5632936954498291, -0.7211839556694031, -1.1108546257019043, 0.58647620677948, 0.9217549562454224, -0...
def get _ current _ user ( self ) : pass
[ -0.7497885227203369, -1.2360596656799316, 0.2924535572528839, 1.5972603559494019, 0.4021952450275421, 0.503224790096283, 1.0416202545166016, -0.22791118919849396, -0.961186945438385, -0.8159952759742737, -0.11004441231489182, 1.2354611158370972, -0.13029390573501587, -0.622840166091919, ...
def validatedevicetypeconfiguration ( self, typeid ) : req = apiclient. draftdevicetypeurl % ( self. host, typeid ) body = { " operation " : " validate - configuration " } resp = requests. patch ( req, auth = self. credentials, headers = { " content - type " : " application / json " }, data = json. dumps ( body ), veri...
[ -2.358337163925171, -0.16229557991027832, 0.37062644958496094, -0.4442686140537262, -0.5389023423194885, -0.19310666620731354, 0.4057495594024658, -1.2248666286468506, -0.16053952276706696, 1.1332513093948364, -0.856982409954071, 0.3143918812274933, -1.2107921838760376, 1.0403001308441162,...
def calculate ( instr ) : instr + ='' # add end padding to simplify algo mem _ val = none mem _ val _ base = none rvalue = 0. 0 last _ op ='' val _ str ='' bracket _ start = none bracket _ val = none bracket _ count = 0 i = 0 _ len = len ( instr ) while i < _ len : lvalue = none cur _ op = none # check if we are not in...
[ -0.15372814238071442, 0.10664323717355728, 0.8702860474586487, 0.28371870517730713, -0.6244523525238037, -1.226557731628418, 0.46329715847969055, -0.11934326589107513, -0.15216535329818726, 0.13626618683338165, 0.49647361040115356, -0.27409934997558594, -0.18460141122341156, 0.142287030816...
def get _ top _ text _ ngrams ( corpus, n, g ) : vec = countvectorizer ( ngram _ range = ( g, g ) ). fit ( corpus ) bag _ of _ words = vec. transform ( corpus ) sum _ words = bag _ of _ words. sum ( axis = 0 ) words _ freq = [ ( word, sum _ words [ 0, idx ] ) for word, idx in vec. vocabulary _. items ( ) ] words _ freq...
[ 0.05442338436841965, 0.08796968311071396, 0.5481336116790771, 0.1895776391029358, 0.0431310273706913, -0.840110719203949, 0.05986575409770012, -0.6875568628311157, -0.6580126881599426, 0.8240936398506165, 0.09866299480199814, -0.23077723383903503, -0.1907825767993927, 0.2953331172466278, ...
def close ( self ) : del self. mode self. byte _ source. close ( )
[ 0.40064021944999695, -0.6002269387245178, 0.30566927790641785, -1.259811520576477, -0.2321314513683319, 1.114469289779663, 0.4279935657978058, 0.6203993558883667, -0.5448899269104004, -0.8777596354484558, -0.6082737445831299, -0.08087629824876785, -0.4506703019142151, 0.9465314149856567, ...
def update ( * * kwargs ) - > none : if ( err : = _ sendrequest ( requests. put, * * kwargs ) ) is not none : printhtmlerror ( err )
[ -0.6292510628700256, 0.3501676321029663, 0.47490569949150085, 0.19060206413269043, 0.045155275613069534, 0.6307594180107117, -0.6524297595024109, -0.903037965297699, -0.2520051598548889, 0.5967137217521667, -0.1132393628358841, 0.3013380467891693, -1.6657518148422241, 0.01644313521683216, ...
def batched _ masked _ select ( sequence _ feature, seq _ len ) : mask = sequence _ mask ( seq _ len, sequence _ feature. shape [ 1 ], dtype = torch. long ) mask = mask. squeeze ( dim = 2 ) idxs = mask. nonzero ( as _ tuple = true ) return sequence _ feature [ idxs ]
[ -0.10894168168306351, -0.966969907283783, 0.3510139286518097, 1.4821070432662964, 0.20080424845218658, -0.9575098156929016, 0.32667970657348633, 0.1614004373550415, -0.09828459471464157, 0.70186448097229, -0.6683037877082825, 0.6041025519371033, 0.040129851549863815, -1.0386985540390015, ...
def test _ execution ( self ) : print ( f'{ self. test _ execution. _ _ name _ _ }'f': executing unit test for function " execution " of class " slashnexthostreport ".') with patch ('requests. request ', autospec = true, spec _ set = true ) as mocked _ request : mocked _ request. side _ effect = [ mock ( status _ code ...
[ 0.15353548526763916, 0.19998958706855774, 0.8819115161895752, -0.14072462916374207, 1.1575000286102295, 0.4831028878688812, 0.5708086490631104, 0.25909000635147095, -0.2552119791507721, -0.1798066347837448, -0.5105776190757751, -0.3287563621997833, -0.19534604251384735, -0.2106933295726776...
def _ get _ time _ to _ first _ spike ( self, unit _ id, preferred _ condition, minimum _ time _ s = 0. 03, maximum _ time _ s = 0. 2 ) : presentation _ ids = self. presentationwise _ statistics. xs ( unit _ id, level = 1 ) [ self. presentationwise _ statistics. xs ( unit _ id, level = 1 ) ['stimulus _ condition _ id']...
[ -0.027624011039733887, 0.37580469250679016, 0.5825499892234802, -0.6251317858695984, 0.33878275752067566, -0.5879221558570862, -0.18666313588619232, 0.3083391785621643, 0.007407922297716141, 0.7467527389526367, 0.6384186148643494, 1.0078561305999756, 0.16377100348472595, 0.0092518143355846...
def assert404 ( self, url, msg _ prefix ='' ) : if msg _ prefix : msg _ prefix + = " : " response = self. client. get ( url ) self. assertequal ( response. status _ code, 404, str ( msg _ prefix ) + u " page at { 0 } should return 404, got { 1 }. ". format ( url, response. status _ code ) )
[ -0.7226670980453491, 0.02453019469976425, 0.5293640494346619, -0.495594322681427, 1.3620655536651611, 0.4273897409439087, 0.051086537539958954, 0.5700812935829163, 0.08480749279260635, -0.8288611769676208, 0.08809196949005127, 0.5949196219444275, -0.7664759159088135, 0.8095815777778625, ...
def sortvideos ( catalog, size, tisa ) : return model. sortvideos ( catalog, size, tisa )
[ -0.981012225151062, -0.35112184286117554, 0.28257888555526733, 0.530518114566803, -0.2643772065639496, -0.6668089032173157, -0.25277888774871826, -0.5220166444778442, 0.2549712359905243, 0.7954884767532349, -0.9890083074569702, 0.8348714709281921, -0.15342487394809723, 0.18462373316287994,...
def prepare _ request _ uri _ query ( oauth _ params, uri ) : # append oauth params to the existing set of query components sch, net, path, par, query, fra = urlparse ( uri ) query = urlencode ( _ append _ params ( oauth _ params, extract _ params ( query ) or [ ] ) ) return urlunparse ( ( sch, net, path, par, query, f...
[ -0.599420428276062, -0.2240956723690033, 0.5320778489112854, 0.017361165955662727, 0.2601791322231293, -0.2474333643913269, -0.9606674909591675, 0.19257701933383942, 0.5929645895957947, -0.5283852815628052, 1.4270621538162231, -0.005200628656893969, -0.4976098835468292, -0.5578574538230896...
def parse _ radio _ inputs ( elem ) : data = [ ] _ values = [ ] # hack : due to malformated html we have to parse input # tags with regex input _ tags = re. findall ( r'< input [ ^ > ] * > ', str ( elem ) ) for input _ tag in input _ tags : value = re. findall ( r'value = " ( \ w + ) " ', input _ tag ) [ 0 ] _ id = re....
[ -1.1572985649108887, -0.10352698713541031, 0.5909761786460876, -0.007781175896525383, -0.20125645399093628, 0.6145535111427307, -0.24578805267810822, -0.9292521476745605, -0.5779412984848022, 0.34164002537727356, -1.0161690711975098, -0.930611789226532, -0.33750709891319275, 0.478609085083...
def step _ filter ( self, v, imu _ meas, z _ t ) : # your code here if imu _ meas is not none : self. x _ t, self. p _ t = self. prediction ( v, imu _ meas ) # print " z _ t = ", z _ t # print " type ( z _ t ) = ", type ( z _ t ) # print " z _ t = = none : ", z _ t = = none # print " z _ t! = none : ", z _ t! = none # ...
[ -0.17652086913585663, -0.835415244102478, 0.45456695556640625, 0.291889488697052, -0.2078612893819809, 0.048163093626499176, 0.6083574295043945, 0.8559508323669434, 0.07557997107505798, 0.11244598031044006, -0.05627765133976936, 0.276028573513031, -0.872628390789032, 0.12394759058952332, ...
def rgb _ to _ hex ( value ) : return'% 02x % 02x % 02x'% value
[ -0.6633930802345276, -1.2139242887496948, 0.6127997040748596, -0.3021009862422943, 0.01779858022928238, 0.9739403128623962, -0.5503645539283752, -0.29284706711769104, -0.5429325103759766, 0.2356756627559662, -0.4576070010662079, -0.18597790598869324, 0.2494855523109436, -0.1755357831716537...
def _ _ init _ _ ( self, object _ name : str ) - > none : message = f'{ object _ name } has not been fit!'super ( ). _ _ init _ _ ( message )
[ 0.5711744427680969, -0.7087876200675964, 0.500944972038269, 0.5770698189735413, -0.0081898532807827, 0.17120979726314545, 0.2900983989238739, -0.03262186422944069, 0.012214824557304382, -0.2743384838104248, -0.9197375178337097, 0.408929705619812, 0.3662363290786743, 0.1882687360048294, 0...
def links ( self, links ) : self. _ links = links
[ -0.598645031452179, 0.6183827519416809, -0.1758676916360855, 0.10941239446401596, 0.6202441453933716, 0.6288353204727173, -0.03698290139436722, 1.0550099611282349, -0.26271218061447144, -1.7037323713302612, -0.5768996477127075, 0.050066184252500534, -0.26183345913887024, 0.5186941027641296...
def auto _ wait _ range ( * args ) : return _ ida _ auto. auto _ wait _ range ( * args )
[ -1.831870198249817, -0.23330947756767273, 0.031142553314566612, 1.2388578653335571, 0.4368268549442291, 0.3646817207336426, 1.1431081295013428, 0.23311655223369598, -1.618556022644043, -0.07199127972126007, -1.0174580812454224, -0.5624595880508423, -0.5519521832466125, 0.3313662111759186, ...
def get _ global _ link _ transform ( self, link : str, q : arraytype ) - > casadiarraytype : # setup assert ( link in self. urdf. link _ map. keys ( ) ), f " given link'{ link }'does not appear in urdf " root = self. urdf. get _ root ( ) t = i4 ( ) if link = = root : return t # iterate over joints in chain for joint _...
[ -0.484775185585022, -0.43741902709007263, 0.5948702096939087, -0.28502076864242554, 0.3354479670524597, -0.35007813572883606, 0.32160356640815735, 0.022972408682107925, 0.08551154285669327, -0.27765199542045593, -0.26408055424690247, 1.1124403476715088, -1.2386161088943481, -0.527945101261...
def show _ location ( self ) : return self. current _ room. position
[ -0.5729445219039917, -1.2054693698883057, 0.5858827829360962, -0.13546790182590485, -0.8389819860458374, 0.7890926599502563, 0.8229993581771851, 0.664750874042511, -0.37204283475875854, 0.911963701248169, 0.7222459316253662, 0.6626042723655701, 0.07658661901950836, 0.12865664064884186, -...
def first ( self, callback = none ) : self. eval _ js ('table. selectfirst ( ) ; ', callback = callback )
[ 0.43576300144195557, 0.5713247656822205, 0.3813539743423462, 0.4304443895816803, 0.2992294728755951, -1.564210295677185, 0.6805058717727661, -0.4603104591369629, -0.3147907555103302, 0.028078295290470123, 0.10244998335838318, 0.21838617324829102, 0.2885116934776306, 0.9666261672973633, -...
def _ _ str _ _ ( self ) : return self. urlstr
[ -0.8969407081604004, -1.816357970237732, 0.2709006071090698, -1.2833271026611328, -0.7458697557449341, 0.8691922426223755, -0.31161198019981384, -0.35168787837028503, 0.2065085768699646, -0.7007558345794678, 0.4974113404750824, 0.6299436092376709, 0.0464291013777256, -0.40456366539001465, ...
def credential _ key ( self, credential _ key ) : self. _ credential _ key = credential _ key
[ 0.1066397950053215, -0.5878164172172546, -0.2706403434276581, 0.37506505846977234, 0.6560375094413757, 0.8645689487457275, 0.136204332113266, 1.5297125577926636, -0.5900386571884155, 0.26888343691825867, -1.112202525138855, 0.5551045536994934, 0.33911243081092834, 1.1094882488250732, -0....
def count _ results ( data, item = true ) : results _ count = defaultdict ( int ) if item : for i in data : results _ count [ i. value ] + = 1 else : results _ count = counter ( data ) return results _ count
[ -0.2167442888021469, 0.9961848258972168, 0.4006142318248749, -0.22507964074611664, 0.7729822993278503, -0.32939454913139343, 0.6312779784202576, 0.3353886008262634, 0.0662795901298523, -0.44993558526039124, -1.3260794878005981, -1.206053376197815, 0.20473547279834747, 0.19513578712940216, ...
def projectentity ( entity, fields ) : # pragma : no cover. entity _ info = { } for field in fields : if hasattr ( entity, field ) : entity _ info [ field ] = getattr ( entity, field ) else : entity _ info [ field ] = none entity _ info ['id'] = entity. key. urlsafe ( ) return entity _ info
[ -0.015835151076316833, 0.09742514044046402, 0.23575899004936218, -0.9641126394271851, 0.4218136966228485, -0.17847870290279388, -0.8002300262451172, -0.20911617577075958, -0.9528160691261292, 0.7091509699821472, -0.45270073413848877, -0.8110803365707397, 0.6640016436576843, 0.1096731722354...
def rmdir ( self, recursive = true ) : try : assert self. is _ dir ( ) except assertionerror : raise notdirectoryerror self. _ accessor. rm ( self, recursive = recursive )
[ -0.6495282053947449, 0.3398033380508423, 0.5006372928619385, 0.9345776438713074, -0.11666836589574814, 0.31722235679626465, 1.323077917098999, 0.2794496715068817, 0.30447354912757874, -1.0674457550048828, 1.058058261871338, 0.435768187046051, 0.0009853574447333813, 1.126239538192749, -0....
def peel _ in _ small ( self, peeled _ branch, peel _ off _ of, peeled _ side, small _ switch ) : is _ small _ br _ collapsed = self. is _ branch _ collapsed ( peeled _ branch ) is _ large _ br _ collapsed = self. is _ branch _ collapsed ( peel _ off _ of ) if not is _ large _ br _ collapsed : # if the large branch was...
[ 0.0018282238161191344, 0.3139718770980835, 0.9344963431358337, -0.5848838090896606, -0.8040336966514587, 0.04357264190912247, -0.12299688160419464, 0.044335898011922836, 0.8726438879966736, -0.5772013068199158, -0.5068178176879883, -0.7291879057884216, -0.43716534972190857, 0.1943032145500...
def test _ atomic _ language _ enumeration _ 2 _ nistxml _ sv _ iv _ atomic _ language _ enumeration _ 3 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - enumeration - 3. xsd ", instance = " nistda...
[ -0.48600050806999207, -0.502785861492157, 0.5808482766151428, 0.7253166437149048, -0.3079242706298828, 0.5718350410461426, -0.1766328513622284, 0.355553537607193, 0.749772310256958, 1.3847851753234863, -0.11386286467313766, 0.11144571006298065, 0.36266329884529114, -0.5302810668945312, 0...
def single _ epoch _ tf _ source ( epochs, inv, src, label ) : snr = 1. 0 lambda2 = 1. 0 / snr * * 2 method = " dspm " # use dspm method ( could also be mne or sloreta ) frequencies = np. arange ( 8, 13, 1 ) stcs = apply _ inverse _ epochs ( epochs, inv, lambda2 = lambda2, method = method, label = none, pick _ ori = no...
[ -0.46894529461860657, 0.4728047549724579, 0.3965088725090027, -0.7285463809967041, -0.6275043487548828, -0.4242950975894928, 0.32072484493255615, 0.9184046387672424, 0.1833970993757248, 0.8703906536102295, -0.30343300104141235, 0.1512323021888733, -0.2735573649406433, -0.3316643238067627, ...
def enqueue ( self, item ) : self. _ items. append ( item )
[ -0.30450040102005005, -0.03914347290992737, 0.25151804089546204, 0.2115534245967865, 1.2770973443984985, 1.115788221359253, -0.9914699792861938, -0.08452963829040527, 0.1259445697069168, -0.21791580319404602, -1.1355451345443726, 0.6562582850456238, 0.01623081974685192, 0.3453437387943268,...
def kind _ list ( self ) : qc = self. clone ( ) kind _ list = [ ] while true : kind = qc. kind _ first ( ) if kind is none : break kind _ list. append ( kind ) qc. pop _ gate ( ) return kind _ list
[ 0.9279415607452393, 0.013680720701813698, 0.48876965045928955, 0.6654490232467651, 0.05710523575544357, 0.22103820741176605, -0.4507805109024048, -0.26934748888015747, 0.5708712339401245, 0.9905614256858826, -0.42642101645469666, 1.404989242553711, -1.111564040184021, 0.919240415096283, ...
def createindex ( self, prefix, name, author, comment = " automatically created index ", remote _ addr ='127. 0. 0. 1') : url = self. env. config. get ( glossary _ config _ section,'rebuild _ url') or glossary _ rebuild _ url text = " = % s % s = \ r \ n [ % s rebuild ] \ r \ n " % ( prefix, name, self. env. href. wiki...
[ -0.22013014554977417, -0.7421571612358093, 0.5941007733345032, -1.000622034072876, 0.1629195213317871, 0.5513460636138916, -0.4137914776802063, 0.49676063656806946, -0.1311938613653183, 0.0714154914021492, -1.2384551763534546, 0.6888463497161865, -0.7939367890357971, -0.8672881722450256, ...
def draw ( self ) : if len ( self. deck _ of _ cards ) > 0 : return self. deck _ of _ cards. pop ( ) else : return none
[ 0.47014889121055603, 0.6230723857879639, 0.8403360843658447, -0.562000036239624, 0.28086599707603455, -0.5501142144203186, -1.0664788484573364, -0.09391143918037415, 0.28269606828689575, -0.7267931699752808, 0.7699229121208191, -0.06877357512712479, -0.5409805774688721, -0.4952219426631927...
def check _ any _ free _ step _ limited ( self ) : flag = false for par in self. free _ pars ( ) : flag | = self. check ( par, " step _ limited " ) return flag
[ -0.0037090156693011522, 0.13751530647277832, 0.5405119061470032, 1.2770839929580688, -0.33867207169532776, 0.5448101162910461, -0.7347548007965088, -0.10841703414916992, -1.1133383512496948, -0.7679762840270996, -0.22261781990528107, -0.2826232612133026, -0.7309689521789551, 1.810352683067...
def _ get _ batch ( self, batch _ size, support _ size = 2, train = true ) : if train : paths = self. paths [ : self. train _ len ] else : paths = self. paths [ self. train _ len : ] if batch _ size is none : batch _ size = len ( paths ) imgs0 = [ ] imgs1 = [ ] labels = [ ] for _ in range ( batch _ size ) : folders = n...
[ -1.2146507501602173, -0.5022713541984558, 0.9688077569007874, 0.0159580260515213, 0.09742344170808792, -0.20177896320819855, 0.6620102524757385, 0.40890249609947205, 0.49034419655799866, 0.4180392026901245, 0.13090622425079346, -0.22760072350502014, 0.603442907333374, 0.5085967183113098, ...
def hourly _ speed ( avs, maxs, mins, cur _ t, rise _ t, set _ t, trans _ t, offset = 2 ) : ct = convert _ string _ to _ hrs ( cur _ t ) sunrise = convert _ to _ dec _ hrs ( rise _ t ) sunset = convert _ to _ dec _ hrs ( set _ t ) dur = convert _ to _ dec _ hrs ( set _ t ) pkhr = sunrise + 0. 5 * dur + offset d _ spd =...
[ 0.165547713637352, -0.24033468961715698, 0.40242576599121094, 0.19684551656246185, -0.9832797646522522, 0.291348397731781, -0.9797353148460388, 0.1695168912410736, -0.5428524017333984, 0.595730185508728, -0.30486178398132324, 0.4738791286945343, 0.24054306745529175, -0.42022448778152466, ...
def get _ rootpaths ( ) - > dict : rootpath = {'rootpath': {'cmip6': [ str ( base _ dir /'data'/'timeseries'/'cmip6'), ] },'drs': {'cmip6':'default ', }, } return rootpath
[ 0.028340626507997513, 0.10195480287075043, 0.24305666983127594, 0.845937967300415, -0.4637937843799591, -0.6457853317260742, 0.11285877227783203, -0.25053873658180237, 0.3085908591747284, -0.19461317360401154, -0.4847770035266876, -0.4826497733592987, 0.09746288508176804, 0.378138393163681...
def onboard _ task _ delete ( context, task _ id ) : return impl. onboard _ task _ delete ( context, task _ id )
[ 0.49866390228271484, 0.5318825244903564, 0.3428295850753784, 0.7629182934761047, -0.45276519656181335, -0.28830260038375854, 0.7993658781051636, 0.28235727548599243, 0.12852664291858673, 0.8472425937652588, -0.33810707926750183, 0.439887672662735, 0.2903687059879303, 0.8556135296821594, ...
def test _ atomic _ qname _ enumeration _ 3 _ nistxml _ sv _ iv _ atomic _ qname _ enumeration _ 4 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - enumeration - 4. xsd ", instance = " nistdata / atomic ...
[ -0.6219965219497681, -0.5232680439949036, 0.5285475850105286, -0.08263197541236877, -0.33321279287338257, 0.21973085403442383, -0.33054208755493164, -0.7506385445594788, 0.5645275712013245, 0.260969877243042, -0.1860935240983963, -0.6616759896278381, -0.1896689236164093, -0.501359343528747...
def iter _ branches ( self ) : yield self for child in self. children : yield from child. iter _ branches ( )
[ 0.39641067385673523, -0.6681332588195801, 0.48921307921409607, 0.23185157775878906, 0.1404513418674469, 0.5421403050422668, 0.2345779985189438, -0.5262656807899475, -0.5025161504745483, -0.741944432258606, 0.1467076689004898, -0.465177446603775, -0.23585140705108643, 0.5717615485191345, ...
def rename ( self, name _ pairs ) : # refuse strings because str is an iterable that we do not handle. if isinstance ( name _ pairs, str ) : raise valueerror ( " changes must be iterable of string pairs : " + repr ( name _ pairs ) ) new _ instance = self. _ _ class _ _ ( [ ] ) name _ dict = dict ( ) for ( oldname, newn...
[ -1.2563517093658447, -0.42662960290908813, 0.6448006629943848, -0.15372847020626068, -0.9156044721603394, -0.18409405648708344, -0.3220175504684448, -0.6826328039169312, -0.7463394403457642, 0.1250879466533661, -0.5508882403373718, -0.0386037677526474, -0.10647130757570267, 0.0307131987065...
def get _ client _ login _ token ( http _ body ) : return gdata. gauth. get _ client _ login _ token _ string ( http _ body )
[ -0.8281604647636414, -0.9122481346130371, 0.15850676596164703, -0.3201338052749634, -0.504496693611145, 0.5126395225524902, -0.19133113324642181, -0.9121705889701843, -0.41838502883911133, 0.194217711687088, -0.5047561526298523, 1.2962223291397095, 0.1807848960161209, -1.5073699951171875, ...
def acquisition _ duration ( self ) : if self. module. device : self. _ settings. acquisition _ duration = self. module. device. sequencers [ self. output _ sequencer _ number ]. get ( f " integration _ length _ acq " ) return self. _ settings. acquisition _ duration
[ 0.25641608238220215, -0.3939947485923767, 0.2285746932029724, 0.5493223667144775, 0.1642911732196808, -0.04967968538403511, 0.7914645671844482, -0.4114232361316681, 0.6714861392974854, 0.7670520544052124, 0.08496347069740295, 0.8711696267127991, 0.09124261140823364, 0.3901199698448181, 0...
def billing _ address1 ( self ) : return self. _ billing _ address1
[ 0.06012401729822159, 0.04329615458846092, 0.46806493401527405, 1.6730985641479492, -0.046584393829107285, 1.0050448179244995, 1.2196499109268188, 0.9816446900367737, 0.35991019010543823, -0.25081226229667664, 0.1981884092092514, 0.8617175817489624, -0.25541457533836365, 0.4446886479854584,...
def run _ tidy ( args, queue, lock ) : while true : name = queue. get ( ) invocation = get _ tidy _ invocation ( name, args. inplace ) proc = subprocess. popen ( invocation, stdout = subprocess. pipe, stderr = subprocess. pipe ) output, err = proc. communicate ( ) with lock : if proc. returncode! = 0 : print (''. join ...
[ -0.20948553085327148, -0.33063840866088867, 0.8781014680862427, -0.8572355508804321, 0.13081654906272888, -0.3560229241847992, 0.040002916008234024, -0.5150184631347656, -0.784456193447113, -0.04123211279511452, -0.231068417429924, 1.0718772411346436, 0.06047435849905014, 0.845724105834960...
def main ( n _ hid = 500, batch _ size = 16, num _ epochs = 2, lr = 0. 01, seq _ len = 10, num _ inputs = 8000, testpct = 0. 01, length = 50, output _ file ='lstm _ gen. wav') : print "... loading data " data, data _ avg, data _ range = create _ dataset ( testpct, num _ inputs, seq _ len ) print "... building model " x...
[ 0.5158705115318298, 0.2593722939491272, 0.8530023097991943, -0.1936294287443161, -0.48349520564079285, 0.5576615929603577, 0.14543496072292328, 0.2184552103281021, -0.39186474680900574, -0.13077417016029358, -0.5233379006385803, 0.18989013135433197, 0.6866982579231262, 0.3919663429260254, ...
def process _ row ( row : list, value _ to _ index _ dict : dict, care _ about _ head _ to _ file : dict ) : headlines = [ ] for i in range ( 10 ) : try : headline = row [ value _ to _ index _ dict [ " input. input _ " + str ( i ) ] ] coherence = int ( row [ value _ to _ index _ dict [ " answer. q " + str ( i ) + " 0 "...
[ -0.4414737820625305, 0.14086422324180603, 0.6913324594497681, 0.05198727920651436, 0.20187287032604218, -0.17383679747581482, -0.3725162744522095, -0.29803141951560974, 0.02741781808435917, 0.4012540876865387, 0.11914314329624176, -0.4717708230018616, 0.09278781712055206, 0.191829636693000...
def test _ start _ asg _ scheduler ( aws _ region, tag _ key, tag _ value, result _ count ) : client = boto3. client ( " autoscaling ", region _ name = aws _ region ) launch _ conf _ name = " lc - test " + str ( randint ( 0, 1000000000 ) ) asg _ name = " asg - test " + str ( randint ( 0, 1000000000 ) ) launch _ asg ( a...
[ 0.4551708996295929, -0.3897777199745178, 0.5077496767044067, -0.3867783546447754, -0.7200051546096802, 0.10220739245414734, -0.1598668247461319, -0.17534826695919037, -0.16281458735466003, 0.52425616979599, -0.4228047728538513, 0.21364252269268036, 0.36475878953933716, 0.4800814986228943, ...
def load _ pkl _ data ( file _ path, folder = none ) : if " s3 : / / " in folder : bucket ='sota - mafat's3 = boto3. resource ('s3') print ( f " getting pkl s3 : { file _ path } " ) output = pickle. loads ( s3. bucket ( " sota - mafat " ). object ( f " { file _ path }. pkl " ). get ( ) ['body']. read ( ) ) return outpu...
[ 0.21820324659347534, 0.25663766264915466, 0.709516167640686, -0.8359562158584595, -0.8011087775230408, 0.7548430562019348, -0.4862155318260193, 0.5805470943450928, -0.16844454407691956, 0.3929656445980072, 0.15160857141017914, -0.725250244140625, -0.19599144160747528, -0.47109711170196533,...
def test _ atomic _ base64 _ binary _ pattern _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ pattern _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - pattern - 1. xsd ", instance = " ...
[ -0.1554708033800125, -0.4995548725128174, 0.43509024381637573, 1.2684420347213745, -0.022709481418132782, 0.0866881012916565, 0.8500030636787415, -0.10934340208768845, -0.22299575805664062, 0.7171746492385864, -0.562305212020874, 0.14508706331253052, -0.6917123198509216, 0.2556962966918945...
def makeapirequest ( valuesdict, referer = none ) : h = api _ headers if not referer is none : h ['referer'] = referer h ['cookie'] = http. getcookiesforurl ( base _ url ) req = http. request ( " https " + api _ url, values = valuesdict, cachetime = 0, immediate = true, headers = h ) response = re. sub ( r'\ n \ * / $ ...
[ -1.0592459440231323, -0.0024778200313448906, 0.7531512975692749, 0.191095232963562, -0.30083703994750977, -0.2227737456560135, -1.0765511989593506, -0.48119279742240906, 0.18689385056495667, 0.4792764186859131, 0.12404190748929977, 0.1944548636674881, 0.06887805461883545, 0.609999895095825...
def empty _ gpkg ( ) : return testdata _ dir / " empty. gpkg "
[ -0.25148308277130127, 0.31289955973625183, 0.36265289783477783, -0.21974298357963562, 0.8429722785949707, 1.6442383527755737, 0.44641825556755066, 0.1551426202058792, -0.3199100196361542, -0.46373534202575684, 0.6417407393455505, 0.6606485843658447, 0.09323183447122574, -0.3653779625892639...
def set _ y ( self, y ) : with self. lock : self. _ _ set _ y _ _ ( y )
[ -1.2716134786605835, -0.006213188171386719, 0.5217893719673157, 0.43258023262023926, 0.51433926820755, -0.3586888611316681, 0.6834728121757507, -1.1569387912750244, -0.3842983841896057, -0.7155467867851257, -1.1835871934890747, 0.6656601428985596, -0.22919660806655884, 0.2970436215400696, ...
def make _ image ( d ) : minx = np. min ( d ['x'] ) maxx = np. max ( d ['x'] ) miny = np. min ( d ['y'] ) maxy = np. max ( d ['y'] ) x _ edges, x _ centers = bin _ edges _ centers ( minx, maxx, 1 ) y _ edges, y _ centers = bin _ edges _ centers ( miny, maxy, 1 ) m, _, _ = np. histogram2d ( d ['y'], d ['x'], bins = ( y ...
[ -0.635208785533905, 0.3353857100009918, 0.37550368905067444, -1.4529635906219482, -0.34962815046310425, 0.0594429150223732, -0.508497416973114, -0.09153328090906143, -0.2623530328273773, 0.02230898104608059, 0.2706174850463867, 0.9755125045776367, 1.4702523946762085, -0.2953384816646576, ...
def setup ( self ) : self. _ setup _ function ( )
[ 0.029595259577035904, -0.11952096968889236, 0.08520511537790298, 0.56698077917099, 1.1667534112930298, -0.8339135050773621, 1.8721351623535156, 0.32994189858436584, -0.01853874698281288, -0.06246744841337204, 0.04515679553151131, 0.595831036567688, 0.4746057987213135, -0.2892368733882904, ...
def auto _ cancel ( * args ) : return _ ida _ auto. auto _ cancel ( * args )
[ -0.23060078918933868, -0.08856559544801712, 0.45002999901771545, 0.9438185691833496, -0.1199951097369194, -0.16928185522556305, 1.0859051942825317, 0.18646474182605743, -0.9203260540962219, 0.3213009238243103, -0.9464824795722961, -0.18213222920894623, 0.14774847030639648, -0.0514815337955...
def puts ( text, show _ prefix = none, end = " \ n ", flush = false ) : from fabric. state import output, env if show _ prefix is none : show _ prefix = env. output _ prefix if output. user : prefix = " " if env. host _ string and show _ prefix : prefix = " [ % s ] " % env. host _ string sys. stdout. write ( prefix + _...
[ 0.608853280544281, 0.416801393032074, 0.6646431088447571, 0.09412720054388046, -0.6052985191345215, -0.15305450558662415, -0.14480549097061157, 0.4241401255130768, -0.09724404662847519, 0.061338651925325394, 0.2822739779949188, 1.2481609582901, -0.055018600076436996, 0.3078303635120392, ...
def getlocalhostip ( ) : # to - do : will probably need to find better way to find out localhost # address. # find nameservers ns _ regex = re. compile ('nameserver \ s * (? p < ns _ ip > [ \ d \. \ : ] )') resolv, rc = execcmd ( ['cat / etc / resolv. conf | grep nameserver ', ], failonerror = false, useshell = true ) ...
[ -0.39077699184417725, -0.24089188873767853, 0.6391893029212952, -0.15978693962097168, -0.7052852511405945, -0.6059947609901428, 0.18414317071437836, -0.5308846831321716, 0.2171083241701126, 0.41275450587272644, 0.02176417037844658, -0.24927246570587158, -0.09944546967744827, -0.02050475217...
def test _ compute _ neuron _ and _ input _ count _ differ ( self ) - > none : random _ function = make _ random _ function ( [ # weights for the first neuron. 0. 4, 0. 5, # weights for the second neuron. 0. 6, 0. 7, # weights for the third neuron. 0. 8, 0. 9, ] ) dense _ layer = denselayer ( neuron _ count = 3, activa...
[ 0.6652377843856812, -0.13562272489070892, 0.6673072576522827, 1.1099114418029785, 1.2653075456619263, 0.27247560024261475, 0.8447979092597961, 0.05642452836036682, -0.15456640720367432, -0.3868093192577362, -0.410890132188797, -0.12924052774906158, -0.5882833003997803, 0.33477428555488586,...
def test _ atomic _ base64 _ binary _ white _ space _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ white _ space _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - whitespace - 1. xsd "...
[ -0.5191011428833008, -0.2858371436595917, 0.43988797068595886, 0.8612533211708069, 0.05870157852768898, -0.011185228824615479, 0.3886544108390808, -0.5947037935256958, 0.06433842331171036, 0.4805031418800354, -0.01597173884510994, 0.6451402306556702, -0.3620186150074005, 1.0921521186828613...
def _ _ init _ _ ( self ) : # read the csv files and process them. amd _ df = pd. read _ csv ( _ amd _ csv _ path ) nvidia _ df = pd. read _ csv ( _ nvidia _ csv _ path ) # drop the redundant index columns. amd _ df. drop ('unnamed : 0 ', axis ='columns ', inplace = true ) nvidia _ df. drop ('unnamed : 0 ', axis ='colu...
[ 0.46205660700798035, 0.513762354850769, 0.5781573057174683, 0.4685993790626526, 0.3201161324977875, 0.1725548952817917, 0.42312368750572205, -0.17079982161521912, -0.6219861507415771, 0.4450710415840149, 0.21983441710472107, 0.9317751526832581, 0.23393546044826508, -0.05078109726309776, ...
def cat2hash ( category ) : return hashlib. md5 ( category. encode ('utf - 8') ). hexdigest ( )
[ 0.4132525324821472, -0.16730917990207672, 0.21110156178474426, -0.5246950387954712, -0.8120142817497253, 0.8666744828224182, -0.8825349807739258, -0.20761246979236603, -0.3876156210899353, 0.26466134190559387, -0.36240479350090027, -0.28033092617988586, 0.4011896848678589, -0.8277967572212...
def queue _ notification ( self, notification _ type, message ) : raise notimplementederror ( )
[ 0.043469518423080444, 0.11655181646347046, 0.5969707369804382, 1.0224992036819458, 0.8573281168937683, 0.2677372694015503, -0.16433019936084747, -0.47124871611595154, -0.4459053575992584, 0.5603659152984619, -0.1777808666229248, 0.6894516944885254, 0.1873764842748642, 1.1848939657211304, ...
def test _ atomic _ qname _ max _ length _ 4 _ nistxml _ sv _ iv _ atomic _ qname _ max _ length _ 5 _ 4 ( 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.33058539032936096, -0.3586128354072571, 0.16636675596237183, -0.0006568694370798767, -0.6791471242904663, 0.007344206795096397, -0.24831920862197876, -0.9099588990211487, 0.13836930692195892, 0.4266473650932312, -0.6459927558898926, -0.37357497215270996, -0.39819809794425964, 0.051472678...
def valid _ files ( parsed _ args, * * _ ) : config. config ['arg'] = parsed _ args cfg = config. get _ cfg ('edit ', defaults ) root = cfg ['lexor'] ['root'] paths = cfg ['edit'] ['path']. split (':') choices = [ ] for path in paths : if path [ 0 ] in ['/ ', '.'] : abspath = path else : abspath ='% s / % s'% ( root, p...
[ 0.1122351810336113, -0.8859097957611084, 0.7535628080368042, 0.5532297492027283, 0.4344293177127838, 0.3348748981952667, -0.045099448412656784, 0.44597676396369934, -0.5047422051429749, 0.4722118079662323, 0.21399356424808502, -0.1362643986940384, -0.16727621853351593, 0.5688508749008179, ...
def constant _ mass _ to _ light _ ratio _ tag ( self ) - > str : if self. constant _ mass _ to _ light _ ratio : return f " _ _ mlr _ { conf. instance ['notation'] ['setup _ tags'] ['mass'] ['constant _ mass _ to _ light _ ratio'] } " return f " _ _ mlr _ { conf. instance ['notation'] ['setup _ tags'] ['mass'] ['free ...
[ 0.7190626859664917, -0.6685379147529602, 0.43264639377593994, -0.852187991142273, -0.48296189308166504, 0.2553471624851227, -0.3840818703174591, 0.11888662725687027, -0.4446026086807251, 0.5653456449508667, 0.4894157350063324, -0.3865501582622528, 0.30517223477363586, 0.7755232453346252, ...