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 |
|---|---|---|---|---|---|---|
Returns a macthing node. A new node is created if no matching node exists. The graph is accessed in dfs order. | def gzes(Q6kx):
iRsl = frozenset(OCWR(Q6kx))
if iRsl not in kuKZ:
kuKZ[iRsl] = (Q6kx[0], [gzes(aUGN) for aUGN in Q6kx[1]])
return kuKZ[iRsl] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q6kx(YKHO, H5ew):\n try:\n if H5ew.node_id in YKHO._graph:\n return jq3B(YKHO._anm, YKHO._overlay_id, H5ew.node_id)\n except AttributeError:\n if H5ew in YKHO._graph:\n return jq3B(YKHO._anm, YKHO._overlay_id, H5ew)\n for Q6kx in YKHO:\n if str(Q6kx) ... | [
"0.69312555",
"0.6921058",
"0.67740804",
"0.67463416",
"0.6725437",
"0.67123336",
"0.66917634",
"0.66353613",
"0.6628938",
"0.6560463",
"0.6542965",
"0.6441101",
"0.6416613",
"0.6408995",
"0.6398994",
"0.6394914",
"0.63887227",
"0.6384819",
"0.6333424",
"0.6319715",
"0.631684... | 0.0 | -1 |
3x3 convolution with padding | def Myly(UUZO: int, sYyA: int, _0fC: int=1, moMn: int=1, ivFb: int=1) -> U78l.Conv2d:
return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=ivFb, groups=moMn, bias=False, dilation=ivFb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())",
"def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)",
"def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,... | [
"0.78404945",
"0.7541354",
"0.753996",
"0.7491138",
"0.7434801",
"0.74207747",
"0.73415834",
"0.7320252",
"0.7299599",
"0.7287539",
"0.72799367",
"0.72799367",
"0.7257735",
"0.7226928",
"0.72204214",
"0.7214909",
"0.7214909",
"0.7210775",
"0.7198222",
"0.71639067",
"0.7161914... | 0.0 | -1 |
r"""ResNeXt101 32x8d model from | def V7QE(mL4f: bool=False, Eb4t: bool=True, **B2fa: Any) -> S1Vm:
B2fa['groups'] = 32
B2fa['width_per_group'] = 8
return CLgi('resnext101_32x8d', MF6R, [3, 4, 23, 3], mL4f, Eb4t, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V7QE(mL4f=False, tk5Y='~/.encoding/models', **B2fa):\n B2fa['groups'] = 32\n B2fa['bottleneck_width'] = 8\n C3ST = S1Vm(MF6R, [3, 4, 23, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(ht2j.load(_7Lp('resnext101_32x8d', root=tk5Y)), strict=False)\n return C3ST",
"def V7QE(mL4f=False, tk5Y... | [
"0.69844323",
"0.6942076",
"0.65970725",
"0.655128",
"0.6524174",
"0.65187347",
"0.64773697",
"0.64754397",
"0.6451517",
"0.6443924",
"0.6428872",
"0.63850826",
"0.63609004",
"0.6360059",
"0.633551",
"0.6331414",
"0.6312455",
"0.6312455",
"0.6312455",
"0.63008976",
"0.6300644... | 0.6192847 | 27 |
Return JSON data from the request body. | def JSFe(YKHO, b9mB, **B2fa):
return qQXR.loads(b9mB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mfUi(YKHO):\n if YKHO.request.body:\n return qQXR.loads(YKHO.request.body)",
"def UI1y(YKHO):\n GgSi = getattr(YKHO.request, '__json_body', None)\n if GgSi is None:\n GgSi = qQXR.loads(YKHO.request.body) if YKHO.request else {}\n YKHO.request.__json_body = GgSi\n return YKHO.... | [
"0.8257956",
"0.8149909",
"0.7711281",
"0.7645038",
"0.74746203",
"0.746716",
"0.7408134",
"0.73799956",
"0.7328938",
"0.7298186",
"0.7159536",
"0.7070708",
"0.706268",
"0.69782007",
"0.685325",
"0.68341136",
"0.68236774",
"0.68082094",
"0.67927843",
"0.6736977",
"0.67004627"... | 0.86374205 | 0 |
draw objects in the game loop | def JmFt(YKHO):
YKHO.window.fill(BT0p)
YKHO.all_sprites.draw(YKHO.window)
a9eO.display.flip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO):\n YKHO.vary_background()\n YKHO.screen.blit(YKHO.background, (0, 0))\n YKHO.screen.blit(C3ST.hero.icon, (C3ST.hero.x, C3ST.hero.y))\n YKHO.scoreDisplay()\n for tQfK in YKHO.model.dragons:\n YKHO.screen.blit(tQfK.icon, (tQfK.x, tQfK.y))\n for DdMV in YKHO.model.fireballs:\n ... | [
"0.7793682",
"0.779313",
"0.7660478",
"0.76488054",
"0.7641776",
"0.7640344",
"0.7593522",
"0.75734895",
"0.755951",
"0.7401589",
"0.73994035",
"0.7369125",
"0.7360793",
"0.735631",
"0.73467964",
"0.73353696",
"0.73186356",
"0.73131937",
"0.72876173",
"0.7271417",
"0.7259269"... | 0.0 | -1 |
Creates a serializer based on user request | def xF21(Emd4, zme_, C3ST, h4B3):
nPrm = {}
h4B3 = h4B3 if h4B3 else Emd4.updateable_fields
for HZUM in h4B3:
if isinstance(HZUM, tuple):
ZFH3, XOLp = HZUM
else:
XOLp = ZFH3 = HZUM
nPrm[ZFH3] = zme_.get(ZFH3, getattr(C3ST, XOLp))
nPrm['updatedAt'] = rIAI.n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a9qP(YKHO, **B2fa):\n YEnM = YKHO.get_object(**B2fa)\n ZMzz = YKHO.serializer_class(YEnM)\n return ZMzz",
"def ZMzz(YKHO, **B2fa):\n if not YKHO._serializer:\n YKHO._serializer = YKHO.get_serializer()(**B2fa)\n return YKHO._serializer",
"def a9qP(YKHO, *qIxc, **B2fa):\n cIuE = YKHO... | [
"0.73884994",
"0.7202638",
"0.71032035",
"0.708731",
"0.708731",
"0.7010982",
"0.69440407",
"0.69153893",
"0.6831155",
"0.6822883",
"0.6794337",
"0.6757693",
"0.67420185",
"0.66832983",
"0.6621977",
"0.66179454",
"0.66179454",
"0.66163754",
"0.66133535",
"0.6590835",
"0.65688... | 0.6639928 | 14 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(DU_D, YKHO).__init__(*qIxc, **c_sp)
if YKHO.time is None:
YKHO.time = 0.0
if YKHO.dr_x is None:
YKHO.dr_x = 0
if YKHO.dr_y is None:
YKHO.dr_y = 0
if YKHO.dr_z is None:
YKHO.d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.81643826",
"0.7718471",
"0.7718471",
"0.7651017",
"0.7572114",
"0.7542439",
"0.7484988",
"0.74693716",
"0.745699",
"0.7444344",
"0.7444239",
"0.74324155",
"0.7414797",
"0.74077785",
"0.73908055",
"0.73744",
"0.73619264",
"0.7324946",
"0.732317",
"0.732317",
"0.732317",
"... | 0.0 | -1 |
Crops an image from the given coords (cy, cx), such that the resulting img is of dimensions [dim_y, dim_x], i.e. height and width. Resulting image is filled out from topleft corner, and remaining pixels are left black. | def tNgU(VXjJ, ANqq, vwEp, vHO5, UV8M):
vHO5, UV8M = (int(round(vHO5)), int(round(UV8M)))
MKlR, yzQ0 = VXjJ.shape
if vwEp > yzQ0 or ANqq > MKlR:
raise ValueError('Crop dimensions larger than image dimension!')
xiPz = oyIN.zeros((ANqq, vwEp))
Jw7X, eUWA = (int(vwEp / 2), int(ANqq / 2))
Us... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q7d4(LNo8, UV8M, vHO5, zNig):\n EcVT, fuBA = LNo8.shape[:2]\n Mkmy = int(zNig / 2)\n o4D3, ajwV = (UV8M - Mkmy, UV8M + Mkmy)\n si3g, skBL = (vHO5 - Mkmy, vHO5 + Mkmy)\n o7uv, j17_ = (max(o4D3, 0), min(ajwV, EcVT))\n CrAg, ekoI = (max(si3g, 0), min(skBL, fuBA))\n NAnm = LNo8[o7uv:j17_, CrAg... | [
"0.76410264",
"0.6894173",
"0.6687585",
"0.6683731",
"0.6622239",
"0.65143275",
"0.6398074",
"0.63288313",
"0.63077086",
"0.63056105",
"0.6298608",
"0.6298608",
"0.6291918",
"0.6253332",
"0.6251763",
"0.6241257",
"0.62276214",
"0.6176987",
"0.61676383",
"0.6148565",
"0.613151... | 0.76682085 | 0 |
Return the number of elements of ``self``. Implemented mainly so bool(Matrix()) == False. | def szAg(YKHO):
return YKHO.rows * YKHO.cols | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n return len(YKHO.__matrix)",
"def zNig(YKHO):\n return len(YKHO.matrix)",
"def szAg(YKHO):\n return len(YKHO._elements)",
"def szAg(YKHO):\n return len(YKHO.elements)",
"def szAg(YKHO):\n return len(YKHO.elements)",
"def szAg(YKHO):\n return len(YKHO.elements)",
"def ... | [
"0.8205252",
"0.7889227",
"0.78783476",
"0.783015",
"0.783015",
"0.783015",
"0.77955407",
"0.7726948",
"0.7684205",
"0.7641023",
"0.76205146",
"0.76128817",
"0.76003045",
"0.7596895",
"0.75641304",
"0.7539631",
"0.7491364",
"0.74767196",
"0.7442785",
"0.7433088",
"0.7415783",... | 0.712473 | 60 |
Return self + b. | def H2v5(YKHO, Fg_i):
return YKHO + Fg_i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, Fg_i):\n Z9rn = YKHO.copy()\n Z9rn += Fg_i\n return Z9rn",
"def K7GD(YKHO, Fg_i):\n Z9rn = YKHO.copy()\n Z9rn += Fg_i\n return Z9rn",
"def H2v5(YKHO):\n return YKHO.a + YKHO.b",
"def H2v5(YKHO, jzdc, Fg_i):\n return jzdc + Fg_i",
"def sum(YKHO):\n return YKHO.a + Y... | [
"0.8793665",
"0.86354595",
"0.8431422",
"0.82077885",
"0.78853863",
"0.7884644",
"0.78575224",
"0.785608",
"0.7854439",
"0.7854439",
"0.7854439",
"0.7854439",
"0.7854439",
"0.7854439",
"0.7854439",
"0.78461075",
"0.7830789",
"0.7819925",
"0.7817415",
"0.7791223",
"0.77806836"... | 0.9169387 | 0 |
Returns the condition number of a matrix. This is the maximum singular value divided by the minimum singular value Examples ======== >>> from sympy import Matrix, S >>> A = Matrix([[1, 0, 0], [0, 10, 0], [0, 0, S.One/10]]) >>> A.condition_number() 100 See Also ======== singular_values | def Z6Bj(YKHO):
if not YKHO:
return YKHO.zero
IXVh = YKHO.singular_values()
return VYxc(*IXVh) / XgIN(*IXVh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z6Bj(YKHO):\n q33i = YKHO.eigenvals\n return oyIN.sqrt(q33i[0] / q33i[-1])",
"def Z6Bj(YKHO):\n WKvO = oyIN.matrix(YKHO.x)\n chmV = oyIN.linalg.eig(WKvO.T * WKvO)[0]\n return oyIN.sqrt(chmV.max() / chmV.min())",
"def Z6Bj(YKHO):\n return oM6q(YKHO._get('condition_number'), index=YKHO._res... | [
"0.7323063",
"0.72163904",
"0.692299",
"0.6668225",
"0.62517107",
"0.60011894",
"0.55473304",
"0.5368697",
"0.5368697",
"0.5367762",
"0.5206386",
"0.5114916",
"0.5025858",
"0.49365476",
"0.49243417",
"0.49124134",
"0.48894295",
"0.48850888",
"0.48850888",
"0.48837417",
"0.487... | 0.76249427 | 0 |
r""" Return a 3x1 vector from a skewsymmetric matrix representing the cross product, so that ``self b`` is equivalent to ``self.vee().cross(b)``. Examples ======== | def rKDD(YKHO):
if YKHO.shape != (3, 3):
raise xwhD('Dimensions incorrect, expected (3, 3), got ' + str(YKHO.shape))
elif not YKHO.is_anti_symmetric():
raise ValueError('Matrix is not skew-symmetric')
else:
return YKHO._new(3, 1, (YKHO[2, 1], YKHO[0, 2], YKHO[1, 0])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YK0L(Ty9i):\n return oyIN.array([[0, -Ty9i[2], Ty9i[1]], [Ty9i[2], 0, -Ty9i[0]], [-Ty9i[1], Ty9i[0], 0]])",
"def EiRu(Ty9i):\n o4sw = aLMY.zero(3, 3)\n o4sw[1, 0] = Ty9i.z\n o4sw[2, 0] = -Ty9i.y\n o4sw[0, 1] = -Ty9i.z\n o4sw[0, 2] = Ty9i.y\n o4sw[2, 1] = Ty9i.x\n o4sw[1, 2] = -Ty9i.x\... | [
"0.746663",
"0.7355002",
"0.71655965",
"0.7079255",
"0.69872886",
"0.6943388",
"0.6930408",
"0.68895406",
"0.6885861",
"0.6874202",
"0.6840274",
"0.6818899",
"0.67177624",
"0.6687686",
"0.66721004",
"0.66473067",
"0.66447043",
"0.6643144",
"0.66054106",
"0.6600434",
"0.659740... | 0.70806766 | 3 |
Returns the dual of a matrix. | def wNz9(YKHO):
from sympy.matrices import zeros
E3D9, exwG = (YKHO[:, :], YKHO.rows)
Q5yx = zeros(exwG)
if YKHO.is_symmetric():
return Q5yx
for YRbF in range(1, exwG):
for r845 in range(1, exwG):
qxIv = 0
for G1Hx in range(1, exwG):
qxIv += Vc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XNKh(YKHO):\n vb7U = _T1W.Matrix3()\n BpBP.getDual(YKHO, vb7U)\n return vb7U",
"def wNz9(YKHO):\n if '_dual' not in YKHO.__dict__:\n YKHO._dual = YKHO.V().dual().submodule(YKHO.W().basis_matrix().transpose().integer_kernel().gens())\n YKHO._dual._dual = YKHO\n return YKHO._dual",... | [
"0.7919943",
"0.7033297",
"0.6763045",
"0.6580161",
"0.63619435",
"0.6328972",
"0.62903136",
"0.6265399",
"0.6259651",
"0.6230005",
"0.6149664",
"0.6105688",
"0.6059486",
"0.5966899",
"0.59529155",
"0.5874914",
"0.584517",
"0.584517",
"0.58324045",
"0.5801701",
"0.579388",
... | 0.7314657 | 1 |
Calculate simple moving average indicator, i.e. price / rolling_mean. | def R4nn(hI0L, JtYS):
return hI0L / JtYS - 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b5ju(agUT, DDI8):\n return DDI8.rolling(agUT).mean()",
"def dBGK(YKHO, dy_H):\n return dy_H.ix[-YKHO.window:].mean()",
"def JtYS(YKHO, KnxT=None):\n return rXcm(YKHO, window=KnxT, stat='mean')",
"def AScy(YKHO, AVpI):\n XJpM = oyIN.cumsum(oyIN.insert(AVpI, 0, 0))\n return (XJpM[YKHO.__wind... | [
"0.7758531",
"0.74382037",
"0.71417814",
"0.71320474",
"0.70456505",
"0.69325453",
"0.6787105",
"0.6785023",
"0.6761358",
"0.6731919",
"0.6679539",
"0.66329557",
"0.663288",
"0.66110736",
"0.66058594",
"0.66033816",
"0.6589569",
"0.6563443",
"0.65376884",
"0.65174776",
"0.651... | 0.79431885 | 0 |
Get the invite link of the discord server of the bot for some support. | async def server(YKHO, QpfX):
await QpfX.message.delete()
await QpfX.send('Du hast ne DM erhalten!')
await QpfX.author.send('Join my discord server by clicking here: https://discord.gg/QJfZnSJd7m') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def invite(YKHO, OaeV):\n r50I = tNAa(title=f'Invite {YKHO.bot.user.name} to your server!', color=3092790)\n r50I.add_field(name=f'Invite the bot', value=f'{FiFP('**Click Here**', f'{ZOrr.utils.oauth_url(812395879146717214)}')}', inline=False)\n r50I.add_field(name='Support server', value=f'{FiFP('*... | [
"0.7656853",
"0.7583391",
"0.7469512",
"0.7377929",
"0.73513573",
"0.72103417",
"0.71899205",
"0.71456635",
"0.7119069",
"0.7114057",
"0.71060616",
"0.70165247",
"0.698343",
"0.69789755",
"0.69682974",
"0.69682974",
"0.68801206",
"0.6856293",
"0.685413",
"0.6836566",
"0.66417... | 0.0 | -1 |
Ask any question to the bot. | async def eight_ball(YKHO, QpfX, *qIxc):
await QpfX.message.delete()
rRTz = ['It is certain.', 'It is decidedly so.', 'You may rely on it.', 'Without a doubt.', 'Yes - definitely.', 'As I see, yes.', 'Most likely.', 'Outlook good.', 'Yes.', 'Signs point to yes.', 'Reply hazy, try again.', 'Ask again later.', 'B... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QYWI(YKHO):\n l5Ny = YKHO.question if YKHO.question else None\n if l5Ny:\n l5Ny += '\\n'\n for d6pt, MTKo in enumerate(YKHO.options):\n l5Ny += u'{}. {}\\n'.format(d6pt + 1, MTKo)\n YKHO.bot.say(l5Ny)\n hGN5 = YKHO.question_content if YKHO.question_content else None\n if... | [
"0.7272429",
"0.71656996",
"0.71599865",
"0.69782335",
"0.6965009",
"0.6824334",
"0.6799007",
"0.67734057",
"0.6697849",
"0.66460836",
"0.65563047",
"0.6496827",
"0.63836044",
"0.6359948",
"0.63570625",
"0.63289917",
"0.63284016",
"0.621034",
"0.62068886",
"0.6196154",
"0.617... | 0.0 | -1 |
Get the current price of bitcoin. | async def bitcoin(YKHO, QpfX):
await QpfX.message.delete()
bD7m = 'https://api.coindesk.com/v1/bpi/currentprice/BTC.json'
async with piYe.ClientSession() as cuiw:
Bi9d = await cuiw.get(bD7m)
geh0 = await Bi9d.text()
geh0 = qQXR.loads(geh0)
Q1PJ = ZOrr.Embed(title=':informatio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xUS_():\n return m6VB('currentprice.json')['bpi']['USD']",
"def mUwC(YKHO):\n SGPK = {'fsym': 'BTC', 'tsyms': 'USD'}\n YKHO.current_price = G4JS.get(l4ys, SGPK).json()['USD']\n return YKHO.current_price",
"def XrWc(dEF2):\n bD7m = f'https://api.coingecko.com/api/v3/coins/{dEF2}?localization=... | [
"0.8953495",
"0.8627549",
"0.7913671",
"0.7745264",
"0.76797074",
"0.76506317",
"0.7628748",
"0.76113385",
"0.7608245",
"0.7608245",
"0.7597882",
"0.75588876",
"0.7544691",
"0.7516081",
"0.7508866",
"0.74826264",
"0.745885",
"0.74126774",
"0.74087054",
"0.7400162",
"0.7400162... | 0.66820836 | 86 |
Initialize the first name and last name | def FIMM(YKHO, c9ua, zp3f, ZJe_, CrCL, Gq1J):
YKHO.first_name = c9ua.title()
YKHO.last_name = zp3f.title()
YKHO.age = ZJe_
YKHO.birthplace = CrCL.title()
YKHO.relationship_status = Gq1J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, c9ua, zp3f, NtEF, D3lj, Rci7):\n YKHO.first = c9ua.title()\n YKHO.last = zp3f.title()\n YKHO.username = NtEF\n YKHO.email = D3lj\n YKHO.location = Rci7.title()",
"def FIMM(YKHO, c9ua, zp3f, NtEF):\n YKHO.first_name = c9ua\n YKHO.last_name = zp3f\n YKHO.username = NtEF",
"... | [
"0.76982945",
"0.7602091",
"0.7406225",
"0.7397788",
"0.7395098",
"0.73016",
"0.7201772",
"0.71860427",
"0.716631",
"0.7147966",
"0.7135809",
"0.7109381",
"0.710444",
"0.706568",
"0.7039711",
"0.70196",
"0.69867074",
"0.6977714",
"0.6874625",
"0.68575025",
"0.6855489",
"0.6... | 0.0 | -1 |
Split a list into evenly sized chunks. | def eHxA(yv6U, exwG):
return [yv6U[YRbF:YRbF + exwG] for YRbF in range(0, len(yv6U), exwG)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kzv7(ybN4, exwG):\n return list(eHxA(ybN4, exwG))",
"def sehz(hqkT, DJsn):\n qqgr = len(hqkT) / float(DJsn)\n yvT9 = []\n XVAW = 0.0\n while XVAW < len(hqkT):\n yvT9.append(hqkT[int(XVAW):int(XVAW + qqgr)])\n XVAW += qqgr\n return yvT9",
"def jpnb(HOpV: list, exwG: int):\n ... | [
"0.82045054",
"0.8136188",
"0.80165136",
"0.79053247",
"0.79032356",
"0.7882393",
"0.7863788",
"0.7741697",
"0.7730662",
"0.7729259",
"0.7728912",
"0.771136",
"0.77096826",
"0.76912034",
"0.7682372",
"0.76684964",
"0.7663456",
"0.7662545",
"0.7662545",
"0.7661087",
"0.7628615... | 0.74279654 | 46 |
Given some piece of text in the data argument, returns a split containing the words of the data as a list | def PXrd(YKHO, nPrm):
KoG3 = []
for LaFN in [list(GIN8) for GIN8 in nPrm.split()]:
KoG3 += LaFN
return KoG3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZN0g(bPNP):\n l5Ny = [LNLQ(YRbF) for YRbF in bPNP]\n l5Ny = [KCHu.split(' ') for KCHu in l5Ny]\n return l5Ny",
"def NMzd(l5Ny):\n if not l5Ny or not l5Ny.strip():\n return []\n V22M = gFqI.findall(l5Ny)\n return V22M",
"def nOZv(l5Ny):\n return l5Ny.split()",
"def NMzd(l5Ny):\... | [
"0.767383",
"0.7633653",
"0.76189226",
"0.74560016",
"0.7371381",
"0.7343707",
"0.73237485",
"0.7286732",
"0.72336197",
"0.72336197",
"0.7203634",
"0.7190279",
"0.71592295",
"0.7139458",
"0.7132917",
"0.71243304",
"0.7114307",
"0.71130437",
"0.7098272",
"0.7096164",
"0.707981... | 0.71472794 | 13 |
Whether this type is a format of time series data. Returns bool Whether this type is a format of time series data. | def vgdo(YKHO) -> bool:
return YKHO._is_time_series_index | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vgdo(tKA5):\n return SeLS(tKA5) in [Tosh.TIME_SERIES_BINARY, Tosh.TIME_SERIES_MULTICLASS, Tosh.TIME_SERIES_REGRESSION]",
"def gXHg(YKHO) -> bool:\n return YKHO in [KFXl.DATA, KFXl.MASK, KFXl.SCALAR, KFXl.LABEL, KFXl.VECTOR, KFXl.TIMESTAMPS]",
"def tIX0(qIxc):\n return qIxc.time_series or qIxc.time... | [
"0.7673904",
"0.75308436",
"0.72880954",
"0.72535646",
"0.7096063",
"0.707183",
"0.6705905",
"0.66936344",
"0.6577546",
"0.6561118",
"0.65327996",
"0.6516934",
"0.6498597",
"0.64930236",
"0.6486496",
"0.64155114",
"0.63279116",
"0.622615",
"0.6202421",
"0.6174276",
"0.6133609... | 0.8614865 | 0 |
Whether this object contains all the values of the given object and the two are of the same index. For this type, equal begin or end values are considered contained. | def sjXf(YKHO, Elif: 'ContinuousRestriction') -> bool:
if not isinstance(Elif, A94i):
return False
elif YKHO.variable != Elif.variable:
return False
else:
return YKHO.begin <= Elif.begin and YKHO.end >= Elif.end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif) -> bool:\n return isinstance(Elif, YKHO.__class__) and (YKHO._atom_indexes == Elif._atom_indexes or YKHO._atom_indexes == tuple(reversed(Elif._atom_indexes)))",
"def xa14(YKHO, Elif: Index) -> bool:\n return YKHO.to_dict() == Elif.to_dict()",
"def JVjc(YKHO, Elif) -> bool:\n if is... | [
"0.6962433",
"0.68259454",
"0.6759001",
"0.67501503",
"0.6683081",
"0.6660223",
"0.65951777",
"0.65943885",
"0.6543959",
"0.6541022",
"0.6538942",
"0.65382487",
"0.64928186",
"0.6468419",
"0.6430656",
"0.6418022",
"0.64173436",
"0.6413373",
"0.63970107",
"0.6392881",
"0.63878... | 0.0 | -1 |
Whether this object contains all the values of the given object and the two are of the same index. | def sjXf(YKHO, Elif: 'DiscreteRestriction') -> bool:
if not isinstance(Elif, SKed):
return False
elif YKHO.variable != Elif.variable:
return False
elif YKHO.is_all_possible_values:
return True
else:
PYV9 = set(YKHO.values)
for Ty9i in Elif.values:
if T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif: Index) -> bool:\n return YKHO.to_dict() == Elif.to_dict()",
"def JVjc(YKHO, Elif) -> bool:\n if isinstance(YKHO.indices, oyIN.ndarray):\n return (YKHO.indices == Elif.indices).all()\n return YKHO.indices == Elif.indices",
"def QGXx(YKHO, rEbr):\n if YKHO.type != rEbr.typ... | [
"0.71655625",
"0.7064189",
"0.69663566",
"0.69540066",
"0.69098294",
"0.68927747",
"0.6891395",
"0.6883597",
"0.68759054",
"0.6770313",
"0.6768677",
"0.6760526",
"0.67420435",
"0.6740704",
"0.6733751",
"0.6715855",
"0.67089295",
"0.6700251",
"0.6689887",
"0.6688426",
"0.66811... | 0.0 | -1 |
Map of the continuous restrictions defining this domain, keyed by variable name. Returns Dict[str, ContinuousRestriction] Map of the continuous restrictions defining this domain, keyed by variable name. | def Syjv(YKHO) -> cuzp[e4JO, A94i]:
return YKHO._continuous_restrictions | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fnbp(YKHO) -> cuzp[e4JO, SKed]:\n return YKHO._discrete_restrictions",
"def uwaB(YKHO):\n KhQ7 = {}\n V5ac = YKHO.objective.constants()\n for G4Rc in YKHO.constraints:\n V5ac += G4Rc.constants()\n KhQ7 = {id(si3H): si3H for si3H in V5ac}\n return list(KhQ7.values())",
"def i7U3(YKH... | [
"0.67559963",
"0.5932677",
"0.5888562",
"0.58318555",
"0.5707854",
"0.5669545",
"0.5542188",
"0.55134946",
"0.54883647",
"0.54716635",
"0.54538125",
"0.5411723",
"0.54029614",
"0.53606486",
"0.5316559",
"0.5312325",
"0.52813965",
"0.5279009",
"0.52506506",
"0.5245129",
"0.524... | 0.76803035 | 0 |
Map of the discrete restrictions defining this domain, keyed by variable name. Returns Dict[str, DiscreteRestriction] Map of the discrete restrictions defining this domain, keyed by variable name. | def Fnbp(YKHO) -> cuzp[e4JO, SKed]:
return YKHO._discrete_restrictions | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Syjv(YKHO) -> cuzp[e4JO, A94i]:\n return YKHO._continuous_restrictions",
"def i7U3(YKHO) -> cuzp[str, ImMB]:\n return {}",
"def Z15U(YKHO):\n if YKHO.sameVars() == False:\n raise RuntimeError('Not all reactions have the same variables.')\n vars = {}\n for Mkmy in range(YKHO.rows):\n ... | [
"0.63495255",
"0.5842824",
"0.5765165",
"0.55869573",
"0.5577443",
"0.5572565",
"0.5549977",
"0.553476",
"0.5522265",
"0.5479406",
"0.5428639",
"0.5414262",
"0.53983074",
"0.53978693",
"0.5395421",
"0.5384384",
"0.53520674",
"0.53184474",
"0.5290505",
"0.52901214",
"0.5280298... | 0.79122376 | 0 |
Serialize to a dictionary. Serialize this instance to a dictionary, with there being two toplevel list items. These are made from the | def MNRr(YKHO) -> cuzp[str, uLKX[str, KUXB, dict, list]]:
Pt6R = {'data_format': YKHO._data_format.name, 'continuous': [UksD.to_dict() for or8S, UksD in YKHO.continuous_restrictions.items()], 'discrete': [UksD.to_dict() for or8S, UksD in YKHO.discrete_restrictions.items()]}
if YKHO.data_format.data_fields is No... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jtBC(YKHO):\n Ylbp = {}\n Ylbp['id'] = YKHO.getId()\n Ylbp['name'] = YKHO.getName()\n Ylbp['itemtype'] = YKHO.getItemType()\n Ylbp['compactcons'] = YKHO.getCompactConsSequence()\n Ylbp['fullcons'] = YKHO.getFullConsSequence()\n Ylbp['hasseq'] = YKHO.hasSequence()\n Ylbp['useseq'] = YKHO... | [
"0.7099589",
"0.7038168",
"0.7027171",
"0.7014783",
"0.68431604",
"0.6772064",
"0.6666015",
"0.6656993",
"0.6655942",
"0.6606362",
"0.66040504",
"0.65940034",
"0.65519524",
"0.6530473",
"0.6499888",
"0.6497218",
"0.64791083",
"0.64731365",
"0.6454096",
"0.64491475",
"0.644882... | 0.0 | -1 |
The (restricted) domain of the data that is required. Returns DataDomain The (restricted) domain of the data that is required. | def zrIJ(YKHO) -> OwEs:
return YKHO._domain | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zrIJ(YKHO) -> Nlmb:\n return YKHO.original_problem.domain",
"def zrIJ(YKHO):\n try:\n return YKHO._domain\n except Exception as e:\n raise tTpl",
"def zrIJ(YKHO):\n raise NotImplementedError",
"def zrIJ(YKHO) -> Nlmb:\n if YKHO._domain is None:\n YKHO._domain = Nlmb(u2... | [
"0.697918",
"0.692212",
"0.6890992",
"0.68467015",
"0.6824699",
"0.66123444",
"0.6587294",
"0.65797174",
"0.64754033",
"0.64754033",
"0.6447227",
"0.64463645",
"0.64327884",
"0.64327884",
"0.64327884",
"0.64327884",
"0.64327884",
"0.64327884",
"0.64327884",
"0.6408033",
"0.63... | 0.7925468 | 0 |
The location at which the fulfilling dataset for this requirement is accessible, if the dataset known. Returns Optional[str] The location at which the fulfilling dataset for this requirement is accessible, if known, or ``None`` otherwise. | def j1oc(YKHO) -> h8nf[str]:
return YKHO._fulfilled_access_at | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xl0D(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'data_location')",
"def Rci7(YKHO) -> laHg.Optional[str]:\n return YKHO.data['location']",
"def Rci7(YKHO) -> h8nf[str]:\n raise NotImplementedError()",
"def dTto(YKHO, __n6):\n try:\n Rci7 = YKHO.dataset_fs_map[__n6]\n except KeyErro... | [
"0.7502207",
"0.7251824",
"0.717364",
"0.7056922",
"0.70515835",
"0.70515835",
"0.70515835",
"0.70515835",
"0.70515835",
"0.70515835",
"0.70515835",
"0.70515835",
"0.70515835",
"0.70515835",
"0.70515835",
"0.70515835",
"0.70515835",
"0.7023838",
"0.6985727",
"0.6985727",
"0.6... | 0.0 | -1 |
The size of the required data, if it is known. This is particularly important (though still not strictly required) for an output data requirement; i.e., a requirement to store output data somewhere. Returns Optional[int] he size of the required data, if it is known, or ``None`` otherwise. | def zNig(YKHO) -> h8nf[int]:
return YKHO._size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Esb2(YKHO) -> h8nf[int]:\n return YKHO._dataSize",
"def jiw9(Emd4) -> h8nf[int]:\n sxJr = Emd4.__binobj_struct__.components.values()\n try:\n return sum((eHNT.get_expected_size({}) for eHNT in sxJr))\n except (UAju.UndefinedSizeError, UAju.MissingRequiredValueError):\n return None",... | [
"0.78333324",
"0.7756498",
"0.7674501",
"0.7478412",
"0.7478412",
"0.7478412",
"0.7478412",
"0.732857",
"0.729708",
"0.729708",
"0.7269598",
"0.72386587",
"0.72316986",
"0.7219073",
"0.7219073",
"0.7219073",
"0.7219073",
"0.7219073",
"0.7219073",
"0.7219073",
"0.7219073",
"... | 0.7326145 | 8 |
Inserts a word into the trie. | def JPHp(YKHO, GIN8):
TI1B = YKHO.root
for Z9rn in GIN8:
if TI1B.children[ord(Z9rn) - ord('a')] is None:
TI1B.children[ord(Z9rn) - ord('a')] = ep_x()
TI1B.children[ord(Z9rn) - ord('a')].char = Z9rn
TI1B = TI1B.children[ord(Z9rn) - ord('a')]
TI1B.isword = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, GIN8: str) -> None:\n jvSB = YKHO.node\n for YRbF in GIN8:\n if YRbF not in jvSB.char:\n jvSB.char[YRbF] = ep_x()\n jvSB = jvSB.char[YRbF]\n if jvSB.isword is False:\n jvSB.isword = True",
"def JPHp(YKHO, GIN8: str) -> None:\n XP5J = YKHO.root\n for Y... | [
"0.8934739",
"0.8875286",
"0.886607",
"0.88451236",
"0.88346624",
"0.8829217",
"0.88236946",
"0.8820804",
"0.88018364",
"0.8796501",
"0.8791116",
"0.8786085",
"0.8785885",
"0.8785123",
"0.8779808",
"0.87792015",
"0.8775775",
"0.8770227",
"0.8766899",
"0.8756811",
"0.8756705",... | 0.8874562 | 2 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8):
TI1B = YKHO.root
for Z9rn in GIN8:
c13y = TI1B.children[ord(Z9rn) - ord('a')]
if c13y is None:
return False
TI1B = c13y
return TI1B.isword | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n return False\n tk5Y = tk5Y[Z9rn]\n return tk5Y.end_of_word",
"def DUe0(YKHO, ZOCz, GIN8):\n if type(GIN8) != str:\n raise TypeError('Trie only works on str!')... | [
"0.82730556",
"0.8268669",
"0.8264989",
"0.821454",
"0.8189983",
"0.81762034",
"0.81695247",
"0.81329536",
"0.7981468",
"0.7973667",
"0.7966321",
"0.79540753",
"0.7881218",
"0.7876813",
"0.78663623",
"0.7835046",
"0.7819606",
"0.7812851",
"0.7811768",
"0.7795306",
"0.77902055... | 0.74448365 | 71 |
Returns if there is any word in the trie that starts with the given prefix. | def BYxH(YKHO, y0cW):
TI1B = YKHO.root
for Z9rn in y0cW:
c13y = TI1B.children[ord(Z9rn) - ord('a')]
if c13y is None:
return False
TI1B = c13y
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BYxH(YKHO, y0cW):\n GIN8 = y0cW\n if not GIN8:\n return True\n nsYX = GIN8[0]\n if nsYX not in YKHO.trie_map:\n return False\n Tifd = YKHO.trie_map[nsYX]\n for YRbF in range(1, len(GIN8)):\n LihS = GIN8[YRbF]\n if LihS not in Tifd.childMap:\n return Fals... | [
"0.86418957",
"0.8456077",
"0.8439758",
"0.84152204",
"0.8414917",
"0.8406607",
"0.83812594",
"0.8369774",
"0.83355415",
"0.8326945",
"0.83266926",
"0.8239315",
"0.8228612",
"0.8172047",
"0.81602836",
"0.81522566",
"0.81466633",
"0.811517",
"0.80111045",
"0.79831576",
"0.7983... | 0.7915124 | 25 |
Test that correct exception is raised when unpack is called with invalid JSON. | def S2WJ():
with trZe.raises(rzsD):
MZ6z(b'\x01') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ck52():\n with trZe.raises(vt9U):\n MZ6z(qQXR.dumps('3'))",
"def I6Mz():\n with trZe.raises(vt9U):\n MZ6z(qQXR.dumps([]))",
"def RQOz():\n with trZe.raises(Vzyq):\n MZ6z(qQXR.dumps([5, 1]))",
"def UWEU(cWHg):\n with trZe.raises(_OuM):\n cWHg.load(b'_')",
"def SqK... | [
"0.7999079",
"0.79825985",
"0.79554737",
"0.75054866",
"0.7205548",
"0.71818024",
"0.70856863",
"0.70809615",
"0.6948258",
"0.69035023",
"0.68132",
"0.679803",
"0.67887044",
"0.67805576",
"0.67620146",
"0.67190146",
"0.67161006",
"0.66984886",
"0.6693016",
"0.66623825",
"0.66... | 0.8546179 | 0 |
Grab frames and return dimensions. | def QRiV(qNUy):
f4IJ = qNUy.read()
f4IJ = Einh(f4IJ, width=400)
mC4B, yRXn = f4IJ.shape[:2]
return (f4IJ, yRXn, mC4B) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fODz(f4IJ):\n H2v2, TVTK = f4IJ.shape[:2]\n return (TVTK, H2v2)",
"def KisZ(eeAL):\n TVTK = int(eeAL.get(XC5k.CAP_PROP_FRAME_WIDTH))\n H2v2 = int(eeAL.get(XC5k.CAP_PROP_FRAME_HEIGHT))\n return (TVTK, H2v2)",
"def miY9(f6W2):\n print(f6W2)\n D4Me = 'ffprobe'\n oUZx = [D4Me, '-v', 'er... | [
"0.80320865",
"0.75592333",
"0.72718084",
"0.69058925",
"0.68654704",
"0.676752",
"0.6736014",
"0.6722046",
"0.668098",
"0.6679886",
"0.66740626",
"0.6665863",
"0.6645034",
"0.6643055",
"0.662082",
"0.65937084",
"0.65924793",
"0.6579131",
"0.65774196",
"0.6532958",
"0.6516369... | 0.61277735 | 70 |
Gets command line arguments. Returns them. | def W6RH():
wvEv = j1Jz.ArgumentParser(description='\n Takes a MAST output .xml file and makes a gff annotation file out of it.\n '.strip())
wvEv.add_argument('--input', help='The motif.xml file to be worked on.')
wvEv.add_argument('--output', help='The output destination (usually a .gff)')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jgwn(YKHO):\n return YKHO.argv",
"def rwTO():\n wvEv = xuJu()\n qIxc = wvEv.parse_args()\n return qIxc",
"def rwTO(YKHO) -> x1iM[str]:\n return YKHO.m_argv",
"def BV7_():\n qIxc = {}\n for YRbF in range(len(HwRy.argv)):\n if HwRy.argv[YRbF].startswith('-') and YRbF + 1 < len(H... | [
"0.79076314",
"0.7874506",
"0.77473986",
"0.76191217",
"0.7576722",
"0.74866575",
"0.74832934",
"0.74224627",
"0.74206084",
"0.7381475",
"0.73573685",
"0.73455185",
"0.7343844",
"0.7309947",
"0.7288409",
"0.72845924",
"0.72838986",
"0.7282435",
"0.72730094",
"0.72581434",
"0.... | 0.0 | -1 |
Register a new Function instance as system function | def gr_i(WrMS, kBv_=False):
Emd4 = t3AC
if not isinstance(WrMS, f_8k):
sE8z.logger.error('Invalid function definition: %s', repr(WrMS))
return
V1JO = WrMS.definition()
from myclips.FunctionsManager import FunctionDefinition
assert isinstance(V1JO, FunctionDefinition)
if not kBv_ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aWzQ(YKHO, JfyU):\n YKHO.functions.append(JfyU)",
"def gr_i(Emd4, JfyU):\n Emd4.functions[JfyU.__name__] = JfyU\n return JfyU",
"def gr_i(YKHO, jCrx):\n YKHO.functions[jCrx.get_func_id()] = jCrx",
"def o_pq(YKHO, mWFP, DpZH, JfyU):\n YKHO._functions[mWFP, DpZH] = JfyU",
"def o_pq(YKHO, m... | [
"0.7472188",
"0.7446249",
"0.7230637",
"0.7228158",
"0.7228158",
"0.72272325",
"0.7212348",
"0.72013706",
"0.71468806",
"0.7126696",
"0.71252203",
"0.70202535",
"0.6892617",
"0.68787557",
"0.6868082",
"0.6868082",
"0.6868082",
"0.6868082",
"0.6868082",
"0.6868082",
"0.6777421... | 0.73442125 | 2 |
Get the property setter. | def wkZW(YKHO, YEnM, BWXx) -> YrBT:
if not YKHO.prop_set:
raise AttributeError("can't set attribute")
Hghu: type = type(YEnM)
if Hghu == yE21:
Hghu = YEnM
return YKHO.prop_set.__get__(YEnM, Hghu)(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aWgE(YKHO):\n return YKHO._setter",
"def AEvs(hkS8):\n\n def aWgE(YKHO, BWXx):\n setattr(YKHO, hkS8, BWXx)\n YKHO.plot()\n return aWgE",
"def AEvs(hkS8):\n\n def aWgE(YKHO, BWXx):\n setattr(YKHO, hkS8, BWXx)\n YKHO.plot()\n return aWgE",
"def qRIM(aWgE):\n\n ... | [
"0.780814",
"0.69413584",
"0.69413584",
"0.65565675",
"0.65519106",
"0.6486161",
"0.64441794",
"0.6404262",
"0.64015645",
"0.63846225",
"0.6336568",
"0.6322967",
"0.6322967",
"0.63004553",
"0.6285638",
"0.619516",
"0.6168735",
"0.6150835",
"0.61146873",
"0.61146873",
"0.61146... | 0.65536267 | 4 |
Removes various braces and brackets from the text. | def u_Mt(l5Ny):
l5Ny = ZbWC.sub('\\{[^}]{,40}\\}', '', l5Ny)
l5Ny = ZbWC.sub('⟦[^⟧]*⟧', '', l5Ny)
return l5Ny | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k58G(YKHO, l5Ny):\n if l5Ny.startswith('<') and l5Ny.endswith('>.'):\n return l5Ny\n if '[' in l5Ny or ']' in l5Ny:\n QmN4 = True\n else:\n QmN4 = False\n uOe2 = ZbWC.findall('\\\\[.*?\\\\+.*?\\\\]', l5Ny)\n while uOe2 and QmN4:\n for LihS in uOe2:\n uw9T =... | [
"0.7427886",
"0.694937",
"0.6929154",
"0.6785727",
"0.67276245",
"0.6693076",
"0.6533459",
"0.6518063",
"0.6503415",
"0.64701647",
"0.6395286",
"0.63410115",
"0.6282838",
"0.6278923",
"0.6236758",
"0.61864436",
"0.6181383",
"0.61409134",
"0.608778",
"0.60794586",
"0.6079373",... | 0.78171986 | 0 |
Cleans a list of texts. | def nfYJ(AFpH, N5BV, yjl2):
nPrm = []
print('Cleaning: ', end='')
for YRbF, Novh in enumerate(AFpH):
l5Ny = ''
Novh = u_Mt(Novh)
Novh = Novh.splitlines()
for zFiD in Novh:
if zFiD != '\n':
s2mk = zFiD.split(' ')
zLya = zKDd(s2mk, N5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nfYJ(YKHO, V22M):\n return [YKHO.clean_text(GIN8) for GIN8 in V22M]",
"def PhjP(Q5mJ: List[str]) -> x1iM[str]:\n hwHU = wqo1.ENGLISH_STOP_WORDS\n f2gV = []\n Q5mJ = [A97Q.lower().strip() for A97Q in Q5mJ]\n for A97Q in Q5mJ:\n TfQA = []\n s2mk = A97Q.split()\n for w2fL in ... | [
"0.7677499",
"0.70730245",
"0.7058564",
"0.69922",
"0.69427943",
"0.6866378",
"0.68555456",
"0.68286806",
"0.6749988",
"0.6736602",
"0.6708753",
"0.66933954",
"0.66868335",
"0.66810626",
"0.66697",
"0.6659368",
"0.66387033",
"0.66013503",
"0.65899324",
"0.6565177",
"0.6563476... | 0.68014574 | 8 |
Initializes Dense layer. The weights are initialized using uniformly distributed values in range [1, 1]. Bias vector is not initialized if `use_bias` is False. Weigths matrix has the shape (`n_in`, `n_out`), bias vector has the shape (`n_out`, ). | def FIMM(YKHO, Ya2q: int, _LFN: int, e5sz: bool=True):
YKHO.shape = (Ya2q, _LFN)
YKHO.W = YKHO.__rng.random(size=(Ya2q, _LFN))
YKHO.b = YKHO.__rng.random(size=_LFN)
YKHO.use_bias = e5sz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ya2q, _LFN, oNEO=0.0):\n super(K1Wl, YKHO).__init__()\n YKHO.out_layer = l6ZH(_LFN, input_shape=(Ya2q,), use_bias=False, activation=None, kernel_initializer=bdPE.initializers.RandomUniform(minval=-oyIN.sqrt(1 / Ya2q), maxval=oyIN.sqrt(1 / Ya2q), seed=37), kernel_regularizer=bdPE.regularizers.l... | [
"0.7350521",
"0.72614425",
"0.7072515",
"0.6969005",
"0.6969005",
"0.6956",
"0.6891205",
"0.6851165",
"0.6828221",
"0.6826798",
"0.6826798",
"0.68239397",
"0.6809569",
"0.6805461",
"0.6800639",
"0.678066",
"0.6778219",
"0.67215735",
"0.6658475",
"0.6646429",
"0.66300213",
"... | 0.73475224 | 1 |
Returns weights used by the layer. | def _mSQ(YKHO) -> AzJI[oyIN.ndarray, h8nf[oyIN.ndarray]]:
if YKHO.use_bias:
return (YKHO.W, YKHO.b)
else:
return (YKHO.W,) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wT46(YKHO):\n return YKHO.weights",
"def wT46(YKHO):\n return YKHO.weights",
"def wT46(YKHO):\n return YKHO.w",
"def wT46(YKHO):\n return YKHO.w",
"def wT46(YKHO):\n return YKHO._weights",
"def wT46(YKHO):\n return YKHO._weights",
"def wT46(YKHO):\n raise NotImplementedError",
... | [
"0.8903923",
"0.8903923",
"0.88620543",
"0.88620543",
"0.88615924",
"0.88615924",
"0.88589543",
"0.8839052",
"0.88092023",
"0.88092023",
"0.8786154",
"0.87855136",
"0.8738902",
"0.8723745",
"0.8700085",
"0.8683207",
"0.86650485",
"0.86650485",
"0.86650485",
"0.8647381",
"0.86... | 0.7663127 | 81 |
Return a list of courses. | def vyNo(YKHO, **B2fa):
return YKHO.conn.courseList(**B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8nB(YKHO):\n return",
"def i8S6():\n zVa7 = b8V_()\n try:\n sDlr = []\n shLb = None\n yv6U = []\n while True:\n geh0 = zVa7.courses().list(pageToken=shLb, pageSize=100).execute()\n sDlr.extend(geh0.get('courses', []))\n shLb = geh0.get('n... | [
"0.8873637",
"0.85813683",
"0.83668905",
"0.8344193",
"0.8337638",
"0.822048",
"0.8118632",
"0.8049812",
"0.79628253",
"0.7939477",
"0.78534144",
"0.7800631",
"0.7787726",
"0.776772",
"0.77399236",
"0.7690213",
"0.76892126",
"0.7546579",
"0.7518324",
"0.7517716",
"0.7490304",... | 0.8602625 | 1 |
Return a list of courses. | def AC5Y(YKHO, mWFP, **B2fa):
return YKHO.conn.courseFind(mWFP, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8nB(YKHO):\n return",
"def vyNo(YKHO, **B2fa):\n return YKHO.conn.courseList(**B2fa)",
"def i8S6():\n zVa7 = b8V_()\n try:\n sDlr = []\n shLb = None\n yv6U = []\n while True:\n geh0 = zVa7.courses().list(pageToken=shLb, pageSize=100).execute()\n ... | [
"0.8873637",
"0.8602625",
"0.85813683",
"0.83668905",
"0.8344193",
"0.8337638",
"0.822048",
"0.8118632",
"0.8049812",
"0.79628253",
"0.7939477",
"0.78534144",
"0.7800631",
"0.7787726",
"0.776772",
"0.77399236",
"0.7690213",
"0.76892126",
"0.7546579",
"0.7518324",
"0.7517716",... | 0.0 | -1 |
Return a matching player by email. | def o9L7(YKHO, D3lj, **B2fa):
return YKHO.conn.playerFind(D3lj, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A22B(D3lj):\n LEXu = C3ST.Players.get_by_key_name(D3lj)\n if not LEXu:\n raise ValueError(KKL2.PLAYER_NOT_FOUND)\n return LEXu",
"def RMce(YKHO, D3lj):\n for XP5J in YKHO.members:\n if XP5J.email.lower() == D3lj:\n return XP5J\n return None",
"def RT__(YKHO, oyg0):\n... | [
"0.74601287",
"0.73516613",
"0.7299039",
"0.6911252",
"0.68414193",
"0.677817",
"0.67735213",
"0.6722106",
"0.663561",
"0.6635116",
"0.6605807",
"0.6569853",
"0.65610117",
"0.6540005",
"0.6538031",
"0.65372217",
"0.65305096",
"0.6496441",
"0.6451444",
"0.6402198",
"0.6402198"... | 0.8432592 | 0 |
Return a matching player by email. | def ePZn(YKHO, oyg0):
return YKHO.conn.playerSave(oyg0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o9L7(YKHO, D3lj, **B2fa):\n return YKHO.conn.playerFind(D3lj, **B2fa)",
"def A22B(D3lj):\n LEXu = C3ST.Players.get_by_key_name(D3lj)\n if not LEXu:\n raise ValueError(KKL2.PLAYER_NOT_FOUND)\n return LEXu",
"def RMce(YKHO, D3lj):\n for XP5J in YKHO.members:\n if XP5J.email.lower... | [
"0.8433028",
"0.7459056",
"0.7351983",
"0.729913",
"0.6911999",
"0.68417615",
"0.67776245",
"0.67738765",
"0.6721757",
"0.66359067",
"0.6635618",
"0.6605549",
"0.6570439",
"0.6561651",
"0.6539701",
"0.65382856",
"0.6537975",
"0.65306044",
"0.6496333",
"0.64515823",
"0.6402221... | 0.0 | -1 |
Randomly choose elements from `seq`, producing a tuple of length `size`. | def mrPm(Q6uT, zNig, qx_G=True):
if not isinstance(zNig, wpGN) or zNig < 0:
raise ValueError('`size` must be a non-negative integer. Got {}'.format(zNig))
if zNig > len(Q6uT) and (not qx_G):
raise ValueError('`size` must not exceed the length of `seq` when `replace` is `False`')
if not Q6uT:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mrPm(Q6uT, zNig, qx_G=True):\n if not isinstance(zNig, wpGN) or zNig < 0:\n raise ValueError(f'`size` must be a non-negative integer. Got {zNig}')\n if zNig > len(Q6uT) and (not qx_G):\n raise ValueError('`size` must not exceed the length of `seq` when `replace` is `False`')\n if not Q6u... | [
"0.74298066",
"0.7150567",
"0.69486207",
"0.69202477",
"0.66997373",
"0.66548723",
"0.66300726",
"0.6604615",
"0.6580127",
"0.6559152",
"0.6552559",
"0.6538421",
"0.64924294",
"0.64795214",
"0.64347756",
"0.64096975",
"0.6394314",
"0.6392748",
"0.63597333",
"0.6351889",
"0.63... | 0.74534315 | 0 |
This method returns a dict containing the kwargs for constructing an argparse.ArgumentParser (either directly or as a subparser). | def WtNm():
return {'prog': 'CodeChecker analyzers', 'formatter_class': j1Jz.ArgumentDefaultsHelpFormatter, 'description': 'Get the list of available and supported analyzers, querying their version and actual binary executed.', 'help': 'List supported and available analyzers.'} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dCXb(YKHO):\n return dict(vars(YKHO.arg_parser.parse_args()))",
"def WtNm():\n return {'prog': 'CodeChecker version', 'formatter_class': j1Jz.ArgumentDefaultsHelpFormatter, 'description': 'Print the version of CodeChecker package that is being used.', 'help': 'Print the version of CodeChecker package t... | [
"0.6951933",
"0.691799",
"0.6608543",
"0.64839107",
"0.6472423",
"0.64601636",
"0.6396156",
"0.6392632",
"0.63759017",
"0.63707143",
"0.6355066",
"0.6346494",
"0.63344413",
"0.6331206",
"0.63271856",
"0.63197327",
"0.63137764",
"0.62984526",
"0.6290152",
"0.62282664",
"0.6209... | 0.6971447 | 0 |
Encodes our Unicode string to ASCII, then back to Unicode. In the translation, we ignore all unknown characters, which removes all of the nonASCII characters that break our string parsing. | def mvFH(KCHu):
return str(KCHu).encode('ascii', 'ignore').decode() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GXoZ(OGsW):\n KpAY = Hb5c()\n return OGsW.translate(KpAY).encode('ascii', 'ignore')",
"def iJIb(l5Ny):\n l5Ny = uR2q(l5Ny, ascii=True)\n if isinstance(l5Ny, jKi7.text_type):\n l5Ny = l5Ny.encode('ascii', 'ignore').decode('ascii')\n return l5Ny",
"def OZFm(n_L_):\n return zVCt.norma... | [
"0.72150826",
"0.715153",
"0.7118176",
"0.70355046",
"0.69878024",
"0.6979812",
"0.6961856",
"0.6907129",
"0.6896056",
"0.689475",
"0.6758475",
"0.6750134",
"0.67274487",
"0.67078674",
"0.6617655",
"0.65950793",
"0.65867656",
"0.655532",
"0.6542934",
"0.65401036",
"0.6493272"... | 0.0 | -1 |
Converts our list of dictionaries to a dictionary of lists, while processing some of the data points (e.g. converting number strings to ints and float, as well as lowercasing strings). Also uses renamed keys instead of the very long default ones. | def xP2o(XgSV, B2hD, sC9u, gfpw, RILc, k0iN, FyWd, fLlh, GQ93, CO9Y, ZZSS, qIYy='', cPUE=''):
wNuL = []
Mlb1 = []
voXo = []
y4_z = []
NxPo = []
Qsun = []
for Csk6 in XgSV:
wNuL.append(Csk6[B2hD])
Mlb1.append(float(Csk6[gfpw]))
voXo.append(int(Csk6[k0iN]))
y4_z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kIcX(Csk6):\n Csk6 = jth9.deepcopy(Csk6)\n dh64 = {}\n for H5ew in Csk6:\n dh64[H5ew] = Csk6[H5ew]\n if isinstance(Csk6[H5ew], dict):\n dh64[H5ew] = kIcX(Csk6[H5ew])\n if isinstance(Csk6[H5ew], list):\n if len(Csk6[H5ew]) == 0:\n continue\n ... | [
"0.66687775",
"0.6537444",
"0.6507402",
"0.6295128",
"0.6262133",
"0.62493885",
"0.621118",
"0.61927754",
"0.6180606",
"0.6140879",
"0.6130237",
"0.61299396",
"0.6129673",
"0.60735816",
"0.60735816",
"0.6030984",
"0.602803",
"0.6016054",
"0.59676117",
"0.5963072",
"0.5961087"... | 0.64505386 | 3 |
Find the uncalibrated CDF prob which gives `target_cdf_prob` when calibrated. | def n1R_(jHm0, IEK4: float) -> float:
JRC0 = jHm0.X_min_
IA3S = jHm0.X_max_
while True:
kEK1 = JRC0 + (IA3S - JRC0) / 2
QQA0 = jHm0.transform([kEK1])[0]
if abs(QQA0 - IEK4) <= 1e-06 or IA3S - JRC0 <= 1e-06:
break
elif QQA0 > IEK4:
IA3S = kEK1
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TIaZ(EH3I, TguC):\n return oyIN.mean((EH3I - TguC) ** 2)",
"def JxU2(YKHO, gqRb, Kzd5):\n return oyIN.maximum(YKHO.cdf(Kzd5) - YKHO.cdf(gqRb), 0)",
"def LCQ3(YKHO):\n return v_BE.cdf(YKHO.k, YKHO.n, YKHO.p)",
"def kuwn(nPrm, D_ib, MynD=-oyIN.inf, n4wC=oyIN.inf):\n nPrm = oyIN.array(nPrm, dtyp... | [
"0.73049796",
"0.6259237",
"0.59290576",
"0.59230095",
"0.59088707",
"0.5850267",
"0.5759507",
"0.5741757",
"0.5711757",
"0.56737363",
"0.5649966",
"0.5646277",
"0.5545013",
"0.55302674",
"0.55234104",
"0.5498271",
"0.54967064",
"0.5482319",
"0.54500175",
"0.54451823",
"0.544... | 0.8086739 | 0 |
Cast unicode or bytes to bytes | def nR9l(KCHu, tZ2K='utf8', UAju='strict'):
if isinstance(KCHu, bytes):
return KCHu
elif isinstance(KCHu, QMSQ):
return KCHu.encode(tZ2K, UAju)
else:
raise TypeError("Expected unicode or bytes, got '%r'" % KCHu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _v77(BWXx):\n if not isinstance(BWXx, (str, bytes, bytearray)):\n BWXx = str(BWXx)\n if isinstance(BWXx, str):\n BWXx = bytes(BWXx, encoding=bbMd)\n elif isinstance(BWXx, bytearray):\n BWXx = bytes(BWXx)\n return BWXx",
"def OlFT(wEf2):\n if wEf2 is None:\n return N... | [
"0.81632876",
"0.8042285",
"0.779198",
"0.77665854",
"0.775322",
"0.77462053",
"0.74283737",
"0.73977625",
"0.7395687",
"0.731711",
"0.7255958",
"0.72503984",
"0.72453123",
"0.7237965",
"0.72083867",
"0.71881384",
"0.71680653",
"0.7166034",
"0.7159309",
"0.71546894",
"0.71389... | 0.77343863 | 6 |
This function creates a new text file containing a unique integer on each line. Each integer has an equal number of digits (1 is represented as 001). There can be no more than 9,999,999 values. Should a value greater than 9,999,999 be entered, the user will encounter significant errors. | def rLMJ(r8hN):
for YRbF in range(2, 7):
r845 = 10 ** YRbF
if r8hN <= r845:
r8hN = YRbF
break
xYvp = ''
for YRbF in range(0, 10 ** r8hN, 1):
jfrd = str(YRbF)
if len(jfrd) < r8hN:
for YRbF in range(0, r8hN - len(jfrd), 1):
jf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vTY_(gIsw: str):\n with open(gIsw, 'w') as eHNT:\n for bGrB in range(0, 100):\n eHNT.write(str(tuKI.randint(0, 1000)) + '\\n')\n eHNT.close()",
"def cX5P(Ux0P, exwG):\n tuKI.seed(0)\n eHNT = open(Ux0P, 'w')\n ewCu = 0\n while ewCu < exwG:\n eHNT.write(str(tuKI.r... | [
"0.70330757",
"0.69374245",
"0.6671934",
"0.6270006",
"0.61848867",
"0.6135889",
"0.61035204",
"0.6093488",
"0.60478014",
"0.6036129",
"0.60292053",
"0.5970723",
"0.58331573",
"0.5804407",
"0.5803799",
"0.57485044",
"0.5743033",
"0.5733819",
"0.57263917",
"0.5722805",
"0.5673... | 0.54739773 | 30 |
Return a string representation of the Call. Returns | def wHJl(YKHO):
if YKHO._environment == sl9A.ANDROID:
return YKHO._function_signature + '.' + YKHO._function_name
else:
return YKHO.identity | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sPSG(YKHO):\n if YKHO.func_name is None:\n return 'None'\n FiiE = [repr(d7pR) for d7pR in YKHO.args]\n FiiE += ['%s=%r' % (G1Hx, Ty9i) for G1Hx, Ty9i in YKHO.kwargs.items()]\n qIxc = ', '.join(FiiE)\n return '%s(%s)' % (YKHO.func_name, qIxc)",
"def wHJl(YKHO) -> str:\n QpfX = ' '.joi... | [
"0.751888",
"0.69585896",
"0.6883398",
"0.67369956",
"0.6689555",
"0.6679228",
"0.6663662",
"0.6595803",
"0.65399617",
"0.64966553",
"0.6459262",
"0.64213014",
"0.63123256",
"0.63014096",
"0.6256451",
"0.6210508",
"0.6210508",
"0.6194472",
"0.6182777",
"0.6182777",
"0.6161063... | 0.5973141 | 47 |
Return a string representation of the Call. Returns | def zAg0(YKHO):
return YKHO.__repr__() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sPSG(YKHO):\n if YKHO.func_name is None:\n return 'None'\n FiiE = [repr(d7pR) for d7pR in YKHO.args]\n FiiE += ['%s=%r' % (G1Hx, Ty9i) for G1Hx, Ty9i in YKHO.kwargs.items()]\n qIxc = ', '.join(FiiE)\n return '%s(%s)' % (YKHO.func_name, qIxc)",
"def wHJl(YKHO) -> str:\n QpfX = ' '.joi... | [
"0.75180113",
"0.69575584",
"0.68813634",
"0.67358255",
"0.668814",
"0.6678748",
"0.66632485",
"0.6593872",
"0.65395916",
"0.64959294",
"0.6459504",
"0.64213794",
"0.63122874",
"0.62998015",
"0.6254374",
"0.6208971",
"0.6208971",
"0.61934924",
"0.6180659",
"0.6180659",
"0.615... | 0.0 | -1 |
Override != operator to allow comparing two Call instances. | def Vdqg(YKHO, Elif):
return YKHO.identity != Elif.identity | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xjdh(YKHO, Elif):\n return h2pB(seET.is_not, YKHO, Elif)",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, dg7v):\n return not YKHO == dg7v",
"def Vdqg(YKHO, Elif):\n return not (YKHO.__eq__, Elif)",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdq... | [
"0.7400039",
"0.7304977",
"0.7296381",
"0.7295296",
"0.728155",
"0.726834",
"0.72534555",
"0.72448736",
"0.7244146",
"0.7238731",
"0.7234251",
"0.72256553",
"0.72256553",
"0.72256553",
"0.72256553",
"0.72256553",
"0.7222453",
"0.7218698",
"0.721289",
"0.72115535",
"0.72115535... | 0.0 | -1 |
Return a string that uniquely identifies this object. | def _E99(YKHO):
_E99 = None
if YKHO._granularity == o555.FUNC:
_E99 = YKHO._function_name
if YKHO._function_signature:
_E99 += ' ' + YKHO._function_signature
elif YKHO._granularity == o555.FILE:
_E99 = YKHO._function_signature
return _E99 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W2a_(YKHO) -> str:\n return str(YKHO) + '(' + str(id(YKHO)) + ')'",
"def unpH(YKHO):\n return luV5(hash(tuple(sorted(YKHO.__dict__.items()))), 36).lower()[-6:]",
"def ShR8(YKHO) -> str:\n return YKHO._key",
"def ShR8(YKHO):\n return '{}.{}'.format(YKHO.__class__, YKHO._addrep)",
"def ShR8(Y... | [
"0.8466668",
"0.8357402",
"0.8201155",
"0.8181087",
"0.81529",
"0.81529",
"0.81529",
"0.81529",
"0.81529",
"0.81529",
"0.81529",
"0.81529",
"0.81529",
"0.81521344",
"0.81459665",
"0.8111521",
"0.8101011",
"0.8101011",
"0.8087693",
"0.80743337",
"0.80743337",
"0.8055035",
... | 0.0 | -1 |
Tests the domain_search command function. Configures requests_mock instance to generate the appropriate domain search API response, loaded from a local JSON file. Checks the output of the command function with the expected output. | def xm5V(sisH):
from HostIo import Client, search_command
rrHr = 'googleanalytics'
j9J8 = 'UA-61330992'
ZG9D = S3ET('test_data/search.json')
sisH.get(f'https://test.com/api/domains/{rrHr}/{j9J8}', json=ZG9D)
x0hE = Client(base_url='https://test.com/api', verify=False, headers={'Authorization': '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QB32(sisH):\n from HostIo import Client, domain_command\n from CommonServerPython import Common\n ZNRn = 'google.com'\n ZG9D = S3ET('test_data/domain.json')\n sisH.get(f'https://test.com/api/full/{ZNRn}', json=ZG9D)\n x0hE = Client(base_url='https://test.com/api', verify=False, headers={'Auth... | [
"0.6898603",
"0.68143314",
"0.637362",
"0.6373299",
"0.63603145",
"0.6309063",
"0.6252547",
"0.6245295",
"0.62444973",
"0.6243285",
"0.6168277",
"0.613219",
"0.61190253",
"0.61167926",
"0.60592735",
"0.60408837",
"0.59544796",
"0.59253436",
"0.5914503",
"0.5909389",
"0.589643... | 0.7930908 | 0 |
Sets the unit of this Weight. | def PXGI(YKHO, PXGI):
YKHO._unit = PXGI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HG0k(YKHO, PXGI):\n YKHO.unit = PXGI",
"def PXGI(YKHO, PXGI):\n YKHO._unit = PXGI",
"def AzKP(YKHO, PXGI):\n YKHO.unit = PXGI",
"def C5Ms(YKHO):\n nrx0 = ''\n if YKHO.kilo:\n nrx0 = 'k'\n YKHO.multiplier = 1000\n elif YKHO.nano:\n nrx0 = 'n'\n YKHO.multiplier... | [
"0.844369",
"0.8288878",
"0.82788724",
"0.7809171",
"0.7785186",
"0.7491413",
"0.7364224",
"0.73545647",
"0.73064476",
"0.72755647",
"0.7268004",
"0.7179898",
"0.7109711",
"0.70571005",
"0.7029034",
"0.7011807",
"0.70064604",
"0.6929141",
"0.6924691",
"0.679091",
"0.6772437",... | 0.8152682 | 3 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 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 return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.83931077",
"0.83551943",
"0.8295509",
"0.8132744",
"0.8115034",
"0.8100248",
"0.8099668",
"0.80982566",
"0.80982566",
"0.809302",
"0.809302",
"0.809302",
"0.809302",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.80673736",
"0.80593926",
"0.80581796",
"0.... | 0.0 | -1 |
Configures the learning rate. | def TriZ(z4eA, Aak1):
if vPBo.learning_rate_decay_type == 'exponential':
return ZylS.train.exponential_decay(vPBo.learning_rate, Aak1, z4eA, vPBo.learning_rate_decay_factor, staircase=True, name='exponential_decay_learning_rate')
elif vPBo.learning_rate_decay_type == 'fixed':
return ZylS.constan... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kVtO(YKHO, tspZ=0.1):\n YKHO.learning_rate = tspZ\n return YKHO",
"def Aaf0(YKHO, Tclk):\n YKHO.learningRate = Tclk",
"def kVtO(YKHO, Qj8D: float):\n pass",
"def b0Ix(YKHO, b0Ix):\n YKHO._learning_rate = MoCN.learning_rate_limiter(b0Ix)",
"def b0Ix(YKHO, b0Ix):\n YKHO._learning_rate =... | [
"0.7926337",
"0.7903272",
"0.78032243",
"0.771162",
"0.771162",
"0.76847553",
"0.7615253",
"0.7590796",
"0.758113",
"0.7538556",
"0.75377834",
"0.7530232",
"0.75159293",
"0.7511709",
"0.74517494",
"0.7441666",
"0.7417797",
"0.74022394",
"0.73456734",
"0.73372835",
"0.7327593"... | 0.0 | -1 |
Returns the subset of variables in the checkpoint. Inspects given checkpoint and returns the subset of variables that are available in it. | def vw0J(kc1W, V1C0, P4zx=True):
if not isinstance(kc1W, dict):
raise ValueError('`variables` is expected to be a dict.')
xoDP = ZylS.train.NewCheckpointReader(V1C0)
Xonv = xoDP.get_variable_to_shape_map()
if not P4zx:
Xonv.pop(ZylS.GraphKeys.GLOBAL_STEP, None)
GJU7 = {}
for M_u8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vw0J(kc1W, V1C0, P4zx=True):\n if isinstance(kc1W, list):\n BZF8 = {}\n for Es0b in kc1W:\n if isinstance(Es0b, sjh1.PartitionedVariable):\n mWFP = Es0b.name\n else:\n mWFP = Es0b.op.name\n BZF8[mWFP] = Es0b\n elif isinstance(kc... | [
"0.6730141",
"0.6599522",
"0.64343977",
"0.63868606",
"0.6324712",
"0.626581",
"0.6114387",
"0.60822475",
"0.60761625",
"0.60736936",
"0.6059078",
"0.5899931",
"0.5895573",
"0.58828616",
"0.58763033",
"0.58763033",
"0.58763033",
"0.5857907",
"0.5843733",
"0.5843733",
"0.58370... | 0.6349619 | 4 |
The name of the job. | def mWFP(YKHO) -> str:
if YKHO.filename:
return YKHO.filename
return YKHO.jobid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wxIh(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_name')",
"def W0tD(YKHO):\n return YKHO.get_job()['name']",
"def wxIh(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'job_name')",
"def mWFP(YKHO):\n return 'ExampleJob{}'.format(YKHO.jobid)",
"def wxIh(YKHO) -> h8nf[str]:\n return qe4Y.... | [
"0.9172599",
"0.88320684",
"0.881781",
"0.8689911",
"0.8575495",
"0.8394885",
"0.8370776",
"0.81332594",
"0.81067485",
"0.7987151",
"0.79744494",
"0.7916522",
"0.786204",
"0.78151715",
"0.779851",
"0.76852447",
"0.7684597",
"0.7628995",
"0.74689615",
"0.7445519",
"0.73911977"... | 0.84104544 | 5 |
Returns a Backend object. | def FIMM(YKHO, lZwM):
super().__init__('CB-' + lZwM, 7)
YKHO._profile_name = lZwM
YKHO._cb = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDLl():\n return p5cf",
"def JLXL():\n return MAqI()",
"def JLXL():\n return MAqI()",
"def JLXL():\n return MAqI()",
"def JLXL():\n _OIP = '_cached_backend_instance'\n if not hasattr(JLXL, _OIP):\n setattr(JLXL, _OIP, oBqy()())\n return getattr(JLXL, _OIP)",
"def JLXL(Emd4... | [
"0.824379",
"0.796918",
"0.796918",
"0.796918",
"0.7911986",
"0.78963935",
"0.7871305",
"0.7858749",
"0.7799261",
"0.7714919",
"0.7714919",
"0.76927763",
"0.7633788",
"0.7496954",
"0.74951303",
"0.74303794",
"0.74303794",
"0.74303794",
"0.74303794",
"0.742016",
"0.7363247",
... | 0.0 | -1 |
Finds all node attributes of nodes in graph that all have the same values. Returns a dict of node attribute/common value pairs. One can exclude specifc keys using the exclude variable. | def ZVMr(pNZh, Ziit=None, gXX7=[]):
if not Ziit:
Ziit = set(pNZh.nodes)
c8h9 = oRi_(list)
for or8S in Ziit:
for H5ew, wEf2 in pNZh.nodes[or8S].items():
if H5ew not in gXX7:
c8h9[H5ew].append(wEf2)
c8h9 = {H5ew: T6S7[0] for H5ew, T6S7 in c8h9.items() if len(T6S... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CBsq(YKHO, HcOV):\n yvY1 = HcOV[0]\n XeQb = yvY1.node[yvY1.nodes()[0]].keys()\n IEkZ = yvY1.edge[yvY1.edges()[0][0]][yvY1.edges()[0][1]].keys()\n if list(set(XeQb) & set(IEkZ)):\n raise Exception('Some attributes for nodes and edges have the same names! This is not allowed, please solve the ... | [
"0.65448254",
"0.65049994",
"0.6439806",
"0.64219224",
"0.638066",
"0.62817943",
"0.62069976",
"0.6073563",
"0.5973425",
"0.5948847",
"0.5939596",
"0.58986104",
"0.5833306",
"0.57895046",
"0.5720712",
"0.5705813",
"0.56984925",
"0.56805944",
"0.5654433",
"0.5625521",
"0.55990... | 0.77537954 | 0 |
Add image subplot at the specified index with given title. | def i5J1(VXjJ, QyVM, leAC, TVTK=4, H2v2=4):
QrM1.subplot(TVTK, H2v2, QyVM)
QrM1.axis('off')
QrM1.title(leAC)
QrM1.tight_layout(pad=0.01)
QrM1.imshow(oyIN.transpose(VXjJ, (1, 2, 0))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nUHY(VXjJ, finE=111, _PQV=''):\n Eb6b(finE)\n r2sP(VXjJ)\n jDK_('off')\n leAC(_PQV)",
"def u6fe(e5N9, niDK, leAC):\n exwG = len(e5N9)\n QrM1.figure(niDK)\n for YRbF in range(exwG):\n QrM1.subplot(oyIN.ceil(exwG / 3), 3 if exwG >= 3 else exwG, YRbF + 1)\n QrM1.title(leAC + s... | [
"0.6867628",
"0.6730275",
"0.65283525",
"0.65181476",
"0.6396427",
"0.63119364",
"0.6249558",
"0.6227711",
"0.6218554",
"0.6214565",
"0.6197941",
"0.6193394",
"0.6191147",
"0.61889756",
"0.61579174",
"0.6146601",
"0.61442506",
"0.61378145",
"0.6105058",
"0.6104851",
"0.610084... | 0.64470714 | 4 |
Test that the IPython extension works even if an exception is raised. | def xvvL(YKHO, TBXe):
Wxnj = ['%load_ext memray', '\n %%memray_flamegraph\n x = "a" * 10000\n 1/0\n ']
_R2e = TiVk(TBXe, Wxnj)
assert _R2e is not None
assert '<iframe' in _R2e
assert 'flamegraph.html' in _R2e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def um6Y():\n with Ee0Z():\n import ascript\n assert ascript.msg",
"def jupo():\n LZpg = QD4e()\n LZpg.basemap(region=[0, 1, 2, 3], frame=True)\n with trZe.raises(qYsH):\n LZpg.show(method='notebook')",
"def rbUv(YKHO):\n Aofo = D8Ke.run_cell('\\n import IPython.core.... | [
"0.7016133",
"0.68904096",
"0.67290276",
"0.657563",
"0.6433321",
"0.6357401",
"0.6335254",
"0.62694126",
"0.6262293",
"0.6228248",
"0.61785287",
"0.6175607",
"0.6144891",
"0.61328435",
"0.6124327",
"0.6098283",
"0.608346",
"0.6036554",
"0.6021295",
"0.60165805",
"0.60163957"... | 0.6154029 | 12 |
Build a list of integer map ids from a list of ssm file names. | def RLIy(hNUg):
A07C = []
for FYKK in hNUg:
gXtX = map(int, ZbWC.findall('\\d+', FYKK))
A07C.append(gXtX[-1:][0])
return A07C | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DEsA(NmfV):\n v_Zw = []\n for gIsw in NmfV:\n WpAY = Hy7s.path.basename(Hy7s.path.splitext(gIsw)[0])\n v_Zw.append(WpAY)\n return v_Zw",
"def j09d():\n pass",
"def QlOH(MVVZ):\n Lvpj = {}\n for gIsw in MVVZ:\n XPB5, LAeX = Ca9i.parse_file_name(gIsw)\n Lvpj.setd... | [
"0.66743785",
"0.6615293",
"0.65039545",
"0.6304372",
"0.6063766",
"0.60533696",
"0.6043053",
"0.60295266",
"0.60261744",
"0.59922093",
"0.5984485",
"0.5969246",
"0.5965622",
"0.5945366",
"0.59402657",
"0.5933974",
"0.5879354",
"0.58782655",
"0.5838418",
"0.5823276",
"0.57964... | 0.74304277 | 0 |
Constructor for the PhysicalBackupSourceParams class | def FIMM(YKHO, IGNB=None, Ei_s=None, FOOG=None, BuD6=None, GQd4=None):
YKHO.enable_system_backup = IGNB
YKHO.file_backup_params = Ei_s
YKHO.snapshot_params = FOOG
YKHO.source_app_params = BuD6
YKHO.volume_guid_vec = GQd4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, B8fw: Optional[pulumi.Input[str]]=None, Sw0R: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]=None, Qrk7: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]=None, UAcg: Optional[pulumi.Input[str]]=None, _SBG: Optional[pulumi.Input[str]]=None, TRLE: Optional[pulumi.Input[str]]=None, RWC_: Opt... | [
"0.6737556",
"0.6498631",
"0.63802",
"0.63501877",
"0.6328702",
"0.63154674",
"0.6271097",
"0.62697905",
"0.621699",
"0.62169224",
"0.61430955",
"0.60730034",
"0.60416716",
"0.6031747",
"0.60201013",
"0.6004796",
"0.59922636",
"0.5980851",
"0.5969791",
"0.59588134",
"0.595478... | 0.6855534 | 0 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
IGNB = cmPJ.get('enableSystemBackup')
Ei_s = qRGs.models.physical_file_backup_params.PhysicalFileBackupParams.from_dictionary(cmPJ.get('fileBackupParams')) if cmPJ.get('fileBackupParams') else None
FOOG = qRGs.models.physical_snapshot_params.Phy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)",
"def rQfz(Emd4, cmPJ):\n if cm... | [
"0.83717704",
"0.8335454",
"0.8215639",
"0.8169286",
"0.8169286",
"0.8147288",
"0.8051544",
"0.802922",
"0.80130595",
"0.79790455",
"0.79222333",
"0.79195154",
"0.7917697",
"0.79124105",
"0.7905466",
"0.7900461",
"0.78967464",
"0.7885628",
"0.78752494",
"0.78539485",
"0.78539... | 0.0 | -1 |
Returns True if there were no matches found. | def ARhM(YKHO, D9Ga):
return not D9Ga.has_next() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsmZ(YKHO):\n with YKHO.conn as Z9rn:\n rdlD = Z9rn.execute('SELECT COUNT(*) AS n FROM search').fetchone()\n return rdlD['n'] == 0",
"def _1O5(YKHO):\n return len(YKHO._partial_matches) > 0",
"def lsmZ(YKHO):\n return bool(not YKHO._keys and (not YKHO._result))",
"def lsmZ(YKHO):\n... | [
"0.6990884",
"0.6939494",
"0.6862411",
"0.6841288",
"0.68211573",
"0.679184",
"0.6748266",
"0.6700243",
"0.6700043",
"0.6695864",
"0.6665006",
"0.66327924",
"0.66327924",
"0.66327924",
"0.66204196",
"0.6615071",
"0.65873384",
"0.65680915",
"0.65400904",
"0.65307647",
"0.65299... | 0.77145433 | 0 |
Returns a logger object corresponding to `name`. | def fhOf(mWFP=None):
return G9jH.getLogger(mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fZx2(mWFP):\n return G9jH.getLogger(mWFP)",
"def fZx2(mWFP):\n try:\n return S0MI[mWFP]\n except KeyError:\n G9jH.root.setLevel(wnrn)\n uaPq = S4sv(Axo4)\n wOb_ = G9jH.StreamHandler()\n wOb_.setLevel(wnrn)\n wOb_.setFormatter(uaPq)\n RKD7 = G9jH.getLo... | [
"0.83389807",
"0.81657207",
"0.8038433",
"0.8030683",
"0.8026737",
"0.794693",
"0.78782344",
"0.78719103",
"0.7861206",
"0.7827127",
"0.78153235",
"0.77644694",
"0.7755938",
"0.7753447",
"0.7735108",
"0.77243716",
"0.7681072",
"0.76666015",
"0.7647224",
"0.76309955",
"0.75976... | 0.7516559 | 33 |
Cross displacement of the components of the input trajectory. | def ed_l(oeNL):
oeNL = oyIN.asarray(oeNL)
if oeNL.ndim != 2:
raise ValueError('Incorrect input data for cross_displacement')
lWPh = oeNL.shape[1]
GKss = [Xgd1(Uc5w) for Uc5w in oeNL.T]
Aofo = [[] for YRbF in range(lWPh)]
for YRbF, r845 in Hs6x.product(range(lWPh), range(lWPh)):
A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yn0W(YKHO, *qIxc):\n return leuP.Geom_Vector_CrossCross(YKHO, *qIxc)",
"def IdBT(YKHO, *qIxc):\n return leuP.Geom_Vector_Cross(YKHO, *qIxc)",
"def Qmtz(YKHO, *qIxc):\n return leuP.Geom_Vector_CrossCrossed(YKHO, *qIxc)",
"def IdBT(YKHO, jlSq: Vector) -> lNLu:\n ...",
"def WHx2(YKHO, input):\... | [
"0.7040342",
"0.6944636",
"0.6912993",
"0.6719204",
"0.6711133",
"0.6608008",
"0.65630275",
"0.6493987",
"0.6440414",
"0.64153844",
"0.63633853",
"0.6334517",
"0.61812115",
"0.61638075",
"0.6116541",
"0.6071096",
"0.6021303",
"0.59931546",
"0.5957169",
"0.5936624",
"0.5935870... | 0.5510748 | 66 |
Adds a new 'next nametag' for this branch (by definition ending_tag must then be None but this is not checked). | def E4WS(YKHO, W3o1):
YKHO.next_nametags.append(W3o1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WUaF(YKHO):\n q2BR = YKHO.repository.get_tags()\n if not isinstance(q2BR, smQK) and q2BR:\n q2BR = [q2BR]\n if q2BR:\n Q1j6 = sorted(q2BR, key=lambda WKvO: WKvO.commit.commit.committer.date, reverse=True)\n hLhr = str(Q1j6[0].name).split('.')\n hLhr[3] = str(int(hLhr[3]) + ... | [
"0.6244235",
"0.56685346",
"0.56037146",
"0.5541636",
"0.5539414",
"0.547464",
"0.54582256",
"0.5457751",
"0.54465026",
"0.544628",
"0.5440293",
"0.54358554",
"0.54268515",
"0.5422208",
"0.5373856",
"0.5366643",
"0.5356519",
"0.5354358",
"0.5351587",
"0.5351215",
"0.53295624"... | 0.8185871 | 0 |
Given a file previously assumed to be a map, output (return) all feature tags. | def sNwm(Ux0P):
_0VL = xvIg()
KRd9 = _0VL[0]
a7e_ = _0VL[1]
yIVm = aP0o(Ux0P, a7e_, KRd9, path_given=True, debug=False)
print(yIVm)
return yIVm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X9iu(eZ_W, UXEK):\n Eab6 = Nwr9(eZ_W)\n with open(UXEK, 'w') as HYSs:\n for s2mk, JEmp in Eab6:\n LyKa = oxI7(s2mk)\n for a1PO in range(len(s2mk)):\n E6J3 = '\\t'.join(LyKa[a1PO])\n E6J3 = QMSQ(E6J3)\n E6J3 = E6J3.encode('utf-8', e... | [
"0.66071653",
"0.65776145",
"0.6284824",
"0.6284824",
"0.62793887",
"0.62395376",
"0.6171104",
"0.615464",
"0.611779",
"0.6071476",
"0.6062328",
"0.6061205",
"0.60431576",
"0.6025218",
"0.6017793",
"0.6011447",
"0.5971635",
"0.59641147",
"0.59331995",
"0.59258085",
"0.5881171... | 0.0 | -1 |
Retrieves the job with the selected ID. | def NMoC(YKHO, id):
YKHO.cur.execute('SELECT * FROM jobs WHERE hash=?', (id,))
ZfUD = YKHO.cur.fetchone()
if ZfUD:
return dict(zip(('id', 'description', 'last-run', 'next-run', 'last-run-result'), ZfUD))
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XGuR(YKHO, id):\n with DMju() as cuiw:\n return YKHO._get_job_by_id(id, cuiw)",
"def UIzg(YKHO, rjee):\n return YKHO._action(['jobs', 'read'], params={'id': rjee})",
"def XGuR(YKHO, _eu6):\n for oCfW in YKHO.jobs:\n if oCfW['_id'] == _eu6:\n return oCfW",
"def UIzg(YKHO,... | [
"0.81528693",
"0.8112663",
"0.80682474",
"0.7992031",
"0.7802203",
"0.77768934",
"0.7732299",
"0.76998705",
"0.76898926",
"0.7663015",
"0.7654185",
"0.7642978",
"0.7587578",
"0.7477666",
"0.74531186",
"0.74091464",
"0.7389672",
"0.7388181",
"0.738709",
"0.7297599",
"0.7265307... | 0.65928906 | 60 |
T.__new__(S, ...) > a new object with type S, a subtype of T | def fwuD(o4sw, *SPTI):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw... | [
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.741903",
"0.7382552",
"0.7382... | 0.7260045 | 31 |
The user has provided invalid credentials (this was checked in AuthenticationForm.is_valid()). So now we set the test cookie again and rerender the form with errors. | def ee9W(YKHO, L03z):
YKHO.set_test_cookie()
return super(tHyA, YKHO).form_invalid(L03z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ee9W(YKHO, L03z):\n if not hasattr(L03z, 'user_cache'):\n return super(ddoR, YKHO).form_invalid(L03z)\n if L03z.user_cache and (not L03z.user_cache.is_confirmed):\n tO9_ = obQw(bGrB(u\"Votre email {} n'a toujours pas été vérifié. Cliquez <a class='alert-link' href='#'>ici</a> pour renvoyer ... | [
"0.66221267",
"0.6581037",
"0.65519315",
"0.64699036",
"0.64611936",
"0.6363952",
"0.6318404",
"0.6290126",
"0.6280236",
"0.6273294",
"0.6266819",
"0.62623525",
"0.6258142",
"0.6256362",
"0.62494403",
"0.6230368",
"0.6208946",
"0.6186188",
"0.6183891",
"0.616999",
"0.616665",... | 0.8075853 | 0 |
if the adsorbate binding atoms have no connection with slab atoms, consider it desorbed (returns True). | def hlA1(YKHO, _J3C=3):
PLwo = [or8S for or8S, TZ9E in enumerate(YKHO.atoms_tag) if TZ9E == 2]
VAdP = [or8S for or8S, TZ9E in enumerate(YKHO.atoms_tag) if TZ9E == 1]
UXMp = SDan.get_structure(YKHO.final_atoms)
N4ng = FvWx(allow_pathological=True, tol=0.8, cutoff=6)
for or8S in PLwo:
A_IW = U... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o6Wb(YKHO):\n fdLW = [or8S for or8S, TZ9E in enumerate(YKHO.atoms_tag) if TZ9E == 2]\n VyAw = YKHO._get_connectivity(YKHO.init_atoms[fdLW])\n Ar2a = YKHO._get_connectivity(YKHO.final_atoms[fdLW])\n return oyIN.array_equal(VyAw, Ar2a) is False",
"def ULcz(YKHO):\n return YKHO['binding'] == 'aba... | [
"0.6265472",
"0.5768705",
"0.5729976",
"0.5654065",
"0.54190505",
"0.53672165",
"0.53639936",
"0.5348123",
"0.53163767",
"0.53025234",
"0.5272684",
"0.52534205",
"0.5251111",
"0.5243847",
"0.5234473",
"0.52263314",
"0.51923656",
"0.51906914",
"0.51823366",
"0.517866",
"0.5173... | 0.6508989 | 0 |
Test that the template can be loaded with `setup template` | def HTvx(YKHO):
kXUa = wxaU([YKHO.get_elasticsearch_url()])
YKHO.render_config_template(monitors=[{'type': 'http', 'urls': ['http://localhost:9200']}], elasticsearch={'host': YKHO.get_elasticsearch_url()})
muOw = YKHO.run_beat(extra_args=['setup', '--template'])
assert muOw == 0
assert YKHO.log_cont... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GCWA(YKHO):\n pass",
"def Ft45(YKHO):\n pass",
"def GUCR(YKHO):\n Ux0P = 'wishbone_template'\n Aofo = YKHO.project.read_template(Ux0P, debug=False)\n YKHO.assertEqual(Aofo, True)",
"def eO85(YKHO):\n pass",
"def SXyK(YKHO):\n pass",
"def HTvx(YKHO):\n YKHO.assertTemplateUsed(Y... | [
"0.79223496",
"0.77676266",
"0.7482405",
"0.74127233",
"0.7407719",
"0.72582984",
"0.7241716",
"0.72149765",
"0.72051346",
"0.7187479",
"0.71744955",
"0.71685845",
"0.7148748",
"0.7138781",
"0.7136329",
"0.71332544",
"0.71185094",
"0.70754725",
"0.7071361",
"0.70532495",
"0.7... | 0.0 | -1 |
Test that event.dataset is set to `uptime` | def qby3(YKHO):
YKHO.render_config_template(monitors=[{'type': 'http', 'urls': ['http://localhost:9200']}, {'type': 'tcp', 'hosts': ['localhost:9200']}])
try:
N0y_ = YKHO.start_beat()
YKHO.wait_until(lambda: YKHO.output_lines() >= 2)
finally:
N0y_.check_kill_and_wait()
for hlel i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QOe9(begE):\n DCor = begE.get_system_up_time()\n assert type(DCor) is int\n assert DCor >= 0",
"def pyN3(YKHO):\n YKHO.assertEqual(s7If.parsers.uptime.parse('', quiet=True), {})",
"def qCT7(YKHO):\n sB1G = YKHO.auction_obj.data_classification(mRWQ)\n assert sB1G == 'heartbeat', 'Error une... | [
"0.653476",
"0.6351304",
"0.6205907",
"0.619937",
"0.61536556",
"0.6059631",
"0.5898994",
"0.5776535",
"0.5688902",
"0.5622725",
"0.5616234",
"0.55962723",
"0.5589834",
"0.55506283",
"0.55321157",
"0.5529036",
"0.5486647",
"0.54785407",
"0.54092246",
"0.53867525",
"0.53798085... | 0.6875528 | 0 |
Extract the json dictionary from a flask Response object | def LD8T(geh0):
return qQXR.loads(str(geh0.get_data(), encoding='utf-8')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQXR(YKHO, geh0):\n return geh0.json()",
"def CXY2(geh0):\n return qQXR.loads(qQXR.dumps(geh0.data))",
"async def json(YKHO):\n return YKHO.response_dict",
"def T_2m(YKHO, _hkX):\n try:\n return _hkX.json()\n except tK0V:\n return {}",
"def qQXR(geh0):\n return _1kr(geh0... | [
"0.76465464",
"0.74591553",
"0.7369942",
"0.7253356",
"0.7226937",
"0.7221588",
"0.7176403",
"0.7091251",
"0.7090165",
"0.7053984",
"0.702372",
"0.6979549",
"0.6979549",
"0.6929116",
"0.6929116",
"0.6929116",
"0.6916786",
"0.6901065",
"0.6835698",
"0.6752682",
"0.6739577",
... | 0.64703107 | 34 |
test creating a place without a name | def VMcv(YKHO):
WkFy = {'user_id': YKHO.user.id, 'id': 'CA'}
im04 = YKHO.app.post('{}/cities/{}/places/'.format(YKHO.path, YKHO.city.id), content_type='application/json', data=qQXR.dumps(WkFy), follow_redirects=True)
YKHO.assertEqual(im04.status_code, 400)
YKHO.assertEqual(im04.get_data(), b'Missing nam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MZOv(YKHO):\n pB3N = {'name': ''}\n Ylbp = YKHO.client.post(u2Um, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def Exri(YKHO):\n nPrm = {'name': 'Ismael'}\n C6id = GDfR(data=nPrm)\n C6id = pRgP.objects.get(id=C6id.id)\n YKHO.assertEqual(C6id.name, nPrm['name']... | [
"0.8010405",
"0.79667103",
"0.794712",
"0.7842813",
"0.7775264",
"0.7430173",
"0.73313695",
"0.7217304",
"0.71140593",
"0.7033564",
"0.69855744",
"0.697188",
"0.6947331",
"0.6920614",
"0.6845959",
"0.68418217",
"0.6794751",
"0.6773182",
"0.6761676",
"0.6761562",
"0.67497903",... | 0.8230694 | 0 |
test creating a city with not matching state | def ovXj(YKHO):
WkFy = {'name': 'cage', 'user_id': 'noID', 'id': 'CA'}
im04 = YKHO.app.post('{}/cities/{}/places/'.format(YKHO.path, 'noID'), content_type='application/json', data=qQXR.dumps(WkFy), follow_redirects=True)
YKHO.assertEqual(im04.status_code, 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UNiU(YKHO):\n pass",
"def VlNG(YKHO, j5sA):\n assert j5sA is not None",
"def VlNG(YKHO):\n F318 = cKBo.objects.get(name='Amsterdam')\n YKHO.assertEqual(F318.code, 'AMS')\n YKHO.assertEqual(F318.name, 'Amsterdam')",
"def eH7S(YKHO):\n VTJG = K85M('Chili', 'South America', '100000')\n ... | [
"0.8068882",
"0.7600754",
"0.7141004",
"0.69326675",
"0.6837853",
"0.6671191",
"0.66233075",
"0.66071343",
"0.6602718",
"0.6593443",
"0.65661156",
"0.64769936",
"0.647123",
"0.6458786",
"0.64514667",
"0.6451408",
"0.64488137",
"0.64094675",
"0.6401919",
"0.6395416",
"0.639008... | 0.66273403 | 6 |
test updating a place | def VEUZ(YKHO):
WkFy = {'name': 'cage', 'city_id': YKHO.city.id, 'user_id': YKHO.user.id, 'id': 'CA'}
C6id = pRgP(**WkFy)
C6id.save()
im04 = YKHO.app.put('{}/places/{}/'.format(YKHO.path, C6id.id), content_type='application/json', data=qQXR.dumps({'name': 'Z'}), follow_redirects=True)
YKHO.assertEqu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xP14(YKHO):\n nPrm = {'name': 'Carl'}\n C6id = MiQ9(place=YKHO.place, data=nPrm)\n C6id = pRgP.objects.get(id=C6id.id)\n YKHO.assertEqual(C6id.name, nPrm['name'])\n YKHO.assertEqual(pRgP.objects.count(), 1)",
"def GFLW(YKHO):\n nPrm = {'name': 'Carl', 'identifier': qxeD.uuid4()}\n C6id =... | [
"0.8450458",
"0.773029",
"0.7423613",
"0.7423613",
"0.7375737",
"0.7285714",
"0.72158885",
"0.71938276",
"0.71849465",
"0.71631706",
"0.71534234",
"0.7151903",
"0.71288216",
"0.7103265",
"0.7037723",
"0.70248246",
"0.70206505",
"0.6998681",
"0.6939045",
"0.69197917",
"0.68853... | 0.7291577 | 5 |
test cannot update place id | def Ugtb(YKHO):
WkFy = {'name': 'cage', 'city_id': YKHO.city.id, 'user_id': YKHO.user.id, 'id': 'CA'}
C6id = pRgP(**WkFy)
C6id.save()
im04 = YKHO.app.put('{}/places/{}/'.format(YKHO.path, C6id.id), content_type='application/json', data=qQXR.dumps({'id': 'Z'}), follow_redirects=True)
YKHO.assertEqual... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GFLW(YKHO):\n nPrm = {'name': 'Carl', 'identifier': qxeD.uuid4()}\n C6id = MiQ9(place=YKHO.place, data=nPrm)\n C6id = pRgP.objects.get(id=C6id.id)\n YKHO.assertEqual(C6id.name, nPrm['name'])\n YKHO.assertNotEqual(C6id.identifier, nPrm['identifier'])\n YKHO.assertEqual(C6id.identifier, YKHO.pl... | [
"0.8068916",
"0.79088837",
"0.7743702",
"0.7510321",
"0.75010705",
"0.7305856",
"0.70059353",
"0.6938025",
"0.6923302",
"0.6916398",
"0.68162763",
"0.6773564",
"0.67514944",
"0.6722712",
"0.67064416",
"0.6676203",
"0.6607266",
"0.6598276",
"0.65744823",
"0.65562385",
"0.65461... | 0.79025525 | 2 |
test cannot update place city_id | def p3az(YKHO):
WkFy = {'name': 'cage', 'city_id': YKHO.city.id, 'user_id': YKHO.user.id, 'id': 'CA'}
C6id = pRgP(**WkFy)
C6id.save()
im04 = YKHO.app.put('{}/places/{}/'.format(YKHO.path, C6id.id), content_type='application/json', data=qQXR.dumps({'city_id': 'Z'}), follow_redirects=True)
YKHO.assert... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kzkm(YKHO):\n WkFy = {'name': 'cage', 'city_id': YKHO.city.id, 'user_id': YKHO.user.id, 'id': 'CA'}\n C6id = pRgP(**WkFy)\n C6id.save()\n im04 = YKHO.app.put('{}/places/{}/'.format(YKHO.path, 'noID'), content_type='application/json', data=qQXR.dumps({'name': 'Z'}), follow_redirects=True)\n YKHO.... | [
"0.8184989",
"0.7295814",
"0.71187615",
"0.71129584",
"0.7095213",
"0.70642227",
"0.69090366",
"0.68399984",
"0.67889565",
"0.66138667",
"0.6568526",
"0.6543954",
"0.65343773",
"0.6512589",
"0.65095174",
"0.64871955",
"0.64863086",
"0.6485167",
"0.64628184",
"0.64333344",
"0.... | 0.80244076 | 1 |
test update with ill formed json | def HLQQ(YKHO):
WkFy = {'name': 'cage', 'city_id': YKHO.city.id, 'user_id': YKHO.user.id, 'id': 'CA'}
C6id = pRgP(**WkFy)
C6id.save()
im04 = YKHO.app.put('{}/places/{}/'.format(YKHO.path, C6id.id), content_type='application/json', data={'id': 'Z'}, follow_redirects=True)
YKHO.assertEqual(im04.status... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIDa(YKHO):\n QOe9 = IkWL.Form()\n QOe9._last_raw_json = {'success_blob': {}}\n U5bT = QOe9.update_success({'add': 'me'}, raw=True)\n assert 'add' in U5bT['success_blob']\n U5bT = QOe9.update_success({'those': 'are'})\n assert 'those' in U5bT\n assert 'success_blob' in U5bT",
"def EC83(Y... | [
"0.7442606",
"0.72364706",
"0.720979",
"0.7104101",
"0.7024322",
"0.6985073",
"0.6968076",
"0.6966855",
"0.6953938",
"0.69427514",
"0.6940362",
"0.69279265",
"0.68677825",
"0.6853693",
"0.6832193",
"0.68095475",
"0.6772344",
"0.67704576",
"0.67668957",
"0.6752992",
"0.6722648... | 0.69078976 | 12 |
Return the serializer instance that should be used for validating and deserializing input, and for serializing output. | def a9qP(YKHO, *qIxc, **B2fa):
cIuE = YKHO.get_serializer_class()
B2fa['context'] = YKHO.get_serializer_context()
return cIuE(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZMzz(YKHO, **B2fa):\n if not YKHO._serializer:\n YKHO._serializer = YKHO.get_serializer()(**B2fa)\n return YKHO._serializer",
"def ZMzz(YKHO):\n if not YKHO.__serializer:\n if isinstance(YKHO.nested, i3lu):\n YKHO.__serializer = YKHO.nested\n elif isinstance(YKHO.nest... | [
"0.7536703",
"0.73484635",
"0.7211715",
"0.7159304",
"0.7114659",
"0.7114659",
"0.70915353",
"0.69922155",
"0.6930199",
"0.6922792",
"0.6922792",
"0.688941",
"0.67673707",
"0.6725044",
"0.65741295",
"0.65690976",
"0.65286005",
"0.6502523",
"0.64791834",
"0.64610493",
"0.64592... | 0.7122541 | 4 |
Return the class to use for the serializer. Defaults to using `self.serializer_class`. You may want to override this if you need to provide different serializations depending on the incoming request. (Eg. admins get full serialization, others get basic serialization) | def l5oD(YKHO):
assert YKHO.serializer_class is not None, "'%s' should either include a `serializer_class` attribute, or override the `get_serializer_class()` method." % YKHO.__class__.__name__
return YKHO.serializer_class | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l5oD(YKHO):\n assert YKHO.serializer_class is not None, \"'%s' should either include a `serializer_class` attribute, or override the `get_serializer_class()` method.\" % YKHO.__class__.__name__\n return YKHO.serializer_class",
"def l5oD(YKHO):\n assert YKHO.serializer_class is not None, \"'%s' shoul... | [
"0.8977184",
"0.8977184",
"0.8965053",
"0.8492025",
"0.84865445",
"0.846017",
"0.8378365",
"0.8215853",
"0.8178486",
"0.81442904",
"0.80682456",
"0.8045081",
"0.80347896",
"0.8020443",
"0.7949748",
"0.7945831",
"0.7933912",
"0.78998774",
"0.788549",
"0.7812655",
"0.7755616",
... | 0.8978088 | 0 |
Init/config celery instance using runner config. | def B4hF(Z9rn):
OaeV = cFqH()
JmrZ = OaeV.cfg
Z9rn.conf.update(worker_concurrency=OaeV.concurrency, broker_url=JmrZ.broker_url, result_backend=JmrZ.redis_url) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TLI8(oDtJ):\n ZEfp = sdE4(oDtJ.name, broker=oDtJ.config['CELERY_BROKER_URL'])\n ZEfp.conf.update(CELERY_BROKER_URL=oDtJ.config['CELERY_BROKER_URL'], BROKER_TRANSPORT_OPTIONS=oDtJ.config['CELERY_VISIBILITY_TIMEOUT'], CELERY_IMPORTS=('consumer.views', 'notifier.task'), CELERYBEAT_SCHEDULE={'monitor_alerts-... | [
"0.71793383",
"0.69795585",
"0.6721178",
"0.6649737",
"0.6621109",
"0.6543454",
"0.65149426",
"0.64131343",
"0.6383284",
"0.6379298",
"0.6377664",
"0.6345194",
"0.6290019",
"0.6246946",
"0.6144852",
"0.61435443",
"0.61352646",
"0.61037725",
"0.609095",
"0.6055747",
"0.6050522... | 0.8229486 | 0 |
Change the working directory to TARGET The return is a contextmanager, for which __enter__ is a noop the work is done in the constructor. This means that cd() can be used both as a function and as a contextmanager >>> fs.cd('/tmp') >>> fs.getwd() /tmp | def o1Kh(YKHO, pan_):
raise NotImplementedError('!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ev35(pan_: pathlib.Path):\n sWmO = oAb3.Path.cwd()\n Hy7s.chdir(pan_)\n yield\n Hy7s.chdir(sWmO)",
"def cAr5(pan_: Path):\n b4dd = GkAb.cwd()\n Hy7s.chdir(yhqV(pan_))\n yield\n Hy7s.chdir(yhqV(b4dd))",
"def sTpg(pan_):\n jvSB = exV3()\n try:\n _CIc(pan_)\n yield ... | [
"0.7962005",
"0.7570232",
"0.7458633",
"0.7280019",
"0.7235541",
"0.7232695",
"0.6875706",
"0.6866478",
"0.679767",
"0.67920524",
"0.6742182",
"0.6742182",
"0.6714182",
"0.6661908",
"0.66593874",
"0.6654379",
"0.66462475",
"0.66372675",
"0.6628719",
"0.6619531",
"0.66177547",... | 0.6454749 | 31 |
Is PATH a representation of an absolute path on this filesystem? | def im3z(YKHO, pmON):
raise NotImplementedError('!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t_gb(pmON: str) -> bool:\n pass",
"def Wbb_(pmON):\n return len(pmON) > 1 and pmON[0] == '/' or (len(pmON) > 2 and pmON[1] == ':')",
"def oIrI(YKHO, pmON):\n return Hy7s.path.isabs(pmON)",
"def vg70(*qIxc):\n return PZpo.TStr_IsAbsFPath(*qIxc)",
"def TGj6(YKHO, pmON):\n return YKHO.getsy... | [
"0.760044",
"0.7389268",
"0.6573702",
"0.65022486",
"0.6498922",
"0.6472326",
"0.6434456",
"0.64242977",
"0.64135295",
"0.6389391",
"0.6380255",
"0.63796276",
"0.63555425",
"0.63427866",
"0.63424903",
"0.633592",
"0.6327633",
"0.63201433",
"0.62939495",
"0.62939495",
"0.62870... | 0.6676706 | 2 |
Test basic functionality of get_seismic_station_metadata(). | def HUSf(YKHO):
_usg = YKHO.dbv.get_seismic_station_metadata()
assert _usg is not None
i6m_ = [WKvO for WKvO in _usg]
print('Seismic allstas has {:d} records.'.format(len(i6m_)))
assert len(i6m_) == 54 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.stametadata = p9bx.SeismicStationMetadata(**UQTI)",
"def XWz2(YKHO):\n _usg = YKHO.dbv.get_seismic_station_metadata(end_time=347155200.0)\n assert _usg is not None\n i6m_ = list(_usg)\n print('Seismic allstas has {:d} records.'.format(len(i6m_)))\n assert len(i6m_) == 0",... | [
"0.6931112",
"0.68755025",
"0.67473227",
"0.6716008",
"0.66256547",
"0.6551268",
"0.6384716",
"0.63811296",
"0.6256144",
"0.6212046",
"0.61468685",
"0.61272925",
"0.61218303",
"0.61060184",
"0.6094896",
"0.6082786",
"0.60270536",
"0.6017051",
"0.601097",
"0.6004576",
"0.59746... | 0.8314812 | 0 |
The Path to the Project Folder | def ReNy(YKHO, bNKA=None, GfdN=True):
kv8G = bNKA or YKHO.projectname
return YKHO.join_and_check(YKHO.PROJECT_BASE_PATH, kv8G, check=GfdN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EL0N(YKHO):\n try:\n O0al = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), '..'))\n return O0al\n except Exception:\n raise Exception('Unable to get project path')",
"def TdjZ(YKHO):\n return Hy7s.path.split(Hy7s.path.abspath(YKHO.filename))[0]",
"def EL0N():\n r... | [
"0.83705187",
"0.8165191",
"0.8129661",
"0.8041743",
"0.8034179",
"0.79634583",
"0.78143907",
"0.7790147",
"0.773885",
"0.77343696",
"0.7729985",
"0.7716776",
"0.77061814",
"0.76938194",
"0.76774216",
"0.7664887",
"0.766042",
"0.76378286",
"0.7630486",
"0.76171863",
"0.760378... | 0.0 | -1 |
The Path to the Project Folder | def ReNy(YKHO, bNKA=None, GfdN=True):
kv8G = bNKA or YKHO.projectname
return YKHO.join_and_check(YKHO.PROJECT_BASE_PATH, kv8G, check=GfdN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EL0N(YKHO):\n try:\n O0al = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), '..'))\n return O0al\n except Exception:\n raise Exception('Unable to get project path')",
"def TdjZ(YKHO):\n return Hy7s.path.split(Hy7s.path.abspath(YKHO.filename))[0]",
"def EL0N():\n r... | [
"0.83705187",
"0.8165191",
"0.8129661",
"0.8041743",
"0.8034179",
"0.79634583",
"0.78143907",
"0.7790147",
"0.773885",
"0.77343696",
"0.7729985",
"0.7716776",
"0.77061814",
"0.76938194",
"0.76774216",
"0.7664887",
"0.766042",
"0.76378286",
"0.7630486",
"0.76171863",
"0.760378... | 0.0 | -1 |
checking if names like Nathaniel yaw Nat | def hAOr(YKHO):
syah = e1yb('abena', 'yao', 'elorm')
YKHO.assertEqual(syah, 'Abena Elorm Yao') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShXs(FUjE):\n return True",
"def k2m5(YKHO, mWFP):\n if ZbWC.match('([a-z]+ [a-z]+)', mWFP, ZbWC.I):\n return True\n else:\n return False",
"def ieyt(KCHu):\n return ZbWC.match('^' + uLqA + '$', KCHu) is not None",
"def N8je(mWFP):\n ynSc = XFaO()\n return not any([eOtH.lo... | [
"0.795377",
"0.7382466",
"0.72525615",
"0.7220676",
"0.7194583",
"0.71626544",
"0.70741785",
"0.70651215",
"0.70583075",
"0.70184934",
"0.7003328",
"0.697956",
"0.69764966",
"0.69564533",
"0.6955198",
"0.6935294",
"0.69100505",
"0.68584",
"0.6830183",
"0.6795961",
"0.67938155... | 0.0 | -1 |
Measure the two list of points IoU | def rJK5(lJ9m, wruc, GPtr):
try:
from shapely.geometry import Polygon
except (ImportError, ModuleNotFoundError) as err:
raise RuntimeError('dtlpy depends on external package. Please install ') from XObx
if len(lJ9m) == 2:
kXjy = [lJ9m[0][0], lJ9m[0][1]]
MidA = [lJ9m[0][0], lJ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aOkw(c2BJ, BHYc):\n ywwl = c2BJ.shape[0]\n E3D9 = BHYc.shape[0]\n VTFL = c2BJ[:, 2:] - c2BJ[:, :2]\n _slg = (VTFL[:, 0] * VTFL[:, 1]).unsqueeze(1).expand(ywwl, E3D9)\n wWhm = BHYc[:, 2:] - BHYc[:, :2]\n _dSI = (wWhm[:, 0] * wWhm[:, 1]).unsqueeze(0).expand(ywwl, E3D9)\n C7_8 = iQin(c2BJ, BH... | [
"0.6667415",
"0.6475011",
"0.6468959",
"0.646285",
"0.6309161",
"0.63071406",
"0.6302661",
"0.62873495",
"0.6257796",
"0.62369144",
"0.6236704",
"0.6228805",
"0.6225772",
"0.61824095",
"0.6181292",
"0.61346626",
"0.6126319",
"0.61201495",
"0.6119633",
"0.611805",
"0.61168844"... | 0.0 | -1 |
Measure the two list of points IoU | def Gice(lJ9m, wruc, GPtr):
return 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aOkw(c2BJ, BHYc):\n ywwl = c2BJ.shape[0]\n E3D9 = BHYc.shape[0]\n VTFL = c2BJ[:, 2:] - c2BJ[:, :2]\n _slg = (VTFL[:, 0] * VTFL[:, 1]).unsqueeze(1).expand(ywwl, E3D9)\n wWhm = BHYc[:, 2:] - BHYc[:, :2]\n _dSI = (wWhm[:, 0] * wWhm[:, 1]).unsqueeze(0).expand(ywwl, E3D9)\n C7_8 = iQin(c2BJ, BH... | [
"0.666497",
"0.64731485",
"0.64681745",
"0.646139",
"0.6305309",
"0.6300244",
"0.62853086",
"0.62563926",
"0.6236298",
"0.6236228",
"0.62263614",
"0.6223455",
"0.61809134",
"0.6178243",
"0.6132638",
"0.61251205",
"0.6119248",
"0.61177486",
"0.61172926",
"0.61162996",
"0.61055... | 0.63080406 | 4 |
Returns IoU of the attributes. if both are empty its a prefect match (returns 1) | def hx_C(wFVD, qj5q):
if type(wFVD) is not type(qj5q):
bo34.warning('attributes are not same type: {}, {}'.format(type(wFVD), type(qj5q)))
return 0
if wFVD is None and qj5q is None:
return 1
if isinstance(wFVD, dict) and isinstance(qj5q, dict):
wFVD = ['{}-{}'.format(H5ew, wE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aOkw(k0lF, tjUW):\n if len(k0lF.union(tjUW)) != 0:\n return len(k0lF & tjUW) / len(k0lF.union(tjUW))\n else:\n return 0",
"def xhr3(YKHO) -> 'unsigned int':\n return Apo0.itkBinaryStatisticsOpeningImageFilterIUS2IUC2_GetAttribute(YKHO)",
"def cxP1(u2Ez):\n if u2Ez['tp'] + u2Ez['fp... | [
"0.5860357",
"0.5798978",
"0.5744092",
"0.56397384",
"0.56370085",
"0.5571992",
"0.551166",
"0.55102116",
"0.55102116",
"0.5486194",
"0.5463883",
"0.545813",
"0.545024",
"0.5444262",
"0.54059297",
"0.5399541",
"0.53951275",
"0.5385755",
"0.53705543",
"0.5359722",
"0.5352044",... | 0.60345787 | 0 |