text
stringlengths
25
2.19k
embedding
listlengths
768
768
def get _ region _ error ( self ) - > str : logging. info ( " get error message from'region / state'drop down list option. " ) return self. driver. find _ element ( * addaddresslocators. region _ error ). text
[ -0.043465111404657364, -0.1467137187719345, 0.3226187825202942, -0.4542332589626312, 0.6304133534431458, -0.06588499993085861, 0.6446190476417542, -0.5117811560630798, 0.8785117268562317, 0.36216896772384644, 0.5618849396705627, 0.16308677196502686, 0.025545885786414146, -0.168311819434165...
def api _ call ( self, method, url, data, status _ code, return _ jason = false ) : if method = = " post " : res = self. client. post ( url, data = json. dumps ( data ), content _ type ='application / json') elif method = = " get " : res = self. client. get ( url, query _ string = data, content _ type ='application / j...
[ -0.7039560675621033, 0.33631742000579834, 0.9467785954475403, -0.3518619239330292, -0.09367742389440536, 0.2749547064304352, -1.0346691608428955, 0.1382637768983841, -0.02858109399676323, 0.2065315544605255, 0.6318250894546509, 0.0018704375252127647, -0.6285091042518616, 0.0173678658902645...
def _ calculate _ pct _ flat ( cls, base _ amount, unit, value, qty ) : amt = 0. 0 charge _ const = additionalcharge. const if unit = = charge _ const. unit. flat : amt = value * qty elif unit = = charge _ const. unit. percentage : value = ( base _ amount * value ) / 100 amt = value * qty return helper. round _ off ( a...
[ 0.33002614974975586, -0.29983818531036377, 0.5230966806411743, -0.5091571807861328, -0.18693383038043976, 0.24625565111637115, 0.2882935702800751, -0.9651967287063599, 0.06939161568880081, -0.17832228541374207, 0.9730545878410339, -0.30172640085220337, -0.5346850752830505, 0.06698188930749...
def console _ get _ all _ by _ instance ( context, instance _ uuid ) : return impl. console _ get _ all _ by _ instance ( context, instance _ uuid )
[ -0.8119977712631226, -0.7263104319572449, 0.5031458139419556, 0.027306798845529556, 0.7946979999542236, -0.37622836232185364, 0.13032963871955872, -0.5694437623023987, -0.4492816925048828, 0.13812294602394104, 0.11581365019083023, 0.9521341323852539, 0.12411470711231232, -0.246064275503158...
def _ _ getitem _ _ ( self, pos ) : return self. _ tweets [ pos ]
[ -0.11650200933218002, -1.0587421655654907, 0.27058732509613037, -1.1253948211669922, -0.18239420652389526, -0.41217583417892456, 0.05447236821055412, -0.6439913511276245, -0.3959514796733856, -0.25560614466667175, -0.2800257205963135, -0.019662806764245033, 0.25988107919692993, -0.92263561...
def test _ peekleft ( ) : test _ list = deque ( ['a ','b ','c'] ) assert test _ list. peek ( ) = ='a '
[ 0.0051340670324862, 0.07559876143932343, 0.24431505799293518, -0.5335665941238403, 1.11503005027771, 0.15354573726654053, -1.0543216466903687, -0.38337138295173645, 0.6338469386100769, -0.1454273760318756, -1.5901744365692139, -0.16946926712989807, 0.35726845264434814, 1.0392063856124878, ...
def test _ are _ graphic _ variants ( self ) - > none : doc1 = self. nlp ( " that's two now! " ) doc2 = self. nlp ( " 2 too many " ) doc3 = self. nlp ( " one to remember " ) # " two " and " too " rhyme, so ( theoretically ) could be variants self. asserttrue ( self. px. are _ graphic _ variants ( doc1 [ 2 ], doc2 [ 1 ]...
[ -0.37800121307373047, 0.8082206845283508, 0.4040721654891968, 0.08849553018808365, -0.3202006220817566, 1.1146011352539062, 0.33220016956329346, -0.8641546964645386, 0.007523140870034695, -0.290383905172348, 0.13963116705417633, 0.23488694429397583, 0.004397563636302948, -0.258213281631469...
def s3 _ origin _ source ( self ) - > typing. optional [ " s3originconfig " ] : return self. _ values. get ('s3 _ origin _ source')
[ 0.8457686901092529, -0.18440108001232147, 0.4186975359916687, 0.0060585574246943, -0.0798492282629013, 1.7438606023788452, 0.2867378294467926, 1.2256089448928833, 1.251940131187439, 0.15314032137393951, -1.241592288017273, 0.505151093006134, 0.04099561274051666, -0.9881652593612671, -0.2...
def apply _ brief ( left, right, descriptor _ size, num _ elements ) : # todo : apply brief descriptor on both images. you will have to convert the brief feature vector to a int64. extractor = brief ( descriptor _ size = num _ elements, patch _ size = descriptor _ size, mode ='normal') left _ rows, left _ cols = left. ...
[ 0.40710732340812683, -0.27428537607192993, 1.1766055822372437, -1.117126703262329, -0.22105705738067627, -0.586824357509613, -0.4960881769657135, -0.05254995450377464, -0.09661012142896652, 0.5228011608123779, 0.15320752561092377, 0.8183220624923706, 0.26722535490989685, 0.6986525654792786...
def _ _ init _ _ ( self, db _ name, db _ host, db _ port, db _ user, db _ password, db _ ssl _ cert, db _ ssl _ key ) : self. conn = psycopg2. connect ( dbname = db _ name, user = db _ user, password = db _ password, host = db _ host, port = db _ port, sslcert = db _ ssl _ cert, sslkey = db _ ssl _ key ) self. cursor =...
[ 0.5964190363883972, 0.3377012312412262, 0.7868050932884216, 1.0314565896987915, 0.2695915997028351, -0.27824148535728455, -0.4089398682117462, 0.5801387429237366, -1.2859774827957153, -0.12187477946281433, 0.1600603461265564, -0.3637937605381012, -0.42583903670310974, 0.9791772365570068, ...
def parse ( request ) : params = { } def get _ params ( obj ) : if obj : for key, val in obj. items ( ) : if key. lower ( ) in layer _ query _ params _ map. keys ( ) : value = str ( val ) if value! = " " : params [ key. lower ( ) ] = str ( val ) get _ params ( request. get ) get _ params ( request. post ) params = dyna...
[ 0.032367825508117676, -0.3411497175693512, 0.6782411336898804, 0.12737834453582764, -0.5285710692405701, 0.21250756084918976, -0.06740831583738327, -0.6098292469978333, -1.6440002918243408, -0.022010384127497673, 0.09480118751525879, -0.025281229987740517, 0.2104194164276123, 1.01912438869...
def finddart ( self, particle _ pairs = none, particle _ weights = none ) : if particle _ pairs = = none : particle _ pairs = self. particle _ pairs if particle _ weights = = none : particle _ weights = self. particle _ weights # make sure there's an equal number of particle pair lists # and particle weight lists asser...
[ -0.2279694825410843, -0.36100780963897705, 0.7668189406394958, -0.7353838086128235, 0.1987045854330063, 0.4769456088542938, -0.23313993215560913, 0.5387003421783447, -0.3102506101131439, 0.4742162823677063, 0.2799791991710663, -0.6377861499786377, -0.7198899388313293, 1.579818844795227, ...
def network _ get _ all _ by _ uuids ( context, network _ uuids, project _ only = " allow _ none " ) : return impl. network _ get _ all _ by _ uuids ( context, network _ uuids, project _ only = project _ only )
[ -1.0735313892364502, 0.46905314922332764, 0.12398374080657959, 0.9610785841941833, 0.5024365186691284, -0.19100216031074524, -0.24951237440109253, -0.25612443685531616, -0.07831230759620667, -0.3705103397369385, 0.43250277638435364, -0.528774082660675, -0.17681142687797546, -0.111367806792...
def get _ load _ from _ rest _ object _ func ( self, _ type : str ) - > callable [ [ any ], basenode ] : return self. _ get _ func ( _ type, self. _ load _ from _ rest _ object _ funcs )
[ -1.161896824836731, -1.1450241804122925, 0.572255551815033, 0.045063406229019165, 0.10602842271327972, -0.9024136662483215, 0.41491320729255676, -1.4168962240219116, -0.04500455781817436, -0.593617856502533, -0.5828578472137451, 1.379988193511963, 0.35413920879364014, -0.9578302502632141, ...
def all _ to _ string ( self ) : return self. _ _ str _ _ ( - 1 )
[ -0.9007188677787781, -1.3857471942901611, 0.5753257870674133, 0.06836890429258347, 0.8726876974105835, 0.5577716827392578, -0.9426814913749695, -0.6885877847671509, -0.07492385804653168, -0.10280248522758484, 0.3452426791191101, 0.2535562217235565, -0.06314200907945633, 0.31923383474349976...
def get _ device _ by _ zone _ id ( self, zone _ id : str ) - > dict : for device in self. devices. values ( ) : if zone _ id = = device. get ( " zone " ) : return device raise keyerror ( f " no device associated with zone { zone _ id } " )
[ 0.1843271553516388, -0.18586188554763794, 0.09061798453330994, 0.2985635995864868, -0.015676088631153107, -0.5519415736198425, 1.0190829038619995, -0.7152486443519592, 0.267626017332077, 0.17327100038528442, 0.32763737440109253, 0.6031591892242432, 0.12675121426582336, 1.1634835004806519, ...
def nns _ print ( sorted _ res, nr ) : for r in sorted _ res [ : nr ] : print str ( r [ 0 ] ) +'' + str ( r [ 1 ] )
[ -0.15953996777534485, -0.27369314432144165, 0.27866801619529724, -0.5035421848297119, 0.1487044245004654, -0.12024872750043869, -0.6637594699859619, -1.3733266592025757, -0.1195269450545311, -0.1969112753868103, -0.016798602417111397, 0.008144908584654331, -0.25603240728378296, 0.025653313...
def evaluate _ program ( ast ) : ro = { } if'defn'in ast [ 0 ] [ 0 ] : ro [ ast [ 0 ] [ 1 ] ] = ( ast [ 0 ] [ 2 ], ast [ 0 ] [ 3 ] ) result = _ evaluate _ program ( ast [ 1 ], { }, { }, ro ) else : result = _ evaluate _ program ( ast [ 0 ], { }, { }, ro ) return result
[ -1.2754311561584473, 0.2950367331504822, 0.6194167137145996, -0.7049511075019836, -0.5345417857170105, -0.9696977734565735, -0.04956367611885071, 0.2520921230316162, 0.21127185225486755, 0.5985627174377441, -0.5150530338287354, 0.08737459033727646, 0.5054758191108704, 0.5919446349143982, ...
def show _ logsmenu _ screen ( self ) : self. _ push _ prev _ screen _ to _ history ( ) self. logsmenu _ screen. ids. logsmenu _ items _ container. parent. scroll _ y = 1 self. sm. transition. direction ='left'self. sm. current ='logsmenu '
[ 0.25421929359436035, 0.5057503581047058, 0.8814979791641235, -0.25639548897743225, 0.7285770773887634, -0.11808886379003525, 0.14309825003147125, 0.09115812182426453, 0.22681966423988342, 0.20997211337089539, -0.23244065046310425, 0.8686057329177856, 0.5913547873497009, 0.7412205934524536,...
def add _ products _ to _ bag ( request, product _ id ) : shop _ product = get _ object _ or _ 404 ( product, pk = product _ id ) product _ quantity = int ( request. post. get ('quantity') ) redirect _ url = request. post. get ('redirect _ url') size = none if'product _ size'in request. post : size = request. post ['pr...
[ -1.0070667266845703, -0.6008517146110535, 1.0241979360580444, 0.9717530608177185, 0.6579644083976746, 0.6225277185440063, 0.497275173664093, -0.9294328689575195, 1.0361664295196533, -0.19357796013355255, -0.8819831609725952, 0.03577812761068344, 0.5355393886566162, 0.6940678954124451, 0....
def registereventhandler ( self, handler ) : self. _ eventhandler = handler
[ -0.298631876707077, 0.7026698589324951, 0.29439210891723633, 0.10334806144237518, 0.3595370948314667, 0.7078544497489929, -0.1677781045436859, 0.6753093004226685, -0.4605836272239685, -1.4951053857803345, -1.3556463718414307, 0.23190701007843018, 0.1675683856010437, 0.9912311434745789, 0...
def add _ course ( self, course ) : self. courses. append ( course )
[ -0.8483868837356567, -0.15309695899486542, 0.3367435038089752, -0.24349667131900787, 1.310887336730957, 1.5213842391967773, -0.9454131722450256, 0.3223017454147339, 0.8558554649353027, -1.0290099382400513, 0.744910717010498, 0.27836713194847107, 0.23395104706287384, 0.09197750687599182, ...
def _ create _ pending _ builds ( self ) : refs = { } ref _ branches = { } for repo in self : try : ref = repo. _ get _ refs ( ) max _ age = int ( self. env ['ir. config _ parameter']. get _ param ('runbot. runbot _ max _ age ', default = 30 ) ) good _ refs = [ r for r in ref if dateutil. parser. parse ( r [ 2 ] [ : 19...
[ -0.7332754731178284, -0.19535674154758453, 0.6484242677688599, -0.17990724742412567, 0.7086840271949768, 1.1104843616485596, 0.06882527470588684, -0.9719741344451904, -0.6269100904464722, 0.03530068323016167, 0.274640291929245, -0.534648597240448, -0.06309202313423157, 1.2370936870574951, ...
def put _ file ( self, local _ path, remote _ path, sudo = false ) : with self : if sudo : orig _ path = remote _ path remote _ path ='/ tmp /'+ remote _ path. replace ('/ ','-') with self. sftp ( ) as sftp : sftp. put ( local _ path, remote _ path ) if sudo : self. sudo ( ['mv ', remote _ path, orig _ path ] ) self. s...
[ 1.0997180938720703, 0.05668080225586891, 0.7301737666130066, -0.003920544404536486, 0.005712895654141903, 1.297073245048523, -0.2600254714488983, 1.790358304977417, -1.110708236694336, 0.03358258306980133, -0.5413286685943604, 0.42720234394073486, -0.1992117315530777, 0.07743993401527405, ...
def test _ increment _ self _ with _ division _ by _ scalar ( self ) : vector = vector ( [ 9, 12, 15 ] ) vector / = 3 self. assertequals ( vector. coordinates, [ 3. 0, 4. 0, 5. 0 ] ) self. assertraises ( zerodivisionerror, self. vector. _ _ idiv _ _, 0. 0 ) vector = vector ( [ 9, 12, 15 ] ) vector / = - 1 self. asserte...
[ -0.5750290155410767, -0.3568387031555176, 0.6803280115127563, 0.7609652876853943, 0.11080245673656464, 0.6594951152801514, 1.3620463609695435, -0.8687291145324707, 0.12171711772680283, -1.1917451620101929, -0.35012704133987427, -0.42395976185798645, 0.16297568380832672, 0.10786639153957367...
def get _ delta _ time ( previous _ time ) : delta _ time = time. time ( ) - previous _ time return delta _ time
[ 0.30064550042152405, 0.4404817223548889, 0.7860678434371948, -0.04355699568986893, 0.3970687985420227, 0.5168678760528564, 0.850204348564148, -0.21014295518398285, -0.19076094031333923, 0.44196122884750366, -0.11357634514570236, 0.07785910367965698, -0.4119555652141571, 0.6536998152732849,...
def displaytext ( self ) : if self. entrywidget. get ( ). strip ( ) = = " " : tkmessagebox. showerror ( " tkinter entry widget ", " enter a text value " ) else : tkmessagebox. showinfo ( " tkinter entry widget ", " searching for artist = " \ + self. entrywidget. get ( ). strip ( ) ) self. test3 ( )
[ 1.0130233764648438, 0.1720145046710968, 0.3345987796783447, -0.7232828736305237, -0.5314602851867676, 0.848970890045166, 0.3757563829421997, 0.4371567666530609, 0.2653713524341583, 0.07758495211601257, 0.6204037070274353, 0.5092727541923523, -0.9398698210716248, 0.9372327923774719, -0.99...
def _ bigcolq ( self, cols = none, geo _ unit = " ", geo _ filter = { }, apikey = none, * * kwargs ) : assert not ( cols is none ), " columns must be provided for query! " if len ( cols ) < 50 : print ( " tiny query! " ) return self. query ( cols, geo _ unit, geo _ filter, apikey, * * kwargs ) else : chunks = np. array...
[ -0.6483044624328613, 0.954404890537262, 0.549615204334259, -0.0052862917073071, -0.04235246032476425, -0.620267391204834, -0.160288468003273, -0.24551647901535034, -0.2404203861951828, 0.12699970602989197, 0.08478570729494095, -0.22254087030887604, -0.50581294298172, -0.7716203331947327, ...
def _ sector ( element, sector ) : if sector. code : sector _ element = etree. subelement ( element, " sector " ) sector _ element. attrib ['code'] = sector. code if not sector. vocabulary or sector. vocabulary = ='dac': sector _ element. attrib ['vocabulary'] ='1'elif sector. vocabulary = ='dac - 3': sector _ element....
[ 0.290419340133667, -0.23773729801177979, 0.6710607409477234, -1.2196851968765259, -0.7463291883468628, -0.03199194744229317, -0.4701196551322937, -0.5245217084884644, 0.8451159596443176, 0.1241246834397316, 0.5333561897277832, -0.24087819457054138, 0.09512288123369217, -0.22005298733711243...
def await _ full ( self ) : while self. items _ in _ queue < self. queue. maxsize : print ( " data queue being populated % i / % i " % ( self. items _ in _ queue, self. queue. maxsize ), end ='\ r ', flush = true ) time. sleep ( 1 )
[ 0.23861926794052124, 0.0010853272397071123, 0.5867629051208496, -0.9318690896034241, -0.0796969085931778, 0.0003517338482197374, -0.903657853603363, -0.17929694056510925, -0.710087776184082, -0.22974088788032532, -0.7485039830207825, 1.2191319465637207, 0.7121617197990417, 0.64621949195861...
def _ animate ( self, dt : float ) - > none : sprite : sprite for sprite in chain ( self. sprites, self. static _ sprites ) : sprite. cycle _ animation ( )
[ -1.0852758884429932, 0.9168965816497803, 0.329673707485199, 0.5544936060905457, -0.08663629740476608, 0.19088564813137054, 0.45523566007614136, -0.6511706709861755, -0.8566760420799255, 1.0534682273864746, -0.4313085377216339, 0.9291418194770813, 0.14878448843955994, 0.7854304313659668, ...
def test _ qlibrary _ instantiate _ route _ straight ( self ) : design = designs. designplanar ( ) try : routestraight except exception : self. fail ( " routestraight failed " ) try : routestraight ( design, " my _ name2 ", options = { } ) except exception : self. fail ( " routestraight ( design, \ " my _ name2 \ ", op...
[ 0.4175654351711273, 0.13793177902698517, 0.6070117950439453, -0.7218940258026123, -0.03555375337600708, 1.1566436290740967, 0.09458519518375397, -0.8794943690299988, -0.18087278306484222, -0.9093108177185059, -0.6267998814582825, -0.32465633749961853, -0.09195409715175629, 0.40773686766624...
def printvideofeed ( feed ) : for i, entry in enumerate ( feed. entry ) : # only select the first video if i > 0 : break return printvideo ( entry ) # case when the word queries doesn't produce any videos : return false
[ 0.11238326132297516, -0.24199071526527405, 0.37379375100135803, 0.48395705223083496, 0.6204477548599243, -0.5655580759048462, -0.2962953746318817, -0.7581060528755188, 0.68414306640625, 0.3072933256626129, 0.5355276465415955, 1.0225284099578857, -1.4676423072814941, 0.7976313233375549, -...
def edges ( self ) : return self. pmax - self. pmin
[ -0.5587882995605469, -0.4371265769004822, 0.43930739164352417, 0.23588761687278748, -0.3279324471950531, 1.045888900756836, -0.9834513664245605, 0.2729182243347168, 0.30785584449768066, -0.11643814295530319, -0.2891213893890381, -0.34630241990089417, -1.782568335533142, -0.5363030433654785...
def _ attributes _ i _ add _ cb ( self, key, cb, flow ) : # make sure interface is ready to use d = self. _ attributes _ t _ init ( key ) d ['attributes'] [ key ] ['callbacks']. append ( cb ) id = len ( d ['attributes'] [ key ] ['callbacks'] ) - 1 if flow = = self. _ down : self. _ attributes _ t _ call _ caller ( key,...
[ -0.6231069564819336, 0.34220656752586365, 0.7335132956504822, -0.08200591802597046, -0.3208927512168884, 0.04094554856419563, 0.4340848922729492, 0.04528072103857994, 0.7291649580001831, 0.39178091287612915, -0.1653820425271988, -0.33945736289024353, -1.1058517694473267, 0.556736946105957,...
def test _ should _ abort _ when _ cannot _ connect ( self ) : with hide ('everything') : execute ( subtask, hosts = ['nope. nonexistent. com'] )
[ 0.41123053431510925, 0.5258994102478027, 0.5124310851097107, 1.4268912076950073, 0.31124404072761536, 1.4476873874664307, 0.04528483748435974, -0.09980975091457367, -0.7348306179046631, 0.08040069043636322, 0.03058874048292637, 0.784709095954895, -0.13979126513004303, 0.11632172763347626, ...
def _ _ eq _ _ ( self, other ) : if self is other : return true elif ( type ( self ) is type ( other ) ) and ( len ( self ) = = len ( other ) ) : len _ error = " len ( self ) = len ( other ) but strucutres do not match. " \ " check < instance >. _ size for error or broken links. " probe _ self = self probe _ other = ot...
[ -0.5806959867477417, 0.25375789403915405, 0.81743985414505, -0.4130012094974518, 0.385768860578537, 0.10225575417280197, 0.8996489644050598, -1.0938931703567505, 1.0082014799118042, 0.3623090982437134, -0.7673511505126953, 0.26501622796058655, -1.033969759941101, -0.4027409553527832, 0.0...
def get _ ipython _ version _ number ( ) : ipyver _ str = get _ ipython _ version ( ) if ipyver _ str is none : return none return translate _ version _ str2int ( ipyver _ str )
[ -0.8368182182312012, -0.07435188442468643, 0.29878121614456177, -0.4198310971260071, -0.014321201480925083, -0.8778400421142578, 0.1510879248380661, -0.08602405339479446, 0.11861259490251541, -0.27098679542541504, -0.7910850644111633, 0.3357217609882355, -0.6746012568473816, -1.84080076217...
def pos _ apply ( dispatches, retry _ errors, retry _ timeout, verbose ) : key = lambda x : x [ 1 ] dispatches = sorted ( list ( dispatches ), key = key ) for pyexec, disp in groupby ( dispatches, key = key ) : vprint ( 0, " dispatching to { } ". format ( pyexec ) ) extra = [ ] if retry _ errors : extra. append ( " - e...
[ -0.031352002173662186, 0.08828634023666382, 0.753449559211731, 0.5284951329231262, 0.2756192684173584, -0.06892583519220352, -0.4537314772605896, 1.114916205406189, -0.25380679965019226, 0.19598129391670227, -0.1661139577627182, -0.4446744918823242, 0.8632898330688477, 0.42342230677604675,...
def station _ stats ( df ) : print ('\ ncalculating the most popular stations and trip... \ n') start _ time = time. time ( ) # display most commonly used start station most _ common _ start _ station = df ['start station']. mode ( ) [ 0 ] print ( " the most commonly used start station : ", most _ common _ start _ stat...
[ -0.4851779639720917, 0.08015767484903336, 0.7663623690605164, -0.12582632899284363, 0.1931268572807312, -0.015453004278242588, 0.9651020765304565, -0.37917718291282654, -0.6039469242095947, -0.06088851019740105, 0.07536148279905319, -0.10073693096637726, 1.0297037363052368, 0.6947057843208...
def indices _ from _ xy ( self, x, y, as _ tile = false ) : row _ is, col _ is = super ( ). indices _ from _ xy ( x, y ) if as _ tile : return [ self. tile _ from _ rc ( r, c ) for r, c in zip ( row _ is, col _ is ) ] else : return row _ is, col _ is
[ -0.8238414525985718, -0.11269295960664749, 0.4921429753303528, 0.034018389880657196, -0.3190433979034424, -0.48965543508529663, -0.36285799741744995, -0.5932840704917908, 0.22422216832637787, 1.26592218875885, 0.25319960713386536, 0.3862830698490143, 0.22634732723236084, -0.143784999847412...
def is _ passive ( self, verb ) : if len ( list ( item for item in verb. rights if item. dep _ in self. subject ) ) = = 0 : return false else : return true
[ -0.5860172510147095, -0.41635072231292725, 0.7707377076148987, 0.28212490677833557, -0.44690150022506714, 0.40108636021614075, -1.347883939743042, 0.4421510398387909, 0.0034809871576726437, 0.4039802551269531, 0.03403973579406738, -0.2543078660964966, -1.6824641227722168, 0.871821463108062...
def test _ cant _ get _ branch _ invalid _ request ( self ) : res = self. client. post ('/ branch / get') self. assertequal ( res. status _ code, 405 ) res = self. client. delete ('/ branch / get') self. assertequal ( res. status _ code, 405 ) res = self. client. put ('/ branch / get') self. assertequal ( res. status _...
[ -0.06090088188648224, 0.33855146169662476, 0.9448699951171875, 0.7222054600715637, 0.5241779088973999, 1.0442824363708496, -0.28705695271492004, -0.1315368115901947, -0.5621805191040039, -0.9078841805458069, 0.3820536136627197, 0.8908347487449646, -0.49424880743026733, 0.32668226957321167,...
def fracfact ( gen ) : # recognize letters and combinations # # # # fixed for python 3. 7 by alfoa a = [ item for item in re. split ( r'\ - | \ s | \ + ', gen ) if item ] # remove empty strings c = [ len ( item ) for item in a ] # indices of single letters ( main factors ) i = [ i for i, item in enumerate ( c ) if item...
[ -0.21001416444778442, 0.016940537840127945, 0.5259638428688049, 0.36100712418556213, -0.8254231810569763, -0.18643447756767273, 0.6424625515937805, 0.005800440441817045, -0.4993269741535187, -0.027530914172530174, 0.6675944924354553, 0.3708754777908325, 0.18586112558841705, -0.022931605577...
def last _ sent _ messages _ to _ contact ( conn : sqlite3. connection, mac _ address, limit = 10 ) : statement ='select sent _ timestamp, received _ timestamp, receiver _ contact, name, content from sentmessage, contact where receiver _ contact =? and receiver _ contact = mac _ address order by sent _ timestamp desc l...
[ -0.019505638629198074, -0.3093273937702179, 0.6728121042251587, -1.141990065574646, 0.6893463134765625, -0.9982587695121765, 0.18841113150119781, -0.46683070063591003, -0.04523400217294693, 0.7706949710845947, 0.2736201286315918, -0.2909536063671112, -0.31988438963890076, -0.52369356155395...
def movement _ action ( ent : int, hover : hover, pos : position, velocity : velocity, max _ speed : float ) : target = hover. target drone _ pos = pos. center if distance ( drone _ pos, target ) < = 5. 0 : return actionresponse ( true, hoverstate. hovering ) dx = target [ 0 ] - drone _ pos [ 0 ] dy = target [ 1 ] - dr...
[ -0.19924654066562653, -0.6436485052108765, 0.5876484513282776, 0.24698270857334137, 0.4379981756210327, -0.35429060459136963, 0.07862626016139984, -0.505864143371582, 1.0071969032287598, 1.0449810028076172, -0.46311381459236145, -0.48951244354248047, 0.3138027489185333, 0.42287129163742065...
def prepareenvironment ( args ) : # load cloud shell api client = apis. getclientinstance ('cloudshell ','v1alpha1') messages = apis. getmessagesmodule ('cloudshell ','v1alpha1') operations _ client = apis. getclientinstance ('cloudshell ','v1') # ensure we have a key pair on the local machine ssh _ env = ssh. environm...
[ 0.24942445755004883, 0.5423415303230286, 0.8131282925605774, 0.03564291447401047, 0.5945523381233215, 0.4689135253429413, -0.34736135601997375, -0.4326573312282562, -0.8000535368919373, 0.8991270661354065, -0.6876991987228394, 0.8116673827171326, -0.3252717852592468, 1.276975154876709, 0...
def blitme ( self ) : if self. shop _ open : self. screen. blit ( self. shop _ background, self. shop _ background _ rect ) self. screen. blit ( self. exit _ icon, self. exit _ icon _ rect ) for i in range ( len ( self. shop _ items ) ) : self. screen. blit ( self. shop _ items [ i ] [ self. shop _ progress [ i ] ], se...
[ -1.1156830787658691, -0.14813683927059174, 0.5412612557411194, 0.2665237486362457, 0.11611083894968033, 0.5709676146507263, 0.46034854650497437, -0.2909528315067291, 0.1709173619747162, 0.30857136845588684, 0.4482681453227997, -0.26180973649024963, -0.31850090622901917, 0.05367616564035415...
def occupyflaskst ( ) : jobs = occupations. read _ occupations ( " data / occupations. csv " ) random _ occupation = occupations. choose _ from _ dict ( jobs ) return render _ template ( " tablified. html ", jobs = jobs, random _ occupation = random _ occupation )
[ -0.2875508964061737, 0.6508635878562927, 0.17701110243797302, -0.11715593934059143, 0.20275722444057465, 0.00999919418245554, 0.21909977495670319, 0.5843454003334045, -0.8232248425483704, -0.41316694021224976, 0.339657187461853, -1.1994438171386719, 0.7775826454162598, -0.7091425061225891,...
def _ parse _ algorithm ( algorithm ) : try : alg = integrity _ algs [ algorithm ] except keyerror : raise valueerror ('algorithm % r is not supported.'% algorithm ) return alg
[ 0.6786737442016602, 0.33361947536468506, 0.2715647220611572, -0.5020403861999512, -0.24984408915042877, -0.06603178381919861, -0.08990133553743362, 0.68441241979599, 0.547071635723114, 1.147742748260498, 0.368386447429657, 0.5950356125831604, -0.2749524712562561, 0.06743620336055756, 1.1...
def eliminate _ redundancy ( phrase ) : # init phrase _ aux = [ ] if phrase : phrase _ aux = [ phrase [ 0 ] ] # we loop in phrase for i in range ( 1, len ( phrase ) ) : if phrase [ i ]! = phrase [ i - 1 ] : phrase _ aux = phrase _ aux + [ phrase [ i ] ] return phrase _ aux
[ -0.20158995687961578, 0.11692234128713608, 0.7882945537567139, -0.47196394205093384, 0.7864736914634705, 0.34554094076156616, 0.20897740125656128, 0.6487542390823364, 1.392442226409912, 1.5062750577926636, -1.0377161502838135, 0.757542610168457, -0.9205073118209839, 0.7120502591133118, 0...
def post ( self, request, project ) : schema = { " type " : " object ", " patternproperties " : { " ^ [ 0 - 9a - f ] { 40 } $ " : { " type " : " object ", " required " : [ " name ", " chunks " ], " properties " : { " name " : { " type " : " string " }, " debug _ id " : { " type " : " string " }, " chunks " : { " type "...
[ -0.9660812020301819, -0.05810033902525902, 0.8238191604614258, 0.08580826222896576, 0.5940079092979431, -0.056823521852493286, 0.08305428922176361, -0.3767404556274414, -0.9478629231452942, 0.5349127054214478, -0.22026444971561432, -0.053185150027275085, -0.20730605721473694, 0.79146152734...
def gf _ factor _ sqf ( f, p, * * flags ) : lc, f = gf _ monic ( f, p ) if gf _ degree ( f ) < 1 : return lc, [ ] factors = [ ] for factor, n in gf _ ddf ( f, p, * * flags ) : factors + = gf _ edf ( factor, n, p, * * flags ) return lc, factors
[ 0.22157974541187286, -0.02003900147974491, 0.42624038457870483, 0.0432896725833416, 0.6620785593986511, -0.19385482370853424, -0.5461273193359375, -0.06298457086086273, -0.2479248195886612, 0.03654167428612709, -0.2520913779735565, 0.16645154356956482, -0.38763588666915894, 0.1163438633084...
def plot _ polygons ( self, polygons, colors, plot _ windows = 0 ) : if plot _ windows > 0 : # window _ plot modifies polygons / colors, lets make sure " the buck # stops here " ( so callers don't have to worry about it ). polygons = polygons. copy ( ) colors = colors. copy ( ) self. window _ plot ( polygons, colors, p...
[ -0.5486258864402771, -0.06695309281349182, 0.4352245330810547, 0.009747854433953762, -0.4698932468891144, 0.09075658768415451, 0.08210736513137817, -0.8820145726203918, 0.24666765332221985, -0.43363577127456665, -0.5392873287200928, 0.9068877696990967, 0.19771209359169006, -0.3173834085464...
def _ create _ or _ update _ virtualenv ( virtualenvs _ path, virtualenv _ name, requirements _ file ) : if not exists ( " { } / { } ". format ( virtualenvs _ path, virtualenv _ name ) ) : puts ( " virtualenv not found for { }, creating one. ". format ( virtualenvs _ path ) ) run ( " virtualenv { } / { } ". format ( vi...
[ 0.34220263361930847, -1.113634467124939, 0.6017109751701355, -0.24669770896434784, 0.7660049200057983, 0.5329722166061401, -0.05968732014298439, 0.4544593095779419, 0.23227627575397491, 0.6661226153373718, -0.4179924428462982, 0.1421416997909546, -0.28041061758995056, 0.4040612280368805, ...
async def test _ subscribe _ unsubscribe _ logbook _ stream _ device ( recorder _ mock : recorder, hass : homeassistant, hass _ ws _ client : websocketgenerator, device _ registry : dr. deviceregistry, ) - > none : now = dt _ util. utcnow ( ) await asyncio. gather ( * [ async _ setup _ component ( hass, comp, { } ) for...
[ 0.16190534830093384, 0.46173855662345886, 0.813478946685791, 0.21912363171577454, 0.7744412422180176, -0.40845030546188354, 0.11059368401765823, -0.5075439214706421, -0.502030611038208, -0.5781322121620178, -0.1379895657300949, 0.7262581586837769, -0.09636799246072769, 0.49067631363868713,...
def _ is _ element _ stale ( try _ element ) : try : try _ element. is _ displayed ( ) return false except staleelementreferenceexception : return true except nosuchelementexception : return true
[ -1.350058674812317, 0.3392912745475769, 0.5995181798934937, 0.6132290363311768, -0.11118555068969727, 0.19783195853233337, 0.12064365297555923, -0.42431727051734924, 1.0066301822662354, 0.11992156505584717, 0.24234004318714142, -0.11666303873062134, -0.763633668422699, 0.9441953897476196, ...
def _ attributes _ i _ is _ readonly ( self, key, flow ) : # make sure interface is ready to use d = self. _ attributes _ t _ init ( key ) # check if we know about that attribute if d ['attributes'] [ key ] ['mode'] = = final or \ d ['attributes'] [ key ] ['mode'] = = readonly : return true return false
[ -1.3960790634155273, -0.31783536076545715, 0.5449549555778503, -0.012828976847231388, -0.772154688835144, 0.022656871005892754, 0.494113951921463, 0.2527760863304138, -0.1942925751209259, 0.9562819004058838, 0.2482084184885025, 0.3130698800086975, -0.2854037284851074, 0.3107236325740814, ...
def do _ turn ( game ) : global operations operations. execute ( game ) # updates the strategy and execute the turn
[ -0.5962247252464294, 0.021064897999167442, 0.3917270004749298, 0.5874454975128174, 1.4231982231140137, -0.3911716639995575, 0.487711638212204, 0.12085898965597153, -0.11976047605276108, 0.5243244171142578, 0.41757750511169434, -0.7318002581596375, 0.11881464719772339, -0.9458432197570801, ...
def _ calcule _ demarrage ( tache : tache, edt : edt ) - > instant : fins _ prerequis = [ edt [ prerequis ]. fin for prerequis in tache. prerequis ] if fins _ prerequis : return max ( fins _ prerequis ) return 0
[ -0.7062517404556274, 0.3993965983390808, 0.6123244762420654, -1.2596244812011719, -0.8109129667282104, -0.1719270497560501, -0.7130461931228638, 1.1199264526367188, -0.9652008414268494, 0.7090756893157959, 0.34861472249031067, -0.4717779755592346, 0.2125583291053772, 1.0692834854125977, ...
def push _ back ( self, data ) : node = doublylinkedlistnode ( data ) if self. is _ empty ( ) : self. head = node else : current = self. head while current. next is not none : current = current. next current. next = node node. prev = current self. size + = 1
[ -0.2776040732860565, 1.5305087566375732, 0.7931544184684753, -0.42574071884155273, 0.1925603449344635, -0.44332700967788696, 0.39932864904403687, 0.7719781398773193, 0.9063701033592224, 0.5386322736740112, -0.25894269347190857, 0.39727798104286194, -1.7333111763000488, 0.007116241846233606...
def movestep ( self, sensor _ vals = none ) : if ( sensor _ vals ) : self. robot. getsensors ( sensor _ vals ) else : self. robot. getsensors ( ) move = self. nextmove ( ) self. getexploredarea ( ) if ( self. exploredarea = = 100 ) : return move, true else : return move, false
[ -0.987104058265686, 0.4669513404369354, 0.3436278998851776, 0.625951886177063, 0.199110746383667, -0.13899755477905273, -0.10015776753425598, -0.20169982314109802, 0.33732423186302185, -0.3932662308216095, 0.17844823002815247, -0.6583709120750427, 0.009162699803709984, 0.7982257604598999, ...
def compute _ tdbs ( self ) : if'tdb'in self. table. colnames : log. info ('tdb column already exists. deleting...') self. table. remove _ column ('tdb') if'tdbld'in self. table. colnames : log. info ('tdbld column already exists. deleting...') self. table. remove _ column ('tdbld') # compute in observatory groups tdbs...
[ -0.8764345645904541, 0.6525983810424805, 0.6919313669204712, -0.07513947039842606, 0.0904887318611145, 0.3854675590991974, 0.5067888498306274, -0.16348832845687866, -0.6812707781791687, 1.3366302251815796, 0.034212443977594376, 0.1208222359418869, 0.480107843875885, 0.5459522604942322, 0...
def add _ field _ to _ radar _ object ( field, radar, field _ name ='fh ', units ='unitless ', long _ name ='hydrometeor id ', standard _ name ='hydrometeor id ', dz _ field ='zc') : fill _ value = - 32768 masked _ field = np. ma. asanyarray ( field ) masked _ field. mask = masked _ field = = fill _ value if hasattr ( ...
[ 0.07309514284133911, 0.22027450799942017, 0.8207364082336426, -0.97376948595047, 0.2052449882030487, 0.9907253980636597, -0.3449592590332031, -0.45691993832588196, -0.0979054868221283, -0.19885878264904022, -0.7459825277328491, -0.10998672991991043, -0.11276537925004959, 0.1026599705219268...
def try _ lock ( self, key : keytype, lease _ time : float = none, timeout : float = 0 ) - > future [ bool ] : check _ not _ none ( key, " key can't be none " ) try : key _ data = self. _ to _ data ( key ) except schemanotreplicatederror as e : return self. _ send _ schema _ and _ retry ( e, self. try _ lock, key, leas...
[ -0.793240487575531, 0.8446320295333862, 0.724092423915863, 0.49418067932128906, -0.4850199818611145, -0.050699383020401, -1.166742205619812, -0.35483184456825256, 0.3506339490413666, -0.08555867522954941, -0.4565974175930023, 0.27236059308052063, -0.5287660360336304, 0.40117335319519043, ...
def vpnvserver _ authenticationradiuspolicy _ bindings ( self ) : try : return self. _ vpnvserver _ authenticationradiuspolicy _ binding except exception as e : raise e
[ -0.6099516153335571, -0.5554125905036926, 0.3144608736038208, 0.6670593023300171, -0.4534600079059601, 1.9468073844909668, -0.29312047362327576, -0.4269289970397949, 1.5773855447769165, 0.7487710118293762, -0.5201632976531982, 0.7714314460754395, -1.4823744297027588, -0.09429432451725006, ...
def return _ noun ( nominal _ group, adjective, determinant ) : # if nominal _ group is empty if nominal _ group = = [ ] or nominal _ group [ len ( determinant ) + len ( adjective ) : ] = = [ ] : return [ ] return [ " ". join ( nominal _ group [ len ( determinant ) + len ( adjective ) : ] ) ]
[ -0.3726425766944885, 0.0816861018538475, 0.27397987246513367, -0.10944667458534241, -0.23486129939556122, -0.06827165931463242, -1.3508681058883667, -0.8087224364280701, -0.024342870339751244, 0.8442327380180359, 0.5109838247299194, 0.7561160326004028, -0.4600093364715576, 0.17863912880420...
def test _ is _ javascript _ reversed ( self ) : self. assertequal ( reverse _ string ('javascript'),'tpircsavaj')
[ -0.3205733597278595, -0.34657955169677734, 0.14618392288684845, -0.36005300283432007, 0.7460106015205383, -0.067878857254982, -0.3284229338169098, 0.036458563059568405, 0.16616204380989075, 0.35743969678878784, -0.37815406918525696, 0.6938537955284119, -0.15033718943595886, -0.573604881763...
def fluxes ( h, hu, n, riemann _ solver = roe ) : nx = h. shape [ 1 ] - 4 hl, hr, hul, hur = getmusclreconstr ( h [ n, : ], hu [ n, : ] ) fs = np. zeros ( ( 2, nx + 1 ) ) for i in range ( nx + 1 ) : hs, us = riemann _ solver ( hr [ i ], hur [ i ], hl [ i + 1 ], hul [ i + 1 ] ) fs [ :, i ] = flux ( hs, us ) return fs
[ 0.032992277294397354, 0.3294774293899536, 0.5227134823799133, 1.1234872341156006, 0.35474810004234314, -1.0490117073059082, -0.014665146358311176, 0.19083993136882782, -0.5650331974029541, -0.8020448088645935, -0.5950194597244263, 0.3075987696647644, -0.6091073751449585, 0.6456546187400818...
def _ execute ( presto _ cur, presto _ stmt ) : presto _ cur. execute ( presto _ stmt ) return presto _ cur
[ -0.64490807056427, -1.0308504104614258, 0.47729775309562683, -0.054446376860141754, -1.1517387628555298, 0.20456114411354065, -1.0901907682418823, 0.3481791317462921, -1.0976027250289917, 0.4046196937561035, 1.1063026189804077, -0.08432544767856598, 0.1601623147726059, -1.3336807489395142,...
def generate _ label _ index _ dict ( conll _ file, column _ delimiter ='\ t ', column _ index = - 1 ) : basedir = os. path. dirname ( conll _ file ) label = get _ nested _ column ( conll _ file, column _ delimiter, column _ index ) label _ unnested = flatten _ nested _ list ( label ) label _ index _ dict = generate _ ...
[ -1.36465322971344, -0.40411990880966187, 0.7037898898124695, -0.5133165717124939, -0.43197956681251526, 0.301940381526947, 0.8624407649040222, 0.610343337059021, -1.1473578214645386, 0.549994945526123, -1.4057435989379883, -0.3538976311683655, 0.6320160627365112, -0.23099550604820251, 0....
def adjective _ pos ( sentence, word _ pos ) : # if it is the end of the sentence if len ( sentence ) - 1 < = word _ pos : return 1 # the case of'2 of them'if sentence [ word _ pos ] = ='of': return 0 # it is a noun so we have to return 1 if sentence [ word _ pos ] in resourcepool ( ). special _ nouns : return 1 # for ...
[ 0.05672558769583702, -0.5892297029495239, 0.692905604839325, -0.9655653834342957, -0.9397695064544678, -0.2876092493534088, -0.40310609340667725, 0.09262726455926895, -0.45261073112487793, 0.7036604881286621, 0.16246366500854492, 0.23703178763389587, -0.258820116519928, 0.29985055327415466...
def equal _ any ( * values ) : return impl. equal _ any ( * values )
[ -0.47948694229125977, -0.2318681925535202, 0.22548599541187286, 0.6761521100997925, 0.9815093874931335, -0.012585410848259926, -0.5798221230506897, -0.5858117341995239, -1.299961805343628, -0.6035733222961426, -0.442603200674057, -0.5671744346618652, -0.306036114692688, 0.2847444415092468,...
def get _ product _ config ( product _ name ) : try : product = product _ config. find _ one ( { " product _ name " : product _ name } ) product = json. loads ( dumps ( product ) ) del product [ " _ id " ] return product except exception as ex : raise exception ( " " )
[ -0.5582982897758484, 0.26557865738868713, 0.597089409828186, 0.43975546956062317, -0.28876015543937683, -0.2241870015859604, -0.33714765310287476, -0.8588124513626099, -0.3336681127548218, 1.7548214197158813, -0.7563577890396118, -0.002360763493925333, -0.2984897196292877, -0.4106850922107...
def is _ close ( x, y, tol = 0. 05 ) : return abs ( x - y ) < = tol
[ 0.32253193855285645, -0.2898249924182892, 0.6454429626464844, 0.4430846869945526, -1.791016697883606, 0.8246135711669922, -0.7575713396072388, -0.9311277270317078, -0.4080849289894104, 0.6104868054389954, 0.3771052062511444, 0.08032555133104324, 0.30165907740592957, -1.2904951572418213, ...
def gf _ reverse ( f ) : return gf _ strip ( list ( reversed ( f ) ) )
[ 0.11447636783123016, 0.526699423789978, 0.34783610701560974, -0.30083850026130676, 0.1889375001192093, -0.053180281072854996, -0.1980723887681961, 0.6115788817405701, -2.073495626449585, -0.28834235668182373, -0.06574469059705734, 0.4429956376552582, 0.4404481053352356, -1.0455217361450195...
def insert ( self, item, index = none ) : if index is none : index = 0 if index > = 0 and index < = len ( self ) : probe = self while index > 0 and probe. next _ is not self : probe = probe. next _ index - = 1 probe. next _ = node ( item, probe. next _ ) self. size _ inc ( ) else : raise indexerror ( " index outside of...
[ -0.6810211539268494, 1.589043140411377, 0.5982775092124939, -0.017292765900492668, 0.4542241394519806, 0.24263320863246918, 0.846923828125, -0.3381200134754181, 0.6335231065750122, 0.325379341840744, -0.5612335205078125, -0.29427430033683777, -2.004242420196533, -0.7514354586601257, 0.31...
def reraise ( exc, backend ) : new = copy _ exception ( exc, backend ) six. reraise ( exc. _ _ class _ _, new, sys. exc _ info ( ) [ 2 ] )
[ 0.6315891146659851, -0.4113507568836212, 0.5708352327346802, 0.4841594398021698, -0.24762772023677826, -0.6441552639007568, -0.4139035642147064, 0.15647312998771667, 0.20768526196479797, 0.4822521209716797, 0.11689683049917221, 0.8779867887496948, -0.20885668694972992, -0.1653839349746704,...
def plot _ confusion _ matrix ( cm, classes, normalize = false, title ='confusion matrix ', cmap = plt. cm. blues ) : plt. imshow ( cm, interpolation ='nearest ', cmap = cmap ) plt. title ( title ) plt. colorbar ( ) tick _ marks = np. arange ( len ( classes ) ) plt. xticks ( tick _ marks, classes, rotation = 45 ) plt. ...
[ -0.05014999210834503, 0.29046469926834106, 0.5832282900810242, -0.007353860419243574, -0.7831377387046814, 0.01833208091557026, 1.114176630973816, 0.23343490064144135, 0.4457409977912903, 0.36535078287124634, 1.0464520454406738, 0.3880392909049988, -0.3111880421638489, 0.15442919731140137,...
def _ set _ actionlist ( self, touches ) : if len ( touches ) = = 1 and isinstance ( touches [ 0 ], actionlist ) : self. _ actionlist = touches [ 0 ] self. reset ( ) elif isinstance ( touches, actionlist ) : self. _ actionlist = touches self. reset ( ) elif len ( touches )! = 0 : self. _ actionlist = actionlist ( self....
[ -1.121586799621582, 0.5081085562705994, 0.35824668407440186, 1.2964369058609009, 0.4558389484882355, -0.12469648569822311, 0.8371720910072327, -0.5489978194236755, 0.796104907989502, -0.0682627484202385, -0.5336092114448547, -0.4557749032974243, 0.11520831286907196, 0.021011602133512497, ...
def get _ throughput ( self, delta, dest _ adr = none ) : start _ time = none end _ time = none total _ recieved = 0. 0 output = [ ] for packet in self. packets : if dest _ adr is not none and packet [ 1 ]. dest _ adr = = dest _ adr and packet [ 1 ]. dest _ node = = dest _ adr : if start _ time is none : start _ time =...
[ -0.3921032249927521, 0.21033422648906708, 1.1152539253234863, -0.9996651411056519, -0.717308521270752, -0.30167195200920105, 0.7218457460403442, 0.2603621780872345, -0.20885352790355682, 0.9813691973686218, -0.1360766589641571, -0.05632951483130455, -0.5100650191307068, 0.0082534309476614,...
def is _ unique ( self ) - > series : return wrap _ s ( self. _ df. is _ unique ( ) )
[ -0.5623038411140442, 0.8351115584373474, 0.4496139883995056, 0.5526909828186035, 1.1234034299850464, -0.19056062400341034, -0.5373321175575256, -0.6056775450706482, 1.3143101930618286, -0.5090578198432922, 0.029575947672128677, 1.675999402999878, 0.0800275057554245, -0.8072155714035034, ...
def test _ version _ access ( self ) : this = parse _ version ( resto. _ _ version _ _ ) dev = parse _ version ('dev') self. asserttrue ( this > = dev )
[ 0.5607702136039734, -0.7268360257148743, 0.4454909563064575, 0.9292455315589905, 0.48413896560668945, 0.6435323357582092, 0.5982583165168762, -0.29663166403770447, -0.1811455488204956, -1.0476243495941162, -0.6258005499839783, 0.01582440733909607, 0.3490500748157501, -0.49077847599983215, ...
def test _ create _ arrangement _ instructions ( self ) : # creating an order for testing created _ order = self. create _ test _ order ( " will " ) url = reverse ( " lastrites : arrangements - instructions ", kwargs = { " order _ pk " : created _ order. id } ) data = { " instructions " : " buried ", " crematorium _ lo...
[ -0.4378245174884796, 0.28203096985816956, 0.6589458584785461, -0.2740269601345062, 0.5204582214355469, 0.7361741662025452, 0.8128771781921387, -0.10354936867952347, 0.4943317472934723, 0.2305857539176941, -0.47014206647872925, 0.01788773387670517, -0.09468675404787064, 0.10790535807609558,...
def save _ data ( self, file _ name, message _ for _ output, message _ for _ additional _ data, message _ down, complete _ data ) : # # local # with open ('/ mnt / d / 45. 76. 38. 24 / final _ site - project'+ file _ name + '. txt ','w') as output _ file : # vultr with open ('/ home / djangoadmin / final _ site - proje...
[ 0.10535960644483566, -0.08215324580669403, 0.7087569832801819, -0.135572150349617, 0.10034176707267761, 0.7452179193496704, 0.7740339040756226, 0.2524598240852356, -1.034116506576538, 0.44326260685920715, -0.1769600361585617, -0.05695382505655289, -0.42997241020202637, 0.6962748169898987, ...
def set _ name _ async ( self, name : optional [ str ] ) - > none : if name is none : name = " " self. _ function. create _ user _ var ( self, self. type, name )
[ -0.42460209131240845, 0.6327881217002869, 0.6308639645576477, -0.04505123943090439, -0.41293683648109436, -0.36906832456588745, 0.21173761785030365, -0.6240715384483337, -0.04081915691494942, 0.41499170660972595, -1.0846633911132812, 0.8327961564064026, 0.12820696830749512, 0.2667679488658...
def gf _ ddf ( f, p, * * flags ) : method = flags. get ('ddf') if method is none : method = flags. get ('method') try : if method is not none : ddf _ method = _ ddf _ methods [ method. lower ( ) ] else : # todo : use cross - over ddf _ method = gf _ ddf _ zassenhaus except keyerror : raise valueerror ( "'% s'is not a v...
[ -0.01976010575890541, 0.6740726232528687, 0.45414718985557556, 0.5085237622261047, 0.3347327411174774, -0.17586788535118103, 0.21419639885425568, -0.48573753237724304, -0.6384670734405518, -0.5475300550460815, 0.6369557976722717, 0.17449352145195007, -0.36552610993385315, 0.060968954116106...
def _ _ init _ _ ( self ) : self. stacka = [ ] self. stackb = [ ]
[ 0.4763146936893463, 0.4594897925853729, 0.3646787703037262, 0.8180035948753357, 0.9925457835197449, -0.6323435306549072, 0.5155379772186279, 0.38207000494003296, -0.6347144246101379, -0.03953949362039566, -0.8251032829284668, -0.45110419392585754, -0.08003389090299606, 1.699029803276062, ...
def get _ object ( self, object _ name ) : from noc. sa. models. managedobject import managedobject from django. db. models import q if object _ name. endswith ( ". json " ) and os. path. isfile ( object _ name ) : return jsonobject ( object _ name ) q = q ( name = object _ name ) if is _ int ( object _ name ) : q = q ...
[ 0.2580529749393463, -0.5811352729797363, 0.6979402899742126, 0.11214353144168854, -0.01705198548734188, 0.3793365955352783, -0.06173908710479736, -1.1083770990371704, 0.3664129972457886, -0.3886207938194275, 0.26509079337120056, 0.2859260141849518, 0.27654924988746643, -0.3129139840602875,...
def make _ table _ with _ year ( hlist, y _ list, title, color ) : if len ( hlist ) = = 0 : line ='' else : line ='< table border = 1 cellpadding = 5 style = " margin - left : auto ; margin - right : auto " > \ n'line = line +'< tr > < th style = " color :'+ color +'" >'+ title +'< / th > < th > predicted year < / th >...
[ 0.6301192045211792, 0.12133942544460297, 0.9879182577133179, 0.06570903211832047, -0.9915807247161865, 0.5407993793487549, -0.008885882794857025, 0.35167962312698364, -0.49567124247550964, 0.12511253356933594, -0.13514475524425507, 0.38302040100097656, 0.4016576409339905, 0.697181344032287...
def get _ common _ fields ( self, test _ type = [ ] ) : with open ( self. common _ fields _ path, " r " ) as cf _ json : common _ fields _ json = json. load ( cf _ json ) common _ fields _ list = list ( field. parse _ fields ( common _ fields _ json [ " fields " ] ) ) return [ each _ field for each _ field in common _ ...
[ -0.25077274441719055, -0.676628053188324, 0.48843905329704285, 0.08536459505558014, 0.5516176223754883, 0.40616363286972046, 0.6293535232543945, -0.3167986273765564, -0.03395784646272659, 0.5614910125732422, -0.9267309308052063, -0.1022111028432846, -1.4781278371810913, -0.0310153439640998...
def makegaussian ( size, fwhm = 3, center = none ) : x = np. arange ( 0, size, 1, float ) y = x [ :, np. newaxis ] if center is none : x0 = y0 = size / / 2 else : x0 = center [ 0 ] y0 = center [ 1 ] return np. exp ( - 4 * np. log ( 2 ) * ( ( x - x0 ) * * 2 + ( y - y0 ) * * 2 ) / fwhm * * 2 )
[ 0.44801872968673706, -0.3066330850124359, 0.6654715538024902, -0.6557199358940125, -1.0085666179656982, -0.42953431606292725, -0.4685622751712799, 0.16953161358833313, 0.6782569885253906, -0.029981905594468117, -0.6236937046051025, 0.3233674466609955, -0.24624896049499512, -0.0003332857158...
def _ _ init _ _ ( self, signal = none ) : self. signal : mysignal = signal handler. _ _ init _ _ ( self ) # if stream is none : # stream = sys. stderr # self. stream = stream
[ 0.8487914204597473, -0.9020289778709412, 0.46329325437545776, 0.6908392906188965, -0.7522169351577759, 0.019665120169520378, -0.20433536171913147, 0.39638519287109375, 0.2884221076965332, -1.4330931901931763, -0.7107124328613281, 0.5718846917152405, -0.3715144395828247, 1.539650321006775, ...
def save _ args ( self, trainer : pl. trainer ) : if trainer. is _ global _ zero : args = vars ( self. args ) json _ path = self. path / " args. json " json. dump ( args, open ( json _ path, " w " ), default = lambda o : " < not serializable > " )
[ -1.3242967128753662, -0.2630312144756317, 0.4916355311870575, -0.3987252712249756, 0.9957368969917297, 0.399649441242218, 1.0077331066131592, -0.060679059475660324, -0.612291693687439, 0.9762586951255798, -1.200324535369873, 0.17714345455169678, -0.5145705938339233, 0.9947274327278137, -...
def deleteselected ( self ) : selecteditems = self. tablewidget. selecteditems ( ) for item in selecteditems : self. tablewidget. removerow ( item. row ( ) )
[ -0.28400444984436035, -1.0586861371994019, 0.306730180978775, 0.5823479294776917, 0.5281325578689575, -0.6420584917068481, 0.4771009087562561, 0.5643039345741272, 0.31299033761024475, 0.13564518094062805, -0.25350940227508545, -0.2820660471916199, 0.2950740158557892, 0.4791220724582672, ...
def get _ status ( self ) - > googlecalendareventstatus : return googlecalendareventstatus ( self. _ data [ " status " ] )
[ 0.1921779364347458, -1.1600968837738037, 0.3044136166572571, -0.3228355050086975, -0.021106600761413574, 0.7519149780273438, -0.7078207731246948, 0.6672351360321045, 0.752334713935852, -0.7560818195343018, -0.5739275217056274, 0.9406862258911133, 0.06032032519578934, -0.4339331090450287, ...
def construir _ puntos _ modis ( self, proporcion = 0. 9 ) : pixels _ modis = self. _ get _ pixeles _ modis ( proporcion ) if pixels _ modis is not none : for p in pixels _ modis : self. pixeles _ modis. append ( punto ( p. wkt, self. fasa, self. faco ) ) return none
[ -1.100326418876648, -0.32071539759635925, 0.3553939461708069, 0.21156857907772064, 0.5764859914779663, -0.4096171259880066, -0.8395992517471313, 0.0867747962474823, 0.4934796988964081, 0.0823664590716362, 0.7558761239051819, -0.2753763794898987, 0.006748028565198183, 0.3863246440887451, ...
def write _ lammps _ data ( self, fname = none, * * kwargs ) : # keyword flags write _ bonds = kwargs. get ( " bonds ", false ) write _ angles = kwargs. get ( " angles ", false ) write _ dihedrals = kwargs. get ( " dihedrals ", false ) write _ impropers = kwargs. get ( " impropers ", false ) # meta info on system box =...
[ 0.47826752066612244, -0.4084413945674896, 0.9602959156036377, -1.2442715167999268, 0.17678922414779663, 0.7468459606170654, -0.37747517228126526, -0.8931593894958496, -0.7704221606254578, -0.5475420951843262, 0.1458836942911148, 0.41226351261138916, -0.2972096800804138, 0.14287497103214264...
def add ( self, obj _ idx, bbox ) : cls = none vel _ x = 0 vel _ y = 0 for frame in self. labels : labels = self. labels [ frame ] for box in labels : if int ( box [ 2 ] ) = = obj _ idx and float ( box [ 8 ] )! = 0 : cls = box [ 3 ] vel _ x = float ( box [ 8 ] ) vel _ y = float ( box [ 9 ] ) break if cls is not none : ...
[ -0.5177186131477356, 0.07535584270954132, 1.0424054861068726, 0.399455189704895, 0.09111255407333374, 0.10559652745723724, 0.26927584409713745, -0.615664005279541, 0.5832688212394714, -0.05336567386984825, 0.053476784378290176, 0.2771607041358948, -0.051259275525808334, 0.9806849360466003,...
def from _ ufsac _ to _ tsv ( xml _ file : union [ str, path ], conll _ file : union [ str, path ], datasetname : str, encoding : str = " utf8 ", cut _ multisense : bool = true, ) : def make _ line ( word, begin _ or _ inside, attributes ) : " " " function that creates an output line from a word. parameters - - - - - -...
[ 0.45823708176612854, 0.020412730053067207, 0.7796538472175598, -0.1928882896900177, -0.5614554286003113, -0.4481619596481323, 0.25861501693725586, 0.26161766052246094, 0.20316030085086823, 0.4199223518371582, -0.06091347336769104, 0.44975632429122925, 0.8449887633323669, 0.1321091055870056...