query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Send message via WS to all client connections.
def WdaX() -> None: if not gBxx: return tO9_ = qQXR.dumps(gBxx) gBxx.clear() for w2B8 in yR_P.connections: w2B8.write_message(tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z9Sj(YKHO, Ol8d):\n for Z9rn in list(YKHO.factory.clients.keys()):\n Z9rn.send_to_client(Ol8d, Z9rn)", "def zLGZ(YKHO, tO9_):\n for Z9rn in YKHO.client_list:\n Z9rn.send_msg(tO9_)", "def d2r8(YKHO, Ol8d):\n for Z9rn in YKHO.get_clients_list():\n V7ok.get_event_loop().create_ta...
[ "0.7866185", "0.76697457", "0.7543905", "0.73297", "0.7291327", "0.70503366", "0.7020166", "0.68428105", "0.67712414", "0.6696997", "0.6630074", "0.65545434", "0.6553594", "0.6535792", "0.65337014", "0.6431024", "0.6426655", "0.6419374", "0.6413331", "0.63833386", "0.6374712"...
0.5892975
73
Get the 2D annotation records for a given `sample_data_token`.
def dD4z(_fNB, o_SD: str, XYsm: List[str], kIjR=True): HWV2 = _fNB.get('sample_data', o_SD) assert HWV2['sensor_modality'] == 'camera', 'Error: get_2d_boxes only works for camera sample_data!' if not HWV2['is_key_frame']: raise ValueError('The 2D re-projections are available only for keyframes.') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gLgM(YKHO, n50m: str, r1VO: float, qcZU: list, jpDp: tuple, kWYA: int, cBrZ: bool=False, fohw: int=None) -> tuple:\n mvm2 = YKHO.nusc.get('sample', n50m)\n blvj = []\n for nPrm in mvm2['data']:\n eOtH = mvm2['data'][nPrm]\n if YKHO.nusc.get('sample_data', eOtH)['sensor_modality'] == 'rad...
[ "0.56969434", "0.56700927", "0.55901086", "0.55612767", "0.555394", "0.55382645", "0.54781187", "0.542526", "0.5423004", "0.53534544", "0.531233", "0.5284123", "0.5272607", "0.5250945", "0.5250469", "0.5232467", "0.5231733", "0.51682323", "0.51314926", "0.5122353", "0.5105113...
0.0
-1
Get the intersection of the convex hull of the reprojected bbox corners and the image canvas, return None if no intersection.
def kAA4(bFFC: List, JV6e: Tuple[int, int]=(1600, 900)) -> uLKX[AzJI[float, float, float, float], None]: sVjM = elG8(bFFC).convex_hull IDEl = FlUN(0, 0, JV6e[0], JV6e[1]) if sVjM.intersects(IDEl): DVnU = sVjM.intersection(IDEl) aUIy = oyIN.array([BHsk for BHsk in DVnU.exterior.coords]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pLOM(YKHO, cviu):\n return BpBP.computeIntersection(YKHO, cviu)", "def Zcpz(U6D_):\n y5bX = []\n for tTpl in U6D_.flat_elements(types=('image', 'path')):\n if isinstance(tTpl.element, GkAb):\n C99U = abs(tTpl.element)\n y5bX += [vexM for vexM in C99U.as_points()]\n ...
[ "0.6447281", "0.6143001", "0.6129418", "0.6095106", "0.60903686", "0.6082017", "0.60344094", "0.60344094", "0.601721", "0.5982638", "0.5965515", "0.5965515", "0.59460974", "0.5883239", "0.5867249", "0.5861145", "0.58421856", "0.5835565", "0.5835228", "0.5831155", "0.580857", ...
0.5665384
27
Formats seconds to days, hours, minutes & seconds
def cee0(pKvt: float) -> str: kRsb = round(pKvt) Sm0u = epAf.floor(kRsb / 86400) kRsb -= 86400 * Sm0u zbR6 = epAf.floor(kRsb / 3600) kRsb -= 3600 * zbR6 eRPr = epAf.floor(kRsb / 60) kRsb -= 60 * eRPr return '{0}d {1}h {2}m {3}s'.format(Sm0u, zbR6, eRPr, kRsb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reXX(YKHO, C6wh):\n r8hN, KCHu = divmod(C6wh, 60)\n MKlR, r8hN = divmod(r8hN, 60)\n l5Ny = '%d hours %02d mins %02d seconds' % (MKlR, r8hN, KCHu)\n return l5Ny", "def TmWH(xXys):\n C6wh = xXys\n Wave = 0\n O66n = 0\n Sm0u = 0\n while C6wh >= 60:\n if C6wh >= 60 * 60 * 24:\n ...
[ "0.836269", "0.8194626", "0.815605", "0.81218797", "0.8086176", "0.78477925", "0.78129894", "0.78053784", "0.7762265", "0.77595186", "0.7720352", "0.7684368", "0.7668824", "0.7591286", "0.75900066", "0.75424474", "0.7447684", "0.7408089", "0.74068254", "0.7378303", "0.7374852...
0.69839
63
Test the workings of convertToSphericalCoordinates by 1. checking a simple scalar input, and comparing the output to expected values in degrees 2. Check that the same outputs come out when unit is not specified. ie defaults 3. Check that exceptions are raised when the unit is not in degrees or radians 4. Check that
def _yxA(): XdG6 = 24.0 iSjc = 90.0 q7In, rVnq = I1NT(ra=XdG6, dec=iSjc, unit='degrees') assert q7In == oyIN.array([0.0]) assert rVnq == oyIN.array([0.4188790204786391])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BFFy(YKHO):\n e2lI, OQjU, aL3w = TIW_(0.0, 0.0)\n oyIN.testing.assert_array_almost_equal(e2lI, oyIN.array([0, 0, -1]))\n oyIN.testing.assert_array_almost_equal(OQjU, oyIN.array([0, 1, 0]))\n oyIN.testing.assert_array_almost_equal(aL3w, oyIN.array([1, 0, 0]))\n e2lI, OQjU, aL3w = TIW_(90.0, 0.0)\...
[ "0.68533015", "0.6407673", "0.64024425", "0.63851935", "0.63698524", "0.6282289", "0.6234587", "0.6186474", "0.6161715", "0.6152236", "0.6148923", "0.61186665", "0.60852164", "0.60710096", "0.60525733", "0.5989444", "0.59575814", "0.5944743", "0.5930213", "0.592404", "0.58594...
0.79869086
0
split the data into test and train
def hhTY(mMG6, VUzz, mVUw=0.8): PqZA = oyIN.random.choice(len(mMG6), int(round(len(mMG6) * mVUw)), replace=False) ukh_ = oyIN.array(list(set(range(len(mMG6))) - set(PqZA))) fgCO = mMG6[PqZA] oOFv = mMG6[ukh_] NR0V = VUzz[PqZA] dAi5 = VUzz[ukh_] return (fgCO, NR0V, oOFv, dAi5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hhTY(YKHO):\n EvQg = []\n QOe9 = []\n for ZfUD in YKHO.data:\n if ZfUD[0] == 'train':\n EvQg.append(ZfUD)\n else:\n QOe9.append(ZfUD)\n return (EvQg, QOe9)", "def hhTY(nPrm, NI2E):\n EvQg, QOe9 = bHtP(nPrm, test_size=NI2E, random_state=1)\n return (EvQg, ...
[ "0.867067", "0.8406117", "0.84008086", "0.8377752", "0.832543", "0.8314669", "0.82035726", "0.8190892", "0.81593037", "0.8155213", "0.81547225", "0.8145239", "0.8135751", "0.81078655", "0.8099729", "0.80835146", "0.8077097", "0.80714875", "0.80644095", "0.8053578", "0.8041204...
0.0
-1
Test with realworld data which uses the CSM format.
def Vtr3(YKHO): ZDtN = {'body': {'mandatory_parameters': {'priority_flag': 0, 'source_addr': '261xxx720371', 'protocol_id': 0, 'replace_if_present_flag': 0, 'registered_delivery': 0, 'dest_addr_ton': 'international', 'source_addr_npi': 'ISDN', 'schedule_delivery_time': '', 'dest_addr_npi': 'ISDN', 'sm_length': 159,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TE8E():\n IznC = 'mols8.gsd'\n dlZb = EaPE.hoomd.open(khtY.join(i0XC, IznC))\n FlUN = dlZb[0].configuration.box\n tUUV = {'contact': 17}\n tAX0 = 1.1 * 1.1\n LMlj = 8\n Ws6V = {'contact': tAX0}\n bhab = CQwJ.SnapSystem(dlZb, tUUV, LMlj, Ws6V)\n bhab.get_clusters_serial('contact', FlU...
[ "0.6198228", "0.6049751", "0.59283197", "0.5878639", "0.5870339", "0.58644587", "0.58494353", "0.584011", "0.572763", "0.56795454", "0.56558067", "0.56466955", "0.56458557", "0.5631715", "0.5623527", "0.56078863", "0.5600604", "0.55895495", "0.558439", "0.5583364", "0.5576063...
0.0
-1
Truncate a `string` to `limit` characters followed by an ellipsis
def aFgn(vIwR, qoqK): return vIwR if len(vIwR) < qoqK else vIwR[:qoqK - 3] + '...'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G34s(KCHu, qoqK):\n if len(KCHu) <= qoqK:\n return KCHu\n return '%s...' % KCHu[:max(1, qoqK - 3)]", "def G34s(YKHO, vIwR, qoqK):\n vIwR = str(vIwR)\n if len(vIwR) < qoqK - 4:\n return vIwR\n else:\n return vIwR[:qoqK - 4] + '...'", "def G34s(l5Ny: str, KLk8: int=1024) -...
[ "0.8715648", "0.8452279", "0.8352904", "0.8310912", "0.81678957", "0.81198204", "0.7997441", "0.79480755", "0.79480755", "0.79060394", "0.78977454", "0.7868775", "0.7863853", "0.7848486", "0.78322583", "0.7799887", "0.77953005", "0.77940214", "0.7752402", "0.7747907", "0.7733...
0.859394
1
Compute the inverse of a matrix using (C)holesky of (L)U decomposition. If INPLACE=False, a new matrix with the inverse is returned, otherwise A is overwritten.
def GOZd(k0lF, ljgC, Y0xa=False): assert ljgC[0] in ['c', 'C', 'l', 'L'], "Factorisation must be either 'c' - cholesky or 'l' - LU" if not Y0xa: k0lF = k0lF.copy() if ljgC[0] in ['c', 'C']: cupm(k0lF, True) MQon(k0lF, True) else: UqOF, Lxki = diwz(k0lF, True) TMdp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n5rj(k0lF):\n global Ic\n return oyIN.asmatrix(aJJu.lapack.zgesv(k0lF, oyIN.copy(oZH5))[2])", "def GOZd(YKHO):\n if not YKHO.is_square():\n raise (ValueError, 'Non-square Matrix does not have an inverse.')\n if YKHO.h > 2:\n raise (NotImplementedError, 'inversion not implemented for...
[ "0.7273373", "0.7059176", "0.6946513", "0.69427717", "0.68655205", "0.68540084", "0.67690825", "0.67238414", "0.6705776", "0.6627509", "0.6618656", "0.6618656", "0.6599263", "0.65858114", "0.6558933", "0.6557367", "0.65561795", "0.655547", "0.65531045", "0.644164", "0.6439016...
0.74342746
0
Gets scaling property of this transform.
def Sa_m(YKHO): return SoA4(YKHO._rtval.sc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NXpY(YKHO):\n return YKHO._scale", "def NXpY(YKHO):\n return YKHO._scale", "def NXpY(YKHO):\n return YKHO._scale", "def NXpY(YKHO):\n return YKHO._scale", "def NXpY(YKHO):\n return YKHO._scale", "def NXpY(YKHO):\n return YKHO._scale", "def NXpY(YKHO):\n return YKHO._scale", "...
[ "0.8087684", "0.8020361", "0.8020361", "0.8020361", "0.8020361", "0.8020361", "0.8020361", "0.8020361", "0.8020361", "0.8020361", "0.8015955", "0.8015955", "0.7868962", "0.77675796", "0.7714493", "0.76910645", "0.76910645", "0.76910645", "0.76583916", "0.76273024", "0.7585680...
0.0
-1
Returns RFC3339 representation of datetime object.
def _RwM(JRYC): if JRYC.utcoffset() is not None: Kzzc = JRYC.isoformat() else: Kzzc = '{}Z'.format(JRYC.isoformat()) return Kzzc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr0B(qcWV):\n if qcWV.tzinfo is None:\n qcWV = qcWV.astimezone(rIAI.utc)\n Ylbp = qcWV.isoformat()\n if Ylbp.endswith('+00:00'):\n return f'{Ylbp[:-6]}Z'\n return Ylbp", "def aaIS(UYqp=None):\n return UYqp.isoformat('T') + 'Z'", "def r5lY(JRYC):\n agcF(JRYC)\n bfRL = JRYC...
[ "0.78298265", "0.7798475", "0.7733007", "0.7651059", "0.75533366", "0.7478557", "0.73314834", "0.72582406", "0.6982359", "0.6953493", "0.6950156", "0.6836486", "0.68196744", "0.6806853", "0.6777645", "0.66776115", "0.66745895", "0.6665699", "0.6653486", "0.66159034", "0.66159...
0.0
-1
Get the owner of a bucket.
def Fqw8(YKHO, WE7e): qsJ6, PcsU = YKHO._bucket_db.get(WE7e, (None, None)) if PcsU is not None and PcsU < ITS7.time(): del YKHO._bucket_db[WE7e] return None return qsJ6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fqw8(YKHO, WE7e):\n qsJ6 = YKHO.conn_slave.get(YKHO._key(WE7e))\n return qsJ6", "def qsJ6(YKHO) -> qe4Y.Input['BucketAclV2AccessControlPolicyOwnerArgs']:\n return qe4Y.get(YKHO, 'owner')", "def wjYZ(WE7e, Z31E=None):\n WE7e = ZbWC.sub('^s3://', '', WE7e).rstrip('/')\n x0hE = iVGz.client('s3'...
[ "0.86683935", "0.731572", "0.7159399", "0.71455896", "0.67089325", "0.6702242", "0.6671109", "0.6632026", "0.6632026", "0.6632026", "0.6632026", "0.6632026", "0.6632026", "0.6632026", "0.6611097", "0.6601792", "0.65825117", "0.65825117", "0.6574411", "0.6549603", "0.65415347"...
0.81793106
1
Get the owner of a bucket.
def Fqw8(YKHO, WE7e): qsJ6 = YKHO.conn_slave.get(YKHO._key(WE7e)) return qsJ6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fqw8(YKHO, WE7e):\n qsJ6, PcsU = YKHO._bucket_db.get(WE7e, (None, None))\n if PcsU is not None and PcsU < ITS7.time():\n del YKHO._bucket_db[WE7e]\n return None\n return qsJ6", "def qsJ6(YKHO) -> qe4Y.Input['BucketAclV2AccessControlPolicyOwnerArgs']:\n return qe4Y.get(YKHO, 'owner')...
[ "0.81793106", "0.731572", "0.7159399", "0.71455896", "0.67089325", "0.6702242", "0.6671109", "0.6632026", "0.6632026", "0.6632026", "0.6632026", "0.6632026", "0.6632026", "0.6632026", "0.6611097", "0.6601792", "0.65825117", "0.65825117", "0.6574411", "0.6549603", "0.65415347"...
0.86683935
0
Checks whether `url` is a valid URL.
def SGVO(bD7m): U5Jc = KVWQ(bD7m) return bool(U5Jc.netloc) and bool(U5Jc.scheme)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yaqE(bD7m):\n return True if f8eG.match(bD7m) else False", "def SGVO(bD7m):\n aBkf = _FIc.URLValidator()\n try:\n aBkf(bD7m)\n except _FIc.ValidationError:\n return False\n else:\n return True", "def Sxk4(bD7m):\n if not ZbWC.search('^(http|https|ftp)' + '\\\\://[a-z0...
[ "0.89381665", "0.8779828", "0.8753729", "0.86871576", "0.8650634", "0.8644762", "0.8618307", "0.85922384", "0.8588325", "0.8504923", "0.8438252", "0.84380984", "0.8435851", "0.84349155", "0.841518", "0.84062326", "0.83963937", "0.8394688", "0.8381841", "0.83678716", "0.835786...
0.82970184
29
This method will check if any of the currently added relation is a subset of New Relation and then will add the relation in the list
def KV05(YKHO, Dp6a, vuvg): Kt_s = YKHO.List_Relation.copy() if YKHO.List_Relation == []: YKHO.List_Relation.append((Dp6a, vuvg)) else: for Oa1e in Kt_s: if Oa1e[0].issubset(Dp6a): YKHO.List_Relation.remove(Oa1e) elif Dp6a.issubset(Oa1e[0]): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def impD(YKHO, Mm8p):\n Oa1e = list()\n Oa1e.extend(Mm8p.lh)\n Oa1e.extend(Mm8p.rh)\n return set(Oa1e)", "def _jXH(YKHO):\n if not YKHO.save():\n return False\n for FYrf in YKHO.__relations.values():\n if isinstance(FYrf, LRdN):\n FYrf = FYrf.all()\n else:\n ...
[ "0.6202282", "0.6100379", "0.6097713", "0.60626405", "0.587918", "0.5842146", "0.58316576", "0.5773578", "0.57447094", "0.5706316", "0.56407136", "0.5625669", "0.55688155", "0.5559093", "0.5554478", "0.5536062", "0.55326307", "0.5513344", "0.55003357", "0.54516697", "0.544580...
0.7062656
0
Destroys a connection. Used in the ``connect`` context manager.
def l1iy(YKHO): YKHO._lock.release()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cc3W(UzPC):\n UzPC.close()", "def fFx9(YKHO):\n if YKHO.connected:\n YKHO.__conn.close()", "def fFx9(YKHO):\n YKHO.__connect.close()", "def fFx9(YKHO):\n try:\n YKHO.conn.close()\n except AttributeError:\n pass", "def fFx9(YKHO):\n YKHO.connection.close()\n YKH...
[ "0.7657877", "0.743141", "0.736638", "0.73314995", "0.7311723", "0.72619504", "0.7199891", "0.71897835", "0.7156086", "0.7156086", "0.7109907", "0.7053589", "0.7053589", "0.704361", "0.70159006", "0.69950426", "0.6898807", "0.68948513", "0.6892678", "0.68892795", "0.6875579",...
0.7702062
0
Returns the streams ID
def OVE8(YKHO): return YKHO._incomingID
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MLMj(YKHO):\n return YKHO.stream_id_", "def lxk1(cuiw, MLMj):\n return JJXN.get_by_id(cuiw.account, MLMj)", "def AJ6q(YKHO):\n if YKHO.xmlDoc.attributes.has_key('streamId'):\n return YKHO.xmlDoc.attributes['streamId'].value", "def MLMj(YKHO):\n MLMj = aTac()\n YKHO._api.LITE_get_str...
[ "0.84056485", "0.7781419", "0.7582583", "0.7579262", "0.68287194", "0.670795", "0.67058426", "0.6701349", "0.66544294", "0.66166043", "0.66042423", "0.65539414", "0.6516558", "0.6515641", "0.64790475", "0.6472417", "0.64686894", "0.6418779", "0.64136237", "0.6390804", "0.6350...
0.0
-1
Returns the streams ID
def mWaS(YKHO): return YKHO._incomingID
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MLMj(YKHO):\n return YKHO.stream_id_", "def lxk1(cuiw, MLMj):\n return JJXN.get_by_id(cuiw.account, MLMj)", "def AJ6q(YKHO):\n if YKHO.xmlDoc.attributes.has_key('streamId'):\n return YKHO.xmlDoc.attributes['streamId'].value", "def MLMj(YKHO):\n MLMj = aTac()\n YKHO._api.LITE_get_str...
[ "0.84056485", "0.7781419", "0.7582583", "0.7579262", "0.68287194", "0.670795", "0.67058426", "0.6701349", "0.66544294", "0.66166043", "0.66042423", "0.65539414", "0.6516558", "0.6515641", "0.64790475", "0.6472417", "0.64686894", "0.6418779", "0.64136237", "0.6390804", "0.6350...
0.0
-1
This test check which template will be return if in settings DJANGO_POPUP_VIEW_FIELD_TEMPLATE_PACK flag is not set
def QofJ(YKHO): TEdI = I8IS(view_class_name='TestView', popup_dialog_title='Title', callback_data='callback=Yes') YKHO.assertEqual(TEdI.get_template_name(), 'django_popup_view_field/popup_view_widget_bootstrap3.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iolg(YKHO):\n TEdI = I8IS(view_class_name='TestView', popup_dialog_title='Title', callback_data='callback=Yes')\n with YKHO.assertRaisesMessage(rqaQ, 'incorrect value for settings.DJANGO_POPUP_VIEW_FIELD_TEMPLATE_PACK availables values are: bootstrap3, bootstrap4'):\n TEdI.get_template_name()", ...
[ "0.6642245", "0.6625835", "0.64178735", "0.63578224", "0.6154373", "0.6153079", "0.613319", "0.60741353", "0.60154605", "0.59991574", "0.5969501", "0.59584075", "0.5955859", "0.59490275", "0.594724", "0.5944993", "0.5944993", "0.5944691", "0.5927773", "0.59178954", "0.5917771...
0.6635468
1
This test check which template will be return if in settings DJANGO_POPUP_VIEW_FIELD_TEMPLATE_PACK flag is set to 'bootstrap3'
def eo89(YKHO): TEdI = I8IS(view_class_name='TestView', popup_dialog_title='Title', callback_data='callback=Yes') YKHO.assertEqual(TEdI.get_template_name(), 'django_popup_view_field/popup_view_widget_bootstrap3.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iolg(YKHO):\n TEdI = I8IS(view_class_name='TestView', popup_dialog_title='Title', callback_data='callback=Yes')\n with YKHO.assertRaisesMessage(rqaQ, 'incorrect value for settings.DJANGO_POPUP_VIEW_FIELD_TEMPLATE_PACK availables values are: bootstrap3, bootstrap4'):\n TEdI.get_template_name()", ...
[ "0.7028642", "0.70202476", "0.6891261", "0.6206974", "0.58516425", "0.5849185", "0.57793313", "0.573407", "0.57162046", "0.5683276", "0.56750476", "0.56588733", "0.56588733", "0.5646062", "0.56372976", "0.5628359", "0.5625262", "0.5596952", "0.5591476", "0.5576826", "0.557170...
0.7103625
0
This test check which template will be return if in settings DJANGO_POPUP_VIEW_FIELD_TEMPLATE_PACK flag is set to 'bootstrap4'
def QROM(YKHO): TEdI = I8IS(view_class_name='TestView', popup_dialog_title='Title', callback_data='callback=Yes') YKHO.assertEqual(TEdI.get_template_name(), 'django_popup_view_field/popup_view_widget_bootstrap4.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iolg(YKHO):\n TEdI = I8IS(view_class_name='TestView', popup_dialog_title='Title', callback_data='callback=Yes')\n with YKHO.assertRaisesMessage(rqaQ, 'incorrect value for settings.DJANGO_POPUP_VIEW_FIELD_TEMPLATE_PACK availables values are: bootstrap3, bootstrap4'):\n TEdI.get_template_name()", ...
[ "0.7043393", "0.69003934", "0.6847254", "0.6240432", "0.58293974", "0.5812795", "0.57963765", "0.5778557", "0.57628983", "0.57133", "0.5702224", "0.5702224", "0.5690603", "0.5667909", "0.5650078", "0.5643053", "0.563666", "0.5631813", "0.56241906", "0.5594532", "0.5593924", ...
0.7180147
0
Convert the (rho, theta) Hough format into cartesion coordinates
def JQSI(oZuG, q7In): jzdc = oyIN.cos(q7In) Fg_i = oyIN.sin(q7In) nJ9F = jzdc * oZuG nxyw = Fg_i * oZuG o4D3 = int(nJ9F + 1000 * -Fg_i) si3g = int(nxyw + 1000 * jzdc) ajwV = int(nJ9F - 1000 * -Fg_i) skBL = int(nxyw - 1000 * jzdc) return ((o4D3, si3g), (ajwV, skBL))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zrt4(oZuG, q7In):\n WKvO = oZuG * oyIN.cos(q7In)\n LVAh = oZuG * oyIN.sin(q7In)\n return (WKvO, LVAh)", "def _ix8(VXjJ):\n XcU5, C7Ls = VXjJ.shape\n fLeC = int(oyIN.ceil(oyIN.sqrt(XcU5 * XcU5 + C7Ls * C7Ls)))\n lESs = oyIN.linspace(-fLeC, fLeC, fLeC * 2.0 + 1)\n wSAP = oyIN.deg2rad(oyIN....
[ "0.6833234", "0.6645741", "0.66366726", "0.64741904", "0.6382642", "0.632504", "0.63214713", "0.61379683", "0.6007184", "0.5992799", "0.58756274", "0.58738697", "0.5828179", "0.5791171", "0.57722044", "0.5703648", "0.5688793", "0.56742126", "0.5667186", "0.564785", "0.5638891...
0.0
-1
Preprocesses the sentences passed in as a parameter & returns cleaned sentences
def biH0(Rhv4): yHZQ = rLdf.Series(Rhv4).str.replace('[^a-zA-Z]', ' ') yHZQ = [ZbWC.sub('\\[[0-9]*\\]', ' ', KCHu) for KCHu in yHZQ] yHZQ = [ZbWC.sub('\\s+', ' ', KCHu) for KCHu in yHZQ] yHZQ = [KCHu.lstrip() for KCHu in yHZQ] yHZQ = [KCHu.rstrip() for KCHu in yHZQ] yHZQ = [KCHu.lower() for KCHu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zi4e(yAmx):\n yAmx = yAmx.lower()\n yAmx = yAmx.strip('\\n')\n yAmx = yAmx.split(' ')\n return yAmx", "def Sz5v(Rhv4, hUw6, UZ_3):\n D7Gk = []\n for A97Q in Rhv4:\n A97Q = A97Q.lower().strip()\n A97Q = ZbWC.sub('([.!?])', ' \\\\1', A97Q)\n A97Q = ZbWC.sub('[^a-zA-Z.!?]+...
[ "0.7740154", "0.76455283", "0.75588715", "0.7431684", "0.7333253", "0.730913", "0.7287496", "0.72783273", "0.7278138", "0.7270143", "0.72354823", "0.7230963", "0.7213767", "0.71795803", "0.71387833", "0.71247643", "0.7114397", "0.7074562", "0.7067455", "0.7052255", "0.7026001...
0.7872724
0
Estimates value (average perstep reward) of policy.
def WnUJ(YKHO, __n6: dataset_lib.OffpolicyDataset, gbXe: tf_policy.TFPolicy): def qKJx(PtHv, ecgB, FZpk=None): """Computes average initial Q-values of episodes.""" if ZylS.rank(ecgB) == 1: qwmW = ZylS.nest.map_structure(lambda a1PO: a1PO[0, ...], PtHv) else: qwmW = Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EGrn(YKHO, vOGg: np.ndarray, ymbW: np.ndarray, J283: np.ndarray, yvMY: np.ndarray, **B2fa) -> float:\n return NUkb + YKHO.eps", "def EGrn(YKHO, vOGg: np.ndarray, ymbW: np.ndarray, J283: np.ndarray, yvMY: np.ndarray, HiYE: np.ndarray, **B2fa) -> float:\n return NUkb", "def EGrn(YKHO) -> float:\n ra...
[ "0.80761325", "0.80090004", "0.7792784", "0.7405478", "0.7216368", "0.71093243", "0.7073042", "0.705664", "0.70094305", "0.70094305", "0.69943386", "0.6883809", "0.68367904", "0.6827958", "0.6810599", "0.6785343", "0.6777231", "0.6766012", "0.67570555", "0.67570555", "0.67320...
0.7211606
5
Returns a User object filled with dummy data and not active, and sends an invitation email.
def SKzS(YKHO, D3lj, vC92=None, **B2fa): try: CBIr = mv1M.objects.get(email=D3lj) except mv1M.DoesNotExist: CBIr = mv1M.objects.create(username=QMSQ(qxeD.uuid1()), email=D3lj, password=mv1M.objects.make_random_password()) CBIr.is_active = False CBIr.save() YKHO.send_invitatio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wnag(YKHO, D3lj):\n D3lj = D3lj.lower()\n CBIr = NCls.GqlQuery('select * from UserModel where email = :1 limit 1', D3lj)\n if CBIr.count(1) > 0:\n return Nc2H().get(CBIr[0].key())\n CBIr = Nc2H()\n CBIr.email = D3lj\n CBIr.name = D3lj\n CBIr.put()\n Ol8d = cpYK.EmailMessage(sende...
[ "0.7063962", "0.69686776", "0.68916535", "0.6841214", "0.67200834", "0.66979456", "0.668448", "0.667474", "0.6634612", "0.66327083", "0.6629463", "0.661167", "0.6610192", "0.659549", "0.65789634", "0.65705556", "0.6535285", "0.6517863", "0.6517082", "0.6393227", "0.63837856",...
0.7254277
0
Reads the data from the rate_lookup.csv file into a pandas DataFrame The rate_lookup.csv file should contain the columns called ``state``, ``class_code``, ``final_rate``, ``final_rate_uslh`` and ``clerical_ind``. If the input division is 58USLH, the ``final_rate`` column is dropped and the ``final_rate_uslh`` column is...
def ZjPl(Ux0P, tX9m): xJna = CwDs.read_csv(Ux0P, index_col='lookup_key') if tX9m: xJna.drop('final_rate', axis=1, inplace=True) xJna.rename(columns={'final_rate_uslh': 'final_rate'}, inplace=True) else: xJna.drop('final_rate_uslh', axis=1, inplace=True) return xJna
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fwly(Ux0P, rAjW, uWV0, tX9m):\n lRJO = CwDs.read_csv(Ux0P, parse_dates=['effective_date', 'expiration_date'], infer_datetime_format=True)\n\n def YaVp(d6pt):\n return lRJO['division'][d6pt] == rAjW and lRJO['effective_date'][d6pt] <= uWV0 <= lRJO['expiration_date'][d6pt] and (lRJO['uslh_ind'][d6pt...
[ "0.6203572", "0.60744745", "0.5964494", "0.5944187", "0.57976925", "0.57615775", "0.55986404", "0.55866325", "0.5549369", "0.554633", "0.55460066", "0.55413765", "0.5538205", "0.54987884", "0.54824513", "0.5444591", "0.5423946", "0.54131734", "0.5406976", "0.5389422", "0.5378...
0.7156719
0
Generate batches of data for a specified batch size from sample indices. If the dataset size is not divisible by the batch size and `drop_last` is `True`, the last incomplete batch is dropped. Else, it is returned.
def ZMUM(n93W: np.ndarray, Ep8u: int, lM6R=True) -> oyIN.ndarray: eAYh = len(n93W) if lM6R: qb3T = eAYh % Ep8u if qb3T != 0: n93W = n93W[:-qb3T] hmZh = eAYh // Ep8u n93W = n93W.reshape((hmZh, Ep8u)) else: hmZh = epAf.ceil(eAYh / Ep8u) n93W = oyIN.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QLxT(__n6, Ep8u, hXNa=True, lM6R=False, begE='cpu', lTQW=False, YPuQ=0):\n JyoU = pVAc(dataset=__n6, batch_size=Ep8u, shuffle=hXNa, drop_last=lM6R, pin_memory=lTQW)\n for Mjw9 in JyoU:\n hxKa = {}\n hxKa['x_data'] = Mjw9['x_data'].to(begE, non_blocking=True if lTQW else False)\n hxKa...
[ "0.69535875", "0.6949412", "0.6856572", "0.6796945", "0.66836655", "0.66648227", "0.66428614", "0.6611708", "0.6538494", "0.65289724", "0.64692175", "0.64360553", "0.6423682", "0.6409655", "0.6400568", "0.6384002", "0.63832265", "0.6339201", "0.6312929", "0.63090616", "0.6305...
0.78349495
0
Transforms a timestamp into a date string.
def nBVS(i8WE): return qcWV.datetime.fromtimestamp(int(i8WE)).strftime('%Y-%m-%d %H:%M:%S')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dFAW(E3oo):\n return JRYC.fromtimestamp(E3oo / 1000).strftime(GGme)", "def lr8p(E3oo):\n return str(E3oo)[:10]", "def dFAW(YKHO, E3oo):\n return qcWV.utcfromtimestamp(E3oo).strftime('%Y%m%d')", "def i7Qf(E3oo, VPot=None):\n \"\"\" Take a timestamp and output it in the format specified in the ...
[ "0.78053814", "0.7754923", "0.7688571", "0.74848205", "0.7447388", "0.7369855", "0.7139445", "0.7111904", "0.70937836", "0.7056466", "0.70353913", "0.7034211", "0.70339054", "0.700383", "0.69271356", "0.6923295", "0.68996465", "0.68694293", "0.6854349", "0.68343943", "0.68253...
0.6177331
87
Compute md5 checksum of a file. Compatible with big files.
def xORj(IznC): hash = HBct.md5() with open(IznC) as eHNT: for yOAJ in iter(lambda: eHNT.read(4096), ''): hash.update(yOAJ) return hash.hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uPUs(nUeQ):\n return HBct.md5(open(nUeQ, 'rb').read()).hexdigest()", "def E9YH(Ux0P):\n IznC = Ux0P\n Z1S6 = 65536\n Gcbu = open(IznC, 'rb')\n try:\n XkN1 = [Gcbu.read(Z1S6)]\n while len(XkN1[-1]) > 0:\n XkN1.append(Gcbu.read(Z1S6))\n kGys = XkN1\n sbx9 =...
[ "0.8655181", "0.8595245", "0.85794353", "0.8509681", "0.8485349", "0.8471263", "0.84543645", "0.8434925", "0.83997965", "0.8389123", "0.8367975", "0.83425295", "0.83133876", "0.83123386", "0.8307699", "0.8292812", "0.8265084", "0.8243202", "0.8234529", "0.82129973", "0.819936...
0.78410214
62
Create a new user with encrypted password and return it We modify this function in a way, that our model manager create function is called (`app.core.models.UserManager.create_user`), instead of the default `create`. When we're ready to create the user the RestFrameWork will call this function and pass in the `validate...
def eLpg(YKHO, vGfb): return egNl().objects.create_user(**vGfb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO, vGfb):\n CBIr = mv1M.objects.create(**vGfb)\n CBIr.set_password(vGfb.get('password'))\n CBIr.save()\n return CBIr", "def eLpg(YKHO, vGfb):\n YEnM = super(hq_r, YKHO).create(validated_data=vGfb)\n YEnM.set_password(YEnM.password)\n YEnM.save()\n return YEnM", "def eLpg(YKH...
[ "0.8526479", "0.8404726", "0.8396918", "0.83821934", "0.8348477", "0.8272318", "0.8270032", "0.8248321", "0.8247276", "0.8188489", "0.8161938", "0.8133816", "0.8063117", "0.8055115", "0.80409247", "0.8025237", "0.7976118", "0.79182196", "0.79180676", "0.79110163", "0.78775364...
0.80114543
17
Simple test to learn how to escape escape properly using python. The trick is using raw string.
def ou3J(YKHO): BWXx = '\\"author\\":\\"Felipe, Test A. (GOD)\\"' mXDZ = ZbWC.compile('\\\\"author\\\\":(\\\\"[^\\\\"]*\\\\")') kUBT = ZbWC.findall(mXDZ, BWXx) YKHO.assertTrue(len(kUBT) == 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iBjL():\n Dt2g = u'+-&|!(){}[]^\"~*?: \\t\\x0b\\\\/'\n EtF8 = kY4Q(Dt2g).escape_for_lqs_term()\n assert EtF8 == u'\\\\+\\\\-\\\\&\\\\|\\\\!\\\\(\\\\)\\\\{\\\\}\\\\[\\\\]\\\\^\\\\\"\\\\~\\\\*\\\\?\\\\:\\\\ \\\\\\t\\\\\\x0b\\\\\\\\\\\\/'", "def kxNb(YKHO):\n YKHO.assertTrue(rlcx.checkLexeme(' \"ab\...
[ "0.7957469", "0.7800233", "0.7800233", "0.7472196", "0.7467048", "0.7438565", "0.73620987", "0.73240656", "0.7187939", "0.70540977", "0.70420045", "0.6993659", "0.69202626", "0.6886667", "0.685725", "0.67998576", "0.6790822", "0.6751378", "0.67430323", "0.67424256", "0.672685...
0.0
-1
Simple test to learn how to escape escape properly using python. The trick is using raw string.
def ou3J(YKHO): BWXx = '\\"cc\\":[\\"Felipe.Castro@abc.lps.state.ab.mg\\",\\"alohatest@bast.com\\"]' mXDZ = ZbWC.compile('\\\\"cc\\\\":\\[[^\\]]*\\]') kUBT = ZbWC.findall(mXDZ, BWXx) YKHO.assertTrue(len(kUBT) == 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iBjL():\n Dt2g = u'+-&|!(){}[]^\"~*?: \\t\\x0b\\\\/'\n EtF8 = kY4Q(Dt2g).escape_for_lqs_term()\n assert EtF8 == u'\\\\+\\\\-\\\\&\\\\|\\\\!\\\\(\\\\)\\\\{\\\\}\\\\[\\\\]\\\\^\\\\\"\\\\~\\\\*\\\\?\\\\:\\\\ \\\\\\t\\\\\\x0b\\\\\\\\\\\\/'", "def kxNb(YKHO):\n YKHO.assertTrue(rlcx.checkLexeme(' \"ab\...
[ "0.79580355", "0.78002316", "0.78002316", "0.7472226", "0.7467034", "0.7438474", "0.73623383", "0.73246515", "0.7187235", "0.70539844", "0.70420706", "0.6994842", "0.6920399", "0.6887438", "0.6856756", "0.6800512", "0.6791476", "0.6750888", "0.67436713", "0.6741582", "0.67276...
0.0
-1
A simple home page
def kZiy(QePW): QpfX = {'pages': I0sS.objects.all()} return _1tc(QePW, 'index.html', QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('homepage.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('index.html')", "def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now...
[ "0.85646576", "0.8554893", "0.8544704", "0.8437584", "0.84308434", "0.8426307", "0.8419883", "0.8419883", "0.8415348", "0.8415321", "0.8410994", "0.8398745", "0.8390384", "0.83751816", "0.8361858", "0.8348925", "0.83439845", "0.83373904", "0.83373904", "0.8326943", "0.8324199...
0.0
-1
Update a nested dictionary with values from another This is like dict.update except that it smoothly merges nested values This operates inplace and modifies old
def QdZT(gv2B: dict, BdN0: Mapping, Ey19: Literal['old', 'new', 'new-defaults']='new', muwo: Mapping | None=None) -> dict: for G1Hx, Ty9i in BdN0.items(): G1Hx = tfQR(G1Hx, gv2B) if isinstance(Ty9i, GySg): if G1Hx not in gv2B or gv2B[G1Hx] is None: gv2B[G1Hx] = {} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IKZE(eJh7, sPBL):\n BdN0 = eJh7.copy()\n for H5ew, BWXx in sPBL.items():\n if isinstance(BWXx, g760.Mapping):\n m1Oc = IKZE(BdN0.get(H5ew, {}), BWXx)\n BdN0[H5ew] = m1Oc\n else:\n BdN0[H5ew] = sPBL[H5ew]\n return BdN0", "def zKHP(V_1d, zZcM):\n for H...
[ "0.82661873", "0.8195958", "0.8184751", "0.8176899", "0.8147572", "0.81450814", "0.8112898", "0.80970013", "0.80545855", "0.7974966", "0.7970615", "0.78651977", "0.7852165", "0.7811578", "0.7809008", "0.7775593", "0.7715891", "0.77094287", "0.77028275", "0.76793915", "0.76594...
0.0
-1
Update configuration by rereading yaml files and env variables This mutates the global dask.config.config, or the config parameter if passed in.
def uUrB(GPtr: dict=GPtr, muwo: list[Mapping]=muwo, **B2fa) -> None: GPtr.clear() for Csk6 in muwo: QdZT(GPtr, Csk6, priority='old') QdZT(GPtr, RN67(**B2fa))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YYiC(YKHO):\n for XLMv, YXiT in YKHO._config.items():\n oOLE = 'SF_{}_'.format(XLMv.upper())\n for H5ew in YXiT:\n sEAN = oOLE + H5ew.upper()\n if sEAN in Hy7s.environ:\n YKHO._config[XLMv][H5ew] = Hy7s.environ[sEAN]\n elif YKHO._config_file:\n ...
[ "0.6651022", "0.6456593", "0.6442286", "0.6421089", "0.6328577", "0.6318817", "0.630458", "0.62187123", "0.62096006", "0.62026054", "0.6169357", "0.61626595", "0.6154588", "0.61380774", "0.6123113", "0.61221594", "0.6109824", "0.6084994", "0.6071263", "0.6054264", "0.6049553"...
0.0
-1
Applies one linear downprojection layer, then softmax.
def GsUR(YKHO, g4y1, oGem): with cmJd.variable_scope('SimpleSoftmaxLayer'): KeL5 = ZylS.contrib.layers.fully_connected(g4y1, num_outputs=1, activation_fn=None) KeL5 = ZylS.squeeze(KeL5, axis=[2]) APKa, q414 = Ibo7(KeL5, oGem, 1) return (APKa, q414)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n WKvO = YKHO.linear(WKvO).squeeze(dim=-1)\n ZHfW = WKvO != YKHO.mask\n WKvO = WKvO.masked_fill(ZHfW == YKHO.mask, -float('inf'))\n return vuvg.softmax(WKvO, dim=-1)", "def N93T(input, tpio=-1):\n return U78l.Softmax(axis=tpio)(input)", "def KVH6(YKHO, WKvO):\n WKvO = N9...
[ "0.6683149", "0.66668874", "0.6652505", "0.661009", "0.6585528", "0.65803003", "0.6556444", "0.6509183", "0.6429496", "0.6386744", "0.63598424", "0.6344075", "0.62936497", "0.6291599", "0.62815505", "0.6270392", "0.6216568", "0.61946243", "0.6193307", "0.61735034", "0.6166043...
0.0
-1
Takes masked softmax over given dimension of logits.
def Ibo7(KeL5, ZHfW, tpio): Mhzc = (1 - ZylS.cast(ZHfW, 'float')) * -1e+30 APKa = ZylS.add(KeL5, Mhzc) q414 = ZylS.nn.softmax(APKa, tpio) return (APKa, q414)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ibo7(WKvO: torch.Tensor, ZHfW: torch.Tensor, tpio: Optional[int]=1) -> ht2j.Tensor:\n EcVT = (ZHfW * WKvO).masked_fill(ZHfW == 0, -float('inf'))\n return ht2j.softmax(EcVT, tpio)", "def Ibo7(WKvO, tpio, ZHfW=None, RKD7=False, SGf8=0.0001, begE='cpu'):\n if ZHfW is None:\n ZHfW = ht2j.ones_lik...
[ "0.8178921", "0.8119145", "0.81093156", "0.77106744", "0.7654744", "0.75962514", "0.75291955", "0.7436139", "0.7431612", "0.7346278", "0.7336643", "0.7320809", "0.72937477", "0.72935295", "0.7293071", "0.72760093", "0.7275221", "0.72656155", "0.7250128", "0.72486466", "0.7234...
0.8117945
2
returns ISITC Code of the instrument
def C1xQ(SrG_): mlAC = None try: import FRegulatoryLib YKiD = EPxK(SrG_) if YKiD: mlAC = FRegulatoryLib.InstrumentRegInfo(YKiD).ISITC_type_code() except ImportError as e: rPV4 = "'Type of Financial Instrument' (12A), is based on the ISITC code. RegulatoryLib is ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vkzz(YKHO):\n return YKHO._simc_code", "def uk6r(YKHO) -> int:\n return YKHO._i_sac_code", "def klyG(SrG_):\n YKiD = EPxK(SrG_)\n r68h = None\n if YKiD:\n try:\n r68h = YKiD.RegulatoryInfo().CfiCode()\n except Exception as e:\n TlkN.ERROR('Error in functio...
[ "0.7243025", "0.6827047", "0.6815121", "0.6723024", "0.64998394", "0.6491004", "0.6455979", "0.6225078", "0.6166388", "0.6166388", "0.6166388", "0.6166388", "0.6166388", "0.6138461", "0.60951453", "0.6089905", "0.6039947", "0.6016898", "0.60100573", "0.59981227", "0.59981227"...
0.7551667
0
Get payment type for the qualifier.
def mXfg(Syn0, DaUm, y7pW): if Syn0 and DaUm and y7pW: GPtr = Kwhc.get_config_from_fparameter('F%sOut_Config' % Syn0) PGoU = str(getattr(GPtr, 'AdditionalPayToSwiftQualifier', None)) if PGoU: try: qfWb = jZ4I.literal_eval(PGoU) bUCE = qfWb.get(DaUm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bUCE(YKHO) -> str:\n return qe4Y.get(YKHO, 'payment_type')", "def IUbG(YKHO):\n return YKHO.payment_type", "def bUCE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'payment_type')", "def bUCE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'payment_type')", "def bUCE(YKHO) -> qe...
[ "0.73026806", "0.7283005", "0.70117116", "0.6955757", "0.68841386", "0.6858408", "0.6722917", "0.6589147", "0.6488259", "0.6488259", "0.6475217", "0.64267784", "0.6298177", "0.6282421", "0.6274849", "0.62495023", "0.623804", "0.623804", "0.6182764", "0.61493665", "0.6120792",...
0.7343566
0
Peel apart the digits and convert to substrings of length n. Map each substring to a tuple of integer values. >>> from euler08 import digit_tuples, digits
def fDlF(BHGE, exwG): grAr = (BHGE[YRbF:YRbF + exwG] for YRbF in range(0, len(BHGE) - exwG + 1)) return (tuple(map(int, Z9rn)) for Z9rn in grAr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k85i(YRbF, exwG):\n return bexe(s3rX(YRbF, exwG))", "def BHGE(exwG):\n return map(int, str(exwG))", "def DQj2(a1PO, exwG):\n return _dGB(JyMt(a1PO, exwG))", "def a8Pe(exwG, UyXL):\n\n def tx4q(exwG, UyXL):\n while exwG > 0:\n yield BHGE[exwG % UyXL]\n exwG /= UyXL...
[ "0.6756588", "0.6733588", "0.6588721", "0.6542514", "0.65245086", "0.6337224", "0.63350827", "0.6259795", "0.6169847", "0.610166", "0.6093256", "0.60879695", "0.6031293", "0.5994124", "0.59746385", "0.58831257", "0.58568835", "0.58235633", "0.5821151", "0.5817511", "0.5812974...
0.8018621
0
The GroupDesc of the device group.
def zV5I(YKHO) -> str: return qe4Y.get(YKHO, 'group_desc')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gTmZ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'group_description')", "def uOe2(YKHO):\n return YKHO._get_field('group')", "def uOe2(YKHO):\n return YKHO._get_field('group')", "def uOe2(YKHO):\n if YKHO._group_present:\n return YKHO._group_value\n else:\n raise Attri...
[ "0.7498726", "0.72784644", "0.72784644", "0.7231337", "0.7231337", "0.7231337", "0.71395016", "0.71069974", "0.7010945", "0.6996637", "0.6974089", "0.6914631", "0.6889927", "0.6879424", "0.6872571", "0.6864309", "0.686006", "0.686006", "0.686006", "0.686006", "0.686006", "0...
0.7895809
0
The GroupId of the device group.
def hE03(YKHO) -> str: return qe4Y.get(YKHO, 'group_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hE03(YKHO):\n return YKHO._group_id", "def hE03(YKHO):\n return YKHO._group_id", "def hE03(YKHO):\n return YKHO._group_id", "def hE03(YKHO):\n return YKHO._group_id", "def hE03(YKHO):\n return YKHO._group_id", "def hE03(YKHO):\n return YKHO._group_id", "def rfWX(YKHO):\n return...
[ "0.879395", "0.879395", "0.879395", "0.879395", "0.879395", "0.879395", "0.86695236", "0.8400789", "0.8320491", "0.83022463", "0.82707924", "0.8190435", "0.8190435", "0.8045346", "0.7947193", "0.7673242", "0.7673242", "0.7673242", "0.76410985", "0.7624221", "0.76058054", "0...
0.8590281
7
The GroupName of the device group.
def IXKo(YKHO) -> str: return qe4Y.get(YKHO, 'group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IXKo(YKHO):\n return YKHO._get_group_name_by_num(YKHO.group_num)", "def IXKo(YKHO):\n return YKHO._config['group']", "def IXKo(YKHO):\n if YKHO.is_null():\n return None\n return YKHO._group_name", "def IXKo(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_name')", "def WhvT(YKHO...
[ "0.880796", "0.85585564", "0.8494023", "0.82521373", "0.82317764", "0.821798", "0.8174529", "0.81157655", "0.8046469", "0.8004259", "0.7989825", "0.7975582", "0.7969989", "0.7840791", "0.78370845", "0.78034806", "0.78034806", "0.77838486", "0.7732877", "0.7667023", "0.7633564...
0.8688374
1
The ID of the device group.
def id(YKHO) -> str: return qe4Y.get(YKHO, 'id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jf3N(YKHO):\n return YKHO._group.id", "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(YKHO):\n return YKHO._group_id", "def hE03(YKHO):\n return YKHO._group_id", "def hE03(YKHO):\n return YKHO._gro...
[ "0.88132906", "0.8554616", "0.8554616", "0.84313047", "0.84313047", "0.84313047", "0.84313047", "0.84313047", "0.84313047", "0.8397922", "0.81893516", "0.8121457", "0.81141716", "0.80408025", "0.80408025", "0.7924532", "0.7890023", "0.78807455", "0.7722182", "0.74729484", "0....
0.0
-1
when 3P3 then return 6 >>> nPr(3, 3) 6
def hPDF(exwG: int, Mkmy: int) -> int: Aofo = 1 for YRbF in range(Mkmy): Aofo *= exwG - YRbF return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sYvE(exwG):\n return 1 - c4KQ(exwG)", "def sYvE(exwG=1000000):\n raise NotImplementedError('Problem 3 incomplete')", "def p84x(oZuG):\n return zBe9 * oZuG ** (5 / 3)", "def V6IE(exwG):\n return 1 / (exwG + 1)", "def RmdC(XP5J, exwG, LEev, Xyq7):\n if QDyU:\n XP5J = ZjSO(XP5J)\n ...
[ "0.7386281", "0.675559", "0.6732338", "0.6646734", "0.6564016", "0.6545534", "0.65429014", "0.64967245", "0.6391485", "0.6305795", "0.6299395", "0.62912697", "0.6268386", "0.61908215", "0.61891496", "0.61674595", "0.6135772", "0.61140484", "0.6108721", "0.6102802", "0.606199"...
0.7218969
1
nCr by recursion >>> nCr_by_recursion(3, 2) 3
def NMsA(exwG: int, Mkmy: int) -> int: if Mkmy == 0 or Mkmy == exwG: return 1 return NMsA(exwG - 1, Mkmy - 1) + NMsA(exwG - 1, Mkmy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NN64(exwG, Mkmy, wPFE=False):\n if Mkmy == 0:\n return 1\n elif Mkmy == 1:\n return exwG\n elif wPFE:\n return TFEx(exwG + Mkmy - 1) // (TFEx(Mkmy) * TFEx(exwG - 1))\n elif Mkmy == exwG - 1:\n return exwG\n elif Mkmy == exwG:\n return 1\n elif Mkmy > exwG:\n...
[ "0.7943394", "0.7851493", "0.77389514", "0.7620653", "0.7590304", "0.74156564", "0.7187988", "0.7150215", "0.7093336", "0.70629925", "0.7059926", "0.7044292", "0.70018", "0.6857565", "0.67815274", "0.6779753", "0.6756567", "0.67395777", "0.6725419", "0.6723468", "0.6718893", ...
0.8574746
0
Create string of scopes for the API call
def xrgo(YKHO): rrBf = '' for KCHu in m1bP.scopes: rrBf += KCHu + ' ' return rrBf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OksA(uC2a):\n rrBf = {rrBf: 'on' for rrBf in uC2a.split(',')}\n return rrBf", "def IIIF(uC2a: List[str]) -> str:\n return ' '.join(uC2a)", "def uC2a(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'scopes')", "def uC2a(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'scopes')", "def uC2a(YKHO) -...
[ "0.7315086", "0.72538567", "0.6731334", "0.6731334", "0.6731334", "0.66860366", "0.65574664", "0.6471651", "0.6440039", "0.6372576", "0.63614106", "0.63488775", "0.63372713", "0.62578726", "0.62200576", "0.618062", "0.61624694", "0.6147999", "0.61456704", "0.613898", "0.60911...
0.82469356
0
Given an image, scales the image down (or up, if ``upscale`` equates to a boolean ``True``).
def NXpY(YKHO, LNo8, Fw8z, ZnXT, NAnm): XTkl, fN0y = map(float, YKHO.get_image_size(LNo8)) Llmz = (Fw8z[0] / XTkl, Fw8z[1] / fN0y) aM8h = max(Llmz) if NAnm else min(Llmz) if aM8h < 1 or ZnXT: TVTK = c5NN(XTkl * aM8h) H2v2 = c5NN(fN0y * aM8h) LNo8 = YKHO._scale(LNo8, TVTK, H2v2) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hlWg():\n VXjJ = hnIv.new('RGB', (100, 100))\n for V6IE in [srbH, pDQ6, kfOd, oJCT]:\n _YGI = V6IE(500, 500, upscale=True).process(VXjJ)\n NaW5(_YGI.size, (500, 500))\n _YGI = V6IE(500, 500, upscale=False).process(VXjJ)\n NaW5(_YGI.size, (100, 100))", "def oPQg():\n LNo8 ...
[ "0.7415259", "0.70701665", "0.6732947", "0.66779524", "0.64392793", "0.63255286", "0.62835974", "0.62693924", "0.62078106", "0.6194883", "0.6194066", "0.6185401", "0.6166917", "0.6134358", "0.6112816", "0.60842067", "0.60336417", "0.6029894", "0.6029755", "0.6020662", "0.6013...
0.6120428
14
Returns the normal of the polygon defined by the passed points. Cinema 4D provides normals for polygon objects in the form of normal and phong tags. Both forms of normal storage are not always accessible, as these tags are not always present on an object. Both tags usually also store interpolated normals which most of ...
def AugM(LTIa: typing.Collection[c4d.Vector]) -> ZxqF.Vector: OoT4(LTIa, (list, tuple)) if len(LTIa) not in (3, 4): raise RuntimeError(f'Invalid length for: {LTIa}') UHFx = len(LTIa) cbZd = [] for d6pt in range(UHFx): MKlR = LTIa[d6pt - 1] if d6pt > 0 else LTIa[UHFx - 1] YRbF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TjEO(q4lA):\n return V4se(q4lA[0], q4lA[1], q4lA[2])", "def dGW5(Ii1o, LTIa, UT57, AAbN):\n gela = AAbN.GetPointPolys(Ii1o)\n cbZd = []\n for QYQY in [UT57[Ii1o] for Ii1o in gela]:\n if Ii1o == QYQY.a:\n z1Rg, XP5J, vexM = (LTIa[QYQY.d], LTIa[QYQY.a], LTIa[QYQY.b])\n elif...
[ "0.772614", "0.74045914", "0.7380673", "0.6917515", "0.6917167", "0.6895066", "0.6894106", "0.68636256", "0.6813592", "0.6696395", "0.6665871", "0.66519946", "0.66342753", "0.65611756", "0.6559247", "0.65413773", "0.6517308", "0.65026975", "0.6480505", "0.64601177", "0.644683...
0.8303861
0
Function to load the model object
def YrZb(C3ST, TVTK, rb7a): C3ST = C3ST.lower() Zxma = eval(C3ST)(depth=rb7a, width=TVTK) return Zxma
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl():\n return", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl():\n pass", "def uyMl():\n pass", "def uyMl():\n return None", "def O5RJ(YKHO) -> wOed:\n return uyMl('models/' + YKHO._model_name, cus...
[ "0.86899495", "0.8597599", "0.8597599", "0.8597599", "0.8597599", "0.85277325", "0.85277325", "0.8215361", "0.807459", "0.7891863", "0.78243756", "0.781592", "0.77615154", "0.77271295", "0.77133673", "0.76933366", "0.767843", "0.76755476", "0.7650745", "0.76052135", "0.758621...
0.0
-1
Clear screen. There is a shortcut by typing . on the interpreter
def JPYU(YKHO, zFiD): HwRy.stdout.flush() if zFiD is None: return try: jbXL = Hy7s.system('clear') except: try: jbXL = Hy7s.system('cls') except: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yPVe():\n Hy7s.system('cls')", "def yPVe():\n Hy7s.system('clear')", "def yPVe():\n Hy7s.system('clear')", "def yPVe() -> None:\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')", "def yPVe():\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')", "def yPVe():\n Hy7s.system('...
[ "0.8743806", "0.8686243", "0.8685265", "0.86829644", "0.86751217", "0.86751217", "0.86751217", "0.86751217", "0.8633014", "0.8617228", "0.85998935", "0.85824746", "0.85705215", "0.8567087", "0.85521406", "0.8525168", "0.85142034", "0.84981555", "0.84797704", "0.847943", "0.84...
0.0
-1
Returns whether a given line in the expectations can be removed. Uses results from builder bots to determine if a given line is stale and can safely be removed from the TestExpectations file. (i.e. remove if the bots show that it's not flaky.) There are also some rules about when not to remove lines (e.g. never remove ...
def Ln1_(YKHO, EPwA): e2af = EPwA.expectations if len(e2af) < 2: return False if YKHO._has_unstrippable_expectations(e2af): return False if not YKHO._has_pass_expectation(e2af): return False if YKHO._port.test_isdir(EPwA.name): return False _MXW = [] for GPtr ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c4CI(YKHO):\n YKHO._register_identical_constraint()\n YKHO._constraints_presence_check()\n YKHO.teacher.remove_line(YKHO.cause1_id)\n YKHO._constraints_absence_check()", "def JCO1(YKHO, zFiD):\n if not zFiD:\n return True\n if YKHO.line_index < YKHO.skip_lines:\n return True\n...
[ "0.62699986", "0.61894435", "0.61033005", "0.60405403", "0.6007736", "0.59812057", "0.5895645", "0.586072", "0.5812716", "0.5812035", "0.5741788", "0.571398", "0.57057685", "0.566797", "0.56588006", "0.56250983", "0.56203103", "0.56051964", "0.56015205", "0.559642", "0.559366...
0.78704196
0
Returns whether any of the given expectations are considered unstrippable. Unstrippable expectations are those which should stop a line from being removed regardless of builder bot results.
def zKPH(YKHO, e2af): oxr0 = ('REBASELINE', 'NEEDSREBASELINE', 'NEEDSMANUALREBASELINE', 'SLOW', 'SKIP') return any((KCHu in e2af for KCHu in oxr0))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sR4m(Qvg1):\n try:\n Z56C = dDPA(Qvg1)\n except ykDd:\n return False\n return len(Z56C) == 0", "def cbZ2(X3eO: Problem):\n return XJtt(X3eO.goal) and all((UDXU(jzdc) for jzdc in X3eO.actions.values()))", "def Kuy7(YKHO):\n if YKHO._expectations_to_remove_list is not None:\n ...
[ "0.607841", "0.60340136", "0.5803419", "0.5739373", "0.5663847", "0.56550145", "0.5651061", "0.5547754", "0.55304235", "0.5505696", "0.5505211", "0.5492286", "0.5446048", "0.54343563", "0.54274595", "0.54274595", "0.54274595", "0.5416297", "0.54147863", "0.5412813", "0.540118...
0.8713876
0
Removes comments and whitespace from an empty expectation block. If the removed expectation was the last in a block of expectations, this method will remove any associated comments and whitespace.
def mbpZ(YKHO, e2af, h7m2): QbSu = h7m2 == len(e2af) or e2af[h7m2].is_whitespace() or e2af[h7m2].is_comment() if not QbSu: return veTy = False while h7m2 > 0 and e2af[h7m2 - 1].is_whitespace(): h7m2 -= 1 e2af.pop(h7m2) veTy = True if veTy: return while h7m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LRKo(YKHO):\n YKHO.assertEqual(bSLV('foo # end-of-line-with-pound\\n# successive lines\\n# of nothing but comments\\nmore and -- end-of-line-with --\\n-- successive lines\\n-- of nothing but comments\\nwith /* comments in the middle */ removed\\neven /* comments *//* that *//* abut */ removed\\nbut /* does ...
[ "0.6510246", "0.6459873", "0.6085048", "0.58883756", "0.5886164", "0.5785033", "0.56779045", "0.56748945", "0.5655919", "0.56339157", "0.56313103", "0.55102634", "0.5509492", "0.5506149", "0.54544836", "0.54496914", "0.541302", "0.541187", "0.538837", "0.53578085", "0.5350589...
0.7904748
0
Performs softmax(state . matrix . memory)
def bxG8(QTBn, _p7a, SppC, Ep8u, TpOG, N_wg): T8U7 = yd4d(QTBn, SppC) Bjxz = ZylS.matmul(_p7a, ZylS.transpose(T8U7, perm=[0, 2, 1])) Bjxz = ZylS.reshape(Bjxz, [Ep8u, N_wg]) return ZylS.nn.softmax(Bjxz, dim=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO):\n return Kt_s.nnet.softmax(WKvO.T)", "def N93T(input, tpio=-1):\n return U78l.Softmax(axis=tpio)(input)", "def N93T(input, jDK_=1):\n zi3C = input.size()\n JOH3 = input.transpose(jDK_, len(zi3C) - 1)\n yDJ7 = JOH3.size()\n AT86 = JOH3.contiguous().view(-1, yDJ7[-1])\n J5je ...
[ "0.79692274", "0.777713", "0.77400553", "0.75833696", "0.75254965", "0.7483723", "0.74333495", "0.74282366", "0.7424505", "0.74136966", "0.74117744", "0.740668", "0.74061686", "0.7395501", "0.7393381", "0.7387942", "0.73799694", "0.7375993", "0.7361259", "0.7359738", "0.73555...
0.0
-1
Computes the average probability from the list after dropping out some of the lists. See the paper.
def tN96(OCHL, sMyr, Ep8u, xAU6): BFeB = ZylS.stack(OCHL, axis=2) BFeB += HJEN VKAJ = ZylS.nn.dropout(BFeB, noise_shape=[Ep8u, 1, xAU6.num_stochastic_answer_pointer_steps], keep_prob=sMyr) XsEO = ZylS.cast(VKAJ > 0, dtype=ZylS.float32) Hxlj = XsEO * BFeB vFY_ = ZylS.reduce_sum(Hxlj, axis=2) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uei2(yv6U):\n mq4h = sum(yv6U)\n assert mq4h > 0, 'sum should be positive'\n return [WKvO / mq4h for WKvO in yv6U]", "def yUQ1(aWuw: List) -> float:\n return sum(aWuw) / len(aWuw)", "def WUEZ(aO51):\n return sum(aO51) / len(aO51)", "def qqgr(yv6U):\n assert len(yv6U) > 0, 'List must con...
[ "0.7227132", "0.71701133", "0.6876698", "0.6843467", "0.6799179", "0.6793891", "0.6780637", "0.6769839", "0.67638534", "0.6763802", "0.67409635", "0.6724951", "0.6706365", "0.668781", "0.66431826", "0.66143453", "0.6588458", "0.6540026", "0.65375704", "0.6518256", "0.64988613...
0.7052864
2
Apply the threshold to the image to get only green parts
def gwAu(YKHO, VXjJ): Mm3S = oyIN.array([35, 0, 0]) N5NH = oyIN.array([80, 255, 200]) VXjJ = XC5k.medianBlur(VXjJ, 5) G4e4 = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2HSV) ZHfW = XC5k.inRange(G4e4, Mm3S, N5NH) CyQp = XC5k.bitwise_and(VXjJ, VXjJ, mask=ZHfW) CyQp = XC5k.cvtColor(CyQp, XC5k.COLOR_HSV2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jlxe(LNo8):\n eg6j = oyIN.array([40.0, 80.0, 0.0])\n N5NH = oyIN.array([80.0, 255.0, 255.0])\n ZHfW = XC5k.inRange(LNo8, eg6j, N5NH)\n return ZHfW", "def d84K(n1G7, VXjJ):\n Fg_i, Oa1e, Mkmy = XC5k.split(VXjJ)\n S8vG = oyIN.average(Oa1e)\n usx6, WfCS = n1G7.shape\n for YRbF in range(0...
[ "0.73709077", "0.73154473", "0.7264692", "0.7168239", "0.7140826", "0.70953846", "0.7093857", "0.7071316", "0.69929826", "0.6954584", "0.69384974", "0.6914279", "0.69115275", "0.6905394", "0.6872938", "0.6872938", "0.6845001", "0.68046045", "0.6803434", "0.67965674", "0.67920...
0.753264
0
Check if all rows in 2dimensional matrix don't have more than one queen
def eyrQ(k0lF): for tNso in range(len(k0lF)): if sum(k0lF[tNso]) > 1: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGVO(iBIi: List[int]) -> bool:\n m3DY, EAAj = (len(iBIi) - 1, iBIi[-1])\n for rdlD, fvDH in enumerate(iBIi[:-1]):\n yk4i = abs(EAAj - fvDH)\n if yk4i == 0 or yk4i == m3DY - rdlD:\n return False\n return True", "def xWAE(iBIi, fvDH):\n if fvDH == ywwl:\n spt_(iBIi)\...
[ "0.73915404", "0.7349189", "0.7329297", "0.7327193", "0.7256817", "0.7186934", "0.7057882", "0.6998572", "0.6930752", "0.6867373", "0.68493146", "0.67985976", "0.6752524", "0.6748106", "0.6744271", "0.67091507", "0.6703769", "0.66986763", "0.6694705", "0.6672613", "0.6658729"...
0.62794775
68
Check if all columns in 2dimensional matrix don't have more than one queen
def FBkL(k0lF): for eKOw in range(len(k0lF)): so0r = 0 for tNso in range(len(k0lF)): so0r += k0lF[tNso][eKOw] if so0r > 1: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b367(fvDH, OHLN):\n return fvDH in OHLN or any((abs(fvDH - WKvO) == len(OHLN) - YRbF for YRbF, WKvO in enumerate(OHLN)))", "def xWAE(iBIi, fvDH):\n if fvDH == ywwl:\n spt_(iBIi)\n return True\n Ylbp = False\n for YRbF in range(ywwl):\n if HAYG(iBIi, YRbF, fvDH):\n ...
[ "0.74578565", "0.7388539", "0.7372011", "0.7209904", "0.7188645", "0.71829927", "0.71650094", "0.71234757", "0.70987076", "0.68955576", "0.6792023", "0.6777691", "0.6775145", "0.6725549", "0.66858274", "0.668503", "0.66722053", "0.6666813", "0.6625638", "0.66231084", "0.66091...
0.6455461
41
Creates a line plot with a zigzag at the bottom of the yxaxis
def Lz1S(WKvO, LVAh, zt2y, VoLU, IICq, rTQi, **dUCI): if 'plot_mean_all' in dUCI: wQco = dUCI['plot_mean_all'] if type(wQco) != bool: print('plot_mean_all should be boolean') return try: IA7g = dUCI['av_list'] Xc0n = dUCI['sdp'] kuM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDWu(YKHO):\n QrM1.plot(YKHO.solution['y'], YKHO.solution['z'], 'b')\n QrM1.suptitle('y(t) vs z(t)')\n QrM1.xlabel('y(t)')\n QrM1.ylabel('z(t)')\n QrM1.show()", "def nR30(YKHO, Rci7, **B2fa):\n G1Hx = YKHO._LAYER_OBJECTS[B2fa['ind']]\n aNZO = uSXH(YKHO._AX_LINE, B2fa)\n aNZO['y'] = fl...
[ "0.58394104", "0.5774206", "0.5673721", "0.5615729", "0.5559805", "0.5555788", "0.5547669", "0.55358976", "0.55245525", "0.54965436", "0.549444", "0.54663575", "0.5445169", "0.5444859", "0.543376", "0.5385548", "0.53845155", "0.53545", "0.53485364", "0.53352195", "0.5333856",...
0.5920564
0
Returns the unique ID of the group this algorithm belongs to. This string should be fixed for the algorithm, and must not be localised. The group id should be unique within each provider. Group id should contain lowercase alphanumeric characters only and no spaces or other formatting characters.
def e7pw(YKHO): return 'scripts'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')", "def Dt19(YKHO) -> str:\n return ...
[ "0.8272847", "0.8272847", "0.7978335", "0.7978335", "0.7824378", "0.7689636", "0.7608156", "0.7608156", "0.7608156", "0.7608156", "0.7608156", "0.7608156", "0.75809014", "0.7541438", "0.75194436", "0.7506894", "0.7503538", "0.7503538", "0.7484656", "0.7327793", "0.7252885", ...
0.0
-1
Plot the magnitude response from complex frequency response.
def QuOw(QTg7, _hkX, aNZO, rYO3=('rad', 'db')): YEiJ, pLcG = rYO3 FOSW = oyIN.abs(_hkX) if pLcG == 'db': aNZO.plot(QTg7, 20 * oyIN.log10(FOSW + 1e-16), 'b') aNZO.set_ylabel('Amplitude [dB]', color='b') aNZO.set_ylim(-40, max(10, oyIN.max(FOSW))) else: aNZO.plot(QTg7, FOSW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d3ZW(YKHO, pKvt, yvT9, aNZO=None, rYO3='m', **B2fa):\n if aNZO is None:\n aNZO = QrM1.gca()\n DlgW = YKHO.frequency_range\n FOSW = YKHO.magnitude\n aNZO.plot(DlgW, FOSW[pKvt, yvT9, :], **B2fa)\n aNZO.set_xlim(0, max(DlgW))\n aNZO.yaxis.set_major_locator(x5MY.ticker.MaxNLocator(prune='l...
[ "0.7059862", "0.689637", "0.6860938", "0.6816168", "0.65336907", "0.6461583", "0.63108915", "0.6274953", "0.62353593", "0.62273014", "0.6201093", "0.61899686", "0.61640227", "0.6162998", "0.6069806", "0.60331696", "0.5996175", "0.5959407", "0.5956204", "0.5952792", "0.5922429...
0.66372
4
Creates a keras model based on the Functional API
def LQs7(YKHO): vHnr = ZylS.keras.Input(shape=(YKHO._inputs, 1)) cah1 = 16 yFrO = 32 Cc2t = YKHO._inputs / (3 * 3 * 2) * yFrO WKvO = fhcK.Conv1D(cah1, kernel_size=3, strides=3, activation=YKHO._activation, padding='valid', data_format='channels_last')(vHnr) WKvO = fhcK.MaxPool1D(pool_size=3)(WKv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fkCJ(YKHO) -> ZylS.keras.Model:\n pass", "def uKFF():\n fhcK = ZylS.keras.layers\n vHnr = fhcK.Input(shape=(32, 32, 3))\n Ty9i = fhcK.Conv2D(filters=32, kernel_size=5, activation='relu', padding='same')(vHnr)\n Ty9i = fhcK.MaxPool2D(pool_size=2, name='maxPool1')(Ty9i)\n Ty9i = fhcK.Conv2D(f...
[ "0.8241109", "0.8110266", "0.7907714", "0.7858634", "0.7762538", "0.77433", "0.7706378", "0.76890177", "0.767474", "0.7627564", "0.758923", "0.7535577", "0.7534596", "0.75233674", "0.7517189", "0.7490886", "0.7481723", "0.74803084", "0.74691045", "0.7464471", "0.7464211", "...
0.7219856
49
Simply flattens and normalises raw data as per sensor max/mins
def Zi4e(WPdU, xuug=False): BSPk = SSR_.raw_normalise(WPdU, transpose=True) if xuug: BSPk = lHli(BSPk, axis=1) BSPk = lHli(BSPk, axis=0) return BSPk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO, m6Me: Dataset) -> x3i3:\n Csk6 = x3i3()\n Csk6.values = (m6Me.values - YKHO.mins) / (YKHO.maxs - YKHO.mins)\n return Csk6", "def kwsU(YKHO, nPrm):\n SUNP = {}\n for FMwV, L2MH in nPrm.items():\n SUNP[FMwV] = {}\n for n2fR, oB5g in L2MH.items():\n for XtFw in...
[ "0.7066223", "0.7015759", "0.69967127", "0.68384624", "0.68322396", "0.6644114", "0.6532555", "0.64975446", "0.64859563", "0.64840597", "0.6457295", "0.64333045", "0.6402657", "0.63719755", "0.63671625", "0.6352028", "0.6339079", "0.63241184", "0.6323225", "0.6300761", "0.629...
0.0
-1
Line of sight search from current position. If a block is intersected it is returned, along with the block previously in the line of sight. If no block is found, return None, None.
def RFbF(YKHO, dQgj, iArr, aq_o=8): r8hN = 8 WKvO, LVAh, epBp = dQgj Jw7X, eUWA, aUJK = iArr AOBR = None for bGrB in Ni9Y(aq_o * r8hN): H5ew = NkkI((WKvO, LVAh, epBp)) if H5ew != AOBR and H5ew in YKHO.world: return (H5ew, AOBR) AOBR = H5ew WKvO, LVAh, epBp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def acIn(zFiD, iVRZ):\n VmPb = (zFiD, iVRZ)\n for XkN1 in GigA:\n if VmPb in XkN1:\n return XkN1", "def e5FY(YKHO, SCLJ):\n H2v2 = YKHO.fontMetrics().height()\n for tlxW, vC9B, XkN1 in YKHO.__blocks:\n if tlxW <= SCLJ <= tlxW + H2v2:\n return vC9B\n return None"...
[ "0.67227435", "0.67036986", "0.66797835", "0.62824565", "0.6221778", "0.61303484", "0.6007781", "0.5977357", "0.5900613", "0.58917105", "0.58672833", "0.5857666", "0.5830918", "0.5809002", "0.5771992", "0.5756722", "0.57337356", "0.57309985", "0.5730897", "0.5726966", "0.5726...
0.0
-1
Convert a list of values to a string, grouping consecutive values.
def eiBa(hkxX): return QoKv(ga5z(hkxX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QoKv(SBbl):\n return ','.join(('-'.join([str(Oa1e) for Oa1e in uOe2]) for uOe2 in SBbl))", "def ZqZa(hkxX):\n XVAW, yKcO, yvT9 = (None, None, [])\n for BWXx in hkxX:\n if yKcO is None:\n yKcO = BWXx\n elif BWXx != XVAW + 1:\n yvT9.append('%d-%d' % (yKcO, XVAW))\n ...
[ "0.7206222", "0.66439646", "0.63813484", "0.6367654", "0.63473076", "0.6305648", "0.6292503", "0.6264643", "0.6260822", "0.6229536", "0.618237", "0.6180761", "0.61664915", "0.6154", "0.6152702", "0.61465317", "0.61435854", "0.6124686", "0.60932904", "0.6082781", "0.6081695", ...
0.8262818
0
Set environment variable BLUESKY_LOG_FILE to include a directory that does not exist. Assert an exception is raised.
def mLHN(TBXe): N_e1 = GkAb(TBXe) / GkAb('does_not_exist') RLxr = N_e1 / GkAb('bluesky.log') D8Ke = x6b6.core.interactiveshell.InteractiveShell() Hy7s.environ['BLUESKY_LOG_FILE'] = str(RLxr) with trZe.raises(FileNotFoundError): cQ4y(ipython=D8Ke)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohRw(YKHO):\n bGrB = YKHO.config.log_directory()", "def ohRw(YKHO):\n bGrB = YKHO.config.log_directory()", "def ohRw(YKHO):\n bGrB = YKHO.config.log_directory()", "def ohRw(YKHO):\n bGrB = YKHO.config.log_directory()", "def ohRw(YKHO):\n bGrB = YKHO.config.log_directory()", "def W6CM()...
[ "0.70184916", "0.70184916", "0.70184916", "0.70184916", "0.70184916", "0.6823312", "0.67192084", "0.666784", "0.660431", "0.6561157", "0.6561157", "0.6561157", "0.6561157", "0.6561157", "0.6508715", "0.641728", "0.641314", "0.63901216", "0.6355378", "0.6335504", "0.633524", ...
0.75297666
0
Set environment variable BLUESKY_LOG_FILE to include a directory that is not writeable. Assert an exception is raised.
def Y_ap(TBXe): N_e1 = GkAb(TBXe) RLxr = N_e1 / GkAb('bluesky.log') N_e1.chmod(mode=QmN4.S_IREAD) D8Ke = x6b6.core.interactiveshell.InteractiveShell() Hy7s.environ['BLUESKY_LOG_FILE'] = str(RLxr) with trZe.raises(PermissionError): cQ4y(ipython=D8Ke)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mLHN(TBXe):\n N_e1 = GkAb(TBXe) / GkAb('does_not_exist')\n RLxr = N_e1 / GkAb('bluesky.log')\n D8Ke = x6b6.core.interactiveshell.InteractiveShell()\n Hy7s.environ['BLUESKY_LOG_FILE'] = str(RLxr)\n with trZe.raises(FileNotFoundError):\n cQ4y(ipython=D8Ke)", "def ohRw(YKHO):\n bGrB = Y...
[ "0.7164196", "0.7009052", "0.7009052", "0.7009052", "0.7009052", "0.7009052", "0.6626552", "0.66215026", "0.6611449", "0.65291494", "0.6516317", "0.6516317", "0.6516317", "0.6516317", "0.6516317", "0.6511448", "0.6388823", "0.6342824", "0.6273996", "0.6219993", "0.62194866", ...
0.7199001
0
Configure a root logger. Assert that a log message does not propagate from the bluesky logger to the root logger.
def Z2tw(TBXe): MSLc = xDSY.StringIO() G9jH.getLogger().addHandler(G9jH.StreamHandler(stream=MSLc)) RLxr = GkAb(TBXe) / GkAb('bluesky.log') D8Ke = x6b6.core.interactiveshell.InteractiveShell() Hy7s.environ['BLUESKY_LOG_FILE'] = str(RLxr) yvSq = cQ4y(ipython=D8Ke) G9jH.getLogger('bluesky').in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bs4q(YKHO):\n Yco9 = G9jH.getLogger()\n Yco9.setLevel(YKHO.log_level)\n YKHO.log_to_stderr(Yco9)\n YKHO.log_to_file(Yco9)", "def yb66(YKHO):\n YKHO.root_logger = tqPq(None)", "def RLfD(YKHO):\n G9jH.root = YKHO._wrap_logger(G9jH.root)", "def Qrn0(Npgh: logging.StreamHandler, Ga6V: loggi...
[ "0.7499689", "0.71519184", "0.7077092", "0.69759744", "0.68677783", "0.68298656", "0.68156284", "0.6815269", "0.68119985", "0.68119985", "0.6809713", "0.6732113", "0.6728257", "0.6646646", "0.6622918", "0.66023856", "0.65991366", "0.65974516", "0.6596762", "0.6588918", "0.656...
0.6809619
11
Configure a root logger and set ``propagate=True`` on the bluesky loggers. Assert that a log message propagates from the bluesky loggers to the root logger.
def wHEn(TBXe): MSLc = xDSY.StringIO() G9jH.getLogger().addHandler(G9jH.StreamHandler(stream=MSLc)) RLxr = GkAb(TBXe) / GkAb('bluesky.log') D8Ke = x6b6.core.interactiveshell.InteractiveShell() Hy7s.environ['BLUESKY_LOG_FILE'] = str(RLxr) yvSq = cQ4y(ipython=D8Ke, propagate_log_messages=True) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z2tw(TBXe):\n MSLc = xDSY.StringIO()\n G9jH.getLogger().addHandler(G9jH.StreamHandler(stream=MSLc))\n RLxr = GkAb(TBXe) / GkAb('bluesky.log')\n D8Ke = x6b6.core.interactiveshell.InteractiveShell()\n Hy7s.environ['BLUESKY_LOG_FILE'] = str(RLxr)\n yvSq = cQ4y(ipython=D8Ke)\n G9jH.getLogger('...
[ "0.75154513", "0.68411887", "0.6808303", "0.65212494", "0.6418792", "0.6418792", "0.6289251", "0.6242665", "0.6235746", "0.620537", "0.61854833", "0.61727726", "0.6143045", "0.6136861", "0.6135814", "0.61206937", "0.6120465", "0.6112978", "0.61100423", "0.6095846", "0.6090432...
0.7347252
1
Put an experience in the memory.
def CWpo(YKHO, IXKo, _JTT, XeOP, ITS7): if IXKo not in YKHO.experience_groups: YKHO.experience_groups[IXKo] = qMUh.ExperienceGroup() YKHO.experience_groups[IXKo].add(XlZM.Experience(input_features=_JTT, action=XeOP, time=ITS7))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GsKL(YKHO, GsKL: Experience[ActionType]) -> None:\n YKHO.memory.append(GsKL)", "def ilp5(YKHO, GsKL):\n YKHO.memory.append(GsKL)", "def H2v5(YKHO, GsKL):\n YKHO.memory.append(GsKL)", "def jjhZ(YKHO, _p7a=None, GsKL=None):\n if _p7a is None:\n _p7a = YKHO.memory\n if GsKL is None:\n ...
[ "0.8462491", "0.82462245", "0.8135686", "0.7801072", "0.7763542", "0.74777985", "0.73882085", "0.7192959", "0.7137944", "0.7122886", "0.7122886", "0.7064588", "0.70180696", "0.7012989", "0.7006084", "0.69458485", "0.693373", "0.6912411", "0.6787997", "0.6769311", "0.67386603"...
0.6560213
28
Put a reward in the memory.
def QeF0(YKHO, IXKo, vOGg, SWox, WbTE): if IXKo not in YKHO.reward_groups: YKHO.reward_groups[IXKo] = [] CBHD = YKHO.reward_groups[IXKo] CBHD.append(XYvR.Reward(vOGg, SWox, WbTE))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DY4w(YKHO, vOGg):\n YKHO.rewards.append(vOGg)", "def UgGJ(YKHO, QTBn, XeOP, vOGg, xOOJ, _ins):\n YKHO.memory.store_memory(QTBn, XeOP, vOGg, xOOJ, _ins)", "def AIu6(YKHO, vOGg):\n YKHO.data.append(vOGg)", "def vOGg(YKHO, rNYq, XeOP, vOGg):\n pass", "def vOGg(YKHO, rNYq, XeOP, vOGg):\n pas...
[ "0.75817925", "0.74679744", "0.74212563", "0.7276405", "0.7276405", "0.7276405", "0.7252204", "0.7175151", "0.715307", "0.71004766", "0.70525277", "0.70365244", "0.70328873", "0.70003545", "0.6999185", "0.69923264", "0.6953758", "0.6947328", "0.6947328", "0.6935456", "0.69227...
0.70057344
13
Parse customParameters into a list of pairs.
def LWw5(nPrm, ZL93): NArs = [] for XP5J in nPrm.get('customParameters', []): NArs.append((XP5J.pop('name'), XP5J.pop('value'))) for H5ew in ZL93: try: wEf2 = nPrm.pop(H5ew) except KeyError: continue NArs.append((H5ew, wEf2)) return NArs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KhFC(YKHO):\n for nPrm in YKHO.CUSTOM_DATA:\n YKHO.assertEqual(wvEv.string_to_dict(nPrm[0], allow_kv=True), nPrm[1])", "def TnK9(YKHO, Ltpw, s4he):\n return [Ltpw]", "def QI8a(YKHO):\n NArs = dict()\n if YKHO.app.pargs.params is not None:\n lPoA = YKHO.app.pargs.params\n fo...
[ "0.5977013", "0.5894908", "0.569366", "0.5553248", "0.55513126", "0.5551065", "0.5545707", "0.550944", "0.55000335", "0.5445034", "0.54400605", "0.5437963", "0.54307604", "0.54237705", "0.54096484", "0.540755", "0.5393515", "0.5393515", "0.5385774", "0.5295476", "0.52872926",...
0.73642546
0
class_vector is a vector to be made into a matrix. number_of_classes is total number of classes. will return a binary matrix of class_vector.
def jLBZ(Lc8G, HdOj=None): Lc8G = oyIN.array(Lc8G, dtype='int').ravel() if not HdOj: HdOj = oyIN.max(Lc8G) + 1 exwG = Lc8G.shape[0] IEr5 = oyIN.zeros((exwG, HdOj)) IEr5[oyIN.arange(exwG), Lc8G] = 1 return IEr5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EPIa(iArr, jTqs=None):\n assert isinstance(iArr, oyIN.ndarray)\n assert len(iArr) > 0\n if jTqs is None:\n jTqs = oyIN.max(iArr) + 1\n else:\n assert jTqs > 0\n assert jTqs >= oyIN.max(iArr)\n Aofo = oyIN.zeros(shape=(len(iArr), jTqs))\n Aofo[oyIN.arange(len(iArr)), iArr]...
[ "0.6608513", "0.6608513", "0.63057655", "0.6291593", "0.6210465", "0.6133399", "0.6115385", "0.6092649", "0.6021315", "0.5978432", "0.59778273", "0.59770566", "0.59481156", "0.58555853", "0.5850581", "0.5813958", "0.57788664", "0.57788384", "0.5754453", "0.57434976", "0.57383...
0.8413382
0
x is a numpy array of input data, and y is a numpy aray of labels. Calls NumpyArrayIterator2 AKA the iterator that yields data from a numpy array. Yields batches of (X,y) where X is a numpy array of image data and y is a numpy array of its corresponding labels
def _uqo(YKHO, WKvO, LVAh=None, Ep8u=32, hXNa=True, yokr=None, g7qG=None, mrMF='', lQYk='jpeg'): return cFDt(WKvO, LVAh, YKHO, batch_size=Ep8u, shuffle=hXNa, seed=yokr, dim_ordering=YKHO.dim_ordering, save_to_dir=g7qG, save_prefix=mrMF, save_format=lQYk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def frMp(WKvO: tiledb.Array, LVAh: tiledb.Array, usx6: int, Ep8u: int) -> tuple:\n for vgXP in range(0, usx6, Ep8u):\n yield (WKvO[vgXP:vgXP + Ep8u], LVAh[vgXP:vgXP + Ep8u])", "def aNDg(YKHO, EcVT, LVAh, Ep8u=4):\n j8Af = len(EcVT)\n orOa = int((j8Af - 1) / Ep8u) + 1\n for YRbF in Ni9Y(orOa):\...
[ "0.7082074", "0.68378437", "0.6810493", "0.6749886", "0.6733368", "0.6632293", "0.6563642", "0.65469205", "0.6532454", "0.6526594", "0.64814687", "0.64768344", "0.6430577", "0.642156", "0.6396013", "0.638918", "0.6345127", "0.63394755", "0.6323025", "0.6313349", "0.63100696",...
0.0
-1
View function for home page
def d6pt(QePW): QpfX = {} return _1tc(QePW, 'banking/index.html', QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'welcome.html')", "def nkjV(QePW):\n return pb0k(QePW, 'home/home.html', {})", ...
[ "0.85924286", "0.8448818", "0.8448818", "0.8435685", "0.84010404", "0.8379586", "0.83782864", "0.8374198", "0.8373429", "0.83474654", "0.8298391", "0.829418", "0.8288998", "0.8283299", "0.82828516", "0.82810354", "0.8279298", "0.82774", "0.82774", "0.82774", "0.82424337", "...
0.0
-1
Function creates dictionary from list. it takes first element of the sublist as key and on every occurrence of first element of the sublist value is increased.
def MYZ5(ybN4: list) -> dict: Ghho = {} for ZfUD in ybN4: if ZfUD[0] in Ghho: Ghho[ZfUD[0]] += 1 else: Ghho[ZfUD[0]] = 1 return Ghho
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CtGz(yv6U):\n vGu9 = {}\n for YRbF in yv6U:\n if str(YRbF) in vGu9.keys():\n vGu9[str(YRbF)] = vGu9[str(YRbF)] + 1\n else:\n vGu9[str(YRbF)] = 1\n return vGu9", "def KBcG(yv6U):\n v6LQ = dict.fromkeys(set(yv6U), 0)\n for mAB6 in yv6U:\n v6LQ[mAB6] += ...
[ "0.73345643", "0.7309499", "0.7285418", "0.71678525", "0.70617974", "0.6981929", "0.6981929", "0.6981929", "0.6926024", "0.6880963", "0.686781", "0.68538254", "0.6807047", "0.67792505", "0.67764467", "0.67319876", "0.67083716", "0.6697904", "0.6591844", "0.6542582", "0.654165...
0.71354717
4
Takes in a string that is composed of n, x, y or r letters such as 'nnnxxxyrrynn' (lower case), returns two sets that contain all possible combinations of the binary part (y/r) in DNA language, index of the binary barcode as a list, where the first elemenent is the beginning position and the second the end, index of th...
def WSmV(ZPrV): eN1Z = ZPrV.lower() QgKS = ''.join(''.join(eN1Z.split('n')).split('x')) T6OP = [eN1Z.index(QgKS), eN1Z.index(QgKS) + len(QgKS)] R5SF = ''.join(''.join(''.join(eN1Z.split('r')).split('y')).split('n')) Y_o7 = [eN1Z.index(R5SF), eN1Z.index(R5SF) + len(R5SF)] EQjW = [WKvO for WKvO in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSmV(ZPrV):\n eN1Z = ZPrV.lower()\n QgKS = ''.join(''.join(eN1Z.split('n')).split('x'))\n T6OP = [eN1Z.index(QgKS), eN1Z.index(QgKS) + len(QgKS)]\n R5SF = ''.join(''.join(''.join(eN1Z.split('r')).split('y')).split('n'))\n Y_o7 = [eN1Z.index(R5SF), eN1Z.index(R5SF) + len(R5SF)]\n EQjW = [WKvO ...
[ "0.6411435", "0.61224544", "0.5815507", "0.5778863", "0.56975967", "0.5667271", "0.56493986", "0.5616437", "0.5573241", "0.5503472", "0.54857385", "0.5464339", "0.5452929", "0.5451839", "0.53946507", "0.5392732", "0.5365032", "0.53539354", "0.53441924", "0.5334191", "0.532980...
0.6420316
0
Compute softmax values for each sets of scores in x.
def N93T(YKHO, WKvO): return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye", "def N93T(WKvO):\n j1LR = oyIN.exp(o...
[ "0.80113125", "0.77607703", "0.77607703", "0.7687368", "0.76707524", "0.76605", "0.76571554", "0.76571554", "0.76571554", "0.76571554", "0.76571554", "0.76571554", "0.76571554", "0.76397043", "0.762786", "0.7551623", "0.7532752", "0.74565", "0.73242354", "0.73171765", "0.7298...
0.7051171
99
Add intercept to matrix x.
def fNNV(WKvO): r8hN, exwG = WKvO.shape kNbz = oyIN.zeros((r8hN, exwG + 1), dtype=WKvO.dtype) kNbz[:, 0] = 1 kNbz[:, 1:] = WKvO return kNbz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fNNV(YKHO, WKvO):\n kNbz = oyIN.zeros((WKvO.shape[0], WKvO.shape[1] + 1), dtype=WKvO.dtype)\n kNbz[:, 0] = 1\n kNbz[:, 1:] = WKvO\n return kNbz", "def riDn(WKvO):\n kNbz = oyIN.zeros((WKvO.shape[0], WKvO.shape[1] + 1), dtype=WKvO.dtype)\n kNbz[:, 0] = 1\n kNbz[:, 1:] = WKvO\n return k...
[ "0.8447776", "0.797926", "0.797926", "0.7978264", "0.78340024", "0.78065866", "0.7671521", "0.76705915", "0.7437566", "0.72465056", "0.6642028", "0.6420706", "0.63469356", "0.6345566", "0.63162243", "0.6236523", "0.6091396", "0.60109675", "0.58690256", "0.581128", "0.5797784"...
0.8391195
1
This will create the GUI with all the fields placed in order for the user to enter the contact details. The layout of the gui and positions of the fields and textboxs are all defined in this function
def HC_s(): global fname1, lname1, phone1, address1, email1, select ufJO = xNQ_() ufJO.title('Address Book') ufJO.geometry('550x500') gOf7 = LQRw(ufJO) gOf7.pack() NTMq = seYU(gOf7, text='First Name') NTMq.grid(row=0, column=0, sticky=XcU5) f8u9 = ug49() IznC = RAUw(gOf7, textvar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VZBF(YKHO):\n YKHO.lbl_fname = on8l.Label(YKHO.master, text='First Name:')\n YKHO.lbl_fname.grid(row=0, column=0, padx=(27, 0), pady=(10, 0), sticky=ywwl + XcU5)\n YKHO.lbl_lname = on8l.Label(YKHO.master, text='Last Name:')\n YKHO.lbl_lname.grid(row=2, column=0, padx=(27, 0), pady=(10, 0), sticky=y...
[ "0.74521774", "0.73814493", "0.69212717", "0.6895875", "0.6882441", "0.6808658", "0.6785723", "0.6722799", "0.67204005", "0.67015886", "0.6601652", "0.65157706", "0.64908963", "0.648081", "0.64767945", "0.6472828", "0.6469971", "0.64647603", "0.64407676", "0.6377484", "0.6357...
0.0
-1
Serializes this instance to a Python dictionary.
def MNRr(YKHO): hlel = jth9.deepcopy(YKHO.__dict__) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO) -> dict:\n pass", "def Napc(YKHO):\n return dict(YKHO.__dict__)", "def sS6L(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO) -> dict:\n return YKHO.__data__", "def _fYl(YKHO) -> cuzp[str, ImMB]:\n return B4us(YKHO)", "def dict(YKHO):\n return YKHO.to_dict()", "def dict(Y...
[ "0.8867926", "0.8861291", "0.8325109", "0.8323158", "0.8313032", "0.8288802", "0.8288802", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8251281", "0.8234439", "0.8234439", "0.8216978", "...
0.0
-1
Save this instance to a json file.
def JXlt(YKHO, wO5G): with open(wO5G, 'w', encoding='utf-8') as WJI9: WJI9.write(YKHO.to_json_string())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO):\n YGFP = YKHO.to_dict()\n with open(YKHO.filename, 'w', encoding='utf8') as wM3v:\n qQXR.dump(YGFP, wM3v, indent=4)", "def xkzz(YKHO):\n with open(YKHO.file_path, 'w') as eHNT:\n qQXR.dump(YKHO.data, eHNT)", "def xkzz(YKHO):\n with open('save_file.json', 'w') as QN9E:\...
[ "0.91215414", "0.88942856", "0.8733045", "0.8730476", "0.8730476", "0.8601914", "0.856061", "0.85438454", "0.85300076", "0.8493628", "0.84601897", "0.84497064", "0.8424693", "0.8395195", "0.8395195", "0.8395195", "0.8376432", "0.83757895", "0.82901937", "0.828464", "0.8266395...
0.0
-1
Instantiate a BertPreTrainedModel from a pretrained model file or a pytorch state dict. Download and cache the pretrained model file if needed.
def NZUw(Emd4, k5gO, *g4y1, **B2fa): Nu1S = Hy7s.path.join(k5gO, 'xlnet_config.json') if not Hy7s.path.exists(Nu1S): Nu1S = Hy7s.path.join(k5gO, 'config.json') GPtr = RwX2.from_json_file(Nu1S) bo34.info('Model config {}'.format(GPtr)) C3ST = Emd4(GPtr, *g4y1, **B2fa) dC43 = Hy7s.path.joi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y4QU(Emd4, *qIxc, **YSA3):\n try:\n return Emd4.from_pretrained(*qIxc, **YSA3)\n except OSError as e:\n G9jH.warning('Caught OSError loading model: %s', tTpl)\n G9jH.warning('Re-trying to convert from PyTorch checkpoint (from_pt=True)')\n return Emd4.from_pretrained(*qIxc, fro...
[ "0.7886203", "0.7836199", "0.77256286", "0.77085656", "0.7702033", "0.7683663", "0.7664167", "0.7645061", "0.75685877", "0.7525189", "0.7453127", "0.739584", "0.7279207", "0.7131352", "0.7103884", "0.7090495", "0.70711535", "0.69820225", "0.69811124", "0.6970305", "0.6948547"...
0.7213579
13
This function returns a random ANSI color code string.
def ooqv() -> str: return _vz_(tuKI.choice(range(255)), tuKI.choice(range(255)), tuKI.choice(range(255)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def igEX():\n return '#%06x' % tuKI.randint(0, 16777215)", "def MP1f():\n Mkmy = lambda: ajWY(0, 255)\n return int('%02X%02X%02X' % (Mkmy(), Mkmy(), Mkmy()), 16)", "def KgiJ():\n gLiZ = list('0123456789ABCDEF')\n return '#{0}{1}{2}{3}{4}{5}'.format(Acvy(gLiZ), Acvy(gLiZ), Acvy(gLiZ), Acvy(gLiZ),...
[ "0.7798677", "0.76763254", "0.765306", "0.76518977", "0.7650707", "0.76466405", "0.7603646", "0.7597164", "0.7578889", "0.7552694", "0.7478302", "0.73717755", "0.7250251", "0.72294366", "0.7228951", "0.7046473", "0.7038119", "0.702571", "0.70230716", "0.69314516", "0.6912366"...
0.82258874
0
Get the SIMBAD name of an object
def PbfS(mWFP): if hasattr(mWFP, '__iter__') and (not isinstance(mWFP, str)): return oyIN.asarray([PbfS(exwG) for exwG in mWFP]) try: vexM = _1h6.query_object(mWFP) a1PO = vexM['MAIN_ID'].data[0] except: a1PO = '' return a1PO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YEnM):\n return type(YEnM).__name__", "def hRqW(YEnM):\n if hasattr(YEnM, '__name__'):\n return nOOm(YEnM.__name__, QCJc)\n return nOOm(str(YEnM), QCJc)", "def ckfy(YEnM):\n return YEnM if isinstance(YEnM, str) else YEnM.GetName()", "def mWFP(YEnM):\n return getattr(YEnM, 'name...
[ "0.79792124", "0.79370666", "0.77820534", "0.77571005", "0.7693132", "0.7672947", "0.7663564", "0.75537366", "0.7544251", "0.7513518", "0.7465505", "0.73892796", "0.73892796", "0.73531646", "0.7348855", "0.7348855", "0.7348224", "0.7348224", "0.7348224", "0.7348224", "0.73482...
0.0
-1
The id of the atom.
def id(YKHO): return id(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mLJR(YKHO):\n if YKHO._changeEntryId is None:\n YKHO._changeEntryId = YKHO._xmlDoc.getElementsByTagNameNS(YrZH, 'id')[0].firstChild.data\n return YKHO._changeEntryId", "def id(YKHO):\n return YKHO._id", "def id(YKHO) -> str:\n return YKHO._id", "def id(YKHO):\n return YKHO._id.value...
[ "0.7836436", "0.7712011", "0.7597788", "0.7558409", "0.75582576", "0.7520468", "0.74602187", "0.74602187", "0.74602187", "0.74602187", "0.74602187", "0.74602187", "0.74602187", "0.74602187", "0.74602187", "0.74602187", "0.74602187", "0.74602187", "0.74602187", "0.74602187", "...
0.0
-1
Return the index of the ``Atom`` instance.
def d6pt(YKHO) -> int: return YKHO._index
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vn7Z(YKHO) -> int:\n return YKHO._index", "def d6pt(YKHO) -> int:\n return YKHO.__index", "def d6pt(YKHO) -> int:\n return YKHO.__index", "def d6pt(YKHO) -> int:\n return YKHO.__index", "def _Wu0(YKHO) -> int:\n return YKHO.index", "def Vn7Z(YKHO):\n return YKHO.attrs.index", "def...
[ "0.7336368", "0.72234637", "0.72234637", "0.72234637", "0.71807265", "0.7180673", "0.7156958", "0.71464956", "0.71183187", "0.70736754", "0.7067701", "0.7067701", "0.704582", "0.6964257", "0.6956633", "0.6887077", "0.68145084", "0.6809284", "0.6781767", "0.6781412", "0.678042...
0.7120629
9
Return the name of the ``Atom`` instance.
def mWFP(YKHO) -> str: return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n if YKHO._name is not None:\n return YKHO._name\n else:\n return repr(YKHO)", "def mWFP(YKHO):\n if YKHO._name:\n return str(YKHO._name[0][0][0])", "def W0tD(YKHO):\n return YKHO.__name", "def W0tD(YKHO):\n return YKHO.__name", "def W0tD(YKHO):\n retu...
[ "0.72115594", "0.719396", "0.7188683", "0.7188683", "0.7188683", "0.7188683", "0.7188683", "0.7188683", "0.7188683", "0.7188683", "0.71844584", "0.71814835", "0.71805906", "0.71805906", "0.7172066", "0.7170203", "0.7159508", "0.7159508", "0.7157017", "0.7154723", "0.7142473",...
0.0
-1
Creates a deep copy of the ``Atom`` instance.
def jth9(YKHO) -> 'Atom': return k3IH(YKHO.name, weight=YKHO.weight, **YKHO._params.copy())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FzJk(YKHO) -> 'Atom':\n return YKHO.copy()", "def TeoN(YKHO):\n jYi8 = k3IH()\n jYi8.type = YKHO.type\n jYi8.numb = YKHO.numb\n jYi8.name = YKHO.name\n jYi8.element = YKHO.element\n jYi8.resName = YKHO.resName\n jYi8.resNumb = YKHO.resNumb\n jYi8.chainID = YKHO.chainID\n jYi8.x ...
[ "0.8263802", "0.82045794", "0.81154275", "0.7982516", "0.77994514", "0.7560365", "0.7426614", "0.7179527", "0.69719356", "0.68860614", "0.66495925", "0.66239804", "0.66202235", "0.6576933", "0.6567636", "0.65448004", "0.65448004", "0.6496839", "0.64962834", "0.64920086", "0.6...
0.8450238
0
Checks if the other ``Atom`` is identical to this one.
def hHbZ(YKHO, Elif: 'Atom') -> bool: return YKHO._name == Elif.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if isinstance(Elif, k3IH) and YKHO.element == Elif.element and (YKHO.index == Elif.index):\n return True\n else:\n return False", "def xa14(YKHO, Elif):\n if isinstance(Elif, k3IH) and YKHO.element == Elif.element and (YKHO.index == Elif.index):\n return True...
[ "0.80535644", "0.80535644", "0.7318195", "0.72463846", "0.72463846", "0.7167985", "0.7164521", "0.7076528", "0.6986781", "0.6977473", "0.69534284", "0.6953344", "0.69295263", "0.69164973", "0.69070053", "0.6904615", "0.68830365", "0.68568045", "0.6849936", "0.6849936", "0.684...
0.8687544
0
Creates a deep copy of the ``Atom`` instance.
def FzJk(YKHO) -> 'Atom': return YKHO.copy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO) -> 'Atom':\n return k3IH(YKHO.name, weight=YKHO.weight, **YKHO._params.copy())", "def TeoN(YKHO):\n jYi8 = k3IH()\n jYi8.type = YKHO.type\n jYi8.numb = YKHO.numb\n jYi8.name = YKHO.name\n jYi8.element = YKHO.element\n jYi8.resName = YKHO.resName\n jYi8.resNumb = YKHO.resNum...
[ "0.8450238", "0.82045794", "0.81154275", "0.7982516", "0.77994514", "0.7560365", "0.7426614", "0.7179527", "0.69719356", "0.68860614", "0.66495925", "0.66239804", "0.66202235", "0.6576933", "0.6567636", "0.65448004", "0.65448004", "0.6496839", "0.64962834", "0.64920086", "0.6...
0.8263802
1
Add bias and gain to an image with saturation arithmetics. Unlike cv2.convertScaleAbs, it does not take an absolute value, which would lead to nonsensical results (e.g., a pixel at 44 with alpha = 3 and beta = 210 becomes 78 with OpenCV, when in fact it should become 0).
def wyPB(VXjJ, Cwt5, UqYS): xiPz = VXjJ * Cwt5 + UqYS xiPz[xiPz < 0] = 0 xiPz[xiPz > 255] = 255 return xiPz.astype(oyIN.uint8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uIZu(VXjJ, NXpY):\n VXjJ = XC5k.cvtColor(DWPL(VXjJ), XC5k.COLOR_RGB2HLS)\n _g1V = oyIN.array([1.0, 1.0, NXpY], dtype=oyIN.float)\n VXjJ = VXjJ.astype(oyIN.float)\n VXjJ *= _g1V\n VXjJ = tfzj(VXjJ)\n return XC5k.cvtColor(VXjJ, XC5k.COLOR_HLS2RGB).astype(oyIN.float32)", "def zxSA(YKHO, BWXx):...
[ "0.73764104", "0.6680383", "0.6617947", "0.6567961", "0.6547438", "0.6390339", "0.6341848", "0.6281141", "0.6259015", "0.6207407", "0.6201716", "0.61799675", "0.6171242", "0.6154178", "0.6121868", "0.61211044", "0.61106044", "0.61075467", "0.60538673", "0.6034199", "0.6020888...
0.6265481
8
Gets the norm type
def gCNk(YKHO): return YKHO.pnorm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRul(YKHO):\n return YKHO._get_attr('type', 'normal')", "def type(YKHO):\n return 'nominal'", "def CkYf(YKHO):\n return PZyS(YKHO.norm_squared())", "def Dlsn(YKHO):\n return YKHO._type", "def C3ST(YKHO):\n return YKHO.data.get(OVEI.ACTUAL_TYPE).split('_')[1].upper()", "def wXvw(YKHO):\...
[ "0.7476311", "0.670833", "0.67082", "0.66707236", "0.65708804", "0.6548581", "0.65151983", "0.646305", "0.64560056", "0.6444808", "0.64398843", "0.64398843", "0.64398843", "0.64398843", "0.64398843", "0.64398843", "0.64398843", "0.64398843", "0.64398843", "0.64398843", "0.642...
0.0
-1
Get the radius of the circle. getRadius() This method returns the value specified from the setRadius() call, or None if that method has not been invoked.
def iwTD(YKHO): return YKHO.__radius
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r1VO(YKHO) -> None:\n return YKHO._radius", "def r1VO(YKHO):\n return YKHO._radius", "def r1VO(YKHO):\n return YKHO._radius", "def r1VO(YKHO):\n return YKHO._radius", "def r1VO(YKHO):\n return YKHO._radius", "def r1VO(YKHO):\n return YKHO._radius", "def r1VO(YKHO):\n return YKH...
[ "0.810531", "0.8015302", "0.8015302", "0.8015302", "0.8015302", "0.8015302", "0.8015302", "0.8015302", "0.8015302", "0.8015302", "0.8015302", "0.7945563", "0.7905064", "0.787234", "0.787234", "0.78415877", "0.7838964", "0.7838964", "0.7772394", "0.7772394", "0.7772394", "0....
0.8352999
0
Sort the internal disk list.
def POLM(YKHO): for mWFP in reversed(YKHO.disk_order): try: or8S = [Csk6.name for Csk6 in YKHO.disks].index(mWFP) except ValueError: RKD7.error('bios order specified unknown disk %s', mWFP) continue YKHO.disks.insert(0, YKHO.disks.pop(or8S))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P8Zp(YKHO):\n YKHO.all_au_files.sort(key=lambda WKvO: +WKvO.mutagen_id3['TRCK'])", "def hBrK(YKHO) -> AzJI[x1iM[oyIN.float64], oyIN.ndarray]:\n ngdO = []\n n_MB = []\n J4j8 = []\n for YRbF in range(YKHO.npix):\n for r845 in range(YKHO.npix):\n Eoho = YKHO.radius[YRbF, r845] *...
[ "0.6737931", "0.65208197", "0.64627194", "0.6441537", "0.64244354", "0.6316222", "0.62186354", "0.61860454", "0.61343414", "0.61304283", "0.61304283", "0.6114598", "0.6075475", "0.6075475", "0.6071911", "0.6063623", "0.6063623", "0.60631037", "0.60610795", "0.60542667", "0.60...
0.7851046
0
Full path to configuration file.
def Nu1S(YKHO): return '%s/%s' % (YKHO.config_dir, YKHO._config_file)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xzSM(YKHO):\n return YKHO.abs_path(YKHO.config_dir, u8az)", "def S673(YKHO):\n return Hy7s.path.expanduser(YKHO.options.config_file)", "def RrNC():\n return Hy7s.path.join(vmiX, u8az)", "def zLWx(YKHO):\n qaEx = YKHO.path_of_file + YKHO.name_of_file\n return qaEx", "def RrNC(YKHO):\n ...
[ "0.88206244", "0.87410563", "0.8652755", "0.8425559", "0.8346019", "0.8223967", "0.82017606", "0.81714714", "0.81673783", "0.8115805", "0.81155676", "0.80650043", "0.8059854", "0.7874629", "0.78583187", "0.78375214", "0.7836995", "0.7799452", "0.77891403", "0.77846134", "0.77...
0.84597594
3
relative path to splash image directory.
def tazx(YKHO): return xm1S._config_dir
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PB2j():\n return khtY.join(pAgf.assetDir, 'assets', 'icons', 'splash', 'splash.png')", "def SUL8(Ux0P):\n return Hy7s.path.join('../images', Ux0P)", "def JFat(t_yv):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath('.')\n return Hy7s.path.join(XSj5, ...
[ "0.7817728", "0.6746529", "0.67462814", "0.65864444", "0.65864444", "0.65767473", "0.65659165", "0.6507383", "0.65043515", "0.6437516", "0.64293766", "0.6402181", "0.637736", "0.6373814", "0.63686687", "0.63619655", "0.631777", "0.63150024", "0.6294921", "0.6280488", "0.62511...
0.7357361
1
Perform reauth upon an API authentication error.
async def async_step_reauth(YKHO, FZeL: Mapping[str, Any]) -> gI3H: YKHO.reauth_entry = YKHO.hass.config_entries.async_get_entry(YKHO.context['entry_id']) return await YKHO.async_step_reauth_confirm()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xwJR(YKHO):\n YKHO.authenticate('refresh_token')", "def ylVm():\n return p_Hn('Invalid credentials')", "def ylVm():\n return UAju.unauthorized('Invalid credentials')", "def Ja1Q(YKHO, tvqc: AuthenticationFailedEvent):\n pass", "def ozxE(YKHO, geh0):\n if geh0.code == 401:\n raise ...
[ "0.68817693", "0.67197514", "0.6659298", "0.6519677", "0.6482722", "0.64518774", "0.64323705", "0.64051193", "0.63810885", "0.6349614", "0.6290682", "0.62718916", "0.6260688", "0.621525", "0.62151724", "0.6192989", "0.6175208", "0.6161778", "0.6126433", "0.6117735", "0.610136...
0.0
-1
Update weights of self.targetEncoder by an EMA of self.onlineEncoder.
def ry56(YKHO): for bw_R, _L2j in zip(YKHO.onlineEncoder.parameters(), YKHO.targetEncoder.parameters()): _L2j.data = YKHO.targetEMA(MA=_L2j.data, value=bw_R.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QngQ(YKHO):\n s4Yn = YKHO.actor.trainable_weights + YKHO.critic.trainable_weights\n YKHO.ema.apply(s4Yn)\n for YRbF, r845 in zip(YKHO.actor_target.trainable_weights + YKHO.critic_target.trainable_weights, s4Yn):\n YRbF.assign(YKHO.ema.average(r845))", "def QngQ(YKHO):\n s4Yn = YKHO.actor.t...
[ "0.7116559", "0.7116559", "0.6989788", "0.681442", "0.68124294", "0.6487801", "0.63522166", "0.6312898", "0.6280968", "0.62516564", "0.6201104", "0.61872375", "0.6185988", "0.6185908", "0.6179948", "0.6177802", "0.6177802", "0.6177802", "0.6177802", "0.6175585", "0.61698836",...
0.8305692
0