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 Box will be infinitely long in the Xmin direction. | def dYlB(YKHO, *qIxc):
return ujPI.Bnd_Box2d_OpenXmin(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dYlB(YKHO, *qIxc):\n return ujPI.Bnd_Box_OpenXmin(YKHO, *qIxc)",
"def ABs9(YKHO):\n return YKHO.exceedingBoxLeft",
"def U56H(YKHO, *qIxc):\n return ujPI.Bnd_Box_Enlarge(YKHO, *qIxc)",
"def Oiy6(YKHO):\n return YKHO.position_x + YKHO.margin_left",
"def FlUN(YKHO, WKvO, LVAh, yzQ0, MKlR):\n ... | [
"0.6149742",
"0.60559994",
"0.6020259",
"0.5976126",
"0.59716755",
"0.5889193",
"0.57990485",
"0.57875115",
"0.5767166",
"0.5739479",
"0.5734423",
"0.5726509",
"0.5693281",
"0.5690171",
"0.56393594",
"0.5623579",
"0.5611095",
"0.5610097",
"0.5605397",
"0.5599212",
"0.55992025... | 0.5774676 | 8 |
The Box will be infinitely long in the Xmax direction. | def pHWB(YKHO, *qIxc):
return ujPI.Bnd_Box2d_OpenXmax(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pHWB(YKHO, *qIxc):\n return ujPI.Bnd_Box_OpenXmax(YKHO, *qIxc)",
"def O2Zy(YKHO):\n return max(YKHO.getx())",
"def vGNp(YKHO, *qIxc):\n return ujPI.Bnd_Box_OpenZmax(YKHO, *qIxc)",
"def FlUN(YKHO, WKvO, LVAh, yzQ0, MKlR):\n pass",
"def U56H(YKHO, *qIxc):\n return ujPI.Bnd_Box_Enlarge(YKHO... | [
"0.66187024",
"0.6261644",
"0.60251194",
"0.6024042",
"0.5991394",
"0.59028155",
"0.5848488",
"0.5836814",
"0.58127296",
"0.5742369",
"0.5726949",
"0.5705193",
"0.5701415",
"0.5697101",
"0.56800365",
"0.5658571",
"0.5657183",
"0.56504625",
"0.5633488",
"0.55961084",
"0.559494... | 0.61941034 | 2 |
The Box will be infinitely long in the Ymin direction. | def GKNW(YKHO, *qIxc):
return ujPI.Bnd_Box2d_OpenYmin(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n YKHO.rect.y += 12\n if YKHO.rect.y > 500:\n YKHO.rect.y = tuKI.randrange(-1000, -60)",
"def GKNW(YKHO, *qIxc):\n return ujPI.Bnd_Box_OpenYmin(YKHO, *qIxc)",
"def dlKq(YKHO, LVAh):\n if LVAh == eB_n:\n return 0\n hr1p = DEza\n if LVAh != WzEy:\n hr1p -= L... | [
"0.61599433",
"0.6040832",
"0.60307753",
"0.60124314",
"0.60111356",
"0.5884094",
"0.5876776",
"0.58584434",
"0.5852212",
"0.5842076",
"0.5823089",
"0.578724",
"0.578579",
"0.57838476",
"0.5775516",
"0.57717913",
"0.57692885",
"0.576792",
"0.5721756",
"0.571879",
"0.57182455"... | 0.5780859 | 14 |
The Box will be infinitely long in the Ymax direction. | def ukv0(YKHO, *qIxc):
return ujPI.Bnd_Box2d_OpenYmax(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ukv0(YKHO, *qIxc):\n return ujPI.Bnd_Box_OpenYmax(YKHO, *qIxc)",
"def oiMZ(YKHO):\n return YKHO.maxy",
"def Z7II(YKHO):\n return YKHO.position_y + YKHO.margin_top",
"def yDCK(YKHO):\n return YKHO._collision_rect.y + 25",
"def dlKq(YKHO, LVAh):\n if LVAh == eB_n:\n return 0\n hr... | [
"0.66685474",
"0.6230028",
"0.6222791",
"0.61861676",
"0.6174867",
"0.6119746",
"0.60493153",
"0.6023609",
"0.6016024",
"0.60131276",
"0.59843224",
"0.59717095",
"0.5969215",
"0.5916809",
"0.58939904",
"0.5888222",
"0.5881595",
"0.5874942",
"0.5867335",
"0.5859166",
"0.585772... | 0.6508069 | 1 |
Returns true if this bounding box is open in the Xmax direction. | def fXMj(YKHO, *qIxc):
return ujPI.Bnd_Box2d_IsOpenXmax(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fXMj(YKHO, *qIxc):\n return ujPI.Bnd_Box_IsOpenXmax(YKHO, *qIxc)",
"def ggr0(YKHO, *qIxc):\n return ujPI.Bnd_Box_IsOpenXmin(YKHO, *qIxc)",
"def mASc(YKHO, *qIxc):\n return ujPI.Bnd_Box_IsOpenYmax(YKHO, *qIxc)",
"def ggr0(YKHO, *qIxc):\n return ujPI.Bnd_Box2d_IsOpenXmin(YKHO, *qIxc)",
"def F... | [
"0.8650418",
"0.7708037",
"0.75882566",
"0.7518821",
"0.7484127",
"0.7229682",
"0.7218617",
"0.6906463",
"0.6807362",
"0.65920174",
"0.6567638",
"0.6388174",
"0.63586354",
"0.6303765",
"0.6267946",
"0.61094725",
"0.61094725",
"0.6062759",
"0.5992613",
"0.5967686",
"0.5936086"... | 0.84815514 | 1 |
Returns True if the 2d pnt is out . | def snbo(YKHO, *qIxc):
return ujPI.Bnd_Box2d_IsOut(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RNm2(YKHO) -> bool:\n return YKHO.layers == 1 and YKHO.times == 1",
"def mADr(YKHO):\n return YKHO._grid[0][0] == 0 and YKHO._grid[0][1] == 1 and (YKHO._grid[1][0] == YKHO._width * 1) and (YKHO._grid[1][1] == 1 + YKHO._width * 1)",
"def snbo(YKHO, *qIxc):\n return ujPI.Bnd_Box_IsOut(YKHO, *qIxc)",... | [
"0.68558764",
"0.65999925",
"0.6532571",
"0.6215357",
"0.6178642",
"0.60518456",
"0.6027423",
"0.6027423",
"0.6018433",
"0.5992683",
"0.5992683",
"0.5957578",
"0.5906453",
"0.5888954",
"0.5846709",
"0.5844243",
"0.58411825",
"0.5836872",
"0.5815548",
"0.5801672",
"0.57690907"... | 0.73486304 | 0 |
Returns the V parameter on shape | def cAlv(YKHO, *qIxc):
return ujPI.Bnd_Sphere_V(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yhso(YKHO):\n return YKHO.V",
"def cAlv(YKHO):\n return YKHO._V",
"def cAlv(YKHO):\n return YKHO._V",
"def cAlv(YKHO):\n return YKHO._V",
"def WLyk(YKHO) -> h8nf[oyIN.ndarray]:\n\n def SRF1(ej8u: VariationalFM) -> oyIN.ndarray:\n return ej8u.V_var\n return hk4z(YKHO, SRF1)",
... | [
"0.7176973",
"0.6764946",
"0.6764946",
"0.6764946",
"0.6740722",
"0.6524945",
"0.64464873",
"0.6433711",
"0.64150953",
"0.612257",
"0.61033416",
"0.6071266",
"0.6062135",
"0.6032268",
"0.60114896",
"0.6008144",
"0.59795374",
"0.59702677",
"0.5964269",
"0.59550136",
"0.5930177... | 0.5516566 | 68 |
Converts human size to raw bytes. | def ntSl(zNig, naF9=1024, VWe_=' '):
if not zNig:
return 0
zNig, ZI14 = zNig.split(VWe_, 1)
ZI14 = ZI14[0]
try:
aM8h = {'K': naF9, 'M': naF9 ** 2, 'G': naF9 ** 3, 'T': naF9 ** 4, 'P': naF9 ** 5}[ZI14]
except KeyError:
aM8h = 1
return int(float(zNig) * aM8h) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gl70(zNig):\n if not zNig:\n return ''\n naF9 = 2 ** 10\n jEZx = 0\n L2pL = {0: '', 1: 'Ki', 2: 'Mi', 3: 'Gi', 4: 'Ti'}\n while zNig > naF9:\n zNig /= naF9\n jEZx += 1\n return str(round(zNig, 2)) + ' ' + L2pL[jEZx] + 'B'",
"def u8YV(zNig):\n rmc3 = ('B', 'K', 'M', '... | [
"0.7551596",
"0.74305725",
"0.6996852",
"0.69877595",
"0.69326645",
"0.6904758",
"0.68815845",
"0.6836061",
"0.6653596",
"0.6633852",
"0.65997845",
"0.6589997",
"0.6584985",
"0.655749",
"0.65532583",
"0.65532583",
"0.6518818",
"0.65026194",
"0.64946115",
"0.64925283",
"0.6469... | 0.5870953 | 80 |
Deep merges one dict (u) into another (d). | def PPYP(Csk6, P6bq):
E5BI = [(Csk6, P6bq)]
while E5BI:
Csk6, P6bq = E5BI.pop(0)
for G1Hx, Ty9i in P6bq.items():
if not isinstance(Ty9i, g760.abc.Mapping):
Csk6[G1Hx] = Ty9i
else:
rDXN = Csk6.setdefault(G1Hx, {})
if not isin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PPYP(AjzU, _sQW):\n for G1Hx, Ty9i in AjzU.copy().items():\n if G1Hx in _sQW:\n if all((isinstance(tTpl, ZrSl) for tTpl in (Ty9i, _sQW[G1Hx]))):\n _sQW[G1Hx] = c7yn.deep_merge(Ty9i, _sQW[G1Hx])\n if G1Hx == '*':\n for tT41, MJJ3 in _sQW.items():\n ... | [
"0.7787253",
"0.76782864",
"0.76569384",
"0.7640773",
"0.7549339",
"0.74524367",
"0.7436307",
"0.7434447",
"0.7411334",
"0.7377388",
"0.73726463",
"0.73076856",
"0.7300631",
"0.7296037",
"0.7272856",
"0.7259761",
"0.7259761",
"0.7259761",
"0.72239405",
"0.721918",
"0.7217711"... | 0.88200444 | 0 |
Returns n inches in mm | def y5_h(exwG):
return exwG * 25.4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HEa8(y5_h):\n cpvk = y5_h * 25.4\n return cpvk",
"def HEa8(y5_h):\n cpvk = y5_h * 25.4\n return cpvk",
"def A5xF(zNig):\n return zNig / 2.54",
"def A5xF(zNig):\n return zNig / 2.54",
"def A5xF(zNig):\n return zNig / 2.54",
"def fHv_(MBMw):\n odFJ = MBMw * 0.0393701\n return... | [
"0.7811637",
"0.7772696",
"0.7425956",
"0.7425956",
"0.7425956",
"0.7162269",
"0.71501285",
"0.68918973",
"0.68142784",
"0.6613716",
"0.6584105",
"0.65016294",
"0.6259031",
"0.62176377",
"0.62047887",
"0.6189544",
"0.61699003",
"0.6157781",
"0.61545616",
"0.60760623",
"0.6047... | 0.85428476 | 0 |
Searches all the not uniq items in the 'list', and returns whith a list of pairs. e.g. (3, 15) means 15 is three times. | def fM_6(list):
GGMH = {}
for YRbF in set(list):
UHFx = list.count(YRbF)
if UHFx != 1:
GGMH[YRbF] = UHFx
return GGMH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fr5W(aqea):\n return [(jvSB, aqea[or8S + 1] if -1 else None) for or8S, jvSB in enumerate(aqea) if or8S < len(aqea) - 1]",
"def Wf_9(vC9B):\n return [(vC9B[YRbF], vC9B[r845]) for YRbF in range(len(vC9B) - 1) for r845 in range(YRbF + 1, len(vC9B))]",
"def rL8p(vC9B):\n return {(vC9B[2 * YRbF], vC9B[... | [
"0.7174017",
"0.6870864",
"0.67969817",
"0.6594823",
"0.6562065",
"0.6511249",
"0.6508608",
"0.64417917",
"0.64305633",
"0.6430308",
"0.6417646",
"0.6409151",
"0.63901544",
"0.6376144",
"0.6371336",
"0.6370985",
"0.6324909",
"0.63188666",
"0.6288483",
"0.6284568",
"0.62677413... | 0.6749724 | 3 |
This test is designed to ensure that the stats in a yahoo league are tracked in our player record model. test_stat_categorie_maps_to_player_record() returns True if all the stat_categories mapping have attributes on the player record table | def IvDJ(YKHO, zbRY):
T370 = MKNT()
h3p1 = []
for Sa_m in zbRY:
if hasattr(T370, zbRY[Sa_m]):
h3p1.append(zbRY[Sa_m])
else:
print('No player record attribute found for ' + str(zbRY[Sa_m]))
YKHO.assertEqual(len(h3p1), len(zbRY)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jf_z(YKHO):\n W061 = YKHO.overview_map.hasUniqueCategoryValues('Treatment')\n YKHO.assertEqual(W061, False)\n W061 = YKHO.overview_map.hasUniqueCategoryValues('DOB')\n YKHO.assertEqual(W061, False)\n W061 = YKHO.overview_map.hasUniqueCategoryValues('Description')\n YKHO.assertEqual(W061, True... | [
"0.5461009",
"0.5447617",
"0.5395552",
"0.52879405",
"0.526125",
"0.52468425",
"0.52432746",
"0.5205837",
"0.5179049",
"0.5148527",
"0.51441634",
"0.51413816",
"0.5109449",
"0.5108265",
"0.5103245",
"0.5102577",
"0.5102577",
"0.5095103",
"0.5074291",
"0.50672054",
"0.5060275"... | 0.7482615 | 0 |
convert ``r,phi`` to ``x,y`` | def q0Bk(Mkmy, rVnq):
WKvO = Mkmy * oyIN.cos(rVnq)
LVAh = Mkmy * oyIN.sin(rVnq)
return (WKvO, LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZyIT(Mkmy, q7In):\n WKvO = Mkmy * oyIN.cos(q7In)\n LVAh = Mkmy * oyIN.sin(q7In)\n return (WKvO, LVAh)",
"def lJhO(Mkmy: float, rVnq: float):\n WKvO = Mkmy * oyIN.cos(rVnq)\n LVAh = Mkmy * oyIN.sin(rVnq)\n return (WKvO, LVAh)",
"def q0EY(rVnq, Mkmy):\n WUjO = Y_1E(rVnq)\n WKvO = Mkmy... | [
"0.7185958",
"0.6981702",
"0.69398457",
"0.6625258",
"0.64972186",
"0.6435958",
"0.6418018",
"0.6313123",
"0.62885135",
"0.61631876",
"0.61570853",
"0.6152783",
"0.614585",
"0.6126815",
"0.60812986",
"0.60257787",
"0.6005319",
"0.5997155",
"0.59835446",
"0.5957166",
"0.595048... | 0.7212485 | 0 |
``x_0 = (r0, phi0)`` | def QjGv(YKHO, k0lF=500, WTkW=(5, 6), nJ9F=(220, -20)):
XyWv = nJ9F[1]
ThUk = oyIN.deg2rad(XyWv)
Mkmy = nJ9F[0]
WTkW = (WTkW[0], oyIN.deg2rad(WTkW[0]))
YKHO.map += oyIN.asarray(oyIN.round(iCei(YKHO._X_centered, YKHO._Y_centered, k0lF, WTkW, (Mkmy, oyIN.pi / 2 - ThUk))), dtype=oyIN.int32)
YKHO.ma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rrGY(YKHO, WKvO):\n return (1 - (1 - WKvO) ** (4 / 3)) ** (3 / 2) / (2 * oyIN.sqrt(2))",
"def Zvhz(YKHO, nJ9F):\n pass",
"def nJ9F(YKHO, nJ9F):\n YKHO._x0 = P8oC.getvector(nJ9F, 3)",
"def FIMM(YKHO, nJ9F, Mkmy):\n YKHO.x, YKHO.r = (nJ9F, Mkmy)",
"def nJ9F(YKHO):\n return YKHO.params['x0'... | [
"0.6773015",
"0.67065674",
"0.65427595",
"0.641969",
"0.64076906",
"0.64018947",
"0.62991786",
"0.6063497",
"0.6063497",
"0.59850806",
"0.58149034",
"0.5756096",
"0.571053",
"0.57066786",
"0.5703834",
"0.5679786",
"0.5662409",
"0.55801475",
"0.55776656",
"0.5533589",
"0.54922... | 0.0 | -1 |
``x_0 = (r0, phi0)`` | def JzFk(YKHO, k0lF=750, WTkW=(6, 8), nJ9F=(260, -20)):
XyWv = nJ9F[1]
ThUk = oyIN.deg2rad(XyWv)
Mkmy = nJ9F[0]
WTkW = (WTkW[0], oyIN.deg2rad(WTkW[0]))
YylR = oyIN.deg2rad(30)
YKHO.map += oyIN.asarray(oyIN.round(iCei(YKHO._X_centered, YKHO._Y_centered, k0lF, WTkW, (Mkmy, oyIN.pi / 2 + YylR - ThU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rrGY(YKHO, WKvO):\n return (1 - (1 - WKvO) ** (4 / 3)) ** (3 / 2) / (2 * oyIN.sqrt(2))",
"def Zvhz(YKHO, nJ9F):\n pass",
"def nJ9F(YKHO, nJ9F):\n YKHO._x0 = P8oC.getvector(nJ9F, 3)",
"def FIMM(YKHO, nJ9F, Mkmy):\n YKHO.x, YKHO.r = (nJ9F, Mkmy)",
"def nJ9F(YKHO):\n return YKHO.params['x0'... | [
"0.67714995",
"0.6707333",
"0.65417373",
"0.64180106",
"0.6407907",
"0.6401735",
"0.6299775",
"0.6063766",
"0.6063766",
"0.5983661",
"0.5812017",
"0.5753992",
"0.5712608",
"0.57058954",
"0.57038194",
"0.567843",
"0.5662948",
"0.557786",
"0.55757797",
"0.55325687",
"0.54888517... | 0.0 | -1 |
Create a square grid of integers of gaussian shape e.g. gaussian_grid() returns array([[ 1, 4, 7, 4, 1], [ 4, 20, 33, 20, 4], [ 7, 33, 55, 33, 7], [ 4, 20, 33, 20, 4], [ 1, 4, 7, 4, 1]]) | def vi_D(zNig=5):
r8hN = zNig / 2
exwG = r8hN + 1
WKvO, LVAh = Au3N[-r8hN:exwG, -r8hN:exwG]
rZpw = 10
Oa1e = rZpw * (WKvO ** 4 + LVAh ** 4)
return Oa1e.round().astype(int) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vi_D(zNig=5):\n r8hN = zNig / 2\n exwG = r8hN + 1\n WKvO, LVAh = Au3N[0 - r8hN:exwG, r8hN:exwG]\n rZpw = kLQb(r8hN ** 2)\n Oa1e = rZpw * kLQb(-0.5 * (WKvO ** 2 + LVAh ** 2))\n return Oa1e.round().astype(int)",
"def WMxl(H2v2, TVTK):\n return [[tuKI.randint(0, 9) for bGrB in range(TVTK)] ... | [
"0.7230437",
"0.70491654",
"0.6896554",
"0.6797775",
"0.67517984",
"0.67414147",
"0.67176104",
"0.65884995",
"0.65601015",
"0.65246475",
"0.65204054",
"0.65018106",
"0.64924335",
"0.6470169",
"0.6438982",
"0.64149153",
"0.64113516",
"0.64110416",
"0.6285341",
"0.62719643",
"0... | 0.72480434 | 0 |
Format a time delta. | def TmWH(gnrY):
kbsg = fCoM(seconds=gnrY)
Sm0u = kbsg.days
Wave, wXAI = divmod(kbsg.seconds, 3600)
O66n, C6wh = divmod(wXAI, 60)
if C6wh == 0:
return '<1 s'
KCHu = '%s s' % C6wh
if O66n:
KCHu = '%d m ' % O66n + KCHu
if Wave:
KCHu = '%d h ' % Wave + KCHu
if Sm0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E7HQ(RA_F):\n lcOE = RA_F.total_seconds()\n if lcOE < 60:\n return '%0.2d secs' % lcOE\n Wave = 0\n if lcOE > 3600:\n Wave = lcOE / 3600.0\n lcOE -= int(Wave) * 3600\n eRPr = lcOE / 60\n lcOE -= eRPr * 60\n return '%0.2d:%0.2d' % (Wave, eRPr)",
"def XvkK(YKHO, RA_F, ... | [
"0.8048436",
"0.7500681",
"0.7436088",
"0.70671225",
"0.66903746",
"0.664867",
"0.66028833",
"0.66019565",
"0.6593098",
"0.65595055",
"0.65538734",
"0.6531699",
"0.6524049",
"0.6466254",
"0.6441042",
"0.6434041",
"0.64218915",
"0.63657796",
"0.62945265",
"0.62735516",
"0.6193... | 0.5669779 | 72 |
Convert a SQLAlchemy query result to a DataFrame. | def xpSY(xDcj, WfCS=None):
if WfCS is None:
WfCS = [WKvO['name'] for WKvO in xDcj.column_descriptions]
nPrm = [{G1Hx: Ty9i for G1Hx, Ty9i in zip(WfCS, WKvO)} for WKvO in xDcj]
if len(nPrm) == 0:
return rLdf.DataFrame()
return rLdf.DataFrame(nPrm).loc[:, WfCS] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F2fl(YKHO, xDcj):\n try:\n return rLdf.read_sql_query(xDcj, YKHO.conn)\n except rLdf.pandas.io.sql.DatabaseError:\n print('Execution failed. Database error')",
"def kTk2(xDcj):\n jQ3Z = rLdf.DataFrame(xDcj.all())\n jQ3Z.columns = [WKvO['name'] for WKvO in xDcj.column_descriptions]\n... | [
"0.7974691",
"0.782032",
"0.7771702",
"0.74412435",
"0.7411473",
"0.73821586",
"0.71370083",
"0.7129238",
"0.71088064",
"0.7095191",
"0.7056418",
"0.7052933",
"0.70033854",
"0.69785625",
"0.6957465",
"0.67488027",
"0.6739285",
"0.6708781",
"0.6693363",
"0.6657111",
"0.663588"... | 0.69362646 | 15 |
Create app, instantiate test client, drop DB after use. | def P4t4():
SCWY = LUif(**aKk7)
SCWY.test_client_class = NxUR
SCWY.client = SCWY.test_client()
SCWY.user = CBIr.__get__(SCWY)
SCWY.admin = dp9S.__get__(SCWY)
yield SCWY
JdpX(SCWY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n YKHO.app = LUif()\n YKHO.client = YKHO.app.test_client\n aiy_(YKHO.app, c_Am)\n with YKHO.app.app_context():\n NCls.drop_all()",
"def h1z1() -> L2w0:\n P4t4 = LUif('app.config.TestingConfig')\n with P4t4.app_context():\n NCls.drop_all()\n NCls.create_all()... | [
"0.7991045",
"0.7906864",
"0.7849773",
"0.7790533",
"0.7781965",
"0.7752498",
"0.7750667",
"0.77222246",
"0.7707221",
"0.76910377",
"0.7633471",
"0.7610287",
"0.7609026",
"0.7591962",
"0.75794077",
"0.7558541",
"0.7519672",
"0.7518701",
"0.75097805",
"0.7500525",
"0.74830943"... | 0.7674222 | 10 |
Computes the sigmoid of z | def m1Hg(epBp):
WKvO = ZylS.placeholder(ZylS.float32, name='x')
m1Hg = ZylS.sigmoid(WKvO)
with ZylS.Session() as cb_Q:
Aofo = cb_Q.run(m1Hg, feed_dict={WKvO: epBp})
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1Hg(epBp):\n return mFhB(epBp)",
"def m1Hg(epBp):\n return 1 / (1 + oyIN.e ** (-epBp))",
"def m1Hg(epBp):\n return 1.0 / (1.0 + oyIN.exp(-epBp))",
"def m1Hg(epBp):\n return 1 / (1 + tTpl ** (-epBp))",
"def m1Hg(epBp):\n return 1 / (1 + oyIN.exp(-1 * epBp))",
"def m1Hg(epBp):\n retu... | [
"0.9170252",
"0.91089714",
"0.90431756",
"0.9018412",
"0.8966501",
"0.89645237",
"0.8948541",
"0.89334434",
"0.89220953",
"0.8913508",
"0.89105606",
"0.88974535",
"0.8868145",
"0.8850713",
"0.8850039",
"0.8849412",
"0.88442266",
"0.88433564",
"0.8821012",
"0.8819344",
"0.8813... | 0.0 | -1 |
Computes nll loss for the given lists of question and ctx vectors. Note that although hard_negative_idx_per_question in not currently in use, one can use it for the loss modifications. For example weighted NLL with different factors for hard vs regular negatives. | def hzm0(YKHO, foTO: T, S7uM: T, tGW1: list, EXpB: list=None) -> AzJI[Kt_s, int]:
cCrA = YKHO.get_scores(foTO, S7uM)
if len(foTO.size()) > 1:
CCx4 = foTO.size(0)
cCrA = cCrA.view(CCx4, -1)
YRQA = vuvg.log_softmax(cCrA, dim=1)
N77f = vuvg.nll_loss(YRQA, ht2j.tensor(tGW1).to(YRQA.device), ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x_1O(N6Z1, x6A0, _mSQ, gH2v, Ngtq):\n return KQGe.nn.nll_loss(N6Z1, x6A0, _mSQ, gH2v, Ngtq)",
"def x_1O(g4y1, jDK_=1, Ngtq=None, gH2v='valid', **B2fa):\n qIxc = Wov5.parse(locals())\n qIxc['reduction'] = gH2v.upper()\n CqFm = uL8A.NLLLoss\n if QpfX.executing_eagerly():\n return CqFm.ins... | [
"0.63996506",
"0.6294848",
"0.615721",
"0.61047953",
"0.58329815",
"0.5752247",
"0.5723549",
"0.5715525",
"0.5715525",
"0.5715525",
"0.5715525",
"0.5654054",
"0.5613011",
"0.5537946",
"0.55138993",
"0.5495847",
"0.54890305",
"0.5485944",
"0.5472924",
"0.5472407",
"0.54426104"... | 0.6830779 | 0 |
Returns a batch iterator over random Gaussian data. | def I_uC(Ep8u: int, Gzv5: int, yokr: int=0) -> P8oC.BatchIterator:
br1z = yOcR.jit(lambda WKvO: yOcR.random.normal(WKvO, [Ep8u, Gzv5]))
def se9W():
xlLU = TP_I.PRNGSequence(yokr)
while True:
WKvO = br1z(next(xlLU))
yield P8oC.Batch(WKvO, y=oLG2.ones([WKvO.shape[0], 1]))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eOoG(d4ex, fHgE, NlP_, yokr, tuKI=True):\n ht2j.manual_seed(yokr)\n oyIN.random.seed(yokr)\n B9EC, QYVD, _mSQ = jWXT(fHgE, d4ex, tuKI)\n while True:\n yield (tlDQ(NlP_, B9EC, QYVD, _mSQ) / 1.414)",
"def Vs4Q(YKHO) -> bDy6[oyIN.ndarray]:\n return iter(YKHO.gen_sample_array())",
"def lM... | [
"0.7013998",
"0.6690056",
"0.66480947",
"0.65792656",
"0.6513333",
"0.633388",
"0.62997884",
"0.6229444",
"0.62281525",
"0.62077874",
"0.6189904",
"0.61739624",
"0.6168776",
"0.6137008",
"0.6131274",
"0.6103353",
"0.60992235",
"0.6098085",
"0.60685813",
"0.6066413",
"0.606349... | 0.7828929 | 0 |
Add a callback for a signal. | def OdcC(YKHO, db6b, pmON, wohN, mS46):
YKHO.signal_callbacks[pmON, wohN, mS46] = db6b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zQwP(M5BR, s2UY, ldlt):\n zbQn = xuBC.cfuncproto(xuBC.load_so_libforms(), 'fl_add_signal_callback', None, [Bo55.c_int, Iqz3.FL_SIGNAL_HANDLER, Bo55.c_void_p], 'void fl_add_signal_callback(int s, FL_SIGNAL_HANDLER cb,\\n void * data) ')\n xuBC.check_if_flinitialized()\n Ebbr = xuBC.convert_to... | [
"0.7264618",
"0.7046521",
"0.67510474",
"0.6673538",
"0.66259676",
"0.66065484",
"0.6518581",
"0.64805484",
"0.6445092",
"0.63558203",
"0.63544405",
"0.63536763",
"0.6331421",
"0.62464553",
"0.62405044",
"0.6237263",
"0.6205944",
"0.61962056",
"0.61716676",
"0.61559975",
"0.6... | 0.7003299 | 2 |
Test rejecting unauthorized requests. | def yPPa(P4t4, IYoA, DW23, Ysye, FcRk, sd1r, jCCv):
def SIUS(CBIr):
with P4t4.test_client() as x0hE:
MOPg = [('Content-Type', 'application/json'), ('Accept', 'application/json')]
_hkX = x0hE.post(nKyW('invenio_stats.stat_query', access_token=CBIr.allowed_token if CBIr else None), he... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N4J5(YKHO):\n YKHO._error_test(ODk9.HTTPUnauthorized)",
"def fYib(YKHO):\n geh0 = YKHO.client.post(YKHO.url)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def Obx3(YKHO):\n Ylbp = YKHO.not_authenticated.get(gxEw(bKFE), data={})\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTT... | [
"0.7930071",
"0.7877716",
"0.7473721",
"0.7468487",
"0.74605954",
"0.74363685",
"0.74180716",
"0.7410151",
"0.74099183",
"0.73789054",
"0.73595685",
"0.73567754",
"0.73277503",
"0.73277503",
"0.7242594",
"0.7241575",
"0.72240204",
"0.7201577",
"0.7196082",
"0.71945584",
"0.71... | 0.0 | -1 |
Returns current silences list | def yvcd(YKHO, p9K5, qIxc):
B0gN = Hl2b(alertmanager_address=YKHO.config['server_address'])
Aofo = B0gN.get_silences()
return {'silences': Aofo} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JEvR(YKHO):\n return YKHO.__silence",
"def q04H(YKHO) -> list[str]:\n if YKHO._silence is None:\n print(YKHO.__class__.silence.__doc__)\n raise hZzz('The *silence* property has not been set (see above).')\n return YKHO._silence",
"def mYaJ(YKHO):\n if YKHO._state != t73R.STATE_ON:... | [
"0.64256454",
"0.62111056",
"0.5945464",
"0.5746703",
"0.5671169",
"0.5633065",
"0.56152606",
"0.5595529",
"0.5451854",
"0.54360914",
"0.54170954",
"0.54022837",
"0.53819567",
"0.5363648",
"0.5361411",
"0.53340733",
"0.5307792",
"0.5294918",
"0.5275808",
"0.5262512",
"0.52267... | 0.6065061 | 2 |
Create a new, empty, evaluation tree. | def FIMM(YKHO, DumB=[]):
super(UOh0, YKHO).__init__(DumB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7La(YKHO, J_Es):\n pass",
"def CViS(YKHO, nJGx, jZ4I, NArs=None, huG4=False):\n if NArs is None:\n VN2L = nJGx(YKHO.current_parent, ast=jZ4I)\n else:\n VN2L = nJGx(YKHO.current_parent, ast=jZ4I, **NArs)\n if not huG4:\n YKHO.push_state(VN2L)\n return VN2L",
"def NVU1(YK... | [
"0.61534745",
"0.613051",
"0.61201304",
"0.58557874",
"0.5804677",
"0.5803692",
"0.5782211",
"0.5778226",
"0.57311255",
"0.5698479",
"0.5681894",
"0.5668863",
"0.56675756",
"0.56252235",
"0.561142",
"0.5610517",
"0.55718136",
"0.5516273",
"0.55090255",
"0.54896533",
"0.548830... | 0.53173447 | 42 |
Split this tree into subtrees in order to reduce the maximum size of any tree (useful for limiting memory consumption or for using multiple cores). Must specify either maxSubTreeSize or numSubTrees. | def lpha(YKHO, iEXi, xOGF=None, TUH3=None, wp5n=0):
YGfs = MK1i.time()
Qj_h = pqr3.build_printer(wp5n)
if xOGF is None and TUH3 is None or (xOGF is not None and TUH3 is not None):
raise ValueError('Specify *either* maxSubTreeSize or numSubTrees')
if TUH3 is not None and TUH3 <= 0:
raise ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpha(YKHO, iEXi, xOGF=None, TUH3=None, wp5n=0):\n YGfs = MK1i.time()\n Qj_h = pqr3.build_printer(wp5n)\n if xOGF is None and TUH3 is None or (xOGF is not None and TUH3 is not None):\n raise ValueError('Specify *either* maxSubTreeSize or numSubTrees')\n if TUH3 is not None and TUH3 <= 0:\n ... | [
"0.612445",
"0.57817036",
"0.55767655",
"0.5573259",
"0.5446567",
"0.5407228",
"0.5319436",
"0.52336556",
"0.5156939",
"0.5057983",
"0.5050872",
"0.50443584",
"0.50443584",
"0.49832764",
"0.4979916",
"0.49100825",
"0.4865076",
"0.48417714",
"0.47893655",
"0.47693476",
"0.4755... | 0.6239668 | 0 |
Create a copy of this evaluation tree. | def jth9(YKHO):
piAD = YKHO._copyBase(UOh0(YKHO[:]))
return piAD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n piAD = YKHO._copyBase(STPm(YKHO[:]))\n piAD.cachesize = YKHO.cachesize\n return piAD",
"def FzJk(YKHO) -> 'Tree':\n return pake(YKHO)",
"def jth9(YKHO):\n n97I = o7DN(YKHO.state.copy(), YKHO.parent, YKHO.children.copy(), YKHO.RRT, YKHO.path_length)\n n97I.vs = YKHO.vs.copy()... | [
"0.7287765",
"0.6828944",
"0.6567195",
"0.6477056",
"0.64676905",
"0.6458334",
"0.63910806",
"0.6382213",
"0.63544357",
"0.6347705",
"0.62880975",
"0.62553304",
"0.62302727",
"0.620122",
"0.61473227",
"0.61250377",
"0.6098586",
"0.60982025",
"0.6052151",
"0.60474586",
"0.5953... | 0.75811714 | 0 |
Encode the ensemble into CSV data. Each line is a value with a the datetime, KEY, subsystem config, subsystem code, bin and beam number. | def VcWR(YKHO, SEYq=True, lxGD=True, jqgY=True, Z64L=True, lHRx=True, XEBy=True, nHfq=True, sBSD=True, i9Tf=True, ijGK=True, bsCK=True, GWu0=True, DAHp=True):
Aofo = []
JRYC = qcWV.datetime.now()
eXeU = 0
nkck = 0
if YKHO.IsAncillaryData:
eXeU = YKHO.AncillaryData.FirstBinRange
nkck ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VcWR(YKHO, JRYC, FAuI, myi1, eXeU, nkck):\n FMmI = []\n for DAMg in range(YKHO.element_multiplier):\n for NeqB in range(YKHO.num_elements):\n wEf2 = YKHO.Amplitude[NeqB][DAMg]\n FMmI.append(P7u4.gen_csv_line(JRYC, P7u4.CSV_AMP, FAuI, myi1, NeqB, DAMg, eXeU, nkck, wEf2))\n ... | [
"0.66174453",
"0.6232857",
"0.59570146",
"0.5839512",
"0.57570165",
"0.5737734",
"0.563033",
"0.5566788",
"0.54548496",
"0.5448341",
"0.54375726",
"0.5428334",
"0.54278255",
"0.5414356",
"0.54064476",
"0.5400729",
"0.5382999",
"0.53818715",
"0.5376231",
"0.5365959",
"0.532182... | 0.7242299 | 0 |
Calculate the magnitude of the water current. | def QEDN(bMLW, GsVy, WnvX):
if not P7u4.is_bad_velocity(bMLW) and (not P7u4.is_bad_velocity(GsVy)) and (not P7u4.is_bad_velocity(WnvX)):
return epAf.sqrt(bMLW * bMLW + GsVy * GsVy + WnvX * WnvX)
else:
return P7u4.BadVelocity | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n return PZyS(YKHO.dot(YKHO))",
"def YXbZ(YKHO):\n return epAf.sqrt(Pusg(lambda WKvO, LVAh: WKvO + LVAh, [WKvO ** 2 for WKvO in YKHO.vector]))",
"def QEDN(YKHO, Ebru, Oz1B='AB'):\n if Oz1B not in ('AB', 'Vega'):\n raise ValueError('`system` must be one of `AB` or `Vega`')\n D... | [
"0.7202431",
"0.71782404",
"0.71533036",
"0.71288294",
"0.71042",
"0.7062428",
"0.7040869",
"0.7040869",
"0.7018303",
"0.69488895",
"0.6895417",
"0.67627156",
"0.6689087",
"0.66681236",
"0.6639145",
"0.6598193",
"0.65726405",
"0.6491566",
"0.6464247",
"0.64553946",
"0.6430863... | 0.0 | -1 |
Convert the given Int32 value to 4 bytes. | def _WCm(BWXx):
return BlNT.pack('i', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qJsb(exwG):\n return int(exwG).to_bytes(4, byteorder='little', signed=True)",
"def _WCm(WKvO):\n return WKvO.to_bytes(4, 'little')",
"def CB9u(exwG):\n return int(exwG).to_bytes(4, byteorder='little', signed=False)",
"def Fh76(BWXx: int, dmhX: str='little') -> bytes:\n return tMMy(BWXx, 32, d... | [
"0.79040617",
"0.7796502",
"0.7350686",
"0.7304055",
"0.7253622",
"0.7185108",
"0.7105476",
"0.70497894",
"0.6981153",
"0.69356984",
"0.66281474",
"0.6532184",
"0.6504955",
"0.6503289",
"0.64240265",
"0.640567",
"0.62851393",
"0.61281306",
"0.6124896",
"0.60982025",
"0.607839... | 0.77152675 | 2 |
Get the dataset size. | def kGxc(ilw4, Pxxw, LyhY, s2i_):
_7Ln = 4
if ilw4 == 50:
_7Ln = 1
elif ilw4 == 20:
_7Ln = 4
elif ilw4 == 10:
_7Ln = 4
return LyhY * s2i_ * _7Ln + P7u4.GetBaseDataSize(Pxxw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hU8i(YKHO):\n return YKHO.dataset.size",
"def jiw9(YKHO):\n return YKHO._data_size",
"def hU8i(YKHO):\n if not YKHO._dataset_size:\n YKHO._dataset_size = LxBq(YKHO._hparams.source_dataset.files)\n return YKHO._dataset_size",
"def zNig(YKHO):\n return YKHO.data.size",
"def zNig(YKH... | [
"0.91403663",
"0.849389",
"0.8391036",
"0.8105561",
"0.8068119",
"0.80425644",
"0.7977297",
"0.78925276",
"0.78925276",
"0.78925276",
"0.78925276",
"0.78908396",
"0.78482926",
"0.78434086",
"0.7824782",
"0.7820051",
"0.7820051",
"0.7820051",
"0.7820051",
"0.7820051",
"0.77534... | 0.73454875 | 96 |
Test EndpointNotFound behavior. A missing endpoint entry should not explode. | def inlt(YKHO, qv1X):
qv1X.side_effect = lT_r.EndpointNotFound()
YKHO.client._get_resource_provider(YKHO.context, 'fake')
qv1X.reset_mock()
YKHO.client._get_resource_provider(YKHO.context, 'fake')
YKHO.assertTrue(qv1X.called) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sdse():\n geh0 = x0hE.get('/unknown_endpoint', headers={'content-type': 'application/json'})\n assert geh0.status_code == jGRS.HTTP_404_NOT_FOUND\n assert geh0.json() == {'detail': 'Not Found'}",
"def ZQkg(YKHO):\n YKHO._error_test(ODk9.HTTPNotFound)",
"def fnbe(YKHO):\n YKHO.os_fixture.v3_t... | [
"0.70272326",
"0.6987068",
"0.68113345",
"0.671871",
"0.6663649",
"0.6604881",
"0.66024923",
"0.65763974",
"0.6547228",
"0.6545441",
"0.6503224",
"0.6484738",
"0.6479871",
"0.64623535",
"0.6448783",
"0.64476264",
"0.6418116",
"0.64123875",
"0.64085877",
"0.6393279",
"0.638925... | 0.76004606 | 0 |
Tests that the method which manipulates an existing doubledup allocation for a move operation to remove the source host results in sending placement the proper payload to PUT /allocations/{consumer_uuid} call. | def VZB3(YKHO):
mxYB = TMAJ.Mock(status_code=200)
mxYB.json.side_effect = [{'allocations': {jEHC.source: {'resource_provider_generation': 42, 'resources': {'VCPU': 1, 'MEMORY_MB': 1024}}, jEHC.destination: {'resource_provider_generation': 42, 'resources': {'VCPU': 1, 'MEMORY_MB': 1024}}}, 'consumer_generation':... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nm11(YKHO, gshJ):\n bslP = {'allocations': {}}\n Oeov = TMAJ.Mock()\n Oeov.json.return_value = bslP\n YKHO.mock_get.side_effect = [Oeov, YKHO.target_rsp]\n _hkX = YKHO.client.move_allocations(YKHO.context, YKHO.source_consumer_uuid, YKHO.target_consumer_uuid)\n YKHO.assertTrue(_hkX)\n YKHO... | [
"0.6858059",
"0.646567",
"0.61765456",
"0.6135598",
"0.6034987",
"0.58021337",
"0.5659526",
"0.55025584",
"0.54636395",
"0.54448915",
"0.5430589",
"0.5416377",
"0.54057884",
"0.53967476",
"0.5385351",
"0.5379422",
"0.5374467",
"0.5368022",
"0.5365991",
"0.5365116",
"0.5358431... | 0.655027 | 1 |
Tests that the method which manipulates an existing doubledup allocation with DISK_GB being consumed from a shared storage provider for a move operation to remove the source host results in sending placement the proper payload to PUT /allocations/{consumer_uuid} call. | def lw5L(YKHO):
mxYB = TMAJ.Mock(status_code=200)
mxYB.json.side_effect = [{'allocations': {jEHC.source: {'resource_provider_generation': 42, 'resources': {'VCPU': 1, 'MEMORY_MB': 1024}}, jEHC.shared_storage: {'resource_provider_generation': 42, 'resources': {'DISK_GB': 100}}, jEHC.destination: {'resource_provi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VZB3(YKHO):\n mxYB = TMAJ.Mock(status_code=200)\n mxYB.json.side_effect = [{'allocations': {jEHC.source: {'resource_provider_generation': 42, 'resources': {'VCPU': 1, 'MEMORY_MB': 1024}}, jEHC.destination: {'resource_provider_generation': 42, 'resources': {'VCPU': 1, 'MEMORY_MB': 1024}}}, 'consumer_gener... | [
"0.69323504",
"0.6891966",
"0.67952687",
"0.6316012",
"0.6152829",
"0.6024215",
"0.5933684",
"0.5874035",
"0.5679327",
"0.56697303",
"0.56345683",
"0.56261957",
"0.559165",
"0.55735576",
"0.5564316",
"0.553406",
"0.54666656",
"0.5445933",
"0.54440683",
"0.5409861",
"0.5393886... | 0.69750386 | 0 |
Given a cause_id, gbd_round_id, and codcorrect version id, return a dataframe of imputed LnASDR fit for use in the given round. This function applies to steps 4+iterative for GBD 2019 and steps 1+iterative for GBD 2020. It can retrieve cause specific LnASDR for all combinations of cause and codcorrect version ever used... | def Bo4f(UnFI, bvse, kxpO):
IznC = LeXo.format(cause_id=UnFI, codcorrect_version_id=bvse)
Sd0C = GkAb(RCq5.format(GBD_ROUND=T8ps(kxpO))) / GkAb(IznC)
RKD7 = G9jH.getLogger(__name__)
RKD7.info(f'reading ASDR from {Sd0C}')
try:
jQ3Z = rLdf.read_hdf(Sd0C)
except FileNotFoundError:
R... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PRs9(YKHO, jQ3Z):\n jQ3Z = krlf(jQ3Z, ['data_type_id'], **YKHO.cache_options)\n _AVA = YKHO.VA in jQ3Z['data_type_id'].unique()\n if YKHO.needs_bridging(_AVA):\n khdS = YKHO.get_sheet_name(_AVA)\n SdVc = rLdf.read_excel(YKHO.bridge_map_path, sheetname=khdS)\n SdVc = SdVc[['acause'... | [
"0.5293278",
"0.5200785",
"0.50221",
"0.48358947",
"0.4826578",
"0.48214978",
"0.47929785",
"0.47698998",
"0.47030774",
"0.46369737",
"0.45942262",
"0.4534991",
"0.45256627",
"0.45027718",
"0.44576678",
"0.44565728",
"0.44255874",
"0.4414522",
"0.43951112",
"0.4391517",
"0.43... | 0.65341944 | 0 |
Uses { EmojiParserparseFromUnicode(String, EmojiParser.EmojiTransformer)} to parse unicode emojis to ASCII string " ||emoji_alias|| ". | def E8L0(l5Ny):
return l5Ny | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xOvt():\n XUqP = DNEC['heart']\n cZzz = Xz2w.precreate(202305240006, name='Yukari')\n for WbAn, sGEu in (({}, None), ({'emoji_name': None}, None), ({'emoji_name': XUqP.unicode}, XUqP), ({'emoji_name': None, 'emoji_id': str(cZzz.id)}, cZzz)):\n hlel = YkXc(WbAn)\n Qg87.assert_is(hlel, sGE... | [
"0.66105366",
"0.659297",
"0.6433123",
"0.621881",
"0.60683155",
"0.6063009",
"0.5913747",
"0.5899762",
"0.58437294",
"0.5842089",
"0.5787891",
"0.5740258",
"0.5731933",
"0.5727554",
"0.5722948",
"0.5651183",
"0.56351733",
"0.5634066",
"0.5627088",
"0.5624991",
"0.5617374",
... | 0.7690029 | 0 |
Replaces repeating characters in String | def ebj1(l5Ny):
return S0mm.replace_repeating_characters(l5Ny, '$1') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pmur(YKHO, l5Ny):\n return ZbWC.sub('(.)\\\\2+', '\\\\1', l5Ny)",
"def wPFE(KCHu):\n return KCHu",
"def XxRj(YKHO, KCHu: str) -> str:\n while YKHO._color_and_repeater_regexp.search(KCHu):\n KCHu = YKHO._insert_reset_char(KCHu)\n KCHu = YKHO._match_and_remove_repeater(KCHu)\n retur... | [
"0.7625324",
"0.70385396",
"0.68327165",
"0.67074865",
"0.6671211",
"0.6620018",
"0.6579727",
"0.65698737",
"0.6556426",
"0.64036167",
"0.6353906",
"0.6293374",
"0.62665826",
"0.6252373",
"0.6201967",
"0.61807525",
"0.61644185",
"0.6126935",
"0.61254996",
"0.6121367",
"0.6062... | 0.78152174 | 0 |
Convert open3d.geometry.PointCloud object to [4, N] array [x_1 , x_2 , .. ] xyz_v = [y_1 , y_2 , .. ] [z_1 , z_2 , .. ] [ 1 , 1 , .. ] | def kBu2(YKHO, cEe2, vShI, g2pA=True):
Mo_8 = oyIN.asarray(cEe2.points)
if g2pA:
ebGi = YKHO.hv_in_range(Mo_8[:, 0], Mo_8[:, 1], [-50, 50], fov_type='h')
Mo_8 = Mo_8[ebGi]
vShI = vShI[ebGi]
R5wE = oyIN.ones((Mo_8.shape[0], 1), dtype=oyIN.float64)
ZmuO = oyIN.concatenate((Mo_8, R5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I5JP(LTIa):\n cEe2 = GIv6.geometry.PointCloud()\n cEe2.points = GIv6.utility.Vector3dVector(LTIa)\n return cEe2",
"def ii3N(SqIz):\n RBVb = []\n for a1PO in SqIz:\n RBVb.append(RxOL(oyIN.float32(a1PO[EcVT]), oyIN.float32(a1PO[fuBA]), oyIN.float32(a1PO[Nk6w])))\n return RBVb",
"def ... | [
"0.7286944",
"0.72601116",
"0.68690187",
"0.68104565",
"0.67531294",
"0.62464756",
"0.6229352",
"0.62074524",
"0.6174182",
"0.6156095",
"0.6154968",
"0.60703796",
"0.6045163",
"0.6010847",
"0.6007154",
"0.59702325",
"0.596738",
"0.5966244",
"0.59505725",
"0.5926261",
"0.59219... | 0.0 | -1 |
Create "dots" plot. If grid_nrow OR grid_ncol is given, will attempt to create grid to fit ndots with given nrow/ncol. Will both are given, will raise error if cannot form a grid to fit ndots. If none are given, will create a square grid to fit ndots. | def L0cE(yPFE, Th9m, IncI=None, gDCc=None, v5wB=10, IDGo=10, crIZ='#bdc3c7', svTW='#2980b9', _5yy='o', uK3y=10, kvDZ=True, WxPI={}):
if Th9m > yPFE:
raise 'filled_dots must be smaller than ndots'
if (IncI and gDCc) and IncI * gDCc != yPFE:
raise Exception(f'Only either of nrow or ncol allowed fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wq6S(aUKP, olTx, Je0U=None, GKAS=None):\n Cs6h = QrM1.GridSpec(nrows=aUKP, ncols=olTx, wspace=Je0U, hspace=GKAS)\n yield Cs6h",
"def WMxl(HN6s, co3n, yPFE):\n if HN6s * co3n < yPFE:\n raise Exception('ndots must be <= than grid size')\n usx6 = oyIN.arange(1, HN6s + 1)\n WfCS = oyIN.aran... | [
"0.64554465",
"0.6188541",
"0.59159935",
"0.5662064",
"0.5634788",
"0.56104046",
"0.5601841",
"0.55912083",
"0.5485552",
"0.5462076",
"0.5438313",
"0.54247725",
"0.53843087",
"0.5330758",
"0.5316493",
"0.53010905",
"0.52846634",
"0.5279323",
"0.5276318",
"0.52738416",
"0.5268... | 0.7458604 | 0 |
Small utility function to make float mor pretty | def U_kE(BWXx: float, vjyh: int=3):
return ('%.' + str(vjyh) + 'f') % BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XXxf(WKvO):\n return '{0:f}'.format(WKvO).rstrip('0').rstrip('.')",
"def Fmu6(WKvO):\n return ('%f' % WKvO).rstrip('0').rstrip('.')",
"def X1YB(YKHO):\n ...",
"def Fmu6(Ty9i: Union[float, int], Z5OI: Optional[int]=5) -> str:\n T8d8 = Ty9i.__class__(Ty9i)\n if oyIN.isneginf(Ty9i):\n ... | [
"0.7308965",
"0.7273764",
"0.7253805",
"0.71120894",
"0.70108885",
"0.6830543",
"0.67025244",
"0.6560071",
"0.6550757",
"0.6452444",
"0.6407769",
"0.640091",
"0.640091",
"0.640091",
"0.640091",
"0.63605934",
"0.63605934",
"0.6355612",
"0.63300234",
"0.6308148",
"0.6308046",
... | 0.6246705 | 25 |
View Controller for the Home Page | def vja_():
return "<h4>Welcome !</h4><br><a href='/fetch'>View Results</a>" | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'home.html')",
"def kZiy(YKHO, *qIxc, **B2fa):\n pass",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy(QePW):\n return SGJU('home.html', {}, K1Ja(QePW... | [
"0.8044922",
"0.77770954",
"0.77151424",
"0.7628626",
"0.7612775",
"0.7584397",
"0.7581766",
"0.7579866",
"0.7551894",
"0.7532357",
"0.75280464",
"0.75207704",
"0.75172997",
"0.75143486",
"0.7514253",
"0.749323",
"0.7488179",
"0.7481498",
"0.7476854",
"0.7466943",
"0.74641633... | 0.0 | -1 |
Converts dict object to protobuf binary message | def wTv4(YKHO, YGFP):
Ol8d = YKHO.message_class()
try:
Ol8d = tBOI.ParseDict(YGFP, Ol8d)
neaT = Ol8d.SerializeToString()
except tBOI.ParseError:
return None
return neaT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hmiq(YKHO) -> vkap:\n return vkap(msg_id=Napc(YKHO.id), address=Napc(YKHO.address), content=qQXR.dumps(YKHO.content), reply_to=Napc(YKHO.reply_to))",
"def S3eJ(YEnM: StunPacket) -> bytes:\n Ol8d = bytes()\n for [qneY, QSie] in YEnM.message.items():\n Ol8d += tMMy('{}{}s'.format(Mfnt, len(QSie... | [
"0.6372832",
"0.6337417",
"0.62945145",
"0.6277781",
"0.62265205",
"0.6193138",
"0.6138635",
"0.6138635",
"0.6100963",
"0.60570735",
"0.60413253",
"0.60410964",
"0.5986436",
"0.5962294",
"0.59443873",
"0.5911412",
"0.5903815",
"0.58655643",
"0.58190984",
"0.5718694",
"0.56962... | 0.6985256 | 0 |
Write JSON formatted contents of library to 'somebooks.json'. | def M8gv(xuBC: list, bTj3) -> None:
kGys = fq2s(xuBC)
with open(bTj3, 'w') as rVmU:
qQXR.dump(kGys, rVmU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qmEd():\n Hy7s.replace('recipes.json', '.recipes.json.backup')\n with open('recipes.json', 'w') as ZGQA:\n qQXR.dump(zWuM.to_json_list(), ZGQA)",
"def Lsrz():\n VdBn = uPyg()\n try:\n Hy7s.mkdir(yt7q)\n except FileExistsError:\n pass\n with open(Sms0, 'w') as eHNT:\n ... | [
"0.67941064",
"0.6712227",
"0.6681812",
"0.65013814",
"0.6446298",
"0.64201915",
"0.64201915",
"0.63656104",
"0.6346884",
"0.6337916",
"0.6337192",
"0.63276",
"0.6277764",
"0.62762684",
"0.62488043",
"0.6212861",
"0.62078017",
"0.61899835",
"0.61881804",
"0.618683",
"0.617121... | 0.78346264 | 0 |
Test functions in this module (get_area_average() and compare_area()). | def QOe9(Ux0P):
LNo8, lEHr = DZ0a(str(Ux0P))
fVlU = Def8(lEHr, 50, 600, 620, 50)
Uydj = Def8(lEHr, 1500, 600, 300, 300)
EX4_(fVlU, Uydj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fVlU(YKHO):\n J1b4 = x7Ls(3, 2)\n YKHO.assertEqual(J1b4.area(), 6)\n CYjz = x7Ls(2, 10)\n YKHO.assertEqual(CYjz.area(), 20)\n bpa0 = x7Ls(10, 10)\n YKHO.assertEqual(bpa0.area(), 100)",
"def fVlU():\n _ycR = 1000\n nUVe = ['linear', 'previous']\n jGa_ = oyIN.linspace(0, 1, _ycR)\n ... | [
"0.73618317",
"0.7269199",
"0.7166619",
"0.71577805",
"0.71140015",
"0.6944461",
"0.6937703",
"0.6937703",
"0.6930448",
"0.6888293",
"0.68665016",
"0.686071",
"0.67991424",
"0.6780735",
"0.67760044",
"0.6773737",
"0.6762509",
"0.67396736",
"0.6698852",
"0.6695314",
"0.667968"... | 0.75115806 | 0 |
Compute softmax values for each sets of scores in x. subtract max too avoid after exponentiation numerical issues. | def N93T(WKvO):
uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))
return awRs(uw5A, uw5A.sum()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M49J(cCrA):\n if not cCrA:\n return []\n jB5X = None\n for p1kx in cCrA:\n if jB5X is None or p1kx > jB5X:\n jB5X = p1kx\n KPVz = []\n mq4h = 0.0\n for p1kx in cCrA:\n WKvO = oyIN.exp(p1kx - jB5X)\n KPVz.append(WKvO)\n mq4h += WKvO\n BFeB = []\... | [
"0.8152114",
"0.8118244",
"0.80973",
"0.80973",
"0.80973",
"0.80973",
"0.8042568",
"0.8007471",
"0.7914464",
"0.77501804",
"0.7747145",
"0.77428544",
"0.774038",
"0.77277666",
"0.77192086",
"0.77058256",
"0.7705577",
"0.76773155",
"0.76773155",
"0.76694804",
"0.7666126",
"0... | 0.7649423 | 23 |
Register identified player categories to CSV file. | def M5vh(dpkJ, rsqG, A3Io=False):
print('Registering player categories to CSV file... ', end='', flush=True)
JRa4 = {}
if not A3Io:
for u46J, RZO8 in dpkJ.items():
for WYVp in RZO8:
if WYVp not in JRa4:
JRa4[WYVp] = []
JRa4[WYVp].append... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AVZI():\n print('load_categories')\n qZuN.query.delete()\n for rdlD in open('seed_data/categories.csv'):\n mWFP = rdlD.rstrip()\n ACia = qZuN(name=mWFP)\n NCls.session.add(ACia)\n NCls.session.commit()",
"def xkzz(YKHO, ACia):\n with open(YKHO.filename_csv, 'w', newline=''... | [
"0.6143419",
"0.5891509",
"0.5818831",
"0.5806062",
"0.5790886",
"0.576683",
"0.56881076",
"0.5677344",
"0.56752986",
"0.5628243",
"0.56071",
"0.5570015",
"0.5521694",
"0.5426678",
"0.54253393",
"0.5416517",
"0.5409569",
"0.5392249",
"0.53697574",
"0.5360144",
"0.5353606",
... | 0.74887174 | 0 |
Initialize the error object. | def FIMM(YKHO, P1dF: List[Error]=None, U34r: Dict=None):
YKHO.error = P1dF if P1dF is not None else []
YKHO.info = U34r if U34r is not None else {}
YKHO.is_valid = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, P1dF=''):\n VAT6.__init__(YKHO, P1dF)",
"def FIMM(YKHO, P1dF=''):\n VAT6.__init__(YKHO, P1dF)",
"def FIMM(YKHO, P1dF=''):\n VAT6.__init__(YKHO, P1dF)",
"def FIMM(YKHO, tf1m):\n super(D9Ku, YKHO).__init__()\n YKHO.error_msg = tf1m",
"def FIMM(YKHO, tf1m):\n super(w79S, YKHO)... | [
"0.778123",
"0.778123",
"0.778123",
"0.77303314",
"0.7431539",
"0.7166465",
"0.7118429",
"0.7089138",
"0.6994154",
"0.69397247",
"0.6926841",
"0.6894145",
"0.6851899",
"0.6850147",
"0.68288684",
"0.6765819",
"0.67592484",
"0.673861",
"0.6720681",
"0.67007667",
"0.66677237",
... | 0.6777851 | 15 |
This function make camel case string | def uKFb(vIwR: str) -> str:
gtFl = str()
aDi_ = iter(vIwR)
for Qiky in aDi_:
if Qiky == '_':
o61b = next(aDi_)
Qiky = '' + o61b.upper()
gtFl += Qiky
return gtFl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uhRd(KCHu):\n return KCHu[0].upper() + KCHu[1:]",
"def J8xc(l5Ny: str) -> str:\n return ''.join((GIN8.title() for GIN8 in l5Ny.split('_')))",
"def c3S0(BWXx: str, **B2fa: Any) -> str:\n Aofo = ''.join(map(str.title, NMzd(BWXx)))\n return Aofo[0].lower() + Aofo[1:]",
"def mPcS(l5Ny):\n hlel... | [
"0.78228825",
"0.78217906",
"0.7805806",
"0.7798621",
"0.7528946",
"0.74601084",
"0.74245834",
"0.74177057",
"0.7398569",
"0.73950356",
"0.7389722",
"0.7380134",
"0.734875",
"0.7347254",
"0.7338537",
"0.7324779",
"0.7272588",
"0.7259691",
"0.7251684",
"0.72307914",
"0.7215484... | 0.72231823 | 20 |
Load the pretrained Swin Transformer model states and prepare the model for image segmentation. Paramters | def I2qJ(uqvc, _6VY):
C3ST = CH_v(_6VY, uqvc, device='cuda:0')
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OJVN(YKHO):\n xA7f = YKHO.state_dict()\n DTb0 = list(xA7f.keys())\n SXRB = DPY0\n KFXN = ht2j.load(SXRB)\n DDS1 = list(KFXN.keys())\n for YRbF, xqoZ in enumerate(DTb0[:-4]):\n xA7f[xqoZ] = KFXN[DDS1[YRbF]]\n YKHO.load_state_dict(xA7f)",
"def BHRt(YKHO):\n YKHO.model = VUcl(YKHO... | [
"0.6587504",
"0.6576317",
"0.6479643",
"0.64297354",
"0.63592225",
"0.63479906",
"0.63324994",
"0.6324293",
"0.63152117",
"0.6262596",
"0.6247061",
"0.62149227",
"0.62089145",
"0.6163013",
"0.6152904",
"0.61286426",
"0.6125572",
"0.61083937",
"0.60951775",
"0.60933113",
"0.60... | 0.0 | -1 |
Returns ratio of dissociations due to flux in band1 over flux in band2. | def xlw7(Cqok, oMqC, hGHo, MJBe, vvKi=True):
SvJk = ESRT(Cqok, oMqC, dissoc_only=vvKi)
FxX7 = BfDw.wedges(Cqok)
eAkl = lambda Ebru: oyIN.diff(oyIN.interp(Ebru, FxX7, SvJk))
QOYf, kYw0 = list(map(eAkl, [hGHo, MJBe]))
return QOYf / kYw0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZGso(U5sK, se8E):\n pImw = 0\n UHFx = 0\n o4D3 = [epAf.log(WKvO) for WKvO in U5sK]\n ajwV = [epAf.log(WKvO) for WKvO in se8E]\n while UHFx < len(U5sK):\n pImw += epAf.pow(o4D3[UHFx] - ajwV[UHFx], 2)\n UHFx += 1\n return pImw",
"def j4YA(Vgic, ZaiA, K_Sa, XvBR, E0f3, MynD=-1, n... | [
"0.5974529",
"0.5709754",
"0.56822765",
"0.5665941",
"0.56608135",
"0.55868787",
"0.5531199",
"0.5527557",
"0.54777175",
"0.54597014",
"0.5449504",
"0.54419273",
"0.54338074",
"0.54292613",
"0.5425127",
"0.5414442",
"0.54116666",
"0.54115736",
"0.539807",
"0.5345666",
"0.5337... | 0.6866517 | 0 |
Deformable conv2D operator in NCHW layout. | def Tcmp(nPrm, vgXP, WZcn, FEri, dvgN, ivFb, eITT, moMn, xaz1):
if xaz1 is None:
xaz1 = nPrm.dtype
if isinstance(FEri, int):
hMIr = Pggg = FEri
else:
hMIr, Pggg = FEri
if isinstance(ivFb, int):
E1sG = B_U4 = ivFb
else:
E1sG, B_U4 = ivFb
Wc9F, QGo8, tQJv, l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NwVq(YKHO, khtY):\n return YKHO.convert_conv(khtY, 'depthwise')",
"def wDdk(Oa1e, khtY, XkN1):\n mJgj = khtY.attr('dilations')\n moMn = khtY.attr('groups')\n LkVj = khtY.attr('paddings')\n DSTW = khtY.attr('padding_algorithm')\n FEri = khtY.attr('strides')\n WZcn = Oa1e.get_node(khtY.inp... | [
"0.6914209",
"0.681887",
"0.6647935",
"0.6633788",
"0.6497158",
"0.64200926",
"0.63852674",
"0.63647985",
"0.63478374",
"0.63002294",
"0.6267007",
"0.626647",
"0.62638384",
"0.6260785",
"0.62600344",
"0.6254607",
"0.6249518",
"0.62469304",
"0.6228835",
"0.6217561",
"0.6210741... | 0.0 | -1 |
Deformable conv2D operator in NHWC layout. | def tavP(nPrm, vgXP, WZcn, FEri, dvgN, ivFb, eITT, moMn, xaz1):
if xaz1 is None:
xaz1 = nPrm.dtype
if isinstance(FEri, int):
hMIr = Pggg = FEri
else:
hMIr, Pggg = FEri
if isinstance(ivFb, int):
E1sG = B_U4 = ivFb
else:
E1sG, B_U4 = ivFb
Wc9F, tQJv, lZVv, Q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wDdk(Oa1e, khtY, XkN1):\n mJgj = khtY.attr('dilations')\n moMn = khtY.attr('groups')\n LkVj = khtY.attr('paddings')\n DSTW = khtY.attr('padding_algorithm')\n FEri = khtY.attr('strides')\n WZcn = Oa1e.get_node(khtY.input('Filter')[0])\n bVvo = Oa1e.get_node(khtY.input('Input')[0])\n TcmJ... | [
"0.6924233",
"0.6878214",
"0.68353266",
"0.6753608",
"0.6732085",
"0.6699978",
"0.66800994",
"0.6465988",
"0.6420144",
"0.64079714",
"0.6401289",
"0.63805044",
"0.6378001",
"0.6361325",
"0.6354381",
"0.6333672",
"0.63279164",
"0.63256884",
"0.6314015",
"0.629172",
"0.6291327"... | 0.0 | -1 |
Modulated Deformable conv2D operator in NCHW layout. | def kkOT(nPrm, vgXP, ZHfW, WZcn, FEri, dvgN, ivFb, eITT, moMn, xaz1):
if xaz1 is None:
xaz1 = nPrm.dtype
if isinstance(FEri, int):
hMIr = Pggg = FEri
else:
hMIr, Pggg = FEri
if isinstance(ivFb, int):
E1sG = B_U4 = ivFb
else:
E1sG, B_U4 = ivFb
Wc9F, QGo8, t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wDdk(Oa1e, khtY, XkN1):\n mJgj = khtY.attr('dilations')\n moMn = khtY.attr('groups')\n LkVj = khtY.attr('paddings')\n DSTW = khtY.attr('padding_algorithm')\n FEri = khtY.attr('strides')\n WZcn = Oa1e.get_node(khtY.input('Filter')[0])\n bVvo = Oa1e.get_node(khtY.input('Input')[0])\n TcmJ... | [
"0.6828529",
"0.67575896",
"0.6594705",
"0.65607363",
"0.65589213",
"0.6528172",
"0.6451237",
"0.64489007",
"0.6440598",
"0.6432712",
"0.64226335",
"0.6388169",
"0.6362342",
"0.62699884",
"0.6259978",
"0.6253116",
"0.6241763",
"0.6232873",
"0.62303174",
"0.62289196",
"0.62165... | 0.60770565 | 31 |
Computation of prominence ratio according to ECMA74, annex D.10 for an amplitude or complex frequency spectrum. The TPR value is calculated according to ECMATR/108 | def fb0u(_owh, J1c0, Ws82=True):
if len(_owh) != len(J1c0):
raise ValueError('Input spectrum and frequency axis must have the same size')
BV4T = CEvk(oyIN.abs(_owh), ref=2e-05)
WCOh, zTi3, a1zR, MM4U = X5pT(BV4T, J1c0)
if Ws82 == False:
return (MM4U, zTi3, a1zR, WCOh)
else:
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QSJk():\n DbxN()\n WW_J = 'MNXT'\n qxWP = 'PFXT'\n aVkX = 100\n gqtN = YnkN.TH1D('hr', 'PFCR/PFXT', aVkX, 0.0, 20.0)\n zsQ4 = float(jFe7[WW_J.lower()][2])\n zQzW = int(jFe7[WW_J.lower()][0])\n VFJt = float(jFe7[qxWP.lower()][2])\n qiWU = int(jFe7[qxWP.lower()][0])\n for YRbF in ra... | [
"0.6527266",
"0.645789",
"0.6082491",
"0.5948877",
"0.5939551",
"0.5919086",
"0.5898634",
"0.5872601",
"0.5855628",
"0.58549035",
"0.58467454",
"0.584536",
"0.58290124",
"0.5793778",
"0.579017",
"0.5765589",
"0.5757814",
"0.57338727",
"0.57225055",
"0.5714937",
"0.5690466",
... | 0.6276012 | 2 |
Return the given mb in bytes \param mb megabytes value, either integer or float \return bytes integer value | def pGJZ(RRSr):
return int(RRSr * (1 << 20)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LEz3(bytes):\n bytes = int(bytes)\n RRSr = str(bytes / (1024 * 1024.0)).split('.')[0] + '.' + str(bytes / (1024 * 1024.0)).split('.')[1][:2]\n return float(RRSr)",
"def Kmta(YKHO):\n assert KGg9.postgresqlgate.PgSQLGate._bt_to_mb(3145728) == 3",
"def L723(fUK9):\n return CKzP(fUK9, '%dG' % (... | [
"0.7436616",
"0.7215821",
"0.69146925",
"0.68662626",
"0.6686623",
"0.6576723",
"0.6553818",
"0.64720297",
"0.630044",
"0.6281297",
"0.6252555",
"0.62334657",
"0.62304634",
"0.6220218",
"0.6219026",
"0.61765367",
"0.6167844",
"0.6167844",
"0.61511856",
"0.61511856",
"0.61461"... | 0.79053813 | 0 |
Return the given file name without its file type extension | def MXbr(Ux0P):
return Ux0P.rsplit('.', 1)[-2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HcGC(Ux0P):\n P8oC = Hy7s.path.basename(Ux0P)\n return Hy7s.path.splitext(P8oC)[0]",
"def FvQg(YKHO) -> str:\n return Hy7s.path.splitext(YKHO.path)[0]",
"def NVCy(nUeQ):\n return nUeQ.split('.')[0]",
"def g_2H(nUeQ):\n return Hy7s.path.splitext(Hy7s.path.basename(nUeQ))[0]",
"def DBCz(YK... | [
"0.8455022",
"0.8272778",
"0.81052935",
"0.7889851",
"0.7885302",
"0.7783055",
"0.77773535",
"0.77472246",
"0.77421254",
"0.7719816",
"0.7714679",
"0.769115",
"0.7676718",
"0.7669863",
"0.7644738",
"0.76340246",
"0.76293457",
"0.760549",
"0.7575833",
"0.7569268",
"0.75627786"... | 0.8085748 | 3 |
Return the relative path of a file to a directory. | def NE63(dir, Zg0d):
if dir[-1] == '/' or dir[-1] == ':':
return Zg0d[len(dir):]
else:
return Zg0d[len(dir) + 1:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ppc1(nUeQ):\n return Hy7s.path.dirname(Hy7s.path.realpath(nUeQ))",
"def NE63(YKHO, qaEx):\n qaEx = Hy7s.path.abspath(qaEx)\n if YKHO.base_dir is not None:\n qaEx = qaEx.replace(Hy7s.path.abspath(YKHO.base_dir), '')\n assert qaEx[0] == '/'\n qaEx = qaEx[1:]\n return qaEx",
"def NE63... | [
"0.79369354",
"0.78443545",
"0.7681555",
"0.7584519",
"0.75486296",
"0.7506685",
"0.7384888",
"0.73440295",
"0.73185885",
"0.7179872",
"0.7149346",
"0.71370625",
"0.71160865",
"0.71030444",
"0.7090903",
"0.70788646",
"0.7074281",
"0.7071575",
"0.7067113",
"0.7050872",
"0.7044... | 0.724314 | 9 |
Same as Nebula mangle path, but giving paths without the special directories '.' and '..' | def SLEg(pmON):
pmON = HwSA.get_file_server().manglepath(str(pmON))
pmON = Hy7s.path.abspath(pmON)
pmON = HwSA.get_file_server().manglepath(str(pmON))
if len(pmON) > 1:
if pmON[1] == ':':
pmON = pmON[:1].lower() + pmON[1:]
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XfGu(pmON):\n pmON = EeDH.path.sep.join(pmON.split('/'))\n return EeDH.path.normpath(EeDH.path.join(tk5Y, pmON))",
"def ENtY(pmON: Union[str, BasePathLike]) -> str:\n return Hy7s.path.relpath(str(pmON))",
"def ENtY(pmON):\n return Hy7s.path.normpath(pmON)",
"def REDu(YKHO):\n import os\n ... | [
"0.67952025",
"0.67307246",
"0.66611874",
"0.65603596",
"0.6546353",
"0.65275925",
"0.6517664",
"0.64836204",
"0.6476119",
"0.64441717",
"0.6436163",
"0.6433354",
"0.6404632",
"0.6371606",
"0.63631254",
"0.63177294",
"0.6302908",
"0.6285278",
"0.627473",
"0.62700146",
"0.6248... | 0.71329486 | 0 |
Get a Spark session in a way that supports running locally or in Data Flow. | def Qrja(kvcN='DataFlow', _bsB=None, lZwM=None, cJNk={}):
if hwd6():
VlUf = lBG2.builder.appName(kvcN)
else:
try:
import oci
except:
raise Exception('You need to install the OCI python library to test locally')
if _bsB is None:
_bsB = oci.confi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x189(YKHO) -> 'SparkSession':\n return lBG2(connectionString=YKHO._options['spark.connect.location'])",
"def f5WJ() -> h8nf[lBG2]:\n if StUT():\n return None\n return lBG2.getActiveSession()",
"def Yu9h():\n return lBG2.builder.appName('Dataframe Reader').master('local[*]').getOrCreate()... | [
"0.79376125",
"0.7623519",
"0.75844926",
"0.7518808",
"0.7452375",
"0.7307466",
"0.7277361",
"0.7220452",
"0.71681154",
"0.7041723",
"0.7041723",
"0.7041723",
"0.7041723",
"0.7041723",
"0.7041723",
"0.7041723",
"0.7041723",
"0.7041723",
"0.7031369",
"0.70046675",
"0.69975275"... | 0.7419343 | 5 |
Mark that PCA analysis needs to be rerun. This method also clears the results from the previous PCA. | def Ngop(YKHO):
YKHO.cache_valid = False
YKHO.pca_results = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JeMa(YKHO):\n for H5ew in YKHO._analysis_results.keys():\n YKHO._deleted_analysis_results.append(H5ew)\n YKHO._analysis_results = jqyx()\n for H5ew in YKHO._figures.keys():\n YKHO._deleted_figures.append(H5ew)\n YKHO._figures = jqyx()",
"def SiRx(YKHO):\n YKHO.performed_transform... | [
"0.6270399",
"0.61902213",
"0.59944075",
"0.5966293",
"0.5911498",
"0.5834439",
"0.58139515",
"0.58131194",
"0.5798462",
"0.5785009",
"0.5776583",
"0.5773485",
"0.5725095",
"0.5716123",
"0.5711999",
"0.5688346",
"0.56815124",
"0.5672664",
"0.56682754",
"0.56552327",
"0.565515... | 0.5383897 | 64 |
Determine if object_ is a lyse.Run instance or similar. This method is used to determine if an object is similar to a lyse.Run instance. This is mainly used for interpretting arguments to methods in this class. In particular it is used to figure out if something like a numpy array is provided as an image, or if a lyse.... | def Q7SM(Emd4, Iup5):
return type(Iup5).__name__ in Emd4._RUN_TYPES | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QbsE(Emd4, Iup5):\n return type(Iup5).__name__ in ['RepeatedShot']",
"def NC32(object):\n if not hasattr(object, '__class__'):\n return False\n if MP1F(object.__class__):\n return False\n return True",
"def as9g(object):\n if not tq_1.isclass(object):\n return False\n ... | [
"0.6063975",
"0.6060396",
"0.58042234",
"0.57719535",
"0.56707263",
"0.5664598",
"0.56621164",
"0.55818546",
"0.55812025",
"0.5580095",
"0.55463207",
"0.54774797",
"0.5409012",
"0.5402747",
"0.5350518",
"0.53228813",
"0.5321007",
"0.53067243",
"0.5291581",
"0.52734035",
"0.52... | 0.843441 | 0 |
Determine if object_ is a RepeatedShot instance. This method determines if object_ is an instance of our custom RepeatedShot class. This is a distinct method from _is_run_type() because they need to be handled slightly differently since they contain multiple images. | def QbsE(Emd4, Iup5):
return type(Iup5).__name__ in ['RepeatedShot'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q7SM(Emd4, Iup5):\n return type(Iup5).__name__ in Emd4._RUN_TYPES",
"def Nixe(YKHO, DEXX):\n for d6pt, KAOR in enumerate(gXL4):\n if KAOR == DEXX:\n return True\n return False",
"def ETBk(kN9s):\n return kN9s in fLkE",
"def NC32(object):\n if not hasattr(object, '__class_... | [
"0.6818754",
"0.599205",
"0.5925885",
"0.5738632",
"0.5730448",
"0.56635624",
"0.5652772",
"0.5644911",
"0.561143",
"0.55758536",
"0.5550535",
"0.5539059",
"0.54788357",
"0.5454034",
"0.5453979",
"0.5425489",
"0.5402651",
"0.5390146",
"0.53733283",
"0.5333188",
"0.5321255",
... | 0.86113185 | 0 |
Get the mean beam image calculated during PCA. Will be returned as a 2D array. Note that calling this method will run the PCA analysis if it has not yet been run. | def QdZ4(YKHO):
return YKHO.get_pca_images()[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F7II(YKHO):\n Sfqw, BBso, ieZh = YKHO.pca()\n ROpF = YKHO.image_shape + (BBso.shape[1],)\n QC6A = BBso.reshape(ROpF)\n QC6A = oyIN.moveaxis(QC6A, -1, 0)\n U1Um = Sfqw.reshape(YKHO.image_shape)\n ZHfW = YKHO.mask.reshape(YKHO.image_shape)\n return (U1Um, ZHfW, QC6A, ieZh)",
"def QOgx(YKHO... | [
"0.68503416",
"0.66262984",
"0.6625393",
"0.65327656",
"0.6316808",
"0.6314991",
"0.6228263",
"0.60785574",
"0.607594",
"0.6068922",
"0.5956958",
"0.5946902",
"0.5916866",
"0.5872937",
"0.5870806",
"0.5868154",
"0.5829432",
"0.58169025",
"0.578779",
"0.5783356",
"0.57669353",... | 0.8502905 | 0 |
Save cached PCA results to disk. | def Q63Q(YKHO, VqRE):
U1Um, BBso, ieZh = YKHO.pca()
lNai = oyIN.array(YKHO.image_shape)
with open(VqRE, 'wb') as eHNT:
oyIN.save(eHNT, lNai)
oyIN.save(eHNT, U1Um)
oyIN.save(eHNT, BBso)
oyIN.save(eHNT, ieZh)
oyIN.save(eHNT, YKHO.mask) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M48Y(YKHO, Ux0P):\n oyIN.savetxt(Ux0P, YKHO.pca_matrix, delimiter=',')",
"def haQW(YKHO):\n XpRO(gzes(YKHO.output_folder, 'results.pkl'), YKHO.get_results())",
"def AU3u(EqBn):\n PcZo = Hy7s.path.join(EqBn.scene_dir, 'output', EqBn.scene_id + '_pickle')\n if EqBn.atmo_src == 'narr':\n Pc... | [
"0.6452552",
"0.62851304",
"0.6265904",
"0.6168414",
"0.6065707",
"0.588655",
"0.58652025",
"0.5815887",
"0.57938355",
"0.5752202",
"0.57140005",
"0.57098246",
"0.5691539",
"0.5651883",
"0.5645643",
"0.5644559",
"0.56236345",
"0.5622598",
"0.5614969",
"0.55879456",
"0.5576362... | 0.70057505 | 0 |
Display the mean beam image as a false color plot. | def lmVq(YKHO, *qIxc, **B2fa):
U1Um = YKHO.get_pca_mean_beam()
MPlV = YKHO.plot_image(U1Um, *qIxc, **B2fa)
MPlV.set_title('Mean Beam Image')
return MPlV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KwM3():\n QrM1.subplot(121)\n QrM1.imshow(nPrm.data.numpy()[0,].squeeze())\n QrM1.subplot(122)\n QrM1.imshow(pwpu.view(-1, 28, 28).data.numpy()[0,].squeeze())\n QrM1.show()\n QrM1.pause(1e-06)\n QrM1.gcf().clear()\n mvm2 = C3ST.sample_z(nPrm)\n QrM1.imshow(mvm2)",
"def r2sP(YKHO):\... | [
"0.6679711",
"0.6550966",
"0.6530197",
"0.65128887",
"0.6451824",
"0.64170814",
"0.6386277",
"0.6378754",
"0.63160205",
"0.63069475",
"0.62929595",
"0.6285503",
"0.6214592",
"0.6185149",
"0.6180264",
"0.6180264",
"0.6180264",
"0.61731994",
"0.61706",
"0.61528397",
"0.61357915... | 0.7516682 | 0 |
Display an image as a false color plot. | def DM2M(YKHO, LNo8, MPlV=None, Ew8X=True, EWlA={}):
if MPlV is None:
LZpg = QrM1.figure()
MPlV = LZpg.add_subplot(111)
EWlA = {'X': LNo8, 'cmap': QrM1.get_cmap('jet'), **EWlA}
sov1 = MPlV.imshow(**EWlA)
MPlV.set_aspect(1.0)
if Ew8X:
QrM1.colorbar(sov1)
return MPlV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DM2M(LNo8):\n QrM1.imshow(LNo8, cmap='gray', interpolation='nearest')\n QrM1.axis('off')",
"def Ryfe(LNo8):\n QrM1.imshow(LNo8, interpolation='nearest')\n QrM1.axis('off')",
"def t9Ic(LNo8):\n QrM1.imshow(LNo8)\n QrM1.axis('off')\n QrM1.axis('image')\n QrM1.tight_layout(pad=0)",
"... | [
"0.81219697",
"0.80883837",
"0.7722984",
"0.75321466",
"0.7406405",
"0.7353721",
"0.7305321",
"0.7279725",
"0.72698563",
"0.72698563",
"0.72698563",
"0.72024333",
"0.7159563",
"0.7019339",
"0.6976837",
"0.6918304",
"0.6870019",
"0.68663275",
"0.6810255",
"0.67992514",
"0.6778... | 0.0 | -1 |
Test if process ID is a number and `@`sign is included. | def OTlE():
assert ZbWC.match('^[0-9]+@[a-zA-Z0-9_]+', gnPz.get_pid_and_server()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uvGH(YKHO, WKvO):\n return WKvO in '1234567890.-'",
"def WjgG(FGW3):\n FGW3 = FGW3.replace(' ', '')\n Aofo = ZbWC.match('^[0-9]+$', FGW3)\n if not Aofo:\n return True\n return False",
"def vrhM(XP5J):\n if XP5J.isdigit():\n return True\n return False",
"def OwL8(Ii1o):\... | [
"0.6474449",
"0.6189617",
"0.61746675",
"0.6157363",
"0.613703",
"0.60712403",
"0.60144657",
"0.6004903",
"0.58547246",
"0.5835505",
"0.5829507",
"0.5828928",
"0.57841563",
"0.57808536",
"0.57669",
"0.5766838",
"0.5755105",
"0.5753852",
"0.57278836",
"0.5726764",
"0.5699714",... | 0.5300073 | 71 |
A relaxed version of ``__eq__``, in which only nonderived dimensions are compared for equality. | def mqgR(YKHO, Elif):
return YKHO.intervals == Elif.intervals and YKHO.nonderived_directions == Elif.nonderived_directions | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if YKHO.n != Elif.n or YKHO.m != Elif.m:\n raise TypeError('Illegal dimensions for eq operator (%s x %s - %s x %s)' % (YKHO.n, YKHO.m, Elif.n, Elif.m))\n return YKHO.values == Elif.values",
"def xa14(YKHO, Elif):\n return type(YKHO) == type(Elif) and Elif.dtype == YKHO.dty... | [
"0.7762042",
"0.74444467",
"0.72101843",
"0.72101843",
"0.72101843",
"0.72101843",
"0.72101843",
"0.72101843",
"0.72101843",
"0.72101843",
"0.72101843",
"0.72101843",
"0.72101843",
"0.72101843",
"0.72101843",
"0.72101843",
"0.72101843",
"0.72101843",
"0.72101843",
"0.72101843",... | 0.0 | -1 |
Returns center cropped image | def HK1Q(VXjJ, tpio):
TVTK, H2v2 = (VXjJ.shape[1], VXjJ.shape[0])
LbxQ = tpio[0] if tpio[0] < VXjJ.shape[1] else VXjJ.shape[1]
Pqyv = tpio[1] if tpio[1] < VXjJ.shape[0] else VXjJ.shape[0]
kEK1, OPNK = (int(TVTK / 2), int(H2v2 / 2))
zx4H, tGgy = (int(LbxQ / 2), int(Pqyv / 2))
tdFs = VXjJ[OPNK - t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def imIE(LNo8, ou4I, vkEG):\n WKvO, LVAh = LNo8.shape\n WcFg = WKvO // 2 - ou4I // 2\n N5og = LVAh // 2 - vkEG // 2\n return LNo8[WcFg:WcFg + ou4I, N5og:N5og + vkEG]",
"def fJ2F(YKHO):\n VXjJ = YKHO.data\n vIvi = oyIN.copy(VXjJ)\n tpio = 128\n NAnm = tpio // 2\n yKcO = NAnm - NAnm // 2... | [
"0.7963459",
"0.7638151",
"0.76044345",
"0.74087983",
"0.740208",
"0.7284791",
"0.728289",
"0.7279314",
"0.7261671",
"0.72432995",
"0.7205581",
"0.72042626",
"0.7200235",
"0.7156868",
"0.7101748",
"0.70445836",
"0.696327",
"0.69575727",
"0.6903975",
"0.69010776",
"0.68450946"... | 0.66767377 | 32 |
Return counts of total pair trawlers and trawler pairs. | def ogYL(mwXN, BmEm, osWB, e6Yf):
e6Yf = oyIN.maximum(e6Yf, 1)
if len(mwXN):
kgDL = mwXN == 'pair_trawlers'
QnO9 = mwXN == 'single_trawler'
m_03 = (mwXN == 'pair_trawlers') * 2 + (mwXN == 'single_trawler')
pCFK = round((m_03 * (BmEm & osWB) / e6Yf).sum(), 1)
yK7v = round(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yqtc(YKHO) -> cuzp[str, cuzp[str, int]]:\n tBlh = YKHO.game.configuration.agent_pbk_to_name\n Aofo = {N4nj: 0 for N4nj in tBlh.values()}\n dixj = {'seller': Aofo.copy(), 'buyer': Aofo.copy()}\n TwMo = _apf(YKHO.game.configuration, YKHO.game.initialization)\n for or8S, UShr in enumerate(YKHO.game... | [
"0.59497243",
"0.5537722",
"0.5499426",
"0.54982406",
"0.54982406",
"0.5488811",
"0.54234195",
"0.54162526",
"0.534",
"0.5294098",
"0.527548",
"0.52749014",
"0.525896",
"0.5250165",
"0.5247916",
"0.52285326",
"0.5212973",
"0.51814866",
"0.5133893",
"0.5106483",
"0.51005536",
... | 0.0 | -1 |
Compute the gradient of the cost function w.r.t. the feature matrix self.theta | def ZqsJ(YKHO, EcVT, LVAh):
vtNT = oyIN.zeros_like(YKHO.theta)
b7z6 = YKHO.softmax_mat(EcVT)
r8hN = EcVT.shape[1]
for G1Hx in range(YKHO.nclasses):
Ro40 = ((b7z6 - LVAh)[G1Hx, :] * EcVT).sum(axis=1) / r8hN
vtNT[:, G1Hx] = Ro40
return vtNT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ICX2(YKHO, q7In):\n pass",
"def ICX2(YKHO, q7In):\n pass",
"def hWZO(YKHO, q7In, EcVT, LVAh):\n Ro40 = oyIN.zeros(len(q7In))\n wEsz = BfDw.sigmoid(q7In)\n wEsz = wEsz - LVAh\n Ro40 = oyIN.dot(EcVT.T, wEsz) + 2 * YKHO.params['lamb'] * YKHO.regularizer[1](YKHO.weights)\n return Ro40",
... | [
"0.8161107",
"0.8161107",
"0.81329745",
"0.81069064",
"0.8050006",
"0.7979979",
"0.7959363",
"0.79376876",
"0.7749863",
"0.77251774",
"0.76677454",
"0.7646409",
"0.76458144",
"0.763517",
"0.7630948",
"0.75446135",
"0.75322455",
"0.74703735",
"0.7450802",
"0.7411786",
"0.73923... | 0.0 | -1 |
Given a direction, two patterns, and a pattern catalog, return True if we overlap pattern two on top of pattern one and the intersection of the two patterns is an exact match. | def rFgg(Umv1, EBgd, HpuQ, TbtJ, T6oW, YwO6):
T3Ft = (0 + YwO6[Umv1].x, 0 + YwO6[Umv1].y)
DbyF = (1, 0)
Bgs1 = -1
Dooq = oyIN.roll(oyIN.pad(TbtJ[HpuQ], T6oW, mode='constant', constant_values=Bgs1), T3Ft, DbyF)
qk7K = Dooq[T6oW:T6oW + T6oW, T6oW:T6oW + T6oW]
LFlW = max(0, 0 + T3Ft[0])
_tIi = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uF7r(roVE, aQpk, Xqtg):\n for I6qt in Xqtg:\n cqVM = set(I6qt)\n if roVE in cqVM and aQpk in cqVM:\n return True\n return False",
"def qTJV(yLen, Lbk8, XSoh):\n if XSoh == 0:\n return yLen[:-1] == Lbk8[1:]\n if XSoh == 2:\n return [zFiD[:-1] for zFiD in yLen... | [
"0.6123055",
"0.6094962",
"0.5857792",
"0.5839089",
"0.57844794",
"0.5691257",
"0.5668334",
"0.5651952",
"0.5649129",
"0.5632027",
"0.56156564",
"0.55987436",
"0.5598101",
"0.5577707",
"0.55506974",
"0.5550451",
"0.5535778",
"0.5530083",
"0.5526925",
"0.552425",
"0.5506287",
... | 0.71406496 | 0 |
Converts Miles to Kilometers and sets label text to calculated value | def RHr8():
JYmd = float(UszQ.get())
ftIm.config(text=str(JYmd * 1.609)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zpqm(JYmd):\n return JYmd * 1.60934",
"def JrmV(YKHO) -> None:\n ssQ2 = 5\n AcYW = 'kilometers'\n YKHO.assertEqual('3.11', f'{WI6P(AcYW, ssQ2):.2f}')\n ssQ2 = 0\n AcYW = 'kilometers'\n YKHO.assertEqual(0, WI6P(AcYW, ssQ2))",
"def fl7I(YKHO):\n assert XbiX(100) == '0.10'\n assert ... | [
"0.71072197",
"0.70170546",
"0.6874664",
"0.6871716",
"0.6826592",
"0.6797197",
"0.6733025",
"0.66788435",
"0.6575972",
"0.65458626",
"0.6405684",
"0.6351761",
"0.6272232",
"0.62671566",
"0.6240767",
"0.623134",
"0.6089299",
"0.60149765",
"0.5985503",
"0.58742446",
"0.5803793... | 0.828475 | 0 |
Describe a local training job. | def o4WF(YKHO, n6YG):
geh0 = {'ResourceConfig': {'InstanceCount': YKHO.train_container.instance_count}, 'TrainingJobStatus': 'Completed', 'TrainingStartTime': qcWV.datetime.now(), 'TrainingEndTime': qcWV.datetime.now(), 'ModelArtifacts': {'S3ModelArtifacts': YKHO.s3_model_artifacts}}
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o4WF(n6YG=None):\n pass",
"def jCRD(hKyS=None):\n pass",
"def lGgU(YKHO):\n pass",
"def qFR5(qade=None):\n pass",
"def Kz5w(EUd7=None):\n pass",
"def mWFP(YKHO):\n return YKHO._job",
"def n1Gp(zJW2=None):\n pass",
"def wxIh(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO,... | [
"0.8363346",
"0.734393",
"0.66061383",
"0.63555974",
"0.6215679",
"0.6177397",
"0.6125503",
"0.60209006",
"0.60206497",
"0.59501815",
"0.590491",
"0.5895755",
"0.5885618",
"0.5858112",
"0.58550334",
"0.5823724",
"0.58194655",
"0.575156",
"0.575156",
"0.5742599",
"0.56821734",... | 0.6566312 | 3 |
Plot an example of sigmoid | def tZWL():
EcVT = oyIN.linspace(-10, 10, 100)
MMaM = m1Hg(EcVT)
QrM1.figure(figsize=(15, 5))
QrM1.xlabel('$\\theta^Tx^{(i)}$')
QrM1.ylabel('$h(x^{(i)}, \\theta)$')
QrM1.plot(EcVT, MMaM)
QrM1.show() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rjms():\n fUYa = oyIN.arange(-6, 6, 0.1)\n QrM1.plot(fUYa, m1Hg(fUYa))\n WKvO = 2.5\n QrM1.scatter(WKvO, m1Hg(WKvO))\n QrM1.plot(fUYa, Iv7a(fUYa, WKvO))\n QrM1.show()",
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WK... | [
"0.8030348",
"0.7459372",
"0.7459372",
"0.7390504",
"0.73787713",
"0.73716944",
"0.7367749",
"0.73669165",
"0.73649716",
"0.73445565",
"0.73352456",
"0.73352456",
"0.73352456",
"0.73352456",
"0.73352456",
"0.73352456",
"0.7325473",
"0.7324465",
"0.730983",
"0.73001784",
"0.72... | 0.9086316 | 0 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].view(-1).float().sum(0).item()
Ylbp.append(R2Dg / ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R... | [
"0.7643041",
"0.7418986",
"0.7418119",
"0.7270918",
"0.7245867",
"0.7244652",
"0.72375184",
"0.72214437",
"0.7210162",
"0.7058879",
"0.6851859",
"0.6786372",
"0.6783499",
"0.67681795",
"0.6727462",
"0.67179555",
"0.67179555",
"0.67179555",
"0.67179555",
"0.67179555",
"0.67179... | 0.0 | -1 |
Creates a new shot line from the given origin to the given point. | def FIMM(YKHO, hLRM, Os4s, Cwt5=EMJX, jkdb=THvT, dGrG=MRM5, qfpW=XVGo):
super(F2og, YKHO).__init__()
YKHO.origin = hLRM
YKHO.end = Os4s
YKHO.alpha = Cwt5
YKHO.fade_rate = float(jkdb) / 1000
YKHO.thickness = dGrG
YKHO.color = qfpW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VrlL(YKHO, AU8u: Onion[Tuple[float, float], Point2D, Point3D, Point]):\n Ruu7 = YKHO.last_point\n eyHp = ttlj(AU8u)\n YKHO._segments.append(VTsD.create(Ruu7, eyHp))",
"def yT2L(hLRM, YylR, Cwt5=EMJX, jkdb=THvT):\n Dw1Y = (hLRM[0] + epAf.cos(epAf.radians(YylR)) * 1000, hLRM[1] - epAf.sin(epAf.radi... | [
"0.63009834",
"0.6096479",
"0.592125",
"0.5772418",
"0.5729049",
"0.5620878",
"0.5601629",
"0.5574255",
"0.55161643",
"0.55039394",
"0.5496343",
"0.54637295",
"0.54475015",
"0.5443609",
"0.5418516",
"0.5408607",
"0.5398306",
"0.53906083",
"0.53747797",
"0.537216",
"0.53679943... | 0.6255954 | 1 |
Creates a shot line traveling from the given origin at the given angle until it hits an enemy. This will return a tuple containing the shot line and the enemy. You must also pass this function an enemy manager whose enemies should be checked for hits. You may specify the maximum bullet travel distance with the shot_ran... | def VsOO(hLRM, YylR, ZKzs, NsV_=Qzu1, GbEx=Rpxy, **B2fa):
aiL0 = 16
dgbs = lNLu(epAf.cos(epAf.radians(YylR)), -epAf.sin(epAf.radians(YylR)))
KDnx = dgbs * aiL0
ZCCz = KIuI(hLRM)
C9oV = None
for WKvO in range(0, NsV_ / aiL0):
ZCCz += KDnx
for JjEH in ZKzs.enemies_list:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kYWL(hLRM, YylR, ZKzs, NsV_=Qzu1, **B2fa):\n aiL0 = 16\n dgbs = lNLu(epAf.cos(epAf.radians(YylR)), -epAf.sin(epAf.radians(YylR))) * aiL0\n ZCCz = KIuI(hLRM)\n BAi9 = []\n nMCs = jth9.copy(ZKzs.enemies_list)\n for WKvO in range(0, NsV_ / aiL0):\n ZCCz += dgbs\n for JjEH in nMCs:\... | [
"0.7278352",
"0.64249337",
"0.5539806",
"0.5538173",
"0.5387117",
"0.523258",
"0.52153623",
"0.5097411",
"0.5038053",
"0.4985667",
"0.49746048",
"0.4967651",
"0.49065998",
"0.4881003",
"0.48305634",
"0.48246595",
"0.4797242",
"0.47825658",
"0.47787392",
"0.47703522",
"0.47190... | 0.77704954 | 0 |
Wrapper for AttaCut Fast and Reasonably Accurate Word Tokenizer for Thai | def hTWD(l5Ny: str, C3ST: str='attacut-sc') -> x1iM[str]:
if not l5Ny or not isinstance(l5Ny, str):
return []
bYQP = RQDf(C3ST)
return bYQP.tokenize(l5Ny) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yvzw(_dZy):\n b0j5 = H6bL()\n jWWN = b0j5.tokenize(_dZy.lower())\n return jWWN",
"def Tj6D(cepN, czjt):\n wr8n = []\n for A0Gq, xDcj, ANfV, _TKD in cepN:\n for yAmx in A0Gq:\n czjt.add_vocab(*yAmx)\n czjt.count_doc(*yAmx)\n wr8n.extend(xDcj + [ANfV])\n cz... | [
"0.65250134",
"0.6506513",
"0.6453489",
"0.6349921",
"0.62915426",
"0.6265368",
"0.6249727",
"0.619711",
"0.61563087",
"0.61398464",
"0.6084419",
"0.60737765",
"0.607187",
"0.60616946",
"0.6043579",
"0.6040567",
"0.60357857",
"0.6005005",
"0.59989035",
"0.5990072",
"0.5981920... | 0.0 | -1 |
computing IoU xmin, ymin, xmax, ymax | def _xWy(VKg2, z5xq):
VKg2[0] = float(VKg2[0])
VKg2[1] = float(VKg2[1])
VKg2[2] = float(VKg2[2])
VKg2[3] = float(VKg2[3])
print('rec1, xmin,ymin:(%d,%d) xmax, ymax:(%d,%d)' % (VKg2[0], VKg2[1], VKg2[2], VKg2[3]))
print('rec2, xmin,ymin:(%d,%d) xmax, ymax:(%d,%d)' % (z5xq[0], z5xq[1], z5xq[2], z5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cxP1(YKHO, xNOe, PG8m):\n frsW = oyIN.maximum(xNOe[0], PG8m[0])\n TdlV = oyIN.maximum(xNOe[1], PG8m[1])\n yjMy = oyIN.minimum(xNOe[2], PG8m[2])\n YvNL = oyIN.minimum(xNOe[3], PG8m[3])\n yzQ0 = oyIN.maximum(0.0, yjMy - frsW)\n MKlR = oyIN.maximum(0.0, YvNL - TdlV)\n BQsO = yzQ0 * MKlR\n ... | [
"0.6434358",
"0.63876253",
"0.63340557",
"0.6282999",
"0.6263213",
"0.6116927",
"0.60978514",
"0.6022237",
"0.6008914",
"0.59950554",
"0.5985981",
"0.5966883",
"0.5923819",
"0.5902815",
"0.58979046",
"0.5866241",
"0.5840261",
"0.58378077",
"0.5809833",
"0.5805607",
"0.5798039... | 0.62093836 | 5 |
Swap the positions of two characters in a string | def Dw7x(eZzF: str, xfDz: int, uHqD: int) -> str:
chuJ = list(eZzF)
chuJ[xfDz], chuJ[uHqD] = (chuJ[uHqD], chuJ[xfDz])
return ''.join(chuJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gTRk(l5Ny, oZf4, YBiN):\n KCHu = l5Ny\n NACV = ''\n N9UY = KCHu[oZf4]\n HzUn = KCHu[YBiN]\n ATmt = KCHu[:oZf4]\n TLzM = KCHu[oZf4 + 1:YBiN]\n JbyT = KCHu[YBiN + 1:]\n NACV = ATmt + HzUn + TLzM + N9UY + JbyT\n print('Swapped Encrypted text : ')\n return NACV",
"def ItIL(GIN8):\n ... | [
"0.715326",
"0.69606435",
"0.6952456",
"0.6868907",
"0.67250884",
"0.66518354",
"0.66463965",
"0.65613747",
"0.6485961",
"0.6391889",
"0.63708633",
"0.6349042",
"0.6333542",
"0.63127226",
"0.62922347",
"0.6244852",
"0.62375045",
"0.61770195",
"0.6140371",
"0.61266106",
"0.612... | 0.62313116 | 17 |
Initializes weights to randomly selected ones. | def e45a(YKHO):
YKHO.weights = []
YKHO.bias = []
for YRbF, tpio in enumerate(YKHO.dimensions[1:]):
YKHO.weights.append(oyIN.random.uniform(-1, 1, (YKHO.dimensions[YRbF], tpio)))
YKHO.bias.append(oyIN.random.uniform(-1, 1, tpio)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XXxF(YKHO):\n YKHO.biases = [oyIN.random.randn(LVAh, 1) for LVAh in YKHO.sizes[1:]]\n YKHO.weights = [oyIN.random.randn(LVAh, WKvO) / oyIN.sqrt(WKvO) for WKvO, LVAh in zip(YKHO.sizes[:-1], YKHO.sizes[1:])]",
"def CtUP(YKHO):\n YKHO.w = -1 + 2 * oyIN.random.rand(YKHO.num_of_inputs)\n YKHO.w0 = -1 ... | [
"0.830088",
"0.8106974",
"0.80594665",
"0.8048732",
"0.7973337",
"0.7958445",
"0.7923005",
"0.79205847",
"0.7853558",
"0.7851621",
"0.78394485",
"0.7813727",
"0.7791037",
"0.7781642",
"0.7605329",
"0.75471747",
"0.75438994",
"0.75333905",
"0.75022024",
"0.7492063",
"0.7488693... | 0.8140313 | 1 |
Changes weights to be around the ones provided by shp. This is used to generate offspring from the shp provided. | def DXNc(YKHO, BLg0, hdjz=0, OfK8=(240, 100, 100)):
YKHO.weights = []
YKHO.bias = []
if hdjz == 0:
for YRbF, ug3y in enumerate(BLg0.weights):
YKHO.weights.append(ug3y.copy())
for YRbF, lHmx in enumerate(BLg0.bias):
YKHO.bias.append(lHmx.copy())
else:
for Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t0N6(YKHO, BLg0, hdjz=0, OfK8=(240, 100, 100)):\n YKHO.copyWeights(BLg0, stray=hdjz, colour=OfK8)\n for ug3y in YKHO.weights:\n YRbF = oyIN.random.randint(ug3y.shape[0])\n r845 = oyIN.random.randint(ug3y.shape[1])\n ug3y[YRbF, r845] = oyIN.random.uniform(-1, 1, 1)\n for lHmx in YK... | [
"0.7041162",
"0.65645933",
"0.6378492",
"0.63738847",
"0.6341806",
"0.622586",
"0.6213727",
"0.60888124",
"0.6087517",
"0.6082563",
"0.60552853",
"0.5985946",
"0.5974113",
"0.5966959",
"0.5957351",
"0.5916344",
"0.58965003",
"0.5877744",
"0.5872765",
"0.5836537",
"0.5829642",... | 0.693266 | 1 |
version of copyWeights() that only take 1 element of each weight matrix and changes it absolutely to a new value, regardless of the input value. | def t0N6(YKHO, BLg0, hdjz=0, OfK8=(240, 100, 100)):
YKHO.copyWeights(BLg0, stray=hdjz, colour=OfK8)
for ug3y in YKHO.weights:
YRbF = oyIN.random.randint(ug3y.shape[0])
r845 = oyIN.random.randint(ug3y.shape[1])
ug3y[YRbF, r845] = oyIN.random.uniform(-1, 1, 1)
for lHmx in YKHO.bias:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G7j6(YKHO):\n return (jth9.deepcopy(YKHO.weights_ih), jth9.deepcopy(YKHO.weights_ho))",
"def j7s1(YKHO, pan_, JZXy):\n for SIgb, xqoZ in zip(pan_.parameters(), JZXy.parameters()):\n SIgb.data.copy_(xqoZ.data)",
"def LxcF(YKHO):\n for ug3y in YKHO.weights:\n ug3y[ug3y > 1] = 1\n ... | [
"0.7002011",
"0.6879236",
"0.67828685",
"0.6656836",
"0.65387666",
"0.6333125",
"0.6322166",
"0.629663",
"0.62595266",
"0.62483966",
"0.62285846",
"0.6194986",
"0.6153844",
"0.61504567",
"0.6144958",
"0.6125564",
"0.61214596",
"0.61007637",
"0.6095712",
"0.607384",
"0.607336"... | 0.57926285 | 41 |
Returns the current ship position as a tuple of integers | def uSux(YKHO):
return (int(YKHO.pos[0]), int(YKHO.pos[1])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TwAD(YKHO) -> tuple:\n return YKHO.pos",
"def Iuzb(YKHO) -> laHg.Tuple[int, int]:\n raise NotImplementedError",
"def Mcvp(YKHO) -> AzJI[int]:\n return (YKHO.file, YKHO.rank)",
"def W0Eb(YKHO) -> AzJI[int, int]:\n return (YKHO.x, YKHO.y)",
"def TwAD(YKHO):\n return (YKHO.x, YKHO.y)",
"d... | [
"0.7341177",
"0.7200967",
"0.71909124",
"0.7100945",
"0.7060518",
"0.69802684",
"0.6963608",
"0.6939057",
"0.6817084",
"0.6786425",
"0.67661196",
"0.6756637",
"0.6697585",
"0.665994",
"0.66421515",
"0.66309017",
"0.66010374",
"0.65941644",
"0.659156",
"0.65712994",
"0.6533125... | 0.7346198 | 0 |
Return an array of the given shape and dtype filled with ones. | def pSfY(ROpF: tuple, yDqo: np.dtype, T4Wy: str='C', NLlp=P8hV.mem_alloc):
yvT9 = rz9i.GPUArray(ROpF, yDqo, NLlp, order=T4Wy)
z1Rg = oyIN.ones((), yDqo)
yvT9.fill(z1Rg)
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pSfY(ROpF, yDqo=None):\n return vBWh(ROpF, 1, yDqo)",
"def pSfY(ROpF, yDqo=None):\n if not isinstance(ROpF, (list, tuple, DKnh)):\n ROpF = [ROpF]\n if yDqo is None:\n yDqo = GPtr.floatX\n return a2Be(XTiz.array(1, dtype=yDqo), *ROpF)",
"def pSfY(ROpF, yDqo=None):\n raise NotImp... | [
"0.8584159",
"0.8484917",
"0.81037515",
"0.8066067",
"0.80635613",
"0.78293806",
"0.7592348",
"0.7535861",
"0.7535861",
"0.7490128",
"0.7472371",
"0.74602735",
"0.74329233",
"0.7309876",
"0.72846764",
"0.7241494",
"0.7196",
"0.7062805",
"0.70211536",
"0.7003842",
"0.69979644"... | 0.7642338 | 6 |
Compute the sum along the specified axis. | def ZfNU(yWdh: gpuarray.GPUArray, jDK_: int=None, yvT9: gpuarray.GPUArray=None, JsoO: bool=False, xVds: bool=False, P_MT: int=0) -> rz9i.GPUArray:
assert isinstance(P_MT, mSrU.Integral)
if jDK_ is None or len(yWdh.shape) <= 1:
pfA5 = (1,) * len(yWdh.shape) if JsoO else ()
if xVds is False:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sum(vhpA, jDK_=None):\n raise NotImplementedError",
"def sum(YKHO, jDK_=None, JsoO=False):\n return vuvg.Sum.apply(YKHO, jDK_, JsoO)",
"def sum(YKHO, jDK_: int=0):\n YKHO.values = YKHO.values.sum(axis=jDK_)\n YKHO.layers = [None]\n return YKHO.copy()",
"def sum(YKHO, jDK_=None, JsoO=False,... | [
"0.8128596",
"0.79579294",
"0.7781102",
"0.7558087",
"0.7473695",
"0.74137914",
"0.7381376",
"0.73511857",
"0.7201773",
"0.7127504",
"0.69339126",
"0.6753328",
"0.674404",
"0.67009723",
"0.66545206",
"0.66333914",
"0.66175956",
"0.6575717",
"0.65181714",
"0.650503",
"0.647526... | 0.0 | -1 |
Uses Rescaling Method (xmin(X))/(max(X)min(X)) to normalize the data set | def ft7O(nPrm: pd.DataFrame) -> rLdf.DataFrame:
Crrw = nPrm.pop('Labels')
ZCnw = (nPrm - nPrm.min()) / (nPrm.max() - nPrm.min())
ZCnw['Labels'] = Crrw
return ZCnw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(WKvO):\n Nc3t = oyIN.max(WKvO)\n WJZ9 = oyIN.min(WKvO)\n WKvO = (WKvO - WJZ9) / (Nc3t - WJZ9)\n return WKvO",
"def NkkI(YKHO, WKvO, BQGg, bYzl):\n return (WKvO - BQGg) / (bYzl - BQGg)",
"def NkkI(WKvO, JRC0, IA3S):\n return (WKvO - JRC0) / (IA3S - JRC0)",
"def NkkI(WKvO, re6M, wBZN... | [
"0.82514304",
"0.79993814",
"0.7850011",
"0.7839024",
"0.7757047",
"0.7677804",
"0.7677804",
"0.76516336",
"0.76386595",
"0.7610676",
"0.75835884",
"0.7537762",
"0.7497532",
"0.7467388",
"0.7455064",
"0.74113506",
"0.73814034",
"0.73743045",
"0.7359983",
"0.73518115",
"0.7340... | 0.6814351 | 66 |
converts data (numpy array) that has onehot encoded categories in its last dimension to category indices (with the other dimensions remaining) | def KXY9(nPrm: ndarray):
return oyIN.argmax(nPrm, axis=-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UPru(nPrm, Ybg9):\n x6A0 = oyIN.array(nPrm).reshape(-1)\n return oyIN.eye(Ybg9)[x6A0]",
"def UPru(nPrm, Ybg9):\n x6A0 = oyIN.array(nPrm).reshape(-1)\n return oyIN.eye(Ybg9)[x6A0]",
"def UPru(nPrm, Ybg9):\n x6A0 = oyIN.array(nPrm).reshape(-1)\n return oyIN.eye(Ybg9)[x6A0]",
"def UPru(nPr... | [
"0.76681525",
"0.76309854",
"0.76309854",
"0.76309854",
"0.76309854",
"0.7334187",
"0.7311324",
"0.72474855",
"0.7202543",
"0.7199169",
"0.7192213",
"0.71736515",
"0.71654564",
"0.7138912",
"0.71137965",
"0.708408",
"0.7082651",
"0.70444226",
"0.7039511",
"0.7019328",
"0.7008... | 0.8689355 | 0 |
Return the rate density for q, including f_bin and malmquist bias | def WBOL(YKHO, KMvS, POVT):
JfyU = oyIN.poly1d(YKHO.malm_pars[::-1])
ZGW1 = (1 - KMvS) / (YKHO.high_q ** (1 - KMvS) - YKHO.low_q ** (1 - KMvS))
eAkl = oyIN.sum([XP5J * ZGW1 / (YRbF + 1 - KMvS) * (YKHO.high_q ** (YRbF + 1 - KMvS) - YKHO.low_q ** (YRbF + 1 - KMvS)) for YRbF, XP5J in enumerate(YKHO.malm_pars)]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InLe(ycBG, By5j):\n FxxR = mV9l(0, 1, ycBG, By5j)\n ljtd = FxxR ** (-1)\n return ljtd",
"def T8ck(YKHO):\n return oyIN.array(list(YKHO.center_frequencies)) / oyIN.array(list(YKHO.bandwidths))",
"def Fg_i(vexM):\n if vexM == 0 or vexM == 1:\n return float(0.0)\n return -(vexM * gNuL... | [
"0.6526074",
"0.601527",
"0.5992198",
"0.5986421",
"0.59018826",
"0.5891574",
"0.5886646",
"0.5874722",
"0.58352107",
"0.5830237",
"0.5828314",
"0.58241194",
"0.5772418",
"0.57328796",
"0.56996655",
"0.56438416",
"0.56393325",
"0.5635219",
"0.5631988",
"0.5618872",
"0.5602189... | 0.0 | -1 |
Remove temporary directories and test conda env. | def zDvN():
if not eK95:
print('\nCleaning up temporary directories...')
RDuA.rmtree(qWz8, ignore_errors=True)
RDuA.rmtree(Hgdp, ignore_errors=True)
print('Removing conda environment used for testing...')
H4yH.call('conda env remove -y -q -n {}'.format(qGhw), shell=True, executable='... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GLtq():\n RRlC = SC2F.glob(f'{vmiX}/tmp/*')\n for eHNT in RRlC:\n try:\n Hy7s.remove(eHNT)\n except Exception:\n pass",
"def T_KN(JEoO: str, Xmp7: str) -> None:\n if '--cov-append' in Xmp7:\n ucBt = [xtX7 for xtX7 in Hy7s.listdir(JEoO) if 'whl' != xtX7]\n ... | [
"0.7477139",
"0.7282243",
"0.7233276",
"0.7186198",
"0.7083509",
"0.70632094",
"0.7054803",
"0.69754696",
"0.6933649",
"0.6852207",
"0.6848033",
"0.6827005",
"0.6818069",
"0.6814824",
"0.6814522",
"0.68024087",
"0.67896783",
"0.67687935",
"0.6759842",
"0.6759306",
"0.6759306"... | 0.8183083 | 0 |
Verifies shape inputs in reshape are properly imported | def IRnM(YKHO):
class Net(ht2j.nn.Module):
def FIMM(YKHO):
super().__init__()
YKHO.fc1 = ht2j.nn.Linear(4, 4)
def KVH6(YKHO, WKvO):
yvT9 = WKvO.reshape(1, 4)
yvT9 = YKHO.fc1(yvT9)
return yvT9
C3ST = Zgf_()
WKvO = ht2j.ones(2, 2)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fuw0(GhuM):\n tO9_ = 'Input to FlattenAxis must be 5D with dimensions: (n_observations, n_spatial_0, n_spatial_1, n_temporal, n_features), but received shape: {}'.format(GhuM)\n assert len(GhuM) == 5, tO9_",
"def Fuw0(GhuM):\n tO9_ = 'Input to SpatialExpansion must be 4D with dimensions: (n_observat... | [
"0.7390682",
"0.7349965",
"0.6976115",
"0.695844",
"0.6835194",
"0.6597007",
"0.6578576",
"0.6463081",
"0.6454531",
"0.6453658",
"0.64483976",
"0.6421449",
"0.64169073",
"0.63749385",
"0.63287026",
"0.6311869",
"0.6301827",
"0.62947226",
"0.6284791",
"0.6280287",
"0.62444764"... | 0.0 | -1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, ov3K):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Method to view a single shopping list | def MgWB(c5ow, id):
if QePW.content_type == 'application/json':
try:
int(id)
except ValueError:
return geh0('failed', 'Please provide a valid ShoppingList Id', 400)
else:
MJIy = VlsX.query.filter_by(user_id=c5ow.id, id=id).first()
if MJIy is no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H__F(QePW):\n return _1tc(QePW, 'shop/shop.html')",
"def NMoC(YKHO):\n DumB = YKHO.request.get_all('food')\n YKHO.render('shopping_list.html', items=DumB)",
"def d6pt(QePW):\n return _1tc(QePW, 'shop/index.html')",
"def lrVf(QePW):\n SR0I = msfn.objects.all()\n QpfX = {'object_list': SR... | [
"0.7041904",
"0.69466335",
"0.6658593",
"0.65421015",
"0.65386415",
"0.64889246",
"0.6468317",
"0.646398",
"0.64386576",
"0.6436462",
"0.63468236",
"0.63406044",
"0.62979925",
"0.6265284",
"0.6232084",
"0.6206315",
"0.6177075",
"0.61700743",
"0.61650306",
"0.61641103",
"0.616... | 0.59253645 | 45 |
Retrieves user by id | def cnwm(uJjO):
YEnM = S8SU.get(mv1M, uJjO)
if YEnM is None:
eTsH(404)
return pz3A(YEnM.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bt8D(YKHO, id):\n return YKHO.users.get(id)",
"def TKWP(id):\n pass",
"def NMoC(id):\n return mv1M.query.filter_by(id=id).first()",
"def NMoC(YKHO, id):\n try:\n H6Ho.logger.debug('We are getting the user: %d', id)\n return ud_Z.get(id)\n except AssertionError as e:\n ... | [
"0.8669667",
"0.8583676",
"0.8578365",
"0.8571038",
"0.83665395",
"0.8360695",
"0.8281764",
"0.82566285",
"0.82395405",
"0.8231309",
"0.8211623",
"0.8136258",
"0.81260496",
"0.81073004",
"0.80853456",
"0.8043391",
"0.8005892",
"0.79987067",
"0.797756",
"0.797756",
"0.797756",... | 0.0 | -1 |
Called when the user specifies an intent for this skill | def E97p(McO3, cuiw):
print('on_intent requestId=' + McO3['requestId'] + ', sessionId=' + cuiw['sessionId'])
E2VF = McO3['intent']
q8Qy = McO3['intent']['name']
if q8Qy == 'NewMessageIntent':
return aUBf(E2VF, cuiw)
elif q8Qy == 'SaveIntent':
return NOei(E2VF, cuiw)
elif q8Qy == ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E97p(McO3, cuiw):\n E2VF = McO3['intent']\n q8Qy = McO3['intent']['name']\n if q8Qy not in eduI:\n q8Qy = 'NullSkill'\n if q8Qy in eduI:\n try:\n return eduI[q8Qy].execute(E2VF, cuiw)\n except Exception as e:\n wVCK.print_exc()\n return srwk().r... | [
"0.7143966",
"0.6956116",
"0.6949057",
"0.6905333",
"0.68928874",
"0.67641324",
"0.6754843",
"0.6722764",
"0.6720773",
"0.67161995",
"0.6699252",
"0.6691263",
"0.6670276",
"0.6645522",
"0.6642719",
"0.6638686",
"0.6607724",
"0.6594981",
"0.6575682",
"0.6570076",
"0.65620786",... | 0.6509534 | 28 |
given a sklearn confusion matrix (cm), make a nice plot Arguments | def LwSz(Bcwd, HOVt, leAC='Confusion matrix', iMGt=None, NkkI=True):
import matplotlib.pyplot as QrM1
import numpy as oyIN
import itertools
vjyh = oyIN.trace(Bcwd) / float(oyIN.sum(Bcwd))
YBwF = 1 - vjyh
if iMGt is None:
iMGt = QrM1.get_cmap('Blues')
QrM1.figure(figsize=(8, 6))
Q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, tGDF):\n JI1i = QrM1.figure(figsize=(10, 10))\n QrM1.imshow(Bcwd, interpolation='nearest', cmap=QrM1.cm.Blues)\n QrM1.title('Confusion matrix')\n QrM1.colorbar()\n wIWT = oyIN.arange(len(tGDF))\n QrM1.xticks(wIWT, tGDF, rotation=45)\n QrM1.yticks(wIWT, tGDF)\n for YRbF, r845 ... | [
"0.79997694",
"0.79955804",
"0.7947871",
"0.79360676",
"0.79129595",
"0.7897813",
"0.7879448",
"0.786082",
"0.786082",
"0.78540397",
"0.78501374",
"0.78499055",
"0.78404397",
"0.7835427",
"0.7828328",
"0.78253037",
"0.78049725",
"0.78017557",
"0.77822274",
"0.77789044",
"0.77... | 0.0 | -1 |
Sometimes you get an URL by a user that just isn't a real URL because it contains unsafe characters like ' ' and so on. This function can fix some of the problems in a similar way browsers | def BkLH(KCHu, p4k2='utf-8'):
if isinstance(KCHu, QMSQ):
KCHu = KCHu.encode(p4k2, 'ignore')
ht58, RYr6, pmON, umWR, DNwW = KVWQ.urlsplit(KCHu)
pmON = uRlK.quote(pmON, '/%')
umWR = uRlK.quote_plus(umWR, ':&=')
return KVWQ.urlunsplit((ht58, RYr6, pmON, umWR, DNwW)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _1lG(bD7m):\n KCHu = bD7m\n bD7m = bD7m.encode('utf8')\n bD7m = ''.join([uRlK.quote(Z9rn) if ord(Z9rn) >= 127 else Z9rn for Z9rn in bD7m])\n return bD7m",
"def H3MP(YKHO, bD7m):\n if not YKHO.markdown.safeMode:\n return bD7m\n try:\n ht58, RYr6, pmON, NArs, xDcj, vBtp = bD7m =... | [
"0.7528187",
"0.74440855",
"0.7276908",
"0.7201769",
"0.7050244",
"0.702548",
"0.7006525",
"0.6976845",
"0.69176257",
"0.691757",
"0.6873923",
"0.679334",
"0.67786276",
"0.6718079",
"0.6692045",
"0.66769314",
"0.665277",
"0.6649466",
"0.6602803",
"0.656471",
"0.65415454",
"... | 0.6285419 | 35 |