text
stringlengths
25
2.19k
embedding
listlengths
768
768
def starting _ signature ( self ) : return self. starting _ group or self. starting _ single
[ -0.46970731019973755, -0.45549696683883667, 0.5903568267822266, 0.6340371370315552, 0.4380533695220947, 0.46297726035118103, 0.4310592710971832, 0.44348961114883423, 0.08823506534099579, 0.07354666292667389, -0.03651709109544754, -0.22084398567676544, -0.45532622933387756, 0.59140032529830...
def gridon ( self ) : # noqa : n802 return ( self. _ gridon and ( self. _ has _ default _ loc ( ) or transforms. interval _ contains ( self. get _ view _ interval ( ), self. get _ loc ( ) ) ) )
[ 0.8076348900794983, 0.20023491978645325, 0.46481284499168396, 0.46853628754615784, -0.21308331191539764, -0.19662337005138397, -0.036442097276449203, 0.16602109372615814, 0.1653054803609848, -0.2211921066045761, -0.22475053369998932, 0.4204079508781433, -0.7817345857620239, 0.5676046013832...
def test _ cancel _ deposit _ only _ paid _ does _ not _ create _ transfer _ block ( self ) : self. assertfalse ( block. objects. exists ( ) ) event = baker. make _ recipe ('booking. future _ pc ', cost = 10 ) # deposit only paid dep _ paid _ booking = baker. make _ recipe ('booking. booking ', user = self. user, event...
[ 0.9643560647964478, 0.6840710639953613, 0.5364780426025391, 1.2211275100708008, -0.26655876636505127, 2.141066789627075, 0.5136877298355103, -0.0486784391105175, 0.09664499759674072, -0.6062774658203125, -0.35968759655952454, -0.41437089443206787, -0.0623527429997921, 1.445934772491455, ...
def search ( self, x _ matrix, y _ vector, classifier, parameters ) : numpy. set _ printoptions ( suppress = true ) self. total _ iterations = 1 for values in parameters. values ( ) : self. total _ iterations = self. total _ iterations * len ( values ) print ('recursive class : { } '. format ( self. total _ iterations ...
[ -0.6617302894592285, 0.47344332933425903, 0.6978196501731873, 0.5273778438568115, 1.0850615501403809, -0.4738985002040863, 0.46538978815078735, -0.1826750636100769, -0.9886069893836975, 0.16085393726825714, 0.2279108762741089, 0.4530835747718811, -0.2911713123321533, 0.9998446106910706, ...
def initialize _ game ( n, m, left ) : for i in range ( n ) : left. append ('t') for i in range ( m ) : left. append ('p') print " initial creatures list : ", left _ side
[ -0.6311845183372498, 0.5820516347885132, 0.5235227942466736, -0.641740083694458, 1.1113736629486084, 0.9927572011947632, -1.6099225282669067, -0.3047654926776886, -1.0864776372909546, 0.9742853045463562, -0.4940410554409027, -0.9949765205383301, -0.6509446501731873, 1.4217605590820312, -...
def _ _ graph _ settings ( self ) : if not self. graph _ settings _ top _ level _ window or not tk. toplevel. winfo _ exists ( self. graph _ settings _ top _ level _ window ) : self. c _ logger. info ( " starting to configure the graph " ) self. graph _ settings _ top _ level _ window = tk. toplevel ( self. main _ wind...
[ -0.5006523728370667, 0.354703426361084, 0.6206346154212952, -0.1681816726922989, -0.08548600971698761, -0.1790795773267746, 1.3234344720840454, -0.6266804933547974, -0.5845390558242798, 0.42554956674575806, 0.5711525082588196, 0.5900053381919861, -0.674856424331665, 0.43167293071746826, ...
def embedding _ ( self, val ) : raise attributeerror ( \ " attribute'embedding _'of tsne is not writable " )
[ 0.03725452348589897, 0.9795792698860168, 0.5456709861755371, 0.30443838238716125, -0.3400741517543793, 1.4290127754211426, 1.15121591091156, 0.6759098172187805, -0.2604087293148041, 0.22711743414402008, -0.19733838737010956, -0.6393952369689941, 1.3546112775802612, 0.26883092522621155, -...
def freezedicts ( obj ) : if isinstance ( obj, ( list, tuple ) ) : return type ( obj ) ( [ freezedicts ( sub ) for sub in obj ] ) if isinstance ( obj, dict ) : return frozenset ( six. iteritems ( obj ) ) return obj
[ -1.2059268951416016, 0.8026613593101501, 0.8082365393638611, -0.04735371842980385, -0.4683404862880707, 0.38164830207824707, 0.09395871311426163, -0.9291449189186096, 0.48330873250961304, -0.5728728175163269, 0.1064034253358841, -0.14934924244880676, -0.6439610719680786, -0.243698120117187...
def _ _ init _ _ ( self, * args ) : _ topods. topods _ shell _ swiginit ( self, _ topods. new _ topods _ shell ( * args ) )
[ -0.12171515822410583, 0.25542259216308594, 0.4459691047668457, 0.1394565850496292, -0.4349903464317322, 0.26920920610427856, 0.26817628741264343, 0.07822687178850174, 0.029476886615157127, -0.5668787956237793, -0.6543558835983276, -0.41480645537376404, 0.1167181208729744, 0.752772867679596...
def do _ select ( self, node _ id, * * kwargs ) : _ table = kwargs ['table'] if _ table = ='general': _ entity = self. dtm _ hardware. do _ select ( node _ id ) elif _ table = ='electrical _ design': _ entity = self. dtm _ design _ electric. do _ select ( node _ id ) elif _ table = ='mechanical _ design': _ entity = se...
[ -0.9394857287406921, -0.03062715195119381, 0.5388649106025696, -0.24611638486385345, 1.0385501384735107, -0.5152115225791931, -0.4023117125034332, -0.9240054488182068, -0.3305513262748718, 0.2540401518344879, 0.5567111372947693, 0.7398179173469543, 0.2737825810909271, 0.17305664718151093, ...
def computevaluefromqvalues ( self, state ) : " * * * your code here * * * " # print ( state ) def largest ( array, n ) : larg = array [ 0 ] # initialial value i = 1 # compare every element with while i < n : if array [ i ] > larg : larg = array [ i ] # current max i = i + 1 return larg qvalue = [ ] sets = self. getleg...
[ 0.0092861857265234, 0.14082495868206024, 0.6747894883155823, 0.10596856474876404, -0.22107701003551483, -0.12079489231109619, -0.20997469127178192, 0.5221934914588928, 0.6380566358566284, -0.25935524702072144, -0.34682872891426086, 0.5631685853004456, 0.8770337104797363, 1.0020153522491455...
def inconsistency _ degree ( knowledge _ base _ wc, clause ) : assert isinstance ( knowledge _ base _ wc, weightedknowledgebase ) r = 0 # just an initialisation l = 0 u = len ( knowledge _ base _ wc ) while l < u : r = ( l + u ) / / 2 # integer division print ('u = ', u,'l = ', l,'r = ', r ) union = [ list ( x ) for x ...
[ -0.35808345675468445, -0.12021691352128983, 0.5744664669036865, -0.09979679435491562, -0.1362144649028778, 0.5571700930595398, 0.5628359317779541, 0.6719731092453003, -0.07187344878911972, 0.6624822616577148, 0.12837634980678558, -0.4925812780857086, -1.803816556930542, 0.5929491519927979,...
def convert _ cv _ qt ( self, cv _ img ) : rgb _ image = cv2. cvtcolor ( cv _ img, cv2. color _ bgr2rgb ) h, w, ch = rgb _ image. shape bytes _ per _ line = ch * w convert _ to _ qt _ format = qtgui. qimage ( rgb _ image. data, w, h, bytes _ per _ line, qtgui. qimage. format _ rgb888 ) p = convert _ to _ qt _ format. s...
[ 0.6608864068984985, -1.2052063941955566, 0.6822182536125183, -0.23433785140514374, -0.6896715760231018, 0.23783276975154877, -0.21695071458816528, -0.5093351006507874, 0.6276006698608398, 0.30458566546440125, -0.056380871683359146, -0.13810044527053833, 0.05893799290060997, 1.0526461601257...
def timeslot ( self ) : return self. start _ time. time _ of _ day
[ -0.3073331415653229, -0.04530037194490433, 0.5410587191581726, -0.4303016662597656, -0.30289915204048157, 0.6963492631912231, 0.1012815311551094, -0.5172234773635864, -0.5269159078598022, 0.3755812346935272, 0.8582456707954407, -0.24047689139842987, -0.21565738320350647, -0.053457029163837...
def curl _ of _ curl ( self, fz, gtype ='tri ', btype = 2 ) : # vector laplacians can only be computed for assert ( self. make _ all _ operators ), " this mesh hasn't computed auxillary operators to calculate vor grad " if gtype = ='tri': # for the curl of curl, the initial fz is defined on the opposite points to the m...
[ -0.06563270837068558, -0.47549936175346375, 0.4929713010787964, -0.18527422845363617, -0.7735671997070312, 0.23757806420326233, 0.3396422266960144, -0.2669597268104553, 0.13656775653362274, -0.01891743764281273, 0.297814279794693, 0.29730603098869324, -0.8120589256286621, 0.739529490470886...
def _ _ port _ increment ( self ) : if self. _ _ ui _ update : value = self. _ _ default _ port for output in self. selected _ outputs : output. ui. port = value value + = 1 self. _ _ ui _ update = false self. _ _ port _ slider. set _ value ( self. output. ui. port, self. output. ui. port - self. _ _ default _ port ) s...
[ -0.43942341208457947, -0.4680958688259125, 0.6272605061531067, -0.3330252468585968, 0.12131495028734207, -0.12211235612630844, 1.493310570716858, -0.7867448925971985, -0.519501805305481, -0.2964962124824524, -0.4237242341041565, -0.3292640745639801, -0.39617404341697693, 0.1276053339242935...
def randomized _ range _ finder ( a, size, n _ iter, power _ iteration _ normalizer = " auto ", random _ state = none ) : random _ state = check _ random _ state ( random _ state ) # generating normal random vectors with shape : ( a. shape [ 1 ], size ) q = random _ state. normal ( size = ( a. shape [ 1 ], size ) ) if ...
[ 0.058820243924856186, -0.6007272005081177, 0.6378932595252991, -0.0024265702813863754, -1.3559763431549072, -0.08840736746788025, 0.34154707193374634, -0.4988959729671478, 1.4448622465133667, 0.22935177385807037, 0.7806589603424072, -0.12870687246322632, 0.27320602536201477, 0.222081705927...
def add _ command _ line _ arguments ( self ) : command _ line _ args _ list = get _ command _ line _ arguments ( ) # remove the first positional ini - file argument command _ line _ args _ list = command _ line _ args _ list [ 1 : ] self. argument _ list + = command _ line _ args _ list
[ -0.25363174080848694, -0.7739474177360535, 0.4682919979095459, 0.46780988574028015, 1.726093053817749, 0.09901917725801468, -1.013396978378296, 1.6039842367172241, -0.7765256762504578, -0.08053452521562576, -0.4375617802143097, -0.34974977374076843, -1.0335406064987183, -0.0462458655238151...
def run _ entropy ( self ) : try : mol = molecule. load _ structure ( self. box1. get ( ) ) except : showinfo ('notification ','file not found in the folder, downloading it from the pdb.') # for file availability try : try : molecule. download _ structure ( self. box1. get ( ). split ( '.') [ 0 ], ftype = self. box1. g...
[ -0.722054660320282, -0.5520987510681152, 0.7379796504974365, 0.1458573341369629, 0.7463613748550415, -0.16123151779174805, 0.9302528500556946, 0.5886243581771851, -0.8068669438362122, 0.836196780204773, -0.14156398177146912, -0.462662935256958, -1.0016496181488037, -0.4795997738838196, 0...
def test _ service _ support ( self ) : self. asserttrue ( self. service _ class. supports _ repositories ) self. asserttrue ( self. service _ class. supports _ post _ commit ) self. assertfalse ( self. service _ class. supports _ bug _ trackers ) self. assertfalse ( self. service _ class. supports _ ssh _ key _ associ...
[ -0.7029243111610413, 0.4582478702068329, 0.303403377532959, -0.019076023250818253, 0.7412776947021484, 1.4540717601776123, -0.5884929895401001, 0.20450852811336517, -0.14091630280017853, -0.7855134010314941, -0.9157360196113586, -0.2679404318332672, -0.7257512211799622, 1.157668948173523, ...
def process _ content ( self, section ) : raise notimplemented
[ -0.49432894587516785, -0.7825937271118164, 0.6003701090812683, -0.002906324341893196, -0.0849107950925827, 0.32002687454223633, 0.04214593023061752, -0.9738801121711731, -0.6064204573631287, 0.06219310313463211, 0.028676576912403107, -0.41642045974731445, 0.7849564552307129, 1.042998075485...
def _ load _ default _ tests ( self ) : df _ log = self. log ['default _ tests'] for model _ path in self. project. config. models : # checking model functions without design tf _ name ='model _ { } '. format ( model _ path ) log = df _ log. create _ child ( tf _ name ) kwargs = dict ( log = log, model _ path = model _...
[ -0.2600630223751068, 0.7111316323280334, 0.4067057967185974, 0.0012337142834439874, 0.8103249669075012, 0.18823476135730743, 0.6808803081512451, -0.34770405292510986, -0.9754868149757385, -0.44492995738983154, -0.777276873588562, -0.6092045903205872, 0.4580841064453125, 0.9958885908126831,...
def unpacker ( * args, * * kwargs ) : return msgpack. unpacker ( * args, ext _ hook = _ decode _ ext _ type, raw = false, * * kwargs )
[ -0.32941457629203796, 0.36940714716911316, 0.7432717084884644, -0.11435218900442123, -1.1575453281402588, -0.8858836889266968, -0.273589551448822, 0.0339416079223156, -0.019585002213716507, -0.8660001754760742, -0.2720024287700653, 0.1359369307756424, -0.34300878643989563, 0.32927978038787...
def smith _ score ( data, numwin = 1, ) : data = np. atleast _ 2d ( data ) sums = data. sum ( axis = 0 ) cnum = data. shape [ 1 ] in _ smith = np. zeros ( cnum, dtype = bool ) m = condcalcs. pairwise _ scored _ matrix ( data ) smith = condcalcs. smith _ set ( vm = m ) smith = list ( smith ) in _ smith [ smith ] = true ...
[ -0.14626064896583557, -0.1930253505706787, 0.5102074146270752, -0.14406542479991913, -0.5194737315177917, -0.44537246227264404, 0.8384159803390503, -0.1666790097951889, 0.3274441063404083, 0.7228559255599976, -0.4819597899913788, 0.8980768322944641, -0.03787556663155556, 0.0713736265897750...
def calculations ( self ) : return { k : v for k, v in self. fields. items ( ) if v. calculation is not none }
[ 0.46634507179260254, 0.13569454848766327, 0.5786548256874084, -0.8338730335235596, -0.6707313060760498, -0.5167173147201538, -0.16851842403411865, -0.7824514508247375, -1.1293994188308716, -0.18311883509159088, -1.7646688222885132, -1.3976922035217285, -0.1712670773267746, 0.55009579658508...
def without _ tl ( self ) : return self. ci _ field [ 0 ] in ( 0x69, 0x70, 0x78, 0x79 )
[ 0.8370321989059448, -0.09132875502109528, 0.3217523396015167, -0.485940158367157, -0.24550995230674744, 0.8560769557952881, 0.9089862108230591, 0.06865300983190536, 0.11017610877752304, 0.8031535148620605, -0.41849252581596375, -1.1345593929290771, -1.6006635427474976, -0.21269118785858154...
def base36encode ( number ) : alphabet = " 0123456789abcdefghijklmnopqrstuvwxyz " base36 ='' sign ='' if number < 0 : sign ='-'number = - number if 0 < = number < len ( alphabet ) : return sign + alphabet [ number ] while number! = 0 : number, i = divmod ( number, len ( alphabet ) ) base36 = alphabet [ i ] + base36 ret...
[ -0.41044744849205017, -0.11093467473983765, 0.5746071934700012, 0.8618180155754089, -0.29894769191741943, 0.8377742767333984, -0.49899378418922424, -0.2686986029148102, 0.758767306804657, 0.369686484336853, -0.45544469356536865, -0.08848230540752411, -1.2112864255905151, -0.197652906179428...
def mean ( vec, wt = none ) : if wt is not none : validate _ input ( len ( vec ) = = len ( wt ), " vec and wt must have the same length " ) validate _ input ( all ( isinstance ( x, ( int, float, long ) ) for x in wt ), " wt must be numeric " ) indexes = [ i for i, val in enumerate ( vec ) if val is not none ] vec = [ v...
[ -0.5010142922401428, -0.32154580950737, 0.6386271715164185, -0.21009576320648193, -0.045275621116161346, 0.022105110809206963, 0.31354832649230957, -0.4650631844997406, 0.32791948318481445, 1.1280392408370972, -0.3106670379638672, 0.648082435131073, -0.5963921546936035, 0.3570312559604645,...
def _ nsec _ to _ usec _ round ( nsec : int ) - > int : return ( nsec + 500 ) / / 10 * * 3
[ 0.33640891313552856, 0.4644959270954132, 0.2971152663230896, -1.4362162351608276, 0.30965399742126465, -1.0602728128433228, 0.676156759262085, -1.1020281314849854, 0.08819888532161713, 0.4641777276992798, 0.08701541274785995, -0.13723339140415192, 0.05818432942032814, 0.3228895664215088, ...
def get _ most _ common _ words ( fdist, count ) : return fdist. most _ common ( count )
[ 0.7114017009735107, -0.07175349444150925, 0.21657152473926544, 0.8445694446563721, -0.16402138769626617, -0.738248884677887, -0.6253160834312439, 0.19077520072460175, -1.4112060070037842, 0.4883534610271454, 0.6673769950866699, -0.6372179985046387, 0.20055732131004333, 0.7992330193519592, ...
def randomstring ( stringlength ) : letters = string. ascii _ letters return''. join ( random. choice ( letters ) for i in range ( stringlength ) )
[ -0.2371540069580078, -0.7459413409233093, -0.25632229447364807, -1.2343521118164062, -0.04334757849574089, 0.6357256174087524, -0.6966290473937988, -0.8037305474281311, 0.6777169704437256, 0.2404981255531311, -0.3225181996822357, 0.44531601667404175, -0.995451807975769, -1.4643702507019043...
def url ( self, page = 1 ) : return config. url +'search?'+'& '. join ( [ key +'='+ str ( value ) for key, value in {'term': urllib. quote _ plus ( self. _ buildstring ( ) ),'pageidx': page,'pagesize': self. pagesize,'format':'json'if self. mode = ='object'else self. mode }. iteritems ( ) ] )
[ -1.3701136112213135, -0.15508756041526794, 0.6378418803215027, -0.684829592704773, 0.2918285131454468, 0.26876601576805115, -0.7405431866645813, 0.08532898873090744, -0.18980279564857483, 0.3887697160243988, -0.09436330199241638, -0.16000023484230042, -0.2653033435344696, 0.555675625801086...
def bypass _ deepcoaddid _ bits ( self, * args, * * kwargs ) : return 64 - ztfmapper. _ nbit _ id
[ -0.9996558427810669, 0.4789649248123169, 0.4391179084777832, 0.2868102788925171, -0.0011158182751387358, 1.2869378328323364, 1.5041561126708984, -1.2768410444259644, 0.3509058654308319, -0.8421749472618103, -0.4404469430446625, 1.4512455463409424, -1.0836081504821777, 1.0098628997802734, ...
def transforms _ tensorflowscorer ( model _ location, input _ columns, data, output _ columns, output _ data = none, model = none, * * params ) : entrypoint _ name ='transforms. tensorflowscorer'inputs = { } outputs = { } if model _ location is not none : inputs ['model'] = try _ set ( obj = model _ location, none _ ac...
[ 0.0909983292222023, -0.5722350478172302, 0.5483736395835876, -0.23016658425331116, -0.38857656717300415, -0.9508019685745239, 0.04059280827641487, -0.12958578765392303, -0.8160731196403503, 0.566386878490448, -0.058343201875686646, -0.34690287709236145, -0.20389290153980255, -0.14663618803...
def get _ column _ symbols ( self ) : column _ defs = self. column _ map. _ _ dict _ _ nd = column _ defs. copy ( ) ns = data _ algebra. env. simplenamespacedict ( * * nd ) return ns
[ -0.2048099935054779, -0.09117753803730011, 0.25560060143470764, 0.23464828729629517, -0.5329652428627014, -0.15238383412361145, 0.5658392310142517, -0.8782893419265747, -0.29607468843460083, -0.6650591492652893, -1.6956262588500977, 0.5761587619781494, 0.9048642516136169, 0.697544395923614...
def test _ stat _ nodata ( self ) : self. assertequal ( jc. parsers. stat. parse ('', quiet = true ), [ ] )
[ 0.9438336491584778, -0.229750856757164, 0.13189415633678436, -1.0861241817474365, 0.8271756172180176, 1.0024120807647705, -0.3765846788883209, -0.661600649356842, 0.26063141226768494, -1.5839163064956665, -0.9175882339477539, 0.14509420096874237, -0.0573764331638813, 1.1486577987670898, ...
def get _ region _ zone ( self, region, zone ) : try : # connect to api endpoint for regions path = ( " / v1 / regions / { } / zones / { }? version = { } & generation = { } ". format ( region, zone, self. cfg [ " version " ], self. cfg [ " generation " ] ) ) # return data return qw ( " iaas ", " get ", path, headers ( ...
[ -0.42835307121276855, -0.8841561675071716, 0.34576109051704407, -0.26016372442245483, -0.27946871519088745, -0.21099433302879333, -0.45001569390296936, -1.0794942378997803, 0.16708122193813324, 0.43626198172569275, 0.025618748739361763, 0.8656005859375, -0.5696313381195068, -0.101623348891...
def about ( ) : return render _ template ('about. html ', login _ session = login _ session )
[ 0.45014575123786926, -0.17640073597431183, 0.412087082862854, 0.7878119349479675, 0.1141645759344101, 0.13536511361598969, 0.09547241032123566, 0.8235827088356018, -0.09087471663951874, 0.32947656512260437, 0.625397801399231, -0.16977821290493011, 0.01715882308781147, 0.16120783984661102, ...
async def test _ verify _ signatures ( image _ config : imageconfig ) : # unsigned configurations should explicitly raise an exception. with pytest. raises ( nosignatureerror ) as exception : await image _ config. verify _ signatures ( ) assert str ( exception. value ) = = " image does not contain any signatures! " # s...
[ -0.13600902259349823, 0.6408133506774902, 0.30590522289276123, 0.5775259137153625, 0.7533702254295349, -0.38188883662223816, 0.48442110419273376, -0.08778978884220123, 0.4326306879520416, -0.20945174992084503, -0.957878828048706, -0.7957069277763367, 0.3918378949165344, 1.2712041139602661,...
def _ fetchmultiplequeues ( cls, queues, multiple, rpc = none ) : def resulthook ( rpc ) : " " " processes the taskqueuefetchqueuestatsresponse. " " " try : rpc. check _ success ( ) except apiproxy _ errors. applicationerror as e : raise _ translateerror ( e. application _ error, e. error _ detail ) assert len ( queues...
[ -0.10331126302480698, 0.08193422108888626, 0.6414626240730286, -0.0914088562130928, 0.023196736350655556, -0.012361455708742142, -0.9796699285507202, -1.3504422903060913, 0.4739154279232025, -0.24493004381656647, 0.5927229523658752, -0.346336305141449, 0.38787126541137695, 0.42791375517845...
def correlation _ to _ distance ( correlations ) : return np. sqrt ( 2 * ( 1 - correlations ) )
[ -0.6319670081138611, -1.18814218044281, 0.27404940128326416, -0.07156869024038315, 0.03904448077082634, -0.12211596220731735, 0.7929175496101379, 0.0029156941454857588, 1.1167670488357544, 0.39874985814094543, -0.1081826239824295, -0.29483890533447266, -0.9779278635978699, -0.3932161927223...
def convert _ global _ to _ internal ( self, pt ) : xval = pt - self. center #'cartesian'coordinates, rescaled to principal axes of ellipse x0 = np. dot ( xval, self. _ eigenvectors [ 0 ] ) * np. sqrt ( self. _ eigenvalues [ 0 ] ) x1 = np. dot ( xval, self. _ eigenvectors [ 1 ] ) * np. sqrt ( self. _ eigenvalues [ 1 ] ...
[ -0.31859102845191956, -0.511796236038208, 0.7901110053062439, -1.4180138111114502, -0.607515275478363, 0.7707988619804382, -0.06931466609239578, 0.004066370893269777, 0.29826200008392334, 0.539760410785675, -0.04940976947546005, 0.2299244999885559, -0.2213674932718277, -0.6091803312301636,...
def exclude _ file _ with _ extensions ( self, exclude _ file _ with _ extensions ) : self. _ exclude _ file _ with _ extensions = exclude _ file _ with _ extensions
[ 0.3800292909145355, -0.4605506956577301, 0.3189942240715027, 0.9675285220146179, -1.6776132583618164, 1.3552956581115723, 0.15849898755550385, -0.42998453974723816, -0.3741612136363983, 0.2268393486738205, -0.42756977677345276, -1.3675707578659058, -0.5684769153594971, 0.013455051928758621...
def test _ subscription _ api _ with _ wrong _ method _ type ( self ) : response = self. client. put ( self. end _ point, http _ authorization = " bearer { } ". format ( self. token ) ) self. assertequals ( response. status _ code, 405 )
[ 0.28032535314559937, 0.4461374282836914, 0.7295960187911987, 0.7838195562362671, 0.6142582893371582, 0.5238851308822632, -0.14378046989440918, -1.1489931344985962, -0.5310373306274414, 0.4952201545238495, -0.3552559018135071, 0.44726380705833435, -0.6654635071754456, 0.6003668308258057, ...
def add _ derived _ field ( self, name, function, units = none, description = none, vector _ field = false, force _ add = true ) : if name in self. field _ info : if force _ add : ftype = self. field _ info [ name ]. get ( " type ", " on - disk " ) if ftype in [ " alias ", " derived " ] : fl = self. derived _ field _ l...
[ 0.47919321060180664, 0.323025643825531, 1.0290203094482422, 0.17114649713039398, 0.6192197203636169, 0.9017574191093445, 0.29700782895088196, -0.4484464228153229, -0.5551281571388245, -1.1689380407333374, -0.8613479733467102, 0.24085010588169098, 0.2413579225540161, 0.7387957572937012, 0...
def configlevelsettings ( self, config _ file ) : if ( not self. configloadflag ) : self. config = self. appconfigobj. getconfig ( self. config _ dir, config _ file ) self. configloadflag = true if ( not self. arebasickeysavailableinconfig ( self. config ) ) : return try : self. config _ channels = set ( self. config [...
[ 0.3147362172603607, -0.041649654507637024, 0.7643783092498779, 0.10391775518655777, 0.15516306459903717, -0.12817564606666565, -0.1215965747833252, -0.3324746787548065, -1.4665958881378174, 0.9488444328308105, -0.28117549419403076, -0.08360929042100906, -0.4398669898509979, 1.3678907155990...
def _ does _ quack ( explanation ) : if not hasattr ( explanation, explainparams. method ) or not isinstance ( explanation. method, str ) : return false if not hasattr ( explanation, explainparams. id ) or not isinstance ( explanation. id, str ) : return false if not hasattr ( explanation, explainparams. model _ task )...
[ -0.7108891606330872, -0.03643503412604332, 0.5133798718452454, -0.03220115602016449, -0.4198858439922333, 0.03531087562441826, 0.8124791979789734, -0.05236021429300308, 0.7346311211585999, 0.013206487521529198, 0.18387466669082642, -0.42907464504241943, -0.09473518282175064, 0.983773767948...
def get _ run _ idx ( cake _ list, start _ idx ) : start _ char = cake _ list [ start _ idx ] end _ idx = start _ idx + 1 while cake _ list [ end _ idx ] = = start _ char : end _ idx + = 1 return end _ idx
[ -0.3896656036376953, -0.18016692996025085, 0.5828810930252075, -0.39253246784210205, -0.7033002376556396, -0.33159583806991577, 0.8090754151344299, 0.9935036897659302, -0.42112621665000916, 0.1669672727584839, -1.254171371459961, 1.999820351600647, -0.5792971253395081, -0.4776180684566498,...
def test _ get _ snapshot _ deps ( self ) : pass
[ -1.1237473487854004, 0.774635910987854, 0.3235745429992676, 0.7430471777915955, -0.19561968743801117, 0.09760810434818268, 0.7846628427505493, 0.003796484088525176, 1.163910984992981, -1.405596137046814, -1.4298571348190308, -0.6284554600715637, 0.36523211002349854, 0.09716968983411789, ...
def _ _ init _ _ ( self, strategy _ type = none, price _ type = none, price = none, rule = none, expiration = none, local _ vars _ configuration = none ) : # noqa : e501 # type : ( int, int, str, int, int, configuration ) - > none # noqa : e501 if local _ vars _ configuration is none : local _ vars _ configuration = co...
[ 0.6145058870315552, -0.32832062244415283, 0.43427297472953796, 0.4585168957710266, 0.580967128276825, -0.5938175916671753, -0.20457448065280914, 0.4773762822151184, 0.45106613636016846, 0.5747934579849243, -0.12359899282455444, 0.777980387210846, 0.27308738231658936, 0.1941680908203125, ...
def sparse _ to _ tuple ( sparse _ mx ) : def to _ tuple ( mx ) : if not sp. isspmatrix _ coo ( mx ) : mx = mx. tocoo ( ) coords = np. vstack ( ( mx. row, mx. col ) ). transpose ( ) values = mx. data shape = mx. shape return coords, values, shape if isinstance ( sparse _ mx, list ) : for i in range ( len ( sparse _ mx ...
[ -0.29268762469291687, 0.7807066440582275, 0.4595630168914795, 0.7315852642059326, -0.19911432266235352, -0.07063623517751694, -0.43525636196136475, 0.5133109092712402, 0.11078950017690659, 0.4092881679534912, -0.748674750328064, -0.25843968987464905, 0.24947981536388397, -0.282174885272979...
def wells _ per _ cell _ line ( cell _ lines, exclude _ outer ) : if len ( cell _ lines ) < = 1 : avail _ wells = len ( define _ treatment _ wells ( exclude _ outer = exclude _ outer ) ) avail _ wells _ per _ line = avail _ wells if len ( cell _ lines ) > 1 : avail _ wells = len ( define _ treatment _ wells ( exclude _...
[ -0.2735804617404938, 0.627638578414917, 0.3967917263507843, -0.0577717199921608, -0.6340206265449524, 0.34350892901420593, 0.7321227192878723, 0.10618952661752701, 0.20004308223724365, 0.1363574117422104, 0.015816278755664825, -0.21199358999729156, -0.10227565467357635, 1.0024394989013672,...
def load _ state _ dict ( self, state _ dict : dict ) - > none : raise notimplementederror
[ -0.5138850808143616, 0.4811233878135681, 0.4722062945365906, -0.60544353723526, -1.2393938302993774, 0.418831467628479, -0.3399503529071808, 0.2462005317211151, 0.9686110019683838, 0.20973847806453705, -0.11028993874788284, -0.4480580687522888, 0.5263926386833191, 0.7356461882591248, -0....
def get _ 2d _ array ( rng, n _ rows = 256, n _ columns = 0, scale _ by _ norm = true, normalize _ data = false, epsilon = 0. 0001 ) : n _ full _ blocks = int ( n _ rows / n _ columns ) block _ list = [ ] rng _ key = rng for _ in range ( n _ full _ blocks ) : rng, rng _ input = random. split ( rng ) unstructured _ bloc...
[ -0.6300379037857056, -0.29515084624290466, 1.0205738544464111, -0.15471512079238892, -1.1029444932937622, -0.7583121657371521, 0.14469200372695923, -0.5304065346717834, 0.27606359124183655, 0.2687443494796753, -0.10187362134456635, -0.42566433548927307, 0.22197046875953674, 0.8635514974594...
def convcausalattention ( d _ feature, n _ heads = 1, sparsity = none, dropout = 0. 0, max _ inference _ length = 2048, kernel _ size = 1, mode ='train') : n _ modules = n _ heads if sparsity is none else sparsity @ assert _ shape ( '... a - >... b') def processinglayer ( ) : assert d _ feature % n _ modules = = 0 retu...
[ 0.7004399299621582, -0.004000896122306585, 0.6399829983711243, 0.028344767168164253, -0.8080941438674927, -0.6235426664352417, 0.5511503219604492, 0.6291669011116028, 0.7751612067222595, 0.7638501524925232, 0.45603346824645996, 0.3761836588382721, 0.6790589690208435, 0.03866666555404663, ...
def has _ item ( self, state ) : return state in self. set
[ -0.16469082236289978, 0.07114198058843613, 0.33254942297935486, -0.14708372950553894, -0.07416820526123047, 0.5685148239135742, -1.13694167137146, -0.11609236150979996, -0.061628177762031555, -0.11096639186143875, -0.6989157795906067, -0.14868147671222687, 0.27251920104026794, -0.163112968...
def monte _ carlo _ predict ( self, image ) : h, w = image. shape [ - 2 : ] cluster = cluster ( n _ sigma = 2, h = h, w = w, device = self. device ) self. enable _ eval _ dropout ( ) # get monte carlo model samples mc _ outputs = [ ] mc _ seed _ maps = [ ] for i in range ( self. n _ samples ) : output = self. seg _ mod...
[ -0.6325060725212097, -0.6196178197860718, 0.7542150020599365, 0.20540618896484375, -0.20132364332675934, 0.13854314386844635, 0.48223504424095154, 0.263680100440979, -0.3136570155620575, 0.7941122651100159, 0.18274587392807007, -0.14385206997394562, -0.16418656706809998, 0.4373079836368561...
def _ _ check _ if _ input _ file _ exists ( self ) : if os. path. exists ( self. file _ to _ archive ) : return true else : return false
[ -0.3749525249004364, -0.4535861909389496, 0.6143571734428406, -0.37214043736457825, 1.2909231185913086, 1.4139808416366577, -0.0559169240295887, 0.9974132180213928, -1.126112937927246, -0.06962671875953674, 0.6514961123466492, -0.21911554038524628, 0.11519374698400497, -0.3344700336456299,...
def age _ back _ transform ( trans _ age, adult _ age = 20 ) : age = np. where ( trans _ age < 0, ( 1 + adult _ age ) * np. exp ( trans _ age ) - 1, ( 1 + adult _ age ) * trans _ age + adult _ age ) return age
[ -0.11730381846427917, -0.8952269554138184, 0.6844866275787354, -1.075689673423767, -0.2920845150947571, -0.02377021312713623, 0.16909237205982208, 0.5066474080085754, -0.10358622670173645, 0.9695466160774231, -0.08524370193481445, 0.41721752285957336, -0.24164225161075592, -1.0426708459854...
def email _ user ( self, subject, message, from _ email = none, * * kwargs ) : send _ mail ( subject, message, from _ email, [ self. email ], * * kwargs )
[ 0.10389301925897598, 0.5942597389221191, 0.42049339413642883, 0.593367874622345, -0.17391224205493927, 0.3850683271884918, -0.4726961553096771, -0.3363994061946869, -0.5303060412406921, -0.007936525158584118, -0.409525066614151, 1.7804456949234009, 0.17116862535476685, -0.674627959728241, ...
def slope ( self, other ) : x1, y1, x2, y2 = self. x, self. y, other. x, other. y y3 = y1 - y2 x3 = x1 - x2 return ( y3 * self. inverse ( x3 ) ) % self. p
[ -0.031132802367210388, -0.22551393508911133, 0.8674236536026001, -0.22172874212265015, -0.05414053797721863, 0.8222328424453735, -0.9305585026741028, -0.8205230832099915, -0.006959028076380491, -0.38622811436653137, -0.2037595510482788, -0.7707514762878418, -1.061352014541626, -0.760971426...
def test _ is _ completed _ when _ completed ( self ) : completed _ project = project ( is _ completed = true ) self. assertequal ( completed _ project. was _ completed ( ), true, " is _ completed was just a suggestion, right? " )
[ 0.04211099073290825, 0.37062615156173706, 0.07195781916379929, 0.6128497123718262, 0.9842426180839539, 0.4251656234264374, 0.3286174237728119, 0.21688862144947052, 0.2581110894680023, 0.1851862668991089, -0.6493567824363708, -0.4845168888568878, 0.24419179558753967, 0.18447411060333252, ...
def delete ( org _ id, business _ identifier ) : request _ json = request. get _ json ( silent = true ) or { } email _ addresses = request _ json. get ('passcoderesetemail') reset _ passcode = request _ json. get ('resetpasscode ', false ) log _ delete _ draft = request _ json. get ('logdeletedraft ', false ) try : aff...
[ -0.7177978157997131, -0.22521327435970306, 0.7058818340301514, 0.6791874170303345, 0.43868720531463623, 0.1381133794784546, 0.8334807753562927, 1.1157901287078857, 0.6129278540611267, 1.2024489641189575, 0.13970057666301727, 1.6800320148468018, -0.8039471507072449, 0.04512583836913109, 0...
def trafficloadend ( self ) : if self. force _ auto _ sync : self. get ('trafficloadend') return self. _ trafficloadend
[ -0.3828529417514801, 0.6646813154220581, 0.3748934268951416, -0.4886089861392975, 0.1902647465467453, 0.7703465223312378, 0.33985424041748047, -0.6050666570663452, -0.36268356442451477, 0.7909592986106873, -0.758052408695221, 0.4100427031517029, -0.5286833643913269, -0.48635032773017883, ...
def hess _ electron _ spectrum ( energy, electron _ normalisation = 1. 049e - 4, electron _ decorrelation _ energy = 1, electron _ index1 = 3. 04, electron _ index2 = 3. 78, electron _ break _ energy = 0. 94, electron _ break _ sharpness = 0. 12, * * kwargs ) : # provide hess electron spectrum in units gev ^ - 1 cm ^ -...
[ 0.0022525908425450325, 0.013449453748762608, 0.7427862882614136, -0.33701080083847046, 0.044749196618795395, 0.6818135976791382, -0.5254063010215759, 0.2462744265794754, -0.4174482226371765, 0.6028067469596863, 0.8822506070137024, 0.7377480268478394, 0.10135392099618912, 0.2165047973394394...
def _ handle _ child _ update ( hass : homeassistant, gateway _ id : gatewayid, validated : dict [ platform, list [ devid ] ] ) - > none : signals : list [ str ] = [ ] # update all platforms for the device via dispatcher. # add / update entity for validated children. for platform, dev _ ids in validated. items ( ) : de...
[ 0.336642861366272, -0.372119277715683, 0.5754134654998779, 0.5503659844398499, -0.5459652543067932, 0.08150843530893326, -0.08514649420976639, -0.44556960463523865, 0.6479664444923401, -0.2968704402446747, -0.9868846535682678, -0.7893978357315063, 0.31289228796958923, 1.3556848764419556, ...
def do _ migration ( self ) : pass
[ -0.9238417744636536, -0.1195579394698143, 0.29645392298698425, 1.5121607780456543, 1.4563153982162476, 0.5208225846290588, 0.09317608922719955, -0.4230976700782776, -0.5262472629547119, 0.3875964879989624, -0.47357669472694397, 0.08741477131843567, 0.1477043628692627, 0.10589571297168732, ...
def sample _ from _ list ( list _, rng _ state = none ) : if rng _ state : return rng _ state. choice ( list _, 1 ) [ 0 ] else : return np. random. choice ( list _, 1 ) [ 0 ]
[ -0.7673745155334473, 0.25163212418556213, 0.46354439854621887, 0.379667192697525, -0.5892508029937744, 0.0939483493566513, -0.18226999044418335, 0.6284219026565552, 1.6237202882766724, 0.3896205425262451, -0.31556710600852966, 0.26704293489456177, 0.46155908703804016, 0.429722398519516, ...
def start _ stream ( self, callback : t. callable [ [ inferresult, inferenceserverexception ], none ], stream _ timeout : float =..., headers : dict [ str, t. any ] =..., compression _ algorithm : str =..., ) - > none :
[ 0.15747791528701782, 0.38104891777038574, 0.6503331065177917, 0.6798007488250732, -0.15729328989982605, -0.19358393549919128, 0.4195612370967865, 0.22718439996242523, -0.024926498532295227, -0.27411949634552, -0.7127103209495544, 0.8098939657211304, -0.14768418669700623, 1.3355700969696045...
def gray2bgr ( im : np. ndarray ) - > np. ndarray : return cv. cvtcolor ( im, cv. color _ gray2bgr )
[ -0.6642784476280212, 0.10475250333547592, 0.6780715584754944, 0.5052052736282349, 0.568630576133728, 0.5159984230995178, -0.13270629942417145, -1.4185137748718262, 0.03626061975955963, 1.6100775003433228, 0.3287737965583801, 1.2182074785232544, 0.05048196390271187, 0.987267255783081, 0.5...
def last _ seen _ name ( self ) - > str : return core. bngetlastseenvariablenameordefault ( self. _ function. handle, self. to _ bnvariable ( ) )
[ 0.12034150958061218, -0.4133763909339905, 0.8121203780174255, -0.6253641247749329, 0.31272801756858826, 0.010404892265796661, 0.36508527398109436, -1.4152247905731201, -0.2318962812423706, 0.013358411379158497, -0.07881154865026474, 0.34692180156707764, 0.07824405282735825, 0.1024738773703...
def update _ version ( self, version : str, confidence _ level : str = " 3 " ) : self. version = version self. confidence _ level = confidence _ level self. query _ panel _ data ( )
[ -0.7455288767814636, -1.4512630701065063, 0.26327526569366455, -0.00880628451704979, -0.1629740595817566, 1.2140341997146606, -0.29668769240379333, 0.13932090997695923, -0.5243316292762756, 0.7788063883781433, -1.0467841625213623, 0.34659892320632935, -1.0040169954299927, 0.253604918718338...
def test _ basic _ style _ problem ( gitrepo ) : # create file'a'file _ a = util. write _ file ( gitrepo,'a. java ','' ) assert githooks. precommit _ hook ( util. install _ path ( ) ) # add'a'util. cmd ( gitrepo,'git add'+ file _ a ) assert not githooks. precommit _ hook ( util. install _ path ( ) ) # commit'a'util. cm...
[ 0.08464115113019943, 0.46514543890953064, 0.58700031042099, -0.04877074807882309, 1.3764561414718628, 1.0295460224151611, 0.5717778205871582, -0.18616564571857452, 0.012800204567611217, 0.3051856458187103, 0.5919020771980286, -0.6170604228973389, -0.7658644914627075, 0.2643062174320221, ...
def transfer _ s3 ( source, * * kwargs ) : s3 = boto3. resource ('s3') dest = get _ destination _ s3 ( * * kwargs ['get _ destination _ s3'] ) dest _ bucket = dest ['bucket'] dest _ key = dest ['key'] # transfer data from one s3 bucket to another try : s3. meta. client. copy ( source, dest _ bucket, dest _ key ) except...
[ 0.10810022056102753, -0.04630924016237259, 0.886422872543335, 0.31303298473358154, -0.2459699809551239, 1.292566180229187, -0.35350099205970764, 0.06387698650360107, 0.13260778784751892, 0.3101370632648468, -0.4430728554725647, 0.7789425253868103, 0.6403346061706543, -0.4817677140235901, ...
def output ( doc ) : pairs = doc. duncan _ pairs # find duplicates heurs = defaultdict ( list ) for i in range ( 0, len ( pairs ) ) : curr = pairs [ i ] byte = ( curr [ 0 ]. getstart ( ), curr [ 0 ]. getend ( ), curr [ 1 ]. getstart ( ), curr [ 1 ]. getend ( ) ) h = curr [ 2 ] if h not in heurs. get ( byte, [ ] ) : heu...
[ -0.19975891709327698, -0.3041325509548187, 0.7492635846138, -0.7079288363456726, -0.7737558484077454, -0.07182824611663818, 1.4926108121871948, 0.011235731653869152, -0.22579459846019745, 0.11217807233333588, -0.5190319418907166, 0.583926260471344, -0.11514954268932343, 0.7878817319869995,...
def simple ( mode ) : # parse the symbolic mode parsed = re. match ('(? p < who > [ ugoa ] + ) (? p < op > [ - + = ] ) (? p < what > [ rwx ] * ) $ ', mode ) if not parsed : raise valueerror ( " unrecognized symbolic mode ", mode ) # generate a mask representing the specified permission spec _ map = dict ( r = 4, w = 2,...
[ -0.26210445165634155, -0.37084275484085083, 0.8553043603897095, -0.7985063791275024, -0.8865321278572083, -1.1280807256698608, 0.8827844858169556, 0.03766351565718651, 0.46356531977653503, 0.08996047079563141, -0.1628427505493164, -0.49146658182144165, 0.25662195682525635, -1.2846845388412...
def topological _ sort ( graph ) : return kahns _ algo ( graph )
[ 0.2416967749595642, 0.08009210973978043, 0.19254788756370544, 1.431915521621704, -1.236835241317749, -0.6216377019882202, -0.3786107301712036, 0.2732541859149933, -0.7252461910247803, 0.396809458732605, 0.16970565915107727, 0.038932714611291885, 0.9010199308395386, 0.1108975037932396, -0...
def task _ print _ user _ data ( ) : # print user's defined data _ logger. info ( " print user's defined data " ) rsvis. utils. format. print _ data ( rsvis. config. settings. get _ data _ dict ( ) )
[ 0.3798673152923584, 0.008297102525830269, 0.4080093801021576, 0.9606136679649353, -0.055203959345817566, 0.46736112236976624, 0.5406545996665955, -0.2394365668296814, -0.6396688222885132, 0.22240427136421204, -0.19611094892024994, 1.6644997596740723, 0.6792725920677185, 0.141750767827034, ...
def get _ sentiment _ of _ review ( review ) : # encoding reviews # new _ rev = review. encode ('utf - 8') new _ rev = review # for i in reviews : # i. encode ('utf - 8') # new _ rev + = i # getting the sentiment results # from the analyzer module nlp = stanfordnlp ( ) results = nlp. parse ( new _ rev ) result = result...
[ -0.5218474864959717, 0.2253810465335846, 0.2206133008003235, 0.09156149625778198, -0.34275516867637634, -0.6785569787025452, -1.040972352027893, -0.6790980696678162, 0.29289141297340393, 0.27532458305358887, -0.039622802287340164, -0.20140261948108673, -0.7977132797241211, 0.10544982552528...
def stopflashfade ( self ) : self. flashfading = false self. fadein ( )
[ 0.20557604730129242, 0.04974248632788658, 0.3075810670852661, 0.5049417018890381, -0.215874582529068, 1.2092344760894775, 0.7010511159896851, 1.3782234191894531, -0.7987443804740906, -0.9932570457458496, -1.3660706281661987, 0.47623857855796814, -0.5197909474372864, 1.1455477476119995, -...
def parse ( cls, input _ str ) - > sgfnode : return cls ( input _ str ). root
[ 1.0504472255706787, 0.09858524054288864, 0.1137673631310463, 0.4222877621650696, -0.5910996794700623, 0.41552501916885376, 0.19950777292251587, 0.02466481924057007, 0.42329293489456177, -0.6467193365097046, -0.4487628936767578, 0.4218759536743164, -0.9102596044540405, -0.583281934261322, ...
def get _ user _ requests ( user _ id ) : cur. execute ( " select * from requests where user _ id = % s ; ", [ user _ id ] ) requests = cur. fetchall ( ) all _ requests = [ ] for request in requests : requests _ labeled = {'request _ id': request [ 0 ],'title': request [ 1 ],'description': request [ 2 ],'type': request...
[ -0.40320128202438354, -0.24595630168914795, 0.5669553279876709, 0.28541645407676697, 0.012699151411652565, 0.4098024368286133, -1.4306344985961914, -0.49562689661979675, -0.20479018986225128, 0.04391378536820412, -0.3070768713951111, 0.4289306700229645, 0.6347560882568359, 1.06902039051055...
def create _ blank _ im ( w : int, h : int, c : int = 3, dtype = np. uint8 ) - > np. ndarray : dim = [ h, w ] if c = = 1 else [ h, w, c ] return np. zeros ( dim, dtype = np. uint8 )
[ -0.6708625555038452, 0.2755996584892273, 0.6073470115661621, 0.12386573851108551, 0.7630363702774048, 0.5702333450317383, 0.27314871549606323, -0.9791206121444702, -0.009552769362926483, 0.30839166045188904, 0.007866991683840752, 0.7539342045783997, -0.6279468536376953, 0.4957119822502136,...
def flatten _ interfaces ( dat, c ) : def get _ ifaces ( cl ) : for i2 in cl. implements : yield dat. interfaces [ i2 ] yield from get _ ifaces ( dat. interfaces [ i2 ] ) for cl in flatten _ classes ( dat. classes, c ) : yield from get _ ifaces ( cl )
[ -0.7074308395385742, 1.0126475095748901, 0.531546950340271, -0.5993675589561462, -0.43914178013801575, 0.8076595664024353, 1.1384975910186768, -0.655098021030426, -0.13585756719112396, -0.5656846165657043, -0.6280080080032349, 0.5072112679481506, -0.38324812054634094, 0.4010066092014313, ...
def test _ neg _ close ( self ) : config = { " hosts " : [ ( " 127. 0. 0. 1 ", 2000 ) ] } with pytest. raises ( exception ) : self. client = aerospike. client ( config ). connect ( ) with pytest. raises ( attributeerror ) as attributeerror : self. closeobject = self. client. close ( ) assert " has no attribute " in str...
[ -0.3311226963996887, 0.12359362095594406, 0.4679447114467621, -0.2654303014278412, -0.465494841337204, 1.6057453155517578, 0.0024679626803845167, -0.1694038063287735, -0.8389472365379333, -0.04066156968474388, 0.3759751617908478, -0.2779403030872345, -0.6427780985832214, 0.6924764513969421...
def _ entry _ repr _ full ( entry ) : rep ='% - 3d % - 10s % s \ n % s \ n % s'% ( entry. oid, entry. primary, entry. clue, entry. answer, _ repr _ tags ( entry. tags ) ) rep = sjb. common. misc. indent _ paragraph ( rep, 15 ) return rep # return line1 +'\ n'+ line2
[ 0.5453585386276245, -0.506855845451355, 0.7730046510696411, -0.7163620591163635, -0.6841646432876587, 0.30672580003738403, -0.34806257486343384, 0.1762724220752716, 0.5512410402297974, 0.9190590381622314, 0.23808197677135468, 0.15273162722587585, -0.1459849625825882, -0.5859785079956055, ...
def _ _ init _ _ ( self, name, callback = none ) : self. _ name = name self. _ items = dict ( ) self. _ callback = callback
[ -0.07906673103570938, -0.08266973495483398, 0.5574214458465576, -0.2605632245540619, -1.080501675605774, -0.9151573181152344, -0.1603163480758667, 0.37116575241088867, 0.5359776020050049, -0.025618378072977066, -1.2193750143051147, -0.891237199306488, 0.017792552709579468, 0.75594800710678...
def find _ minrun ( n ) : r = 0 if not n > = 0 : raise valueerror ( " array _ size must be > = 0 " ) while n > = 64 : r | = n & 1 n > > = 1 return n + r
[ -0.5179972052574158, 0.5965308547019958, 0.508553683757782, 0.4981722831726074, -0.5567102432250977, 0.18004414439201355, -0.07850430905818939, -0.992543637752533, 0.8459707498550415, -0.47748079895973206, 0.8580033183097839, 0.5755130052566528, -1.1501108407974243, 1.3968628644943237, 0...
def initial _ state ( ) : return [ [ empty, empty, empty ], [ empty, empty, empty ], [ empty, empty, empty ] ]
[ -0.4674997925758362, -0.7262848019599915, 0.45590561628341675, -0.3881482779979706, 0.7158893346786499, 0.606018602848053, 0.08329225331544876, 0.4668155312538147, 0.24350859224796295, -0.2928478419780731, -1.5841617584228516, -0.3055119216442108, -0.18181782960891724, -0.07473928481340408...
def _ create _ category _ div ( self, genre ) : background, border, box _ shadow = genre. colors [ genre ] div = self. page _ doc. createelement ('div') div. attributes ['style'] = ('border - style : solid ; border - width : 1px ; color : white ;'' display : inline - block ; font - family : calibri, arial ;'' margin - ...
[ -0.6258677840232849, 0.34910690784454346, 0.8063909411430359, -0.6769839525222778, -0.6245964169502258, -0.22118757665157318, 0.15056544542312622, -0.32449543476104736, -0.6767334938049316, -0.20493322610855103, 1.0961902141571045, 0.5900076031684875, 0.5216451287269592, 1.1860771179199219...
async def async _ validate _ lock _ or _ error ( local _ name : str, device : bledevice, key : str, slot : int ) - > dict [ str, str ] : if len ( key )! = 32 : return { conf _ key : " invalid _ key _ format " } try : bytes. fromhex ( key ) except valueerror : return { conf _ key : " invalid _ key _ format " } if not is...
[ -0.889427125453949, 0.17462168633937836, 0.5564774870872498, -0.03126167505979538, -0.9523439407348633, 0.11186391115188599, -0.6987965106964111, -0.37484654784202576, -0.29735830426216125, 0.9999963045120239, 0.5601196885108948, 0.2507752478122711, -0.053967662155628204, -0.03049960359930...
def par ( self ) : states = [ " on ", " off " ] original _ par = self. write ( " par ", 15 ) [ 1 : - 4 ] new _ par = states [ not states. index ( original _ par ) ] self. write ( " par " + new _ par ) returned _ par = self. write ( " par ", 15 ) [ 1 : - 4 ] if returned _ par! = new _ par : logging. error ( " % s : set ...
[ 0.17642630636692047, 0.07988923043012619, 0.8028852343559265, -0.5894032120704651, -0.32010704278945923, 1.0216619968414307, -0.19206775724887848, -0.09628671407699585, 0.21658647060394287, 0.5366355180740356, -0.09111914783716202, 0.6836859583854675, -2.13102126121521, -0.647519588470459,...
def get _ upsampling _ weight ( in _ channels, out _ channels, kernel _ size ) : factor = ( kernel _ size + 1 ) / / 2 if kernel _ size % 2 = = 1 : center = factor - 1 else : center = factor - 0. 5 og = np. ogrid [ : kernel _ size, : kernel _ size ] filt = ( 1 - abs ( og [ 0 ] - center ) / factor ) * ( 1 - abs ( og [ 1 ...
[ -0.0039051214698702097, -0.1543007344007492, 0.7829013466835022, -0.06065903231501579, -0.7164245843887329, -1.0286623239517212, -0.08467184007167816, -0.042022112756967545, -0.4067348837852478, 0.8700721859931946, 0.42499735951423645, 0.33849671483039856, -0.2989683747291565, 0.0357726253...
def spot _ price _ limit ( self ) - > optional [ pulumi. input [ float ] ] : return pulumi. get ( self, " spot _ price _ limit " )
[ -0.25438278913497925, 0.21048209071159363, 0.49071866273880005, 0.4882720112800598, 0.6058365106582642, 1.1973731517791748, -0.21978206932544708, 0.1144205704331398, 0.779522716999054, 0.5053026080131531, 0.6094630360603333, 0.5540839433670044, -0.0063514322973787785, -1.5907487869262695, ...
def set _ player _ name ( self, player _ name ) : self. player _ name = player _ name
[ -0.8422179818153381, -0.9902633428573608, 0.35304930806159973, -0.11515084654092789, -0.13636119663715363, 0.41697436571121216, -0.12625589966773987, 0.5742883086204529, 0.15469741821289062, 1.2044788599014282, -0.5925154685974121, 0.12989267706871033, -0.005606101825833321, 0.218829438090...
def init _ dataset ( self ) : return
[ -0.2630562484264374, -0.3935306668281555, 0.22513781487941742, 0.08820118755102158, 0.017338531091809273, 0.3856639862060547, 0.049535252153873444, 0.35374972224235535, -0.15390974283218384, -1.4617851972579956, -0.5420240759849548, 1.0437325239181519, -0.09755794703960419, 0.1673782765865...
def prunesolvers ( self, solver _ scores ) : if len ( solver _ scores ) < self. _ max _ solvers : # print ( " no pruning necessary " ) pass else : # print ( " population : % s \ tmax population : % s \ tneed to kill : % s " % ( len ( self. _ solvers ), self. _ max _ solvers, len ( self. _ solvers ) - self. _ max _ solv...
[ -1.319962739944458, -0.18267083168029785, 0.6497697830200195, 0.7500892281532288, 0.6624541282653809, 0.4326229989528656, 0.5585519075393677, -0.5494870543479919, -0.19030331075191498, 0.5081907510757446, 0.6114105582237244, -0.4714773893356323, -0.6860891580581665, 0.10688889026641846, ...
def extract _ components ( self ) : verbs = set ( ) doc = self. nlp ( self. query ) for entity in doc : if entity. pos _ = = " verb " or entity. pos _ = = " aux " : verbs. add ( entity. lemma _ ) return verbs
[ -0.020357351750135422, -0.7870432138442993, 0.643855094909668, -0.8053829073905945, 0.1189490258693695, 0.05146109312772751, -1.3451175689697266, 0.1195407509803772, 0.14078807830810547, 0.8238312005996704, 0.7186369299888611, -0.3021766245365143, 0.16855822503566742, 0.8028861284255981, ...
def _ createmodel ( self ) : model = sequential ( ) # 3 convolutinal layers model. add ( conv2d ( 32, ( 8, 8 ), strides = ( 4, 4 ), activation ='relu ', input _ shape = ( self. statecnt ), data _ format ='channels _ first') ) model. add ( conv2d ( 64, ( 4, 4 ), strides = ( 2, 2 ), activation ='relu') ) model. add ( con...
[ 0.4606044888496399, -0.4499092698097229, 0.6125447750091553, 0.588155210018158, 0.19752226769924164, 0.20536009967327118, -0.02763252705335617, -0.40799662470817566, 0.4761505126953125, 0.05249233916401863, -0.2983112335205078, -0.6456905603408813, 0.6420214772224426, -0.04199981689453125,...
def test _ recuperate _ name _ wiki _ page ( ) : result = recuperate _ name _ wiki _ page ( " openclassrooms " ) assert result = = " openclassrooms "
[ -1.2448548078536987, -0.7281391620635986, 0.30209243297576904, -0.3303912281990051, -0.14379605650901794, 0.5081177353858948, -0.3705803155899048, -0.2254416048526764, 0.20003041625022888, 0.9444071054458618, -0.7685404419898987, -0.20949620008468628, -0.5891972184181213, -0.13554082810878...