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 |
|---|---|---|---|---|---|---|
r""" Sets the mechanism weights on chain. | def JrPP(YKHO):
try:
QH8x = YKHO.metagraph.uids
bGiq = YKHO.subtensor.set_weights(wallet=YKHO.wallet, uids=QH8x, weights=YKHO.mechanism_weights, wait_for_inclusion=True)
if bGiq:
bo34.success('Set weights:'.ljust(20) + '{}', YKHO.mechanism_weights.tolist())
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pOke(YKHO, yzQ0):\n raise NotImplementedError",
"def sNuA(YKHO, _mSQ):\n YKHO.weights = _mSQ",
"def ZBf0(YKHO, _mSQ):\n YKHO.weights = _mSQ\n YKHO.totalweight = XTiz.sum(_mSQ)",
"def ZNFn(YKHO, yzQ0):\n YKHO._W = yzQ0",
"def KFtY(YKHO, upAO):\n YKHO.weight = upAO",
"def KFtY(YKHO):\... | [
"0.7504997",
"0.7358669",
"0.727765",
"0.72202337",
"0.71728086",
"0.71233875",
"0.7105213",
"0.7072411",
"0.70382416",
"0.7021747",
"0.7001062",
"0.69854206",
"0.6956045",
"0.6946109",
"0.6885775",
"0.6844246",
"0.6844246",
"0.6844246",
"0.6843235",
"0.68431693",
"0.6839158"... | 0.84285563 | 0 |
update the asteroid location, according to screen size sand given speed. | def BZN_(YKHO):
JRC0 = YKHO.__screen.SCREEN_MIN_X
LChT = YKHO.__screen.SCREEN_MIN_Y
nhBs = YKHO.__screen.SCREEN_MAX_X - JRC0
kGOI = YKHO.__screen.SCREEN_MAX_Y - LChT
kNbz = (YKHO.__x_speed + YKHO.__x - JRC0) % nhBs + JRC0
eLqP = (YKHO.__y_speed + YKHO.__y - LChT) % kGOI + LChT
YKHO.__x, YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n YKHO.rect.y -= YKHO.y_speed",
"def QdZT(YKHO):\n if YKHO.rect.left < 50 or YKHO.rect.right > 600:\n YKHO.speed[0] = -YKHO.speed[0]\n if YKHO.rect.top < 0 or YKHO.rect.bottom > 200:\n YKHO.speed[1] = -YKHO.speed[1]\n YKHO.rect.move_ip((YKHO.speed[0], YKHO.speed[1]))\n ... | [
"0.67158186",
"0.6462171",
"0.633909",
"0.6295045",
"0.6289532",
"0.62571937",
"0.62465733",
"0.6228916",
"0.6224609",
"0.621673",
"0.61947966",
"0.61831945",
"0.6138558",
"0.61355627",
"0.6118052",
"0.6113071",
"0.608893",
"0.6080925",
"0.60793006",
"0.6063403",
"0.60581553"... | 0.6077792 | 19 |
return item's data() value | def nPrm(BWXx):
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XYvj(YKHO, ZfUD):\n return ZfUD.GetData()",
"def nPrm(YKHO, d6pt):\n return YKHO._itemData",
"def nPrm(YKHO, d6pt):\n return YKHO._itemData.name",
"def yLtf(YKHO):\n return YKHO.data",
"def yLtf(YKHO):\n return YKHO.data",
"def yLtf(YKHO):\n return YKHO.data",
"def nPrm(YKHO) -> c... | [
"0.8027007",
"0.797708",
"0.76455134",
"0.75722086",
"0.75722086",
"0.75722086",
"0.7485524",
"0.74617684",
"0.74617684",
"0.74617684",
"0.74589837",
"0.74589837",
"0.74589837",
"0.74589837",
"0.7443318",
"0.7437306",
"0.7437306",
"0.7437306",
"0.7423022",
"0.7423022",
"0.740... | 0.6806409 | 91 |
Returns the Mushi API application instance. | def LUif(dsE5=False):
P4t4 = i_PC.create_app(__name__, jONw, dsE5)
P4t4.json_encoder = eZsI
P4t4.errorhandler(zRcu)(YEVP)
P4t4.errorhandler(wSGu)(GAug)
P4t4.errorhandler(404)(dpqh)
@P4t4.route('/')
def DpZH():
return pz3A({'version': '0.1'})
return P4t4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P4t4(YKHO):\n if YKHO._application is None:\n YKHO._application = m36K(client=YKHO)\n return YKHO._application",
"def WTdB(YKHO):\n return m36K()",
"def SCWY(YKHO, lv4T):\n return m36K(YKHO, lv4T)",
"def WTdB(YKHO):\n P4t4 = yPQU\n return P4t4",
"def WTdB(YKHO):\n return Nd3... | [
"0.76315826",
"0.75180835",
"0.7246059",
"0.7161497",
"0.6836229",
"0.68347675",
"0.6807005",
"0.6783179",
"0.67538637",
"0.6733027",
"0.67282665",
"0.6711077",
"0.6711077",
"0.6701158",
"0.668382",
"0.6676493",
"0.66736853",
"0.6653394",
"0.66316706",
"0.65987253",
"0.656819... | 0.0 | -1 |
Return rgb color normalized (from 0 to 1). | def GoMd(Mkmy, Oa1e, Fg_i, jzdc=1.0):
if Mkmy <= 1 and Oa1e <= 1 and (Fg_i <= 1):
return (Mkmy, Oa1e, Fg_i, jzdc)
return (Mkmy / 255.0, Oa1e / 255.0, Fg_i / 255.0, jzdc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GoMd(Mkmy, Oa1e, Fg_i, jzdc=1.0):\n return (Mkmy / 255.0, Oa1e / 255.0, Fg_i / 255.0, jzdc)",
"def Ceav(YKHO):\n Mkmy, Oa1e, Fg_i = (NUGf.zeros(256), NUGf.zeros(256), NUGf.zeros(256))\n for YRbF in NUGf.arange(256):\n L749, gnxF, bfEg = YKHO.colfct(YRbF / 255.0)\n Mkmy[YRbF], Oa1e[YRbF... | [
"0.8072177",
"0.7929757",
"0.74721897",
"0.7368328",
"0.73331195",
"0.7198139",
"0.7183639",
"0.71806806",
"0.7089179",
"0.7072852",
"0.70422107",
"0.703616",
"0.6942206",
"0.69259834",
"0.6878581",
"0.67863244",
"0.67666256",
"0.67647815",
"0.6764415",
"0.6761445",
"0.675824... | 0.7844115 | 2 |
Initialize the layer. Most of args are the same as tf.keras.layers.DepthwiseConv2D except it has an extra parameter "dilated" to indicate whether to use dilated conv to simulate large kernel_size size. If dilated=True, then dilation_rate is ignored. | def FIMM(YKHO, Ot1W, FEri, vJFE=False, **B2fa):
YKHO._channel_axis = -1
YKHO._dilated = vJFE
YKHO.kernels = Ot1W
YKHO._conv_kwargs = {'strides': FEri, 'dilation_rate': B2fa.get('dilation_rate', (1, 1)), 'kernel_initializer': B2fa.get('kernel_initializer', TcKX()), 'padding': 'same', 'use_bias': B2fa.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qm8W(YKHO, mWFP, QJWG, v52t=False, fofH=None):\n XP5J = YKHO.params\n H52E = VWHT.Builder.Params()\n if XP5J.norm_layer_tpl:\n H52E.norm_layer_tpl = XP5J.norm_layer_tpl\n ToZO = H52E.Instantiate()\n return ToZO.DepthwiseConv2D(name=mWFP, in_dim=XP5J.model_dim, depth_multiplier=1, filter_s... | [
"0.67333204",
"0.67199266",
"0.6454356",
"0.636314",
"0.6349992",
"0.6329895",
"0.63211644",
"0.6307581",
"0.6293697",
"0.6279428",
"0.6271192",
"0.6259153",
"0.62518847",
"0.6245861",
"0.61893433",
"0.61730474",
"0.6160912",
"0.6134608",
"0.61209995",
"0.6074331",
"0.6051888... | 0.6737787 | 1 |
Get the indices of binned times from different segments of the observation. This is a generator, yielding the boundaries of each segment and the corresponding indices in the time array | def P3lL(WXkz, y9Fd, iFbK, JRYC=None):
y9Fd = oyIN.asarray(y9Fd)
WXkz = oyIN.asarray(WXkz)
MKyN, H9rt = nHrm(y9Fd, iFbK, WXkz, dt=JRYC)
if JRYC is None:
JRYC = 0
for yxfW, a06Z in zip(MKyN, H9rt):
yield (WXkz[yxfW] - JRYC / 2, WXkz[min(a06Z, WXkz.size - 1)] - JRYC / 2, yxfW, a06Z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gCrE(WXkz, y9Fd, iFbK):\n y9Fd = oyIN.asarray(y9Fd)\n WXkz = oyIN.asarray(WXkz)\n yKcO, JCyR = w0AD(y9Fd, iFbK)\n assert mwCj(WXkz), 'Array is not sorted'\n MKyN = oyIN.asarray(oyIN.searchsorted(WXkz, yKcO))\n H9rt = oyIN.asarray(oyIN.searchsorted(WXkz, JCyR))\n for KCHu, tTpl, yxfW, a06Z ... | [
"0.81385136",
"0.74454594",
"0.73748314",
"0.6589845",
"0.6483112",
"0.63857484",
"0.6343811",
"0.6235033",
"0.6141872",
"0.6137866",
"0.6117819",
"0.6050756",
"0.58365744",
"0.57531977",
"0.5718293",
"0.57018137",
"0.5695246",
"0.5675361",
"0.5644452",
"0.56322515",
"0.55986... | 0.822498 | 0 |
Determines the position in realspace for the given vector, in multiples of the unitcell vectors. | def a1Yb(YKHO, jzdc, Fg_i, Z9rn):
Ie1B = PZyS(1 - YhSR(YKHO.alpha) ** 2 - YhSR(YKHO.beta) ** 2 - YhSR(YKHO.gamma) ** 2 + 2 * YhSR(YKHO.alpha) * YhSR(YKHO.beta) * YhSR(YKHO.gamma))
EKeu = (YKHO.lattice_spacing_a, 0.0, 0.0)
ETK8 = (YKHO.lattice_spacing_b * YhSR(YKHO.gamma), YKHO.lattice_spacing_b * YUNn(YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j8U8(iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def aHVb(iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def j8U8(YKHO, iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def j8U8(YKHO, iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def j8U8(iArr):\n return iArr / oyIN.linalg.norm... | [
"0.6790064",
"0.6786649",
"0.6752192",
"0.6736442",
"0.66772586",
"0.66772586",
"0.66772586",
"0.66561145",
"0.66505545",
"0.6649365",
"0.6649365",
"0.6649365",
"0.6649365",
"0.6649365",
"0.6649365",
"0.6649365",
"0.6649365",
"0.6649365",
"0.6649365",
"0.6649365",
"0.6648856"... | 0.0 | -1 |
Returns the realspace position for the vector, in the experimental coordinate system (which includes whatever rotations have been set). | def v5BA(YKHO, jzdc, Fg_i, Z9rn):
LDcD, diMv = YKHO.v_abc(jzdc, Fg_i, Z9rn)
WKvO, LVAh, epBp = diMv
WKvO, LVAh, epBp = YKHO.rotate_q_exp(WKvO, LVAh, epBp)
return (LDcD, (WKvO, LVAh, epBp)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iArr(YKHO) -> lNLu:\n return YKHO._normal * YKHO._distance_from_origin",
"def gbUB(YKHO):\n Th55 = (YKHO.get_x_position() - YKHO.get_origin_x_position()) * YUNn(YKHO.get_origin_direction() * mM0K / 180)\n lUHp = (YKHO.get_y_position() - YKHO.get_origin_y_position()) * YhSR(YKHO.get_origin_direction(... | [
"0.6305339",
"0.62474257",
"0.6213889",
"0.62063015",
"0.61432284",
"0.61204785",
"0.6076696",
"0.6065789",
"0.59801143",
"0.5969837",
"0.5958947",
"0.59346515",
"0.59331965",
"0.59091336",
"0.590473",
"0.5871445",
"0.5854228",
"0.5845941",
"0.5839444",
"0.58291596",
"0.58102... | 0.0 | -1 |
Converts angles into an appropriate rotation matrix. | def xJpV(YKHO, RHJb, rVnq, q7In):
RHJb = Y_1E(RHJb)
rVnq = Y_1E(rVnq)
q7In = Y_1E(q7In)
xJpV = [[YhSR(RHJb) * YhSR(rVnq) * YhSR(q7In) - YUNn(RHJb) * YUNn(q7In), -YhSR(RHJb) * YhSR(rVnq) * YUNn(q7In) - YUNn(RHJb) * YhSR(q7In), -YhSR(RHJb) * YUNn(rVnq)], [YUNn(RHJb) * YhSR(rVnq) * YhSR(q7In) + YhSR(RHJb) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wvtu(bLm4):\n bLm4 = oyIN.atleast_1d(bLm4)\n Xkrd = len(bLm4)\n vdar = oyIN.sin(bLm4)\n ey4b = oyIN.cos(bLm4)\n A3Vt = oyIN.zeros((Xkrd, 2, 2))\n A3Vt[:, 0, 0] = ey4b\n A3Vt[:, 1, 1] = ey4b\n A3Vt[:, 0, 1] = -vdar\n A3Vt[:, 1, 0] = vdar\n return A3Vt",
"def YbGS(YKHO, bLm4):\n ... | [
"0.7780914",
"0.77337813",
"0.76302224",
"0.76302224",
"0.76302224",
"0.7617995",
"0.76034105",
"0.75379497",
"0.75379497",
"0.7400807",
"0.7252997",
"0.711589",
"0.7103795",
"0.7100147",
"0.6974231",
"0.69118786",
"0.6866845",
"0.68428785",
"0.6841802",
"0.6841802",
"0.68312... | 0.0 | -1 |
Rotates the qvector in the way given by the internal rotation_matrix, which should have been set using "set_angles" or the appropriate pargs (eta, phi, theta). | def RcR_(YKHO, jCyH, PMVZ, MDnR):
mu73 = oyIN.array([[jCyH], [PMVZ], [MDnR]])
AtKQ = oyIN.dot(YKHO.rotation_matrix_exp, mu73)
jCyH = AtKQ[0, 0]
PMVZ = AtKQ[1, 0]
MDnR = AtKQ[2, 0]
return (jCyH, PMVZ, MDnR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QJfP(LTIa, jDK_, q7In):\n vexM = R5H8.rotator(jDK_, q7In)\n return vexM.rotate(LTIa)",
"def c93m(YKHO, bLm4):\n rVnq, tknT, wW3z = YKHO.get_phi_kappa_omega(bLm4)\n return OI1h.kappa_opposite_rotation_matrix(rVnq, oyIN.deg2rad(YKHO.alpha), tknT, wW3z)",
"def b4BA(YKHO, vexM):\n YKHO._normalis... | [
"0.7486976",
"0.71783274",
"0.7070145",
"0.7048958",
"0.7041417",
"0.7033555",
"0.7026915",
"0.7026915",
"0.70042187",
"0.70042187",
"0.6999041",
"0.67515516",
"0.67481565",
"0.6706793",
"0.6648917",
"0.66243094",
"0.6550054",
"0.65333575",
"0.64983845",
"0.6470293",
"0.64654... | 0.62568456 | 34 |
The intrinsic delta and beta are those scaled for the density of the material. Thus they are a 'peratom' contribution. | def CZN_(YKHO, VYvU=13.0):
RA_F, UqYS = YKHO.get_xray_delta_beta(VYvU)
RA_F *= YKHO.atomic_weight / YKHO.density
UqYS *= YKHO.atomic_weight / YKHO.density
return (RA_F, UqYS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CZN_(YKHO, VYvU=13.0):\n RA_F, UqYS = YKHO.get_xray_delta_beta(VYvU)\n RA_F *= YKHO.get_molecular_weight() / YKHO.get_density()\n UqYS *= YKHO.get_molecular_weight() / YKHO.get_density()\n return (RA_F, UqYS)",
"def XTtZ(YKHO):\n return oyIN.matmul(YKHO.rotation_x, YKHO.beta_z)",
"def _p5S(Y... | [
"0.6842238",
"0.6057587",
"0.5976162",
"0.59087837",
"0.58436227",
"0.57800454",
"0.5772805",
"0.57682574",
"0.57206523",
"0.5704588",
"0.5700537",
"0.56717736",
"0.56309444",
"0.5624023",
"0.56205976",
"0.56133217",
"0.5594726",
"0.5585502",
"0.55696523",
"0.5555894",
"0.552... | 0.6807886 | 1 |
Returns this element's f1 and f2 values, for the given energy. | def CWSK(YKHO, VYvU=13.0):
try:
Dyub = YKHO.xray_properties[VYvU][0]
EmyI = YKHO.xray_properties[VYvU][1]
except KeyError:
sjXb = oyIN.sort(YKHO.xray_properties.keys())
or8S = -1
for YRbF, H5ew in enumerate(sjXb):
if or8S == -1 and H5ew > VYvU:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vuvg(YKHO):\n return YKHO.generic_getter(U5qk, 'F', 'convert_energy')",
"def MI1C(YKHO):\n return YKHO.inl[0].m.val_SI * (YKHO.outl[0].h.val_SI - YKHO.inl[0].h.val_SI) + YKHO.inl[1].m.val_SI * (YKHO.outl[1].h.val_SI - YKHO.inl[1].h.val_SI)",
"def BWXx(YKHO):\n Khga = super().nd1()\n Wegd = supe... | [
"0.6997422",
"0.65318495",
"0.6317625",
"0.6314279",
"0.61470693",
"0.60946673",
"0.60393214",
"0.5963418",
"0.5884862",
"0.5882164",
"0.58085567",
"0.57599235",
"0.5748945",
"0.5729654",
"0.569984",
"0.5682066",
"0.56560487",
"0.5649355",
"0.55843437",
"0.55585176",
"0.55504... | 0.7952233 | 0 |
The intrinsic delta and beta are those scaled for the density of the material. Thus they are a 'peratom' contribution. | def CZN_(YKHO, VYvU=13.0):
RA_F, UqYS = YKHO.get_xray_delta_beta(VYvU)
RA_F *= YKHO.get_molecular_weight() / YKHO.get_density()
UqYS *= YKHO.get_molecular_weight() / YKHO.get_density()
return (RA_F, UqYS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CZN_(YKHO, VYvU=13.0):\n RA_F, UqYS = YKHO.get_xray_delta_beta(VYvU)\n RA_F *= YKHO.atomic_weight / YKHO.density\n UqYS *= YKHO.atomic_weight / YKHO.density\n return (RA_F, UqYS)",
"def XTtZ(YKHO):\n return oyIN.matmul(YKHO.rotation_x, YKHO.beta_z)",
"def _p5S(YKHO):\n aOuH.initializehelm... | [
"0.68078154",
"0.60589826",
"0.5974901",
"0.5910188",
"0.5845013",
"0.57789737",
"0.57726866",
"0.5765987",
"0.5719541",
"0.5703098",
"0.57008743",
"0.5672412",
"0.56303936",
"0.5623782",
"0.56214833",
"0.5613943",
"0.55956405",
"0.5583803",
"0.5569064",
"0.55572116",
"0.5528... | 0.6842051 | 0 |
Tests create media type | def l7qD(YKHO):
YKHO.login_documentalist()
geh0 = YKHO.client.get('/multimedia/media-type/new')
YKHO.assertEqual(geh0.status_code, 403)
YKHO.client.logout()
YKHO.login_admin()
BGqR = {'status': '0', 'acronym': 'foto', 'name': 'Foto', 'language': 'pt-br', 'mediatypelocal_set-TOTAL_FORMS': '0', 'm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def loQc():\n trZe.raises(ValueError, qoQs.fetch_or_create_media_item, b'spam')",
"def dcxg(LNo8):\n Eorv = FYrf.MediaResource(image=LNo8)\n assert Eorv.type == FYrf.MediaResource.TYPE_IMAGE",
"def WUYy(YKHO):\n YKHO.login_documentalist()\n geh0 = YKHO.client.get('/multimedia/media-types/')\n ... | [
"0.71429414",
"0.6677166",
"0.6592191",
"0.6467624",
"0.6429305",
"0.6406042",
"0.6370587",
"0.63356155",
"0.63356155",
"0.6265432",
"0.6203261",
"0.6162893",
"0.6155528",
"0.6093387",
"0.60590714",
"0.604928",
"0.60404843",
"0.5978288",
"0.5938957",
"0.5870291",
"0.5843269",... | 0.79913294 | 0 |
Return the requested duration (in milliseconds) encoded in the gif file. | def ONFB(YKHO):
try:
YzQK = YKHO.im.info['duration'] / 1000.0
except KeyError:
YzQK = QirI / 1000.0
return YzQK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SnPu(To46=''):\n BKvL = Yn3K.check_output(['identify', '-format', '%T\\n', To46])\n if len(BKvL) <= 0:\n abR5 = str(JSEQ)\n else:\n Q3nU = BKvL.split('\\n')\n Q3nU = [int(exwG) for exwG in Q3nU if exwG]\n sTns = float(sum(Q3nU)) / 100\n abR5 = str(len(Q3nU) / sTns)\n... | [
"0.65521395",
"0.64156765",
"0.6347927",
"0.6300428",
"0.62722605",
"0.6203097",
"0.61976093",
"0.6196824",
"0.6174943",
"0.6164094",
"0.6163623",
"0.6126314",
"0.6042789",
"0.60365427",
"0.602783",
"0.60250014",
"0.6007763",
"0.5978441",
"0.59772915",
"0.59731764",
"0.597247... | 0.70833486 | 0 |
Converts everything into a neat email address | def DpsU(D3lj, U8SR=None):
if D3lj is None:
return ''
D3lj = D3lj.strip()
if D3lj == '':
return ''
if '@' not in D3lj:
CBIr = D3lj
zrIJ = None
else:
CBIr, zrIJ = D3lj.split('@')
if not zrIJ or zrIJ in RcjE:
zrIJ = U8SR if U8SR else RcjE[0]
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def POt2(YKHO):\n return '%s.%s@%s' % (qxeD.uuid4(), YKHO.mailbox, 'mailosaur.io')",
"def D3lj(YKHO):\n return '{}.{}@email.com'.format(YKHO.fname, YKHO.lname)",
"def D3lj(YKHO):\n return '{}.{}@company.com'.format(YKHO.first, YKHO.last)",
"def FEhW(mWFP: str, D3lj: str, C6SK: str):\n if D3lj:\n ... | [
"0.7189875",
"0.69836456",
"0.69762295",
"0.6924633",
"0.68997216",
"0.6854964",
"0.684078",
"0.6816215",
"0.6749997",
"0.67385113",
"0.6719771",
"0.65444314",
"0.6515943",
"0.64918524",
"0.64764446",
"0.6449037",
"0.6447131",
"0.64407635",
"0.6428475",
"0.6395255",
"0.638003... | 0.6489782 | 14 |
Return a KafkaClient fixture | def HvNa(ejTi, QePW):
x0hE, = ejTi.get_clients(cnt=1, client_id='%s_client' % (QePW.node.name,))
yield x0hE
x0hE.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ija3(d1en):\n yield d1en()",
"def mER0(lOYP: str, wlkt: str, vJwV: Optional[int]=None, GNn8: str=W_d2, pliE: Callable[[Popen], Any]=W4JM, rrBf: str='function', vYBr: int=15) -> YrBT[..., AzJI[fGmS, int]]:\n\n @trZe.fixture(scope=rrBf)\n def Vora(QePW: 'SubRequest') -> AzJI[fGmS, int]:\n \"\"\... | [
"0.6467988",
"0.6430207",
"0.64101166",
"0.62831724",
"0.61256367",
"0.60472345",
"0.6038839",
"0.5986476",
"0.5957818",
"0.5952596",
"0.5886126",
"0.5879947",
"0.5858388",
"0.58266234",
"0.5804392",
"0.57995164",
"0.5771578",
"0.57611746",
"0.5748662",
"0.5744194",
"0.573985... | 0.5795311 | 16 |
Return a KafkaAdminClient fixture | def Ija3(d1en):
yield d1en() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d1en(ejTi):\n PpcX = [None]\n\n def i_PC(**wMyY):\n NArs = {} if wMyY is None else wMyY.copy()\n PpcX[0] = next(ejTi.get_admin_clients(cnt=1, **NArs))\n return PpcX[0]\n yield i_PC\n if PpcX[0]:\n PpcX[0].close()",
"def pdRA(YKHO):\n pass",
"def wZz4(YKHO):\n p... | [
"0.696133",
"0.6161714",
"0.61330146",
"0.61100334",
"0.5975113",
"0.5946764",
"0.5934449",
"0.592319",
"0.5885137",
"0.5855481",
"0.584699",
"0.584699",
"0.58407384",
"0.5834578",
"0.58336115",
"0.5819117",
"0.5800654",
"0.5762008",
"0.5755142",
"0.573877",
"0.57275176",
"... | 0.7404837 | 0 |
Return a KafkaAdminClient factory fixture | def d1en(ejTi):
PpcX = [None]
def i_PC(**wMyY):
NArs = {} if wMyY is None else wMyY.copy()
PpcX[0] = next(ejTi.get_admin_clients(cnt=1, **NArs))
return PpcX[0]
yield i_PC
if PpcX[0]:
PpcX[0].close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ija3(d1en):\n yield d1en()",
"def K8Vx():\n P4t4 = Nd3k(UpIo.api_server, gCuF.TestingConfig)\n return P4t4.test_client()",
"def pdRA(YKHO):\n pass",
"def vuB2(YKHO) -> None:\n pass",
"def wZz4(YKHO):\n pass",
"def ejTi(PkB9):\n return PkB9()[0]",
"def RQHA(y26g):\n x0hE = iJ... | [
"0.785013",
"0.66675484",
"0.64317244",
"0.61067593",
"0.6098917",
"0.60793346",
"0.59817463",
"0.596553",
"0.5941451",
"0.59240556",
"0.59180766",
"0.5905756",
"0.5897066",
"0.58537436",
"0.58478934",
"0.58478934",
"0.5834724",
"0.5803091",
"0.57998455",
"0.57970864",
"0.576... | 0.7571933 | 1 |
Retourne un representation de l'alphabet en chaine de character Utilisation a = Alphabet(['1','2']) >print(a) {'1', '2'} | def zAg0(YKHO):
return str(YKHO.__alphabet) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bOyw(YKHO):\n return YKHO.alpha",
"def bOyw(YKHO):\n return YKHO.alpha",
"def bOyw(YKHO):\n return YKHO.alpha",
"def KCQ5(YKHO):\n return YKHO.alphabet",
"def RwXR(YKHO):\n gZgb = list(YKHO._charAlphabet)\n mSrU = [YRbF for YRbF in range(0, 26)]\n CVqv = dict(zip(gZgb, mSrU))\n ... | [
"0.7725361",
"0.7725361",
"0.7725361",
"0.76313186",
"0.7380487",
"0.7264944",
"0.7264944",
"0.7208773",
"0.6925614",
"0.68998957",
"0.68875504",
"0.6828855",
"0.6823014",
"0.67651135",
"0.66897255",
"0.65668386",
"0.6537231",
"0.6473991",
"0.6461187",
"0.64385056",
"0.640640... | 0.7293637 | 5 |
This test is used to verify check email endpoint for an exisisting email Negative scenario | def Iq25(YKHO):
print('Create a new user')
B2fa = {'return_response_obj': True}
geh0 = YKHO.test_create_user_endpoint(**B2fa)
hHqS = qQXR.loads(geh0.text)['data']['user']['email']
B2fa = {'email_id': hHqS}
geh0 = YKHO.test_check_email_endpoint(**B2fa)
print('Response : {0}'.format(geh0))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mash(x0hE):\n geh0 = x0hE.post('/signin', data=dict(email='njayaandrew@yahoo.com', password=FU5W.password), content_type='multipart/form-data')\n nPrm = qQXR.loads(geh0.data)\n assert geh0.status_code == 401\n assert nPrm['error'] == \"The user with email njayaandrew@yahoo.com dosen't exists. Check... | [
"0.7949241",
"0.79252005",
"0.7894219",
"0.7785605",
"0.77097386",
"0.7707512",
"0.76966375",
"0.753197",
"0.7493049",
"0.7436697",
"0.7406956",
"0.73997164",
"0.7365545",
"0.73617697",
"0.73611104",
"0.7341542",
"0.7275649",
"0.72691673",
"0.72599787",
"0.7254665",
"0.725176... | 0.8058846 | 0 |
This test is used to verify check email endpoint when client_id ans client secret is incorrect Negative | def PIn0(YKHO):
print('Incorrect Client ID')
B2fa = {'client_id': YKHO.test_args['client_id'], 'return_response_obj': True, 'return_failure_response': True}
geh0 = YKHO.test_check_email_endpoint(**B2fa)
print('Verify Response body')
Ggta = YKHO.test_args['expected_result']
crOM = qQXR.loads(geh0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mash(x0hE):\n geh0 = x0hE.post('/signin', data=dict(email='njayaandrew@yahoo.com', password=FU5W.password), content_type='multipart/form-data')\n nPrm = qQXR.loads(geh0.data)\n assert geh0.status_code == 401\n assert nPrm['error'] == \"The user with email njayaandrew@yahoo.com dosen't exists. Check... | [
"0.78077406",
"0.7734107",
"0.7268673",
"0.72185075",
"0.72138053",
"0.7180917",
"0.7178894",
"0.71177065",
"0.7114795",
"0.70473605",
"0.7017131",
"0.6998371",
"0.69487613",
"0.69196194",
"0.6912732",
"0.69071394",
"0.6900321",
"0.6896202",
"0.6869497",
"0.6867559",
"0.68668... | 0.83071864 | 0 |
This test is used to verify check email endpoint by passing blank values to mandatory fields Negative | def K4On(YKHO):
print('Blank email id')
B2fa = {'email_id': '', 'return_response_obj': True, 'return_failure_response': True}
geh0 = YKHO.test_check_email_endpoint(**B2fa)
print('Verify Response body')
Ggta = YKHO.test_args['expected_result']
crOM = qQXR.loads(geh0.text)['message']
assert cr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hdC2(YKHO):\n im04 = YKHO.signup('Bo', 'Theo', '', 'Bo1995', 'Bo1995')\n YKHO.assertIn(b'Field must be between 6 and 30 characters long.', im04.data)",
"def hdC2(YKHO):\n geh0 = YKHO.register({'first_name': 'David', 'last_name': 'Smith', 'password': '******', 'email': '', 'phone_number': '012-345-67... | [
"0.79054666",
"0.7902672",
"0.7839084",
"0.78227824",
"0.7731462",
"0.76797086",
"0.74924177",
"0.7476559",
"0.7473797",
"0.74543387",
"0.74537224",
"0.741722",
"0.74171895",
"0.73903954",
"0.72823536",
"0.7269874",
"0.7207287",
"0.72027266",
"0.7165835",
"0.714406",
"0.71416... | 0.77567637 | 4 |
This test is used to verify update user endpoint with existing email | def F8ZR(YKHO, **B2fa):
print('Create a new user and capture the email')
B2fa['return_response_obj'] = True
geh0 = YKHO.test_create_user_endpoint(**B2fa)
hHqS = qQXR.loads(geh0.text)['data']['user']['email']
B2fa = {'email_id': hHqS, 'return_response_obj': True, 'return_failure_response': True, 'url... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWp4(YKHO):\n print('Generate a new email and check if email is not allocated')\n hHqS = AWtc.generate_new_email(suffix=YKHO.global_config['email_id_suffix'])\n B2fa = {'email_id': hHqS, 'return_response_obj': True, 'url': YKHO.test_args['relative_url_check_email']}\n geh0 = YKHO.test_check_email_e... | [
"0.8202847",
"0.81161",
"0.8069643",
"0.8038906",
"0.79035074",
"0.78956586",
"0.78889686",
"0.78236496",
"0.7797676",
"0.77734125",
"0.7714368",
"0.76982194",
"0.76861954",
"0.7674051",
"0.76693356",
"0.7655052",
"0.76290035",
"0.7617921",
"0.7590175",
"0.7562273",
"0.754620... | 0.85094595 | 0 |
This test is used to verify change password endpoint Positive scenario | def cfdC(YKHO, **B2fa):
print('Create a new user')
LLKi = {'return_response_obj': True}
geh0 = YKHO.test_create_user_endpoint(**LLKi)
geh0 = qQXR.loads(geh0.text)
print('Capture Authorization token')
sOU6 = geh0['data']['token']['token_type']
NT__ = geh0['data']['token']['access_token']
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XJ0G(YKHO):\n eOtH = str(DvJO.encode({'email': 'bagendadeogracious@gmail.com'}, gCuF.SECRET_KEY).decode('utf-8'))\n YKHO.client.post(YKHO.registration_url, RyAr, format='json')\n geh0 = YKHO.client.patch(YKHO.change_password_url + '?token=' + eOtH, {'pwd': 'bagenda1234'}, format='json')\n YKHO.asse... | [
"0.8567106",
"0.83504146",
"0.83164936",
"0.8177658",
"0.81060314",
"0.80760676",
"0.8070329",
"0.79092443",
"0.78967357",
"0.7880961",
"0.7847211",
"0.7817811",
"0.78075725",
"0.7778189",
"0.76918364",
"0.7685238",
"0.7676653",
"0.76392126",
"0.7598744",
"0.7520892",
"0.7482... | 0.7913716 | 7 |
This test is used to verify change password endpoint by passing invalid current password | def S8Rq(YKHO):
B2fa = {'current_password': YKHO.test_args['invalid_current_password'], 'return_response_obj': True, 'return_failure_response': True}
geh0 = YKHO.test_change_password_endpoint(**B2fa)
print('Verify Response body')
Ggta = YKHO.test_args['expected_result']
crOM = qQXR.loads(geh0.text)[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pwat(YKHO):\n pass",
"def XJ0G(YKHO):\n eOtH = str(DvJO.encode({'email': 'bagendadeogracious@gmail.com'}, gCuF.SECRET_KEY).decode('utf-8'))\n YKHO.client.post(YKHO.registration_url, RyAr, format='json')\n geh0 = YKHO.client.patch(YKHO.change_password_url + '?token=' + eOtH, {'pwd': 'bagenda1234'}... | [
"0.8515729",
"0.8488998",
"0.83531064",
"0.8282066",
"0.8182565",
"0.8080611",
"0.8046905",
"0.8040673",
"0.78913337",
"0.78832734",
"0.7866185",
"0.78522265",
"0.7791602",
"0.7790109",
"0.77737576",
"0.7746982",
"0.7726434",
"0.7724689",
"0.77162486",
"0.7663617",
"0.7648244... | 0.86620104 | 0 |
Load YAML config file | def B4cB(Nu1S):
if type(Nu1S) is nUeQ:
PSrQ.CONFIG.update(eJb6.load(Nu1S) or {})
return PSrQ.CONFIG
else:
try:
with open(Nu1S, 'r') as eHNT:
return eJb6.load(eHNT)
except IOError as e:
tTpl.message = 'Could not open configuration file "{}".... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LgIG(pmON):\n return eJb6.load(open('config.yaml', 'r'), Loader=eJb6.SafeLoader)",
"def LgIG():\n t7Ny = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n lqQH = Hy7s.path.join(t7Ny, 'config.yml')\n Fv2L = eJb6.safe_load(open(lqQH))\n return Fv2L",
"def LgIG(Ux0P):\n QmMM['config'] = jnN0(Ux0P... | [
"0.8168804",
"0.8066424",
"0.8012176",
"0.799784",
"0.7996935",
"0.7977649",
"0.7950955",
"0.79488474",
"0.7948729",
"0.7938631",
"0.78517526",
"0.7830641",
"0.7728726",
"0.77236736",
"0.7700356",
"0.76859444",
"0.7648791",
"0.75909126",
"0.75898683",
"0.75895035",
"0.7579526... | 0.7453671 | 26 |
Returns node with the minimum value in the BST | def min(YKHO):
return YKHO._min(YKHO.root) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XcNI(YKHO) -> i8DB:\n Q6kx = YKHO.root\n while True:\n if not Q6kx.left:\n return Q6kx\n Q6kx = Q6kx.left",
"def XcNI(YKHO):\n return min(YKHO.nodes, key=int)",
"def k9Va(Q6kx):\n CL9V = Q6kx.value\n while Q6kx.left is not None:\n Q6kx = Q6kx.left\n CL9... | [
"0.8433944",
"0.8191482",
"0.8181227",
"0.8165668",
"0.80850726",
"0.8017712",
"0.7997986",
"0.7962061",
"0.795777",
"0.7950276",
"0.7946971",
"0.79100764",
"0.7875316",
"0.7827737",
"0.78173417",
"0.7729374",
"0.76871645",
"0.76868963",
"0.7670392",
"0.7653884",
"0.7625973",... | 0.7777729 | 15 |
Returns node with the maximum value in the BST | def max(YKHO):
return YKHO._max(YKHO.root) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jqD_(YKHO):\n if YKHO.root:\n YKHO.max_val = YKHO.root.value\n else:\n return 'No tree found'\n\n def _gRY(tk5Y):\n if tk5Y.left:\n _gRY(tk5Y.left)\n if tk5Y.right:\n _gRY(tk5Y.right)\n if YKHO.max_val < tk5Y.value:\n YKHO.max_val = t... | [
"0.86233157",
"0.83441174",
"0.82677275",
"0.8265895",
"0.81471795",
"0.8060073",
"0.805976",
"0.8045105",
"0.8042413",
"0.7930072",
"0.78824604",
"0.77937746",
"0.7761002",
"0.773209",
"0.7699632",
"0.7663091",
"0.7657293",
"0.7596182",
"0.7588312",
"0.7581886",
"0.7566499",... | 0.7583785 | 19 |
Convert prior_boxes to (xmin, ymin, xmax, ymax) representation for comparison to point form ground truth data. | def taIA(oUSw):
return ht2j.cat((oUSw[:, :2] - oUSw[:, 2:] / 2, oUSw[:, :2] + oUSw[:, 2:] / 2), 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MrEF(YKHO):\n Qjmf = {'conv4_3': 38, 'conv7': 19, 'conv8_2': 10, 'conv9_2': 5}\n qp5d = {'conv4_3': 0.1, 'conv7': 0.21, 'conv8_2': 0.255, 'conv9_2': 0.3}\n i_sL = {'conv4_3': [0.5], 'conv7': [0.55], 'conv8_2': [0.6], 'conv9_2': [0.66]}\n ACtM = list(Qjmf.keys())\n Z_jY = []\n for G1Hx, jqqY i... | [
"0.6726663",
"0.6653922",
"0.6432989",
"0.633271",
"0.6246847",
"0.6212919",
"0.6060282",
"0.5925352",
"0.5917206",
"0.5833656",
"0.58164275",
"0.58093137",
"0.58093137",
"0.5796058",
"0.5778322",
"0.576133",
"0.57139504",
"0.5711806",
"0.56847596",
"0.5669615",
"0.564618",
... | 0.6390835 | 3 |
Convert prior_boxes to (cx, cy, w, h) representation for comparion to centersize form ground truth data. | def OWBH(oUSw):
return ht2j.cat([(oUSw[:, :2] + oUSw[:, 2:]) / 2, oUSw[:, :2] - oUSw[:, 2:]], 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MrEF(YKHO):\n Qjmf = {'conv4_3': 38, 'conv7': 19, 'conv8_2': 10, 'conv9_2': 5}\n qp5d = {'conv4_3': 0.1, 'conv7': 0.21, 'conv8_2': 0.255, 'conv9_2': 0.3}\n i_sL = {'conv4_3': [0.5], 'conv7': [0.55], 'conv8_2': [0.6], 'conv9_2': [0.66]}\n ACtM = list(Qjmf.keys())\n Z_jY = []\n for G1Hx, jqqY i... | [
"0.7374022",
"0.7326064",
"0.6342216",
"0.6257686",
"0.62412053",
"0.61695564",
"0.61678135",
"0.61265343",
"0.61133426",
"0.60963017",
"0.6063608",
"0.60421574",
"0.6033133",
"0.59699094",
"0.58964854",
"0.5884155",
"0.58711904",
"0.5870083",
"0.58572745",
"0.58516526",
"0.5... | 0.0 | -1 |
Compute the jaccard overlap of twe sets of boxes. The jaccard overlap is simply the intersection over union of twe boxes. Here we operate on ground truth boxes and default boxes. | def OnKj(sOrw, sxK1):
C7_8 = XMlP(sOrw, sxK1)
s9o6 = sOrw[:,] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _T49(FlUN, S_XF):\n return OnKj(oyIN.expand_dims(FlUN, axis=0), S_XF).squeeze(0)",
"def khWK(MWrr, MOlU, T4Wy='xyxy'):\n if T4Wy == 'xywh':\n MWrr = uBdP(MWrr, 'xywh2xyxy')\n MOlU = uBdP(MOlU, 'xywh2xyxy')\n iQin = mP91(MWrr, MOlU)\n vXV1 = (MWrr[:, 2] - MWrr[:, 0]) * (MWrr[:, 3] - ... | [
"0.68345183",
"0.657788",
"0.657788",
"0.657739",
"0.657739",
"0.6550106",
"0.6485113",
"0.6426238",
"0.6369778",
"0.63132095",
"0.63132095",
"0.63132095",
"0.6289972",
"0.62888616",
"0.62888616",
"0.61993724",
"0.61575437",
"0.61359394",
"0.61146283",
"0.60713524",
"0.60702"... | 0.60367596 | 25 |
Test form_right_clipping_plane(). Use 4 points to fit the right clipping plane. In the camera coordinate frame, y is down the imager, x is across the imager, and z is along the optical axis. The focal length is the distance to the center | def EUot() -> None:
j77W = 10.0
EDav = 30
gOLY = Z_2o(fx_px=j77W, fy_px=0, cx_px=0, cy_px=0, height_px=30, width_px=EDav, cam_name='ring_front_center')
t6o5 = gOLY.right_clipping_plane
T0ZF = 10
_tIi: mV7i = oyIN.array([[0, 0, 0], [EDav / 2.0, 0, j77W], [0, T0ZF, 0], [EDav / 2.0, T0ZF, j77W]])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gU1g() -> None:\n j77W = 10.0\n EDav = 30\n gOLY = Z_2o(fx_px=j77W, fy_px=0, cx_px=0, cy_px=0, height_px=30, width_px=EDav, cam_name='ring_front_center')\n fqSJ = gOLY.left_clipping_plane\n T0ZF = 10\n HFMc: mV7i = oyIN.array([[0, 0, 0], [-EDav / 2.0, 0, j77W], [0, T0ZF, 0], [-EDav / 2.0, T0Z... | [
"0.70028496",
"0.6992108",
"0.6724239",
"0.6661372",
"0.6509162",
"0.63045657",
"0.6168998",
"0.58504635",
"0.58159643",
"0.56910944",
"0.56652755",
"0.563311",
"0.55804574",
"0.5578635",
"0.5539653",
"0.5524319",
"0.55084354",
"0.55034214",
"0.5502194",
"0.54950863",
"0.5474... | 0.80956537 | 0 |
Ensure that the ray direction for each pixel (in camera coordinate frame) is computed correctly. Compare all computed rays against nonvectorized variant, for correctness. Larger scale test, for every pixel in a 50 x 100 px image in (height, width). | def KFNT() -> None:
AOlJ = 10
stDt = 10
do44 = 100
Jarx = 50
gOLY = Z_2o(fx_px=AOlJ, fy_px=stDt, cx_px=do44 / 2, cy_px=Jarx / 2, height_px=Jarx, width_px=do44, cam_name='ring_front_center')
aGDR = []
for P6bq in range(do44):
for Ty9i in range(Jarx):
aGDR += [(P6bq, Ty9i)]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YUTG() -> None:\n P6bq = 12\n Ty9i = 2\n do44 = 20\n Jarx = 10\n AOlJ = 10\n stDt = 10\n XUn2 = aqeK(P6bq, Ty9i, AOlJ, stDt, do44, Jarx)\n b1HW: mV7i = oyIN.array([2.0, -3.0, 10.0])\n b1HW /= oyIN.linalg.norm(b1HW)\n assert oyIN.allclose(b1HW, XUn2)",
"def KVlZ() -> None:\n A... | [
"0.725949",
"0.66578966",
"0.621776",
"0.61876464",
"0.522609",
"0.52056795",
"0.52053064",
"0.5192967",
"0.5142679",
"0.51148987",
"0.5074596",
"0.50551766",
"0.5017593",
"0.50018764",
"0.49879944",
"0.496282",
"0.49534547",
"0.49372903",
"0.49181724",
"0.49146187",
"0.49146... | 0.7130783 | 1 |
Test reverse sigmoid for binary classifier. | def RD9V(YKHO):
(bGrB, bGrB), (sAoX, bGrB) = YKHO.mnist
AmnI = CgPX()
aTLP = AmnI.predict(sAoX[0:1])
eFlc = YQAM(beta=1.0, gamma=0.1)
AZ3h = eFlc(preds=aTLP)
GB4A = oyIN.asarray([[0.5301345]], dtype=oyIN.float32)
asaQ = oyIN.asarray([[0.52711743]], dtype=oyIN.float32)
oyIN.testing.assert... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ALXI(YKHO):\n (bGrB, bGrB), (sAoX, bGrB) = YKHO.mnist\n AmnI = CgPX()\n aTLP = AmnI.predict(sAoX[0:1])\n eFlc = YQAM(beta=0.75, gamma=0.1)\n AZ3h = eFlc(preds=aTLP)\n GB4A = oyIN.asarray([[0.5301345]], dtype=oyIN.float32)\n asaQ = oyIN.asarray([[0.5278717]], dtype=oyIN.float32)\n oyIN.t... | [
"0.78990364",
"0.760895",
"0.75331205",
"0.74585223",
"0.74484307",
"0.699357",
"0.6968584",
"0.6935798",
"0.6930077",
"0.680307",
"0.6727016",
"0.66423",
"0.6558688",
"0.6543832",
"0.652409",
"0.6485436",
"0.6471774",
"0.6467463",
"0.64494693",
"0.6440559",
"0.64106804",
"... | 0.8420727 | 0 |
Verify that a^y = a^r (a^secret)^c (mod p). | def qutR(YKHO, LVAh):
LFlW = YKHO.sgroup.exponentiate(YKHO.a, LVAh)
_tIi = YKHO.x * YKHO.sgroup.exponentiate(YKHO.b, YKHO.c) % YKHO.sgroup.p
WTjz = LFlW == _tIi
return WTjz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mIDk(E3D9, XP5J, vexM, Oa1e, Mkmy, KCHu, LVAh, ywwl):\n fm0h = 512\n if 0 < Mkmy < vexM and 0 < KCHu < vexM:\n yzQ0 = y70e(KCHu, vexM)\n epBp = bkcb(E3D9) >> fm0h - ywwl\n IrOQ = epBp * yzQ0 % vexM\n KoVS = Mkmy * yzQ0 % vexM\n Ty9i = UJ02(Oa1e, IrOQ, XP5J) * UJ02(LVAh,... | [
"0.6196317",
"0.61118704",
"0.61078364",
"0.5966074",
"0.595295",
"0.59299934",
"0.5922854",
"0.5917",
"0.5915387",
"0.5862844",
"0.58382857",
"0.58365726",
"0.5820697",
"0.58107007",
"0.58041817",
"0.58005756",
"0.57852733",
"0.5775942",
"0.57718134",
"0.57621175",
"0.575625... | 0.60875076 | 3 |
Creates and returns a CartoContext object to work with Panda Dataframes | def EqBn(YKHO):
if YKHO._carto_context is None:
YKHO._carto_context = mKYe.CartoContext(base_url=YKHO.base_url, api_key=YKHO.api_key)
return YKHO._carto_context | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RkXR(YKHO, YAgj, yIVm=None):\n WBPg = YKHO.get_data_header(YAgj, dataset='cnv')\n jQ3Z = YKHO.get_data_in_frame(YAgj, WBPg, dataset='cnv')\n jQ3Z = YKHO.df_handler.map_column_names_of_dataframe(jQ3Z)\n return jQ3Z",
"def iXC1(YKHO) -> hxoQ:\n with YKHO.create_census_api_session():\n bo3... | [
"0.6026852",
"0.5974217",
"0.58925956",
"0.5769029",
"0.57194245",
"0.56998223",
"0.5542827",
"0.5490549",
"0.54387313",
"0.54381967",
"0.5422838",
"0.5410168",
"0.5399561",
"0.5397757",
"0.53658277",
"0.5333152",
"0.5244197",
"0.5244039",
"0.5242619",
"0.5231892",
"0.5188277... | 0.5593443 | 6 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=True, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
print('Normalized confusion matrix')
else:
print('Confusion matrix, without normalization')
QrM1.imshow(Bcwd, interpolation='nearest'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8193267",
"0.80943453",
"0.80284286",
"0.8018051",
"0.79932356",
"0.79901975",
"0.79797465",
"0.79750663",
"0.795993",
"0.79564947",
"0.79366505",
"0.79336995",
"0.7933488",
"0.79303867",
"0.79252106",
"0.7923493",
"0.7923058",
"0.79224193",
"0.79219115",
"0.79209906",
"0.... | 0.7883082 | 36 |
In the document itself we only store information for the words contained in the document, but we also need to be able to get a dict with all the words in it for ease of creating a matrix later | def pyZ3(YKHO, QPxx):
Qcsg = dict(YKHO.words)
for GIN8 in QPxx:
if GIN8 not in Qcsg:
Qcsg[GIN8] = 0
return Qcsg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lZkU(l5Ny):\n V22M = biH0(l5Ny)\n AqF1 = {}\n for GIN8, p6S0 in V22M:\n if GIN8 in AqF1:\n CzCi = AqF1[GIN8]\n else:\n CzCi = {'frequency': 0, 'indexes': []}\n AqF1[GIN8] = CzCi\n CzCi['frequency'] += 1\n CzCi['indexes'].append(p6S0)\n re... | [
"0.7167694",
"0.711093",
"0.70931387",
"0.70122695",
"0.7007467",
"0.6901294",
"0.6675801",
"0.66325355",
"0.6612295",
"0.6589775",
"0.6579378",
"0.65563107",
"0.6529008",
"0.6500303",
"0.6495014",
"0.64451945",
"0.64169616",
"0.64067775",
"0.6363871",
"0.63599414",
"0.634956... | 0.0 | -1 |
Return True iff this Event is equal to . Two events are equal iff they have the same timestamp. | def xa14(YKHO, Elif):
return YKHO.timestamp == Elif.timestamp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif: Event) -> bool:\n return YKHO.timestamp == Elif.timestamp",
"def xa14(YKHO, Elif):\n if YKHO is Elif:\n return True\n elif type(YKHO) != type(Elif):\n return False\n else:\n return YKHO._start_time == Elif._start_time and YKHO._end_time == Elif._end_time and ... | [
"0.8605195",
"0.7451189",
"0.7438941",
"0.73378026",
"0.73249805",
"0.7315657",
"0.7178449",
"0.717657",
"0.71551526",
"0.71209514",
"0.7077555",
"0.70606625",
"0.70065",
"0.68910795",
"0.68679833",
"0.6834845",
"0.678818",
"0.6762164",
"0.6741362",
"0.6740453",
"0.6717907",
... | 0.77249676 | 1 |
Return True iff this Event is not equal to . | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: Event) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif):\n if not isinstance(Elif, JS3F):\n return True\n return YKHO.to_dict() != Elif.to_dict()",
"def Vdqg(YKHO, Elif):\n if not isinstance(Elif, G6ow):\n return True\n return YKHO.to_dict() != E... | [
"0.88128227",
"0.814215",
"0.80395323",
"0.73534673",
"0.73293585",
"0.73109776",
"0.73001015",
"0.72489184",
"0.72489184",
"0.7241441",
"0.7238608",
"0.7238608",
"0.72373456",
"0.72349524",
"0.7233768",
"0.7227581",
"0.7219877"
] | 0.0 | -1 |
Return a string representation of this event. | def zAg0(YKHO):
raise NotImplementedError('Implemented in a subclass') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO._event)",
"def wHJl(YKHO) -> str:\n return f'tcod.event.{YKHO.__class__.__name__}.{YKHO.name}'",
"def wHJl(YKHO) -> str:\n return f'tcod.event.{YKHO.__class__.__name__}.{YKHO.name}'",
"def wHJl(YKHO):\n return '{}'.format(YKHO._event.get('id'))",
"def zAg0(YKHO... | [
"0.8760086",
"0.7921973",
"0.7921973",
"0.7614405",
"0.76137275",
"0.7540913",
"0.7464034",
"0.7434992",
"0.7398156",
"0.7377259",
"0.7130863",
"0.7039281",
"0.70127857",
"0.69814324",
"0.6976205",
"0.6922966",
"0.6910238",
"0.69091386",
"0.689699",
"0.689699",
"0.689699",
... | 0.0 | -1 |
Return a string representation of this event. | def zAg0(YKHO):
return '{} -- {}: Request a driver'.format(YKHO.timestamp, YKHO.rider.identifier) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO._event)",
"def wHJl(YKHO) -> str:\n return f'tcod.event.{YKHO.__class__.__name__}.{YKHO.name}'",
"def wHJl(YKHO) -> str:\n return f'tcod.event.{YKHO.__class__.__name__}.{YKHO.name}'",
"def wHJl(YKHO):\n return '{}'.format(YKHO._event.get('id'))",
"def zAg0(YKHO... | [
"0.8760086",
"0.7921973",
"0.7921973",
"0.7614405",
"0.76137275",
"0.7540913",
"0.7464034",
"0.7434992",
"0.7398156",
"0.7377259",
"0.7130863",
"0.7039281",
"0.70127857",
"0.69814324",
"0.6976205",
"0.6922966",
"0.6910238",
"0.69091386",
"0.689699",
"0.689699",
"0.689699",
... | 0.0 | -1 |
Return a string representation of this event. | def zAg0(YKHO):
return '{} -- {}: Request a rider'.format(YKHO.timestamp, YKHO.driver.identifier) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO._event)",
"def wHJl(YKHO) -> str:\n return f'tcod.event.{YKHO.__class__.__name__}.{YKHO.name}'",
"def wHJl(YKHO) -> str:\n return f'tcod.event.{YKHO.__class__.__name__}.{YKHO.name}'",
"def wHJl(YKHO):\n return '{}'.format(YKHO._event.get('id'))",
"def zAg0(YKHO... | [
"0.87605715",
"0.79225385",
"0.79225385",
"0.7614253",
"0.7614019",
"0.75402796",
"0.7464256",
"0.74343187",
"0.7398412",
"0.73768336",
"0.7131615",
"0.7038698",
"0.701129",
"0.6979806",
"0.6974554",
"0.6924325",
"0.69085896",
"0.6907355",
"0.6894737",
"0.6894737",
"0.6894737... | 0.0 | -1 |
Return a string representation of this event. | def zAg0(YKHO):
return '{} -- {}: Cancel the request'.format(YKHO.timestamp, YKHO.rider.identifier) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO._event)",
"def wHJl(YKHO) -> str:\n return f'tcod.event.{YKHO.__class__.__name__}.{YKHO.name}'",
"def wHJl(YKHO) -> str:\n return f'tcod.event.{YKHO.__class__.__name__}.{YKHO.name}'",
"def wHJl(YKHO):\n return '{}'.format(YKHO._event.get('id'))",
"def zAg0(YKHO... | [
"0.87606734",
"0.792234",
"0.792234",
"0.76142377",
"0.7614173",
"0.7540242",
"0.74643946",
"0.74345285",
"0.73982257",
"0.73766965",
"0.7131568",
"0.7039081",
"0.7011566",
"0.69796216",
"0.69744706",
"0.69244444",
"0.690843",
"0.6907243",
"0.68947774",
"0.68947774",
"0.68947... | 0.0 | -1 |
Return a string representation of this event. | def zAg0(YKHO):
return '{} -- {}: Pick up {}'.format(YKHO.timestamp, YKHO.driver.identifier, YKHO.rider.identifier) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO._event)",
"def wHJl(YKHO) -> str:\n return f'tcod.event.{YKHO.__class__.__name__}.{YKHO.name}'",
"def wHJl(YKHO) -> str:\n return f'tcod.event.{YKHO.__class__.__name__}.{YKHO.name}'",
"def wHJl(YKHO):\n return '{}'.format(YKHO._event.get('id'))",
"def zAg0(YKHO... | [
"0.8760086",
"0.7921973",
"0.7921973",
"0.7614405",
"0.76137275",
"0.7540913",
"0.7464034",
"0.7434992",
"0.7398156",
"0.7377259",
"0.7130863",
"0.7039281",
"0.70127857",
"0.69814324",
"0.6976205",
"0.6922966",
"0.6910238",
"0.69091386",
"0.689699",
"0.689699",
"0.689699",
... | 0.0 | -1 |
Return a string representation of this event. | def zAg0(YKHO):
return '{} -- {}: Drop off {}'.format(YKHO.timestamp, YKHO.driver.identifier, YKHO.rider.identifier) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO._event)",
"def wHJl(YKHO) -> str:\n return f'tcod.event.{YKHO.__class__.__name__}.{YKHO.name}'",
"def wHJl(YKHO) -> str:\n return f'tcod.event.{YKHO.__class__.__name__}.{YKHO.name}'",
"def wHJl(YKHO):\n return '{}'.format(YKHO._event.get('id'))",
"def zAg0(YKHO... | [
"0.87605715",
"0.79225385",
"0.79225385",
"0.7614253",
"0.7614019",
"0.75402796",
"0.7464256",
"0.74343187",
"0.7398412",
"0.73768336",
"0.7131615",
"0.7038698",
"0.701129",
"0.6979806",
"0.6974554",
"0.6924325",
"0.69085896",
"0.6907355",
"0.6894737",
"0.6894737",
"0.6894737... | 0.0 | -1 |
Get the queryset. Since we want to enable aid preview, we have special cases depending | def k66M(YKHO):
CiP_ = qZuN.objects.select_related('theme').order_by('theme__name', 'name')
wNWv = L9JW.objects.select_related('perimeter', 'author').prefetch_related('financers', 'instructors').prefetch_related(lUKL('categories', queryset=CiP_))
CBIr = YKHO.request.user
if CBIr.is_authenticated and CBI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO, QePW, SR0I):\n return SR0I",
"def k66M(YKHO):\n return None",
"def k66M(YKHO):\n return None",
"def k66M(YKHO):\n if YKHO.queryset is None:\n return YKHO.model.objects.all()\n return YKHO.queryset",
"def k66M(YKHO):\n return YKHO.model.objects.all()",
"def k66M(YKH... | [
"0.726463",
"0.71866924",
"0.71866924",
"0.70888424",
"0.7072873",
"0.70642406",
"0.6984934",
"0.6984729",
"0.695602",
"0.69309545",
"0.6923369",
"0.6913429",
"0.68478334",
"0.6846613",
"0.68347883",
"0.68238026",
"0.6805389",
"0.67947704",
"0.6745639",
"0.67407197",
"0.67284... | 0.69157547 | 11 |
Gets the sample_rate of this DiarizeAudio. Sample rate of the audio file. | def fQqb(YKHO):
return YKHO._sample_rate | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _rWM(YKHO):\n with skD0.audio_open(YKHO.path) as eHNT:\n return eHNT.samplerate",
"def fQqb(YKHO, JvR2=None):\n return YKHO._sample_rate",
"def avuq(YKHO):\n return YKHO.sound.samplerate",
"def _rWM(YKHO):\n return YKHO.track.sampling_rate",
"def fQqb(YKHO):\n return YKHO.config.s... | [
"0.85575104",
"0.7629647",
"0.758621",
"0.7480864",
"0.7480175",
"0.73027724",
"0.72383213",
"0.7195255",
"0.7056587",
"0.7033708",
"0.7027626",
"0.7008648",
"0.7001884",
"0.6976768",
"0.69524306",
"0.69495827",
"0.6908444",
"0.6689346",
"0.66129386",
"0.6601145",
"0.6528635"... | 0.78369594 | 2 |
Gets the language_code of this DiarizeAudio. Language spoken in the audio file. | def r6VR(YKHO):
return YKHO._language_code | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r6VR(YKHO) -> str:\n return qe4Y.get(YKHO, 'language_code')",
"def hiDe(YKHO):\n return YKHO._audio_language",
"def rQow(YKHO) -> str:\n if YKHO.language_code in JBp2:\n return JBp2[YKHO.language_code]\n return YKHO.language_code",
"def L5PF(YKHO):\n pmON = YKHO.get_lang_path()\n ... | [
"0.77740663",
"0.77326375",
"0.76588917",
"0.74462914",
"0.7398473",
"0.727751",
"0.726176",
"0.726176",
"0.726176",
"0.726176",
"0.7199617",
"0.7196284",
"0.7178778",
"0.7178778",
"0.71396863",
"0.70835274",
"0.70835274",
"0.7042694",
"0.70426714",
"0.7040953",
"0.70409405",... | 0.77795273 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, viou):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.808826",
"0.808826",
"0.8054592",
"0.79827315",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Finds the channel id of the given channel name. Returns a channel ID in str format. | def bT6x(YKHO, R5yJ):
if not R5yJ:
raise AttributeError(f'{YKHO.find_channel_id.__name__}: Channel ID or Channel Name not given')
for YwkQ in YKHO.channels:
if R5yJ == YwkQ['name']:
return YwkQ['id']
raise NameError(f'{YKHO.find_channel_id.__name__}: Channel with given name not f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def btRu(YKHO, R5yJ):\n if YKHO.team_id is None:\n raise RuntimeError('Please set team_id before callingget_channel_id')\n xMux = []\n YRbF = 0\n Npgh = YKHO.get_channels()\n while Npgh:\n xMux.extend(Npgh)\n YRbF += 1\n Npgh = YKHO.get_channels(page=YRbF)\n for YwkQ i... | [
"0.78945357",
"0.77928394",
"0.76928824",
"0.7528464",
"0.72845674",
"0.72845674",
"0.72845674",
"0.72845674",
"0.7082955",
"0.6877657",
"0.68703485",
"0.6846514",
"0.67728543",
"0.67431206",
"0.66902554",
"0.6677634",
"0.66003025",
"0.66003025",
"0.66003025",
"0.66003025",
"... | 0.8211297 | 0 |
Delete messages generated by any bot | def fCiK(YKHO, R5yJ=None, LOJ7=None):
YKHO.delete_messages(channel_name=R5yJ, channel_id=LOJ7, confirmation_override=True, restrict={'type': 'subtype', 'values': ['bot_message']}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def delete_bot_msg(YKHO, YwkQ):\n await YwkQ.purge(limit=100, check=YKHO.is_me)",
"def PTpj(JyK9, KREW, DVsZ):\n JyK9.delete_message(DVsZ, KREW)",
"def PTpj(YKHO):\n for YRbF, Ol8d in enumerate(YKHO.owner.messages):\n if Ol8d == YKHO.body:\n del YKHO.owner.messages[YRbF]\n ... | [
"0.7780338",
"0.766387",
"0.7496178",
"0.72341657",
"0.7114733",
"0.70645875",
"0.7053617",
"0.6977062",
"0.6874578",
"0.68496853",
"0.68484",
"0.6779448",
"0.67624426",
"0.67098045",
"0.6693621",
"0.66767555",
"0.6667951",
"0.6657434",
"0.6642479",
"0.6642452",
"0.6636642",
... | 0.7089851 | 5 |
Given the ip string is 127.0.0.1 When testing ip_str_is_valid Then validity is True | def wWP_(YKHO):
wEf2 = YioB.gh.EventSourceValidator()
J93I = wEf2.ip_str_is_valid('127.0.0.1')
YKHO.assertTrue(J93I) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tkzz(r3gH: str) -> bool:\n try:\n SwOd.ip_address(r3gH)\n return True\n except ValueError:\n return False",
"def mty4(D8Ke):\n ...",
"def SAfb(Y0SL):\n try:\n MDi9(Y0SL)\n return True\n except P1dF:\n return False",
"def gGDR(YKHO, I33c: str, mty4:... | [
"0.83980674",
"0.80797416",
"0.7858158",
"0.7715801",
"0.76552",
"0.7644597",
"0.7590711",
"0.7550455",
"0.7507537",
"0.7504932",
"0.743212",
"0.7431319",
"0.7418083",
"0.7413053",
"0.74031454",
"0.7347391",
"0.73068506",
"0.7261161",
"0.72592837",
"0.7256984",
"0.7214293",
... | 0.74725926 | 10 |
Given the ip string is valid When testing ip_str_is_valid Then validity is True | def wyAV(YKHO):
wEf2 = YioB.gh.EventSourceValidator()
for rRzo in lA8U:
J93I = wEf2.ip_str_is_valid(rRzo)
YKHO.assertTrue(J93I) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tkzz(r3gH: str) -> bool:\n try:\n SwOd.ip_address(r3gH)\n return True\n except ValueError:\n return False",
"def mty4(D8Ke):\n ...",
"def gGDR(YKHO, I33c: str, mty4: bool):\n YKHO.assertEqual(bool(WuLP.search(I33c)), mty4)",
"def SAfb(Y0SL):\n try:\n MDi9(Y0SL)\... | [
"0.85545254",
"0.80473465",
"0.80222505",
"0.7788867",
"0.7767202",
"0.7647142",
"0.7609007",
"0.7567017",
"0.7559222",
"0.7557896",
"0.7526455",
"0.7493877",
"0.74845773",
"0.74712473",
"0.7468627",
"0.74335146",
"0.7423984",
"0.73761994",
"0.726248",
"0.7207197",
"0.7196224... | 0.654953 | 55 |
Given the ip string is not valid When testing ip_str_is_valid Then validity is False | def yT1B(YKHO):
wEf2 = YioB.gh.EventSourceValidator()
for rRzo in Fw5j:
J93I = wEf2.ip_str_is_valid(rRzo)
YKHO.assertFalse(J93I) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tkzz(r3gH: str) -> bool:\n try:\n SwOd.ip_address(r3gH)\n return True\n except ValueError:\n return False",
"def mty4(D8Ke):\n ...",
"def gGDR(YKHO, I33c: str, mty4: bool):\n YKHO.assertEqual(bool(WuLP.search(I33c)), mty4)",
"def RPkW(YKHO, UTX6):\n try:\n z05X.... | [
"0.84212345",
"0.7908629",
"0.7846345",
"0.7613299",
"0.7599163",
"0.75588775",
"0.7533539",
"0.74877214",
"0.74761754",
"0.74393827",
"0.7374914",
"0.73662376",
"0.7366006",
"0.73492956",
"0.7348403",
"0.7346533",
"0.73458296",
"0.72802514",
"0.72390854",
"0.7180324",
"0.712... | 0.66268235 | 48 |
Given the milestone does not exist When I call repo.ensure_milestone_exists Then a new milestone is created | def RliD(YKHO):
boHx = YioB.gh.repo_from_callback(y6HE())
boHx.milestone_exists = CFMy(return_value=False)
boHx.create_milestone = CFMy()
boHx.ensure_milestone_exists('foo')
boHx.create_milestone.assert_called() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Awi6(YKHO):\n pass",
"def UWo5(YKHO):\n boHx = YioB.gh.repo_from_callback(y6HE())\n boHx._milestones = (wL_I(),)\n YKHO.assertFalse(boHx.milestone_exists('bar'))",
"def YWlq(YKHO):\n boHx = YioB.gh.repo_from_callback(y6HE())\n boHx._milestones = (wL_I(),)\n YKHO.assertTrue(boHx.milesto... | [
"0.7710748",
"0.766045",
"0.7627024",
"0.7617671",
"0.745573",
"0.7440926",
"0.7257685",
"0.7112544",
"0.7103778",
"0.69653094",
"0.6903944",
"0.6743343",
"0.65183854",
"0.6457748",
"0.63489753",
"0.6290784",
"0.610689",
"0.60893166",
"0.58880687",
"0.58703375",
"0.5862941",
... | 0.79421127 | 0 |
Given a malestone already has a specified due date When I call repo.ensure_milestone_has_due_date Then the due date is not updated | def pCLm(YKHO):
naCA = '2012-10-09T23:39:01Z'
boHx = YioB.gh.repo_from_callback(y6HE())
boHx.milestone_exists = CFMy(return_value=True)
cpvk = YioB.gh.Milestone('some/repo', '_milestone')
cpvk.get_due_date = CFMy(return_value=naCA)
cpvk.set_due_date = CFMy()
boHx.get_milestone = CFMy(return_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m2yv(YKHO):\n naCA = '2012-10-09T23:39:01Z'\n QssC = '2030-10-09T23:39:01Z'\n boHx = YioB.gh.repo_from_callback(y6HE())\n boHx.milestone_exists = CFMy(return_value=True)\n cpvk = YioB.gh.Milestone('some/repo', '_milestone')\n cpvk.get_due_date = CFMy(return_value=QssC)\n cpvk.set_due_date ... | [
"0.77602226",
"0.74205506",
"0.7200938",
"0.69586426",
"0.6744125",
"0.661255",
"0.65505385",
"0.646638",
"0.6348943",
"0.62677795",
"0.6183409",
"0.6156582",
"0.6140203",
"0.600472",
"0.59503156",
"0.5905819",
"0.59007436",
"0.58876324",
"0.5866793",
"0.5855363",
"0.57928056... | 0.74818784 | 1 |
Given a milestone exists with a due date And the due date is not the specified due date When I call repo.ensure_milestone_has_due_date Then the due date is updated | def m2yv(YKHO):
naCA = '2012-10-09T23:39:01Z'
QssC = '2030-10-09T23:39:01Z'
boHx = YioB.gh.repo_from_callback(y6HE())
boHx.milestone_exists = CFMy(return_value=True)
cpvk = YioB.gh.Milestone('some/repo', '_milestone')
cpvk.get_due_date = CFMy(return_value=QssC)
cpvk.set_due_date = CFMy()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pCLm(YKHO):\n naCA = '2012-10-09T23:39:01Z'\n boHx = YioB.gh.repo_from_callback(y6HE())\n boHx.milestone_exists = CFMy(return_value=True)\n cpvk = YioB.gh.Milestone('some/repo', '_milestone')\n cpvk.get_due_date = CFMy(return_value=naCA)\n cpvk.set_due_date = CFMy()\n boHx.get_milestone = ... | [
"0.7672749",
"0.7636564",
"0.7391658",
"0.7126366",
"0.6833399",
"0.66380584",
"0.65008646",
"0.6181164",
"0.6152323",
"0.6123797",
"0.6035817",
"0.5970235",
"0.59584934",
"0.58637094",
"0.5783218",
"0.57732266",
"0.57675564",
"0.57532823",
"0.57521147",
"0.57211685",
"0.5714... | 0.79526496 | 0 |
Given a milestone, when I call repo.create_milestone; idempotency. | def hhhC(YKHO):
boHx = YioB.gh.repo_from_callback(y6HE())
boHx._milestones = (wL_I(),)
yUPK = CFMy()
boHx._repo.create_milestone = yUPK
boHx.milestone_exists = CFMy(return_value=True)
boHx.create_milestone('foo')
boHx._repo.create_milestone.assert_not_called() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Awi6(YKHO):\n pass",
"def RliD(YKHO):\n boHx = YioB.gh.repo_from_callback(y6HE())\n boHx.milestone_exists = CFMy(return_value=False)\n boHx.create_milestone = CFMy()\n boHx.ensure_milestone_exists('foo')\n boHx.create_milestone.assert_called()",
"def t3_7(YKHO):\n pass",
"def bUBb(YK... | [
"0.79608655",
"0.6963737",
"0.6761919",
"0.67429",
"0.6681787",
"0.6630424",
"0.6572352",
"0.6553374",
"0.648948",
"0.63352513",
"0.6325548",
"0.629504",
"0.6290621",
"0.6201444",
"0.60996014",
"0.60572934",
"0.60470885",
"0.60196316",
"0.60124946",
"0.59155345",
"0.5881283",... | 0.6469897 | 9 |
Given I have a valid callback payload When I initiate a Milestone Then no errors are raised | def O4dl(YKHO):
boHx = YioB.gh.repo_from_callback(y6HE())
boHx._repo.create_milestone = CFMy()
_8Nn = zPxn()
try:
KYZd = YioB.gh.Milestone(boHx, _8Nn)
T0uQ = False
except:
T0uQ = True
YKHO.assertFalse(T0uQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Awi6(YKHO):\n pass",
"def YWlq(YKHO):\n boHx = YioB.gh.repo_from_callback(y6HE())\n boHx._milestones = (wL_I(),)\n YKHO.assertTrue(boHx.milestone_exists('foo'))",
"def ztYM(YKHO, pB3N):\n pass",
"def MpTF(YKHO):\n boHx = YioB.gh.repo_from_callback(y6HE())\n boHx._milestones = (wL_I()... | [
"0.6447205",
"0.61837476",
"0.60797346",
"0.5923869",
"0.58718747",
"0.58694124",
"0.5819093",
"0.5789703",
"0.5783767",
"0.5751128",
"0.57165015",
"0.56623805",
"0.56358165",
"0.56259555",
"0.56120163",
"0.56016225",
"0.55688924",
"0.5555831",
"0.551793",
"0.55048764",
"0.54... | 0.66486484 | 0 |
Returns a copy of the fuzzy instance Returns Union[list, dict] A copy of the fuzzy instance | def jth9(YKHO) -> yOJ9:
if YKHO._base == U8Lr:
_9G5 = dict(YKHO)
else:
_9G5 = YKHO._base.copy(YKHO)
return YKHO.__class__(_9G5, use_fuzzy=YKHO.use_fuzzy, dottable=YKHO._dottable) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return Ix4h(YKHO)",
"def Vs4Q(YKHO) -> 'Dictionary':\n return jth9.deepcopy(YKHO)",
"def jth9(YKHO):\n return oRi_.copy(YKHO)",
"def _KRP(YKHO) -> uLKX[list, dict]:\n return YKHO._base(YKHO)",
"def FIMM(YKHO, tAX0: float=0.6):\n super(ItI2, YKHO).__init__()\n YKHO.cutoff... | [
"0.5589884",
"0.55804646",
"0.55547327",
"0.5540765",
"0.54704154",
"0.5377071",
"0.5309006",
"0.5291203",
"0.52695376",
"0.5240639",
"0.52266026",
"0.5219126",
"0.5208229",
"0.51648337",
"0.5159458",
"0.5122366",
"0.50988287",
"0.5051912",
"0.50502396",
"0.50452906",
"0.5026... | 0.58321214 | 0 |
Offspring list should be a list of tuples (parent_a, offspring, parent_b), where parent_b is optional. Result will be in [0,100]. 0 is equivalent to random oversampling, 100 is maximum dissimilarity. | def oG0O(EcVT, cjat):
r6NT = 0
if len(cjat[0]) == 2:
cjat = [(FrGF, XJ7N, FrGF) for FrGF, XJ7N in cjat]
for FrGF, XJ7N, eSKt in cjat:
r6NT += max(da78(FrGF, XJ7N), da78(eSKt, XJ7N))
return (1 - (r6NT / len(cjat) + 1) / 2) * 100 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ph4O(YKHO):\n ACnF = YKHO._select_parents()\n XJ7N = YKHO._crossover(*ACnF)\n if tuKI.uniform(0, 1) < YKHO.mutation_rate:\n YKHO._mutate(XJ7N)\n return XJ7N",
"def BwHr(CHNM, wYHG, UiV1, TyvP):\n XJ7N = []\n while len(XJ7N) < TyvP:\n ACnF = []\n if wYHG == 'fps':\n ... | [
"0.6604597",
"0.6543342",
"0.5939163",
"0.58297104",
"0.5808753",
"0.5794668",
"0.5737248",
"0.56576973",
"0.56217694",
"0.5550536",
"0.55129933",
"0.5503283",
"0.55004895",
"0.5497907",
"0.5479645",
"0.5471308",
"0.5470691",
"0.54491854",
"0.5423416",
"0.54137176",
"0.540637... | 0.5392727 | 21 |
Return a friendly HTTP greeting. | def Wzeq():
return 'Hello World!' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tz38(mWFP):\n BYLU = f\"Hello, {mWFP.title()}. It's nice to meet you!\"\n return BYLU",
"def uthR():\n return 'Welcome to Flask!'",
"def Y7u5(mWFP):\n print('My name is ' + mWFP)",
"def qjYe():\n return f\"Welcome to the Surf's Up API!Available Routes:<br/>/api/v1.0/surfs-up\"",
"def Wze... | [
"0.6785658",
"0.6718835",
"0.67086893",
"0.66817635",
"0.6662773",
"0.6637097",
"0.6633533",
"0.66266304",
"0.6556931",
"0.65360993",
"0.64784324",
"0.64777356",
"0.64686126",
"0.64640325",
"0.6443602",
"0.6435352",
"0.640118",
"0.64006835",
"0.6374869",
"0.6374869",
"0.63681... | 0.0 | -1 |
Unsigned right shift operator | def Y32f(wEf2: int, exwG: int) -> int:
return wEf2 % 4294967296 >> exwG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FrPO(WKvO, LVAh):\n return _gRY.bit_right_shift(WKvO, LVAh)",
"def m5re(YKHO, Elif):\n if not isinstance(Elif, int):\n return NotImplemented\n return YKHO.__floordiv__(1 << Elif)",
"def PR6O(YB8B, UHFx):\n return (YB8B << UHFx | YB8B >> 32 - UHFx) & 4294967295",
"def Y32f(wEf2, exwG):\... | [
"0.71998733",
"0.69719565",
"0.6742955",
"0.67332065",
"0.67332065",
"0.67275214",
"0.67081684",
"0.6685824",
"0.6636615",
"0.6626784",
"0.6617559",
"0.66112953",
"0.6558842",
"0.6531386",
"0.6514137",
"0.64463454",
"0.61896306",
"0.6106762",
"0.6084897",
"0.6010447",
"0.5976... | 0.6484917 | 15 |
Initialize hallucinated model by default. | def WmM4(Emd4, GikI, rvDU=None, jkga='dynamics', BmLB=None, *qIxc, **B2fa):
if BmLB is None:
BmLB = [tlFL(aDHc()), WCnI(), FJ6L()]
return super().default(*qIxc, environment=GikI, base_model=rvDU, model_kind=jkga, transformations=BmLB, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gv23(YKHO):\n pass",
"def fPO8(YKHO):\n pass",
"def uIcm(YKHO, C3ST):\n pass",
"def uIcm(YKHO):\n pass",
"def FIMM(YKHO):\n YKHO.model = None",
"def FIMM(YKHO):\n YKHO.model = None",
"def uIcm(YKHO) -> None:\n YKHO.model = tyeH(YKHO.path)",
"def FIMM(YKHO, C3ST):\n YKHO._m... | [
"0.7765978",
"0.75678986",
"0.7447622",
"0.67837715",
"0.6748732",
"0.6748732",
"0.67332536",
"0.66250724",
"0.6538347",
"0.65050733",
"0.6500862",
"0.64593184",
"0.6448302",
"0.6447082",
"0.6436469",
"0.6401808",
"0.63941073",
"0.6373198",
"0.6371562",
"0.6363391",
"0.636339... | 0.0 | -1 |
Test that issues are omitted when severity does not match. | def jNTn(YKHO, pqJ8):
pqJ8.side_effect = [UMqE, '{"reportId": 22}', '{"status": {"value": "Created"}}', TJXf.format(false_positive=False, severity='Low')]
YKHO.__report.obtain_issues(['id'], 'high')
W5Ak = YKHO.__report.issues()
YKHO.assertIsInstance(W5Ak, x1iM)
YKHO.assertEqual(len(W5Ak), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WFrS(YKHO):\n MpXb = HwRy._getframe().f_code.co_name\n im04, hlel = YKHO._execute('severity remove bad_severity')\n YKHO.assertEqual(2, im04)\n YKHO.assertEqual(YKHO.expected_results[MpXb], hlel)",
"def U6Rx(YKHO):\n MpXb = HwRy._getframe().f_code.co_name\n im04, hlel = YKHO._execute('sever... | [
"0.67255086",
"0.6670507",
"0.66348845",
"0.61109936",
"0.589228",
"0.587225",
"0.5809899",
"0.580242",
"0.57801867",
"0.57800055",
"0.577609",
"0.5771563",
"0.5762748",
"0.5716014",
"0.57057106",
"0.57042366",
"0.56757283",
"0.5672432",
"0.5657414",
"0.56401885",
"0.5631925"... | 0.68441534 | 0 |
Test if a number is a odd number using bit operator. | def aqB0(FGW3: int) -> bool:
return FGW3 & 1 != 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kYZq(exwG):\n return exwG & 1",
"def kYZq(WKvO):\n return WKvO & 1 == 1",
"def kYZq(FGW3):\n return FGW3 % 2 != 0",
"def ubP8(WKvO):\n return WKvO & 1 == 0",
"def ePD4(FGW3):\n if FGW3 % 2 == 0:\n return 0\n else:\n return 1",
"def kYZq(FGW3):\n return FGW3 % 2 == 1... | [
"0.8603087",
"0.8428876",
"0.8192449",
"0.8111147",
"0.8070046",
"0.8060643",
"0.80580163",
"0.79892653",
"0.7944483",
"0.77504367",
"0.77473146",
"0.77392644",
"0.76711553",
"0.7618814",
"0.7355893",
"0.7334817",
"0.7331323",
"0.73193866",
"0.729272",
"0.7284692",
"0.7242756... | 0.8109838 | 4 |
Factory method to instantiate a `File` bypassing the `Media` wrapper. | def fWGg(Emd4, oxOY: pycldf.Dataset, YuSv: typing.Union[dict, orm.Media]) -> 'File':
return Emd4(uNId(oxOY), YuSv.data if isinstance(YuSv, zPjx.Media) else YuSv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XBea(mWFP, zNig=None, bD7m=None, pmON=None):\n HPuT = TMAJ.MagicMock(spec=YyOD)\n HPuT._committed = True\n HPuT.file_name = mWFP\n HPuT.name = mWFP\n HPuT.base_name = Hy7s.path.splitext(mWFP)[0]\n HPuT.__unicode__.return_value = mWFP\n\n def xa14(Elif):\n if hasattr(Elif, 'name'):\n... | [
"0.6558845",
"0.6530003",
"0.6512259",
"0.6489726",
"0.630012",
"0.620555",
"0.61910844",
"0.61793584",
"0.61793584",
"0.61634773",
"0.6150061",
"0.6088523",
"0.60425526",
"0.59462607",
"0.5944848",
"0.59270185",
"0.589444",
"0.5893154",
"0.5870454",
"0.584857",
"0.5829126",
... | 0.55791074 | 38 |
Returns a list of leaf nodes in the RTree. Note that RTree nodes are simply containers for child entries, which contain the actual data. If you want to get the actual data elements, you probably want to use get_leaf_entries instead. | def Ozmh(YKHO) -> x1iM[ln4P[Kt_s]]:
K3B_ = []
FYKK = YLnl(jTsO, K3B_)
YKHO.traverse_level_order(FYKK)
return K3B_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lju5(YKHO):\n WKa2 = []\n for YRbF in range(8):\n Q6kx = YKHO.children[YRbF]\n if Q6kx:\n if Q6kx.is_leaf():\n WKa2.append(Q6kx)\n else:\n WKa2.extend(Q6kx.get_leaf_nodes())\n return WKa2",
"def pyLA(YKHO) -> list:\n return YKHO._l... | [
"0.79662937",
"0.7822224",
"0.77706593",
"0.7601358",
"0.75453776",
"0.74101144",
"0.7348666",
"0.72657436",
"0.717363",
"0.7075963",
"0.7060972",
"0.68969953",
"0.6876006",
"0.6851262",
"0.68333286",
"0.6822573",
"0.6669306",
"0.66495156",
"0.6642721",
"0.6601206",
"0.658904... | 0.75679785 | 4 |
Returns an iterable of the leaf entries in the RTree which contain the data. | def DeUu(YKHO) -> iu5r[NRjS[Kt_s]]:
for kjp6 in YKHO.get_leaves():
for bTKY in kjp6.entries:
yield bTKY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v0Kv(YKHO):\n for LihS in YKHO[1:]:\n if isinstance(LihS, UD_O):\n for NY1O in LihS.iter_leaf:\n yield NY1O\n else:\n yield LihS",
"def pyLA(YKHO) -> list:\n return YKHO._leafs[:]",
"def WKa2(YKHO, nPrm=True):\n WKa2 = [Q6kx for Q6kx in YKHO.graph... | [
"0.71633124",
"0.706189",
"0.6944471",
"0.69087213",
"0.68963164",
"0.6799614",
"0.6784264",
"0.670551",
"0.66650796",
"0.6600624",
"0.6592839",
"0.65850675",
"0.6518744",
"0.64899933",
"0.64844227",
"0.64480126",
"0.64329004",
"0.64218956",
"0.6354724",
"0.6352588",
"0.63185... | 0.7920885 | 0 |
Return a copy of my_dict with only the given keys. | def QTgW(eUNp: Dict, sjXb: Sequence) -> cuzp:
THSM = set(sjXb)
return {G1Hx: Ty9i for G1Hx, Ty9i in eUNp.items() if G1Hx in THSM} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bBev(Op6c, *sjXb):\n U5bT = {}\n for H5ew in sjXb:\n U5bT[H5ew] = Op6c[H5ew]\n return U5bT",
"def ZNxQ(Csk6: dict, sjXb: set) -> dict:\n return {H5ew: Csk6[H5ew] for H5ew in sjXb if H5ew in Csk6}",
"def qMC3(cmPJ: Mapping, sjXb: Sequence[Hashable]) -> dict:\n return {G1Hx: Ty9i for G1... | [
"0.7236426",
"0.7121861",
"0.71005243",
"0.6947047",
"0.69264513",
"0.68991506",
"0.68243486",
"0.6748393",
"0.6746759",
"0.67436665",
"0.6715544",
"0.6697055",
"0.6685839",
"0.6666035",
"0.6651076",
"0.65436476",
"0.6532411",
"0.6493947",
"0.64548147",
"0.6387798",
"0.632481... | 0.73262054 | 0 |
Return first value from the given dictionary. | def KJSM(eUNp: Dict) -> ImMB:
return list(eUNp.values())[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kYq6(MMe4, LEXu):\n if LEXu not in MMe4:\n return None\n wEf2 = MMe4[LEXu][0]['value']\n if not wEf2:\n return None\n return wEf2['value'] if isinstance(wEf2, dict) else wEf2",
"def cntZ(nPrm, H5ew):\n for YRbF in nPrm:\n if H5ew(YRbF):\n return YRbF\n return... | [
"0.73396343",
"0.706079",
"0.6960734",
"0.69362134",
"0.6895504",
"0.6859315",
"0.6812511",
"0.67927915",
"0.6728435",
"0.6630065",
"0.6630065",
"0.6630065",
"0.6630065",
"0.6603006",
"0.6569779",
"0.65552396",
"0.6452988",
"0.6452959",
"0.6446777",
"0.64249283",
"0.63708454"... | 0.82724667 | 0 |
Enable the mock, printed output will be available through .getvalue | def TSMu(YKHO):
YKHO.out = kJm3()
YKHO._stdout = HwRy.stdout
HwRy.stdout = YKHO.out | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _GXi():\n return FM6F()",
"def FCbF(YKHO):\n YKHO.actualstdout = HwRy.stdout\n HwRy.stdout = kJm3.StringIO()",
"def FCbF(YKHO):\n YKHO.output = YKHO.switchstdout()",
"def UUWP(YKHO):\n Yi4Q = FM6F(str)\n\n def uaPq(AIu6):\n return Yi4Q\n YPTS = FM6F()\n Fp1S = TibC(out=YPTS... | [
"0.6419308",
"0.62958485",
"0.62358326",
"0.6006155",
"0.59824055",
"0.59554476",
"0.5940539",
"0.59085524",
"0.58610404",
"0.5860603",
"0.58394444",
"0.5815543",
"0.58014065",
"0.5756926",
"0.5756536",
"0.573307",
"0.57268435",
"0.5669715",
"0.5667333",
"0.565613",
"0.565436... | 0.6574138 | 0 |
Initialize the model by setting up the layers. | def FIMM(YKHO):
super(AKdw, YKHO).__init__()
YKHO.embedding = U78l.Embedding(GPtr.VOCAB, GPtr.EMBED_DIM)
YKHO.embedding.shape = ht2j.Tensor(GPtr.BATCH_SIZE, 5 * GPtr.EMBED_DIM)
YKHO.lstm_words = U78l.LSTM(5 * GPtr.EMBED_DIM, GPtr.HIDDEN_DIM, num_layers=1, bidirectional=True)
YKHO.embedding_chars = U... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J2K6(YKHO):\n YKHO._init_predictor()\n if YKHO.use_edge_fusion:\n YKHO._init_edge_module()",
"def kHAz(YKHO):\n YKHO.create_variables()\n YKHO.create_placeholders()\n YKHO.build_model()\n YKHO.reset_lr(None, True)\n YKHO.build_loss()\n YKHO.initialised = True",
"def J2K6(YKHO... | [
"0.7877656",
"0.740135",
"0.73939556",
"0.73799825",
"0.72304994",
"0.72242755",
"0.7183698",
"0.7181406",
"0.7175707",
"0.71491647",
"0.70773673",
"0.70694804",
"0.7036073",
"0.70194495",
"0.7018242",
"0.69936645",
"0.6969751",
"0.6949472",
"0.69274527",
"0.6899944",
"0.6853... | 0.0 | -1 |
render the template for the entire main index | def Lls5(wPdp: List[Link], Pt1K: bool=True, rPXJ: str=t38g) -> str:
return tEUd(rPXJ, {'version': wx3I, 'git_sha': M3RB, 'num_links': str(len(wPdp)), 'status': 'finished' if Pt1K else 'running', 'date_updated': qcWV.now().strftime('%Y-%m-%d'), 'time_updated': qcWV.now().strftime('%Y-%m-%d %H:%M'), 'rows': '\n'.join... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(YKHO):\n return TvZl('main/index.html')",
"def d6pt(YKHO):\n return TvZl('index.html')",
"def d6pt():\n return TvZl('0-index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt(YKHO) -> Z8IP:\n return TvZl('index.jinja2')",
"def d6pt():\n return TvZl('index.html')",
... | [
"0.8672477",
"0.8532363",
"0.8284499",
"0.8260605",
"0.822163",
"0.821161",
"0.8121039",
"0.8110467",
"0.8110467",
"0.8103265",
"0.8102184",
"0.8102184",
"0.8088343",
"0.8088343",
"0.80405676",
"0.80137557",
"0.80137557",
"0.80137557",
"0.80137557",
"0.80137557",
"0.80137557"... | 0.0 | -1 |
Evaluates to True only if the subject has a referral instance with a referral code to avoid exporting locator information on someone who is not yet been referred. | def THOa(YKHO):
try:
Zu1S = FYrf.get_model('bcpp_subject', 'subjectreferral')
gGlD = Zu1S.objects.get(subject_visit=YKHO.subject_visit)
if gGlD.referral_code:
return True
except Zu1S.DoesNotExist:
pass
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _126(YKHO):\n return YKHO._accepting_referral_patients",
"def nUwc(YKHO):\n if ehPO.objects.filter(reference_email__iexact=YKHO.reference_email, reference_contact_datetime__isnull=False).exclude(reference_email=''):\n return True\n elif os3T.objects.filter(reference_email__iexact=YKHO.referen... | [
"0.6175379",
"0.6041582",
"0.5941692",
"0.5861591",
"0.57034063",
"0.5561761",
"0.5513164",
"0.54298824",
"0.5372512",
"0.5334468",
"0.53260505",
"0.52954566",
"0.5240541",
"0.5181526",
"0.5170337",
"0.51694036",
"0.516801",
"0.51543057",
"0.5149848",
"0.51485145",
"0.5103085... | 0.64402753 | 0 |
For each path in ``paths``, yield each of its continuous subpaths. If a subpath appears in multiple paths, it will be yielded only once. | def FI_0(ckRy):
wEyK = set()
for pmON in ckRy:
RYsB = pmON.split('.')
bDWw = len(RYsB)
for YRbF in Ni9Y(1, bDWw + 1):
gzes = '.'.join(RYsB[:YRbF])
if gzes not in wEyK:
wEyK.add(gzes)
yield gzes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TD7o(YKHO, ckRy):\n for pmON in sorted(ckRy):\n if Hy7s.path.isdir(pmON):\n for Z0kE, bGrB, iumf in sorted(Hy7s.walk(pmON)):\n for Ux0P in iumf:\n Ux0P = Hy7s.path.join(Z0kE, Ux0P)\n yield (Hy7s.path.relpath(Ux0P, pmON), Ux0P)\n e... | [
"0.67101735",
"0.65846455",
"0.6527582",
"0.62891436",
"0.6266062",
"0.6181241",
"0.6145993",
"0.61155343",
"0.5946886",
"0.5885951",
"0.58676374",
"0.58649844",
"0.58606076",
"0.58426374",
"0.58377975",
"0.58375734",
"0.5799647",
"0.5789534",
"0.57820004",
"0.577701",
"0.572... | 0.66211045 | 1 |
Show image and mask | def PwKa(LNo8, ZHfW):
QrM1.subplot(1, 2, 1)
QrM1.title('image')
QrM1.imshow(LNo8)
QrM1.subplot(1, 2, 2)
QrM1.title('mask')
QrM1.imshow(ZHfW)
QrM1.show() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i5J1(YKHO, ZHfW=oyIN.ones((32, 32), dtype=bool)):\n LNo8 = oyIN.copy(YKHO.__image)\n LNo8[~ZHfW] = 0\n QrM1.imshow(LNo8, aspect='auto')\n QrM1.show()",
"def W8mS(YKHO, _uhB=True):\n XC5k.imshow('mask', YKHO.__mask)\n if _uhB:\n XC5k.imshow('raw image', YKHO.__img)",
"def xOGS(LNo8,... | [
"0.79815054",
"0.7675059",
"0.75897855",
"0.7151778",
"0.7057993",
"0.6985492",
"0.6928993",
"0.6910137",
"0.6870259",
"0.68673766",
"0.67836076",
"0.6773023",
"0.6770777",
"0.672948",
"0.67251325",
"0.67230326",
"0.6719405",
"0.668861",
"0.66885364",
"0.6680464",
"0.6680058"... | 0.8337113 | 0 |
Sets up User for every test | def FCbF(YKHO):
YKHO.place = pRgP() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.user_1 = mv1M.objects.create_user(first_name='John', last_name='Kenedy', username='johnny', password='Phrase908', email='johnny@gmail.com')\n YKHO.user_2 = mv1M.objects.create_user(first_name='Kent', last_name='Philip', username='kenty', password='Phrase908', email='kent@gmail.com')",
... | [
"0.8490846",
"0.8310915",
"0.8294649",
"0.82900846",
"0.8267219",
"0.8267085",
"0.8242975",
"0.8239721",
"0.8231389",
"0.82086176",
"0.81774026",
"0.8175148",
"0.8164746",
"0.8154354",
"0.81538707",
"0.80955994",
"0.8086286",
"0.8082901",
"0.8052457",
"0.80480516",
"0.8048051... | 0.0 | -1 |
Return True if the given word is isogram, else return False | def y3fr(GIN8):
GIN8 = [hcXw.lower() for hcXw in GIN8 if hcXw.isalpha()]
for hcXw in GIN8:
if GIN8.count(hcXw) > 1:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y3fr(KCHu):\n return len(KCHu) == len(set(KCHu.lower()))",
"def y3fr(vIwR) -> bool:\n oRP1 = ''.join((hcXw.lower() for hcXw in vIwR if hcXw not in [' ', '-']))\n for hcXw in oRP1:\n if oRP1.count(hcXw) > 1:\n return False\n return True",
"def Gtm1(YKHO, GIN8):\n return YKHO... | [
"0.7393521",
"0.7320594",
"0.7164876",
"0.70053095",
"0.69800115",
"0.69224507",
"0.65922606",
"0.6505847",
"0.6485036",
"0.64451647",
"0.64428127",
"0.6417361",
"0.6409973",
"0.6353182",
"0.6335794",
"0.6311961",
"0.62835467",
"0.6265405",
"0.6251391",
"0.6198926",
"0.619134... | 0.82826686 | 0 |
Derivative of penalty function at signed distance d | def MPmt(Csk6):
return -1 / (Csk6 + 0.2) ** 2 if Csk6 > -0.1 else 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YuXi(lWPh, EcVT):\n Cwt5 = llWB(oyIN.random.random(size=EcVT.shape))\n _4i1 = Cwt5 * EcVT + (1 - Cwt5) * (EcVT + 0.5 * EcVT.std() * ht2j.rand(EcVT.size()).cuda())\n _4i1 = iQnE(_4i1, requires_grad=True)\n McaO = lWPh(_4i1)\n n9UN = iQnE(llWB(EcVT.shape[0], 1).fill_(1.0), requires_grad=False)\n ... | [
"0.67249644",
"0.65796465",
"0.65788347",
"0.6508573",
"0.64842063",
"0.6454683",
"0.6432639",
"0.6338636",
"0.62835574",
"0.6279349",
"0.6264606",
"0.62619257",
"0.6242987",
"0.62063235",
"0.61714613",
"0.6166012",
"0.61608636",
"0.6135637",
"0.6084165",
"0.6071399",
"0.6070... | 0.67943496 | 0 |
Add a solid to the environment dictionary | def eKkZ(YKHO, k518):
return YKHO.__add_solid(k518) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FG6I(YKHO, k518, kloF=None):\n if YKHO._solid_name_check(k518, chk_dict=kloF) == v1qw._VALID:\n if kloF is None:\n kloF = YKHO._e_dict\n kloF['solids'][k518] = {}\n return YKHO",
"def zz2b(YKHO, k518, CSC4):\n k2m5 = YKHO._solid_name_check(k518)\n if k2m5 == v1qw._VALID o... | [
"0.71929383",
"0.61194015",
"0.6014379",
"0.5917399",
"0.5798238",
"0.5767467",
"0.56309277",
"0.5564688",
"0.5500625",
"0.5454283",
"0.5385326",
"0.5317856",
"0.52489984",
"0.5232812",
"0.52111936",
"0.5202245",
"0.5170851",
"0.5153372",
"0.5101543",
"0.50994664",
"0.5084666... | 0.597575 | 3 |
Add a solid to the environment dictionary | def FG6I(YKHO, k518, kloF=None):
if YKHO._solid_name_check(k518, chk_dict=kloF) == v1qw._VALID:
if kloF is None:
kloF = YKHO._e_dict
kloF['solids'][k518] = {}
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zz2b(YKHO, k518, CSC4):\n k2m5 = YKHO._solid_name_check(k518)\n if k2m5 == v1qw._VALID or k2m5 == v1qw._EXISTS:\n if k2m5 == v1qw._VALID:\n YKHO._e_dict['solids'][k518] = {'solids': {}}\n foed = YKHO._e_dict['solids'][k518]\n YKHO.__add_solid(CSC4, chk_dict=foed)\n retu... | [
"0.61194015",
"0.6014379",
"0.597575",
"0.5917399",
"0.5798238",
"0.5767467",
"0.56309277",
"0.5564688",
"0.5500625",
"0.5454283",
"0.5385326",
"0.5317856",
"0.52489984",
"0.5232812",
"0.52111936",
"0.5202245",
"0.5170851",
"0.5153372",
"0.5101543",
"0.50994664",
"0.50846666"... | 0.71929383 | 0 |
Add a composite solid to the environment dictionary | def zz2b(YKHO, k518, CSC4):
k2m5 = YKHO._solid_name_check(k518)
if k2m5 == v1qw._VALID or k2m5 == v1qw._EXISTS:
if k2m5 == v1qw._VALID:
YKHO._e_dict['solids'][k518] = {'solids': {}}
foed = YKHO._e_dict['solids'][k518]
YKHO.__add_solid(CSC4, chk_dict=foed)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FG6I(YKHO, k518, kloF=None):\n if YKHO._solid_name_check(k518, chk_dict=kloF) == v1qw._VALID:\n if kloF is None:\n kloF = YKHO._e_dict\n kloF['solids'][k518] = {}\n return YKHO",
"def NnrJ(YKHO, k518, CSC4, dvBq, BWXx, hcZQ=False):\n k2m5 = YKHO._solid_name_check(k518)\n ... | [
"0.67898226",
"0.653966",
"0.61502546",
"0.58715105",
"0.5857697",
"0.5254307",
"0.52406853",
"0.5232969",
"0.5219034",
"0.5204596",
"0.51328",
"0.51290596",
"0.5119428",
"0.5106272",
"0.5086297",
"0.5086297",
"0.50430673",
"0.50329405",
"0.50126684",
"0.49949488",
"0.4984710... | 0.7221303 | 0 |
Read a JSON file from the "fixtures" directory. | def rboP(Ux0P: str) -> cuzp[str, str]:
kxgk = GkAb(xAKo).resolve().parents[0] / f'fixtures/{Ux0P}'
with open(kxgk, mode='r') as eHNT:
nPrm = qQXR.load(eHNT)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VryH(Ux0P: str) -> ImMB:\n return qQXR.loads(dMy2(f'jellyfin/{Ux0P}'))",
"def f3LN(YKHO, pmON):\n try:\n with GkAb(pmON).open('r') as eHNT:\n return qQXR.load(eHNT)\n except ValueError as ve:\n jKi7.raise_from(ValueError('error while loading the fixture %s' % pmON), pSUx)",
... | [
"0.7927645",
"0.76608217",
"0.7218705",
"0.71996886",
"0.7188205",
"0.7113512",
"0.7085031",
"0.7052283",
"0.7033731",
"0.6987805",
"0.6985032",
"0.69712424",
"0.6970192",
"0.69670963",
"0.69654125",
"0.6959683",
"0.6957125",
"0.6955158",
"0.6914491",
"0.6905901",
"0.6903639"... | 0.8265361 | 0 |
Generate a random string of fixed length | def MnrY(FVpJ=5):
KoG3 = vIwR.ascii_letters + vIwR.digits
return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))",
"def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')",
"def e7Tf(u54L):\n return ''.join((tuKI... | [
"0.8680464",
"0.8573714",
"0.85486245",
"0.85297275",
"0.85209286",
"0.84331024",
"0.8432044",
"0.84157014",
"0.84120053",
"0.8389201",
"0.8345882",
"0.8343962",
"0.83406156",
"0.83348686",
"0.83240855",
"0.82986933",
"0.82911193",
"0.8281826",
"0.82818025",
"0.82811046",
"0.... | 0.0 | -1 |
Saves the given dictionary of serials to a file | def AZmI(Op6c):
qQXR.dump(Op6c, open('resources/files/serials.csv', 'w')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AHFl():\n uubB.update(cdiC)\n X9KB = open('data.txt', 'w')\n for H5ew in uubB.keys():\n X9KB.write(H5ew)\n X9KB.write(' ')\n X9KB.write(str(uubB[H5ew][0]))\n X9KB.write(' ')\n X9KB.write(uubB[H5ew][1].replace(' ', '_'))\n X9KB.write(' ')\n X9KB.write(st... | [
"0.6935603",
"0.69188",
"0.68413275",
"0.6655667",
"0.6588878",
"0.65765744",
"0.6527208",
"0.6474665",
"0.6474656",
"0.6466567",
"0.6454954",
"0.64065444",
"0.6392219",
"0.6383138",
"0.6381531",
"0.6365475",
"0.63336074",
"0.63312453",
"0.63303477",
"0.6314856",
"0.63030714"... | 0.7513983 | 0 |
Applies a Coherenceenhancing filter onto an img | def gnM7(VXjJ, WTkW=11, lFBb=11, wegO=0.5, Y8pi=4):
MKlR, yzQ0 = VXjJ.shape[:2]
jbXL = VXjJ.copy()
for YRbF in Ni9Y(Y8pi):
ITiw = XC5k.cvtColor(jbXL, XC5k.COLOR_BGR2GRAY)
J6jV = XC5k.cornerEigenValsAndVecs(ITiw, lFBb, 3)
J6jV = J6jV.reshape(MKlR, yzQ0, 3, 2)
WKvO, LVAh = (J6j... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rvE2(YKHO, LNo8):\n pass",
"def rvE2(LNo8: np.ndarray) -> oyIN.ndarray:\n return cnG0(LNo8)",
"def l5Gq(YKHO, VXjJ):\n pPPK = YKHO.g.clahe.apply(VXjJ[:, :, 0])\n jlxe = YKHO.g.clahe.apply(VXjJ[:, :, 1])\n Z5Q9 = YKHO.g.clahe.apply(VXjJ[:, :, 2])\n VXjJ[:, :, 0] = pPPK\n VXjJ[:, :, 1] =... | [
"0.7258055",
"0.7201932",
"0.711102",
"0.679388",
"0.6672614",
"0.65973204",
"0.6456236",
"0.6401097",
"0.63895607",
"0.6332441",
"0.6326217",
"0.63224226",
"0.63135487",
"0.6266105",
"0.6185825",
"0.6174301",
"0.61501044",
"0.61242676",
"0.61152065",
"0.60922337",
"0.6086551... | 0.65705633 | 6 |
Imfill Creates a mask for an image by removing holes, Isolates shape of object | def tFvr(VXjJ, L4ej=220):
jbXL = qWz7(VXjJ)
U5bT, knl1 = XC5k.threshold(jbXL, L4ej, 255, XC5k.THRESH_BINARY_INV)
wsZs = knl1.copy()
MKlR, yzQ0 = knl1.shape[:2]
ZHfW = oyIN.zeros((MKlR + 2, yzQ0 + 2), oyIN.uint8)
XC5k.floodFill(wsZs, ZHfW, (0, 0), 255)
CX33 = XC5k.bitwise_not(wsZs)
hlel =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8p6(Xn71):\n eB22 = uxFE(Xn71)\n Xn71[eB22] = False\n return Xn71",
"def sVaA(VXjJ):\n yvT9, iLki, gEYm = XC5k.findContours(VXjJ, XC5k.RETR_CCOMP, XC5k.CHAIN_APPROX_NONE)\n YRbF = 0\n for r9Hf in iLki:\n XC5k.drawContours(VXjJ, iLki, YRbF, 255, -1)\n YRbF += 1\n return VXj... | [
"0.7038291",
"0.6969876",
"0.6879363",
"0.67171913",
"0.6667967",
"0.66605085",
"0.65741223",
"0.652283",
"0.6509893",
"0.6445537",
"0.6302485",
"0.62223357",
"0.61688906",
"0.6139052",
"0.61300457",
"0.6125854",
"0.6083809",
"0.60632926",
"0.60614365",
"0.603653",
"0.6008488... | 0.68429846 | 3 |
Displays an image using MatPlotLib Useful for displaying all images and Magnitude Spectrums | def YGqK(VXjJ, leAC='Image', PTTL='gray'):
QrM1.imshow(VXjJ, PTTL)
QrM1.title(leAC)
QrM1.xticks([])
QrM1.yticks([])
QrM1.show() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RkZZ(LNo8):\n zJg5.figure()\n zJg5.imshow(LNo8)\n zJg5.show()",
"def r2sP(VXjJ):\n ETO8(VXjJ)\n QrM1.ion()\n QrM1.show()",
"def nUHY(LNo8):\n LZpg = QcNK.figure()\n aNZO = LZpg.add_subplot(1, 1, 1)\n gwMT = aNZO.imshow(LNo8, cmap=x5MY.cm.Greys)\n gwMT.set_interpolation('neares... | [
"0.78140026",
"0.7570606",
"0.74435496",
"0.74429226",
"0.7431646",
"0.7431646",
"0.7431646",
"0.7408267",
"0.7359493",
"0.73032165",
"0.722859",
"0.7189208",
"0.71416754",
"0.7140487",
"0.7112482",
"0.71057785",
"0.70950377",
"0.7014",
"0.6937272",
"0.69371027",
"0.6907234",... | 0.7365132 | 8 |
Returns a dictionary into two lists of [[key][values]] | def KZkN(cmPJ):
sjXb = []
hkxX = []
for H5ew, BWXx in cmPJ.iteritems():
sjXb.append(H5ew)
hkxX.append(BWXx)
return [sjXb, hkxX] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wt3J(fGC9):\n return [(H5ew, wEf2) for H5ew, wEf2 in fGC9.iteritems()]",
"def AzME(cmPJ: dict, zAat: str='Key', SQJw: str='Value') -> list:\n Aofo = [{zAat: H5ew, SQJw: cmPJ[H5ew]} for H5ew in cmPJ]\n return Aofo",
"def eqLo(cmPJ):\n UiZR = []\n for H5ew, BWXx in cmPJ.items():\n UiZR.... | [
"0.69043493",
"0.68097615",
"0.67338127",
"0.67141587",
"0.66156745",
"0.6610708",
"0.6562489",
"0.6557644",
"0.6480007",
"0.6480007",
"0.64730704",
"0.6439208",
"0.6439208",
"0.6411941",
"0.6399124",
"0.6339745",
"0.6311308",
"0.6288613",
"0.6267422",
"0.6252127",
"0.6192328... | 0.6998897 | 0 |
Returns the Min value and Location | def Rr1k(VXjJ):
Csk6 = qt67(VXjJ)
return {'minVal': Csk6['minVal'], 'minLoc': Csk6['minLoc']} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def min(YKHO):\n return YKHO._min_coords",
"def XcNI(YKHO):\n return YKHO.min",
"def XcNI(YKHO):\n return YKHO.min",
"def qSqA(YKHO):\n return YKHO._fitness[YKHO._minIndex]",
"def FaMX(YKHO):\n return YKHO.X",
"def dpeR(YKHO):\n return YKHO.minx",
"def min(YKHO):\n return YKHO._red... | [
"0.7909452",
"0.7412526",
"0.7412526",
"0.73267895",
"0.73072314",
"0.728868",
"0.7238544",
"0.72364086",
"0.72212857",
"0.7208255",
"0.71908945",
"0.71838945",
"0.7171491",
"0.71705645",
"0.71448535",
"0.7138294",
"0.7138294",
"0.71369004",
"0.71369004",
"0.71298826",
"0.708... | 0.7232217 | 8 |
Returns the Aspect Ratio (Ratio of width to height of bounding rectangle) | def vLMe(r9Hf):
WKvO, LVAh, yzQ0, MKlR = XC5k.boundingRect(r9Hf)
return float(yzQ0) / MKlR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vLMe(YKHO):\n YKHO._updateExtents()\n return YKHO.mAspectRatio",
"def dMYj(YKHO):\n return float(YKHO.max_width) / YKHO.max_height",
"def pAIe(YKHO) -> float:\n return YKHO._aspect_ratio",
"def nhUw(YKHO, d6pt):\n cviu = YKHO.annotations['bboxes'][d6pt]\n return float(cviu[2] - cviu[0])... | [
"0.7916214",
"0.7800925",
"0.77383006",
"0.7686938",
"0.7310509",
"0.7222565",
"0.7061374",
"0.7019629",
"0.69670105",
"0.69009423",
"0.68502164",
"0.68471354",
"0.67362237",
"0.66252244",
"0.6564315",
"0.64727515",
"0.64190793",
"0.63887256",
"0.6363414",
"0.6290365",
"0.615... | 0.78069955 | 1 |
Returns the Extent (Ratio of contour area to bounding rectangle area) | def xx9t(r9Hf):
f0tD = XC5k.contourArea(r9Hf)
WKvO, LVAh, yzQ0, MKlR = XC5k.boundingRect(r9Hf)
UEQj = yzQ0 * MKlR
return float(f0tD) / UEQj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wPAx(YKHO, iLki):\n f0tD = YKHO.__CalculateArea(iLki)\n HV3G = YKHO.__CalculateBoundingBox(iLki)\n return f0tD / (HV3G[2] * HV3G[3])",
"def vLMe(r9Hf):\n WKvO, LVAh, yzQ0, MKlR = XC5k.boundingRect(r9Hf)\n return float(yzQ0) / MKlR",
"def HlDs(YKHO):\n pass",
"def HlDs(YKHO):\n GRT8 =... | [
"0.7234319",
"0.65271884",
"0.6443647",
"0.6393077",
"0.6385325",
"0.63503885",
"0.62913525",
"0.61773664",
"0.615298",
"0.61409366",
"0.6138268",
"0.61366475",
"0.6111907",
"0.6089793",
"0.60725474",
"0.605492",
"0.60501754",
"0.60130423",
"0.5998493",
"0.59757054",
"0.59743... | 0.76852393 | 0 |
Returns the Solidity (Ratio of area to convex hull area) | def RBqi(r9Hf):
f0tD = XC5k.contourArea(r9Hf)
b7Ss = XC5k.convexHull(r9Hf)
fPYd = XC5k.contourArea(b7Ss)
return float(f0tD) / fPYd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B7Mv(YKHO) -> float:\n return 4 * oyIN.pi * YKHO.radius ** 2",
"def I2OD(YKHO) -> float:\n return epAf.sqrt(YKHO.norm_hull.volume)",
"def f0tD(YKHO) -> eQHC.NDArray[oyIN.float_]:\n LTIa = YKHO._normalized_projection()\n jzdc = sum((nUPH(LTIa[..., [0, YRbF, YRbF + 1], :]) for YRbF in range(1, LT... | [
"0.67079383",
"0.6676389",
"0.64362097",
"0.6429818",
"0.64248466",
"0.63985616",
"0.63680375",
"0.6361342",
"0.6305637",
"0.62844884",
"0.625831",
"0.62430024",
"0.6170367",
"0.6154476",
"0.6146491",
"0.6146491",
"0.61230654",
"0.6121946",
"0.6118461",
"0.6115014",
"0.609086... | 0.72119516 | 0 |
Returns the Equivalent Diameter (Circle whose area is same as cnt area) | def ux7K(r9Hf):
return oyIN.sqrt(4 * XC5k.contourArea(r9Hf) / oyIN.pi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDmO(r9Hf):\n return XC5k.arcLength(r9Hf, True)",
"def AKpL(YKHO):\n PXIy = []\n for YRbF, EBgd in enumerate(YKHO.points):\n for HpuQ in YKHO.points[YRbF + 1:]:\n PXIy.append(GoRQ(EBgd, HpuQ))\n KCHu = max(PXIy, key=lambda KCHu: KCHu.length)\n return Lr0q(*KCHu.middle, radius... | [
"0.74359304",
"0.72954243",
"0.71917015",
"0.71417886",
"0.71417886",
"0.7113245",
"0.6894399",
"0.6878331",
"0.68414986",
"0.67992294",
"0.67008525",
"0.66192067",
"0.66009945",
"0.65998214",
"0.6599036",
"0.65988356",
"0.65755826",
"0.656971",
"0.6510862",
"0.64852905",
"0.... | 0.78985435 | 0 |
Returns the Extreme Points of a contour | def MuRU(r9Hf):
YCjO = tuple(r9Hf[r9Hf[:, :, 0].argmin()][0])
JTIU = tuple(r9Hf[r9Hf[:, :, 0].argmax()][0])
JdhD = tuple(r9Hf[r9Hf[:, :, 1].argmin()][0])
eydk = tuple(r9Hf[r9Hf[:, :, 1].argmax()][0])
return (YCjO, JTIU, JdhD, eydk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xx9t(YKHO):\n WKvO = oyIN.array([0, YKHO.nx]) * YKHO.dx + YKHO.corner_grid.x0\n ZwqD = [0, YKHO.ny] if YKHO.origin == 'lower-left' else [YKHO.ny, 0]\n LVAh = oyIN.array(ZwqD) * YKHO.dy + YKHO.corner_grid.y0\n return [WKvO[0], WKvO[1], LVAh[0], LVAh[1]]",
"def EBgE(YKHO, iLki, Ylkb):\n m_2b = [... | [
"0.62368226",
"0.61413515",
"0.6069171",
"0.59376955",
"0.5935706",
"0.5870097",
"0.5838518",
"0.5815217",
"0.5814764",
"0.57886654",
"0.5784005",
"0.57744175",
"0.57623637",
"0.574569",
"0.57198995",
"0.5686353",
"0.567736",
"0.56730115",
"0.563668",
"0.562359",
"0.56228966"... | 0.53200597 | 63 |