query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
The volume of the sphere. | def akib(YKHO) -> float:
exwG = YKHO.dim
return YKHO._alpha(exwG) * YKHO.radius ** exwG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def akib(YKHO):\n akib = 4.0 * oyIN.pi * YKHO.primitive.radius ** 3 / 3.0\n return akib",
"def akib(YKHO):\n return 4 / 3 * mM0K * YKHO.radius ** 3",
"def akib(YKHO):\n return 4 / 3 * epAf.pi * YKHO.radius ** 3",
"def NUxm(Mkmy):\n pass",
"def akib(YKHO):\n akib = oyIN.pi * YKHO.primitive... | [
"0.8576884",
"0.8526007",
"0.85059595",
"0.8370941",
"0.8338464",
"0.8270932",
"0.82461846",
"0.8201347",
"0.8119541",
"0.8028189",
"0.802567",
"0.7956788",
"0.79248154",
"0.79173034",
"0.7859983",
"0.7821125",
"0.7744857",
"0.77408725",
"0.77371824",
"0.77069426",
"0.7702468... | 0.85641944 | 1 |
The surface area of the sphere. | def f0tD(YKHO) -> float:
exwG = YKHO.dim
return exwG * YKHO._alpha(exwG) * YKHO.radius ** (exwG - 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LFtF(YKHO):\n if YKHO._ndims == 2:\n return YKHO._container.get_radius() * 2 * H4yH.pi\n elif YKHO._ndims == 3:\n return YKHO._container.get_radius() ** 2 * 4 * H4yH.pi\n raise ValueError('Not supported for number of dimensions')",
"def XXmn(YKHO) -> float:\n return 4 * epAf.pi * YK... | [
"0.8260225",
"0.80173427",
"0.79803044",
"0.79120517",
"0.789225",
"0.77750826",
"0.76021624",
"0.7581888",
"0.75617284",
"0.75472873",
"0.75391436",
"0.753718",
"0.7534318",
"0.7534318",
"0.75147784",
"0.7509236",
"0.75057596",
"0.7501626",
"0.7501626",
"0.7501626",
"0.74839... | 0.7584293 | 7 |
Return the filtered queryset. | def k66M(YKHO) -> 'QuerySet[User]':
if YKHO.term:
return mv1M.objects.filter(T8ck(first_name__icontains=YKHO.term) | T8ck(last_name__icontains=YKHO.term) | T8ck(handle__icontains=YKHO.term))
return mv1M.objects.all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n SR0I = YKHO.get_base_queryset()\n filter = YKHO.request.query_params.get('filter', None)\n if filter:\n naPW = ASMD().parse_query_filter(filter)\n yIpb = YKHO.model.objects.filter(eval(naPW))\n SR0I = SR0I.intersection(yIpb)\n return SR0I",
"def filter(YKHO, *qI... | [
"0.82068884",
"0.8200799",
"0.81744003",
"0.816154",
"0.81414914",
"0.79826003",
"0.7957372",
"0.79105777",
"0.7805542",
"0.7725031",
"0.76961",
"0.7688379",
"0.7678869",
"0.7639998",
"0.7638963",
"0.76149136",
"0.7604814",
"0.75638586",
"0.7562786",
"0.7538896",
"0.7536784",... | 0.0 | -1 |
Read text file. Return content. | def Ueki(IznC):
try:
return open(Hy7s.path.join(Hy7s.path.dirname(xAKo), IznC)).read()
except IOError:
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zlYa(NOrA):\n with open(NOrA, 'r') as eHNT:\n hGN5 = eHNT.readlines()\n return hGN5",
"def LkPQ(YKHO, qaEx: str):\n return YKHO.reader.readtext(qaEx, detail=0)",
"def uEFG(AesY):\n PenU = open(AesY)\n kGys = PenU.read()\n return kGys",
"def YVtT(gIsw):\n with open(gIsw, 'r') a... | [
"0.8529433",
"0.82861245",
"0.8256196",
"0.81738967",
"0.8152114",
"0.81479406",
"0.81304544",
"0.8078979",
"0.80747944",
"0.80747944",
"0.80747944",
"0.80589116",
"0.80053675",
"0.798965",
"0.79410744",
"0.7939761",
"0.7939761",
"0.7931096",
"0.7898209",
"0.7894395",
"0.7882... | 0.0 | -1 |
Read requirements file. Return list. | def emMa(IznC):
Nqlg = None
fA3L = []
try:
with open(IznC) as eHNT:
Nqlg = eHNT.read().splitlines()
except IOError:
return []
for zFiD in Nqlg:
if not zFiD.startswith('-r'):
fA3L.append(zFiD)
return fA3L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ks_v():\n VGiD = Hy7s.path.join('.', 'requirements.txt')\n with open(VGiD, 'r') as eHNT:\n fA3L = [zFiD.rstrip() for zFiD in eHNT]\n return fA3L",
"def Ks_v():\n VGiD = Hy7s.path.join('.', 'requirements.txt')\n with open(VGiD, 'r') as eHNT:\n fA3L = [zFiD.rstrip() for zFiD in eHN... | [
"0.8816189",
"0.87953323",
"0.86446315",
"0.8572207",
"0.8513417",
"0.8452702",
"0.8420613",
"0.8323796",
"0.82969683",
"0.8295211",
"0.8268589",
"0.8261326",
"0.8230213",
"0.8091334",
"0.80809313",
"0.80733204",
"0.8069107",
"0.8055153",
"0.79980445",
"0.7939496",
"0.7909248... | 0.788834 | 23 |
Return expr if units in addends have the same base dimensions, else raise a ValueError. | def HKeW(VN2L, oMVb='SI'):
from sympy.physics.units import UnitSystem
oMVb = UnitSystem.get_unit_system(oMVb)
def yycB(WbPA, S69B):
"""Merge dictionaries by adding values of common keys and
removing keys with value of 0."""
XgFU = {**WbPA, **S69B}
for H5ew, BWXx in XgFU.item... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cipO():\n tpio = G2nC(lower_bound=0, upper_bound=100, default_units='m')\n fRuM = G2nC(lower_bound=0, upper_bound=100, default_units='kJ')\n nSKI = G2nC(lower_bound=0, upper_bound=100, default_units='')\n assert not tpio.contains(fRuM)\n assert not tpio.contains(nSKI)",
"def E20w(bEXe, fUYa, d... | [
"0.5317265",
"0.52386594",
"0.51662874",
"0.50261927",
"0.5018932",
"0.5009827",
"0.49901596",
"0.48649168",
"0.486213",
"0.4845915",
"0.48442456",
"0.4843051",
"0.4831222",
"0.47784317",
"0.47784317",
"0.4763888",
"0.47419742",
"0.47358903",
"0.47272682",
"0.47229466",
"0.46... | 0.6284295 | 0 |
Merge dictionaries by adding values of common keys and removing keys with value of 0. | def yycB(WbPA, S69B):
XgFU = {**WbPA, **S69B}
for H5ew, BWXx in XgFU.items():
if H5ew in WbPA and H5ew in S69B:
XgFU[H5ew] = BWXx + WbPA[H5ew]
return {H5ew: wEf2 for H5ew, wEf2 in XgFU.items() if wEf2 != 0} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aXoi(pKiF, AjzU):\n for G1Hx in AjzU:\n if G1Hx in pKiF:\n pKiF[G1Hx] += AjzU[G1Hx]\n else:\n pKiF[G1Hx] = AjzU[G1Hx]",
"def uLMH(*DumB):\n XIcQ = dict()\n sjXb = set().union(*DumB)\n for H5ew in sjXb:\n XIcQ[H5ew] = sum([WKvO.get(H5ew, 0) for WKvO in Du... | [
"0.7673033",
"0.7549108",
"0.72467077",
"0.72278565",
"0.7219151",
"0.71990645",
"0.70472646",
"0.68375635",
"0.6769913",
"0.67127043",
"0.6601925",
"0.6570642",
"0.6541367",
"0.6537614",
"0.65326434",
"0.6523352",
"0.64962596",
"0.6492115",
"0.6485872",
"0.6475977",
"0.64659... | 0.7059842 | 6 |
Converts a date string to a datetime.datetime object | def feVn(_c1T):
try:
lO87, x0eS, CjKC = _c1T.split('/')
return qcWV.datetime(year=int(lO87), month=int(x0eS), day=int(CjKC))
except Exception:
raise ValueError("{} must follow: 'YYYY/MM/DD'".format(_c1T)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R8Xh(mbyn: str) -> qcWV:\n fBin = feVn.parse(mbyn)\n return fBin",
"def dDPx(mbyn):\n try:\n return qcWV.datetime.strptime(mbyn, '%Y-%m-%d %H:%M:%S')\n except Exception as e:\n return tTpl",
"def feVn(mbyn: str) -> qcWV:\n lO87, x0eS, CjKC = mbyn.split('-')\n return _c1T(int... | [
"0.8560891",
"0.81803286",
"0.8028165",
"0.7917876",
"0.7880315",
"0.78767085",
"0.78275394",
"0.7812548",
"0.7802614",
"0.7796311",
"0.7787025",
"0.7783441",
"0.7765203",
"0.77527106",
"0.77412593",
"0.773552",
"0.7735281",
"0.7721594",
"0.7717826",
"0.77098596",
"0.77047384... | 0.0 | -1 |
Merges sets with intersection if they have values otherwise returns the one with values | def qaRk(ty3b, uiCz):
if not ty3b:
return uiCz
if not uiCz:
return ty3b
return ty3b & uiCz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iQin(lNWu):\n return xBlr.reduce(set.intersection, [KCHu for KCHu in lNWu])",
"def XMlP(YKHO, Elif):\n H1_S = GfHp()\n for SRYB in YKHO.vals:\n if Elif.member(SRYB):\n H1_S.insert(SRYB)\n return H1_S",
"def le20(jzdc, Fg_i):\n if jzdc == 'full':\n return Fg_i\n el... | [
"0.7252587",
"0.69981086",
"0.68853796",
"0.686842",
"0.679218",
"0.6755209",
"0.67444164",
"0.67163175",
"0.67088056",
"0.6650369",
"0.6648943",
"0.66078466",
"0.66029865",
"0.6575096",
"0.6566915",
"0.6511687",
"0.6505466",
"0.6494262",
"0.6484446",
"0.64797044",
"0.6466704... | 0.0 | -1 |
given an array of 4 coordinates (x,y), simply computes and returns the highest and lowest vertical and horizontal points | def UYy5(BHsk):
if len(BHsk) != 4:
raise AttributeError('coord must be a set of 4 coordinates')
WKvO = [Z9rn[0] for Z9rn in BHsk]
LVAh = [Z9rn[1] for Z9rn in BHsk]
vP2v = oyIN.min(WKvO)
oTDq = oyIN.max(WKvO)
LFlW = oyIN.min(LVAh)
_tIi = oyIN.max(LVAh)
return (vP2v, oTDq, LFlW, _t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BIFj(y5bX):\n d6pt, re6M, KDmU = (0, y5bX[0][0], y5bX[0][1])\n for YRbF, LTIa in enumerate(y5bX):\n WKvO, LVAh = (LTIa[0], LTIa[1])\n if LVAh < KDmU or (LVAh == KDmU and WKvO > re6M):\n d6pt, re6M, KDmU = (YRbF, WKvO, LVAh)\n return d6pt",
"def gT2A(YKHO):\n LChT = HwRy.m... | [
"0.6740269",
"0.6664076",
"0.66390854",
"0.65677637",
"0.6542965",
"0.6524263",
"0.6511945",
"0.6438127",
"0.6378693",
"0.6357445",
"0.63526976",
"0.6316064",
"0.6312715",
"0.6290903",
"0.62621355",
"0.62560713",
"0.62549907",
"0.6226616",
"0.6223252",
"0.6222068",
"0.6218412... | 0.6495242 | 7 |
Return 4x4 identity/unit matrix. >>> I = identity_matrix() >>> numpy.allclose(I, numpy.dot(I, I)) True >>> numpy.sum(I), numpy.trace(I) (4.0, 4.0) >>> numpy.allclose(I, numpy.identity(4, dtype=numpy.float64)) True | def UOV2():
return XTiz.identity(4, dtype=XTiz.float64) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _E99(YKHO):\n YKHO.matrix = oyIN.identity(4, dtype=float)",
"def _E99():\n return zp6r([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]])",
"def Nw7k():\n UOV2 = XTiz.eye(N=5, M=5, k=0, dtype='float')\n return UOV2",
"def _E99(DbyF):\n return aLMY(data=[[int(YRbF == r845) for YRbF i... | [
"0.7449673",
"0.70861334",
"0.67756313",
"0.67491347",
"0.6742484",
"0.66020507",
"0.6505451",
"0.6484333",
"0.64840263",
"0.6483383",
"0.6469044",
"0.64475995",
"0.63749486",
"0.63506144",
"0.6290913",
"0.62863755",
"0.62782794",
"0.62781423",
"0.6264724",
"0.62638855",
"0.6... | 0.83289444 | 0 |
Return translation vector from translation matrix. >>> v0 = numpy.random.random(3) 0.5 >>> v1 = translation_from_matrix(translation_matrix(v0)) >>> numpy.allclose(v0, v1) True | def M94p(SppC):
return XTiz.array(SppC, copy=False)[:3, 3].copy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VwF8(YKHO, uO7B: np.array) -> oyIN.array:\n U3qI: oyIN.array = uO7B[0:2, 2]\n return U3qI",
"def lrEy(SppC):\n return XTiz.array(SppC, copy=False)[:3, 3].copy()",
"def P3li(SppC):\n return SppC[12:15]",
"def NMPk(JZXy, pan_):\n YGfs = oyIN.linalg.pinv(JZXy).dot(pan_)\n return YGfs",
"... | [
"0.72688234",
"0.7230602",
"0.72095984",
"0.705318",
"0.7031583",
"0.7031151",
"0.70262885",
"0.67751104",
"0.6707273",
"0.6483275",
"0.6448301",
"0.6407802",
"0.63914526",
"0.63892376",
"0.6328312",
"0.6220674",
"0.621763",
"0.61503434",
"0.6148427",
"0.61290026",
"0.6112867... | 0.74116623 | 0 |
Return matrix to obtain normalized device coordinates from frustrum. The frustrum bounds are axisaligned along x (left, right), y (bottom, top) and z (near, far). Normalized device coordinates are in range [1, 1] if coordinates are inside the frustrum. If perspective is True the frustrum is a truncated pyramid with the... | def pQj6(LFlW, _tIi, es2x, tlxW, Qh4y, Dfjx, DRJz=False):
if LFlW >= _tIi or es2x >= tlxW or Qh4y >= Dfjx:
raise ValueError('invalid frustrum')
if DRJz:
if Qh4y <= BuE3:
raise ValueError('invalid frustrum: near <= 0')
a1PO = 2.0 * Qh4y
E3D9 = ((-a1PO / (_tIi - LFlW), ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pSVG(YKHO, G7Cg=45.0, xm_j=0.1, _YT4=10000.0, pAIe=4.0 / 3.0):\n XxNr = G7Cg / pAIe\n Y_1E = XxNr / 2.0 * epAf.pi / 180.0\n LTyj = _YT4 - xm_j\n Ataq = epAf.sin(Y_1E)\n if LTyj == 0.0 or Ataq == 0.0 or pAIe == 0.0:\n raise ValueError('Invalid parameters passed to SimpleProjection.__init__... | [
"0.61621815",
"0.6104751",
"0.5832146",
"0.56134975",
"0.5552811",
"0.5493527",
"0.5216192",
"0.51488835",
"0.51430225",
"0.50905484",
"0.5065024",
"0.5039152",
"0.49322456",
"0.4931776",
"0.49186298",
"0.48820475",
"0.4881757",
"0.48768732",
"0.48602614",
"0.48547938",
"0.48... | 0.6807255 | 0 |
Return Euler angles from rotation matrix for specified axis sequence. | def GAXM(SppC, MPlV='sxyz'):
try:
GiUc, tUub, ft9j, f4IJ = SOeS[MPlV.lower()]
except (AttributeError, KeyError):
bGrB = m4qY[MPlV]
GiUc, tUub, ft9j, f4IJ = MPlV
YRbF = GiUc
r845 = uu2B[YRbF + tUub]
G1Hx = uu2B[YRbF - tUub + 1]
E3D9 = XTiz.array(SppC, dtype=XTiz.float64, c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HqVh(A3Vt):\n\n def hrk3(WKvO, LVAh, LL2J=1e-05, rU28=1e-08):\n return abs(WKvO - LVAh) <= rU28 + LL2J * abs(LVAh)\n rVnq = 0.0\n if hrk3(A3Vt[2, 0], -1.0):\n q7In = epAf.pi / 2.0\n nYlf = epAf.atan2(A3Vt[0, 1], A3Vt[0, 2])\n elif hrk3(A3Vt[2, 0], 1.0):\n q7In = -epAf.pi... | [
"0.745043",
"0.7256727",
"0.71846044",
"0.713976",
"0.7136764",
"0.70283055",
"0.6951658",
"0.6925512",
"0.68356556",
"0.67956346",
"0.6778263",
"0.6764612",
"0.67513263",
"0.67099494",
"0.6695037",
"0.66701114",
"0.66263264",
"0.66158855",
"0.66134953",
"0.6580109",
"0.65499... | 0.6374535 | 33 |
Return homogeneous rotation matrix from quaternion. >>> R = quaternion_matrix([0.06146124, 0, 0, 0.99810947]) >>> numpy.allclose(R, rotation_matrix(0.123, (1, 0, 0))) True | def KU6a(slpS):
vexM = XTiz.array(slpS[:4], dtype=XTiz.float64, copy=True)
pjBH = XTiz.dot(vexM, vexM)
if pjBH < BuE3:
return XTiz.identity(4)
vexM *= epAf.sqrt(2.0 / pjBH)
vexM = XTiz.outer(vexM, vexM)
return XTiz.array(((1.0 - vexM[1, 1] - vexM[2, 2], vexM[0, 1] - vexM[2, 3], vexM[0, 2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KU6a(slpS):\n BuE3 = XTiz.finfo(float).eps * 4.0\n vexM = XTiz.array(slpS, dtype=XTiz.float64, copy=True)\n exwG = XTiz.dot(vexM, vexM)\n if exwG < BuE3:\n return XTiz.identity(4)\n vexM *= epAf.sqrt(2.0 / exwG)\n vexM = XTiz.outer(vexM, vexM)\n return XTiz.array([[1.0 - vexM[2, 2] ... | [
"0.81370217",
"0.80721796",
"0.8052371",
"0.8006578",
"0.79973257",
"0.7905784",
"0.7860959",
"0.7822752",
"0.78160226",
"0.7779824",
"0.77064455",
"0.7698531",
"0.76376",
"0.7611718",
"0.7511077",
"0.73915",
"0.73280585",
"0.73254144",
"0.7309932",
"0.730375",
"0.73018587",
... | 0.8072258 | 1 |
Return quaternion from rotation matrix. >>> R = rotation_matrix(0.123, (1, 2, 3)) >>> q = quaternion_from_matrix(R) >>> numpy.allclose(q, [0.0164262, 0.0328524, 0.0492786, 0.9981095]) True | def UgYy(SppC):
vexM = XTiz.empty((4,), dtype=XTiz.float64)
E3D9 = XTiz.array(SppC, dtype=XTiz.float64, copy=False)[:4, :4]
a1PO = XTiz.trace(E3D9)
if a1PO > E3D9[3, 3]:
vexM[3] = a1PO
vexM[2] = E3D9[1, 0] - E3D9[0, 1]
vexM[1] = E3D9[0, 2] - E3D9[2, 0]
vexM[0] = E3D9[2, 1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r43z(SppC):\n vexM = XTiz.zeros(4)\n vexM[0] = 0.5 * XTiz.sqrt(1 + XTiz.trace(SppC))\n if XTiz.allclose(0.0, vexM[0], 1e-15, 1e-08) == False:\n vexM[1] = 1 / (4 * vexM[0]) * (SppC[2, 1] - SppC[1, 2])\n vexM[2] = 1 / (4 * vexM[0]) * (SppC[0, 2] - SppC[2, 0])\n vexM[3] = 1 / (4 * ve... | [
"0.8373577",
"0.81616265",
"0.7891862",
"0.783259",
"0.7823931",
"0.77896637",
"0.7762613",
"0.7535983",
"0.74443024",
"0.7442575",
"0.736972",
"0.7345392",
"0.7318969",
"0.7190782",
"0.71906126",
"0.7170933",
"0.71667296",
"0.71626264",
"0.7137068",
"0.7125341",
"0.71217275"... | 0.84217495 | 0 |
Return multiplication of two quaternions. >>> q = quaternion_multiply([1, 2, 3, 4], [5, 6, 7, 8]) >>> numpy.allclose(q, [44, 14, 48, 28]) True | def xJNR(wFKU, YUAR):
nJ9F, nxyw, cflT, PKKQ = YUAR
o4D3, si3g, Rtnc, s1k6 = wFKU
return XTiz.array((o4D3 * PKKQ + si3g * cflT - Rtnc * nxyw + s1k6 * nJ9F, -o4D3 * cflT + si3g * PKKQ + Rtnc * nJ9F + s1k6 * nxyw, o4D3 * nxyw - si3g * nJ9F + Rtnc * PKKQ + s1k6 * cflT, -o4D3 * nJ9F - si3g * nxyw - Rtnc * cflT ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JS0g(q55v, o8JV):\n g53b = oyIN.zeros([4], dtype='float')\n voT3.functions.mju_mulQuat(g53b, q55v, o8JV)\n return g53b",
"def wTxu(q55v, o8JV):\n dg7v, o4D3, si3g, Rtnc = q55v.get_coord()\n iYf1, ajwV, skBL, mPai = o8JV.get_coord()\n NsEr = dg7v * iYf1 - o4D3 * ajwV - si3g * skBL - Rtnc * m... | [
"0.79320973",
"0.75337064",
"0.7271803",
"0.7254972",
"0.7245675",
"0.7161607",
"0.70929664",
"0.70371133",
"0.70128644",
"0.69908893",
"0.685968",
"0.6733592",
"0.66456795",
"0.662745",
"0.6627411",
"0.6620038",
"0.6607868",
"0.66048515",
"0.65830564",
"0.65598017",
"0.64382... | 0.70844996 | 8 |
Return inverse of quaternion. >>> q0 = random_quaternion() >>> q1 = quaternion_inverse(q0) >>> numpy.allclose(quaternion_multiply(q0, q1), [0, 0, 0, 1]) True | def OspE(slpS):
return nUbj(slpS) / XTiz.dot(slpS, slpS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GOZd(YKHO):\n return R5H8(ZylS.convert_to_tensor(YKHO.conjugate()) / YKHO.norm())",
"def GOZd(YKHO):\n Iste = a6Uk(YKHO.quat)\n hqzS = nTr0(Iste, -YKHO.tvec)\n return JeT1(Iste, hqzS)",
"def MmM9(vexM):\n nzPj = ZiL3(vexM)\n cojy = P9RU(vexM)\n a6Uk = nzPj * (1.0 / cojy)\n return a6... | [
"0.761505",
"0.76035774",
"0.7413735",
"0.7256002",
"0.7162927",
"0.70157635",
"0.6796342",
"0.6788313",
"0.6774818",
"0.6730519",
"0.6729661",
"0.6710861",
"0.6708049",
"0.6696805",
"0.65848726",
"0.6553181",
"0.65467894",
"0.6536177",
"0.6516736",
"0.65062034",
"0.6466786",... | 0.8182265 | 1 |
Return spherical linear interpolation between two quaternions. >>> q0 = random_quaternion() >>> q1 = random_quaternion() >>> q = quaternion_slerp(q0, q1, 0.0) >>> numpy.allclose(q, q0) True >>> q = quaternion_slerp(q0, q1, 1.0, 1) >>> numpy.allclose(q, q1) True >>> q = quaternion_slerp(q0, q1, 0.5) >>> angle = math.aco... | def dSqe(V738, q55v, wA3x, XU7Z=0, KDmc=True):
cJsZ = j8U8(V738[:4])
hbUd = j8U8(q55v[:4])
if wA3x == 0.0:
return cJsZ
elif wA3x == 1.0:
return hbUd
Csk6 = XTiz.dot(cJsZ, hbUd)
if abs(abs(Csk6) - 1.0) < BuE3:
return cJsZ
if KDmc and Csk6 < 0.0:
Csk6 = -Csk6
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hHeU(a1PO, hbUd, BzON):\n Dmt6 = ICpx(hbUd, BzON)\n if Dmt6 > 0.9995:\n return NkkI((1.0 - a1PO) * hbUd + a1PO * BzON)\n else:\n q7In = epAf.acos(DZbg(Dmt6, -1.0, 1.0))\n vYgq = q7In * a1PO\n am7j = NkkI(BzON - hbUd * Dmt6)\n return hbUd * epAf.cos(vYgq) + am7j * epA... | [
"0.8019988",
"0.767911",
"0.767911",
"0.7559575",
"0.75423175",
"0.74177635",
"0.7404606",
"0.7253842",
"0.71479785",
"0.7039752",
"0.67722553",
"0.65198463",
"0.64779735",
"0.6386258",
"0.6331441",
"0.6305141",
"0.5954686",
"0.5954686",
"0.58984673",
"0.57687205",
"0.5726062... | 0.75791615 | 3 |
Return uniform random unit quaternion. | def zksp(ADdS=None):
if ADdS is None:
ADdS = XTiz.random.rand(3)
else:
assert len(ADdS) == 3
J1b4 = XTiz.sqrt(1.0 - ADdS[0])
CYjz = XTiz.sqrt(ADdS[0])
tUIV = epAf.pi * 2.0
n2Q1 = tUIV * ADdS[1]
SpII = tUIV * ADdS[2]
return XTiz.array((XTiz.sin(n2Q1) * J1b4, XTiz.cos(n2Q1)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fgts(YKHO):\n P6bq = YKHO.rotate_rng.random(3)\n vexM = oyIN.array([oyIN.sqrt(1 - P6bq[0]) * oyIN.sin(2 * oyIN.pi * P6bq[1]), oyIN.sqrt(1 - P6bq[0]) * oyIN.cos(2 * oyIN.pi * P6bq[1]), oyIN.sqrt(P6bq[0]) * oyIN.sin(2 * oyIN.pi * P6bq[2]), oyIN.sqrt(P6bq[0]) * oyIN.cos(2 * oyIN.pi * P6bq[2])])\n return ... | [
"0.8540633",
"0.7960431",
"0.77864397",
"0.7729324",
"0.7225983",
"0.7215878",
"0.71696705",
"0.713479",
"0.70675385",
"0.7055109",
"0.6955339",
"0.6920268",
"0.68796",
"0.6727037",
"0.6717862",
"0.6657136",
"0.6633331",
"0.66269296",
"0.65354455",
"0.6474354",
"0.64261574",
... | 0.7254487 | 4 |
Safely call ``str(obj)``. Failures will have special colored output and output is trimmed according to ``self.repr_limit``. Only used when dumping detached events. | def KplG(YKHO, YEnM):
qoqK = YKHO.repr_limit
try:
KCHu = str(YEnM)
KCHu = KCHu.replace('\n', '\\n')
if len(KCHu) > qoqK:
tAX0 = qoqK // 2
return '{} {CONT}[...]{RESET} {}'.format(KCHu[:tAX0], KCHu[-tAX0:], **YKHO.other_colors)
else:
return KCHu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kWLu(YKHO, YEnM):\n qoqK = YKHO.repr_limit\n try:\n KCHu = YKHO.repr_func(YEnM)\n KCHu = KCHu.replace('\\n', '\\\\n')\n if len(KCHu) > qoqK:\n tAX0 = qoqK // 2\n return '{} {CONT}[...]{RESET} {}'.format(KCHu[:tAX0], KCHu[-tAX0:], **YKHO.other_colors)\n el... | [
"0.75543845",
"0.6990187",
"0.6874004",
"0.68674153",
"0.6858331",
"0.68226194",
"0.6811177",
"0.6748416",
"0.67139167",
"0.6706109",
"0.6660361",
"0.6656261",
"0.6631077",
"0.66108876",
"0.66104656",
"0.66104656",
"0.65894353",
"0.65789646",
"0.65789646",
"0.65510195",
"0.65... | 0.79909205 | 0 |
Safely call ``self.repr_func(obj)``. Failures will have special colored output and output is trimmed according to ``self.repr_limit``. | def kWLu(YKHO, YEnM):
qoqK = YKHO.repr_limit
try:
KCHu = YKHO.repr_func(YEnM)
KCHu = KCHu.replace('\n', '\\n')
if len(KCHu) > qoqK:
tAX0 = qoqK // 2
return '{} {CONT}[...]{RESET} {}'.format(KCHu[:tAX0], KCHu[-tAX0:], **YKHO.other_colors)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KplG(YKHO, YEnM):\n qoqK = YKHO.repr_limit\n try:\n KCHu = str(YEnM)\n KCHu = KCHu.replace('\\n', '\\\\n')\n if len(KCHu) > qoqK:\n tAX0 = qoqK // 2\n return '{} {CONT}[...]{RESET} {}'.format(KCHu[:tAX0], KCHu[-tAX0:], **YKHO.other_colors)\n else:\n ... | [
"0.7022641",
"0.6932898",
"0.63007003",
"0.6020165",
"0.5979135",
"0.5851965",
"0.57439876",
"0.5692688",
"0.5671984",
"0.5671984",
"0.564668",
"0.564668",
"0.5642198",
"0.5634516",
"0.56227213",
"0.5622046",
"0.56147665",
"0.558126",
"0.55371195",
"0.55260587",
"0.54781437",... | 0.8226097 | 0 |
Return the class of this device, from component DEVICE_CLASSES. | def rM2U(YKHO):
return 'AC' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return YKHO._sensor.get(F6ct)",
"def rM2U(YKHO):\n return YKHO._handle('device_class')",
"def rM2U(YKHO):\n return eeT9",
"def rM2U(YKHO) -> str:\n return eeT9",
"def rM2U(YKHO) -> str:\n return YKHO._device_class_from_type",
"def rM2U(YKHO) -> str:\n return YKHO._dev_... | [
"0.85304403",
"0.8427226",
"0.83756787",
"0.83750737",
"0.83277243",
"0.8324431",
"0.8292755",
"0.8292755",
"0.8292755",
"0.82483685",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754"... | 0.7144156 | 66 |
Return the unit of measurement. | def xklW(YKHO):
return YKHO._temperature_unit | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82... | [
"0.90788347",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9013875",
"0.90051067",
"0.89462197",
"0.89462197",
"0.89366317",
"0.89184356",
"0.89184356",
"0.89184356",
"0.89184356",
"0.8918... | 0.0 | -1 |
Return the current temperature. | def CMHP(YKHO):
return YKHO._temperature_current | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CMHP(YKHO):\n return YKHO._current_temp",
"def CMHP(YKHO):\n return YKHO._cur_temp",
"def CMHP(YKHO):\n return YKHO._cur_temp",
"def CMHP(YKHO):\n return YKHO._temperature",
"def CMHP(YKHO) -> float:\n return YKHO.device['sensors']['temperature']",
"def CMHP(YKHO):\n return YKHO._cu... | [
"0.88459253",
"0.8834011",
"0.8834011",
"0.8827252",
"0.88014287",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8781482",
"0.87779963",
"0.877693",
"0.875637",
"0.87354743",
"0.8715311",
"0.8701527",
... | 0.87618834 | 17 |
The name of the Analysis Services resource. | def mWFP(YKHO) -> str:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._service_name",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, ... | [
"0.7358175",
"0.723561",
"0.723561",
"0.723561",
"0.723561",
"0.7054174",
"0.7054174",
"0.7022134",
"0.70062655",
"0.690728",
"0.690728",
"0.690728",
"0.690728",
"0.68788236",
"0.67982215",
"0.67982215",
"0.6782858",
"0.6782858",
"0.6782858",
"0.6782858",
"0.67213607",
"0.6... | 0.0 | -1 |
The current deployment state of Analysis Services resource. The provisioningState is to indicate states for resource provisioning. | def mX_9(YKHO) -> str:
return qe4Y.get(YKHO, 'provisioning_state') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uloM(YKHO):\n return YKHO._deployment_state.value",
"def uloM(YKHO):\n return YKHO._deployment_state",
"def IOJH(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'deployment_status')",
"def mX_9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'provisioning_state')",
"def mX_9(YKHO) -> q... | [
"0.78679776",
"0.7862278",
"0.7573218",
"0.7470279",
"0.7470279",
"0.7470279",
"0.7470279",
"0.7470279",
"0.7470279",
"0.7470279",
"0.7470279",
"0.7470279",
"0.7470279",
"0.7470279",
"0.7470279",
"0.7470279",
"0.7470279",
"0.7470279",
"0.7470279",
"0.7470279",
"0.7470279",
... | 0.74516636 | 28 |
The full name of the Analysis Services resource. | def LRMr(YKHO) -> str:
return qe4Y.get(YKHO, 'server_full_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._service_name",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, ... | [
"0.7379275",
"0.7300979",
"0.7300979",
"0.7300979",
"0.7300979",
"0.7057603",
"0.7057603",
"0.7057603",
"0.7057603",
"0.7048536",
"0.7048536",
"0.7010761",
"0.69464123",
"0.6851456",
"0.6851456",
"0.6791624",
"0.6767499",
"0.6767499",
"0.6767499",
"0.6767499",
"0.6729008",
... | 0.0 | -1 |
The SKU of the Analysis Services resource. | def PXIM(YKHO) -> 'outputs.ResourceSkuResponse':
return qe4Y.get(YKHO, 'sku') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXIM(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO) -> h8nf[str]:\n retu... | [
"0.8146269",
"0.7963314",
"0.7963314",
"0.7963314",
"0.7963314",
"0.7963314",
"0.7912113",
"0.7912113",
"0.7878997",
"0.7878997",
"0.7877804",
"0.7866381",
"0.7826955",
"0.77506685",
"0.77506685",
"0.7728862",
"0.7713454",
"0.77001965",
"0.77001965",
"0.77001965",
"0.77001965... | 0.7912228 | 6 |
The current state of Analysis Services resource. The state is to indicate more states outside of resource provisioning. | def QTBn(YKHO) -> str:
return qe4Y.get(YKHO, 'state') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PKJf(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_state')",
"def PKJf(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_state')",
"def QTBn(YKHO):\n return YKHO.api.describe.get().json()['state']",
"def QTBn(YKHO):\n return YKHO.details['state']",
"def qdxU(YKHO):\n return ... | [
"0.76429427",
"0.76287824",
"0.762797",
"0.72415787",
"0.72160226",
"0.71927",
"0.71927",
"0.71576834",
"0.7116094",
"0.7020655",
"0.69299793",
"0.6924866",
"0.69226027",
"0.69059384",
"0.690178",
"0.6895492",
"0.6856556",
"0.6856556",
"0.6856556",
"0.6856556",
"0.6856556",
... | 0.69317824 | 11 |
The type of the Analysis Services resource. | def type(YKHO) -> str:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NvwP(YKHO) -> str:\n return YKHO._service_description['service_type']",
"def NvwP(YKHO) -> str:\n return YKHO._service_info.service_type",
"def FRul(YKHO):\n return 'CountingResource'",
"def NvwP(YKHO):\n raise NotImplementedError",
"def Qjbs(YKHO):\n return YKHO._get_field('type')",
"... | [
"0.7300149",
"0.72411627",
"0.7161973",
"0.71537405",
"0.71196365",
"0.70128787",
"0.6925387",
"0.6925387",
"0.6918052",
"0.6918052",
"0.6918052",
"0.6918052",
"0.6918052",
"0.6918052",
"0.6918052",
"0.6918052",
"0.6918052",
"0.6918052",
"0.6918052",
"0.6918052",
"0.6918052",... | 0.6252226 | 68 |
Get the object of visio item of specified visio index. | def f9O3(YKHO, d6pt):
if type(d6pt) != int:
raise TypeError("index must be a 'Integer'!!!")
return YKHO.visio.ActiveWindow.Page.Shapes.ItemFromID(d6pt).Characters | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def egjh(YKHO, d6pt):\n raise NotImplementedError",
"def ygsO(YKHO, d6pt):\n if d6pt in YKHO._objects:\n return YKHO._objects[d6pt]\n else:\n return None",
"def OP2O(YKHO, d6pt) -> object:\n return YKHO.get_at_index(d6pt)",
"def _oqe(YKHO, d6pt):\n try:\n return YKHO.items... | [
"0.6955845",
"0.6856942",
"0.6647365",
"0.6539276",
"0.6539257",
"0.65382314",
"0.64707106",
"0.64668703",
"0.6423732",
"0.64154875",
"0.64022595",
"0.6397981",
"0.6367187",
"0.6331709",
"0.6312523",
"0.6287755",
"0.62860984",
"0.62348485",
"0.62316555",
"0.61942744",
"0.6194... | 0.6036804 | 39 |
Create and save a user with the given email and password. And any other fields, if specified. | def xWi2(YKHO, D3lj, jTXt, **sCMs):
if not D3lj:
raise ValueError('An Email address must be set')
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, **sCMs)
CBIr.password = D2Lq(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueErr... | [
"0.8752752",
"0.84548426",
"0.8453146",
"0.8431878",
"0.8420725",
"0.8406662",
"0.8405816",
"0.838934",
"0.8381653",
"0.8368448",
"0.8353005",
"0.8348827",
"0.8348827",
"0.8342357",
"0.8339953",
"0.8339254",
"0.8333564",
"0.8333564",
"0.8333564",
"0.83315337",
"0.83303136",
... | 0.8275716 | 63 |
Load the list from a yaml parser. | def Ysnk(Emd4, DWkG: yaml.Loader, Q6kx: yaml.Node) -> 'JsonList':
try:
return Emd4(value=DWkG.construct_sequence(Q6kx, deep=True))
except eJb6.constructor.ConstructorError:
if Q6kx.value == '':
return Emd4(value={})
raise | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iUV9(Ux0P):\n wOb_ = nUeQ(Ux0P, 'r')\n return eJb6.load(wOb_)",
"def i0nk(YKHO):\n with open(YKHO.__file_name + '.YAML', 'r') as nUeQ:\n ENyo = eJb6.load(nUeQ)\n return ENyo",
"def s0bZ(v7y9):\n return eJb6.load(v7y9, Loader=eJb6.BaseLoader)",
"def Ysnk(Emd4, DWkG: yaml.Loader, Q6kx... | [
"0.73442906",
"0.72078246",
"0.6788229",
"0.6696131",
"0.6631482",
"0.64889973",
"0.6451006",
"0.642749",
"0.6401445",
"0.63401574",
"0.6299262",
"0.6280315",
"0.62377334",
"0.6230426",
"0.6215611",
"0.6204594",
"0.61552864",
"0.6145077",
"0.613652",
"0.6128366",
"0.6124191",... | 0.674263 | 3 |
Load the list from a yaml parser. | def Ysnk(Emd4, DWkG: yaml.Loader, Q6kx: yaml.Node) -> 'OkayList':
try:
return Emd4(value=DWkG.construct_sequence(Q6kx, deep=True))
except eJb6.constructor.ConstructorError:
if Q6kx.value == '':
return Emd4(value={})
raise | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iUV9(Ux0P):\n wOb_ = nUeQ(Ux0P, 'r')\n return eJb6.load(wOb_)",
"def i0nk(YKHO):\n with open(YKHO.__file_name + '.YAML', 'r') as nUeQ:\n ENyo = eJb6.load(nUeQ)\n return ENyo",
"def s0bZ(v7y9):\n return eJb6.load(v7y9, Loader=eJb6.BaseLoader)",
"def Ysnk(Emd4, DWkG: yaml.Loader, Q6kx... | [
"0.73442906",
"0.72078246",
"0.6788229",
"0.674263",
"0.6631482",
"0.64889973",
"0.6451006",
"0.642749",
"0.6401445",
"0.63401574",
"0.6299262",
"0.6280315",
"0.62377334",
"0.6230426",
"0.6215611",
"0.6204594",
"0.61552864",
"0.6145077",
"0.613652",
"0.6128366",
"0.6124191",
... | 0.6696131 | 4 |
Calculate mean pairwise difference per nucleotide given a . | def MtFi(CtXk: List[str]) -> cuzp[str, uLKX[int, float]]:
SppC = OFPq(CtXk)
ulCA = 0
h8v0 = 0
for YRbF in range(len(SppC)):
for r845 in range(len(SppC)):
if YRbF >= r845:
pass
else:
ulCA += 1
h8v0 += SppC[YRbF][r845]
pLJ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XNqj(jzdc, Fg_i):\n return oyIN.mean(oyIN.abs(jzdc - Fg_i))",
"def XNqj(jzdc, Fg_i):\n return oyIN.mean(oyIN.abs(jzdc - Fg_i))",
"def fZGC(YKHO, k0lF, tjUW):\n return sum(k0lF) / len(k0lF) - sum(tjUW) / len(tjUW)",
"def Emt7(AjzU, _sQW):\n gdEx = AjzU.subtract(_sQW).abs()\n return gdEx.mea... | [
"0.62585783",
"0.62585783",
"0.61063856",
"0.6088315",
"0.5983236",
"0.595217",
"0.5890446",
"0.5840623",
"0.5792689",
"0.5762422",
"0.5748997",
"0.5748945",
"0.5727804",
"0.56892574",
"0.5665535",
"0.562349",
"0.5598029",
"0.5591236",
"0.5588766",
"0.55790573",
"0.555848",
... | 0.0 | -1 |
Read in CSV to pandas Data Frame Object. | def DCPy(pmON):
K8H8 = rLdf.read_csv(pmON, header=0, index_col=0)
return K8H8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LvsP(m6_J):\n JDhM(m6_J)\n qaEx = m6_J + '.csv'\n return rLdf.read_csv(qaEx)",
"def HND1(*qIxc, **B2fa) -> wec4:\n return wec4(rLdf.read_csv(*qIxc, **B2fa))",
"def ZK4F(YKHO, z36O):\n YKHO.dataframe = rLdf.read_csv(z36O, sep=';')",
"def SYt4(okC2):\n jQ3Z = rLdf.read_csv(okC2)\n retu... | [
"0.7902138",
"0.7550001",
"0.7519638",
"0.7491004",
"0.7456556",
"0.73901165",
"0.7383664",
"0.73574954",
"0.7339041",
"0.7337521",
"0.7326265",
"0.72914153",
"0.7289808",
"0.72704124",
"0.72699577",
"0.7262809",
"0.7224214",
"0.72098416",
"0.71914184",
"0.7175751",
"0.717224... | 0.0 | -1 |
This method returns the incidence per {self._incidence} words for any connectives. | def gcbc(YKHO, l5Ny: str, Z7gm: List, kztr: Callable, t7hl: int=None, fHUa: int=-1) -> float:
if len(l5Ny) == 0:
raise ValueError('The text is empty.')
elif fHUa == 0 or fHUa < -1:
raise ValueError('Workers must be -1 or any positive number greater than 0')
else:
pZ8o = lGMh(l5Ny)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aayu(YKHO, l5Ny: str, t7hl: int=None, fHUa: int=-1) -> float:\n Z7gm = [bCYe for bCYe in YKHO._nlp.pipe_names if bCYe not in ['additive connective tagger', 'tagger', 'feature counter']]\n HNrs = lambda A97Q: len(A97Q._.additive_connectives)\n return YKHO._get_connectives_incidence(l5Ny, disable_pipeli... | [
"0.6558444",
"0.6509079",
"0.6485413",
"0.64700085",
"0.6295736",
"0.62421554",
"0.6173671",
"0.6165985",
"0.56123525",
"0.5603685",
"0.5594647",
"0.5545485",
"0.54913354",
"0.547265",
"0.5432813",
"0.5415122",
"0.53720945",
"0.5356172",
"0.5354792",
"0.53183544",
"0.53140867... | 0.6148626 | 8 |
This method returns the incidence per {self._incidence} words for adversative connectives. | def a3fZ(YKHO, l5Ny: str, t7hl: int=None, fHUa: int=-1) -> float:
Z7gm = [bCYe for bCYe in YKHO._nlp.pipe_names if bCYe not in ['adversative connective tagger', 'tagger', 'feature counter']]
OwJ6 = lambda A97Q: len(A97Q._.adversative_connectives)
return YKHO._get_connectives_incidence(l5Ny, disable_pipeline... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aayu(YKHO, l5Ny: str, t7hl: int=None, fHUa: int=-1) -> float:\n Z7gm = [bCYe for bCYe in YKHO._nlp.pipe_names if bCYe not in ['additive connective tagger', 'tagger', 'feature counter']]\n HNrs = lambda A97Q: len(A97Q._.additive_connectives)\n return YKHO._get_connectives_incidence(l5Ny, disable_pipeli... | [
"0.67523104",
"0.6375659",
"0.62310463",
"0.61704594",
"0.6016185",
"0.59683484",
"0.5926136",
"0.5863608",
"0.5744539",
"0.55584604",
"0.5498819",
"0.5469179",
"0.5454563",
"0.54307216",
"0.54307216",
"0.54307216",
"0.5388839",
"0.5368551",
"0.5360049",
"0.5337572",
"0.53341... | 0.7114328 | 0 |
This method returns the incidence per {self._incidence} words for all connectives. | def F9CZ(YKHO, l5Ny: str, t7hl: int=None, fHUa: int=-1) -> float:
Z7gm = [bCYe for bCYe in YKHO._nlp.pipe_names if bCYe not in ['causal connective tagger', 'logical connective tagger', 'adversative connective tagger', 'temporal connective tagger', 'additive connective tagger', 'causal connective tagger', 'tagger', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aayu(YKHO, l5Ny: str, t7hl: int=None, fHUa: int=-1) -> float:\n Z7gm = [bCYe for bCYe in YKHO._nlp.pipe_names if bCYe not in ['additive connective tagger', 'tagger', 'feature counter']]\n HNrs = lambda A97Q: len(A97Q._.additive_connectives)\n return YKHO._get_connectives_incidence(l5Ny, disable_pipeli... | [
"0.63644844",
"0.63031054",
"0.62835366",
"0.6221504",
"0.6191475",
"0.6063984",
"0.5839572",
"0.58046365",
"0.579354",
"0.5630119",
"0.5597683",
"0.5509161",
"0.5497726",
"0.5489985",
"0.54857945",
"0.54849744",
"0.5455193",
"0.5444856",
"0.5411646",
"0.5405517",
"0.5405517"... | 0.6625314 | 0 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z, x0eS, CjKC):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
if (x0eS == 0) & (CjKC == 0):
X_bn = ['january', 'february', 'march', 'april', 'may', 'june']
sve5 = jQ3Z['month'].mode()[0]
print('Most Frequent Month:', X_bn[sve5 - 1].title... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
QQZ6 = jQ3Z['Start Station'].value_counts().index[0]
print('Most commonly used start station:', QQZ6)
mc2n = jQ3Z['End Station'].value_counts().index[0]
print('Most commonly used end station:', mc2n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
bJiw = jQ3Z['Trip Duration'].sum()
YAdv = jQ3Z['Trip Duration'].count()
print('Total travel time:', bJiw)
RB_u = jQ3Z['Trip Duration'].mean()
print('Average duration of trips:', RB_u)
print('Count:', YAdv)
p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.78150225 | 85 |
Constructor for the ViewIntent class | def FIMM(YKHO, p8MC=None, qm1k=None):
YKHO.template_id = p8MC
YKHO.template_name = qm1k | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **B2fa):\n super(KtDl, YKHO).__init__(*qIxc, **B2fa)",
"def FIMM(YKHO, tTee):\n assert isinstance(tTee, JwPt)\n YKHO._view = tTee",
"def FIMM(YKHO, tTee, UXqs, JBZA):\n YKHO.view = tTee\n YKHO.label = UXqs\n YKHO.description = JBZA",
"def FIMM(YKHO, tTee):\n eMD8.__... | [
"0.6781464",
"0.67142254",
"0.6698314",
"0.6518512",
"0.6409199",
"0.6407324",
"0.6383225",
"0.6166806",
"0.61222464",
"0.61133224",
"0.60865676",
"0.6068137",
"0.6068137",
"0.6068137",
"0.60660434",
"0.60565466",
"0.6056319",
"0.6039625",
"0.59852",
"0.5959741",
"0.5941948",... | 0.0 | -1 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
p8MC = cmPJ.get('TemplateId')
qm1k = cmPJ.get('TemplateName')
return Emd4(p8MC, qm1k) | {
"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.83722425",
"0.8335738",
"0.8215464",
"0.8167521",
"0.8167521",
"0.81483614",
"0.8051766",
"0.80300796",
"0.8013641",
"0.79792094",
"0.79221934",
"0.7919166",
"0.79183745",
"0.7906434",
"0.79004663",
"0.78967476",
"0.7886129",
"0.78760797",
"0.78543913",
"0.78543913",
"0.78... | 0.79125935 | 13 |
Create Controller from argparsegenerated namespace. | def VXs0(Emd4, qIxc=None):
if qIxc:
if isinstance(qIxc, exCv):
qIxc = URgV.split(qIxc)
HwRy.argv = qIxc
wvEv = j1Jz.ArgumentParser(Fy3O, description='GWU PyUvVis fiber data analysis.', epilog='Additional help not found', usage='%s <indir> <outdir> --globals' % Fy3O)
wvEv.add_argu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zjJJ(pan_):\n\n def i_PC(qIxc):\n z5su = QRnd(qIxc.config)\n getattr(z5su, pan_)()\n return i_PC",
"def yl6v(Emd4) -> j1Jz.ArgumentParser:\n ...",
"def FIMM(YKHO, qIxc: argparse.Namespace) -> None:\n pass",
"def OVE8(YKHO, qIxc: argparse.Namespace) -> object:\n raise NotImple... | [
"0.64649063",
"0.62125367",
"0.6134522",
"0.597461",
"0.58762884",
"0.5796765",
"0.57931215",
"0.57744795",
"0.57738894",
"0.57715535",
"0.5752666",
"0.57468975",
"0.5713608",
"0.5700391",
"0.56976414",
"0.568193",
"0.56817687",
"0.56772035",
"0.56588334",
"0.5623709",
"0.558... | 0.58156455 | 5 |
Return the distance of time in words from `self.datetime` to `end`. >>> start = datetime(1984, 11, 02) >>> now = datetime(2009, 5, 22, 12, 11, 10) >>> DateTimeDisplay(start).age(now) '2 decades, 4 years, 6 months, 20 days and 12 hours' >>> DateTimeDisplay(start).age(now, general=True) '2 decades' | def ZJe_(YKHO, Os4s=None, yl4j=None, dbbf='hour', XHYP=False):
yKcO = YKHO.datetime
if not Os4s:
Os4s = qcWV.datetime.utcnow()
elif isinstance(Os4s, A0TA):
Os4s = Os4s.datetime
if yl4j:
lhKE = rIAI(yl4j)
Os4s = Os4s.replace(tzinfo=h5YN)
Os4s = lhKE.normalize(Os4s.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WbTE(YKHO):\n if YKHO.End is not None:\n if YKHO.Start is not None:\n ZJe_ = YKHO.End - YKHO.Start\n else:\n ZJe_ = None\n elif YKHO.Start is not None:\n ZJe_ = qcWV.date.today() - YKHO.Start\n else:\n ZJe_ = None\n if ZJe_ is not None:\n ret... | [
"0.6214592",
"0.5990906",
"0.5826291",
"0.5628929",
"0.5585851",
"0.55786794",
"0.5576075",
"0.5533266",
"0.55122393",
"0.5508409",
"0.548183",
"0.5475247",
"0.54748654",
"0.54748654",
"0.5449591",
"0.54328877",
"0.5417406",
"0.5414533",
"0.541345",
"0.5412159",
"0.5399912",
... | 0.75774723 | 0 |
A function that given an IPA symbol will convert it to the voiced equivalent. | def ElNf(bWtk: Phonet) -> h8nf[VUXF]:
if RkUe(bWtk):
if bWtk.vocal_folds == eWHU.VOICELESS_ASPIRATED:
return ctoT(eWHU.VOICED_ASPIRATED, bWtk)
if bWtk.vocal_folds == eWHU.VOICELESS or bWtk.vocal_folds == eWHU.VOICED:
return ctoT(eWHU.VOICED, bWtk)
if bWtk.vocal_folds ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def leSR(o61b, hba3):\n if len(o61b) == 1:\n return jth9.deepcopy(hba3[o61b])\n bWtk = jth9.deepcopy(hba3[o61b[0]])\n if '͡' in o61b:\n bWtk.manner = scDw.string2int('manner', 'affricate')\n if 'ʲ' in o61b:\n bWtk.secondary = scDw.string2int('secondary', 'palatalized')\n if 'ː' ... | [
"0.61009735",
"0.566913",
"0.56520337",
"0.5450609",
"0.5349556",
"0.5338589",
"0.52995604",
"0.52952987",
"0.5274001",
"0.5269826",
"0.5215222",
"0.52067536",
"0.51849455",
"0.51397896",
"0.51371664",
"0.513408",
"0.51231694",
"0.51147115",
"0.5105063",
"0.50874454",
"0.5082... | 0.0 | -1 |
Write a InputFeature to the TFRecordWriter as a tf.train.Example. | def aaKx(YKHO, RDhP):
YKHO.num_features += 1
def lSdu(hkxX):
RDhP = ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=list(hkxX)))
return RDhP
bySB = g760.OrderedDict()
bySB['unique_ids'] = lSdu([RDhP.unique_id])
bySB['input_ids'] = lSdu(RDhP.input_ids)
bySB['input_mask']... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aaKx(YKHO, RDhP):\n YKHO.num_features += 1\n\n def lSdu(hkxX):\n RDhP = ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=list(hkxX)))\n return RDhP\n bySB = g760.OrderedDict()\n bySB['unique_ids'] = lSdu([RDhP.unique_id])\n bySB['input_ids'] = lSdu(RDhP.input_ids)\n bySB... | [
"0.72079426",
"0.6920347",
"0.68958884",
"0.6854366",
"0.6581205",
"0.6456824",
"0.64070725",
"0.6332218",
"0.63281417",
"0.62952185",
"0.6232581",
"0.6193195",
"0.6192048",
"0.6171825",
"0.6098322",
"0.6076633",
"0.6045135",
"0.6013301",
"0.60067123",
"0.59888625",
"0.596582... | 0.689024 | 3 |
Display the index page. This will eventually load a webapp that will access the APIs. | def _Mz8():
return 'Hello World!' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n G9jH.info('On index page')\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')"... | [
"0.8145554",
"0.8145554",
"0.81305146",
"0.8118926",
"0.8094062",
"0.80560446",
"0.8044819",
"0.8007831",
"0.7992325",
"0.7978926",
"0.7975871",
"0.79741406",
"0.79603183",
"0.79603183",
"0.79603183",
"0.79603183",
"0.79603183",
"0.79603183",
"0.7934861",
"0.7919738",
"0.7919... | 0.0 | -1 |
index is an array of size n x m where should be no mask placed. | def lBUG(d6pt, exwG, r8hN):
ZHfW = pSfY((exwG, r8hN))
for YRbF in d6pt:
ZHfW[YRbF, :] = 0
return ZHfW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z25C(exwG):\n ZHfW = oyIN.zeros([pCKp, lHzS])\n ZHfW[:, ::exwG] = 1\n return ZHfW",
"def qvBB(YKHO, d6pt):\n if YKHO._mask is None:\n return d6pt\n else:\n if YKHO._index_mapping is None:\n YKHO._index_mapping = YKHO._mask.nonzero()[:, 0]\n return YKHO._index_ma... | [
"0.64179355",
"0.6386073",
"0.6256688",
"0.62303996",
"0.61209905",
"0.6087084",
"0.6045078",
"0.6037815",
"0.6020705",
"0.6001105",
"0.59946525",
"0.5934193",
"0.5922687",
"0.58956623",
"0.5867623",
"0.58588505",
"0.58570075",
"0.58548117",
"0.5844389",
"0.5831467",
"0.58174... | 0.7367936 | 0 |
Create a CSVWriter and stash it in self.writer | def c2Vo(YKHO):
YKHO._csv_header = jth9.copy(YKHO.grid_params) if YKHO.grid_params is not None else []
YKHO._csv_header.extend(['Test', 'Value', 'Num_Obs'])
YKHO._csv_header.extend(VO1j.get_metric(YKHO.workflow.metric).all_names())
YKHO._create_output_path()
YKHO._open_csv_handle()
YKHO._csv_wri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cFDZ(YKHO):\n return gedN()",
"def Ya0H(YKHO):\n if YKHO.is_master():\n YKHO.create_output_dir()\n YKHO.csv_writer = m6_J.writer(open(Hy7s.path.join(YKHO.output_dir, YKHO.output_file_name), mode='w', buffering=1), delimiter='\\t', lineterminator='\\n', quoting=m6_J.QUOTE_NONE)\n YK... | [
"0.7924711",
"0.7799841",
"0.6982682",
"0.67949426",
"0.67318326",
"0.6711687",
"0.66868484",
"0.6634607",
"0.6627856",
"0.65659565",
"0.6495637",
"0.6457893",
"0.64502555",
"0.6420526",
"0.6384042",
"0.6351277",
"0.63349473",
"0.63324285",
"0.63251233",
"0.63191503",
"0.6294... | 0.7871965 | 1 |
Metodo que es invocado para mostrar el objeto como una cadena.En este caso se mostrara el valor del atributo nombre para cada instancia del modelo Proyectos | def Ku9n(YKHO):
return YKHO.nombre | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.nombre",
"def zAg0(YKHO) -> str:\n return YKHO.nombre",
"def zAg0(YKHO):\n return YKHO.nombre",
"def zAg0(YKHO):\n return YKHO.nombre",
"def zAg0(YKHO):\n return YKHO.nombre",
"def zAg0(YKHO):\n return YKHO.nombre",
"def zAg0(YKHO):\n return YKHO.nombr... | [
"0.6911671",
"0.6703299",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"0.6670064",
"... | 0.0 | -1 |
Test if the best granularity is set without finishing all the initial granularities tasks. This happens when all the unfinished tasks are worse than the best granularity with at least one finished task | def AXFx(YKHO):
Hy7s.environ['NODES_NUMBER'] = '5'
GPtr.session.execute('DROP TABLE IF EXISTS my_app.mydict')
GPtr.session.execute('DROP TABLE IF EXISTS hecuba.partitioning')
Csk6 = wg0u('my_app.mydict')
cInq = 10000
for YRbF in range(0, cInq):
Csk6[YRbF] = 'RandomText' + str(YRbF)
I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J1ea(YKHO, Niwm):\n if len(YKHO) < YKHO.n_hyp:\n return False\n elif YKHO.early_stopping:\n return True\n else:\n return YKHO.worst_score >= Niwm / YKHO.max_length ** YKHO.length_penalty",
"def wtep(YKHO):\n if len(YKHO.allGbests) > 50:\n YKHO.allGbests.pop(0)\n ... | [
"0.5921328",
"0.5820987",
"0.58098215",
"0.58050823",
"0.57999015",
"0.57866925",
"0.5761053",
"0.57256114",
"0.5658778",
"0.55882484",
"0.55781335",
"0.5576299",
"0.55656284",
"0.55579346",
"0.55199265",
"0.5504066",
"0.5487818",
"0.54790455",
"0.54615176",
"0.545432",
"0.54... | 0.0 | -1 |
Test if the best granularity is set without finishing all the initial granularities tasks. This happens when all the unfinished tasks are worse than the best granularity with at least one finished task | def LXLT(YKHO):
Hy7s.environ['NODES_NUMBER'] = '5'
GPtr.session.execute('DROP TABLE IF EXISTS my_app.mydict')
GPtr.session.execute('DROP TABLE IF EXISTS hecuba.partitioning')
Csk6 = wg0u('my_app.mydict')
cInq = 10000
for YRbF in range(0, cInq):
Csk6[YRbF] = 'RandomText' + str(YRbF)
I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J1ea(YKHO, Niwm):\n if len(YKHO) < YKHO.n_hyp:\n return False\n elif YKHO.early_stopping:\n return True\n else:\n return YKHO.worst_score >= Niwm / YKHO.max_length ** YKHO.length_penalty",
"def wtep(YKHO):\n if len(YKHO.allGbests) > 50:\n YKHO.allGbests.pop(0)\n ... | [
"0.59232616",
"0.58225906",
"0.58103305",
"0.5805474",
"0.5801037",
"0.57873785",
"0.57629746",
"0.5725463",
"0.5659966",
"0.5588003",
"0.55800885",
"0.5577332",
"0.55664593",
"0.55604875",
"0.5520751",
"0.5505468",
"0.54880697",
"0.54811746",
"0.5463933",
"0.5453778",
"0.543... | 0.0 | -1 |
Returns the number of seeds that are required for this harvest type. If None, then 1 or more is required. | def nWur(YKHO):
return YKHO.REQUIRED_SEED_COUNTS.get(str(YKHO.harvest_type)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tqML(YKHO):\n I5kn = len(YKHO.liqDraws) + len(YKHO.vapDraws) + len(YKHO.qfeeds)\n if YKHO.type == Tl3L or YKHO.type == Y1uO:\n I5kn -= 1\n return I5kn",
"def Sqw_(YKHO) -> h8nf[int]:\n pass",
"def sQHa(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'number_of_shards')",
"de... | [
"0.6920889",
"0.6573323",
"0.6356669",
"0.63091874",
"0.63091874",
"0.6271644",
"0.6271644",
"0.62611943",
"0.6177437",
"0.6164813",
"0.6164813",
"0.6151345",
"0.6151345",
"0.6069805",
"0.6069805",
"0.6069805",
"0.6069805",
"0.6069805",
"0.6069805",
"0.60484326",
"0.6036832",... | 0.81553954 | 0 |
Gets instance of service by class if manager of dependencies is created and configured. | def KAOR(vOsx):
if hgQS is None:
raise hiLm('Manager of dependencies is not created and configured')
return hgQS.getService(vOsx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TbFb(YKHO, vOsx):\n if vOsx in YKHO.__services:\n Aofo = YKHO.__services[vOsx].value()\n else:\n if not callable(vOsx):\n raise hiLm('Runtime service can not be created, {} is not callable'.format(vOsx))\n Aofo = vOsx()\n YXTp('Runtime service is created and added',... | [
"0.7260654",
"0.68377215",
"0.66464955",
"0.6610103",
"0.65266323",
"0.6509444",
"0.6497034",
"0.64465165",
"0.6445866",
"0.64116824",
"0.6337379",
"0.6326327",
"0.62015253",
"0.6201342",
"0.6201342",
"0.6165855",
"0.61506265",
"0.6142856",
"0.61421585",
"0.6120924",
"0.60688... | 0.849167 | 0 |
Gets instance of service by class. | def TbFb(YKHO, vOsx):
if vOsx in YKHO.__services:
Aofo = YKHO.__services[vOsx].value()
else:
if not callable(vOsx):
raise hiLm('Runtime service can not be created, {} is not callable'.format(vOsx))
Aofo = vOsx()
YXTp('Runtime service is created and added', vOsx, Aofo)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KAOR(vOsx):\n if hgQS is None:\n raise hiLm('Manager of dependencies is not created and configured')\n return hgQS.getService(vOsx)",
"def TbFb(YKHO, HK29):\n if HK29 in YKHO._services:\n return YKHO._services[HK29]\n yeFX = __import__('services.%sService' % HK29, fromlist=[ofMJ(HK2... | [
"0.7455111",
"0.7102708",
"0.6993374",
"0.68347573",
"0.6817838",
"0.679559",
"0.6701121",
"0.6700232",
"0.6683807",
"0.6655342",
"0.6641295",
"0.6614707",
"0.65780944",
"0.65062225",
"0.6496834",
"0.6457797",
"0.64047664",
"0.63947755",
"0.63652194",
"0.6351203",
"0.63332707... | 0.7129811 | 1 |
Returns new instance with specified amount. Amount is not checked against current one. | def rwqO(YKHO, Z5kt):
return type(YKHO)(YKHO._name, YKHO._sprite, amount=Z5kt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C66J(Emd4, Z5kt: int):\n return Emd4(Z5kt)",
"def WJkG(YKHO, Z5kt):\n return _zB5(YKHO, Z5kt)",
"def rDbW(Emd4, Z5kt: int):\n return Emd4(Z5kt * 10 ** Emd4.DIVISIBILITY)",
"def bMoG(YKHO, Z5kt):\n if not isinstance(Z5kt, (int, float)):\n raise TypeError('amount must be numeric')\n i... | [
"0.7256417",
"0.65462285",
"0.6428615",
"0.6397046",
"0.6382991",
"0.62827885",
"0.61963856",
"0.61462414",
"0.60881245",
"0.6044059",
"0.60420376",
"0.6033713",
"0.601939",
"0.59855807",
"0.5981089",
"0.5937836",
"0.5937836",
"0.5889439",
"0.58756036",
"0.58228475",
"0.58149... | 0.7133539 | 1 |
Get a primary key field name. | def OVCu(Emd4):
return FUEm(Emd4).primary_key[0].name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def axGc(YKHO):\n if YKHO._primarykey:\n return YKHO._get_field_name(YKHO._primarykey)\n return None",
"def riqc(YKHO):\n Zyzo, = (Jyyj for Jyyj in YKHO.fields if Jyyj.is_primary_key())\n return Zyzo",
"def qSUW(YKHO):\n return YKHO._primary_key",
"def NHoH(YKHO):\n return YKHO.__pri... | [
"0.81011957",
"0.80085856",
"0.7950915",
"0.77128416",
"0.7678563",
"0.74732697",
"0.74732697",
"0.74389917",
"0.74207944",
"0.7379278",
"0.73311317",
"0.7289214",
"0.72805446",
"0.7279275",
"0.7233842",
"0.7211897",
"0.71673167",
"0.71662563",
"0.71662563",
"0.7083628",
"0.7... | 0.78289753 | 3 |
Get a list of nodes for an OZW instance. | def A1tt(ajET, UzPC, tO9_):
p_z1 = ajET.data[Sugg][VS5p]
Ziit = []
for Q6kx in p_z1.get_instance(tO9_[yw2G]).collections['node']:
Ziit.append({E7Dx: Q6kx.node_query_stage, TwUy: Q6kx.node_id, _2gm: Q6kx.is_zwave_plus, Wz3p: Q6kx.is_awake, HY2o: Q6kx.is_failed, EIWv: Q6kx.node_baud_rate, zJ1L: Q6kx.i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aAQH(YKHO):\n return YKHO._list_request('nodes')",
"def CDNe(YKHO) -> x1iM[ywwl]:\n raise NotImplementedError",
"def aAQH(YKHO):\n raise NotImplementedError()",
"def Ziit(Emd4):\n return list(Emd4.instances.values())",
"def eEku(YKHO):\n geh0 = YKHO._get('/v1/nodes/')\n geh0.raise_for... | [
"0.7606612",
"0.74810046",
"0.7477619",
"0.72454524",
"0.72227174",
"0.72070277",
"0.7172395",
"0.7172395",
"0.7172395",
"0.71519184",
"0.71518785",
"0.71387935",
"0.70917356",
"0.70794666",
"0.70654815",
"0.7054102",
"0.7049866",
"0.7042741",
"0.7042741",
"0.7038025",
"0.700... | 0.7189787 | 6 |
Dictionary of Category objects in the search results. A dictionary of Category objects by their code, also contains the count of how many times it appeared and the sub categories. | def hMju(YKHO):
return YKHO._categories | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wgQB(YKHO) -> dict:\n nPrm = dict()\n nPrm['categories'] = []\n nPrm['count'] = dict()\n nPrm['count'][0] = 0\n N1p7 = YKHO.cats.find()\n for EmMj in N1p7:\n ACia = qZuN(**EmMj)\n nPrm['categories'].append(ACia)\n wjLZ = {'category.id': ACia.id}\n nPrm['count'][ACi... | [
"0.68343157",
"0.6392493",
"0.633984",
"0.6338629",
"0.63102746",
"0.6285848",
"0.6283784",
"0.6236637",
"0.6184959",
"0.61611325",
"0.6149729",
"0.6146525",
"0.61246175",
"0.6093706",
"0.6091379",
"0.6046712",
"0.6037889",
"0.6017079",
"0.6014332",
"0.5994472",
"0.5971782",
... | 0.0 | -1 |
Return the string representation of the object. | def wHJl(YKHO):
return str(YKHO.json_equivalent()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return YKHO.object_repr",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n retu... | [
"0.8537007",
"0.84469134",
"0.84321547",
"0.842412",
"0.8338193",
"0.8338193",
"0.8297129",
"0.8273846",
"0.826127",
"0.82544935",
"0.8234344",
"0.82270455",
"0.82036436",
"0.8168186",
"0.815968",
"0.8157536",
"0.81115466",
"0.81115466",
"0.8077256",
"0.8077256",
"0.8077256",... | 0.0 | -1 |
Initialize a new instance of the ResultSet object | def FIMM(YKHO, ol53):
YKHO.ResultSet = ol53 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Aofo, ZLJ_, SWpx=False, NrJs=True, qoqK=efPA, bo34=None, PoS_='<noname>', H5ew='<nokey>'):\n YKHO.result = Aofo\n YKHO.columns = ZLJ_ and set(ZLJ_) or set([])\n YKHO.columns_found = set([])\n YKHO.include_timestamp = SWpx\n YKHO.decode_json = NrJs\n YKHO.limit = min(efPA, qoqK)\n ... | [
"0.69545865",
"0.68862474",
"0.67376053",
"0.66361445",
"0.6408772",
"0.63949925",
"0.6340614",
"0.62499577",
"0.6223233",
"0.617606",
"0.6158222",
"0.6138672",
"0.6137098",
"0.6122175",
"0.6122175",
"0.61042506",
"0.6093496",
"0.60591894",
"0.60584366",
"0.60196775",
"0.6013... | 0.75798094 | 0 |
Return the normalized input array | def NkkI(Csk6):
Csk6 -= oyIN.min(Csk6, axis=0)
Csk6 /= oyIN.ptp(Csk6, axis=0)
return Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(qw7D):\n qw7D -= qw7D.min()\n qw7D /= qw7D.max()\n return qw7D",
"def NkkI(ezWE):\n return ezWE / oyIN.mean(ezWE)",
"def Tmf_(nPrm):\n ZCnw = oyIN.array(nPrm, copy=True)\n ZCnw /= oyIN.max(oyIN.abs(ZCnw), axis=0)\n return ZCnw",
"def NkkI(ezWE):\n ezWE = (ezWE - oyIN.min(ezWE... | [
"0.7969039",
"0.790241",
"0.77388835",
"0.7700517",
"0.76885486",
"0.7684336",
"0.7635841",
"0.7620519",
"0.7619973",
"0.75453633",
"0.7517989",
"0.75161535",
"0.75091183",
"0.7419178",
"0.7380218",
"0.73715854",
"0.73564416",
"0.735584",
"0.7343501",
"0.72965497",
"0.7277967... | 0.72210103 | 25 |
Convert dataframe to overlapping sequences/windows of len `window_data`. | def q4_r(jQ3Z, WEZm=10, J5Cg=True):
NxrV = []
for or8S in range(len(jQ3Z) - WEZm):
jbXL = jQ3Z[or8S:or8S + WEZm].copy()
if J5Cg:
jbXL, Y5YY = uW8b(jbXL)
NxrV.append(jbXL.values)
return (oyIN.array(NxrV), Y5YY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TciN(jQ3Z, TVTK, yHH9):\n w_5H = KnxT(TVTK, yHH9, len(jQ3Z))\n for yKcO, Os4s in w_5H:\n yield jQ3Z[yKcO:Os4s]",
"def FHbi(__n6, dbbf, CAr7=5, yHH9=1):\n uGM2 = 0\n WEZm = epAf.ceil(CAr7 / dbbf)\n H0ZT = []\n while uGM2 < len(__n6):\n rdlD = []\n r845 = 0\n while... | [
"0.7133514",
"0.6669543",
"0.6669543",
"0.6649677",
"0.6615236",
"0.65747714",
"0.65299124",
"0.6512157",
"0.6369991",
"0.63351136",
"0.6308792",
"0.62896144",
"0.6280928",
"0.6270476",
"0.61828",
"0.6177066",
"0.61738646",
"0.6135701",
"0.61054355",
"0.60591894",
"0.6031606"... | 0.6604431 | 5 |
Gets the current price of a stock. | def N_Zi(r5v8):
nPrm = nNXP.tsd(r5v8)
hI0L = (r5v8, nPrm[0][1])
return hI0L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z9zq(YKHO, o61b):\n return YKHO.data['rates'][o61b]",
"def hI0L(YKHO):\n if not YKHO.exchange_is_open:\n YKHO._price = YKHO.value\n else:\n YKHO._price = YKHO.position['current_price']\n return YKHO._price",
"def JR3z(o61b):\n return OefK().curr_price(o61b)",
"def mUwC(YKHO):... | [
"0.78894037",
"0.7889242",
"0.785708",
"0.7857065",
"0.76497906",
"0.7616787",
"0.75488406",
"0.750094",
"0.75006557",
"0.7465516",
"0.7426236",
"0.7294072",
"0.72877866",
"0.72861236",
"0.7269094",
"0.725693",
"0.7213972",
"0.72093713",
"0.72066325",
"0.7200669",
"0.7200669"... | 0.64550966 | 90 |
Computes the returns of a portfolio. | def CuxP(dKc3, GKJe, AVpI):
yvT9 = dict()
for a1PO in list(dKc3[GKJe].keys()):
BdN0 = AVpI[a1PO]
gv2B = dKc3['prc'][a1PO]
Sgcx = dKc3[GKJe][a1PO]
_c1T = dKc3['date']
yvT9[a1PO] = dict()
yvT9[a1PO]['old'] = gv2B
yvT9[a1PO]['new'] = BdN0
yvT9[a1PO]['... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WYPg(YKHO):\n ZgWQ = YKHO._daily\n TXjx = 'cum_investment_return'\n CuxP = ZgWQ.reset_index().pivot(index='date', columns='symbol', values=TXjx).sum(axis=1).transform(lambda WKvO: WKvO - WKvO.shift(1)) / ZgWQ.reset_index().pivot(index='date', columns='symbol', values='cum_cost_basis').sum(axis=1)\n ... | [
"0.76378256",
"0.74734837",
"0.7450421",
"0.7440302",
"0.7325982",
"0.71767324",
"0.7030214",
"0.69995505",
"0.6936255",
"0.6810103",
"0.67054164",
"0.66816854",
"0.66267526",
"0.6616769",
"0.66116565",
"0.6593156",
"0.6551463",
"0.65442127",
"0.65125036",
"0.64140797",
"0.64... | 0.5782162 | 62 |
Computes the total return of a portfolio. | def v1RM(dKc3, GKJe, AVpI, _c1T):
MjY2 = sum(map(lambda H5ew: dKc3[GKJe][H5ew] * dKc3['prc'][H5ew], dKc3[GKJe].keys()))
MjY2 = round(MjY2, 1)
U3WD = sum(map(lambda H5ew: dKc3[GKJe][H5ew] * AVpI[H5ew], dKc3[GKJe].keys()))
U3WD = round(U3WD, 1)
abs = round(U3WD - MjY2, 1)
wvau = round((U3WD - MjY2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CuxP(YKHO):\n return sum([T4Wy.worth() for T4Wy in YKHO.portfolio]) + YKHO.money - YKHO.initialCapital",
"def WYPg(YKHO):\n ZgWQ = YKHO._daily\n TXjx = 'cum_investment_return'\n CuxP = ZgWQ.reset_index().pivot(index='date', columns='symbol', values=TXjx).sum(axis=1).transform(lambda WKvO: WKvO - ... | [
"0.73773104",
"0.73150927",
"0.6999557",
"0.69699776",
"0.6941684",
"0.6938712",
"0.6705957",
"0.6702914",
"0.66850287",
"0.6674336",
"0.6673705",
"0.6672976",
"0.66142476",
"0.65472215",
"0.65200776",
"0.6448934",
"0.64461964",
"0.6431039",
"0.640484",
"0.6364753",
"0.632449... | 0.0 | -1 |
Ensure JWT login view using JSON POST works. | def xpuM(YKHO):
x0hE = iJSR(enforce_csrf_checks=True)
geh0 = x0hE.post('/auth-token/', YKHO.data, format='json')
pTK4 = BfDw.jwt_decode_handler(geh0.data['token'])
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)
YKHO.assertEqual(pTK4['username'], YKHO.username) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpuM(YKHO):\n x0hE = iJSR(enforce_csrf_checks=True)\n geh0 = x0hE.post('/auth-token/', YKHO.data, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n pTK4 = BfDw.jwt_decode_handler(geh0.data['token'])\n YKHO.assertEqual(pTK4['username'], YKHO.email)",
"def SPmS(YKHO):\n ... | [
"0.7774574",
"0.7528911",
"0.750609",
"0.7421257",
"0.74106324",
"0.74106324",
"0.7273824",
"0.7273072",
"0.7220286",
"0.72036517",
"0.7159336",
"0.71048117",
"0.70091826",
"0.69981235",
"0.6955176",
"0.69460565",
"0.69215703",
"0.69215703",
"0.69073105",
"0.6895915",
"0.6893... | 0.7621676 | 1 |
Ensure JWT login view using JSON POST fails if bad credentials are used. | def JGjZ(YKHO):
x0hE = iJSR(enforce_csrf_checks=True)
YKHO.data['password'] = 'wrong'
geh0 = x0hE.post('/auth-token/', YKHO.data, format='json')
YKHO.assertEqual(geh0.status_code, 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M3jV(YKHO):\n x0hE = iJSR(enforce_csrf_checks=True)\n geh0 = x0hE.post('/auth-token/', {'username': YKHO.username}, format='json')\n YKHO.assertEqual(geh0.status_code, 400)",
"def SJ0B(YKHO):\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, format='json')\n YKHO.assertEqual(geh0... | [
"0.7764018",
"0.76249075",
"0.76249075",
"0.7398197",
"0.7296126",
"0.7202963",
"0.7202963",
"0.71950495",
"0.716892",
"0.7135162",
"0.71182406",
"0.70566684",
"0.7051222",
"0.7019529",
"0.70193034",
"0.6979207",
"0.6949434",
"0.6928861",
"0.6919825",
"0.69164556",
"0.6900833... | 0.7831805 | 1 |
Ensure JWT login view using JSON POST fails if missing fields. | def M3jV(YKHO):
x0hE = iJSR(enforce_csrf_checks=True)
geh0 = x0hE.post('/auth-token/', {'username': YKHO.username}, format='json')
YKHO.assertEqual(geh0.status_code, 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZvR7(YKHO):\n x0hE = iJSR(enforce_csrf_checks=True)\n geh0 = x0hE.post('/auth-token/', {'username': YKHO.username}, format='json')\n YKHO.assertEqual(geh0.status_code, 400)",
"def SJ0B(YKHO):\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, format='json')\n YKHO.assertEqual(geh0... | [
"0.7571623",
"0.7271432",
"0.7271432",
"0.7260258",
"0.71887875",
"0.71887875",
"0.7088912",
"0.6976059",
"0.6934077",
"0.6934077",
"0.69303495",
"0.6927152",
"0.692566",
"0.6904764",
"0.69036204",
"0.68912864",
"0.68558425",
"0.68529904",
"0.68469137",
"0.68191576",
"0.68031... | 0.8010354 | 0 |
Ensure JWT login view using JSON POST works. | def xpuM(YKHO):
x0hE = iJSR(enforce_csrf_checks=True)
geh0 = x0hE.post('/auth-token/', YKHO.data, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)
pTK4 = BfDw.jwt_decode_handler(geh0.data['token'])
YKHO.assertEqual(pTK4['username'], YKHO.email) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpuM(YKHO):\n x0hE = iJSR(enforce_csrf_checks=True)\n geh0 = x0hE.post('/auth-token/', YKHO.data, format='json')\n pTK4 = BfDw.jwt_decode_handler(geh0.data['token'])\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(pTK4['username'], YKHO.username)",
"def SPmS(YKHO):\n ... | [
"0.7621676",
"0.7528911",
"0.750609",
"0.7421257",
"0.74106324",
"0.74106324",
"0.7273824",
"0.7273072",
"0.7220286",
"0.72036517",
"0.7159336",
"0.71048117",
"0.70091826",
"0.69981235",
"0.6955176",
"0.69460565",
"0.69215703",
"0.69215703",
"0.69073105",
"0.6895915",
"0.6893... | 0.7774574 | 0 |
Ensure JWT login view using JSON POST fails if bad credentials are used. | def JGjZ(YKHO):
x0hE = iJSR(enforce_csrf_checks=True)
YKHO.data['password'] = 'wrong'
geh0 = x0hE.post('/auth-token/', YKHO.data, format='json')
YKHO.assertEqual(geh0.status_code, 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M3jV(YKHO):\n x0hE = iJSR(enforce_csrf_checks=True)\n geh0 = x0hE.post('/auth-token/', {'username': YKHO.username}, format='json')\n YKHO.assertEqual(geh0.status_code, 400)",
"def SJ0B(YKHO):\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, format='json')\n YKHO.assertEqual(geh0... | [
"0.7764018",
"0.76249075",
"0.76249075",
"0.7398197",
"0.7296126",
"0.7202963",
"0.7202963",
"0.71950495",
"0.716892",
"0.7135162",
"0.71182406",
"0.70566684",
"0.7051222",
"0.7019529",
"0.70193034",
"0.6979207",
"0.6949434",
"0.6928861",
"0.6919825",
"0.69164556",
"0.6900833... | 0.7831805 | 0 |
Compute gradient of objective function of l2regularized logistic regression | def YTAy(UqYS, UX9L, WKvO, LVAh):
exwG = len(LVAh)
fxo8 = LVAh[:, None] * WKvO
CN9P = fxo8 * oyIN.exp(-fxo8.dot(UqYS[:, None]))
es2x = oyIN.exp(-fxo8.dot(UqYS)) + 1
ICX2 = -1 / exwG * oyIN.sum(CN9P / es2x[:, None], axis=0) + 2 * UX9L * UqYS
return ICX2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qWAp(q7In, kOjW, LVAh, _zxd=0):\n q7In = q7In.reshape((-1, 1))\n sSN_ = ZfFu(kOjW, LVAh, q7In, _zxd)\n ICX2 = z4N3(kOjW, LVAh, q7In, _zxd).reshape(-1)\n return (sSN_, ICX2)",
"def BVa7(q7In, EcVT, LVAh, EhIg):\n q7In = q7In.flatten()\n r8hN = LVAh.shape[1]\n CLJ9 = 1 / r8hN * BJ1H(MKlR(q... | [
"0.7438789",
"0.7348976",
"0.7319274",
"0.72904646",
"0.72841513",
"0.7090525",
"0.7090525",
"0.7079475",
"0.6979881",
"0.6969802",
"0.6962067",
"0.69601583",
"0.6939912",
"0.6918578",
"0.69149256",
"0.69045544",
"0.68801475",
"0.68387127",
"0.6818464",
"0.68140715",
"0.68075... | 0.0 | -1 |
Adds a receiver to this EventHook | def CaoY(YKHO, DCgT):
YKHO.__receivers.append(DCgT)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XMPH(YKHO, Td1T):\n if not callable(Td1T):\n raise TypeError('receiver must be callable')\n YKHO.event_receivers.append(Td1T)",
"def Ykhp(YKHO, Td1T: Callable) -> None:\n Td1T = _uvE(Td1T)\n YKHO.receivers.append(Td1T)",
"def Ykhp(YKHO, Td1T, vC92=None, bWnO=None):\n if bWnO:\n ... | [
"0.8333656",
"0.629875",
"0.6172436",
"0.60734177",
"0.60076296",
"0.5769302",
"0.57428527",
"0.5724643",
"0.56147325",
"0.5559911",
"0.5528254",
"0.54731387",
"0.5458538",
"0.5450926",
"0.54408205",
"0.5421364",
"0.541035",
"0.541035",
"0.5393108",
"0.5332242",
"0.5310794",
... | 0.62286156 | 2 |
Adds a receiver to this EventHook | def CaoY(YKHO, DCgT):
YKHO._eventHook.__iadd__(DCgT)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XMPH(YKHO, Td1T):\n if not callable(Td1T):\n raise TypeError('receiver must be callable')\n YKHO.event_receivers.append(Td1T)",
"def Ykhp(YKHO, Td1T: Callable) -> None:\n Td1T = _uvE(Td1T)\n YKHO.receivers.append(Td1T)",
"def CaoY(YKHO, DCgT):\n YKHO.__receivers.append(DCgT)\n retu... | [
"0.8333656",
"0.629875",
"0.62286156",
"0.6172436",
"0.60734177",
"0.60076296",
"0.5769302",
"0.57428527",
"0.5724643",
"0.56147325",
"0.5559911",
"0.5528254",
"0.54731387",
"0.5458538",
"0.5450926",
"0.54408205",
"0.5421364",
"0.541035",
"0.541035",
"0.5393108",
"0.5332242",... | 0.52849084 | 22 |
Get the centroid of the vehicles | def IBzD(YKHO):
e6ux = []
for FMwV in YKHO.vehicles:
e6ux.append(FMwV.current_pos)
e6ux = oyIN.mean(oyIN.asarray(e6ux), axis=0)
return e6ux[0:2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IBzD(YKHO):\n e6ux = []\n for FMwV in YKHO.action['vehicles']:\n e6ux.append(FMwV.current_pos)\n e6ux = oyIN.mean(oyIN.asarray(e6ux), axis=0)\n return e6ux",
"def e6ux(YKHO):\n return LBWB.centroid(YKHO)",
"def eEap(YKHO):\n return oyIN.mean(YKHO.vertices_, axis=0)",
"def e6ux(YK... | [
"0.8338364",
"0.7650614",
"0.76172936",
"0.7578186",
"0.7569884",
"0.75606287",
"0.75142705",
"0.74723536",
"0.74377453",
"0.74311334",
"0.74311334",
"0.7348773",
"0.7348419",
"0.73442966",
"0.73410577",
"0.7313019",
"0.7293336",
"0.7291623",
"0.72048306",
"0.71978027",
"0.71... | 0.8424275 | 0 |
Extracts all integers from a string. | def ryAO(vIwR):
import re
mSrU = re.findall('\\d+', vIwR)
for YRbF in range(0, len(mSrU)):
mSrU[YRbF] = int(mSrU[YRbF])
return mSrU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHxI(vIwR):\n return [int(KCHu) for KCHu in vIwR.split() if KCHu.isdigit()]",
"def gXtX(KCHu: str) -> x1iM[int]:\n return XqC_(int, ZbWC.findall('-?\\\\d+', KCHu))",
"def VAwO(vIwR, tW6W=False):\n if tW6W == False:\n _Gjm = ZbWC.compile('[0-9]+')\n else:\n _Gjm = ZbWC.compile('[0-... | [
"0.8128071",
"0.8048472",
"0.77912825",
"0.7661122",
"0.7455436",
"0.74469197",
"0.7394537",
"0.73406696",
"0.722536",
"0.720382",
"0.72017175",
"0.71880364",
"0.71880364",
"0.7174983",
"0.7051732",
"0.7047676",
"0.7009364",
"0.6977042",
"0.69176817",
"0.69176817",
"0.6895217... | 0.86048234 | 0 |
Decorate routes to require login. | def uKii(eHNT):
@zaGL(eHNT)
def SzLu(*qIxc, **B2fa):
if cuiw.get('user_id') is None:
return vKnz('/login')
return eHNT(*qIxc, **B2fa)
return SzLu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if not 'logged_in' in cuiw:\n return vKnz(nKyW('index', next=QePW.url))\n return JfyU(*qIxc, **B2fa)\n return WS4m",
"def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if Oa1e.user i... | [
"0.7088456",
"0.69661",
"0.69525415",
"0.6949141",
"0.6931404",
"0.69277924",
"0.69114035",
"0.6908829",
"0.68492377",
"0.68424016",
"0.68367666",
"0.68357086",
"0.6820801",
"0.6820801",
"0.6820801",
"0.6820801",
"0.6806658",
"0.68059635",
"0.67959154",
"0.6781016",
"0.677388... | 0.656372 | 55 |
Computes the average number of extinctions occurring after the removal of one species. Returns the coefficient of determination of its prediction. The prediction is based on Equation 4. | def Sjdt(gHY4, o4sw, Fg_i, epBp):
qQfB = gHY4.shape[0]
eSnm = oyIN.array(qQfB * [oyIN.arange(gHY4.shape[1])])
uIrn = o4sw - gHY4
HGPO = (1 - epBp) * (2 / Fg_i) + epBp
W061 = uIrn
nvEb = HGPO * eSnm
HJeT = oyIN.sum((W061 - nvEb) ** 2)
i3Ps = oyIN.sum((W061 - oyIN.mean(W061)) ** 2)
DXl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dgh4(YKHO):\n return -3.0 * (2.0 * YKHO._dlnsdlnm + 1.0)",
"def k_dC(YKHO):\n EcVT = oyIN.linspace(95, 910, 51)\n LVAh = oyIN.linspace(10, 42, 51)\n C3ST = nkHP().fit(EcVT.reshape((-1, 1)), LVAh)\n VMex, BlB8 = (C3ST.coef_[0], C3ST.intercept_)\n return (VMex * YKHO.d + BlB8) / 100",
"def ... | [
"0.60268337",
"0.59487236",
"0.5694035",
"0.56863135",
"0.56829756",
"0.56604105",
"0.5650174",
"0.5646129",
"0.5632672",
"0.5627703",
"0.56083226",
"0.5589463",
"0.5564318",
"0.55637324",
"0.55465055",
"0.5477471",
"0.5475291",
"0.54457587",
"0.54451454",
"0.5444394",
"0.543... | 0.0 | -1 |
Returns observed and predicted robustness at threshold x. | def YOJD(gHY4, o4sw, Fg_i, epBp, WKvO=0.5):
uIrn = 1 - gHY4 / o4sw
_35E = oyIN.sum(uIrn < WKvO, axis=1) / o4sw
nvEb = oyIN.ceil(WKvO * o4sw) / (o4sw * ((1 - epBp) * (2 / Fg_i) + epBp))
Ylbp = UQtd('Robres', ('obs', 'var', 'pred'))
return Ylbp(oyIN.mean(_35E), oyIN.var(_35E), nvEb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cb4L(Y8eF, aMgO, gwAu=0.5):\n aMgO = aMgO >= gwAu\n lBbi = oyIN.sum((Y8eF == 0) & (aMgO == 0))\n r4kf = oyIN.sum((Y8eF == 0) & (aMgO == 1))\n return lBbi / (lBbi + r4kf)",
"def YEmv(YKHO, WKvO):\n return YKHO.__predict_prob(WKvO) >= YKHO.threshold",
"def FAfr(YKHO, EcVT):\n mrZR(YKHO, ['d... | [
"0.67782253",
"0.6745175",
"0.67309695",
"0.6622366",
"0.6620339",
"0.65233123",
"0.6489264",
"0.64276147",
"0.642613",
"0.6410068",
"0.63311666",
"0.63188756",
"0.63018394",
"0.6298196",
"0.62595475",
"0.6258274",
"0.6244539",
"0.62422365",
"0.62418085",
"0.62397945",
"0.623... | 0.0 | -1 |
This function computes the longest losing streak | def c6TZ(ezWE):
ezWE = filter(lambda jzdc: jzdc != 0, ezWE)
exwG = len(ezWE)
Ylbp = 0
for YRbF in range(exwG):
ZqeK = 0
while YRbF < exwG and ezWE[YRbF] < 0:
ZqeK += 1
YRbF += 1
Ylbp = max(Ylbp, ZqeK)
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cbN4(KCHu: str) -> int:\n if not KCHu:\n return 0\n VQ6Z = [0] * len(KCHu)\n THkp = [0] * len(KCHu)\n THkp[-1] = 1\n for rdlD in range(len(KCHu) - 2, -1, -1):\n VQ6Z[rdlD] = 1\n for fvDH in range(rdlD + 1, len(KCHu)):\n if KCHu[rdlD] == KCHu[fvDH]:\n ... | [
"0.7082688",
"0.6889892",
"0.6819828",
"0.6817956",
"0.67417216",
"0.67296064",
"0.67059135",
"0.6689811",
"0.66814435",
"0.66787493",
"0.6669091",
"0.6624034",
"0.6606467",
"0.6575508",
"0.6564398",
"0.6543615",
"0.65140647",
"0.6506774",
"0.64991343",
"0.6497235",
"0.649561... | 0.7211568 | 0 |
This function calculates EMA | def RVQU(YKHO, pQ4c):
return rLdf.ewma(YKHO.daily_c, span=pQ4c) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fpHa(tTpl):\n return oyIN.mean(oyIN.abs(tTpl))",
"def fpHa(tTpl):\n return oyIN.mean(oyIN.abs(tTpl))",
"def fpHa(tTpl):\n return oyIN.mean(oyIN.abs(tTpl))",
"def fpHa(tTpl):\n return oyIN.mean(oyIN.abs(tTpl))",
"def fpHa(tTpl):\n return oyIN.mean(oyIN.abs(tTpl))",
"def P9Wj(VlDb, W061)... | [
"0.756381",
"0.756381",
"0.756381",
"0.756381",
"0.756381",
"0.74077487",
"0.7304016",
"0.72494423",
"0.715404",
"0.71465987",
"0.7125375",
"0.7095749",
"0.7059628",
"0.7041869",
"0.7004058",
"0.6989394",
"0.6981561",
"0.6979441",
"0.6972375",
"0.69663507",
"0.6940547",
"0.... | 0.70036423 | 15 |
This function returns signal generated by EMAATR | def vx70(YKHO, exwG):
YKHO.generate_trading_signal_ema(exwG)
return YKHO.signal_ema | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dYef(YKHO):\n n6jM = YKHO.generate_noise(0, YKHO.channel_parameters.noise_segma, (YKHO.K, 1))\n iKXr = oyIN.mat(n6jM)\n Ewa8 = YKHO.H_IRS_to_user * YKHO.Fai * YKHO.H_BS_to_IRS * YKHO.G_beamforming * YKHO.X_transmit + iKXr\n return Ewa8",
"def BaxD(qw7D):\n return XTiz.average(qw7D, 3)",
"def... | [
"0.64796364",
"0.63294005",
"0.62939966",
"0.6274602",
"0.5979515",
"0.5954136",
"0.58983433",
"0.58983433",
"0.5897799",
"0.58634335",
"0.58579355",
"0.5827457",
"0.5827457",
"0.58221704",
"0.58110833",
"0.5795365",
"0.5793942",
"0.578473",
"0.5739172",
"0.57373285",
"0.5703... | 0.66351 | 0 |
Return current package version. | def DpZH():
with open('gencove/version/A-major', 'rt') as eHNT:
IJ4N = eHNT.read().replace('\n', '')
with open('gencove/version/B-minor', 'rt') as eHNT:
cbKy = eHNT.read().replace('\n', '')
with open('gencove/version/C-patch', 'rt') as eHNT:
Po4F = eHNT.read().replace('\n', '')
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv(YKHO):\n return YKHO.get_single('/package/version')",
"def eJy1(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'package_version')",
"def eJy1(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'package_version')",
"def zvqz(YKHO):\n return YKHO.get_job()['packageVersion']",
"def ka... | [
"0.87145036",
"0.84908336",
"0.84908336",
"0.82847947",
"0.8239574",
"0.82340413",
"0.8203929",
"0.8191737",
"0.81671476",
"0.8159174",
"0.8131973",
"0.8128816",
"0.81046265",
"0.8079645",
"0.8047591",
"0.80429614",
"0.801563",
"0.80134994",
"0.79843503",
"0.79597247",
"0.795... | 0.0 | -1 |
Append a node to the end of the LinkedList | def SStx(YKHO, Esd_):
jvSB = YKHO.head
if YKHO.head:
while jvSB.next:
jvSB = jvSB.next
jvSB.next = Esd_
else:
YKHO.head = Esd_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SStx(YKHO, ZfUD):\n \"\"\" Insert item at end of list as new node. \"\"\"\n 'Create a new node item'\n gPx9 = nAWG(ZfUD)\n \" \\n if there isn't a head make it the head otherwise\\n append to the end of the list\\n \"\n if YKHO._head is None or YKHO._size == 0:\n YKHO... | [
"0.80917084",
"0.80702955",
"0.7992295",
"0.7937017",
"0.7937017",
"0.7937017",
"0.79333794",
"0.79330546",
"0.79171205",
"0.79139465",
"0.79104614",
"0.79028493",
"0.78861994",
"0.7880507",
"0.78752184",
"0.7873294",
"0.786462",
"0.7847525",
"0.7839874",
"0.781855",
"0.78166... | 0.77508736 | 27 |
Normalises a feature vector to a specific length. Zero vectors are left zero. | def kwsU(WHWh, u54L=1):
try:
CkYf = u54L / PZyS(sum([WKvO ** 2 for WKvO in WHWh.values()]))
except ZeroDivisionError:
return
for _x49 in WHWh:
WHWh[_x49] *= CkYf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO, iArr):\n i1gc = oyIN.sqrt(oyIN.dot(iArr, iArr))\n yVsS = iArr / i1gc\n return yVsS",
"def VDTB(Ty9i):\n return Ty9i / i1gc(Ty9i)",
"def NkkI(iArr):\n Ty9i = oyIN.array(iArr)\n FOSW = oyIN.linalg.norm(Ty9i)\n if FOSW == 0:\n return Ty9i\n else:\n return Ty9i ... | [
"0.7559332",
"0.75283796",
"0.7491366",
"0.7484555",
"0.7472895",
"0.7446254",
"0.7404408",
"0.7354749",
"0.73472536",
"0.733345",
"0.7312871",
"0.72844553",
"0.72821575",
"0.72740424",
"0.72474426",
"0.7244998",
"0.7231462",
"0.7224189",
"0.7221137",
"0.7193459",
"0.7162746"... | 0.7986676 | 0 |
Calculates the dot product of a sentence's features with the feature weights for each language, when there are different sets of features. | def yaBo(uiFc, pbzD):
dixj = []
for WsTC in uiFc:
A75M = uiFc[WsTC]
cuIS = 0
for YRbF in range(6):
for WKvO in pbzD[YRbF]:
if WKvO in A75M[YRbF]:
cuIS += pbzD[YRbF][WKvO] * A75M[YRbF][WKvO]
dixj.append((cuIS, WsTC))
return dixj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uYbU(uiFc, pbzD):\n dixj = []\n for WsTC in uiFc:\n A75M = uiFc[WsTC]\n cuIS = 0\n for WKvO in pbzD:\n if WKvO in A75M:\n cuIS += pbzD[WKvO] * A75M[WKvO]\n dixj.append((cuIS, WsTC))\n return dixj",
"def qB22(VZLn, _mSQ):\n e5D7 = oyIN.dot(VZLn... | [
"0.7830486",
"0.6534328",
"0.6375552",
"0.6298272",
"0.62968963",
"0.6174033",
"0.61740077",
"0.6165526",
"0.6165526",
"0.6165526",
"0.6165526",
"0.6164931",
"0.6110995",
"0.6110995",
"0.61032665",
"0.6101233",
"0.61008763",
"0.61008763",
"0.60962737",
"0.60397166",
"0.603329... | 0.69635326 | 1 |
Sums the cosines between a sentence's features and each set of feature weights, for each language. | def lSQ4(uiFc, pbzD):
for WKvO in pbzD:
kwsU(WKvO)
return yaBo(uiFc, pbzD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u4nu(Rhv4, V22M):\n c0Q1 = []\n XaYg = len(Rhv4)\n for GIN8 in V22M:\n ZbjL = 0\n for yAmx in Rhv4:\n if GIN8 in yAmx.bag_of_words:\n ZbjL += 1\n ZbjL = 1 if ZbjL == 0 else ZbjL\n V22M[GIN8].term_weight = V22M[GIN8].abs_frequency * epAf.log10(XaYg ... | [
"0.5639817",
"0.55444837",
"0.5492927",
"0.54699755",
"0.5459641",
"0.5456499",
"0.54512286",
"0.5421371",
"0.5415835",
"0.5386611",
"0.5372024",
"0.5343463",
"0.5319504",
"0.5313605",
"0.53072953",
"0.5295339",
"0.5278074",
"0.52773714",
"0.52449995",
"0.5240879",
"0.5240329... | 0.68974197 | 0 |
Save sensors to json file. | def znGk(YKHO, Ux0P):
with open(Ux0P, 'w') as G6EG:
qQXR.dump(YKHO.sensors, G6EG, cls=TUnu)
G6EG.flush()
Hy7s.fsync(G6EG.fileno()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def znGk(YKHO, Ux0P):\n with open(Ux0P, 'w') as G6EG:\n qQXR.dump(YKHO.sensors, G6EG, cls=I55x)\n G6EG.flush()\n Hy7s.fsync(G6EG.fileno())",
"def y5X2(Ux0P):\n with open(Ux0P, 'w', encoding='utf-8') as G6EG:\n qQXR.dump(kdXA.sensors, G6EG, cls=km47)\n G6EG.flush()\n ... | [
"0.86629486",
"0.7820878",
"0.74329454",
"0.7394124",
"0.73582274",
"0.7303468",
"0.72915184",
"0.7278075",
"0.72445637",
"0.7204624",
"0.718974",
"0.71743673",
"0.7129635",
"0.71275544",
"0.7086515",
"0.70685637",
"0.7048162",
"0.7044967",
"0.6991298",
"0.6983743",
"0.698307... | 0.8631356 | 1 |
Add a command to set a sensor value, to the queue. A queued command will be sent to the sensor, when the gateway thread has sent all previously queued commands to the FIFO queue. | def larA(YKHO, qi1f, tkHJ, fX1C, BWXx, **B2fa):
OK1o = B2fa.get('ack', 0)
if YKHO.is_sensor(qi1f, tkHJ):
YKHO.fill_queue(YKHO.sensors[qi1f].set_child_value, (tkHJ, fX1C, BWXx), {'ack': OK1o}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def _set_value(YKHO, RUxZ, PObu, BWXx):\n Ol8d = '{\"command\":\"set\",\"data\":{\"deviceId\":%s,\"uid\":%i,\"value\":%i,\"seqNo\":0}}' % (RUxZ, PObu, BWXx)\n YKHO._sendQueue.put_nowait(Ol8d)",
"def Y0Xx(YKHO, HCmI):\n YKHO.queue.put(HCmI)\n YKHO.signal.emit()",
"def _jXH(YKHO, BWXx):\n YK... | [
"0.64732885",
"0.6436557",
"0.6311203",
"0.62506706",
"0.61560917",
"0.6124289",
"0.6100017",
"0.6090314",
"0.6087066",
"0.601343",
"0.6010273",
"0.6010273",
"0.6005164",
"0.5996176",
"0.5967088",
"0.5950831",
"0.5942176",
"0.5927055",
"0.59020704",
"0.58611435",
"0.585443",
... | 0.0 | -1 |
Return object from dict. | def cZMs(YKHO, YEnM):
if not isinstance(YEnM, dict):
return YEnM
if 'sensor_id' in YEnM:
XtFw = XTqt(YEnM['sensor_id'])
XtFw.__dict__.update(YEnM)
return XtFw
elif all((G1Hx in YEnM for G1Hx in ['id', 'type', 'values'])):
aUGN = pjQy(YEnM['id'], YEnM['type'])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, fGC9):\n ...",
"def iSsw(Emd4, chwN):\n return Emd4(**chwN)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dic... | [
"0.7124955",
"0.7057509",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"0.7009769",
"... | 0.0 | -1 |
Calculate the backoff time to wait for. | def kk7D(YKHO, uJCA: float, KQvS: int) -> float:
_ZgM = uJCA * 2 ** (KQvS - 1)
return min(YKHO.BACKOFF_MAX, _ZgM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z5fF(YKHO):\n return pow(YKHO.SLOT_TIME, YKHO.retries + 1) + tuKI.uniform(-1, 1)",
"def Xekx(YKHO) -> float:\n if YKHO.__first_call:\n return 0.0\n return YKHO.backoff_seconds * 2 ** YKHO.tries + tuKI.uniform(0, 1)",
"def MwCK(pgFO, qIxc):\n q96l = float(qIxc['min_backoff_sec'])\n cpR... | [
"0.82495224",
"0.79633343",
"0.76104385",
"0.7528406",
"0.75189465",
"0.7465345",
"0.7361556",
"0.7282913",
"0.72765553",
"0.72517693",
"0.72399557",
"0.71609515",
"0.71520895",
"0.71158344",
"0.70618886",
"0.705992",
"0.704428",
"0.7006409",
"0.6989164",
"0.69880706",
"0.697... | 0.8201322 | 1 |
Returns all used category items as unordered list. | def SKCc(YKHO):
return list(BJsk.category_items.get_category_items_cached()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LeZt(YKHO) -> x1iM[str]:\n return super(ZFpb, YKHO).items",
"def Km6r(YKHO):\n return qZuN.objects.all()",
"def zG33(YKHO):\n return YKHO.categoryList",
"def LQuW(YKHO):\n LeZt = ''\n for YRbF in YKHO.category.all():\n LeZt += YRbF.name + ' '\n return LeZt",
"def LQuW():\n r... | [
"0.75847334",
"0.74249727",
"0.7376731",
"0.7317532",
"0.7296637",
"0.72929406",
"0.7241409",
"0.71710217",
"0.7076271",
"0.70562893",
"0.7055207",
"0.70537394",
"0.7048959",
"0.6981528",
"0.69705385",
"0.69474685",
"0.69178945",
"0.6910881",
"0.68841475",
"0.68841475",
"0.68... | 0.7714399 | 0 |
Creates a new free defined field ========== | def noB6(YKHO, uOe2, UXqs, dQgj=None, fX1C=u'unicode'):
CBIr = CnSx.request.login
e7qx = BJsk.free_defined_fields.create(user=CBIr, group=uOe2, label=UXqs, position=dQgj, value_type=fX1C)
return e7qx.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PUmE():\n pass",
"def re3O(YKHO, Jyyj, qzgp=None):\n raise NotImplementedError",
"def FJOX(mWFP, vF49, vbQv='', **B2fa):\n Gcbu = _BjM({d0Dv: mWFP, BAu0: vF49, ogcz: vbQv or mWFP, NWmE: _2d0, dlpj: wxy6, KZ2F: wxy6, Sugg: T2Pq, ARNi: T2Pq, tuwW: T2Pq, sEUm: wxy6})\n for G1Hx, Ty9i in B2fa.iteri... | [
"0.7086997",
"0.701535",
"0.6771066",
"0.6655391",
"0.65743446",
"0.65461",
"0.651614",
"0.6347525",
"0.6303877",
"0.6296068",
"0.62808144",
"0.62698704",
"0.626001",
"0.6208526",
"0.6184253",
"0.6169765",
"0.61684597",
"0.6144428",
"0.6140389",
"0.61045474",
"0.6087322",
"... | 0.7310494 | 0 |
Provide a RADICAL Pilot Resource Config to a test suite. The 'resource' key in a Pilot Description must name a key that the Session can use to get default values for the execution environment. | def QJRm():
import radical.pilot as opBR
import radical.utils as pLcG
try:
_Fei = opBR.ResourceConfig('local.localhost', pLcG.Config('radical.pilot.session', name='default', cfg=None))
except:
_Fei = dict()
return dict(config=_Fei, rp=opBR, ru=pLcG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: ConfigurationArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, r6DL=None):\n ...",
"def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, r6DL=None):\n ...",
"def FIMM(R... | [
"0.6549329",
"0.62222064",
"0.62222064",
"0.61940295",
"0.61773753",
"0.61421883",
"0.61217725",
"0.6079485",
"0.60625964",
"0.6056571",
"0.60522205",
"0.6052134",
"0.6044391",
"0.6044391",
"0.59900916",
"0.59822327",
"0.5973734",
"0.59650385",
"0.595842",
"0.59469837",
"0.59... | 0.75617236 | 0 |
Not to be confused with ``len(data)``. | def DMjF(YKHO) -> int:
return ueAM[len(YKHO.data)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n return len(YKHO.data)",
"def szAg(YKHO):\n return len(YKHO.data)",
"def szAg(YKHO):\n return len(YKHO.data)",
"def szAg(YKHO):\n return len(YKHO.data)",
"def szAg(YKHO):\n return len(YKHO.data)",
"def szAg(YKHO):\n return len(YKHO.data)",
"def szAg(YKHO):\n return... | [
"0.82878584",
"0.82683426",
"0.8264833",
"0.8249255",
"0.8249255",
"0.8249255",
"0.8249255",
"0.8249255",
"0.8249255",
"0.8249255",
"0.8249255",
"0.8249255",
"0.8249255",
"0.8249255",
"0.8249255",
"0.8249255",
"0.8249255",
"0.8249255",
"0.8249255",
"0.8249255",
"0.8249255",
... | 0.0 | -1 |
convert list of lists to tuple of tuples in order to have two level iterables that are hashable for the dictionaries used later | def rsSi(awnO):
return tuple((tuple(IuXB) for IuXB in awnO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hXWe(IqQl):\n return tuple(IqQl)",
"def qsp4(yv6U: list) -> tuple:\n return tuple((qsp4(YRbF) if isinstance(YRbF, list) else YRbF for YRbF in yv6U))",
"def Bua2(WKvO):\n if not isinstance(WKvO, list):\n return WKvO\n return tuple(map(Bua2, WKvO))",
"def MB0G(vC9B):\n u54L = len(vC9B... | [
"0.77074623",
"0.76746434",
"0.7345321",
"0.71790427",
"0.71149975",
"0.68229145",
"0.6761129",
"0.6745408",
"0.6703725",
"0.66529673",
"0.6620342",
"0.6575792",
"0.6531275",
"0.64814764",
"0.64762276",
"0.6402494",
"0.6347968",
"0.632518",
"0.63206285",
"0.63096535",
"0.6309... | 0.6656678 | 9 |
The service account to use as the container identity. | def zOZf(YKHO):
return YKHO.spec.serviceAccountName | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zOZf(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_account')",
"def zOZf(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'service_account')",
"def zOZf(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_account')",
"def zOZf(YKHO) -> 'outputs.AppConnectorPrincipalInfoServiceAccount':... | [
"0.7910674",
"0.77253115",
"0.7644798",
"0.7608834",
"0.7554086",
"0.7457935",
"0.7457935",
"0.7457935",
"0.7457935",
"0.7457935",
"0.7457935",
"0.7457935",
"0.7457935",
"0.7365788",
"0.7365788",
"0.7304121",
"0.7304121",
"0.71415484",
"0.7114744",
"0.6912007",
"0.66925097",
... | 0.78407276 | 1 |