text
stringlengths
25
2.19k
embedding
listlengths
768
768
def update _ batch ( self, mini _ batch : list [ tuple [ np. ndarray, np. ndarray ] ], eta : float ) - > none : b _ hat = [ np. zeros ( b. shape ) for b in self. biases ] w _ hat = [ np. zeros ( w. shape ) for w in self. weights ] for x, y in mini _ batch : delta _ b _ hat, delta _ w _ hat = self. backpropagate ( x, y ...
[ 0.3482835292816162, -0.8140538930892944, 0.7139680981636047, -0.1541207879781723, 0.31434234976768494, -0.06819047778844833, -0.1607542484998703, 0.5495612621307373, 0.017958521842956543, 0.5702350735664368, -0.20925192534923553, 0.45548009872436523, -0.45969459414482117, 0.242440998554229...
def vox _ pack _ content ( num _ models : int ) - > bytes : return struct. pack ('< i ', num _ models )
[ -0.5416775345802307, 0.16675718128681183, 0.23071710765361786, -0.04144764691591263, 0.07255399227142334, 0.26837068796157837, -0.19162295758724213, -1.2002142667770386, -0.2851921021938324, -0.3600049912929535, -0.9512526392936707, -0.7097141146659851, -0.7855651378631592, -0.982137084007...
def add _ register ( self, reg : regsregister ) - > none : if not isinstance ( reg, regsregister ) : raise typeerror ( " the'reg'has invalid type. " ) if reg. name not in self. get _ reg _ names ( ) : self. registers. append ( reg ) else : logger. warning ( f " cannot add register with same name : { reg. name }. " )
[ -0.7815027832984924, 0.8881598114967346, 0.1995173990726471, 0.3827183246612549, 0.6944580078125, 0.11627468466758728, -0.5682243704795837, -0.8087563514709473, 0.32191380858421326, -0.5734089016914368, -0.9418659210205078, 0.5232326984405518, -0.5906165242195129, 1.0380258560180664, 0.3...
def decode _ cpu4 _ holo ( self, cpu4 ) : cpu4 _ reshaped = cpu4. reshape ( 2, - 1 ) cpu4 _ shifted = np. vstack ( [ np. roll ( cpu4 _ reshaped [ 0 ], 1 ), np. roll ( cpu4 _ reshaped [ 1 ], - 1 ) ] ) return decode _ position ( cpu4 _ shifted, self. cpu4 _ mem _ gain )
[ 0.32619622349739075, -0.16312257945537567, 0.6430702209472656, 0.7016764283180237, -0.12837371230125427, -0.20687833428382874, 0.2978326082229614, 0.4307701289653778, -0.42842575907707214, -0.048798467963933945, -1.0096675157546997, -0.06711944937705994, -0.9056123495101929, -0.24407047033...
def target _ portal ( self, target _ portal ) : self. _ target _ portal = target _ portal
[ -1.2662787437438965, -1.2226084470748901, 0.10555928200483322, -0.720381498336792, 0.5809560418128967, 1.6092511415481567, 0.3309089243412018, -0.17075397074222565, 0.09212300926446915, 0.5479788184165955, -0.34181058406829834, 0.305826336145401, 0.3913053274154663, -1.0243384838104248, ...
def _ _ init _ _ ( self ) : self. scheme = super ( fourchanlinks, self ). scheme self. netloc ='boards. 4chan. org'self. apiloc ='a. 4cdn. org'self. imgloc ='i. 4cdn. org '
[ -0.5663943886756897, -0.3033750355243683, 0.21635125577449799, -0.626690149307251, 0.7163664698600769, -0.5012006759643555, 0.6469576358795166, 0.44561848044395447, 0.23761670291423798, -0.8551605343818665, -1.1511367559432983, -0.25799840688705444, 0.21811790764331818, 0.5608928799629211,...
def log _ exception ( sender, exception, * * extra ) : sender. logger. exception ('got exception during processing : % s ', exception )
[ 0.2732759714126587, 0.24105273187160492, 0.672107458114624, -0.28704342246055603, -0.18217675387859344, -0.6928839683532715, -0.5206528902053833, 0.7985969185829163, 0.4983656108379364, 0.6094183921813965, -0.8442383408546448, 0.31515660881996155, 0.5525625348091125, 0.5056930184364319, ...
def test _ breadth _ first _ trav ( gr ) : gr. add _ edge ( 1, 2 ) gr. add _ edge ( 1, 3 ) gr. add _ edge ( 2, 4 ) gr. add _ edge ( 2, 5 ) gr. add _ edge ( 3, 6 ) gr. add _ edge ( 3, 7 ) assert gr. breadth _ first _ traversal ( 1 ) = = [ 1, 2, 3, 4, 5, 6, 7 ]
[ 0.1941729336977005, 1.5211702585220337, 0.663346529006958, 0.5493662357330322, 1.6446493864059448, -0.4165720045566559, 1.1140493154525757, -0.14857064187526703, 0.1462985724210739, 0.4332727789878845, -0.628869891166687, 0.334647536277771, 0.03861267492175102, -0.16111741960048676, -0.4...
def request _ memory _ generation _ lookup ( duration, roq = false ) : if roq : return int ( max ( [ 8, min ( [ 60, duration ] ) ] ) ) else : return 8
[ -1.3630180358886719, 0.10104954242706299, 0.48879414796829224, -0.00259793340228498, 0.33065611124038696, -0.18850885331630707, -0.0840524286031723, -0.44020625948905945, -0.2552065849304199, -0.05449457839131355, 0.8863284587860107, 0.5631201267242432, -0.04891097918152809, 0.031099852174...
def solve _ ifelse ( expr, vars ) : for condition, result in expr. conditions ( ) : if boolean. asbool ( solve ( condition, vars ). value ) : return solve ( result, vars ) return solve ( expr. default ( ), vars )
[ -0.34052759408950806, 0.8383309245109558, 0.4082159101963043, 1.0918880701065063, 0.8523368835449219, -1.4664227962493896, -0.5126841068267822, 0.13638930022716522, -1.3907190561294556, 0.6151637434959412, 0.2017504721879959, -0.5315576791763306, -0.7896102070808411, 0.22954630851745605, ...
def pack _ files _ for _ upload ( sources, should _ unpack, follow _ symlinks, exclude _ patterns = none, force _ compression = false, ignore _ file = none, ) : exclude _ patterns = exclude _ patterns or [ ] def resolve _ source ( source ) : # resolve symlink if desired resolved _ source = source if follow _ symlinks :...
[ -0.07625401765108109, 0.35200244188308716, 0.8356162905693054, -0.6347144246101379, -0.5357670783996582, -0.30436280369758606, 0.5343576073646545, 0.23971356451511383, 0.04895417392253876, -0.4759668707847595, -0.41456514596939087, -0.2945874333381653, 0.7811877131462097, 0.382363229990005...
def verify _ child _ table ( self, parent, children ) : child _ table = wpan _ table _ parser. parse _ child _ table _ result ( parent. wpanctl ( " get ", " get " + wpan. wpan _ thread _ child _ table, 2 ) ) print ( child _ table ) verify ( len ( child _ table ) = = len ( children ) ) for child in children : ext _ addr...
[ 1.0176714658737183, -0.46570056676864624, 0.7198494076728821, 0.2995198667049408, 0.21279174089431763, 0.6451740860939026, 0.16423720121383667, -0.966418445110321, -0.42101532220840454, -0.3878811001777649, -1.2182765007019043, 0.3287504315376282, -0.5145629048347473, 0.44346341490745544, ...
def test _ cant _ delete _ branch _ invalid _ id ( self ) : json _ response = api _ call ( self, " delete ",'/ branch / delete ', dict ( id = 102030 ), 200, true ) self. assertequal ( json _ response [ " status _ code " ], 404 ) self. assertequal ( json _ response [ " message " ], " branch not found " ) json _ response...
[ 0.03376186639070511, -0.016722137108445168, 0.7589704990386963, 0.6791536211967468, 0.686672031879425, 0.855134904384613, -0.8149772882461548, 0.5960063934326172, 0.23167552053928375, -0.4573262929916382, -0.5984633564949036, 0.534457266330719, -0.7086535692214966, 0.7521335482597351, 1....
def remove ( self, pin _ name ) : with self. edit ( ) as pins : cur = pins. pop ( pin _ name, none ) if cur is none : return none return pinupdate ( pin _ name, cur, none )
[ -0.2046322226524353, -0.6644166111946106, 0.3778601884841919, -0.4788059592247009, -0.692864716053009, -0.0067047434858977795, -0.2709793448448181, 0.032469119876623154, 1.0188500881195068, 0.9375248551368713, -0.7659062743186951, -0.14662589132785797, -1.4327880144119263, -1.4052206277847...
def axes ( self ) - > axes : if not self. rendered or self. config. has _ changed : self. plot ( ) assert isinstance ( self. _ axes, axes ) return self. _ axes
[ 0.28670454025268555, 0.3887392282485962, 0.3516143262386322, -0.16387979686260223, -0.5263967514038086, -0.09117279946804047, 0.8383451700210571, -0.49365249276161194, 0.7271775603294373, -1.039792537689209, 0.7854713201522827, 0.5124826431274414, -0.46829864382743835, -0.425486296415329, ...
def to _ sql _ statement _ create _ or _ replace ( self ) : yield sql _ text ( f " create or replace function { self. literal _ schema }. { self. literal _ signature } { self. definition } " )
[ -0.04513304680585861, -0.4327491819858551, 0.267503559589386, -0.4481675624847412, 0.44617903232574463, -0.8265306949615479, -0.7408403158187866, 0.4114688038825989, -0.2369886338710785, -0.00015259742212947458, -0.43249431252479553, 0.3722798824310303, 0.27414748072624207, 0.2180622518062...
def rotate ( arr : array, n : int, d : int ) - > array : cd = gcd ( n, d ) for i in range ( cd ) : t = arr [ i ] j = i while true : k = j + d if k > = n : k - = n if k = = i : break arr [ j ] = arr [ k ] j = k arr [ j ] = t return arr
[ -0.7284958958625793, 0.6762352585792542, 0.6634705662727356, -0.39502644538879395, -0.45243382453918457, 0.07656418532133102, 0.031368982046842575, -1.0737963914871216, 0.3701603412628174, 0.2983328402042389, 0.2589046061038971, 0.34724581241607666, -0.13321472704410553, 0.1456920504570007...
def test _ generatebkg ( self ) : config _ file = os. path. join ('data _ for _ tests ','testconfig. yaml') config = configuration ( config _ file ) config. calib _ nproc = 1 self. test _ dir = tempfile. mkdtemp ( dir = '. / ', prefix ='testredmapper -') config. outpath = self. test _ dir config. bkgfile = os. path. jo...
[ 0.40847957134246826, 0.3126041889190674, 0.8032928109169006, 0.5544131994247437, 0.22449646890163422, 0.3189583420753479, 0.7522775530815125, -0.10972049087285995, -0.12214533239603043, -0.24327459931373596, -0.4104774296283722, -0.08030932396650314, -0.16136884689331055, 0.661138892173767...
def chain _ multiindex ( arr1, arr2 ) : prod = list ( product ( arr1, arr2 ) ) try : iter ( prod [ 0 ] [ 1 ] ) v2 = [ [ item [ 0 ] ] + list ( item [ 1 ] ) for item in prod ] names = ['label'] + ['gamma { } '. format ( i + 1 ) for i in range ( len ( v2 [ 0 ] ) - 1 ) ] return pd. multiindex. from _ tuples ( v2, names = n...
[ -0.932330310344696, -0.6298611164093018, 0.9100731015205383, 1.2579882144927979, 0.13990676403045654, 0.4151086211204529, -0.10957632213830948, -0.25909268856048584, 0.3371317386627197, 0.7544822096824646, 0.2711490988731384, 1.661676049232483, 0.08135657012462616, -0.5029474496841431, 0...
def command _ callback ( self ) - > callable [ [ str ], none ] : impl = commandimplementation ( command = self. sub _ command _ string ) return functools. partial ( impl. run _ command )
[ 0.1345948576927185, -0.7305718064308167, 0.791052520275116, -0.49715062975883484, -0.0487077422440052, 0.08808284997940063, 0.7328306436538696, 0.07043168693780899, 0.23669567704200745, -0.7568020820617676, -0.2177988886833191, 0.6752144694328308, 0.6000289916992188, -0.562107264995575, ...
def choose _ i _ fold ( self, i ) : xtmp, ytmp, xval, yval = [ ], [ ], [ ], [ ] for fi in range ( self. k ) : for cl in self. classes : ( x, y ) = self. class _ dslices [ cl ] [ fi ] if fi = = i : xval, yval = xval + x, yval + y else : xtmp, ytmp = xtmp + x, ytmp + y n = lambda l : np. array ( l ) return n ( xtmp ), n ...
[ -1.155676007270813, 0.34134265780448914, 0.6643462777137756, -0.23998397588729858, -0.6378102898597717, -0.17645834386348724, 0.9625228047370911, -0.0513528548181057, -0.4283020794391632, 0.3971039354801178, -0.664669394493103, -0.618611216545105, 0.6366536617279053, -0.10850339382886887, ...
def _ _ init _ _ ( self, word ) : self. word = word self. counter = 0 self. anagrams = [ ] self. create _ anagrams ( )
[ 0.034683410078287125, 0.6900292038917542, 0.31629663705825806, 0.8955812454223633, -0.9195883870124817, 0.4157335162162781, 0.5892425775527954, 0.019909217953681946, 0.45902615785598755, -0.2431049346923828, -1.024632215499878, -0.016337361186742783, -0.02710854634642601, 1.259020209312439...
def solve ( self, f _ on, f _ off = none ) : self. state _ env = self. state ( ) self. variables _ env = self. variables ( self. variables ) c = self. state _ word _ len d = len ( self. variables ) ones = [ ] dc = set ( i for i in xrange ( 1 < < ( d + c ) ) ) for variables _ word in xrange ( 1 < < d ) : self. variables...
[ 0.05104823410511017, 0.10079415142536163, 0.7707385420799255, -0.3201252222061157, -0.4318179786205292, -0.7333569526672363, -0.7137685418128967, 0.5768914818763733, -0.27325746417045593, -0.09680092334747314, -0.45563751459121704, -0.7057340741157532, -0.33781033754348755, 0.5305575132369...
def test _ route ( self ) : component1 = xmlpipe ( ) component2 = xmlpipe ( ) router = component. router ( ) router. addroute ('component1. example. org ', component1. sink ) router. addroute ('component2. example. org ', component2. sink ) outgoing = [ ] component2. source. addobserver ('/ * ', lambda element : outgoi...
[ -0.023233987390995026, -0.3362593650817871, 0.6744556427001953, -0.20555993914604187, 0.5514965057373047, 0.49659666419029236, -0.156560018658638, 0.5368604063987732, -0.45327481627464294, -0.3540775179862976, -0.549445390701294, -0.14850029349327087, 0.294405996799469, 0.29586923122406006...
def iszero ( a ) : return 1 if a = = 0 else 0
[ -0.35742855072021484, -0.944876492023468, 0.495880126953125, 1.508469581604004, 0.6875579953193665, -0.21475228667259216, 0.7978653907775879, 0.8173441886901855, 1.521430492401123, -0.06283725053071976, 0.11376115679740906, 0.36203497648239136, -0.45452460646629333, 0.8048363327980042, -...
def remove _ project _ associate _ with _ quality _ profile ( self, project, name, language ) : params = {'qualityprofile': name,'language': language,'project': project } self. sonarqube. _ make _ call ('post ', api _ qualityprofiles _ remove _ project, * * params )
[ -0.16628839075565338, 0.13387787342071533, 0.2447928935289383, 0.05189359933137894, -0.1458534598350525, 0.1945733278989792, 0.1250201314687729, -0.6061824560165405, -0.25575730204582214, 0.7089821100234985, -0.7965215444564819, -0.20232181251049042, -1.2348320484161377, -0.716088891029357...
def filter _ 3d _ by _ range _ and _ azimuth ( hostname : str, lidar _ port : int = 7502, range _ min : int = 2 ) - > none : import matplotlib. pyplot as plt # type : ignore import math # set up figure plt. figure ( ) ax = plt. axes ( projection ='3d') r = 3 ax. set _ xlim3d ( [ - r, r ] ) ax. set _ ylim3d ( [ - r, r ]...
[ 0.43198272585868835, 0.2614232301712036, 0.5882397890090942, -0.5208408832550049, -0.8515960574150085, 0.28620678186416626, -0.2637922465801239, -0.019175101071596146, -0.10684981197118759, 0.5134154558181763, -0.1003064513206482, 1.2335882186889648, 0.21592772006988525, -1.194022178649902...
def increment _ offensive _ skillbook _ used ( self ) : self. offensive _ skillbook + = 1
[ -1.3819001913070679, -0.728689968585968, 0.34352266788482666, 0.28676772117614746, 0.05825613811612129, 0.871681272983551, 0.5555163025856018, -0.5049390196800232, -0.44506070017814636, 0.009644043631851673, -0.0066716596484184265, -0.06233149394392967, 0.26095259189605713, -0.071657352149...
def _ define ( self ) : from qiskit. extensions. standard. r import rgate definition = [ ] q = quantumregister ( 1,'q') rule = [ ( rgate ( self. params [ 0 ], 0 ), [ q [ 0 ] ], [ ] ) ] for inst in rule : definition. append ( inst ) self. definition = definition
[ 0.3981718122959137, 0.5955431461334229, 0.3126045763492584, 0.5252267718315125, 0.7289155125617981, -0.6086164116859436, -0.29597732424736023, 0.3109019100666046, 0.10050570219755173, 0.3782007098197937, -0.6573418974876404, 0.45245203375816345, -0.4333086907863617, 1.9278841018676758, -...
def _ _ init _ _ ( self ) : self. head = listnode ( )
[ 0.1020217165350914, -0.4868021011352539, 0.2521848678588867, 0.11874081939458847, 0.08650821447372437, 0.20779915153980255, -0.3513026535511017, 0.6753498911857605, 0.9549814462661743, -0.4435573220252991, -1.0986329317092896, 0.8336615562438965, -0.13909728825092316, 0.7931891679763794, ...
def account _ list ( request ) : if request. method = ='get': # get all requirements in order, installation and account status if request. user. has _ perm ('customer. customer _ view _ others') : requirements = requirement. objects. filter ( q ( status = " order " ) | q ( status = " installation " ) | q ( status = " a...
[ 0.28534865379333496, 0.05099363252520561, 1.1184478998184204, 0.23993268609046936, -0.40567028522491455, 0.20923927426338196, 1.355512261390686, 0.3146657347679138, 0.11328467726707458, 0.0741141214966774, 0.7666814923286438, -0.29589274525642395, 0.882858157157898, 0.6035557985305786, -...
def _ getabstermsfilepath ( self, trow ) : termsfile _ path = trow ['entities file'] # verify that a terms file was provided. if not, we will import the # entire source ontology, so just return an empty string. if termsfile _ path = ='' : return'' # if the termsfile path is a relative path, convert it to an absolute # ...
[ 0.6155275106430054, -0.12406007200479507, 0.6881358623504639, -0.9475089907646179, 0.21991868317127228, 0.7065069675445557, 1.1204971075057983, -0.7163394689559937, -0.5108824968338013, -0.030064130201935768, 1.496357798576355, -0.36207956075668335, 0.5599094033241272, 0.4292020797729492, ...
def axial _ travel _ calc ( num _ start _ points, layer _ diameter, filament _ width ) : # caution, this script uses angles in radians print _ angle = math. asin ( num _ start _ points * filament _ width / layer _ diameter ) axial _ travel = filament _ width / math. cos ( print _ angle ) return axial _ travel
[ 0.026764970272779465, -0.6716569662094116, 0.3340648412704468, -0.13985298573970795, -0.33458155393600464, -0.7003724575042725, 1.0953412055969238, 0.375858336687088, 0.1338847428560257, 0.9296846389770508, 0.06820757687091827, 0.6058797240257263, -0.2767884433269501, -0.2987617254257202, ...
def duration _ age ( self, bootstrap = false, n _ iter = 200, removetreatment = false ) : self. in _ boot = false def inf _ durations ( x ) : " " " only add minimum _ duration if not treated and set hard burnin " " " cid = x. cohortid. unique ( ) [ 0 ] if self. in _ boot : cid = self. bootstrap _ id _ dates [ cid ] bur...
[ -0.6031282544136047, -0.395822137594223, 1.0107421875, -0.050217706710100174, -0.01732795313000679, 0.2083691507577896, -0.1289249062538147, -0.17216341197490692, 0.03710922598838806, 0.48910120129585266, 0.07743316888809204, 0.7097175121307373, 0.3033801019191742, 0.9234131574630737, 0....
def list _ relationships ( self, layer _ name ) : layer = arcpy. describe ( os. path. join ( self. path, layer _ name ) ) if not hasattr ( layer, " relationshipclassnames " ) : return ( [ ] ) return [ self. get _ relationship _ info ( rc _ name ) for rc _ name in layer. relationshipclassnames ]
[ -0.48710331320762634, -0.44614937901496887, 0.5503131151199341, -0.5152943730354309, 0.626235842704773, 0.2856611907482147, -0.1915380209684372, -0.5669913291931152, 0.5693297982215881, -0.5256463289260864, 0.22227604687213898, -0.13006991147994995, -0.20427484810352325, 0.7398754358291626...
def kfold _ split ( subj _ ids, n _ splits, groups = none, * * kwargs ) : kfoldclass = kfold if groups is none else shufflegroupkfold kfold = kfoldclass ( n _ splits, * * kwargs ) return [ split for split in kfold. split ( x = subj _ ids, groups = groups ) ]
[ -0.735259473323822, 0.8552744388580322, 0.31969359517097473, 0.7894342541694641, -0.855294406414032, -0.5202450156211853, -0.16580402851104736, 0.009680639952421188, 0.5030675530433655, 0.2859324812889099, 0.19512350857257843, 0.07191147655248642, -0.07071094959974289, 0.45234984159469604,...
def get _ doc ( self, doc _ id, default = none ) :
[ 0.9233987927436829, 0.7873845100402832, 0.10704527050256729, 1.2826993465423584, 0.7971644401550293, -0.7921521067619324, -0.6044908761978149, 0.18440191447734833, 0.2647188901901245, -0.10688795149326324, 0.3188422918319702, 0.3934319019317627, -0.19165849685668945, -0.2625989019870758, ...
def is _ raw ( self ) : return self. _ is _ raw
[ -0.9230350852012634, 0.6729103326797485, 0.37529340386390686, 0.34270763397216797, 0.12734238803386688, 0.5826554894447327, -0.11733890324831009, -0.4302041232585907, 0.8743898272514343, -0.0570099838078022, -0.6595741510391235, 0.5599297881126404, 0.1520264595746994, -0.11788327246904373,...
def build _ model ( learning _ rate = 0. 005, activations = " sigmoid " ) : if no _ prop : ps _ nodes _ input _ shape = ( field _ count, max _ field _ size, 1 ) else : ps _ nodes _ input _ shape = ( field _ count * max _ field _ size, channel _ count, 1 ) ps _ edges _ input _ shape = ( field _ count * max _ nodes * max...
[ -0.08600178360939026, 0.3116566836833954, 0.7721772193908691, 0.6750664114952087, 0.06026727333664894, 0.13348941504955292, 0.20774345099925995, 0.19653058052062988, -0.26545053720474243, -0.062098756432533264, -0.04343406483530998, 0.4316593408584595, 0.8001661896705627, -0.50138849020004...
def pen _ down ( self ) : self. move _ pen ( self. pen _ down _ position )
[ 0.19115027785301208, -0.561114490032196, 0.0741361454129219, 0.3375100791454315, 0.8016415238380432, 0.7020748257637024, 1.4834303855895996, 0.11047013103961945, -0.2223723977804184, -0.13567136228084564, 0.40149661898612976, 0.4754646420478821, -0.08433680981397629, -0.9518356323242188, ...
def to _ port ( self ) - > pulumi. input [ int ] : return pulumi. get ( self, " to _ port " )
[ 0.901885449886322, 0.7637761235237122, 0.5983409285545349, -0.2562958598136902, 1.4282591342926025, 0.5916783213615417, 1.6564550399780273, -0.16455744206905365, 0.21805596351623535, 0.7489102482795715, -0.37775900959968567, 0.772912859916687, -0.08624085783958435, -1.8427008390426636, -...
def validate _ cidr ( cidr ) : mycidr = output _ str ( cidr ) if not re. match ( r'^ \ d + ', mycidr ) : return " | % s " % mycidr return mycidr + " | ok "
[ 0.7442706823348999, -0.4674583077430725, 0.3383804261684418, 0.3533712327480316, -1.2605645656585693, 0.18565331399440765, 0.15519799292087555, 0.12743961811065674, 0.11516672372817993, -0.10768970847129822, 1.030043125152588, -0.9364831447601318, -0.9062721133232117, -0.22485405206680298,...
def _ span _ id _ to _ bytes ( span _ id : int ) - > bytes : return span _ id. to _ bytes ( 8, " big " )
[ 0.08794164657592773, 0.6159753203392029, 0.15519294142723083, -0.6446161866188049, 0.2929810583591461, 0.1806858628988266, -0.6525939702987671, -1.0725960731506348, 1.5122220516204834, -0.4815996587276459, -1.054203748703003, 0.10147910565137863, 0.5090169310569763, 0.19380943477153778, ...
def format _ narrative _ retaining _ user _ fomatting ( narrtive _ text ) : text = [ ] narrative = narrtive _ text. split ('\ n') formatted _ narrative ='' try : for values in narrative : if values = = " " : line = ['\ n'] else : line = split _ text _ on _ character _ limit ( values, 35 ) text. extend ( line ) formatte...
[ 0.7140448093414307, -0.7972400784492493, 0.5567634105682373, 0.3478018045425415, -0.5051266551017761, -0.5251455903053284, -0.6402371525764465, -0.7614765763282776, 0.22128774225711823, 0.7742106318473816, 1.0734471082687378, 0.32877686619758606, -0.0629827082157135, 0.6526026725769043, ...
def _ _ init _ _ ( self, learner = none, learner _ c = none, learner _ t = none ) : if learner is none : if learner _ c is none and learner _ t is none : self. learner _ c = lassolars ( ) self. learner _ t = lassolars ( ) else : self. learner _ c = learner _ c self. learner _ t = learner _ t else : self. learner _ c = ...
[ 1.1562238931655884, -0.750943124294281, 0.5957580208778381, 0.23900538682937622, -0.02783062309026718, 0.5440579652786255, -0.9873788952827454, 0.30181601643562317, 0.13527251780033112, -0.6586419343948364, -0.4193105399608612, 0.5565146207809448, 0.5602578520774841, 0.5650758743286133, ...
def validate _ error _ event _ sample _ data ( required _ attrs = { }, required _ user _ attrs = true, num _ errors = 1 ) : @ transient _ function _ wrapper ('newrelic. core. stats _ engine ','statsengine. record _ transaction') def _ validate _ error _ event _ sample _ data ( wrapped, instance, args, kwargs ) : try : ...
[ -0.05575576052069664, -0.20783236622810364, 0.5823357105255127, -0.3422810137271881, -0.8988224267959595, 0.2867799699306488, 0.28727495670318604, -0.4595703184604645, 0.20985886454582214, 0.7693501114845276, 0.3325842618942261, -0.03416808322072029, 0.4073983430862427, -0.2505546510219574...
def considering _ events ( ) : # user login required if'username'not in flask. session : response = flask. make _ response ( json. dumps ('user login required'), 401 ) response. headers ['content - type'] ='application / json'return response try : with db _ session ( ) as db : considered _ events = db. query ( models. ...
[ 0.16165098547935486, -0.42821305990219116, 0.7088503241539001, 0.19963954389095306, -0.08607537299394608, -0.24036723375320435, -0.2092967927455902, -0.17353281378746033, 0.02342243678867817, 0.5125625133514404, 0.3064285218715668, 0.5138942003250122, -0.34057921171188354, 0.44410395622253...
def deleteplayers ( ) : # simple statement. query = " delete from players " connect ( query )
[ 0.26988303661346436, -0.39059868454933167, 0.409088134765625, 0.6709907054901123, 0.7503280639648438, -0.35383620858192444, -0.35912489891052246, 0.48864027857780457, -0.4159828722476959, 0.5016806721687317, -0.010380257852375507, -0.3331402838230133, -1.380202293395996, -0.715954244136810...
def send _ to _ user ( self, userid, message ) : users = self. users. get ( userid, [ ] ) return self. _ send _ to _ users ( users, message )
[ -1.3643380403518677, 0.20913706719875336, -0.0002782538940664381, 0.2401590794324875, 0.08210289478302002, -0.3767752945423126, 0.3831631541252136, -1.0505070686340332, -0.10010508447885513, 0.40333428978919983, -0.4686827063560486, 0.6623318195343018, -0.4211883544921875, 1.16812336444854...
def pop ( self, index : int = - 1 ) - > _ t : length = len ( self ) index = self. _ nmlz _ index ( index, length ) if not self. inverse : msg = " inverse binary operator is required for pop. " raise typeerror ( msg ) if index = = length - 1 : # special case, can do o ( logn ) worse case # and o ( 1 ) in half / cases of...
[ -0.8586906790733337, 0.5122769474983215, 0.8956239223480225, 0.395372211933136, -1.2833895683288574, 0.03473588824272156, 1.2329572439193726, -0.3338795304298401, 0.015323961153626442, 0.5543410778045654, -0.6534952521324158, -0.171555757522583, -0.8178879618644714, -0.5416211485862732, ...
def split _ into _ chunks ( spec, fname, bird _ dict, step _ size = 512, bird _ name ='aldfly') : l, w = spec. shape num _ chunks = int ( w / step _ size ) # total full sized chunks # zero pad the last incomplete chunk if it exists zero _ pad _ flag = 0 if num _ chunks < w / step _ size : num _ chunks + = 1 zero _ pad ...
[ -0.3071437180042267, -0.02129606157541275, 0.8440627455711365, -0.8330894708633423, 0.026878179982304573, 0.032060444355010986, 0.7545601725578308, 0.7537901401519775, -1.199892282485962, 0.43003061413764954, 0.2961597442626953, 0.3649386465549469, 0.9431107044219971, 0.5775004625320435, ...
def total ( self ) - > float : return self. tax _ calculator. add _ taxes ( self. amount )
[ 0.8469385504722595, -0.12726569175720215, 0.60303795337677, -0.33189862966537476, 0.4878893196582794, -0.4419343173503876, 0.5895548462867737, -1.0210782289505005, 0.09209370613098145, 0.023458590731024742, 0.14677196741104126, 0.05163765698671341, -0.11121321469545364, -0.6887884140014648...
def edit ( data ) : category _ or _ note = input ( " edit ( 1 ) note or ( 2 ) category? " ) if category _ or _ note = ='1': edit _ note ( data ) elif category _ or _ note = ='2': edit _ category _ name ( data )
[ -0.8116742968559265, 0.18455815315246582, 0.5291610360145569, 0.4551120102405548, 0.1658371388912201, 0.25374794006347656, 0.861142098903656, -0.2467157393693924, -0.19412969052791595, -0.2059769183397293, 0.04000100865960121, 0.6329079866409302, 0.4942796528339386, -0.2537743151187897, ...
def get _ potential ( self, rho, line _ charge _ density ) : nx, ny = self. grid. nx, self. grid. ny self. rho [ : nx, : ny ] = rho self. compute _ greens _ function ( line _ charge _ density ) self. phi = ifft2 ( fft2 ( self. g ) * fft2 ( self. rho ) ). real return self. phi [ : nx, : ny ]
[ 0.2510374188423157, -0.4725878834724426, 0.5933371782302856, 0.44745513796806335, 0.3069911599159241, -0.3876018524169922, -0.9903473258018494, -0.1704561710357666, -0.7315839529037476, -0.48967039585113525, 0.18948690593242645, 0.5153335928916931, -0.028340257704257965, 0.2674197852611542...
def write ( path, dataframe, out _ format = none, encoding ='utf - 8 ', csv _ delimiter = ',') : if not out _ format : out _ format = infer _ format ( path ) filepath. create _ path ( path ) if out _ format = = format. csv : dataframe. to _ csv ( path, index = false, delimiter = csv _ delimiter, encoding = encoding ) e...
[ -0.4097868502140045, -0.24322554469108582, 0.4967883229255676, 0.8179258108139038, -0.060168955475091934, 0.04631127044558525, -0.3566632866859436, 0.17977192997932434, -0.42765796184539795, -0.3294069766998291, 0.411403626203537, 0.19391360878944397, 0.2947348356246948, -0.336515665054321...
def resolve _ autocompleted _ fields ( self, fields, cleaned _ data ) : uri = lambda k : rdflib. uriref ( cleaned _ data [ k ] ) query = " describe { 0 } ". format (''. join ( uri ( k ). n3 ( ) for k in fields ) ) graph = self. endpoint. query ( query ) resource = functools. partial ( resource, graph = graph, endpoint ...
[ -0.7487146854400635, 0.390787273645401, 0.2924492061138153, -1.1888083219528198, -0.13868248462677002, -0.6384842991828918, -0.50152587890625, -0.16857045888900757, -0.7462555170059204, 0.471464067697525, -0.9185367822647095, -0.23288288712501526, -0.5409764051437378, -0.13334991037845612,...
def process _ mem _ line ( line ) : split _ line = [ val. strip ( ) for val in line. split ( " = " ) ] part1 = split _ line [ 0 ] part2 = split _ line [ 1 ] mm = re. search ( r " mem \ [ ( \ d + ) \ ] ", part1 ) mem _ address = int ( mm. groups ( ) [ 0 ] ) value = int ( part2 ) return mem _ address, value
[ -0.5841294527053833, -0.5790404677391052, 0.6924290060997009, -0.4891364574432373, -0.07459032535552979, -0.5468682646751404, 0.426094114780426, 0.4955584704875946, -0.19807074964046478, 0.454351007938385, -0.3243492543697357, 0.5689132213592529, -0.20401807129383087, -0.15408141911029816,...
def update _ js ( self ) : make _ full _ directory ( resources _ path ( " js " ) ) shutil. copyfile ( self. get _ template _ path ( " app. js " ), resources _ path ( " js / app. js " ) ) shutil. copyfile ( self. get _ base _ template _ path ( " bootstrap. js " ), resources _ path ( " js / bootstrap. js " ), )
[ -0.10792617499828339, -1.0230792760849, 0.5117053985595703, 0.17978805303573608, -0.7046347260475159, -0.42831215262413025, 0.46062496304512024, -0.2969706952571869, 0.1003565788269043, 0.5074005126953125, -0.17342570424079895, 0.4492548406124115, 1.0231181383132935, 0.25486186146736145, ...
def islist ( self ) : return'list'in self. name or'list'in self. name
[ -0.29123586416244507, -0.3606226444244385, 0.5104820132255554, 0.4437772035598755, 0.7368486523628235, -0.09345979988574982, -1.3558409214019775, 0.37315601110458374, 1.7522789239883423, 0.08100149780511856, -0.6898669600486755, 0.5460327863693237, -0.2462504804134369, 1.4554405212402344, ...
def fit ( self, x : np. ndarray, y : np. ndarray, sample _ weight : optional [ np. ndarray ] = none ) - > none : if sample _ weight is not none : self. samples = sample _ weight. sum ( ) else : self. samples = y. shape [ 0 ] x = self. _ check _ and _ reshape _ input ( x ) x = np. hstack ( [ x, y. reshape ( - 1, 1 ) ] )...
[ 0.4416736364364624, -0.01924908347427845, 0.7364787459373474, 0.6404280662536621, -0.05111613869667053, -0.811700165271759, -0.05452323332428932, 0.051909469068050385, -1.0807071924209595, -0.14878572523593903, 0.1482371687889099, 1.308664321899414, 0.2471410632133484, 0.5926268696784973, ...
def _ _ getitem _ _ ( self, key ) : curr _ node = self. _ root for char in key : curr _ node = curr _ node [ 1 ] [ char ] return curr _ node [ 0 ]
[ -0.9478768706321716, -0.41822904348373413, 0.32332849502563477, 0.015358288772404194, -1.1210721731185913, -0.5479433536529541, -0.08002221584320068, -0.19817237555980682, -1.0257375240325928, 0.6255542635917664, 0.8312522768974304, 0.7215564846992493, -0.8849831223487854, -0.4050960242748...
def splitsequence ( seq : int, length : int, m : int ) - > list [ int ] : n = length / / m res = [ 0 ] * n size = max ( ( seq. bit _ length ( ) + 7 ) / / 8, m * n / / 8 ) ba = seq. to _ bytes ( size, " little " ) if m % 8 = = 0 : # if m is divisible by 8 then it is possible to use byte arrays to speed # up the splittin...
[ -0.8543059229850769, 0.21881003677845, 0.45757967233657837, 0.13301247358322144, -0.5508680939674377, -0.7452677488327026, 0.2811605930328369, 0.18978849053382874, 0.9746353626251221, 0.7149810791015625, -1.3915987014770508, -0.006236978340893984, -0.6778446435928345, 0.0505954772233963, ...
def secret _ key ( self, value ) : self. _ update _ values ('password ', value, parent _ attribute ='inputs')
[ -0.6987888216972351, 0.5849697589874268, 0.4481927752494812, 0.2580237090587616, 0.21860599517822266, 0.6321300268173218, 0.5172519683837891, -0.3224729895591736, 0.13907968997955322, 0.19059054553508759, -1.3467298746109009, -0.08338136970996857, 0.12008706480264664, 0.47322532534599304, ...
def test _ inertia _ helper _ is _ in _ page _ if _ inertia _ route ( self ) : response = self. get ( " / app " ) assert response. assertcontains ('id = " app "') assert response. assertcontains ('data - page = " { & quot ; component & quot ; : & quot ; index & quot ;,') # check at another route an other component is g...
[ 0.4224872887134552, -0.5326406359672546, 0.6184036731719971, -0.03745458647608757, 1.2851053476333618, 0.49901509284973145, -0.6998034715652466, 0.18321162462234497, 0.4959164261817932, -0.16491907835006714, 0.3866319954395294, 0.029711002483963966, -0.619103729724884, 0.2821061909198761, ...
def mock _ scipy _ for _ colour ( ) : import sys for module in ( " scipy ", " scipy. interpolate ", " scipy. linalg ", " scipy. ndimage ", " scipy. spatial ", " scipy. spatial. distance ", " scipy. optimize ", ) : sys. modules [ str ( module ) ] = mockmodule ( str ( module ) )
[ -0.562013566493988, 0.3417424261569977, 0.4842362403869629, -0.5476476550102234, 1.3794573545455933, 0.2868890166282654, -0.23819318413734436, -0.953966498374939, 0.9755565524101257, 0.18709339201450348, -0.08741837739944458, 0.319862961769104, -0.07035216689109802, 0.36591386795043945, ...
def elevate ( d : dict, key : str ) - > dict : new _ d = { * * { k : v for k, v in d. items ( ) if k! = key }, * * ( { k : v for k, v in d [ key ]. items ( ) } if key in d else d ), } return type ( d ) ( new _ d )
[ -0.6310831904411316, 0.04638868197798729, 0.7850525379180908, -0.40976324677467346, -1.1946079730987549, 0.03348757326602936, -1.4416613578796387, 0.44060027599334717, -0.2853875160217285, 0.6848012804985046, 0.16724464297294617, 0.46248766779899597, 0.39314985275268555, 0.7460500597953796...
def _ _ eq _ _ ( self, other ) : if isinstance ( other, response ) : return self. _ id = = other. id return false
[ -0.23867225646972656, -1.2900689840316772, 0.5268691182136536, -0.10451672226190567, 0.6132362484931946, 0.13928471505641937, 0.393716037273407, -1.6828691959381104, 1.9564340114593506, -0.658090353012085, -1.030700922012329, -0.13200904428958893, -0.7657260298728943, -0.7468185424804688, ...
def get _ scores ( data, baseline _ scores, scaling _ parameters, nmf _ models ) : logging. info ('obtaining cluster assignments') baseline _ scores = pd. melt ( baseline _ scores. reset _ index ( ), id _ vars = ['subjectid'], var _ name ='factor ', value _ name ='score') baseline _ scores. insert ( 1,'visit _ number '...
[ -0.6431213617324829, 0.6294267177581787, 0.44898995757102966, 0.24392271041870117, 0.7517781257629395, -0.4451587200164795, 0.4993364214897156, -0.3645811676979065, -0.7772193551063538, 0.8306674957275391, 0.6830829381942749, 0.42240917682647705, -0.4182692766189575, -0.5620105266571045, ...
def _ type _ transform ( v ) : if v is none : # convert none to keyword null return " null " elif isinstance ( v, ( int, float, decimal, complex, bool, list ) ) : # convert to string without surrounding quotes making a bare token return str ( v ) elif isinstance ( v, tuple ) : # convert to string without surrounding qu...
[ -0.5237372517585754, -0.8616273403167725, 0.6609956622123718, -0.47745591402053833, -0.35677507519721985, -0.5457636117935181, -0.37844768166542053, -0.4715442657470703, 0.5607681274414062, 0.7355291247367859, -0.059728480875492096, 0.6212175488471985, 0.08748689293861389, 0.01291422732174...
def add _ block ( self, block ) : self. _ _ model. append ('local { } = nn. sequential ( ) '. format ( block ) ) self. _ _ blocks. append ( block )
[ 0.14397458732128143, 1.0563918352127075, 0.472573846578598, 0.5169363021850586, 0.377894788980484, 0.3924998342990875, -0.03709057345986366, -0.0008684135973453522, -0.462740033864975, -0.821362316608429, -1.297512173652649, 0.3410290777683258, -0.22496463358402252, 1.1449555158615112, -...
async def eab ( self, request ) : # from unittest. mock import mock # request = mock ( headers = { " x - ssl - cert " : urllib. parse. quote ( self. data ) }, url = request. url ) if not request. headers. get ( " x - ssl - cert " ) : response = aiohttp _ jinja2. render _ template ( " eab. jinja2 ", request, { } ) respo...
[ -0.38595321774482727, 0.3045656383037567, 0.5707302093505859, 0.5811809301376343, -0.6917440295219421, 0.5955581068992615, 0.19914478063583374, -0.21170717477798462, 0.7728034257888794, 0.455459862947464, -0.09295599162578583, -0.29283270239830017, -0.7815251350402832, 0.27763819694519043,...
def winbio _ winbioidentifywithcallback ( jitter ) : ret _ ad, args = jitter. func _ args _ stdcall ( [ " sessionhandle ", " identifycallback ", " identifycallbackcontext " ] ) raise runtimeerror ('api not implemented') jitter. func _ ret _ stdcall ( ret _ ad, ret _ value )
[ 0.16857706010341644, -0.6324302554130554, 0.3861396908760071, 1.5911014080047607, -0.18737126886844635, 0.5018033981323242, 1.0092558860778809, -0.8263781070709229, 1.717153787612915, 0.37809067964553833, -1.0933769941329956, -0.21425087749958038, -1.2152910232543945, 0.9522491097450256, ...
def pen _ up ( self ) : self. move _ pen ( self. pen _ up _ position )
[ -0.9627355933189392, -0.547569751739502, 0.3378666639328003, 0.33055588603019714, 0.6002925634384155, 0.35863196849823, 1.1298432350158691, 0.439370334148407, -0.19767290353775024, 0.8920505046844482, -0.12030798941850662, 0.5220577120780945, 0.6451001763343811, -1.7422550916671753, -0.4...
def postprocess _ uncertainty ( self, image, h, w ) : image = image. fromarray ( image ) image = image. resize ( ( w, h ), resample = image. bicubic ) return np. array ( image )
[ -0.4565006494522095, -0.787767231464386, 0.6430969834327698, -0.3023695647716522, -0.0012816881062462926, -0.10827560722827911, 0.0425553023815155, 0.4862014353275299, 0.5180022120475769, 0.05655471235513687, 0.4772520959377289, 0.3465227484703064, -0.31006768345832825, -0.3871639966964721...
def instance _ name ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " instance _ name " )
[ 0.12480484694242477, -0.12751999497413635, 0.47978830337524414, -0.39219173789024353, -0.04206787422299385, 1.3987756967544556, 0.04826846718788147, 0.5164206027984619, 0.20574410259723663, 0.776962161064148, 0.6229360699653625, 0.7330615520477295, -0.440958172082901, -0.9598714709281921, ...
def si _ sdr _ improvement ( estimate : torch. tensor, reference : torch. tensor, mix : torch. tensor, mask : torch. tensor ) - > tuple [ torch. tensor, torch. tensor ] : with torch. no _ grad ( ) : sdri = metrics. sdri ( estimate, reference, mix, mask = mask ) estimate = estimate - estimate. mean ( axis = 2, keepdim =...
[ 0.10702814906835556, -0.02047714591026306, 0.6891549229621887, 0.49317416548728943, -0.005417522508651018, -0.4489273428916931, 0.7881515026092529, -0.2637667655944824, 0.20396174490451813, 0.7075114846229553, 0.11865278333425522, 0.5157527923583984, 0.06916497647762299, -0.159350961446762...
def _ _ delete _ _ ( self, isntance ) : raise attributeerror ( " cannot delete tax related data. " )
[ 1.5558488368988037, 0.019395695999264717, 0.4863693118095398, -0.14175358414649963, -0.3930797576904297, 1.0773221254348755, 0.8615192770957947, -0.2026957869529724, 0.15965861082077026, -0.07276476174592972, 0.04051170498132706, 0.30638444423675537, 0.22577418386936188, 0.1317429840564727...
def compute _ delta ( num _ levels ) : return num _ levels / ( 2. 0 * ( num _ levels - 1 ) )
[ 0.017264550551772118, -0.4251113831996918, 0.5450476408004761, 1.0194381475448608, 0.26770004630088806, 0.41425418853759766, 0.7835021615028381, 0.14820733666419983, -0.49059972167015076, -0.3242514133453369, 0.4757523834705353, -0.65436851978302, -0.6758386492729187, 0.436552494764328, ...
def _ _ bool _ _ ( self ) : return len ( self. timestamp ) > 0
[ 0.010295302607119083, -0.02136477269232273, 0.6930679678916931, 0.11565601080656052, 0.2587457001209259, 0.6135074496269226, -1.1409993171691895, 0.8094564080238342, 0.7106932401657104, 0.29918909072875977, -0.7064898610115051, -0.5965168476104736, 0.3473750054836273, 0.27039337158203125, ...
def _ _ eq _ _ ( self, other ) : if isinstance ( other, sudokutable ) : return self. table = = other. table return false
[ -0.648655891418457, 0.26516494154930115, 0.7150596380233765, 1.385529637336731, -0.479375422000885, 0.40799617767333984, 0.5993385314941406, -0.8197696208953857, 0.2638601064682007, -0.27656659483909607, -0.19448408484458923, -0.44250571727752686, -0.354312539100647, -0.20389331877231598, ...
def transmit _ format ( func ) : @ wraps ( func ) def wrapper ( * args, * * kwargs ) : if args : self : " dataset " = args [ 0 ] args = args [ 1 : ] else : self : " dataset " = kwargs. pop ( " self " ) # don't use self. format since it returns a list of columns for'columns'even if self _ format _ columns is none unform...
[ -0.26790446043014526, -0.2699335515499115, 0.8251942992210388, -0.5897186994552612, -0.7267890572547913, -0.9399724006652832, 0.1104327142238617, -0.15943680703639984, 0.5709384083747864, 0.11390216648578644, 0.7127950191497803, 0.34143662452697754, 0.8585190773010254, 0.6970149278640747, ...
def lstm _ model2 ( ) : n _ epochs = 3 n _ batch _ size = 32 lstm _ size = 64 learining _ rate = 0. 001 decay _ rate = 0. 2 activation _ func ='softmax'loss _ func ='categorical _ crossentropy'val _ split = 0. 1 print ('\ n \ n'+'training lstm 2...') train _ x _ pickles = [ name for name in os. listdir ( os. path. absp...
[ -0.3301680088043213, -0.1425597220659256, 0.8471662998199463, 0.0803464874625206, 0.4184851050376892, 0.005597034469246864, 0.17133037745952606, 0.02214403636753559, -0.5823536515235901, 0.3277308940887451, -0.67738276720047, 0.09066290408372879, 0.8809744119644165, -0.3388185501098633, ...
def test _ cartesian _ to _ polar _ and _ inverse ( self ) : cells, _, _ = data _ utils. load _ cells ( ) curve = cells [ 0 ] metric = self. elastic _ metric norms, args = metric. cartesian _ to _ polar ( curve ) result = metric. polar _ to _ cartesian ( norms, args ) expected = curve self. assertallclose ( result, exp...
[ -0.27373144030570984, -0.03908912464976311, 0.4029746949672699, -0.5600953102111816, 0.3822450339794159, 0.3569602370262146, -0.3743051290512085, -0.2144140750169754, -0.730606198310852, -0.16205795109272003, 0.054558709263801575, 0.14604876935482025, -0.19777259230613708, -1.2030950784683...
def register _ to _ model ( self, openmdao _ model, subsystem _ name ) : driver = self. options [ " driver " ] model = driver. model # add design variables to the model for var in model. get _ variables ( ) : openmdao _ model. add _ design _ var ( f " { subsystem _ name }. { var. name } ", lower = var. lower, upper = v...
[ -0.7055407166481018, 0.7142764329910278, 0.7960646152496338, -0.04739236459136009, 0.257671594619751, 0.010424451902508736, -0.6320223808288574, -0.5166971683502197, -0.4871920645236969, -0.5776603817939758, -0.7882808446884155, -0.04285302013158798, 0.6004239916801453, 0.5828751921653748,...
def newman _ conway ( num ) : pass
[ -0.5779100656509399, -0.6067150235176086, 0.12157844007015228, 0.8463112115859985, -0.32932090759277344, -0.6285567283630371, 0.5899946689605713, -0.7842131853103638, -0.11565019935369492, 0.4441918432712555, -1.7818849086761475, 0.5253321528434753, -0.9047102928161621, 0.6156215667724609,...
def _ disassembly _ theme _ hint ( self ) : # # determine whether to use a'dark'or'light'paint based on the # background color of the user's ida text based windows # bg _ color = disassembler. get _ disassembly _ background _ color ( ) # return'dark'or'light'return test _ color _ brightness ( bg _ color )
[ 0.38988247513771057, -0.3574604392051697, 0.40425559878349304, -0.6861036419868469, -0.40116941928863525, 0.26523247361183167, 0.6479154229164124, -0.6915640234947205, 0.44690608978271484, 0.03824322670698166, 0.41137033700942993, 0.33513638377189636, -0.8554019927978516, 0.321829617023468...
def build _ tag ( self ) : return self. _ build _ tag
[ 0.41855061054229736, -0.8347892761230469, 0.12942057847976685, 0.6134140491485596, 1.2291646003723145, 1.7178306579589844, 0.6488672494888306, 0.23122228682041168, -0.21626682579517365, -0.7132150530815125, -0.5617857575416565, 0.3784412443637848, 0.013674397952854633, -0.06630559265613556...
def print _ next _ prime ( number ) : index = number while true : index + = 1 if is _ prime ( index ) : print ( index )
[ -0.6826499700546265, 0.6198781132698059, 0.42932355403900146, 0.40832751989364624, -0.4688543379306793, 0.29410499334335327, 0.1233285441994667, -0.7061336040496826, 0.7921165227890015, -0.3820302486419678, -0.13870258629322052, 0.8450942039489746, -0.9523283243179321, -0.32396310567855835...
def compute _ filename ( url, base _ ip, other _ ip ) : return f " { url } _ { base _ ip } _ { other _ ip }. jpg "
[ -0.38896694779396057, -0.44862571358680725, 0.8045628070831299, 0.5147678852081299, -0.22302506864070892, -0.7600231170654297, -0.15813466906547546, 0.9051097631454468, -0.801117479801178, 0.7246485352516174, 0.163998544216156, -0.19698403775691986, 0.7129242420196533, -0.28024497628211975...
def update ( self, new _ message ) : pass
[ -0.9662618041038513, -1.060600996017456, 0.12334594130516052, 0.19479161500930786, 0.3918493390083313, 0.36870071291923523, -0.23745781183242798, -0.5472260117530823, -0.7476786971092224, 0.11428263038396835, -0.05858802795410156, 0.8380277752876282, -1.2374558448791504, 0.7797811031341553...
def _ is _ usb _ conneted ( self ) : res = false device _ re = re. compile ( " bus \ s + (? p < bus > \ d + ) \ s + device \ s + (? p < device > \ d + ). + id \ s (? p < id > \ w + : \ w + ) \ s (? p < tag >. + ) $ ", re. i, ) df = str ( subprocess. check _ output ( " lsusb " ), encoding = " utf8 " ) devices = [ ] for ...
[ -0.5752749443054199, -0.4928518831729889, 0.8995161652565002, 0.6416365504264832, 0.17985191941261292, -0.5161475539207458, 0.4848826229572296, 0.38969939947128296, -0.3460322916507721, -0.5007361173629761, -0.4189022183418274, -0.5899326205253601, -0.7410122752189636, 0.31523507833480835,...
async def stop ( self, ctx ) : self. _ now _ playing = none data = self. _ get _ data ( ctx ) data. stop ( ) ctx. voice _ client. stop ( )
[ -0.9458911418914795, -0.2945314347743988, 0.0850147157907486, -0.7246981859207153, 0.7644444108009338, 0.8479533195495605, -0.6573254466056824, -0.14586257934570312, -0.271752268075943, -0.30700358748435974, -0.26607921719551086, 1.119174599647522, -0.666712760925293, -0.09312494844198227,...
def check _ keydown _ events ( cb _ settings, event, farmer, herd, genotypes, screen, wolf _ pack ) : if event. key = = pygame. k _ q : # press q to quit pygame. quit ( ) sys. exit ( ) elif event. key = = pygame. k _ space and cb _ settings. active = = true : make _ baby ( cb _ settings, herd, screen ) farmer _ attack ...
[ -0.0004960303194820881, -0.420324444770813, 0.9924399852752686, 1.203392744064331, 0.3463941514492035, 0.028710491955280304, 0.17930281162261963, -1.1309866905212402, 0.1899058073759079, 0.8999748826026917, -0.16216106712818146, -0.44272303581237793, -0.6588080525398254, 0.638227105140686,...
def log _ train _ metric ( period, auto _ reset = false ) : def _ callback ( param ) : " " " the checkpoint function. " " " if param. nbatch % period = = 0 and param. eval _ metric is not none : name _ value = param. eval _ metric. get _ name _ value ( ) for name, value in name _ value : logging. info ('iter [ % d ] ba...
[ 0.07241798937320709, 0.29391008615493774, 0.5675915479660034, 0.4219333827495575, 0.024863289669156075, 0.09752839803695679, 0.6203927993774414, -0.4344904124736786, -1.4792730808258057, 0.38093259930610657, 0.18302816152572632, 0.34387001395225525, 1.2918837070465088, -0.2859627306461334,...
def games _ list ( request ) : if request. method = ='get': games = game. objects. all ( ) serializer = gameserializer ( games, many = true ) return jsonresponse ( serializer. data ) elif request. method = ='post': data = jsonparser ( ). parse ( request ) serializer = gameserializer ( data = data ) if serializer. is _ ...
[ -0.8012297749519348, -0.07875167578458786, 0.9933679103851318, 0.3663763999938965, 0.46179965138435364, 0.11156195402145386, -0.6290743350982666, 0.06015248969197273, 0.3300062119960785, 0.8758068084716797, -0.23133155703544617, -0.1773141771554947, 0.07335344702005386, 0.4979870319366455,...
def newrestaurant ( ) : if request. method = ='post': restname = request. form ['name'] restname = clean ( restname ) if not isvalidinput ( restname ) : flash ('restaurant name is required') return redirect ( url _ for ('showrestaurants') ) restobj = restaurant ( name = restname, user _ id = login _ session ['user _ id...
[ -0.3759341239929199, 0.09571171551942825, 0.6512048840522766, 0.6562151312828064, -0.3487164378166199, 0.5428788065910339, 0.0736096054315567, 0.6956629753112793, 0.33389225602149963, -0.5880429148674011, -0.4047304391860962, -0.06077327951788902, -0.8854706883430481, 0.4201023280620575, ...
def isinterrupted ( self ) : return cmds. progressbar ( self. mmainprogressbar, query = true, iscancelled = true )
[ -0.34278300404548645, -0.30822789669036865, 0.6390416622161865, 0.6153005361557007, -0.4574885964393616, 0.3564623296260834, -0.028987962752580643, 0.3968251645565033, -0.16170555353164673, -0.45075494050979614, 0.296476274728775, -1.114745855331421, -2.131490707397461, -0.0862845256924629...
def _ _ init _ _ ( _ _ self _ _, *, name : optional [ str ] = none, product : optional [ str ] = none, promotion _ code : optional [ str ] = none, publisher : optional [ str ] = none, version : optional [ str ] = none ) : if name is not none : pulumi. set ( _ _ self _ _, " name ", name ) if product is not none : pulumi...
[ 0.03310868516564369, 0.09536319971084595, 0.6405381560325623, 0.45108678936958313, 0.5232684016227722, 0.2758327126502991, -1.6322567462921143, 0.3902909457683563, 0.25709912180900574, 0.7369059324264526, -1.397176742553711, 0.33568075299263, 0.05135173350572586, -0.44777992367744446, -0...
def _ get _ coefficients ( self, data, t ) : self. k _ ion = np. zeros ( ( self. ns, self. grid. dims, self. grid. n _ absorbers ) ) self. k _ heat = np. zeros ( ( self. ns, self. grid. dims, self. grid. n _ absorbers ) ) self. k _ ion2 = np. zeros ( ( self. ns, self. grid. dims, self. grid. n _ absorbers, self. grid. ...
[ -0.18669630587100983, -0.03226190060377121, 0.5662930607795715, -1.0099228620529175, -0.1016106903553009, -0.7618335485458374, 0.025149570778012276, -0.15666194260120392, -0.4047151803970337, 0.2747191786766052, -0.2072441726922989, 0.13284455239772797, 0.39836186170578003, 1.1046223640441...
def run ( m _ command ) : command _ handler. run _ command ( m _ command ) pass
[ -0.7334432005882263, -0.6709659695625305, 0.10701415687799454, 0.6936558485031128, 0.34847891330718994, 0.9550835490226746, 0.5211165547370911, 0.9187319874763489, -0.5086780786514282, -0.8768185973167419, -0.6879498362541199, 0.28956055641174316, -0.09737160056829453, 0.8097984790802002, ...