text
stringlengths
25
2.19k
embedding
listlengths
768
768
def get _ column ( grid, column _ index ) : return [ row [ column _ index ] for row in grid ]
[ 0.15322750806808472, -0.701690137386322, 0.18405044078826904, 0.2518155574798584, 1.3956037759780884, -0.7194685339927673, -0.5144270062446594, -0.3353741466999054, -0.30854329466819763, 0.6326325535774231, -0.39789268374443054, 0.8094515800476074, 0.49154427647590637, -0.27947524189949036...
def llr _ test ( tup ) : # see galecki2013 ; linear mixed effects models using r # and gumedze2011. # note should use ml method to fit the data in this case ( reml = false ) null _ model _ formula, alt _ model _ formula, data, dfdiff, logfile = tup lfh = open ( logfile,'a') sys. stdout = lfh # write fit error messages ...
[ 0.8540546298027039, -0.5673512816429138, 0.6178266406059265, -0.6361897587776184, 0.09618193656206131, 0.5881267189979553, 0.08597144484519958, -0.05703539773821831, 0.22927726805210114, -0.7284123301506042, 0.3391393721103668, -0.4154408574104309, -0.6124350428581238, 0.3475463390350342, ...
def delete _ file ( file _ ) : status = call ( [ " rm ", file _ ] )
[ 0.714314341545105, 0.6381059885025024, 0.2102186232805252, 0.5359405875205994, 0.8091820478439331, 0.47407183051109314, -0.3623179495334625, 1.4456707239151, -0.6263200044631958, -0.4322580397129059, -0.2034892439842224, -0.28801295161247253, 0.6225706338882446, 0.8206775784492493, 0.581...
async def test _ states ( hass, two _ zone _ alarm ) : # noqa : f811 await setup _ risco ( hass ) await _ check _ state ( hass, two _ zone _ alarm, true, true, first _ entity _ id, 0 ) await _ check _ state ( hass, two _ zone _ alarm, true, false, first _ entity _ id, 0 ) await _ check _ state ( hass, two _ zone _ alar...
[ 0.5687196254730225, -0.07818208634853363, 0.635284423828125, 0.9269121289253235, 1.1651537418365479, 0.12446601688861847, 0.9169877767562866, -0.5049410462379456, 0.2755640745162964, -0.24141402542591095, -0.3798084855079651, -0.20728619396686554, 0.8968235850334167, 0.4735722243785858, ...
def test _ list _ insert _ with _ nonexistent _ key ( self ) : charset ='abcdefghijklmnopqrstuvwxyz1234567890'minlength = 5 maxlength = 30 length = random. randint ( minlength, maxlength ) key = ('test ','demo ',''. join ( map ( lambda unused : random. choice ( charset ), range ( length ) ) ) + ". com " ) status = test...
[ -0.8201572895050049, 0.2179824560880661, 0.4903995990753174, -0.8635700941085815, 0.4395148456096649, 0.17323412001132965, -0.5499135255813599, 0.49526533484458923, 0.22901815176010132, 0.9210655689239502, -1.5871978998184204, 0.08020787686109543, -1.4284687042236328, 0.6677467823028564, ...
def get _ logging _ conf ( conf ) : get = conf. get _ default _ attr log = get ('log ', none ) default _ log = {'text': none,'plot': none } if log is none : log = default _ log else : set _ defaults ( log, default _ log ) return log
[ 0.31012654304504395, 0.31340110301971436, 0.1952403038740158, -0.010463164187967777, 0.1607387661933899, -0.6753588914871216, 0.11413487792015076, 0.7064023017883301, -0.23075439035892487, -0.1535457819700241, -0.43950119614601135, -0.32599717378616333, -0.24102023243904114, 0.466588884592...
def _ objects _ to _ object _ message ( self, x _ oft, h _ oft, k, objects _ mask, oo _ dists = none ) : x _ oftk = x _ oft [ :, k ] h _ oftk = h _ oft [ :, k ] receiver = torch. cat ( [ x _ oftk, h _ oftk ], dim = - 1 ) x _ oft = torch. cat ( [ x _ oft [ :, : k ], x _ oft [ :, k + 1 : ] ], dim = 1 ) h _ oft = torch. c...
[ -0.3278905153274536, -0.21144640445709229, 0.8706782460212708, -0.47965770959854126, 0.28010666370391846, -0.3986393213272095, 0.8112935423851013, -0.6472445726394653, -0.2731572687625885, 0.8522622585296631, 0.11651735752820969, 0.6292547583580017, 0.7019561529159546, -0.31681981682777405...
def match _ features ( content _ img, style _ img ) : result = [ ] for input _ layerfeature, style _ layerfeature in zip ( content _ img, style _ img ) : input _ layerpatch = get _ patch ( input _ layerfeature ) style _ layerpatch = get _ patch ( style _ layerfeature ) # input _ dot _ style = input _ layerpatch @ style...
[ -0.10330963879823685, -1.2514528036117554, 0.4520838260650635, 0.5052693486213684, -0.029916396364569664, 0.001820857753045857, 0.2562973201274872, 0.14579495787620544, -0.039925843477249146, 0.0545690655708313, -0.2178640216588974, 0.44951939582824707, -0.20552588999271393, -0.26303043961...
def test _ chipname ( self ) : chip _ name _ arr = chipnamefromradec ( self. pix _ data ['ra'], self. pix _ data ['dec'], obs _ metadata = self. obs, camera = self. camera ) np. testing. assert _ array _ equal ( chip _ name _ arr, self. pix _ data ['name'] )
[ 0.12312280386686325, -0.32760706543922424, 0.3798105716705322, -0.9331827759742737, -0.3621637225151062, 0.4898218810558319, -0.2732250690460205, -0.8687397241592407, 0.2842988669872284, -0.00040758238174021244, -0.0750143751502037, 0.24849924445152283, 0.2497585117816925, 0.50896662473678...
def plot _ correlation ( inargs ) : # read pre - processed data rootgroup = read _ netcdf _ dataset ( inargs ) pw = get _ config ( inargs,'plotting ','page _ width') fig, axarr = plt. subplots ( 1, 2, figsize = ( pw, pw / 2. 5 ) ) mean _ m = rootgroup. variables ['mean _ m'] [ :, :, 0, 0, 0 ] mean _ n = rootgroup. vari...
[ -0.010466312989592552, 0.36016836762428284, 0.8991844654083252, -0.26934605836868286, -0.3013220727443695, 0.6616763472557068, 1.1387110948562622, 0.2258763313293457, -0.6802356839179993, 0.1725711226463318, 0.36704903841018677, 0.6802166700363159, -0.7008216977119446, 0.7772802114486694, ...
def extract _ subgraph ( self, graph _ name, tensor _ names, difference = false ) : graph = graph ( graph _ name, [ ] ) outputs = set ( tensor _ names ) if difference : for op in self. ops : if op. output. name not in outputs : graph. add ( op ) else : for op in self. ops : if op. output. name in outputs : graph. add (...
[ 0.645553708076477, 0.21347421407699585, 0.6287597417831421, 0.9634934067726135, -1.0526102781295776, 0.31382209062576294, 0.7557250261306763, -0.33977994322776794, 0.08862779289484024, 0.686587393283844, -0.16151149570941925, -0.20737308263778687, -0.47681862115859985, -1.2741180658340454,...
def plan ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " plan " )
[ 0.5987616777420044, 0.4269871115684509, 0.2867802679538727, 0.19503211975097656, 0.9339843392372131, 1.5814521312713623, -0.0694657638669014, -0.22786475718021393, 0.9523385763168335, -0.3707401156425476, -0.1227853074669838, 0.9209868907928467, 0.35442471504211426, -1.4384746551513672, ...
def test _ atomic _ base64 _ binary _ min _ length _ 3 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ min _ length _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - minlength - 4. xsd ...
[ 0.30127087235450745, -0.1545659750699997, 0.40658313035964966, 1.0921282768249512, -0.024450309574604034, 0.2564469575881958, -0.0810539722442627, -0.2552762031555176, 0.29900458455085754, 0.3621962368488312, -0.3362615704536438, -0.14752161502838135, -0.9027073979377747, -0.38320863246917...
def display _ name ( self ) - > pulumi. output [ str ] : return pulumi. get ( self, " display _ name " )
[ 0.8149013519287109, -0.48109424114227295, 0.5419939756393433, 0.35886579751968384, -0.6689802408218384, 1.0256383419036865, 0.039205215871334076, -0.3825753331184387, 0.05640949308872223, 0.688848614692688, 0.4318788945674896, 0.7156106233596802, 0.5863696336746216, -0.7925674915313721, ...
def fit ( self, h, t = none, method = " least squares ", iterations = 10, normalize = false, multiple _ runs = false, group _ sindy = false, group _ sparse _ method = " 1 - norm ", ) : # approximate derivatives of h self. h = h self. multiple _ runs = multiple _ runs if t is none : if self. multiple _ runs or group _ s...
[ -0.1264488846063614, 0.27130892872810364, 0.7791767120361328, 0.11084213107824326, 0.08087340742349625, 0.3323202133178711, 0.4336269795894623, 0.18849363923072815, -0.8204124569892883, -0.05548088252544403, 0.4309738278388977, 0.6510672569274902, -0.42353299260139465, 1.6663178205490112, ...
def _ _ managed _ policy _ map ( self ) : try : iam _ client = boto3. client ('iam') return managedpolicyloader ( iam _ client ). load ( ) except exception as ex : if self. _ offline _ fallback : # if offline flag is set, then fall back to the list of default managed policies # this should be sufficient for most cases ...
[ -0.09996313601732254, -0.6370944380760193, 0.5072652101516724, -0.7980896234512329, -1.0401606559753418, 0.7127759456634521, -1.23704993724823, -0.4823003113269806, 0.7843774557113647, 0.38227856159210205, 0.16441871225833893, -0.0018485471373423934, -0.43912649154663086, -0.19897972047328...
def test _ constructor ( self ) : assert isinstance ( self. m, mountain )
[ 0.44445306062698364, -0.8114901781082153, 0.0049456581473350525, 0.6099018454551697, 0.871790885925293, 1.3419888019561768, 0.7709512710571289, -0.3005164563655853, 0.21709616482257843, -1.6688005924224854, 0.1936074048280716, 0.05757184699177742, -0.13186250627040863, 0.9472991824150085, ...
def generate _ addr ( self, iaddr = none ) : # if no address were specified if iaddr is none : line = random. randrange ( 0, len ( self. addresses ) ) addr = self. addresses [ line ] [ random. randrange ( 0, len ( self. addresses [ line ] ) ) ] self. lng = addr ['coordinates'] ['longitude'] self. lat = addr ['coordinat...
[ -0.7825953364372253, -0.42633113265037537, 0.6799575090408325, -1.0493669509887695, -0.3103976845741272, 0.34729138016700745, -0.495097815990448, 0.7750614285469055, 1.6053030490875244, 0.07482682913541794, 0.28500834107398987, 0.5363606214523315, -0.26778101921081543, 0.7680655121803284, ...
def linearization _ iter1 ( root ) : if not root : return tree = none node = root stack = [ ] while stack or node : if node : stack. append ( node ) node = node. left else : node = stack. pop ( ) if tree : tree. right = treenode ( node. val ) tree = tree. right else : tree = treenode ( node. val ) result = tree node = ...
[ 0.5527553558349609, 0.7984911799430847, 0.894852340221405, 0.1822383552789688, -0.9794754385948181, -0.3716915249824524, -0.2398931384086609, -0.34386366605758667, 0.018188118934631348, 0.6918273568153381, -0.041657909750938416, 0.014992169104516506, -1.0987874269485474, 1.505045771598816,...
def test _ example _ input _ one _ required _ field _ example _ account ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input one " ) input _ page...
[ -0.5945942401885986, 0.2165563851594925, 0.5763278007507324, 0.3382682502269745, 0.4078938066959381, 1.269464135169983, 0.7345811724662781, -0.004308740608394146, 0.48668187856674194, 0.46794581413269043, -1.2364909648895264, 0.05275866016745567, -0.3735595643520355, 0.3390115201473236, ...
def frequency _ analysis ( ) - > none : # todo fre = frequency ( ) fre. add _ file ( " 215 - 0. txt " ) rank = fre. ranking ( ) flag = true counter = 0 ranking _ counter = 1 while flag : try : wordss = int ( input ( " please enter a frequency : " ) ) if wordss < = 0 : raise valueerror ( " frequency should be larger tha...
[ 0.07468623667955399, 0.8157088160514832, 0.5940243005752563, 0.6682888269424438, 0.4950193762779236, -0.20720507204532623, 0.7540416717529297, 0.16579166054725647, -0.6676487326622009, -0.79598069190979, 0.6724633574485779, 0.7910669445991516, -0.5930813550949097, 0.792365312576294, 0.72...
def test _ transform _ feature _ to _ drop _ not _ present ( df ) : test = drophighpsifeatures ( ) test. fit ( df ) # define new dataframe with additional column data = df. copy ( ) data [ " a " ] = [ 1 ] * 1000 # remove one of the feature to drop data = data. drop ( " drift _ 1 ", axis = 1 ) with pytest. raises ( keye...
[ -0.16258838772773743, 0.5803701877593994, 0.5721096992492676, 0.5454952120780945, 1.3380153179168701, 0.5849724411964417, 0.2564583420753479, 0.4003186821937561, -0.1012219786643982, -0.34786170721054077, -0.9560964703559875, 0.12295079231262207, -0.06685561686754227, -0.12091951072216034,...
def test _ atomic _ any _ uri _ min _ length _ 2 _ nistxml _ sv _ iv _ atomic _ any _ uri _ min _ length _ 3 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - minlength - 3. xsd ", instance = " nistdata...
[ 0.4298877418041229, -0.49978551268577576, 0.5082207322120667, 0.5778183341026306, -0.15110282599925995, 0.008078917860984802, -0.6567646861076355, -0.33371907472610474, 0.4853130280971527, -0.26928019523620605, 0.1705145239830017, -0.09414001554250717, -0.727620005607605, -0.14232586324214...
def test _ neutral ( self ) : opt = dict ( max _ evaluations = 20, limit _ action = " ignore " ) aln = load _ aligned _ seqs ( " data / primate _ brca1. fasta ", moltype = " dna " ) neutral = evo _ app. natsel _ neutral ( " mg94hky ", tree = " data / primate _ brca1. tree ", opt _ args = opt ) result = neutral ( aln ) ...
[ -0.670019268989563, -0.200783833861351, 0.3517393171787262, -0.0853770524263382, 0.3334767520427704, 0.519470751285553, -0.6960371732711792, 0.6919504404067993, -0.2739315330982208, -0.018248075619339943, -0.28769028186798096, 0.4462812542915344, -0.15648989379405975, 0.11721011251211166, ...
def null _ stdout ( ) : stdout = sys. stdout nullout = open ( os. devnull,'w') sys. stdout = nullout try : yield nullout finally : sys. stdout = stdout nullout. close ( )
[ 1.1902227401733398, -0.8421573042869568, 0.7472153902053833, -0.1518847495317459, -0.6743435859680176, -0.6565814018249512, 0.5639263987541199, -0.85114586353302, 0.8516483902931213, -1.3085644245147705, 0.18433262407779694, 0.15384849905967712, 0.36391836404800415, 0.6326514482498169, 0...
def _ random _ generate _ bernstein _ ( fun, num ) : xmn = fun. xmin ( ) xmx = fun. xmax ( ) ymx = max ( fun. bernstein ( ). pars ( ) ) i = 0 while i < num : x = _ uniform _ ( xmn, xmx ) y = _ uniform _ ( 0, ymx ) v = fun ( x ) if v > = y : i + = 1 yield x
[ -0.21929027140140533, 0.4895685017108917, 0.40155109763145447, 0.9693707823753357, -0.7288217544555664, 0.6615150570869446, -0.07369372993707657, -1.0269213914871216, -0.010648982599377632, -0.0016281841089949012, -0.16089853644371033, 0.05264918506145477, -0.5512338280677795, -0.315760999...
def test _ atomic _ hex _ binary _ pattern _ 2 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ pattern _ 3 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - pattern - 3. xsd ", instance = " nistdata...
[ -0.4561865031719208, 0.09356603026390076, 0.6301501393318176, 1.1401543617248535, 0.04693211615085602, 0.9974675178527832, -0.5720320343971252, 0.5488613247871399, 0.3074239194393158, 0.7987175583839417, -0.3520624339580536, -0.1444977968931198, 0.0073905764147639275, -0.20998412370681763,...
def get _ accounts ( self, currency = none, account _ type = none ) : request ='' if currency is not none : request + ='currency ='+ currency if account _ type is not none : request + ='type ='+ account _ type if request! ='' : request = '?'+ request return self. trading _ api _ request ('get ','/ api / v1 / accounts'+...
[ -0.7693185806274414, 0.33172106742858887, 0.5878462791442871, 1.1083508729934692, 0.6646032929420471, -0.366163969039917, 0.015328904613852501, -0.5244901180267334, 0.5409116148948669, -0.1654060035943985, 0.24502605199813843, 1.1705906391143799, -1.139907956123352, 0.23731081187725067, ...
def test _ atomic _ hex _ binary _ enumeration _ nistxml _ sv _ iv _ atomic _ hex _ binary _ enumeration _ 1 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - enumeration - 1. xsd ", instance = " ...
[ -0.41493695974349976, -0.7097135186195374, 0.5678938031196594, 0.6686180233955383, 0.15920867025852203, 0.2123332917690277, 0.1864040195941925, -0.002282419241964817, -0.020973309874534607, 0.295388400554657, -0.2924848198890686, -0.7483657002449036, -0.25299057364463806, 0.463784754276275...
def get ( self, * args, * * kwargs ) : if self. _ session is none : req = requester. request ( " get ", * args, * * kwargs ) else : req = requester. request ( " get ", * args, * * kwargs, session = self. _ session. session ) if req. status _ code = = 429 : raise utils. httperror ( " we are being rate - limited. try aga...
[ 0.08178658038377762, 0.07520335167646408, 0.8134742379188538, 0.48321613669395447, 0.7674465179443359, -0.4079584777355194, -1.3832268714904785, -0.5612636804580688, 0.6740635633468628, -0.6994263529777527, 1.3266594409942627, 1.2711427211761475, -0.7786542773246765, -0.3771294057369232, ...
def _ _ init _ _ ( self, petname, petowner ) : super ( ). _ _ init _ _ ( petname, petowner )
[ 0.6564411520957947, 0.15780717134475708, 0.5812875032424927, 0.14072473347187042, 0.20848910510540009, 0.8318777084350586, -0.9698812961578369, 0.5868856906890869, -0.891998827457428, -0.6441435217857361, -0.13503938913345337, 0.8225711584091187, 0.40265581011772156, -0.6536925435066223, ...
def test _ example _ input _ one _ edit _ cancel _ entity ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper, add _ input _ one ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. table. edit _ row ( " dummy _ input _ one " ) self. assert _ u...
[ 0.29663822054862976, 0.24561333656311035, 0.48269349336624146, 0.7571253180503845, 0.297259122133255, 0.7161176800727844, 0.19618414342403412, 0.7481057643890381, 0.5880672335624695, 0.7632012367248535, 0.15606974065303802, -0.5638567209243774, 0.4310891330242157, 0.056937288492918015, 0...
def test _ atomic _ base64 _ binary _ enumeration _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ enumeration _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - enumeration - 1. xsd ", i...
[ -0.5304880142211914, -0.8699334263801575, 0.5145841240882874, 1.2184754610061646, -0.028167566284537315, 0.014644205570220947, 0.8986255526542664, -0.2118363082408905, -0.3298094570636749, 0.7372117638587952, -0.6573566198348999, 0.11604303866624832, -0.4999408721923828, 0.3209114670753479...
def convert _ examples _ to _ features _ train ( examples, max _ seq _ len, tokenizer, mode ='multimask') : features = [ ] count = [ 0, 0 ] for ( ex _ index, example ) in enumerate ( examples ) : tokens _ sent = tokenizer. tokenize ( example. text _ a ) tokens _ a = tokenizer. tokenize ( example. candidate _ a ) tokens...
[ -0.5224320292472839, -0.594628095626831, 0.7931395173072815, -0.011566334404051304, -0.2742718458175659, -1.0984715223312378, 0.2182226926088333, 0.43921101093292236, -0.36176255345344543, 0.5470055341720581, -1.2401149272918701, 0.4748038947582245, 0.4394136071205139, 0.24448680877685547,...
def attribute _ count ( self ) - > pulumi. output [ int ] : return pulumi. get ( self, " attribute _ count " )
[ 0.861137330532074, 0.5242154002189636, 0.13295497000217438, 0.028039664030075073, 0.4048190414905548, 1.0458877086639404, 0.8222182989120483, 1.1849329471588135, -0.005676476284861565, -0.20923620462417603, 0.16093690693378448, 0.6955220103263855, 0.3346951901912689, -1.081912875175476, ...
def euclidean _ metric ( x, y ) : if x. shape! = y. shape : raise valueerror ( " incompatiable dimensions " ) else : return spatial. distance. euclidean ( x, y )
[ 1.0917896032333374, 0.4490772783756256, 0.41794267296791077, 0.08548657596111298, -0.2347981184720993, 0.6000239253044128, -0.7018412947654724, -0.6482170820236206, -0.9692592024803162, 1.89240300655365, 1.2785876989364624, 0.6419980525970459, 0.7688550353050232, -0.14951907098293304, -0...
def pedestrian _ speaker ( self ) - > optional [ bool ] : if self. _ vehicle _ data. get ( " option _ codes ", { } ) is none : return none if " p3ws " in self. _ vehicle _ data. get ( " option _ codes ", { } ) : return true return false
[ -0.15908634662628174, -0.22231078147888184, 0.5163825154304504, -0.1351437121629715, 0.4514200985431671, 0.22452448308467865, -1.1334173679351807, 0.307719886302948, 0.38244959712028503, 0.41411319375038147, 0.5253967046737671, -0.6865517497062683, -1.138439655303955, 0.10091306269168854, ...
def fetch ( this, subpath : str, rev : int = none, self : bool = true ) - > dict : return this. _ http. get ( [ self. segment, subpath ], rev = rev, self = self )
[ -0.3581894636154175, 0.05381302535533905, 0.7031302452087402, -0.05244049057364464, -0.45379698276519775, 0.40118804574012756, -0.32580801844596863, -0.3471717834472656, -0.6788078546524048, -0.15771172940731049, -0.02906115911900997, 0.3410135805606842, -0.0824185386300087, -0.88834816217...
def phone ( self, phone ) : self. _ phone = phone
[ -0.34224483370780945, 0.4338521361351013, -0.2675964832305908, 0.8855331540107727, 0.1306479424238205, 1.2121251821517944, -0.3435647189617157, 0.4481481909751892, 0.08746539801359177, -0.8822279572486877, -0.6780871152877808, -1.215574026107788, -0.18534977734088898, 0.7707363367080688, ...
def read _ file _ as _ sequence _ dict ( fname : str ) - > dict [ str, str ] : retval = { } curr _ key = none opener = gzip. open if fname. endswith ( ". gz " ) else open with opener ( fname ) as source : for line in source : line = line. strip ( ) if not isinstance ( line, str ) : line = line. decode ( ) if line. star...
[ -0.4217708110809326, -0.7088834047317505, 0.5445903539657593, -0.11882920563220978, -1.5290533304214478, -0.5306463837623596, -0.027070138603448868, 0.4688253402709961, -0.7058941125869751, 0.4587341547012329, -0.3514898717403412, -0.17009082436561584, 0.3833126127719879, 0.552363991737365...
def testloggedoutheaderlocators ( self ) : self. po. header. _ checklocatorsloggedout ( )
[ -0.20102262496948242, -1.099237322807312, 0.21412530541419983, -0.09143486618995667, -0.05764365196228027, 0.41387760639190674, 0.12325949966907501, -0.14608578383922577, 0.6680543422698975, -0.8204781413078308, -0.22513531148433685, -0.5987073183059692, 0.3183766305446625, -0.556699216365...
def post ( self ) : result = {'status':'error'} args = input _ parser. parse _ args ( ) input _ data = args ['file']. read ( ) preds = self. model _ wrapper. predict ( input _ data ) # modify this code if the schema is changed result ['predictions'] = preds result ['status'] ='ok'return result
[ -1.22856605052948, -0.8412776589393616, 0.5216506719589233, 0.46568983793258667, -0.046886105090379715, 0.5680570006370544, -0.5374910831451416, 1.011365294456482, -1.2499788999557495, -0.30901938676834106, -0.502796471118927, -0.14929214119911194, -0.6932658553123474, 0.23982539772987366,...
def lm _ deltaf ( mass, spin, modes ) : f _ 0, tau = get _ lm _ f0tau _ allmodes ( mass, spin, modes ) df = { } for lmn in modes : l, m, nmodes = int ( lmn [ 0 ] ), int ( lmn [ 1 ] ), int ( lmn [ 2 ] ) for n in range ( nmodes ) : df ['% d % d % d'% ( l, m, n ) ] = 1. / qnm _ time _ decay ( tau ['% d % d % d'% ( l, m, n...
[ 0.693666398525238, -0.5421130061149597, 0.46025651693344116, -0.5370784997940063, -0.39911893010139465, -0.1880577653646469, -0.5675515532493591, 0.0803772434592247, -0.35895925760269165, -0.6449361443519592, -0.3534264862537384, -0.48065251111984253, -0.058643072843551636, 0.3618442118167...
def link ( self, basename, path, mime _ type ) : try : media = media. objects. get ( media = basename ) media. file = path media. mime _ type = mime _ type media. save ( encode = false ) self. successful + = 1 except media. doesnotexist, e : print e self. failed + = 1
[ -0.2756138741970062, -0.6074665188789368, 0.42248210310935974, 0.11107494682073593, 1.0046110153198242, 0.8816989660263062, 0.8968954086303711, 0.4117927551269531, -0.4354798197746277, -0.3093777894973755, -0.5322467684745789, 0.4048961102962494, -1.5657308101654053, 0.1489749401807785, ...
def test _ check _ dependency _ expression ( self ) : # it first needs to be able to create the class otherwise will not be # able to do anything else installer = modulesource. create ( " system _ dependency " ) self. assertnotequal ( installer, none ) self. assertequal ( installer. name ( ), " system _ dependency " ) ...
[ -0.31302136182785034, -0.8272071480751038, 0.8091709613800049, 0.2004396766424179, 0.41089531779289246, 0.627068042755127, 0.9510912299156189, 0.6937565803527832, -0.49060532450675964, 0.1308460533618927, -0.5989999771118164, -0.33544471859931946, -0.4598965048789978, 1.3328163623809814, ...
def modified _ on ( self, modified _ on ) : self. _ modified _ on = modified _ on
[ 0.29798534512519836, -1.4520684480667114, 0.30521896481513977, 0.3575182259082794, -0.5390956401824951, 0.47547513246536255, -0.9947023987770081, 1.4674773216247559, -0.14408668875694275, 0.06859903037548065, -1.6443703174591064, 0.0483587346971035, -0.05002319812774658, 1.2481945753097534...
def test _ list _ insert _ unicode _ string ( self ) : key = ('test ','demo ', 1 ) testlistinsert. client. list _ insert ( key, " city ", 3, u " mumbai " ) key, _, bins = testlistinsert. client. get ( key ) assert bins = = {'age': [ 1, 2 ],'city': ['pune ','dehli ', none, u'mumbai'],'name':'name1'}
[ -0.8210763335227966, 0.415054589509964, 0.4614773988723755, -0.6694105863571167, 0.2593204379081726, 0.4262089133262634, -0.6747155785560608, 0.5769381523132324, -0.22323669493198395, 0.5805277228355408, -1.8516334295272827, -0.5682486891746521, -1.025700569152832, -0.15729236602783203, ...
def route _ rc ( self, vdd _ offset ) : # connect vdd rc _ vdd = self. replica _ bitline _ offset + vector ( 1, - 1 ). scale ( self. bitcell _ chars [ " vdd " ] ) mid = [ vdd _ offset. x, rc _ vdd. y ] # note the inverted stacks self. add _ wire ( layers = ( " metal1 ", " via1 ", " metal2 " ), coordinates = [ vdd _ off...
[ 0.22846662998199463, -0.12833425402641296, 0.9402974247932434, -0.9954641461372375, 0.16572047770023346, 0.5995124578475952, 0.4036688804626465, -0.23289935290813446, -0.3132382035255432, 1.5153547525405884, -0.047236811369657516, 0.9492028951644897, -0.539948582649231, -0.1977929621934890...
def handle ( self, req, response ) : return self. app. handle ( req, response )
[ 0.07277268916368484, -1.097343921661377, 0.3652898669242859, 0.936638355255127, 0.9049639701843262, 0.6803537607192993, -0.5672343969345093, -0.22298204898834229, 0.38321825861930847, -1.3798731565475464, 0.45566749572753906, -0.852885365486145, -0.16640211641788483, -0.31347161531448364, ...
def count _ tokens ( corpus ) : nb _ token = 0 for sentence in corpus : nb _ token + = len ( sentence ) return nb _ token
[ 0.33804476261138916, -0.2553226053714752, 0.550578773021698, 0.05272940546274185, 0.635420560836792, -0.4699695110321045, -0.17964720726013184, 1.331922173500061, -0.47642022371292114, 0.03448249772191048, -1.5408977270126343, -0.5850129723548889, 0.3023291528224945, 1.0037425756454468, ...
def _ attempt _ move ( self, steering, distance, noise = noise _ flag ) : try : distance _ ok = 0. 0 < = distance < = self. max _ distance steering _ ok = ( - self. max _ steering ) < = steering < = self. max _ steering if noise : steering + = random. uniform ( - noise _ move, noise _ move ) distance * = random. unifor...
[ -0.820892333984375, 0.24584104120731354, 0.6919275522232056, -0.6531432867050171, 0.3033176064491272, 0.5048014521598816, -1.0321816205978394, -0.7205201983451843, 0.2875220775604248, 0.1956430822610855, 0.17961321771144867, 0.23898786306381226, -0.2597673237323761, 0.002045185538008809, ...
def get _ loc _ attn ( self, query, states ) : attention _ cum, attention _ old = states [ : 2 ] attn _ cat = tf. stack ( [ attention _ old, attention _ cum ], axis = 2 ) processed _ query = self. query _ layer ( tf. expand _ dims ( query, 1 ) ) processed _ attn = self. location _ dense ( self. location _ conv1d ( attn...
[ -0.11032021790742874, -1.258034586906433, 0.35744646191596985, -1.0343093872070312, -0.19348472356796265, -0.36841854453086853, 0.7998443245887756, -0.2576878070831299, 0.2755115330219269, 0.3236280381679535, 0.678189754486084, 0.7230588793754578, 1.365746021270752, -0.7150431871414185, ...
def test _ example _ input _ two _ delete _ row _ backend _ validation ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper, add _ input _ two ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. table. input _ status _ toggle ( " dummy _ input ...
[ 0.4354381859302521, 0.7257184982299805, 0.7326479554176331, 0.7448492050170898, 0.3521510660648346, 0.6186205744743347, -0.3030727505683899, 0.45429500937461853, 0.03263473883271217, 0.44775259494781494, -0.02484564483165741, 0.16757449507713318, 0.36965256929397583, 0.6509407162666321, ...
def delete _ pair _ set ( namespace, workspace, pair _ set _ id ) : body = [ { " entitytype " : " pair _ set ", " entityname " : pair _ set _ id } ] res = firecloud _ api. delete _ entities ( namespace, workspace, body ) return res
[ -1.314961314201355, 0.3230562210083008, 0.20362724363803864, -0.17504724860191345, -0.21005450189113617, -0.5209026336669922, -0.23367145657539368, -0.959744930267334, 0.7242435216903687, -0.7320249676704407, 0.3266727030277252, 0.8384900093078613, -0.9665318727493286, 1.0427894592285156, ...
def _ _ iter _ _ ( self ) : title, * rows = tuple ( self. _ _ iter ) index = title. index ( self. _ _ column ) yield title for row in sorted ( rows, key = row [ index ], reverse = self. _ _ direction ) : yield row
[ -0.7122003436088562, -0.10029882192611694, 0.511985719203949, -0.09213049709796906, -0.5526432991027832, 0.283886194229126, -0.26314398646354675, -1.0289864540100098, -0.7502700686454773, 0.213461235165596, 1.3315598964691162, -0.08623490482568741, 0.17870037257671356, -0.12502293288707733...
def test _ submit _ record _ rejection _ multiple _ same _ lang _ values ( ) : res = requests. post ( f'{ env. awg _ base _ url } / api / cve - id / ', headers = utils. base _ headers, params = {'amount': 1,'cve _ year': 2000,'short _ name':'mitre'} ) id _ num = json. loads ( res. content. decode ( ) ) ['cve _ ids'] [ ...
[ -0.13197118043899536, 0.3893016278743744, 0.5981243252754211, -0.11144068837165833, 0.6158379912376404, 0.47450584173202515, -0.1392291933298111, 0.37162771821022034, 0.20937280356884003, 0.14082233607769012, -1.3169163465499878, 0.7447275519371033, -0.36721304059028625, 0.1786731928586959...
def update ( self, currentobservation ) : # update the current estimate based on the gain self. estimate = self. estimate + np. dot ( self. gain, ( currentobservation - self. h ( self. estimate ) ) ) # find current jacobian value jacval = self. hjac ( self. estimate ) # update the gain based on results from hte previou...
[ 0.4506772756576538, -1.5806974172592163, 0.5784422755241394, -0.19883500039577484, -0.40970665216445923, -0.05144871026277542, 0.47860288619995117, -0.2470376193523407, -0.7128909230232239, 0.2824910581111908, 0.4166933596134186, 0.7584480047225952, -0.13579007983207703, 0.6843301653862, ...
def test _ mail _ webhook _ none ( self ) : mail _ ticket = mailticket ( ) mail _ ticket. mailtitle = " test " mail _ ticket. mailmessageid ='123456'mail _ ticket. mailsenderaddress ='test @ example. com'mail _ ticket. githubissuenumber = 1 mail _ ticket. save ( ) httpretty. register _ uri ( uri = " http : / / 127. 0. ...
[ 0.19097356498241425, 0.17109480500221252, 0.6750274896621704, -0.6290245652198792, 0.6768758296966553, 0.2890477180480957, -0.2683923840522766, 0.4952011704444885, -0.07921411097049713, -0.5686658024787903, -1.5853033065795898, 0.24753440916538239, -0.5923697352409363, 0.5694032907485962, ...
def _ sample _ rois ( all _ rois, all _ scores, gt _ boxes, fg _ rois _ per _ image, rois _ per _ image, num _ classes, parsing _ labels = none ) : # overlaps : ( rois x, gt _ boxes ) ( 2000, 15 ) # roi 和 gt box 的 iou overlaps = bbox _ overlaps ( all _ rois [ :, 1 : 5 ]. data, gt _ boxes [ :, : 4 ]. data ) max _ overla...
[ -0.3571299910545349, -0.47807109355926514, 0.834347128868103, -0.1785942167043686, -0.3592829704284668, -0.33985641598701477, 0.5990369319915771, -0.1605198234319687, 0.0040260800160467625, -0.014959415420889854, 0.9088545441627502, 0.4976791739463806, 0.1441033035516739, -0.49895447492599...
def encode ( self, inputs, masks, encoder _ state _ input, is _ train, hparams ) : context _ embed, question _ embed = inputs p _ mask, q _ mask = masks batch _ size = hparams. batch _ size, input _ keep _ prob = hparams. input _ keep _ prob cell = basiclstmcell ( self. size, state _ is _ tuple = true ) d _ cell = swit...
[ -0.10736411809921265, 0.3325369954109192, 0.7953488230705261, 1.0455241203308105, 0.19329828023910522, 0.27919015288352966, 0.8406723141670227, -0.6275877952575684, -0.18171104788780212, -0.3951263129711151, -0.3188537657260895, 0.742539644241333, 0.6785892844200134, 0.13385264575481415, ...
def expand _ compact _ submitted _ ballot ( compact _ ballot : compactsubmittedballot, internal _ manifest : internalmanifest, context : ciphertextelectioncontext, ) - > submittedballot : # expand ballot and encrypt & hash contests plaintext _ ballot = expand _ compact _ plaintext _ ballot ( compact _ ballot. compact _...
[ 0.589652955532074, -0.1361042708158493, 0.6371607780456543, -1.0622631311416626, -0.6852453947067261, 0.15891070663928986, -0.40576139092445374, -0.1319512277841568, 0.6980978846549988, -0.9419257640838623, -0.08887938410043716, 1.268308401107788, -0.19253693521022797, -0.5898141264915466,...
def update ( self, data : dict ) : for k, v in dict ( data ). items ( ) : setattr ( self, k, v )
[ -1.3111566305160522, -1.2799633741378784, 0.2232959270477295, -1.0097380876541138, -0.8093249201774597, 0.47500500082969666, -1.1326258182525635, 0.24082864820957184, -0.21662047505378723, 0.2013467401266098, -0.5471748113632202, -0.4118745028972626, 0.3728564977645874, 0.7664958238601685,...
def reviewphoneticcurrentline ( self, inputevent ) : self. _ reviewcurrentline ( inputevent, 3 ) return true
[ -0.3723985552787781, -0.7117663025856018, 0.19155696034431458, -0.5732921361923218, -0.31565573811531067, 1.4276127815246582, -0.6788007616996765, -0.7188379764556885, -0.43015438318252563, -0.3900911509990692, 0.11850245296955109, -0.26840493083000183, -0.964713990688324, -0.9794352054595...
def parse _ username ( username, decode = true ) : username = str ( username ) username = username. decode ('utf8') stripped = username. strip ( ) if not decode : stripped = stripped. encode ('utf8') # capitalize the username according to the mediawiki standard # note : unfortunately. title ( ) or. capitalize ( ) don't...
[ 0.1019880548119545, 0.012711902149021626, 0.496975839138031, -0.32500141859054565, -1.6201165914535522, -0.32103490829467773, -0.0032037633936852217, 0.22308073937892914, 0.7960880994796753, 0.28441840410232544, 0.10857809334993362, -0.28521594405174255, -0.5149945616722107, -0.20841549336...
def subgroup _ with _ path ( self, path ) : path = pathlib. path ( path ) subgroup = afmgroup ( ) for afmdata in self : if afmdata. path. samefile ( path ) : subgroup. append ( afmdata ) subgroup. path = path return subgroup
[ 0.716317892074585, -0.7538076639175415, 0.37697723507881165, -0.3432307541370392, -1.1167902946472168, 0.15506954491138458, -0.3238409161567688, -0.9100328087806702, -0.009268478490412235, -0.8084842562675476, 0.7576723694801331, 0.894798755645752, -0.24353596568107605, 0.4433231055736542,...
def are _ you _ signed _ in ( self ) : if len ( logged _ user ) = = 0 : api. abort ( 401, " you cannot perform this action without signing in " ) return logged _ user ['user']
[ -0.6454575061798096, -0.9272164106369019, 0.6319029927253723, 1.4791815280914307, -0.2714012563228607, -0.4039786458015442, 0.35055702924728394, 0.5641182661056519, 0.1867990344762802, -0.3699832260608673, 0.04593852162361145, 0.19182731211185455, -0.7256464958190918, -0.5163944363594055, ...
def write ( self, data : bytes ) - > none : data _ to _ send = data total _ bytes = len ( data _ to _ send ) self. _ _ logger. debug ( " writing % d bytes ", total _ bytes ) while len ( data _ to _ send ) > 0 : try : sent _ bytes = self. _ _ socket. send ( data _ to _ send ) data _ to _ send = data _ to _ send [ sent _...
[ -0.9847283363342285, 0.4503072500228882, 0.5616860389709473, -0.18699270486831665, 0.8456127047538757, 0.1250159740447998, 0.5213553309440613, -0.23617416620254517, -0.1298934817314148, -0.10740093886852264, -0.39799100160598755, 0.43211549520492554, -0.9791738986968994, 0.527651309967041,...
def node _ for _ new ( node : list, iterating _ var, sequence, stmt _ part ) - > none : node. append ( [ " node _ for ", iterating _ var, sequence, stmt _ part ] )
[ -1.0142602920532227, 0.5131974220275879, 0.3498314619064331, -0.3878895938396454, 0.3499397039413452, -0.7013816833496094, -0.7818325161933899, 0.5457056760787964, -1.31228768825531, 0.4803663194179535, -0.4416101276874542, 0.6029828190803528, 0.2587858736515045, 0.7675197720527649, -0.2...
def list ( ctx, # optional main parameter startvolumeid = none, # optional main parameter limit = none, # optional main parameter volumestatus = none, # optional main parameter accounts = none, # optional main parameter ispaired = none, # optional main parameter volumeids = none, # optional main parameter volumename = ...
[ 0.21841378509998322, -0.8752334713935852, 0.8916956782341003, 0.31902679800987244, 0.5506498217582703, -0.21766777336597443, -0.5019195675849915, 0.38174426555633545, 0.4006263315677643, 0.6525811553001404, 0.03844819217920303, 0.6057568192481995, -0.6369651556015015, -0.3288605809211731, ...
def skip _ value ( self ) : try : prefix = self. _ read _ int ( ) except unexpectedeoferror : raise eoferror type = prefix & 0xf tag = prefix > > 4 # if the lsb of the wiretype is 1, it is length - delimited. # if not, it is a primitive type with known size. if type & 0x01 : length = self. _ read _ int ( ) self. _ skip...
[ -0.5124648809432983, 0.33209213614463806, 0.7882471084594727, -0.28278201818466187, -0.42291727662086487, 0.2965274751186371, 0.7758755683898926, -1.0204282999038696, -0.7222663760185242, 0.39682987332344055, 0.6577184200286865, 0.7083978652954102, -0.2962483763694763, 0.5433717966079712, ...
def stochasticdescentstep ( self, x, y ) : w _ new = np. copy ( w ) for i in range ( d ) : grad = self. vector _ cost ( x, y ) * x [ i ] w _ new [ i ] + = eta * grad return newweights
[ -0.5605654716491699, 0.48416048288345337, 0.6039072871208191, 0.25826317071914673, -0.2731541395187378, -0.017179640009999275, -0.8951932191848755, -1.103938102722168, -0.5781939625740051, 1.152190089225769, 0.17652009427547455, 0.5742104053497314, 0.7793510556221008, 0.5823681950569153, ...
def _ _ init _ _ ( self, baseurl, tokenno = " " ) : # base url is like https : / / maps. foresitegroup. net / arcgis self. baseurl = baseurl self. tokenno = tokenno # optional, but if the user knows the token - can pass it in self. useragent ='my - app / 0. 0. 1'# set an initial placeholder for the headers - once we ge...
[ 0.14521297812461853, -0.2315550446510315, 0.5088215470314026, 0.10555119067430496, -0.2044304609298706, -0.5562828779220581, -0.987829864025116, -0.12846380472183228, -0.11530917882919312, -1.1046948432922363, -0.03587298095226288, -0.019780362024903297, 0.40448740124702454, -0.07717598229...
def setnoise ( self, noise ) : self. noise = noise
[ -0.051465265452861786, -0.0868634507060051, 0.31564632058143616, -0.1365358978509903, 0.46589523553848267, 0.2803589701652527, -0.308493435382843, -0.23326104879379272, 0.22525666654109955, -0.29191234707832336, -1.3244731426239014, 0.3289461135864258, -0.5626631379127502, 0.88791537284851...
def test _ login _ wrongpass ( self ) : rv = self. app. post ('/ weblab / login ', data = dict ( username ='any ', password ='wrongpassword') ) " " " : type : flask. wrappers. response " " " self. assertequal ( rv. status _ code, 302, " login post with wrong pass does not return 302 " ) self. asserttrue ( rv. location....
[ -0.15161652863025665, -0.37214022874832153, 0.6795188784599304, 0.6600847840309143, 0.4689773619174957, 1.787792444229126, 0.18743133544921875, 0.25164794921875, 0.5817449688911438, -0.9180484414100647, -0.1097322553396225, 0.1699385792016983, 0.021603170782327652, -0.006223463453352451, ...
def for _ h ( ) : for row in range ( 7 ) : for col in range ( 5 ) : if col in ( 0, 4 ) or row = = 3 : print ( " * ", end = " " ) else : print ( " ", end = " " ) print ( )
[ 0.7339745759963989, 0.6623122096061707, 0.6029279828071594, 0.8211550712585449, -0.04648696631193161, 0.43754127621650696, -0.09385573863983154, 0.018734833225607872, -0.988749086856842, 0.19375546276569366, 0.47316238284111023, 0.3604905605316162, -0.3052293062210083, 0.2591916620731354, ...
def look _ in _ direction ( cls, snake, direction ) : current _ position = snake. head vision = np. zeros ( 3 ) # wall, apple, snake food _ is _ visible = false tail _ is _ visible = false distance = 0 current _ position + = direction distance + = 1 while snake. landscape. size [ 0 ] > current _ position. x > = 0 and s...
[ -0.18465061485767365, -0.2695259749889374, 0.5976670980453491, -0.5215467214584351, -0.2557883858680725, -0.20061448216438293, 0.25801271200180054, -0.8342114686965942, 0.48804694414138794, 0.7625554800033569, -0.5945681929588318, 1.37053382396698, -0.24704313278198242, 0.4276738166809082,...
def build _ options ( slot ) : if slot = ='cryptohelpintent': options = [ ] options. append ( {'text': " bitcoin price ",'value': " what is the price of bitcoin? " } ) options. append ( {'text': " ethereum price ",'value': " what is the price of ethereum? " } ) options. append ( {'text': " litecoin price ",'value': " w...
[ -0.8853310942649841, -0.21867448091506958, 0.6972128748893738, -0.3261547088623047, -0.6163830161094666, -0.5677981972694397, -0.20350559055805206, -0.8381916284561157, -0.6014834642410278, 0.9354340434074402, -0.1201629713177681, -0.08145356178283691, 0.05222110450267792, 0.69756591320037...
async def async _ browse _ media ( self, media _ content _ type = none, media _ content _ id = none ) : if not self. _ scope _ ok : _ logger. debug ( " spotify scopes are not set correctly, this can impact features such as media browsing " ) raise notimplementederror if media _ content _ type in [ none, " library " ] :...
[ -0.2643187344074249, -0.4682920277118683, 0.5265580415725708, 0.5157200694084167, 0.6163842082023621, -0.6114941835403442, -0.583602786064148, -0.8806079030036926, 0.3640843331813812, -0.3403092920780182, 1.0347490310668945, 0.7499769926071167, -0.9614285230636597, 0.38326379656791687, 0...
def tell ( self ) : # type : ( ) - > int return self. _ uncompressed _ position
[ 0.17697757482528687, -0.018412470817565918, 0.3710114061832428, -0.4301498532295227, 0.288921058177948, 0.6882531642913818, 1.1616379022598267, 0.0691467747092247, -0.8855351805686951, -0.38498780131340027, -0.27950233221054077, -0.4067547917366028, -0.9720481634140015, -0.4723675847053528...
def filters ( self ) : url = lendingclub _ url ('accounts ', self. investor _ id,'filters') response = self. session. get ( url = url ) response. raise _ for _ status ( ) return [ namedtuple _ from _ json ('lendingclubfilter ', d ) for d in response. json ( ) ]
[ -1.0754979848861694, 0.4298451840877533, 0.3113746643066406, 0.390457421541214, 0.6086028814315796, -0.07833710312843323, -1.1018364429473877, -0.6430459022521973, -0.3444257080554962, -0.08474859595298767, -0.41527503728866577, 0.47827789187431335, -1.0342527627944946, 0.3574094772338867,...
def send _ bleach ( method ) : try : with open ( " bleach. txt " ) as b : bl = b. readlines ( ) msg = " \ n * ^ ( beep ) * * ^ ( boop! i'm a bot! please contact ) * [ * ^ ( u / cyanidesuppository ) * ] ( https : / / reddit. com / user / cyanidesuppository ) * ^ ( with ) * * ^ ( any ) * * ^ ( issues ) * * ^ ( or ) * * ^...
[ 0.6681317090988159, 0.09160612523555756, 0.6782944798469543, -0.2647233009338379, -0.024850089102983475, 0.004013556055724621, -0.28504878282546997, -0.3194453716278076, 0.026448797434568405, 0.12665905058383942, -0.32954421639442444, 0.6156097054481506, -0.90201336145401, 0.22185526788234...
def dnlsim ( system, u, t = none, x0 = none ) : # if not isinstance ( system, pnlss ) : # raise valueerror ( f'system must be a pnlss object { type ( system ) }') # pass # else : # system = nonlinearstatespace ( * system ) u = np. asarray ( u ) if u. ndim = = 1 : u = np. atleast _ 2d ( u ). t if t is none : out _ sampl...
[ -0.22094152867794037, 0.439187228679657, 0.9850595593452454, -0.05645960569381714, -0.1367107778787613, -0.34304994344711304, -0.14115914702415466, 0.31547772884368896, 0.5496244430541992, -0.033077046275138855, 0.08906222134828568, -0.545315682888031, 0.8886932134628296, 0.248194456100463...
def rsmetrics _ load ( self, download = true ) : self. rsmetrics _ df = self. load _ dataset ('rsmetrics')
[ 0.6043943762779236, 0.8634491562843323, 0.2539483308792114, -0.3463194668292999, -0.3942795395851135, 0.36926454305648804, 0.7930789589881897, 0.15811359882354736, -0.41800782084465027, -0.1014421135187149, 0.4598609507083893, 0.7900711297988892, -0.8964316844940186, -0.6260272264480591, ...
def getintermixbycluster ( self ) : if self. rng is none : raise notimplementederror ( " must set adjacency matrix first " ) if self. clusterids [ 0 ] = = - 1 : raise notimplementederror ( " must set cluster ids first " ) binds = getindscsr ( self. rng ) nbs = np. zeros ( ( self. nclusts, 4 ) ). astype ( int ) m = np. ...
[ 0.06885881721973419, -0.1480361372232437, 0.6842356324195862, 0.4822019934654236, 0.6622112393379211, -0.42127424478530884, 1.1053825616836548, -0.16793903708457947, 0.3175166845321655, 0.20376864075660706, 0.025022726505994797, 0.5321166515350342, -1.9151225090026855, 0.447828471660614, ...
def test _ atomic _ qname _ max _ length _ 1 _ nistxml _ sv _ iv _ atomic _ qname _ max _ length _ 2 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - maxlength - 2. xsd ", instance = " nistdata / atomic ...
[ 0.1409120410680771, -0.33446642756462097, 0.364496648311615, 0.3658945858478546, -0.5489460825920105, 0.47864997386932373, -0.7805871367454529, -0.36365431547164917, 0.3434014916419983, 0.2876478433609009, -0.6001405119895935, -0.032952066510915756, 0.23899903893470764, -0.1161549687385559...
def _ builddocumentnode ( self, rawdocnode ) : if ('id'not in rawdocnode ) or not ( isinstance ( rawdocnode, dict ) ) : raise documentationspecificationerror ('no entity id was provided for an element in the documentation'' specification. an id must be provided for each ontology'' entity you wish to include in the onto...
[ -0.6935579776763916, 0.23789988458156586, 0.8069406151771545, -0.4729599952697754, -0.179873988032341, -0.13145463168621063, 0.024522116407752037, 0.25506287813186646, 0.2547501027584076, 0.2744975984096527, 0.6062412858009338, 0.6807389259338379, 0.7292106747627258, 0.07165615260601044, ...
def replace _ word ( word ) : # # # your code here # for numbers : try : val = float ( word ) return " num " except : pass # for dates : try : datetime. datetime. strptime ( word,'% y - % m - % d') return " dat " except : pass try : datetime. datetime. strptime ( word,'% m - % d - % y') return " dat " except : pass try...
[ -0.3203463852405548, -0.05611767619848251, 0.8115491271018982, 0.23438028991222382, -0.9246628880500793, 0.45485952496528625, -0.19517916440963745, 0.1330942064523697, 0.031494274735450745, -0.30770596861839294, 0.17076563835144043, 0.6331261992454529, -0.01738295890390873, 0.3198169469833...
def license _ resource ( self ) - > optional [ pulumi. input ['regioncommitmentlicenseresourceargs'] ] : return pulumi. get ( self, " license _ resource " )
[ 1.71548593044281, -0.5566133856773376, 0.2999475300312042, -0.40731310844421387, 0.2518642842769623, 0.7296669483184814, 0.3721133768558502, 1.2684367895126343, 1.4161940813064575, 0.21550698578357697, 0.9955832362174988, 0.3387466371059418, -0.4646010100841522, -0.4390404224395752, -0.8...
def myrec ( rgb, x, y, w, h, v = 20, color = ( 200, 0, 0 ), thikness = 2 ) : cv2. line ( rgb, ( x, y ), ( x + v, y ), color, thikness ) cv2. line ( rgb, ( x, y ), ( x, y + v ), color, thikness ) cv2. line ( rgb, ( x + w, y ), ( x + w - v, y ), color, thikness ) cv2. line ( rgb, ( x + w, y ), ( x + w, y + v ), color, th...
[ 0.3886181712150574, -0.2057504504919052, 1.0165239572525024, -0.912034809589386, 0.5407895445823669, -0.27969300746917725, 0.15201066434383392, -0.2583606243133545, -0.01213389914482832, 0.149309441447258, -0.011624248698353767, 0.3756870627403259, 0.25352901220321655, 0.2852459251880646, ...
def process _ note ( self, note ) : if note is none or note. handle in self. referenced [ " note " ] : return self. referenced [ " note " ]. add ( note. handle ) for tag in note. text. get _ tags ( ) : if tag. name = ='link': if tag. value. startswith ( " gramps : / / " ) : obj _ class, prop, value = tag. value [ 9 : ]...
[ 0.16964983940124512, -0.41956785321235657, 0.7496180534362793, -0.36992883682250977, 1.3858782052993774, -0.18197135627269745, 0.3688676059246063, -0.9087625741958618, 0.27606281638145447, -0.5309288501739502, 0.1398029625415802, 0.4585021734237671, -0.0819653570652008, 0.4645061790943146,...
def test _ get _ applications ( self ) : pass
[ 0.27564260363578796, 0.4684973657131195, 0.24694858491420746, 1.335052728652954, 0.28020724654197693, 0.455529123544693, 0.9625821709632874, -0.5986561179161072, 0.3895423114299774, -0.37871596217155457, -0.5678564310073853, 0.0761386826634407, -0.9712711572647095, 0.3798210024833679, -0...
def get _ playlist _ from _ context ( self, context ) : if context [ " uri " ] = = common. saved _ tracks _ context _ uri : return self. user _ saved _ playlist ( ) playlist _ id = id _ from _ uri ( context [ " uri " ] ) result = self. get _ api _ v1 ( " playlists / { } ". format ( playlist _ id ) ) return playlist ( r...
[ 0.09667951613664627, -0.25265881419181824, 0.24522385001182556, 0.7701611518859863, 0.6200025081634521, -0.004497382789850235, 0.0030017108656466007, -1.2649954557418823, 0.945677638053894, 0.04293201491236687, 0.19489166140556335, 0.4002758860588074, -0.5738034844398499, -1.0361407995224,...
def speedtocommuc ( self, speed ) : # self. logger. debug ( " translated xy move command from { } to { } ". format ( speed, float ( speed ) * 1000 ) ) encoder _ units = float ( speed ) * 39. 3701 * ( 1633 / 9. 89 ) self. logger. debug ( " translated xy move command from { } to { } ". format ( speed, encoder _ units ) )...
[ -0.20533408224582672, -0.4981662929058075, 0.4638168215751648, -0.3674810528755188, 0.5407675504684448, -0.5791556239128113, 0.6321007013320923, 0.11465548723936081, 0.19208791851997375, 0.024362605065107346, -0.38017699122428894, 0.3964993357658386, -0.7628774046897888, 0.4523504078388214...
def add _ placeholder ( self ) : self. video = tf. placeholder ( tf. float32, [ self. batch _ size, self. hparams. enc _ max _ len, self. hparams. video _ features _ dim ] ) self. caption _ input = tf. placeholder ( tf. int32, [ self. batch _ size, self. hparams. dec _ max _ len ] ) self. caption _ target = tf. placeho...
[ 0.04819917306303978, 0.3990449905395508, 0.6638720631599426, 0.2719017267227173, 0.5138465762138367, 0.6962285041809082, 0.8904088735580444, 0.14983683824539185, 0.0010291290236636996, -0.1762329339981079, -0.43326535820961, 0.9251695871353149, 0.18733489513397217, 0.28488531708717346, 0...
def deconv _ hyperlap ( y, h, lam = 1000., outeriter = 6, inneriter = 1, reg0 = 0., alpha = none, n _ threads = 6, logged = false ) : # see the paper for definition of the following hyperparameter beta = 1. beta _ inc = 2. 8 if alpha is not none : look = get _ lookup ( alpha ) else : alpha = 1. # make everything scale ...
[ -0.04876431077718735, 0.6350299715995789, 1.168045163154602, 0.6024595499038696, -1.1160399913787842, -0.28169161081314087, -0.22499598562717438, -0.0894608199596405, -0.6070684194564819, 0.2824922800064087, -0.34160691499710083, -0.263824462890625, -0.335941344499588, 0.8590844869613647, ...
def load _ nvtfile ( filename, mazetype ='', showheader = false ) : timestamps = [ ] possamples = [ ] eulsamples = [ ] with open ( filename,'rb') as f : header = f. read ( 16 * 2 * * 10 ) # the first 16 kb are an ascii text header if showheader : print header count = - 1 while true : swstx = f. read ( 2 ) # uint16, val...
[ 0.01621677540242672, 0.22503884136676788, 0.8916481733322144, -0.0968494787812233, -0.2886984348297119, -0.6319931745529175, 0.7042836546897888, -0.2585556209087372, 0.19325454533100128, 0.32760536670684814, -0.8425259590148926, 0.39939168095588684, -0.19224488735198975, 0.7515318393707275...
def get _ continue ( ) : # draw the menu selection menu _ selection ( " menu _ 1 - continue... ", menu _ 1 ) value = get _ integer ( " enter selection ", " 0 ", len ( menu _ 1 ) - 1 ) # clear the menu and the selection line clear _ area ( 20, 6, 40, 15, background, background ) clear _ line _ 23 ( ) # print ( value ) i...
[ 0.23406197130680084, 0.09234870225191116, 0.7694597840309143, 0.32132890820503235, -0.5708452463150024, 0.4425069987773895, 0.948443591594696, -0.2688050866127014, -0.4392983317375183, -0.04239565134048462, 0.407100647687912, 0.6715855002403259, -1.0522668361663818, 0.3162805438041687, 1...
def get _ spaczz _ doc ( doc : doc ) - > bool : return any ( [ token. _. spaczz _ token for token in doc ] )
[ 0.8175057172775269, 0.2991579473018646, 0.0062920404598116875, 0.7510621547698975, -0.7865761518478394, 0.20631185173988342, -0.3945300579071045, 0.4401818811893463, -0.369832307100296, -0.037683483213186264, -0.7482725381851196, -0.21906545758247375, -0.2526385188102722, 0.382665544748306...
def test _ create _ system ( self ) : parameters = ['config'] environment ='system'module _ text ='migration for the submitty system.'parameter _ text = " " " : param config : object holding configuration details about submitty : type config : migrator. config. config " " " self. create _ test _ runner ( module _ text,...
[ 0.17453907430171967, 0.4510102868080139, 0.46300774812698364, 0.19964243471622467, 1.5003215074539185, 0.9092164039611816, 0.26613107323646545, -0.6944179534912109, 0.14051230251789093, -0.053797345608472824, -0.5504017472267151, 0.1629330962896347, -0.09413252025842667, 1.533169150352478,...
def writennangspread ( self, ctype, fname, ainds ) : if ctype not in self. clsnaps. keys ( ) : raise notimplementederror ( " unknown cluster type in angspread " ) cutoff = self. cldict [ ctype ] if self. comm. get _ rank ( ) = = 0 : fid = open ( fname,'w') clsnaps = self. clsnaps [ ctype ] for clsnap in clsnaps : angsp...
[ -0.8572350144386292, -0.7209170460700989, 0.5444281101226807, -0.5855885148048401, -0.006864192429929972, 1.248582363128662, 0.024896806105971336, -0.48956361413002014, 0.5297732353210449, 0.5892513990402222, 0.3040267527103424, -0.008890090510249138, 0.7972210645675659, 0.5446818470954895...