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
Gets a phoney estimate for where the ball is depending on how far away the camera is. Returns sigma value and "measured" x,y values
def GBJi(oMDh, Kd41): Cwt5 = 0.009 WTkW = Cwt5 * RvAI(oMDh, Kd41) WKvO = oMDh[0] + tuKI.gauss(0, pow(WTkW, 2)) LVAh = oMDh[1] + tuKI.gauss(0, pow(WTkW, 2)) return ((int(WKvO), int(LVAh)), WTkW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTkW(YKHO):\n WTkW = (YKHO.radius * (YhSR(YKHO.phi) - Uyfy(YKHO.phi) + Uyfy(YKHO.phi) * YUNn(YKHO.phi)) - (YKHO.stem * 2 + YKHO.counter) * Uyfy(YKHO.theta) - YKHO.offset) / (Uyfy(YKHO.theta) + Uyfy(YKHO.phi))\n WTkW += YKHO.stem * 2 + YKHO.counter\n return WTkW", "def Cajj(YKHO, UBSY):\n return (...
[ "0.6618923", "0.640155", "0.61670625", "0.6017737", "0.5927646", "0.5892045", "0.58912706", "0.5884315", "0.58785874", "0.5878298", "0.58732414", "0.58582634", "0.5806936", "0.57134265", "0.5668439", "0.566091", "0.56392145", "0.5634887", "0.5629071", "0.56239283", "0.5622342...
0.6715024
0
Test equality of Vector objects using ==.
def xa14(YKHO, Elif): if YKHO.x == Elif.x and YKHO.y == Elif.y: return True else: return False pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSLS(YKHO):\n hQHm = lNLu(3, 4, 5)\n assert hQHm == [3, 4, 5]\n assert hQHm != [0, 2, 4]\n jlSq = lNLu(3.0, 4.0, 5.0)\n assert hQHm == jlSq\n bUZ8 = lNLu(2, 2)\n assert hQHm != bUZ8", "def HNkk():\n Ty9i = lNLu(1.0)\n lU6q(Ty9i == Ty9i)", "def xa14(YKHO, Elif):\n if not isinst...
[ "0.8612081", "0.792736", "0.77274966", "0.7585594", "0.74970955", "0.73969024", "0.7267504", "0.7043716", "0.69991934", "0.6961278", "0.6922446", "0.6902637", "0.6855736", "0.6812294", "0.68013966", "0.676672", "0.67645746", "0.6763552", "0.676131", "0.67404974", "0.67281514"...
0.0
-1
Test inequality of Vector objects using !=.
def Vdqg(YKHO, Elif): if YKHO.x != Elif.x or YKHO.y != Elif.y: return True else: return False pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rNcD():\n Ty9i = lNLu(1.0)\n LNHv(Ty9i != Ty9i)", "def Vdqg(YKHO, Elif):\n if hasattr(Elif, 'vector'):\n return YKHO.vector != Elif.vector", "def NApL():\n lU6q(lNLu(1.0) != 1.0)", "def Vdqg(YKHO, Elif):\n if isinstance(Elif, MYYA):\n return YKHO.x != Elif.x or YKHO.y != Elif...
[ "0.7880954", "0.7799107", "0.76292604", "0.74168414", "0.73921937", "0.7261085", "0.7185971", "0.71613115", "0.7157501", "0.70587796", "0.70471185", "0.7038246", "0.7033083", "0.7022327", "0.7017849", "0.7017849", "0.70115477", "0.701039", "0.7008637", "0.7008637", "0.6998338...
0.0
-1
Set the y coordinate.
def z9NM(YKHO, LVAh): YKHO.y = LVAh pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QEd2(YKHO, LVAh):\n YKHO._y = LVAh", "def z9NM(YKHO, LVAh):\n YKHO._y = LVAh", "def lcEV(YKHO, LVAh):\n YKHO._y = LVAh", "def lcEV(YKHO, LVAh: float):\n YKHO.y = LVAh", "def lcEV(YKHO, eLqP):\n YKHO.y = eLqP", "def z9NM(YKHO, LVAh):\n YKHO.position.setY(LVAh)", "def lcEV(YKHO, LVA...
[ "0.9181362", "0.91690856", "0.9140436", "0.90641046", "0.8829516", "0.87577116", "0.859139", "0.85458827", "0.8503331", "0.8409407", "0.82484925", "0.82484925", "0.8077606", "0.8071067", "0.7984842", "0.7916473", "0.7916473", "0.7891215", "0.778843", "0.77801764", "0.77801764...
0.9229576
0
Return the x coordinate.
def EcVT(YKHO): return YKHO.x pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vAgg(YKHO):\n return YKHO.position.x", "def p5xg(YKHO):\n return YKHO.x_coord", "def nIKw(YKHO):\n return YKHO.coords[0]", "def nIKw(YKHO):\n return YKHO.posX", "def Aco_(YKHO):\n return YKHO.__pos_x", "def h1ia(YKHO) -> float:\n return YKHO.x_coord", "def YH9x(YKHO):\n return ...
[ "0.88956344", "0.8833777", "0.87446713", "0.8737901", "0.8594194", "0.85831034", "0.85763574", "0.84261113", "0.8422042", "0.84183", "0.8406681", "0.8369304", "0.8319206", "0.81523407", "0.8152325", "0.8080385", "0.8046004", "0.796965", "0.796656", "0.7961459", "0.7898218", ...
0.7121196
77
Return the y coordinate.
def fuBA(YKHO): return YKHO.y pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bDS1(YKHO):\n return YKHO._y", "def yDCK(YKHO):\n return YKHO.coords[1]", "def LVAh(YKHO):\n return YKHO._coords[1]", "def bDS1(YKHO):\n return YKHO.y", "def bDS1(YKHO):\n return YKHO.y", "def LVAh(YKHO):\n return YKHO.coords[1]", "def bDS1(YKHO):\n return YKHO.__y", "def n_t...
[ "0.8921974", "0.8918842", "0.8902261", "0.89012975", "0.89012975", "0.8888897", "0.88610786", "0.88403666", "0.88019323", "0.87821954", "0.8767364", "0.87561464", "0.8670742", "0.8641636", "0.86284786", "0.8611483", "0.8588099", "0.85459596", "0.8455855", "0.84424585", "0.838...
0.8020218
57
bsr(value, bits) > value shifted right by bits This function is here because an expression in the original java source contained the token '>>>' and/or '>>>=' (bit shift right and/or bit shift right assign). In place of these, the python source code below contains calls to this function. Copyright 2003 Jeffrey Clement....
def zgHB(BWXx, UOVU): CS6Q = -2147483648 if UOVU == 0: return BWXx elif UOVU == 31: if BWXx & CS6Q: return 1 else: return 0 elif UOVU < 0 or UOVU > 31: raise ValueError('bad shift count') jbXL = (BWXx & 2147483646) // 2 ** UOVU if BWXx & CS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G8po(exwG, Fg_i):\n return (exwG >> Fg_i, exwG & (1 << Fg_i) - 1)", "def G4zG(YKHO):\n IPme = [NPiU.bit_rshift(YKHO.test_bin_ones, 0, 40, 8, None)]\n YKHO.as_connection.operate(YKHO.test_key, IPme)\n bGrB, bGrB, Pyrc = YKHO.as_connection.get(YKHO.test_key)\n Ggta = bytearray([0] + [1] * 4)\n ...
[ "0.6727143", "0.63353753", "0.6116032", "0.60228914", "0.60037893", "0.58917755", "0.58855736", "0.58855736", "0.5825467", "0.5758853", "0.5747889", "0.57335716", "0.5706857", "0.5706288", "0.56348604", "0.56140065", "0.560792", "0.5594745", "0.5571785", "0.5519326", "0.54975...
0.6529127
1
Parses package requirements from a Pipfile. Reformats them to match a pipstyle specifier, e.g. `"bs4" = ""` > `bs4`, and `termcolor = ">=1.23"` > `termcolor>=1.23`.
def S1go() -> x1iM[str]: IA16 = enR0.ConfigParser() IA16.read('Pipfile') NP7q = [] for B5hb, DpZH in IA16['packages'].items(): B5hb = B5hb.strip('\'"') DpZH = DpZH.strip('\'"') Cqok = B5hb + ('' if DpZH == '*' else DpZH) NP7q.append(Cqok) return NP7q
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jjxV():\n c4qg = (zFiD.strip() for zFiD in open('Pipfile'))\n orYQ = [zFiD for zFiD in c4qg]\n V_8U = orYQ.index('[packages]') + 1\n ixQc = orYQ.index('[requires]') - 1\n fA3L = list(map(lambda WKvO: WKvO.replace(' = \"', '').replace('\"', ''), orYQ[V_8U:ixQc]))\n return fA3L", "def VnMZ(Ux...
[ "0.8167471", "0.6551887", "0.6245379", "0.6139017", "0.60707974", "0.605438", "0.6013819", "0.59752125", "0.59320724", "0.59152067", "0.58938396", "0.58594483", "0.58483577", "0.5810328", "0.5797439", "0.5796998", "0.57895494", "0.5787564", "0.57842386", "0.57662433", "0.5760...
0.6988868
1
Returns the area covered of the B2ACGeometricShape object.
def sAdl(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n return YKHO._ned_shape.area", "def f0tD(YKHO):\n return PX7E(slpE.ST_Area, YKHO)", "def f0tD(YKHO):\n return (YKHO.x1 - YKHO.x0) * (YKHO.y1 - YKHO.y0)", "def f0tD(YKHO):\n cviu = YKHO.bbox\n f0tD = rh6a.calculate_bbox_area(cviu, bbox_type=YKHO.bbox_type)\n return f0tD", ...
[ "0.74955636", "0.7267737", "0.725804", "0.7219449", "0.7175316", "0.7156573", "0.7126457", "0.71073914", "0.7074115", "0.7063876", "0.70558393", "0.69951653", "0.6976647", "0.6944922", "0.6944922", "0.6944922", "0.69310975", "0.6922866", "0.6922866", "0.6921528", "0.6898708",...
0.6833943
34
Create and save a user with the given username, email, and password.
def xWi2(YKHO, CQLj, NtEF, jTXt, D3lj=None, **B2fa): if not NtEF: raise ValueError('请输入用户名') if not CQLj: raise ValueError('请输入手机号') if not jTXt: raise ValueError('请输入密码') D3lj = YKHO.normalize_email(D3lj) NtEF = YKHO.model.normalize_username(NtEF) CBIr = YKHO.model(telep...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, NtEF, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n if not NtEF:\n raise ValueError('The given username must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, username=str.strip(NtEF), **wdCM)\n CBIr.se...
[ "0.85970664", "0.8441464", "0.84257156", "0.84243035", "0.8407115", "0.8394773", "0.83891046", "0.83420897", "0.833554", "0.8334237", "0.83234787", "0.8288202", "0.82821107", "0.827526", "0.82698834", "0.82689965", "0.81651425", "0.8160252", "0.8157993", "0.814361", "0.813802...
0.0
-1
Return ylim for subplots.
def rTQi(YKHO): Xk2t = [aNZO.get_ylim() for aNZO in YKHO._subaxes] if Xk2t == []: Xk2t = None return Xk2t
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rTQi(YKHO, es2x=None, tlxW=None):\n for aNZO in YKHO._subaxes:\n aNZO.set_ylim(es2x, tlxW)\n YKHO.figure.canvas.draw()", "def tXvl(YKHO):\n return YKHO.axes.get_ylim()", "def rTQi(es2x=None, tlxW=None):\n m5hN.ylim(**locals())", "def M65t(YKHO):\n if isinstance(YKHO._frame, tk5Y.TH1...
[ "0.7489316", "0.7369543", "0.72438246", "0.7230113", "0.68752676", "0.6603705", "0.6602591", "0.646319", "0.646319", "0.630308", "0.62957925", "0.62222004", "0.6215365", "0.61390114", "0.6116315", "0.60919374", "0.59923524", "0.5969142", "0.5903077", "0.58006877", "0.57827604...
0.8258679
0
Set yaxis limits on all subplots.
def rTQi(YKHO, es2x=None, tlxW=None): for aNZO in YKHO._subaxes: aNZO.set_ylim(es2x, tlxW) YKHO.figure.canvas.draw()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qFMj(YKHO, uwd1, DLYN):\n YKHO.axplot.set_ylim(uwd1, DLYN)\n YKHO.fig.canvas.draw()\n return", "def rTQi(YKHO):\n Xk2t = [aNZO.get_ylim() for aNZO in YKHO._subaxes]\n if Xk2t == []:\n Xk2t = None\n return Xk2t", "def yuZ1(YKHO):\n YKHO.ax.set_ylim(YKHO.ylims)\n UUS0 = [*range...
[ "0.73684484", "0.7333269", "0.69522804", "0.68085486", "0.6744841", "0.6667006", "0.6617799", "0.65600276", "0.65293473", "0.64102334", "0.63932246", "0.6358978", "0.6258972", "0.62417555", "0.62233126", "0.62193394", "0.6133096", "0.6071315", "0.6061821", "0.604985", "0.6033...
0.7838847
0
Set yaxis limits on all subplots.
def ZxUn(YKHO, BWXx='linear'): for aNZO in YKHO._subaxes: aNZO.set_yscale(BWXx) YKHO.figure.canvas.draw()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rTQi(YKHO, es2x=None, tlxW=None):\n for aNZO in YKHO._subaxes:\n aNZO.set_ylim(es2x, tlxW)\n YKHO.figure.canvas.draw()", "def qFMj(YKHO, uwd1, DLYN):\n YKHO.axplot.set_ylim(uwd1, DLYN)\n YKHO.fig.canvas.draw()\n return", "def rTQi(YKHO):\n Xk2t = [aNZO.get_ylim() for aNZO in YKHO._...
[ "0.78384966", "0.73671263", "0.7332558", "0.6951256", "0.68071556", "0.6744199", "0.66174483", "0.65582895", "0.6528403", "0.6411199", "0.6391981", "0.63584363", "0.62587047", "0.62414575", "0.62232125", "0.62199306", "0.61336964", "0.60706055", "0.6061948", "0.60508823", "0....
0.6666844
6
Return an estimate for a good ylim.
def oT0H(YKHO, jk7u=None, ZxUn='linear'): Da4y = [fvDH for fvDH in YKHO.data.columns if fvDH in DpHO] if jk7u is None: nPrm = YKHO.data.ix[:, Da4y] else: _0VL = (YKHO.data.index >= jk7u[0]) & (YKHO.data.index <= jk7u[1]) nPrm = YKHO.data.ix[_0VL, Da4y] K69i = nPrm.min().min() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tXvl(YKHO):\n return YKHO.axes.get_ylim()", "def RfKK(YKHO) -> float:\n return YKHO.pendulum2.get_max_y()", "def rTQi(es2x=None, tlxW=None):\n m5hN.ylim(**locals())", "def nuHq(YKHO):\n LVAh = YKHO.Get_RawOutY_Value()\n if LVAh >= YKHO.minY and LVAh <= YKHO.maxY:\n return 0\n els...
[ "0.71889484", "0.69473946", "0.69405967", "0.6662677", "0.6645133", "0.661116", "0.6545868", "0.6504186", "0.6350625", "0.6324434", "0.6268813", "0.62479395", "0.62359744", "0.6233223", "0.6167279", "0.61351603", "0.6117863", "0.6092668", "0.60735565", "0.60675955", "0.606419...
0.6107777
17
Ensure we can register a new user.
def cDXr(YKHO): bD7m = gxEw('rest_register') nPrm = {'email': 'skywalker@tatuin.net', 'password1': 'notshortpassword', 'password2': 'notshortpassword'} geh0 = YKHO.client.post(bD7m, nPrm, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED) YKHO.assertEqual(mv1M.objects.count(), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQ7K():\n pass", "def oj__(YKHO):\n geh0 = YKHO.client.post(xnUW.USER_REGISTER_URL, data=YKHO.user_data, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)\n YKHO.assertEqual(mv1M.objects.count(), 1)\n YKHO.assertEqual(mv1M.objects.get().username, 'test_case_user')", ...
[ "0.77832836", "0.72131884", "0.7201365", "0.71680045", "0.7090347", "0.7086237", "0.7035889", "0.7030339", "0.70163465", "0.699818", "0.69789135", "0.6951632", "0.6941562", "0.6935559", "0.6904172", "0.6900261", "0.6883108", "0.68597436", "0.6845817", "0.68406063", "0.6840606...
0.0
-1
Build string map of TFLite enum int value
def mJkq(YEnM): U5bT = {} for vXX7 in dir(YEnM): if not vXX7.startswith('_'): sjci = getattr(YEnM, vXX7) if isinstance(sjci, int): U5bT[sjci] = vXX7 return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K0B_(J8oL):\n return dict(J8oL.keys())", "def d9PV(qqDt):\n VrAG = []\n for BH3N in qqDt:\n q_a7 = dict()\n sjXb = BH3N.keys()\n for H5ew in sjXb:\n if type(BH3N[H5ew]) not in [str, int, float, qcWV]:\n q_a7[H5ew] = BH3N[H5ew].value\n else:\n...
[ "0.6255643", "0.6154301", "0.60852444", "0.60017073", "0.5889652", "0.573905", "0.57121927", "0.56576395", "0.56381434", "0.56319654", "0.5614502", "0.56097114", "0.56061685", "0.55298376", "0.55173206", "0.54821765", "0.5457455", "0.54309845", "0.5390245", "0.5390238", "0.53...
0.5410821
18
Middleware to update the request based on ``XForwardedFor``.
async def dispatch(YKHO, QePW: Request, tLy4: Callable[[Request], Awaitable[Response]]) -> oGir: Pvnq = list(reversed(YKHO._get_forwarded_for(QePW))) if not Pvnq: QePW.state.forwarded_host = None QePW.state.forwarded_proto = None return await tLy4(QePW) x0hE = None for exwG, D8Ke...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vcET(YKHO):\n QePW = xKPy('127.0.0.1', '83.42.13.77')\n _Lu2().process_request(QePW)\n YKHO.assertEqual(QePW.user_ip, QePW.META['HTTP_X_FORWARDED_FOR'])", "def nrOS(YKHO, QePW):\n for Jyyj in YKHO.FORWARDED_FOR_FIELDS:\n if Jyyj in QePW.META:\n if ',' in QePW.META[Jyyj]:\n ...
[ "0.675305", "0.66720927", "0.6583769", "0.6583769", "0.6420732", "0.6274157", "0.6264378", "0.59661293", "0.59490556", "0.5821934", "0.5791119", "0.5673667", "0.5595943", "0.5490375", "0.54052126", "0.53991795", "0.5365721", "0.53519285", "0.53155214", "0.5290878", "0.5279590...
0.56105334
12
Retrieve the ``XForwardedFor`` entries from the request.
def aWxw(YKHO, QePW: Request) -> x1iM[oV8W]: LPT4 = QePW.headers.getlist('X-Forwarded-For') if not LPT4 or len(LPT4) > 1: return [] return [I33c(rRzo) for rRzo in (jzdc.strip() for jzdc in LPT4[0].split(',')) if rRzo]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lZX_(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'insert_xforwarded_for')", "def lZX_(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'insert_xforwarded_for')", "def YfWT(YKHO) -> bdIy['outputs.GetListenersListenerXforwardedForConfigResult']:\n return qe4Y.get(YKHO, 'xforwarded...
[ "0.6563655", "0.6563655", "0.65356636", "0.65014786", "0.6401519", "0.6311759", "0.6203623", "0.6159837", "0.6134342", "0.6125144", "0.6081709", "0.6006999", "0.597707", "0.59251946", "0.59090203", "0.58562756", "0.5829888", "0.5798456", "0.57940364", "0.5744231", "0.5712205"...
0.7719834
0
Retrieve the ``XForwardedProto`` entries from the request.
def UAuL(YKHO, QePW: Request) -> x1iM[str]: Fvt6 = QePW.headers.getlist('X-Forwarded-Proto') if not Fvt6 or len(Fvt6) > 1: return [] return [XP5J.strip() for XP5J in Fvt6[0].split(',')]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aWxw(YKHO, QePW: Request) -> x1iM[oV8W]:\n LPT4 = QePW.headers.getlist('X-Forwarded-For')\n if not LPT4 or len(LPT4) > 1:\n return []\n return [I33c(rRzo) for rRzo in (jzdc.strip() for jzdc in LPT4[0].split(',')) if rRzo]", "def V8CV(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'x_forwarde...
[ "0.62977594", "0.6140308", "0.5966076", "0.58254284", "0.57169694", "0.5580521", "0.5472985", "0.5388928", "0.5374064", "0.5326867", "0.53200114", "0.51863295", "0.51466054", "0.51466054", "0.51214767", "0.5115323", "0.50630355", "0.50563455", "0.5002089", "0.5002089", "0.500...
0.8077176
0
Returns a downsampling layer followed by batch normalization (added by default) and Leaky ReLU activation function.
def myXy(KUnM, zNig, ROpF, z5cs=True): MuED = ZylS.random_normal_initializer(0.0, 0.02) Aofo = ZylS.keras.Sequential() Aofo.add(ZylS.keras.layers.Conv2D(KUnM, zNig, strides=2, padding='same', batch_input_shape=ROpF, kernel_initializer=MuED, use_bias=False)) if z5cs: Aofo.add(ZylS.keras.layers.Ba...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def psZd(YKHO, WQeB, _0fC):\n if _0fC != 1:\n myXy = ZylS.keras.Sequential()\n myXy.add(ZylS.keras.layers.Conv2D(filters=WQeB, kernel_size=(1, 1), strides=_0fC))\n myXy.add(ZylS.keras.layers.BatchNormalization())\n else:\n myXy = lambda WKvO: WKvO\n return myXy", "def jUXT(WK...
[ "0.6279705", "0.6109562", "0.6091242", "0.6091242", "0.6086898", "0.60805357", "0.60805357", "0.60708433", "0.6020613", "0.59831345", "0.5980429", "0.5975923", "0.5909551", "0.59092027", "0.5848446", "0.5841554", "0.5836774", "0.5834692", "0.58196366", "0.5803863", "0.5786710...
0.0
-1
Returns an upsampling layer followed by dropout (not added by default) and ReLU activation function.
def ZQBP(KUnM, zNig, ROpF, Qakw=False): MuED = ZylS.random_normal_initializer(0.0, 0.02) Aofo = ZylS.keras.Sequential() Aofo.add(ZylS.keras.layers.Conv2DTranspose(KUnM, zNig, strides=2, batch_input_shape=ROpF, padding='same', kernel_initializer=MuED, use_bias=False)) Aofo.add(ZylS.keras.layers.BatchNorm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XDL9(YKHO, DYuh=None, tYiq=None):\n if YKHO.expand_strategy == 'upsample':\n return U78l.Upsample(scale_factor=2, mode='nearest')\n elif YKHO.expand_strategy == 'transpose_convolution':\n return U78l.ConvTranspose2d(DYuh, tYiq, 3, stride=2, padding=1, output_padding=1)\n else:\n r...
[ "0.6654453", "0.6204926", "0.60987043", "0.604992", "0.5971261", "0.59267914", "0.58945936", "0.5885581", "0.58823377", "0.58696634", "0.58610624", "0.5857071", "0.5857071", "0.5845825", "0.58266497", "0.5809922", "0.57693434", "0.5751995", "0.57433254", "0.5734281", "0.57202...
0.52884024
76
Initialize a Blockwise Layer.
def FIMM(YKHO, _AKB): YKHO._parent = _AKB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, **B2fa):\n P8oC.Layer.__init__(YKHO, **B2fa)\n YKHO._num_output = YKHO.spec.get('num_output', 0)\n if YKHO._num_output <= 0:\n raise P8oC.InvalidLayerError('Incorrect or unspecified num_output for %s' % YKHO.name)\n YKHO._reg = YKHO.spec.get('reg', None)\n YKHO._filler = YKHO.s...
[ "0.6943045", "0.6763722", "0.67341447", "0.67208093", "0.67208093", "0.6680869", "0.6632589", "0.6540465", "0.6417641", "0.63440853", "0.63365215", "0.630949", "0.6272001", "0.62701", "0.62333906", "0.6207854", "0.6198415", "0.61582106", "0.6101392", "0.60637945", "0.60568553...
0.0
-1
Test if data researcher has access to the api endpoint
def iHQt(YKHO): YKHO.client.login(username=YKHO.data_researcher.username, password='test') YKHO.verify_response(params={'all_blocks': True, 'course_id': str(YKHO.course_key)})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eIzd(d4y1):\n assert d4y1().get('/anything/else').status_code == 200", "def P3Bs(YKHO, QePW, YEnM=None):\n if QePW.method == 'GET':\n return True\n else:\n return False", "def inXb() -> bool:\n HbLB = False\n l_7H = False\n my58 = False\n if KR7D():\n G9jH.info('We...
[ "0.7084129", "0.6828772", "0.67048895", "0.6682416", "0.65986454", "0.6583272", "0.6566188", "0.6559836", "0.6559836", "0.6559836", "0.6559836", "0.65401864", "0.6470316", "0.6454227", "0.6444007", "0.6438723", "0.6426884", "0.6426884", "0.6404503", "0.63879246", "0.6377078",...
0.6005887
72
Instantiate a new Message object. No arguments are required, as everything can be set using class properties. Alternatively, I{everything} can be set using the constructor, using named arguments. The first three positional arguments can be used to quickly prepare a simple message.
def FIMM(YKHO, taDc=None, Br5Q=None, U4ZT=None, **YSA3): super(LuKW, YKHO).__init__(to=Br5Q, kw=YSA3) J1xL = lambda *qIxc, **B2fa: YKHO.kwpop(YSA3, *qIxc, **B2fa) Ps5n = lambda mWFP, qrLi: YKHO.pop_deprecated(YSA3, mWFP, qrLi) YKHO.merge_if_set(YSA3, taDc, 'author') YKHO._author = Mi4M(J1xL('author'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LuKW(YKHO, *qIxc, **B2fa):\n return LuKW(YKHO, *qIxc, **B2fa)", "def K1ka(YKHO, *qIxc, **YSA3):\n return CWic(*qIxc, **YSA3)", "def Ol8d(YKHO, *qIxc, **B2fa) -> LuKW:\n return LuKW(YKHO.handle, *qIxc, **B2fa)", "def ieY1(YKHO):\n\n class SomeMessage(yEHD.Message):\n mWFP = yEHD.StringF...
[ "0.79181224", "0.7506687", "0.7501556", "0.72638214", "0.7239061", "0.7082516", "0.7057003", "0.7057003", "0.70092994", "0.69854885", "0.69854885", "0.69854885", "0.69854885", "0.69854885", "0.69854885", "0.69854885", "0.69854885", "0.69854885", "0.69854885", "0.6984823", "0....
0.6671153
35
Returns the address of the envelope sender address (SMTP from, if not set the sender, if this one isn't set too, the author).
def BTdo(YKHO): BTdo = None if YKHO.smtp_from != None and len(YKHO.smtp_from) > 0: BTdo = YKHO.smtp_from elif YKHO.sender != None and len(YKHO.sender) > 0: BTdo = YKHO.sender else: BTdo = YKHO.author return EDCT(BTdo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vC92(YKHO):\n H5ew, Zc6P = ('Sender', 'From') if not YKHO.resent else ('Resent-Sender', 'Resent-From')\n BWXx = YKHO.get(H5ew) or YKHO.get(Zc6P)\n bGrB, rRzo = gfUS([BWXx])[0]\n return rRzo", "def ofQZ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'notification_sender_email')", "de...
[ "0.73631096", "0.673388", "0.673388", "0.6719646", "0.6604917", "0.65062785", "0.6501518", "0.64463794", "0.63030577", "0.6285404", "0.62435293", "0.62144536", "0.61882967", "0.6136689", "0.6113695", "0.6112187", "0.6074151", "0.60113996", "0.5998374", "0.59926707", "0.598624...
0.8513534
0
Gets the date_value (may be None, basestring, float or datetime.datetime instance) and returns a valid date string as per RFC 2822.
def WBEh(YKHO, MgXu): if isinstance(MgXu, qcWV): MgXu = ITS7.mktime(MgXu.timetuple()) if not isinstance(MgXu, exCv): MgXu = snaW(MgXu, localtime=True) return MgXu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _c1T(BWXx):\n if BWXx in (None, ''):\n return ''\n if isinstance(BWXx, str):\n BWXx = Y5Wg(BWXx)\n d7pR = 'DATE_FORMAT'\n try:\n return x7JD.date_format(BWXx, d7pR)\n except AttributeError:\n raise\n try:\n return format(BWXx, d7pR)\n except A...
[ "0.70567673", "0.70380926", "0.70267284", "0.6526661", "0.6518911", "0.649481", "0.64906317", "0.64153856", "0.63990474", "0.63893837", "0.6384454", "0.63175297", "0.6307034", "0.626651", "0.6226232", "0.6178133", "0.6153579", "0.6147893", "0.6147872", "0.61286217", "0.604675...
0.67371196
3
Update the parameters of the network iteratively according to the cached gradients at each module.
def x2Fr(YKHO, sqQC, tspZ): for yR_P in YKHO.modules: if isinstance(yR_P, FNYZ): yR_P._update_params(sqQC, tspZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xx2J(YKHO, NfqM):\n for YRbF in Ni9Y(len(YKHO.params)):\n YKHO.params[YRbF].set_value(YKHO.params[YRbF].get_value() - NfqM[YRbF] / (1 / YKHO.learning_rate + YKHO.iterations))", "def x2Fr(fhcK, e89C, b0Ix):\n for gEmA, iHBu in zip(fhcK, e89C):\n for xqoZ, Ro40 in zip(gEmA.get_params_iter()...
[ "0.7417903", "0.73203826", "0.73120254", "0.7263402", "0.7262234", "0.70927393", "0.70112956", "0.7006354", "0.70061654", "0.69170314", "0.6873835", "0.68576235", "0.68220806", "0.68038905", "0.680022", "0.678554", "0.67793226", "0.6720413", "0.67188734", "0.66997236", "0.667...
0.68270534
12
Function to add item in first index or simply enqueue. Time complexity is O(n) or linear. If item is added in first index all next items should be shifted by one. Time depends upon list length.
def jvNa(YKHO, ZfUD): YKHO.items.insert(0, ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jvNa(YKHO, ZfUD):\n if YKHO._N == len(YKHO._q):\n YKHO._resize(2 * len(YKHO._q))\n YKHO._q[YKHO._last] = ZfUD\n YKHO._last += 1\n if YKHO._last == len(YKHO._q):\n YKHO._last = 0\n YKHO._N += 1", "def jvNa(YKHO, ZfUD):\n R3cW = YKHO.last\n YKHO.last = YKHO.Node(ZfUD)\n if...
[ "0.74483913", "0.70006317", "0.6990834", "0.6894542", "0.68773454", "0.6772151", "0.6758758", "0.67582047", "0.67368424", "0.67056865", "0.6677778", "0.65756977", "0.6568506", "0.6563939", "0.65510756", "0.6523978", "0.65169275", "0.64741033", "0.64361084", "0.6421537", "0.63...
0.6832605
6
Check if queue is empty or not. O(1).
def FBfn(YKHO): if YKHO.items: return 'not empty!' return 'empty!'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _OiT(gGq6):\n return gGq6.front is None", "def FBfn(YKHO):\n return YKHO.queue == []", "def FBfn(YKHO):\n return len(YKHO.the_queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.__queue) >...
[ "0.8787647", "0.87245506", "0.8693414", "0.8678968", "0.8678968", "0.8641385", "0.86165476", "0.8453675", "0.84076923", "0.83749175", "0.8371444", "0.8370429", "0.83545595", "0.8346489", "0.8306624", "0.8303416", "0.8244715", "0.8161971", "0.81167287", "0.81167287", "0.808342...
0.0
-1
Clean and tokenize text before feature creation. Returns list of tokens. Also return meta dict with information about preprocessing (e.g. tokens removed, length of original text, etc...)
def MXOF(l5Ny: str) -> AzJI[x1iM[str], cuzp]: raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def biH0(YKHO, l5Ny):\n return biH0.get_tokens(l5Ny)", "def ZvG6(Novh):\n IChv = wr3U(Novh)\n IChv = g8pp(IChv)\n IChv = cQ_D(IChv)\n IChv = iKsa(IChv)\n return IChv", "def Zi4e(l5Ny):\n l5Ny = l5Ny.replace(',', '')\n l5Ny = l5Ny.replace('.', '')\n l5Ny = l5Ny.replace(\"'\", '')\n ...
[ "0.7782326", "0.7432993", "0.7185439", "0.7161674", "0.70712733", "0.70612115", "0.7059516", "0.6990138", "0.69349235", "0.68593967", "0.6826011", "0.6825105", "0.677563", "0.67510617", "0.67510617", "0.6740675", "0.6740514", "0.67400056", "0.67363375", "0.67220014", "0.67145...
0.0
-1
JavaScript API Gets the value of the element.
def BWXx(YKHO) -> str: G9jH.info(f'get element value. {YKHO.desc}') Rf_J = f'return document.querySelectorAll("{YKHO.css}")[{YKHO.index}].value;' return YKHO._execute_javascript(Rf_J)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(YKHO):\n return YKHO.element.get_attribute('value')", "def BWXx(YKHO):\n return YKHO.element.get_attribute('value')", "def BWXx(YKHO):\n return YKHO.element.get_attribute('value')", "def UnfG(YKHO):\n return YKHO.text()", "def BWXx(YKHO):\n return YKHO.element().get_attribute('value...
[ "0.79421747", "0.79421747", "0.79421747", "0.7688982", "0.7683594", "0.76467896", "0.7542422", "0.74224544", "0.73688155", "0.73539263", "0.7319645", "0.73004097", "0.73004097", "0.7279916", "0.7279916", "0.7272643", "0.72527665", "0.72480005", "0.72480005", "0.72480005", "0....
0.8207017
0
Gets XML representation of pipeline.
def JvPw(YKHO, nsdK): geh0 = YKHO._session.get(path=YKHO._session.urljoin(YKHO.PIPELINES_RESOURCE_PATH, 'THIS_PARAMETER_IS_USELESS', '{}.xml'.format(nsdK)).format(base_api=YKHO.base_api), headers={'Accept': 'application/xml'}) return geh0.text
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ry3J(YKHO):\n return QGpr.tostring(YKHO.get_etree())", "def AEKg(YKHO):\n iYfI = QGpr.Element('lineage')\n Vv_V = YKHO.proc_step.get_widgets()\n for zcgr in Vv_V:\n iYfI.append(zcgr._to_xml())\n return iYfI", "def Ry3J(YKHO):\n with xDSY.StringIO() as vIwR:\n vIwR.write(GXnK...
[ "0.67997104", "0.6680785", "0.6533029", "0.64369345", "0.64369345", "0.63111204", "0.6080494", "0.6068516", "0.60453856", "0.60120046", "0.6008949", "0.5916967", "0.5916967", "0.58802867", "0.5861499", "0.5861258", "0.5802897", "0.57117105", "0.5703831", "0.56823856", "0.5664...
0.54386365
43
Gets XML representation of job.
def Qqqa(YKHO, rjee): geh0 = YKHO._session.get(path='{base_api}/jobs/{job_id}.xml'.format(base_api=YKHO.base_api, job_id=rjee), headers={'Accept': 'application/xml'}) return geh0.text
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return ('<Job id={id} title={title} ' + 'complete={complete}').format(id=YKHO.id, title=YKHO.title, complete=YKHO.complete)", "def Ry3J(YKHO):\n return QGpr.tostring(YKHO.get_etree())", "def wHJl(YKHO):\n return ('<BoardJob board_id={board_id} ' + 'job_id={job_id}>').format(board_id=...
[ "0.6667868", "0.6432676", "0.6270865", "0.62107545", "0.62107545", "0.62107545", "0.6169856", "0.6111412", "0.6111412", "0.60111433", "0.5883167", "0.58683676", "0.58451736", "0.5801905", "0.5784461", "0.5719519", "0.5678421", "0.5626802", "0.5623943", "0.56128615", "0.557562...
0.61371833
7
Adds a unidirectional edge between two nodes
def Fa3e(YKHO, I3vK, tb0Y, Ayfi): MxXY, cWFu = YKHO.__create_node(I3vK.lower(), tb0Y.lower()) if cWFu in MxXY.getNeighbors(): print('Node ' + MxXY.getId() + ' is already neighbour with node ' + cWFu.getId()) else: MxXY.setNeighbor(cWFu, Ayfi)
{ "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 uY51(YKHO, i4Va, rUTj, Ayfi):\n MxXY, cWFu = YKHO.__create_node(i4Va.lower(), rUTj.lower())\n if MxXY in cWFu.getNeighbors() and cWFu in MxXY.getNeighbors():\n print(MxXY.getId() + ' and ...
[ "0.7877241", "0.7854274", "0.77367765", "0.76684695", "0.7529696", "0.75112146", "0.7496341", "0.7331441", "0.72781384", "0.7270602", "0.7185263", "0.71112907", "0.70888346", "0.7075159", "0.7073675", "0.70590246", "0.70406", "0.702738", "0.7016966", "0.7010654", "0.7007758",...
0.75606674
4
Adds a bidirectional edge between two nodes.
def uY51(YKHO, i4Va, rUTj, Ayfi): MxXY, cWFu = YKHO.__create_node(i4Va.lower(), rUTj.lower()) if MxXY in cWFu.getNeighbors() and cWFu in MxXY.getNeighbors(): print(MxXY.getId() + ' and ' + cWFu.getId() + ' already a neighbour.') else: MxXY.setNeighbor(cWFu, Ayfi) cWFu.setNeighbor(MxX...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, i4Va, rUTj, upAO=1.0, Q1b5=True):\n YKHO.add_node(i4Va)\n YKHO.add_node(rUTj)\n LrkF = YKHO._edges.get(i4Va, set())\n LrkF.add(ndC_(i4Va, rUTj, upAO))\n YKHO._edges[i4Va] = LrkF\n if Q1b5:\n z7RJ = YKHO._edges.get(rUTj, set())\n z7RJ.add(ndC_(rUTj, i4Va, upAO))\n ...
[ "0.807166", "0.7867932", "0.7548216", "0.7475844", "0.7446775", "0.73784786", "0.7216577", "0.72158986", "0.7172897", "0.7147783", "0.713027", "0.7118485", "0.7089157", "0.70850754", "0.708479", "0.70805526", "0.705801", "0.7012476", "0.70082843", "0.69312173", "0.6927729", ...
0.8224717
0
Return a printable representation of the instance
def Ku9n(YKHO): return u'(%s, %s)' % (YKHO.subject_object1, YKHO.subject_object2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)", "def zAg0(YKHO):\n return repr(YKHO)", "def zAg0(YKHO):\n return repr(YKHO)", "def zAg0(YKHO):\n return YKHO.printable()", "def wHJl(YKHO):\n str(YKHO)", "def wHJl(YKHO):\n return str(YKHO.__dict__)", "def wHJl(YKHO):\n re...
[ "0.8495958", "0.8476356", "0.8424882", "0.8340136", "0.83321846", "0.83279485", "0.83279485", "0.83279485", "0.83279485", "0.83279485", "0.8307231", "0.8307231", "0.8307231", "0.8307231", "0.8307231", "0.8307231", "0.8307231", "0.8307231", "0.8307231", "0.8307231", "0.8307231...
0.0
-1
Return a printable representation of the instance
def Ku9n(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)", "def zAg0(YKHO):\n return repr(YKHO)", "def zAg0(YKHO):\n return repr(YKHO)", "def zAg0(YKHO):\n return YKHO.printable()", "def wHJl(YKHO):\n str(YKHO)", "def wHJl(YKHO):\n return str(YKHO.__dict__)", "def wHJl(YKHO):\n re...
[ "0.8495958", "0.8476356", "0.8424882", "0.8340136", "0.83321846", "0.83279485", "0.83279485", "0.83279485", "0.83279485", "0.83279485", "0.8307231", "0.8307231", "0.8307231", "0.8307231", "0.8307231", "0.8307231", "0.8307231", "0.8307231", "0.8307231", "0.8307231", "0.8307231...
0.0
-1
Return a random state vector.
def ADdS(YKHO): return oyIN.random.rand(YKHO.nx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ADdS(YKHO):\n YKHO.state = YKHO.a * YKHO.state + YKHO.c\n return YKHO.state", "def XFdG(WKvO):\n return WKvO + tuKI.uniform(-1, 1)", "def ADdS(YKHO):\n return YKHO.State.rand()", "def mvm2(YKHO):\n WKvO = YKHO.state\n Jw7X = YKHO.theta * (YKHO.mu - WKvO) + YKHO.sigma * oyIN.array([tuKI....
[ "0.7524336", "0.74356496", "0.7350448", "0.71346265", "0.7088853", "0.70498127", "0.70498127", "0.70498127", "0.70498127", "0.70498127", "0.7049213", "0.70253193", "0.7011552", "0.6988178", "0.69594854", "0.6952417", "0.69167227", "0.68957216", "0.68730795", "0.6869696", "0.6...
0.0
-1
Calculates log(xm) since mlog(x) will fail when m, x = 0.
def Ecnc(WKvO, r8hN): return Xf84.switch(Xf84.eq(WKvO, 0), Xf84.switch(Xf84.eq(r8hN, 0), 0.0, -oyIN.inf), r8hN * Xf84.log(WKvO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ecnc(WKvO, r8hN):\n return rxEN.switch(rxEN.eq(WKvO, 0), -oyIN.inf, r8hN * rxEN.log(WKvO))", "def RKD7(YKHO, WKvO, P8oC=2):\n if WKvO == 0:\n return 0\n return epAf.log(WKvO, P8oC)", "def TMp_(YKHO, WKvO):\n if nMvt.backend() == 'theano':\n from theano.tensor.nlinalg import svd, d...
[ "0.7899951", "0.7795391", "0.76946455", "0.7612447", "0.7505014", "0.7336194", "0.7333879", "0.7310866", "0.7243556", "0.7222918", "0.7169865", "0.71242654", "0.70531833", "0.70466876", "0.7011839", "0.6999271", "0.69981575", "0.696667", "0.69562936", "0.6946504", "0.6923862"...
0.7836792
1
Compute the log of the cumulative density function of the normal.
def EMDt(yGTL, WTkW, WKvO): epBp = (WKvO - yGTL) / WTkW return Xf84.switch(Xf84.lt(epBp, -1.0), Xf84.log(Xf84.erfcx(-epBp / Xf84.sqrt(2.0)) / 2.0) - Xf84.sqr(epBp) / 2.0, Xf84.log1p(-Xf84.erfc(epBp / Xf84.sqrt(2.0)) / 2.0))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AJao(YKHO, WKvO, JBMS, ZOOq, M1Jx):\n I8JS = M1Jx.pow(2)\n gXdX = -(WKvO - JBMS).pow(2) / (2 * I8JS) - 0.5 * oyIN.log(2 * oyIN.pi) - ZOOq\n gXdX = gXdX.sum(dim=-1, keepdim=True)\n return gXdX", "def AJao(WKvO, JBMS, ZOOq, M1Jx):\n I8JS = M1Jx.pow(2)\n gXdX = -(WKvO - JBMS).pow(2) / (2 * I8J...
[ "0.7585078", "0.745283", "0.71648806", "0.7141148", "0.6961688", "0.69444036", "0.6902911", "0.6829274", "0.67485774", "0.6707029", "0.6698992", "0.66931343", "0.66388977", "0.6631797", "0.6630156", "0.6587571", "0.65821505", "0.65734684", "0.65679127", "0.6551097", "0.653109...
0.6139997
53
`sigma > rho` PyTensor converter
def QkkU(WTkW): return Xf84.log(Xf84.exp(Xf84.abs(WTkW)) - 1.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x61b(oZuG):\n return Xf84.softplus(oZuG)", "def n6me(WTkW, RA_F):\n oZuG = ht2j.log(ht2j.expm1(RA_F * ht2j.abs(WTkW)) + 1e-20)\n return oZuG", "def bjxI(WTkW: float):\n return 16 / 3 * WTkW ** 2", "def cnUa(YKHO, zq5a: Tensorlike):\n return 40 * zq5a ** 3 / (YKHO.thickness + 1) ** 4", "d...
[ "0.73670995", "0.63704383", "0.60589725", "0.6001439", "0.59583", "0.59261966", "0.58771884", "0.58398604", "0.5734747", "0.5641124", "0.5631689", "0.5630676", "0.55984324", "0.55658203", "0.5552406", "0.55432546", "0.5453638", "0.5444881", "0.5444834", "0.5392413", "0.538885...
0.71857923
1
Calculate logarithm of normal distribution at point `x` with given `mean` and `std`
def JwbV(WKvO, JBMS, **B2fa): WTkW = B2fa.get('sigma') yzQ0 = B2fa.get('w') oZuG = B2fa.get('rho') jmzt = B2fa.get('tau') SGf8 = B2fa.get('eps', 0.0) GfdN = sum(map(lambda jzdc: jzdc is not None, [WTkW, yzQ0, oZuG, jmzt])) if GfdN > 1: raise ValueError('more than one required kwarg i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AJao(WKvO, JBMS, ZOOq, M1Jx):\n I8JS = M1Jx.pow(2)\n gXdX = -(WKvO - JBMS).pow(2) / (2 * I8JS) - 0.5 * oyIN.log(2 * oyIN.pi) - ZOOq\n gXdX = gXdX.sum(dim=-1, keepdim=True)\n return gXdX", "def AJao(YKHO, WKvO, JBMS, ZOOq, M1Jx):\n I8JS = M1Jx.pow(2)\n gXdX = -(WKvO - JBMS).pow(2) / (2 * I8J...
[ "0.8412", "0.83154887", "0.7637254", "0.75145966", "0.75034773", "0.74974626", "0.7448646", "0.7326321", "0.73188204", "0.72831464", "0.72667444", "0.7254195", "0.72240704", "0.722136", "0.71711576", "0.7153218", "0.70985377", "0.70972383", "0.708976", "0.7073875", "0.7050919...
0.80690265
2
Compute the log pdf of a multivariate normal distribution. This should be used in MvNormal.logp once Theano5908 is released.
def vjzC(): PFC2 = Xf84.matrix('cov') PFC2.tag.test_value = Vi1E(oyIN.eye(3)) RA_F = Xf84.matrix('delta') RA_F.tag.test_value = Vi1E(oyIN.zeros((2, 3))) yuE1 = qOmk(lower=True, on_error='nan') exwG, G1Hx = RA_F.shape exwG, G1Hx = (eHNT(exwG), eHNT(G1Hx)) OCle = yuE1(PFC2) A2lD = Xf84...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rcxq(WKvO, WTkW):\n bGrB, h8BT = oyIN.linalg.slogdet(WTkW)\n return -0.5 * oyIN.dot(WKvO.T, oyIN.linalg.solve(WTkW, WKvO))[0, 0] - oyIN.log(2 * oyIN.pi) - h8BT", "def h1g4(YKHO):\n qvVm = YKHO.params['noise_variance']['value']\n zIm_ = YKHO.C @ YKHO._Kernel(YKHO.X, YKHO.X, YKHO.params) @ YKHO.C.T...
[ "0.742578", "0.7389992", "0.73548317", "0.7235045", "0.7188996", "0.7168316", "0.7008302", "0.6978238", "0.69598025", "0.68743074", "0.6837587", "0.6808868", "0.6791415", "0.6735486", "0.6681692", "0.66723955", "0.66648537", "0.6568828", "0.65660447", "0.6557901", "0.65457934...
0.7155108
6
Calculate the zvalue for a normal distribution.
def pls7(BWXx, WTkW, yGTL): return (BWXx - yGTL) / WTkW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gpfS(YKHO, JBMS, WTkW):\n if WTkW == 0:\n WTkW = 1e-10\n qmLP.warn('Standard deviation sigma should not be zero.')\n zvls = (JBMS - 2 / 3) / WTkW\n return zvls", "def GZx7(YKHO, Csk6):\n epBp = (Csk6 - YKHO._mean) / YKHO._std\n return epBp", "def XA7A(epBp):\n from math impo...
[ "0.7491566", "0.70923024", "0.7019166", "0.69114155", "0.68043256", "0.66379136", "0.6616555", "0.65794903", "0.65502775", "0.654799", "0.6504766", "0.6487515", "0.6473132", "0.64295214", "0.6402317", "0.63732934", "0.6353064", "0.6323485", "0.63001394", "0.628597", "0.628339...
0.78231
0
Convert CFNumber to python int or float.
def jg0J(wSKg): BIRA = EzjL.CFNumberGetType(wSKg) _8yy = {Z20p: Gaq5, j5_e: QO9O, PLqd: eC2l, Lqa6: rfxR, xyL0: PgP1, in5S: FqeB, MNuB: oDdA, Xgn7: DoHQ, sm1t: aTac, yYFk: Q8vf, cpJL: yoVQ, tsI_: PgP1, Hddq: FqeB, j1FG: ObLV, ID9X: zNiV} if BIRA in _8yy: a1PO = _8yy[BIRA] Aofo = a1PO() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SZJh(YKHO) -> float:\n return YKHO._translate_in_type(float, YKHO.integer)", "def D6HN(BWXx):\n assert isinstance(BWXx, (bytes, float, int)), 'value has to be either bytes or float or int'\n return int.from_bytes(BWXx, byteorder='big') if type(BWXx) is bytes else BWXx", "def Q_gc(BWXx):\n try:\...
[ "0.72130436", "0.72013414", "0.7003101", "0.68837637", "0.6852873", "0.67765343", "0.6735275", "0.6717703", "0.67040956", "0.6670298", "0.6632944", "0.66119903", "0.6606204", "0.6545747", "0.65346634", "0.6526652", "0.65067565", "0.6472898", "0.64569527", "0.64520144", "0.644...
0.7700084
0
Calculates the flux emitted at a specific angular point on the surface of an asteroid of size unity as a function of angular position, wavelength and the subsolar temperature. Returns flux in units of W m^3.
def lzdh(YKHO, q7In, vtMg, yYpA): return oyIN.pi * VogS(vtMg, YKHO.calcT(q7In, yYpA))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def shSu(YKHO, P6bq):\n fjIg = oyIN.zeros((3, 2), dtype=oyIN.float64)\n fjIg[0, 0] = P6bq[1]\n fjIg[1, 0] = P6bq[0] * (P6bq[1] / P6bq[0]) ** 2 + 0.5 * 9.81 * P6bq[0] ** 2\n fjIg[2, 0] = P6bq[1] * P6bq[2] / P6bq[0]\n fjIg[0, 1] = P6bq[2]\n fjIg[1, 1] = P6bq[2] * P6bq[1] / P6bq[0]\n fjIg[2, 1] =...
[ "0.6546757", "0.6537908", "0.63220876", "0.6319376", "0.62712675", "0.6100086", "0.6066297", "0.60131335", "0.6001171", "0.59758466", "0.5934375", "0.5930147", "0.5918097", "0.588807", "0.5883347", "0.58602524", "0.58464915", "0.5766951", "0.5730851", "0.57255244", "0.5709214...
0.0
-1
Calculates the total flux emitted at the surface of an asteroid of size unity as a function of wavelength and the subsolar temperature. Returns flux in units of W m^3.
def VAox(YKHO, vtMg, yYpA): return 4 / oyIN.pi * zQMB.quad(lambda q7In, vtMg, yYpA: YKHO.calcFluxLambdaEmitted(q7In, vtMg, yYpA) * YKHO.surfaceElement(q7In, 0) * oyIN.cos(q7In), 0, oyIN.pi / 2, args=(vtMg, yYpA))[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def shSu():\n RA_F = 0.01\n Z9rn = uv6v * 10 ** 2 / (A3Vt * hAuS)\n OK1G = 0.001626528 / uv6v\n zje2 = 3e-07\n saqR = 1.5e-07\n I9ur = (oT2R * qn2n * saqR / (vEbX * RA_F * zje2) - oT2R / RA_F) / (vEbX / (OK1G * Z9rn) + Ic4i / (zje2 * Z9rn) + saqR * oT2R / (OK1G * zje2 * Z9rn))\n return I9ur", ...
[ "0.6753365", "0.64198846", "0.63170314", "0.6203782", "0.6197138", "0.6197138", "0.6126119", "0.6088301", "0.6029273", "0.5994214", "0.59668005", "0.5923236", "0.5906112", "0.5893819", "0.5856654", "0.5848698", "0.5836894", "0.58317304", "0.58164734", "0.5759984", "0.5759783"...
0.5407726
50
Calculates the flux emitted at a specific angular point on the surface of an asteroid of size unity towards an observer at phase angle alpha as a function of angular position, wavelength, subsolar temperature and phase angle. Returns flux in units of W m^3.
def ehKf(YKHO, q7In, vtMg, yYpA, Cwt5): return oyIN.pi * VogS(vtMg, YKHO.calcT(q7In, yYpA))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def shSu():\n RA_F = 0.01\n Z9rn = uv6v * 10 ** 2 / (A3Vt * hAuS)\n OK1G = 0.001626528 / uv6v\n zje2 = 3e-07\n saqR = 1.5e-07\n I9ur = (oT2R * qn2n * saqR / (vEbX * RA_F * zje2) - oT2R / RA_F) / (vEbX / (OK1G * Z9rn) + Ic4i / (zje2 * Z9rn) + saqR * oT2R / (OK1G * zje2 * Z9rn))\n return I9ur", ...
[ "0.6078515", "0.5991688", "0.5820977", "0.57897455", "0.57188916", "0.5688279", "0.56839955", "0.5655894", "0.5647079", "0.56425726", "0.5635855", "0.56054276", "0.5583467", "0.55507326", "0.5523584", "0.54691243", "0.5441563", "0.5438842", "0.54289895", "0.5421126", "0.54194...
0.5339822
30
Calculates the total flux emitted at the surface of an asteroid of size unity towards an observer at phase angle alpha as a function of wavelength, subsolar temperature and phase angle. Returns flux in units of W m^3.
def rb40(YKHO, vtMg, yYpA, Cwt5): return 4 / oyIN.pi * zQMB.quad(lambda q7In, vtMg, yYpA, Cwt5: YKHO.calcFluxLambdaEmittedToObs(q7In, vtMg, yYpA, Cwt5) * YKHO.surfaceElement(q7In, 0) * oyIN.cos(q7In), 0, oyIN.pi / 2, args=(vtMg, yYpA, Cwt5))[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def shSu():\n RA_F = 0.01\n Z9rn = uv6v * 10 ** 2 / (A3Vt * hAuS)\n OK1G = 0.001626528 / uv6v\n zje2 = 3e-07\n saqR = 1.5e-07\n I9ur = (oT2R * qn2n * saqR / (vEbX * RA_F * zje2) - oT2R / RA_F) / (vEbX / (OK1G * Z9rn) + Ic4i / (zje2 * Z9rn) + saqR * oT2R / (OK1G * zje2 * Z9rn))\n return I9ur", ...
[ "0.63276166", "0.606548", "0.606548", "0.59364086", "0.58968854", "0.57791424", "0.56985176", "0.5680027", "0.56768924", "0.56197", "0.56148046", "0.5529453", "0.5528889", "0.55133283", "0.5503263", "0.54907244", "0.54876053", "0.54581684", "0.54388595", "0.5420971", "0.53890...
0.59229356
4
Compute the average overlap (AO) between two ranked lists of items. Items must be in rank order, starting at 1. [k] is the depth to go down to when computing the AO the maximum is the max of the lengths of the two lists, the min is 1. Proposed simultaneously by Fagin et al. [2003] and Wu and Crestani [2003], it is call...
def WBid(ewL1, EYNI, G1Hx=None): if G1Hx is None: G1Hx = max([len(ewL1), len(EYNI)]) assert G1Hx > 0 and G1Hx <= max([len(ewL1), len(EYNI)]), 'k is out of bounds!' Ggir = [] for YRbF in range(1, G1Hx + 1): hd53, y7o0 = (set(ewL1[:YRbF]), set(EYNI[:YRbF])) SZ8G = len(hd53 & y7o0) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZFHe(ewL1, EYNI, G1Hx=None):\n if G1Hx is None:\n G1Hx = max([len(ewL1), len(EYNI)])\n assert G1Hx > 0 and G1Hx <= max([len(ewL1), len(EYNI)]), 'k is out of bounds!'\n hd53, y7o0 = (set(ewL1[:G1Hx]), set(EYNI[:G1Hx]))\n return len(hd53 & y7o0) / len(hd53 | y7o0)", "def U2_B(EBgd, HpuQ):\n ...
[ "0.6009777", "0.5717285", "0.5669322", "0.5544337", "0.55036193", "0.5423611", "0.54216987", "0.54212207", "0.54145044", "0.53885394", "0.53756535", "0.53626096", "0.533351", "0.53298587", "0.5288357", "0.5254569", "0.5220982", "0.52142304", "0.5198458", "0.5190491", "0.51862...
0.6905113
0
Create representation of self suitable for printing as yaml. parameter 'what' is a list of identifiers to represent. If 'what' is None (the default) create representation of everything.
def QYFb(YKHO, RcQu=None, xBs1=False): lCxN = list() nvau = YKHO.items_table.get_all_iids() JzsL = sorted(UtS4.keys()) if RcQu is None: RcQu = JzsL + nvau KSo6 = U8Lr() bS0K = U8Lr() Mn5c = list() for Ilxn in RcQu: if Ilxn in JzsL: KSo6.update({Ilxn: UtS4.repr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n tbx9 = YKHO._def.default.copy()\n tbx9.update(YKHO.__dict__)\n mWFP = '%s <%s>' % (YKHO.__class__.__name__, id(YKHO))\n return eJb6.dump({mWFP: tbx9}, default_flow_style=False)", "def zAg0(YKHO):\n KCHu = eJb6.dump(YKHO.kwargs)\n return KCHu", "def PPrA(YKHO):\n return eJ...
[ "0.55833966", "0.54550093", "0.5276736", "0.521372", "0.5172942", "0.5002559", "0.49622858", "0.49501857", "0.49458674", "0.4936505", "0.49297386", "0.49042726", "0.48794362", "0.48764622", "0.48618567", "0.48100471", "0.48056018", "0.47983828", "0.47775626", "0.47549424", "0...
0.5679472
0
Get begin and end indexes set from a timerange.
def Htqq(Kfyd, _9an, Os4s): by6d = fCoM(seconds=1) _9an = o5Ya(_9an) Os4s = o5Ya(Os4s) DMaR = False ymxL = False for d6pt in Kfyd: APUD = o5Ya(str(d6pt)[0:19]) if (APUD == _9an or APUD == _9an - by6d or APUD == _9an - 2 * by6d) and (not DMaR): DMaR = True ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FLO_(YKHO):\n return YKHO._collection.range()", "def nrUB(YKHO) -> set:\n return set(range(YKHO.get_start_offset(), YKHO.get_end_offset()))", "def range(YKHO):\n return (YKHO._start, YKHO._end)", "def zpIh(YKHO, yKcO=None, Os4s=None):\n if YKHO.data.shape[0] == 0 or YKHO.source.data['index']....
[ "0.6778114", "0.66460246", "0.6616168", "0.66057116", "0.6550103", "0.64347667", "0.64192355", "0.63775736", "0.63125205", "0.6302205", "0.62386745", "0.610608", "0.60608566", "0.6057528", "0.6007778", "0.5998904", "0.5998137", "0.59968376", "0.5981551", "0.59734863", "0.5949...
0.54904884
81
Singleton pattern for peewee database instance. Constructs a SqliteDatabase if it does not exist prior. Returns the SqliteDatabase once constructed.
def NMoC(Emd4) -> tdMG: if Emd4.database_instance is None: Emd4.database_instance = tdMG(GPtr.DATABASE_PATH, pragmas={'journal_mode': 'wal'}) return Emd4.database_instance
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GGod():\n pmON = HpPb()\n if pmON is None:\n print('\\n=> Info - Cannot fetch database yet because it has not been configured.\\n')\n else:\n NCls = WhKz(pmON)\n return NCls", "def GGod():\n tlxW = rwhr.top\n if not hasattr(tlxW, 'sqlite_db'):\n tlxW.sqlite_db = iHv...
[ "0.73620254", "0.7175222", "0.7175222", "0.7175222", "0.7141785", "0.71191883", "0.7109138", "0.7087931", "0.70850736", "0.7071741", "0.7071741", "0.7071741", "0.7071741", "0.7071741", "0.7071741", "0.7071741", "0.7071741", "0.7071741", "0.7071741", "0.7071741", "0.7071741", ...
0.8196329
0
Serializes the child of this BaseModel to JSON.
def oD7C(YKHO) -> str: return qQXR.dumps(FZ5p(YKHO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())", "def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)", "def EeSr(YKHO):\n return qQXR.encode(YKHO.__toJSON())", "def Napc(YKHO):\n raise NotImplementedError('Abstract class, implemented in sub class')", "def Xxid(YKHO):\n return qQX...
[ "0.667417", "0.66610754", "0.66419256", "0.64992315", "0.6489627", "0.64782655", "0.64669305", "0.6433289", "0.64069647", "0.64069647", "0.64069647", "0.64069647", "0.64069647", "0.64069647", "0.64069647", "0.64069647", "0.64069647", "0.6399876", "0.6399876", "0.6393897", "0....
0.6854023
0
Returns video duration (as timedelta) using OpenCV
def KZtE(pOV2: str): Fd1k = XC5k.VideoCapture(pOV2) d4yg = Fd1k.get(XC5k.CAP_PROP_FRAME_COUNT) z0YJ = int(d4yg / Fd1k.get(XC5k.CAP_PROP_FPS)) Fd1k.release() return fCoM(seconds=z0YJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WbTE():\n JRmW, WbTE = Jd2p()\n return WbTE", "def JRmW():\n JRmW, WbTE = Jd2p()\n return JRmW", "def oM4s(YKHO):\n return YKHO._video_duration", "def EdTY(YKHO):\n Hv7J = YKHO.get_frame_duration()\n c1sR = YKHO.get_num_frames()\n liRQ = Hv7J * (c1sR - 1)\n return liRQ", "def...
[ "0.8259263", "0.7512502", "0.7271129", "0.7127531", "0.6799536", "0.6612964", "0.6509056", "0.64787006", "0.6435783", "0.6413952", "0.6412262", "0.6336171", "0.63134027", "0.631048", "0.6238117", "0.62136626", "0.62011087", "0.6194046", "0.61937916", "0.61890733", "0.6168518"...
0.77084607
1
Calculates the mean and 95% confidence interval of the roaming distance per weekday.
def WeYp(TOVD): try: zJ6_ = TOVD.pipe(qlhC, ['occupancy', 'time', 'cab_id', 'distance']).pipe(r0yg).pipe(qO1Y).pipe(PpZh).pipe(nIz0).pipe(PGF2) except Exception as error: jpXt(P1dF) return zJ6_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PGF2(jQ3Z):\n XHpn = jQ3Z.groupby('weekday').agg(mean_distance=('day_roam_distance', 'mean'), std_distance=('day_roam_distance', 'std')).assign(upper_95_distance=lambda WKvO: WKvO['mean_distance'] + 2 * WKvO['std_distance'], lower_95_distance=lambda WKvO: WKvO['mean_distance'] - 2 * WKvO['std_distance']).re...
[ "0.6948139", "0.554181", "0.55189836", "0.55054134", "0.54950476", "0.5418375", "0.5390302", "0.5371563", "0.53683645", "0.53584164", "0.53312075", "0.5328421", "0.5328396", "0.53222406", "0.5318221", "0.53150386", "0.52963", "0.5291772", "0.5281941", "0.52799726", "0.5271637...
0.61115235
1
gets a list of tokenized texts and preprocesses each of the token lists
def ojTJ(zw3H): return [PdAK.additional_text_preprocessing_with_pos(qQXR.loads(a1PO)) for a1PO in zw3H]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZvG6(Novh):\n IChv = wr3U(Novh)\n IChv = g8pp(IChv)\n IChv = cQ_D(IChv)\n IChv = iKsa(IChv)\n return IChv", "def wr3U(l5Ny, eOtH):\n l5Ny = [eOtH(WKvO) for WKvO in l5Ny]\n return l5Ny", "def biH0(l5Ny):\n EcVT = []\n WFjr = Dhdw.data.load('tokenizers/punkt/english.pickle')\n f...
[ "0.74095976", "0.7375498", "0.73507947", "0.73410153", "0.7318783", "0.73187006", "0.7307356", "0.72655404", "0.72542626", "0.7253257", "0.71934545", "0.71731776", "0.71676636", "0.71464986", "0.70897746", "0.70891565", "0.7086362", "0.70761913", "0.7044039", "0.702031", "0.7...
0.6566285
82
replaces constructs like '80 M ' with '80 million
def O2Sq(l5Ny): for kUBT in ZbWC.finditer('(£|\\$)([0-9]+(\\.|,))?[0-9]+(m|M) ', l5Ny): xnBO = kUBT.group(0) DIeq = xnBO.replace('m', ' million').replace('M', ' million') l5Ny = l5Ny.replace(xnBO, DIeq) for kUBT in ZbWC.finditer('(£|\\$)([0-9]+(\\.|,))?[0-9]+( |-)(m|M) ', l5Ny): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0SS(vIwR):\n rYO3 = {'s': 1, 'm': 60, 'h': 60 * 60, 'd': 24 * 60 * 60, 'M': 30 * 24 * 60 * 60}\n vIwR = vIwR.replace(' ', '')\n XP5J = ZbWC.compile('(\\\\d+)\\\\s*(\\\\w+)')\n mLGw, PXGI = XP5J.match(vIwR).groups()\n mLGw = float(mLGw)\n return mLGw * rYO3[PXGI]", "def iEOZ(l5Ny):\n l5N...
[ "0.6089818", "0.60644346", "0.5999596", "0.59422946", "0.5825716", "0.57636595", "0.5745309", "0.57207096", "0.56344724", "0.5610153", "0.5605744", "0.5543562", "0.553194", "0.55287933", "0.5495954", "0.5449485", "0.5444823", "0.54323506", "0.54193074", "0.5396418", "0.536349...
0.78205675
0
Adds the response from sending to `req` to this instance's cache.
def RkLW(YKHO, qv1X, _hkX): if YKHO._cache is None: return aadv = Zihr(qv1X.allocateQuotaRequest) with YKHO._cache as Z9rn: wzkt = YKHO._timer() ZfUD = Z9rn.get(aadv) if ZfUD is None: Z9rn[aadv] = SvE9(qv1X, _hkX, YKHO.service_name, wzkt) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gX8C(YKHO, QePW, QpfX):\n QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)\n QpfX.set_details('Method not implemented!')\n raise NotImplementedError('Method not implemented!')", "def p36O(YKHO, QePW, geh0, TBsA=None):\n if geh0.status not in [200, 203]:\n return\n CeMw = QVHy(geh0.headers)\...
[ "0.6607025", "0.65451145", "0.65306133", "0.6466761", "0.63960433", "0.635653", "0.6326779", "0.6148613", "0.6111312", "0.6053187", "0.5909691", "0.58960056", "0.58675075", "0.58621925", "0.58597624", "0.58584046", "0.580072", "0.5647853", "0.56301427", "0.5598802", "0.557375...
0.7467969
0
Check the first name
def EmQW(): c7pe = [] JZXy = LSFv('I001', 'Test', 'Person', 'Pub', 'Abbr') c7pe.append(JZXy) C3ST = bfXJ(c7pe) lHJN = C3ST.data(C3ST.index(0, V9X5.POINTER)) leAC = C3ST.data(C3ST.index(0, V9X5.TITLE)) taDc = C3ST.data(C3ST.index(0, V9X5.AUTHOR)) nu3W = C3ST.data(C3ST.index(0, V9X5.PUBLIS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWrs(YKHO):\n syah = e1yb('janis', 'joplin')\n YKHO.assertEqual(syah, 'Janis Joplin')", "def Butt(YKHO):\n if YKHO.cleaned_data['first_name'] == 'Steve':\n raise sUXu('Steve is a terrible name.')\n return YKHO.cleaned_data['first_name']", "def k2m5(knSv):\n if len(knSv) == 0:\n ...
[ "0.78721845", "0.78536946", "0.75807714", "0.75135154", "0.7482623", "0.74272287", "0.74116176", "0.74116176", "0.7410134", "0.72174627", "0.71941096", "0.7168601", "0.7168601", "0.7159287", "0.7147488", "0.713357", "0.713357", "0.70993817", "0.7075098", "0.70622", "0.7053104...
0.0
-1
Check the first name
def e54O(): c7pe = [] JZXy = LSFv('I001', 'Test', 'Person', 'Pub', 'Abbr') c7pe.append(JZXy) C3ST = bfXJ(c7pe) d6pt = C3ST.index(0, V9X5.AUTOCOMPLETE) _JFl = C3ST.data(d6pt) assert JZXy.pointer not in _JFl assert JZXy.title in _JFl assert JZXy.author in _JFl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWrs(YKHO):\n syah = e1yb('janis', 'joplin')\n YKHO.assertEqual(syah, 'Janis Joplin')", "def Butt(YKHO):\n if YKHO.cleaned_data['first_name'] == 'Steve':\n raise sUXu('Steve is a terrible name.')\n return YKHO.cleaned_data['first_name']", "def k2m5(knSv):\n if len(knSv) == 0:\n ...
[ "0.78721845", "0.78536946", "0.75807714", "0.75135154", "0.7482623", "0.74272287", "0.74116176", "0.74116176", "0.7410134", "0.72174627", "0.71941096", "0.7168601", "0.7168601", "0.7159287", "0.7147488", "0.713357", "0.713357", "0.70993817", "0.7075098", "0.70622", "0.7053104...
0.0
-1
Check the first name
def JD8M(): c7pe = [] JZXy = LSFv('I001', 'Test', '', 'Pub', 'Abbr') c7pe.append(JZXy) C3ST = bfXJ(c7pe) d6pt = C3ST.index(0, V9X5.AUTOCOMPLETE) _JFl = C3ST.data(d6pt) assert ',' not in _JFl assert _JFl == JZXy.title
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWrs(YKHO):\n syah = e1yb('janis', 'joplin')\n YKHO.assertEqual(syah, 'Janis Joplin')", "def Butt(YKHO):\n if YKHO.cleaned_data['first_name'] == 'Steve':\n raise sUXu('Steve is a terrible name.')\n return YKHO.cleaned_data['first_name']", "def k2m5(knSv):\n if len(knSv) == 0:\n ...
[ "0.78721845", "0.78536946", "0.75807714", "0.75135154", "0.7482623", "0.74272287", "0.74116176", "0.74116176", "0.7410134", "0.72174627", "0.71941096", "0.7168601", "0.7168601", "0.7159287", "0.7147488", "0.713357", "0.713357", "0.70993817", "0.7075098", "0.70622", "0.7053104...
0.0
-1
Check the first name
def eFCZ(gJd6): C3ST = bfXJ() assert C3ST.rowCount() == 0 c7pe = [] JZXy = LSFv('I001', 'Test', 'Person', 'Pub', 'Abbr') c7pe.append(JZXy) with gJd6.waitSignals([C3ST.modelAboutToBeReset, C3ST.modelReset]): C3ST.update_list(c7pe) assert C3ST.rowCount() == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWrs(YKHO):\n syah = e1yb('janis', 'joplin')\n YKHO.assertEqual(syah, 'Janis Joplin')", "def Butt(YKHO):\n if YKHO.cleaned_data['first_name'] == 'Steve':\n raise sUXu('Steve is a terrible name.')\n return YKHO.cleaned_data['first_name']", "def k2m5(knSv):\n if len(knSv) == 0:\n ...
[ "0.78721845", "0.78536946", "0.75807714", "0.75135154", "0.7482623", "0.74272287", "0.74116176", "0.74116176", "0.7410134", "0.72174627", "0.71941096", "0.7168601", "0.7168601", "0.7159287", "0.7147488", "0.713357", "0.713357", "0.70993817", "0.7075098", "0.70622", "0.7053104...
0.0
-1
Initialize paths to test data.
def FCbF(YKHO): YKHO.epath = 'flyeye/tests/fixtures' YKHO.dpath = gzes(YKHO.epath, 'disc.silhouette')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.test_data_path = 'testing/test_data/'", "def ghiM():\n nBjD()\n h_xa = Hy7s.getenv(rdul)\n fHZh[m1hO] = h_xa\n fHZh[Atee] = Hy7s.path.join(h_xa, 'everything.db')\n fHZh[kaPC] = Hy7s.path.join(h_xa, 'media')\n fHZh[Fcec] = Hy7s.path.join(h_xa, '.thumbnails')\n zem8(f...
[ "0.7805315", "0.77132314", "0.74002326", "0.71728826", "0.701336", "0.6997882", "0.69027567", "0.6863648", "0.68477726", "0.683999", "0.6838236", "0.6774866", "0.66698486", "0.6631192", "0.6627708", "0.6615241", "0.6588989", "0.6543264", "0.654031", "0.65385973", "0.6538481",...
0.66584104
13
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant.
def rhd_(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1))) rhd_ = COti / (ftZB + nMvt.epsilon()) return rhd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)", "def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU...
[ "0.74886096", "0.7288583", "0.71586555", "0.7152147", "0.70646256", "0.69859505", "0.6964119", "0.6953444", "0.69115317", "0.6834742", "0.68163294", "0.68082", "0.6803787", "0.6803787", "0.6803787", "0.6803787", "0.6803787", "0.6803787", "0.678442", "0.6753822", "0.6753822", ...
0.67563534
25
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected.
def AOzf(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1))) AOzf = COti / (z5jX + nMvt.epsilon()) return AOzf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '...
[ "0.76048744", "0.74474627", "0.74044037", "0.7280602", "0.7209331", "0.7165615", "0.7157494", "0.71449864", "0.71449864", "0.71449864", "0.71449864", "0.71449864", "0.71449864", "0.71315587", "0.7100786", "0.7096806", "0.7096806", "0.7096806", "0.7096806", "0.7096806", "0.709...
0.70626116
41
Returns the target connector
def cLbE(YKHO): Piln = OO3v.api.portal.get_tool('portal_catalog') if not YKHO.context.target_connector: return None PObu = YKHO.context.target_connector YQs6 = Piln(UID=PObu) if not YQs6: return None return YQs6[0].getObject()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQvy(YKHO):\n if '_connector' not in YKHO.__dict__:\n from meerschaum.connectors.parse import parse_instance_keys\n w2B8 = parse_instance_keys(YKHO.connector_keys)\n if w2B8:\n YKHO._connector = w2B8\n else:\n return None\n return YKHO._connector", "def...
[ "0.72617215", "0.6874389", "0.6723173", "0.66188866", "0.63883203", "0.63334686", "0.63330626", "0.6332892", "0.6332446", "0.62914294", "0.6264262", "0.6256718", "0.6234147", "0.6224818", "0.6224818", "0.6224818", "0.6224818", "0.6209229", "0.6208931", "0.6204063", "0.6170707...
0.7769214
0
Checks if the handler given is a python logging handler
def IiAg(gCuF): y6te = ['logging.FileHandler', 'logging.handlers.WatchedFileHanlder', 'logging.handlers.BaseRotatingHandler', 'logging.handlers.RotatingFileHandler', 'logging.handlers.TimedRotatingFileHandler'] if gCuF['class'] in y6te: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y7Ph(bo34, DCgT):\n EmMj = False\n if DCgT.name is None:\n bo34.warning('Request to validate Handler with no name assigned to Logger may result in duplicate Handlers')\n for MKlR in bo34.handlers:\n if MKlR.name == DCgT.name:\n EmMj = True\n break\n return EmMj",...
[ "0.7572654", "0.6650882", "0.64622563", "0.60899866", "0.59798044", "0.5954337", "0.5941885", "0.590424", "0.5841012", "0.57851744", "0.5773176", "0.57414395", "0.5668969", "0.5606005", "0.55735576", "0.5546503", "0.550019", "0.5471278", "0.5467758", "0.5464901", "0.5338712",...
0.701584
1
Gets the block of this ShardingDescriptor.
def XkN1(YKHO): return YKHO._block
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lm_X(YKHO):\n return YKHO._block", "def gR8w(YKHO):\n return YKHO.block.getWorld().getWorld().getBlockAt(YKHO.block.getChunkCoordinates().getX(), YKHO.block.getChunkCoordinates().getY(), YKHO.block.getChunkCoordinates().getZ())", "def AAa3(YKHO, oeNL):\n return CXtY().getBlock(oeNL)", "def gyco(...
[ "0.77434874", "0.7276125", "0.7069824", "0.70385814", "0.6906551", "0.6857931", "0.68110883", "0.67387944", "0.6673568", "0.6583339", "0.65679836", "0.6497697", "0.6437027", "0.6381966", "0.630643", "0.62157804", "0.6210359", "0.6180415", "0.6177731", "0.6161168", "0.6160969"...
0.67555547
7
Gets the shard of this ShardingDescriptor.
def OWrw(YKHO): return YKHO._shard
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OWrw(YKHO):\n return YKHO._shard or YKHO._pubg.shard", "def OWrw(YKHO):\n return YKHO._shard or YKHO._pubg.shard", "def OWrw(YKHO, OWrw: str) -> str:\n return YKHO.shards(OWrw)[OWrw]", "def tERM(YKHO) -> h8nf[int]:\n return YKHO.config_dict.get('marathon_shard', None)", "def mvI0(YKHO) -> q...
[ "0.7583757", "0.7583757", "0.72581464", "0.6743312", "0.6335181", "0.62900907", "0.59414566", "0.59328645", "0.5925991", "0.5825259", "0.57900214", "0.56138045", "0.5563828", "0.5563828", "0.5479832", "0.54783493", "0.54718035", "0.5464915", "0.5430645", "0.5424801", "0.53827...
0.83095074
0
Sets the shard of this ShardingDescriptor.
def OWrw(YKHO, OWrw): YKHO._shard = OWrw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gLmN(YKHO, vVrl):\n vexM = YKHO._clone()\n vexM._shard_id = vVrl\n return vexM", "def OWrw(YKHO):\n return YKHO._shard", "def OWrw(YKHO):\n return YKHO._shard or YKHO._pubg.shard", "def OWrw(YKHO):\n return YKHO._shard or YKHO._pubg.shard", "def OWrw(YKHO, OWrw: str) -> str:\n retu...
[ "0.70981085", "0.57531655", "0.54469067", "0.54469067", "0.5302504", "0.5275912", "0.5187082", "0.5170718", "0.5137663", "0.50790477", "0.5045073", "0.50435185", "0.49664935", "0.49664935", "0.49608743", "0.49571973", "0.4890183", "0.48827276", "0.4856828", "0.4843455", "0.48...
0.81660736
1
Get a list of registered outcomes.
def bd3d(YKHO): return tuple(YKHO._outcomes)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XU5Y(YKHO):\n return [Mkmy.outcome for Mkmy in YKHO.values()]", "def O1gd(YKHO):\n return YKHO._outcomes", "def O1gd(YKHO):\n return YKHO._get_child_page_of_type(V1b7)", "def XU5Y(RAvt):\n O1gd = []\n for BWXx in range(1, RAvt + 1):\n O1gd.append(BWXx)\n return O1gd", "def EZBc...
[ "0.7865927", "0.76783913", "0.6910861", "0.6452454", "0.6219828", "0.6124545", "0.6114586", "0.58568496", "0.58140385", "0.5783376", "0.5778654", "0.56923556", "0.5672136", "0.56580436", "0.5612964", "0.56127524", "0.55676734", "0.55633765", "0.55527395", "0.554113", "0.55142...
0.80368775
0
Write the setup.py of a target. Must be run after writing the contents to the chroot.
def uCCA(YKHO, DNNE, lqn5): Dm88 = DNNE.provides.setup_py_keywords cYu8 = {b'': YKHO.SOURCE_ROOT} cEzT, Cr35, JKCy = YKHO.find_packages(lqn5, YKHO.context.log) if Cr35: Dm88['namespace_packages'] = list(sorted(Cr35)) if cEzT: Dm88.update(package_dir=cYu8, packages=list(sorted(cEzT)),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uCCA(B5PH, jNha):\n J6c4 = F28p(jNha, None, 'setup.py')\n VSaw = Ipxu(B5PH)\n YCnw = open(J6c4, 'w')\n YCnw.write(VSaw)\n YCnw.close()\n _xL1(J6c4, ' +++')", "def uaJi(YKHO, DNNE, lqn5):\n\n def Tjh9(pan_, zZcM):\n lqn5.link(Hy7s.path.join(pan_.target_base, zZcM), Hy7s.path.join(Y...
[ "0.78367716", "0.6960136", "0.61482453", "0.6049324", "0.5919469", "0.58234656", "0.57658184", "0.5753103", "0.574947", "0.5727261", "0.5724334", "0.5702915", "0.5696603", "0.56957155", "0.5665949", "0.56400406", "0.5608588", "0.55815005", "0.5569494", "0.5549162", "0.5541621...
0.7492044
1
Test creation with assessment or task does not exist or not loaded
def p9pU(YKHO, _FKv): fM39 = jth9.deepcopy(_FKv) fM39['targets'][0]['assess']['idontexist'] = {'repetitions': 2} with ZPtw(benchmarks=fM39) as _Fei: with trZe.raises(NotImplementedError) as BQDi: MNFW(_Fei.storage, _FKv['name']).close() assert 'Could not find implementation of Be...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DB59(YKHO):\n with YKHO.assertRaises(GTon):\n xvlF.exists(YKHO.study)", "def yEy2(YKHO):\n pass", "def iq2L(YKHO):\n YKHO.assertFalse(CDsp.exists('Not_a_Sample', YKHO.prep_template))", "def iq2L(YKHO):\n YKHO.assertFalse(bhUR.exists(YKHO.new_study.id))", "def k0mp(YKHO):\n pass", ...
[ "0.68006283", "0.6718425", "0.66599035", "0.66514003", "0.6556511", "0.6553005", "0.65479565", "0.6493211", "0.647975", "0.6459695", "0.64263165", "0.6425159", "0.6421069", "0.6397912", "0.63957447", "0.6389944", "0.63878745", "0.6386961", "0.6366882", "0.63254195", "0.630567...
0.6188104
36
The document referenced by the field should be referenced.
def fjiE(YKHO): Aofo = qQXR.loads(t1cq.objects.to_json()) YKHO.assertListEqual(Aofo, YKHO.data_ref_users)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jyyj(YKHO):\n return YKHO.reference.field", "def RrJl(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'field_ref')", "def WjZY(YKHO):\n return YKHO.document", "def W6_j(YKHO):\n return YKHO.__forDocument", "def LyJ3(YKHO):\n return YKHO._reference", "def aC0l(YKHO):\n return YKHO._refer...
[ "0.6717498", "0.661168", "0.6353911", "0.632464", "0.62897855", "0.6269489", "0.6269489", "0.6269356", "0.6260735", "0.6209555", "0.61666733", "0.6162808", "0.6109474", "0.60762084", "0.6072807", "0.6065001", "0.6047796", "0.59556717", "0.5953771", "0.5918631", "0.5890014", ...
0.0
-1
Get units for this dimension
def _nDu(YKHO, YEnM: Dimension) -> [s_TI]: try: return YEnM.units() except KeyError as e: G9jH.error(str(tTpl)) return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rYO3(YKHO):\n return YKHO._units", "def rYO3(YKHO):\n return YKHO._units", "def rYO3(YKHO):\n return YKHO.__class__.get_setting_units(YKHO.key, **YKHO.get_kwargs())", "def b82i(YKHO):\n return YKHO._units", "def rYO3(YKHO):\n pass", "def _nDu(YKHO):\n return str(YKHO._modeler.GetMod...
[ "0.8416265", "0.8416265", "0.8102911", "0.8088423", "0.80496645", "0.79461956", "0.78997254", "0.78886104", "0.7874107", "0.78550273", "0.785411", "0.783738", "0.7825817", "0.7692756", "0.76852196", "0.76770425", "0.7666032", "0.7634778", "0.7598663", "0.75817645", "0.7569166...
0.766516
17
Computes a new learning rate (learn_rate) for the agent based on ``self.learn_rate_decay_mode``.
def d1xk(YKHO, rVnq, iPGh, I_Yj, tzvm, _NIw, f9TP): if YKHO.learn_rate_decay_mode == 'dabney': if not f9TP: l8Ae = oyIN.dot(tzvm * iPGh - rVnq, I_Yj) if l8Ae < 0: YKHO.learn_rate = oyIN.minimum(YKHO.learn_rate, -1.0 / l8Ae) elif YKHO.learn_rate_decay_mode == 'boya...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fggk(YKHO) -> None:\n YKHO.epsilon = YKHO.initial_epsilon / (1.0 + YKHO.rate_decay * YKHO.n_it)\n return", "def fggk(YKHO) -> None:\n YKHO.epsilon = YKHO.initial_epsilon / (1.0 + YKHO.rate_decay * YKHO.n_it)\n return", "def jsQ2():\n _xMn = vPBo.start_learning_rate\n YPaw = ZylS.cast(ZylS...
[ "0.74117327", "0.74117327", "0.73653096", "0.7282592", "0.72536147", "0.72200483", "0.72187227", "0.7206259", "0.7179045", "0.71668476", "0.7130153", "0.7105896", "0.7104434", "0.70564616", "0.70272994", "0.7022707", "0.6999465", "0.6988827", "0.6926499", "0.69180346", "0.687...
0.7128788
11
Counts down using 1 to min list length+1 indexing and calculates the mean average precision
def eFPE(_2sc='', ZvTQ=ZvTQ, DBcx=DBcx, PJWX=PJWX, WioY=1e-09): TaTP = DBcx.get_activations_for_neuron(ZvTQ) SLsv = TaTP.vector o20L, wjdp = rGJD(ZvTQ, min_selected_x_data=WioY, max_selected_x_data=max(SLsv), acts=DBcx, x_data=SLsv, verbose=PJWX) T8ck = len(o20L) if _2sc == '': Buc1 = o20L[-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qE0M(qFa0, ywwl):\n import numpy as oyIN\n _3JK = oyIN.cumsum(oyIN.insert(qFa0, 0, 0))\n return (_3JK[ywwl:] - _3JK[:-ywwl]) / float(ywwl)", "def inaQ(hcfj):\n sorted(hcfj)\n hcfj.remove(hcfj[0])\n hcfj.remove(hcfj[-1])\n Aofo = 0\n for YRbF in hcfj:\n Aofo += YRbF\n return ...
[ "0.72028774", "0.71003616", "0.70358604", "0.7025029", "0.7003392", "0.6988039", "0.6960753", "0.69208586", "0.6919574", "0.68940306", "0.6865455", "0.68541783", "0.6820655", "0.6796251", "0.6788845", "0.6783548", "0.6772852", "0.67516625", "0.6748478", "0.6732323", "0.672639...
0.6333015
59
Counts down using 1 to min list length+1 indexing and calculates the mean average precision
def DSSx(_2sc='', ZvTQ=ZvTQ, DBcx=DBcx, c25t=c25t, PJWX=PJWX, WioY='', Aq4m=''): TaTP = DBcx.get_activations_for_neuron(ZvTQ) SLsv = TaTP.vector if WioY == '': WioY = min(SLsv) o20L, wjdp = rGJD(ZvTQ, min_selected_x_data=WioY, max_selected_x_data=max(SLsv), acts=DBcx, x_data=SLsv, verbose=PJWX) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qE0M(qFa0, ywwl):\n import numpy as oyIN\n _3JK = oyIN.cumsum(oyIN.insert(qFa0, 0, 0))\n return (_3JK[ywwl:] - _3JK[:-ywwl]) / float(ywwl)", "def inaQ(hcfj):\n sorted(hcfj)\n hcfj.remove(hcfj[0])\n hcfj.remove(hcfj[-1])\n Aofo = 0\n for YRbF in hcfj:\n Aofo += YRbF\n return ...
[ "0.72028774", "0.71003616", "0.70358604", "0.7025029", "0.7003392", "0.6988039", "0.6960753", "0.69208586", "0.6919574", "0.68940306", "0.6865455", "0.68541783", "0.6820655", "0.6796251", "0.6788845", "0.6783548", "0.6772852", "0.67516625", "0.6748478", "0.6732323", "0.672639...
0.0
-1
Wrapper function to calculate the average precision when we have lots of zeros
def ZZT7(Buc1, o20L='', SLsv='', wjdp='', ZvTQ=ZvTQ, DBcx=DBcx, PJWX=PJWX): if o20L == '': o20L, wjdp, SLsv = J_SM(current_neuron_index=ZvTQ, minx=0, acts=DBcx) sAaU = len(SLsv) LFVj = len(o20L) if PJWX: print('Taking all points above 0.0, minimum is {}'.format(min(wjdp))) M3E0, EDNF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uSAa(Mkmy):\n Mkmy = oyIN.asarray(Mkmy) != 0\n yvT9 = [sEak(Mkmy, G1Hx + 1) for G1Hx in range(Mkmy.size) if Mkmy[G1Hx]]\n if not yvT9:\n return 0.0\n return oyIN.mean(yvT9)", "def uSAa(Mkmy):\n Mkmy = oyIN.asarray(Mkmy) != 0\n yvT9 = [sEak(Mkmy, G1Hx + 1) for G1Hx in range(Mkmy.size)...
[ "0.7830643", "0.76902956", "0.76902956", "0.72265667", "0.71731555", "0.705396", "0.6899335", "0.68233114", "0.6804713", "0.67869073", "0.6786465", "0.67715895", "0.67715895", "0.66878515", "0.6670562", "0.66532713", "0.6627304", "0.6562283", "0.65242934", "0.6505691", "0.649...
0.6574474
17
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, Ygso): 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
String representation of the class instance.
def zAg0(YKHO): return 'Tokenizer({type}, {value})'.format(type=YKHO.type, value=repr(YKHO.value))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n sovm = vars(YKHO)\n yvT9 = YKHO.__class__.__name__\n for G1Hx, Ty9i in sovm.items():\n if Ty9i > 0:\n yvT9 += ' : ' + str(G1Hx) + ' = ' + str(Ty9i)\n return yvT9", "def wHJl(YKHO):\n pulk = 'class :' + YKHO.__class__.__name__\n for hkS8 in YKHO.__dict__:\n ...
[ "0.81528825", "0.810694", "0.80485237", "0.7923295", "0.7921949", "0.7921949", "0.7921949", "0.7921949", "0.7921949", "0.7921295", "0.7910681", "0.79043895", "0.79043895", "0.79043895", "0.78848475", "0.78608793", "0.7854687", "0.78356767", "0.7828303", "0.7778142", "0.777691...
0.0
-1
Change the age limit and update the list
def h6ei(YKHO, qoqK): YKHO.limit = qoqK YKHO._prune()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kjC_(YKHO, NI3A):\n YKHO.age = NI3A", "def uqEL(YKHO, uqEL):\n YKHO._max_age = uqEL", "def HaIk(YKHO, ZJe_):\n YKHO.age = ZJe_", "def oPQp(YKHO, BWXx):\n YKHO._age = BWXx", "def uqEL(YKHO, uqEL):\n YKHO._max_age = uqEL", "def kjC_(YKHO, ZJe_):\n YKHO.age = float(ZJe_)", "def jdww(...
[ "0.6704046", "0.6666972", "0.6644926", "0.6640926", "0.65479463", "0.65296185", "0.6529369", "0.65138876", "0.64941657", "0.64941657", "0.6465131", "0.64448273", "0.6385047", "0.62916017", "0.625086", "0.6127694", "0.60917455", "0.6047239", "0.6041119", "0.60013735", "0.59121...
0.5228891
45
Convert the data to a normal list
def mFWN(YKHO): return list(YKHO.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AHvH(YKHO, nPrm):\n ycBG = []\n for ZfUD in nPrm:\n if len(ZfUD) > 2:\n YRbF = 0\n while YRbF < len(ZfUD):\n ycBG.append(ZfUD[YRbF:min(YRbF + 2, len(ZfUD))])\n YRbF += 2\n else:\n ycBG.append(ZfUD)\n nPrm = ycBG\n ycBG = [...
[ "0.72799987", "0.7278574", "0.72407997", "0.7230224", "0.7115344", "0.7086034", "0.69437695", "0.6918134", "0.6901256", "0.68893063", "0.68696356", "0.6869144", "0.68458605", "0.6839517", "0.6834532", "0.6826479", "0.67936456", "0.6793599", "0.67728835", "0.67169946", "0.6667...
0.81269825
0
Clean our tweets using regex. Remove weird characters and links.
def QrZ9(l5Ny): Cddq = l5Ny.lower() return ZbWC.sub('(@[A-Za-z0-9]+)|(#[A-Za-z0-9]+)|([^0-9A-Za-z \t])|(\\w+:\\/\\/\\S+)', '', Cddq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rq7K(Mau6):\n mXDZ = 'http\\\\S+|pic.\\\\S+|@[a-zA-Z0-9_]+|#[a-zA-Z0-9_]+|[‘’“”’–—…]|\\\\xa0'\n return ZbWC.sub(mXDZ, '', Mau6)", "def rq7K(Mau6):\n Mau6 = ZbWC.sub('\\\\w+:\\\\/{2}[\\\\d\\\\w-]+(\\\\.[\\\\d\\\\w-]+)*(?:(?:\\\\/[^\\\\s/]*))*', ' ', Mau6)\n Mau6 = ZbWC.sub('@[^\\\\s]+', '', Mau6)\...
[ "0.84219414", "0.83359104", "0.82979167", "0.82394314", "0.7982481", "0.7969785", "0.79214466", "0.78721297", "0.78099835", "0.7793539", "0.7793539", "0.7771681", "0.774794", "0.7740484", "0.77186424", "0.76957214", "0.76356393", "0.76234305", "0.75391275", "0.74440205", "0.7...
0.7217687
26
All the features should be in the features register.
def EWnf(): assert wmY3.get_id() in HHVs.base.features_registry.keys() assert Osdy.get_id() in HHVs.base.features_registry.keys() assert QcI1.get_id() in HHVs.base.features_registry.keys() assert yQN1.get_id() in HHVs.base.features_registry.keys() assert pCCM.get_id() in HHVs.base.features_registry....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bjQf(YKHO):\n raise NotImplementedError", "def _VSK(YKHO):\n pass", "def fqSd(YKHO):\n YKHO.logger.debug('Enabling all features in all feature classes')\n for cwWz in YKHO.getFeatureClassNames():\n YKHO.enabledFeatures[cwWz] = []\n YKHO.logger.debug('Enabled features: %s', YKHO.enable...
[ "0.78374416", "0.76767546", "0.7469113", "0.7349155", "0.7309751", "0.7266849", "0.7266689", "0.6984151", "0.69206196", "0.6912054", "0.6890018", "0.68580675", "0.68498456", "0.68290204", "0.6804327", "0.67770475", "0.670522", "0.6693841", "0.66857773", "0.6672707", "0.662861...
0.6215909
53
Return color palette from a given scheme
def ModP(ht58: ColorScheme | ColorSchemeShort, tn62: int | str) -> Oi6V: if isinstance(tn62, int): tn62 = MXNc(ht58, tn62) VlDb = PZOV(ht58) return getattr(VlDb, tn62)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pLK7(YKHO) -> KZBZ:\n return KZBZ[YKHO.colour_combo.get().upper()]", "def piB0():\n zNye = QcNK.cm.Blues\n HHi7 = I8kJ.colors.BoundaryNorm(FwCT, zNye.N)\n L3kZ = zNye(HHi7(FwCT))\n VdAn = [L3kZ[YRbF, ..., :-1] for YRbF in range(L3kZ.shape[0])]\n PUuT = I8kJ.colors.ListedColormap(VdAn)\n ...
[ "0.70786625", "0.69059485", "0.6833632", "0.6786311", "0.6746632", "0.67323136", "0.66644156", "0.6538229", "0.65265095", "0.6519304", "0.6495517", "0.648358", "0.6437483", "0.63493925", "0.63164395", "0.6296777", "0.6282252", "0.62815785", "0.62762725", "0.6230058", "0.62144...
0.7758972
0
Return the domain policy.
def fK7f(YKHO, bGrB): UB05 = {'lockOutObservationWindow': (60, 'mins'), 'lockoutDuration': (60, 'mins'), 'maxPwdAge': (86400, 'days'), 'minPwdAge': (86400, 'days'), 'forceLogoff': (60, 'mins')} JUeG = {7: 'Windows Server 2016', 6: 'Windows Server 2012 R2', 5: 'Windows Server 2012', 4: 'Windows Server 2008 R2', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qFaa(YKHO):\n return", "def Qabx(YKHO) -> qe4Y.Output['outputs.ServicePolicy']:\n return qe4Y.get(YKHO, 'policy')", "def Qabx(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'policy')", "def qFaa(YKHO):\n return YKHO.agent.get_policy()", "def Qabx(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get...
[ "0.71584046", "0.7124709", "0.7114782", "0.7037519", "0.7015653", "0.7015653", "0.7015653", "0.6982405", "0.6967254", "0.68876976", "0.679687", "0.679687", "0.679687", "0.6790002", "0.67771", "0.67659557", "0.67659557", "0.6688316", "0.6688316", "0.65851307", "0.65851307", ...
0.69250053
9
Return the list of Group policy objects.
def pJGI(YKHO, bGrB): dixj = YKHO.engine.query(YKHO.engine.GPO_INFO_FILTER(), ['cn', 'displayName']) for oZuk in dixj: print('{cn}: {name}'.format(cn=oZuk['cn'], name=oZuk['displayName']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wFyb(YKHO, IXKo, _5yy=None, H_so=None):\n NArs = {'GroupName': IXKo}\n if _5yy:\n NArs['Marker'] = _5yy\n if H_so:\n NArs['MaxItems'] = H_so\n return YKHO.get_response('ListGroupPolicies', NArs, list_marker='PolicyNames')", "def cuRV(YKHO):\n _hkX, TBsA = YKHO.get(YKHO.get_uri(YK...
[ "0.6820933", "0.6765566", "0.6320396", "0.62198114", "0.60648185", "0.59725827", "0.59391737", "0.58800286", "0.58800286", "0.58707017", "0.58509564", "0.5849724", "0.58346593", "0.5784841", "0.5774335", "0.57719874", "0.574514", "0.56709456", "0.56708425", "0.56602335", "0.5...
0.0
-1
List the authentication policies configured in the Active Directory.
def cfTd(YKHO, B2fa): PJWX = B2fa.get('verbose', False) azoT = AvhY if PJWX else ['cn', 'objectClass'] YKHO.display(YKHO.engine.query(YKHO.engine.AUTH_POLICIES_FILTER(), azoT, base=','.join(['CN=AuthN Policy Configuration,CN=Services,CN=Configuration', YKHO.engine.base_dn])), PJWX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OKeV(YKHO):\n x0hE = YKHO.connect(JBXb)\n return x0hE.list_policies()", "def OKeV(YKHO):\n return YKHO.con.list_policies(Scope='Local')", "def som_(YKHO):\n return YKHO._data.get('policies')", "def som_(YKHO):\n return YKHO._policies", "def Gr3M(YKHO, QePW, jMd6=None):\n GPtr = YKHO.G...
[ "0.72849435", "0.70449686", "0.6701386", "0.66214895", "0.6546823", "0.64185375", "0.63081646", "0.62317467", "0.62317467", "0.6131787", "0.61192256", "0.61073345", "0.61073345", "0.6064667", "0.6038211", "0.6010348", "0.5998391", "0.59846205", "0.59724295", "0.59188837", "0....
0.8040366
0
Add `user` to `group`.
def aW8z(YKHO, B2fa): CBIr = B2fa['user'] uOe2 = B2fa['group'] if YKHO.engine.add_user_to_group(CBIr, uOe2): U34r(f'User {CBIr} sucessfully added to {uOe2}') else: P1dF(f'Unable to add {CBIr} to {uOe2}, check privileges or dn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YiQh(CBIr, uOe2):\n TkY7.run(['usermod', '-a', '-G', CBIr, uOe2])", "def fBrL(CBIr: User, uOe2: Group) -> nQ3j:\n if CBIr.pw_name in uOe2.gr_mem:\n return nQ3j(wHLO.unchanged)\n oUZx(['/usr/sbin/addgroup', CBIr.pw_name, uOe2.gr_name])\n uOe2.gr_mem.append(CBIr.pw_name)\n return nQ3j(wHL...
[ "0.8697254", "0.8595252", "0.8389054", "0.80865586", "0.7991722", "0.7947402", "0.7795021", "0.7704493", "0.7641521", "0.75610435", "0.7524669", "0.7419996", "0.74008846", "0.7341089", "0.73084277", "0.72363085", "0.7196415", "0.7171899", "0.713689", "0.7079735", "0.70770496"...
0.81125003
3
Returns dict with default app of site
def HnGt(qpDA): xUwc = qpDA.Collection for YRbF in range(xUwc.Count): QWcs = xUwc[YRbF].Properties if QWcs['path'].Value == '/': Aofo = dict() Aofo['applicationPool'] = xUwc[YRbF].Properties['applicationPool'].Value Aofo['virtualPath'] = xUwc[YRbF].Collection[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwl_():\n try:\n pmON, mWFP = gCuF.ASGI_APPLICATION.rsplit('.', 1)\n except (ValueError, AttributeError):\n raise rqaQ('Cannot find ASGI_APPLICATION setting.')\n try:\n yR_P = ANWz.import_module(pmON)\n except ImportError:\n raise rqaQ('Cannot import ASGI_APPLICATION mod...
[ "0.6673111", "0.6491351", "0.6459286", "0.6441911", "0.64014465", "0.6388948", "0.6287382", "0.6286357", "0.62150127", "0.61904275", "0.6100807", "0.608777", "0.6072634", "0.60458755", "0.60317475", "0.60145515", "0.6009598", "0.5984199", "0.5978482", "0.5973094", "0.5963709"...
0.7991052
0
Populates a protobuf model from a dictionary.
def _Vfk(XhVs, hkxX, Tllj=IUu2, U3Fm=True): if isinstance(XhVs, LuKW): KAOR = XhVs else: KAOR = XhVs() return Srvx(KAOR, hkxX, Tllj, U3Fm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)", "def jG8h(Emd4, qHj0) -> 'ModelsArray':\n return Evid(qHj0, Emd4)", "def lua0(ahNg: ...
[ "0.63854116", "0.61806536", "0.6163513", "0.6163513", "0.61552805", "0.61552805", "0.61552805", "0.61552805", "0.61552805", "0.61552805", "0.61552805", "0.61552805", "0.61552805", "0.61552805", "0.61552805", "0.61552805", "0.61552805", "0.61552805", "0.61552805", "0.61552805", ...
0.0
-1
Converts this object to a json string
def oD7C(YKHO): return y1pY(YKHO.properties)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oD7C(YKHO) -> str:\n return qQXR.dumps(lKKu(YKHO))", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO....
[ "0.8863865", "0.88475925", "0.88475925", "0.88475925", "0.88475925", "0.88475925", "0.88475925", "0.88475925", "0.88475925", "0.88475925", "0.8706972", "0.86729354", "0.86729354", "0.8671925", "0.8666713", "0.8656854", "0.8652593", "0.8645529", "0.8631205", "0.86138016", "0.8...
0.0
-1
Static method to translate an image dict into a image model.
def SZFh(nPrm): if 'name' not in nPrm or 'engine' not in nPrm: return None return hnIv(name=nPrm['name'], engine=nPrm['engine'], id=nPrm['id'] if 'id' in nPrm else '', parameters=nPrm['parameters'] if 'parameters' in nPrm else {}, capabilities=nPrm['capabilities'] if 'capabilities' in nPrm else {}, node...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, qHj0) -> 'ImageData':\n return gnPz.deserialize_model(qHj0, Emd4)", "def jG8h(Emd4, qHj0) -> 'ImageUpload':\n return gnPz.deserialize_model(qHj0, Emd4)", "def jG8h(Emd4, qHj0) -> 'SapDataIm':\n return gnPz.deserialize_model(qHj0, Emd4)", "def fHWo(mUif):\n VXjJ = hnIv(name=mUif['na...
[ "0.6945973", "0.68697536", "0.57698345", "0.57576877", "0.56775665", "0.5677011", "0.5626081", "0.5620618", "0.5592171", "0.5587613", "0.5567338", "0.5543028", "0.5477308", "0.546878", "0.5465573", "0.5458197", "0.54422987", "0.54414344", "0.5424831", "0.5416388", "0.54127145...
0.6286582
2
Test that passing bad data into the post method returns bad request response.
def _VGi(YKHO): from emotion_emotions.views import RecordEmotions QePW = YKHO.request.post('', data={'image': 'FAKE'}) QePW.user = YKHO.dan tTee = RecordEmotions(request=QePW) geh0 = tTee.post(QePW) YKHO.assertEqual(geh0.content, b'Invalid data.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RqsW(YKHO):\n geh0 = YKHO.post_question(YKHO.invalid_question)\n YKHO.assertEqual(geh0.status_code, 400)", "def ozkZ(YKHO):\n nPrm = {'title': 32, 'rent': 700}\n geh0 = YKHO.client.post('/api/posts', data=qQXR.dumps(nPrm), content_type='application/json', headers=[('Accept', 'application/json')])...
[ "0.7926113", "0.7921885", "0.7845744", "0.77989596", "0.7695387", "0.7666464", "0.76314694", "0.7615459", "0.76126415", "0.7592168", "0.7585458", "0.7567806", "0.7519811", "0.75180626", "0.75070894", "0.74908704", "0.74808395", "0.7460269", "0.7439978", "0.74223423", "0.74136...
0.0
-1
Test that passing bad data into the post method returns bad request response.
def JtKW(YKHO): from emotion_emotions.views import RecordEmotions QePW = YKHO.request.post('', data={'face': 'data:base64,FAKE'}) QePW.user = YKHO.dan tTee = RecordEmotions(request=QePW) geh0 = tTee.post(QePW) YKHO.assertEqual(geh0.content, b'Invalid data.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RqsW(YKHO):\n geh0 = YKHO.post_question(YKHO.invalid_question)\n YKHO.assertEqual(geh0.status_code, 400)", "def ozkZ(YKHO):\n nPrm = {'title': 32, 'rent': 700}\n geh0 = YKHO.client.post('/api/posts', data=qQXR.dumps(nPrm), content_type='application/json', headers=[('Accept', 'application/json')])...
[ "0.79263353", "0.7922944", "0.78462344", "0.7798835", "0.7695336", "0.7665166", "0.76306325", "0.7615403", "0.7611605", "0.7591419", "0.75853825", "0.75698894", "0.75193375", "0.75181186", "0.75056124", "0.7490886", "0.74799466", "0.7460827", "0.7440127", "0.7422171", "0.7415...
0.0
-1
Test that passing bad image into the post method returns bad request response.
def UYx3(YKHO): from emotion_emotions.views import RecordEmotions QePW = YKHO.request.post('', data={'image': 'data:base64,FAKE'}) QePW.user = YKHO.dan with Po4F.object(RecordEmotions, 'get_emotion_data', return_value={'error': {'message': 'Bad API Call'}}): tTee = RecordEmotions(request=QePW) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def grb7(YKHO):\n with open('apps/upload/__init__.py', 'rb') as eHNT:\n Mkmy = m8z6(YKHO.client, 'upload.up_image_async', {'image': eHNT}, args=['questions.Question', 1])\n NaW5(400, Mkmy.status_code)\n GvbD = qQXR.loads(Mkmy.content)\n NaW5('error', GvbD['status'])\n NaW5('Invalid or no imag...
[ "0.8292355", "0.82917565", "0.82409483", "0.81842923", "0.8170253", "0.8157902", "0.8156477", "0.81154734", "0.807839", "0.80757165", "0.7951839", "0.7810697", "0.75786287", "0.747128", "0.70160943", "0.70036095", "0.6999951", "0.6999061", "0.6946313", "0.6938462", "0.6914447...
0.76418674
12
Raises an AssertionError if two array_like objects are not equal. Given two array_like objects, check that the shape is equal and all elements of these objects are equal. An exception is raised at shape mismatch or conflicting values. In contrast to the standard usage in numpy, NaNs are compared like numbers, no assert...
def mDBW(YKHO, n5sN, yRKV, tO9_=''): oyIN.testing.assert_array_equal(x=n5sN, y=yRKV, err_msg=tO9_, verbose=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S8Mo(jzdc, Fg_i, k3Zu='numpy'):\n if not hasattr(Fg_i, 'shape'):\n return jzdc == Fg_i\n if (not hasattr(jzdc, 'shape') or jzdc.shape == ()) and (not hasattr(Fg_i, 'shape') or Fg_i.shape == ()):\n return jzdc == Fg_i\n if jzdc.shape != Fg_i.shape:\n if PJWX:\n print('Sh...
[ "0.7455845", "0.74123824", "0.7393286", "0.73536354", "0.7296088", "0.7286683", "0.7258548", "0.7119014", "0.70943934", "0.7064725", "0.7013488", "0.68885064", "0.6855286", "0.68502074", "0.6845137", "0.6792537", "0.67528343", "0.6709025", "0.668448", "0.66675526", "0.6632160...
0.6390319
35