text
stringlengths
25
2.19k
embedding
listlengths
768
768
def run ( self ) : start = timeit. timeit ( ) self. generatedict ( ) self. saveimage ( ) end = timeit. timeit ( ) print ( " we have successfully saved { } images and labeled it with ratings in { :. 2f } minuets ". format ( len ( self. checkedlist ), ( end - start ) / 60 ) )
[ -1.2435930967330933, 0.29586392641067505, 0.4375461935997009, -0.3697991967201233, 0.37595152854919434, 0.9055395722389221, -0.22184133529663086, 0.34072381258010864, -1.2059710025787354, 0.8384177684783936, -0.8443655371665955, -0.15932175517082214, -0.486235111951828, 1.0227628946304321,...
def signer _ sent ( self, signer _ id ) : recipient = self. docusign _ parser. recipients [ signer _ id ] self. update _ signer ( signer _ id, status ='sent ', status _ datetime = recipient ['sent'], )
[ -0.561790406703949, -0.982221245765686, 0.021213915199041367, -0.5137460231781006, -0.3834082782268524, -0.3904833495616913, -0.48624709248542786, 0.46071740984916687, -0.023329297080636024, 0.751733124256134, -1.6979628801345825, 0.008884308859705925, 0.29661625623703003, 1.07232260704040...
def credential ( self ) : return self. _ credential
[ 0.8024212121963501, -0.9284151792526245, 0.08190890401601791, 1.0141524076461792, 0.07210011035203934, 0.9012086391448975, 1.3539998531341553, 0.6912866830825806, 0.529695451259613, -0.9997680187225342, -0.5889082551002502, 0.7496775388717651, -0.4022868871688843, -1.0333064794540405, 0....
def find _ name _ of _ schema _ classes _ in _ project ( classes _ name ) : schemas _ classes = [ ] error = false for class _ name in classes _ name : try : schema _ class = getattr ( importlib. import _ module ( " src. models. dataobject. v0 _ 0 _ 2. nodeentities. " + class _ name ), class _ name + " schema ", ) schem...
[ -0.8856903314590454, 0.09053836017847061, 0.7757163643836975, 0.10024706274271011, 0.19031551480293274, 0.13976754248142242, -0.5778862833976746, -0.5064571499824524, 0.17673932015895844, 0.567681074142456, -0.4230276346206665, -0.3853414058685303, 0.10948187112808228, 0.6218845844268799, ...
def _ loop _ submit _ pct _ change ( self, tool _ name, location _ ids, measure _ ids ) : logger. info ('submitting pct change jobs for measures { } '. format ( measure _ ids ) ) for measure _ id in measure _ ids : logger. debug ('pct change, specific measure { } '. format ( measure _ id ) ) for start _ year, end _ yea...
[ -0.2799161374568939, -0.5813283324241638, 0.39083242416381836, 0.2537795305252075, -0.06548240780830383, 0.8528192639350891, 0.18937577307224274, -0.5777903199195862, -0.9958829879760742, 0.21322596073150635, 0.7510509490966797, 0.6458443999290466, -0.19203370809555054, 0.7533910870552063,...
def limit ( value, _ limit ) : return max ( min ( _ limit, value ), - _ limit )
[ 0.17499490082263947, -0.11154554039239883, 0.43338093161582947, 0.4378603994846344, -0.42028316855430603, -0.18018972873687744, -1.0243839025497437, -0.7358562350273132, -0.11340814083814621, 0.2894139587879181, 0.4314725399017334, 0.3611012399196625, 0.08818834275007248, -1.19349014759063...
def error ( self ) : return 0
[ -0.28851473331451416, -0.07308901846408844, 0.17423200607299805, 0.697312593460083, 0.3391069769859314, 1.12540864944458, 0.9159910082817078, 0.647322416305542, 0.03271821141242981, -0.7960567474365234, -0.2580465078353882, 0.09787479043006897, -0.6633756160736084, 0.6643871068954468, -0...
def expect ( condition, error _ msg ) : # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # if ( not condition ) : raise systemexit ( " fail : % s " % error _ msg )
[ 1.074549913406372, 0.1324487328529358, 0.809068500995636, 0.4089397192001343, -0.7965808510780334, 0.04415735974907875, -0.25655078887939453, 0.9691318869590759, -0.8476241230964661, 0.05741920322179794, -0.06562311947345734, 0.6078312397003174, -0.47329458594322205, 0.8939208984375, -0....
def _ zeros _ like _ abstract _ error ( x ) : return x
[ -0.5216038227081299, -0.5703173875808716, 0.36431336402893066, -0.8499850034713745, -1.063708782196045, 0.8990291953086853, 0.010555550456047058, -0.45030486583709717, 0.7404367327690125, -0.48652780055999756, 0.64900141954422, 1.1206649541854858, 1.5173468589782715, 0.4479776620864868, ...
def label _ sentiment _ from _ stars ( data _ dict _ list, append _ based _ on ='stars ', sentiment _ col _ name ='sentiment') : for dict in data _ dict _ list : dict [ sentiment _ col _ name ] = 1 if dict [ append _ based _ on ] > 3 else 0
[ -1.0673221349716187, 0.3256884217262268, 0.3203127980232239, -0.4050087630748749, -0.10874544829130173, 0.8277321457862854, -1.6448429822921753, 0.7747617363929749, 0.03713420405983925, 0.990537703037262, -0.59840327501297, -0.005372609943151474, 0.3528454899787903, 0.5251399874687195, 0...
def training _ algorithms ( self, training _ algorithms ) : allowed _ values = [ " sgd ", " rmsprop ", " adagrad ", " adadelta ", " adam ", " adamax ", " nadam " ] # noqa : e501 if not set ( training _ algorithms ). issubset ( set ( allowed _ values ) ) : raise valueerror ( " invalid values for ` training _ algorithms ...
[ -0.6772753596305847, 0.7569707632064819, -0.20750829577445984, 0.9082983136177063, -0.37333807349205017, 1.0862414836883545, 0.5916500687599182, 0.34839314222335815, -1.1017013788223267, 0.34203872084617615, -0.9099149107933044, 0.3724057972431183, 0.060799334198236465, -0.3806538283824920...
def create _ job ( run, job _ name, num _ tasks, env _ name ) : ebs = launch _ utils _ lib. get _ ebs _ settings ( use _ iops = not bool ( args. attach _ volume ) ) # higher iops if no ebs attached job = run. make _ job ( job _ name, num _ tasks = num _ tasks, ebs = ebs, instance _ type = args. instance _ type, use _ s...
[ -0.14171475172042847, 0.1208496019244194, 0.9601082801818848, 0.7679809331893921, 0.3157156705856323, 0.522700846195221, 0.13172461092472076, -0.25151515007019043, -0.1033957377076149, 0.5527450442314148, -0.1865963637828827, -0.298142671585083, 0.6144999265670776, 0.39121097326278687, 0...
def dump ( * args ) : return _ snap. tcncom _ dump ( * args )
[ -0.9759754538536072, 1.0640743970870972, 0.2523757517337799, -0.2232627421617508, 0.6413269639015198, 0.2741682231426239, 1.3406469821929932, 0.19404096901416779, -0.21350456774234772, -0.5277195572853088, -0.9428899884223938, -1.2180893421173096, -0.3039819300174713, 0.8597932457923889, ...
def qsort ( arr : list ) : if len ( arr ) < 2 : return arr else : pivot = arr [ 0 ] less = [ i for i in arr [ 1 : ] if i < = pivot ] greater = [ i for i in arr [ 1 : ] if i > pivot ] return qsort ( less ) + [ pivot ] + qsort ( greater )
[ 0.1413097083568573, -0.26732176542282104, 0.6533396244049072, 0.428195983171463, -1.0185317993164062, 0.5379425287246704, -0.31971630454063416, -0.858382523059845, 0.7824819087982178, -0.21486783027648926, -0.68620365858078, -0.05898892879486084, -0.2958422005176544, 0.5963467955589294, ...
def begeaflti ( self, * args ) : return _ snap. pneanetmp _ begeaflti ( self, * args )
[ 0.5560713410377502, -0.18135692179203033, 0.14736926555633545, 0.24523021280765533, 1.063951849937439, 0.7746648192405701, 0.18754789233207703, -0.7754659652709961, -1.1448198556900024, 0.21788154542446136, -0.407202810049057, -0.363064169883728, -1.037319540977478, 0.9442141056060791, 0...
def addatm ( self, * args ) : return _ snap. tintintvv _ addatm ( self, * args )
[ -1.496997594833374, -0.21792423725128174, 0.33226776123046875, 0.18553964793682098, 0.5259613394737244, 0.40612637996673584, -0.13887640833854675, -0.45944520831108093, -0.10519866645336151, -0.405311644077301, 0.1998896449804306, 0.2442232221364975, -0.6484903693199158, 0.2150797098875045...
def comunicacion ( ) : global dsgraph global mss _ cnt global hotelconsult global flightconsult global activityconsult global lastrequesthotelstimestamp global lastrequestflightstimestamp # logger. info ('peticion de informacion recibida') print'info agentbuscador = > peticion de informacion recibida \ n'# extraemos el...
[ -0.18801362812519073, 0.01289270631968975, 0.6169774532318115, 0.32276514172554016, 0.42628908157348633, 0.22189420461654663, 0.09673609584569931, 0.2836453914642334, -0.33607858419418335, 0.3835122585296631, 0.297288179397583, 0.9054524302482605, -0.36638009548187256, 0.19530603289604187,...
def addto _ playlist ( self ) : flag ='y'for index in range ( len ( default ) ) : print ( index + 1, default [ index ] ) while flag = ='y': try : choice = input ( " press a to add and r to remove from playlist : " ) song _ id = int ( input ( " enter the index of the song to be added / removed : " ) ) song _ id - = 1 if...
[ -0.04948350042104721, -0.15145434439182281, 0.6674960255622864, 0.32759326696395874, 1.0116119384765625, 0.2148076891899109, 0.9081006646156311, -0.32547324895858765, 0.4616813063621521, 0.518449068069458, -0.41193678975105286, 0.5609397292137146, -0.9888714551925659, 0.019964152947068214,...
def parse _ players ( string, game _ board ) : return
[ 0.03123248741030693, -0.7572488188743591, 0.21360428631305695, 0.1700386255979538, -0.2323131561279297, -0.3193564713001251, -0.6180873513221741, 0.7492848634719849, -0.8156623840332031, 0.7961631417274475, -0.003781452775001526, -0.7015717625617981, -1.246328353881836, -0.6878760457038879...
def purchase _ an _ axe ( ) : if not request. is _ json : return " content not in json! \ n ", 400 data = request. get _ json ( ) if data is none or'username'not in data or data ['username'] = ='' : return " missing user info! \ n ", 400 purchase _ event = {'event _ type':'purchase ','user': data ['username'],'weapon _...
[ -0.09422712028026581, 0.14316152036190033, 0.5347782373428345, 0.36208608746528625, 0.24191193282604218, -0.49824389815330505, 0.050785500556230545, -0.08548653870820999, -0.23311468958854675, 0.6293576955795288, 0.06142210587859154, 0.5861292481422424, 0.01791570335626602, -0.480310022830...
def _ traced _ create _ node ( operation, involved _ attributes ) : node _ type = lookup _ tables. node _ lookup _ table [ operation ] [ " node " ] node _ name = _ create _ node _ name ( operation, involved _ attributes ) new _ node = cmds. ls ( cmds. createnode ( node _ type, name = node _ name ), long = true ) [ 0 ] ...
[ 0.018536338582634926, 0.11092106997966766, 0.6833229064941406, -0.30523744225502014, 0.41789674758911133, -0.1575784534215927, 0.8570960164070129, -0.2092888206243515, 0.2330009639263153, 0.4277680516242981, 0.2303820103406906, 0.1780669391155243, -0.022855659946799278, -0.9006562232971191...
def divide ( x, y, name = none ) : if name is not none : # cannot use tensors operator overload, because it has no way to track # override names. use a dummy class to track the runtime division behavior return dividedelegatewithname ( x, name ) / y else : # we do conversion here to make sure at least x is a tensor. if ...
[ -0.1771494448184967, 0.24881808459758759, 0.7011061310768127, 0.3817700147628784, -0.21790963411331177, -0.5946207046508789, -0.6130813360214233, -1.046700119972229, 0.4198678135871887, -0.10412905365228653, 0.1549907624721527, 0.3056502342224121, 0.46566158533096313, -0.3342541754245758, ...
def addunique ( self, * args ) : return _ snap. tstrv _ addunique ( self, * args )
[ -1.3944048881530762, 0.7424653172492981, 0.2528952658176422, -0.08590071648359299, 0.5362866520881653, -0.3664478361606598, 0.7943971157073975, 0.7173073887825012, -1.1544245481491089, -0.46118250489234924, -0.6644982695579529, 0.15107859671115875, 0.0648963525891304, 0.10574951767921448, ...
def get _ lat _ lon ( waypoints ) : latlon = [ ] for waypoint in waypoints : try : location = terminalareainterface. getwaypoint _ latitude _ longitude _ deg ( waypoint ) latlon. append ( {'lat': location [ 0 ],'lon': location [ 1 ] } ) except : latlon. append ( {'lat': 0. 0,'lon': 0. 0 } ) return latlon
[ -0.7664316892623901, -1.1048600673675537, 0.39266034960746765, -0.45495572686195374, -0.2866952419281006, 0.36035266518592834, -0.7444512248039246, 0.542648434638977, -0.3783298134803772, 0.9977079033851624, -0.8069182634353638, -0.6315597891807556, 0.33927562832832336, 1.0098761320114136,...
def getni ( self, * args ) : return _ snap. tungraph _ getni ( self, * args )
[ -0.0018496116390451789, 0.4019055664539337, 0.5490074157714844, 1.318402647972107, 0.9872954487800598, -1.2539753913879395, -0.025684082880616188, -0.6841713190078735, -0.2322569191455841, -0.5410763621330261, -1.343687653541565, -0.8795585632324219, -0.6247847676277161, -0.872362613677978...
def test _ get _ an _ order ( self ) : date = datetime. now ( ) order = order ( customer _ id = 1, date = date, shipped = true ) order. save ( ) order1 = order. get ( order. id ) self. assertequal ( order. id, order1. id ) self. assertequal ( order1. date, date )
[ -0.06418298929929733, -0.017618453130126, 0.3276212215423584, 0.5649362802505493, 0.904747724533081, -0.21071499586105347, -0.947143018245697, 0.1001184731721878, -0.19765490293502808, -0.6704063415527344, -0.5563101172447205, 0.21525739133358002, 0.11678937822580338, 0.2287992388010025, ...
def gentools ( tools = none ) : tooldic = {'im':'imager ( ) ','cb':'calibrater ( ) ','ms':'mstool ( ) ','tb':'tbtool ( ) ','me':'metool ( ) ','ia':'iatool ( ) ','po':'potool ( ) ','sm':'smtool ( ) ','cl':'cltool ( ) ','cs':'cstool ( ) ','rg':'rgtool ( ) ','sl':'sltool ( ) ','dc':'dctool ( ) ','vp':'vptool ( ) ','msmd':...
[ -0.8856924176216125, 0.1369141936302185, 0.8867802023887634, -0.43119925260543823, -0.2016175389289856, 0.3421357274055481, 0.017541557550430298, -0.6337445974349976, -1.0953631401062012, -0.23107442259788513, -0.5766727328300476, -0.8217730522155762, 0.5581170916557312, 0.6388874650001526...
def transform _ perseus _ xml _ to _ html5 ( xml _ text, language = none, return _ as _ str = false ) : # make the function to perform the transformation text _ transformation _ fx = lambda text, parent _ node, dst _ doc : transform _ perseus _ text ( text, parent _ node, dst _ doc, language ) converted _ doc = convert...
[ 0.06429412961006165, 0.24663956463336945, 0.393151193857193, 0.14437711238861084, -1.6328297853469849, 0.17281505465507507, -0.08438040316104889, 0.6208270192146301, 0.1669376790523529, 0.12275245040655136, 0.44716519117355347, -0.3501223921775818, -0.6990596055984497, -0.30481839179992676...
async def receive ( ) - > dict : return {'type':'http. request ','body': b'','more _ body': false, }
[ -0.4195612370967865, 0.22752684354782104, 0.6077595353126526, -0.8966459035873413, -0.08112523704767227, -0.5699977278709412, -1.4987808465957642, -0.1519428789615631, -0.3843267858028412, 0.1509173959493637, -0.88655686378479, 0.4410227835178375, 0.14099018275737762, -0.019473429769277573...
def read _ xyz ( filename, unit _ conversion = units. angstrom _ to _ au ) : x = [ ] symbols = [ ] with open ( filename,'r') as fin : lines = fin. readlines ( ) natom = int ( lines [ 0 ] ) for l in lines [ 2 : 2 + natom ] : sp = l. split ( ) symbols. append ( sp [ 0 ] ) x. append ( [ float ( s ) for s in sp [ 1 : ] ] )...
[ -0.22764509916305542, -0.9604324698448181, 0.5435881614685059, -0.7317572832107544, 0.18897566199302673, 0.2906462550163269, 0.48686346411705017, 1.0089763402938843, -0.006125165615230799, 0.34866759181022644, -0.6665135622024536, 0.6525939702987671, 0.35590413212776184, 0.2748875916004181...
def getkeydat ( self, * args ) : return _ snap. tintprflth _ getkeydat ( self, * args )
[ 0.314893513917923, 0.0875834971666336, 0.5018788576126099, 0.14786656200885773, 0.8119794726371765, 0.3599783182144165, -0.3109854757785797, -0.8342058658599854, -0.8333874344825745, -1.4975486993789673, -0.17860132455825806, -0.4111999571323395, -1.4687354564666748, 0.6732701063156128, ...
def _ _ init _ _ ( self, data, targets, hidden _ shape = none ) : # initialize the data self. data = data self. data. insert ( 0,'bias ', [ - 1 for i in range ( data. shape [ 0 ] ) ] ) self. targets = targets self. classes = self. targets. unique ( ) self. classes. sort ( ) # build layers and nodes self. layers = [ lay...
[ 0.17751838266849518, 0.04946865886449814, 0.68686443567276, -0.4752717614173889, 0.5741195678710938, 0.001615756074897945, 0.30492398142814636, 0.10771150141954422, -0.44561341404914856, 0.023560361936688423, -0.18518507480621338, 0.7058972120285034, -0.354105144739151, -0.0144252981990575...
def test _ atomic _ boolean _ pattern _ nistxml _ sv _ iv _ atomic _ boolean _ pattern _ 1 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - pattern - 1. xsd ", instance = " nistdata / atomic / boolea...
[ 0.019879279658198357, -0.42629435658454895, 0.5104700326919556, 0.936581552028656, 0.13397011160850525, 0.33539995551109314, 0.4183821678161621, -0.07142459601163864, -0.12020634859800339, 0.885534405708313, -0.07385964691638947, -0.15098430216312408, -0.485953152179718, -0.227036938071250...
def put ( self, key : int, value : int ) - > none : slot = key % self. tablesize newele = ( key, value ) # update for i, ele in enumerate ( self. table [ slot ] ) : elekey, eleval = ele if elekey = = key : self. table [ slot ] [ i ] = newele return # new self. table [ slot ]. append ( newele ) return
[ -1.041121244430542, 0.1607871800661087, 0.5289472341537476, -0.22763100266456604, -1.763598918914795, 0.4783360958099365, 0.16247189044952393, -0.11209473013877869, -0.7304019927978516, 1.2983529567718506, -0.046819332987070084, -0.4558797776699066, -0.8170068264007568, 0.37611085176467896...
def reduce ( self, * args ) : return _ snap. pneanetv _ reduce ( self, * args )
[ -2.2053747177124023, 1.3891754150390625, 0.32141149044036865, 0.7782472968101501, 0.8770467042922974, 0.6734672784805298, 0.2617705762386322, -0.4594331681728363, -0.7151711583137512, -0.5366855263710022, -0.3185381591320038, -1.3851081132888794, -0.3306347131729126, 1.351457118988037, 0...
def react _ context _ processor ( request ) : return { " react _ components " : [ ], }
[ -0.5480571985244751, -0.39327070116996765, 0.31640520691871643, -0.9686905145645142, 0.3992058038711548, -0.6680291891098022, 0.05045950785279274, -0.04403702914714813, 1.0619808435440063, -0.13997377455234528, -0.3132828176021576, -0.09778150916099548, 0.018405277281999588, -0.48324671387...
def _ _ str _ _ ( self ) : debugging _ message = " current tile numbers are \ n " for dummy _ col in range ( self. get _ grid _ width ( ) ) : debugging _ message + = " - - - " debugging _ message + = " \ n " for dummy _ row in range ( self. get _ grid _ height ( ) ) : debugging _ message + = " | " for dummy _ col in ra...
[ -0.6602609157562256, -0.4294346570968628, 1.0137672424316406, -1.0506435632705688, -0.6687585711479187, 0.26392680406570435, 0.5278749465942383, -0.7115171551704407, -0.9891684055328369, 0.3130052387714386, 0.3171011209487915, 0.5981404781341553, -0.6614246368408203, 1.0078729391098022, ...
def get _ truncate _ tbl ( self, spark _ sql ) : truncate _ tbl _ sql = [ ] truncate _ flag ='[ truncate ]'replace _ sql ='' if - 1! = spark _ sql. find ( truncate _ flag ) : replace _ sql = spark _ sql. replace ( truncate _ flag,'' ) else : return truncate _ tbl _ sql # get begin string index print'replace sql : % s'%...
[ 0.05496850982308388, -0.10499870777130127, 0.9402927160263062, 0.6945505142211914, -0.06493188440799713, -0.1666220873594284, 0.381099671125412, 0.24313707649707794, -0.38340169191360474, 0.5515932440757751, -0.003068391000851989, 0.8711711764335632, -0.2956412434577942, -0.006885810755193...
def set _ german _ daisy _ tiles ( self ) : self. board = [ tile ( 8, 4, " i5 ", none ), tile ( 8, 5, " i6 ", none ), tile ( 8, 6, " i7 ", none ), tile ( 8, 7, " i8 ", none ), tile ( 8, 8, " i9 ", none ), tile ( 7, 3, " h4 ", white _ piece _ id ), tile ( 7, 4, " h5 ", white _ piece _ id ), tile ( 7, 5, " h6 ", none ), ...
[ 0.03262336552143097, -0.020259710028767586, 0.9269837737083435, -0.19010715186595917, -0.006609596777707338, -0.328754186630249, 1.055661678314209, -0.050683341920375824, 0.1211031973361969, 0.08758910000324249, -1.2363580465316772, -0.02604403719305992, -0.2209678441286087, 0.866327524185...
def reduce _ metrics ( logging _ outputs ) - > none : loss _ sum = sum ( log. get ('loss ', 0 ) for log in logging _ outputs ) # ntokens = sum ( log. get ('ntokens ', 0 ) for log in logging _ outputs ) sample _ size = sum ( log. get ('sample _ size ', 0 ) for log in logging _ outputs ) metrics. log _ scalar ('loss ', l...
[ 0.15724609792232513, -0.26193761825561523, 0.4499557614326477, -0.14441272616386414, -0.3652060925960541, -0.5989856123924255, 0.5780361890792847, -0.09425085783004761, 0.042566314339637756, 0.39390647411346436, 0.277041494846344, 0.011044147424399853, 0.45001599192619324, 0.05636213719844...
def bokeh _ score _ histogram ( y _ proba : iterable [ float ], y _ true : iterable [ float ] ) : x _ range = ( min ( y _ proba ), max ( y _ proba ) ) hover = hovertool ( tooltips = [ ('value ', " $ x { 0. 2f } " ), ('probability ', " $ y { 0. 2f } " ) ] ) tools = " pan, wheel _ zoom, box _ zoom, reset " # todo :. name...
[ 0.7957701086997986, 0.3448002338409424, 1.0100017786026, 0.0929473340511322, -0.0017450510058552027, 0.011538627557456493, 0.003361597191542387, -0.05481688678264618, -0.3210345208644867, 0.465936541557312, 0.31100037693977356, 0.6526415348052979, 0.5508164167404175, -0.011549661867320538,...
def token _ count ( self ) : # work here!!
[ -0.14046627283096313, -1.1536777019500732, 0.40211737155914307, 0.1620224118232727, 0.18716269731521606, -0.336201012134552, 0.6041887402534485, 1.4462990760803223, -0.46362656354904175, -1.1193453073501587, -1.386991024017334, 0.12825271487236023, 0.6296960115432739, 0.2140626162290573, ...
def _ _ init _ _ ( self, min _ gain _ db = - 18. 0, max _ gain _ db = 6. 0, p = 0. 5, ) : super ( ). _ _ init _ _ ( ) self. min _ gain _ db = min _ gain _ db self. max _ gain _ db = max _ gain _ db self. p = p
[ 0.8165786266326904, -0.10707596689462662, 0.5726087689399719, 0.8596271276473999, 0.18199357390403748, 0.5381749868392944, -0.46893608570098877, 0.4968284070491791, -0.17640714347362518, -0.3742470145225525, -0.7940759658813477, 0.36128324270248413, -0.1977194994688034, 0.3820834457874298,...
def gettransforms ( shapelist, fullpath = true ) : transforms = [ ] for node in shapelist : parent = gettransform ( node, fullpath ) transforms. append ( parent ) transforms = filter ( bool, transforms ) return transforms
[ 0.08927179872989655, 0.20671111345291138, 0.4145996868610382, -0.2830815315246582, 0.0600644014775753, -0.35506632924079895, 0.34119346737861633, -0.011431163176894188, 0.415513277053833, 0.5456361174583435, -2.0433919429779053, -0.4682368338108063, -0.008470071479678154, 0.733923733234405...
def getinnid ( self, * args ) : return _ snap. tngraphnodei _ getinnid ( self, * args )
[ 0.19034618139266968, 0.6823575496673584, 0.2821066975593567, 0.5001606941223145, -0.08216089010238647, 0.3482876420021057, 0.6679726839065552, -0.8350503444671631, -1.2641539573669434, 0.1648384928703308, 0.10612086951732635, 0.26479417085647583, -1.3626163005828857, -0.4067237377166748, ...
def leftoflast ( self, * args ) : return _ snap. tstr _ leftoflast ( self, * args )
[ 0.6275901794433594, 0.15035897493362427, 0.3385404646396637, -0.9630928039550781, 0.8772512674331665, -0.46443498134613037, -0.12485013157129288, -0.8443014025688171, -1.1684516668319702, 0.4423633813858032, -0.33777809143066406, -0.5055274367332458, -0.6122538447380066, 0.4704709351062774...
def valuefromthreshold ( self, x ) : return self. slope * x + self. threshold
[ 1.123872995376587, 0.10098395496606827, 0.3656993508338928, 0.33984309434890747, -0.6835863590240479, 0.09026829898357391, -0.660540759563446, -0.9304928779602051, -0.07642246037721634, -0.22180497646331787, -0.38828858733177185, 0.2602536082267761, 0.756641149520874, -0.7980655431747437, ...
def getnodeindegv _ pungraph ( * args ) : return _ snap. getnodeindegv _ pungraph ( * args )
[ -1.2463046312332153, 1.020053744316101, 0.44852733612060547, 0.4146120846271515, 0.13533452153205872, -0.3350926637649536, 0.45189908146858215, 0.8519467711448669, -0.7857515811920166, -0.4462722837924957, -0.33404740691185, 0.10135287046432495, -1.0013964176177979, -0.14414428174495697, ...
def fetchinfo ( pano _ ip, key, dev _ list ) : cmd = " < request > < logging - service - forwarding > < certificate > < info > < / info > " \ " < / certificate > < / logging - service - forwarding > < / request > " outfile = open ('cert _ info. log') err = 0 for device in dev _ list : info _ params = {'type':'op ','cmd...
[ -0.13810302317142487, -0.5318390727043152, 0.8536376953125, 0.420211523771286, -0.5662665367126465, 0.26217007637023926, 0.04583435133099556, -0.18333140015602112, -0.8258366584777832, 0.778796374797821, -0.8242160081863403, -0.3574765920639038, 0.12288068234920502, 0.13149987161159515, ...
def isin ( self, * args ) : return _ snap. tinttrv _ isin ( self, * args )
[ -1.232120394706726, -0.8969575762748718, 0.508069634437561, -0.15530526638031006, -0.3359828293323517, 0.21040521562099457, 0.76559978723526, 0.1697750687599182, -0.6040611267089844, -0.6319512724876404, -0.5960697531700134, 1.1111767292022705, -0.9816731810569763, -0.3448447287082672, 0...
def generate _ bigrams ( x ) : n _ grams = set ( zip ( * [ x [ i : ] for i in range ( 2 ) ] ) ) for n _ gram in n _ grams : x. append (''. join ( n _ gram ) ) return x
[ -0.012686006724834442, 1.2449290752410889, 0.772681474685669, 0.5362950563430786, 0.16119565069675446, -0.05955076217651367, -0.5095268487930298, -0.5121505260467529, 0.030829695984721184, 0.7948241829872131, -1.5443145036697388, 0.8202545642852783, 0.1622770130634308, -0.00190111063420772...
def getcrossnetbyname ( self, * args ) : return _ snap. tmmnet _ getcrossnetbyname ( self, * args )
[ 0.2796059846878052, 0.555021345615387, 0.3223627209663391, 0.8484981656074524, -0.3237878680229187, -0.8480758666992188, 0.598214328289032, -0.7831966280937195, -0.21289078891277313, 0.4856107234954834, -0.895706295967102, -0.9023541808128357, -1.31419837474823, 1.4860119819641113, -0.19...
def test _ storage _ fixtures ( filesystemstorage, inmemorystorage, settings, storage _ backend ) : settings. default _ file _ storage = storage _ backend storage _ a = get _ storage _ class ( ) ( ) storage _ b = get _ storage _ class ( ) ( ) assert not storage _ a. exists ('foo. txt') assert not storage _ b. exists ('...
[ 0.43515491485595703, -0.18586280941963196, 0.5045904517173767, 0.4910435676574707, 1.1577948331832886, -0.5589438676834106, 0.3727778196334839, -0.8153473138809204, -0.29189032316207886, -0.12695936858654022, -0.38145312666893005, -0.8282989263534546, -0.27456989884376526, -0.0060458728112...
def test _ stack _ learn ( self ) : self. prom _ inc ( partial ( self. rcv _ packet, 1, 0x300, {'eth _ src': self. p1 _ v300 _ mac,'eth _ dst': self. unknown _ mac,'ipv4 _ src':'10. 0. 0. 1 ','ipv4 _ dst':'10. 0. 0. 2'} ),'vlan _ hosts _ learned ', labels = {'vlan': str ( int ( 0x300 ) ) } )
[ 0.35851946473121643, 0.7476563453674316, 0.5067918300628662, -0.17920540273189545, 0.7293277382850647, 0.4082978069782257, 0.5520558953285217, -0.14634108543395996, -0.45376935601234436, -0.2889675498008728, -0.6828486919403076, 0.6695206761360168, 0.15522658824920654, 0.10961093008518219,...
def addintattre ( self, * args ) : return _ snap. pneanetmp _ addintattre ( self, * args )
[ -0.5312600135803223, -0.01673239655792713, 0.4909100830554962, -0.014115026220679283, 0.9431082010269165, 0.2502548396587372, 0.03773116320371628, -1.0680022239685059, -1.0230770111083984, -0.699241578578949, 0.2788871228694916, -0.9369620084762573, -2.2226085662841797, 0.40989378094673157...
def isinbin ( self, * args ) : return _ snap. schema _ isinbin ( self, * args )
[ -0.5446045994758606, 0.19216588139533997, 0.8841546177864075, 1.4438236951828003, -0.008863699622452259, 0.6242598295211792, 0.10025431960821152, -0.23356008529663086, -0.17996317148208618, -0.5127198100090027, -0.7804005146026611, 1.2774665355682373, -2.0310537815093994, 0.303636670112609...
def test _ get _ app _ tree _ is _ url ( ) : tree _ url = " https : / / raw. githubusercontent. com / cogent3 / cogent3 / develop / tests / data / brca1 _ 5. tree " mod = get _ app ( " model ", " f81 ", tree = tree _ url ) assert isinstance ( mod, evo _ app. model )
[ 0.008025746792554855, -0.09088167548179626, 0.34340614080429077, 0.8308812379837036, 0.6282285451889038, 0.5043111443519592, -0.5797720551490784, 0.2424069195985794, 0.5553018450737, 0.6273521780967712, -0.3089355528354645, 1.0383626222610474, 0.2953084707260132, -0.09570876508951187, -0...
def test _ atomic _ id _ enumeration _ 2 _ nistxml _ sv _ iv _ atomic _ id _ enumeration _ 3 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - enumeration - 3. xsd ", instance = " nistdata / atomic / id / schem...
[ -0.05579754337668419, -0.6952735185623169, 0.5060068368911743, 0.2431948333978653, -0.43454089760780334, 0.4815298020839691, 0.22418029606342316, -0.26716068387031555, 0.06447447091341019, 1.1905696392059326, -0.7282049059867859, 0.26271381974220276, 0.21966786682605743, -0.325592547655105...
def reservenidindeg ( self, * args ) : return _ snap. pngraphmp _ reservenidindeg ( self, * args )
[ 0.18894976377487183, 0.36350756883621216, 0.3740960657596588, -0.7438717484474182, 1.4864376783370972, 0.2714196741580963, 0.31387248635292053, -1.533226490020752, -0.8414785265922546, -0.44811201095581055, -1.2844150066375732, -0.5278078317642212, -1.8069733381271362, -0.17195674777030945...
def getchannelinfo ( driver ) - > dict : channel _ info = { } xpath ='/ / * [ @ id = " text " ] / a'channel = driver. find _ element _ by _ xpath ( xpath ) link = channel. get _ attribute ('href') name = channel. text ( ) subscribers = driver. find _ element _ by _ xpath ('/ / * [ @ id = " owner - sub - count " ]') cha...
[ 0.06051800772547722, -0.11807873100042343, 0.6908802390098572, -0.9525803327560425, 0.1196058914065361, -0.5419567227363586, -0.24178192019462585, -0.16532154381275177, -0.742070198059082, -0.5797708630561829, -0.39812877774238586, -0.01976575329899788, 0.2886544466018677, 0.40088549256324...
def neurons _ per _ layer ( self, neurons _ per _ layer ) : self. _ neurons _ per _ layer = neurons _ per _ layer
[ -0.18173108994960785, -0.15157203376293182, 0.23966549336910248, 0.3759191930294037, 0.220529705286026, 0.4576493203639984, 0.4106045961380005, -0.27110111713409424, -0.1903098225593567, -0.39347225427627563, -0.1537812501192093, -0.34448057413101196, -0.26234057545661926, 0.83036482334136...
def last ( self, * args ) : return _ snap. tinttrv _ last ( self, * args )
[ -1.2525633573532104, -0.2609136998653412, 0.3455187976360321, -0.4483562111854553, 0.5465289950370789, -0.03350404277443886, 0.49675771594047546, -0.3827078640460968, -0.7420380115509033, 0.03353957459330559, -0.46050649881362915, 0.04566564783453941, -0.9640607237815857, -0.38742029666900...
def camera _ entity ( self ) : return self. _ camera
[ -0.2524902820587158, -1.3811942338943481, 0.32513734698295593, 0.8763329386711121, 0.8380847573280334, 0.7900943756103516, 0.49168661236763, -0.6655672788619995, 1.3051071166992188, -0.6081962585449219, 0.3570972681045532, 0.860446572303772, -0.1125783920288086, 0.8300775289535522, -0.11...
def resetgame ( self ) : self. board = np. zeros ( ( self. row _ range, self. col _ range ) )
[ -0.40854403376579285, 0.0029141565319150686, 0.25039905309677124, 0.1382811814546585, 1.5937765836715698, 0.8523385524749756, 0.09291870146989822, -0.13142062723636627, 0.032383646816015244, 0.1754419356584549, 0.057612720876932144, 0.9094457626342773, -0.5532782077789307, -0.5285996198654...
def issue ( request ) : base = get _ base ( request ) if userprofile. objects. get ( user = request. user ). entity! ='staff': return redirect ('/ home /') if request. method = = " post " : book _ number = request. post. get ( " book _ number " ) library _ card _ num = request. post. get ( " library _ card _ num " ) bo...
[ 0.08931099623441696, -0.41587355732917786, 0.7879713773727417, 0.45001837611198425, -0.46811071038246155, 1.1290322542190552, -0.12189257889986038, 0.8974722623825073, -0.07808803021907806, -0.08447208255529404, 0.8123445510864258, -0.364814430475235, -0.06411716341972351, 0.79062283039093...
def getsysloghandler ( self, log _ level = logging. debug, formatter = none ) : syslog _ address = none for a in ['/ var / run / syslog ','/ dev / log'] : if os. path. exists ( a ) : syslog _ address = a break if syslog _ address : syslog _ handler = logging. handlers. sysloghandler ( address = syslog _ address ) retur...
[ 0.4161215126514435, -0.8310189247131348, 0.23124617338180542, 0.43988537788391113, -0.5575031042098999, -0.7649828195571899, 0.13222874701023102, 0.3617781102657318, 0.46257761120796204, -0.9282322525978088, 0.003771606832742691, 0.25643959641456604, -0.3177679479122162, 0.3149756491184234...
async def send _ request ( self, request ) : host _ index = self. _ host _ resolver. get _ host _ index ( ) request. headers ['authorization'] = self. _ auth _ header resp = await self. _ http. send _ request ( session = self. _ sessions [ host _ index ], method = request. method, url = self. _ url _ prefixes [ host _ ...
[ -1.8262135982513428, 0.4473239779472351, 0.5688893795013428, 0.46584635972976685, 0.42377254366874695, -0.5261979699134827, -0.41981080174446106, -0.509781002998352, 0.42933401465415955, 0.2055795043706894, 0.3339601159095764, 0.6272156834602356, 0.1099076196551323, -0.4393652379512787, ...
def test _ invalid _ user _ login _ with _ wrong _ username ( self, client, proto _ user ) : response = client. post ( reverse ( " login " ), { " username " : " anonymous ", " password " : proto _ user. password }, follow = true, ) assert not response. context [ " user " ]. is _ authenticated
[ -0.7138619422912598, 0.2530686557292938, 0.3067765533924103, 1.221474528312683, -0.13649050891399384, 1.7181916236877441, 0.04733715206384659, -0.11035774648189545, 0.07372579723596573, -0.550937831401825, -0.7794919610023499, 0.4016217291355133, -0.6502765417098999, -0.1032366007566452, ...
def getcreatedat ( self ) : return self. _ created _ at
[ 0.5081993341445923, -0.6479189395904541, 0.2864890396595001, 0.087933748960495, 1.032983422279358, 0.7464996576309204, -0.03211439400911331, -0.7045556902885437, -0.9754508137702942, -1.8603084087371826, -0.4890527129173279, 0.12852996587753296, 0.8724108934402466, -0.42167460918426514, ...
def find _ proteins _ by _ id ( db : session, pids : list [ str ] ) : if pids : log. debug ( " searching proteins by proteinids in the database... " ) return db. query ( protein ). filter ( protein. id. in _ ( pids ) ). all ( ) else : log. debug ( " no ids were given. " ) return list ( )
[ -0.16875505447387695, -0.25515928864479065, 0.07752874493598938, 0.21927368640899658, 0.9572286009788513, 0.12729890644550323, -1.6945844888687134, -0.13664479553699493, -0.09438244253396988, 0.8266634345054626, 0.10822683572769165, -0.3117882311344147, -1.5212947130203247, 0.2977584600448...
def getnodeecc _ pneanet ( * args ) : return _ snap. getnodeecc _ pneanet ( * args )
[ -0.7778614163398743, 0.3688908517360687, 0.39540618658065796, 0.29513317346572876, 0.2227967083454132, -0.019127972424030304, 0.03554389998316765, -0.9005037546157837, -0.9311591386795044, -0.8966155052185059, 0.7456173896789551, -0.32723286747932434, 0.48292624950408936, 0.275144368410110...
def delsattrdatn ( self, * args ) : return _ snap. tneanet _ delsattrdatn ( self, * args )
[ -0.8237016201019287, 0.0910322517156601, 0.19495153427124023, -1.1415698528289795, -0.19372901320457458, 0.15191976726055145, 0.6455742716789246, -0.12609753012657166, -0.12206441909074783, -0.8236963748931885, -0.33526110649108887, -0.043916720896959305, 0.9545029401779175, 0.616840243339...
def log _ ncr ( a, b ) : val = gammaln ( a + 1 ) - gammaln ( a - b + 1 ) - gammaln ( b + 1 ) return val
[ 0.4067751467227936, 0.19353456795215607, 0.40064677596092224, -0.6476335525512695, -0.23353275656700134, -0.128472700715065, -0.6143379807472229, -0.5997788906097412, -0.22368183732032776, -0.00961576122790575, 0.5454622507095337, 0.4171145558357239, -0.2521907091140747, -0.020462745800614...
def colgenericop ( self, * args ) : return _ snap. ttable _ colgenericop ( self, * args )
[ -2.2248432636260986, 0.8177335262298584, 0.5383906960487366, 0.835464358329773, -0.23246122896671295, -0.053891848772764206, 0.08398353308439255, -0.36413201689720154, -1.612189531326294, 1.4499181509017944, 0.2195143848657608, -2.014739990234375, 0.33231794834136963, -0.6792666912078857, ...
def backedge ( self, * args ) : return _ snap. tbiconvisitor _ backedge ( self, * args )
[ -0.8655316829681396, 1.0761897563934326, 0.2252754271030426, 0.03400586545467377, 1.3339743614196777, -0.46646109223365784, 1.7703628540039062, 0.519218385219574, -1.5214054584503174, 0.07453611493110657, 0.3261197507381439, -0.7671825885772705, -1.6462150812149048, -0.07461994886398315, ...
def reset ( self ) : del self. _ entries [ : ]
[ 0.7899327874183655, -0.24498984217643738, 0.09209234267473221, -0.31223323941230774, 1.171697735786438, 0.11176829785108566, 0.14679363369941711, -0.17255590856075287, -0.6100592613220215, -0.24007098376750946, -0.3418583869934082, 1.8663567304611206, -0.07228369265794754, 0.06138783693313...
def setup _ logger ( name, dir _ name, log _ file, level = logging. info ) : formatter = logging. formatter ('% ( asctime ) s, % ( name ) s, % ( levelname ) s, % ( message ) s') if not os. path. exists ( f '. / { dir _ name } /') : os. makedirs ( f '. / { dir _ name } /') log _ file = '. /'+ dir _ name +'/'+ log _ file...
[ 0.19066914916038513, -0.9384725093841553, 0.7983898520469666, -0.45571082830429077, -0.48352712392807007, 0.1450587660074234, 0.04169140383601189, 0.6072872877120972, -0.8106077313423157, -0.2119944840669632, 0.25801852345466614, -0.6036161184310913, 0.05637494474649429, 0.943902313709259,...
def get _ global _ link _ axis _ function ( self, link : str, axis : union [ str, arraytype ], n : int = 1, numpy _ output : bool = false, ) - > cs. function : get _ global _ link _ axis = functools. partial ( self. get _ global _ link _ axis, axis = axis ) return self. make _ function ( " a ", link, get _ global _ lin...
[ 0.08084940165281296, 0.08130832016468048, 0.49408864974975586, 0.6636952757835388, -0.13647541403770447, -0.5100728869438171, 1.1422829627990723, -0.3498798608779907, 0.008227687329053879, -0.23653392493724823, -0.10651750862598419, 2.000913143157959, -0.5633575320243835, -0.76269775629043...
def test _ atomic _ base64 _ binary _ length _ 3 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ length _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - length - 4. xsd ", instance = "...
[ 0.17911255359649658, -0.061376702040433884, 0.39151808619499207, 1.1779404878616333, 0.293769508600235, 0.29066789150238037, 0.27527114748954773, 0.09055067598819733, -0.027277320623397827, 0.6649879217147827, -0.4649825096130371, -0.3017480969429016, -0.5320556163787842, -0.12510962784290...
def test _ can _ edit _ own _ post ( self ) : user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user ) post = user. create _ public _ post ( text = make _ fake _ post _ text ( ) ) url = self. _ get _ url ( post ) edited _ text = make _ fake _ post _ text ( ) data = {'text': edited _ text }...
[ 0.1466188132762909, 0.15415678918361664, 0.5560830235481262, 0.3381136655807495, -0.2916983962059021, 0.6730988025665283, 0.3431054651737213, 0.5391846299171448, 0.14712822437286377, -0.6699051260948181, -0.8316149711608887, 0.28331342339515686, -0.16676065325737, -0.5530422925949097, -0...
def addkey ( self, * args ) : return _ snap. tintflth _ addkey ( self, * args )
[ -0.7266330122947693, 0.49474212527275085, 0.5155637264251709, 1.3015562295913696, 0.8622444868087769, 0.010816486552357674, 0.15233047306537628, -0.4930921494960785, -0.6637681722640991, -0.6542004346847534, 0.025175269693136215, -0.8024030327796936, -1.4262936115264893, 1.0172067880630493...
def _ slicespec2boundsspec ( slicespec, scs ) : r1, r2, c1, c2 = slicespec left, bottom = scs. matrix2sheet ( r2, c1 ) right, top = scs. matrix2sheet ( r1, c2 ) return ( ( left, bottom ), ( right, top ) )
[ -0.36848628520965576, -0.8314450979232788, 0.5687230825424194, -0.3503023087978363, -0.42001086473464966, -0.20112180709838867, -0.5921612977981567, -0.5728223919868469, -0.5675047039985657, 0.6285771131515503, -0.09439714252948761, 0.5523186922073364, 0.48138317465782166, 0.13634064793586...
def find _ msvcrt ( ) : version = _ get _ build _ version ( ) if version is none : # better be safe than sorry return none if version < = 6 : clibname ='msvcrt'elif version < = 13 : clibname ='msvcr % d'% ( version * 10 ) else : # crt is no longer directly loadable. see issue23606 for the # discussion about alternative...
[ 1.1339654922485352, -0.9649544954299927, 0.7668201327323914, -0.41150546073913574, -0.4392339587211609, -0.2744936943054199, -0.12730851769447327, -0.776764988899231, -0.2068975865840912, 0.8503210544586182, 0.366669625043869, -0.11878391355276108, -0.5523667931556702, 0.34256699681282043,...
def _ calculate _ dc _ inv _ costs ( grid _ new, sum _ results = true ) : def _ calculate _ single _ line _ cost ( line, bus ) : " " " calculate cost of upgrading a single hvdc line. : param pandas. series line : hvdc line series featuring *'from _ bus _ id'* ', *'to _ bus _ id'* and *'pmax'*. : param pandas. dataframe...
[ -0.960102379322052, 0.7020084857940674, 0.6726005673408508, 0.2239566296339035, 0.008361737243831158, -0.8289044499397278, 0.09025496989488602, 0.19627989828586578, -0.22590406239032745, 0.10743676871061325, -0.009377365000545979, -0.2127494215965271, -0.3145696222782135, 0.121944338083267...
def needs _ subtitles ( self, video _ file ) : f, _ = splitext ( video _ file ) return not isfile ( f + ". srt " )
[ 0.03425467759370804, -0.14836478233337402, 0.5808636546134949, 1.1199501752853394, -1.134879231452942, 0.9916563630104065, -0.6949484348297119, 0.37283018231391907, -0.400013267993927, 0.6098405718803406, 0.06931282579898834, 0.11202928423881531, -0.6360087990760803, 1.0161774158477783, ...
def getrndval ( self, * args ) : return _ snap. tintv _ getrndval ( self, * args )
[ -0.7766871452331543, 0.4652969539165497, 0.46935155987739563, 1.2741116285324097, -0.2515333294868469, 0.5411446690559387, -0.11794304102659225, -0.4641219675540924, -1.116352915763855, -1.4376821517944336, -0.8291006684303284, 0.9833847284317017, -1.6381043195724487, 1.6989641189575195, ...
def generate _ unique _ steam _ url ( self ) : return build _ steam _ url ( self. role, self. title )
[ -0.9332420825958252, -0.2141396701335907, 0.5499358773231506, 0.12997454404830933, 0.04752863571047783, 1.2081719636917114, -0.4052048325538635, 0.5798525214195251, -0.3706001341342926, -0.3172290325164795, -0.15442706644535065, 1.1633766889572144, 0.6587967276573181, -0.43674978613853455,...
def ndot _ coagulation2 ( t, nc ) : ndot = ndot _ coagulation ( c, k, nc ) tyr = t / year # print ( " t : " + str ( tyr ) ) # printer tidsudvikling return ndot
[ -0.41920700669288635, -0.4812014102935791, 0.3682989478111267, -0.2811928987503052, -0.23105277121067047, 0.7952644228935242, 0.4429551959037781, -0.9738374352455139, 0.14066068828105927, 1.1217480897903442, -0.4806412160396576, -0.22842329740524292, 0.7931739687919617, 0.2444169521331787,...
def process ( self, source0 ) : # step hsv _ threshold0 : self. _ _ hsv _ threshold _ input = source0 ( self. hsv _ threshold _ output ) = self. _ _ hsv _ threshold ( self. _ _ hsv _ threshold _ input, self. _ _ hsv _ threshold _ hue, self. _ _ hsv _ threshold _ saturation, self. _ _ hsv _ threshold _ value ) # step cv...
[ -0.09735552221536636, -0.09579590708017349, 0.7044656276702881, -0.034932270646095276, -0.19770042598247528, -0.9717862010002136, 1.024063229560852, -0.06220816820859909, 0.3238096237182617, 0.13551166653633118, -1.2747704982757568, 0.655269205570221, 0.0552712082862854, 1.1451860666275024...
def test _ post _ no _ token ( client, session, model, e _ coli _ core ) : response = client. post ( " / models ", json = { " name " : " foo ", " organism _ id " : 1, " project _ id " : 1, " model _ serialized " : e _ coli _ core, " default _ biomass _ reaction " : " biomass _ ecoli _ core _ w _ gam ", " preferred _ ma...
[ -0.5219762921333313, -0.14424657821655273, 0.46239158511161804, -0.3780701756477356, 0.7523858547210693, 0.6491013765335083, -0.5862508416175842, -0.3206714987754822, -0.3979075253009796, -0.7017723321914673, -1.2666904926300049, 0.1901727169752121, 0.12385500222444534, 0.02190463989973068...
def m02mw ( m0 ) : if m0 < = 0. 0 : return none else : return ( log10 ( m0 ) / 1. 5 ) - 10. 7
[ 0.8045034408569336, -1.1448522806167603, 0.4184834659099579, -0.43925511837005615, -0.2777455151081085, -0.6693535447120667, -0.035435281693935394, 0.34944623708724976, -0.43832042813301086, -0.7226499319076538, 0.0757698118686676, 0.1930643618106842, -0.1152525320649147, 1.923177242279052...
def getdat ( self, * args ) : return _ snap. tintintprhi _ getdat ( self, * args )
[ -0.11161385476589203, 0.2842350900173187, 0.6210255026817322, -0.3183988332748413, 1.1035319566726685, 1.4547213315963745, 0.002241082489490509, -1.3232991695404053, -1.135083556175232, -0.7779538631439209, -0.04661429673433304, 0.13491302728652954, -1.8612704277038574, 0.01310775429010391...
def generatecrumbandtoken ( ) : issuccessful = false output = none while not issuccessful : try : logger. info ( " calling jenkins api " ) output = subprocess. check _ output ( " curl http : / / " + jenkins _ master + " / crumbissuer / api / xml? xpath = concat \ ( / / crumbrequestfield, % 22 : % 22, / / crumb \ ) \ - ...
[ -0.4663623571395874, -0.36672720313072205, 0.8817175030708313, 0.05841883644461632, -0.08164845407009125, -0.2190551459789276, -0.31455159187316895, 0.4132150709629059, -0.850654661655426, 0.651369035243988, -0.8901020884513855, 1.060249924659729, -0.13567113876342773, 0.8301184773445129, ...
def grregter ( self, im _ gi, im _ go ) : self. _ grregter ( im _ gi, im _ go )
[ -1.0644341707229614, 1.1706293821334839, 0.14393693208694458, -0.4349457919597626, 1.012779712677002, -0.5070233345031738, 0.1346890777349472, 0.17476928234100342, -0.7512974739074707, 0.40776073932647705, 0.4554106891155243, 0.6612940430641174, -0.520378828048706, 0.9004065990447998, 0....
def data _ laden _ product ( ) : connection = connect ( ) cur = connection. cursor ( ) try : # data is being loaded from de mongo db for product in products. find ( { }, { " name ", " _ id ", " category ", " sub _ category ", " sub _ sub _ category ", " brand ", " gender ", " price ", " properties " } ) : if len ( prod...
[ 0.022972330451011658, 0.7861143350601196, 0.9816211462020874, -0.03978131338953972, 0.8502227663993835, 0.36184030771255493, 0.09540040045976639, -0.2507650852203369, -0.8693965673446655, 0.3794248104095459, -0.45700597763061523, 0.184713676571846, -0.0031647691503167152, 0.209618851542472...
def new _ game _ question ( self ) : human _ answer = str ( raw _ input ( " would you like to play another round? ( y / n ) " ) ) if human _ answer in ['y ','y ','yes ', ] : self. new _ round = true else : self. new _ round = false
[ -0.44606611132621765, -0.48136717081069946, 0.6380857229232788, 0.03193194046616554, -0.3273014426231384, 0.6442955732345581, -0.0919097363948822, -1.144704818725586, -0.7891312837600708, -0.09545845538377762, -0.044132206588983536, 0.9243403077125549, -0.37409576773643494, 0.2145768702030...
def clean ( self ) : if self. is _ valid ( ) : cleaned _ data = super ( centerdetailsform, self ). clean ( ) center _ number = cleaned _ data. get ('center _ number') center _ number _ copy = cleaned _ data. get ('center _ number _ copy') station _ number = cleaned _ data. get ('station _ number') station _ number _ co...
[ 0.025822443887591362, -0.5266282558441162, 0.8400393724441528, -0.17155538499355316, -0.7078582644462585, 0.2402326464653015, 0.16059237718582153, 0.475799560546875, 0.6333836913108826, 0.35494816303253174, 0.20803101360797882, -0.07108329981565475, 0.4182150959968567, 0.08997154235839844,...
def forward ( self, x ) : yh = [ ] yl = x sz = self. sz # concatenate the filters to match the input size c = x. shape [ 1 ] filters = torch. cat ( [ self. weight, ] * c, dim = 0 ) # do a multilevel transform for j in range ( self. j ) : # pad odd length images if yl. shape [ - 2 ] % 2 = = 1 and yl. shape [ - 1 ] % 2 =...
[ -0.09015073627233505, -0.22669702768325806, 0.8970664143562317, -0.31605076789855957, -1.1031602621078491, -0.04142889752984047, 0.4858575463294983, 0.2472451627254486, 0.48233097791671753, -0.15935905277729034, -0.5986934304237366, 0.29158538579940796, 0.4711243212223053, 1.51157498359680...
def test _ vertical _ interpolation _ deep ( vertical _ values ) : u _ target _ depth, v _ target _ depth = vertical _ interpolation ( vertical _ values. u, vertical _ values. v, vertical _ values. s _ rho, vertical _ values. mask _ rho, vertical _ values. mask _ u, vertical _ values. mask _ v, vertical _ values. zeta,...
[ -0.39516153931617737, 0.0823742151260376, 0.812208354473114, 0.7689515352249146, 1.5496087074279785, 0.6202870607376099, 0.4189058840274811, 0.2625950872898102, -0.17466722428798676, -0.5029525756835938, -0.3787694275379181, 1.049243688583374, -0.41009625792503357, -0.12535133957862854, ...
def geteastri ( self, * args ) : return _ snap. tneanetmp _ geteastri ( self, * args )
[ -0.06676632910966873, -0.47168684005737305, 0.19303631782531738, -0.6234614849090576, 1.2967383861541748, 0.33668357133865356, -0.08087224513292313, 0.05346411466598511, -0.839544951915741, 0.4584137201309204, -0.5746006965637207, -1.4992296695709229, -0.9214802384376526, 0.702476739883422...