text
stringlengths
25
2.19k
embedding
listlengths
768
768
def _ _ new _ _ ( cls, name, parents, dct ) : if'_ _ registry _ _'not in dct : dct. setdefault ('name ', name ) expr = dct. pop ('expr') instance = super ( equationmeta, cls ). _ _ new _ _ ( cls, name, parents, dct ) instance. expr = expr = build _ instance _ expression ( instance, expr ) if expr in instance. _ _ regis...
[ 0.1532752513885498, 0.1712372899055481, 0.9498500823974609, -0.2476409673690796, -0.44103434681892395, 0.05304105207324028, 0.3989599645137787, 0.5056650042533875, 0.0022599119693040848, 0.2650701701641083, 0.25132444500923157, 0.1239970400929451, 0.6937406659126282, -0.12654905021190643, ...
def proto _ user ( self ) : return baker. make ( user )
[ 0.3179304897785187, 0.31441548466682434, 0.15719576179981232, 1.2316290140151978, -0.6879004836082458, 0.6159200072288513, -0.11423107981681824, -0.8345823884010315, 0.15545859932899475, -1.4732915163040161, -1.553351879119873, 0.40314334630966187, -0.6127513647079468, -1.0868401527404785,...
def strobe _ three _ state _ infinite _ plane ( model _ 0, n _ tracks, model _ 1 = none, model _ 2 = none, f0 = 0. 0, f1 = 0. 0, track _ len = 10, dz = 0. 7, dt = 0. 01, loc _ error = 0. 0, exclude _ outside = true, n _ gaps = false, return _ dataframe = true, model _ 0 _ kwargs = { }, model _ 1 _ kwargs = { }, model _...
[ 0.23993773758411407, 1.182809829711914, 0.9041123986244202, 0.3029285967350006, 0.38974207639694214, 0.7480791807174683, -0.022075289860367775, -0.2585623860359192, -0.27622872591018677, 0.16576224565505981, -0.7041709423065186, -0.25767257809638977, -0.3263407349586487, -0.157703533768653...
def collect _ run _ 3 _ results ( ) : get _ yaml _ results _ from _ solutions ( " solutions _ 2 ", " run _ 3 _ quality _ results. csv " ) get _ benders _ results _ from _ logs ( " output _ 2 _ train ", " run _ 3 _ benders _ results. csv " )
[ 0.49079832434654236, -0.734224259853363, 0.4028400480747223, 0.9495718479156494, 0.10558222234249115, 0.5098470449447632, 0.10159391909837723, -0.6378206610679626, -0.9822142124176025, -0.38736629486083984, -0.2592092454433441, 0.484365314245224, 0.8598648309707642, -0.2175457924604416, ...
def add _ random _ edge ( self, total _ edges ) : while len ( self. edges ) < total _ edges : self. add _ edge ( self. make _ random _ edge ( ) )
[ -0.7638421654701233, 0.21083147823810577, 0.4368879795074463, -0.5787882208824158, 0.23835976421833038, 0.7408902645111084, -0.005117195192724466, 0.3219740688800812, 0.9561434388160706, -0.2472858875989914, -0.027003077790141106, -0.5572841763496399, -0.39941468834877014, -0.6671591997146...
def setnotifications ( self, notifications ) : self. _ notifications = notifications
[ -0.6368621587753296, 0.5130462050437927, 0.06416883319616318, 0.6789363622665405, 0.5514062643051147, 0.09378639608621597, 0.655500054359436, -0.3343333303928375, 0.11351916939020157, -0.114365354180336, -2.122279644012451, -0.06433580815792084, 0.12130669504404068, 0.6124138832092285, -...
def _ tag _ format _ name ( self, tag : str ) : if tag. find ('<')! = - 1 or tag. find ('>')! = - 1 : return tag. replace ('< ','' ). replace ('> ','' ) return tag. replace ('','' ). upper ( )
[ 0.07157572358846664, -1.2033448219299316, 0.8406745791435242, -0.26608002185821533, -0.7519628405570984, -0.15990522503852844, -0.4590720236301422, 0.07993684709072113, -0.05055326223373413, 0.516370952129364, 0.8020774722099304, -0.3295661509037018, 0.5500203371047974, 1.2315576076507568,...
def draw ( self, surface ) : for piece _ coordinates in self. body : surface. blit ( self. image, board _ pos ( piece _ coordinates ) )
[ -0.588080644607544, 0.2585331201553345, 0.28473854064941406, -0.20944800972938538, 0.5763364434242249, 1.6128932237625122, 0.40211665630340576, -0.3056945502758026, -0.5448172688484192, -0.4257065951824188, -0.27139753103256226, 0.2880011796951294, -0.086446613073349, 0.9394879937171936, ...
def parse _ players _ from _ file ( file, game _ board ) : logger. debug ( " parsing players : " ) # if this file doesn't have the players : format, # then just reset it and parse the board itself. line = file. readline ( ) if " players : " not in line : file. seek ( 0 ) logger. debug ( " players : not found. parsing b...
[ 0.5065342783927917, -0.44562673568725586, 0.6373847723007202, -0.029604189097881317, 0.6744226813316345, -0.21114744246006012, -0.10778316855430603, 0.29374051094055176, -0.4199840724468231, 0.6176426410675049, 0.27003806829452515, -0.16735412180423737, -0.45465219020843506, 0.489196717739...
def tojson ( self ) : serializationstring ='" module " : "'+ \ self. _ _ module _ _ +'", \ n'for attrname in [ " _ beta _ _ p ", " _ beta _ _ q ", " _ beta _ _ l ", " _ beta _ _ width " ] : attrvalue = self. _ _ getattribute _ _ ( attrname ) serializationstring + = ju. parseattribute ( attrvalue, attrname ) s = seriali...
[ -0.8424069285392761, -1.1888574361801147, 0.5745922327041626, -0.9993022680282593, 0.01453843992203474, -0.08695658296346664, 0.37028196454048157, -0.585125207901001, -0.36267736554145813, 0.03202669322490692, -0.2814215123653412, 0.254429429769516, 0.12529557943344116, 0.6536822319030762,...
def test _ list _ decimal _ min _ length _ nistxml _ sv _ iv _ list _ decimal _ min _ length _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - minlength - 1. xsd ", instance = " nistdata / list / deci...
[ -0.24327577650547028, -0.4203343391418457, 0.447197288274765, 0.42086994647979736, -0.42816802859306335, -0.17903396487236023, 0.12290187925100327, -0.23083247244358063, 1.0765624046325684, -0.0685180202126503, -1.1554794311523438, -0.24500669538974762, -0.5635765790939331, 0.6632799506187...
def get _ ospf _ interface _ and _ area ( device ) : try : out = device. parse ( " show ospf interface brief " ) except schemaemptyparsererror as spe : raise schemaemptyparsererror ( " could not parse output for " " command'show ospf interface brief'" ) from spe key _ val = { } try : interface _ dict = out [ " instance...
[ -0.24801000952720642, 0.05274901166558266, 0.516330897808075, -0.08231166005134583, -1.0258005857467651, -0.093636155128479, 0.7718308568000793, 0.0005757151520811021, -0.3918209969997406, 0.24990598857402802, -0.6088846325874329, 0.15421779453754425, -0.25769636034965515, 1.07003700733184...
def msjse _ obj _ fct ( x, sigma _ ij, opp _ entr _ sigma _ ij, w _ cf, n, n _ components, p _ h, t _ h, n _ perp ) : x = np. reshape ( a = x, newshape = ( n, n _ components ) ) # computing the pairwise squared euclidean distances in the lds dsm _ lds = pairwise _ dist ( x = x, metric ='sqeuclidean ', tomatrix = true )...
[ 0.3038066327571869, 0.10889481753110886, 0.6638181209564209, -0.3627793490886688, -0.8818257451057434, -0.7508609890937805, 0.5015096068382263, 0.614678144454956, -0.15934614837169647, 0.3476180136203766, -0.2578671872615814, 0.2582109868526459, 0.39427950978279114, 0.18107977509498596, ...
def batch ( self ) : return self. _ batch
[ 0.4131467938423157, -0.2767959237098694, 0.1300276666879654, 0.7019952535629272, 0.5535805225372314, 0.9621133208274841, 0.3128544092178345, -0.10954833775758743, 0.06032519042491913, -2.022158622741699, -0.24145087599754333, 1.1045947074890137, -0.07129573822021484, -0.47037121653556824, ...
def startnsloop ( host = none, port = none, enablebroadcast = true, bchost = none, bcport = none, unixsocket = none, nathost = none, natport = none, storage = none, hmac = none ) : daemon = nameserverdaemon ( host, port, unixsocket, nathost = nathost, natport = natport, storage = storage ) daemon. _ pyrohmackey = hmac ...
[ -0.4497801661491394, 0.19576044380664825, 0.782892107963562, 0.46185964345932007, 0.3211960196495056, -0.689843475818634, -0.05624796822667122, -0.27037790417671204, 1.1083056926727295, -0.6137246489524841, -0.15815190970897675, 1.2945544719696045, -0.6653273105621338, 0.6558954119682312, ...
def getlastevents ( self, typeid, deviceid ) : events = apiclient. deviceeventlistcacheurl % ( self. host, typeid, deviceid ) r = requests. get ( events, auth = self. credentials, verify = self. verify ) status = r. status _ code if status = = 200 : response = r. json ( ) for event in response : if event [ " format " ]...
[ -1.3651103973388672, -0.20716352760791779, 1.009095549583435, -0.06748471409082413, -0.340364933013916, -0.6562612652778625, -0.657929539680481, -0.8526900410652161, 0.3572043776512146, 0.9216503500938416, -0.49550774693489075, 0.6552465558052063, -1.0978707075119019, 0.23804982006549835, ...
def from _ mvn _ str ( cls, mvnstr, namespace = " " ) : tup = mvnstr. split ( " : " ) # groupid and artifactid are always present if len ( tup ) < 2 : raise artifactformatexception ( " artifact string'{ mvnstr }'does not " " contain':'character. can not parse ". format ( mvnstr = mvnstr ) ) if len ( tup ) > 5 : raise a...
[ 0.517383337020874, -1.3868255615234375, 0.07413162291049957, -0.2675192356109619, -1.221943974494934, 0.2060890644788742, -0.3564550578594208, -0.020855240523815155, 0.9481680393218994, 0.0954015702009201, -0.3015039265155792, 0.5264912247657776, -0.15882176160812378, -0.7649399042129517, ...
def getshapes ( xform, fullpath = true ) : shapes = [ ] if cmds. nodetype ( xform ) = ='transform': shapes = cmds. listrelatives ( xform, fullpath = fullpath, shapes = true ) return shapes
[ -0.15752612054347992, 0.10336848348379135, 0.37313851714134216, -0.4468790292739868, 0.25854283571243286, 0.3002433776855469, 0.15900704264640808, 0.03590584546327591, 0.31350016593933105, -0.049826040863990784, -0.8053888082504272, 0.2070622593164444, 0.353251188993454, 0.5273451805114746...
def search _ novel _ in _ browser ( self, query : str ) - > generator [ searchresult, none, none ] : return [ ]
[ -1.725154161453247, -0.1091197058558464, 0.3263757824897766, 0.6971326470375061, -0.2936212420463562, 0.02770952135324478, -1.1479579210281372, -0.9919626712799072, -0.0320248045027256, -0.07969844341278076, 0.10399731993675232, -0.5056774616241455, -0.4891344904899597, 0.8107050061225891,...
def testgetdisk ( self, mock _ list _ disks ) : mock _ list _ disks. return _ value = mock _ list _ disks found _ disk = fake _ source _ project. compute. getdisk ( fake _ disk. name ) self. assertisinstance ( found _ disk, compute. googlecomputedisk ) self. assertequal ( fake _ source _ project. project _ id, found _ ...
[ -0.08324594795703888, 1.126852035522461, 0.4645864963531494, 0.4544488489627838, 0.9342185258865356, 0.14949491620063782, 0.6561806797981262, 0.050578124821186066, -0.3370407223701477, -0.7196109294891357, -0.7952373623847961, 0.3802051544189453, 0.11191298812627792, 1.2471269369125366, ...
def verify ( self ) : return true if stunmsg _ c. stun _ msg _ verify ( self. _ buf, len ( self. _ buf ) ) = = 1 else false
[ 0.04862776771187782, 0.6642192602157593, 0.4373096525669098, 0.9319383502006531, 0.5013377666473389, -0.2522984743118286, 0.8738565444946289, -0.5730158686637878, 0.45538339018821716, -1.0045934915542603, -1.23955237865448, 0.4020693004131317, -1.4746953248977661, 1.072303295135498, -0.5...
def word _ freq ( self, w ) : # work here!!
[ -0.4675895571708679, 0.20763041079044342, 0.31700587272644043, 0.17744575440883636, 0.23463355004787445, -0.4515109360218048, 0.7732022404670715, -0.08136865496635437, -0.2664620280265808, -0.21167437732219696, 0.1583486944437027, -0.03269420564174652, -0.4304352402687073, 1.52585971355438...
def endpoints ( self ) - > list [ " endpoint " ] : return self. _ _ endpoints
[ -0.24026866257190704, -0.056093599647283554, 0.023779524490237236, 1.2911800146102905, 1.5252279043197632, 0.5537862181663513, -0.5191481113433838, 0.9864629507064819, 1.0179460048675537, -0.5417851805686951, -0.5085520148277283, 0.46910762786865234, -0.11450295150279999, 0.122165367007255...
def test _ list _ integer _ pattern _ nistxml _ sv _ iv _ list _ integer _ pattern _ 1 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - pattern - 1. xsd ", instance = " nistdata / list / integer / schema...
[ -0.5739393830299377, -0.22352056205272675, 0.4661950469017029, 0.560758113861084, -0.0828898698091507, -0.05155906826257706, 0.18227989971637726, 0.4796156883239746, 1.3346006870269775, 0.7038813829421997, -0.6409589052200317, -0.5287142992019653, -0.7001489400863647, 0.6348317861557007, ...
def setdeterminants ( propka _ groups, version = none, options = none ) : iterative _ interactions = [ ] # - - - noniterative section - - - # for group1 in propka _ groups : for group2 in propka _ groups : if group1 = = group2 : break # do not calculate interactions for coupled groups if group2 in group1. covalently _ ...
[ -0.7377362251281738, -0.7744068503379822, 0.6244746446609497, 0.5124735236167908, 0.5097566246986389, 0.4232407212257385, 0.48791971802711487, -0.16207125782966614, -0.6076256036758423, 0.40208470821380615, 0.37520939111709595, -0.17768831551074982, -0.8877888321876526, 0.38300952315330505...
def test _ getattr ( self, name : str ) - > none : value = getattr ( ndarray, name ) value _ ref1 = getattr ( np. ndarray, name ) if sys. version _ info > = ( 3, 9 ) : value _ ref2 = getattr ( ndarray _ ref, name ) assert value = = value _ ref1 = = value _ ref2 else : assert value = = value _ ref1
[ 0.7601041197776794, -0.545052707195282, 0.6153488755226135, 0.22620230913162231, 0.2889285087585449, 0.5249286890029907, 0.7075792551040649, -1.769396424293518, 0.5451136827468872, 0.20394112169742584, 0.6682769060134888, 0.5126126408576965, 0.36064472794532776, 0.6110804080963135, 1.116...
def test _ template ( ) : picture _ file = request. files ['picture'] if picture _ file and allowed _ file ( picture _ file. filename ) : picture = image. open ( picture _ file ) w, h = picture. size if w! = h : return jsonify ( error ='the picture must have a square shape'), 400 photobooth = get _ photobooth ( ) photo...
[ 0.09190312772989273, 0.3202873170375824, 0.5294582843780518, 0.10682269185781479, 0.4142226278781891, -0.6248865723609924, 0.049178335815668106, -0.3894442319869995, 0.15106108784675598, -0.4221257269382477, -0.14226244390010834, -0.37645697593688965, -0.297666996717453, 0.1349030882120132...
def download _ folder ( user _ id, collection _ name ) : collection _ folder = os. path. join ( upload _ dir, user _ id, collection _ name ) zipped = " % s. zip " % ( collection _ name ) zfile = os. path. join ( upload _ dir, user _ id, zipped ) zfile = zipfile. zipfile ( zfile,'w ', zipfile. zip _ deflated ) for root,...
[ 0.2968376576900482, -0.7403882741928101, 0.8571894764900208, -0.08915115892887115, -0.1594873070716858, -0.18632109463214874, 0.6591035723686218, -1.050062656402588, -0.31898242235183716, 0.10903376340866089, -0.031226880848407745, 0.3690626323223114, -0.5037500262260437, 0.683717429637908...
def expected _ value ( held _ dice, num _ die _ sides, num _ free _ dice ) : outcomes = set ( [ x + 1 for x in range ( num _ die _ sides ) ] ) suma = 0 lista = gen _ all _ sequences ( outcomes, num _ free _ dice ) for tupla in lista : held _ dice _ list = list ( held _ dice ) tupla _ list = list ( tupla ) held _ dice _...
[ -0.5785297155380249, 0.47546088695526123, 0.5250398516654968, -0.08667214214801788, -0.6579773426055908, 0.4527866244316101, 0.5434873700141907, 0.6912018656730652, 0.21470171213150024, 0.3511613607406616, 0.46903663873672485, 0.07822195440530777, 0.473682165145874, -0.0488191582262516, ...
def initialize _ broadcast _ variable ( self, spark _ context, name, value ) : self. broadcast _ variables [ name ] = spark _ context. broadcast ( value )
[ -0.1418377161026001, -0.21334606409072876, 0.480138897895813, -0.06543035060167313, -0.36764615774154663, -0.21578921377658844, -0.4398396611213684, -0.2942161560058594, 0.6917055249214172, 0.2370310127735138, -1.0879625082015991, 1.9020508527755737, -0.25944894552230835, 0.395634293556213...
def find _ nulls ( self, imputed = false ) : query _ template = " " " select { cols } from { state _ tbl } t1 left join { aggs _ tbl } t2 using ( { group } ) " " " cols _ sql = ", \ n ". join ( [ " " " sum ( case when " { col } " is null then 1 else 0 end ) as " { col } " " " ". format ( col = column ) for column in se...
[ -0.0019608577713370323, 0.08535562455654144, 0.5048763155937195, -0.5614835023880005, 0.16094064712524414, -0.7413547039031982, 0.18426600098609924, -0.19739629328250885, -0.16559156775474548, 0.6266133785247803, 0.46068423986434937, -0.47622862458229065, 0.038473814725875854, 0.9672194719...
def test _ humanmove ( ) : gc = gamecontroller ( width, height ) board = board ( grid _ col _ row _ count, cell _ w _ h, width, height, gc ) pm = playermanager ( board, gc, more _ difficult ) pm. humanmove ( 15, 15 ) assert board. grid [ ( 1, 1 ) ]. piece is none pm. humanmove ( 200, 300 ) assert board. grid [ ( 3, 3 )...
[ -0.214168518781662, 0.4853169322013855, 0.5794752836227417, -0.02528037130832672, 0.12274177372455597, -0.1801552027463913, 0.5181602239608765, -0.38381969928741455, -0.7306098937988281, -0.5186495780944824, -0.926237940788269, 0.07331254333257675, -0.2965216040611267, 0.3621072471141815, ...
def cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefiltericf3cficf3 _ cast ( * args )
[ 0.9857617616653442, -0.6278653740882874, 0.31830525398254395, -0.38302063941955566, 0.46876901388168335, 0.33107444643974304, 0.7581601142883301, 0.06137122958898544, -0.19938035309314728, 0.3933386504650116, -0.6124980449676514, -0.6240375638008118, -0.630136251449585, -0.4409341216087341...
def multiplybyscalar ( self, scalar ) : newset = [ ] for i in range ( len ( self. set ) ) : newset. append ( ( scalar * self. set [ i ] ) ) result = valuevectorset ( ) result. addall ( newset ) return result
[ -0.6543304920196533, 0.028970245271921158, 0.4716659486293793, 0.45209285616874695, -0.5007166862487793, -0.8919685482978821, -0.2852056622505188, -1.3721961975097656, 0.5299729108810425, -0.1815100461244583, 0.18641115725040436, 0.07350610196590424, -0.6642811894416809, 0.4045182168483734...
def create _ session ( cls, * * kwargs ) : email, password = kwargs. get ('email'), kwargs. get ('password') auth = cls ( email = email, password = password ) auth. load ( ) return auth
[ -0.41543370485305786, -0.5329375267028809, 0.3859112560749054, 0.025790993124246597, -0.4913159906864166, 0.25911441445350647, -0.3282868266105652, -0.8387861847877502, 0.08447469770908356, 0.2586098313331604, 0.0023959476966410875, 0.09148514270782471, -0.4229496419429779, -0.919500112533...
def jaccard _ distance _ fixed ( y _ true, y _ pred ) : intersection = k. sum ( k. abs ( y _ true * y _ pred ), axis = ( 1, 2, 3 ) ) sum _ = k. sum ( k. abs ( y _ true ) + k. abs ( y _ pred ), axis = ( 1, 2, 3 ) ) jac = ( intersection + smooth ) / ( sum _ - intersection + smooth ) return k. mean ( ( 1 - jac ) * smooth,...
[ 1.398937702178955, 0.010496535338461399, 0.7796742916107178, -0.06531334668397903, -0.8110973238945007, 0.483267605304718, 0.7403119802474976, 0.4466075897216797, -0.5490697026252747, 1.34524405002594, 0.20099370181560516, 0.8596917390823364, 0.23693326115608215, 0.27328410744667053, -0....
def zipobjective ( params, vbar, pbar, qbar ) : # pre - compute vbar ^ 2 vs = np. square ( vbar ) # get gridlab - d terms from the polynomial parameters. gld _ zip = polytogld ( params [ : 3 ], params [ 3 : ] ) # add base power - since base power is baked into the'bar'terms, # just use 1. gld _ zip ['base _ power'] = 1...
[ 0.06889089941978455, -0.32908087968826294, 0.737168550491333, 0.056549906730651855, -0.10150982439517975, 0.5386403799057007, -0.303328275680542, -0.2733020484447479, -0.425104022026062, 0.9360613822937012, 0.3302712142467499, 0.07432962954044342, -0.3381487727165222, -0.4843151271343231, ...
def loaddata ( catalog ) : loadvideos ( catalog ) loadcategories ( catalog )
[ -1.1025811433792114, 0.3571634590625763, 0.25198954343795776, 0.4343463182449341, 0.41411036252975464, 0.14367197453975677, -0.5463529825210571, 0.10723883658647537, 0.21514815092086792, -0.33736610412597656, -1.1592742204666138, 1.4889010190963745, 0.42966678738594055, 0.758605420589447, ...
def test _ if _ spectrum _ is _ cloned ( ) : spectrum _ in = spectrumbuilder ( ). with _ metadata ( { " precursor _ mz " : 1. } ). build ( ) spectrum = remove _ peaks _ around _ precursor _ mz ( spectrum _ in ) spectrum. set ( " testfield ", " test " ) assert not spectrum _ in. get ( " testfield " ), " expected input s...
[ 0.6484448909759521, 0.21034684777259827, 0.36385107040405273, 0.702989399433136, -0.3825274109840393, 1.3373045921325684, 0.8190485835075378, 0.6514075398445129, 1.2225068807601929, 0.006843972019851208, -0.86590975522995, 0.8428370356559753, -1.2475066184997559, 0.40066251158714294, 0.0...
def new _ tasks ( self, extra ) : tasks = [ ] for input _ nifti in [ nifti for nifti in os. listdir ( self. params. input _ data ) if any ( nifti. endswith ( pattern ) for pattern in input _ list _ patterns ) ] : # filename example : 0103645 _ anat. nii. gz # extract root folder name to be used as jobname subject _ nam...
[ -0.48574838042259216, 0.4099225103855133, 0.7434222102165222, -0.06373882293701172, -0.09484522044658661, 0.26991820335388184, 0.680718183517456, -0.41145360469818115, -0.4789831340312958, 0.32123157382011414, -0.4917166829109192, 0.12551772594451904, 0.23504236340522766, 0.814492881298065...
def secondary _ key ( self ) - > str : return pulumi. get ( self, " secondary _ key " )
[ 1.0036932229995728, -0.7146788835525513, 0.36217471957206726, 0.535947322845459, 0.4169255793094635, 0.13155120611190796, -0.0268012173473835, -0.24502550065517426, -0.22316424548625946, -0.1477784812450409, -0.38064447045326233, 1.6162015199661255, 0.7282774448394775, -1.015447735786438, ...
def convert _ dep _ path ( dataframe _ row ) : is _ first _ entity _ first = int ( dataframe _ row [ " first _ entity _ location " ]. split ( ", " ) [ 1 ] ) < int ( dataframe _ row [ " second _ entity _ location " ]. split ( ", " ) [ 0 ] ) seen _ first _ entity = false build _ string = [ ] for token in dataframe _ row....
[ -0.19244420528411865, -0.5889419317245483, 0.8266955614089966, -0.3597169518470764, -0.43940839171409607, -0.06010778620839119, 0.256757527589798, -0.35851022601127625, 0.02799781784415245, 0.6218792796134949, 0.4489821195602417, -0.5716938972473145, 0.6759471893310547, -0.1417820900678634...
def answercheck ( self, input, question ) : if eval ( question )! = eval ( input ) : # if uinput is not correct return ( 0 ) # return false self. score + = 1 # add one to score return ( 1 ) # return true
[ -0.9151893854141235, -0.11252022534608841, 0.5430709719657898, 0.9827725887298584, -0.130117267370224, 1.5233429670333862, 0.1339951604604721, -0.48472797870635986, 0.35355445742607117, -0.38044944405555725, 0.18756242096424103, -0.614246129989624, -1.1722416877746582, -0.2719157338142395,...
def admin _ disable _ user ( userpoolid = none, username = none ) : pass
[ -0.2757827937602997, -0.06119249016046524, 0.05712808296084404, 1.2304786443710327, -0.6683507561683655, 0.8676663041114807, 1.4241504669189453, -0.013327010907232761, 0.2190871238708496, 0.22239936888217926, -0.7532379627227783, 1.4231281280517578, -1.3602889776229858, -0.3899395763874054...
def test _ invalid _ nonce ( self, nonce ) : assert not signaturevalidator ( self. lti _ consumer ). check _ nonce ( nonce )
[ 0.5930187702178955, 0.3220058083534241, 0.2910829782485962, 0.8269647359848022, 0.2577775716781616, 0.803144097328186, -0.13628292083740234, 0.07104675471782684, -0.3801625967025757, -0.9903877973556519, -0.4509119689464569, -0.9756627678871155, -1.3630894422531128, 0.6304026246070862, 0...
def ger _ tickets ( request ) : return render ( request,'core / gerenciamento _ chamados. html')
[ -0.08019328117370605, 0.37386319041252136, 0.44896605610847473, -0.5021873712539673, 0.29153087735176086, 0.838517427444458, 0.05634870380163193, 1.3718056678771973, -0.9637699723243713, -0.6249361634254456, 0.40329840779304504, -0.25054410099983215, -0.2841891944408417, 0.5433797240257263...
def process ( self, event ) : print ( self. cfg _ ana. name )
[ 0.47737428545951843, -0.7864073514938354, 0.4967741072177887, 0.13047564029693604, -0.3861822187900543, -0.03681750223040581, 0.9338122010231018, -0.1882203072309494, 0.08359575271606445, 0.22642762959003448, -0.34919485449790955, 0.5470157861709595, 1.2301932573318481, 0.7488557696342468,...
def _ apply _ weights _ to _ arrays ( arrays, weights = none, sample _ dim = 0 ) : arrays = _ ensure _ leading _ sample _ dims ( arrays, sample _ dim = sample _ dim ) if weights is none : return arrays n _ arrays = len ( arrays ) if not isinstance ( weights, tuple ) and not isinstance ( weights, list ) : # assume a sin...
[ 0.13310641050338745, 0.48325639963150024, 0.8595011234283447, 1.2614586353302002, 0.08360639214515686, -0.0698036178946495, 0.6010564565658569, 0.750091016292572, 0.6005511283874512, 0.45614907145500183, 0.6409887075424194, -0.30093997716903687, -0.01424170657992363, 1.1649600267410278, ...
def get _ link _ visual _ origin ( self, link : link ) - > tuple [ cs. dm ] : xyz, rpy = cs. dm. zeros ( 3 ), cs. dm. zeros ( 3 ) if link. visual is not none : if link. visual. origin is not none : origin = link. visual. origin xyz, rpy = cs. dm ( origin. xyz ), cs. dm ( origin. rpy ) return xyz, rpy
[ -0.2778833210468292, -0.4853578507900238, 0.48732057213783264, -0.20856457948684692, 0.05763586238026619, -0.21324074268341064, 0.051807552576065063, 0.6536160111427307, 0.9017255306243896, -0.18028229475021362, -0.1349358707666397, 0.3704477846622467, -0.06327473372220993, -0.057586606591...
def test _ get _ row _ col _ diag _ sums ( ) : array = [ [ 8, 3, 4 ], [ 1, 5, 9 ], [ 6, 7, 2 ] ] row _ sums, column _ sums, diagonal _ sums = get _ row _ col _ diag _ sums ( array ) assert row _ sums = = [ 15, 15, 15 ] assert column _ sums = = [ 15, 15, 15 ] assert diagonal _ sums = = [ 15, 15 ]
[ 0.5569043755531311, 0.6491937041282654, 0.5724717378616333, -0.04619700089097023, 0.5729341506958008, -0.14408418536186218, 1.0902384519577026, -0.9294592142105103, 0.7710551023483276, -0.48616158962249756, -0.657002329826355, -0.0899529978632927, 0.9739294052124023, -0.3594285547733307, ...
def test _ hawkessumexpkern _ fit _ start ( self ) : n _ nodes = len ( self. events ) n _ coefs = n _ nodes + n _ nodes * n _ nodes * self. n _ decays # do not step learner = hawkessumexpkern ( self. decays, max _ iter = - 1 ) learner. fit ( self. events ) np. testing. assert _ array _ equal ( learner. coeffs, np. ones...
[ 0.23524141311645508, -0.3639543056488037, 0.6254755258560181, 0.3788629472255707, 0.37987062335014343, 0.15659646689891815, 0.2590997517108917, 0.33881261944770813, 0.6109285354614258, -0.8397492170333862, -0.6776230335235596, 0.6341480016708374, -0.21271857619285583, 0.40094897150993347, ...
def write _ case _ data ( self, file ) : change _ code = 0 s _ base = self. case. base _ mva timestr = time. strftime ( " % y % m % d % h % m ", time. gmtime ( ) ) file. write ( " % d, % 8. 2f, 30 / pss ( tm ) e - 30 raw created by pylon ( % s ). \ n " % ( change _ code, s _ base, timestr ) ) file. write ( " modified b...
[ -0.3833240568637848, -0.8984044790267944, 0.689511775970459, -0.29498088359832764, 0.4650399088859558, 0.6032310724258423, 0.18674150109291077, 0.272854745388031, -0.5776678323745728, 0.23636125028133392, -0.32554498314857483, -0.28258752822875977, 0.4787399470806122, 0.6370652914047241, ...
def perform _ prediction ( nbpix, mat, model ) : # split the input matrix into matrices of one pixel mat _ split = split _ matrix ( nbpix, mat ) nb _ dark _ pxl = mat _ split. shape [ 0 ] # initializations res = np. zeros ( ( nb _ dark _ pxl, nbpix * * 2 ) ) mres = np. zeros ( ( nbpix, nbpix ) ) # loop on all the one p...
[ -0.9748996496200562, 0.16378802061080933, 0.6677625179290771, 0.2968461215496063, 0.09953498095273972, 0.21958087384700775, -0.01123462338000536, -0.07568719238042831, 0.2162276804447174, 0.4946824312210083, -0.06857289373874664, -0.311190664768219, -0.7246485948562622, 0.8139488697052002,...
def test _ cve _ get _ bad _ page ( ) : # test negative res = requests. get ( f'{ env. awg _ base _ url } { cve _ url } ', headers = utils. base _ headers, params = {'page': - 1, } ) assert res. status _ code = = 400 response _ contains _ json ( res,'error ','bad _ input') response _ contains _ json ( res,'details ', u...
[ -0.08869735896587372, -0.40194857120513916, 0.6434899568557739, -0.45640817284584045, 1.2351621389389038, 0.6814303994178772, -1.34706711769104, -0.5323686599731445, 0.024713784456253052, -0.19913740456104279, 0.38553959131240845, 0.6811208128929138, 0.39832982420921326, 0.5739830732345581...
def _ normalized _ release ( release ) : release = release. strip ( ) class normalizedversion ( object ) : pass v = normalizedversion ( ) # fake object to get nice dotted access v. major, v. minor, v. patch, v. garbage = ( release. split ( '.') + [ " 0 " ] * 4 ) [ : 4 ] release _ map = dict ( major = v. major, minor = ...
[ -0.39061278104782104, -1.2116674184799194, 0.6667729616165161, -1.2039341926574707, -1.0762314796447754, -0.09443700313568115, -0.24650484323501587, -0.5154309272766113, 0.35365986824035645, 0.8522529006004333, -0.15055400133132935, -0.36845022439956665, 0.28565725684165955, -0.38808703422...
def run _ synapse _ simclr _ pretrain ( gpu _ index : int, args : argparse. namespace ) : # instantiate the workspace ws = synapsesimclrworkspace ( gpu _ index, args ) log _ info ( f " hashes before starting pretraining ( make sure different nodes have the same hash )... \ n " ) utils. print _ hash ( model = ws. model,...
[ -0.22390441596508026, 0.26603639125823975, 1.0131492614746094, 0.7150952816009521, 0.7725242972373962, -0.37571752071380615, 0.8802316188812256, 0.09095253050327301, 0.4491139054298401, 0.4561063349246979, -0.20215974748134613, -0.13984434306621552, 0.258308082818985, 0.2429627925157547, ...
def precompute _ decays ( self, dt ) : self. _ dt _ over _ tau = dt / self. tau super ( ). precompute _ decays ( dt )
[ 0.03358801081776619, 0.6885616183280945, 0.2929043769836426, 0.14818021655082703, -0.09841672331094742, -0.02861466258764267, 1.6621454954147339, -0.5453329682350159, 0.23076070845127106, -0.6247822046279907, -0.30294546484947205, 0.004422508645802736, 0.9442363977432251, 1.376744627952575...
def evaluate ( self, epoch ) : raise exception ('needs to be implemented')
[ -0.971182107925415, -0.6866944432258606, 0.2737462520599365, -0.17708225548267365, 0.3597636818885803, 0.6704282164573669, 0.05985729396343231, 0.5154416561126709, -0.4055725336074829, -0.49952760338783264, -0.6448553800582886, 0.10357941687107086, -0.28152239322662354, 0.5409905910491943,...
def _ pair _ counts ( sample1, sample2, rbins, period, num _ threads, do _ auto, do _ cross, _ sample1 _ is _ sample2, approx _ cell1 _ size, approx _ cell2 _ size, ) : if do _ auto is true : d1d1 = npairs _ 3d ( sample1, sample1, rbins, period = period, num _ threads = num _ threads, approx _ cell1 _ size = approx _ c...
[ 0.22963270545005798, 0.3174767792224884, 0.8661112189292908, 0.6433857083320618, -0.4518778324127197, 0.019673382863402367, 0.665642261505127, -0.7968531847000122, -0.3822803199291229, -0.13409706950187683, 0.38612639904022217, 0.7932737469673157, -0.06574533134698868, 0.38022762537002563,...
def panbrailleleftonechar ( self, inputevent = none ) : self. panbrailleleft ( inputevent, 1 )
[ 0.825795590877533, -0.7080951929092407, 0.3776843249797821, 0.6865150332450867, -0.28936558961868286, 1.2068407535552979, 0.7506961822509766, -0.5445146560668945, 0.6670921444892883, -0.23019631206989288, -1.5198827981948853, -0.07259640097618103, -1.223347783088684, 0.9281367659568787, ...
def test _ value _ error _ in _ panel _ predict _ for _ incorrect _ args ( self ) : func = self. mixl _ obj. panel _ predict args = [ none, 20 ] msg = " choice _ col is none and return _ long _ probs = = false " self. assertraisesregexp ( valueerror, msg, func, * args, return _ long _ probs = false, choice _ col = none...
[ 0.19331645965576172, 0.5759779214859009, 0.544488787651062, 0.029520686715841293, 1.0312020778656006, 0.1185080036520958, -0.3168319761753082, 0.21057772636413574, -1.7236384153366089, 0.47369256615638733, -0.09765360504388809, -0.08576107770204544, -0.33854323625564575, 0.6459346413612366...
def validate _ response _ type ( self, client _ id, response _ type, client, request, * args, * * kwargs ) : raise notimplementederror ('subclasses must implement this method.')
[ 0.13479797542095184, -1.106924295425415, 0.4068567454814911, 0.2612670958042145, 0.3353446125984192, 0.8722545504570007, 0.7136722803115845, -1.2543199062347412, 0.30744487047195435, -0.39808258414268494, 0.1513139307498932, 0.09231019765138626, -0.3479820787906647, 0.12729902565479279, ...
def isenabled ( self ) : return self. enabled
[ 0.0475071482360363, -0.5854949355125427, 0.22133801877498627, 0.9533085823059082, 0.06580952554941177, 0.4243873655796051, -0.6006396412849426, 1.4702256917953491, 0.87577885389328, -0.30951714515686035, -1.4854687452316284, 0.3180331885814667, -1.5957292318344116, -0.2003311961889267, -...
def to _ python ( self, value ) : value = super ( integerfield, self ). to _ python ( value ) if value in validators. empty _ values : return self. default if self. localize : value = formats. sanitize _ separators ( value ) try : value = int ( str ( value ) ) except ( valueerror, typeerror ) : raise validationerror ( ...
[ -0.43583717942237854, 0.4430864453315735, 0.4286938011646271, -0.5225808024406433, 0.236201673746109, 0.04006274417042732, -0.15345026552677155, -0.5882281064987183, -0.04881996288895607, 0.2011071741580963, -0.2959515452384949, -0.599765956401825, -0.6660893559455872, -0.17240622639656067...
def lookup _ by _ name ( name ) : if not ( name in builtintoolsets ) : raise exception ( " can't find toolset'% s'" % name ) return builtintoolsets [ name ]
[ 0.057682860642671585, -0.20953693985939026, 0.224442258477211, -0.858792781829834, -1.0649216175079346, -0.2504415214061737, 0.4931609034538269, -1.393868088722229, -0.5746389627456665, 0.22657467424869537, 0.23581461608409882, 0.11684004962444305, -0.28139427304267883, -0.3410372138023376...
def plot _ background ( self, data, background, scale = ( 5, 99 ), zscale = ('log ','linear'), contour = true ) : # find the minimum and maximum value of plotting if zscale [ 0 ] = ='linear': vmin = np. percentile ( data, scale [ 0 ] ) vmax = np. percentile ( data, scale [ 1 ] ) cax1 = self. ax1. imshow ( data, cmap ='...
[ 0.5503185391426086, -0.1447453498840332, 1.08169424533844, 0.3401365280151367, -0.39531946182250977, 0.27951580286026, -0.2260381430387497, -0.27748218178749084, 0.4421561360359192, 0.3446195423603058, 0.6613025665283203, 0.9871214628219604, -0.6305136680603027, 0.2766548991203308, 0.520...
def _ create _ issue ( self, owner, repo, title, body ) : url = " % s / repos / % s / % s / issues " % ( self. _ api _ url, owner, repo ) post _ data = { " title " : title, " body " : body } data = self. post ( url, data = post _ data ) if not self. _ bad _ response and data : logger. info ( " created issue \ " % s \ "...
[ -0.5741908550262451, 0.29599517583847046, 0.5765985250473022, -0.15646475553512573, 0.8718237280845642, 0.7087389826774597, -1.776694893836975, -0.28134816884994507, -0.16075925529003143, -0.11482874304056168, -0.5863871574401855, 0.3108825385570526, -0.7162818312644958, -0.122077554464340...
def _ check _ import _ source ( ) : path _ rel ='~ / cltk _ data / greek / software / greek _ software _ tlgu / tlgu. h'path = os. path. expanduser ( path _ rel ) if not os. path. isfile ( path ) : try : corpus _ importer = corpusimporter ('greek') corpus _ importer. import _ corpus ('greek _ software _ tlgu') except e...
[ 0.6943328380584717, 0.8535507321357727, 0.46006202697753906, -0.8541300296783447, 0.667068362236023, 0.6243705749511719, 0.9547649025917053, 0.374755859375, -0.5766451358795166, 0.6310868859291077, -0.7207493782043457, -0.14653022587299347, -0.38419651985168457, 0.3154182732105255, 0.497...
def get _ connected _ components _ from _ block _ mask ( block _ mask ) : " " " perform morphological processing over the block mask map, to 1 ) remedy the holes within the foreground connected components 2 ) remove the tiny noise " " " block _ mask _ morph = cv2. morphologyex ( block _ mask, cv2. morph _ close, se _ c...
[ -0.006622642744332552, -1.4404585361480713, 0.9608246088027954, 0.8105299472808838, -0.21459603309631348, -0.09480296075344086, 0.6884725093841553, -0.7375573515892029, 0.5271351933479309, -0.15345540642738342, -0.1649647355079651, -0.5191373229026794, 0.12867669761180878, 0.74484986066818...
def get _ parser ( ) : parser = libdot. argumentparser ( description = _ _ doc _ _ ) parser. add _ argument ('- - skip - git ', dest ='run _ git ', action ='store _ false ', default = true, help ='skip creating a new git commit.') parser. add _ argument ('builddir ', help ='input path to the compiled locale messages.')...
[ 0.5209827423095703, -0.030097996816039085, 0.4710223972797394, -0.9692797064781189, 0.43764907121658325, 0.3449365198612213, -0.28861093521118164, 0.2939775884151459, 0.080644391477108, -1.0252082347869873, 0.07320104539394379, 0.2953498661518097, 0.07967009395360947, 0.5803276896476746, ...
def to _ device ( data, device ) : if isinstance ( data, ( list, tuple ) ) : return [ to _ device ( x, device ) for x in data ] return data. to ( device, non _ blocking = true )
[ -0.8829309940338135, 1.434029221534729, 0.4218347668647766, 1.163050651550293, 0.0836251974105835, -0.09907674044370651, -0.2677139639854431, -0.4460155665874481, 0.24307048320770264, 0.41520100831985474, -0.0979917123913765, -0.1333816796541214, -0.796118974685669, 0.28373533487319946, ...
def instance _ groups ( self ) : return self. _ instance _ groups
[ -0.9810776114463806, 0.7789304852485657, 0.12665127217769623, -0.41211095452308655, -0.33415499329566956, 0.9508594274520874, 0.13463464379310608, -0.4236389696598053, -0.6166405081748962, 0.04536893218755722, -0.4625048339366913, 1.0715359449386597, -1.1539533138275146, 0.1674477905035019...
def _ _ gt _ _ ( self, other ) : if type ( self ) is not type ( other ) : return notimplemented return self. _ is _ greater _ than _ same _ type ( other )
[ -1.1201658248901367, 0.5722192525863647, 0.8107912540435791, 0.7373716235160828, 0.023584816604852676, 0.8993251919746399, -0.12123876065015793, -1.3359849452972412, -0.04920518770813942, 0.36293095350265503, -0.3635781407356262, 0.3900572657585144, 0.062394607812166214, 0.9460347294807434...
def period ( start _ date, end _ date ) : start _ date = datetime. datetime. strptime ( start _ date, " % y. % m. % d " ) end _ date = datetime. datetime. strptime ( end _ date, " % y. % m. % d " ) while start _ date. date ( ) < = end _ date. date ( ) : get _ data ( common _ era _ to _ republic _ era ( start _ date ) )...
[ -0.16777564585208893, 0.3049447238445282, 0.7852309942245483, -0.34645789861679077, 0.758830189704895, 0.4086296856403351, -0.6548032760620117, -0.24765260517597198, 0.04540599510073662, 0.13020169734954834, 0.227776437997818, 1.3623406887054443, -0.32003772258758545, -0.5438275933265686, ...
def chat ( self, chat ) : self. _ chat = chat
[ -0.07070957124233246, -0.05964771285653114, -0.0014277281006798148, 0.6144174337387085, -0.6994494199752808, 1.2799092531204224, 0.07658638805150986, 0.19646087288856506, -1.3582360744476318, -0.8215654492378235, -0.4766791760921478, -0.41430220007896423, 0.39363065361976624, 0.69256728887...
def lookup ( path, cache = true, scope = none, safe = false ) : result = none found = path and cache and path in _ _ lookup _ cache if found : result = _ _ lookup _ cache [ path ] elif path : _ eval = safe _ eval if safe else eval try : # search among scope result = _ eval ( path, scope ) except ( nameerror, syntaxerro...
[ -0.7406205534934998, -0.2723729908466339, 1.1707143783569336, -0.07866220921278, -0.6105133891105652, -0.49638107419013977, 0.7912137508392334, -0.35506099462509155, 0.5039982795715332, 0.6141362190246582, -0.10447511821985245, -0.05239443853497505, -0.7345060706138611, -0.1491869390010833...
def remove _ stopwords ( text, stop ) : text _ adapted = [ ] for i in text. split ( ) : if i. strip ( ). lower ( ) not in stop : text _ adapted. append ( i. strip ( ) ) return " ". join ( text _ adapted )
[ -0.10964449495077133, -0.5705927014350891, 0.40661412477493286, -0.36047855019569397, -1.368211030960083, 0.18147043883800507, -1.211059331893921, 0.9823353290557861, -0.20783273875713348, 1.1408979892730713, -0.43827685713768005, 0.31390517950057983, -1.1450815200805664, 0.065662398934364...
def yearly ( self, pattern _ dict ) : if isinstance ( pattern _ dict, bool ) : pattern _ dict = { } pattern _ dict ['freq _ type'] ='yearly'schedule _ pattern = schedulepattern ( self. _ pattern ) self. _ pattern = schedule _ pattern. create _ schedule _ pattern ( pattern _ dict ) self. _ modify _ task _ properties ( )
[ -0.29019710421562195, 0.6205200552940369, 0.7023372054100037, 0.20366722345352173, -0.15169112384319305, 0.7304933667182922, 0.5626574754714966, 1.2181744575500488, 0.005499178543686867, 0.1907101720571518, -0.5855727195739746, 0.31659001111984253, 0.36940982937812805, -0.4894750118255615,...
def getcapturemoves ( piece, position : tuple, board : list ) : color _ sign = 1 if piece = ='n'else - 1 row, col = position potential _ moves = [ ] chesspiece. captureupdate ( 2, 1, color _ sign, row, col, board, potential _ moves, 2 ) chesspiece. captureupdate ( 2, - 1, color _ sign, row, col, board, potential _ move...
[ -0.9678797721862793, -0.1065126359462738, 0.732609212398529, 0.9626925587654114, -0.09033527225255966, -0.3353269398212433, -0.5610236525535583, -0.8060362339019775, 0.2297978699207306, 0.791163980960846, -0.9434045553207397, -0.15791940689086914, 0.510359525680542, 0.41617852449417114, ...
def funding _ round _ url ( uuid, user _ key = api _ key ) : return " http : / / api. crunchbase. com / v / 2 / funding - round / % s? user _ key = % s " % ( uuid, user _ key )
[ -0.6325123310089111, 0.0454188697040081, 0.3045237958431244, 0.17960688471794128, 0.03850177302956581, 0.04211145639419556, 0.09132475405931473, 0.4449397921562195, -1.1096552610397339, 0.5475003719329834, 0.37328609824180603, 0.10576793551445007, -0.7802576422691345, 0.5054663419723511, ...
def generate _ single _ moves ( self, black _ marbles : list, white _ marbles : list, turn : chr ) : forbidden = self. forbidden _ spots result = [ ] moves = [ ] movements = self. movements if turn = ='b': marbles = black _ marbles else : marbles = white _ marbles for marble in marbles : letter, num = self. convert _ t...
[ -0.47138068079948425, 0.35956284403800964, 0.9427951574325562, -0.40705662965774536, 0.47910407185554504, 0.1554953157901764, 0.7658835053443909, 0.18560431897640228, 0.04526069387793541, 1.0766957998275757, -0.31962788105010986, 0.2869512140750885, -0.3575117290019989, 0.41326841711997986...
def country _ of _ registration _ id ( self, country _ of _ registration _ id ) : self. _ country _ of _ registration _ id = country _ of _ registration _ id
[ -0.015986593440175056, 0.5053998231887817, -0.3080846071243286, 1.3021390438079834, 0.04051137715578079, 0.6540771722793579, 1.1127647161483765, 0.2618321180343628, 0.5691385269165039, 0.07285935431718826, -0.4204193949699402, -0.29942578077316284, -0.1929585039615631, 0.6298097372055054, ...
def setclusteridfromfile ( self, fname, line = none ) : f = open ( fname ) lines = f. readlines ( ) f. close ( ) if line is none : line = self. timestep cids = lines [ line ]. split ( ) self. clusterids = np. array ( [ int ( float ( cid ) ) for cid in cids ] )
[ 0.22639083862304688, -0.5245485901832581, 0.322917640209198, 0.3434112071990967, 0.3397073447704315, 0.07431891560554504, -0.22118167579174042, 0.39771726727485657, -0.9861575365066528, 0.8772830963134766, -0.38187187910079956, 0.29871666431427, -0.5417333245277405, -0.12444901466369629, ...
def add _ bom _ parser _ args ( parser, defaults ) : buildgcecomponentimagesfactory. add _ bom _ parser _ args ( parser, defaults )
[ -0.3992230296134949, -0.6310175061225891, 0.26330864429473877, -0.09032120555639267, 1.329385757446289, 0.06278474628925323, 0.1403266042470932, -0.44038793444633484, -0.308441698551178, -0.48209211230278015, -0.5248873829841614, -0.20079219341278076, -0.6766179800033569, 0.790163397789001...
def data _ list ( ) : if request. method = ='post': # only add data to existing patients # assume that all patients are in the mrn database # todo : read in post object as a dictionary and iterate through to add values # for k, v in request. data. items ( ) : # print ( k, v ) post _ input = request. data for k, v in po...
[ -0.3270542025566101, -0.09207755327224731, 0.9576892852783203, -0.5762823820114136, 0.07171895354986191, 0.68425452709198, -0.7075824737548828, 0.5525732040405273, 0.17244243621826172, 0.023534217849373817, 0.3931017816066742, -0.3178330957889557, 0.08715087175369263, 0.47413378953933716, ...
def set _ normal _ kk ( self, clip = true ) : kk1 _ mus = random _ matrix ( [ self. mm ], params = [ self. mu _ kk1 _ hyper _ lo, self. mu _ kk1 _ hyper _ hi ], sample _ type ='uniform ', seed = self. seed _ kk1 ) kk1 _ sigmas = random _ matrix ( [ self. mm ], params = [ self. sigma _ kk1 _ hyper _ lo, self. sigma _ kk...
[ -0.2984689176082611, -0.04263826459646225, 0.7418983578681946, 0.9447868466377258, -1.230272650718689, 0.49179568886756897, 0.2287849634885788, 0.7166429758071899, 0.2812187969684601, 0.8287140727043152, 0.17317764461040497, 1.381259799003601, 0.7568352222442627, 0.5328837633132935, 0.13...
def _ write _ to ( self, filename, contents ) : with open ( self. _ abspath ( filename ),'w') as f : f. write ( contents ) # whenever we touch a file, we modify its mtime to be a unique # number, because sometimes our tests run so fast that if we # create a file and then modify it, they end up with the same # mtime eac...
[ -0.8826229572296143, -0.5437315702438354, 0.40015852451324463, -0.82918381690979, 0.7150341868400574, -0.20880690217018127, 0.5357646346092224, -0.102230966091156, -0.5722135901451111, 0.07554621994495392, 0.2208591103553772, -0.06262423098087311, 0.4840504825115204, 0.8468185067176819, ...
def validate _ redirect _ uri ( self, client _ key, redirect _ uri, request ) : raise notimplementederror ( " subclasses must implement this function. " )
[ -0.9879568219184875, -0.2975703775882721, 0.7089782953262329, 0.7425434589385986, -0.748043954372406, 1.3098788261413574, 0.8438628315925598, -0.31842851638793945, 0.1929973065853119, -0.4802922308444977, 0.6828579306602478, 0.4027538597583771, -0.3673241436481476, -0.07188420742750168, ...
async def increase _ delta ( self, inc ) : if ( self. current _ delta + inc ) < = self. delta _ max : self. current _ delta + = inc logging. info ( f " current gear ratio { self. current _ delta / self. delta _ max } " )
[ -0.2922740578651428, 0.6580908894538879, 0.7667074799537659, 0.2860337495803833, -0.2492550015449524, 1.0356179475784302, -0.05414034053683281, -0.409881591796875, -0.6129845976829529, -0.9773390293121338, 0.3423752784729004, 0.493990033864975, -0.13050760328769684, -0.07489896565675735, ...
def exponent _ of _ 2 ( number ) : if number = = 0 : print ( " no " ) elif number = = 1 : print ( " yes " ) elif number % 2 = = 0 : exponent _ of _ 2 ( number / 2 ) else : print ( " no " )
[ -0.3066352307796478, 0.12094045430421829, 0.7715076208114624, 0.7710966467857361, -0.8560388088226318, 0.07470621913671494, 0.44421643018722534, 0.31629788875579834, -0.13671505451202393, -0.47712552547454834, -0.20289281010627747, 0.6996943950653076, 0.3203185796737671, 0.9492635726928711...
def check _ runner ( self, set _ up _ path = true ) : if set _ up _ path and os. getcwd ( ) not in sys. path : sys. path. append ( os. getcwd ( ) ) if self. runner is none : self. runner = runner ( self. comp, exit = self. exit _ runner, store = self. mypy )
[ -0.1817580759525299, -0.0534033328294754, 0.4519394338130951, 0.6002554893493652, 0.39285439252853394, 0.5139472484588623, 1.4378023147583008, 0.475295752286911, 0.15383948385715485, -0.17888778448104858, 0.24905985593795776, 0.2506537437438965, -0.6434335112571716, 0.5938341021537781, 0...
def add _ enum ( self, name, enum _ name = " ", cases = none, * * kwargs ) : if cases is not none : enum _ name = cases if isinstance ( enum _ name, ( list, tuple ) ) : enum _ name = " : ". join ( enum _ name ) return self. _ add _ traced _ attr ( " enum ", name, enumname = enum _ name, * * kwargs )
[ -0.6638548374176025, 0.1782195270061493, 0.7902853488922119, 0.5302361845970154, 0.609011709690094, 0.257367879152298, 0.3844596743583679, 0.16560247540473938, 1.0908087491989136, 0.39195096492767334, -0.30741631984710693, -0.3238658308982849, -0.19203349947929382, -0.09324292838573456, ...
def _ _ init _ _ ( self, release, btagwp, fitconfigfilename ) : if release! = 20 and release! = 21 : print ( " error : unknown release ", release, " using r21 now. " ) self. release = 21 else : self. release = release if btagwp! = 60 and btagwp! = 70 and btagwp! = 77 and btagwp! = 80 : print ( " error : unknown btaggin...
[ -0.08146834373474121, -0.5691715478897095, 0.6281077265739441, 0.3992552161216736, -0.559855580329895, 0.5310863852500916, 0.091927170753479, 0.2952846586704254, -0.889091432094574, 0.36277076601982117, 0.05114199221134186, 0.7933930158615112, -0.22310250997543335, 0.570608377456665, 0.7...
def process _ tick ( self, freq ) : super ( attachments, self ). process _ tick ( freq ) self. _ load _ settings ( )
[ -1.0008165836334229, 0.6879803538322449, 0.14385204017162323, -0.40712854266166687, 0.23446641862392426, -0.7688526511192322, 1.2523620128631592, -1.0993391275405884, 0.10643026977777481, -0.47836583852767944, 0.22336013615131378, -0.48610952496528625, 0.429852157831192, 0.3913605511188507...
def to _ adj _ matrix ( adj _ list : list [ list [ int ] ] ) - > list [ list [ int ] ] :
[ -1.2131627798080444, 0.1193578690290451, 0.3143949508666992, 0.01726142130792141, 0.5784761905670166, 0.33737197518348694, 0.7265228629112244, 0.6198148131370544, 1.0759737491607666, 0.6538453698158264, -0.22685779631137848, 0.6066746115684509, -0.5174809694290161, 0.9635064005851746, -0...
def imagetransformer2d _ base _ 12l _ 8 _ 64 _ 64by64 ( ) : hparams = image _ transformer2d _ base ( ) hparams. num _ heads = 8 hparams. hidden _ size = 512 hparams. filter _ size = 2048 hparams. num _ decoder _ layers = 12 hparams. batch _ size = 1 hparams. layer _ prepostprocess _ dropout = 0. 1 hparams. query _ shap...
[ -0.5661517381668091, -0.06558193266391754, 0.7144581079483032, -0.43435317277908325, -0.01754608191549778, -0.7053805589675903, -0.34267085790634155, 0.015593960881233215, -0.3460933566093445, 0.1699741631746292, -0.7824708819389343, 0.04787670448422432, -0.07264336943626404, 0.92344415187...
def fixcoords ( pos, posinit, box ) : for i in range ( int ( len ( pos ) / 3 ) ) : # pdb. set _ trace ( ) dr = pos [ 3 * i : 3 * i + 3 ] - posinit dr = dr - box * np. round ( dr / box ) pos [ 3 * i : 3 * i + 3 ] = dr + posinit return pos
[ -0.029339175671339035, -0.6212873458862305, 0.5305745601654053, -0.21793046593666077, 0.22500784695148468, 0.5506775975227356, -0.21093197166919708, 0.5834681987762451, 0.013805496506392956, -0.403653621673584, -0.4041287899017334, -0.42838287353515625, -0.6377434730529785, -1.056535363197...
def reliability ( unit _ sweeps, padding = 1. 0, num _ timestep _ second = 30, filter _ width = 0. 1, window _ beg = 0, window _ end = none ) : if isinstance ( unit _ sweeps, ( list, tuple ) ) : unit _ sweeps = np. array ( [ np. array ( l ) for l in unit _ sweeps ] ) unit _ sweeps = unit _ sweeps + padding # do not use...
[ -0.15524064004421234, 0.2037978619337082, 1.054333209991455, -0.12419192492961884, 0.04049515724182129, -0.03836551308631897, 1.07207453250885, 0.28688639402389526, 0.18854424357414246, 0.09710991382598877, 0.7754584550857544, 0.7769381999969482, -0.22484245896339417, 0.11702585220336914, ...
def card _ id ( self, card _ id ) : self. _ card _ id = card _ id
[ 0.7102314233779907, -0.9810647368431091, -0.21799629926681519, 0.22982068359851837, 1.0915547609329224, 1.0034799575805664, -0.6258056163787842, 1.8297559022903442, 0.7437509298324585, -0.08238042145967484, -0.32062938809394836, 0.673958957195282, 0.391818642616272, 0.9368312954902649, 0...
def total _ weight ( self ) : return self. array ('weight'). sum ( )
[ 0.24148854613304138, -0.2147592157125473, 0.5078961253166199, 0.3520135283470154, 0.7771568298339844, 0.11646132171154022, 0.44720658659935, -0.3121134042739868, 0.3688969016075134, 0.4818744659423828, -0.29896265268325806, -0.10894795507192612, -0.369281530380249, -0.050960030406713486, ...