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
Start all runs in the pipeline, along with threads that monitor their progress and signal consumer when finished. Use join_all to wait until they are all finished.
def bdZS(YKHO): PurT.debug('Pipeline {} launching run components'.format(YKHO.id)) YKHO._start_time = ITS7.time() for iXC1 in YKHO.runs: iXC1.start() if iXC1.sleep_after: ITS7.sleep(iXC1.sleep_after)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ndBi(YKHO):\n JfuV = []\n for MgeT in YKHO.__list_thread:\n MgeT.start()\n JfuV.append(MgeT)\n for NBjn in JfuV:\n NBjn.join()", "def ULKK(YKHO):\n KLjs = list(YKHO._running_pipelines)\n for nPIK in KLjs:\n nPIK.join_all()", "def kxIS(YKHO):\n for NRWD in YKHO....
[ "0.69185233", "0.6915545", "0.6590577", "0.65650755", "0.650658", "0.6440931", "0.6338167", "0.63376737", "0.63204694", "0.6094544", "0.60749394", "0.60620654", "0.5973233", "0.59609616", "0.59609616", "0.59380203", "0.5928629", "0.5912606", "0.5897279", "0.58685094", "0.5848...
0.60917056
10
Returns the product model that is used by this cart.
def soZL(): return sfcH(gCuF.CART_PRODUCT_MODEL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C3ST(YKHO):\n return msfn", "def Lx3t(YKHO):\n return YKHO._product", "def Lx3t(YKHO):\n return YKHO._product", "def Lx3t(YKHO):\n return YKHO._product", "def duKq(YKHO):\n return YKHO.card_product", "def C3ST(YKHO) -> wOed:\n return YKHO.software_system.get_model()", "def Fi_A(YK...
[ "0.7923212", "0.7329233", "0.7329233", "0.7329233", "0.7027875", "0.69704604", "0.68747425", "0.6841671", "0.6765259", "0.67052335", "0.6700221", "0.6680645", "0.66567427", "0.6653926", "0.6578887", "0.6549363", "0.6540445", "0.65371966", "0.64235234", "0.6414897", "0.6409914...
0.817874
0
Returns the class that is used by this cart for its items.
def QCpj(): return sfcH(hisY.CART_ITEM_CLASS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qI3e(YKHO):\n if YKHO.is_child:\n return YKHO.parent.product_class\n else:\n return YKHO.product_class", "def dVGP(YKHO, ZfUD):\n if type(ZfUD) == type:\n return ZfUD\n return ZfUD.__class__", "def ZvYj(YKHO):\n return YKHO.CLASS", "def ZvYj(YKHO):\n return YfpN.get...
[ "0.74389124", "0.73782074", "0.7159134", "0.69944555", "0.68042964", "0.65821123", "0.64814126", "0.64621717", "0.6374596", "0.6303918", "0.6267455", "0.626183", "0.62356424", "0.6226835", "0.62168664", "0.6211506", "0.618528", "0.61821634", "0.61821634", "0.6170714", "0.6121...
0.83166784
0
Convert a DNSSEC algorithm value to text value, an ``int`` a DNSSEC algorithm. Returns a ``str``, the name of a DNSSEC algorithm.
def TAS2(BWXx): l5Ny = zn3i.get(BWXx) if l5Ny is None: l5Ny = str(BWXx) return l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y1Ra(l5Ny):\n BWXx = x2Os.get(l5Ny.upper())\n if BWXx is None:\n BWXx = int(l5Ny)\n return BWXx", "def E91_(YKHO) -> str:\n return qe4Y.get(YKHO, 'algorithm')", "def E91_(YKHO) -> str:\n return qe4Y.get(YKHO, 'algorithm')", "def E91_(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(Y...
[ "0.6194019", "0.5925451", "0.5925451", "0.5837144", "0.5816566", "0.56493956", "0.56332815", "0.5512348", "0.5488962", "0.5472465", "0.5460301", "0.5432506", "0.54019254", "0.5278066", "0.5278066", "0.5278066", "0.5278066", "0.52765304", "0.5237211", "0.52275324", "0.52275324...
0.7657377
0
Obtain the latest version of a given package name from Pypi.
def DOzY(hxGQ: str) -> str: Mkmy = G4JS.get(Hy7s.path.join('https://pypi.org/pypi/', hxGQ, 'json')) return Mkmy.json().get('info').get('version')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f5VI(mWFP):\n Mkmy = G4JS.get('https://pypi.org/pypi/{name}/json'.format(name=mWFP))\n return Mkmy.json()['info']['version']", "def FDk0(hxGQ: str, W1Sh: bool) -> str:\n GtGV = N5W9(hxGQ)\n DpZH = GtGV.get('info').get('version') if GtGV and GtGV.get('info') else None\n if W1Sh and DpZH and (no...
[ "0.78697866", "0.77563596", "0.7564214", "0.74963534", "0.7230627", "0.7162591", "0.710268", "0.7063345", "0.7051173", "0.6964184", "0.68492466", "0.6845399", "0.6827669", "0.6761373", "0.6666752", "0.6664775", "0.66629547", "0.664778", "0.6631957", "0.65878826", "0.6587769",...
0.8176022
0
O(nklog(k)) in time, O(1) in space, with heap
def G1XG(YKHO, UHhk: 'List[ListNode]') -> 'ListNode': if not UHhk or not UHhk[0]: return None zdB2 = Msxl(0) ZbOB = zdB2 gGCN = [] for YRbF in range(len(UHhk)): if UHhk[YRbF]: _eVy.heappush(gGCN, (UHhk[YRbF], YRbF)) UHhk[YRbF] = UHhk[YRbF].next while gGCN:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GUTP(k0lF):\n exwG = len(k0lF)\n for YRbF in range(exwG / 2 - 1, -1, -1):\n QZno(k0lF, YRbF, exwG)", "def ZnQG(qw7D, G1Hx, exwG):\n ju15 = qw7D[G1Hx]\n while G1Hx <= exwG / 2:\n aUGN = 2 * G1Hx\n if aUGN < exwG and qw7D[aUGN] < qw7D[aUGN + 1]:\n aUGN += 1\n ...
[ "0.64962316", "0.64651793", "0.6337879", "0.63116044", "0.63019454", "0.6282743", "0.62584156", "0.622449", "0.6169023", "0.6160081", "0.6159929", "0.6110873", "0.60850936", "0.608084", "0.60737044", "0.6069754", "0.6024432", "0.60162973", "0.60097426", "0.5999193", "0.595742...
0.0
-1
Broadcast X and Y, while ignoring the last axis of X and Y. If X.shape = xs + (i,) and Y.shape = ys + (j,) then the output arrays have shapes Xb.shape = zs + (i,) Yb.shape = zs + (j,) where zs is the shape of the broadcasting of xs and ys shaped arrays.
def Kw2r(Sk_F): jnRl = oyIN.broadcast_arrays(*[k0lF[..., 0] for k0lF in Sk_F]) SIOy = [i8nr.shape + (k0lF.shape[-1],) for i8nr, k0lF in zip(jnRl, Sk_F)] SVCM = [i8nr.strides + (k0lF.strides[-1],) for i8nr, k0lF in zip(jnRl, Sk_F)] u59v = [Tb35(k0lF, shape=fl9R, strides=M6Dz) for k0lF, fl9R, M6Dz in zip(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eisc(*qIxc):\n qIxc = [oyIN.asarray(fR9w) for fR9w in qIxc]\n N8OZ = [WKvO.shape for WKvO in qIxc]\n if len(set(N8OZ)) == 1:\n return qIxc\n N8OZ = [list(KCHu) for KCHu in N8OZ]\n FEri = [list(WKvO.strides) for WKvO in qIxc]\n HvfY = [len(KCHu) for KCHu in N8OZ]\n UOyk = max(HvfY)\n...
[ "0.5937629", "0.58346087", "0.5689254", "0.568108", "0.56589913", "0.5616185", "0.5616185", "0.5616185", "0.5601964", "0.55948716", "0.55785406", "0.55062014", "0.5502236", "0.5474832", "0.54602015", "0.54562664", "0.54482216", "0.527015", "0.5242044", "0.52245086", "0.522285...
0.5977688
0
return an ArgumentParser instance that is configured with options for the commandline interface.
def hPzx(fgn5): JBZA = 'send a notification message to subscribers via configured channels' QY6I = None wvEv = WDqQ(fgn5, None, JBZA, QY6I) wvEv.add_argument('-c', '--config', type=str, dest='cfgfile', metavar='FILE', default=None, help='a file containing the notification service ' + 'configuration to u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lHBs() -> j1Jz.ArgumentParser:\n wvEv = j1Jz.ArgumentParser(description=JBZA(), epilog=QY6I(), formatter_class=j1Jz.RawDescriptionHelpFormatter)\n return wvEv", "def lHBs() -> j1Jz.ArgumentParser:\n wvEv = j1Jz.ArgumentParser(description=JBZA(), epilog=QY6I(), formatter_class=j1Jz.RawDescriptionHelp...
[ "0.81277025", "0.81277025", "0.78262836", "0.7479633", "0.74738", "0.7468879", "0.74442804", "0.74085265", "0.73349726", "0.72832996", "0.7278386", "0.7241651", "0.72396564", "0.7236881", "0.7210148", "0.71748155", "0.71455896", "0.7129466", "0.7121451", "0.7096999", "0.70825...
0.0
-1
Given a path, split into all parts.
def wT7m(pmON): U5bT = [] while True: sdCG, J3uN = Hy7s.path.split(pmON) if len(J3uN) > 0: U5bT.append(J3uN) if sdCG == pmON: U5bT.append(sdCG) break pmON = sdCG return U5bT[::-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eCKq(YKHO, pmON):\n return Hy7s.path.split(pmON)", "def Tf3x(pmON: str) -> x1iM[str]:\n return [Q7me for Q7me in pmON.split('/') if Q7me]", "def KkWy(YKHO, pmON):\n pmON = pmON.strip('/')\n return pmON.split('/') if len(pmON) > 0 else []", "def wT7m(pmON):\n AdfU = []\n pmON = pmON.lstr...
[ "0.81495583", "0.8060876", "0.79306364", "0.7920623", "0.78465366", "0.7785627", "0.7779942", "0.77788496", "0.7643702", "0.76115966", "0.75535864", "0.7540321", "0.75140643", "0.7388313", "0.7341422", "0.73352027", "0.73327816", "0.7319796", "0.7313663", "0.7296013", "0.7280...
0.73703057
14
Convert MACs to string.
def rCqy(YKHO, xvjS: bool) -> str: if YKHO.num_params > 0 and (xvjS or not any(YKHO.module.children())): return f'{YKHO.macs:,}' return '--'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b78J(Pp4r):\n return '%.2x:%.2x:%.2x:%.2x:%.2x:%.2x' % tuple(map(ord, list(Pp4r)))", "def QeBN():\n hww6 = zhLG()\n DLdL = ':'.join((('%012x' % hww6)[YRbF:YRbF + 2] for YRbF in range(0, 12, 2)))\n return DLdL", "def QfE5(YKHO) -> str:\n BTpE = jry1(YKHO.message)[160:172].decode().upper()\n ...
[ "0.7712281", "0.7533739", "0.7033478", "0.70192784", "0.68408644", "0.683976", "0.6832208", "0.6826157", "0.66243434", "0.6585789", "0.6569437", "0.6560742", "0.6419041", "0.6409777", "0.6409777", "0.6400001", "0.6359617", "0.6337561", "0.6329451", "0.6294302", "0.6282555", ...
0.653292
12
Convert num_params to string.
def HgGz(YKHO, xvjS: bool=False) -> str: if YKHO.is_recursive: return '(recursive)' if YKHO.num_params > 0: hgN3 = f'{YKHO.num_params:,}' if xvjS or not any(YKHO.module.children()): if not YKHO.trainable: return f'({hgN3})' return hgN3 return '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gcv0(YKHO, zNig):\n tO9_ = []\n if YKHO.params:\n tO9_ = ['$PARAMS\\n']\n for H5ew, xqoZ in sorted(YKHO.params.iteritems()):\n tO9_.append(xqoZ.print_card(zNig))\n return ''.join(tO9_)", "def Oohf(YKHO, MCno=None):\n vC9B = YKHO.get_params(MCno)\n KCHu = ''\n for XP...
[ "0.6304768", "0.626755", "0.6180778", "0.61469966", "0.6001768", "0.59285706", "0.5891182", "0.58489877", "0.58152467", "0.57227284", "0.5719443", "0.5696451", "0.56889254", "0.56834644", "0.5675154", "0.5647663", "0.56351095", "0.5628327", "0.5628327", "0.5628327", "0.562832...
0.74791616
0
Convert the number from string to float type without builtin function float
def NtbF(wsm9): Zihr = {'+': 1, '-': -1}.get(wsm9[0], 1) if wsm9[0] in '+-': wsm9 = wsm9[1:] if wsm9[0] == '.': wsm9 = '0' + wsm9 if '.' in wsm9: oopU, ilQF = wsm9.split('.') kAne = M4Uu(oopU) wA3x = M4Uu(ilQF) uDy_ = kAne + wA3x / 10 ** len(ilQF) else...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n3at(WKvO):\n try:\n return float(WKvO)\n except ValueError:\n print('must be a number')", "def NrMZ(KCHu):\n try:\n return float(KCHu)\n except:\n return KCHu", "def AjPn(YKHO, KCHu: str) -> float:\n return int(KCHu[:-1]) / 1000000000.0 if KCHu.endswith('n') else...
[ "0.85335606", "0.84020936", "0.8246393", "0.81158775", "0.80919737", "0.8054082", "0.80037856", "0.7865081", "0.78474545", "0.7765933", "0.7759682", "0.7738867", "0.77240354", "0.76826197", "0.76430243", "0.7627505", "0.76047254", "0.76012415", "0.7576136", "0.7575462", "0.75...
0.74269557
29
Transform an array with one flattened image per row, into an array in which images are reshaped and layed out like tiles on a floor. This function is useful for visualizing datasets whose rows are images, and also columns of matrices for transforming those rows (such as the first layer of a neural net).
def ImBB(EcVT, yOrK, LBFJ, h7sJ=(0, 0), TqDZ=True, xkcO=True): assert len(yOrK) == 2 assert len(LBFJ) == 2 assert len(h7sJ) == 2 pfA5 = [(jJjJ + UiV1) * lCGb - UiV1 for jJjJ, lCGb, UiV1 in zip(yOrK, LBFJ, h7sJ)] if isinstance(EcVT, tuple): assert len(EcVT) == 4 if xkcO: d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SNeg(Ddli):\n BLg0 = oyIN.size(Ddli)\n return oyIN.reshape(Ddli, (BLg0,))", "def mA30(WKvO):\n *ooTa, MKlR, yzQ0, Z9rn = WKvO.shape\n return WKvO.reshape((*ooTa, MKlR * yzQ0 * Z9rn))", "def zVkl(YKHO, mn_O):\n gZdx = []\n exwG = 28\n while exwG <= len(mn_O):\n gZdx.append(mn_O[e...
[ "0.76184297", "0.69537", "0.68663317", "0.6771791", "0.65826255", "0.6561428", "0.64458716", "0.64410496", "0.64410496", "0.64410496", "0.63503015", "0.63122076", "0.6275036", "0.62737244", "0.6262288", "0.62448776", "0.62002105", "0.61763865", "0.61444575", "0.6124879", "0.6...
0.58482873
40
Opens a new database connection if there is none yet for the current application context.
def GGod(): if not hasattr(Oa1e, 'sqlite_db'): Oa1e.sqlite_db = _uJw() return Oa1e.sqlite_db
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db", "def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)", "def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)", "def W...
[ "0.7737639", "0.7582971", "0.73180443", "0.71693045", "0.70220166", "0.6966687", "0.6954785", "0.69486743", "0.6897534", "0.6842663", "0.68292314", "0.68191963", "0.680592", "0.67950195", "0.67697805", "0.6762173", "0.6751266", "0.6746273", "0.67316663", "0.670031", "0.668866...
0.640242
80
Define layers for a vanilla rnn encoder
def FIMM(YKHO, jXxl, Zwn2, a6Jb, tWud): super(UYOu, YKHO).__init__() YKHO.vocab_size = jXxl YKHO.embedding = U78l.Embedding(jXxl, Zwn2) YKHO.lstm = U78l.LSTM(Zwn2, a6Jb) YKHO.hidden2mean = U78l.Linear(a6Jb, tWud) YKHO.hidden2logv = U78l.Linear(a6Jb, tWud) YKHO.cell2mean = U78l.Linear(a6Jb, t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GMlY(YKHO):\n YKHO.encoder = U78l.Sequential(U78l.Conv2d(in_channels=3, out_channels=32, kernel_size=4, stride=2, padding=1), U78l.SELU(), U78l.Conv2d(32, 32, 4, 2, 1), U78l.SELU(), U78l.Conv2d(32, 64, 4, 2, 1), U78l.SELU(), U78l.Conv2d(64, 64, 4, 2, 1), U78l.SELU(), U78l.Conv2d(64, 256, 4, 1), U78l.SELU(),...
[ "0.7218295", "0.71548826", "0.6907792", "0.66667175", "0.65487325", "0.6534074", "0.6520071", "0.647997", "0.64723253", "0.6469614", "0.64522153", "0.6433063", "0.64292246", "0.6428599", "0.64261454", "0.64033186", "0.6395273", "0.63338053", "0.6322398", "0.63109756", "0.6310...
0.0
-1
Returns the total gravitational force acting on the body from the Earth and Moon.
def iI6A(dQgj, bMbF): E1Fz = IS_9(dQgj, bMbF, Yxrb, U3sU) qdaG = IS_9(dQgj, bMbF, YenY, kpMA) Qsiq = E1Fz[0] + qdaG[0] gSKJ = E1Fz[1] + qdaG[1] return (Qsiq, gSKJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cn4Z(YKHO, Elif):\n DHvX = r9jE.G * YKHO.mass * Elif.mass / YKHO.distance(Elif) ** 2\n return DHvX", "def rudm(bG44, h5BT, dFAg):\n Fn98 = oyIN.linalg.norm(dFAg)\n vuvg = saVb * bG44.mass * h5BT.mass / Fn98 ** 3 * dFAg\n return vuvg", "def y9kB():\n Oa1e = Wqa4.gravity()\n return SZ2k(...
[ "0.71080023", "0.68899685", "0.66905564", "0.6641266", "0.65015244", "0.6494756", "0.6480524", "0.6430629", "0.6377404", "0.63519543", "0.6351334", "0.6269306", "0.6187852", "0.61872977", "0.6139606", "0.61322623", "0.6092323", "0.60388166", "0.6034025", "0.6031539", "0.60158...
0.6172307
14
Returns the acceleration based on all forces acting upon the body.
def wMqS(dQgj, bMbF): Qsiq, gSKJ = iI6A(dQgj, bMbF) return (Qsiq / bMbF, gSKJ / bMbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YfQr(YKHO) -> oyIN.array:\n vuvg = YKHO.calculate_net_force()\n r8hN = YKHO.mass\n jzdc = vuvg / r8hN\n return jzdc", "def y9kB(sgTf, *dcLO):\n _TK7 = []\n for TBsA in dcLO:\n if not isinstance(TBsA, xMEH):\n raise TypeError(f'{type(TBsA)} is not a body type')\n _TK...
[ "0.7344626", "0.69035375", "0.68625116", "0.65773505", "0.6517349", "0.6507465", "0.64710975", "0.63481534", "0.6326572", "0.6274453", "0.6256414", "0.6249561", "0.62353057", "0.62144464", "0.62131", "0.61764073", "0.6175256", "0.6151717", "0.6089929", "0.6054933", "0.6044895...
0.58435374
29
Return True if the number of function evaluations meets or exceeds a maximum. This function compares the number of function evaluations that have been generated with a specified maximum. It returns True if the maximum is met or exceeded.
def Qcnk(CHNM, X3mS, wZYD, qIxc): xCWN = qIxc.setdefault('max_evaluations', len(CHNM)) return wZYD >= xCWN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bWsl(YKHO):\n return YKHO.total_max is not None and YKHO.counter > YKHO.total_max", "def EBdA():\n if PtQX([1, 2, 3]) == 3:\n c4v3 = True\n print('Congrats!, first subtest have succeed')\n else:\n c4v3 = False\n print('oops!, something went wrong with the first subtest')\...
[ "0.726781", "0.6831815", "0.647854", "0.6375833", "0.6347752", "0.63110393", "0.625945", "0.62417173", "0.6210913", "0.6209003", "0.6200967", "0.61702836", "0.61476177", "0.60869217", "0.60771525", "0.603631", "0.60052776", "0.5931501", "0.59139305", "0.5910704", "0.5827647",...
0.706152
1
Return True if the number of generations meets or exceeds a maximum. This function compares the number of generations with a specified maximum. It returns True if the maximum is met or exceeded.
def IMtw(CHNM, X3mS, wZYD, qIxc): L7zo = qIxc.setdefault('max_generations', 1) return X3mS >= L7zo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bWsl(YKHO):\n return YKHO.total_max is not None and YKHO.counter > YKHO.total_max", "def Qcnk(CHNM, X3mS, wZYD, qIxc):\n xCWN = qIxc.setdefault('max_evaluations', len(CHNM))\n return wZYD >= xCWN", "def EBdA():\n if PtQX([1, 2, 3]) == 3:\n c4v3 = True\n print('Congrats!, first sub...
[ "0.6958613", "0.65232986", "0.644045", "0.6379273", "0.63630545", "0.63624084", "0.6307385", "0.62758017", "0.6267249", "0.6261489", "0.62117016", "0.6198984", "0.6130319", "0.6120931", "0.6086946", "0.60665566", "0.5955923", "0.594338", "0.59216315", "0.59101915", "0.5888205...
0.68479806
1
Return an inspyred mutator function based on the given function. This function generator takes a function that operates on only one candidate to produce a single mutated candidate. The generator handles the iteration over each candidate in the set to be mutated.
def KGIK(r3Zb): @xBlr.wraps(r3Zb) def kYnk(tuKI, kbGe, qIxc): ZD6r = [] for YRbF, gtI8 in enumerate(kbGe): ZD6r.append(r3Zb(tuKI, gtI8, qIxc)) return ZD6r kYnk.single_mutation = r3Zb return kYnk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rPtM(JfyU):\n\n @zaGL(JfyU)\n def _gRY(YKHO, *qIxc, **B2fa):\n YKHO.mutate()\n return _gRY.__wrapped__(YKHO, *qIxc, **B2fa)\n _gRY.__wrapped__ = JfyU\n return _gRY", "def c2Yh(JfyU):\n\n @FYKK\n @zaGL(JfyU)\n def eK5b(*qIxc, **B2fa):\n return iNkJ(JfyU(*qIxc, **B2fa)...
[ "0.5899329", "0.574317", "0.569271", "0.5662341", "0.5625317", "0.561668", "0.55707294", "0.55707294", "0.55707294", "0.55707294", "0.55707294", "0.55707294", "0.55707294", "0.5563718", "0.555099", "0.55231255", "0.5520418", "0.55102414", "0.5508387", "0.55058813", "0.5483143...
0.68156064
0
Returns the neighbors using a star topology. This function sets all particles as neighbors for all other particles. This is known as a star topology. The resulting list of lists of neighbors is returned.
def oBGc(tuKI, CHNM, qIxc): for bGrB in range(len(CHNM)): yield CHNM[:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A_IW(Q6kx, zLC2):\n return [exwG for exwG in zLC2[Q6kx]]", "def qIRx(YKHO):\n return []", "def A_IW(YKHO) -> x1iM['Node']:\n YKHO._load_neighbors()\n return [D70y.source if D70y.source != YKHO else D70y.target for D70y in YKHO._neighbors.values()]", "def BTfj(YKHO):\n return [AAbN for AAbN...
[ "0.7332176", "0.6481409", "0.6427175", "0.6426885", "0.6409326", "0.6407098", "0.63992095", "0.6388319", "0.6386848", "0.63844997", "0.63525826", "0.63211983", "0.6242472", "0.62375045", "0.62321514", "0.620606", "0.61932236", "0.61932236", "0.61932236", "0.61932236", "0.6159...
0.0
-1
Returns the neighbors using a ring topology. This function sets all particles in a specified sized neighborhood as neighbors for a given particle. This is known as a ring topology. The resulting list of lists of neighbors is returned.
def Yos7(tuKI, CHNM, qIxc): ovH2 = qIxc.setdefault('neighborhood_size', 3) ccbJ = ovH2 // 2 YQRo = [] for d6pt in range(len(CHNM)): if d6pt < ccbJ: YQRo.append(len(CHNM) - ccbJ + d6pt) else: YQRo.append(d6pt - ccbJ) A_IW = [] for yKcO in YQRo: exwG...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A_IW(Q6kx, zLC2):\n return [exwG for exwG in zLC2[Q6kx]]", "def sCyY(zNig, AU8u):\n YRbF, r845 = AU8u\n A_IW = [(YRbF - 1, r845), (YRbF + 1, r845), (YRbF, r845 - 1), (YRbF, r845 + 1)]\n HPe0 = lambda AAbN: all((0 <= WKvO < zNig for WKvO in AAbN))\n A_IW = list(filter(HPe0, A_IW))\n return A...
[ "0.699807", "0.6864225", "0.6389402", "0.63735", "0.6339805", "0.62892646", "0.6280005", "0.6278137", "0.6221659", "0.62207574", "0.62198806", "0.6209953", "0.6209953", "0.6209953", "0.6209953", "0.61716914", "0.6136785", "0.6130306", "0.6111617", "0.61060625", "0.6099525", ...
0.66711277
2
Return the number of constraints that candidate violates.
def Djcf(SkC9): if SkC9[0] ** 2 + SkC9[1] ** 2 > 1: return 1 else: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kur2(YKHO):\n return len(YKHO.constraints)", "def IzRx(YKHO):\n RuMJ = 0\n for oVM8 in YKHO.constraints:\n if oVM8.satisfied(oVM8.tail.value, oVM8.head.value):\n RuMJ += 1\n return RuMJ", "def gCke(YKHO):\n return oyIN.sum(YKHO._no_of_constraints_by_object())", "def c6GO(...
[ "0.76880556", "0.760202", "0.7501228", "0.73207724", "0.7030049", "0.70090544", "0.6870931", "0.64724267", "0.6409413", "0.6318883", "0.63022226", "0.6286983", "0.61978734", "0.6193231", "0.61387074", "0.61330813", "0.61330813", "0.61164117", "0.60837233", "0.60837233", "0.60...
0.0
-1
get the sign of a number
def Zihr(exwG): return (exwG > 0) - (exwG < 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zihr(mLGw: float):\n return 1 if mLGw >= 0 else -1", "def Zihr(WKvO):\n if WKvO >= 0:\n return 1\n else:\n return -1", "def Zihr(WKvO):\n if WKvO >= 0:\n return 1\n return -1", "def Zihr(exwG: float) -> int:\n return 1 if exwG > 0 else -1", "def VGrK(YKHO, FGW3):\...
[ "0.84514207", "0.79649866", "0.7890495", "0.78804296", "0.7856162", "0.7720991", "0.75752825", "0.74736726", "0.7368184", "0.73457", "0.7156251", "0.7015637", "0.6891703", "0.68902284", "0.68553257", "0.6550094", "0.6453952", "0.6432561", "0.6397442", "0.6375982", "0.6375404"...
0.7818496
5
Recursive product with an iterable >>> prodri( iter([1,2,3,4,5,6,7]) ) 5040
def SfUd(OxJJ): try: sdCG = next(OxJJ) except StopIteration: return 1 return sdCG * SfUd(OxJJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lx3t(WhY1):\n QRFO = 1\n for WKvO in WhY1:\n QRFO *= WKvO\n return QRFO", "def Lx3t(OxJJ):\n QRFO = 1\n for YRbF in OxJJ:\n QRFO *= YRbF\n return QRFO", "def QRFO(OxJJ):\n return Pusg(seET.mul, OxJJ, 1)", "def QRFO(OxJJ):\n return Pusg(seET.mul, OxJJ, 1)", "def QRF...
[ "0.76065856", "0.7599433", "0.7559788", "0.7559788", "0.7559788", "0.7552357", "0.74883544", "0.6990066", "0.69723904", "0.69003946", "0.6856784", "0.6856248", "0.685256", "0.6814677", "0.66982377", "0.65767187", "0.65740263", "0.6569931", "0.65299594", "0.6524031", "0.647151...
0.77514243
0
Generates both the player's position randomly such that they are not in collision with the obstacle
def tTEz(): global obstacles SCLJ = vkJL - rVGQ.get_height() QOxj = qukk(zMH2 - rVGQ.get_width()) KcSv.rect.left, KcSv.rect.top = (QOxj, SCLJ) while a9eO.sprite.spritecollide(KcSv, rM81, False): QOxj = qukk(zMH2 - rVGQ.get_width()) KcSv.rect.left = QOxj SCLJ = 0 QOxj = qukk(z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fdkf(EmUK, lsmZ, oyg0):\n dQgj = [0, 0]\n SGVO = False\n while not SGVO:\n dQgj[0] = ajWY(0, len(EmUK) - 1)\n dQgj[1] = ajWY(0, len(EmUK) - 1)\n if EmUK[dQgj[0]][dQgj[1]] == lsmZ:\n SGVO = True\n EmUK[dQgj[0]][dQgj[1]] = oyg0\n return dQgj", "def X8CE(YK...
[ "0.72164774", "0.70396125", "0.68947154", "0.6859447", "0.67187166", "0.6655429", "0.664563", "0.6538025", "0.6535365", "0.6508721", "0.65051126", "0.65032417", "0.64932895", "0.64702535", "0.64650077", "0.64307606", "0.63987446", "0.6383692", "0.63556176", "0.63420504", "0.6...
0.83153445
0
Decorates the `__get__()` method of a descriptor to turn the it into a binding descriptor, which returns an unbound attribute whenever accessed from the containing class instead of from an instance.
def nA5M(NMoC): @zaGL(NMoC) def xtUD(QoB4, KAOR, qsJ6=None): if KAOR is None: return QoB4.__get__ else: return NMoC(QoB4, KAOR, qsJ6) return xtUD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cmqT(YKHO):\n try:\n return getattr(YKHO, jVyU)\n except AttributeError:\n raise AttributeError(\"'{}' object has no attribute '{}'\".format(Y2hm(kN9s), hkS8))", "def xtUD(YKHO, p4_k, qsJ6):\n if p4_k is None:\n return YKHO\n\n def NKcE(*qIxc, **B2fa):\n return YKHO.ha...
[ "0.60898376", "0.6047647", "0.5957599", "0.59229624", "0.58224416", "0.580687", "0.5800031", "0.5750781", "0.57396215", "0.57100946", "0.5706919", "0.5693913", "0.5634734", "0.56057006", "0.5591216", "0.5491851", "0.5425707", "0.5385313", "0.5372444", "0.53650784", "0.5347163...
0.76170903
0
Asks user to specify a city, month, and day to analyze.
def RxGd(): j5sA = '' x0eS = '' CjKC = '' YRbF = 0 v9Lt = 'yes' eFRe = False AFrA = False print("Hello! Let's explore some US bikeshare data!") while j5sA not in OerS: j5sA = input('Please choose the city you want to explore! Choose between (Chicago - New York city - Washingt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)", "def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit...
[ "0.66714007", "0.65354675", "0.64593667", "0.6374057", "0.6348314", "0.63097656", "0.62868035", "0.6259136", "0.62316", "0.62130964", "0.62050414", "0.6181105", "0.6171822", "0.61686903", "0.6158568", "0.61582303", "0.61532456", "0.61444426", "0.6131269", "0.610484", "0.61025...
0.0
-1
Loads data for the specified city and filters by month and day if applicable.
def UlWi(j5sA, x0eS, CjKC): while x0eS != '': Ux0P = OerS[j5sA] jQ3Z = rLdf.read_csv(Ux0P) jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month try: jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =...
[ "0.81320685", "0.8108889", "0.8045821", "0.8042514", "0.80090284", "0.80071104", "0.79991937", "0.7998333", "0.7988789", "0.797905", "0.79737365", "0.79610896", "0.7956163", "0.7947432", "0.79463065", "0.7908287", "0.7908229", "0.7904569", "0.7900715", "0.78930074", "0.788921...
0.0
-1
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): QOe9 = X_bn[jQ3Z['month'].mode()[0]] print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() print('\nThe most common month of travel is {}'.format(X_bn[jQ3Z['month'].mode()[0]])) print('\nThe most common day of travel is {}'.format(jQ3Z['day_of_week'].mode()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ...
[ "0.80247396", "0.80233026", "0.7915788", "0.78266186", "0.7822246", "0.78143597", "0.77659196", "0.7740343", "0.773628", "0.77344066", "0.76867086", "0.7668633", "0.7651731", "0.7644636", "0.76399267", "0.76367253", "0.7625196", "0.7623158", "0.7612803", "0.76002145", "0.7583...
0.7483016
35
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() print('\nThe most commonly used start station is: ', jQ3Z['Start Station'].mode()[0]) print('\nThe most commonly used End station is: ', jQ3Z['End Station'].mode()[0]) jQ3Z['Station Combination'] = '\nF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(nPrm):\n print('\\nCalculating The M...
[ "0.7815675", "0.7662213", "0.7553417", "0.74914914", "0.74748665", "0.7446617", "0.7428588", "0.74237514", "0.74177027", "0.7400495", "0.7387161", "0.7385634", "0.73647535", "0.735934", "0.73566747", "0.73548365", "0.7351854", "0.7351274", "0.735057", "0.73421645", "0.7340198...
0.7140461
56
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() print('\nTotal Travel time =', qcWV.timedelta(seconds=int(jQ3Z['Trip Duration'].sum()))) print('\nMean Travel time =', qcWV.timedelta(seconds=jQ3Z['Trip Duration'].mean())) print('\nThis took %s seconds.' % (ITS7.time() - S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr...
[ "0.814274", "0.8025143", "0.80041367", "0.79496753", "0.7937415", "0.79312176", "0.7926815", "0.7915187", "0.79142886", "0.7908032", "0.79055744", "0.7900715", "0.7891682", "0.78894734", "0.7886722", "0.78851086", "0.7884266", "0.7882474", "0.78738385", "0.78686154", "0.78664...
0.77135193
68
Given a sequence like "the cat slept", returns a consecutive sequence of words & corresponding data.
def FmaH(jTdJ): J58H = oyIN.hstack([[0], oyIN.where(jTdJ['word'][1:] != jTdJ['word'][:-1])[0] + 1]) RZAy = ' '.join(jTdJ['word'][J58H]).replace('$', '').strip() if len(J58H) <= 3: return (jTdJ, RZAy) iktp, JPtZ = (-1, -1) while iktp <= JPtZ or iktp - JPtZ < 2 or (iktp - JPtZ < 3 and (JPtZ ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nCPL(l5Ny, NXmX, YPaw):\n jWe2 = []\n Crrw = []\n for YRbF in range(0, len(l5Ny) - NXmX, YPaw):\n jWe2.append(l5Ny[YRbF:YRbF + NXmX])\n Crrw.append(l5Ny[YRbF + NXmX])\n return (jWe2, Crrw)", "def NmWg(GIN8):\n aWuw = str()\n WsCK = bool()\n aDOx = bool()\n GIN8 = GIN8.lo...
[ "0.6496729", "0.59615755", "0.5920084", "0.58905035", "0.57816243", "0.57769203", "0.5610558", "0.5596787", "0.5568636", "0.5568294", "0.5562042", "0.554696", "0.55381775", "0.5525043", "0.5518096", "0.5484196", "0.5482894", "0.5473901", "0.5469157", "0.546708", "0.5456908", ...
0.0
-1
Creates a context with an open SQLAlchemy session.
def ouvA(): eHpk = O4xW() UzPC = eHpk.connect() ouvA = oCsa(FJ3D(autocommit=False, autoflush=True, bind=eHpk)) yield ouvA ouvA.close() UzPC.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def STFk(YKHO) -> N3_l[DMju]:\n cuiw = YKHO._Session()\n try:\n yield cuiw\n cuiw.commit()\n except eHJZ:\n cuiw.rollback()\n raise\n finally:\n cuiw.close()", "def nx2i(JfyU):\n\n def h3Xc(*qIxc, **B2fa):\n YKHO = qIxc[0]\n with YKHO._create_db_ses...
[ "0.7091904", "0.7077166", "0.7059174", "0.70035", "0.68487376", "0.6820748", "0.6756059", "0.674851", "0.67420226", "0.67399", "0.67313755", "0.6715202", "0.67071086", "0.66829187", "0.66743994", "0.66691864", "0.6664774", "0.6658964", "0.658326", "0.65668786", "0.6556565", ...
0.6696005
13
Whether this symbol is a function
def rVKq(YKHO): return YKHO.type == 'STT_FUNC'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVKq(YKHO):\n return False", "def CKBl(object):\n return isinstance(object, SnBA.FunctionType)", "def mYgE(YKHO):\n return _VfD.ASTNode_isCSymbolFunction(YKHO)", "def rVKq(YKHO):\n zFiD = YKHO.line.strip()\n if zFiD.startswith('fu'):\n if zFiD.startswith('function') is False:\n ...
[ "0.76650476", "0.76534337", "0.7551693", "0.7549486", "0.75053996", "0.74058247", "0.73679864", "0.7334828", "0.7171973", "0.71688074", "0.7163859", "0.6951308", "0.6933153", "0.6928426", "0.69211733", "0.6793649", "0.6778523", "0.66848606", "0.66556233", "0.6598789", "0.6573...
0.82395965
0
parse string to number if possible e.g. "123" => 123 "12.2" => 12.3 "abc" => "abc" "$var" => "$var"
def K18e(Myez: Text) -> ImMB: try: return jZ4I.literal_eval(Myez) except ValueError: return Myez except SyntaxError: return Myez
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oNf4(YKHO, str):\n if str.count('.') == 0:\n return int(str)\n if str.count('.') == 1:\n return float(str)\n return str", "def eZZ1(KCHu):\n if type(KCHu).__name__ == 'str':\n KCHu = KCHu.strip()\n if KCHu == '-':\n KCHu = 0\n else:\n KCHu ...
[ "0.7947508", "0.7452889", "0.7320762", "0.7170755", "0.7130158", "0.712436", "0.7076404", "0.70752305", "0.70732933", "0.7069421", "0.7003231", "0.69658357", "0.6948489", "0.68844414", "0.6848807", "0.68331605", "0.6778646", "0.6730626", "0.67176664", "0.6676476", "0.66641223...
0.0
-1
test if an error is raised bescause user's already exists
def xHBd(YKHO): mv1M.objects.create_user(YKHO.data) x0hE = i9zE() x0hE.post('/register/', YKHO.data) YKHO.assertRaisesMessage(ValueError, 'user already exists')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jjss(tO9_):\n if 'Error' in tO9_:\n raise ValueError('User already exists.')", "def yX6T(YKHO):\n YKHO.register_user()\n Aofo = YKHO.client().post(G5z9.registration, data=YKHO.user)\n p2I7 = qQXR.loads(Aofo.data.decode())\n YKHO.assertEqual(Aofo.status_code, 409)\n YKHO.assertEqual(p...
[ "0.7891834", "0.7502146", "0.747177", "0.7348039", "0.7288836", "0.7278826", "0.7259907", "0.71137196", "0.7024067", "0.7021013", "0.6953002", "0.69374716", "0.68948555", "0.68641317", "0.6791628", "0.6772556", "0.67675877", "0.6758929", "0.67550194", "0.6746676", "0.671716",...
0.75366026
1
Closes the connection to the mud.
def DDI8(YKHO): if YKHO.connected: YKHO.con.close() YKHO._close() else: raise cAM_(UAju['NotConnectedYet'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO):\n YKHO._connection.close()", "def DDI8(YKHO):\n YKHO.connection.close()", "def DDI8(YKHO):\n with YKHO.connlock:\n YKHO.conn.do_close()", "def DDI8(YKHO):\n YKHO.__connection.close()", "async def close(YKHO):\n await YKHO._connection.close()", "def ngVb(YKHO):\n Y...
[ "0.71155745", "0.70898485", "0.7078498", "0.70474046", "0.6996102", "0.69850695", "0.6978653", "0.6978653", "0.6978653", "0.6978653", "0.6978653", "0.6978653", "0.6978653", "0.6968377", "0.6957211", "0.69460243", "0.69324905", "0.69320387", "0.6928942", "0.6907357", "0.690321...
0.6846822
24
Compute the area of the polygon, upto 6 sides.
def ZrLT(LyOL, **B2fa): if not isinstance(LyOL, int): raise ValueError('Positional argument `side_length` must be an integer') if not B2fa: raise ValueError('Missing keyword arguments!') else: if 'sides' not in B2fa: raise ValueError('Missing keyword argument `sides`') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n if len(YKHO.exterior) < 3:\n raise Exception(\"Cannot compute the polygon's area because it contains less than three points.\")\n _g9D = YKHO.to_shapely_polygon()\n return _g9D.area", "def f0tD(YKHO):\n f0tD = 0\n for abiq in YKHO.rooms:\n f0tD += abiq.polygon.area(...
[ "0.8274093", "0.80719155", "0.8024979", "0.7826404", "0.7769608", "0.7759761", "0.75311214", "0.7508029", "0.74880326", "0.74532646", "0.74513847", "0.7451332", "0.7416935", "0.7415009", "0.7414074", "0.7380425", "0.73610014", "0.73607177", "0.7331812", "0.7328357", "0.731230...
0.7400229
15
Scatter plot colored (and optionally sorted) by density.
def o7U4(WKvO: ArrayLike | str, LVAh: ArrayLike | str, jQ3Z: pd.DataFrame | None=None, aNZO: plt.Axes | None=None, BA9O: bool=True, J_xf: bool=True, Rq1b: int=100, VoLU: str | None=None, IICq: str | None=None, _E99: bool=True, eQSh: bool | dict[str, Any]=True, **B2fa: Any) -> QrM1.Axes: if not isinstance(eQSh, (boo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o7U4(WKvO, LVAh, XTHG, Zbrt, aNZO=None, BA9O=True, Pyrc=20, jk7u=(4, 12), rTQi=(4, 12)):\n dobJ = oyIN.where(oyIN.isnan(WKvO)) + oyIN.where(oyIN.isnan(LVAh))\n WKvO = WKvO[~oyIN.isin(oyIN.arange(WKvO.size), dobJ)]\n LVAh = LVAh[~oyIN.isin(oyIN.arange(LVAh.size), dobJ)]\n if aNZO is None:\n L...
[ "0.7580087", "0.6841208", "0.6805754", "0.6266967", "0.6250015", "0.6014909", "0.5944461", "0.5887009", "0.5806752", "0.57651573", "0.574919", "0.57455814", "0.57039154", "0.56870073", "0.56746507", "0.5653176", "0.5634566", "0.56332177", "0.5631015", "0.5620232", "0.55804455...
0.7039963
1
r"""Plot targets on the xaxis vs residuals (y_err = y_true y_pred) on the yaxis.
def RDHB(Y8eF: ArrayLike | str, aMgO: ArrayLike | str, jQ3Z: pd.DataFrame | None=None, aNZO: plt.Axes | None=None, VoLU: str='Actual value', IICq: str='Residual ($y_\\mathrm{true} - y_\\mathrm{pred}$)', **B2fa: Any) -> QrM1.Axes: Y8eF, aMgO = NDH4(jQ3Z, Y8eF, aMgO) assert isinstance(Y8eF, oyIN.ndarray) asse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IFwg(x6A0, N6Z1, Ux0P):\n LZpg, aNZO = QrM1.subplots()\n LZpg.suptitle(str(x6A0.shape[0]) + ' samples, Residual Plot', fontsize=12)\n ed_d = x6A0 - N6Z1\n MPlV = QrM1.gca()\n MPlV.set_ylim(oyIN.min(ed_d), oyIN.max(ed_d))\n MPlV.set_xlim(oyIN.min(N6Z1), oyIN.max(N6Z1))\n aNZO.scatter(N6Z1, ...
[ "0.7442949", "0.7084865", "0.66364", "0.6546609", "0.6514092", "0.65077156", "0.64263046", "0.6384985", "0.63701236", "0.635427", "0.6341082", "0.63369775", "0.6327903", "0.63161445", "0.62817305", "0.62722707", "0.62722707", "0.62607723", "0.6215634", "0.618986", "0.61602473...
0.63102204
14
find the KL divergence loss between P and Q
def PlVk(V6IE, T8ck): assert V6IE.size() == T8ck.size() T8ck = T8ck + 1e-15 return ht2j.sum(V6IE * ht2j.log(V6IE / T8ck))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PlVk(V6IE, T8ck):\n _hZ2 = 1e-05\n V6IE = V6IE + _hZ2\n T8ck = T8ck + _hZ2\n scUA = oyIN.sum(V6IE * oyIN.log(V6IE / T8ck))\n return scUA", "def Qll2(XP5J, qTZE, vexM):\n for vhpA in [XP5J, qTZE, vexM]:\n if not vhpA.dtype.is_floating:\n raise ValueError('Input %s must be f...
[ "0.8112003", "0.7791337", "0.7695158", "0.7655455", "0.76393193", "0.75874823", "0.7579889", "0.75225097", "0.75201464", "0.74268115", "0.7346678", "0.7286397", "0.72329456", "0.7137074", "0.71358126", "0.71203804", "0.707886", "0.70347136", "0.70031315", "0.7000409", "0.6945...
0.70162994
18
Only keep `name` and `homepage` keys.
def U_K0(vwZ4: dict) -> dict: return {bGrB: vwZ4[bGrB] for bGrB in ('name', 'home-page')}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _pXd(YEnM: Dict[Any, Any]) -> cuzp[ImMB, ImMB]:\n return {G1Hx: Ty9i for G1Hx, Ty9i in YEnM.items() if not G1Hx.startswith('__')}", "def NI8o(nPrm: Dict):\n Qla2 = ['title', 'published_at', 'identifier']\n for H5ew in list(nPrm):\n if H5ew not in Qla2:\n nPrm.pop(H5ew)", "def H0s...
[ "0.57457364", "0.5717312", "0.5613688", "0.55435693", "0.5485916", "0.54287857", "0.53698766", "0.52679604", "0.5230988", "0.5159908", "0.50734746", "0.5000754", "0.49602306", "0.49581036", "0.49547997", "0.49144703", "0.49006462", "0.4885446", "0.4870702", "0.48694193", "0.4...
0.69399047
0
Sets the name of this RegisterFields.
def mWFP(YKHO, mWFP): if YKHO.local_vars_configuration.client_side_validation and mWFP is None: raise ValueError('Invalid value for `name`, must not be `None`') if YKHO.local_vars_configuration.client_side_validation and mWFP is not None and (len(mWFP) > 128): raise ValueError('Invalid value for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO, mWFP):\n YKHO._set_field('name', mWFP)", "def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP", "def WZrJ(YKHO, XWXe):\n YKHO.name = XWXe", "d...
[ "0.7709194", "0.7506048", "0.7401514", "0.7392196", "0.7392196", "0.7386344", "0.73674613", "0.73674613", "0.73674613", "0.73674613", "0.73674613", "0.735745", "0.73238796", "0.73130083", "0.7304306", "0.7282761", "0.72386724", "0.72036904", "0.72036904", "0.71974397", "0.719...
0.0
-1
Sets the nip of this RegisterFields.
def UDeX(YKHO, UDeX): if YKHO.local_vars_configuration.client_side_validation and UDeX is None: raise ValueError('Invalid value for `nip`, must not be `None`') if YKHO.local_vars_configuration.client_side_validation and UDeX is not None and (len(UDeX) > 16): raise ValueError('Invalid value for `...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MAOm(YRbF, exwG=8):\n global NID, ppn\n dr8x = exwG\n assert j20d is None, 'Attempting to call set_NID() more than once'\n tO9_ = 'NID (%s) must be an even multiple of # processors per node (%s)'\n assert YRbF % dr8x == 0, tO9_ % (YRbF, dr8x)\n j20d = YRbF", "def w44q(YKHO, w44q):\n YKHO...
[ "0.5865628", "0.5856925", "0.571393", "0.5704942", "0.56599027", "0.56599027", "0.56169444", "0.5576257", "0.5523248", "0.53943455", "0.53746486", "0.53405327", "0.53255564", "0.5280542", "0.52710307", "0.5229604", "0.5228709", "0.52253324", "0.52112794", "0.51913846", "0.518...
0.6697168
0
Sets the krsedg of this RegisterFields.
def UhjY(YKHO, UhjY): if YKHO.local_vars_configuration.client_side_validation and UhjY is not None and (len(UhjY) > 32): raise ValueError('Invalid value for `krsedg`, length must be less than or equal to `32`') YKHO._krsedg = UhjY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uaou(YKHO, Uaou):\n YKHO.logger.debug(\"In 'gallbladder' setter.\")\n YKHO._gallbladder = Uaou", "def Cpky(YKHO, SRYB, wEf2):\n YKHO.rpc.call(OMwV.CoreSetG, [SRYB, wEf2])", "def sQ2w(YKHO, aQA5):\n YKHO.dcmgnd = aQA5", "def hkKw(YKHO, hkKw):\n YKHO._rfid_origin_dg = hkKw", "def D5ln(YKHO...
[ "0.5297589", "0.5247048", "0.52103674", "0.513815", "0.510941", "0.49439088", "0.49180603", "0.48912662", "0.48312798", "0.48275292", "0.4824642", "0.4804914", "0.4799177", "0.4770441", "0.47488332", "0.47471485", "0.47410426", "0.46904555", "0.46886435", "0.46713415", "0.467...
0.72962093
0
Sets the address_city of this RegisterFields.
def jyUy(YKHO, jyUy): if YKHO.local_vars_configuration.client_side_validation and jyUy is None: raise ValueError('Invalid value for `address_city`, must not be `None`') if YKHO.local_vars_configuration.client_side_validation and jyUy is not None and (len(jyUy) > 64): raise ValueError('Invalid va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hiRY(YKHO, BWXx):\n super(Sh63, YKHO)._set_input('City', BWXx)", "def j5sA(YKHO, j5sA):\n YKHO._city = j5sA", "def j5sA(YKHO, j5sA):\n YKHO._city = j5sA", "def j5sA(YKHO, j5sA):\n YKHO._city = j5sA", "def j5sA(YKHO, j5sA):\n YKHO._city = j5sA", "def j5sA(YKHO, j5sA):\n YKHO._city = ...
[ "0.7651331", "0.69357413", "0.6892848", "0.6892848", "0.6892848", "0.6892848", "0.6892848", "0.6892848", "0.6892848", "0.6892848", "0.6892848", "0.66883856", "0.6384777", "0.6207537", "0.6195283", "0.6131134", "0.6065059", "0.5989517", "0.59117293", "0.58410776", "0.57797337"...
0.75672567
1
Sets the address_code of this RegisterFields.
def fs5H(YKHO, fs5H): if YKHO.local_vars_configuration.client_side_validation and fs5H is None: raise ValueError('Invalid value for `address_code`, must not be `None`') if YKHO.local_vars_configuration.client_side_validation and fs5H is not None and (len(fs5H) > 10): raise ValueError('Invalid va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ce3W(YKHO, UTX6):\n pass", "def vEcJ(YKHO, BWXx):\n super(Sh63, YKHO)._set_input('PostalCode', BWXx)", "def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ", "def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ", "def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ", "def Wxnj(YKHO, Wxnj):\n ...
[ "0.6666516", "0.652473", "0.6446803", "0.6446803", "0.6446803", "0.6321607", "0.6218594", "0.61759424", "0.60994095", "0.60922766", "0.60736084", "0.60736084", "0.60736084", "0.60736084", "0.60736084", "0.60736084", "0.60736084", "0.60736084", "0.60672474", "0.60660565", "0.6...
0.73309183
0
Sets the create_api of this RegisterFields.
def n4E9(YKHO, n4E9): YKHO._create_api = n4E9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cukN(vC92, **B2fa):\n if B2fa.get('created') is True:\n t10t.objects.create(user=B2fa.get('instance'))", "def n4E9(YKHO, av29: str, EQvT: str, cF0k: str, UoBZ: str=None, AHoS: str=None, _38q: bool=None, moxu: str=None) -> cuzp:\n pass", "def WRPA(YKHO):\n YKHO.implicit_api_logical_id = h2eW...
[ "0.58077115", "0.5772339", "0.57648736", "0.57556206", "0.546506", "0.5433217", "0.54209805", "0.53228396", "0.52858615", "0.52246904", "0.5195222", "0.5192759", "0.51685935", "0.5120898", "0.509295", "0.49907872", "0.49826452", "0.49825454", "0.49605042", "0.49364546", "0.49...
0.79738724
0
Sets the api_password of this RegisterFields.
def qYP0(YKHO, qYP0): if YKHO.local_vars_configuration.client_side_validation and qYP0 is None: raise ValueError('Invalid value for `api_password`, must not be `None`') if YKHO.local_vars_configuration.client_side_validation and qYP0 is not None and (len(qYP0) > 40): raise ValueError('Invalid va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gz4m(YKHO, gz4m):\n YKHO._auth_password = gz4m", "def G3s8(YKHO, jTXt):\n YKHO.authentication.password = jTXt", "def G3s8(YKHO, jTXt):\n YKHO.PASSWORD = jTXt", "def IJvu(YKHO, BWXx):\n YKHO.PDFreactorConfiguration.in1['userPassword'] = BWXx", "def m_qJ(YKHO, jTXt):\n YKHO._password = vT8...
[ "0.66908455", "0.6476591", "0.6449306", "0.6437026", "0.6432204", "0.64194953", "0.6352782", "0.6337416", "0.6300637", "0.6300637", "0.6300637", "0.6300637", "0.6300428", "0.626471", "0.626471", "0.6259784", "0.62399966", "0.6238826", "0.6221495", "0.62172556", "0.62159806", ...
0.76354295
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, Hzw0): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, Hzw0): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Input n>=6, Returns a list of primes, 2 <= p < n
def oHDU(exwG): i0Uw = exwG % 6 > 1 exwG = {0: exwG, 1: exwG - 1, 2: exwG + 4, 3: exwG + 3, 4: exwG + 2, 5: exwG + 1}[exwG % 6] KwQv = [True] * (exwG / 3) KwQv[0] = False for YRbF in Ni9Y(int(exwG ** 0.5) / 3 + 1): if KwQv[YRbF]: G1Hx = 3 * YRbF + 1 | 1 KwQv[G1Hx * G1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DwOa(exwG):\n return list(uVDW(exwG))", "def kAOJ(exwG):\n uED7 = []\n for YRbF in range(2, exwG):\n if T1qg(YRbF):\n uED7.append(YRbF)\n return uED7", "def _a2T(exwG):\n JscZ = []\n for YRbF in range(exwG):\n if T1qg(YRbF):\n JscZ.append(YRbF)\n ret...
[ "0.85413843", "0.84438545", "0.84063387", "0.8358301", "0.82609856", "0.8234336", "0.8213978", "0.82113606", "0.82060546", "0.8170585", "0.81014943", "0.8003272", "0.7959604", "0.79537195", "0.79436857", "0.7939605", "0.78893626", "0.78684366", "0.78684366", "0.78623396", "0....
0.773269
26
Finds the next prime in primelist larger than n
def UtWo(exwG, YXNf): if YXNf is None: YXNf = oHDU(exwG) return YXNf[eEIR(YXNf, exwG)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hHKe(exwG):\n return (r845 for YRbF, r845 in enumerate(k954()) if YRbF == exwG - 1).next()", "def XtR7(exwG):\n return next(uOgj(DzI6(), exwG - 1, None), None)", "def qviP(YKHO, ywwl):\n rPed = YKHO.primes\n WUSu = rPed[-1] + 1\n while len(rPed) < ywwl:\n PtQX = WUSu * WUSu\n f...
[ "0.8037094", "0.80067563", "0.79834205", "0.79641604", "0.7864188", "0.7800047", "0.7722714", "0.7718171", "0.75503916", "0.7536423", "0.7525545", "0.75176424", "0.75039595", "0.74502414", "0.7449788", "0.73468775", "0.72875965", "0.72629374", "0.7237506", "0.72345126", "0.72...
0.8521558
0
Inclusive datetime beginning of range (first moment in).
def tSyO(YKHO): return YKHO._inc_begin
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yKcO(YKHO):\n return tGN_.range_t_start(YKHO)", "def yKcO(YKHO):\n return tGN_.meta_range_t_start(YKHO)", "def Ewfl(yKcO: int) -> FYrf.IndefiniteRange:\n return FYrf.IndefiniteRange(value=yKcO - 1, comparator='<=', type='IndefiniteRange')", "def EKFi(YKHO):\n yKcO = YKHO.data.get('start').spl...
[ "0.6449627", "0.6411848", "0.63219756", "0.62515324", "0.6106339", "0.60154736", "0.60089624", "0.6003135", "0.59873074", "0.5983188", "0.59673136", "0.5925746", "0.5907553", "0.5897209", "0.5885647", "0.58458304", "0.5827929", "0.58247167", "0.5812998", "0.5807696", "0.58029...
0.0
-1
Inclusive datetime end of range (last moment in).
def zJEB(YKHO): return YKHO._exc_end - gjzt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Os4s(YKHO) -> qcWV:\n return YKHO._end", "def Os4s(YKHO, Os4s):\n if Os4s is not None:\n if not isinstance(Os4s, qcWV):\n raise TypeError('Invalid type for `end`, type has to be `datetime`')\n YKHO._end = Os4s", "def j6Bz(YKHO):\n if YKHO.enddate:\n vgXP = qcWV.timedelt...
[ "0.6738059", "0.65454054", "0.653473", "0.6514087", "0.6332052", "0.62996036", "0.6280622", "0.62601197", "0.6259415", "0.6207147", "0.62043035", "0.62035835", "0.6150026", "0.6144536", "0.61209285", "0.6117827", "0.60855216", "0.60418415", "0.6038448", "0.6036076", "0.601524...
0.0
-1
Exclusive datetime end of range (first moment after).
def jiua(YKHO): return YKHO._exc_end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Os4s(YKHO, Os4s):\n if Os4s is not None:\n if not isinstance(Os4s, qcWV):\n raise TypeError('Invalid type for `end`, type has to be `datetime`')\n YKHO._end = Os4s", "def Os4s(YKHO) -> qcWV:\n return YKHO._end", "def gwzH(YEnM):\n if YEnM.end_date is None:\n return\n ...
[ "0.6699334", "0.66721815", "0.6425855", "0.63313067", "0.63001466", "0.6294652", "0.62772286", "0.62500423", "0.6155483", "0.6103599", "0.6064913", "0.6049992", "0.6025492", "0.6018145", "0.6015735", "0.6004263", "0.59891444", "0.5983742", "0.59602684", "0.592305", "0.5905501...
0.0
-1
create dictionary based on formula given
def hjiW(l9Ur='', dGrG=oyIN.NaN, InLe=oyIN.NaN, p9bx='ENDF_VIII'): QM2x = ZbWC.findall('([A-Z][a-z]*)(\\d*)', l9Ur) g7sA = {} p1O0 = [] LENj = [] for rcW9 in QM2x: [_mBB, _7o_] = list(rcW9) if not wWDV(element=_mBB, database=p9bx): raise ValueError('element {} not found i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BIEs(Emd4, l9Ur: str) -> dict[str, int]:\n try:\n s2mk = Emd4._formula.parseString(l9Ur)\n except kOMj.ParseException as exc:\n raise ValueError(f'Could not parse: {l9Ur!r}, error: {BQDi.msg}, error at char {BQDi.loc}') from None\n if 'unary_op' in s2mk:\n khtY = s2mk.pop(0)\n ...
[ "0.6438855", "0.60169065", "0.5960932", "0.5859141", "0.583369", "0.58026433", "0.57903683", "0.5777682", "0.576174", "0.57131696", "0.5679617", "0.56772053", "0.560847", "0.560521", "0.56010145", "0.55801684", "0.5553955", "0.55515456", "0.5544396", "0.55387676", "0.55292076...
0.658051
0
return the density (g.cm3) of the element
def MSMZ(U6D_): return Xf84.elements.isotope(U6D_).density
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def InLe(YKHO):\n return YKHO.get_density()", "def M92e(YKHO):\n return YKHO._density_kg_m3 / 1000.0", "def InLe(YKHO):\n return YKHO.__density", "def InLe(YKHO):\n return YKHO.__density", "def InLe(YKHO):\n return YKHO.__density", "def wYgR(YKHO):\n return YKHO.electron_density * 10000...
[ "0.7589724", "0.7573091", "0.7519295", "0.7519295", "0.7519295", "0.7415925", "0.7310231", "0.723882", "0.72067434", "0.71935934", "0.71438974", "0.71274835", "0.7078725", "0.69930124", "0.69501007", "0.6662576", "0.664713", "0.6632854", "0.66200966", "0.66179603", "0.6486457...
0.77611524
0
return the interpolated x and y axis for the given x range [E_min, E_max] with step defined
def PDwz(jQ3Z=[], f2jo=oyIN.NaN, PFp6=oyIN.NaN, iexP=oyIN.NaN): Lw0x = (PFp6 - f2jo) / iexP jQ3Z = jQ3Z.reset_index(drop=True) PPHi = oyIN.linspace(f2jo, PFp6, Lw0x) Th_7 = vldj(x=jQ3Z['E_eV'], y=jQ3Z['Sig_b'], kind='linear') HmAy = Th_7(PPHi) return {'x_axis': PPHi, 'y_axis': HmAy}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NGQK(BQGg, bYzl, RA_F=0.05, RKD7=False):\n OFEz = min(BQGg, bYzl)\n XrgA = max(BQGg, bYzl)\n import math\n if Viqq(OFEz, XrgA):\n return (math.floor(OFEz - 0.1), math.ceil(XrgA + 0.1))\n if tE8u(OFEz - 0.5) and tE8u(OFEz + 0.5):\n return (math.floor(OFEz - 0.1), math.ceil(XrgA + 0....
[ "0.58194965", "0.5796217", "0.57760465", "0.5742764", "0.571837", "0.57161224", "0.5663599", "0.55366814", "0.5443032", "0.54369795", "0.5396692", "0.53905815", "0.5388902", "0.538024", "0.53755546", "0.5372901", "0.5335529", "0.53277266", "0.5315367", "0.52724695", "0.524886...
0.7221659
0
convert into lambda from the energy array
def HdGo(GSd6=[]): djQQ = GSd6 * 1000 ztZp = oyIN.sqrt(81.787 / djQQ) return ztZp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s4uc(YKHO, WKvO):\n return -Kt_s.dot(Kt_s.transpose(WKvO), Kt_s.dot(YKHO.W, WKvO)) - Kt_s.dot(Kt_s.transpose(YKHO.b), WKvO)", "def m2Zb(YKHO):\n vtMg = 5 * oyIN.sin(2 * oyIN.pi * YKHO.x_array)\n return 3 * oyIN.pi * oyIN.exp(-vtMg)", "def wOBg(w4rS):\n MKlR = 6.2 * 10 ** (-34)\n Z9rn = 29979...
[ "0.65815353", "0.63888586", "0.6364471", "0.6298795", "0.60196996", "0.59137785", "0.5831157", "0.58037996", "0.5792658", "0.5792658", "0.5786205", "0.573432", "0.57070535", "0.5704296", "0.5675678", "0.5661071", "0.56513244", "0.5650119", "0.5634636", "0.56302124", "0.558009...
0.85084826
0
Create a ``Hardsigmoid`` module.
def FIMM(YKHO, LpaZ=False): super(ddyI, YKHO).__init__() YKHO.inplace = LpaZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BxpZ(Emd4, vWye, g4y1, bwrw):\n Cwt5 = vWye.getattr('alpha', 0.2)\n UqYS = vWye.getattr('beta', 0.5)\n bGrB, KVH6 = Emd4._common_onnx_node_to_singa_op(vWye, g4y1, bwrw)\n return (bGrB, KVH6(Cwt5, UqYS))", "def BxpZ(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\...
[ "0.7416955", "0.73930794", "0.72880834", "0.667573", "0.66707754", "0.65585554", "0.623439", "0.58852416", "0.5839309", "0.5833664", "0.58197224", "0.5728852", "0.5709927", "0.5704215", "0.5704215", "0.57001173", "0.5692615", "0.568344", "0.56792986", "0.5668869", "0.56523585...
0.57768434
11
Create a ``Sigmoid`` module.
def FIMM(YKHO, LpaZ=False): super(siRN, YKHO).__init__() YKHO.inplace = LpaZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vAno(Q6kx, **B2fa):\n return PZJO('Sigmoid', Q6kx, B2fa)", "def m1Hg(yR_P, WKvO):\n vTlj()\n if yR_P in [oyIN, fHeP]:\n return H4yH.special.sigmoid(WKvO)\n elif yR_P == ht2j:\n return yR_P.sigmoid(WKvO)\n elif yR_P == oLG2:\n return yOcR.nn.sigmoid(WKvO)\n elif yR_P == ...
[ "0.73525035", "0.72924227", "0.6972096", "0.68352455", "0.6780676", "0.67110586", "0.66815704", "0.65463454", "0.6464417", "0.6463697", "0.6420661", "0.6414392", "0.6414392", "0.6407477", "0.640187", "0.63773626", "0.63773626", "0.63590384", "0.6355498", "0.6347501", "0.63252...
0.58533573
85
Create a ``Softmax`` module.
def FIMM(YKHO, tpio, LpaZ=False): super(lMfz, YKHO).__init__() YKHO.dim = tpio YKHO.inplace = LpaZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(yR_P, WKvO, jDK_=None):\n vTlj()\n if yR_P in [oyIN, fHeP]:\n return H4yH.special.softmax(WKvO, axis=jDK_)\n elif yR_P == ht2j:\n return yR_P.nn.functional.softmax(WKvO, dim=jDK_)\n elif yR_P == oLG2:\n return yOcR.nn.softmax(WKvO, axis=jDK_)\n elif yR_P == ZylS:\n ...
[ "0.6897564", "0.67357105", "0.6596676", "0.6556684", "0.6374694", "0.6256345", "0.61956096", "0.6157063", "0.6145981", "0.6084458", "0.60542923", "0.6045682", "0.60230285", "0.59699494", "0.59426063", "0.590255", "0.5850743", "0.582771", "0.58272976", "0.5817536", "0.5785041"...
0.58883315
16
Return the QoS policy Id of a port that is being created/updated Return the QoS policy assigned directly to the port (after update or originally), or the policy of the network, if it is a compute port that should inherit it.
def W4WQ(YKHO, QpfX, _Orl, Rx2B): C9yT = False if _Orl: C9yT = _Orl.get('device_owner', '').startswith(uwaB.DEVICE_OWNER_COMPUTE_PREFIX) FPZA = Rx2B.get('device_owner', '').startswith(uwaB.DEVICE_OWNER_COMPUTE_PREFIX) chAD = FPZA and (not C9yT) jwbm = None if TBAW.QOS_POLICY_ID in Rx2B: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ulWc(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'policy_id')", "def ulWc(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'policy_id')", "def ulWc(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'policy_id')", "def mUlj(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.ge...
[ "0.5770068", "0.5762775", "0.571495", "0.56987125", "0.5663792", "0.56397825", "0.5631886", "0.5612986", "0.55695003", "0.5552621", "0.5552621", "0.555043", "0.55413365", "0.5460963", "0.5460963", "0.5454186", "0.5398242", "0.53619325", "0.53444576", "0.53444576", "0.53248936...
0.821569
0
Sets the payment_holds of this Payment.
def kI0e(YKHO, kI0e): YKHO._payment_holds = kI0e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XGoe(YKHO, XGoe):\n YKHO._holds = XGoe", "def p2oi(YKHO, p2oi):\n YKHO._bills = p2oi", "def BaqK(YKHO, sYY8):\n YKHO.paid = YKHO._get_paid()\n YKHO.share = round(YKHO.paid / ZjSO(sYY8), 2)", "def mqTD(YKHO, mqTD):\n YKHO._onsite_payments = mqTD", "def Sl0I(YKHO, Sl0I):\n YKHO._pay_rol...
[ "0.66051483", "0.5282388", "0.5123398", "0.49883637", "0.4970497", "0.49344748", "0.49249256", "0.48853365", "0.4821813", "0.48059687", "0.4785118", "0.47141185", "0.46996123", "0.4663364", "0.46221453", "0.462151", "0.46103117", "0.46103117", "0.45891073", "0.45327556", "0.4...
0.9005802
0
Sets the payment_method of this Payment.
def iO9T(YKHO, iO9T): YKHO._payment_method = iO9T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nuop(YKHO, Nuop):\n YKHO._payment_method_enum = Nuop", "def bUCE(YKHO, bUCE):\n YKHO._payment_type = bUCE", "def Ywmj(YKHO, Ywmj):\n YKHO._payment_date = Ywmj", "def Ywmj(YKHO, Ywmj):\n YKHO._payment_date = Ywmj", "def Xz7c(YKHO, NKcE):\n YKHO.__set('method', NKcE)", "def q0JL(YKHO, q0...
[ "0.7435351", "0.68702346", "0.61693656", "0.61693656", "0.6158854", "0.6120407", "0.6081163", "0.60164744", "0.59533834", "0.5940646", "0.56684315", "0.56375104", "0.56295013", "0.558102", "0.55654424", "0.55408925", "0.55190665", "0.54321104", "0.5409764", "0.5227823", "0.51...
0.8651521
0
Sets the payment_reference_id of this Payment.
def tQ1p(YKHO, tQ1p): YKHO._payment_reference_id = tQ1p
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jS4s(YKHO, OSJW):\n YKHO.reference_id = OSJW", "def q0JL(YKHO, q0JL):\n YKHO._payment_id = q0JL", "def OSJW(YKHO, OSJW):\n YKHO._reference_id = OSJW", "def PkcJ(YKHO, PkcJ):\n YKHO._reference_number = PkcJ", "def WPeW(YKHO, WPeW):\n YKHO._payment_type_id = WPeW", "def aC0l(YKHO, aC0l):...
[ "0.72737056", "0.70639056", "0.6997522", "0.5994073", "0.58336467", "0.57651675", "0.57651675", "0.5742397", "0.57342", "0.57259613", "0.5600892", "0.5600892", "0.55861217", "0.5528435", "0.5508361", "0.5470026", "0.54667014", "0.53517276", "0.53295517", "0.5326318", "0.52689...
0.8816966
0
Sets the payment_status of this Payment.
def R2ET(YKHO, R2ET): YKHO._payment_status = R2ET
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IWn3(rpdr):\n tuJS(rpdr)\n A4BG = nNXP.get_payment_by_id(rpdr.gateway_payment_id)\n GUeu(rpdr, A4BG)", "def IWn3(YKHO):\n Wh0A = SSCD.query.filter_by(invoice_id=YKHO.id).all()\n wjRY = 0.0\n for rpdr in Wh0A:\n wjRY += float(rpdr.amount)\n if wjRY >= YKHO.total:\n YKHO.paym...
[ "0.66182643", "0.650321", "0.6380238", "0.6360035", "0.63200504", "0.630407", "0.6279144", "0.6279144", "0.6279144", "0.60252833", "0.6020388", "0.59772515", "0.59245986", "0.59225494", "0.58907974", "0.58851737", "0.5883288", "0.5861886", "0.5836898", "0.5819311", "0.5807506...
0.88526183
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, SSCD): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Creates a linear expression of current integral binary variables. Current dependency cuts are only sound when this expression is satisfied so the cuts are added in conjuction with the expression.
def USKk(RA_F, p6Zb): LJE9 = GEVx() for YRbF in range(len(CzSN.lmodel.layers)): vC9B = CzSN.lmodel.layers[YRbF] if vC9B.activation == nyS_.relu: Csk6 = RA_F[YRbF] aY6a = p6Zb[YRbF] for r845 in range(len(Csk6)): if aY6a[r845] == 0 and (not CzSN....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hPO2(Ty9i):\n oug5 = wZLS('h_{}'.format(Ty9i), SeVW)\n T8H5, Np5D = OiLT[Ty9i]\n q7In.assertions.add(JHwn(oug5, wA5j(Np5D)))\n q7In.assertions.add(IFyZ(oug5, wA5j(T8H5)))\n return oug5", "def jfwN(YKHO):\n return dKc3(fYzP).dot(YKHO.circular)", "def z8o0(YKHO, EcVT):\n return EcVT", ...
[ "0.5798423", "0.534226", "0.53385556", "0.5323671", "0.52748454", "0.52675945", "0.52139914", "0.5201853", "0.5176351", "0.51704633", "0.51448435", "0.51392025", "0.5135146", "0.5120408", "0.5111654", "0.50896144", "0.5069765", "0.50565547", "0.5054382", "0.5016118", "0.49927...
0.0
-1
Returns the next action the agent will take
def bk5W(YKHO, QTBn): if 'actionIndex' not in dir(YKHO): YKHO.actionIndex = 0 if YKHO.actionIndex == 0: YKHO.actions = YKHO.spreadOutAndFindDot(QTBn) if len(YKHO.actions) == 1: return YKHO.actions[0] else: YKHO.actionIndex += 1 return YKHO.acti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XeOP(YKHO):\n HUMG = YKHO.strategy.get_next_move(YKHO)\n return HUMG", "def mq_y(YKHO):\n P6bq = YKHO.plan.pop(0)\n return P6bq", "def mq_y(YKHO):\n eUNT = None\n while eUNT is None:\n Acvy = input('Action: ')\n eUNT = d5fj.get(Acvy)\n return eUNT", "def next(YKHO, QTBn...
[ "0.8337207", "0.79425484", "0.79240257", "0.75870395", "0.7547049", "0.73340666", "0.73014915", "0.7267236", "0.7194915", "0.71547794", "0.71327364", "0.7079289", "0.70439297", "0.69918877", "0.6959046", "0.6955211", "0.69239324", "0.69239324", "0.6898673", "0.6885382", "0.68...
0.0
-1
Verifies an image array is valid. An image should consist of a 2D array, 11x11. Each array element is again an arry, containing a valid colour (see valid_color()).
def A0To(YKHO, LNo8): deVW = False if isinstance(LNo8, list) and len(LNo8) == 11: deVW = True for rdlD in LNo8: if isinstance(rdlD, list) and len(rdlD) == 11: for e3Fk in rdlD: if not YKHO.valid_color(e3Fk): deVW = False ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aO7N(pmON):\n pGHf = False\n with B9Vf.Env():\n try:\n __n6 = B9Vf.open(pmON)\n except Exception as e:\n G9jH.error('Could not open dataset', tTpl)\n return False\n if __n6.count != qIxc.bands:\n G9jH.error(f'There is not the required numbe...
[ "0.69907063", "0.6628675", "0.65698457", "0.654781", "0.6223626", "0.6212039", "0.6194003", "0.6153692", "0.61125004", "0.6109303", "0.60833055", "0.6073538", "0.6056568", "0.60472417", "0.6038874", "0.60378206", "0.5935475", "0.5934053", "0.591937", "0.589891", "0.5895801", ...
0.79637307
0
Grab filename of a file inside a specific directory that has a specific file extension
def SJOK(pmON, Fst3, jRxN=False): LDI8 = [] for knSv in Hy7s.listdir(pmON): if knSv.endswith(Fst3): LDI8.append(knSv) if len(LDI8) == 0: return LDI8 elif len(LDI8) == 1: return LDI8[0] elif jRxN: return True else: while True: RRlC =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R4uK(eHKs, Fst3):\n return SC2F.glob(Hy7s.path.join(eHKs, '*{}'.format(Fst3)))[0].replace('\\\\', '/').split('/')[-1]", "def bjyF(AGPF, CBZq):\n for Ux0P in Hy7s.listdir(AGPF):\n if Ux0P.endswith(CBZq):\n return '{}/{}'.format(AGPF, Ux0P)\n return None", "def l6_A(gIsw):\n d6p...
[ "0.8159145", "0.7833061", "0.76203996", "0.7513476", "0.74889696", "0.7435228", "0.74166095", "0.7396118", "0.73533046", "0.72493005", "0.7237454", "0.7231785", "0.7219062", "0.72186875", "0.72172874", "0.72098106", "0.72052807", "0.71939605", "0.717696", "0.71744823", "0.717...
0.0
-1
Sets the asset of this BalanceSheetResponse.
def IbHI(YKHO, IbHI): YKHO._asset = IbHI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def StRP(YKHO, IbHI, N850, E3oo):\n return YKHO.asset_id(IbHI.asset_id).fold().coalesce(IaaG.unfold().choose(IaaG.values('first_seen').is_(V6IE.gt(E3oo)), IaaG.property(xwZK.single, 'first_seen', E3oo), IaaG.identity()).choose(IaaG.values('last_seen').is_(V6IE.lt(E3oo)), IaaG.property(xwZK.single, 'last_seen', ...
[ "0.56663287", "0.5655941", "0.5442714", "0.5317689", "0.5245131", "0.5146978", "0.5071249", "0.5071249", "0.49653563", "0.49569318", "0.49485067", "0.4905685", "0.4860848", "0.4860848", "0.48567066", "0.48478153", "0.4792268", "0.4753543", "0.47104928", "0.4710258", "0.470983...
0.6991855
0
Sets the liability of this BalanceSheetResponse.
def GRcn(YKHO, GRcn): YKHO._liability = GRcn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iOK7(YKHO, iOK7):\n YKHO._liability_account = iOK7", "def xStG(YKHO, xStG):\n YKHO._reliability = xStG", "def jCB4(YKHO, Br4M, VIXL):\n for mWFP, a70H in Br4M.items():\n if YKHO.name != mWFP:\n 'if owed is greater than what I have paid then add to liabilities'\n yk4i =...
[ "0.7148366", "0.50299805", "0.47544593", "0.47082624", "0.46826044", "0.46816212", "0.46490225", "0.46420383", "0.4620017", "0.460696", "0.45473304", "0.45454252", "0.45278692", "0.45130315", "0.44984996", "0.44908172", "0.4476904", "0.4476904", "0.4476904", "0.44643736", "0....
0.80835104
0
Provides acl_user acquisition wrapped owner of object
def b7sg(YEnM): k79V, PObu = YEnM.getOwnerTuple() tk5Y = YEnM.getPhysicalRoot() k79V = tk5Y.unrestrictedTraverse(k79V, None) if k79V is None: CBIr = tZ6n.nobody else: CBIr = k79V.getUserById(PObu, None) if CBIr is None: CBIr = tZ6n.nobody else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CBIr(YKHO):\n return YKHO.owner.user", "def Fqw8(YKHO, YEnM):\n return YEnM.user.username", "def CBIr(YKHO):\n if YKHO._user is None:\n _sei, eHMM = YKHO.owner.split(',')\n _sei = int(_sei)\n YKHO._user = mv1M.objects.get(pk=_sei)\n return YKHO._user", "def gCH0(YKHO):\n ...
[ "0.7301267", "0.7274408", "0.69771713", "0.68102026", "0.6794391", "0.6782739", "0.6782739", "0.6782739", "0.6782659", "0.6730782", "0.66899914", "0.66899914", "0.66899914", "0.66899914", "0.66899914", "0.6631292", "0.6580809", "0.6556197", "0.6535707", "0.6496461", "0.649646...
0.7049495
2
Get the size of an IP range between two IP addresses
def ZbTL(wR2I, bqSJ, W4ky): try: nErJ = QMSQ(wR2I) BsVz = QMSQ(bqSJ) X5_H = QMSQ(W4ky) except NameError as ex: nErJ = str(wR2I) BsVz = str(bqSJ) X5_H = str(W4ky) try: uWPg = OSeg(nErJ) NkFh = PXto(BsVz) zBvx = PXto(X5_H) if NkFh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cAau(NGL3, Ork6):\n return min(NGL3[1], Ork6[1]) - max(NGL3[0], Ork6[0])", "def X8Lz(XT48: 'RangeSet', k98A: int=1 << 32) -> int:\n pSb_ = k98A - len(XT48)\n print(f'part 2: there are total {pSb_} allowed IPs')\n return pSb_", "def PYM_(i30y, A1Fh):\n yKcO = list(map(int, i30y.split('.')))\n...
[ "0.75239325", "0.70771736", "0.64909214", "0.6339636", "0.6309138", "0.6297126", "0.62068313", "0.59807116", "0.59765637", "0.5971388", "0.5944476", "0.59031457", "0.5833933", "0.58259654", "0.57977855", "0.57947385", "0.57709235", "0.57447606", "0.5684807", "0.5605645", "0.5...
0.7326709
1
Contracts the edge between node1 and node2 of a graph. All modifications are done inplace, i.e., the input graph is mutated to the output graph. Thus, there is no explicit output value returned.
def S6d5(pNZh, i4Va, rUTj): pNZh[i4Va].extend(pNZh.pop(rUTj)) for Q6kx in pNZh: for or8S, D70y in enumerate(pNZh[Q6kx]): if D70y == rUTj: pNZh[Q6kx][or8S] = i4Va [pNZh[i4Va].remove(D70y) for D70y in list(pNZh[i4Va]) if D70y == i4Va]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, i4Va: Node, rUTj: Node):\n YKHO.__add_edge(i4Va, rUTj)\n YKHO.__add_edge(rUTj, i4Va)", "def RQFX(YKHO, i4Va, rUTj):\n assert i4Va in YKHO.nodes, 'No node ' + str(i4Va) + ' in graph ' + str(YKHO)\n assert rUTj in YKHO.nodes, 'No node ' + str(rUTj) + ' in graph ' + str(YKHO)\n RdSW = ...
[ "0.658597", "0.6477135", "0.6426503", "0.63824064", "0.6347948", "0.6332721", "0.6221025", "0.6212467", "0.62078524", "0.6173099", "0.6151804", "0.6148558", "0.61477923", "0.6089226", "0.6059773", "0.60320055", "0.60186476", "0.60104877", "0.597998", "0.5961898", "0.5883053",...
0.76296526
0
Constructor for JSONEncoder, with sensible defaults. If skipkeys is False, then it is a TypeError to attempt encoding of keys that are not str, int, long, float or None. If skipkeys is True, such items are simply skipped. If ensure_ascii is True, the output is guaranteed to be str objects with all incoming unicode char...
def FIMM(YKHO, W1FA=False, X7g_=True, zIQ5=True, gZeu=True, u2qj=False, MnRD=None, Kwd0=None, tZ2K='utf-8'): YKHO.skipkeys = W1FA YKHO.ensure_ascii = X7g_ YKHO.check_circular = zIQ5 YKHO.allow_nan = gZeu YKHO.sort_keys = u2qj YKHO.indent = MnRD YKHO.current_indent_level = 0 if Kwd0 is no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PjZe(YEnM, W1FA=False, X7g_=True, zIQ5=True, gZeu=True, Emd4=None, MnRD=None, Kwd0=None, tZ2K='utf-8', WmM4=None, u2qj=False, **YSA3):\n if not W1FA and X7g_ and zIQ5 and gZeu and (Emd4 is None) and (MnRD is None) and (Kwd0 is None) and (tZ2K == 'utf-8') and (WmM4 is None) and (not u2qj) and (not YSA3):\n ...
[ "0.78486615", "0.76752955", "0.6866837", "0.64836866", "0.6204258", "0.61003757", "0.59813267", "0.5967136", "0.5928099", "0.5913954", "0.57838464", "0.57742614", "0.5734574", "0.5651326", "0.5651072", "0.5629727", "0.5607927", "0.5601313", "0.5587081", "0.5578469", "0.555265...
0.68341976
3
Return the Python representation of ``s`` (a ``str`` or ``unicode`` instance containing a JSON document)
def x8I_(YKHO, KCHu, VzLM=d1zo.match): YEnM, Os4s = YKHO.raw_decode(KCHu, idx=VzLM(KCHu, 0).end()) Os4s = VzLM(KCHu, Os4s).end() if Os4s != len(KCHu): raise ValueError(jMN5('Extra data', KCHu, Os4s, len(KCHu))) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vmDR(KCHu):\n return qQXR.dumps(KCHu.as_dict())", "def Jjk4(KCHu):\n return jnRN(KCHu.as_dict(), safe=False)", "def nMY2(Rf_J: Union[Dict[str, Any], Input, str]) -> str:\n if type(Rf_J) is dict:\n Rf_J = qQXR.dumps(Rf_J)\n elif type(Rf_J) is X6a0:\n Rf_J = qQXR.dumps(Rf_J.__dict__...
[ "0.7389219", "0.650332", "0.6420524", "0.63189644", "0.63189644", "0.63189644", "0.63189644", "0.63189644", "0.63189644", "0.63189644", "0.63189644", "0.63189644", "0.63189644", "0.63189644", "0.63189644", "0.63189644", "0.63189644", "0.63189644", "0.63189644", "0.63189644", ...
0.0
-1
Deserialize ``fp`` (a ``.read()``supporting filelike object containing a JSON document) to a Python object. If the contents of ``fp`` is encoded with an ASCII based encoding other than utf8 (e.g. latin1), then an appropriate ``encoding`` name must be specified. Encodings that are not ASCII based (such as UCS2) are not ...
def tyeH(ytgA, tZ2K=None, Emd4=None, lv0E=None, **YSA3): return _1kr(ytgA.read(), encoding=tZ2K, cls=Emd4, object_hook=lv0E, **YSA3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(ytgA, tZ2K=None, Emd4=None, lv0E=None, KMaT=None, OZOv=None, kBDt=None, IKkc=None, **YSA3):\n return _1kr(ytgA.read(), encoding=tZ2K, cls=Emd4, object_hook=lv0E, parse_float=KMaT, parse_int=OZOv, parse_constant=kBDt, object_pairs_hook=IKkc, **YSA3)", "def _1kr(KCHu, tZ2K=None, Emd4=None, lv0E=None, *...
[ "0.75355", "0.6528654", "0.6524313", "0.6424895", "0.6363184", "0.6089399", "0.607569", "0.58753705", "0.5839447", "0.5839447", "0.5831649", "0.5749229", "0.5743833", "0.5696048", "0.56695485", "0.562944", "0.5596189", "0.55291873", "0.5513738", "0.5509332", "0.54805064", "...
0.766229
0
Deserialize ``s`` (a ``str`` or ``unicode`` instance containing a JSON document) to a Python object. If ``s`` is a ``str`` instance and is encoded with an ASCII based encoding other than utf8 (e.g. latin1) then an appropriate ``encoding`` name must be specified. Encodings that are not ASCII based (such as UCS2) are not...
def _1kr(KCHu, tZ2K=None, Emd4=None, lv0E=None, **YSA3): if Emd4 is None and tZ2K is None and (lv0E is None) and (not YSA3): return jANs.decode(KCHu) if Emd4 is None: Emd4 = mnJA if lv0E is not None: YSA3['object_hook'] = lv0E return Emd4(encoding=tZ2K, **YSA3).decode(KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _1kr(KCHu, tZ2K=None, Emd4=None, lv0E=None, KMaT=None, OZOv=None, kBDt=None, IKkc=None, **YSA3):\n if Emd4 is None and tZ2K is None and (lv0E is None) and (OZOv is None) and (KMaT is None) and (kBDt is None) and (IKkc is None) and (not YSA3):\n return jANs.decode(KCHu)\n if Emd4 is None:\n ...
[ "0.808103", "0.5960895", "0.5956469", "0.58589184", "0.57529974", "0.56702185", "0.56604004", "0.5645725", "0.5613678", "0.5505644", "0.5437702", "0.5422464", "0.54089415", "0.53521883", "0.5340952", "0.5320991", "0.53008944", "0.5278458", "0.5232494", "0.5173803", "0.5162433...
0.8434584
0
Action generation method. This is a required method that generates list of actions corresponding to the list of units.
def Lkpi(YKHO, Ortv, rNYq, a5M_, EvQg, yQ9I=None): if EvQg == True: _hZ2 = YKHO.epsilon_by_frame(a5M_) if tuKI.random() > _hZ2: QTBn = rNYq QTBn = ht2j.FloatTensor(oyIN.float32(QTBn)) QTBn = QTBn.to(YKHO.device).unsqueeze(0).unsqueeze(0) U89Q = YKHO.cu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mdhT(YKHO) -> list:\n pass", "def KXAp(YKHO):\n XeOP = 0\n for vC9B in range(YKHO.u0_n):\n for r8hN in range(YKHO.u1_n):\n P6bq = oyIN.array([YKHO.ud[0][vC9B], YKHO.ud[1][r8hN]])\n YKHO.actions_input[XeOP, :] = P6bq\n YKHO.actions_index[XeOP, :] = oyIN.array([...
[ "0.78039974", "0.6599961", "0.6583888", "0.6550404", "0.6318069", "0.6303104", "0.62136245", "0.6202786", "0.6168279", "0.6121591", "0.6121242", "0.6101409", "0.6096415", "0.6063816", "0.59970564", "0.5992893", "0.5979426", "0.5932875", "0.5930897", "0.5893786", "0.58743036",...
0.6241119
6
Asserts that a schema section is returned successfully.
def ebf7(Ehsq) -> None: Ehsq.setattr(POek, 'SWAGGER_TESTER', {'PATH': LLvQ}) Ehsq.setattr('django_swagger_tester.static_schema.loader.LoadStaticSchema.get_schema', uWOz) fogW = [{'url': '/api/v1/cars/correct/', 'expected': {'title': 'Success', 'type': 'array', 'items': {'title': 'Success', 'type': 'object',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y2aK(YKHO):\n j4jS = YKHO.ar[2009][11]\n Q7IT = j4jS['general']\n YKHO.assertTrue(isinstance(Q7IT, qXpg.AwstatsSection))", "def twZu(YKHO):\n Ylbp = YKHO.client().post('/api/v1/sections/', headers={'Content-Type': 'application/json'}, data=qQXR.dumps(YKHO.section))\n yg5e = YKHO.client().get('...
[ "0.63375217", "0.6236801", "0.6043724", "0.60129607", "0.59968656", "0.59787166", "0.59246194", "0.5907567", "0.5836429", "0.5791745", "0.57532513", "0.5714468", "0.56544596", "0.5636282", "0.563355", "0.5622975", "0.5606759", "0.55755216", "0.5552246", "0.55517346", "0.55316...
0.0
-1
Asserts that a schema section is returned successfully.
def M1bc(Ehsq) -> None: Ehsq.setattr(POek, 'SWAGGER_TESTER', {'PATH': LLvQ}) Ehsq.setattr('django_swagger_tester.static_schema.loader.LoadStaticSchema.get_schema', uWOz) for bD7m in ['/api/v1/cars/incorrect/', '/api/v1/trucks/incorrect/']: P8oC = Rymz(bD7m, 'get', status_code=200) P8oC.get_r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y2aK(YKHO):\n j4jS = YKHO.ar[2009][11]\n Q7IT = j4jS['general']\n YKHO.assertTrue(isinstance(Q7IT, qXpg.AwstatsSection))", "def twZu(YKHO):\n Ylbp = YKHO.client().post('/api/v1/sections/', headers={'Content-Type': 'application/json'}, data=qQXR.dumps(YKHO.section))\n yg5e = YKHO.client().get('...
[ "0.63362134", "0.6236526", "0.60436726", "0.6013245", "0.59971094", "0.5977459", "0.59233713", "0.5907124", "0.5835508", "0.5790342", "0.575346", "0.5713936", "0.5652794", "0.5636672", "0.56332076", "0.56219596", "0.5605913", "0.55726606", "0.5552061", "0.55516595", "0.553086...
0.0
-1
Asserts that the right exception is raised when an endpoint is not documented in the schema.
def aPzA(Ehsq) -> None: Ehsq.setattr(POek, 'SWAGGER_TESTER', {'PATH': LLvQ}) Ehsq.setattr('django_swagger_tester.static_schema.loader.LoadStaticSchema.get_schema', hZ9i) with trZe.raises(ValueError, match='Could not resolve path'): Rymz('apsi/v1/trucks/correct', 'get', status_code=200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WRli(YKHO):\n assert 'raise_on_invalid' not in YKHO.route.route\n assert YKHO.route.raise_on_invalid().route['raise_on_invalid']", "def dFbQ(*qIxc):\n ha51(nzHN, *qIxc)", "def CAYl(YKHO, xBfd):\n XP5J = xBfd()\n XP5J.schema = {'type': 'bad_schema'}\n nPrm = {'foo': 'bar'}\n with trZe.r...
[ "0.66290885", "0.6589994", "0.6465615", "0.64435554", "0.64254934", "0.63481367", "0.6320499", "0.61972", "0.61816716", "0.6179937", "0.61683005", "0.6147189", "0.61388695", "0.61040753", "0.609478", "0.6084303", "0.60668993", "0.6025201", "0.6018969", "0.6005042", "0.5989284...
0.5578484
99
Tests if the maximum is in the end of the list
def yYcf(YKHO): yv6U = [1, 5, 98] YKHO.assertEqual(qOmX(yv6U), 98)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lNt2(YKHO):\n YKHO.assertEqual(qOmX([5, 3, 4, 8]), 8)", "def bWsl(YKHO):\n return YKHO.total_max is not None and YKHO.counter > YKHO.total_max", "def KXFz(yv6U, bQ6z):\n if len(yv6U) == 0:\n return bQ6z\n elif yv6U[0] > bQ6z:\n bQ6z = yv6U[0]\n return KXFz(yv6U[1:], bQ6z)", "...
[ "0.71259797", "0.67548877", "0.6693627", "0.66736656", "0.65468043", "0.64953953", "0.6486684", "0.64616114", "0.63404614", "0.6324984", "0.6286272", "0.628014", "0.6240216", "0.62391406", "0.621565", "0.61904174", "0.61837685", "0.6183155", "0.6154539", "0.61475307", "0.6130...
0.67132455
2
Test for a list containing equal positive numbers
def k7xg(YKHO): yv6U = [98, 98, 98] YKHO.assertEqual(qOmX(yv6U), 98)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def waS5(bCES):\n for jzdc in bCES:\n if jzdc != 0:\n return True\n return False", "def qljQ(vC9B):\n return any([XP5J > 0 for XP5J in vC9B])", "def nDQC(jzdc):\n cHk7 = 0\n for tTpl in jzdc:\n if tTpl >= 0:\n cHk7 += 1\n if cHk7 > 1:\n ...
[ "0.73180497", "0.7258623", "0.71384597", "0.68535435", "0.65990275", "0.6504538", "0.6499228", "0.6464319", "0.6455612", "0.6447883", "0.6402161", "0.63938046", "0.63630766", "0.6358199", "0.6354805", "0.634186", "0.63348347", "0.63304996", "0.6330068", "0.63282305", "0.63254...
0.61451536
31
Test for a list containing equal negative numbers
def EuTm(YKHO): yv6U = [-98, -98, -98] YKHO.assertEqual(qOmX(yv6U), -98)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def waS5(bCES):\n for jzdc in bCES:\n if jzdc != 0:\n return True\n return False", "def qljQ(vC9B):\n return any([XP5J > 0 for XP5J in vC9B])", "def kFpI(YKHO):\n ByKH = [-1, -2, -3, -4, -5]\n YKHO.assertEqual(qOmX(ByKH), -1)", "def hqOc(YKHO):\n list = [-3, -8, 10, 9]\n ...
[ "0.7076897", "0.7064754", "0.68930846", "0.6874181", "0.6748502", "0.67405194", "0.66181076", "0.6546811", "0.6488424", "0.64318657", "0.6418424", "0.6365974", "0.63108015", "0.6272018", "0.626679", "0.6247835", "0.6206056", "0.6201767", "0.6188527", "0.6161763", "0.61460274"...
0.73772514
0
Given a listlike object, divide into training, dev, and test sets.
def P3W6(aWuw, Xh_l, lNuz, igb0=None): if igb0: tuKI.seed(igb0) if Xh_l > 1 or Xh_l < 0 or lNuz > 1 or (lNuz < 0): raise ValueError('train and dev fractions must be between 0 and 1!') if Xh_l + lNuz > 1: raise ValueError("sum of train and dev fractions can't be greater than 1!") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P3W6(hst7, ugUs=(0.8, 0.1, 0.1), yokr=2018):\n zBu_, wMj5, NI2E = ugUs\n EvQg, jbXL = bHtP(hst7, random_state=yokr, train_size=zBu_)\n M4N3, QOe9 = bHtP(jbXL, random_state=yokr, test_size=NI2E / (NI2E + wMj5))\n if isinstance(EvQg, rLdf.DataFrame) and isinstance(M4N3, rLdf.DataFrame) and isinstance...
[ "0.76097775", "0.67750794", "0.66856766", "0.66627574", "0.65703756", "0.65089947", "0.64809936", "0.6321968", "0.62032795", "0.61771846", "0.61729765", "0.61183095", "0.6111564", "0.60862833", "0.6072344", "0.6064078", "0.60625905", "0.604864", "0.60336804", "0.60042447", "0...
0.6033994
18
Strip "Data", etc. off the end to get the name of the parent table to this data table
def Tunz(YKHO): for ZI14 in YKHO.SUFFIXES: if YKHO.table.endswith(ZI14): return YKHO.table[:-len(ZI14)] raise ValueError('{} does not match any of the known suffixes for a data table'.format(YKHO.table))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FWZi(YKHO):\n if YKHO.parent_table() == 'SupplyEfficiency':\n return 'id'\n rkAB = YKHO.parent_col\n if rkAB.endswith('tech_id') or rkAB.endswith('node_id') or rkAB.endswith('technology_id') or (rkAB == 'subsector_id'):\n return rkAB\n return 'id'", "def k9X4(YKHO):\n bGrB, J3uN ...
[ "0.6307871", "0.6136946", "0.61235917", "0.60738796", "0.59629494", "0.5932281", "0.5929961", "0.5915642", "0.5902401", "0.5889462", "0.578498", "0.57787806", "0.5777392", "0.57764745", "0.5773203", "0.5773203", "0.5773203", "0.5769027", "0.57683986", "0.57663757", "0.5722591...
0.7856414
0
Returns the last integer found in a string (1 if none)
def JqI1(KCHu: str): qw7D = ZbWC.findall('[0-9]+', KCHu) if qw7D.__len__() is 0: return -1 return int(qw7D[-1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H5zA(YKHO, KCHu):\n uZq5 = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '.'}\n YRbF = 0\n Ekwh = True\n while Ekwh:\n if KCHu[YRbF] in uZq5:\n YRbF += 1\n else:\n Ekwh = False\n if YRbF >= len(KCHu):\n Ekwh = False\n return YRbF", ...
[ "0.6896008", "0.6872279", "0.65133303", "0.64869636", "0.6372288", "0.63218755", "0.62476844", "0.6202068", "0.6181913", "0.6166645", "0.61248183", "0.61079323", "0.61073995", "0.6087945", "0.6053075", "0.6051329", "0.60404825", "0.6020991", "0.6010801", "0.59993106", "0.5983...
0.83541495
0
In this function we initialize the parameters using the prior. The variance of the weights depends on the prior !!
def Q0Ko(YKHO): for YRbF in range(YKHO.num_layers): getattr(YKHO, 'LSTMCell%i' % (YRbF + 1)).reset_parameters()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X8Xp(YKHO):\n nIVP = 1.0 / epAf.sqrt(YKHO.weight.data.size(1))\n YKHO.weight.data.uniform_(-nIVP, nIVP)\n if YKHO.bias is not None:\n YKHO.bias.data.uniform_(-nIVP, nIVP)", "def sIHF(YKHO):\n DbxN = TPe2(YKHO.w_init)\n if YKHO.w_gain:\n mb4J = U78l.init.calculate_gain('relu')\n ...
[ "0.7803075", "0.725282", "0.72102064", "0.71267134", "0.70833135", "0.7010625", "0.700099", "0.6907211", "0.68955886", "0.6876174", "0.6856942", "0.6856942", "0.6856793", "0.6827381", "0.67992646", "0.6798266", "0.6796257", "0.67947084", "0.6790654", "0.67878944", "0.6777694"...
0.0
-1
Mock of sphinx' pathto() just for the homepage. Otherwise we cannot reuse our sphinx templates.
def _B42(*qIxc): return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dHnS(YKHO):\n YKHO.assertTemplateUsed(YKHO.response, 'index.html')", "def UAhr(YKHO):\n P4t4 = T4WH(YKHO.source_dir, YKHO.config_dir, YKHO.output_dir, YKHO.doctree_dir, buildername='html', warningiserror=True)\n P4t4.build(force_all=YKHO.all_files)", "def l2Nj(YKHO):\n\n def OLzN():\n re...
[ "0.62544733", "0.6210216", "0.6135812", "0.61168873", "0.61097676", "0.60635585", "0.60095423", "0.5986903", "0.5982867", "0.5947885", "0.5922503", "0.5922022", "0.5909157", "0.58936256", "0.58916813", "0.58687884", "0.5845921", "0.5835059", "0.5818576", "0.58080834", "0.5807...
0.0
-1
Loads data for the specified city and filters by month and/or day if applicable.
def P6IV(j5sA, owkZ, Pd0P, SVZk): AGPF = 'C:/Users/The Presence/Documents/Personal Document/Personal Development/Data Science and Analytics/Udacity (Python Course)/Labs Tasks-20200924T221854Z-001/Lab Results/Capstone Project/bikeshare-2/' + j5sA jQ3Z = rLdf.read_csv(AGPF) p0EN = jQ3Z.copy() jQ3Z['Start ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =...
[ "0.80950326", "0.8056632", "0.7996945", "0.7982038", "0.7966112", "0.79466665", "0.7942356", "0.79383606", "0.79283273", "0.7906326", "0.7904717", "0.7902317", "0.78923416", "0.7883008", "0.78672147", "0.7849188", "0.784072", "0.7838124", "0.7828984", "0.78285855", "0.7816761...
0.0
-1
Yield successive nsized chunks from lst.
def eHxA(yv6U, exwG): for YRbF in range(0, len(yv6U), exwG): yield yv6U[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield...
[ "0.83073896", "0.81937337", "0.8191178", "0.8191178", "0.81903666", "0.81268156", "0.812207", "0.812207", "0.80774724", "0.80527616", "0.80527616", "0.80527616", "0.80527616", "0.80527616", "0.80042547", "0.7870935", "0.78464705", "0.7828888", "0.78281975", "0.78149104", "0.7...
0.80534166
18
Gets a Github Token with read permission to repositories
def XeCW(YKHO, Kfpl: List[str]) -> str: w0rQ = {'contents': 'read', 'metadata': 'read'} return YKHO.get_access_token(Kfpl, w0rQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def onYn(Emd4) -> 'ApiCredential':\n return Emd4.select_token_for_api(jGJK)", "def XeCW(Kfpl: List[str]) -> None:\n YrPH = HnGt()\n print(YrPH.get_read_token(Kfpl))", "def xoMy(wKwm=None):\n eJSJ = '%s@github' % wKwm if wKwm else 'github'\n return _J2v(eJSJ, IJHd)", "def bBVO():\n global _c...
[ "0.7388206", "0.7281786", "0.7081964", "0.67628413", "0.67486924", "0.6516352", "0.6467427", "0.64288074", "0.6357329", "0.6353102", "0.6352296", "0.62776095", "0.61808753", "0.61502045", "0.61355114", "0.6119075", "0.6097837", "0.6041554", "0.5988363", "0.5977112", "0.597440...
0.7311923
1
Gets a Github Token with read permission to repositories
def XeCW(Kfpl: List[str]) -> None: YrPH = HnGt() print(YrPH.get_read_token(Kfpl))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def onYn(Emd4) -> 'ApiCredential':\n return Emd4.select_token_for_api(jGJK)", "def XeCW(YKHO, Kfpl: List[str]) -> str:\n w0rQ = {'contents': 'read', 'metadata': 'read'}\n return YKHO.get_access_token(Kfpl, w0rQ)", "def xoMy(wKwm=None):\n eJSJ = '%s@github' % wKwm if wKwm else 'github'\n return _...
[ "0.7387772", "0.7310122", "0.7079352", "0.67610556", "0.6747762", "0.65138876", "0.64705503", "0.6427944", "0.63560885", "0.6353343", "0.63503027", "0.62757635", "0.61785406", "0.6149585", "0.61333126", "0.6116818", "0.60957575", "0.6039983", "0.59864056", "0.597834", "0.5973...
0.7279384
2