text
stringlengths
25
2.19k
embedding
listlengths
768
768
def _ _ mul _ _ ( self, obj ) : if isinstance ( obj, matrix ) : if not self. n = = obj. m : raise exc. comformabilityerror ( " column dimension of first matrix much match row " + " dimension of second matrix " ) res = matrix ( self. m, obj. n ) for i in range ( self. m ) : for j in range ( obj. n ) : val = sum ( [ self...
[ -0.33908942341804504, 0.01972603052854538, 0.8916060328483582, 1.1218918561935425, -0.3948462903499603, 0.15312694013118744, 0.9552385807037354, -0.7289642095565796, 0.995481550693512, 0.007354058790951967, -0.05729284882545471, -0.33362969756126404, -0.3547890782356262, 0.1403678804636001...
def password _ generator ( ) : symbols = ['a ','b ','c ','d ','e ','f ','g ','h ','i ','j ','k ','l ','m ','n ','o ','p ','q ','r ','s ','t ','u ','v ','w ','x ','y ','z ','a ','b ','c ','d ','e ','f ','g ','h ','i ','j ','k ','l ','m ','n ','o ','p ','q ','r ','s ','t ','u ','v ','w ','x ','y ','z ','0 ','1 ','2 ','3 ...
[ -0.4860023558139801, 0.005877580028027296, 0.7178093791007996, -1.1040035486221313, -0.7804299592971802, 0.8551110029220581, -0.25078892707824707, -0.44664624333381653, 0.5559342503547668, 0.5174135565757751, -0.06541997194290161, -0.2616373896598816, -0.3712831139564514, 0.176893889904022...
def get _ link _ analytical _ jacobian ( self, link : str, q : arraytype, base _ link : str ) - > casadiarraytype : return cs. vertcat ( self. get _ link _ linear _ jacobian ( link, q, base _ link ), self. get _ link _ angular _ analytical _ jacobian ( link, q, base _ link ), )
[ 0.6886310577392578, -0.801636815071106, 0.273861289024353, 0.4072747826576233, 0.35660862922668457, -0.5471726059913635, -0.7404372096061707, -0.9803977012634277, -0.18890491127967834, -0.7623636722564697, 0.3316265344619751, 1.3458456993103027, 0.7646107077598572, 0.27575060725212097, 0...
def testcreatebuild ( self, mock _ gcb _ api ) : build _ create _ object = mock _ gcb _ api. return _ value. projects. return _ value. builds. return _ value. create build _ create _ object. return _ value. execute. return _ value = mock _ gcb _ builds _ create build _ response = fake _ gcb. createbuild ( {'fake - buil...
[ 0.5300854444503784, -0.08455915004014969, 0.2765345871448517, 0.41934478282928467, 1.9858062267303467, 1.5889519453048706, 0.18983010947704315, -1.0677412748336792, 0.08052866905927658, -0.6593678593635559, -0.4169906973838806, -0.07495549321174622, -1.7496204376220703, 0.04834690317511558...
def forward ( self, x, h0, v, u, w, b, c ) : a = w @ h0 + u @ x + b h = tanh ( a ) o = v @ h + c p = softmax ( o ) return a, h, o, p
[ 1.107537031173706, 0.16922828555107117, 0.2959982454776764, 0.06763055175542831, -0.32824575901031494, 0.4354266822338104, -0.030247434973716736, 0.13916808366775513, -0.5150588154792786, -0.34853893518447876, -0.5653034448623657, -0.14824257791042328, 0.21248170733451843, -0.2047594338655...
def check _ name ( self, cr, uid, ids, context = none ) : for rec in self. browse ( cr, uid, ids, context = context ) : idss = self. search ( cr, uid, [ ('name ','= ', rec. name ), ('id ', '! = ', rec. id ) ] ) if idss : raise osv. except _ osv ( _ ('error'), _ ('this destination name is already exisit for the company ...
[ -1.1401538848876953, 0.2523173987865448, 0.8187569975852966, -0.027211898937821388, -0.08990336954593658, 0.08247131109237671, -0.1634034961462021, -0.5344402194023132, -0.009414367377758026, 1.2760602235794067, -0.396920770406723, -0.24751295149326324, -0.1834380328655243, 0.1958446055650...
def test _ list _ decimal _ enumeration _ 4 _ nistxml _ sv _ iv _ list _ decimal _ enumeration _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - enumeration - 5. xsd ", instance = " nistdata / list / ...
[ -0.753812313079834, -0.7403351664543152, 0.4979328215122223, 0.44896912574768066, 0.034837525337934494, -0.5127400755882263, 0.2561090886592865, -0.2883763611316681, 0.5393243432044983, 0.09402384608983994, -1.2070547342300415, -0.705589771270752, -0.5652860999107361, 0.6860384941101074, ...
def _ get _ extensions ( self, global _ step ) : ext = [ ] for q in self. quantities : ext + = q. extensions ( global _ step ) ext = self. _ process _ multiple _ batch _ grad _ transforms ( ext ) ext = self. _ process _ duplicate _ extensions ( ext ) return ext
[ 0.35636892914772034, 0.4596915543079376, 0.5747699737548828, 0.8218932151794434, -0.11232347786426544, -0.024814611300826073, 0.09203801304101944, -0.3564847409725189, 0.2031368762254715, 0.04580444470047951, -0.7343559861183167, 0.07079418003559113, 0.11160414665937424, 1.119754433631897,...
def has22 ( nums ) : # after _ 2 = false # for i in nums : # if i = = 2 and after _ 2 is true : # return true # elif i = = 2 and after _ 2 is false : # after _ 2 = true # else : # after _ 2 = false # return false for i in range ( len ( nums ) - 1 ) : if nums [ i ] = = 2 and nums [ i + 1 ] = = 2 : return true return fal...
[ 0.05369453504681587, -0.9759719371795654, 0.7912951111793518, 1.0445539951324463, -0.36185306310653687, -0.09285985678434372, 0.7700919508934021, 0.9514797329902649, -0.19731609523296356, -0.6487775444984436, -1.102209448814392, 0.41223546862602234, -0.10315390676259995, 0.6964755058288574...
def _ brentq _ cdf ( self, value ) : # the decorator expects an instance method, but usually are decorated before being bounded bound _ cdf = partial ( scalarize ( gaussiankde. cumulative _ distribution ), self ) def f ( x ) : return bound _ cdf ( x ) - value return f
[ 0.7472175359725952, -0.6468425393104553, 0.5745270848274231, -0.2472502887248993, -0.9845497012138367, 0.2810969352722168, 0.3158704340457916, -0.9191654920578003, 0.38126280903816223, -0.13555139303207397, 0.12803663313388824, -0.15989471971988678, 0.16766123473644257, 0.22007544338703156...
def _ _ init _ _ ( self, img, timestamp = none, uid ='', exp = none, ignore _ flip = false, label ='', dtype = none, flat = none ) : self. exp = none self. timestamp = none self. uid = none self. data = matrixwithcoords ( ) # self. qrqz _ data = matrixwithcoords ( ) # self. qphi _ data = matrixwithcoords ( ) self. labe...
[ -0.14148281514644623, -0.659773051738739, 1.0260519981384277, -0.1582467406988144, -1.2116143703460693, 0.6375399827957153, -0.1071011945605278, 0.1378684788942337, 0.48358187079429626, -1.0894744396209717, 0.1766308844089508, 0.15812692046165466, 0.651191234588623, 0.38823840022087097, ...
def algorithm _ name ( self, algorithm _ name ) : self. _ algorithm _ name = algorithm _ name
[ 0.2976122796535492, -0.3819170296192169, 0.004282303620129824, 0.16455605626106262, -1.1644119024276733, 0.958672285079956, 0.387929230928421, 1.3157256841659546, -0.5403150916099548, 0.9841474890708923, -0.5512276887893677, 0.4481886625289917, 0.36767578125, 0.8157739639282227, -0.06473...
def find ( self, x ) : nodo = self. nododir [ x ] return nodo. l _ head
[ 0.04070219025015831, 0.9283996224403381, 0.6691875457763672, -0.5009706020355225, -0.23812896013259888, 0.6094868779182434, 0.005754278041422367, -1.572088360786438, 0.8395692110061646, -0.03234613686800003, -0.33853641152381897, 0.7954718470573425, 0.2936735451221466, 0.13420087099075317,...
def hash _ block ( block ) : return hslib. sha256 ( dumps ( block, sortkeys = true ). encode ( ) ). hexdigest ( )
[ 0.5996192693710327, 0.09241550415754318, 0.38748878240585327, 0.2553611993789673, -0.2088274210691452, -0.11597660928964615, -0.5169452428817749, -0.4198155403137207, 0.10160021483898163, -0.15932084619998932, -0.8615214824676514, -0.04595156013965607, -0.39043211936950684, 0.1764941066503...
def _ all _ equal ( iterable : iterable ) - > bool : iterator = iter ( iterable ) try : first = next ( iterator ) except stopiteration : return true return all ( first = = rest for rest in iterator )
[ -0.211160808801651, -0.34040552377700806, 0.3278115689754486, 0.5157719850540161, 0.7072073221206665, 0.09836698323488235, -0.09734156727790833, -0.14575155079364777, -0.3240440785884857, 0.48285168409347534, -0.408837229013443, -0.9519559741020203, -0.678730845451355, -0.06388559192419052...
def water _ mash _ added ( self ) : steps = self. mashstep _ set. all ( ) if steps. count ( ) : return float ( steps. aggregate ( sum ('water _ added') ). get ('water _ added _ _ sum') ) return float ( self. water _ initial _ mash ( ) )
[ 0.8479499816894531, -0.46124160289764404, 0.4363116919994354, -0.09232339262962341, 0.27191296219825745, 0.30054789781570435, 0.11486189812421799, -0.32388532161712646, 0.1209351196885109, -0.3914036750793457, -0.16608189046382904, 0.33781570196151733, 0.435423880815506, 2.065110683441162,...
def test _ list _ integer _ enumeration _ nistxml _ sv _ iv _ list _ integer _ enumeration _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - enumeration - 1. xsd ", instance = " nistdata / list / inte...
[ -1.124011754989624, -0.9616655707359314, 0.4527779221534729, 0.7416523694992065, -0.49389612674713135, -0.1913861483335495, -0.06554452329874039, 0.46435368061065674, 0.8880001902580261, 0.801863968372345, -0.8639895915985107, -0.013393191620707512, -0.12844176590442657, 1.0308374166488647...
def calc _ axis _ ratio ( min _ deflection, max _ deflection ) : # if min _ deflection _ t [ 0 ] < max _ deflection _ t [ 0 ] : if min _ deflection. index [ 0 ] < max _ deflection. index [ 0 ] : min _ deflection = min _ deflection [ 1 : ] if len ( min _ deflection ) > len ( max _ deflection ) : min _ deflection = min _...
[ 0.15156322717666626, 0.5079036951065063, 0.643962025642395, -1.0812541246414185, 0.14094781875610352, -0.08202336728572845, 0.3283262848854065, 0.07465281337499619, -0.36455562710762024, 0.1583375185728073, -0.17589570581912994, 0.03461531549692154, 0.2530936002731323, -0.7114116549491882,...
def split _ sentences ( self, title, text, max _ block _ length = 100 ) : title _ length = len ( self. _ tokenizer. tokenize ( title ) ) current _ token _ count = 0 current _ block _ sentences = [ ] final _ list = [ ] for sentence in self. _ sentence _ splitter. tokenize ( text ) : num _ tokens = len ( self. _ tokenize...
[ -0.6781865954399109, -0.38189542293548584, 0.6638329029083252, 0.4982698857784271, -0.9685116410255432, -0.6714428663253784, -0.8865633010864258, 0.9172287583351135, -0.4559740126132965, 1.1959362030029297, -0.6963735222816467, -0.03921029344201088, -0.28833091259002686, 0.1964789032936096...
def id ( self ) - > str : return pulumi. get ( self, " id " )
[ 1.2123790979385376, 0.06695873290300369, 0.39627665281295776, 0.439220130443573, 1.2838257551193237, 1.4655324220657349, -0.4763162434101105, 0.2041633278131485, 1.2207536697387695, 0.31055939197540283, 0.3784306049346924, 0.7317116856575012, -0.023810407146811485, -0.9869450926780701, -...
def mock _ slurm ( monkeypatch ) : import os this _ dir = os. path. abspath ( os. path. dirname ( _ _ file _ _ ) ) path = os. path. join ( this _ dir,'mockcmds') monkeypatch. setenv ( " job _ id ", " 19628442 " ) monkeypatch. setenv ( " status ",'pd') monkeypatch. setenv ( " path ", path, prepend = os. pathsep )
[ 0.1002788320183754, -0.5075309872627258, 0.9082932472229004, -0.3126244843006134, 0.22712720930576324, 1.0902152061462402, 0.30399882793426514, 1.262204647064209, 0.2557830810546875, -0.5779680609703064, -0.11184059828519821, 0.7215005159378052, -0.5287858843803406, -0.14651893079280853, ...
def unregister ( target, current = true ) : # registry entries root = winreg. hkey _ current _ user if current else winreg. hkey _ local _ machine short _ version = utils. get _ python _ infos ( target ) [ 0 ] key _ core = ( key _ s1 % short _ version ) + r'\ % s'for key in ( # drop support key _ drop1 % " ", key _ dro...
[ -0.6420025825500488, 0.08192571252584457, 1.030824065208435, -0.4062707722187042, -0.2242981493473053, 0.2767984867095947, 0.7107475996017456, 0.01862173154950142, -0.6604737639427185, 0.9169315695762634, -0.5151039361953735, 0.8056515455245972, -0.8229485750198364, 0.7698262333869934, 0...
def cn _ convolvewith ( self, gsobject, gsparams = none ) : depr ('convolvewith ', 1. 1,'obj = obj. convolvedwith ( gsobject, gsparams )') new _ obj = self. copy ( ). convolvedwith ( gsobject, gsparams ) self. _ profile = new _ obj. _ profile self. _ profile _ for _ stored = none # reset the stored profile as it is no ...
[ 0.792229950428009, -0.32307854294776917, 0.6679913997650146, 0.8760148286819458, -0.551773190498352, 0.42335477471351624, 0.3840556740760803, -1.4821053743362427, 0.24809375405311584, 0.019938277080655098, -1.5209554433822632, 0.46267014741897583, 0.04720654711127281, 0.04124289005994797, ...
def getorganizationdetails ( self ) : if self. _ _ options ['org'] is none : raise ibmiotf. configurationexception ( " missing required property : org " ) else : url = apiclient. organizationurl % ( self. host ) r = requests. get ( url, auth = self. credentials, verify = self. verify ) status = r. status _ code if stat...
[ -0.7016932964324951, -0.22293150424957275, 0.8363175392150879, 0.5262542366981506, 0.20252777636051178, -0.32147082686424255, -0.24454519152641296, -0.20085425674915314, -0.1386081427335739, 0.3021186292171478, -0.19639982283115387, 0.7178502678871155, -0.9079441428184509, -0.1017343401908...
def addchecker ( self, checker ) : # adds red checker to red side if checker. getcolor ( ) = = red : self. redcheckers. append ( checker ) checker. moveto ( ( int ( ( win _ center [ 0 ] + ( b _ width + 40 ) / 2 + t _ width ) ), \ int ( win _ center [ 1 ] - c1 _ radius - ( len ( self. redcheckers ) - 1 ) * \ c1 _ radius...
[ -0.8429773449897766, -0.27423563599586487, 0.7966112494468689, 0.01973351091146469, 0.5756452679634094, 1.2963534593582153, 0.005644230172038078, -0.2748996615409851, 0.2158466875553131, 0.19306054711341858, -0.04512430727481842, 0.1281064748764038, -0.7103732824325562, 2.1996192932128906,...
def from _ dict ( cls, dikt ) - >'style': return util. deserialize _ model ( dikt, cls )
[ -0.6090419292449951, -0.15486234426498413, 0.10699354112148285, -0.19427208602428436, -0.7615900635719299, 0.01633513905107975, -0.8500785827636719, -0.04018160328269005, 0.37281665205955505, 0.32137978076934814, -0.23739182949066162, -0.9680439829826355, 0.03947632014751434, -0.7785719633...
def get _ label ( context, field, obj = none ) : view = context ['view'] return view. lookup _ field _ label ( context, field, obj )
[ -0.7583214044570923, -0.3581833243370056, 0.46418657898902893, -0.23570874333381653, -0.0624249093234539, 0.2506215572357178, 0.19097813963890076, -0.8220241665840149, 1.0844154357910156, 0.3766179084777832, 0.29828381538391113, 0.45118775963783264, 0.4939151704311371, -0.868392825126648, ...
def calc _ lqr _ input ( env, sim _ env, debug _ flag = false ) : # prepare whatever need later global u state _ dim = env. observation _ space. shape [ 0 ] action _ dim = env. action _ space. shape [ 0 ] x = env. state. copy ( ) goal _ q = env. goal _ q. copy ( ) goal _ dq = env. goal _ dq. copy ( ) q = env. q. copy (...
[ 0.37138432264328003, -0.6018261909484863, 1.0241312980651855, 0.058724407106637955, -0.5266752243041992, 0.3208964765071869, 0.016621338203549385, 0.09674757719039917, 0.3606129288673401, 0.31713882088661194, 0.09532059729099274, 0.8798247575759888, -0.20505954325199127, 0.1201396211981773...
def _ check _ degrees _ of _ freedom ( ddof, bias ) : if ddof is none : if bias : ddof = 0 else : ddof = 1 return ddof
[ 0.33880072832107544, 1.0915640592575073, 0.32745927572250366, 0.2068941742181778, 0.31532785296440125, -0.7825371623039246, 0.19803300499916077, -0.2972451448440552, -0.08296258747577667, -0.7199516892433167, 0.8390538096427917, 0.2545298933982849, -0.2668783664703369, 0.7049755454063416, ...
def from _ inputs ( cls, inputs : typing. dict [ str, typing. dict [ str, str ] ], relations : typing. list [ typing. tuple [ str, str, str ] ], stage : str ) - > pd. dataframe : try : corpus _ q, corpus _ d = inputs ['questions'], inputs ['documents'] except keyerror as e : error _ msg = " dssm needs question and answ...
[ -0.21551837027072906, 0.21919266879558563, 0.3555528223514557, -0.5761493444442749, -0.8990330100059509, 0.3042151629924774, 0.4646669030189514, -0.19148248434066772, -0.361511766910553, -0.745933473110199, 0.9501495361328125, 0.029740748926997185, 0.02720523253083229, -0.5166450142860413,...
def closer _ city ( lat, lon, city1, city2 ) : " * * * your code here * * * " dis1 = sqrt ( ( ( get _ lat ( city1 ) ) - lat ) * * 2 + ( ( get _ lon ( city1 ) ) - lon ) * * 2 ) dis2 = sqrt ( ( ( get _ lat ( city2 ) ) - lat ) * * 2 + ( ( get _ lon ( city2 ) ) - lon ) * * 2 ) if dis1 > dis2 : return get _ name ( city2 ) e...
[ 0.5305416584014893, -1.501754641532898, 0.985050618648529, 0.0825880765914917, -1.8857393264770508, 0.5492404103279114, -0.7450600862503052, -0.2926127016544342, -0.432697594165802, -0.010155124589800835, -0.28190848231315613, 0.08373553305864334, 0.05681562051177025, -0.18074554204940796,...
def val ( self, x0, y0, dx, dy, mask = none ) : roi = self. roi ( x0 - 0. 5 * dx, x0 + 0. 5 * dx, y0 - 0. 5 * dy, y0 + 0. 5 * dy, mask = mask ) d = roi. d [ ~ np. isnan ( roi. d ) ] return np. sum ( d ) / len ( d )
[ -0.09351006895303726, 0.6770886778831482, 0.5933517217636108, -0.42980509996414185, -0.1891651153564453, -0.23455825448036194, -0.018169056624174118, -0.3943292498588562, 0.1890794038772583, 0.08577074855566025, 0.1571415662765503, 0.13025586307048798, 0.5733030438423157, 0.154451847076416...
def clear ( self ) : dtype = self. lb. value. dtype outdim = self. lb. shape [ 1 ] self. lb = np. zeros ( ( 0, outdim ), dtype = dtype ) self. ub = np. zeros ( ( 0, outdim ), dtype = dtype )
[ 0.2346968650817871, -0.4447985589504242, 0.45528244972229004, -0.21006955206394196, 0.5268674492835999, 0.7888802886009216, 0.6303081512451172, -0.17764456570148468, 0.08082005381584167, 0.031805817037820816, 0.1953428089618683, 1.6173253059387207, 0.0193933192640543, 0.40371525287628174, ...
def _ _ del _ _ ( self ) : self. close ( )
[ 0.26135924458503723, -1.6371229887008667, 0.7340909242630005, -1.2826313972473145, -0.9211532473564148, 0.7192651033401489, 0.7163866758346558, 0.07448554039001465, 0.6614908576011658, -1.2635318040847778, 1.0698975324630737, 0.21908782422542572, -0.452825129032135, 0.221242293715477, 0....
def make _ calibration _ images ( ) : cap = cv2. videocapture ( 0 ) num = 28 while ( key : = cv2. waitkey ( 1 ) & 0xff )! = ord ('q') : _, frame = cap. read ( ) cv2. imshow ('screenshot frame ', cv2. flip ( frame, 1 ) ) if key = = ord ('j') : cv2. imwrite ( f'calibration _ data / snapshot _ { ( num : = num + 1 ) }. jpg...
[ -1.1658226251602173, 1.0410596132278442, 0.5977010726928711, 1.100024700164795, -0.8625344634056091, 0.5814240574836731, -0.027468780055642128, -0.6983254551887512, 0.341131329536438, 0.049912385642528534, -0.7172616720199585, -0.20809803903102875, 0.5507389903068542, 0.534807562828064, ...
def basename ( namespace ) : dot = namespace. rfind ( ". " ) if dot = = - 1 : return namespace else : return namespace [ dot + 1 : ]
[ 0.026352042332291603, -0.43560171127319336, 0.4577200412750244, 0.07259665429592133, 0.19381946325302124, 0.08817599713802338, -0.13255514204502106, -0.9572848677635193, 1.2766364812850952, 0.6636934280395508, 0.36664873361587524, -0.07130663096904755, -0.4425163269042969, -0.3141596913337...
def get _ stat _ from _ value ( stat _ obj, league _ type = " mlb " ) : global league _ types stats = league _ types. get ( league _ type ) if not stats : raise valueerror ( " league type of { } isn't valid ". format ( league _ type ) ) stat _ id = str ( stat _ obj. stat _ id ) stat _ lookup = stats. get ( stat _ id ) ...
[ 0.7881627082824707, -0.4726574718952179, 0.43144622445106506, 0.09032732248306274, -0.2206999659538269, -0.22126029431819916, -0.11502280831336975, -1.0628085136413574, 1.1383978128433228, -0.2664152681827545, -0.03000505454838276, 1.0537747144699097, 0.7569374442100525, -0.268800944089889...
def score ( self, numpy. ndarray [ dtype = numpy. float64 _ t, ndim = 1 ] y, numpy. ndarray [ dtype = numpy. float64 _ t, ndim = 2 ] z, numpy. ndarray [ dtype = numpy. int16 _ t, ndim = 1 ] index ) : if self. criterion = = full _ is : return self. is _ estimate ( y, z, index ) # compute mle beta _ mle, f _ mle = self. ...
[ 0.5281152129173279, -0.9424547553062439, 0.7712322473526001, 0.10684407502412796, 0.23429088294506073, -0.19566968083381653, -0.21790453791618347, -0.21436378359794617, 0.16135253012180328, 0.6768096089363098, 0.17924794554710388, 0.8123588562011719, -0.4795721769332886, -0.121368102729320...
def _ get _ preds _ binary ( self, preds _ vec ) : utils. thin _ line ( ) print ('converting prediction vectors to binaries...') preds = np. array ( preds _ vec ) if self. cfg. mod _ pred _ mode = ='top _ n': for pred _ i in preds : pos _ idx = np. argsort ( pred _ i ) [ - self. cfg. mod _ pred _ max _ num : ] neg _ id...
[ -1.0752208232879639, -0.9482476711273193, 1.0542724132537842, -0.09838885068893433, -0.12330242991447449, 0.6155030727386475, 0.715293824672699, -0.14388741552829742, -0.7088920474052429, 0.4795827269554138, -0.13863883912563324, 0.474188894033432, -0.34688398241996765, 0.42237699031829834...
def inspect ( encrypted, key, iv ) : decrypted = decryptmsgcbc ( encrypted, key, iv ) print ( decrypted, " \ n " ) pairs = _ parse ( decrypted ) return pairs
[ 0.36702656745910645, 0.644959032535553, 0.4262447655200958, -0.47563105821609497, 0.09823453426361084, -0.6859270334243774, -0.2681630551815033, -0.2629050016403198, -1.3123228549957275, 0.42597341537475586, -0.019431771710515022, 0.12467918545007706, -1.7829971313476562, 0.533813059329986...
def calc _ all ( self, zero _ out _ calc _ vars = false ) : # conducts static analysis of calculator object for current _ year assert self. _ _ records. current _ year = = self. _ _ policy. current _ year benefitprograms ( self ) self. _ calc _ one _ year ( zero _ out _ calc _ vars ) benefitsurtax ( self ) benefitlimit...
[ 0.632899820804596, -0.5079655051231384, 0.6277567744255066, 0.3885597586631775, 0.13112257421016693, 0.805450975894928, 0.8718093037605286, 0.026906203478574753, 0.620549738407135, -0.704747200012207, -0.028817176818847656, 0.26268747448921204, 0.17177703976631165, 0.5454307794570923, 0....
def tile _ svm _ utr5 ( segment _ chain, count _ vector, trained _ svm, scale _ logical, scaler _ function ) : # positive _ call = [ ] if segment _ chain. get _ utr5 ( ). get _ length ( ) < 7 : return positive _ call # for z in range ( 7, segment _ chain. cds _ start - 1 ) : if ( z + 40 < segment _ chain. get _ length ...
[ -0.4393109679222107, -0.12440919876098633, 0.5299597978591919, 0.5797194838523865, -0.021025288850069046, -0.32260245084762573, 0.36050301790237427, -0.284992516040802, -0.2203395813703537, 0.5405248403549194, 0.21128161251544952, -0.11080869287252426, 0.10260389000177383, -0.3114672899246...
def normcdfi ( p, mu = 0. 0, sigma2 = 1. 0 ) : if mu = = 0. 0 and sigma2 = = 1. 0 : return math. sqrt ( 2 ) * erfi ( 2 * p - 1 ) else : return mu + math. sqrt ( sigma2 ) * normcdfi ( p )
[ -0.03965603560209274, -0.12859201431274414, 0.4011143445968628, 0.7596838474273682, -1.4132006168365479, 0.08527804166078568, -0.32253238558769226, 0.4332531690597534, -0.702567994594574, -0.3656962215900421, 0.5645133256912231, 0.7821986079216003, -1.5878978967666626, -0.07252053916454315...
def temporalconvnet ( input _ layer, num _ channels, kernel _ sizes, dropout = tf. constant ( 0. 0, dtype = tf. float32 ), init = false, is _ training = false, normalization ='batch _ norm ', self _ atten = false, use _ highway = false, use _ gated = false, counters = { }, reuse = false ) : num _ levels = len ( num _ c...
[ 0.5904873609542847, -0.22970683872699738, 0.7107774019241333, 0.10141810774803162, -0.7253282070159912, -0.5336455702781677, 0.19664984941482544, -0.16325026750564575, -0.4061802327632904, 0.600295901298523, 0.1256086528301239, 0.2371119111776352, -0.11642374098300934, 0.23123519122600555,...
def test _ parsesshowintstatus ( self ) : expected = output _ status _ processed result = parsesshowintstatus ( output _ status ) assert result = = expected
[ 0.48517411947250366, -0.1658618003129959, 0.4092765748500824, 0.04959076642990112, -0.0696745365858078, 0.01610548421740532, -0.14015892148017883, 0.504834771156311, 0.04852453991770744, -0.31848686933517456, -0.7287611961364746, 0.3430229127407074, 1.357913613319397, -0.03598647937178612,...
def drawvideoboxesandlines ( clipobjs, clips, seekobj = none ) : prevxpos = - one _ inch prevypos = canvas _ height / 2. 0 if seekobj = = none : startxpos = - 1 else : startxpos = seekobj. xpos for i in range ( len ( clipobjs ) ) : obj = clipobjs [ i ] if obj. id in imagesforclips : video = imagesforclips [ obj. id ] e...
[ -0.579978883266449, -0.3467426896095276, 1.084762692451477, -0.056238166987895966, -0.23462647199630737, -0.04913781210780144, 0.1255723237991333, -1.2097911834716797, 0.9647637009620667, -0.40423154830932617, 0.0532776303589344, 0.642344057559967, 1.03030264377594, 0.19422996044158936, ...
def test _ list _ decimal _ length _ 4 _ nistxml _ sv _ iv _ list _ decimal _ length _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - length - 5. xsd ", instance = " nistdata / list / decimal / schem...
[ -0.1527053862810135, -0.21469557285308838, 0.34287962317466736, 0.11991753429174423, 0.051386620849370956, -0.4578779339790344, 0.1480773687362671, -0.11502618342638016, 0.49159082770347595, 0.1793384552001953, -1.4164798259735107, -0.8396773934364319, -0.5325045585632324, 0.76161092519760...
def draw _ left _ t ( x = 1, y = 1 ) : print ( " { } { } ; { } ". format ( csi, y, x ), end = " ", flush = true )
[ 0.9680443406105042, -0.03131387010216713, 0.6665955185890198, -1.0750263929367065, -0.018991051241755486, 0.8378247022628784, -0.9381381273269653, -0.8873675465583801, -0.004959778394550085, 0.6856056451797485, -0.5546714067459106, 0.6284022927284241, -0.176090806722641, 0.4562901556491852...
def checkvar ( self, part ) : if not part. isalpha ( ) or part = ='i': return none return {'variable': part,'sign':'+ ','coefficient':'1'}
[ -0.24849869310855865, -0.6496708989143372, 0.4248242676258087, -0.19950929284095764, -1.2547743320465088, -0.6165482401847839, -0.5246504545211792, -0.9292086362838745, -0.049558136612176895, 0.20753787457942963, -1.0824286937713623, -0.7066434621810913, -1.1045000553131104, -0.54325705766...
def create _ repo _ file ( cls, template _ name, repo _ url, gpg _ url, file _ name = none, * * kw ) : etc _ path = kw. pop ('etc _ path ','/ etc / apt / sources. list. d') file _ name ='% s. list'% ( file _ name or'ice') list _ file _ path = os. path. join ( etc _ path, file _ name ) template = apt _ templates [ templ...
[ -0.1726815551519394, -0.045968178659677505, 0.6467220783233643, -0.2888217270374298, 0.48714733123779297, 0.08027979731559753, -0.6855340600013733, 1.4777683019638062, -0.9632607698440552, 0.155560702085495, -1.1336115598678589, -1.0245482921600342, 0.6268184185028076, -0.14547517895698547...
def scrubstr ( str ) : groups = re. findall ( group _ rgx, str ) for group in groups : if group [ 0 ] : sub = group [ 0 ] else : sub = group [ 1 ]. split ( " : " ) [ 1 ] sub = sub. replace ( " - ", " " ) str = re. sub ( sub _ rgx, sub, str, 1 ) return str
[ -0.0867965817451477, -0.5741838216781616, 0.5992711186408997, 0.22251534461975098, -0.15778884291648865, 0.5948260426521301, 0.3061174750328064, 0.26084426045417786, -0.39821115136146545, 0.004212811589241028, 0.1758180856704712, 0.777062714099884, -0.5662254691123962, -0.9045566916465759,...
def get ( self, org, sddc, edge _ type, prev _ edge _ id = none, start _ index = none, page _ size = none, sort _ order _ ascending = none, sort _ by = none, filter = none, ld _ rname = none, ) : return self. _ invoke ('get ', {'org': org,'sddc': sddc,'edge _ type': edge _ type,'prev _ edge _ id': prev _ edge _ id,'sta...
[ -0.5004581212997437, 0.8136772513389587, 0.8120290040969849, -0.24942100048065186, 0.4329272210597992, -0.9826723337173462, -0.5000091791152954, -0.6408555507659912, 0.23382137715816498, 0.19932419061660767, 0.5063496828079224, 1.6411999464035034, -0.28061074018478394, -0.01841231063008308...
def new _ db ( dbname, clobber = false ) : # connect to default database with connect _ db ('postgres') as conn : conn. set _ isolation _ level ( pg. extensions. isolation _ level _ autocommit ) cur = conn. cursor ( ) if clobber : logger. info ( f'dropped existing database : { dbname } @ { cfg. psql _ host } : { cfg. p...
[ -0.4445789158344269, 0.6992511749267578, 0.7425401210784912, 0.18291234970092773, 0.9418665170669556, 0.5815695524215698, 0.057376738637685776, -0.2631117105484009, -0.23244136571884155, 0.9039548635482788, 0.09642167389392853, -0.3404240906238556, -1.0566028356552124, 0.3544614315032959, ...
def actuated _ joint _ names ( self ) - > list [ str ] : return [ jnt. name for jnt in self. urdf. joints if jnt. type! = " fixed " ]
[ 0.13815511763095856, -0.7922383546829224, 0.2352137714624405, 0.07500199228525162, -0.1780700832605362, 0.957958996295929, 0.1401265263557434, 0.1459440290927887, -0.20651261508464813, -0.003214934142306447, -0.5779609084129333, 1.0480141639709473, -0.7865658402442932, -0.4934770464897156,...
def my _ legendre _ polynomial _ 2d _ regression _ all ( self, data _ all, * coef2d _ in ) : # 0th order zero _ th _ order = coef2d _ in [ 0 ] # 1st order ; n _ variable * nth _ order first _ order = coef2d _ in [ 1 : self. n _ variable * self. nth _ order _ 1st + 1 ] coef _ 1st _ order = np. array ( first _ order ). r...
[ 0.35517871379852295, -0.5345640778541565, 0.8928322196006775, -0.9412021636962891, 0.2661227285861969, -0.37299367785453796, -0.5656712055206299, 0.33847877383232117, -0.47362613677978516, -0.08024013787508011, -0.1701333075761795, 0.2787194550037384, -0.055871933698654175, -0.116045154631...
def _ _ compute _ ir _ weight ( self, ir _ activations ) : ir _ weights = cst. ir _ sensor _ weights if self. _ _ there _ is _ a _ gap ( ir _ activations ) : ir _ weights = ir _ weights [ : : - 1 ] weight = 0 for i in range ( 0, 4 ) : if ir _ activations [ i ] = = 1 : weight + = ir _ weights [ i ] break for i in range ...
[ -0.6675759553909302, 0.1549205332994461, 0.3699827194213867, 0.753808856010437, 0.04759863764047623, -0.18805676698684692, 1.0116281509399414, 0.19740232825279236, 0.5004287362098694, 0.8228752613067627, 0.9450986385345459, -0.6605702042579651, -1.4408668279647827, 0.2973478436470032, 0....
def upload ( ) : if request. method = ='post': collection _ name = str ( request. args. get ('collection') ) file = request. files ['file'] if file : path = os. path. join ( processed _ image _ dir, collection _ name ) unzip ( file, path ) collection = collection. query collection = collection. filter _ by ( name = col...
[ -0.25693050026893616, -0.12064215540885925, 0.8237921595573425, -0.21820102632045746, 0.9250802993774414, -0.1129327341914177, 0.45074114203453064, 0.192660391330719, -0.9635236263275146, 0.14146220684051514, 0.4237801134586334, -0.6071223020553589, -1.4216471910476685, 0.9096088409423828,...
def referencederivation ( cls, record ) : # make a managed dependent yield from cls. manageddependentderivation ( ) # if the record has anything to say if record. reference : # this is its spot yield record. reference # this where they fit yield cls. reference # and whatever else my superclass says yield from cls. comp...
[ 0.8620502948760986, -0.3899120092391968, 0.7765535712242126, 0.26077842712402344, 0.2116362750530243, 0.5905468463897705, 0.9364173412322998, -0.34235477447509766, 0.49095526337623596, -0.11161478608846664, 0.7700552940368652, -0.05575423687696457, -0.29824721813201904, 1.3486204147338867,...
def test _ list _ integer _ min _ length _ 3 _ nistxml _ sv _ iv _ list _ integer _ min _ length _ 4 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - minlength - 4. xsd ", instance = " nistdata / list / ...
[ -0.29725170135498047, -0.28520235419273376, 0.3454602360725403, 0.1780996024608612, -0.4964510202407837, 0.10212833434343338, -0.737544596195221, -0.020810110494494438, 1.4876848459243774, 0.2922103703022003, -0.9078361392021179, -0.5492681264877319, -0.9869781136512756, 0.2085566222667694...
def unionh ( self, l1, l2 ) : act = l2. head while act : act. l _ head = l1 act = act. getsig ( ) l1. tail. sig = l2. head l1. tail = l2. tail del l2
[ 0.3227691650390625, -0.5304368734359741, 0.7471519708633423, 0.8063473105430603, -0.15415574610233307, 1.0635251998901367, -0.9121555685997009, 0.635944664478302, -0.25462937355041504, 0.3502127528190613, -1.220665693283081, 0.9036619067192078, -0.4207457900047302, 0.45667946338653564, 0...
def post ( self, request ) : form = clientform ( request. post ) if form. is _ valid ( ) : added _ client = client. objects. create ( name = form. cleaned _ data [ " name " ], surname = form. cleaned _ data [ " surname " ], strname = form. cleaned _ data [ " strname " ], homenum = form. cleaned _ data [ " homenum " ], ...
[ -0.015615414828062057, 0.24668772518634796, 0.6582274436950684, -0.4252277910709381, -0.06312347948551178, 0.948773980140686, 0.2696836292743683, -0.42970046401023865, -0.5851255059242249, -1.0103857517242432, 0.13108687102794647, -0.05249878019094467, -0.07662864774465561, 0.4432372450828...
def test _ multiply ( c, x1, y1, m, x3, y3 ) : p1 = point ( c, x1, y1 ) p3 = p1 * m print _ ( " % s * % d = % s " % ( p1, m, p3 ), end ='' ) if p3. x ( )! = x3 or p3. y ( )! = y3 : raise failedtest ( " failure : should give ( % d, % d ). " % ( x3, y3 ) ) else : print _ ( " good. " )
[ 0.5134958028793335, 0.2836969196796417, 0.5148886442184448, 0.35825109481811523, 0.4278312623500824, 1.099051833152771, -0.26089224219322205, -0.19778479635715485, 0.08658182621002197, -0.05894771218299866, -0.28398945927619934, -0.6842901706695557, -0.3340853750705719, -0.3890727758407593...
def ifoutputqueuefull ( self ) : return self. output _ queue. full ( )
[ 0.0711294412612915, -0.8599006533622742, 0.7570086121559143, 0.032531119883060455, -0.9568682312965393, -0.8901105523109436, -0.2715660333633423, -0.7928163409233093, -0.705141007900238, 0.32632753252983093, -0.19716200232505798, -0.5101602077484131, -0.5045261383056641, -0.033947251737117...
def world _ info _ updated ( self, world _ info ) : self. _ map _ name = world _ info. map _ name
[ -0.21455495059490204, -2.3899104595184326, 0.37644439935684204, 0.02357618324458599, -0.751103937625885, 1.373943567276001, -0.24904809892177582, -0.2233351618051529, -0.1950099766254425, 0.8581580519676208, -0.40555301308631897, 0.15378867089748383, 0.7138410806655884, 0.5187524557113647,...
def get _ positive _ context _ gradient ( positive _ result : result, negative _ results : iterable [ result ] ) - > np. ndarray : # done ( ~ 1 - 2 lines ) : implement return ( positive _ result [ " probability " ] - 1 ) * positive _ result [ " target _ word _ embedding " ]
[ -0.8142067790031433, -0.075321726500988, 0.553391695022583, 0.7287120819091797, -0.017934482544660568, 0.08435246348381042, -0.09569428861141205, -0.1625913381576538, -0.9711872339248657, 0.7160710096359253, 0.24243830144405365, 0.2740306854248047, -0.5296468138694763, 0.2995523512363434, ...
def shipping _ full _ name ( self, shipping _ full _ name ) : self. _ shipping _ full _ name = shipping _ full _ name
[ 0.06309261918067932, 0.2031436264514923, 0.0786980614066124, -0.011365250684320927, -1.2488229274749756, 0.479469895362854, 0.017831770703196526, 0.4550589919090271, -0.4198209047317505, 0.4416641294956207, -1.3706610202789307, -1.492649793624878, 0.784049928188324, -0.00288734445348382, ...
def plotgraph ( self, graphvizprog ='sfdp ', filename ='temp - plot. html ', title = none, auto _ open = true, image = none, image _ filename ='plot _ image ', image _ height = 600, image _ width = 800 ) : self. graphvizprog = graphvizprog # layout the positions... self. _ create _ positions _ digraph ( ) outputdata = ...
[ -0.33867040276527405, 1.0257948637008667, 0.7643715143203735, 0.49960893392562866, -0.40756043791770935, -0.4841124713420868, 0.6759709119796753, 0.12571516633033752, -0.5259106159210205, -0.7291817665100098, 0.23799920082092285, 0.03142130747437477, 0.1834256798028946, -0.0862833857536315...
def _ _ setitem _ _ ( self, index _ tuple, value ) : assert value > = 0 and value < = 255, " incorrect intensity " self. _ img [ index _ tuple [ 0 ], index _ tuple [ 1 ] ] = value
[ -2.0728142261505127, 0.11989133059978485, 0.2820281982421875, -0.4339970648288727, 0.13659769296646118, 0.1735229790210724, 0.31121471524238586, -0.4753982424736023, -0.37014859914779663, 0.6696251034736633, -0.051675762981176376, -0.557121753692627, 0.18184593319892883, -0.774901449680328...
def cuenta _ edit ( request ) : if request. method = ='post': user _ form = usuarioform ( request. post, instance = request. user ) detalle _ form = usuariodetalleform ( request. post, instance = request. user. usuariodetalle ) if user _ form. is _ valid ( ) and detalle _ form. is _ valid ( ) : usuario = user _ form. s...
[ 0.744758665561676, 0.21935705840587616, 0.6719881892204285, -0.1317092925310135, -0.3776698410511017, 0.6262456774711609, 0.36779528856277466, 0.11462508141994476, -0.47197917103767395, -0.5855448246002197, 0.2831785976886749, -0.16034378111362457, 0.7491871118545532, 0.08352167159318924, ...
def add ( self, w, x, y ) : w. style. x = x w. style. y = y w. container = self # note : this might fix it, sort of... # but the thing is, we don't really want to resize # something if it is going to get resized again later # for no reason... # w. rect. x, w. rect. y = w. style. x, w. style. y # w. rect. w, w. rect. h ...
[ -0.34438878297805786, -0.03823412209749222, 0.6886478662490845, -0.1739722490310669, 0.31728681921958923, 0.12155909091234207, -0.18533465266227722, -0.728361189365387, 0.8170124888420105, -0.6124435067176819, 0.16667446494102478, 0.06910629570484161, -0.0516359880566597, 0.736092269420623...
def search _ shopify _ product _ for _ export _ stock ( self, instance, product _ ids ) : shopify _ products = self. search ( [ ( " shopify _ instance _ id ", " = ", instance. id ), ( " exported _ in _ shopify ", " = ", true ), ( " product _ id ", " in ", product _ ids ) ], order ='last _ stock _ update _ date') return...
[ -0.9746387004852295, -0.028431281447410583, 0.3038451373577118, 0.6884881854057312, 0.6286210417747498, 0.020919548347592354, -1.1591259241104126, -0.8982388377189636, 0.9071404337882996, 0.9030188918113708, -0.1672508269548416, 0.6640247702598572, -0.2790949046611786, -0.1036389097571373,...
def test _ atomic _ qname _ pattern _ 3 _ nistxml _ sv _ iv _ atomic _ qname _ pattern _ 4 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - pattern - 4. xsd ", instance = " nistdata / atomic / qname / sc...
[ -0.0568193718791008, -0.652166485786438, 0.4502192437648773, 0.06857962906360626, -0.6335617899894714, 0.2528779208660126, -0.5408262014389038, -0.7071563005447388, -0.2233743965625763, 0.3664047122001648, -0.4978382885456085, -0.285797119140625, 0.04107607156038284, -0.39762789011001587, ...
def init _ emission ( self, train _ p ) : a _ tr, b _ tr, t _ tr, o _ tr = copy. deepcopy ( emissions ), copy. deepcopy ( emissions ), copy. deepcopy ( emissions ), copy. deepcopy ( emissions ) states = {'a': a _ tr,'b': b _ tr,'t': t _ tr,'o': o _ tr } for p in train _ p : for i in range ( p. len ) : # states [ p [ i ...
[ 0.199484184384346, 0.07539878040552139, 0.7559598088264465, -0.4786326587200165, -0.33642080426216125, 0.19244368374347687, 0.6786240935325623, 0.37562185525894165, -0.37842297554016113, 1.0797719955444336, -0.4072021245956421, -1.0665909051895142, 0.053144343197345734, 0.03470610827207565...
def test _ atomic _ hex _ binary _ min _ length _ 3 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ min _ length _ 4 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - minlength - 4. xsd ", instance ...
[ 0.33292481303215027, -0.3524194657802582, 0.39245715737342834, 0.35134008526802063, -0.4119914472103119, 0.2071743756532669, -0.8287408947944641, -0.22670799493789673, -0.01417611911892891, 0.04088612273335457, -0.6534332633018494, -0.6001936793327332, -0.4313676357269287, 0.18162217736244...
def dotnet _ ticks _ to _ unix _ epoch _ nanos ( tick _ column : union [ str, column ] ) - > column : if not isinstance ( tick _ column, ( str, column ) ) : raise valueerror ( f " given column must be a column name ( str ) or column instance ( column ) : { type ( tick _ column ) } " ) sc = sparkcontext. _ active _ spar...
[ -0.49843013286590576, 0.27575361728668213, 0.4834323227405548, -0.44132381677627563, 0.35025137662887573, -0.8492947220802307, 0.3900147080421448, 0.23681189119815826, 0.06408577412366867, -0.020732292905449867, -1.2486190795898438, 0.6088640689849854, 0.8781518340110779, -0.33053705096244...
def test _ serial _ parent _ explicit _ mp _ fork _ par _ child _ then _ par _ parent ( self ) : body = " " " if 1 : x = np. arange ( 1000000. ) y = np. arange ( 1000000. ) q = multiprocessing. queue ( ) # this is ok procs = [ ] ctx = multiprocessing. get _ context ('fork') for x in range ( 10 ) : # fork ( ) underneath...
[ 0.5192297101020813, -0.783072829246521, 0.939996063709259, -0.19497238099575043, 0.3849503993988037, 0.008249816484749317, 0.12523917853832245, -0.4877636432647705, -0.20162051916122437, -0.813753068447113, -0.4330863654613495, 1.34333336353302, -0.38210347294807434, 0.9034696817398071, ...
def add _ spline ( self, name, cx, spline _ type ='bezier ', scaler = 1. ) : if isinstance ( name, str ) : names = [ name ] else : names = name # decode the name if'dp'in names [ 0 ] : self. _ add _ dp _ spline ( names, cx, spline _ type, scaler = 1. ) else : self. _ add _ mat _ spline ( names, cx, spline _ type, scale...
[ -0.2684386372566223, 0.48099035024642944, 0.461904913187027, 0.6685656309127808, -0.16982315480709076, 0.8073219060897827, -1.0898364782333374, -0.07561126351356506, 0.9880553483963013, -0.08782044053077698, -0.9733107686042786, -0.3594353497028351, -0.427266389131546, 0.6958661675453186, ...
def set _ parent ( self, parent ) : if self. _ parent is not parent : if parent is none or type ( parent ) is worldobject : if self. _ parent is not none : self. _ parent. detach _ child ( self ) self. _ parent = parent
[ 0.36981937289237976, 0.48922237753868103, 0.6395843029022217, -0.01073197927325964, -0.8325814604759216, -0.0841154232621193, 0.9728910326957703, -1.0428467988967896, 0.07209083437919617, -0.02097400650382042, -0.5763731598854065, -0.24108406901359558, -0.7038353681564331, 0.43988353013992...
def wrap _ compiler _ debug ( unconfigured _ compiler _ fn, compiler _ name : str ) : @ functools. wraps ( unconfigured _ compiler _ fn ) def debug _ wrapper ( gm, example _ inputs, * * kwargs ) : from torch. _ subclasses import faketensormode compiler _ fn = functools. partial ( unconfigured _ compiler _ fn, * * kwarg...
[ -0.3583526015281677, -0.20931056141853333, 0.6378889679908752, 0.46538835763931274, 0.05452819913625717, -0.31278789043426514, 0.38225409388542175, 0.14223723113536835, -0.12372948229312897, 0.048560403287410736, 0.03861631825566292, 0.7526885867118835, 0.8189190030097961, 0.26749944686889...
def alignpeaks ( self ) : for mass in itertools. chain ( self. targets ) : if self. refwell. chromatogramfeatures [ mass ] ['chromatogram'] [ 0 ] = = [ ] : continue # retention times of all peaks picked in ref well master = [ self. refwell. chromatogramfeatures [ mass ] ['chromatogram'] [ 0 ] [ x ] for x in self. refwe...
[ 0.45745521783828735, -0.06031981483101845, 0.7136286497116089, -0.6364701390266418, 0.3672237694263458, 0.2873106002807617, 0.6639217734336853, -0.1258487105369568, 0.1218513771891594, 0.5137198567390442, 0.3263099789619446, 0.3701546788215637, -0.43992212414741516, 1.3577684164047241, -...
def _ _ eq _ _ ( self, other ) : if type ( self ) is not type ( other ) : return notimplemented return self. _ is _ equal _ same _ type ( other )
[ -1.261446237564087, -0.2196483463048935, 0.4334542155265808, 0.29699864983558655, 0.843926727771759, 0.48486781120300293, 0.6727768778800964, -1.3185241222381592, 1.051609754562378, 0.6958974003791809, -1.229377269744873, 0.5503897070884705, -0.47715991735458374, 0.7045425772666931, 0.18...
def post ( self, configfile ) : check _ policy ( pecan. request. context,'create') try : new _ configfile = pecan. request. dbapi. create _ configfile ( configfile. as _ dict ( ) ) except exception as e : with excutils. save _ and _ reraise _ exception ( ) : log. exception ( e ) return configfile. convert _ with _ link...
[ -0.8874298334121704, 0.5300003290176392, 0.4541754424571991, 0.8667805194854736, 0.05423073470592499, 0.6365832090377808, 0.2218913733959198, 0.32324275374412537, -1.1985753774642944, 0.18868623673915863, -0.513533353805542, -1.1650534868240356, -0.9643160700798035, 0.8070788383483887, 0...
def test _ fit _ attributes _ with _ autothreshold ( variables, expected _ psi, df ) : transformer = drophighpsifeatures ( threshold = " auto ", variables = variables, bins = 10 ) transformer. fit ( df ) assert transformer. psi _ values _ = = pytest. approx ( expected _ psi, 12 ) assert transformer. features _ to _ dro...
[ -0.07817156612873077, -0.16044607758522034, 0.42496195435523987, 0.6229054927825928, 0.6616494655609131, -0.031030960381031036, 0.451876163482666, 0.5982611775398254, -0.6550832986831665, -0.1986958235502243, -0.9392911791801453, 0.15659554302692413, -0.005964390933513641, -0.2105573415756...
def test _ atomic _ hex _ binary _ white _ space _ nistxml _ sv _ iv _ atomic _ hex _ binary _ white _ space _ 1 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - whitespace - 1. xsd ", instance =...
[ -0.5218114852905273, 0.2377929985523224, 0.5069301128387451, 0.30748674273490906, 0.10358738899230957, 0.6026793122291565, -0.18943634629249573, -0.12157095968723297, 0.6120511293411255, 0.37866875529289246, -0.08772588521242142, -0.43455007672309875, -0.3189499080181122, 0.894297361373901...
def count _ v _ christoffel ( g ) : g11 = g [ 0, 0 ] g22 = g [ 1, 1 ] g33 = g [ 2, 2 ] g12 = g [ 0, 1 ] g13 = g [ 0, 2 ] g23 = g [ 1, 2 ] a = - ( g11 + g22 + g33 ) b = g11 * g22 + g11 * g33 + g22 * g33 - g12 * * 2 - g13 * * 2 - g23 * * 2 c = g11 * g23 * * 2 + g22 * g13 * * 2 + g33 * g12 * * 2 - g11 * g22 * g33 - 2 * g1...
[ 1.148967981338501, -0.4037787914276123, 0.7972836494445801, -0.459827184677124, -0.14439722895622253, -0.07077484577894211, 1.0305026769638062, 0.10552462935447693, 0.8144619464874268, 0.2630958557128906, -0.09160717576742172, 0.07997635751962662, -0.3888460397720337, 0.3285384178161621, ...
def create _ group ( current _ session, groupname, description ) : return gp. create _ group ( current _ session, groupname, description )
[ -0.3600110113620758, 0.6440325379371643, 0.25870516896247864, -0.15862779319286346, 0.2789936661720276, 0.10251828283071518, -0.9460991024971008, -0.40866705775260925, -0.5124058723449707, -0.01781056448817253, 0.9253760576248169, 0.7877948880195618, -0.9141289591789246, -0.003272027708590...
def test _ atomic _ language _ pattern _ 3 _ nistxml _ sv _ iv _ atomic _ language _ pattern _ 4 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - pattern - 4. xsd ", instance = " nistdata / atomic ...
[ 0.22479331493377686, -0.1138923242688179, 0.4273814857006073, 0.428193598985672, -0.230181485414505, 0.20724424719810486, -0.16472205519676208, -0.0828874409198761, 0.11380641162395477, 0.6425225734710693, -0.1382681131362915, -0.6391986608505249, -0.41595593094825745, -0.5031158328056335,...
def load _ data ( data _ folder, seg _ folder, im _ size = ( 128, 128, 3 ), n _ classes = 2, ext ='png') : train _ list = glob ( os. path. join ( data _ folder,'train ','*.'+ ext ) ) val _ list = glob ( os. path. join ( data _ folder,'val ','*.'+ ext ) ) n _ train, n _ val = len ( train _ list ), len ( val _ list ) dat...
[ -0.8818628787994385, 0.3041805624961853, 0.8767033219337463, -0.42413222789764404, -0.34474050998687744, 0.27720892429351807, -0.3254396617412567, 0.017245367169380188, -0.3507632911205292, 0.003950605168938637, 0.33171871304512024, -0.17221973836421967, 0.34923791885375977, -0.30219808220...
def compare _ elec _ temp ( elec _ and _ weather, if _ ols = false ) : fig = plt. figure ( figsize = ( 10, 10 ) ) plt. scatter ( elec _ and _ weather ['tempm'], elec _ and _ weather ['kwh'], marker ='x ', color ='g') plt. xlabel ('outdoor temperature ( $ ^ \ circ $ c )') plt. ylabel ('electricity usage ( kwh )') plt. t...
[ 0.040447670966386795, -0.030112847685813904, 0.753799319267273, -0.7614380121231079, -0.3908350169658661, 1.1167652606964111, 0.028944820165634155, 0.5707457065582275, -0.07743231952190399, 0.6367472410202026, 0.464851975440979, 1.089088797569275, 0.5977528691291809, 0.46185702085494995, ...
def get _ face _ client ( ) : subscription _ key = os. environ [ " cognitive _ service _ key " ] endpoint = os. environ [ " cognitive _ service _ endpoint " ] credential = cognitiveservicescredentials ( subscription _ key ) return faceclient ( endpoint, credential )
[ 0.7295719385147095, -0.6522830128669739, 0.27722761034965515, 0.9321019649505615, -0.0047623165883123875, 0.029748305678367615, -0.017445342615246773, -0.8853362798690796, -0.592540979385376, -0.43601593375205994, 0.5032345652580261, 1.0700942277908325, -0.6523340940475464, -0.520044744014...
def get ( self, topic _ id : str ) - > none : topic = topic _ fetchers. get _ topic _ by _ id ( topic _ id, strict = false ) if topic is none : raise self. pagenotfoundexception ( exception ('the topic with the given id doesn \'t exist.') ) skill _ id _ to _ description _ dict, deleted _ skill _ ids = ( skill _ service...
[ -0.25990599393844604, -0.1895749866962433, 0.4292406737804413, 0.10701262205839157, 0.6129857897758484, 0.10750331729650497, 0.8364549875259399, -0.6747539639472961, -0.1612739861011505, 0.37750324606895447, 0.6224483251571655, 0.6216499209403992, 0.5864839553833008, 0.41727492213249207, ...
def do _ process ( self, obj, job, * * kwargs ) : klass = obj. _ _ class _ _. _ _ name _ _ if self. settings. controller _ skip _ existing and not obj. should _ run ( ) : logger. info ( " skipping % s job [ % s ] " % ( klass, job. id ) ) return true result = obj. run ( * * kwargs ) if result. exitcode! = 0 : err = " % ...
[ -0.4744589328765869, 0.32016319036483765, 1.0341068506240845, 0.21693642437458038, 0.15942728519439697, 0.9215861558914185, -0.07882987707853317, -0.7435148358345032, 0.26585811376571655, 0.31261613965034485, -0.6610926389694214, -0.45815667510032654, -0.6237953901290894, -0.00974025577306...
def check _ alien _ bullet _ collisions ( bullets, aliens, ai _ settings, screen, ship, stats, sb ) : collisions = pygame. sprite. groupcollide ( bullets, aliens, true, true ) # adds points in bullet hits aliens if collisions : for aliens in collisions. values ( ) : stats. score + = ai _ settings. alien _ points * len ...
[ 0.06818467378616333, -0.021265313029289246, 0.4215463101863861, 0.8411291241645813, 1.0037009716033936, 0.29396653175354004, -0.4450213313102722, -0.7730389833450317, 0.022496357560157776, 0.7616986632347107, -0.5991593599319458, -0.4473911225795746, 0.16833968460559845, 0.7432859539985657...
def tpms _ pressure _ rl ( self ) - > float : return self. _ vehicle _ data. get ( " vehicle _ state ", { } ). get ( " tpms _ pressure _ rl " )
[ 0.2607598602771759, -0.7197288870811462, 0.23762936890125275, -1.21775221824646, 0.3648519217967987, 0.30933472514152527, -1.00263512134552, -0.3700602352619171, 0.4555652439594269, 1.0336849689483643, 0.15089750289916992, -1.1541800498962402, -1.008065104484558, -0.7282435297966003, -0....
def _ _ str _ _ ( self ) : r = " [ { } ] ( { } ) { } ". format ( type ( self ). _ _ name _ _, self. id, self. _ _ dict _ _ ) return r
[ -0.4387727975845337, -2.0088958740234375, 0.6755275726318359, -1.2153908014297485, 0.06524940580129623, 0.17665375769138336, -0.21226321160793304, -0.6340789198875427, 0.4090704619884491, 0.03230699896812439, -0.04807914048433304, 1.1880635023117065, -0.15966235101222992, -0.34191513061523...
def test _ update _ env ( ) : sample _ exe = " python " cmd = " echo " rs = runsettings ( sample _ exe, run _ command = cmd ) env _ vars = { } assert not rs. env _ vars
[ -0.9600299596786499, -0.47364693880081177, 0.4594475328922272, 0.09012606739997864, -0.27505043148994446, 0.9821431636810303, -0.08400344103574753, -0.5035368204116821, -0.7282432913780212, -0.21138785779476166, -0.6603717803955078, 0.7181141972541809, -0.5400927066802979, 0.51239854097366...
def base _ block ( self ) - > block : if len ( self. extra _ blocks ) = = 0 : return self else : return block ( namespace = self. namespace, base _ name = self. base _ name, properties = self. properties, )
[ 0.7750636339187622, -0.44954416155815125, 0.5945784449577332, 0.2450679987668991, -0.006511922925710678, 0.7890223264694214, -0.37377089262008667, -0.6671891212463379, 0.7158969044685364, -0.944503664970398, 0.18453216552734375, 0.6964584589004517, -0.7783038020133972, 0.03136255964636803,...
def create _ container ( client, resource _ group _ name, name, image, location = none, cpu = 1, memory = 1. 5, port = 80, os _ type ='linux ', ip _ address = none, command _ line = none, environment _ variables = none, registry _ login _ server = none, registry _ username = none, registry _ password = none ) : contain...
[ -0.44791942834854126, 0.4685714840888977, 0.717052161693573, 0.03287159278988838, -0.21572837233543396, -0.6851484775543213, 0.3248766362667084, -0.19239495694637299, -0.33006808161735535, 0.5575003623962402, 0.4248286187648773, 0.891319215297699, 0.11390925198793411, 0.5502699613571167, ...
def reverse _ string ( string ) : stack = [ ] for c in string : if c = = " ) " : substack = [ ] while stack [ - 1 ]! = " ( " : substack. append ( stack. pop ( ) ) stack. pop ( ) stack. extend ( substack ) else : stack. append ( c ) return " ". join ( stack )
[ 0.14710140228271484, 0.6828073859214783, 0.7475547194480896, -0.06996645778417587, -0.2956148087978363, -0.8140433430671692, 0.1275576502084732, 0.07102407515048981, -0.4041711986064911, 0.8185286521911621, -0.1795518547296524, 0.6299741268157959, -1.1311126947402954, -1.2756508588790894, ...
def rs _ cluster _ restore ( rs _ mgmt, args ) : if not args. subnet _ group _ name : args. subnet _ group _ name = read _ string ('redshift _ cluster _ subnet _ group _ name') if not args. vpc _ security _ group : args. vpc _ security _ group = read _ string ('security _ group _ id') rs _ mgmt. restore _ from _ cluste...
[ -0.12134914100170135, -0.585353672504425, 0.6087831258773804, -0.47773417830467224, 0.5239629745483398, -0.4308895468711853, -0.16816547513008118, 0.23997794091701508, -0.1154259592294693, 0.06613525003194809, 0.2769162952899933, 0.6824111938476562, -0.8905574679374695, -0.7344754338264465...