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
The x coordinate of the upper right corner of the coverage area. This is according to the projection returned by get_projection.
def c7Ro(YKHO): return YKHO._ur_x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vfK1(YKHO):\n vC9B = Hl39.get_second_r(r=YKHO.r.get())\n return int(YKHO.canvas.winfo_width() / (2 * vC9B) - 1)", "def nIKw(YKHO):\n return YKHO._coordinate.get_x()", "def Eruy(YKHO):\n return YKHO.xllcorner + (YKHO.ncols - 1) * YKHO.cellsize", "def WKvO(YKHO) -> float:\n return YKHO.bbox....
[ "0.67362314", "0.6582514", "0.65764666", "0.6557733", "0.65486383", "0.6544727", "0.6539515", "0.6535547", "0.6517552", "0.6513156", "0.6503931", "0.64926577", "0.6471828", "0.64568126", "0.6383666", "0.6383666", "0.63835037", "0.6303584", "0.6288994", "0.6285127", "0.6263150...
0.0
-1
The y coordinate of the upper right corner of the coverage area. This is according to the projection returned by get_projection.
def m5wK(YKHO): return YKHO._ur_y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yDCK(YKHO):\n return YKHO._coordinate.get_y()", "def PVPd(YKHO):\n return YKHO.r + YKHO.y * (YKHO.r + 0.5 * YKHO.side_length)", "def yDCK(YKHO):\n return YKHO.y_coord", "def yDCK(YKHO):\n return YKHO.get_position(1) / 8 * 0.0025", "def LVAh(YKHO) -> float:\n return YKHO.bbox.y", "def G...
[ "0.7514877", "0.744427", "0.73829097", "0.7366213", "0.7302526", "0.72525746", "0.7191179", "0.7171136", "0.7170296", "0.715614", "0.71363527", "0.71028703", "0.70883685", "0.70798206", "0.70770866", "0.70527214", "0.7044766", "0.7014063", "0.70068014", "0.7006777", "0.700007...
0.0
-1
Retrieve the deployment options for this project. Returns None if the options aren't set.
def NMoC(Emd4, bNKA): J87D = bNKA.metadata chVo = J87D.get('deployment') if chVo is None: return None chVo = _1kr(chVo) YSA3 = dict(((H5ew.encode('ascii'), BWXx) for H5ew, BWXx in chVo.items())) return Emd4(bNKA, **YSA3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xAU6(YKHO) -> h8nf[qe4Y.Input['BuildOptionsArgs']]:\n return qe4Y.get(YKHO, 'options')", "def xAU6(YKHO):\n if 'options' in YKHO._config:\n return YKHO._config['options']\n return None", "def _VIQ(YKHO) -> h8nf['outputs.FlexibleAppVersionDeploymentCloudBuildOptions']:\n return qe4Y.get(Y...
[ "0.6851947", "0.68326545", "0.6825722", "0.6794031", "0.65196437", "0.63797706", "0.6322441", "0.6320048", "0.63120043", "0.6311858", "0.6311858", "0.62977254", "0.6265668", "0.6234211", "0.6234211", "0.6224538", "0.62051636", "0.62051636", "0.62051636", "0.62051636", "0.6205...
0.0
-1
adds an object to the current datatabase session
def BdN0(YKHO, YEnM): YKHO.__session.add(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RFVC(Emd4, cuiw, YEnM):\n cuiw.add(YEnM)", "def H2v5(YKHO, YEnM):\n YKHO.session.add(YEnM)", "def H2v5(YKHO, YEnM):\n YKHO.session.add(YEnM)", "def DwJu(KAOR):\n P4t4.logger.info(f'Add object: {KAOR} into DB session')\n NCls.session.add(KAOR)", "def H2v5(YKHO):\n NCls.session.add(YKHO...
[ "0.8093785", "0.8076529", "0.8076529", "0.785671", "0.7700413", "0.76559585", "0.76559585", "0.76559585", "0.76559585", "0.76559585", "0.7648309", "0.7647163", "0.76095", "0.7598727", "0.7462318", "0.74387735", "0.74209934", "0.73426104", "0.7306735", "0.72496736", "0.7247129...
0.7795468
5
Return true if alien is at edge of screen.
def BFll(YKHO): VXOZ = YKHO.screen.get_rect() if YKHO.rect.right >= VXOZ.right: return True elif YKHO.rect.left <= 0: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iUgW(YKHO):\n YKHO.screen_rect = YKHO.screen.get_rect()\n if YKHO.rect.right >= YKHO.screen_rect.right:\n return True\n elif YKHO.rect.left <= 0:\n return True", "def BFll(YKHO):\n VXOZ = YKHO.screen.get_rect()\n if YKHO.rect.right >= VXOZ.right or YKHO.rect.left <= 0:\n r...
[ "0.8246262", "0.7691211", "0.76694286", "0.7661205", "0.7661205", "0.7659779", "0.76526755", "0.7643946", "0.76418626", "0.7640951", "0.76194173", "0.7605148", "0.76035905", "0.74899447", "0.7358662", "0.7333907", "0.73088723", "0.72790134", "0.7234042", "0.7054934", "0.69447...
0.7630501
10
Entropy of a Gaussian variable in bits. H = ent_g(x) returns the entropy of a (possibly multidimensional) Gaussian variable x with bias correction.
def e5ZX(WKvO, OYQH=True, socU=False): WKvO = oyIN.atleast_2d(WKvO) if WKvO.ndim > 2: raise ValueError('x must be at most 2d') m6Iz, WgW2 = WKvO.shape if not socU: WKvO = WKvO - WKvO.mean(axis=1)[:, oyIN.newaxis] Z9rn = oyIN.dot(WKvO, WKvO.T) / float(WgW2 - 1) vpMW = oyIN.linalg....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q0fN(jLbF, PCpl=K4sN.NumpyLinalg):\n lWPh = jLbF.shape[-1]\n return 0.5 * lWPh * (1 + RKD7(2 * PCpl.pi)) + 0.5 * PCpl.det(jLbF)", "def q0fN(yGTL, wEsz):\n lWPh = yGTL.shape[-1]\n assert yGTL.shape == (lWPh,)\n assert wEsz.shape == (lWPh, lWPh)\n jzdc = lWPh * oyIN.log(2 * oyIN.pi) + lWPh\n ...
[ "0.75969267", "0.71862406", "0.71754265", "0.6980418", "0.68025416", "0.6713843", "0.6680042", "0.66593695", "0.65961045", "0.65894914", "0.65695125", "0.65583843", "0.65397614", "0.6506454", "0.64271224", "0.64240915", "0.6422046", "0.64209276", "0.6366051", "0.63549435", "0...
0.6990934
3
GaussianCopula MI between a continuous and a discrete variable. This method is based on ANOVA style model comparison. I = gcmi_model_cd(x,y,Ym) returns the MI between the (possibly multidimensional) continuous variable x and the discrete variable y.
def rS4Q(WKvO, LVAh): WKvO, LVAh = (oyIN.atleast_2d(WKvO), oyIN.squeeze(LVAh)) if WKvO.ndim > 2: raise ValueError('x must be at most 2d') if LVAh.ndim > 1: raise ValueError('only univariate discrete variables supported') if not oyIN.issubdtype(LVAh.dtype, int): raise ValueError('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CRu5(WKvO, LVAh):\n WKvO, LVAh = (oyIN.atleast_2d(WKvO), oyIN.atleast_2d(LVAh))\n if WKvO.ndim > 2 or LVAh.ndim > 2:\n raise ValueError('x and y must be at most 2d')\n m6Iz, WgW2 = WKvO.shape\n if LVAh.shape[1] != WgW2:\n raise ValueError('number of trials do not match')\n UV8M, vH...
[ "0.7421499", "0.6681633", "0.6153309", "0.61395043", "0.5882873", "0.5859902", "0.57685614", "0.57457817", "0.5714287", "0.55381095", "0.55346894", "0.5530964", "0.54427767", "0.5385946", "0.5365489", "0.5337676", "0.52772796", "0.52368915", "0.5231844", "0.5230437", "0.51896...
0.76463634
0
Mean squared error measures the average of the square of the errors (the average squared difference between the estimated values and what is
def SDab(GMPf, x6A0): YAq3 = 0 for YRbF in range(len(GMPf)): yk4i = pow(x6A0[YRbF] - GMPf[YRbF], 2) YAq3 += yk4i exwG = 1 / GMPf.shape[0] GERS = exwG * YAq3 return GERS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SDab(P1dF):\n return oyIN.average(P1dF ** 2)", "def FSiB(P1dF):\n return oyIN.square(oyIN.average(P1dF))", "def SDab(YKHO):\n r8hN = YKHO.y_actual.shape[0]\n hkHB = YKHO.sum_of_squares_of_residuals()\n return hkHB / r8hN", "def iAxY(UAju):\n return JBMS([P1dF ** 2 for P1dF in UAju]) ** ...
[ "0.7796593", "0.7765048", "0.77315176", "0.7439384", "0.73991233", "0.7355681", "0.7343894", "0.7327365", "0.7286838", "0.7280541", "0.7280541", "0.7280541", "0.7251544", "0.71876746", "0.71485174", "0.7133014", "0.7108556", "0.7108238", "0.70923156", "0.708589", "0.70564336"...
0.7183503
14
Pick GPU if available, else CPU
def XXJM(): if ht2j.cuda.is_available(): return ht2j.device('cuda') else: return ht2j.device('cpu')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O71Z():\n if Sdxo():\n yIrk = QHwK()\n print(f'Torch is using GPU: {ueYb(yIrk)}')\n else:\n print('Cuda is not available. Torch is using CPU')", "def VGCm(YKHO):\n YKHO.use_gpu = False", "def vxYq():\n return ht2j.device('cuda' if ht2j.cuda.is_available() else 'cpu')", "d...
[ "0.79492784", "0.75592214", "0.74498594", "0.7411322", "0.73167455", "0.73157775", "0.72381717", "0.7224273", "0.7221585", "0.7200139", "0.7192689", "0.71479416", "0.7130736", "0.7116391", "0.7114478", "0.70849043", "0.704257", "0.703302", "0.6995377", "0.69890064", "0.698900...
0.6679735
50
Generate a random, unique order number using UUID
def D9Ky(YKHO): return qxeD.uuid4().hex.upper()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F_2g(YKHO):\n return qxeD.uuid4().hex.upper()", "def F_2g(YKHO):\n return qxeD.uuid4().hex.upper()", "def F_2g(YKHO):\n return qxeD.uuid4().hex.upper()", "def F_2g(YKHO):\n return qxeD.uuid4().hex.upper()", "def F_2g(YKHO):\n return qxeD.uuid4().hex.upper()", "def NUN2() -> str:\n r...
[ "0.8273056", "0.8273056", "0.8273056", "0.8273056", "0.8273056", "0.8159209", "0.77565837", "0.7393797", "0.7347239", "0.732532", "0.7312001", "0.7292676", "0.728752", "0.7284037", "0.7276838", "0.72473454", "0.72422034", "0.7241659", "0.7193534", "0.7192971", "0.71824116", ...
0.0
-1
Calculate the standard squared error of the model.
def Ptm0(M_NZ, EcVT, LVAh): uN02 = M_NZ.predict(EcVT) Ptm0 = oyIN.sum((uN02 - LVAh) ** 2) return Ptm0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iAxY(W061, C3ST):\n from sklearn.metrics import mean_squared_error\n return oyIN.sqrt(mean_squared_error(W061, C3ST))", "def hk69(YKHO):\n return epAf.sqrt(YKHO.standardError2())", "def hk69(fuBA, qYGl, EcVT):\n import numpy as oyIN\n O4Yu = len(fuBA)\n iBYJ = EcVT.shape[1]\n hkHB = (e...
[ "0.7531861", "0.71792746", "0.7154432", "0.7076048", "0.70256776", "0.7002073", "0.6951857", "0.69342047", "0.6917012", "0.6902563", "0.6899986", "0.68755656", "0.68601185", "0.68370086", "0.68091786", "0.6805413", "0.6803414", "0.6787632", "0.6767764", "0.6759122", "0.675559...
0.0
-1
Calculate standard error for beta coefficients.
def QzWM(M_NZ, EcVT, LVAh): exwG = EcVT.shape[0] mSn1 = oyIN.hstack((oyIN.ones((exwG, 1)), oyIN.matrix(EcVT))) Wr5E = Zxt2.linalg.sqrtm(Wbxz.mean_squared_error(LVAh, M_NZ.predict(EcVT)) * oyIN.linalg.inv(mSn1.T * mSn1)) return oyIN.diagonal(Wr5E)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uJP3(UqYS):\n return (Zxt2.special.gamma(1 + 2.0 / UqYS) - Zxt2.special.gamma(1 + 1.0 / UqYS) ** 2) ** 0.5", "def Whkx(**NArs):\n return oyIN.sqrt(NArs['alpha'] ** 2 + 2 * NArs['sigma'] ** 2)", "def P1dF(Cwt5: float, UqYS: float, kidU: float, me_t: float) -> float:\n return YEmv(Cwt5, UqYS, kidU) ...
[ "0.686534", "0.6760566", "0.6659717", "0.6645792", "0.6604764", "0.65876955", "0.65676546", "0.65335923", "0.64731425", "0.6471393", "0.638229", "0.63605267", "0.6326859", "0.6268931", "0.62663627", "0.62545216", "0.62367636", "0.62325716", "0.6211228", "0.6207145", "0.619265...
0.0
-1
Calculate tstatistic for beta coefficients.
def ZFxJ(M_NZ, EcVT, LVAh): jzdc = oyIN.array(M_NZ.intercept_ / QzWM(M_NZ, EcVT, LVAh)[0]) Fg_i = oyIN.array(M_NZ.coef_ / QzWM(M_NZ, EcVT, LVAh)[1:]) return oyIN.append(jzdc, Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tYIh(YKHO):\n a1PO = YKHO._tstat_all()\n a1PO = a1PO[1:] if a1PO.ndim == 1 else a1PO[:, 1:]\n return a1PO", "def tYIh(YKHO, T1WL, **B2fa):\n return YKHO.CAPM(T1WL, **B2fa).tstat_beta", "def f7lX(Kt_s, KMvS, N63E, DEzW, suzl):\n b8V_(f7lX)\n X0JK = Kt_s * suzl[DEzW[N63E]]\n hvip = -X0JK...
[ "0.81575865", "0.77490044", "0.6908035", "0.68265224", "0.6784623", "0.676332", "0.67206645", "0.6641905", "0.65074915", "0.6460551", "0.6442983", "0.63810617", "0.6363655", "0.629712", "0.62641466", "0.6247355", "0.6235901", "0.6227983", "0.6201076", "0.61809254", "0.6179914...
0.0
-1
Compare `types.GenericAlias` with its numpybased backport. Checker whether ``func`` runs as intended and that both `GenericAlias` and `_GenericAlias` return the same result.
def ps5X(YKHO, mWFP: str, JfyU: FuncType) -> None: BWXx = JfyU(eWuY) if HwRy.version_info >= (3, 9): Terw = JfyU(o4FL) assert BWXx == Terw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XoBr(mWFP='xp'):\n\n def mrMx(m5hN):\n\n @xBlr.wraps(m5hN)\n def Iw6c(YKHO, *qIxc, **B2fa):\n B2fa[mWFP] = fOcU.numpy\n jtpg = m5hN(YKHO, *qIxc, **B2fa)\n B2fa[mWFP] = XTiz\n nHey = m5hN(YKHO, *qIxc, **B2fa)\n assert nHey == jtpg\n ...
[ "0.5940281", "0.59260195", "0.5802822", "0.5676694", "0.56079334", "0.55856013", "0.5362779", "0.5359573", "0.53350145", "0.5259866", "0.5226115", "0.522129", "0.51773", "0.51371455", "0.51180804", "0.50612026", "0.5044851", "0.5023139", "0.5016251", "0.50039786", "0.49922115...
0.60151386
0
Returns the value of the card.
def BWXx(YKHO, Ma1a): return int(YKHO.rank)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n return YKHO.__card_value", "def dMj6(YKHO):\n return YKHO.value", "def Zmkp(dxhl):\n return dxhl[0]", "def Zmkp(YKHO):\n return YKHO.hand.get_value()", "def GZrL(Emd4, dxhl):\n hkxX = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1]\n SOXX = ['clubs', 'diamonds', 'spades', 'h...
[ "0.90808", "0.9052828", "0.856056", "0.8027253", "0.78718215", "0.7746367", "0.7473902", "0.7401511", "0.7393664", "0.7393664", "0.7392593", "0.7250909", "0.71995294", "0.71904904", "0.71904904", "0.71231455", "0.7122563", "0.71201974", "0.710244", "0.7096007", "0.7096007", ...
0.0
-1
Returns True is the suit is black.
def ByNG(YKHO): return YKHO.suit == VXct.Clubs or YKHO.suit == VXct.Spades or YKHO.suit == VXct.Black
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EHQE(BWXx):\n return 19 < BWXx and BWXx < 26", "def PLTT(YKHO):\n if YKHO.hasAce() == True:\n YKHO.ace()\n if YKHO.score == 21:\n return True\n else:\n return False\n else:\n return False", "def gFyq(YKHO):\n return YKHO.count() == SkTj and len(...
[ "0.7323904", "0.7080966", "0.6889217", "0.6878388", "0.68310595", "0.670604", "0.6686794", "0.66699326", "0.65567803", "0.6540793", "0.65384626", "0.64536095", "0.6387758", "0.6355139", "0.63462496", "0.6334654", "0.6281063", "0.62465674", "0.62147033", "0.6150561", "0.612580...
0.84593505
0
Add a card to the top of the pile.
def _jXH(YKHO, dxhl): YKHO.cards.insert(0, dxhl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eDV0(YKHO, dxhl):\n dxhl.owner = YKHO.owner\n YKHO.stack = [dxhl] + YKHO.stack\n YKHO.left = len(YKHO.stack)\n YKHO.top = YKHO.stack[0]\n if YKHO.left == 1:\n YKHO.bottom = YKHO.top", "def AZnT(YKHO, dxhl):\n YKHO.cards.insert(0, dxhl)", "def wjOP(YKHO, dxhl, Rci7='TOP'):\n if R...
[ "0.76800704", "0.74033797", "0.73534656", "0.73162776", "0.7286687", "0.7231335", "0.6968274", "0.69130003", "0.69074845", "0.69028795", "0.69007236", "0.68963516", "0.68963516", "0.6856238", "0.6836155", "0.68165785", "0.68111163", "0.68080515", "0.68080515", "0.68080515", "...
0.74133414
1
Returns a copy of the player with player_num.
def nAM4(YKHO, _ym3): return YKHO.players[_ym3]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BNnX(YKHO):\n oyg0 = YKHO.players[0]\n YKHO.players.append(YKHO.players.pop(0))\n return oyg0", "def jth9(YKHO) -> mVZ4:\n raise NotImplementedError", "def ECBq(YKHO):\n eQSh = dict([(G1Hx, getattr(YKHO, G1Hx, 0)) for G1Hx in cAey])\n _oWe = dnt1(YKHO._db, YKHO.gsis_id, YKHO.drive_id, YKH...
[ "0.69726497", "0.6921142", "0.6892492", "0.6885249", "0.68635756", "0.6652233", "0.65751106", "0.64942986", "0.64931583", "0.64931583", "0.64931583", "0.6442062", "0.63926065", "0.63858056", "0.63816637", "0.6372457", "0.6336156", "0.63335234", "0.63042796", "0.6261132", "0.6...
0.7719156
0
Gets the next player number for the round. If not continuous, stopping when dealer has completed their turn. Returns 1 if the round has finished.
def OJNt(YKHO): if YKHO.round_clockwise: YKHO.round_next_player += 1 else: YKHO.round_next_player -= 1 YKHO.round_next_player %= len(YKHO.players) if YKHO.round_one_shot and YKHO.round_start_player == YKHO.round_next_player: YKHO.round_next_player = -1 return YKHO.round_next_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fPh4(YKHO):\n XP62 = YKHO.move_cnt[0] + YKHO.move_cnt[1]\n if XP62 in [0, 1, 4, 5, 8]:\n return 1\n else:\n return 0", "def Zia_(YKHO):\n YKHO.current_player += 1\n if YKHO.current_player > len(YKHO.players) - 1:\n YKHO.current_player = 0\n return YKHO.players[YKHO.curr...
[ "0.69157887", "0.6832605", "0.6756555", "0.67401", "0.6727059", "0.66103536", "0.65947807", "0.64302254", "0.6390274", "0.6357669", "0.6338799", "0.63181", "0.6300503", "0.6263811", "0.6224527", "0.61983794", "0.61852473", "0.6121636", "0.6098575", "0.6041572", "0.6040511", ...
0.844826
0
Return the current game state.
def lVlK(YKHO, QePW): BH3N = GB4p(QePW.urlsafe_game_key, _apf) if BH3N: return BH3N.to_form('Here is the requested game') else: raise wnQ_.NotFoundException('Game not found!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja6o(YKHO):\n return YKHO.game.get_state()", "def j3Sc(YKHO):\n return YKHO._game_state", "def j3Sc(YKHO):\n return YKHO._game_state", "def j3Sc(YKHO):\n return YKHO._game_state", "def j3Sc(YKHO):\n return YKHO._game_state", "def j3Sc(YKHO):\n return YKHO._game_state", "def j3Sc(Y...
[ "0.8922343", "0.873454", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.8323791", "0.82353854", "0.8165055", "0.8154852", "0.8044036", "0....
0.0
-1
attempt to cast the column as the schema data type
def mLVb(jQ3Z, z0q4, SLLj): for d6pt, rdlD in jQ3Z.iterrows(): BWXx = rdlD[z0q4] try: SLLj(rdlD[z0q4]) except ValueError as e: raise ValueError(f'Error in row {d6pt + 1}, value {BWXx}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRpw(jQ3Z, Jyyj, v6m9):\n return jQ3Z.withColumn(Jyyj, jQ3Z[Jyyj].cast(v6m9))", "def EzuV(wEf2: str) -> uLKX[str, float, int]:\n try:\n return int(wEf2)\n except ValueError:\n try:\n return float(wEf2)\n except ValueError:\n return wEf2", "def dfQT(jQ3Z, ...
[ "0.7365624", "0.70694804", "0.705869", "0.70458233", "0.7001601", "0.6915334", "0.6905088", "0.683577", "0.6712023", "0.66788983", "0.6637018", "0.66369134", "0.6616893", "0.66002977", "0.6594505", "0.654299", "0.65197873", "0.6515151", "0.6507275", "0.6497456", "0.6492074", ...
0.6702149
9
Add this Person to the database
def kW6C(YKHO): print('adding ' + YKHO.name + ' to persons.db') YE_N.insert(YKHO.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def kW6C(a70H: str):\n eHpk = y2U9(h8Lu, poolclass=CvqV)\n cuiw = FJ3D()\n cuiw.configure(bind=eHpk)\n KCHu = cuiw()\n wAvE = ''\n mWFP = ''\n ...
[ "0.7567232", "0.7557436", "0.74959743", "0.7374551", "0.7374551", "0.7374551", "0.7361755", "0.7323009", "0.7298527", "0.7203106", "0.7086186", "0.70424783", "0.7039302", "0.69785416", "0.6978048", "0.6978048", "0.6968625", "0.6968625", "0.6968625", "0.6968625", "0.6968625", ...
0.87182367
0
plot precision recall curve. can add to an existing figure, or create a new one
def UeuP(rhd_: Iterable[float], AOzf: Iterable[float], gwAu: List[float], LZpg: figure=None, qfpW: str='blue', Dy_V=None) -> PueT: if LZpg is None: gAfp = Rfhs(tooltips=[('recall', '$x{%0.2f}'), ('precision', '$y{%0.2f}'), ('threshold', '@threshold{%0.2f}')]) bWeC = 'pan, wheel_zoom, box_zoom, reset...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MxSO(rhd_, AOzf):\n LZpg = QrM1.figure()\n QrM1.plot(AOzf, rhd_, 'r-')\n QrM1.xlabel('Recall')\n QrM1.ylabel('Precision')\n QrM1.axis([0, 1, 0, 1.1])\n return LZpg", "def j2En(rhd_, AOzf):\n QrM1.step(AOzf, rhd_, color='b', alpha=0.2, where='post')\n QrM1.fill_between(AOzf, rhd_, step...
[ "0.8215259", "0.81338966", "0.7964392", "0.786414", "0.7750339", "0.7722129", "0.76228875", "0.75824493", "0.75535303", "0.7504129", "0.7490546", "0.7477887", "0.74143994", "0.7374816", "0.73410815", "0.733859", "0.72956127", "0.7294794", "0.72780097", "0.7262833", "0.7166139...
0.6659389
32
plot precision recall curve. can add to an existing figure, or create a new one
def jmww(BNgt: Iterable[float], Y8eF: Iterable[bool], LZpg: figure=None, qfpW: str='blue', Dy_V='Default') -> PueT: rhd_, AOzf, Nhxk = ChHV(Y8eF, BNgt) return UeuP(rhd_, AOzf, Nhxk, LZpg, qfpW, Dy_V)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MxSO(rhd_, AOzf):\n LZpg = QrM1.figure()\n QrM1.plot(AOzf, rhd_, 'r-')\n QrM1.xlabel('Recall')\n QrM1.ylabel('Precision')\n QrM1.axis([0, 1, 0, 1.1])\n return LZpg", "def j2En(rhd_, AOzf):\n QrM1.step(AOzf, rhd_, color='b', alpha=0.2, where='post')\n QrM1.fill_between(AOzf, rhd_, step...
[ "0.8216205", "0.81335336", "0.79651606", "0.78652424", "0.77514184", "0.7723499", "0.7624306", "0.7582789", "0.75537956", "0.7504451", "0.74909943", "0.7478808", "0.74158347", "0.737484", "0.7341768", "0.7340439", "0.72964245", "0.7295453", "0.72791827", "0.7263429", "0.71671...
0.0
-1
nco_phase_offs that is applied to this port.
def _qqI(YKHO): if YKHO.module.device: YKHO._settings.nco_phase_offs = YKHO.module.device.sequencers[YKHO.sequencer_number].get(f'nco_phase_offs') return YKHO._settings.nco_phase_offs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XekQ(YKHO):\n return YKHO.n_steps // 2", "def yMaB(YKHO):\n return YKHO.unifier.nouts", "def dgh4(YKHO):\n return -3.0 * (2.0 * YKHO._dlnsdlnm + 1.0)", "def RnoT(YKHO) -> int:\n return YKHO._phases", "def JT9N(YKHO):\n return 0", "def d_PO(YKHO):\n exwG = cHPo.num_phases(YKHO._handl...
[ "0.60536206", "0.59286255", "0.58844155", "0.5849785", "0.5845695", "0.57628024", "0.5762135", "0.5749377", "0.5706352", "0.5697518", "0.56961113", "0.56791466", "0.56618917", "0.56553864", "0.56190366", "0.5609142", "0.56058365", "0.5555563", "0.5521433", "0.5512051", "0.550...
0.832753
0
The name of the resource group.
def TRLE(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def mWFP(YKHO):\n return YKHO._group.name", "def TRLE(YKHO) -> qe4Y.Output[str]:\n ...
[ "0.87936693", "0.87936693", "0.85443246", "0.8479784", "0.8421229", "0.8421229", "0.8421229", "0.8421229", "0.8421229", "0.8421229", "0.8421229", "0.8421229", "0.8421229", "0.8421229", "0.8421229", "0.8421229", "0.8421229", "0.8421229", "0.8421229", "0.8421229", "0.8421229", ...
0.8175612
41
The name of the resource that is unique within a resource group. This name can be used to access the resource.
def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kFeU(YKHO):\n return YKHO.__resource_name", "def mWFP(YKHO):\n return YKHO._resource_name", "def kFeU(YKHO):\n return YKHO._resource_name", "def kFeU(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_name')", "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def T...
[ "0.8516745", "0.83839923", "0.82999766", "0.82440174", "0.81278634", "0.81278634", "0.8036093", "0.7747355", "0.77032214", "0.77032214", "0.76457596", "0.76457596", "0.76457596", "0.76457596", "0.76457596", "0.76457596", "0.76457596", "0.76457596", "0.76457596", "0.76457596", ...
0.0
-1
Priority of the Firewall Policy Rule Group resource.
def Ey19(YKHO) -> h8nf[qe4Y.Input[int]]: return qe4Y.get(YKHO, 'priority')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DBen(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'priority_group')", "def DBen(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'priority_group')", "def DBen(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'priority_group')", "def DBen(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'priority_group')", ...
[ "0.74456334", "0.74456334", "0.74456334", "0.74456334", "0.69152516", "0.6898715", "0.67777115", "0.67777115", "0.67777115", "0.67777115", "0.67777115", "0.67777115", "0.67777115", "0.67777115", "0.67772824", "0.6764585", "0.6764585", "0.6764585", "0.6764585", "0.6720992", "0...
0.64031243
42
The name of the FirewallPolicyRuleGroup.
def CBwp(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'rule_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CBwp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'rule_group_name')", "def TkBr(YKHO) -> str:\n return qe4Y.get(YKHO, 'policy_group_name')", "def IXKo(YKHO):\n return YKHO._config['group']", "def XNTy(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'firewall_rule_group_id')", "def ...
[ "0.8004058", "0.7623334", "0.7010918", "0.69992733", "0.6980693", "0.69284785", "0.68235487", "0.67372966", "0.67356735", "0.6719531", "0.6669531", "0.66659", "0.6598333", "0.65975034", "0.65975034", "0.6592443", "0.6577951", "0.65169346", "0.6511173", "0.6476402", "0.6437202...
0.7866506
1
The name of the resource that is unique within a resource group. This name can be used to access the resource.
def mWFP(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kFeU(YKHO):\n return YKHO.__resource_name", "def mWFP(YKHO):\n return YKHO._resource_name", "def kFeU(YKHO):\n return YKHO._resource_name", "def kFeU(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_name')", "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def T...
[ "0.8514912", "0.8381906", "0.8297575", "0.82413703", "0.8126673", "0.8126673", "0.8034148", "0.7745426", "0.77009", "0.77009", "0.7644349", "0.7644349", "0.7644349", "0.7644349", "0.7644349", "0.7644349", "0.7644349", "0.7644349", "0.7644349", "0.7644349", "0.7644349", "0.7...
0.0
-1
Priority of the Firewall Policy Rule Group resource.
def Ey19(YKHO) -> qe4Y.Output[h8nf[int]]: return qe4Y.get(YKHO, 'priority')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DBen(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'priority_group')", "def DBen(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'priority_group')", "def DBen(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'priority_group')", "def DBen(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'priority_group')", ...
[ "0.74456334", "0.74456334", "0.74456334", "0.74456334", "0.69152516", "0.6898715", "0.67777115", "0.67777115", "0.67777115", "0.67777115", "0.67777115", "0.67777115", "0.67777115", "0.67777115", "0.67772824", "0.6764585", "0.6764585", "0.6764585", "0.6764585", "0.6720992", "0...
0.63507044
65
The provisioning state of the firewall policy rule group resource.
def mX_9(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'provisioning_state')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eA9P(**bGrB):\n BfDw.validate_node_property(uwaB.SECURITY_GROUP_KEY, OaeV.node.properties)\n uOlS = BfDw.get_azure_config(OaeV)\n JuHa = uOlS[uwaB.SUBSCRIPTION_KEY]\n TRLE = uOlS[uwaB.RESOURCE_GROUP_KEY]\n clva = uwaB.AZURE_API_VERSION_05_preview\n RIk_ = OaeV.node.properties[uwaB.SECURITY_GR...
[ "0.6667615", "0.64636976", "0.64636976", "0.64636976", "0.64636976", "0.64636976", "0.64636976", "0.64636976", "0.64636976", "0.64636976", "0.64636976", "0.64636976", "0.64636976", "0.64636976", "0.64636976", "0.64636976", "0.64636976", "0.64636976", "0.64636976", "0.64636976",...
0.63865423
56
Aot Autograd fw_compiler and bw_compiler can have fake tensors. So, example_inputs can be fake tensors. We can call compiler_fn (which is inductor or nvfuser) with fake tensors but the actually compiled_fn should be called with real tensors. Therefore, the actual invocation is deferred.
def qsoH(Wt6p): ZckT = l0IZ() _WRb = [ZckT.from_tensor(WKvO) if isinstance(WKvO, ht2j.Tensor) else WKvO for WKvO in Wt6p] if GPtr.repro_level == 3: UeSY(AOlJ.GraphModule(Ggxb, NoyR), Wt6p, iEeZ) if GPtr.repro_level == 4: if iEeZ != 'inductor': raise NotImplementedError('Accur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BzyY(tc9B, iEeZ: str):\n\n @xBlr.wraps(tc9B)\n def eVKY(Ggxb, kOfj, **B2fa):\n from torch._subclasses import FakeTensorMode\n ZZur = xBlr.partial(tc9B, **B2fa)\n from torch._functorch.aot_autograd import get_aot_graph_name\n WGQj = get_aot_graph_name()\n NoyR = jth9.dee...
[ "0.71395695", "0.60092926", "0.5743764", "0.5730603", "0.56670994", "0.56222486", "0.5610127", "0.5585712", "0.55753285", "0.5543979", "0.55153877", "0.55006176", "0.5452892", "0.54434186", "0.54419535", "0.5416813", "0.54032576", "0.5389143", "0.5387943", "0.538335", "0.5374...
0.70609397
1
Rotates a 3D vector by the angle theta about the z axis
def jLZ7(UqpO, q7In, Y_1E=False): if not Y_1E: q7In = oyIN.radians(q7In) sSN_ = oyIN.cos(q7In) EuFP = oyIN.sin(q7In) LaXt = oyIN.array([[sSN_, EuFP, 0.0], [-EuFP, sSN_, 0.0], [0.0, 0.0, 1.0]]) return oyIN.matmul(UqpO, LaXt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jHuL(iArr, q7In):\n A3Vt = oyIN.array([[oyIN.cos(q7In), -oyIN.sin(q7In), 0], [oyIN.sin(q7In), oyIN.cos(q7In), 0], [0, 0, 1]])\n return oyIN.dot(A3Vt, iArr)", "def jHuL(iArr, q7In):\n A3Vt = oyIN.array([[oyIN.cos(q7In), -oyIN.sin(q7In), 0], [oyIN.sin(q7In), oyIN.cos(q7In), 0], [0, 0, 1]])\n return...
[ "0.8070867", "0.8005288", "0.8001826", "0.78876907", "0.78639317", "0.7578155", "0.75188726", "0.7504203", "0.7453717", "0.7412891", "0.736171", "0.73575157", "0.73169696", "0.7264083", "0.7264083", "0.71519995", "0.71441925", "0.7135083", "0.7134901", "0.7132396", "0.7123017...
0.6864516
36
Creates a 3d convolutional layer for TensorFlow
def GzgZ(FRUf, rrBf, *, he5B, QJWG, _0fC, hVLt='VALID', YOEr=1.0, wH3T='NDHWC', CpJZ=False): if isinstance(QJWG, list) or isinstance(QJWG, tuple): assert len(QJWG) == 3, 'Filter size must have 2 elements (height, width), {} were given'.format(len(QJWG)) St08 = QJWG[0] l7WZ = QJWG[1] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sx6c(FRUf, KUnM, Ot1W, mWFP, FEri=(1, 1, 1), dvgN='same', YDYE=ZylS.nn.relu, e5sz=True, LT6S=True):\n with ZylS.variable_scope(mWFP):\n aIXl = ZylS.layers.conv3d(FRUf, filters=KUnM, kernel_size=Ot1W, strides=FEri, use_bias=e5sz, name='conv3d', padding=dvgN)\n aIXl = YDYE(aIXl)\n return aIXl...
[ "0.8005931", "0.7897568", "0.7886969", "0.77413005", "0.7641851", "0.74663633", "0.72756547", "0.7202822", "0.71555775", "0.71388674", "0.7132517", "0.7123342", "0.71132386", "0.71121144", "0.710503", "0.7100522", "0.7100522", "0.7096398", "0.70936507", "0.7080196", "0.708019...
0.0
-1
Remove potentially sensitive fields from the Mobilize America API event response. This method is required because we fetch events using the authenticated GET /events API, which can return private fields that we don't want to serve
def ICYf(pB3N): Rci7 = pB3N.pop('location', None) u7Ai = pB3N.pop('address_visibility', None) YpNQ = {G1Hx: Ty9i for G1Hx, Ty9i in pB3N.items() if G1Hx in n8du} if u7Ai == Sb1N: YpNQ['location'] = Rci7 elif Rci7 and Rci7.get('postal_code'): xISQ = oKQe.matching(Rci7.get('postal_code'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rYty(YKHO, tvqc):\n return {H5ew: tvqc[H5ew] for H5ew in tvqc.keys() if H5ew not in YKHO.context_fields}", "def rYty(YKHO, tvqc):\n return {H5ew: tvqc[H5ew] for H5ew in tvqc.keys() if H5ew not in YKHO.context_fields}", "def eLSJ(nPrm: dict):\n ugM4 = ('password', 'response', 'user_responses')\n ...
[ "0.652293", "0.652293", "0.62174577", "0.61427695", "0.6119047", "0.6097385", "0.58483356", "0.58041656", "0.5735521", "0.57138944", "0.5654205", "0.56286", "0.5541952", "0.55290616", "0.5516036", "0.5473705", "0.54683584", "0.54642826", "0.5447721", "0.53915256", "0.5352321"...
0.590915
6
Rootmeansquared error of values compared to true values.
def _8nW(hkxX, TkHw): return oyIN.sqrt(((oyIN.array(hkxX) - TkHw) ** 2).mean())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(SDab(Y8eF, aMgO))", "def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(SDab(Y8eF, aMgO))", "def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())", "def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(oyIN.mean(oyIN.square(Y8eF - aMgO)))", "def DF3U(Y8eF, aMgO):\n ...
[ "0.7244636", "0.7189255", "0.71649563", "0.7107745", "0.7107745", "0.7042103", "0.70155877", "0.70031214", "0.69720757", "0.6909719", "0.68159693", "0.6776466", "0.67527246", "0.6704092", "0.66817206", "0.6655917", "0.6555449", "0.65417874", "0.6535971", "0.6525878", "0.65226...
0.73268044
0
Video streaming home page.
def d6pt(): return TvZl('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ecsS():\n return TvZl('/video-page.html')", "def wOb_():\n return TvZl('video-feed.html')", "def hkZA():\n return TvZl('video-page.html', title='video page', year=qcWV.now().year)", "def kZiy(geh0):\n SFIC = YM9Z.objects.all()\n QpfX = {'videos': SFIC}\n return _1tc(geh0, 'InktoberSite/...
[ "0.76268315", "0.76119703", "0.7530637", "0.73411614", "0.7005877", "0.66250384", "0.6583905", "0.6468895", "0.6439333", "0.64381635", "0.6421515", "0.6415742", "0.6393503", "0.6384064", "0.637601", "0.63417023", "0.6321272", "0.6291959", "0.62908256", "0.62908256", "0.629082...
0.0
-1
Video streaming generator function.
def eK5b(): while True: U5bT, f4IJ = Fd1k.read() UXqs = None if oyIN.shape(f4IJ) == () or U5bT == False or f4IJ is None: print('Error reading webcam') continue f4IJ, UXqs = HIpZ(f4IJ) lTiK, NuEi = XC5k.imencode('.jpg', f4IJ) gFH0 = xDSY.BytesIO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LNm5(R72Z):\n e5kH = False\n while True:\n if not e5kH:\n yield b'<meta http-equiv=\"refresh\" content=\"300\">\\n'\n e5kH = True\n else:\n tO9_ = R72Z.poll()\n if tO9_ is not None:\n yield (b'--frame\\r\\n' + b'Content-Type: image/...
[ "0.72318304", "0.72217125", "0.7202193", "0.7199314", "0.71750987", "0.70998365", "0.70878965", "0.7068008", "0.7030866", "0.69874614", "0.69693893", "0.69512975", "0.69257456", "0.6923195", "0.6923195", "0.690304", "0.6903035", "0.6878873", "0.68674815", "0.6864852", "0.6840...
0.0
-1
Format and return JSON formatted as HTML.
def VQhr(lCQT, qv1X=None): if lCQT: pdt5 = None if isinstance(lCQT, str): pdt5 = _1kr(lCQT) elif isinstance(lCQT, dict): pdt5 = lCQT if pdt5 is not None: return f'<pre><span style="font-size:90%;display:inline-block;">{Y7aJ(jNan(PjZe(pdt5, indent=4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r0z8(YKHO):\n return f'\\n <pre style=\"font-size:8pt;\">{YKHO.dumps('json')}</pre>\\n '", "def qQXR(Emd4, BWXx) -> str:\n geh0 = qQXR.dumps(BWXx, sort_keys=True, indent=4, default=str)\n uaPq = G5U4(style='colorful')\n geh0 = ZUDr(geh0, nuWi(), uaPq)\n _Cnz = '<style>' + uaP...
[ "0.71585256", "0.7109477", "0.71078086", "0.7104411", "0.69366616", "0.6835792", "0.6820795", "0.6818455", "0.6812048", "0.66681963", "0.6662768", "0.6655731", "0.66553044", "0.66339064", "0.6602435", "0.65873164", "0.6418619", "0.6318883", "0.6304246", "0.6299332", "0.624532...
0.62265843
22
Send a DELETE request.
def wlcv(**B2fa) -> None: if (XObx := S8du(G4JS.delete, **B2fa)) is not None: afBL(XObx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj(YKHO, *qIxc, **B2fa):\n B2fa['method'] = wlcv\n return YKHO.request(*qIxc, **B2fa)", "def KxdE(YKHO, bD7m, nPrm, pbA8=None):\n return YKHO.send_request(method='delete', url=bD7m, data=nPrm, remove_header=pbA8)", "def RoLj(YKHO, *qIxc, **B2fa) -> oGir:\n return YKHO._send_request(YKHO._requ...
[ "0.83748335", "0.82129806", "0.811298", "0.80827284", "0.8032924", "0.8024967", "0.79658157", "0.7957286", "0.7844351", "0.78421754", "0.7826374", "0.774043", "0.7737133", "0.77165806", "0.76934606", "0.76754904", "0.76646644", "0.765594", "0.7634469", "0.76048493", "0.749396...
0.75867313
20
Given a dataframe that contains only one unique value in _input_col_name, writes new columns as defined by _output_col_names and _mapping and returns the new dataframe
def MH65(YKHO, QBPu: pd.DataFrame): pSOw = QBPu[YKHO._input_col_name].iloc[0] assert pSOw in YKHO._mapping.keys(), f'{pSOw} not in mapping' assert len(YKHO._output_col_names) == len(YKHO._mapping[pSOw]), f'{pSOw} mapping length does not equal output_col_name length' for ltfJ in range(len(YKHO._output_co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XTc_(QBPu, Z_WW):\n pmik = rLdf.DataFrame()\n zClJ = 'dfout_file'\n tRfS = ''\n if len(QBPu) > 0:\n Og6j = 'Activity_Score'\n vpLV = []\n for Z9rn in QBPu.columns:\n if Z9rn.split('___')[-1] in Z_WW:\n vpLV.append(Z9rn)\n for G1Hx in vpLV:\n ...
[ "0.6112567", "0.6035611", "0.59688175", "0.59560484", "0.59443575", "0.5941761", "0.591796", "0.58148026", "0.5802917", "0.578086", "0.5780218", "0.57261825", "0.56726986", "0.56559485", "0.56449014", "0.5636307", "0.56262904", "0.55997497", "0.5593115", "0.55859804", "0.5557...
0.607369
1
Get version from git or file system. If this is a git repository, try to get the version number by running ``git describe``, then store it in javabridge/_version.py. Otherwise, try to load the version number from that file. If both methods fail, quietly return None.
def kaPv(): VFFA = None if Hy7s.path.exists(Hy7s.path.join(Hy7s.path.dirname(xAKo), '.git')): import subprocess try: VFFA = subprocess.Popen(['git', 'describe'], stdout=subprocess.PIPE).communicate()[0].strip() except: pass hiHK = Hy7s.path.join(Hy7s.path.dirn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaPv():\n try:\n return VFFA()\n except Yn3K.CalledProcessError:\n pass\n if not pMhb.startswith('$'):\n return BMVa()\n return axNT", "def kaPv():\n try:\n with open(ahDO) as eHNT:\n return eHNT.readline().strip()\n except IOError:\n with open(...
[ "0.7989713", "0.78676975", "0.7826165", "0.7722684", "0.7593658", "0.74260145", "0.7334599", "0.73103875", "0.7286727", "0.72852653", "0.7253143", "0.72456807", "0.71536803", "0.7058708", "0.69901085", "0.6984281", "0.6975328", "0.6941931", "0.6941016", "0.6891425", "0.685369...
0.73400503
6
get the contour of segmentaion mask define a shape and matching the nearest contour pixel
def Bf2M(FvTl): apum = '../images/10k/dataset10k_%04d.jpg' % FvTl xwi8 = '../results/10k/segmentation/10kgt_%04d.png' % FvTl cKrR = XC5k.imread(apum, XC5k.IMREAD_UNCHANGED) ZHfW = XC5k.imread(xwi8, XC5k.IMREAD_UNCHANGED) if cKrR is None: print('cannot open', apum) exit() if ZHfW ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aVLV(YKHO):\n F_DB = YKHO.mask * YKHO.data[YKHO.mask_channel_name]\n F_DB[YKHO.mask == 0] = int(F_DB.max())\n F_DB = KUnM.gaussian(F_DB, sigma=1)\n hOrn = oyIN.percentile(F_DB[YKHO.mask > 0], 98)\n keUt = float(YKHO.config['cell']['contour_simplification_factor'])\n iLki = Tcon.find_contours(...
[ "0.6855818", "0.6684679", "0.66702235", "0.6653248", "0.6638604", "0.66240585", "0.6623915", "0.65890443", "0.6567835", "0.6544862", "0.65272003", "0.64798945", "0.64120203", "0.64097285", "0.640925", "0.63687634", "0.6342333", "0.63255036", "0.6256451", "0.6230661", "0.61747...
0.0
-1
assert the mock has been called with the specified arguments. The assert passes if the mock has ever been called, unlike `assert_called_with` and `assert_called_once_with` that only pass if the call is the most recent one.
def mwf5(YKHO, *qIxc, **B2fa): TmJk = False for aTQo in YKHO.call_args_list: try: YKHO._assert_with_constraints(qIxc, B2fa, aTQo) return except AssertionError: pass H1go = YKHO._format_mock_call_signature(qIxc, B2fa) raise AssertionError('%s call not f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HTTU(YKHO, *qIxc, **B2fa):\n if YKHO.call_args is None:\n aEqx = YKHO._format_mock_call_signature(qIxc, B2fa)\n raise AssertionError('Expected call: %s\\nNot called' % (aEqx,))\n YKHO._assert_with_constraints(qIxc, B2fa, YKHO.call_args)", "def Rr04(YKHO, qIxc=(), hjIr=None, **B2fa):\n ...
[ "0.85261834", "0.733482", "0.70258784", "0.6973734", "0.68611753", "0.6832389", "0.6794431", "0.6768951", "0.6704264", "0.6667408", "0.6658504", "0.6638286", "0.66292", "0.66287607", "0.6539253", "0.65381753", "0.6536511", "0.6514574", "0.647506", "0.6420005", "0.63352656", ...
0.7497316
1
builds and returns the base two representation of number.
def a8Pe(FGW3, tyNF): aDxC = '' if tyNF == 10: aDxC = SOnQ elif tyNF == 16: aDxC = hex elif tyNF == 2: aDxC = neaT elif tyNF == 8: aDxC = fAwA else: print('choose another base') hlel = aDxC.get(str(FGW3)) print(hlel)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vBqP(exwG: str) -> str:\n kcCR = ''\n if int(exwG) == 0:\n return '0'\n elif int(exwG) < 0:\n return 'Numar invalid!'\n else:\n while exwG != '0':\n kcCR = str(int(exwG) % 2) + kcCR\n exwG = str(int(exwG) // 2)\n return kcCR", "def z_Uo(mLGw):\n ...
[ "0.71974224", "0.7041776", "0.70277274", "0.69513196", "0.6914407", "0.6869158", "0.6835114", "0.6750534", "0.67332804", "0.6684344", "0.6672992", "0.6638632", "0.66322494", "0.6604791", "0.6527409", "0.6511292", "0.65089685", "0.64978766", "0.64898556", "0.6458558", "0.64553...
0.0
-1
Crop tile_img provided as numpy array. Save in dictionary with tile_key.
def i4EL(YKHO, at8K, Vnw1): H2v2, TVTK = (at8K.shape[0], at8K.shape[1]) YKHO.img[Vnw1] = at8K[int(H2v2 / 2 - 256):int(H2v2 / 2 + 256), int(TVTK / 2 - 256):int(TVTK / 2 + 256)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izAa(YKHO, VXjJ: np.ndarray) -> oyIN.ndarray:\n return VXjJ[YKHO.rows, YKHO.cols]", "def q7d4(Xn71):\n LNo8 = hnIv.open(Xn71)\n DbyF = {1: (195, 30, 501, 371), 2: (501, 30, 807, 371), 3: (807, 30, 1113, 371), 4: (1113, 30, 1419, 371), 5: (1419, 30, 1725, 371), 6: (195, 371, 501, 711), 7: (501, 371, ...
[ "0.6066989", "0.5870434", "0.57362956", "0.5689596", "0.56791615", "0.5669399", "0.56566626", "0.56424576", "0.56219816", "0.5591117", "0.5569152", "0.55380255", "0.55366135", "0.5524024", "0.5504869", "0.54856026", "0.54729706", "0.54602647", "0.5427679", "0.54273766", "0.54...
0.5665871
6
get user by id request
async def get_user_by_email(YKHO, D3lj: str) -> mv1M: await YKHO.connect_to_database() _4no = await YKHO.db['users'].find_one({'email': D3lj}) if _4no: return _4no
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(id):\n Mkmy = G4JS.get(NKRf + '/user/' + str(id))\n CBIr = Mkmy.json()\n return CBIr", "def TKWP(YKHO, id):\n return YKHO._fetch_json('users/' + id)", "def TKWP(P4t4, id):\n Dvct = P4t4.model.session\n return Dvct.query(P4t4.model.User).get(P4t4.security.decode_id(id))", "async def...
[ "0.791178", "0.7908863", "0.7869833", "0.78402406", "0.78057766", "0.7778946", "0.77780277", "0.7776801", "0.77531374", "0.77448034", "0.7693862", "0.76937544", "0.7652914", "0.7631182", "0.7631137", "0.76305574", "0.7618929", "0.76172465", "0.7609737", "0.759987", "0.759987"...
0.0
-1
get user by id request
async def get_password_reset(YKHO, gZGw) -> mv1M: await YKHO.connect_to_database() QYeG = await YKHO.db['passwordResets'].find_one({'id': aA6B(gZGw)}) if QYeG: return await YKHO.serializePasswordReset(password_q=QYeG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(id):\n Mkmy = G4JS.get(NKRf + '/user/' + str(id))\n CBIr = Mkmy.json()\n return CBIr", "def TKWP(YKHO, id):\n return YKHO._fetch_json('users/' + id)", "def TKWP(P4t4, id):\n Dvct = P4t4.model.session\n return Dvct.query(P4t4.model.User).get(P4t4.security.decode_id(id))", "async def...
[ "0.7912683", "0.7910445", "0.78712624", "0.78413296", "0.78067446", "0.7780604", "0.77796614", "0.7778133", "0.7754675", "0.774596", "0.7695699", "0.7694763", "0.765483", "0.7633158", "0.76316535", "0.7631497", "0.76197964", "0.7616926", "0.7611636", "0.7601152", "0.7601152",...
0.0
-1
get password reset by user id request
async def get_password_reset_by_user_id(YKHO, uJjO: str) -> u45F: await YKHO.connect_to_database() QYeG = await YKHO.db['passwordResets'].find_one({'user_id': str(uJjO)}) if QYeG: return await YKHO.serializePasswordReset(password_q=QYeG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zkyr(YKHO, NtEF):\n gTi_ = gnPz.get_unique_identifier()\n Pe9W = 'SELECT id FROM registered_user WHERE email = ? AND active = 1'\n CBIr = YKHO.con.execute(Pe9W, (NtEF,)).fetchone()\n if CBIr is None:\n return gTi_\n uJjO = CBIr['id']\n Pe9W = 'DELETE FROM password_request WHERE user_id...
[ "0.7332401", "0.72942185", "0.6928631", "0.6922775", "0.6906604", "0.6883747", "0.6872979", "0.686987", "0.6695292", "0.6684898", "0.66838944", "0.66801333", "0.6679907", "0.66486335", "0.6605749", "0.6603975", "0.66001797", "0.6590548", "0.6584807", "0.65603924", "0.6529676"...
0.6817442
8
verify password reset code request
async def verify_password_reset(YKHO, nPrm: PasswordResetVerificationManagerData) -> mv1M: await YKHO.connect_to_database() wkJG: u45F = await YKHO.get_password_reset_by_user_id(user_id=nPrm.user_id) kg40 = kaVN(nPrm.password) _4no: Wyt4 = await YKHO.get_user(nPrm.user_id) _4no.hashed_password = kg4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rjh8(QePW):\n try:\n hiMA = FYrf.Verification.objects.get(**{'user__%s' % mv1M.USERNAME_FIELD: QePW.POST['username'], 'code': QePW.POST['code']})\n if not hiMA.recovery:\n return ltde()\n hiMA.recovery = False\n hiMA.user.set_password(QePW.POST['new_password'])\n ...
[ "0.71554005", "0.7125934", "0.7064603", "0.70429707", "0.6875891", "0.68289137", "0.68263286", "0.67973953", "0.67516184", "0.6705186", "0.667952", "0.66720074", "0.6662653", "0.6650899", "0.66396016", "0.66367626", "0.66327846", "0.6630852", "0.66284746", "0.66256386", "0.66...
0.6363122
46
X coordinate of the sprite.
def WKvO(YKHO): return YKHO._v_x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WKvO(YKHO):\n return YKHO.position.x", "def pwEc(rGpw: int) -> float:\n pass", "def WKvO(YKHO) -> int:\n return YKHO.position.x", "def WKvO(YKHO):\n return YKHO.position.x", "def WKvO(YKHO):\n return YKHO.__position.x", "def Ktcp(YKHO):\n return YKHO._position_x", "def Ktcp(YKHO):...
[ "0.79683715", "0.7954317", "0.7948353", "0.7939518", "0.7925139", "0.77064675", "0.77064675", "0.7684583", "0.76244175", "0.7623703", "0.756971", "0.75423205", "0.7505739", "0.7441209", "0.74057907", "0.7386564", "0.7310144", "0.7285252", "0.72729766", "0.7259364", "0.7240785...
0.0
-1
Y coordinate of the sprite.
def LVAh(YKHO): return YKHO._v_y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVAh(YKHO) -> int:\n return YKHO.position.y", "def LVAh(YKHO):\n return YKHO.position.y", "def JxdI(rGpw: int) -> float:\n pass", "def LVAh(YKHO):\n return YKHO.position.y", "def LVAh(YKHO):\n return YKHO.__position.y", "def yDCK(YKHO):\n return YKHO.get_position(1) / 8 * 0.0025", ...
[ "0.83375746", "0.83336884", "0.83301395", "0.82987237", "0.8241843", "0.79668856", "0.7842928", "0.7842928", "0.77742606", "0.7770626", "0.77574015", "0.7748223", "0.772972", "0.77110714", "0.7698843", "0.76988333", "0.76711166", "0.76522475", "0.76384807", "0.7618428", "0.75...
0.0
-1
X coordinate of the sprite.
def NXpY(YKHO): return YKHO._v_scale
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WKvO(YKHO):\n return YKHO.position.x", "def pwEc(rGpw: int) -> float:\n pass", "def WKvO(YKHO) -> int:\n return YKHO.position.x", "def WKvO(YKHO):\n return YKHO.position.x", "def WKvO(YKHO):\n return YKHO.__position.x", "def Ktcp(YKHO):\n return YKHO._position_x", "def Ktcp(YKHO):...
[ "0.79683715", "0.7954317", "0.7948353", "0.7939518", "0.7925139", "0.77064675", "0.77064675", "0.7684583", "0.76244175", "0.7623703", "0.756971", "0.75423205", "0.7505739", "0.7441209", "0.74057907", "0.7386564", "0.7310144", "0.7285252", "0.72729766", "0.7259364", "0.7240785...
0.0
-1
Returns true if the current time is passed the expired_at
def ksfB(YKHO): return YKHO.expires_at and qcWV.utcnow() > YKHO.expires_at
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CJbn(YKHO) -> bool:\n return qcWV.utcnow().replace(tzinfo=None) >= YKHO.expiration.replace(tzinfo=None)", "def XTIS(YKHO) -> bool:\n return qcWV.utcnow() > YKHO.creation_date + YKHO.expiration", "def XTIS(YKHO):\n return int(ITS7.time()) > YKHO.expires_at", "def CJbn(YKHO):\n return qcWV.now(...
[ "0.8461485", "0.8435734", "0.84025407", "0.8372808", "0.8346842", "0.83147657", "0.8306639", "0.82973874", "0.82964647", "0.8291799", "0.82752556", "0.8273469", "0.8242168", "0.82123685", "0.81563675", "0.8152632", "0.81496954", "0.81342876", "0.8129988", "0.81252605", "0.806...
0.7466796
56
Calculates the MD5 hash of a file.
def pQm7(qaEx: str) -> tuple: gDRp = xORj() with open(qaEx, 'rb') as eHNT: gDRp.update(eHNT.read()) return (qaEx, gDRp.hexdigest())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vkAf(Ux0P):\n return vFhS(Ux0P, 'md5')", "def uPUs(nUeQ):\n return HBct.md5(open(nUeQ, 'rb').read()).hexdigest()", "def I3HS(qaEx):\n import hashlib\n if not Hy7s.path.isfile(qaEx):\n return\n dQiW = hashlib.md5()\n eHNT = open(qaEx, 'rb')\n while True:\n Fg_i = eHNT.read...
[ "0.8513117", "0.8453972", "0.84124726", "0.83943003", "0.83783096", "0.8311009", "0.8304929", "0.8297884", "0.82238925", "0.81962657", "0.81954753", "0.8192713", "0.81721216", "0.8171038", "0.8167986", "0.8155557", "0.81554663", "0.8154224", "0.8133465", "0.8131815", "0.81318...
0.0
-1
Create a butterworth bandpass filter
def nJfv(tjyO, AskH, Vb5F, T4Wy=5): bq_o = 0.5 * Vb5F gqRb = tjyO / bq_o ODP9 = AskH / bq_o Fg_i, jzdc = fJsr(T4Wy, [gqRb, ODP9], btype='band') return (Fg_i, jzdc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nJfv(YKHO):\n bq_o = 0.5 * YKHO.fs\n gqRb = YKHO.f0[0] / bq_o\n ODP9 = YKHO.f0[1] / bq_o\n Fg_i, jzdc = fJsr(YKHO.order, [gqRb, ODP9], btype='band')\n return (Fg_i, jzdc)", "def qqr4(YKHO):\n Fg_i, jzdc = YKHO.butter_bandpass\n LVAh = Z9DM(Fg_i, jzdc, YKHO.sig)\n return LVAh", "def ...
[ "0.8073575", "0.8027671", "0.7561362", "0.7526958", "0.74395823", "0.7416832", "0.7396459", "0.73951554", "0.73813295", "0.7378916", "0.7374006", "0.7365249", "0.73365885", "0.73359627", "0.73081267", "0.7293558", "0.7277007", "0.7231124", "0.7229062", "0.71689624", "0.714785...
0.74177945
5
Returns the path or URL to the image. Override this to return a URL to the image if it's available online for easy debugging.
def qGi0(YKHO, r8m5): return YKHO.image_info[r8m5]['path']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qwnb(YKHO):\n try:\n bD7m = YKHO.image.url\n except:\n bD7m = ''\n return bD7m", "def qwnb(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'image_url')", "def qwnb(YKHO):\n YKHO.ensure_data()\n return YKHO.data['img']", "def kskO(YKHO):\n if YKHO.image:\n ...
[ "0.82313895", "0.82114464", "0.8184155", "0.81601906", "0.81601906", "0.8112694", "0.8106556", "0.8016987", "0.7993362", "0.7963806", "0.7931949", "0.788156", "0.7826992", "0.76974636", "0.76974636", "0.7688419", "0.76267004", "0.75999963", "0.7594649", "0.7550079", "0.751959...
0.0
-1
Compute bounding boxes from masks.
def b7qp(HKTL): oUSw = [] WEJA = [] for kWHn in HKTL: print(kWHn) WEJA.append(kWHn['class_id']) oUSw.append([kWHn['y1'], kWHn['x1'], kWHn['y2'], kWHn['x2']]) print(WEJA) oUSw = oyIN.asarray(oUSw, dtype=oyIN.int32) WEJA = oyIN.asarray(WEJA, dtype=oyIN.int32) return (WE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p5Lc(YKHO, ZHfW):\n oUSw = oyIN.zeros([ZHfW.shape[-1], 4], dtype=oyIN.int32)\n for YRbF in range(ZHfW.shape[-1]):\n r8hN = ZHfW[:, :, YRbF]\n GO_b = oyIN.where(oyIN.any(r8hN, axis=0))[0]\n mFka = oyIN.where(oyIN.any(r8hN, axis=1))[0]\n if GO_b.shape[0]:\n o4D3, ajwV...
[ "0.8053253", "0.79046696", "0.78671235", "0.78134555", "0.78134555", "0.78134555", "0.78134555", "0.78134555", "0.78134555", "0.78134555", "0.78048664", "0.7801408", "0.7797915", "0.77164906", "0.77041256", "0.7686475", "0.7634595", "0.75643206", "0.7510227", "0.74642205", "0...
0.0
-1
Remove top and right axes from pyplot axes object.
def JfbH(MPlV, LFlW=True, _tIi=False): if not type(MPlV) in [oyIN.ndarray, list]: MPlV = [MPlV] elif type(MPlV) == oyIN.ndarray: MPlV = MPlV.flatten() for jDK_ in MPlV: jDK_.tick_params(direction='out') jDK_.spines['top'].set_visible(False) if not _tIi: jD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SM6I(MPlV):\n if len(MPlV.shape) == 1:\n aNZO = oyIN.array([MPlV])\n if len(MPlV.shape) == 0:\n aNZO = oyIN.array([[MPlV]])\n for jzdc in MPlV.ravel():\n jzdc.spines['right'].set_visible(False)\n jzdc.spines['left'].set_visible(False)\n jzdc.spines['top'].set_visible...
[ "0.7976962", "0.7570187", "0.7500477", "0.74429035", "0.74357224", "0.73584116", "0.7347461", "0.7347461", "0.7347461", "0.7321232", "0.73116106", "0.73085594", "0.7304316", "0.72840923", "0.72711885", "0.7203829", "0.71454495", "0.70670545", "0.7055704", "0.70145136", "0.698...
0.76553607
1
Given a list of filenames ending with (separator)int, sort the strings by increasing value of int. If there is a suffix at the end of the filename, provide it so it can be ignored.
def fTfs(hkWs, R8rs='_', Os4s=None): bS0K = range(len(hkWs)) hkxX = [] for DFvE in hkWs: if Os4s is not None: DFvE = DFvE.split(Os4s)[0] PZB5 = int(DFvE.split(R8rs)[-1]) hkxX.append(PZB5) bS0K.sort(key=hkxX.__getitem__) bIR5 = map(hkWs.__getitem__, bS0K) retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LxhJ(vC9B):\n import re\n a8Pe = lambda l5Ny: int(l5Ny) if l5Ny.isdigit() else l5Ny\n l35E = lambda Pcn2: [a8Pe(Z9rn) for Z9rn in re.split('([0-9]+)', Pcn2.infile)]\n vC9B.sort(key=l35E)", "def M4QJ(SLBz):\n\n def gpXh(Ux0P):\n H5ew = ''\n Ni2U = 0\n for kUBT in ZbWC.findi...
[ "0.82695", "0.79417765", "0.78978574", "0.7325098", "0.731441", "0.7200718", "0.70380175", "0.6894367", "0.6864228", "0.6787226", "0.6763903", "0.6700456", "0.66854143", "0.66641665", "0.6610162", "0.66051286", "0.66033685", "0.66030264", "0.65940213", "0.6591932", "0.6589116...
0.624425
64
Return index of first instance that matches criterion.
def e1Aw(eHNT, DumB): for YRbF, WKvO in enumerate(DumB): if eHNT(WKvO): return YRbF return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rvPk(YKHO) -> int:\n ...", "def ILP8(Q3Ge, vC9B, yKcO=0):\n for YRbF, Ty9i in enumerate(vC9B[yKcO:]):\n if Q3Ge(Ty9i):\n return YRbF\n return -1", "def kS1Y(YKHO, pan_):\n for YRbF in range(len(YKHO)):\n if YKHO[YRbF][0] == pan_:\n return YRbF\n return Non...
[ "0.7126078", "0.70803964", "0.6944713", "0.68331915", "0.6787046", "0.676852", "0.67073834", "0.66741484", "0.66128516", "0.6568015", "0.65540975", "0.6531599", "0.6489761", "0.6476032", "0.6470929", "0.647039", "0.64596444", "0.64346915", "0.6430667", "0.6423192", "0.6423146...
0.0
-1
Decorator for call that need authentication. Reauthenticate if the API call fails.
def jbV_(JfyU): def ujLv(tO9_): """Return true is it's an authentication related error message.""" wUfe = ['Unauthorized', 'Expired'] return any([G1Hx in tO9_ for G1Hx in wUfe]) @BJsk.catch_exceptions def MS4X(YKHO, *qIxc, **B2fa): """Call then function and wrapper on authe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XKu8(JfyU):\n\n @zaGL(JfyU)\n def h3Xc(nNXP, *qIxc, **B2fa):\n try:\n return JfyU(nNXP, *qIxc, **B2fa)\n except ejWi:\n RKD7.info('Unauthorized call. Re-authorizing and retrying.')\n nNXP.authenticate()\n return JfyU(nNXP, *qIxc, **B2fa)\n retu...
[ "0.8528275", "0.74606055", "0.7390451", "0.73272836", "0.72926825", "0.72644496", "0.72246057", "0.7148369", "0.71049464", "0.7074533", "0.7064348", "0.7037277", "0.70069784", "0.69609684", "0.6935677", "0.6930779", "0.6914749", "0.6863583", "0.68546283", "0.6843803", "0.6819...
0.729512
4
Returns the player state.
def ARTb(YKHO): return YKHO.get_api_v1('me/player')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n return YKHO._player_state", "def QTBn(YKHO):\n return YKHO._player_state", "def QTBn(YKHO):\n return YKHO._player_state", "def QTBn(YKHO):\n return YKHO._player_state", "def oyg0(YKHO):\n return YKHO._state[1]", "def ja6o(YKHO):\n return YKHO.game.get_state()", "def ...
[ "0.89692175", "0.89692175", "0.89692175", "0.89692175", "0.81440043", "0.8109478", "0.81063485", "0.8049623", "0.79011375", "0.78577507", "0.7841151", "0.7774153", "0.7755114", "0.7755114", "0.7755114", "0.7755114", "0.7755114", "0.7755114", "0.7755114", "0.7755114", "0.77551...
0.87351394
4
Get Tracks from a certain Playlist.
def Cd0L(YKHO, NvAR, Eb4t=r2ph()): if NvAR['uri'] == BJsk.SAVED_TRACKS_CONTEXT_URI: return YKHO._get_saved_tracks(Eb4t) vexM = {'limit': 50} bD7m = 'users/{}/playlists/{}/tracks'.format(NvAR['owner']['id'], NvAR['id']) B2Dn = YKHO.get_api_v1(bD7m, vexM) dixj = YKHO._extract_page(B2Dn, Eb4t) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nE0P(YKHO, bD7m):\n JqP_ = bD7m.split('/')[4]\n NvAR = YKHO.client.playlist_items(JqP_)['tracks']['items']\n for ZfUD in NvAR:\n JYWT = ZfUD['track']['name']\n IbZ6 = ZfUD['track']['artists'][0]['name']\n leAC = JYWT + ' - ' + IbZ6\n YKHO.songs.append(leAC)", "def eXS1(Jq...
[ "0.6985097", "0.6847261", "0.66699237", "0.66570777", "0.6603297", "0.65816575", "0.65789634", "0.6451287", "0.6387912", "0.63363874", "0.6328102", "0.6319732", "0.6301423", "0.6298265", "0.6290218", "0.6279092", "0.62058973", "0.6202058", "0.6194405", "0.61862975", "0.617264...
0.64477646
8
Return an Playlist from a Context.
def ejEB(YKHO, QpfX): if QpfX['uri'] == BJsk.SAVED_TRACKS_CONTEXT_URI: return YKHO.user_saved_playlist() JqP_ = sT_0(QpfX['uri']) Aofo = YKHO.get_api_v1('playlists/{}'.format(JqP_)) return gfdD(Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nE0P(JqP_, NT__):\n bD7m = 'https://api.spotify.com/v1/playlists/' + JqP_\n return roJC(bD7m, NT__)", "def NMoC(YKHO, *qIxc, **B2fa):\n return super(A07_, YKHO).get(*qIxc, **B2fa)", "def WD7y(YKHO, JqP_, leAC):\n HqKa = AY4k.songs_tracks(JqP_)\n gCSA = YKHO.songs_ids(HqKa)\n FzrT = YKHO.c...
[ "0.6573348", "0.65694547", "0.6414644", "0.6326788", "0.6254188", "0.6209159", "0.61855435", "0.61463195", "0.613512", "0.6090307", "0.6024152", "0.59910655", "0.5938936", "0.5882314", "0.5855315", "0.58547306", "0.5821857", "0.5819612", "0.5753286", "0.5748148", "0.57247335"...
0.83458954
0
Remove a Track from a Playlist.
def wjnh(YKHO, A6b2, NvAR): if NvAR['uri'] == BJsk.SAVED_TRACKS_CONTEXT_URI: vexM = {'ids': [A6b2['id']]} bD7m = 'me/tracks' YKHO.delete_api_v1(bD7m, data=vexM) else: vexM = {'uris': [A6b2['uri']]} bD7m = 'playlists/{}/tracks'.format(NvAR['id']) YKHO.delete_api_v1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ld9P(YKHO, JqP_: str, x9qt: Optional[Union[str, int]]=None, d6pt: Optional[int]=None):\n assert not (x9qt is None and d6pt is None), 'Please specify either track_id or index'\n cf3u = YKHO.session.playlist(JqP_)\n if d6pt:\n cf3u.remove_by_index(d6pt)\n if x9qt:\n cf3u.remove_by_id(x9...
[ "0.79343545", "0.77105504", "0.76569515", "0.7526667", "0.72199935", "0.71226156", "0.7097938", "0.70962626", "0.7084348", "0.70843047", "0.7043296", "0.6992325", "0.6972917", "0.69483614", "0.6923802", "0.69097066", "0.69011116", "0.69011116", "0.6883841", "0.6846765", "0.68...
0.8164032
0
Get the Tracks from the "Saved" songs.
def NqJk(YKHO, Eb4t=r2ph()): vexM = {'limit': 50} bD7m = 'me/tracks' B2Dn = YKHO.get_api_v1(bD7m, vexM) dixj = YKHO._extract_page(B2Dn, Eb4t) return tuple((SXEm(JBAi['track']) for JBAi in dixj))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_all_saved_tracks(YKHO):\n LUiO = YKHO.client.current_user_saved_tracks()\n pbT7 = LUiO\n while LUiO['next']:\n LUiO = YKHO.client.next(LUiO)\n pbT7['items'] += LUiO['items']\n return pbT7", "def lA0x(YKHO):\n dixj = YKHO.sp.current_user_saved_tracks()\n jizw = [a1P...
[ "0.71885204", "0.7098103", "0.67908806", "0.67246646", "0.65373063", "0.64448196", "0.6416779", "0.6407009", "0.63907766", "0.63470095", "0.63457835", "0.6301611", "0.6301193", "0.6216562", "0.6198555", "0.61751306", "0.61710346", "0.6115298", "0.6107873", "0.6088829", "0.608...
0.7400038
0
Return a User from an id.
def TKWP(YKHO, uJjO=None): if not uJjO: uJjO = YKHO.user_id() Aofo = YKHO.get_api_v1('users/{}'.format(uJjO)) return mv1M(Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(id: int) -> mv1M:\n return DQE7(mv1M, mv1M.id, id)", "def bt8D(id):\n return mv1M.query.get(id)", "def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr", "def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr", "def fbl9(Emd4, _eu6: str) -> mv1M:\n return Emd4...
[ "0.9134625", "0.89242697", "0.8806923", "0.8806923", "0.87520707", "0.8690406", "0.86419296", "0.86005366", "0.858388", "0.84872466", "0.84843576", "0.84721726", "0.84542876", "0.8444154", "0.84324956", "0.8413079", "0.8407451", "0.8401164", "0.8401164", "0.8401164", "0.84011...
0.0
-1
setUp is run before each test method run.
def FCbF(YKHO): YKHO.F7 = zPx9.FinitePrimeField.getInstance(7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n print('setUp')", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass"...
[ "0.86940074", "0.8607406", "0.85716796", "0.85716796", "0.85716796", "0.85716796", "0.85716796", "0.85716796", "0.85716796", "0.85716796", "0.85716796", "0.85716796", "0.85716796", "0.85716796", "0.85716796", "0.85716796", "0.85716796", "0.85716796", "0.85716796", "0.85716796",...
0.0
-1
test Lambda handler, including logging
def xuTN(KTnm): KTnm.set_level(G9jH.INFO) geh0 = P4t4.lambda_handler({'beer': 1}, None) assert geh0 == {'body': 'Hello world!', 'statusCode': 200} assert 'Received : {"beer": 1}' in KTnm.text
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xuTN():\n with open(file='sample_event.json', mode='r') as eHNT:\n uMSU = qQXR.load(eHNT)\n geh0 = cfQO(uMSU, None)\n print(qQXR.dumps(geh0, indent=4))", "def qJ4k(YKHO):\n AIu6 = G9jH.makeLogRecord({})\n YKHO.assertEqual('functionName', AIu6.function_name)\n YKHO.assertEqual('functi...
[ "0.8030726", "0.76479274", "0.7644231", "0.75129384", "0.7363536", "0.73522276", "0.7297065", "0.7274443", "0.72175366", "0.7064002", "0.6777705", "0.67625636", "0.67625636", "0.67625636", "0.66879237", "0.6678367", "0.66616184", "0.6653134", "0.6644077", "0.6636029", "0.6632...
0.8604024
0
The (negative) reward for exiting "normal" states. Note that in the R+N text, this reward is on entering a state and therefore is not clearly part of the state's future rewards.
def Diyj(YKHO, vOGg): YKHO.livingReward = vOGg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uy7s(YKHO, QTBn):\n if QTBn in YKHO.state_rewards:\n return YKHO.state_rewards[QTBn]\n YKHO.state_rewards[QTBn] = sum((YKHO.true_rewards.get(Ty9i, 0.0) for Ty9i in QTBn.pos)) + sum((YKHO.false_rewards.get(Ty9i, 0.0) for Ty9i in QTBn.neg))\n return YKHO.state_rewards[QTBn]", "def Kxat(gRDG):\n...
[ "0.72311014", "0.71872777", "0.7156214", "0.7083165", "0.7030215", "0.69653636", "0.69574654", "0.68934786", "0.686747", "0.6845771", "0.6837417", "0.6800702", "0.67951655", "0.67887664", "0.67772925", "0.67667794", "0.673042", "0.66993654", "0.66890043", "0.66783965", "0.665...
0.0
-1
Returns list of valid actions for 'state'. In form of [source, target], which moves a block from SOURCE to TARGET. Return empty action set if it's terminal state.
def WLEh(YKHO, QTBn): if YKHO.isTerminal(QTBn): return [] QTBn = EBDt(QTBn) cn2n = [YRbF for YRbF in range(YKHO.stackNum) if QTBn[YRbF] != []] GTfc = range(YKHO.stackNum) return [(JZXy, pan_) for JZXy in cn2n for pan_ in GTfc if JZXy != pan_]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xASv(YKHO, QTBn):\n if QTBn[1:] == QTBn[:-1]:\n IayW = [(jzdc, Fg_i, Z9rn) for jzdc, Fg_i in Hs6x.combinations(QTBn, 2) for Z9rn in range(YJ3N(jzdc, Fg_i)[0], YJ3N(jzdc, Fg_i)[1]) if Z9rn is not None]\n else:\n IayW = [(jzdc, Fg_i, Z9rn) for jzdc, Fg_i in Hs6x.permutations(QTBn, 2) for Z9rn...
[ "0.80570805", "0.79779804", "0.7899683", "0.78842217", "0.7878397", "0.7876407", "0.7876407", "0.7870968", "0.76478654", "0.7628868", "0.75148994", "0.7478794", "0.742301", "0.73596805", "0.73035663", "0.72784406", "0.72753346", "0.7116132", "0.709611", "0.7093581", "0.709358...
0.8260314
0
Returns a list of tuples with values equal to the integer average of the numbers in the tuple at the same position in lst.
def S8vG(yv6U: list) -> list: EErx = 0 CIH_ = [] for ZfUD in yv6U: WKvO, LVAh, epBp = ZfUD EErx = (WKvO + LVAh + epBp) // 3 opk3 = (EErx, EErx, EErx) CIH_ += [opk3] return CIH_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBMS(yv6U):\n return float(sum(yv6U) / len(yv6U))", "def S8vG(vC9B):\n MCOv = sum(vC9B, 0.0)\n return MCOv / len(vC9B)", "def S8vG(PVOR):\n wjRY = 0\n for WKvO in PVOR:\n wjRY += WKvO\n return wjRY / len(PVOR)", "def JBMS(yv6U):\n return", "def JBMS(yv6U):\n return", "d...
[ "0.7405414", "0.7378101", "0.7334726", "0.73271793", "0.73271793", "0.7324938", "0.7287204", "0.7245022", "0.7241533", "0.7212054", "0.716554", "0.7139728", "0.7137776", "0.7134757", "0.71308863", "0.7118252", "0.7047567", "0.70241684", "0.7007302", "0.6959861", "0.6956461", ...
0.8304931
0
Orientate the camera towards a point We do this by rotating point onto the Zaxis.
def bV8N(YKHO, AU8u): XP5J = AU8u - YKHO.position YLE_ = oyIN.array([0, 0, 1]) jDK_ = oyIN.cross(XP5J, YLE_) jDK_ = jDK_ / oyIN.linalg.norm(jDK_, 2) YylR = oyIN.arccos(XP5J.dot(YLE_) / oyIN.linalg.norm(XP5J)) A3Vt = GdxV(jDK_, YylR) YKHO.R = oyIN.eye(4) YKHO.R[0:3, 0:3] = A3Vt YKHO.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGtR(YKHO, WKvO, LVAh, epBp):\n pan_ = biUm.Vector([WKvO, LVAh, epBp]) - biUm.Vector(YKHO.reference.location)\n pan_.normalize()\n My6U = biUm.Vector([0, 0, -1])\n My6U.normalize()\n AvVN = My6U.cross(pan_)\n EZ5P = epAf.degrees(epAf.acos(My6U.dot(pan_)))\n YKHO.set_rot(EZ5P, AvVN[0], AvVN...
[ "0.72871804", "0.690844", "0.6764361", "0.6740489", "0.65771", "0.6482094", "0.64307255", "0.63890654", "0.6371217", "0.63443273", "0.6325215", "0.6201874", "0.6193662", "0.61848974", "0.61813915", "0.6176883", "0.6172198", "0.6171422", "0.6161158", "0.6140124", "0.61308175",...
0.6615746
4
Generate a scatter plot of a 3D model tile.
def OMbu(nPrm, cL6_, Dncu=1): c6Zr = 1e-06 CkYf = nPrm[:, 2] / nPrm[:, 2].max() ZfWE = Bcwd.viridis(CkYf) LZpg, aNZO = QrM1.subplots(figsize=(5, 5)) aNZO.scatter(nPrm[::Dncu, 0] * c6Zr, nPrm[::Dncu, 1] * c6Zr, c=ZfWE[::Dncu], lw=0) aNZO.set_xlim(nPrm[:, 0].min() * c6Zr, nPrm[:, 0].max() * c6Zr) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hHAI(WKvO):\n assert WKvO.shape[1] == 3\n LZpg = QrM1.figure()\n aNZO = LZpg.add_subplot(111, projection='3d')\n aNZO.scatter(WKvO[:, 0], WKvO[:, 1], WKvO[:, 2])\n QrM1.show()", "def nTJp(V6IE):\n LZpg = QrM1.figure()\n aNZO = QrM1.axes(projection='3d')\n aNZO.scatter(V6IE[:, 0], V6IE...
[ "0.71148705", "0.7029974", "0.69369185", "0.6929313", "0.67815346", "0.6689484", "0.6627171", "0.65615064", "0.6500097", "0.6468658", "0.644846", "0.6424704", "0.6388534", "0.6362648", "0.6274551", "0.6261906", "0.62437195", "0.62400854", "0.62275076", "0.6222844", "0.6210320...
0.6074803
30
Return the equivalent power value of dBm to mW
def ooZF(xCWl): H549 = 10 ** (xCWl / 10) return H549
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tJ3a(EDjx):\n return oyIN.power(10, (EDjx - 30) / 10)", "def JtJ0(sYsB):\n return 10 ** (sYsB / 10)", "def kLxV(iBX1):\n return 0.001 * 10 ** (iBX1 / 10.0)", "def QjoE(iBX1):\n return 0.001 * 10 ** (iBX1 / 10.0)", "def QjoE(iBX1):\n return 0.001 * 10 ** (iBX1 / 10.0)", "def TenN(jeGy):...
[ "0.86337984", "0.7799793", "0.77929693", "0.7574484", "0.7574484", "0.74238616", "0.7133764", "0.7126711", "0.71050525", "0.7003639", "0.6914319", "0.68573356", "0.6826194", "0.68229055", "0.6668419", "0.6662365", "0.664843", "0.66403407", "0.6630817", "0.65901595", "0.657055...
0.663077
19
Return a deepcopy of the spectrum instance.
def i3ak(YKHO): i3ak = sg5f(mz=YKHO.peaks.mz, intensities=YKHO.peaks.intensities, metadata=YKHO.metadata) i3ak.losses = YKHO.losses return i3ak
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return sg5f(*YKHO.data, **YKHO.info)", "def jth9(YKHO, _owh):\n YKHO.energylevels = [geyT.copy() for geyT in _owh.energylevels]\n YKHO.spins = U7YL.copy(_owh.spins)", "def jth9(YKHO):\n jth9 = YKHO.copy_reg()\n jth9.assign_parent(YKHO.time_series)\n jth9.value_array = YKHO.v...
[ "0.8593839", "0.73502237", "0.7256759", "0.7247309", "0.716403", "0.7150446", "0.71053827", "0.7085282", "0.70758367", "0.70758367", "0.7055352", "0.70398647", "0.70309114", "0.7029275", "0.70075536", "0.70075536", "0.70075536", "0.70075536", "0.70075536", "0.70075536", "0.70...
0.8189869
1
estimate Gaussian parameters Estimate Gaussian parameters mu(mean), sigma2(var) for dataset X.
def LyOW(EcVT): assert EcVT.shape[1] > 1 and EcVT.shape[0] > 1 yGTL = oyIN.mean(EcVT, axis=1, keepdims=True) UkX0 = oyIN.var(EcVT, axis=1, keepdims=True) return (yGTL, UkX0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cEZ4(EcVT):\n yGTL = EcVT.mean(axis=0)\n UkX0 = EcVT.var(axis=0)\n return (yGTL, UkX0)", "def KlQg(EcVT):\n return (EcVT.mean(), EcVT.cov())", "def y_pR(EcVT):\n yGTL = []\n UkX0 = []\n for exwG in range(EcVT.shape[1]):\n yGTL.append(oyIN.mean(EcVT[:, exwG]))\n UkX0.appen...
[ "0.81407374", "0.8025307", "0.78398484", "0.7801944", "0.7394079", "0.73210603", "0.72501725", "0.72230524", "0.72194827", "0.7216317", "0.71430683", "0.7129705", "0.7023628", "0.70112085", "0.6959871", "0.6955757", "0.6954865", "0.6888835", "0.68876904", "0.68716735", "0.686...
0.81489253
0
multivariant Gaussian function Multivariant Gaussian density function for dataset X.
def ao00(EcVT, yGTL, UkX0): assert EcVT.shape[0] == yGTL.shape[0] KH3G = EcVT - yGTL RELP = oyIN.diag(UkX0.squeeze()) G1Hx = KH3G.shape[0] XP5J = (2 * oyIN.pi) ** (-G1Hx / 2) * oyIN.linalg.det(RELP) ** (-0.5) * oyIN.exp(-0.5 * oyIN.sum(oyIN.dot(oyIN.linalg.pinv(RELP), KH3G) * KH3G, axis=0, keepdims=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V5Uq(YKHO, WKvO, r7V4, ZfCB):\n return nSzW.pdf(WKvO, r7V4, ZfCB)", "def rBuZ(WKvO, yGTL, KSVb):\n EiI6 = dKc3(KSVb)\n e46a = nUPH(2 * oyIN.pi * KSVb)\n return -0.5 * oyIN.log(e46a) - 0.5 * (WKvO - yGTL).dot(EiI6.dot(WKvO - yGTL))", "def KlQg(EcVT):\n return (EcVT.mean(), EcVT.cov())", "de...
[ "0.79183257", "0.768755", "0.73661923", "0.73294073", "0.71219444", "0.7117849", "0.70649344", "0.7050654", "0.70332485", "0.7028891", "0.70161253", "0.70122963", "0.69765013", "0.69652265", "0.6964398", "0.694109", "0.6877308", "0.6877308", "0.6864571", "0.6862324", "0.68593...
0.6608458
40
Initialize the inference network, stream video to network, and output stats and video.
def aBLl(qIxc, x0hE): cret = X1CD() vCt9 = qIxc.prob_threshold cret.load_model(qIxc.model, qIxc.device, qIxc.cpu_extension) GhuM = cret.get_input_shape() exwG, Z9rn, MKlR, yzQ0 = GhuM nGKH = False if qIxc.input == 'CAM': qIxc.input = 0 elif qIxc.input.endswith('.jpg') or qIxc.inp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aBLl(qIxc, x0hE):\n cret = X1CD()\n vCt9 = qIxc.prob_threshold\n C3ST = qIxc.model\n nda8 = qIxc.device\n tYA2 = qIxc.cpu_extension\n cret.load_model(C3ST, tYA2, nda8)\n WlPc = cret.get_input_shape()\n gTi_ = 0\n if qIxc.input == 'CAM':\n zmw3 = 0\n elif qIxc.input.endswith...
[ "0.69275904", "0.6784981", "0.6693744", "0.6657764", "0.6610844", "0.63381773", "0.6333591", "0.630991", "0.62504905", "0.62228745", "0.6221409", "0.6200229", "0.6155003", "0.6140813", "0.6124631", "0.61134166", "0.6110949", "0.6091636", "0.6073766", "0.60646534", "0.60638976...
0.6840232
1
Default prior function for GP hyperparameters. This prior also keeps the hyperparameters within a reasonable huge range, [20, 20]. Note that george operates on the log hyperparameters, except for the mean function.
def uSKF(XP5J): if oyIN.any(oyIN.fabs(XP5J)[1:] > 20): return -oyIN.inf return 0.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c_td(YKHO, Wxsu=1):\n return oyIN.log(Wxsu)", "def zx8k(YKHO):\n YKHO.map()\n if YKHO.inbounds():\n YKHO.logP = 0.0\n else:\n YKHO.logP = -oyIN.inf\n return YKHO.logP", "def AHGg(WKvO):\n WKvO = oyIN.array(WKvO)\n if WKvO.ndim > 1:\n kV90 = WKvO[:, 0]\n Pq6G...
[ "0.66413796", "0.6598342", "0.6595187", "0.64078933", "0.639671", "0.6366982", "0.6354171", "0.6354171", "0.62558573", "0.6233685", "0.62218463", "0.6212679", "0.61800784", "0.6168355", "0.6132902", "0.61293095", "0.6110115", "0.61032754", "0.610284", "0.60907114", "0.6083018...
0.7756911
0
the absolute distance from the camera to this object
def F29m(hksT) -> float: if len(hksT) <= 3: return oyIN.linalg.norm(hksT) return oyIN.linalg.norm(hksT[:3])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JpbV(YKHO):\n return (abs(YKHO.x) + abs(YKHO.y) + abs(YKHO.z)) // 2", "def Ayfi(YKHO):\n USa8 = YKHO.positions[-1].x - YKHO.map.target.x\n DVbG = YKHO.positions[-1].y - YKHO.map.target.y\n return PZyS(USa8 * USa8 + DVbG * DVbG)", "def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",...
[ "0.75580806", "0.7485197", "0.74070567", "0.7350162", "0.73472095", "0.73472095", "0.7334395", "0.72624475", "0.7259896", "0.7259896", "0.7259896", "0.7259896", "0.7259896", "0.7259896", "0.7259896", "0.7259896", "0.72504675", "0.7134407", "0.70856804", "0.70831925", "0.70826...
0.0
-1
calculates the distance from the object's projection on the xz plane (y=0 plane) the distance on the y axis is ignored in this calculation
def a5PY(hksT) -> float: return oyIN.sqrt(hksT[0] ** 2 + hksT[2] ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(YKHO):\n return abs(YKHO.x) + abs(YKHO.y) + abs(YKHO.z)", "def JpbV(YKHO):\n return (abs(YKHO.x) + abs(YKHO.y) + abs(YKHO.z)) // 2", "def pImw(YKHO, m2os, bmPF, Hci7):\n jzdc = m2os - YKHO.x\n Fg_i = bmPF - YKHO.y\n Z9rn = Hci7 - YKHO.z\n return round(epAf.sqrt(jzdc * jzdc + Fg_i * F...
[ "0.71397513", "0.71307236", "0.6986218", "0.6959051", "0.65513945", "0.6530823", "0.65157735", "0.65126896", "0.64678335", "0.64678335", "0.6449768", "0.6446459", "0.64460677", "0.6411788", "0.6401853", "0.63970083", "0.63614994", "0.6352689", "0.6345844", "0.6345844", "0.634...
0.68397814
4
Create a numpy array of shape (a,b), where b is equal to the sample size in observations, and a is equal to the number of days in the yearly time series of temperature (ie. Jan 1 July 30). Using a numpy array in this way allows for very efficient processing of phenology mdoels.
def jRpi(pR3T, h3qM, Uowm=False, PJWX=True): ueOq = h3qM.doy.dropna().unique() ueOq.sort() h3qM = h3qM.pivot_table(index=['site_id', 'year'], columns='doy', values='temperature').reset_index() h3qM.drop(-67, axis=1, inplace=True) ueOq = ueOq[1:] h4yf = pR3T.merge(h3qM, on=['site_id', 'year'], ho...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hYak(ArXB, ZGi7, yQ_P=1):\n Lt_S = []\n while ArXB < ZGi7:\n Lt_S.append(ArXB)\n ArXB += fCoM(days=yQ_P)\n return oyIN.array(Lt_S)", "def bZaK(i8WE):\n G1Hx = list()\n for a1PO in i8WE:\n G1Hx.append(a1PO.dayofyear)\n return oyIN.array(G1Hx)", "def hJiW(wx6A):\n pr...
[ "0.6207734", "0.61977464", "0.6152462", "0.6132654", "0.60697365", "0.58067", "0.5767915", "0.57677555", "0.5765475", "0.5758604", "0.57515526", "0.5746563", "0.5715011", "0.56933814", "0.5680085", "0.56454754", "0.56315815", "0.5618169", "0.5615988", "0.56100345", "0.5606138...
0.0
-1
Convert the Contact to a json / dict. It will omit the noninitalized fields.
def oD7C(YKHO) -> cuzp: hlel = {'_type': type(YKHO).__name__} for G1Hx in dir(YKHO): try: Ty9i = getattr(YKHO, G1Hx) kgaD = callable(Ty9i) F0OH = G1Hx.startswith('_') if kgaD or F0OH: continue oD7C = hasattr(Ty9i, 'to_json') and...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zwcc(Mxk0):\n b_8J.filterDisclosed(Mxk0)\n WKvO = ei4T.objref.todict(Mxk0)\n WKvO['!type'] = 'Contact'\n b_8J.filterROID(WKvO)\n return WKvO", "def KMtg(QtzW: 'pdb file'):\n Mxk0, bGrB = e_fA(QtzW)\n kDv2 = QtzW + '.cscore.json'\n lsgO(Mxk0, kDv2)", "def jnNH(Mxk0):\n oadd = Txqv...
[ "0.7273313", "0.6942878", "0.67894197", "0.66726214", "0.6532378", "0.6492209", "0.64491206", "0.64338803", "0.6393601", "0.63918936", "0.6389678", "0.63824916", "0.628037", "0.62569517", "0.62519556", "0.6237037", "0.6186757", "0.61865103", "0.61864156", "0.6183389", "0.6166...
0.0
-1
Takes a GEOSGeometry Polygon and returns the distance in kilometers between the Polygon's centroid and the point on the polygon farthest from the centroid.
def MVY0(j5tF): if not isinstance(j5tF, rSWe): raise TypeError('object is not a Polygon') pan_ = j5tF.centroid LTIa = j5tF.exterior_ring return n7fH(LTIa, pan_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def epit(j5tF):\n V6IE = XTiz.array(j5tF)\n GKdh = XTiz.amin(V6IE, axis=0)\n V6IE = V6IE - GKdh\n k0lF = vXkR(j5tF, signed=True)\n WKvO = V6IE[:, 0]\n LVAh = V6IE[:, 1]\n jzdc = WKvO[:-1] * LVAh[1:]\n Fg_i = LVAh[:-1] * WKvO[1:]\n UV8M = WKvO[:-1] + WKvO[1:]\n vHO5 = LVAh[:-1] + LVAh[...
[ "0.6720764", "0.664151", "0.6633337", "0.64923495", "0.648225", "0.6417896", "0.6374222", "0.6373383", "0.63535625", "0.6327053", "0.6296362", "0.62318397", "0.620363", "0.6200075", "0.6189912", "0.6149756", "0.61248726", "0.61086375", "0.61018425", "0.6045689", "0.60290164",...
0.78137106
0
Takes a GEOSGeometry MultiPolygon and returns the distance in kilometers between the MultiPolygon's centroid and the point on the MultiPolygon farthest from the centroid.
def SJ3m(bJ6o): if not isinstance(bJ6o, mxkz): raise TypeError('object is not a MultiPolygon') pan_ = bJ6o.centroid PzvL = 0 for j5tF in bJ6o: LTIa = j5tF.exterior_ring Ayfi = n7fH(LTIa, pan_) if Ayfi > PzvL: PzvL = Ayfi return PzvL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MVY0(j5tF):\n if not isinstance(j5tF, rSWe):\n raise TypeError('object is not a Polygon')\n pan_ = j5tF.centroid\n LTIa = j5tF.exterior_ring\n return n7fH(LTIa, pan_)", "def GRlU(rR8k, y5bX, **B2fa):\n _19w = rR8k.vertices\n hQHm = _19w[y5bX[0]]\n jlSq = []\n if B2fa:\n ...
[ "0.679229", "0.62807393", "0.617995", "0.60738266", "0.6062629", "0.60529387", "0.600824", "0.6003097", "0.5908191", "0.58780384", "0.5873066", "0.58324814", "0.58301836", "0.58200073", "0.5793688", "0.5787659", "0.57701313", "0.5740109", "0.5728445", "0.5722582", "0.5720627"...
0.7597843
0
Takes a radius in meters and an overlap in meters. Calculates the minimum spacing of circles of the given radius that will ensure no gaps between them. This is equal to the width of a square that fits inside the circle. The overlap insures against gaps between circles when used to calculate geographic coordinates.
def wSvZ(vXTB, qeiM=0): if vXTB <= qeiM: raise ValueError('radius_m must be greater than overlap_m') return 2 * vXTB / epAf.sqrt(2) - qeiM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def To_l(H2v2, TVTK, uSks=0.7):\n XOOk = 1\n kYGz = H2v2 + TVTK\n dg7v = TVTK * H2v2 * (1 - uSks) / (1 + uSks)\n PvC2 = oyIN.sqrt(kYGz ** 2 - 4 * XOOk * dg7v)\n J1b4 = (kYGz + PvC2) / 2\n pHXX = 4\n ftz7 = 2 * (H2v2 + TVTK)\n iYf1 = (1 - uSks) * TVTK * H2v2\n HuaE = oyIN.sqrt(ftz7 ** 2 -...
[ "0.68068784", "0.6676586", "0.6658223", "0.6517104", "0.6396346", "0.63560474", "0.6331837", "0.61807334", "0.5821273", "0.5772135", "0.573454", "0.56978834", "0.5672083", "0.56626946", "0.5630137", "0.55910844", "0.55799377", "0.55529803", "0.55377203", "0.55034906", "0.5499...
0.74408954
0
Normalize an array along a certain axis
def NkkI(ezWE, jDK_=0): return ezWE / (oyIN.expand_dims(oyIN.linalg.norm(ezWE, axis=jDK_), axis=jDK_) + 1e-10)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jnV4(ezWE: np.array, jDK_: int=-1) -> oyIN.array:\n return ezWE / ezWE.sum(jDK_, keepdims=True)", "def NkkI(ezWE):\n return ezWE / oyIN.mean(ezWE)", "def NkkI(WKvO, jDK_=1):\n return WKvO / rxEN.sum(WKvO, axis=jDK_, keepdims=True)", "def NkkI(jzdc, jDK_=None):\n oN4y = jzdc.sum(jDK_)\n if ...
[ "0.8678441", "0.8274138", "0.8222561", "0.8103959", "0.8103494", "0.7966094", "0.7933753", "0.7888697", "0.78253835", "0.7819653", "0.7788456", "0.7788316", "0.7782397", "0.77727574", "0.77187324", "0.76878846", "0.7641683", "0.7632125", "0.7614728", "0.7614728", "0.7602079",...
0.8499969
1
Get top N accuracy.
def o0ZJ(YKHO, Hqh4): fFv9 = [] for dsCP in YKHO.cfg.TOP_N_LIST: otEa = [] for FOJo, Y8eF in zip(Hqh4, YKHO.y_test): MmmZ = oyIN.argsort(FOJo)[-dsCP:] EkvN = oyIN.argmax(Y8eF) if EkvN in MmmZ: otEa.append(1) else: ot...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EeUa(WErR, Crrw, H42b):\n bGrB, yLaY = UyE1(WErR, Crrw, H42b)\n return yLaY.any(axis=-1).mean()", "def scVp(BFeB, Crrw, H42b=(1,)):\n BFeB = BFeB.data\n Crrw = Crrw.data\n q49w = max(H42b)\n Ep8u = Crrw.size(0)\n hkxX, _0VL = BFeB.topk(q49w, dim=1, largest=True, sorted=True)\n _0VL = ...
[ "0.7265747", "0.7239023", "0.7164541", "0.7095616", "0.7071606", "0.7039847", "0.70379424", "0.7037552", "0.70361", "0.70334184", "0.700338", "0.7000733", "0.6996972", "0.69969165", "0.69969165", "0.69948584", "0.6994472", "0.6994019", "0.69925", "0.6991314", "0.6981111", "...
0.7417707
0
Return the loaded stack/image from filename, casted to float32 and rescaled.
def XHIE(Ux0P, X6rE=None, JtUA=False): E5BI = xDSY.imread(Ux0P) if X6rE is None: X6rE = E5BI.max() E5BI = E5BI.astype(oyIN.float32) / X6rE if JtUA: return (E5BI, X6rE) else: return E5BI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(YKHO, Ux0P):\n return Zxt2.misc.imread(Ux0P).astype('float32')", "def j4PI(qaEx):\n LNo8 = ZylS.io.decode_png(ZylS.io.read_file(qaEx), channels=3)\n LNo8 = ZylS.image.convert_image_dtype(LNo8, ZylS.float32)\n return LNo8", "def DZ0a(YKHO, Ux0P):\n VXjJ = XC5k.imread(Ux0P)\n UiEM = XC...
[ "0.77157754", "0.6851296", "0.6640881", "0.6610329", "0.6548542", "0.6548542", "0.6548542", "0.65002805", "0.64449227", "0.6434787", "0.6410838", "0.6329251", "0.63286424", "0.62899846", "0.624861", "0.6238573", "0.6223144", "0.6202607", "0.6197299", "0.61932796", "0.6185292"...
0.7569435
1
Put the contours of mask over image.
def yDZV(LNo8, ZHfW, MYCo=False): iLki = oyIN.zeros(ZHfW.shape, dtype=oyIN.bool) jNOo = Tcon.find_contours(ZHfW, 0.5) for BHsk in jNOo: usx6 = oyIN.rint(BHsk[:, 0]).astype(oyIN.int) WfCS = oyIN.rint(BHsk[:, 1]).astype(oyIN.int) iLki[usx6, WfCS] = True return MNpG(LNo8, iLki, opac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wWIX(Emd4, CSwn):\n if CSwn.dtype != bool:\n raise TypeError('mask_image must be an array of bool.')\n jNOo = frG3.measure.find_contours(array=CSwn.astype(XTiz.double), level=0.5, fully_connected='low', positive_orientation='low')\n jNOo = XTiz.fliplr(jNOo[0])\n jNOo = Emd4._collapseCoords(j...
[ "0.7014674", "0.68196267", "0.6809561", "0.6727865", "0.6698296", "0.6536731", "0.64898664", "0.64253426", "0.64206713", "0.64083165", "0.6357072", "0.6325239", "0.6315954", "0.628102", "0.6260042", "0.6241972", "0.62305015", "0.62077004", "0.6169804", "0.61672664", "0.615770...
0.7241085
0
Put the contours of mask over image.
def pcUs(E5BI, ZHfW, MYCo=False): iLki = oyIN.zeros(ZHfW.shape, dtype=oyIN.bool) for YRbF in range(len(ZHfW)): jNOo = Tcon.find_contours(ZHfW[YRbF], 0.5) for BHsk in jNOo: usx6 = oyIN.rint(BHsk[:, 0]).astype(oyIN.int) WfCS = oyIN.rint(BHsk[:, 1]).astype(oyIN.int) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yDZV(LNo8, ZHfW, MYCo=False):\n iLki = oyIN.zeros(ZHfW.shape, dtype=oyIN.bool)\n jNOo = Tcon.find_contours(ZHfW, 0.5)\n for BHsk in jNOo:\n usx6 = oyIN.rint(BHsk[:, 0]).astype(oyIN.int)\n WfCS = oyIN.rint(BHsk[:, 1]).astype(oyIN.int)\n iLki[usx6, WfCS] = True\n return MNpG(LNo8...
[ "0.7241085", "0.7014674", "0.68196267", "0.6809561", "0.6727865", "0.6698296", "0.6536731", "0.64898664", "0.64253426", "0.64206713", "0.64083165", "0.6357072", "0.6325239", "0.6315954", "0.628102", "0.6260042", "0.6241972", "0.62305015", "0.62077004", "0.6169804", "0.6167266...
0.5902601
47
Generate pandas DataFrame with random samples
def fZbB(nPrm, ZLJ_): njsf = ['1 разр.', '2 разр.', '3 разр.'] jQ3Z = rLdf.DataFrame(data=nPrm.T, index=range(1, 11), columns=rLdf.MultiIndex.from_product([ZLJ_, njsf])) dwjh = rLdf.DataFrame(data=[[round(CkYf.fit(fvDH)[1], 2) for fvDH in nPrm], [CkYf.fit(fvDH)[0] for fvDH in nPrm], [ei8f(fvDH) for fvDH in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PL2V() -> rLdf.DataFrame:\n return rLdf.DataFrame({BWvy(): sLLp()})", "def rJrZ(YKHO, yokr):\n h99L = YKHO.df\n for bGrB in range(yokr):\n h99L = h99L.sample(frac=1, axis=0).reset_index(drop=True)\n h99L = h99L.sample(frac=1, axis=1).reset_index(drop=True)\n return h99L", "def UYE...
[ "0.76470107", "0.7490917", "0.7441397", "0.74237645", "0.73892105", "0.7375232", "0.7255115", "0.7236898", "0.7192295", "0.7179436", "0.71094805", "0.7098317", "0.7073279", "0.70208746", "0.6958652", "0.69498473", "0.69450843", "0.69238526", "0.68905324", "0.6881314", "0.6864...
0.0
-1
Downloads and loads a pretrained model.
def mL4f(mWFP='ld_wiki_tatoeba_cnn_21', DuqQ='xx', dchF=None): from sparknlp.pretrained import ResourceDownloader return ResourceDownloader.downloadModel(OHF6, mWFP, DuqQ, dchF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl():\n with open('trained_model.pickle', 'rb') as pan_:\n ad8h = t2lc.load(pan_)\n return ad8h", "def uyMl():\n with open('trained_model.pickle', 'rb') as pan_:\n ad8h = t2lc.load(pan_)\n return ad8h", "def uyMl():\n with open('trained_model.pickle', 'rb') as pan_:\n ...
[ "0.7849941", "0.7849941", "0.7849941", "0.7845828", "0.78380066", "0.7781437", "0.77604467", "0.7752677", "0.77171576", "0.76899135", "0.7611223", "0.75655067", "0.7561931", "0.7557851", "0.755028", "0.75387275", "0.753481", "0.75112265", "0.74552846", "0.7454875", "0.7451096...
0.0
-1
Create a projectile with given launch angle, initial velocity and height.
def FIMM(YKHO, YylR, p8Jz, H2v2, QzhK): YKHO.xpos = QzhK YKHO.ypos = H2v2 q7In = Y_1E(YylR) YKHO.xvel = p8Jz * YhSR(q7In) YKHO.yvel = p8Jz * YUNn(q7In) YKHO.ymax = H2v2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, ufJO, YylR, p8Jz, H2v2):\n YKHO.proj = QDO6(YylR, p8Jz, H2v2)\n YKHO.marker = Lr0q(PvyL(0, H2v2), 2)\n YKHO.marker.setFill('red')\n YKHO.marker.setOutline('red')\n YKHO.marker.draw(ufJO)", "def FIMM(YKHO, ufJO, YylR, p8Jz, H2v2):\n YKHO.proj = QDO6(YylR, p8Jz, H2v2, 0)\n YKHO....
[ "0.6772681", "0.6749111", "0.6083345", "0.5969596", "0.5654482", "0.5571849", "0.54817516", "0.5416477", "0.5332139", "0.5327817", "0.5250398", "0.52363795", "0.51870203", "0.5137497", "0.5135299", "0.5127902", "0.5126742", "0.5087337", "0.5035506", "0.50123185", "0.49946317"...
0.5395004
8
return the current x coordinate of the shot's center
def jSnl(YKHO): return YKHO.proj.getX()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KQji(YKHO):\n return int(YKHO.pos + len(YKHO) / 2)", "def epQT(YKHO):\n return YKHO._center.get_x()", "def epQT(YKHO):\n return YKHO._center.get_x()", "def tyw0(YKHO):\n return YKHO._center_x", "def WKvO(YKHO):\n return YKHO.position.x", "def WKvO(YKHO):\n return YKHO.position.x", ...
[ "0.8136458", "0.7999243", "0.7999243", "0.7993417", "0.79576266", "0.7922464", "0.7844561", "0.7832867", "0.77202827", "0.7697471", "0.7684453", "0.76772296", "0.7641449", "0.7599676", "0.7593942", "0.75751567", "0.7569558", "0.7540971", "0.75399655", "0.75399655", "0.7463894...
0.0
-1
The ``BooleanExpression`` object represented by this table.
def VN2L(YKHO): return YKHO._expr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bool(YKHO) -> KjgF:\n return KjgF(YKHO, UqhL())", "def WF7S(YKHO) -> bool:\n raise wkwL.TGTypeCoercionNotSupported(YKHO.descriptor.type, O8dS.Boolean)", "def Nu0H(YKHO):\n return YKHO._get_value('BOOLEAN')", "def VxgZ(wEf2):\n return YKHO.dbengine.boolean_value(wEf2)", "def bool(YKHO):\n ...
[ "0.70910543", "0.6989229", "0.6882893", "0.6808168", "0.6698108", "0.668731", "0.6686752", "0.6632185", "0.65887266", "0.6568896", "0.64911973", "0.64464176", "0.64086056", "0.6405989", "0.6405989", "0.6405331", "0.6345268", "0.63441145", "0.6290345", "0.6281526", "0.62545633...
0.0
-1
Convert an iterable to a row in the table ``__str__``.
def rpua(YKHO, DumB, XesF): rdlD = '|' for ZfUD, _dWL in zip(DumB, XesF): j6i3 = _dWL - len(ZfUD) rp9N = j6i3 // 2 KTHL = j6i3 - rp9N rdlD += rp9N * ' ' + ZfUD + KTHL * ' ' + '|' return rdlD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '\\n'.join(map(YKHO.__format_row, YKHO.rows))", "def zAg0(YKHO):\n Ylbp = ''\n for rdlD in YKHO:\n Ylbp += rdlD\n return Ylbp", "def zAg0(YKHO):\n YKHO._table_output = ''\n for rdlD in YKHO._table:\n idYx = ''\n for _pUq in rdlD[:len(rdlD) - 1]:\n...
[ "0.7141938", "0.7007544", "0.6914097", "0.6696537", "0.65787256", "0.65568995", "0.65226984", "0.6522557", "0.64195544", "0.63486683", "0.63348806", "0.6334698", "0.6326097", "0.631283", "0.6297038", "0.62330097", "0.62313527", "0.6212273", "0.62023294", "0.61782706", "0.6161...
0.0
-1