text
stringlengths
25
2.19k
embedding
listlengths
768
768
def test _ atomic _ hex _ binary _ min _ length _ nistxml _ sv _ iv _ atomic _ hex _ binary _ min _ length _ 1 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - minlength - 1. xsd ", instance = " ...
[ 0.35893166065216064, -0.3730926215648651, 0.3990589380264282, 0.638410747051239, -0.062015432864427567, 0.3179106116294861, -0.42034757137298584, -0.18484121561050415, 0.40319153666496277, 0.07893840223550797, -0.32895371317863464, -0.665561318397522, -0.6624512672424316, 0.378848671913147...
def from _ pyzx ( cls, zxqc ) : qc = cls. from _ qasm ( zxqc. to _ qasm ( ) ) return qc
[ 0.6389058232307434, -1.2114163637161255, 0.12725763022899628, -0.3729788661003113, -0.43762117624282837, -0.07734677940607071, -0.049860429018735886, -1.1812556982040405, 1.4444738626480103, -0.8676831722259521, -0.25986987352371216, -0.43099087476730347, -0.068780817091465, -0.01275435183...
def move _ character ( self, direction, dungeon _ map ) : x = self. current _ room. position [ 0 ] y = self. current _ room. position [ 1 ] direction = direction. upper ( ) [ : 1 ] while true : if self. current _ room. doors. get ( direction ) is false : return false else : break if direction = = " w " : new _ room = d...
[ -1.9757620096206665, -1.239256739616394, 0.9035835266113281, -0.15892274677753448, -0.6698001027107239, -0.04532405361533165, 0.04025514796376228, -0.41755086183547974, 0.11428841948509216, 0.6189926862716675, 0.3387290835380554, 0.21676938235759735, -0.9658180475234985, -0.009799879044294...
def unionall ( self, * args ) : return _ snap. ttable _ unionall ( self, * args )
[ -0.1699497401714325, 0.29337552189826965, 0.5373538136482239, 1.1167768239974976, 0.3369292914867401, 0.5507442951202393, -0.25619396567344666, 0.18437767028808594, -0.6141210198402405, 0.39583563804626465, -0.24075907468795776, -0.46553686261177063, 0.5423374176025391, 0.550569474697113, ...
def initialize ( blk, outlvl = idaeslog. notset, optarg = none, solver = none ) : init _ log = idaeslog. getinitlogger ( blk. name, outlvl, tag = " reactions " ) solve _ log = idaeslog. getsolvelogger ( blk. name, outlvl, tag = " reactions " ) init _ log. info _ high ( " starting initialization " ) # todo - update in t...
[ -0.014710957184433937, -0.16151532530784607, 0.8487591743469238, 0.1719423234462738, -0.00981056783348322, -0.8360517024993896, 0.45174074172973633, 0.3593081533908844, -0.3928487002849579, -0.14427414536476135, -0.732775092124939, -0.2100895345211029, 0.07736328989267349, 1.29880893230438...
def value ( self, items : bundle ) - > float : best _ feasible _ bundle = sorted ( items, key = lambda item : - self. item _ value ( item ) ) [ : self. capacity ] return super ( ). value ( best _ feasible _ bundle )
[ 0.32089468836784363, -0.2861516773700714, 0.5263376235961914, 1.017773985862732, 0.10718052089214325, 0.20709367096424103, -0.004022062756121159, -0.07058663666248322, -1.2641489505767822, 0.42348620295524597, -0.17604655027389526, -0.5646762251853943, 0.5725558996200562, 0.400777190923690...
def test _ atomic _ hex _ binary _ enumeration _ 3 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ enumeration _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - enumeration - 4. xsd ", instance ...
[ -0.810084342956543, -0.3258734941482544, 0.6266824007034302, 0.8907496929168701, 0.03655574470758438, 0.5490204691886902, 0.010586580261588097, 0.23679909110069275, 0.002232543658465147, 0.5468751192092896, -0.35683971643447876, -0.7309148907661438, -0.14871811866760254, -0.173814445734024...
def _ _ len _ _ ( self ) : return len ( self. _ _ data _ area )
[ 0.11065644025802612, -0.21899253129959106, 0.36671534180641174, -1.8823453187942505, -0.037531014531850815, 0.573407769203186, 0.3132930397987366, 0.8600630760192871, 0.5431492924690247, -0.5960538387298584, -0.8635155558586121, 0.2607753276824951, 0.5676352977752686, 0.3401125967502594, ...
def getsubvalv ( self, * args ) : return _ snap. tfltprv _ getsubvalv ( self, * args )
[ -0.3232170641422272, 0.08416921645402908, 0.4239271879196167, 0.145093634724617, -0.4387595057487488, 0.23471327126026154, 0.3448053300380707, 1.1209765672683716, -1.4422602653503418, -0.5217411518096924, -0.42953038215637207, -0.25557371973991394, -0.014117159880697727, 0.7559134364128113...
def test _ registered _ func _ is _ none ( self ) : dispatcher = xmlrpc. server. simplexmlrpcdispatcher ( ) dispatcher. register _ function ( none, name ='method') with self. assertraisesregex ( exception,'method') : dispatcher. _ dispatch ('method ', ('param ', ) )
[ -0.04578661918640137, 1.116178274154663, 0.4377676248550415, -0.04374634101986885, 1.113590121269226, -1.559354543685913, -0.4441572427749634, -0.15302273631095886, 0.18416623771190643, -1.0373083353042603, -1.2373685836791992, 0.38699591159820557, -0.517741322517395, 0.9023788571357727, ...
def get ( self, request ) : form = addpartdamage ( ) return render ( request, " damage _ part. html ", {'form': form } )
[ 0.1692497432231903, -0.3762986660003662, 0.5646265745162964, -0.9134666919708252, 0.1798657327890396, 0.15197019279003143, -1.287197470664978, 0.028232499957084656, -0.2037937045097351, -1.1444357633590698, 1.0361809730529785, -0.3687863051891327, -0.42987582087516785, -0.24658724665641785...
def calc _ orbit _ duration ( start _ timestamp, end _ timestamp ) : # convert start and end dates to unix timestamp d1 _ ts = time. mktime ( start _ timestamp. timetuple ( ) ) d2 _ ts = time. mktime ( end _ timestamp. timetuple ( ) ) # orbit duration in minutes orbit _ duration = int ( d2 _ ts - d1 _ ts ) / 60 return ...
[ -0.578553318977356, 0.2909763753414154, 0.6909991502761841, -1.0989073514938354, 0.038923583924770355, 0.26217055320739746, -0.9980856776237488, -0.1480954885482788, -0.1243361234664917, 1.1570672988891602, -0.30574217438697815, 1.016862392425537, 0.35579171776771545, -1.0647937059402466, ...
def test _ _ applicationexecutable _ _ to _ data ( ) : launcher = true name ='warning'os = operationsystem. linux parameters ='run'application _ executable = applicationexecutable ( launcher = launcher, name = name, os = os, parameters = parameters, ) expected _ output = {'is _ launcher': launcher,'name': name,'os': os...
[ 0.6241482496261597, 0.1254132091999054, 0.4466967284679413, 0.7505406141281128, 0.3366509974002838, 0.8744398355484009, -1.0554841756820679, -0.19180043041706085, -0.8899226188659668, 0.18581995368003845, -0.7366370558738708, -0.10124197602272034, 0.29118484258651733, -0.03384721279144287,...
def on _ pushbutton _ startcapture _ clicked ( self ) : # disable startcapture button self. pushbutton _ startcapture. setenabled ( false ) # send time first self. sendcmdtime ( ) self. sendcmdresetall ( ) # start capture... self. sendcmdssd _ rw _ ad ( 0x02, 0x00, 0x02, 0x00, 0x0000 ) # sendcmdssd _ rw _ ad ( self, cm...
[ 0.48311176896095276, 0.31039753556251526, 0.9879593849182129, 0.061515528708696365, -0.3642580211162567, 0.14480847120285034, 0.16022571921348572, -0.4647172689437866, 0.9647815227508545, 0.22514353692531586, -0.3681483268737793, 0.7709051966667175, -0.00960225984454155, 1.1887390613555908...
def handle _ clear _ search ( self ) : # set search list to empty self. my _ collection. search _ list = [ ] self. handle _ clear _ button ( is _ search = true ) self. load _ movies ( )
[ -1.2745262384414673, 0.31203821301460266, 0.13636450469493866, 0.8821897506713867, 0.639836311340332, 0.5407981276512146, 0.031894296407699585, -0.08699144423007965, 0.27661648392677307, 0.6468058824539185, -1.1323482990264893, 0.323153555393219, -0.6068270206451416, 0.6430593132972717, ...
def data _ anscombes _ quartet ( id ) : if id = = 1 : x = [ 10. 0, 8. 0, 13. 0, 9. 0, 11. 0, 14. 0, 6. 0, 4. 0, 12. 0, 7. 0, 5. 0 ] y = [ 8. 04, 6. 95, 7. 58, 8. 81, 8. 33, 9. 96, 7. 24, 4. 26, 10. 84, 4. 82, 5. 68 ] elif id = = 2 : x = [ 10. 0, 8. 0, 13. 0, 9. 0, 11. 0, 14. 0, 6. 0, 4. 0, 12. 0, 7. 0, 5. 0 ] y = [ 9. ...
[ 0.1549871861934662, -0.5507289171218872, 1.1227787733078003, -0.9832985997200012, -1.0374503135681152, -0.08006475865840912, 0.5454251766204834, -0.5823602080345154, 0.007719157729297876, 0.2746407389640808, -0.11532658338546753, 0.5215866565704346, -0.2557746171951294, -0.0734929740428924...
def fltattrnameei ( self, * args ) : return _ snap. tneanetmp _ fltattrnameei ( self, * args )
[ -0.45637595653533936, 0.3082742691040039, 0.06484933197498322, -0.12419553846120834, 0.7184605002403259, 0.2897629737854004, 0.45228028297424316, -0.5656992793083191, -1.284578561782837, 0.7529338002204895, -0.6475356817245483, -1.024193286895752, -0.18272359669208527, 0.5678296089172363, ...
def _ _ init _ _ ( self, initial _ ego _ x : int = 0, initial _ ego _ y : int = 0, initial _ enemy _ x : int = 4, initial _ enemy _ y : int = 3, position _ update _ noise : float = 0, no _ noise _ for _ wall : bool = true ) : super ( abstractgridworldenv, self ). _ _ init _ _ ( ) self. mdp : mdp = make _ two _ robots _...
[ 0.20114123821258545, 0.08731301873922348, 0.9749525189399719, 0.41945329308509827, 0.4621206820011139, 0.6735007762908936, 0.5257099866867065, -0.10686688125133514, -0.8680238723754883, 1.121208667755127, 0.002438049064949155, -0.012028119526803493, 0.8816953301429749, 1.2003986835479736, ...
def getdevicemanagementrequeststatusbydevice ( self, requestid, typeid, deviceid ) : mgmtrequests = apiclient. mgmtrequestsingledevicestatus % ( self. host, requestid, typeid, deviceid ) r = requests. get ( mgmtrequests, auth = self. credentials, verify = self. verify ) status = r. status _ code if status = = 200 : sel...
[ -1.88180673122406, -0.12239164113998413, 0.43034088611602783, 0.2710706889629364, -0.11850634217262268, -0.06624843180179596, -0.18477921187877655, -1.0162980556488037, 0.3767375648021698, -0.04419318586587906, 0.2919574975967407, 1.2955094575881958, -0.6420318484306335, 0.5826898813247681...
def _ reload ( ) : cls. reconnect ( )
[ -0.8215577602386475, -1.0043988227844238, 0.21906763315200806, -0.1296805590391159, 0.3363760709762573, -0.43964433670043945, 0.022072752937674522, -0.6285635828971863, -0.23019453883171082, 0.4399473965167999, 0.2893730700016022, 0.3046916127204895, -0.2089415043592453, -1.595172286033630...
def choice ( * inputs, * * kwargs ) : choice _ node _ obj = _ create _ and _ connect _ node ('choice ', * inputs ) # since this is a multi - attr node it's hard to filter out the selector keyword # in a perfect manner. this should do fine though. _ set _ or _ connect _ a _ to _ b ( choice _ node _ obj. selector, kwargs...
[ -0.8553487658500671, -0.2529563307762146, 0.49286606907844543, 0.3329939842224121, 0.11997891962528229, 0.4267286956310272, -0.09432962536811829, -1.0726240873336792, 0.26101264357566833, 0.09427355974912643, 0.40493205189704895, 0.1556221842765808, -0.1958702951669693, -0.3235053122043609...
def upload _ status ( self ) : file _ list _ api = self. _ start _ url +'/ files'return api _ util. get _ url ( file _ list _ api, self. _ user, self. _ password, self. _ header )
[ -0.8803129196166992, -0.23459962010383606, 0.518099308013916, 0.06855028867721558, 0.8775163888931274, -0.07270728051662445, -0.8564375638961792, 0.7538175582885742, -0.6970528960227966, 0.25510066747665405, -0.6698951125144958, 0.3320547342300415, -0.4664183557033539, 0.3589751124382019, ...
def gini _ impurity ( data, item = true ) : results _ count = decisiontree. count _ results ( data, item ) len _ data = len ( data ) imp = 0. 0 for k1, v1 in results _ count. iteritems ( ) : p1 = float ( v1 ) / len _ data for k2, v2 in results _ count. iteritems ( ) : if k1 = = k2 : continue p2 = float ( v2 ) / len _ d...
[ -0.2084171026945114, 0.4926430583000183, 0.6199449300765991, 0.39270246028900146, 0.4340481758117676, -0.020557275041937828, 0.45725905895233154, 0.031813912093639374, -0.08444035798311234, 0.6589903831481934, -0.8256773948669434, -0.11931455135345459, -1.064821720123291, -0.53412181138992...
def deletedraftthingtype ( self, thingtypeid ) : draftthingtypeurl = apiclient. draftthingtypeurl % ( self. host, thingtypeid ) r = requests. delete ( draftthingtypeurl, auth = self. credentials, verify = self. verify ) status = r. status _ code if status = = 204 : self. logger. debug ( " device type was successfully d...
[ -1.7090333700180054, 0.22765164077281952, 0.8578594923019409, -0.18594209849834442, 0.04182200878858566, 0.16015882790088654, -0.13248832523822784, -1.0625745058059692, 0.0871143713593483, 0.22569097578525543, -0.08800701051950455, 0.7055914402008057, -1.3347316980361938, 0.297280758619308...
def lastlast ( self, * args ) : return _ snap. tstrintprv _ lastlast ( self, * args )
[ 0.18340769410133362, 0.12524732947349548, 0.3125324845314026, -2.3583292961120605, 0.638803243637085, 0.6020664572715759, -0.3666917085647583, 0.3114016056060791, -0.6360255479812622, 0.3224380612373352, 0.14487680792808533, -0.29615142941474915, -1.7471551895141602, -0.7148686647415161, ...
def compute _ p ( x, x ) : n = x. shape [ 1 ] if x. shape [ 1 ]! = n : raise valueerror ( " number of points don't match. " ) # create matrix for dlt solution m = np. zeros ( ( 3 * n, 12 + n ) ) for i in range ( n ) : m [ 3 * i, 0 : 4 ] = x [ :, i ] m [ 3 * i + 1, 4 : 8 ] = x [ :, i ] m [ 3 * i + 2, 8 : 12 ] = x [ :, i...
[ 0.648781955242157, 0.7746260166168213, 0.8967154622077942, -0.357019305229187, -0.3155675530433655, 0.03802373260259628, -0.9077209234237671, 0.6321497559547424, 0.8712640404701233, 1.4393023252487183, 0.31375712156295776, -0.06982609629631042, -0.22058303654193878, -1.194440484046936, -...
def password _ reset _ token _ created ( sender, instance, reset _ password _ token, * args, * * kwargs ) : # send an e - mail to the user context = {'current _ user': reset _ password _ token. user,'username': reset _ password _ token. user. username,'email': reset _ password _ token. user. email, # url of password re...
[ 0.2577507197856903, 0.4091230630874634, 0.4917415976524353, -0.4706510305404663, 0.14063622057437897, -0.017215415835380554, -0.26256197690963745, 0.223332941532135, -0.6974952220916748, 0.8340339064598083, -0.9594449996948242, 0.893523097038269, 0.42517492175102234, -0.5540335774421692, ...
def group _ all ( xyz, features, use _ xyz = true ) : if use _ xyz : new _ features = tf. concat ( [ xyz, features ], axis = 2 ) # ( batch _ size, 16, 259 ) else : new _ features = features new _ features = tf. expand _ dims ( new _ features, 1 ) # ( batch _ size, 1, 16, 259 ) return new _ features
[ -0.012770767323672771, 0.14167211949825287, 0.5974445343017578, 0.530290424823761, 0.45132309198379517, -0.49800917506217957, 0.4659183919429779, 0.3530547320842743, -0.1846204698085785, -0.09640182554721832, -0.3187156021595001, 0.05115384981036186, -0.5970845818519592, 0.4054167270660400...
def parse ( self, response ) : logger. info ( " in parse. last url : % s ", response. url ) utl. save _ file _ with _ name ( self. student, response, self. spider _ name, str ( datetime. today ( ). year ), is _ debug = true, extra = " forward " ) scripts = response. xpath ( " / / script / text ( ) " ). extract ( ) appl...
[ -0.9377646446228027, -0.1458624005317688, 0.7543806433677673, -0.35267195105552673, 0.299053817987442, 0.44040483236312866, 0.5408143401145935, -0.2734778821468353, 0.5432756543159485, 0.08928260952234268, -0.007409978192299604, 0.08794615417718887, 0.3165304958820343, 0.2628338932991028, ...
def _ make ( cls, iterable ) : # note that this triggers _ _ init _ _ ( ) to be called. return cls ( * iterable )
[ -0.5971884727478027, -0.3811193108558655, -0.06811346858739853, 0.043103333562612534, -0.12209495902061462, 0.052606161683797836, -0.046661797910928726, -0.2331800013780594, -0.14044290781021118, -0.6961452960968018, -0.480889230966568, -0.8615738749504089, 0.06912646442651749, -0.82777941...
def sir _ simulate ( steps, i0, b, k ) : ss = np. empty ( ( steps + 1 ) ) is = np. empty ( ( steps + 1 ) ) rs = np. empty ( ( steps + 1 ) ) ss [ 0 ] = 1 is [ 0 ] = i0 rs [ 0 ] = 0 for i in range ( steps ) : s _ dot, i _ dot, r _ dot = sir _ step ( ss [ i ], is [ i ], b, k ) ss [ i + 1 ] = ss [ i ] + s _ dot is [ i + 1 ...
[ -0.05853666365146637, 0.4312862753868103, 0.6785577535629272, -0.11885887384414673, -0.4970756471157074, -0.17258723080158234, 0.42532339692115784, 0.673301637172699, 0.9843003749847412, 0.6901448965072632, -0.6598254442214966, 0.08031383156776428, -0.6216182708740234, 0.15982086956501007,...
def analyze _ items ( lines : list [ str ] ) - > tuple [ str, str, str ] : for line in lines : parts = line. split ( ',') # [ < url _ to _ item : str >, < desired _ price : float > ] link, desired _ price = parts [ 0 ], parts [ 1 ] # try - except prevents - > crashing upon link not containing protocol try : page = requ...
[ -0.8215226531028748, -0.4659709632396698, 0.7560770511627197, 1.0634052753448486, 0.4465140998363495, 0.40982893109321594, -0.3959254026412964, -0.505516529083252, -1.2706588506698608, -0.0628000795841217, 0.15709392726421356, -0.7307999134063721, 0.256013423204422, 0.28151464462280273, ...
def add _ time ( self, other ) : seconds = self. time _ to _ int ( ) + other. time _ to _ int ( ) return int _ to _ time ( seconds )
[ -0.5832027196884155, 0.2927011251449585, 1.1226236820220947, -0.031476572155952454, 0.1292802095413208, -0.11947403103113174, -0.7914221882820129, -1.447742223739624, -0.16039393842220306, 0.8928090929985046, -0.6897829174995422, -0.1601947695016861, -0.5992177724838257, 0.7188873291015625...
def minus _ ln _ stacks _ dir ( directory, convert _ mrc ) : fnames = glob. glob ( directory + " / * " ) print ( " \ ncompute absorbance stacks : \ n " " applying minus log to the stacks in " " the given directory : \ n { 0 } \ n ". format ( fnames ) ) cores = - 2 parallel ( n _ jobs = cores, backend = " multiprocessin...
[ 0.34430059790611267, -0.2152239829301834, 0.8064011335372925, -0.11328621208667755, 0.27658262848854065, -0.2738858461380005, 0.4123936891555786, 0.26781365275382996, 0.16705258190631866, -0.02278398536145687, 0.2201617807149887, 0.24696792662143707, 0.032663263380527496, 1.031976461410522...
def assert _ prim _ expr _ equal ( lhs, rhs ) : ana = tvm. arith. analyzer ( ) if not ana. can _ prove _ equal ( lhs, rhs ) : raise valueerror ( " { } and { } are not equal ". format ( lhs, rhs ) )
[ 0.7713848948478699, -0.39246866106987, 0.36229419708251953, 0.29528939723968506, 0.4105430841445923, 0.6537936329841614, -1.1317317485809326, -0.18636423349380493, -0.27569976449012756, 0.06518274545669556, 0.06343763321638107, 1.4318727254867554, -0.9403483867645264, 0.5990382432937622, ...
def _ unrestrictedgetregistryobject ( self ) : catalog = gettoolbyname ( self,'portal _ catalog') if catalog is none : return none results = catalog. searchregistries ( current _ registry = self. current _ registry ) registry = none for x in results : obj = x. getobject ( ) if not x ['id']. startswith ( self. mask ) : ...
[ 0.19993625581264496, 0.6465831398963928, 0.44323447346687317, 0.6901084184646606, 0.2255920022726059, -0.005584871396422386, 0.6707252860069275, -1.236626386642456, 0.2849877178668976, 0.09560903906822205, 0.08999951183795929, 1.0316661596298218, -0.6176092028617859, -0.4144364893436432, ...
def _ humans _ to _ object _ segment _ message ( self, hx _ hok, hx _ hs, batch _ size, dtype, device, direction : str, oh _ dists = none ) : hidden _ size = self. human _ segment _ rnn _ fcell. hidden _ size grab _ state _ fn = grab _ last _ state _ or _ zeros if direction = ='forward'else grab _ first _ state _ or _ ...
[ -0.3649478554725647, -0.012882791459560394, 0.7717033624649048, -0.06891044229269028, 0.5527673959732056, -0.29849526286125183, 0.6522326469421387, -0.42907077074050903, -0.16822944581508636, 0.3494149148464203, -0.2215006798505783, 0.7021332383155823, 0.8443124890327454, 0.260839790105819...
def getintattrinddatn ( self, * args ) : return _ snap. tneanetmp _ getintattrinddatn ( self, * args )
[ -0.7883565425872803, -0.6246403455734253, 0.40365102887153625, -0.7398256063461304, 0.9900140762329102, 0.2702715992927551, 0.49758607149124146, -0.0691034346818924, -0.989783763885498, -0.4615570902824402, -0.18627627193927765, -0.5492551922798157, -1.2349834442138672, 0.7016446590423584,...
def get _ symbols ( self ) : return self. get _ request ('/ api / v1 / symbols')
[ -1.6222469806671143, 1.3526562452316284, -0.06449887156486511, 0.3655744194984436, 1.2922347784042358, -0.7729170322418213, -0.6200021505355835, -1.071801781654358, -0.18050451576709747, -0.2755191922187805, -1.1649384498596191, 1.2825506925582886, 0.10414066165685654, -0.02811525575816631...
def callbacklogger ( response ) : parsedresponse = json. loads ( response ) if parsedresponse [ " status " ] = = " error " : parent. log ( " hype meter ", parsedresponse [ " error " ] ) return
[ 0.5757087469100952, -0.6632065176963806, 0.6003892421722412, -0.28079894185066223, -1.055305004119873, -0.5170748829841614, -0.6427314877510071, -0.28613606095314026, 0.9143194556236267, -0.3729681372642517, -0.11286771297454834, -0.8336915969848633, 0.15627464652061462, 0.7252313494682312...
def isedge ( self, * args ) : return _ snap. tneanetmp _ isedge ( self, * args )
[ -0.44389501214027405, -0.02469705045223236, 0.3096044361591339, 0.23968663811683655, 2.0780646800994873, 0.014566995203495026, 0.07863789796829224, 0.6837184429168701, -0.03796512261033058, 0.46225863695144653, 0.33073779940605164, -1.3341505527496338, -1.4647550582885742, 0.81564724445343...
def click ( self, event ) : event. accept ( ) pos = event. pos ( ) modifiers = qtwidgets. qapplication. keyboardmodifiers ( ) if self. man _ active _ flag = = 1 : if modifiers = = qtcore. qt. shiftmodifier : if self. c _ count - 2 * np. int64 ( self. c _ count / 2 ) = = 0 : self. pos1 = pos else : try : self. frame _ d...
[ -0.31067419052124023, -0.1920827031135559, 0.5474685430526733, 0.23081466555595398, -0.14106358587741852, 0.37664544582366943, 0.3765853941440582, 0.5947351455688477, -0.2055957019329071, -0.17734861373901367, -0.4756532609462738, -0.37781822681427, -0.42660608887672424, 0.5315994024276733...
def validate _ has _ allocation ( amount, percentage, asset _ store, entity, parent _ allocation = none ) : if ( percentage and allocation. objects. filter ( asset _ store = asset _ store, parent _ allocation = parent _ allocation, entity = entity, allocation _ percentage _ _ isnull = false, ). exists ( ) ) : return tr...
[ 1.2860440015792847, -0.5737470984458923, 0.8290237784385681, -0.27401378750801086, -0.034663472324609756, 0.9823182225227356, 0.043650101870298386, -0.08192852884531021, 0.14939303696155548, 0.1630367785692215, 1.1690113544464111, -0.9968355894088745, 0.8579183220863342, 0.0206627622246742...
def test _ edit _ specimen _ details _ anon ( self ) : with app. test _ client ( ) as client : client. post ( " / login ", data = { " username " : " tester1 ", " password " : " password1 " }, follow _ redirects = true, ) resp = client. get ( " / specimen / 12 / edit _ details " ) html = resp. get _ data ( as _ text = t...
[ -0.33777958154678345, -0.06533388048410416, 0.5806616544723511, 0.49255242943763733, 0.44983911514282227, 0.8175169229507446, 0.21287548542022705, -0.003386191325262189, -0.07344529777765274, -0.4111641049385071, -0.47388970851898193, 0.9144870042800903, 0.2629508674144745, 0.2986012995243...
def is _ json _ request ( ) : content _ type = request. content _ type return content _ type and ('application / json'in content _ type )
[ -0.5733290910720825, -0.5543400645256042, 0.69028639793396, 0.7446437478065491, -0.13061994314193726, -0.3674786388874054, -0.7530102133750916, -1.157098412513733, 0.3023582696914673, -0.09591424465179443, 0.7577823996543884, 1.058820128440857, 0.12305429577827454, 0.1859450340270996, -0...
def get _ reply ( self, message ) : session _ storage = self. session _ storage if session _ storage : if hasattr ( message, " fromusername " ) : _ id = message. fromusername session = session _ storage [ _ id ] else : _ id = none session = none handlers = self. get _ handlers ( message. msgtype ) try : for handler in ...
[ 0.094206303358078, -0.16075702011585236, 0.6567968726158142, 0.8779323697090149, -0.13607919216156006, -0.1980888545513153, 0.2602114975452423, -1.0104577541351318, 0.8135769963264465, -0.5424150228500366, 0.16093553602695465, 0.593183159828186, -0.8173762559890747, -0.17245985567569733, ...
def generate _ stacked _ bar _ graph ( self, major _ category _ column _ name, minor _ category _ column _ name, x _ label = none, y _ label = none, legend _ title = none ) : sns. set ( style ='whitegrid ', palette ='colorblind ', font ='dejavu sans ', font _ scale = 1, color _ codes = true ) stacked _ bar _ graph _ df...
[ 0.022761110216379166, 0.7386208772659302, 0.905633807182312, 0.04660312458872795, -0.5516616106033325, 0.23589181900024414, 0.8173041343688965, 0.044806089252233505, -0.6354049444198608, 0.23859979212284088, 0.07075320929288864, 0.37041839957237244, 0.03967486321926117, 0.265548974275589, ...
def using _ pages ( self, * * kwargs ) : return self. site. imageusage ( self, * * kwargs )
[ -1.1186360120773315, -0.0929168164730072, 0.39800113439559937, -0.5501458048820496, 0.04000929743051529, -1.368041753768921, -0.2213602364063263, -0.41137394309043884, 0.4865074157714844, 0.30777648091316223, 0.45315617322921753, -0.20707403123378754, -0.26678940653800964, 1.22002089023590...
def plot _ result ( sim _ list, threshold, filename, mr _ multiplier ) : plt. plot ( range ( len ( sim _ list ) ), sim _ list,'ro ', color ='0. 75') plt. title ('threshold : ( median -'+ str ( mr _ multiplier ) +'* mr )') plt. xlabel ('index') plt. ylabel ('similarity') plt. grid ( true ) # draw horizontal line for thr...
[ 0.7743746638298035, 0.26955199241638184, 0.5996690988540649, 0.5999341011047363, -0.3872019648551941, 0.3209724724292755, 0.5276882648468018, 0.7310705184936523, 0.2703617513179779, 0.20882104337215424, -1.1190792322158813, 0.7905866503715515, 0.17984160780906677, -0.2014893889427185, 0....
def get _ blacklist ( path _ to _ mt : str, output _ root _ directory : path, array _ types : list [ str ], er2 _ thresh : float = 0. 6 ) :
[ 0.3437182605266571, -0.8565059304237366, 0.3774241507053375, 0.4335343837738037, 0.30674275755882263, -0.81522536277771, -0.00789332389831543, -0.3426562249660492, -0.5649896860122681, 1.1614364385604858, 0.3714359402656555, 1.5515040159225464, 0.6050811409950256, -0.16151198744773865, 0...
def area ( self ) : return self. _ _ size * self. _ _ size
[ -0.29319292306900024, -0.8199648857116699, 0.5758016705513, -0.8081690669059753, 0.15546205639839172, 0.7659835815429688, 0.6139348149299622, 0.1280338317155838, 0.8761381506919861, -0.795914888381958, 0.6579521298408508, 0.029133988544344902, -0.3985642194747925, 0.9101117253303528, 0.4...
def gen _ primes ( ) : # maps composites to primes witnessing their compositeness. # this is memory efficient, as the sieve is not " run forward " # indefinitely, but only as long as required by the current # number being tested. # d = { } # the running integer that's checked for primeness q = 2 while true : if q not i...
[ -0.8443946838378906, 0.5094448924064636, 0.6641021966934204, -0.42787784337997437, 0.6047272682189941, 0.3372575342655182, 0.6080217957496643, 0.28939419984817505, 0.5150203704833984, -0.1439773291349411, -0.4146633446216583, -0.3653429448604584, -0.2727523446083069, 0.5681259632110596, ...
def datetime2str ( dateobject ) : return dateobject. strftime ( " % y / % m / % d % h : % m " )
[ -0.16295216977596283, -1.0642091035842896, 0.3966474235057831, -0.01599770225584507, -0.6863369345664978, 1.3053853511810303, -0.35488128662109375, -1.0463714599609375, -0.40712159872055054, 0.1998710036277771, -0.46025028824806213, -0.2901506721973419, 0.6742006540298462, -0.4890721440315...
def get _ switch _ turning ( self, switch ) : return self. _ turning [ abs ( switch ) - 1 ]
[ -1.6660915613174438, -0.09973964095115662, 0.4447668492794037, 0.7304685711860657, 0.04440561309456825, 0.22459997236728668, -0.11255417764186859, -0.5463904738426208, -0.27692410349845886, -0.453461617231369, -0.03541991859674454, 0.26369962096214294, -0.5632660984992981, -0.2866914868354...
def getdat ( self, * args ) : return _ snap. tintstrh _ getdat ( self, * args )
[ 0.7208570241928101, -0.5392810702323914, 0.3584853410720825, 0.10419581085443497, 0.43271180987358093, 0.09192579239606857, 0.3733161687850952, -1.2718850374221802, -0.4424177408218384, -1.2417137622833252, -0.11005905270576477, 0.38892459869384766, -0.38412538170814514, -0.762052595615387...
def display _ autocorr ( self, grp _ by, ret _ aggr _ by, lags = 7 ) : self. display _ fun ( html ('< h4 > auto - correlation analysis on { } returns < / h4 > '. format ( ret _ aggr _ by ) ) ) def _ display _ autocorr ( df _, ret _ aggr _ by _ ) : aggr _ returns = get _ aggr _ returns ( df _, ret _ aggr _ by _ ) rcpara...
[ 0.24455547332763672, 0.4613153338432312, 0.5555389523506165, 0.16035053133964539, -0.32545173168182373, -0.7609711289405823, 1.750578761100769, -0.18743440508842468, -0.7544494867324829, 0.06384602189064026, 1.384474277496338, 0.7581908106803894, -0.03863811865448952, -0.09721700102090836,...
def ros _ callback ( callback _ function ) : @ functools. wraps ( callback _ function ) def wrapper ( self, msg ) : if not self. _ telegram _ chat _ id : self. get _ logger ( ). error ('ros bridge not initialized, dropping message of type { } '. format ( type ( msg ) ) ) else : try : callback _ function ( self, msg ) e...
[ -0.42645782232284546, -0.46450555324554443, 0.6592013239860535, 0.3316190540790558, 0.32035472989082336, 0.7521291971206665, 0.06111356243491173, -0.21231232583522797, 0.5938443541526794, 0.495601624250412, 1.2249459028244019, -0.09821490198373795, 0.26726576685905457, 0.5542227625846863, ...
def active _ step ( self ) : return self. _ step _ stack [ - 1 ]. step _ data
[ -0.20563434064388275, -0.5944818258285522, 0.6191481351852417, 0.7672253251075745, 0.14656327664852142, 0.016247598454356194, 0.10792743414640427, -0.611251175403595, -0.7869654297828674, -0.8048562407493591, -0.2026517689228058, 0.5677891373634338, -0.18247123062610626, -0.284937411546707...
def inference _ ogm ( unary _ potentials, pairwise _ potentials, edges, return _ energy = false, alg ='dd ', init = none, reservenumfactorspervariable = 2, * * kwargs ) : import opengm n _ states, pairwise _ potentials = \ _ validate _ params ( unary _ potentials, pairwise _ potentials, edges ) n _ nodes = len ( unary ...
[ -0.22269733250141144, 0.37560775876045227, 0.9825517535209656, 0.015665175393223763, 0.062474366277456284, -0.1751852184534073, -0.3262196481227875, 0.09798668324947357, -0.1325368732213974, 0.04287387803196907, 0.7372680902481079, 0.42306262254714966, -0.17464865744113922, -0.101943992078...
def get _ form _ action ( self, instance ) : return reverse ( self. view _ name, kwargs = {'plugin _ id': instance. id } )
[ -0.011013736948370934, -0.8192538619041443, 0.6016990542411804, -1.0223151445388794, 1.0757360458374023, -0.6624037027359009, 0.05747043341398239, -0.04735473170876503, 0.23097600042819977, -0.07938677072525024, -0.29816243052482605, 0.9735825061798096, 0.4900403320789337, 0.15436214208602...
def convert _ projet _ to _ leadimage ( context, logger = none ) : if logger is none : # called as upgrade step : define our own logger. logger = logging. getlogger ('ageliaco. rd2') # run the catalog. xml step as that may have defined new metadata # columns. we could instead add < depends name = " catalog " / > to # t...
[ -0.8517866730690002, -0.46329808235168457, 0.6535660624504089, -0.26245278120040894, 0.12760886549949646, 0.3265274465084076, 0.17654024064540863, -0.556300699710846, -0.4487242102622986, 0.8003334403038025, -0.36589425802230835, 0.5926170349121094, 0.1480994075536728, 0.23147128522396088,...
def ischin ( self, * args ) : return _ snap. tstr _ ischin ( self, * args )
[ 0.07127031683921814, 0.5798124670982361, 0.46498140692710876, 0.40280285477638245, 0.32185959815979004, 0.9310221076011658, 0.14770017564296722, -0.03024616464972496, -1.3440176248550415, 0.022066451609134674, -0.18587535619735718, -0.09547843039035797, -0.6251850724220276, -0.033120028674...
def obj _ helper ( report _ dict, im, draw, image, defect _ c, all _ boxes, cnt ) : new _ name = " _ ". join ( defect _ c ) total _ defective _ area = 0 if len ( defect _ c ) > 0 : # update total defective area, has _ unknown for defect images try : logger. info ( " calculating total area for all the defects and averag...
[ 0.009949843399226665, -0.3125707805156708, 0.7974857687950134, -0.8864916563034058, -0.10535845905542374, -0.22418704628944397, 1.0106849670410156, 0.5437154769897461, -0.33809882402420044, 0.3915320038795471, -0.5994018316268921, -0.5985754728317261, 0.7207621335983276, 0.724521815776825,...
def cartesian ( arrays, out = none ) : arrays = [ np. asarray ( x ) for x in arrays ] dtype = arrays [ 0 ]. dtype n = np. prod ( [ x. size for x in arrays ] ) if out is none : out = np. zeros ( [ n, len ( arrays ) ], dtype = dtype ) m = n / / arrays [ 0 ]. size out [ :, 0 ] = np. repeat ( arrays [ 0 ], m ) if arrays [ ...
[ -0.1748431771993637, 0.3634152114391327, 0.8483100533485413, 0.6169503331184387, -0.911692202091217, -0.35322126746177673, 0.7372288703918457, -0.297963410615921, -0.32024163007736206, 0.2754650413990021, 0.03581661731004715, 0.38065269589424133, -0.09828850626945496, 0.16160404682159424, ...
def delifin ( self, * args ) : return _ snap. tstrv _ delifin ( self, * args )
[ -0.787205159664154, 0.3869095742702484, 0.3139578402042389, -0.35054314136505127, -0.07058121263980865, 0.3032591640949249, 0.8299506902694702, 0.4422816336154938, -0.9389252066612244, -0.9646139144897461, -0.5494164824485779, 0.11451198160648346, -0.5078530311584473, 0.45660001039505005, ...
def stop ( self ) : self. l _ motor. set ( 0 ) self. r _ motor. set ( 0 )
[ -0.6401855945587158, -0.9253981709480286, 0.21400974690914154, -0.9246604442596436, 1.5175069570541382, 0.6879320740699768, -0.14175108075141907, 1.453147053718567, -0.8003851175308228, 0.44926565885543823, -0.4068552851676941, 0.35367852449417114, -0.4892452657222748, 0.18937796354293823,...
def test _ week _ floor _ start ( unit, weekday, anchor, exp ) : pytest. debug _ func ( ) tz _ orig = nldt. moment. default _ tz ('utc') base = nldt. moment ( anchor, itz ='utc') if isinstance ( exp, exception ) : with pytest. raises ( type ( exp ) ) : assert base. floor ( unit, start = weekday ) = = exp else : assert ...
[ 0.1879916787147522, 0.3735783100128174, 0.22991158068180084, -0.18107062578201294, 0.6867461800575256, 0.9205580353736877, 0.7387781143188477, -0.41369616985321045, 1.182021141052246, -0.8861956000328064, -0.09354687482118607, -0.3906134366989136, -0.6837305426597595, 1.1818032264709473, ...
def getstrvalbyid ( self, * args ) : return _ snap. ttable _ getstrvalbyid ( self, * args )
[ 0.08267893642187119, 0.28874847292900085, 0.1526332050561905, 0.8370018601417542, -0.22422575950622559, -0.3543877899646759, -0.15132644772529602, -1.2922732830047607, -1.0543922185897827, -0.12038863450288773, -0.5982212424278259, -0.7902786731719971, -0.39692428708076477, 1.0392347574234...
def check _ precision ( self, year, option _ set ) : if not epop. is _ valid ( option _ set ) : raise epop. invalidoption ( " invalid option when checking precision " ) area, duration, timepoint = self. _ translate _ option ( option _ set ) args = ['- c - area ', area,'- c - year ', year ] if duration : args + = ['- c ...
[ -0.06169205158948898, 0.26026618480682373, 0.8774991035461426, 0.21877363324165344, 0.1981523633003235, 0.20697110891342163, 0.03679449483752251, -0.13085688650608063, 0.47319695353507996, 0.7198406457901001, 0.9966571927070618, 0.0334659144282341, -0.16149228811264038, -0.0485741794109344...
def get _ tracks ( ) : # connect to the database db = connect _ minerva _ db ( ) # return all the tracks as a list tracks = list ( db. tracks. find ( ) ) return tracks
[ 0.5064937472343445, 0.6558513045310974, 0.2895619571208954, 0.10635218769311905, 1.678695797920227, 0.9073358774185181, -1.412225365638733, 1.071032166481018, -0.8593361377716064, 0.09670300036668777, 0.22523866593837738, -0.18806113302707672, -1.373653531074524, 0.43698611855506897, -0....
def _ load _ sqlite3 ( self, fname, table = " twiss " ) : import sqlite3 conn = sqlite3. connect ( fname ) c = conn. cursor ( ) # by - pass the front - end which do not allow parameterize table name qline = " select * from % s " % table c. execute ( qline ) # head of columns allcols = [ v [ 0 ] for v in c. description ...
[ -0.6885424256324768, 0.09106595069169998, 0.7611907124519348, -0.6051613092422485, -1.045442819595337, 0.06738483160734177, 0.13387726247310638, -0.24205152690410614, -0.13070262968540192, 0.6151218414306641, -0.2105780392885208, -0.016788987442851067, -0.2557004392147064, 0.32012569904327...
def takestat ( self, * args ) : return _ snap. tgstat _ takestat ( self, * args )
[ 0.8468846082687378, 0.48299625515937805, 0.2978759706020355, -0.5554504990577698, -0.006258928216993809, 0.09668765962123871, 0.9186238646507263, -0.5580484867095947, -0.94249027967453, 0.21832537651062012, -1.2250993251800537, -0.6679830551147461, -0.2502635717391968, 0.9588982462882996, ...
def sortedges ( self, * args ) : return _ snap. tngraphmp _ sortedges ( self, * args )
[ 0.3334023654460907, 0.3958735167980194, -0.06344365328550339, -0.0465170182287693, 1.1913291215896606, 0.03961821645498276, 0.9648533463478088, -0.7541295289993286, -1.2091645002365112, -0.0022521275095641613, 0.474580317735672, -0.5968894958496094, -1.7328779697418213, 0.1654658317565918,...
def rank ( self, * args ) : return _ snap. tunionfind _ rank ( self, * args )
[ -1.3824095726013184, 0.31977811455726624, 0.11364590376615524, 0.975722074508667, 1.2622135877609253, 0.24640627205371857, 1.3023794889450073, -0.40147534012794495, -0.6303770542144775, -0.17331349849700928, 0.0800037533044815, -0.47624513506889343, -1.0811606645584106, -0.0292794257402420...
def describe _ identity _ provider ( userpoolid = none, providername = none ) : pass
[ -1.055436134338379, 0.732288122177124, 0.14990997314453125, 0.19491985440254211, 0.30272164940834045, 0.2685524523258209, 0.28448933362960815, -0.7411121129989624, 0.9243996739387512, 0.791490912437439, -0.491280734539032, 1.8929059505462646, -1.695021390914917, -0.6987716555595398, -0.0...
def game ( stalls, people ) : # stalls is equal to the number of people, then there # are nothing left if stalls = = people : return ( 0, 0 ) else : middle _ left = stalls / / 2 # if stalls are even if stalls % 2 = = 0 : max _ min = ( middle _ left, middle _ left - 1 ) # if stalls are odd else : max _ min = ( middle _ ...
[ -0.7692480087280273, -0.42795830965042114, 0.7102012634277344, 0.16283529996871948, -0.28285279870033264, 0.4522724747657776, -0.6191428899765015, -0.6444701552391052, 0.20311778783798218, 0.29021772742271423, 0.6241164803504944, -1.6310275793075562, -1.0970128774642944, 0.0966070443391799...
def generate _ response ( self, incomingheader ) : headerlist = incomingheader. split ('' ) message ='' body ='' contenttype ='' accept = self. get _ accept _ header ( incomingheader ) if accept = ='application / json': contenttype = accept else : contenttype ='text / plain'if headerlist [ 0 ] = ='get': if headerlist [...
[ -1.0941332578659058, -0.08438415825366974, 1.0071663856506348, -0.5962016582489014, -0.6115633845329285, 0.040287360548973083, -0.02932552807033062, -1.3111239671707153, -0.37830302119255066, 0.4175921678543091, 0.03721298277378082, 0.07482807338237762, -1.1631699800491333, 0.4046661257743...
def check _ tracked ( file _ name ) : file = open ( '. lgit / index') for line in file : if line. split ( ) [ - 1 ] = = file _ name : return print ( " fatal : pathspec'" + file _ name + "'did not match any files " ) quit ( )
[ 1.2473043203353882, -0.3538990318775177, 0.6905160546302795, 0.28547370433807373, 0.9804022312164307, 1.020544171333313, 0.274055540561676, 0.4019668400287628, -1.3484476804733276, 0.13207265734672546, 0.7369148135185242, -0.2529347240924835, -0.42733141779899597, -0.0962577760219574, -1...
def parse _ args ( argv = none ) : parser = argumentparser ( ) subparsers = parser. add _ subparsers ( dest ='cmd') subparsers. required = true rr _ parser = subparsers. add _ parser ('run - random ', description ='run random actions and record as a plan.') rr _ parser. set _ defaults ( func = run _ random ) rr _ parse...
[ -0.05988071486353874, -0.041409991681575775, 0.8157779574394226, -0.23483896255493164, 0.19063279032707214, 0.06966029107570648, 0.19953106343746185, 0.10146194696426392, -0.3340090811252594, 0.5072935819625854, -0.5038920640945435, 0.7453683018684387, -0.17950378358364105, 0.2141774147748...
def cmp ( self, * args ) : return _ snap. tbigstrpool _ cmp ( self, * args )
[ 0.3449346423149109, -0.08413728326559067, 0.31249791383743286, -0.43817397952079773, 1.1704367399215698, 1.4055041074752808, 1.9662659168243408, -0.2073974609375, -1.1918275356292725, 0.05651354789733887, -0.2423693835735321, -0.6598407626152039, -1.8818641901016235, -0.07199057936668396, ...
def set _ first _ name ( self, value ) : self. first _ name = value logging. debug ( " user's first name received " )
[ 0.5718244910240173, -0.08418186753988266, 0.10426583886146545, -0.2634724974632263, 0.2374243140220642, -0.007654245942831039, -0.22958026826381683, -0.28294825553894043, 0.1818588823080063, 0.13325849175453186, -0.6896442174911499, -0.09173168241977692, 0.5393836498260498, 1.2555550336837...
def rename ( self, * args ) : return _ snap. ttable _ rename ( self, * args )
[ -1.319854497909546, 0.41114547848701477, 0.6159859895706177, 1.0327999591827393, 0.12551981210708618, -0.07919733971357346, 0.6932781338691711, -0.01426367275416851, -1.4180986881256104, 0.45209333300590515, -0.4684044122695923, -0.9341293573379517, 0.03585834801197052, 0.21139897406101227...
def return _ single _ customer ( rental _ items ) : return print ( rental _ items ['customer _ name'] )
[ 0.04831943288445473, -1.067196011543274, 0.15300598740577698, 0.6223564147949219, 0.0666339173913002, -0.18678778409957886, -0.47815635800361633, 0.4501742124557495, -0.8766927123069763, 0.3554087281227112, 0.5374393463134766, 0.41451579332351685, -0.15893223881721497, -1.0099866390228271,...
def random _ bounded _ bool _ fill ( bitgen, low, rng, size, dtype ) : buf = 0 bcnt = 0 out = np. empty ( size, dtype = dtype ) for i in np. ndindex ( size ) : val, bcnt, buf = buffered _ bounded _ bool ( bitgen, low, rng, bcnt, buf ) out [ i ] = low + val return out
[ -0.3761432468891144, 0.17218568921089172, 0.7215076684951782, -0.42892077565193176, 0.15791401267051697, 0.4520317614078522, 0.1503358632326126, -0.9555863738059998, 0.45604267716407776, -0.07714742422103882, -0.944507896900177, 0.8364275693893433, -0.5072979927062988, 0.5909430980682373, ...
def get ( self, request ) : form = clientform return render ( request, " client _ form. html ", { " form " : form } )
[ 0.2948525547981262, 0.2429642230272293, 0.24597878754138947, -1.2733619213104248, -0.028957363218069077, 0.14488016068935394, -0.11419403553009033, -0.21448276937007904, -1.0759145021438599, -1.3221561908721924, 0.30855005979537964, 0.02545356936752796, 0.4613152742385864, 0.09984371811151...
def _ get _ fraction ( self, upper _ index, lower _ index, runtime ) : time _ gap _ btwn _ points = self. time _ arr [ upper _ index ] - self. time _ arr [ lower _ index ] zero _ var = self. time _ arr [ upper _ index ] - self. time _ arr [ upper _ index ] # used in place of zero but of correct type timedelta = pd. tim...
[ -0.27754640579223633, -0.1997833251953125, 0.5306485295295715, 0.3343735933303833, 0.4016553461551666, 0.10987934470176697, 0.868807852268219, -0.6029669046401978, -0.13044656813144684, -0.1684224009513855, 1.177822470664978, 0.7627948522567749, -0.2323800027370453, 1.077558159828186, 0....
def test _ list _ decimal _ length _ 3 _ nistxml _ sv _ iv _ list _ decimal _ length _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - length - 4. xsd ", instance = " nistdata / list / decimal / schem...
[ -0.22100241482257843, 0.07162748277187347, 0.4575471878051758, 0.6365143060684204, 0.2071601152420044, 0.1357783079147339, -0.19674861431121826, 0.6413851976394653, 0.8188483119010925, 0.30647870898246765, -1.0629814863204956, -0.914560079574585, -0.16728977859020233, 0.10914748907089233, ...
def get _ bg _ dataframe ( id _ str ) : try : file _ location = ". / data / " + id _ str + " / devicestatus. json " bg _ df = pd. read _ json ( file _ location ) # opens the data file and reads in the data into a dataframe except : raise ioerror ( file _ location + " is not a valid file. " ) print print ( " { } total e...
[ -0.3821791410446167, 0.16797076165676117, 0.3132525086402893, -0.21517930924892426, 0.1828228384256363, 0.1789487600326538, 0.7052304148674011, 0.1265469789505005, -0.7273858785629272, -0.17661617696285248, 0.19226987659931183, 1.1996150016784668, -0.38978439569473267, -0.8677514791488647,...
def _ _ init _ _ ( self, * args ) : _ snap. tintinth _ swiginit ( self, _ snap. new _ tintinth ( * args ) )
[ -0.2916189134120941, -0.18498839437961578, 0.2977585792541504, 0.5394625663757324, -0.0444943793118, 0.044063501060009, 0.3034527003765106, -0.5411757826805115, -0.3497847616672516, -0.07171735912561417, -1.1154826879501343, 0.03293620049953461, -1.0239464044570923, 0.430759072303772, 0....
def last ( self, * args ) : return _ snap. tfltprv _ last ( self, * args )
[ -1.112450361251831, 0.41838303208351135, 0.5610374808311462, -0.9606614708900452, 1.1426538228988647, -0.10833602398633957, 0.1339741200208664, 0.6080757975578308, -1.6597025394439697, 0.4869217872619629, -0.21370910108089447, -1.5675538778305054, -1.297078013420105, 0.3276762068271637, ...
def test _ view _ url _ login _ accessible _ by _ name ( self, client ) : response = client. get ( reverse ( " login " ) ) assert response. status _ code = = 200
[ -0.3774827718734741, -0.4010052978992462, 0.5248205661773682, -0.2994009256362915, -0.30379635095596313, 0.7656036615371704, 0.26693978905677795, 0.1854422688484192, 0.1539376825094223, -0.5797977447509766, -0.5087633728981018, 0.4905540943145752, 0.6393625140190125, -0.3746005594730377, ...
def get _ joint _ papers ( papers : list [ paper ], co _ author : author, format _ results : bool = false ) - > list [ dict ] : # todo : what if papers or co _ author is none? joint _ papers = [ ] for paper in papers : # possible attributeerror authors = [ paper _ author. author for paper _ author in paper. authors ] i...
[ -0.09898421913385391, -0.7233235239982605, 0.39546263217926025, 0.8291199207305908, 0.2527809143066406, 0.18827389180660248, -0.801477313041687, 0.9885787963867188, -0.21466010808944702, 0.124118871986866, 0.07177732139825821, -0.0420602411031723, -0.38204044103622437, 0.598362147808075, ...
def get _ confusion _ matrix ( correct _ seg, segmentation, elements = none ) : assert len ( correct _ seg. shape ) = = 2, \ " len ( correct _ seg. shape ) = % i " % len ( correct _ seg. shape ) assert correct _ seg. shape = = segmentation. shape, \ " correct _ seg = % s! = % s = segmentation " % ( correct _ seg. shape...
[ -0.8537006974220276, -0.45514583587646484, 0.5798000693321228, -0.3445279598236084, 0.4324808418750763, -0.678134024143219, 0.8783285617828369, 0.4860341250896454, -0.3141869604587555, -0.15307749807834625, -0.45454758405685425, -0.04918837547302246, 0.42959243059158325, 0.2674937248229980...
def init _ parameters _ from _ k _ means ( self, observations = none, lags = [ 0 ], kmeans = none, * * kwargs ) : from sklearn. cluster import kmeans, minibatchkmeans observations = self. _ get _ observations ( observations = observations ) t = self. _ get _ t ( observations = observations ) # run kmeans if kmeans is n...
[ -0.0007717683329246938, -0.06858089566230774, 0.6385456323623657, 0.18012100458145142, -0.20317144691944122, -0.09575235843658447, -0.8147430419921875, 0.6784452199935913, 0.5981306433677673, 0.9488160610198975, 0.07411690801382065, 1.054336667060852, 0.7001782059669495, 0.6146561503410339...
def queryset ( self, request, queryset ) : if self. value ( ) is none : return queryset return queryset. filter ( tags _ _ category = tag. writing, tags _ _ slug = self. value ( ) )
[ -0.26863786578178406, 0.12316913902759552, 0.3877743184566498, -0.5453035831451416, 0.8280143737792969, -0.43847793340682983, -0.2485305368900299, 0.038942255079746246, -0.5429826378822327, -0.5881919860839844, 0.7359079122543335, -0.1442791372537613, 0.3379274606704712, 0.4574262201786041...
def group _ transcripts ( tx _ iter, num _ bases = 10 * * 6, max _ seqs = 1000 ) : tx _ id, tx _ seq, ref _ tx _ id, ref _ tx _ seq = next ( tx _ iter ) this _ bin = [ ( tx _ id, tx _ seq, ref _ tx _ id, ref _ tx _ seq ) ] bin _ base _ count = len ( tx _ seq ) num _ seqs = 1 for tx _ id, tx _ seq, ref _ tx _ id, ref _ ...
[ -0.1548491269350052, 0.06539417803287506, 0.6987891793251038, -0.49723079800605774, -0.4090767204761505, -0.02884860336780548, -0.164657860994339, -0.5826711654663086, 0.09616776555776596, 1.0304549932479858, 0.12608471512794495, -0.4396643340587616, -0.7068177461624146, 0.3645756542682647...
def questioncaller ( self ) : if 0 in self. sdict. values ( ) : # if something has not been played # choose a random question type from gametype that have not been played nextquestion = choice ( [ key for key in self. sdict. keys ( ) if self. sdict [ key ] = = 0 ] ) self. sdict [ nextquestion ] = 1 # denote question ty...
[ -0.5481019020080566, -0.010896177962422371, 0.7751001715660095, 0.04570288583636284, -0.4480893015861511, 0.8822976350784302, 0.3340463936328888, -0.8851527571678162, 0.7894670963287354, -0.1008973941206932, -0.1534651219844818, -0.8593753576278687, -0.0654885396361351, 0.996162474155426, ...
def cantidad ( self ) : return self. _ _ cantidad
[ 0.6088348627090454, -0.7722494006156921, 0.21403497457504272, 0.7745130062103271, 0.13318616151809692, 1.0248736143112183, 0.7367615103721619, -0.1481662392616272, -0.0010315030813217163, -0.1707690954208374, 0.03330235183238983, 1.2407681941986084, -0.5435875654220581, -0.4367885589599609...
def _ preprocess _ options ( self ) : self. _ searched _ types = set ( conf. config _ drive. types ) self. _ searched _ locations = set ( conf. config _ drive. locations ) # deprecation backward compatibility. if conf. config _ drive. raw _ hdd : self. _ searched _ types. add ( " iso " ) self. _ searched _ locations. a...
[ -0.8301301598548889, -0.004733461420983076, 0.4705117642879486, -0.3544493615627289, 1.1239644289016724, -0.21102018654346466, 0.2553415596485138, 0.1085667610168457, -0.7585416436195374, 0.005958352703601122, -0.02010059729218483, -0.12134882807731628, -0.13861224055290222, 0.895143985748...
def _ _ init _ _ ( self, servicer, interceptor = none ) : self. desc = servicedesc ( [ x for x in filedescriptor. service if x. name = = " usermanager " ] [ 0 ], filedescriptor. package ) self. servicer = servicer self. interceptor = interceptor
[ 1.1921054124832153, -0.039977289736270905, 0.3431871235370636, -0.29973265528678894, -0.16242113709449768, -0.08335163444280624, -0.45412349700927734, 0.4109523296356201, -0.4337961971759796, -1.333052396774292, 0.9367468953132629, 0.408385306596756, 0.3010919690132141, 1.2244482040405273,...