text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def parse _ engine _ args ( args ) : nargs = len ( args ) nprocs = 8 bank = " < debug > " rtime = " 60 : 00 " if nargs > 0 : nprocs = int ( args [ 0 ] ) if nargs > 1 : bank = args [ 1 ] if nargs > 2 : rtime = args [ 2 ] return nprocs, bank, rtime | [
-0.6773710250854492,
0.5059455633163452,
0.5918397307395935,
-0.6974659562110901,
0.950089693069458,
-0.48258787393569946,
-0.18293841183185577,
-0.5243772864341736,
-0.7800894379615784,
0.40474367141723633,
0.6633726954460144,
-1.0159714221954346,
-0.7947320938110352,
0.9442995190620422,
... |
def on _ complete ( self, record ) : self. numeval + = 1 record. worker _ id = self. worker _ id record. worker _ numeval = self. numeval record. feasible = true self. log _ completion ( record ) # 1 - update response surface model i = 0 for fhat in self. fhat : fhat. add _ point ( np. copy ( record. params [ 0 ] ), re... | [
0.26594415307044983,
-1.0790259838104248,
0.536194920539856,
-0.4150189757347107,
-0.45569732785224915,
0.09230347722768784,
0.7059558629989624,
-0.08140908926725388,
-0.390323668718338,
0.7931792140007019,
-0.9293401837348938,
-0.08966244012117386,
-0.1556055098772049,
0.5350472331047058,... |
def pullchangesfromfork ( self ) : fork _ git _ repo _ url = self. _ github _ helper. getforkgitrepourl ( self. _ fork _ username ) # yapf : disable if not self. _ git _ helper. pullfromfork ( fork _ git _ repo _ url, self. _ fork _ feature _ branch ) : print ('{ 0 : s } aborted - unable to pull changes from fork. '. f... | [
-0.19719430804252625,
0.2761439085006714,
0.529464840888977,
0.6070989966392517,
-0.24011999368667603,
0.11332656443119049,
-0.05537936091423035,
0.00319758802652359,
-0.37795576453208923,
-0.7208073139190674,
-0.5816770195960999,
0.13740423321723938,
-0.8631211519241333,
0.644689083099365... |
def subhelp ( self ) : help _ text = self. _ get _ all _ help _ text ( ) if help _ text : return " available subcommands : \ n \ n % s \ n " %''. join ( help _ text ) return'' | [
1.1261537075042725,
-0.33191192150115967,
0.7761415243148804,
0.29120951890945435,
-0.22426925599575043,
0.7163013815879822,
-0.22456209361553192,
-0.2695024013519287,
-0.4829026460647583,
0.2605835497379303,
-0.5205399394035339,
1.079595923423767,
-0.02339150570333004,
-0.2351496815681457... |
def dbconnect ( self ) : # try first host try : conn = oursql. connect ( host = self. dbhost1, user = self. dbusername, passwd = self. dbpassword, db = self. database, use _ unicode = false, charset = none, port = 3306 ) # if no first host, try second host except : conn = oursql. connect ( host = self. dbhost2, user = ... | [
-0.9006816148757935,
-0.09225655347108841,
0.6741312742233276,
-0.09221114963293076,
-0.0793301984667778,
0.3832499384880066,
-0.6147885918617249,
-0.1846560835838318,
-1.3502306938171387,
-0.20837777853012085,
0.00372975692152977,
0.011645873077213764,
-0.5502814650535583,
0.7013604640960... |
def load _ data ( filename ) : df = joblib. load ( filename ) usable _ df = df [ [ " sentence _ words ", " sentence _ len ", " binary _ label " ] ] return usable _ df | [
-0.12854881584644318,
0.043523333966732025,
0.4409789443016052,
-0.6630131602287292,
-0.3466612696647644,
-0.3597728908061981,
-0.025927674025297165,
0.5106090903282166,
-1.654703974723816,
-0.1344996988773346,
-0.11413682252168655,
0.25113949179649353,
-0.6189797520637512,
-0.598109066486... |
def new _ prop ( self, element _ id, name ) : return self. _ request ('put ','/ elements / { } / prop / { } '. format ( element _ id, name ) ) | [
-0.33879002928733826,
-0.5484046339988708,
0.44677355885505676,
0.15139159560203552,
-0.27321287989616394,
0.22104428708553314,
-0.9581424593925476,
-0.3591465353965759,
0.4003736972808838,
1.2568118572235107,
-0.6371193528175354,
0.22302751243114471,
-1.293463110923767,
-0.988101124763488... |
def connect ( ) : return psycopg2. connect ( " dbname = tournament " ) | [
-0.5293293595314026,
-0.4178844690322876,
0.4463520050048828,
-0.15074482560157776,
-0.17072884738445282,
-0.5672909617424011,
-0.8824400901794434,
0.7099180817604065,
-1.7143769264221191,
0.5991436243057251,
0.23326705396175385,
-0.8650628328323364,
-0.6551482677459717,
-1.083870887756347... |
def shopify _ prepare _ attribute _ vals ( self, result ) : product _ attribute _ obj = self. env [ " product. attribute " ] product _ attribute _ value _ obj = self. env [ " product. attribute. value " ] attrib _ line _ vals = [ ] for attrib in result. get ( " options " ) : attrib _ name = attrib. get ( " name " ) att... | [
-0.17349225282669067,
-0.7977956533432007,
0.4600728750228882,
-0.26355114579200745,
0.28374943137168884,
-0.2402045577764511,
-0.32005777955055237,
-0.7378051280975342,
0.05036884546279907,
0.2930452823638916,
-0.2526785135269165,
0.19960834085941315,
1.4672876596450806,
0.632656276226043... |
async def handle ( request ) : app = request. app match _ str = request. match _ info. get ('name') res, match _ count = await match _ from _ name ( app ['redis'], match _ str ) return { " sections " : res, " count " : match _ count } | [
-0.346197247505188,
0.17576667666435242,
0.5888673067092896,
-0.11573126912117004,
-0.22953365743160248,
-0.4147225618362427,
-0.627375602722168,
-0.023579414933919907,
-0.6575572490692139,
-0.5702362060546875,
0.17761266231536865,
-1.5310574769973755,
0.4223603308200836,
0.072814077138900... |
def process _ new _ filenames ( self ) : for file in self. filename _ objects : alarm. new _ mp3 _ filename ( file ) return none | [
-0.05266547203063965,
-1.9378196001052856,
0.45305290818214417,
0.3315175175666809,
0.8026083707809448,
0.4019089937210083,
-0.07062862068414688,
-0.2995017468929291,
-0.5723037719726562,
0.2391403168439865,
-0.38111695647239685,
0.1502518206834793,
-0.30219513177871704,
0.4229753911495209... |
def rescale _ gradients ( model, grad _ norm = none ) : # if grad _ norm : # parameters _ to _ clip = [ p for p in model. parameters ( ) # if p. grad is not none ] # return sparse _ clip _ norm ( parameters _ to _ clip, grad _ norm ) # return none raise notimplementederror | [
-0.07462065666913986,
-0.34515854716300964,
0.648600161075592,
0.46562856435775757,
-0.9617619514465332,
0.2892455458641052,
-0.6838982105255127,
-0.043797366321086884,
-0.3851536214351654,
1.2995579242706299,
0.3490135669708252,
-0.10550907254219055,
-0.4142504036426544,
0.440831631422042... |
def ndtri ( x, name = none ) : with ops. name _ scope ( name, " ndtri ", [ x ] ) : return gen _ math _ ops. ndtri ( x ) | [
-0.6404240727424622,
0.6673039197921753,
0.400218665599823,
-0.10541684925556183,
-0.9207966923713684,
-0.39047443866729736,
0.07226108014583588,
-0.8874411582946777,
-0.3120507001876831,
0.7805575132369995,
-0.7371490597724915,
0.16008716821670532,
0.4715508818626404,
-0.7179797887802124,... |
def test _ evaluate _ alert _ true _ alert _ not _ breaching2 ( self, send _ alert ) : trigger = trigger. objects. get ( pk = 10 ) n _ alerts1 = trigger. alerts. count ( ) alert = trigger. evaluate _ alert ( false, breaching _ channels = [ ] ) n _ alerts2 = trigger. alerts. count ( ) self. assertnotequal ( n _ alerts1,... | [
0.03684785217046738,
0.11893381178379059,
0.4222852289676666,
-0.02091326378285885,
0.828753650188446,
0.42420533299446106,
0.05840788409113884,
-0.272953599691391,
-0.4276438057422638,
-0.1840999573469162,
-1.157425045967102,
-0.11565959453582764,
-0.5456490516662598,
0.4767903983592987,
... |
def command _ said ( self, brain, args ) : if len ( args ) < 2 : return'whatchoo talkin \'\'bout, willis?'nick = args [ 0 ] try : throttle = 0 - abs ( int ( args [ - 1 ] ) ) pattern = " ". join ( args [ 1 : - 1 ] ) except valueerror : throttle = - 3 pattern = " ". join ( args [ 1 : ] ) conn = sqlite3. connect ( self. c... | [
0.404252290725708,
-0.20349356532096863,
0.9701887369155884,
-0.9500311017036438,
0.6332569122314453,
-0.35059240460395813,
-0.742434561252594,
-0.983801007270813,
-0.42916619777679443,
0.874664306640625,
0.2841736674308777,
0.6498207449913025,
-1.1789445877075195,
-0.1472824215888977,
0... |
def test _ atomic _ id _ pattern _ nistxml _ sv _ iv _ atomic _ id _ pattern _ 1 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - pattern - 1. xsd ", instance = " nistdata / atomic / id / schema + instance / n... | [
0.11265778541564941,
0.007398949470371008,
0.4588305354118347,
0.40759459137916565,
-0.12083125859498978,
0.5558469891548157,
0.1960279643535614,
-0.08823905140161514,
0.9407384991645813,
0.9443589448928833,
-0.029511937871575356,
-0.0666055753827095,
-0.21664971113204956,
-0.3262847661972... |
def find _ bmu ( t, net, m ) : bmu _ idx = np. array ( [ 0, 0 ] ) # set the initial minimum distance to a huge number min _ dist = np. iinfo ( np. int ). max # calculate the high - dimensional distance between each neuron and the input for x in range ( net. shape [ 0 ] ) : for y in range ( net. shape [ 1 ] ) : w = net ... | [
-0.36016911268234253,
-0.6678835153579712,
0.9243093132972717,
-0.12136616557836533,
0.25566938519477844,
-0.034117959439754486,
-0.23818784952163696,
0.32968971133232117,
-0.5010592341423035,
0.45776742696762085,
-0.45687294006347656,
0.2493084818124771,
-0.6644408106803894,
0.19671452045... |
def bsoniter ( files, bulk = true ) : global count for file in files : f = gzip. open ( file,'rb') stream = keyvaluebsoninput ( fh = f ) print ('opening file'+ file ) for doc in stream : doc = eval ( transform _ function +'( doc, filename = file, bulk = bulk )') # index - specific transform function doc = transformdoc ... | [
0.10519438236951828,
0.045777514576911926,
0.561472475528717,
0.6923892498016357,
0.6400532126426697,
0.1664234846830368,
0.3749314844608307,
-0.09913958609104156,
-0.6022393107414246,
0.08411688357591629,
-0.11734429746866226,
0.00006081825995352119,
-0.6846486330032349,
0.327237725257873... |
def is _ self _ connecting ( self, branch ) : return self. dt _ branch _ type ( branch ) in [ self _ conn _ left, self _ conn _ right ] | [
-1.185157299041748,
-0.6201576590538025,
0.8931064009666443,
0.7248572111129761,
-0.8564340472221375,
0.1453750878572464,
0.06620841473340988,
-0.6677857041358948,
0.21861746907234192,
0.19865782558918,
-0.770764946937561,
0.07340645045042038,
-1.4483513832092285,
0.9578529000282288,
-0.... |
def set _ columns ( self, list _ of _ columns : list [ scopereferencecolumns ] = none ) : self. _ options. update ( { " columns " : list _ of _ columns } ) self. edit ( options = self. _ options ) | [
-1.3484684228897095,
0.5441192984580994,
0.2613232731819153,
-0.1048317477107048,
1.7283846139907837,
-0.3991444408893585,
0.5136463046073914,
-0.9579299092292786,
0.40301838517189026,
0.5406078696250916,
-0.8784079551696777,
0.6661615371704102,
-0.15630541741847992,
0.2808521091938019,
... |
def test _ list _ integer _ max _ length _ nistxml _ sv _ iv _ list _ integer _ max _ length _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - maxlength - 1. xsd ", instance = " nistdata / list / inte... | [
-0.5673472881317139,
-0.041806917637586594,
0.274692565202713,
1.0403122901916504,
-0.5726671814918518,
0.21676158905029297,
-0.3214350640773773,
0.5998206734657288,
1.6251331567764282,
0.8493413925170898,
-0.7960912585258484,
-0.2992490530014038,
-0.5520275235176086,
0.96023029088974,
0... |
def test _ mail _ rcpt _ order ( self ) : code, reply = self. do _ cmd ( b " rcpt to : < " + to + b " > ", flush = true ) self. assertnotequal ( code, 250 ) self. assertequal ( code, 503 ) | [
0.12510070204734802,
0.379569411277771,
0.4296211004257202,
-0.3939874470233917,
0.7914695739746094,
0.49554547667503357,
-0.05200498178601265,
-0.5257940888404846,
0.5247578620910645,
0.7271745204925537,
-0.47511449456214905,
1.0102672576904297,
-0.8559646606445312,
-0.8176633715629578,
... |
def arn ( self ) - > pulumi. output [ str ] : return pulumi. get ( self, " arn " ) | [
0.37249791622161865,
-1.0115571022033691,
0.42975208163261414,
0.5834472179412842,
0.585424542427063,
0.13154642283916473,
0.29143422842025757,
1.2842531204223633,
0.1999565064907074,
-0.4565485715866089,
0.15075194835662842,
1.2859703302383423,
0.7842258214950562,
-0.9156637191772461,
0... |
def lnlike ( self, alpha ) : ln _ likelihood = 0 for ion _ name in config. ion _ names : if ion _ name! ='h1': model _ logn = ion _ model. model _ prediction ( alpha, ion _ name ) config. log _ pdf [ ion _ name ] ( model _ logn ) ln _ likelihood + = config. log _ pdf [ ion _ name ] ( model _ logn ) return ln _ likeliho... | [
-0.3418204188346863,
-0.8536124229431152,
0.5800421237945557,
-0.39195334911346436,
0.5753107070922852,
0.5756894946098328,
-0.9753412008285522,
0.3115274906158447,
-0.17336583137512207,
0.20981226861476898,
-0.44876188039779663,
-0.20748111605644226,
0.003295299131423235,
0.63475430011749... |
def confirm _ redirect _ uri ( self, client _ id, code, redirect _ uri, client, * args, * * kwargs ) : raise notimplementederror ('subclasses must implement this method.') | [
-0.2990057170391083,
-0.13315539062023163,
0.684138834476471,
0.5178519487380981,
-0.013668523170053959,
1.0276857614517212,
0.5144746899604797,
-0.25446954369544983,
0.10792185366153717,
-0.38973745703697205,
0.19049814343452454,
0.9743857979774475,
-0.3450886011123657,
-0.075930148363113... |
def test _ atomic _ language _ min _ length _ 1 _ nistxml _ sv _ iv _ atomic _ language _ min _ length _ 2 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - minlength - 2. xsd ", instance = " nistda... | [
0.22683723270893097,
-0.5553954839706421,
0.4600909948348999,
0.3803202211856842,
-0.4986112117767334,
0.24740658700466156,
-0.5681073069572449,
-0.30288147926330566,
0.39060738682746887,
0.28778713941574097,
-0.44952157139778137,
0.18941979110240936,
-0.23775315284729004,
0.00139614124782... |
def get _ area _ avg _ from _ erai _ data ( start _ year = - np. inf, end _ year = np. inf, var _ folder = " ", varname = " ", mask = none, mask _ lons = none, mask _ lats = none ) : def _ get _ year ( fn ) : return int ( fn. split ( ". " ) [ 0 ]. split ( " _ " ) [ 1 ] ) flist = [ os. path. join ( var _ folder, fn ) fo... | [
-0.5627292990684509,
-0.6293009519577026,
0.9288554191589355,
-0.21679654717445374,
-0.14860935509204865,
0.1317082792520523,
0.25828343629837036,
0.0016607322031632066,
-0.22919675707817078,
0.36868369579315186,
0.18223346769809723,
0.813868522644043,
0.8494226932525635,
0.706318557262420... |
def save ( self, dataset _ uri : str, *, compute _ digest : computedigest = computedigest. always, preserve _ metadata : bool = true ) - > none : for saver in self. savers : if saver. can _ save ( dataset _ uri ) : saver. save ( self, dataset _ uri, compute _ digest = compute _ digest, preserve _ metadata = preserve _ ... | [
-1.5850601196289062,
0.5117048621177673,
0.4907167851924896,
0.47305282950401306,
0.5334607362747192,
-0.08499294519424438,
-0.752260684967041,
0.19677887856960297,
-0.3538891673088074,
-0.2637116312980652,
-0.44500458240509033,
-0.09668584167957306,
-0.2135038524866104,
0.3408799469470978... |
def compiler ( self ) : raise notimplementederror | [
-0.05666803568601608,
-1.1062430143356323,
0.6254972219467163,
0.35647663474082947,
-0.4478278160095215,
0.7788256406784058,
0.773360550403595,
0.433998167514801,
0.2056960016489029,
-1.4252592325210571,
0.2788412272930145,
0.533557116985321,
0.085415780544281,
0.30531787872314453,
-0.78... |
def preprocess ( json _ data ) : # 1. extract text list from json data. texts = get _ text _ from _ json ( json _ data ) # 2. divide text list into the words. tokenized _ texts = tokenize ( texts ) # 3. convert text list to vocabulary id. tokens = text2token ( tokenized _ texts ) # 4. convert id list to dataloader. dat... | [
-0.18083719909191132,
0.33622241020202637,
0.5659830570220947,
-1.2401149272918701,
-0.46737465262413025,
-0.5856724381446838,
-1.3262146711349487,
-0.0470881387591362,
0.5678430795669556,
0.14958225190639496,
-0.6921221613883972,
-0.288686603307724,
0.5772753357887268,
0.57216477394104,
... |
def isbraillebeginningshowing ( ) : return braille. beginningisshowing | [
0.66185462474823,
-0.3535584509372711,
0.48626166582107544,
0.4463733732700348,
-0.6576849818229675,
0.603807806968689,
0.15347766876220703,
0.504956066608429,
0.1782849133014679,
0.24969220161437988,
0.0742207020521164,
0.993847668170929,
-0.48976993560791016,
0.7967693209648132,
-0.030... |
def _ train _ and _ get _ score ( train _ glob, eval _ glob, test _ glob, embedding _ name, label _ name, speaker _ id, ) : logging. info ('running ` train _ and _ get _ score ` with % s, % s, % s, % s, % s ', embedding _ name, label _ name, flags. model _ name, flags. l2 _ normalization, speaker _ id ) score _ dict = ... | [
-0.13297039270401,
-0.7759838700294495,
0.6614679098129272,
0.6204583644866943,
0.49603477120399475,
0.03604550659656525,
-0.34775540232658386,
0.6875768303871155,
-0.4027402997016907,
0.41598227620124817,
-0.07110347598791122,
0.23844799399375916,
-0.27725040912628174,
0.17421644926071167... |
def screensize ( ) : root = tk. tk ( ) return np. array ( [ root. winfo _ screenwidth ( ), root. winfo _ screenheight ( ) ] ) | [
-0.5159046649932861,
-0.9729273319244385,
0.6632682681083679,
0.1982487142086029,
-0.677227795124054,
-0.26968085765838623,
0.8101714849472046,
-0.6943728923797607,
0.43498262763023376,
0.0589519664645195,
0.3483545780181885,
0.2304401397705078,
-0.3108195960521698,
1.520844578742981,
0.... |
def created _ date ( self, created _ date ) : self. _ created _ date = created _ date | [
1.3303678035736084,
0.3628591299057007,
-0.41121673583984375,
0.6867479681968689,
1.2581504583358765,
0.7146288156509399,
-0.12506671249866486,
0.7444681525230408,
-0.6044561862945557,
-1.6920729875564575,
-0.39416882395744324,
0.19743767380714417,
0.6549766063690186,
0.825005292892456,
... |
def reviewcurrentitem ( self, inputevent, targetcursorcell = 0 ) : self. _ reviewcurrentitem ( inputevent, targetcursorcell, 1 ) return true | [
-0.838289201259613,
-0.8630642294883728,
0.33408817648887634,
0.5475186705589294,
-0.5994561910629272,
1.0348281860351562,
0.2598007321357727,
0.25726234912872314,
-0.23092947900295258,
0.29973623156547546,
-0.16084496676921844,
0.1980649083852768,
-0.5982056260108948,
-0.38709068298339844... |
def prune _ alerters ( self, retain : list [ str ] ) - > none : delete _ list = [ ] for alerter in self. alerters. keys ( ) : if alerter not in retain : module _ logger. info ( " removing alerter % s ", alerter ) delete _ list. append ( alerter ) for alerter in delete _ list : del self. alerters [ alerter ] | [
0.41927003860473633,
-0.8378020524978638,
0.4708406925201416,
0.11699965596199036,
0.7736628651618958,
0.26200708746910095,
-0.6113297939300537,
-0.09238705039024353,
0.7437034845352173,
-0.05648656189441681,
0.11120061576366425,
0.7885004281997681,
-1.477036952972412,
1.1227843761444092,
... |
def test _ get _ action _ step _ error _ step ( self ) : action _ resource = actionsstepsresource ( ) # stubs for db action _ resource. get _ action _ db = actions _ db action _ resource. get _ tasks _ db = tasks _ db with pytest. raises ( apierror ) as api _ error : step = action _ resource. get _ action _ step ('59bb... | [
-0.06309138238430023,
-0.22103634476661682,
0.14217965304851532,
0.38842329382896423,
0.8867011070251465,
0.3669845759868622,
0.017569245770573616,
-0.10247974097728729,
-0.5105376839637756,
-0.25600406527519226,
-0.14870919287204742,
0.11067591607570648,
0.8153060078620911,
0.685504496097... |
async def fixvalues ( self, user ) : user. health = math. ceil ( user. health ) user. mindmg = math. ceil ( user. mindmg ) user. maxdmg = math. ceil ( user. maxdmg ) user. pcoin = math. ceil ( user. pcoin ) user. curxp = math. ceil ( user. curxp ) | [
0.09841010719537735,
-0.02306346967816353,
0.3212887942790985,
0.9819839596748352,
-0.5475003719329834,
0.2682062089443207,
-0.2481381595134735,
-0.5229607224464417,
-0.6721740961074829,
-0.41982632875442505,
-0.22055286169052124,
0.126353457570076,
-0.11799197643995285,
0.4839955270290375... |
def get _ data _ for _ import _ preview ( self ) : columns = [ frappe. _ dict ( { " header _ title " : " sr. no ", " skip _ import " : true } ) ] columns + = [ col. as _ dict ( ) for col in self. columns ] for col in columns : # only pick useful fields in docfields to minimise the payload if col. df : col. df = { " fie... | [
-0.5261499881744385,
0.6564087867736816,
0.7339556217193604,
-0.6896077394485474,
-1.0929104089736938,
-0.7809928059577942,
-0.3169935345649719,
-0.4294448792934418,
-0.25106093287467957,
0.2060086876153946,
-0.24693728983402252,
0.10267560184001923,
0.8305550217628479,
0.2995727062225342,... |
def edit ( self, examples, max _ seq _ length = 35, beam _ size = 5, batch _ size = 1024 ) : logging. debug ( " performing an edit on { } examples : \ n { } ". format ( len ( examples ), examples ) ) beam _ list = [ ] edit _ traces = [ ] for batch in chunks ( examples, batch _ size / beam _ size ) : beams, traces = sel... | [
-0.030807456001639366,
0.2805172801017761,
0.3524731695652008,
0.4279783368110657,
-0.4339708387851715,
-0.713085412979126,
0.4495043158531189,
0.9208841919898987,
0.5402969717979431,
1.2537683248519897,
-0.47957944869995117,
0.4307938516139984,
-0.021189391613006592,
1.1562731266021729,
... |
def panel _ plot _ malhi ( table _ data, wmm = 180, hmm = 120, names = ['ctl ','exp'], save = none, transparent = false ) : # noqa # settings oplot. plot _ settings ( ) # check if df or text file if isinstance ( table _ data, str ) : table = pd. read _ csv ( table _ data, index _ col = 0 ) elif isinstance ( table _ dat... | [
0.5894944071769714,
0.15069372951984406,
1.0856553316116333,
0.35289856791496277,
-0.598958432674408,
0.6471769213676453,
0.602183997631073,
0.4780256450176239,
-0.38835790753364563,
0.5827656984329224,
0.42765936255455017,
0.050468809902668,
-0.4918634295463562,
0.14016588032245636,
0.7... |
def evaluate _ performance ( data _ loader, model ) : acc = mx. metric. accuracy ( ) for idx, ( data, label ) in enumerate ( data _ loader ) : data = data. as _ in _ context ( model. ctx ). reshape ( ( - 1, 784 ) ) label = label. as _ in _ context ( model. ctx ) pred = model ( data ) pred = mx. nd. argmax ( pred, axis ... | [
-0.3377879559993744,
-0.13281628489494324,
0.48048102855682373,
-0.25173112750053406,
-0.45237961411476135,
-0.03691578656435013,
-0.2058582752943039,
0.09272781759500504,
-0.9720659255981445,
0.29739972949028015,
0.6742511987686157,
0.484284371137619,
0.04803468659520149,
0.86871486902236... |
def test _ example _ input _ one _ clone _ default _ values ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper, add _ input _ one ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. table. clone _ row ( " dummy _ input _ one " ) input _ page.... | [
-0.08472766727209091,
0.6608303189277649,
0.8554825782775879,
0.820661723613739,
0.8724610805511475,
0.6978061199188232,
0.135362908244133,
-0.36659157276153564,
0.15361183881759644,
0.1081032007932663,
-0.0838954746723175,
0.018961913883686066,
0.2472943812608719,
-0.049320485442876816,
... |
def simplelinearregression ( latitude, longitude, neightbourthresh, numtrain, numtest ) : # get neighbours neighbours = [ ] sitetopredict = none ; for c in coordinates : x, y = parsecoordinates ( c ) if x = = latitude and y = = longitude : sitetopredict = c continue ; if abs ( x - latitude ) < = neightbourthresh and ab... | [
0.5318702459335327,
-0.5765780806541443,
0.36668840050697327,
-0.735882580280304,
-0.06328226625919342,
-0.1803603321313858,
-1.1648017168045044,
-0.24473491311073303,
-0.07900434732437134,
-1.0159590244293213,
-0.42824751138687134,
-0.2375955581665039,
-0.7511091232299805,
-0.947829663753... |
def verify _ integrity ( df ) : is _ labeled = df ['particle'] > = 0 if not np. all ( is _ labeled ) : frames = df. loc [ ~ is _ labeled,'frame']. unique ( ) raise unknownlinkingerror ( " some particles were not labeled " " in frames { }. ". format ( frames ) ) grouped = df. groupby ('frame') ['particle'] try : not _ e... | [
-0.2764066755771637,
0.1467132866382599,
0.6901524066925049,
0.0917741134762764,
1.328183889389038,
0.5254817008972168,
0.10407202690839767,
-0.14871929585933685,
0.42449501156806946,
-0.010077392682433128,
-0.014857630245387554,
0.5846692323684692,
-0.5006304383277893,
0.5187968015670776,... |
def test _ list _ insert _ float ( self ) : key = ('test ','demo ', 2 ) testlistinsert. client. list _ insert ( key, " age ", 7, 85. 12 ) ( key, _, bins ) = testlistinsert. client. get ( key ) assert bins = = {'age': [ 2, 3, none, none, none, none, none, 85. 12 ],'city': ['pune ','dehli'],'name':'name2'} | [
-0.3935738205909729,
0.7427120804786682,
0.4659470319747925,
-0.2801721394062042,
0.6796627640724182,
0.44714799523353577,
-0.4031650424003601,
0.01651875115931034,
-0.6771425604820251,
0.15962189435958862,
-1.2736668586730957,
-0.8206056356430054,
-1.0204941034317017,
0.7913588285446167,
... |
def get _ object _ count ( self, container _ name, requestslib _ kwargs = none ) : response = self. get _ container _ metadata ( container _ name, requestslib _ kwargs = requestslib _ kwargs ) obj _ count = int ( response. headers. get ('x - container - object - count') ) return obj _ count | [
-0.8683552742004395,
0.011071532033383846,
0.8392626047134399,
0.10148927569389343,
0.6748387813568115,
-0.33313632011413574,
-0.14060147106647491,
-0.9821999669075012,
-0.06357450783252716,
0.07637304067611694,
-0.8997604846954346,
0.387644499540329,
-0.07791972160339355,
-0.4353385269641... |
def getindices ( self ) : return self. getarmindices ( ) | [
-0.8430758118629456,
-0.8382357954978943,
0.11949024349451065,
-0.12145287543535233,
0.07694678753614426,
0.6068162322044373,
0.3987305760383606,
0.13570983707904816,
0.44401460886001587,
-0.35130375623703003,
-0.03277215361595154,
0.8632633090019226,
-0.36587148904800415,
-0.1741767227649... |
def live ( config _ path, model _ path, cuda, crf, camera _ id ) : # setup config = omegaconf. load ( config _ path ) device = get _ device ( cuda ) torch. set _ grad _ enabled ( false ) torch. backends. cudnn. benchmark = true classes = get _ classtable ( config ) postprocessor = setup _ postprocessor ( config ) if cr... | [
0.22606882452964783,
-0.10312379151582718,
0.9396679401397705,
0.5727707743644714,
0.3567981421947479,
-0.0072413296438753605,
0.5997312664985657,
0.14374211430549622,
0.2325756698846817,
0.28992655873298645,
-0.2871255874633789,
0.5565422773361206,
0.48003479838371277,
0.48456913232803345... |
async def storage _ subsystem _ mock ( loop, mocker ) : # requests storage to copy data mock = mocker. patch ( " simcore _ service _ webserver. projects. projects _ handlers. copy _ data _ folders _ from _ project " ) async def _ mock _ copy _ data _ from _ project ( * args ) : return args [ 2 ] mock. side _ effect = _... | [
-0.6419045329093933,
0.4698668122291565,
0.5583373308181763,
0.6937577128410339,
0.48646655678749084,
0.7325323224067688,
1.0766233205795288,
-0.39961951971054077,
0.12779606878757477,
-0.5976764559745789,
0.33259379863739014,
0.43784642219543457,
0.20895534753799438,
0.26383545994758606,
... |
def process _ packets ( streamtype, pcks, encrypted = false, leftover = none ) : if not pcks : return for p in pcks : packet _ id = p [ 0 ] packet _ body = p [ 1 ] statistics [ streamtype ] [ packet _ id ] + = 1 if packet _ id in ignore _ packets : continue if filter _ packets and packet _ id not in filter _ packets : ... | [
0.035162776708602905,
0.23457235097885132,
0.7040303349494934,
-0.04384356364607811,
0.036431003361940384,
0.05514441803097725,
-0.1657271385192871,
-1.018108606338501,
0.8530121445655823,
0.12705789506435394,
-0.14671146869659424,
0.2580970227718353,
-0.2410724014043808,
0.796399116516113... |
def forward ( self, x, delta, pmi ) : # transaction t = x [ : self. n + 2 * self. m ] # t ^ m transaction tm = x [ self. n + 2 * self. m : ] y = self. fm ( t ) # y = self. lnsigmoid ( y * delta. float ( ) ) # y * = - 1 # final equation # y + = self. alpha * pmi * self. constrain ( t, tm ) return y | [
0.3828479051589966,
0.5076678395271301,
0.5938234329223633,
-0.07777350395917892,
-0.7388108372688293,
0.7404265403747559,
-0.09758471697568893,
-0.2278747707605362,
-0.12224597483873367,
-0.2981315851211548,
-0.10801950842142105,
-0.27854782342910767,
-1.0236262083053589,
-0.5884670019149... |
def assertpathlistequals ( expected, actual ) : if len ( expected )! = len ( actual ) : raise assertionerror ( " lenths do not match. got'% s ', expected'% s'" % ( str ( actual ), str ( expected ) ) ) for ( e, a ) in zip ( expected, actual ) : # e is a string of characters, a is a list of actual nodes assertsinglepathe... | [
0.049653470516204834,
-0.34949493408203125,
0.4316100478172302,
0.14352752268314362,
1.1682345867156982,
0.6577354073524475,
0.20717710256576538,
0.7637612819671631,
0.4113878607749939,
0.20849131047725677,
-0.4084357023239136,
-0.05634845048189163,
-0.129935622215271,
0.7524591088294983,
... |
def get _ finder _ patterns _ in _ hypotheses ( img, bounding _ rects _ hypotheses, is _ pop _ display ) : qr _ code _ hypothesis _ detections = [ ] " " " process the hypotheses one - by - one " " " for br in bounding _ rects _ hypotheses : img _ patch = img [ br [ 1 ] : br [ 1 ] + br [ 3 ], br [ 0 ] : br [ 0 ] + br [ ... | [
0.07680360972881317,
-0.6471277475357056,
1.0622388124465942,
0.4561876356601715,
0.15432852506637573,
0.1293807327747345,
0.5403454303741455,
-0.12101426720619202,
0.4967168867588043,
0.45649805665016174,
-0.3006635010242462,
0.2604399025440216,
0.28570064902305603,
0.8769035935401917,
... |
def get _ package _ path ( package _ path ) : package _ path = prompt ('provide the path to packages to place in the repo ', default = package _ path ) return package _ path | [
-0.3435188829898834,
0.7396466135978699,
0.11153141409158707,
0.18886162340641022,
0.5738421678543091,
0.17658822238445282,
0.8711941838264465,
0.2510916292667389,
0.2518213093280792,
-0.45482373237609863,
-0.057147275656461716,
-0.5438564419746399,
-0.2099599540233612,
-0.5902706384658813... |
def read _ input _ file ( filename : str ) - > list [ equation ] : with open ( filename ) as fobj : formulae = [ equation. from _ raw ( line ) for line in fobj ] return formulae | [
0.014982390217483044,
-0.8902793526649475,
0.38325566053390503,
0.391422837972641,
-0.2600211799144745,
0.4727363586425781,
-0.07311071455478668,
0.823462188243866,
-0.7101735472679138,
0.0561845600605011,
0.09344275295734406,
-0.8495358824729919,
0.7009382247924805,
0.3129294514656067,
... |
def process _ hook ( func, args ) : credentials = none if args. login _ user and args. login _ pass : credentials = {'github _ user': args. login _ user,'github _ password': args. login _ pass } with app. app _ context ( ) : if credentials : credentials ['github _ url'] = app. config ['github _ url'] gh = github. get _... | [
0.5656417012214661,
0.3273565471172333,
0.8237878084182739,
-0.05601675808429718,
0.9711708426475525,
0.5942875742912292,
-0.8134403824806213,
1.0732998847961426,
-0.9289719462394714,
0.42169055342674255,
1.085660696029663,
1.0356197357177734,
0.23013907670974731,
-0.13045147061347961,
0... |
def isvalidzipcodestring ( zip ) : zip = re. sub ( r'\ s ','', zip ) is _ any = re. compile ( r'(? : \ d { 3 } | \ d { 5 } | [ a - z ] \ d [ a - z ] ) $ ', re. i ). match is _ fsa = re. compile ( r'[ a - z ] \ d [ a - z ] $ ', re. i ). match is _ zip3 = re. compile ( r'\ d { 3 } $'). match is _ zip5 = re. compile ( r'\... | [
-0.5229286551475525,
-0.9687306880950928,
0.8233172297477722,
0.3211700916290283,
-0.8903438448905945,
-0.46894505620002747,
0.6781982183456421,
-0.12024641782045364,
0.7318220138549805,
-0.007452663499861956,
-0.24763768911361694,
-1.0911296606063843,
-0.7221992015838623,
0.20612747967243... |
def test _ atomic _ any _ uri _ max _ length _ 1 _ nistxml _ sv _ iv _ atomic _ any _ uri _ max _ length _ 2 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - maxlength - 2. xsd ", instance = " nistdata... | [
0.005268048960715532,
-0.5133169293403625,
0.3695809841156006,
1.1998828649520874,
-0.3335025906562805,
-0.22180792689323425,
-0.3734661638736725,
-0.0998108834028244,
-0.25355085730552673,
-0.42251017689704895,
0.0868949294090271,
-0.19259582459926605,
-0.14278127253055573,
0.494357615709... |
def do _ evaluation ( lass, name, regressor, mnist _ data _ train, mnist _ data _ test, mnist _ target _ train, mnist _ target _ test ) : to _ eval = lass. get _ next _ candidate ( name ) regressor. set _ params ( * * to _ eval. params ) regressor = regressor. fit ( mnist _ data _ train, mnist _ target _ train ) predic... | [
-0.08960119634866714,
-0.7530303597450256,
0.5419567823410034,
-0.3849427402019501,
0.20840498805046082,
-0.3109041452407837,
0.05347878858447075,
0.7058091163635254,
-0.05796802416443825,
0.15254706144332886,
-0.5121697783470154,
1.3000117540359497,
0.404161661863327,
-0.5895516872406006,... |
def presentitemsinspeech ( items ) : utterances = [ ] for item in items : utterances. append ( item ) speech. speak ( utterances ) | [
-0.4888826012611389,
-1.1065915822982788,
0.5161717534065247,
-0.4002833664417267,
1.2617051601409912,
0.7610589265823364,
-1.2115744352340698,
0.7760661840438843,
0.5522696375846863,
0.6440771818161011,
-0.0324120968580246,
-0.7028451561927795,
-0.33218154311180115,
0.7821143269538879,
... |
def _ _ iter _ _ ( self ) : if self. _ distance : if'cutoff'not in self. _ distance : raise valueerror ( " cannot filter by distance without cutoff " ) cutoff = self. _ distance ['cutoff'] if self. _ distance. get ('use') = ='atoms': # create trees for the first and second residues and then query # to for unique residu... | [
-0.5457556247711182,
0.20627138018608093,
0.7709473371505737,
-0.48299601674079895,
0.01982211507856846,
-0.08180386573076248,
0.20918548107147217,
-0.0097854258492589,
-0.5109840631484985,
0.4835106134414673,
0.3574799597263336,
-0.3303382992744446,
-0.38722044229507446,
-0.04080593213438... |
def fill ( self, * * kwargs ) : assert _ all _ valid _ keys ( kwargs, set ( self. _ ordering ) ) # convert all kwarg values to bools restrictions = { k : bool ( v ) for k, v in kwargs. items ( ) } # i think the restriction of inputs can be greatly optimized by # pre - computing the ranges of indices for which the input... | [
-1.0592290163040161,
0.7463777661323547,
0.7005678415298462,
0.6565390229225159,
0.24926656484603882,
0.20132523775100708,
0.5053319931030273,
-0.18044538795948029,
-0.7105459570884705,
0.10672632604837418,
-0.1360984593629837,
-0.012516526505351067,
-0.8487653732299805,
0.1376007050275802... |
def _ add _ to _ hits ( adjacent _ to _ hits, coord, seq _ length, direction ) : if coord not in adjacent _ to _ hits : adjacent _ to _ hits [ coord ] = {'seq _ length': seq _ length,'direction': direction } elif seq _ length > adjacent _ to _ hits [ coord ] ['seq _ length'] : adjacent _ to _ hits [ coord ] = {'seq _ l... | [
-0.11431809514760971,
0.24688886106014252,
0.3984713554382324,
-1.9370371103286743,
0.053937721997499466,
0.47436776757240295,
0.14057834446430206,
-0.1729280799627304,
0.011554483324289322,
0.6570557951927185,
0.13581281900405884,
0.164143905043602,
0.6526958346366882,
-0.2033668309450149... |
def _ add _ file _ writes ( self, node, files ) : for file in files : if file : nextid = len ( self. nodemetadata ) fwnodename = " file write { 0 } ". format ( nextid ) self. nodemetadata [ fwnodename ] = dict ( ) self. nodemetadata [ fwnodename ] ['pid'] = node self. nodemetadata [ fwnodename ] ['file'] = file self. n... | [
-0.6399983763694763,
-0.20658372342586517,
0.3776755928993225,
-0.6408684849739075,
1.3520597219467163,
-0.05575573816895485,
-0.389776349067688,
0.6844266057014465,
-0.8843092918395996,
0.41686221957206726,
0.9729626774787903,
-0.1760275512933731,
0.17360413074493408,
0.1686142385005951,
... |
def load ( self, codepath, startpoint ) : modifiedgcode = codecleaner ( ). clean ( codepath ) ( levels, cantpoints ) = pointsextractor ( ). extract ( modifiedgcode, startpoint ) return ( modifiedgcode, levels, cantpoints ) | [
0.3528885543346405,
-0.8321481347084045,
0.280974805355072,
0.365054726600647,
-0.5872288346290588,
-0.05579003319144249,
-0.3220842182636261,
0.12095188349485397,
-0.7578566670417786,
0.6877450942993164,
-0.650500476360321,
-0.23143137991428375,
-0.7240541577339172,
0.03624837100505829,
... |
def get _ form _ data ( self ) - > dict : return {'url': self. _ url _ entry. get ( ) } | [
-0.5693420767784119,
-0.3255975842475891,
0.2576172649860382,
-0.731937050819397,
-0.10163724422454834,
0.6098620295524597,
-0.822873055934906,
0.666847825050354,
-0.3370480239391327,
-0.564166784286499,
-1.2372679710388184,
0.25820407271385193,
0.6246330738067627,
0.9785974621772766,
-0... |
def train _ input _ fn ( features, labels, batch _ size ) : # convert the inputs to a dataset. dataset = tf. data. dataset. from _ tensor _ slices ( ( dict ( features ), labels ) ) # shuffle, repeat, and batch the examples. dataset = dataset. shuffle ( 1000 ). repeat ( ). batch ( batch _ size ) # return the dataset. re... | [
-0.508951723575592,
0.389289528131485,
0.2915322482585907,
-0.4834400415420532,
-0.21332156658172607,
-0.3576687276363373,
0.1765071153640747,
0.763457179069519,
-0.3219974935054779,
-0.8471823334693909,
-0.24555037915706635,
0.7138237357139587,
0.6310068964958191,
-1.1894845962524414,
-... |
def new ( * args, * * kargs ) : obj = itksubtractconstantfromimagefilteriuc3diuc3. _ _ new _ orig _ _ ( ) import itktemplate itktemplate. new ( obj, * args, * * kargs ) return obj | [
0.8221518993377686,
0.30172058939933777,
0.43792277574539185,
-0.8965649604797363,
-0.5328645706176758,
0.512427806854248,
1.0608320236206055,
0.8639848828315735,
-0.07464537769556046,
-0.4862397313117981,
-0.5615882277488708,
-0.366507351398468,
0.8440757989883423,
-0.4407917261123657,
... |
def src ( self ) : return self. _ src | [
-0.03969903662800789,
0.0781625360250473,
0.13508079946041107,
0.36125072836875916,
-0.19655095040798187,
0.9362450838088989,
1.0062439441680908,
-0.022383015602827072,
0.3323467969894409,
-0.9994125366210938,
0.6422296762466431,
0.30698734521865845,
-0.47460249066352844,
-0.28841722011566... |
def get _ velocity _ joint _ limit ( self, joint : joint ) - > float : if joint. limit is none : return 1e9 return joint. limit. velocity | [
1.4673477411270142,
0.003713667392730713,
0.44496282935142517,
1.2222826480865479,
-0.3644832968711853,
0.16617339849472046,
-0.335759699344635,
-0.14483197033405304,
0.6226325035095215,
0.4675085246562958,
0.772946834564209,
0.3281567394733429,
-1.120596170425415,
-0.2792593240737915,
0... |
def get _ network _ details ( self ) : self. _ check _ persistent _ routes ( ) return self. _ convert _ network _ data ( ) | [
-1.0729862451553345,
0.07831212133169174,
0.346836656332016,
0.7493297457695007,
0.7283469438552856,
-0.23840045928955078,
-0.7068136930465698,
-0.8035920858383179,
-0.051278918981552124,
-0.9103297591209412,
-0.4282724857330322,
-0.4034115672111511,
-0.13844098150730133,
0.492280721664428... |
def _ _ init _ _ ( self, start _ channel, end _ channel ) : super ( ). _ _ init _ _ ( ) self. channels = ( start _ channel, end _ channel ) | [
0.3066509962081909,
-0.5705896615982056,
0.661920964717865,
-0.7578651905059814,
0.9217203259468079,
-0.00872885063290596,
-0.8208715319633484,
0.04135353863239288,
-0.7712625861167908,
-0.30399930477142334,
-0.1334591507911682,
0.981645405292511,
-0.2894466817378998,
-0.09763924777507782,... |
def returnlettersymbolnumbercount ( word _ list ) : number _ of _ characters, number _ of _ symbols, number _ of _ numbers = 0, 0, 0 for word in word _ list : for char in word : if char in abc : number _ of _ characters + = 1 elif type ( char )! = int : number _ of _ symbols + = 1 else : number _ of _ numbers + = 1 ret... | [
-0.2619790732860565,
-0.018852965906262398,
0.4417913854122162,
-0.5418945550918579,
0.3979014754295349,
-0.30243104696273804,
1.1745434999465942,
0.14696599543094635,
0.4813876152038574,
0.1138632521033287,
-1.6402873992919922,
0.05086527019739151,
-0.5089294910430908,
1.348942518234253,
... |
def get _ cmap ( n, cmap ='nipy _ spectral') : color _ norm = colors. normalize ( vmin = 0, vmax = n - 1 ) scalar _ map = cmx. scalarmappable ( norm = color _ norm, cmap = cmap ) def map _ index _ to _ rgb _ color ( index ) : return scalar _ map. to _ rgba ( index ) return map _ index _ to _ rgb _ color | [
-1.1178429126739502,
-0.1222289651632309,
0.3631726801395416,
0.453321248292923,
-0.23342953622341156,
-0.789734959602356,
0.2938111126422882,
-0.43706876039505005,
0.8675239682197571,
-0.3589869439601898,
0.14655721187591553,
-0.07859031111001968,
-0.1513967216014862,
0.1819101721048355,
... |
def load ( path : str ) : with open ( path ) as file : data = json. loads ('\ n '. join ( file. readlines ( ) ) ) file. close ( ) return data | [
-0.33121997117996216,
-1.4505302906036377,
0.6419410109519958,
-1.9551109075546265,
-1.3192306756973267,
0.3231654763221741,
-1.3919750452041626,
-0.5144773721694946,
-0.6209166646003723,
0.33713629841804504,
-0.7506378889083862,
0.2583499848842621,
0.0552944615483284,
-1.2817726135253906,... |
def optimized _ joint _ names ( self ) - > list [ str ] : return [ joint for joint in self. actuated _ joint _ names if joint not in self. parameter _ joint _ names ] | [
-0.25564220547676086,
-0.4235348105430603,
0.4789019227027893,
0.06211195886135101,
-0.12838304042816162,
0.6887184381484985,
-0.16196919977664948,
-0.19434326887130737,
-0.46336787939071655,
0.45966169238090515,
-0.4900703430175781,
1.2877750396728516,
-1.199020504951477,
-0.4454048871994... |
def create _ routing _ test _ suite ( project = none, modules = none ) : data = [ ] shortest _ set = [ ] # found shortest set from start to node, key is'start + node ', value is list of nodes if project : if project. language : language = project. language. name else : language = language _ default _ name # start = tim... | [
-0.7154989838600159,
0.17237457633018494,
0.6488544940948486,
-0.02151765674352646,
0.7460558414459229,
0.4122563302516937,
0.022707093507051468,
-0.3767402768135071,
-0.14938218891620636,
0.373362272977829,
-0.0037316083908081055,
0.3090190887451172,
-0.3840777575969696,
0.687296807765960... |
def allow _ cross _ origin ( response ) : response. headers. add ('access - control - allow - origin ','*') response. headers. add ('access - control - allow - headers ','content - type, authorization') response. headers. add ('access - control - allow - methods ','get, put, post, delete, options, patch') return respon... | [
0.7144889235496521,
-0.8667479157447815,
0.7806210517883301,
0.2915553152561188,
-0.43683549761772156,
0.6365113854408264,
0.31538403034210205,
0.28483840823173523,
0.7837947010993958,
-0.21783658862113953,
0.14533832669258118,
0.10344165563583374,
0.2384468913078308,
-0.10871937870979309,... |
def test _ atomic _ hex _ binary _ min _ length _ 1 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ min _ length _ 2 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - minlength - 2. xsd ", instance ... | [
0.0016815762501209974,
-0.284292995929718,
0.5283668041229248,
0.7041542530059814,
-0.11346126347780228,
0.4889780282974243,
-0.8310621976852417,
-0.07145373523235321,
0.16476860642433167,
-0.07364549487829208,
-0.5326966047286987,
-0.26966673135757446,
-0.2697942554950714,
0.4302175641059... |
def get _ global _ link _ linear _ jacobian _ function ( self, link : str, n : int = 1, numpy _ output : bool = false, ) - > cs. function : return self. make _ function ( " jl ", link, self. get _ global _ link _ linear _ jacobian, n = n, numpy _ output = numpy _ output, ) | [
0.4188610315322876,
0.005670588929206133,
0.35639485716819763,
0.26643407344818115,
-0.691985547542572,
-0.38661083579063416,
1.1393824815750122,
-0.6160699725151062,
0.38273510336875916,
-0.5844730734825134,
-0.7511164546012878,
1.1731452941894531,
-0.3064614236354828,
-0.4920135140419006... |
def _ is _ ubuntu _ 14 _ 04 ( ) : # type : ( ) - > bool import distro distro = distro. linux _ distribution ( ) # pylint : disable = no - member return distro [ 0 ]. lower ( ) = = " ubuntu " and distro [ 1 ] = = " 14. 04 " | [
-0.13205872476100922,
-0.2648409605026245,
0.18450680375099182,
0.11152026057243347,
0.1716683804988861,
-0.04264743626117706,
-0.4875941872596741,
-0.13239309191703796,
-0.6831098794937134,
-0.2794724404811859,
0.1132078766822815,
0.22177661955356598,
-0.21152323484420776,
0.1163244098424... |
def get ( self, request, car _ id ) : car = car. objects. get ( id = car _ id ) reservations = reservation. objects. filter ( car = car _ id ) damages = cardamage. objects. filter ( car = car _ id ) return render ( request, " car _ view. html ", { " car " : car, " damages " : damages, " reservations " : reservations } ... | [
0.2884904742240906,
-0.725574254989624,
0.4528260827064514,
-1.0020205974578857,
0.03752387687563896,
-0.12905633449554443,
-1.4941824674606323,
0.9314887523651123,
-0.8961029052734375,
-0.5047020316123962,
0.764392614364624,
0.44588443636894226,
0.16158294677734375,
-0.2964033782482147,
... |
def save ( self ) : try : with open ( self. filename,'w ', encoding = " utf - 8 " ) as fd : dump ( self. _ data, fd, ensure _ ascii = false, indent = self. indent, sort _ keys = self. sort _ keys ) return { " success " : true } except exception as e : return { " error " : str ( e ) } | [
-1.3704581260681152,
-0.2843199670314789,
0.5830044746398926,
-0.5929512977600098,
-0.22684943675994873,
0.11918076872825623,
-0.3302624821662903,
-0.10256961733102798,
-1.32976496219635,
0.2466951310634613,
-0.8656445741653442,
-0.49846595525741577,
-0.5119845271110535,
-0.019655339419841... |
def test _ n _ steps _ per _ oscillation ( ) : n _ t = sbp. calc _ oscillation _ periods ( sbp. p _ n _ steps, sbp. p _ o _ steps ) assert n _ t > 1, " total timesteps must be greater than timesteps per oscillation " | [
0.7763894200325012,
1.2708252668380737,
0.3714742660522461,
0.9904605150222778,
0.34409624338150024,
0.7883349657058716,
0.573535144329071,
-0.3912077248096466,
0.4611445367336273,
-0.2653101086616516,
0.21353679895401,
-1.0915422439575195,
0.2576141953468323,
0.7103514671325684,
0.11316... |
def beta _ create _ algorithminternalservice _ server ( servicer, pool = none, pool _ size = none, default _ timeout = none, maximum _ timeout = none ) : request _ deserializers = { ('com. abcft. algorithm. grpc. internal. algorithminternalservice ','allennlp') : allennlprequest. fromstring, ('com. abcft. algorithm. gr... | [
-0.42463356256484985,
-0.17094466090202332,
0.9289162755012512,
-0.7336761355400085,
-0.07813684642314911,
0.39174628257751465,
0.18154515326023102,
-0.7617583870887756,
-0.11308469623327255,
0.15494221448898315,
-0.061633870005607605,
0.8418930172920227,
-0.6037685871124268,
0.62390768527... |
def build _ model ( vocab _ size, max _ len, optimizer ) : # layer for getting the image features as input. cnn _ fc _ input = tf. keras. layers. input ( shape = ( 2048, ) ) # apply batch normalization on this dense layer. fully _ connected = tf. keras. layers. dense ( 512, use _ bias = false ) ( cnn _ fc _ input ) bat... | [
0.5693275928497314,
-0.31863516569137573,
0.565071702003479,
0.13657130300998688,
0.031223174184560776,
-0.2889145016670227,
0.016207555308938026,
0.1856231689453125,
0.3141045868396759,
0.2906191349029541,
-0.4646621346473694,
-0.029053615406155586,
0.11567596346139908,
-0.108540043234825... |
def directions ( self, t _ addr, s _ addr = none ) : gmaps = googlemaps. client ( key = self. googlemaps _ key ) if s _ addr is none : lat01 = self. lat lng01 = self. lng else : lat01 = s _ addr. lat lng01 = s _ addr. lng t _ dirs = gmaps. directions ( origin = ( lat01, lng01 ), destination = ( t _ addr. lat, t _ addr.... | [
-0.8365998864173889,
-0.3452742397785187,
0.7877135276794434,
-0.40782323479652405,
-0.0890975371003151,
0.31362801790237427,
-0.41559988260269165,
0.8071383237838745,
0.7598149180412292,
0.6921480298042297,
-0.33611270785331726,
0.13658058643341064,
0.09948384016752243,
0.2857810556888580... |
def _ flatten _ parameters ( self ) : [ m. flatten _ parameters ( ) for m in self. _ to _ flatten ] | [
-1.3297451734542847,
-0.08858542144298553,
0.1231062263250351,
-0.3286363184452057,
0.7219097018241882,
-0.2568466067314148,
0.156749427318573,
0.19045376777648926,
-0.8154447674751282,
0.2836279571056366,
0.2500598728656769,
0.5338279604911804,
-0.5558938980102539,
1.1995526552200317,
-... |
def start _ publisher ( test, parent, xact, rsp ) : @ asyncio. coroutine def configure _ tasklet ( test, xact, rsp, tasklet _ id ) : subscriber _ config = rwdtsperf. perfdtsconfig. from _ dict ( {'config _ task _ instance': {'instance _ id': [ {'task _ instance _ id': int ( tasklet _ id ),'instance': int ( tasklet _ id... | [
0.5257017612457275,
-0.18356014788150787,
0.48997747898101807,
-1.0328950881958008,
-0.3070785105228424,
-0.460584819316864,
0.36633431911468506,
0.2806829810142517,
-0.36298733949661255,
0.3596896231174469,
0.108185775578022,
0.17594534158706665,
0.055860862135887146,
0.07119349390268326,... |
def integrate ( dt, lat, lon, ve, vn, h, p, r, theta, dv, stamp = 0 ) : n _ readings = theta. shape [ 0 ] lat _ arr = np. empty ( n _ readings + 1 ) lon _ arr = np. empty ( n _ readings + 1 ) ve _ arr = np. empty ( n _ readings + 1 ) vn _ arr = np. empty ( n _ readings + 1 ) cnb _ arr = np. empty ( ( n _ readings + 1, ... | [
-0.05919979140162468,
0.6808781027793884,
0.6172523498535156,
-0.2367098033428192,
0.23788903653621674,
-0.49981993436813354,
0.00126047118101269,
-0.25305116176605225,
-0.8964192271232605,
-0.6188606023788452,
0.013833655044436455,
-0.5157134532928467,
0.4097338914871216,
0.12944273650646... |
def get _ by _ ref ( self, reference ) : try : self. _ _ logger. debug ( " reference % s " % reference ) return self. _ _ userlist [ reference ] except keyerror as e : self. _ _ logger. debug ( " can't find user object " " for reference % s " % reference ) self. _ _ logger. debug ( e ) sys. exit ( 1 ) | [
-0.27616700530052185,
-0.43113404512405396,
0.5987384915351868,
0.3650680184364319,
-0.25118139386177063,
0.32031577825546265,
0.8515031933784485,
-1.1893880367279053,
0.37925487756729126,
0.7080704569816589,
0.5530815720558167,
0.8148621320724487,
-0.8426960706710815,
0.7223078608512878,
... |
def update ( self ) : now = time. time ( ) diff = now - self. lasttime self. lasttime = now if diff > 0 : self. text ='fps : % 3. 1f'% ( 1. 0 / diff ) | [
0.10993944108486176,
-0.24963237345218658,
0.5423335433006287,
-0.36269259452819824,
-0.20554029941558838,
-0.0986357256770134,
-0.38796234130859375,
-0.4339718520641327,
0.1701744943857193,
1.1382975578308105,
0.2717803716659546,
0.1290658414363861,
-0.8206039071083069,
1.310200572013855,... |
def serialize ( self ) : return {'name': self. name,'city': self. city,'state': self. state,'conference': self. conference,'id': self. id, } | [
-0.5073745846748352,
-1.4641189575195312,
0.5806059241294861,
-1.3754184246063232,
-1.2003953456878662,
0.18377842009067535,
-0.9253754615783691,
-0.05493246018886566,
0.5638664364814758,
0.2789860665798187,
-1.415286660194397,
0.1384592205286026,
-0.4936882257461548,
-0.29370740056037903,... |
def parse _ case ( config, ped = none ) : if'owner'not in config : raise configerror ( " a case has to have a owner " ) owner = config ['owner'] if ped : with open ( ped,'r') as f : family _ id, samples = parse _ ped ( f ) config ['family'] = family _ id config ['samples'] = samples if'family'not in config : raise conf... | [
0.2477053999900818,
-0.3589070737361908,
0.621004045009613,
0.18841540813446045,
-0.3207688331604004,
0.19568473100662231,
-0.35904958844184875,
0.33676615357398987,
-0.1984153687953949,
0.406841903924942,
-0.5104398727416992,
-0.27981138229370117,
0.1943652331829071,
0.8174601197242737,
... |
def authorize _ view ( self, dataset, shared _ dataset, view, shared _ project = none ) : if not shared _ project : shared _ project = self. project shared _ dataset _ ref = self. client. get _ dataset ( f " { shared _ project }. { shared _ dataset } " ) view _ ref = shared _ dataset _ ref. table ( view ) dataset _ ref... | [
-0.11748761683702469,
0.8438334465026855,
0.4926553964614868,
-0.5142067074775696,
-0.40186771750450134,
-0.12774492800235748,
0.6733963489532471,
0.7645710706710815,
0.41928166151046753,
-0.8822293877601624,
1.3128236532211304,
1.721382975578308,
0.11686471104621887,
-0.18063481152057648,... |
def get _ default _ realms ( self, client _ key, request ) : raise notimplementederror ( " subclasses must implement this function. " ) | [
-0.6903735995292664,
0.122231125831604,
0.5138459801673889,
0.29008686542510986,
1.0198063850402832,
0.46918031573295593,
0.07935521006584167,
-0.3952622413635254,
-0.26119759678840637,
0.3368269205093384,
-0.09217837452888489,
-0.1835116446018219,
-0.48050081729888916,
1.458040714263916,
... |
async def beautiful ( self, ctx, user : discord. member = none, is _ gif = false ) : if user is none : user = ctx. message. author async with ctx. channel. typing ( ) : beautiful _ img = await self. make _ beautiful ( user, is _ gif ) if beautiful _ img is none : await ctx. send ( " sorry something went wrong! " ) retu... | [
-0.06279513984918594,
1.8736791610717773,
0.6063796281814575,
0.8078835606575012,
-0.4379567503929138,
0.9036703109741211,
0.040193673223257065,
0.44065290689468384,
-0.24714404344558716,
-0.3911292850971222,
-0.31490686535835266,
1.6403379440307617,
0.4003687798976898,
0.04761119559407234... |
def setusermessage ( self, str ) : self. usermsgtimeout = self. umsg _ timeout self. mbox. config ( text = str ) | [
0.14773543179035187,
-0.26289069652557373,
0.30885982513427734,
0.06939037889242172,
-0.7706527709960938,
0.6282241940498352,
0.3416388928890228,
0.012746105901896954,
0.15085731446743011,
-0.0338907390832901,
-0.6661786437034607,
0.7735379338264465,
-0.8562694787979126,
0.3635255396366119... |
def tojunit ( self ) : root = self. make _ element ( " testsuites " ) root. set ( u " duration ", unicode _ str ( self. calculate _ duration ( ) ) ) for suite in self. suites : root. append ( suite. tojunit ( ) ) return root | [
0.3872555196285248,
0.7098170518875122,
0.5941094160079956,
-0.03512263670563698,
-0.03229982778429985,
0.5498892068862915,
0.9587976336479187,
0.030038129538297653,
1.0856800079345703,
-0.28040140867233276,
0.07811189442873001,
0.3271002173423767,
-0.2017141431570053,
0.8720510601997375,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.