text
stringlengths
25
2.19k
embedding
listlengths
768
768
def train _ classifier _ svm ( self ) : if ( self. classifier _ type = ='svm') : try : c = self. classifier _ params ['c'] except : if'c'in self. cval _ param : c = self. cval _ param ['c'] else : c = 1. 0 print ('c was not specified') try : gamma = self. classifier _ params ['gamma'] except : if'gamma'in self. cval _ ...
[ -0.26997560262680054, -0.19134241342544556, 0.7523409128189087, 0.7618415951728821, 1.4118565320968628, 0.15839765965938568, -0.0765334963798523, 0.8667786717414856, -0.5660425424575806, 0.2726629376411438, -0.10781316459178925, 0.7615125775337219, -0.46146053075790405, 0.7848517894744873,...
def split _ path ( path ) : dir _ = path [ : path. rfind ( " / " ) + 1 ] filename = path [ path. rfind ( " / " ) + 1 : ] return ( dir _, filename )
[ -1.2321012020111084, -0.38201048970222473, 0.4588748514652252, 0.09288648515939713, -0.40239575505256653, -0.14043468236923218, 1.2555571794509888, 0.34731557965278625, -0.1936991810798645, 0.01910800114274025, -0.5088029503822327, -0.14090625941753387, -0.22568504512310028, -0.56900656223...
def valid _ for _ scope ( self, url ) : if isinstance ( url, ( str, unicode ) ) : url = atom. url. parse _ url ( url ) for scope in self. scopes : if scope = = atom. token _ store. scope _ all : return true if isinstance ( scope, ( str, unicode ) ) : scope = atom. url. parse _ url ( scope ) if scope = = url : return tr...
[ -0.8107900023460388, -0.6443092823028564, 0.6748979091644287, -0.2260875254869461, -0.6515789031982422, 0.015666818246245384, -0.1856786459684372, 0.5043566823005676, 0.5268335342407227, 0.2744729518890381, 0.16687707602977753, 0.7912502288818359, -0.8267546892166138, 0.24294264614582062, ...
def best _ n _ long _ key ( cipher _ text, reverse _ caesars, key _ len ) : # array to store the best two keys for each position key _ possibilities = [ [ ] for _ in range ( key _ len ) ] # for each position in the key for key _ index in range ( key _ len ) : # store the best average score and keys best _ average = flo...
[ -0.4929809868335724, -0.09748566895723343, 0.6645954251289368, 0.20364923775196075, -0.46587979793548584, -0.881465494632721, 0.31260770559310913, -0.5469167232513428, -1.040326476097107, 0.7769910097122192, -0.9059690237045288, 0.1897062063217163, -0.2823645770549774, -0.1851285994052887,...
async def get _ bert _ result ( self ) - > getbertresultresponse : request = getbertresultrequest ( ) return await self. _ unary _ unary ( " / gnoi. diag. diag / getbertresult ", request, getbertresultresponse )
[ -0.9334099888801575, 1.2533432245254517, 0.41239699721336365, -0.11129877716302872, 1.2833664417266846, -1.3540936708450317, -0.24856092035770416, -1.4310001134872437, -0.19941303133964539, -1.1208471059799194, -0.27408367395401, 0.7823257446289062, -0.5966787338256836, -0.5815995931625366...
def build _ model ( input _ shape, target _ size, conv _ size = 16, kernel _ size = 2, n _ conv _ layers = 5, fc1 _ size = 128, fc2 _ size = 64, hidden _ activation ='leakyrelu ', pooling _ type ='maxpool3d ', dropout = 0 ) : conv _ args = dict ( kernel _ size = kernel _ size, padding ='same') hidden _ activation = get...
[ -0.1799316108226776, -0.2340930849313736, 0.7210078239440918, 0.36127185821533203, -0.3707706332206726, -0.32621440291404724, -0.13389471173286438, -0.19485439360141754, 0.031491294503211975, 0.6120799779891968, -0.7275964617729187, -0.10482607036828995, 0.6265171766281128, -0.388648867607...
def test _ portfolio _ to _ dict _ for _ two _ holdings ( ) : start _ dt = pd. timestamp ('2017 - 10 - 05 08 : 00 : 00 ', tz = pytz. utc ) asset1 _ dt = pd. timestamp ('2017 - 10 - 06 08 : 00 : 00 ', tz = pytz. utc ) asset2 _ dt = pd. timestamp ('2017 - 10 - 07 08 : 00 : 00 ', tz = pytz. utc ) update _ dt = pd. timesta...
[ 0.5647096037864685, -0.09012579172849655, 0.9246474504470825, -0.9630484580993652, 0.3476869761943817, -0.08392929285764694, 0.17445532977581024, -0.9338292479515076, -1.061455249786377, -0.2574026584625244, -0.3934403955936432, -0.291510671377182, 0.31945180892944336, -0.5318437218666077,...
def start _ new _ level ( bullets, ai _ settings, stats, sb, screen, aliens, ship ) : bullets. empty ( ) ai _ settings. speedup _ game ( ) # increase level number stats. level + = 1 sb. prep _ level ( ) create _ fleet ( ai _ settings, screen, aliens, ship )
[ -0.3066820204257965, -0.18250606954097748, 0.34293103218078613, 0.7169125080108643, 1.360625147819519, 0.08163703233003616, 0.4860580563545227, -0.6129567623138428, -0.10271681100130081, 0.06658472865819931, -0.9455466270446777, 0.5632597208023071, 1.0297112464904785, 0.5996185541152954, ...
def _ overridebinaryoperatorhelper ( func, op _ name, clazz _ object = tensor _ lib. tensor ) : @ traceback _ utils. filter _ traceback def binary _ op _ wrapper ( x, y ) : with ops. name _ scope ( none, op _ name, [ x, y ] ) as name : try : # force _ same _ dtype = false to preserve existing tf behavior # todo ( b / 1...
[ 0.03726866468787193, -0.33691513538360596, 0.93980473279953, 0.22407300770282745, -0.7468116879463196, -0.08515956997871399, 0.8962440490722656, -0.7683100700378418, 0.37503746151924133, 0.38692495226860046, -0.7235348224639893, 0.12245725840330124, 1.212817907333374, -0.5859065651893616, ...
def extract _ models ( ) : zip _ ref = zipfile. zipfile ('models. zip ','r') zip _ ref. extractall ( ) zip _ ref. close ( )
[ -0.399865984916687, -0.5009008049964905, 0.34772518277168274, 0.29352620244026184, 0.8883103728294373, 0.34342697262763977, 0.22926940023899078, -0.13469021022319794, -0.2765291929244995, 0.5322827696800232, -0.9710764288902283, -0.8118833303451538, 0.09638261795043945, 0.14553675055503845...
def instruments ( request, description, instruments, search _ form, message = none ) : orderings = {'c':'location _ _ city _ _ name ','l':'location _ _ name ','r':'location _ _ city _ _ region _ _ name ','s':'- stops ','k':'keyboards ', } if request. get. get ('o') in orderings : instruments = instruments. order _ by (...
[ -0.49420174956321716, 0.327527791261673, 0.6998381614685059, 0.24258345365524292, -0.29883208870887756, 0.2939104735851288, 0.2734808325767517, 0.08673468977212906, -0.40304791927337646, 0.4583962559700012, 0.9491605162620544, -0.38566043972969055, -0.5139429569244385, 0.34981486201286316,...
def entity _ properties ( self, entity _ properties ) : self. _ entity _ properties = entity _ properties
[ -0.0696394145488739, -1.4153050184249878, -0.12795841693878174, -0.002174986992031336, 0.571455180644989, 0.689890444278717, 0.04538877308368683, 1.1825889348983765, -0.5542161464691162, 0.23112916946411133, 0.23368898034095764, -0.8915536999702454, 0.44675013422966003, 1.0191975831985474,...
def encountered _ all ( self ) : for value in self. _ _ encountered _ word : if not value : return false return true
[ 0.5296114683151245, -0.5877087712287903, 0.5131468176841736, -0.3370157480239868, 1.0880320072174072, 1.145514726638794, 0.06329091638326645, 0.7058318853378296, -0.9847320318222046, -0.2630472779273987, -0.35236647725105286, 0.03677426278591156, -0.644770085811615, 2.017643690109253, -1...
def cancelclone ( ctx, # mandatory main parameter cloneid ) : " " " system completes and removes the operation's associated asynchandle. " " " cli _ utils. establish _ connection ( ctx ) ctx. logger. info ( " " " : " " " " " " cloneid = " " " + str ( cloneid ) + " " " ; " " " + " " ) try : _ cancelcloneresult = ctx. el...
[ -0.2824777066707611, -0.31241872906684875, 0.9647292494773865, 0.45716217160224915, -0.7817169427871704, 0.2984470725059509, 1.0146821737289429, -0.3704870045185089, 0.24002470076084137, 1.337298035621643, 0.08247368037700653, 0.8117132186889648, -0.5295314192771912, 0.025401446968317032, ...
def inc _ turn ( self ) : self. _ current _ turn + = 1
[ -0.8524445295333862, -0.45187926292419434, 0.3389832377433777, -0.20548444986343384, 0.5146557688713074, 0.42336538434028625, 0.596375584602356, 0.10904061794281006, -0.6395754218101501, -0.7886821627616882, -0.19873368740081787, 0.7236698865890503, 0.1214534118771553, -0.8107131719589233,...
def invalidate _ user ( usergroup, email ) : pipe = r. pipeline ( ) permissions = permission. objects ( user _ group = usergroup ) for permission in permissions : sensors _ list = r. smembers ('sensorgroup : { } '. format ( permission ['sensor _ group'] ) ) for sensor in sensors _ list : pipe. hdel ( sensor, email ) pi...
[ -0.18712832033634186, 0.7490566968917847, 0.2128831297159195, 0.6203286647796631, -0.17903806269168854, -0.7455592751502991, 0.06599241495132446, 0.29342126846313477, -0.212361142039299, 0.4709227383136749, 0.5951477885246277, 0.47503578662872314, -1.37714421749115, -0.25509753823280334, ...
def rms ( samples ) : return torch. sqrt ( ( samples * * 2 ). mean ( ) )
[ -0.26440951228141785, -0.5354402661323547, 0.18216057121753693, 0.14560890197753906, 0.07126010954380035, -0.5422827005386353, -0.3379831910133362, -0.30816224217414856, 0.42509493231773376, 0.49102169275283813, -0.2871464788913727, 0.6831697821617126, -0.32676976919174194, -0.131600484251...
def getmaterialfromsg ( shadinggroup ) : if cmds. nodetype ( shadinggroup ) = ='shadingengine'and cmds. connectioninfo ( shadinggroup + '. surfaceshader ', isdestination = true ) : return cmds. connectioninfo ( shadinggroup + '. surfaceshader ', sourcefromdestination = true ). split ( '.') [ 0 ] # faster than cmds. lis...
[ -0.19268560409545898, -0.2848837077617645, 0.5066026449203491, -0.09748725593090057, -0.7129825353622437, 0.06876769661903381, -0.06449837982654572, -1.0604294538497925, 0.35946184396743774, 0.07466661185026169, 0.9456067681312561, -0.09803402423858643, -0.3512873351573944, 1.1429359912872...
def get _ accuracies ( self, as _ np = false ) - > union [ list, ndarray ] : if as _ np : return np. array ( self. _ accuracy ) return self. _ accuracy
[ -0.5885926485061646, -0.2863695025444031, 0.43894854187965393, 0.674453854560852, 0.8806452751159668, -0.11612765491008759, 0.22675588726997375, 0.16597618162631989, 0.7734673619270325, 0.13433195650577545, 0.3730457127094269, 1.2857518196105957, 0.2507949769496918, 0.6832356452941895, 0...
def post ( self, request, * args, * * kwargs ) : if not api : return httpresponse ( reason = " incomplete or incorrect bot setup " ) valid, reason = verify _ signature ( request ) if not valid : return httpresponse ( status = 401, reason = reason ) body = json. loads ( request. body ) if body. get ( " resource " ) not ...
[ 0.005033946596086025, -0.11241432279348373, 0.9938980937004089, 0.4002748727798462, 0.2056136131286621, 0.17220596969127655, -0.17708151042461395, 0.27199873328208923, 0.1584332287311554, 0.3784000873565674, -0.14797748625278473, 0.6005668044090271, -0.07839804142713547, 1.0378284454345703...
def export ( self, * * kwargs ) : savepath = kwargs. get ('savepath') import os, datetime import lasio # create a new empty las file and export to the new one las _ file = lasio. lasfile ( ) las _ file. set _ data ( self. df ) # update curve unit and its description for curve _ 1, curve _ 2 in zip ( las _ file. curves,...
[ -0.030748069286346436, -0.11569488793611526, 0.5256676077842712, 0.10212305933237076, 0.32170993089675903, 0.21868984401226044, 0.237721249461174, 0.11374793201684952, 0.18846896290779114, -0.723554253578186, -0.5056160688400269, 0.5593411326408386, 0.8578668832778931, 0.5907837748527527, ...
async def test _ caught _ channel _ exception ( connect _ to _ broker ) : exchange _ name ='testcase _ exchange'routing _ key ='testcase _ routing _ key'async with await connect _ to _ broker ( ) as connection : async with connection. channel ( ) as channel : # without this channel. publish won't raise an exception, in...
[ 0.2343018501996994, -0.28000015020370483, 0.5479684472084045, 0.4483996033668518, 0.4984648525714874, 0.12534727156162262, 0.023165907710790634, 0.1550220102071762, 0.4321233332157135, 0.5086849331855774, 0.48044857382774353, 0.3873223066329956, -0.9095849394798279, 0.650938093662262, 0....
def find _ best _ path ( self, u, v ) : if self. next [ self. list _ vertices. index ( u ) ] [ self. list _ vertices. index ( v ) ] is none : return [ ] path = [ ] path. append ( u ) while u! = v : u = self. next [ self. list _ vertices. index ( u ) ] [ self. list _ vertices. index ( v ) ] path. append ( u ) return pat...
[ -0.26916250586509705, -0.6536057591438293, 0.6019396185874939, 1.1713343858718872, 0.18706242740154266, -0.05299001932144165, -0.10391587018966675, -0.054649271070957184, 0.7892851829528809, 0.3608572483062744, -0.4997032582759857, 1.137987732887268, -1.0933966636657715, 0.2275885790586471...
def find _ id _ from _ login ( self, login, platform ='github') : idsql = s. sql. text ( " " " select cntrb _ id from contributors where cntrb _ login ='{ }'\ and lower ( data _ source ) ='{ } api'" " ". format ( login, platform ) ) rs = pd. read _ sql ( idsql, self. db, params = { } ) data _ list = [ list ( row ) for ...
[ -0.07711850106716156, -0.16117660701274872, 0.7393954396247864, -0.3593480587005615, 0.6791955232620239, -0.12033308297395706, -0.5326869487762451, 0.29872581362724304, -0.37297824025154114, 0.15434184670448303, -0.0949326902627945, -0.575096070766449, -1.654854416847229, 0.044332787394523...
def listen _ subreddit ( sub ) : global corpus while true : try : for comment in sub. stream. comments ( ) : utts = comment _ to _ utts ( comment ) safe _ add _ utterances ( utts ) except prawcore. exceptions. prawcoreexception as e : print ( f'got error { e } from subreddit stream ; restarting stream')
[ 0.6054597496986389, -0.6607006192207336, 0.5748186111450195, -0.8323937058448792, 0.12388470768928528, 0.6946550607681274, -0.24779875576496124, -0.14992782473564148, -0.22627004981040955, 0.17825405299663544, -0.04281504452228546, 1.1942589282989502, -0.35248327255249023, 0.25879809260368...
def itksubtractconstantfromimagefilterif2dif2 _ superclass _ cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilterif2dif2 _ superclass _ cast ( * args )
[ 0.592006266117096, -0.07448036223649979, 0.20926599204540253, -0.06406696140766144, -1.0060359239578247, -0.30565860867500305, 0.3126651644706726, 0.38768669962882996, -0.9033795595169067, -0.635097086429596, -0.5419774055480957, 0.3533080518245697, 0.5054655075073242, 0.3004625737667084, ...
def get _ class ( context, field, obj = none ) : view = context ['view'] return view. lookup _ field _ class ( field, obj, " field _ " + field )
[ -0.7701353430747986, 0.5365979671478271, 0.3964049816131592, -0.1845812052488327, 0.1677635759115219, -0.28390952944755554, -0.01731795258820057, -0.6471279263496399, 0.9474230408668518, -0.8326334357261658, -0.19355733692646027, 0.3816542625427246, 1.0822211503982544, -0.39678964018821716...
def _ print _ step ( execution _ log, step ) : assert isinstance ( step, step ) execution _ log. write _ line ('executing command [') for arg in step. cmd : execution _ log. write _ line ('% r,'% arg ) execution _ log. write _ line (']') # apparently some recipes ( i think mostly test recipes ) pass commands whose # ar...
[ 0.4971049427986145, -0.5262904167175293, 0.7062065005302429, -0.21141353249549866, -0.10423415899276733, -0.2870301306247711, -0.3035725951194763, -0.32674118876457214, -1.4078859090805054, -0.1978319138288498, -0.10507867485284805, 0.4192446172237396, 0.6783219575881958, 0.826244354248046...
def download ( self, s3 _ bucket, document _ s3 _ path, version _ id = none ) : try : s3 = boto3. resource ( " s3 ", region _ name = self. _ region, * * self. _ credentials ) if version _ id : instances _ file _ content = s3. objectversion ( s3 _ bucket, document _ s3 _ path, version _ id ). get ( ) [ " body " ]. read ...
[ 0.34671664237976074, -0.5200663805007935, 0.7232162356376648, -0.33748695254325867, -0.8163145184516907, 1.1955071687698364, -0.5528234243392944, 0.31009501218795776, -0.24919411540031433, 0.7048671841621399, -0.2552265524864197, 0.29059815406799316, -0.7918546199798584, -0.821956276893615...
def form _ valid ( self, form ) : self. object = form. save ( ) aux _ map = self. object. map _ related. path. split ( ", " ) base _ map = [ aux _ map [ k : k + 10 ] for k in range ( 0, len ( aux _ map ), 10 ) ] pos _ init = ( self. object. map _ related. pos _ init _ y, self. object. map _ related. pos _ init _ x, ) p...
[ -0.2593423128128052, -0.8083276748657227, 0.6704102158546448, -0.38331338763237, 0.25480759143829346, 0.5294803977012634, 0.03778957948088646, 0.1148759201169014, 0.019374046474695206, -0.5313829779624939, -0.6567605137825012, -0.6961473822593689, 0.8377330899238586, -0.26373404264450073, ...
def pick _ projects ( directory ) : ext = '. json'subs = [ x [ 0 ] for x in os. walk ( directory ) ] projects = [ ] for sub in subs : files = [ ] for f in os. listdir ( sub ) : if f. endswith ( ext ) : files. append ( f ) if len ( files ) > 0 : sizes = [ os. stat ( os. path. join ( sub, pick ) ). st _ size for pick in ...
[ -0.3569195866584778, 0.5901684761047363, 1.0629557371139526, 0.08930069953203201, -0.5221639275550842, 0.11167208105325699, 0.7338588237762451, -0.4730377793312073, 0.7818050980567932, 0.8863381743431091, -0.0957694798707962, -0.009965572506189346, 0.19053423404693604, 0.1004127785563469, ...
def len _ lat _ lon ( lat ) : # constants for fourier series approximation a1 = 111132. 92 a2 = - 559. 82 a3 = 1. 175 a4 = - 0. 0023 b1 = 111412. 84 b2 = - 93. 5 b3 = 0. 118 lat = math. radians ( lat ) # fourier seriers that approximates lengths of one degree of lat and long lat _ len = ( a1 + ( a2 * math. cos ( 2 * la...
[ -0.1426122486591339, -0.5653807520866394, 0.4178786277770996, -1.9432263374328613, -0.5290154218673706, 0.31668147444725037, -0.19859525561332703, 0.8473774194717407, 0.5341372489929199, -0.04126568138599396, -1.1047087907791138, 0.06130487471818924, 0.5523083209991455, 0.7364791035652161,...
def email ( self ) : return self. _ email
[ 0.41137829422950745, -0.27690309286117554, 0.14257414638996124, 0.1672057956457138, -0.29379233717918396, 0.8859630823135376, 0.8632001280784607, 0.19613376259803772, -0.1987297534942627, -1.1783729791641235, 0.6082838773727417, 1.1287236213684082, -0.00314939022064209, -1.3416448831558228...
def cluster _ request ( self, cluster _ request ) : self. _ cluster _ request = cluster _ request
[ -1.3706468343734741, 0.03920169919729233, 0.0397685170173645, 0.9887462854385376, 0.22816938161849976, 0.35880032181739807, 0.6198145151138306, 0.7373308539390564, -0.030512463301420212, -0.13261739909648895, -0.16167040169239044, 1.0115402936935425, 0.24120312929153442, -0.138363122940063...
def client _ manager ( * args, * * kwargs ) : client = torvendclient ( * args, * * kwargs ) try : yield client finally : del client
[ -0.2939758896827698, -0.8293384313583374, 0.392051100730896, -0.6907416582107544, 0.12394564598798752, -0.2196202576160431, -0.18930156528949738, -1.071938157081604, -0.3787633776664734, -0.4000241458415985, 0.49612244963645935, 0.5214636921882629, -0.3504813015460968, 0.020089296624064445...
def _ get _ lat _ long ( self ) - > tuple [ optional [ float ], optional [ float ] ] : lat = none long = none if self. native _ location _ supported : long = self. native _ longitude lat = self. native _ latitude else : long = self. longitude lat = self. latitude return lat, long
[ 0.09405115246772766, -0.27039918303489685, 0.5569278597831726, -0.47930049896240234, -0.4767177104949951, -0.06963958591222763, -1.6625694036483765, 0.47290781140327454, -0.042411163449287415, 0.2748214900493622, 0.3530330955982208, -0.2319992482662201, -0.03922542929649353, -0.10798238217...
def new ( * args, * * kargs ) : obj = itksubtractconstantfromimagefilteriuc3diuc3 _ superclass. _ _ new _ orig _ _ ( ) import itktemplate itktemplate. new ( obj, * args, * * kargs ) return obj
[ 1.4933037757873535, 0.7072065472602844, 0.4272903501987457, -0.6124947667121887, -0.7254366874694824, 0.9366494417190552, 0.4551593065261841, 1.579864740371704, 0.06505653262138367, -1.1321123838424683, -0.8345643877983093, -0.5010435581207275, 0.5324149131774902, -0.11039605736732483, 0...
def test _ atomic _ language _ max _ length _ 4 _ nistxml _ sv _ iv _ atomic _ language _ max _ length _ 5 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - maxlength - 5. xsd ", instance = " nistda...
[ 0.3395369052886963, 0.1478717178106308, 0.17557461559772491, 0.28157466650009155, -0.7359442114830017, 0.203605517745018, -0.37805604934692383, -0.30307310819625854, 0.2549806833267212, 0.7924222350120544, -0.7008932828903198, -0.4117105305194855, -0.41817376017570496, -0.07533212006092072...
def platform _ variant ( self, platform _ variant ) : self. _ platform _ variant = platform _ variant
[ -0.20472048223018646, -0.6750646233558655, -0.10435633361339569, 0.8672641515731812, -0.35027697682380676, 1.8762564659118652, 1.0349119901657104, 1.0688163042068481, -1.587955355644226, -0.3982459008693695, -1.0548176765441895, -0.2390175759792328, -0.2607281506061554, 0.6438165903091431,...
def active _ route _ destination ( self ) - > optional [ str ] : if " active _ route _ destination " in self. _ vehicle _ data. get ( " drive _ state ", { } ) : return self. _ vehicle _ data. get ( " drive _ state ", { } ). get ( " active _ route _ destination " ) return none
[ -0.17894330620765686, -1.6950857639312744, 0.7253003716468811, -0.29215994477272034, 0.43244656920433044, -0.6325237154960632, 0.0037573545705527067, -0.14570452272891998, 0.0032865088433027267, 0.6354827880859375, 0.43310442566871643, 0.44006654620170593, 0.3331480026245117, -1.0973347425...
def first _ repeated ( input _ list ) : for i in range ( len ( input _ list ) ) : for j in range ( i + 1, len ( input _ list ) ) : if input _ list [ i ] = = input _ list [ j ] : return input _ list [ i ]
[ 0.0821644514799118, 0.8492200970649719, 0.41668471693992615, 0.4418894648551941, 0.1357499659061432, -0.20563900470733643, 0.5521500706672668, -0.10696296393871307, 0.32191208004951477, 0.16693739593029022, -0.5272118449211121, 0.1571921706199646, -0.8670716285705566, 0.6896121501922607, ...
def full _ cheb _ approximate ( f, a, b, deg, tol = 1. e - 8 ) : dim = len ( a ) degs = np. array ( [ deg ] * dim ) coeff = interval _ approximate _ nd ( f, a, b, degs ) coeff2 = interval _ approximate _ nd ( f, a, b, degs * 2 ) coeff2 [ slice _ top ( coeff ) ] - = coeff clean _ zeros _ from _ matrix ( coeff2, 1. e - 1...
[ 1.0103349685668945, -0.5958673357963562, 0.6811283230781555, 0.4023619592189789, -0.9051642417907715, -0.05341136083006859, -0.05569848418235779, 0.28135019540786743, -0.4785742461681366, 1.1930789947509766, 0.2733827531337738, -0.32454913854599, -0.048442378640174866, -0.6747511625289917,...
def short _ units ( self ) : expanded = self. expand _ units ( ) return expanded. lhs ( ). subs ( short _ unit _ symbols ) \ = = expanded. rhs ( ). subs ( short _ unit _ symbols )
[ 0.33623871207237244, -0.0625033974647522, 0.5713109970092773, -0.03959467634558678, -0.1579228639602661, 0.936660647392273, 0.3530327081680298, -0.15401026606559753, 0.9734184741973877, -0.21971215307712555, -0.6145667433738708, 0.48403510451316833, -0.38982319831848145, -0.298833459615707...
def evaluation _ loop ( self ) : assert self. eval _ loader is not none, " evaluation loader is not specified " # setup progressbar pbar = miscutils. gen _ pbar ( max _ value = len ( self. eval _ loader ), msg = self. eval _ mess ) with torch. no _ grad ( ) : for i, ( samples, labels ) in enumerate ( self. eval _ loade...
[ 0.01904396526515484, -0.8722074031829834, 0.23107926547527313, -0.1593203842639923, 0.4474235475063324, 1.3845568895339966, 0.08069829642772675, -0.3636241853237152, -1.020535945892334, -0.09688081592321396, 0.7276527285575867, 0.18285076320171356, -0.7901519536972046, 1.4836204051971436, ...
def get _ runnable _ scenarios ( self ) : return [ x [ " scenarioid " ] for x in self. get _ all _ actions ( ) if x [ " type " ] = = " scenario _ run " ]
[ 0.34454652667045593, -0.47473955154418945, 0.5049083232879639, 2.0396289825439453, -0.11611633747816086, 0.4435572624206543, -0.3339149057865143, 0.11409381777048111, 0.002199700567871332, 0.34536734223365784, -0.6596102714538574, 0.3423980474472046, -0.43864062428474426, 0.727405488491058...
def tally _ overhead ( self, switch, config ) : if switch in self. current _ abstract _ rules : old _ size = self. current _ abstract _ rules [ switch ] else : old _ size = 0 if switch in self. future _ abstract _ rules : new _ size = self. future _ abstract _ rules [ switch ] else : new _ size = 0 base _ size = max ( ...
[ 0.06111579388380051, 0.5739933848381042, 0.6558318138122559, -0.16232149302959442, -0.7908753156661987, 0.5232621431350708, 0.1747037023305893, 0.4912383556365967, -0.20687361061573029, 0.9170636534690857, -0.15100660920143127, 0.3040962517261505, 0.6241989135742188, 0.9814217686653137, ...
def namedinput ( self, rowreader, shortrowsallowed = false, headingpolicy = none ) : return self. _ _ class _ _. _ namedinput ( self, rowreader, shortrowsallowed, headingpolicy )
[ -0.28627803921699524, -0.398160845041275, 0.3854493200778961, -0.03490253537893295, -2.1219027042388916, 0.5374528765678406, -0.22650350630283356, -0.8478739261627197, 1.0267971754074097, -0.23857861757278442, -0.019243454560637474, 0.03244490176439285, 0.1564946323633194, -0.0855991616845...
def build _ model ( self ) : hidden1 _ units = 1000 with tf. variable _ scope ('hidden1') : weights = self. init _ weights ( [ self. height * self. width * self. channels, hidden1 _ units ] ) biases = self. init _ bias ( [ hidden1 _ units ] ) hidden1 = tf. nn. relu ( tf. matmul ( self. images _ placeholder, weights ) +...
[ -0.3088681697845459, -0.09532568603754044, 0.38848644495010376, -0.022584624588489532, 0.7711818814277649, 0.4998904764652252, -0.04381663352251053, 0.7115538716316223, -0.5535566210746765, 0.09102924913167953, -0.6315551400184631, 0.4660899341106415, 0.41453737020492554, -0.12631987035274...
def clean _ str _ simple _ version ( string, dataset ) : if dataset = ='20ng': # remove emails # string = re. sub ('\ s * @ \ s * \ s? ','', string ) # remove new line characters string = re. sub ('\ s + ','', string ) string = re. sub ( r " \ \ ", " ", string ) string = re. sub ( r " \'", " ", string ) string = re. su...
[ 1.0347980260849, -1.3992255926132202, 0.6853917837142944, -1.520835518836975, -1.2068547010421753, -0.017174528911709785, -0.7101767659187317, -0.10620647668838501, -0.19522587954998016, 0.03411052003502846, 0.1065090149641037, 0.6246760487556458, -0.39541760087013245, -0.7023824453353882,...
def feedforward ( this ) : lastindex = len ( this. network ) - 1 # set the output for every layer other than the input for i in range ( 1, len ( this. network ) ) : # the weight from the previous layer to this layer, the output of # the previous layer and the bias that is points from the # previous layer to this layer ...
[ -0.01687343418598175, -0.35374191403388977, 0.6301579475402832, 0.18364299833774567, 0.11456634849309921, -0.5538104772567749, 1.0301659107208252, 0.25009092688560486, -0.1700448989868164, -0.7107105851173401, 0.2896309494972229, 0.668053388595581, -0.31901225447654724, 0.3609723150730133,...
def predict ( self, text : union [ list [ sentence ], sentence, list [ str ], str ], mini _ batch _ size : int = 32, * * kwargs, ) - > list [ sentence ] : raise notimplementederror ( " please implement this method " )
[ -0.10027913004159927, -0.26043400168418884, 0.5908580422401428, 1.1729010343551636, -0.8782083988189697, -0.40390339493751526, -0.9141141772270203, 1.0258811712265015, -0.2668415307998657, 0.2907619774341583, -0.8608766198158264, 0.26501771807670593, -0.8149413466453552, 0.3206853866577148...
def get ( self, request ) : form = addreservation return render ( request, " add _ reservation. html ", { " form " : form } )
[ -0.11207306385040283, 0.7640935778617859, 0.5354560613632202, -0.4681592583656311, 0.10333243012428284, 0.2416469305753708, -1.2101318836212158, 0.5633607506752014, -0.13325972855091095, 0.008535865694284439, 1.0914697647094727, -0.3750392198562622, 0.02027093432843685, -0.2512800693511963...
def create _ group ( groupname = none, userpoolid = none, description = none, rolearn = none, precedence = none ) : pass
[ -0.41602998971939087, 0.7755992412567139, 0.13805541396141052, 0.08240383863449097, 0.7069054841995239, 0.014451030641794205, 0.08064168691635132, -0.013976307585835457, -0.009740974754095078, -0.2567363679409027, -0.45993393659591675, 1.2469441890716553, -0.5966587662696838, 0.42926636338...
def validate _ date ( date, format = " % y - % m - % d " ) : try : datetime. strptime ( date, format ) except : return false return true
[ 0.11968382447957993, -0.2443934679031372, 0.8129984140396118, 0.13632623851299286, -0.7739154696464539, 0.9111394286155701, -1.3761816024780273, -0.15306834876537323, 0.16590793430805206, -0.3665509521961212, 0.3721219599246979, 0.1182275041937828, 0.10283230245113373, 0.4364983141422272, ...
def test _ invalid _ client _ key ( self, key ) : assert not signaturevalidator ( self. lti _ consumer ). check _ client _ key ( key )
[ 0.48116910457611084, 0.22702793776988983, 0.03397540748119354, 0.3733512759208679, -0.2028333842754364, 0.9754200577735901, 0.05792844668030739, -0.20011641085147858, -0.8189975023269653, -0.38033682107925415, -0.4454493224620819, -0.640451192855835, -0.8197336196899414, 0.9087018966674805...
def get _ completed _ puts ( backend _ object ) : # avoiding a circular dependency from jdma _ control. models import migrationrequest, migration, storagequota # get the storage id storage _ id = storagequota. get _ storage _ index ( " ftp " ) # get the decrypt key key = aes _ tools. aes _ read _ key ( settings. encryp...
[ -0.3167489171028137, 0.6153053641319275, 0.9211001396179199, 0.00303773139603436, 0.046766236424446106, -0.3556356430053711, 0.6703632473945618, -0.5066134929656982, -0.3120419979095459, 0.7752485871315002, -0.41848310828208923, -0.24915388226509094, -0.00810234434902668, 0.799767196178436...
def create _ recipe _ plan ( self ) : personal _ recipe _ contents = self. input _ options. get _ item ('personal _ recipe ','personal _ recipe _ list') setup _ obj = recipesetup ( recipefile = personal _ recipe _ contents, inputoptions = self. input _ options, structure = self. input _ options. get _ item ('structure ...
[ -0.2515845000743866, -0.320436954498291, 0.32889723777770996, 0.31663280725479126, -0.005113431252539158, 0.5631380081176758, 0.4511127471923828, 0.3034331798553467, -0.42355877161026, -0.31015482544898987, -0.42169395089149475, 0.8195376396179199, 0.09606342017650604, -0.128093421459198, ...
def get _ folder _ contents ( self, folder, limit = 100 ) : return ( folder. get _ items ( limit, offset = 0 ) )
[ -1.3236454725265503, -0.1240735799074173, 0.4479493200778961, 0.017008168622851372, -0.470691055059433, -0.2803861200809479, -0.9720366597175598, -0.4569967985153198, -0.5217687487602234, -0.14740753173828125, 0.3356255888938904, -0.10905863344669342, 0.20296251773834229, -0.37691935896873...
def get _ peer _ statistic ( peer _ ip ) : return flask. jsonify ( api _ utils. get _ peer _ msg _ statistic ( peer _ ip ) )
[ -0.6350045800209045, 0.6755640506744385, 0.2696038782596588, -0.0005936884554103017, 0.18966926634311676, -1.0794243812561035, -0.37720030546188354, -1.3046766519546509, -0.5917578935623169, -0.045085154473781586, -0.15680569410324097, -0.35752174258232117, 0.1253580003976822, -0.085968755...
def get _ connected _ switches ( self, branch, reversed _ direction = false ) : switch = self. _ small _ tt. branch _ endpoint ( branch ) if reversed _ direction : yield - switch else : yield switch for br in self. collapsed _ branches _ from _ small _ switch ( switch ) : for sw in self. get _ connected _ switches ( br...
[ -0.04470013454556465, 0.18871435523033142, 0.8608217835426331, 0.6164490580558777, -0.34152740240097046, 0.4852036237716675, -0.17398950457572937, -0.3894742429256439, -0.15825524926185608, -0.20337551832199097, -0.44476452469825745, -0.17169536650180817, -0.8774887919425964, 0.05936254188...
def get _ list _ of _ commits ( out ) : return get _ list _ of _ each _ commit ( get _ commits _ for _ all _ repos ( out ) )
[ -0.25310656428337097, -0.5055950284004211, 0.31842535734176636, 0.9892125725746155, 0.1576172113418579, -0.26944684982299805, -0.6295605301856995, 0.2113911360502243, -0.3463364541530609, 0.22865764796733856, 0.23158326745033264, 0.24323731660842896, 0.4520857632160187, 0.7323403358459473,...
def unsort ( tt : torch. tensor ) - > torch. tensor : return tt [ unsorted _ idx ]
[ -0.2737671434879303, -0.6208124756813049, 0.1772514283657074, -1.5903441905975342, -0.48956945538520813, -0.11732827126979828, 0.6047646403312683, -0.6551764607429504, -0.25713613629341125, 0.08665918558835983, 0.0899045392870903, 0.043625108897686005, 0.2990388572216034, -1.72052168846130...
def test _ extend _ keyword ( self ) : actual = extend _ keyword ('train ', 16 ) expected ='traintraintraint'self. assertequal ( actual, expected )
[ 1.0865525007247925, 0.9373049736022949, 0.6476787328720093, 0.8868677020072937, -0.4107968807220459, 0.7780489325523376, -1.002195954322815, 0.5656830668449402, 0.4999406039714813, -0.1719234734773636, -1.0177356004714966, 0.00007236571400426328, 0.4287639856338501, -0.6812167167663574, ...
def values _ sanity _ check ( values ) : assert values assert values [ 0 ] = ='('# assertions have not been raised return true
[ -0.5922198295593262, 0.14740054309368134, 0.19167879223823547, -0.11707935482263565, 0.8457430005073547, 0.6682668924331665, -0.204180508852005, -0.39513665437698364, 1.5405142307281494, -0.6881894469261169, 0.7210208177566528, 0.06783999502658844, -0.7645686864852905, 0.6883769035339355, ...
def bin _ concrete _ sample ( a, temp, eps = 1e - 8 ) : u = tf. random. uniform ( tf. shape ( a ), minval = 0., maxval = 1. ) l = tf. math. log ( u + eps ) - tf. math. log ( 1. - u + eps ) x = tf. nn. sigmoid ( ( l + tf. math. log ( a ) ) / temp ) return tf. clip _ by _ value ( x, 1e - 4, 1. - 1e - 4 )
[ 0.16012701392173767, -0.30411237478256226, 0.4274459779262543, -0.4154057502746582, -0.7490094900131226, 0.3492761254310608, 0.5705199241638184, -0.03977358341217041, 0.4602145552635193, 0.17892523109912872, 0.13601140677928925, 0.08909884840250015, 0.6799947619438171, -0.28285810351371765...
async def update _ status ( self ) : if self. _ operation. async _ url : self. _ pipeline _ response = await self. request _ status ( self. _ operation. async _ url ) self. _ operation. set _ async _ url _ if _ present ( self. _ pipeline _ response. http _ response ) self. _ operation. get _ status _ from _ async ( sel...
[ -0.8131411075592041, -0.6282849311828613, 0.5414441823959351, 0.4285103380680084, 0.6570850610733032, -0.31835418939590454, 0.20862719416618347, 0.5804044604301453, -0.3933446705341339, 0.3007974922657013, 0.21665672957897186, -0.3757954239845276, 0.35032427310943604, 0.19858099520206451, ...
def routing _ path _ to _ edge ( edge, shortest _ set = none ) : data = routing _ path _ to _ node ( edge. from _ node, shortest _ set ) if data : data. append ( edge ) data. append ( edge. to _ node ) # print ( data ) return data
[ -0.800496518611908, 0.3112385869026184, 0.530417263507843, 0.030746618285775185, 0.6393687129020691, -0.14372994005680084, -0.04115869849920273, 0.3814603388309479, 0.059717100113630295, 0.7240284085273743, 0.3279134929180145, 0.13902825117111206, 0.279167115688324, -0.40808188915252686, ...
def sign ( x, name = none ) : x = ops. convert _ to _ tensor ( x ) if x. dtype. is _ complex : return gen _ math _ ops. div _ no _ nan ( x, cast ( gen _ math _ ops. complex _ abs ( x, tout = dtypes. float32 if x. dtype = = dtypes. complex64 else dtypes. float64 ), dtype = x. dtype ), name = name ) return gen _ math _ o...
[ -1.1196107864379883, 0.2840332090854645, 0.8806453943252563, 0.8631344437599182, -0.898073673248291, 0.2719465494155884, 0.35754266381263733, -0.3418191969394684, 0.2256617546081543, 0.2920193672180176, -0.46079742908477783, -0.2368125319480896, 1.1589592695236206, -0.6170718669891357, 0...
def update ( self ) : try : url ='{ } / arpltninforinqiresvc / getmsrstnacctorltmmesurednsty?'\'& pageno = 1 & numofrows = 1 & ver = 1. 3 & dataterm = month'\'& servicekey = { } & stationname = { } & returntype = json'url = url. format ( air _ korea _ api _ url, self. service _ key, self. station _ name ) response = re...
[ -1.057093858718872, -1.0632909536361694, 0.4733820855617523, -0.16385842859745026, -0.2653181850910187, 0.14934992790222168, -0.8465523719787598, -0.11106861382722855, 0.03358927369117737, -0.16869764029979706, 0.011451217345893383, 0.6297972798347473, -0.6266466379165649, 0.41963857412338...
def update _ user _ attributes ( userattributes = none, accesstoken = none ) : pass
[ -0.748184859752655, -0.454591304063797, 0.30411431193351746, 0.6663588881492615, -0.6592465043067932, -0.23721493780612946, -0.06088651344180107, 0.32916080951690674, 0.1975100189447403, -0.19612927734851837, -0.5699556469917297, 0.7385232448577881, -0.679474949836731, -1.3700405359268188,...
def publishangle ( self ) : arrow _ marker = make _ marker ( self. target _ angle ) self. arrow. publish ( arrow _ marker )
[ -0.6498271226882935, -0.5363626480102539, 0.33431529998779297, -0.1359669715166092, 0.5077502727508545, -0.13973623514175415, 1.0346903800964355, 0.5765071511268616, 0.6475669145584106, 0.42196065187454224, -0.07977530360221863, 1.1725130081176758, 0.33674633502960205, -0.43043237924575806...
def setup _ argparse ( self, argument _ parser ) : profile = self def get _ files ( pattern ) : files _ to _ check = [ ] # use glob. glob to accept *. ttf # but perform a hacky fixup to workaround the square - brackets naming scheme # currently in use for varfonts in google fonts... if']. ttf'in pattern : pattern = " *...
[ -0.2851215600967407, -0.15281108021736145, 0.9231250286102295, 0.020443828776478767, 0.414622038602829, 0.17841961979866028, 0.39009779691696167, 0.2009480744600296, -0.5396242737770081, 0.6365678906440735, 0.4145064055919647, -0.4530976712703705, 0.16814948618412018, 0.9324169158935547, ...
def paper _ formatter ( paper : paper ) - > dict : if not paper : raise typeerror percentile = none quartile = none try : percentile = next ( filter ( lambda m : m. type = ='percentile'and m. year = = paper. get _ year ( ), paper. source. metrics ), none ) # possible typeerror, attributeerror quartile = f'q { ( 100 - p...
[ -0.20831651985645294, -0.6307485699653625, 0.5490791201591492, -0.9952735304832458, -0.7298867702484131, 0.2530978322029114, -0.5733012557029724, -0.6010727882385254, 0.20698915421962738, -0.2562246024608612, 0.2521151900291443, 0.17401789128780365, 0.22509385645389557, 0.7313258647918701,...
def test _ calc _ neg _ log _ likelihood _ and _ neg _ gradient ( self ) : # get the gradient from the function being tested args = [ self. fake _ betas _ ext, self. fake _ design _ 3d, self. alternative _ ids, self. fake _ rows _ to _ obs, self. fake _ rows _ to _ alts, self. fake _ rows _ to _ mixers, self. choice _ ...
[ 0.1554250568151474, -0.6575498580932617, 0.7969557046890259, -0.15484674274921417, -0.06261957436800003, 0.49734652042388916, -0.6327722668647766, -0.10404425114393234, -0.36757901310920715, -0.12456785887479782, -0.5136500597000122, 0.5399287939071655, -0.5839082598686218, 0.5519894957542...
def add _ params _ to _ uri ( uri, params, fragment = false ) : sch, net, path, par, query, fra = urlparse. urlparse ( uri ) if fragment : fra = add _ params _ to _ qs ( query, params ) else : query = add _ params _ to _ qs ( query, params ) return urlparse. urlunparse ( ( sch, net, path, par, query, fra ) )
[ -0.2942364513874054, 0.07819891721010208, 0.4733751118183136, -0.3450816869735718, 0.6589677929878235, 0.45310381054878235, -0.4820795953273773, 0.32347655296325684, -0.4279922842979431, -0.5639526844024658, 0.9265338182449341, -0.44609934091567993, -1.2268576622009277, -0.0672127008438110...
def amenities ( self ) : amenities = [ ] objs = models. storage. all ( models. amenity. amenity ) for key in objs : if objs [ key ]. place _ id = = self. id : amenities. append ( objs [ key ] ) return amenities def _ _ init _ _ ( self, * args, * * kwargs ) : " " " initializes place " " " super ( ). _ _ init _ _ ( * arg...
[ -0.224908709526062, -0.6387646198272705, 0.6144911646842957, -0.27573850750923157, 0.5228861570358276, 0.11984153091907501, -0.5904396772384644, 0.1157698705792427, 0.794563353061676, -0.03886285424232483, -0.8680477738380432, -0.1515856385231018, 0.016885273158550262, 1.080293893814087, ...
def uploadinformation ( self, pagetitle : str, eliteid : str, payload : str ) : eliteurl = " https : / / www2. unil. ch / elitessuisses / index. php? page = detailperso & ididentite = { } ". format ( eliteid ) fulltitle = " { } ( { } ) ". format ( pagetitle, eliteid ) # ask for the page ( if any ) with title < fulltitl...
[ -0.16430546343326569, -0.6455556750297546, 0.805000901222229, -0.25890201330184937, 0.6720231771469116, 0.4667983651161194, -0.991092324256897, -0.30619943141937256, 0.21787764132022858, 0.08185680955648422, 0.19555586576461792, -0.31993576884269714, -0.505242645740509, 0.47184476256370544...
def recursive _ delete ( self, engine _ path, path ) : for secret in self. recursive _ list ( engine _ path, path ) : self. delete ( engine _ path, secret )
[ 0.21520735323429108, -0.46242839097976685, 0.2908303737640381, 0.7317085266113281, 0.45752087235450745, -0.1946658194065094, -0.20366980135440826, 0.3612731397151947, -0.39420002698898315, 0.4759306311607361, -0.5646523833274841, 0.37532076239585876, -0.15166877210140228, 0.990761876106262...
def test _ atomic _ any _ uri _ max _ length _ 3 _ nistxml _ sv _ iv _ atomic _ any _ uri _ max _ length _ 4 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - maxlength - 4. xsd ", instance = " nistdata...
[ 0.11476035416126251, -0.06279321014881134, 0.3645261228084564, 0.8468413949012756, -0.288855642080307, -0.1101716011762619, -0.48211753368377686, -0.036195412278175354, 0.18496109545230865, -0.26424866914749146, 0.07504458725452423, -0.6639961004257202, -0.452852338552475, -0.1252489984035...
def reduce _ one _ dimension ( self ) : if self. domains [ " secondary " ] = = [ ] : return self. orphans [ 0 ] elif self. domains [ " tertiary " ] = = [ ] : return primarybroadcasttoedges ( self. orphans [ 0 ], self. domains [ " secondary " ] ) else : return fullbroadcasttoedges ( self. orphans [ 0 ], broadcast _ doma...
[ -0.3620483875274658, 0.40542057156562805, 0.6364968419075012, -0.8334742188453674, 0.14243756234645844, -0.1902327835559845, 0.7355343699455261, 0.21813124418258667, 0.630970299243927, 0.49700361490249634, 0.5415704250335693, 2.0724165439605713, -0.3611619472503662, -0.16493749618530273, ...
def getdiagnosticlog ( self, typeid, deviceid, logid ) : devicediagnostics = apiclient. devicediaglogslogid % ( self. host, typeid, deviceid, logid ) r = requests. get ( devicediagnostics, auth = self. credentials, verify = self. verify ) status = r. status _ code if status = = 200 : self. logger. debug ( " diagnostic ...
[ -0.7102409601211548, -0.32864177227020264, 0.47859224677085876, 0.3880181312561035, -0.5722527503967285, -0.09529045969247818, -0.5153732895851135, -1.0357234477996826, 0.03562925010919571, 0.30427122116088867, 0.4361487329006195, 1.1044411659240723, -0.13218441605567932, -0.19670309126377...
def loadsslist ( self, name ) : try : self. sslistbox. items. clear ( ) cmd ='" % s " showvminfo " % s "'% ( self. vboxmanagetextbox. text, name ) cmdoutput = subprocess. check _ output ( cmd ) found _ snapshot _ string = false for line in str. splitlines ( cmdoutput ) : if line. strip ( ) = = " " : continue if re. mat...
[ -0.2788991332054138, -0.14188352227210999, 0.6989297270774841, -0.5626530051231384, -0.8762232065200806, -0.08012112975120544, -0.8094474077224731, -0.2580651640892029, 0.5972342491149902, 0.21554042398929596, -1.1017388105392456, -0.45606309175491333, -0.3466314673423767, 0.50065636634826...
def process _ pipeline ( xbar ) : for host in xbar. hosts : # go downstream and change the hreqpass / depth at the first instance. # if it is async, skip. # if socket 1n, # if pipeline true and bypass false, set hpass to 0 # if pipeline is false, set depth to 0 # if socket m1, find position of the host and follow proce...
[ -0.7184702157974243, 0.3296176791191101, 1.0143035650253296, -0.3581461012363434, -0.058794017881155014, 0.10636793822050095, 1.0792887210845947, 0.5188141465187073, -0.8146687746047974, 0.7057554721832275, 0.615619957447052, 0.23809249699115753, 0.08790766447782516, 0.1557389795780182, ...
def test _ atomic _ hex _ binary _ enumeration _ nistxml _ sv _ iv _ atomic _ hex _ binary _ enumeration _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - enumeration - 1. xsd ", instance = " ...
[ -0.6781718134880066, -0.877081573009491, 0.5570698976516724, 0.8677577972412109, -0.20902176201343536, 0.24333231151103973, -0.04947562888264656, 0.18834543228149414, -0.3379943072795868, 0.5898521542549133, -0.4830169379711151, -0.2176845669746399, 0.26990917325019836, 0.6140576004981995,...
async def fightuser ( self, account : fighter ) - > fightme : person = fightme ( * tuple ( account. _ _ dict _ _. values ( ) ) ) person. instantize ( ) return person
[ -0.2807841897010803, 0.166290745139122, 0.32817551493644714, 0.9077794551849365, 0.2515042722225189, 0.042047642171382904, -0.12555523216724396, 0.028502240777015686, -0.6634851694107056, -1.058275818824768, -0.41526249051094055, -0.6503810286521912, 0.04833836108446121, -0.727714061737060...
def get _ random _ location ( width, height, obs ) : global obs _ size max _ x = width - obs _ size - 1 max _ y = height - obs _ size - 1 overlap = true while overlap : x = random. randint ( 0, max _ x ) y = random. randint ( 0, max _ y ) overlap = does _ overlap ( x, y, obs _ size, obs _ size, obs ) return {'species _...
[ -0.9204352498054504, -0.207401305437088, 0.6433647871017456, -0.5162745118141174, -1.113435983657837, 0.16118194162845612, 0.17387692630290985, -0.5128647685050964, 0.060025330632925034, -0.11309567838907242, -0.01718905009329319, -0.02160760946571827, -0.27835988998413086, -0.220225527882...
def get ( self, request, format = none ) : apiview = ['usamos metodos http como funciones ( get, post, patch, put, delete ) ','es similar a una vista tradicional de django ','da mayor control sobre la lofica de la aplicacion ','esta mapeado manualmente a los urls'] return response ( {'message':'hello ','apiview': apivi...
[ -0.43910083174705505, -0.020520536229014397, 0.7624034285545349, -0.18171894550323486, -0.05924232676625252, -0.1602887511253357, -0.9274314641952515, 0.20704056322574615, -0.022637490183115005, -0.964785099029541, 0.5365971922874451, 0.7575929760932922, 0.1585582196712494, 0.1694922894239...
def _ get _ zero _ intersection _ array ( self ) : temp = self. _ paths [ :, 0 ] return np. zeros ( temp. shape [ 0 ], dtype = temp. dtype )
[ -0.5318485498428345, -0.5709624886512756, 0.582674503326416, 0.06883195042610168, 1.492638111114502, -0.375738263130188, 1.0306882858276367, 0.2938988506793976, -0.6607150435447693, 0.26431652903556824, 0.7723657488822937, -0.15212313830852509, -0.8122403621673584, -0.05886232480406761, ...
def _ _ init _ _ ( self, points, search _ range ) : self. ndim = len ( search _ range ) self. search _ range = np. atleast _ 2d ( search _ range ) if not isinstance ( points, list ) : points = list ( points ) self. points = points self. set _ predictor ( none ) self. rebuild ( )
[ -0.8160741925239563, 0.24496585130691528, 0.40492379665374756, 0.8297115564346313, -0.12069270759820938, 0.24392077326774597, -0.14383180439472198, 0.6808911561965942, -0.2321704477071762, -0.24689604341983795, -0.38864415884017944, 0.808018684387207, -0.16594600677490234, 0.03241563215851...
def onredrawevent ( self, evt ) : # print " update " # size = self. staticbit. clientsize size = self. pnl. clientsize self. streamthread. lock ( ) image = wx. imagefrombitmap ( evt. bmp ) self. streamthread. unlock ( ) image = image. scale ( size [ 0 ], size [ 1 ], wx. image _ quality _ high ) bmp = wx. bitmapfromimag...
[ -0.16225968301296234, 0.13434746861457825, 0.8129073977470398, -0.3120485842227936, -0.7064155340194702, 0.24889343976974487, 0.058643728494644165, -0.7590500712394714, 0.6413494348526001, -0.3187355697154999, -0.049758125096559525, 0.19468411803245544, 0.08741681277751923, 0.8315245509147...
def getdefaultente ( self ) : portal _ properties = gettoolbyname ( self, " portal _ properties " ) redturtle _ bandi _ settings = getattr ( portal _ properties, " redturtle _ bandi _ settings ", none ) if redturtle _ bandi _ settings : return redturtle _ bandi _ settings. getproperty ( " default _ ente ", " " ) return...
[ 0.25862154364585876, 0.026052340865135193, 0.5037922263145447, 0.4863823354244232, 1.0596920251846313, 0.6304125189781189, -0.2611815631389618, -1.2662686109542847, -0.9778046011924744, 0.007405508309602737, -0.1518111526966095, -0.3822721540927887, -0.6379321217536926, 0.2238253504037857,...
def set _ config _ parameter ( self, sim _ name, param, value, target _ sim _ name ) : if ( target _ sim _ name = = self. fwk _ sim _ name ) : # apply to all simulations target _ sims = self. sim _ map. keys ( ) else : target _ sims = [ target _ sim _ name ] for sim _ name in target _ sims : self. fwk. debug ('setting ...
[ -0.8239092826843262, -0.2751256227493286, 0.5135917663574219, -0.3251798152923584, -0.33026641607284546, -0.24513831734657288, 0.30825862288475037, 0.08631490170955658, -0.19173724949359894, 0.9549081325531006, -0.39728522300720215, 0.25583982467651367, -0.40577077865600586, 0.985760986804...
def test _ main ( self, mock _ web ) : main ( ) mock _ web. run _ app. assert _ called ( )
[ 0.28204020857810974, 0.8708156943321228, 0.43629947304725647, 1.3472750186920166, 0.8142868280410767, 1.4250141382217407, 0.9790663719177246, 0.5989333391189575, 0.5053659081459045, -0.18037889897823334, -0.12422139942646027, -0.010953613556921482, -0.37099575996398926, 0.5450690984725952,...
def test _ left _ channel _ 1 ( ) : assert numpy. array _ equal ( mono _ 22050 _ 16bits. left _ channel ( ), mono _ 22050 _ 16bits. data )
[ 0.7212042808532715, -0.49138525128364563, 0.42355969548225403, -0.6937057375907898, 1.6687346696853638, 0.9835368394851685, 0.041386231780052185, -1.5625407695770264, 0.8753316402435303, -0.20191526412963867, -0.8629998564720154, 1.039852261543274, -0.7100262641906738, 0.7247561812400818, ...
def sum67 ( nums ) : # after _ 6 = false # res = 0 # for i in nums : # if i = = 6 : # after _ 6 = true # elif i = = 7 and after _ 6 is true : # after _ 6 = false # elif after _ 6 is false : # res + = i # return res total = 0 add = true for num in nums : if num = = 6 and add : add = false continue if num = = 7 and not a...
[ 0.5087870359420776, -0.2943325340747833, 0.6249585747718811, 0.36516597867012024, -0.3038664758205414, -0.4282782971858978, 0.7834818959236145, -0.03639651834964752, 0.7832678556442261, 0.15795323252677917, -0.9703992605209351, -0.7408666014671326, -0.5018366575241089, -0.2979466915130615,...
def _ parse _ episodes _ list ( self, soup ) : ep _ list = soup. find ('div ', style ='width : 537px ; height : 250px ; overflow - y : auto ;') seasons = ordereddict ( ) season _ number ='1'ep _ number = 1 for i in ep _ list : if isinstance ( i, tag ) and i. name = ='div': season _ number = re. search ('season ( \ d + ...
[ -1.3667906522750854, -0.42766353487968445, 0.7165259122848511, -0.6717132925987244, -0.8586227893829346, -0.7638342976570129, 0.28305235505104065, 0.2118253856897354, 0.43588417768478394, 0.7796968221664429, -0.9108972549438477, -0.38339078426361084, 0.5400529503822327, 0.09262636303901672...
def _ create _ cert _ files ( self ) : self. _ find _ dirs _ if _ needed ( ) cert _ path, key _ path = self. _ get _ tls _ paths ( ) cert _ data = open ( cert _ path ). read ( ). strip ( ) key _ data = open ( key _ path ). read ( ). strip ( ) util. safely _ remove ( self. _ server _ cert _ path ) with util. safe _ open...
[ 0.09915490448474884, -0.08417496085166931, 0.41627874970436096, 0.6536204218864441, -0.06561646610498428, 0.19974635541439056, 1.1068323850631714, 0.10018632560968399, -1.0660345554351807, 0.6241710782051086, -0.4182274043560028, -0.47853612899780273, 0.053592536598443985, 0.35774773359298...
def circle _ detection ( image ) : # create background image for drawing the detected circle output = image. copy ( ) # obtain image dimension img _ height, img _ width, n _ channels = image. shape # backup input image circle _ detection _ img = image. copy ( ) # change image from rgb to gray scale gray = cv2. cvtcolor...
[ -0.0659094825387001, -0.3178178668022156, 0.8267073631286621, -0.24907521903514862, 0.08153044432401657, -0.5342282652854919, 0.4894368350505829, -0.6119922995567322, 0.3214220106601715, 0.5799881219863892, 0.42000487446784973, 0.6369598507881165, 0.10429234802722931, 0.4873785674571991, ...
def parse _ list ( tokens ) : lst = [ ] while tokens [ 0 ]! =')': lst. append ( parse _ tokens ( tokens ) ) tokens. pop ( 0 ) return lst
[ 0.05433650314807892, -0.39980024099349976, 0.41435521841049194, 0.26190924644470215, 0.2197963446378708, -0.44109243154525757, -1.2628792524337769, 0.7566138505935669, 0.8719916939735413, 0.3385363817214966, -1.3220375776290894, -0.13088184595108032, -0.49725303053855896, 1.162218332290649...
def fail _ workflow ( self, reason, details ) : self. workflow _ state. completed = true self. decisions. append ( {'decisiontype':'failworkflowexecution ','failworkflowexecutiondecisionattributes': {'reason': reason,'details': details [ : 32768 ] } } )
[ 0.0808897614479065, 0.04175565764307976, 0.21630744636058807, -0.39372721314430237, 1.0988686084747314, -0.15393862128257751, -0.04468093812465668, -0.042872101068496704, -0.1688876748085022, -0.13988009095191956, -0.10638613998889923, 0.5993626713752747, -0.29477301239967346, 0.9521674513...