text
stringlengths
25
2.19k
embedding
listlengths
768
768
def encounter ( self, word ) : result = self. _ _ binary _ search ( word ) if result! = - 1 : self. _ _ encountered _ word [ result ] = true return true return false
[ -0.6054091453552246, 0.605091392993927, 0.7810968160629272, -0.4952155649662018, 0.15444564819335938, 0.7094855308532715, 0.9504430294036865, -0.42140132188796997, -0.989252507686615, 0.0997857078909874, -1.4497489929199219, -0.08518226444721222, -0.9374969005584717, 1.2505813837051392, ...
def subset ( self, data, cols ) : # validation on data / cols if not ( isinstance ( data, list ) and isinstance ( data, list ) ) : raise typeerror ( " arguments must be lists " ) if len ( data ) = = 0 or len ( cols ) = = 0 : raise valueerror ( " subset cannot be empty " ) # validation on elements of data / cols for i, ...
[ -0.3826065957546234, -0.6885240077972412, 0.36016249656677246, -0.25359010696411133, -1.3799859285354614, 0.315237820148468, 0.26234251260757446, -0.2700050473213196, -0.15951813757419586, 0.25264546275138855, -0.13803449273109436, 0.8503470420837402, -0.5066131949424744, -0.60507684946060...
def docker ( ) : d = docker _ from _ env ( ) try : yield d finally : # cleanup our containers for c in d. containers. list ( all = true ) : if c. name. startswith ( " dockerspawner - test " ) : c. stop ( ) c. remove ( ) try : services = d. services. list ( ) except ( apierror, typeerror ) : # e. g. services not availab...
[ -0.04270913451910019, -0.45119667053222656, 0.5718005895614624, 0.23700502514839172, -0.5556682348251343, -0.37733379006385803, 0.11024223268032074, -0.9423615336418152, 0.710343599319458, -0.7883545160293579, 0.6027318239212036, -0.06211967021226883, 0.20594842731952667, 1.009147882461547...
def freq _ limits _ of _ filters ( freqs, erb _ scale _ factor = 1 ) : centerfmel = freq _ to _ mel ( freqs ) erb = 6. 23 * ( freqs / 1000 ) * * 2 + 93. 39 * ( freqs / 1000 ) + 28. 52 erb = erb * erb _ scale _ factor filter _ fls = 2595 * np. log10 ( - 2 / 1400 * erb + 0. 5 * \ np. sqrt ( ( 2 / 700 * erb ) * * 2 + 4 * ...
[ -0.3254236578941345, -0.7476144433021545, 0.6676686406135559, -0.025626160204410553, -0.5935984253883362, -0.64607173204422, -0.4282093942165375, 0.02881101705133915, 0.6125472187995911, 0.003957975655794144, -0.3438432812690735, 0.01620127446949482, 0.4034290015697479, 0.11501897871494293...
def real ( input, name = none ) : with ops. name _ scope ( name, " real ", [ input ] ) as name : input = ops. convert _ to _ tensor ( input, name = " input " ) if input. dtype. is _ complex : real _ dtype = input. dtype. real _ dtype return gen _ math _ ops. real ( input, tout = real _ dtype, name = name ) elif input. ...
[ -0.4455817639827728, 0.39997395873069763, 0.6145607233047485, 1.286379098892212, -0.47587963938713074, 0.27845901250839233, 0.5680288076400757, -0.4697187840938568, 0.40434756875038147, -0.2933313846588135, -0.48276108503341675, -0.07219637185335159, 0.2717878818511963, -1.0305408239364624...
def test _ list _ integer _ max _ length _ 3 _ nistxml _ sv _ iv _ list _ integer _ max _ length _ 4 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - maxlength - 4. xsd ", instance = " nistdata / list / ...
[ -0.22833487391471863, -0.04053880274295807, 0.2516436278820038, 0.5416803956031799, -0.7148048877716064, 0.2641793489456177, -0.41710326075553894, 0.30126118659973145, 0.5511536598205566, 0.7358976006507874, -1.393951416015625, -0.5571665167808533, -0.5499171614646912, 0.2766168713569641, ...
def _ resolve _ arm _ id _ for _ parallel _ job ( self, job : job, resolver : callable ) - > job : if job. code is not none and not is _ arm _ id _ for _ resource ( job. code, azuremlresourcetype. code ) : job. code = resolver ( code ( base _ path = job. _ base _ path, path = job. code ), azureml _ type = azuremlresour...
[ 0.516365647315979, 0.25041571259498596, 0.41976848244667053, -0.11585123836994171, 0.17635469138622284, 0.09152211248874664, -0.9710656404495239, 0.31475332379341125, -0.24478957056999207, -0.4518153965473175, 0.18113315105438232, -0.09541771560907364, -0.6115229725837708, 0.54563432931900...
def get _ svc _ map ( self ) : return { osutil. start _ systemd :'ejabberd. service ', osutil. start _ initd :'ejabberd'}
[ -0.32417115569114685, -1.055472493171692, 0.31974759697914124, -0.4301486909389496, -0.35993242263793945, 0.5932004451751709, 0.7395370602607727, 0.07009786367416382, -0.31280750036239624, -0.32156839966773987, -0.31315159797668457, 0.15262310206890106, 0.852308452129364, 1.188940405845642...
def _ _ init _ _ ( self, * args, * * kwargs ) : skip _ config = skipconfig ( ) skip _ config. common _ required _ keys = self. common _ required _ keys skip _ config. disatisfy _ criterias = [ formkeys. app _ forwarded ( ) ] skip _ config. satisfy _ criterias = [ formkeys. app _ verified ( ) ] super ( ). _ _ init _ _ (...
[ -0.6010501980781555, 0.03895818069577217, 0.4363081455230713, -0.2701006829738617, -0.13476049900054932, 0.9317888021469116, 0.305436372756958, 0.33464786410331726, -0.6243441700935364, -0.24249576032161713, -0.7143976092338562, 0.09022343158721924, 0.7981374263763428, 1.344226598739624, ...
def build ( self, data ) : self. manager. clear ( ) # always clear manager data. self. parser. data = data origins = self. parser. prase _ origin ( ) destinations = self. parser. parse _ destination ( ) rows = self. parser. parse _ rows ( ) origin _ counter = 0 for origin in origins : destination _ counter = 0 for elem...
[ -0.727516233921051, -0.3692065477371216, 0.6925964951515198, 0.011517633683979511, -0.024686666205525398, 0.8745667934417725, -0.049851614981889725, 0.9191048741340637, -0.442829966545105, -0.5480036735534668, -0.5201297998428345, -0.18963100016117096, 0.8372250199317932, 0.089789763092994...
def cancel ( self ) - > optional [ str ] : return pulumi. get ( self, " cancel " )
[ 1.7565150260925293, -0.09614359587430954, 0.4946308732032776, 0.8340572714805603, 0.39408016204833984, 1.4692070484161377, -0.21888239681720734, -0.03975415229797363, 0.2707763910293579, 0.6574287414550781, 0.6929162740707397, 0.3348696529865265, 0.5815215706825256, -1.4619234800338745, ...
def test _ list _ integer _ enumeration _ 1 _ nistxml _ sv _ iv _ list _ integer _ enumeration _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - enumeration - 2. xsd ", instance = " nistdata / list / ...
[ -1.0885870456695557, -0.9905770421028137, 0.4950653314590454, 0.7649566531181335, -0.5888302326202393, -0.14754927158355713, 0.31062325835227966, 0.3293878138065338, 0.19738465547561646, 0.6323608756065369, -1.4455660581588745, -0.03830026835203171, -0.18421994149684906, 1.0754159688949585...
def set _ adapted _ free _ energy ( self ) : activity _ stats = [ self. adapted _ activity _ mu, self. adapted _ activity _ sigma ] adapted _ activity = random _ matrix ( [ self. mm ], params = activity _ stats, seed = self. seed _ adapted _ activity ) self. eps = free _ energy ( self. ss0, self. kk1, self. kk2, adapte...
[ 0.337632954120636, -0.07319748401641846, 0.3867729902267456, -0.3070743978023529, -1.643296718597412, 0.044566810131073, 0.6583982110023499, 0.5576723217964172, 0.3860967755317688, 0.05423518270254135, 0.004931592382490635, 0.9765816330909729, 0.3186868727207184, 0.02220199443399906, 0.1...
def guess _ date _ format _ for _ column ( self ) : def guess _ date _ format ( d ) : if isinstance ( d, ( datetime, date, time ) ) : if self. df. fieldtype = = " date " : return " % y - % m - % d " if self. df. fieldtype = = " datetime " : return " % y - % m - % d % h : % m : % s " if self. df. fieldtype = = " time " ...
[ 0.34358152747154236, 0.45385876297950745, 0.600252628326416, 0.6033541560173035, 0.638573944568634, -0.5118163228034973, 0.4626157283782959, -0.48077094554901123, -0.3491300344467163, -0.7199069261550903, 0.16434121131896973, 0.38380083441734314, 0.19817854464054108, 1.0433505773544312, ...
def overlay _ mask _ stack ( stack, mask, opacity = 0. 25, mask _ color = [ 1. 0, 0. 0, 0. 0 ], rescale _ img = false ) : mask _ color = np. array ( mask _ color, dtype = np. float32 ) if stack. ndim = = 3 : overlay = color. gray2rgb ( stack ) else : overlay = stack. copy ( ) for i in range ( len ( stack ) ) : overlay ...
[ -0.06959804147481918, 0.47947365045547485, 0.8007559180259705, 0.941329300403595, 0.25730377435684204, -0.48960626125335693, -0.08092350512742996, -0.9209708571434021, 0.22716395556926727, 0.8742204308509827, 0.6028070449829102, 0.23174896836280823, 0.026679379865527153, 0.4540309011936188...
def create _ archive _ files ( self ) : inputsave = mastfile ( ) inputsave. data = repr ( self. input _ options ) inputsave. to _ file ( os. path. join ( self. recdir,'archive _ input _ options _ % s. txt'% self. timestamp ) ) recipesave = mastfile ( ) recipesave. data = repr ( self. recipe _ plan ) recipesave. to _ fi...
[ 0.48719143867492676, -0.072630375623703, 0.5133152604103088, -0.44399312138557434, 0.6183491945266724, 0.44418397545814514, -0.03330722078680992, 0.7153714299201965, -0.5074161291122437, -0.09198560565710068, -0.39319849014282227, 0.2507670223712921, 0.1865559071302414, -0.0312989763915538...
def main ( ) : global visualized _ game print ( " started pre - processing " ) pre. prepare ( ) print ( " started generating visualizations " ) for round _ number in range ( len ( pre. round _ names ) ) : visualized _ rounds. append ( visualize _ round ( round _ number ) ) sys. stdout. write ( " \ r \ rvisualized round...
[ -0.09316501021385193, 0.8228926658630371, 0.8302813172340393, 0.2857622802257538, 0.36039459705352783, 0.3503534495830536, 0.626965343952179, 0.08569111675024033, -0.6972126960754395, 0.11512330919504166, -0.15650244057178497, 0.8966038823127747, 0.18831749260425568, 0.37337473034858704, ...
def type ( self ) - > optional [ str ] : return pulumi. get ( self, " type " )
[ 1.0112429857254028, 0.7905400991439819, 0.38591691851615906, 0.6446436643600464, 1.7537083625793457, 1.0581133365631104, -0.23137730360031128, -0.821532130241394, 0.9103103280067444, 0.10480432212352753, 0.5545724630355835, 0.820533037185669, -0.3869383931159973, -1.0629408359527588, -0....
def _ _ add _ _ ( self, other ) : if isinstance ( other, point ) : return ( self. x + other. x, self. y + other. y ) elif isinstance ( other, tuple ) : return ( self. x + other [ 0 ], self. y + other [ 1 ] ) else : msg = " something is wrong " raise typeerror ( msg )
[ -1.0754857063293457, -0.09177401661872864, 0.8995130658149719, 0.3105282187461853, 0.31372278928756714, 0.7155036926269531, -0.11076242476701736, -1.0040888786315918, 0.6429784297943115, 0.10197097808122635, 0.6509853005409241, -0.12253793329000473, -0.38272950053215027, -0.774004459381103...
def _ load _ settings ( self, file _ name ) : with open ( file _ name ) as f : d = json. load ( f ) return d ['logparameters']
[ -0.905724823474884, 0.32754945755004883, 0.38350003957748413, -1.337061882019043, -0.6981627345085144, -0.11981457471847534, -0.8924302458763123, -0.566497266292572, -1.1929564476013184, 1.7401140928268433, -0.48156723380088806, -0.046005360782146454, -0.4985215365886688, -0.35157912969589...
def _ _ init _ _ ( self ) : self. heldnutrient = none
[ 0.6570197939872742, -1.2053369283676147, 0.20408906042575836, -0.24129870533943176, 0.06033884733915329, 0.2304617017507553, -0.37755298614501953, 0.27067622542381287, -0.5942912101745605, -1.5302693843841553, -0.3023219704627991, 0.6726601719856262, -0.8609494566917419, 0.4594675302505493...
def get ( project, dataset, version, localpath ) : db = get _ db _ access ( ) if project not in db. projectls ( ) : print " the given project doesn't exist " elif not os. path. isdir ( localpath ) : print " the specified local path is not a directory " else : output = db. fetch ( project, dataset, version, localpath ) ...
[ 0.41301336884498596, 0.8701339960098267, 0.23705385625362396, 0.27542370557785034, 0.09261586517095566, 0.02372572384774685, -0.545727014541626, 0.5786442160606384, -0.7860920429229736, -0.016727253794670105, 1.0040363073349, 0.5043976306915283, -0.698499858379364, -0.17748545110225677, ...
def extract _ streams ( stream ) : streams _ packets = { } packet _ data = stream. read ( packet _ size ) while packet _ data : packet = extract _ packet ( packet _ data ) stream _ packets = get _ or _ create _ key ( streams _ packets, packet ['packet _ id'], [ ] ) stream _ packets. append ( packet ) packet _ data = st...
[ -0.08664114028215408, 0.07387250661849976, 0.6061623692512512, -0.28879544138908386, -0.8057621717453003, -0.8971384167671204, -0.34028565883636475, -0.7990404367446899, 0.8695017099380493, -0.10335563123226166, -1.4446732997894287, -0.5668118596076965, -0.23013675212860107, 0.947576463222...
def test _ atomic _ qname _ max _ length _ nistxml _ sv _ iv _ atomic _ qname _ max _ length _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - maxlength - 1. xsd ", instance = " nistdata / atomic / qn...
[ 0.20469999313354492, -0.2918788194656372, 0.30187535285949707, 0.5428972840309143, -0.575465977191925, 0.42556169629096985, -0.24402441084384918, -0.1855420619249344, 0.8690339922904968, 0.5851591229438782, -0.23198767006397247, -0.23957444727420807, -0.09036033600568771, 0.073159188032150...
def get _ tulpe _ 2 ( joueur _ a, score _ a, joueur _ b, score _ b ) : liste _ joueur _ a = [ ] liste _ joueur _ b = [ ] tuple = ( ) liste _ joueur _ a = joueur _ a, score _ a liste _ joueur _ b = joueur _ b, score _ b tuple = liste _ joueur _ a, liste _ joueur _ b return tuple
[ -0.4713842570781708, -0.5640159249305725, 1.0079889297485352, -0.07290536910295486, 0.8281993865966797, -0.004867612384259701, -0.804033100605011, -0.05163021758198738, -1.4077653884887695, 1.4317028522491455, -0.6177617907524109, -1.0143647193908691, -0.22301986813545227, -0.2789649963378...
def load ( self, filename = " " ) : try : if not self. filename : self. filename = filename if not os. path. isfile ( self. filename ) : self. save ( ) with open ( self. filename,'r ', encoding = " utf - 8 " ) as fd : self. _ data = fd. read ( ) if not self. _ data : self. _ data = " { } " self. _ data = loads ( self. ...
[ -0.6215788722038269, -0.15749935805797577, 0.6227505207061768, -0.5816192030906677, -0.28087007999420166, -0.05731511116027832, -0.2233152985572815, 0.8402882218360901, -0.5502438545227051, -0.3480386435985565, -0.5708045959472656, -0.18461301922798157, -0.44810354709625244, -0.10067570954...
def check _ access _ token ( self, request _ token ) : lower, upper = self. access _ token _ length return ( set ( request _ token ) < = self. safe _ characters and lower < = len ( request _ token ) < = upper )
[ -0.6715068221092224, -0.32816600799560547, 0.5336108207702637, -0.11890476197004318, -0.8771472573280334, 0.9366934299468994, -0.7698956727981567, -0.6546056270599365, 0.06019468605518341, -0.219319686293602, 0.39155861735343933, 1.1250841617584229, -0.6130489706993103, -0.4554845988750458...
def reloadsettings ( jsondata ) : # globals global scriptsettings # reload saved settings and validate values scriptsettings. reload ( jsondata ) return
[ -1.284187912940979, 0.0791165754199028, 0.25125959515571594, 0.005440711975097656, -0.10790643095970154, -0.2849285900592804, 0.2247263491153717, -1.4962979555130005, 0.23489907383918762, 1.245495319366455, -0.6880430579185486, 0.9335348606109619, -0.5502539277076721, 0.12159263342618942, ...
def test _ all ( self ) : pass
[ 0.5651519298553467, -0.5711038112640381, 0.3020228147506714, 1.799965739250183, 1.1224303245544434, 1.6508502960205078, 0.6026211977005005, 0.06707325577735901, 0.33691561222076416, -1.208314299583435, -0.47299543023109436, 0.13142015039920807, -0.7342002391815186, 1.219260334968567, -1....
def fixdoublenamespaces ( ) : namespaces = cmds. namespaceinfo ( listonlynamespaces = true, recurse = true, fullname = true ) namespacestofix = list ( set ( [ i. split (':') [ 0 ] for i in namespaces if':'in i ] ) ) # fix double namespaces for namespace in namespacestofix : content = cmds. namespaceinfo ( namespace, li...
[ -0.4167841076850891, 0.3390994369983673, 0.9168174862861633, 0.022746464237570763, -0.7434480786323547, 0.09373827278614044, 0.6272853016853333, -0.5981643199920654, 0.08529336750507355, 0.0825284868478775, -0.9075940251350403, 0.14340950548648834, -0.18597117066383362, 1.4414759874343872,...
def spec2pix ( self, spectra, ispecmin = 0, ifluxmin = 0, xyrange = none, verbose = false ) : nspec, nflux = spectra. shape if xyrange is none : spec _ range = ( ispecmin, ispecmin + nspec ) flux _ range = ( ifluxmin, ifluxmin + nflux ) xyrange = self. xyrange ( spec _ range, flux _ range ) xmin, xmax, ymin, ymax = xyr...
[ -0.6553055047988892, -0.030994035303592682, 0.686431884765625, -0.5078158378601074, 0.3827071189880371, -0.057159967720508575, -0.8515244722366333, 0.03615916520357132, 0.6577072143554688, 0.3398745357990265, 0.5463136434555054, 0.46846550703048706, -0.24952933192253113, -0.085033215582370...
def constructdatacardname ( mass ) : name ='hbb _ mbb'+ str ( mass ) +'_ mssm - 13tev. txt'return name
[ 0.00017957687668967992, -0.5688060522079468, 0.3123820722103119, -0.9721341133117676, -0.47794851660728455, 0.2678748667240143, -0.6604795455932617, 0.5149308443069458, -0.4776809811592102, 0.19874049723148346, -0.3874545097351074, 0.255042165517807, 0.6856982111930847, 0.2189115732908249,...
def calpnor ( m, v, k ) : if ( v < = 0 ) : p = 0. 0001 else : # p = 1 - norm ( m, v ). cdf ( k ) p = cumulativeprobability ( k, m, v ) return p
[ 1.0967152118682861, -0.6794918179512024, 0.47925499081611633, 1.0183299779891968, -1.1417328119277954, 0.062940314412117, 0.03533235564827919, 1.1580289602279663, 0.5063202381134033, 0.7180220484733582, 0.2931404411792755, -0.8018947243690491, -1.052356481552124, -0.02802136540412903, -0...
def _ _ init _ _ ( self, base _ path ) : self. base _ path = base _ path
[ 0.31463998556137085, -1.3133612871170044, 0.19163934886455536, 0.7199828028678894, 0.16165666282176971, 0.5527231097221375, 0.35266828536987305, 0.7391757965087891, -0.41006967425346375, -0.3328627049922943, -0.3461669981479645, -0.05968151614069939, -0.17364943027496338, 0.296232700347900...
def _ calculate _ temperature ( self, msb, lsb ) : # the bit 15 of the msb is a positive / negative flag, mask it off t _ c = ( ( msb & 0x7f ) * 256. 0 + float ( lsb ) ) / 10. 0 # if bit 15 of the msb is 1, then the value is negative if msb & 0x80 : t _ c = - t _ c # convert to farenheit t _ f = 9. 0 * t _ c / 5. 0 + 3...
[ 0.6650342345237732, 0.15777474641799927, 0.6338050365447998, -0.12302924692630768, -0.5754410624504089, -0.44233059883117676, -0.10572721809148788, 0.5379326343536377, -0.9291695356369019, 0.625670313835144, -1.1635738611221313, -0.4126756191253662, -0.798992395401001, 0.49784156680107117,...
def _ _ pow _ _ ( a, b ) : if isinstance ( b, numbers. rational ) : if b. denominator = = 1 : power = b. numerator if power > = 0 : return fraction ( a. _ numerator * * power, a. _ denominator * * power, _ normalize = false ) elif a. _ numerator > = 0 : return fraction ( a. _ denominator * * - power, a. _ numerator * *...
[ 0.47829878330230713, -0.3970050513744354, 0.8320657014846802, 0.3038240671157837, 0.42163321375846863, -0.5499458909034729, -0.8410751223564148, -0.37669068574905396, -0.09825269132852554, -0.9426501393318176, 1.4944747686386108, -0.07887105643749237, 0.1886591911315918, -0.625044345855712...
def delete ( self, ns, key ) : self. _ sdl. remove ( ns, { key } )
[ -0.2504767179489136, 0.5468809604644775, 0.08523641526699066, 0.378363698720932, -0.7390133738517761, -0.022371258586645126, -1.2996642589569092, -0.4874631464481354, 0.18007870018482208, 0.10676427185535431, -0.3768899440765381, 0.33208203315734863, 0.21830476820468903, 0.4443516433238983...
def get _ artist _ top _ tracks _ from _ name ( self, artist _ name, just _ id _ and _ name = false ) : artist _ id = self. get _ artist _ id ( artist _ name ) if artist _ id : return self. get _ artist _ top _ tracks _ from _ id ( artist _ id, just _ id _ and _ name ) return none
[ -0.14048190414905548, -0.23625889420509338, 0.7012326121330261, 0.23227939009666443, -0.9591739773750305, -0.19072294235229492, -0.8940081596374512, -0.5893734693527222, 0.24694141745567322, 0.049083687365055084, -0.22484752535820007, 0.1587725579738617, 0.020388802513480186, 0.37846025824...
def _ object _ to _ dict ( obj, exclude _ varnames = none ) : exclude _ varnames = exclude _ varnames or [ ] d = { } # get all potential variables objvars = vars ( obj ) for attr in dir ( obj ) : if isinstance ( getattr ( type ( obj ), attr, none ), property ) : objvars [ attr ] = getattr ( obj, attr ) for name, val in...
[ -0.821656346321106, -0.059138692915439606, 0.8436817526817322, -0.7520589828491211, -1.7372915744781494, -0.2630672752857208, 0.30255699157714844, -0.29928722977638245, 0.28675687313079834, 0.3050611615180969, -0.9645462036132812, -0.04774921014904976, 0.5679703950881958, 0.576452374458313...
def save _ user ( self ) : user. user _ list. append ( self )
[ -1.0342258214950562, -0.14535899460315704, 0.2710866332054138, 0.728588342666626, 1.1263927221298218, 1.2286412715911865, -0.12367580831050873, 0.4819311797618866, 0.2858225107192993, -0.1494373083114624, -2.484816789627075, -0.5026726126670837, -0.22387437522411346, 0.8894286155700684, ...
def intervaltype ( intv ) : if len ( intv ) = = 0 : return none # fintv'flattens'interval from tuple to make list comprehensions simpler fintv =''. join ( intv ) for x in ['d ','a ','2 ','7 ','4'] : if any ( x in y for y in intv ) : return intervaltype. dissonant if'5'in fintv and'6'in fintv : return intervaltype. diss...
[ -1.0586069822311401, -0.40417274832725525, 0.7312219142913818, -0.22509583830833435, -0.19305910170078278, 0.5117063522338867, 0.16345158219337463, 0.06388228386640549, 0.5064791440963745, 0.3906153738498688, -0.3265342116355896, -0.04851570352911949, -1.4869346618652344, -0.00814284570515...
def get _ auto _ display ( * args ) : return _ ida _ auto. get _ auto _ display ( * args )
[ -0.1827184110879898, -0.15193699300289154, 0.3251521587371826, 0.9964128136634827, -0.0027631414122879505, -1.074302315711975, 1.055397868156433, -0.7200738191604614, -0.5435647964477539, -0.6523345112800598, -0.7483438849449158, 0.4632885754108429, -0.6429638266563416, 0.10545725375413895...
def get _ random _ event ( self ) : particle _ path, time _ path = self. _ generate _ random _ path ( ) # todo : remove # print ( " particle _ path : { } ". format ( particle _ path ) ) # arrays for storing the hits'data activation _ times = np. array ( [ ] ) pixel _ positions = [ ] for pane in self. panes : pane _ pix...
[ -0.005222114268690348, -0.046167053282260895, 0.6916288733482361, -0.31938669085502625, -0.15417464077472687, 0.4607914090156555, 0.6057112812995911, -0.05963912978768349, -0.2706140875816345, 0.21359285712242126, 0.42207205295562744, 0.18346717953681946, -0.299275279045105, -0.27473959326...
def add _ price _ updates ( self, stream _ price _ updates ) : # a stream of price _ updates can contain several updates for price _ update in stream _ price _ updates : data = price _ update. split ( ) # creation of two edges with the data provided in the price _ update stream : # edge ( vertex _ a, vertex _ b, weight...
[ -0.36424413323402405, -0.4757072329521179, 1.0234190225601196, 1.0388010740280151, -0.06990744173526764, 0.40523502230644226, 0.47880876064300537, -0.31074467301368713, 0.11879154294729233, 0.5097494125366211, 0.47727882862091064, 0.20385584235191345, -0.7501457333564758, 0.363378673791885...
def get _ prev _ next _ posts ( self, perm, post _ name ) : prev = next = marker ='' found = false for post in get _ blog _ resources ( self. env ) : if not'blog _ view'in perm ( post ) : continue if post. id = = post _ name : next = marker found = true continue if found : prev = post. id break marker = post. id return...
[ 0.4406975507736206, 0.27583932876586914, 0.7378900647163391, 0.41802096366882324, -1.0822097063064575, -0.2419986128807068, 0.6701657772064209, 0.21550357341766357, -0.5468327403068542, 0.24026232957839966, 0.05044368654489517, 0.5551108121871948, -1.1116892099380493, 0.49105796217918396, ...
def do _ step ( self, client, step ) : condition = self. perform _ step ( client, step ) if condition is not none : client. wait _ for ( condition )
[ 0.12406360357999802, 0.6191426515579224, 0.15361423790454865, 0.7801321148872375, 0.6573319435119629, 0.10052327066659927, -0.04220613092184067, 0.21527224779129028, -1.6594305038452148, -0.6226706504821777, -0.30044180154800415, -0.6247588992118835, -0.24826999008655548, 0.243892714381217...
def jaccard ( self, other ) : if np. any ( self. _ masks! = other. _ masks ) : raise exception ( " can only calculate similarity " " between minhashes with the same hash " " functions. " ) return ( self. _ hashes = = other. _ hashes ). sum ( ) / float ( self. _ k )
[ 1.0503613948822021, 0.2641870975494385, 0.7851048707962036, 0.35202842950820923, -0.625151515007019, -0.1076870709657669, 0.16341322660446167, -0.9188337922096252, 0.4951285421848297, 0.5111813545227051, -0.35770323872566223, 0.42514878511428833, -0.5082510113716125, 0.6224173307418823, ...
def tell ( self ) : return self. bit _ seek _ pos
[ -0.2158767431974411, -0.5580634474754333, 0.4589105248451233, -0.31341075897216797, 0.611158549785614, 1.0398789644241333, 1.0447367429733276, -1.2260546684265137, -0.29315105080604553, -0.660563588142395, -0.15594933927059174, 0.33116257190704346, -0.7596473693847656, -0.6000105738639832,...
def cluster _ segmentchain _ families ( transcripts _ to _ annotate ) : annotation _ dictionary = { i. get _ name ( ) : i for i in transcripts _ to _ annotate } hash = genomehash ( transcripts _ to _ annotate ) # block off spanning segments in genome for each known transcript families = defaultdict ( list ) assigned _ ...
[ -0.14291313290596008, -0.3742333650588989, 0.7475919127464294, -0.2622232735157013, -0.705494225025177, -0.4913496971130371, -0.12608696520328522, -0.2569417357444763, -0.6352084875106812, -0.311246395111084, -0.3440433442592621, -0.4648330509662628, 0.14886479079723358, 0.6876716613769531...
def test _ launch _ app _ via _ sysinv ( copy _ test _ apps, cleanup _ app ) : app _ dir = copy _ test _ apps app _ name = helm _ app _ name log. tc _ step ( " upload { } helm charts ". format ( app _ name ) ) container _ helper. upload _ app ( app _ name = app _ name, app _ version ='1. 0 ', tar _ file = os. path. joi...
[ 1.1001603603363037, -0.470402330160141, 0.999763548374176, 0.8678009510040283, 0.2140154093503952, 0.40876951813697815, 0.5164358615875244, -0.3323782682418823, 0.239210307598114, 0.2535799443721771, 0.5057976245880127, 0.34158599376678467, 0.527367889881134, -0.0485832653939724, 0.75160...
def swap ( self, array : arraylist [ tuple ], start : int, end : int ) - > none : array [ start ], array [ end ] = array [ end ], array [ start ]
[ -1.8938218355178833, -0.5711690187454224, 0.528988242149353, -0.1296725869178772, 0.27081409096717834, 0.5337240695953369, -0.8050013780593872, 0.8939347267150879, -0.4413280785083771, 1.0002000331878662, -0.2825690507888794, 1.0278316736221313, -0.021039076149463654, -0.8487259149551392, ...
def stack _ authentication ( self, stack _ authentication ) : self. _ stack _ authentication = stack _ authentication
[ -1.0369281768798828, 0.3633604943752289, -0.11306791007518768, 1.6547983884811401, -0.14653246104717255, -0.002447886858135462, 0.7423263788223267, -0.08498082309961319, -0.9207124710083008, 0.8458149433135986, -1.6183295249938965, 0.029478855431079865, 0.24592876434326172, 0.3027555048465...
def create ( self, emotion, word _ pairs, number _ of _ artifacts = 10 ) : if not glob. glob ( os. path. join ( self. folder, " model. ckpt * " ) ) : print ( " couldn't locate pre - trained model! " ) return [ self. _ _ get _ default _ artifact _ with _ meta ( emotion ) for _ in range ( number _ of _ artifacts ) ] arti...
[ -0.39361870288848877, 0.424175888299942, 0.5432692766189575, 0.43017810583114624, 0.6729795932769775, 0.0952899158000946, 0.7198249697685242, -0.19784259796142578, -0.7731826901435852, 0.5214351415634155, 0.24831834435462952, -0.3996126651763916, -0.1996677666902542, -0.2955245077610016, ...
def element _ text _ should _ be _ equal _ to ( self, name, text ) : selector = self. get _ web _ element _ selector ( name ) self. element _ text _ should _ be ( selector, text )
[ -0.05241711065173149, -0.7969989776611328, 0.38900819420814514, 0.6623237133026123, 0.35377660393714905, 0.4386177062988281, -0.6728098392486572, 0.11475304514169693, 1.1855251789093018, 1.0458210706710815, -1.1005576848983765, 0.09479808062314987, -0.5825961232185364, 0.01656714640557766,...
def ratemovie ( self ) : def addrating ( ) : " " " adds the user's rating to the database " " " ratemovie = false rating = self. e _ ratemovie. get ( ) if len ( str ( rating ) ) = = 1 or len ( str ( rating ) ) = = 2 and int ( rating ) > 0 and int ( rating ) < 11 : database = database ( ) user _ id = database. run _ sel...
[ -0.25781959295272827, 0.7070528268814087, 1.0350710153579712, 0.40713274478912354, 0.7783614993095398, 0.4209476709365845, 0.36215677857398987, 0.13714003562927246, -0.2831003665924072, 1.193254828453064, -0.02086477540433407, 0.48213717341423035, -1.104853630065918, 1.094332218170166, 0...
def deleteunknownpluginnodes ( plugin ) : unknownnodes = cmds. ls ( type ='unknown') for node in unknownnodes : plug = cmds. unknownnode ( node, query = true, plugin = true ) if plug = = plugin : cmds. locknode ( node, lock = 0 ) cmds. delete ( node ) logger. debug ('deleted node : { 0 } '. format ( node ) )
[ -0.45130279660224915, -0.839422345161438, 0.5194036960601807, -0.06794325262308121, 0.9463857412338257, -0.4938565790653229, 0.4926627576351166, 0.5657346844673157, 0.8574512600898743, 0.2957760691642761, -0.9403380155563354, 1.0926519632339478, -0.6764436364173889, 0.053088173270225525, ...
def current _ fulfillment _ status ( self ) : return self. _ current _ fulfillment _ status
[ -0.003581972559913993, -1.0713180303573608, 0.11049740016460419, 0.03576244041323662, -0.11157780885696411, 0.9142395853996277, 0.0038622114807367325, -0.17051798105239868, -0.27402806282043457, -0.9933122396469116, -0.45709094405174255, -0.08438931405544281, 0.3385201394557953, 0.56884944...
def aug _ test _ simple ( self, imgs, img _ metas, rescale = false ) : # recompute feats to save memory feats = self. extract _ feats ( imgs ) aug _ bboxes = [ ] aug _ scores = [ ] for x, img _ meta in zip ( feats, img _ metas ) : # only one image in the batch outs = self. bbox _ head ( x ) bbox _ inputs = outs + ( img...
[ -0.49860140681266785, -0.10842971503734589, 1.0089704990386963, 0.6332616806030273, 0.5621538758277893, -0.8482867479324341, -0.4633849859237671, -0.3784889280796051, 0.4932402968406677, -0.6795082688331604, -0.31183454394340515, -0.2123880833387375, 0.3432638347148895, 0.7729955911636353,...
def x _ to _ parameters ( x, projector _ resolution ) : animal _ y = x [ 0 ] animal _ z = x [ 1 ] dome _ y = x [ 2 ] dome _ z = x [ 3 ] dome _ radius = x [ 4 ] mirror _ radius = x [ 5 ] projector _ y = x [ 6 ] projector _ z = x [ 7 ] projector _ roll = x [ 8 ] projector _ theta = x [ 9 ] projector _ vertical _ offset =...
[ -0.33519914746284485, 0.19217199087142944, 0.7875837683677673, -1.2695181369781494, -1.0388423204421997, -0.05770329385995865, -1.0306905508041382, -0.24022728204727173, 0.011181429028511047, 1.2857882976531982, -0.5017312169075012, -0.004028409719467163, 0.7885101437568665, 0.121458776295...
def mul _ inv ( x : int, n : int ) - > int : g, s, t = xgcd ( x, n ) if g = = 1 : return s % n
[ -0.31415486335754395, 1.4413734674453735, 0.4118230938911438, 0.22966304421424866, -0.7774890661239624, -0.5397474765777588, -0.9372411966323853, -0.3328785002231598, -0.31190162897109985, 0.690295934677124, -0.5174880623817444, 0.15641754865646362, -0.4984188973903656, -0.0939314514398574...
def strobe _ multistate _ nucleus ( model, n _ tracks, model _ diffusivities, model _ occupations, track _ len = 10, dz = 0. 7, frame _ interval = 0. 01, loc _ error = 0. 0, exclude _ outside = true, n _ gaps = 0, nucleus _ radius = 5. 0, bleach _ prob _ per _ frame = 0, n _ rounds = 1, allow _ start _ pos _ outside = ...
[ 0.09509671479463577, 0.7109713554382324, 0.9520864486694336, 0.4555858373641968, 0.15578673779964447, 0.25788238644599915, -0.04612726718187332, -0.34647712111473083, 0.20175424218177795, 0.6549938917160034, -0.4702811539173126, -0.16878704726696014, 0.12495958060026169, 0.4473690986633301...
def test _ list _ integer _ pattern _ 4 _ nistxml _ sv _ iv _ list _ integer _ pattern _ 5 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - pattern - 5. xsd ", instance = " nistdata / list / integer / sc...
[ -0.6995603442192078, -0.5893861651420593, 0.4456215798854828, 0.33723169565200806, -0.7666816115379333, -0.3221253454685211, 0.19692294299602509, -0.03945516049861908, 0.290221631526947, 0.8250812292098999, -1.2643550634384155, -0.27890321612358093, -0.5342587828636169, 0.7825747728347778,...
def test _ valid _ client _ key ( self ) : key = self. lti _ consumer. consumer _ key assert signaturevalidator ( self. lti _ consumer ). check _ client _ key ( key )
[ 1.268236517906189, -0.28135934472084045, 0.15132367610931396, 0.5407050848007202, 0.214995875954628, 0.30315592885017395, 0.09238661080598831, -0.36844775080680847, -0.7885584831237793, 0.1390165388584137, -0.27642735838890076, -0.4002104103565216, -0.2414989471435547, 0.6253063082695007, ...
def get _ global _ link _ angular _ analytical _ jacobian ( self, link : str, q : arraytype ) - > casadiarraytype : return self. get _ link _ angular _ analytical _ jacobian ( link, q, self. get _ root _ link ( ) )
[ -0.3343220353126526, -0.5269033312797546, 0.2588571608066559, 0.4109041392803192, 0.060334257781505585, 0.12083220481872559, -0.09098374098539352, -0.8462277054786682, 0.24604618549346924, -0.14702512323856354, 0.32240888476371765, 2.1269378662109375, 0.015820039436221123, 0.34361401200294...
def spiral ( radius, step, resolution =. 1, angle = 0. 0, start = 0. 0, direction = - 1 ) : dist = start + 0. 0 coords = [ ] while dist * math. hypot ( math. cos ( angle ), math. sin ( angle ) ) < radius : cord = [ ] cord. append ( dist * math. cos ( angle ) * direction ) cord. append ( dist * math. sin ( angle ) ) coo...
[ -0.3546479642391205, -0.636685311794281, 0.4658355116844177, -0.12097574770450592, -0.24535518884658813, -0.35536208748817444, 0.17556309700012207, 0.12488296627998352, 0.1503073275089264, -0.36160045862197876, -0.6802413463592529, 0.10616333037614822, -0.29533955454826355, 0.0111516853794...
def _ _ add _ utm _ source ( browser _ url, utm _ source ) : if not utm _ source : return browser _ url if "? " in browser _ url : logging. warning ( f " mobilize america unexpectedly returned query params in event url : { browser _ url } " ) return browser _ url return f " { browser _ url }? utm _ source = { urllib. p...
[ -0.3967093825340271, 0.05282480642199516, 0.35716530680656433, -0.3255589008331299, 0.25950589776039124, -0.10041516274213791, -0.699921190738678, 0.7421918511390686, 0.9224128127098083, 0.7995514273643494, 0.5036962032318115, -0.7173209190368652, 0.4815516173839569, 0.5114955306053162, ...
def getscrumboard ( request ) : if ( request. method = ='get') : try : sprint _ id = request. get. get ('sprint _ id') sprint = sprint. objects. get ( sprint _ id = sprint _ id ) selected _ sprint = sprint. sprint _ name except : sprint = none selected _ sprint = " " userstories = userstory. objects. filter ( sprint = ...
[ 0.3616366982460022, 0.5995184779167175, 0.6979708671569824, 0.8611059188842773, -0.2274521142244339, 0.11861611157655716, 0.17594443261623383, 0.6378682255744934, 0.3941572606563568, 0.14461463689804077, 0.7386811971664429, -0.03284440562129021, 0.30660930275917053, 0.19976387917995453, ...
def bin _ coeff ( self, n, k ) : if 0 < = k < = n : ntok = 1 ktok = 1 for t in range ( 1, min ( k, n - k ) + 1 ) : ntok * = n ktok * = t n - = 1 return ntok / / ktok else : return 0
[ -0.15899480879306793, -0.2250211238861084, 0.7263649106025696, 0.4399648606777191, -0.24053838849067688, -0.1623183935880661, -0.054486796259880066, -0.49253973364830017, -0.55403071641922, 0.15213075280189514, -0.6012468934059143, 0.12858568131923676, -0.4296434223651886, 0.56672328710556...
def submissions ( self ) : return self. get _ submissions ( )
[ 0.2583696246147156, -0.3829497694969177, 0.19024048745632172, 0.7080405354499817, 0.39861318469047546, -0.37377098202705383, -0.8854856491088867, -0.30958619713783264, -0.35318684577941895, -0.8452520370483398, -0.7512551546096802, 0.5892868041992188, -0.29648512601852417, 1.26122379302978...
def find _ ndcg ( reference, hypothesis ) : return find _ dcg ( hypothesis ) / find _ dcg ( reference )
[ 0.5424710512161255, 1.3765145540237427, 0.2413136065006256, -0.5080558061599731, -0.19204773008823395, -1.2567225694656372, 0.2506205141544342, -1.065635323524475, -0.8307370543479919, 1.198281168937683, 0.8793267011642456, 0.292691707611084, -0.7223834991455078, 1.5696146488189697, 0.73...
def _ _ init _ _ ( self, base _ sizes, aspect _ ratios, anchor _ strides, anchor _ offsets, normalize _ coordinates = true ) : self. _ base _ sizes = base _ sizes self. _ aspect _ ratios = aspect _ ratios self. _ anchor _ strides = anchor _ strides self. _ anchor _ offsets = anchor _ offsets self. _ normalize _ coordin...
[ 1.0585294961929321, 0.08672799915075302, 0.2698916792869568, -0.4103778600692749, 0.04374747350811958, 0.3004726767539978, -0.14434003829956055, -0.024335620924830437, 0.32895711064338684, -0.7378937005996704, 0.16729767620563507, 0.40862178802490234, 0.5842318534851074, 0.2720984220504761...
def eval _ param ( self, param, ispec = none, iflux = none, loglam = none, y = none ) : # - cases 1 and 5 : iflux = = loglam = = y = = none if iflux is none and loglam is none and y is none : if ispec is none : return self. param [ param ] else : return self. param [ param ] [ ispec ] # - case 2, 3, 4 : ispec is none, ...
[ -0.3170037567615509, -0.2854856848716736, 1.0471919775009155, 0.07998041808605194, 0.5067242980003357, -0.5628154873847961, -0.11122923344373703, -0.03803625702857971, 0.17428481578826904, 0.08904238790273666, 0.22569699585437775, 0.9588292241096497, -0.712151288986206, -0.1312905102968216...
def check _ players ( self, discard _ stderr = false, quiet = false ) : try : to _ check = self. competition. get _ player _ checks ( ) except competitionerror, e : raise ringmastererror ( e ) if self. skip _ player _ checks and discard _ stderr : if not quiet : print > > self. stdout, " skipping % s player checks " % ...
[ -0.7995150685310364, 0.21345023810863495, 0.889553964138031, 0.5644884705543518, 0.2298337072134018, 0.3787771761417389, 0.11730820685625076, -0.0038663840387016535, -0.6480693221092224, 0.2728429436683655, 0.8725156784057617, 0.01291913352906704, -0.9603052735328674, 0.7778894901275635, ...
def build _ from _ registry ( cfg, registry, default _ args = none ) : assert isinstance ( cfg, dict ) and'type'in cfg assert isinstance ( default _ args, dict ) or default _ args is none args = cfg. copy ( ) obj _ type = args. pop ('type') if isinstance ( obj _ type, str ) : obj _ cls = registry. get ( obj _ type ) if...
[ -0.4387088418006897, -0.03700501471757889, 0.5322532057762146, 0.082038514316082, 0.5143460631370544, 0.20914164185523987, 0.41056203842163086, 0.30077558755874634, -0.13822585344314575, 0.4353201687335968, 0.06645673513412476, 0.331074059009552, -0.4881601333618164, 0.0062909503467381, ...
def keepnamespace ( method ) : @ functools. wraps ( method ) def namespace ( * args, * * kw ) : np = cmds. namespaceinfo ( currentnamespace = true ) result = method ( * args, * * kw ) cmds. namespace ( set = np ) return result return namespace
[ -0.1557973325252533, -0.40159446001052856, 0.645824670791626, -0.32657307386398315, -0.7173190712928772, 0.22789888083934784, 0.22579512000083923, -1.2672083377838135, 1.017486572265625, -0.22121264040470123, 0.7372674942016602, 0.23599773645401, 0.028293905779719353, 0.656495988368988, ...
async def default _ account _ setup ( ) : account = { " account " : " demoaccount ", " bot " : " demo ", " email " : " test @ demo. in ", " first _ name " : " test _ first ", " last _ name " : " test _ last ", " password " : secretstr ( " welcome @ 1 " ), } try : user = accountprocessor. account _ setup ( account, user...
[ 0.13812309503555298, 0.8191881775856018, 0.4600095748901367, 0.8221683502197266, 0.6582154035568237, -0.15724901854991913, 0.8262332677841187, -0.08227233588695526, 0.2831480801105499, 0.3587627410888672, -0.8499543070793152, -0.32907891273498535, -0.38715681433677673, 0.055402401834726334...
def test _ get _ ratelimit _ command ( mocker ) : from crowdstrikemalquery import get _ ratelimit _ command mocker. patch. object ( client,'get _ quotas ', return _ value = util _ load _ json ('test _ data / get _ ratelimit _ raw _ respose. json') ) result = get _ ratelimit _ command ( client, { } ) expected _ hr = " |...
[ 0.7660882472991943, -0.0880064144730568, 0.709014356136322, -0.12862129509449005, 0.9581161141395569, 0.07444026321172714, -0.0908602774143219, -0.8057904839515686, -0.33070722222328186, -0.1243528500199318, 0.19170457124710083, 0.3976483941078186, -0.19890709221363068, -0.5549402832984924...
def test _ check _ hypervisor _ max _ limit _ effect ( self ) : hostlist = host. list ( self. apiclient, zoneid = self. zone. id, type = " routing " ) event _ validation _ result = validatelist ( hostlist ) self. assertequal ( event _ validation _ result [ 0 ], pass, " host list validation failed due to % s " % event _...
[ -0.13126127421855927, 0.48340195417404175, 1.0753788948059082, 1.4548085927963257, -0.008461831137537956, 0.17091448605060577, 0.6256366968154907, 0.9426610469818115, -0.09025152772665024, 0.7074342966079712, -0.6076767444610596, 0.7905209064483643, -0.22861547768115997, 0.5830879211425781...
def window _ at ( self, geom, window _ shape ) : # centroids of the input geometry may not be centered on the object. # for a covering image we use the bounds instead. # this is also a workaround for issue 387. y _ size, x _ size = window _ shape [ 0 ], window _ shape [ 1 ] bounds = box ( * geom. bounds ) px = ops. tra...
[ 0.14225172996520996, -0.5889887809753418, 0.5946148037910461, 0.46539655327796936, -0.8279006481170654, 0.30465391278266907, -0.047589369118213654, -0.8656952381134033, 0.09259899705648422, 0.16759122908115387, 0.7939921021461487, 1.4417998790740967, 0.24538326263427734, -0.018681799992918...
def get _ tilt _ angles ( ) : ( ax, ay, az ) = clue. acceleration return ( math. atan2 ( ax, - az ) * rad _ to _ deg, math. atan2 ( ay, - az ) * rad _ to _ deg )
[ -0.1184815987944603, -0.6293659210205078, 0.4810464382171631, -0.6140345335006714, -0.31975191831588745, 0.07975251972675323, 0.8244956731796265, -0.3521072566509247, -0.26267382502555847, 1.3809850215911865, 0.006814619526267052, 0.2641615569591522, 0.3361724615097046, -0.2402004003524780...
def file _ is _ used ( self ) - > bool : return bool ( list ( self. using _ pages ( total = 1 ) ) )
[ -0.6572529077529907, -0.18920089304447174, 0.5740914344787598, 0.07421928644180298, 1.0371489524841309, -0.6387828588485718, -0.0842585414648056, 0.23624953627586365, -0.5379202365875244, -0.21688050031661987, 0.5062729716300964, -0.23199856281280518, -0.1566544771194458, 1.062413692474365...
def load _ driving _ agent _ make _ video ( pelican _ agent _ filepath, pelican _ agent _ name, panther _ agent _ filepath, panther _ agent _ name, config _ file _ path ='/ components / plark - game / plark _ game / game _ config / 10x10 / balanced. json ', video _ path ='/ components / plark _ ai _ flask / builtangula...
[ 0.17599481344223022, -0.6498091220855713, 0.8806315660476685, 0.00043715990614145994, 0.2305891215801239, -0.01767287403345108, -0.7688383460044861, -0.40371182560920715, 0.01998128928244114, 0.2968329191207886, -0.009398658759891987, 0.24870574474334717, 0.04883517324924469, -0.5769383907...
def getstatusoutput ( cmd ) : try : data = check _ output ( cmd, shell = true, universal _ newlines = true, stderr = stdout ) status = 0 except calledprocesserror as ex : data = ex. output status = ex. returncode if data [ - 1 : ] = ='\ n': data = data [ : - 1 ] return status, data
[ 0.12991884350776672, -0.8780465722084045, 0.5338936448097229, -0.03899388760328293, -1.0195647478103638, -0.732667088508606, -0.4386674761772156, 0.47203773260116577, -0.0704277753829956, -0.28091302514076233, -0.3960072696208954, 0.09742458909749985, -0.13771286606788635, 1.04828631877899...
def test _ processor _ not _ creates _ entry _ db _ if _ delete _ inst _ notemodel ( self ) : # check created object after loaded fixtures all _ note = notemodel. objects. all ( ) self. assertequal ( len ( all _ note ), 12 ) only _ note = all _ note [ 11 ] self. assertequal ( only _ note. model,'contact') # delete obje...
[ 0.037911295890808105, -0.024266302585601807, 0.39918747544288635, 0.045670244842767715, 0.9900336861610413, 1.3569002151489258, 0.7697853446006775, 0.39730581641197205, 0.6450030207633972, -0.3076850175857544, -0.8901465535163879, 0.25928154587745667, -0.4209121763706207, 0.416269987821579...
def _ _ init _ _ ( self, amap ) : self. minlon = 10 * * 10 self. minlat = 10 * * 10 maxlon = 0 maxlat = 0 for node in amap. nodes : self. minlon = min ( self. minlon, node. lon ) self. minlat = min ( self. minlat, node. lat ) maxlon = max ( maxlon, node. lon ) maxlat = max ( maxlat, node. lat ) dlon = maxlon - self. mi...
[ -0.1534016728401184, -0.330940306186676, 0.5137777924537659, -0.40284085273742676, 0.0018118221778422594, 0.42213860154151917, -0.019556382670998573, 0.04821566864848137, -0.12323541939258575, 0.4165256917476654, -0.29233455657958984, -0.44919589161872864, -0.1928463727235794, 0.9556260704...
def angle ( input, name = none ) : with ops. name _ scope ( name, " angle ", [ input ] ) as name : input = ops. convert _ to _ tensor ( input, name = " input " ) if input. dtype. is _ complex : return gen _ math _ ops. angle ( input, tout = input. dtype. real _ dtype, name = name ) else : return array _ ops. where ( in...
[ -0.7260376214981079, -0.061799414455890656, 0.47332504391670227, 0.5322813987731934, -0.48802030086517334, 0.08207128196954727, 0.6321332454681396, -0.059455834329128265, 0.5871009230613708, 0.8393782377243042, 0.06208326667547226, 0.012467087246477604, -0.20326873660087585, -0.50295662879...
def play ( self, track = none, context _ uri = none, uris = none, device = none ) : data = { } # special case when playing a set of uris. if uris : data ['uris'] = uris if common. is _ int ( track ) : data [ " offset " ] = { " position " : track } elif context _ uri : # set the context that we are playing in. data [ " ...
[ -1.181117296218872, 0.4703945517539978, 0.7501901984214783, 0.45758238434791565, 0.1825469583272934, 0.4077901840209961, -0.405333012342453, -0.025660065934062004, 0.05185968056321144, -0.6570287942886353, 0.45259761810302734, 0.12027489393949509, -0.9207643866539001, -1.0845850706100464, ...
def test _ minor _ current _ price _ out _ range ( self ) : c = calculator ( ) c. prod _ mode = false c. spot _ prices = [ 49100 / 3, 49200 / 3, 51100 / 3 ] c. last _ sigma = 150 c. last _ mean = 49000 c. past _ price = [ 49200, 49800, 49900, 49000, 48000 ] result = c. calculate ( ) self. assertequal ( result [ 0 ], 49...
[ -0.8127552270889282, -0.46743738651275635, 0.6194148063659668, -0.2780871093273163, -0.08775204420089722, 0.8147996664047241, 0.6869534850120544, -0.71939617395401, -0.20867694914340973, 0.1896001100540161, 0.05036134645342827, -0.09597204625606537, -0.9960922002792358, -0.2037985920906067...
def can _ paginate ( operation _ name = none ) : pass
[ 0.5331060290336609, 0.2035173624753952, 0.6257317662239075, 1.5416665077209473, -0.38709741830825806, -0.23318080604076385, 0.59002286195755, 0.6127083897590637, -0.06563784182071686, 0.1616165041923523, 0.4854021668434143, -0.34415939450263977, -0.6466443538665771, -0.26183465123176575, ...
def _ _ str _ _ ( self ) : s = " vocabulary : " + self. _ voccsvfile + " \ n " for pk in self. _ partitions : s + = str ( self. _ partitions [ pk ] ) + " \ n " return s
[ 0.46982261538505554, -1.4753384590148926, 0.6288312077522278, -1.2330210208892822, -0.5942173600196838, 0.11037815362215042, -0.7398394346237183, -0.19364780187606812, -0.7163329124450684, 0.11852293461561203, 1.4075539112091064, 0.22589202225208282, 0.1530762016773224, -0.3019570708274841...
def create _ package ( self, dirpath ) : filepath = os. path. join ( dirpath, " _ _ coconut _ _. py " ) with univ _ open ( filepath, " w " ) as opened : writefile ( opened, self. comp. getheader ( " _ _ coconut _ _ " ) )
[ -0.5109249949455261, 0.047918666154146194, 0.3112179636955261, -0.5005262494087219, 0.7489579916000366, 0.6193331480026245, 0.9899429082870483, 0.21950876712799072, -0.44996196031570435, -0.11481800675392151, -0.6460664868354797, -0.344011515378952, 0.6283535361289978, -0.33563175797462463...
def shipping _ address2 ( self ) : return self. _ shipping _ address2
[ -0.32186269760131836, -0.9066786766052246, 0.5303491353988647, 0.579749584197998, -0.634911060333252, 0.36598706245422363, 0.6736230850219727, -0.4675326943397522, -0.07719135284423828, -0.1547575145959854, -0.3681345582008362, 1.2655651569366455, 0.38579797744750977, -0.6050896644592285, ...
def approximate _ wd _ stig _ in _ grid ( self, grid _ index ) : active _ tiles = self. gm [ grid _ index ]. active _ tiles autofocus _ ref _ tiles = self. gm [ grid _ index ]. autofocus _ ref _ tiles ( ) if active _ tiles and autofocus _ ref _ tiles : for tile in active _ tiles : min _ dist = 10 * * 6 nearest _ tile =...
[ 0.03481949120759964, -0.6556928753852844, 0.5313326716423035, -0.9656924605369568, -0.4252673089504242, -0.09981229901313782, 1.1393966674804688, -0.7436249256134033, -0.38314029574394226, 1.1288398504257202, 0.050433237105607986, 0.9284290671348572, -0.7887783646583557, 1.3091310262680054...
def test _ list _ decimal _ pattern _ 3 _ nistxml _ sv _ iv _ list _ decimal _ pattern _ 4 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - pattern - 4. xsd ", instance = " nistdata / list / decimal / sc...
[ -0.29275184869766235, -0.07479377835988998, 0.6137151718139648, 0.4561043679714203, 0.26573023200035095, -0.1641443967819214, -0.2149495929479599, 0.32655057311058044, 0.9327306151390076, 0.10235384106636047, -0.9523249268531799, -0.9848260283470154, -0.2692946493625641, 0.0030572647228837...
def gcmi _ model _ 1d _ cd ( x, y ) : x, y = np. atleast _ 2d ( x ), np. squeeze ( y ) if x. ndim > 2 : raise valueerror ( " x must be at most 2d " ) if y. ndim > 1 : raise valueerror ( " only univariate discrete variables supported " ) if not np. issubdtype ( y. dtype, int ) : raise valueerror ( " y should be an integ...
[ 0.009950606152415276, 0.16980242729187012, 0.7383316159248352, 0.018399283289909363, -1.0084296464920044, 0.870730996131897, 0.07056102901697159, -0.536388635635376, -0.16124410927295685, 1.2385308742523193, 1.12027108669281, 0.21912088990211487, -0.6216560006141663, -0.14474579691886902, ...
def chart _ with _ category _ filter ( chart _ name : str, param _ list : list, cur, update, year ) : for i in param _ list : sql = f " " " select json from vacancies where json like'% % % { i [ 0 ] } % %'and published _ at between'{ year } - 01 - 01t00 : 00 : 00 + 0300'and'{ year } - 12 - 31t11 : 59 : 59 + 0300'; " " ...
[ -0.10902063548564911, 0.23780791461467743, 0.974245548248291, 0.1894458532333374, 0.30983638763427734, 0.4786125719547272, 0.5747389793395996, -0.1549156904220581, 0.09677794575691223, 0.2927693724632263, -0.24673961102962494, -0.13627253472805023, 0.640997588634491, 0.282335102558136, -...
def get _ hfcc _ filters ( freq _ min, freq _ high, fft _ size, sample _ rate, mel _ filter _ num = 128, erb _ scale _ factor = 1 ) : f _ min, f _ max = find _ boundary _ fc ( freq _ min, freq _ high, erb _ scale _ factor ) filter _ fcs = get _ hfcc _ filter _ points ( f _ min, f _ max, mel _ filter _ num ) filter _ fl...
[ -0.2867880165576935, -0.3603663146495819, 0.7058519124984741, 0.5059939622879028, 0.6094935536384583, -1.1640790700912476, -0.18416550755500793, -0.2658809721469879, -0.34358248114585876, -0.266463041305542, -0.22816278040409088, 0.43656739592552185, 0.532824695110321, 0.44217783212661743,...
def move ( self, vec ) : # todo : complete parameter documentation self. position + = _ convert2tvec3 ( vec )
[ -0.7804519534111023, -0.1665666401386261, 0.37032550573349, 0.44061893224716187, 0.06377264112234116, 0.6549851298332214, 0.31172120571136475, -0.8527193665504456, 0.20541667938232422, 0.1918034553527832, -1.1671257019042969, 0.39543959498405457, -0.07011730968952179, -0.27829229831695557,...
def _ set _ or _ connect _ a _ to _ b ( obj _ a, obj _ b, * * kwargs ) : # # # # # # # # # # # # # # # # # # # # # # # # # make sure inputs are ok to process log. debug ('_ set _ or _ connect _ a _ to _ b ( { }, { } ) - raw input '. format ( obj _ a, obj _ b ) ) # make sure obj _ a and obj _ b aren't unspecified if obj...
[ -0.15765775740146637, 0.04779946804046631, 1.0857644081115723, 0.16063320636749268, -0.11048636585474014, 0.16536305844783783, 0.8995394706726074, -0.2535841464996338, -0.12137474119663239, 0.18503858149051666, -0.3690299391746521, 0.254146933555603, 0.1164468377828598, 0.3436424732208252,...
def count _ components ( adj _ list : list [ list [ int ] ] ) - > int :
[ -0.551037609577179, 0.016107600182294846, 0.33150622248649597, -0.5364087820053101, 0.33785879611968994, 0.5715007781982422, 0.5211535692214966, 0.830149233341217, 0.938894510269165, 0.6004124283790588, -0.7751393914222717, -0.036197010427713394, 0.00329569261521101, 0.7199565172195435, ...