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 |
|---|---|---|---|---|---|---|
Get list of subscriptions | def VOru(YKHO):
bD7m = '{}/v2/subscriptions'.format(YKHO.url)
Mkmy = G4JS.get(bD7m, headers=YKHO.headers_v2)
return Mkmy.json() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VOru(YKHO):\n return YKHO.subscriptions.all()",
"def list(Emd4, **B2fa):\n geh0 = tV5k().list_subscriptions(**B2fa)\n return [Emd4(**finE) for finE in geh0['results']]",
"def YGI8() -> object:\n NCls = aGHv()\n return NCls.Subscriptions.objects().to_json()",
"def XU4s(YKHO):\n return YK... | [
"0.8398169",
"0.8375198",
"0.8325919",
"0.8277738",
"0.8259095",
"0.79059505",
"0.78718024",
"0.77910763",
"0.7774858",
"0.7725947",
"0.7718782",
"0.76882046",
"0.7623318",
"0.7581791",
"0.7498807",
"0.7496328",
"0.7492321",
"0.74787927",
"0.7477246",
"0.74727875",
"0.7406269... | 0.85034156 | 0 |
Get list of subscriptions | def zk1W(YKHO, JuHa):
bD7m = '{}/v2/subscriptions/{}'.format(YKHO.url, JuHa)
print(bD7m)
Mkmy = G4JS.delete(bD7m, headers=YKHO.headers_v2)
if Mkmy.status_code == 204:
return 'success'
return Mkmy.json() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VOru(YKHO):\n bD7m = '{}/v2/subscriptions'.format(YKHO.url)\n Mkmy = G4JS.get(bD7m, headers=YKHO.headers_v2)\n return Mkmy.json()",
"def VOru(YKHO):\n return YKHO.subscriptions.all()",
"def list(Emd4, **B2fa):\n geh0 = tV5k().list_subscriptions(**B2fa)\n return [Emd4(**finE) for finE in g... | [
"0.85034156",
"0.8398169",
"0.8375198",
"0.8325919",
"0.8277738",
"0.8259095",
"0.79059505",
"0.78718024",
"0.77910763",
"0.7774858",
"0.7725947",
"0.7718782",
"0.76882046",
"0.7623318",
"0.7581791",
"0.7498807",
"0.7496328",
"0.7492321",
"0.74787927",
"0.7477246",
"0.7472787... | 0.0 | -1 |
Return a zero of the function f with derivative df. | def CbDj(eHNT, jQ3Z):
def CiO1(WKvO):
return Tbdk(eHNT(WKvO), 0)
return Lbti(eYgL(eHNT, jQ3Z), CiO1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IExn(eHNT, Csk6=0):\n return vZ_W(nu4s(eHNT) - Csk6)",
"def CbDj(eHNT, EBgd, Csk6):\n if EBgd > 10:\n EBgd = 0.5\n Z9rn = EBgd - eHNT(EBgd) * Csk6 / (eHNT(EBgd + Csk6) - eHNT(EBgd))\n if Z9rn < 0:\n Z9rn = -Z9rn\n global n_of_zeros\n if S3Pv > 8:\n print('Go linear')\n ... | [
"0.710459",
"0.69687253",
"0.68732387",
"0.6862347",
"0.6778152",
"0.6637142",
"0.6637142",
"0.6579491",
"0.6576675",
"0.6561542",
"0.65527314",
"0.6465958",
"0.6439708",
"0.6392126",
"0.6368971",
"0.63685733",
"0.6347817",
"0.6342038",
"0.63330156",
"0.6315682",
"0.63055897"... | 0.72815776 | 0 |
Return the product of two polynomials. | def rc09(ySKx, X8v6):
"""*** YOUR CODE HERE ***""" | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lx3t(YKHO, WKvO, LVAh):\n return YKHO(WKvO.lift() * LVAh.lift())",
"def Lx3t(YKHO, WKvO, LVAh):\n return YKHO._cached_product(WKvO.value, LVAh.value)",
"def QlW8(o4D3, ajwV):\n return oyIN.multiply(o4D3, ajwV)",
"def QRFO(YKHO, WKvO, LVAh):\n return YKHO.reduce(WKvO + LVAh)",
"def Lx3t(jzdc... | [
"0.73147523",
"0.72763896",
"0.72646916",
"0.72538054",
"0.72258043",
"0.7211867",
"0.7186754",
"0.7025851",
"0.6962782",
"0.6938128",
"0.69103223",
"0.68699586",
"0.6851267",
"0.6796636",
"0.6779231",
"0.6773779",
"0.6679488",
"0.66560173",
"0.65410644",
"0.6526134",
"0.6524... | 0.0 | -1 |
get number of months between date1 and date2 | def RGfn(Ilc0, w0do):
RA_F = 0
while True:
Azz0 = wTnG(Ilc0.year, Ilc0.month)[1]
Ilc0 += fCoM(days=Azz0)
if Ilc0 <= w0do:
RA_F += 1
else:
break
return RA_F | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iayq(Ilc0, w0do):\n if Ilc0.daysTo(w0do) < 0:\n PYCW = Ilc0\n Ilc0 = w0do\n w0do = PYCW\n ulWt = w0do.year() - Ilc0.year()\n X_bn = w0do.month() - Ilc0.month()\n if X_bn < 0:\n ulWt -= 1\n X_bn += 12\n return 12 * ulWt + X_bn",
"def nzGy(kepv, KhBf):\n yk4... | [
"0.8220923",
"0.7981674",
"0.78050035",
"0.71566683",
"0.69912905",
"0.6870293",
"0.66869533",
"0.6676488",
"0.64629275",
"0.6369351",
"0.63632154",
"0.634212",
"0.62995034",
"0.62808937",
"0.6219738",
"0.6204618",
"0.61590964",
"0.6150254",
"0.6134692",
"0.61048067",
"0.6095... | 0.78957486 | 2 |
creates a numpy.array of daily timestamp between date1 and date2 | def UyYl(Ilc0, w0do):
qE0M = (w0do - Ilc0).days
return oyIN.array([qcWV(Ilc0.year, Ilc0.month, Ilc0.day, 0) + fCoM(days=YRbF) for YRbF in range(qE0M)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zN4q(YKHO, kepv, KhBf):\n LrN6 = oyIN.array([fCoM(hours=MKlR) for MKlR in YKHO.h_steps])\n M_Ra = []\n yk4i = KhBf - kepv\n for YRbF in range(yk4i.days + 1):\n dw8O = kepv + fCoM(days=YRbF) + LrN6\n M_Ra.extend(dw8O.tolist())\n return M_Ra",
"def zN4q(YKHO, kepv, KhBf):\n LrN6... | [
"0.62646705",
"0.6251543",
"0.6244625",
"0.58896583",
"0.58510077",
"0.5696359",
"0.5563263",
"0.55348426",
"0.55319935",
"0.542548",
"0.5410174",
"0.5364342",
"0.53538656",
"0.53444016",
"0.533278",
"0.52783984",
"0.52664703",
"0.52501595",
"0.52376074",
"0.52373147",
"0.523... | 0.7559687 | 0 |
Create a time stamp | def ct8j(YKHO, AIu6):
AIu6.dbtime = ITS7.strftime('%Y-%m-%d %H:%M:%S', ITS7.localtime(AIu6.created)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ghLW() -> str:\n return qcWV.datetime.now().strftime('%Y%m%d')",
"def Gz62():\n return str(qcWV.now().strftime('%H%M%S'))",
"def IJ8b():\n return F803('%Y%m%dT%H%M%S')",
"def YLTo():\n return qcWV.now().strftime('%Y-%m-%d-%H-%M-%S')",
"def YnO1(YKHO):\n bo34.debug('Get a timestamp')\n ... | [
"0.82344866",
"0.80578434",
"0.7941837",
"0.7887707",
"0.7724759",
"0.764854",
"0.76407987",
"0.7609499",
"0.7507878",
"0.75021756",
"0.7492183",
"0.7405442",
"0.7382047",
"0.73726344",
"0.73598593",
"0.72908676",
"0.72616744",
"0.7245461",
"0.72384834",
"0.7209734",
"0.71923... | 0.0 | -1 |
Close the cursor object and the connection to the database Used when closing the context manager or deleting the object | def DDI8(YKHO):
YKHO.cursor.close()
YKHO.db.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n YKHO.db.close()",
"def DDI8(YKHO):\n if YKHO.cursor is None:\n return\n YKHO.cursor.close()\n YKHO.cursor = None\n YKHO.app_id = None\n YKHO.iden_id = None",
"def DDI8(YKHO):\n YKHO.cursor.close()",
"def DDI8(YKHO):\n if YKHO.cursor:\n YKHO.cursor.close... | [
"0.86554474",
"0.8260736",
"0.8233482",
"0.8230915",
"0.8141959",
"0.8133902",
"0.81295943",
"0.8077434",
"0.80626726",
"0.806266",
"0.8043159",
"0.80188817",
"0.798275",
"0.79796505",
"0.79384774",
"0.79309344",
"0.7913784",
"0.78969324",
"0.7894729",
"0.78856033",
"0.787497... | 0.85049456 | 1 |
Check if rows exist in a table satisfying the given where clauses. | def vtfo(YKHO, tyNF, **qJWj):
y8bC = ' AND '.join([str(hkS8) + "='" + str(wEf2) + "'" for hkS8, wEf2 in qJWj.items()])
if qJWj:
xDcj = 'SELECT COUNT(*) FROM "{}" WHERE {}'.format(tyNF, y8bC)
else:
xDcj = 'SELECT COUNT(*) FROM "{}"'.format(tyNF, y8bC)
YKHO.cursor.execute(xDcj)
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W32_(N1p7, tyNF, nPrm):\n N1p7.execute('SELECT 1 FROM {} WHERE ({}) = ({})'.format(tyNF, *WQjm(nPrm)), nPrm)\n return bool(N1p7.fetchone())",
"def sjXf(YKHO, GTA_, sjXb=None, any=False, RAX_=None):\n tyNF = YKHO.db.table(GTA_)\n if RAX_ is not None:\n S0MI.debug('%r: contains(eids=%r)' % (... | [
"0.6341168",
"0.6322485",
"0.6010342",
"0.60048956",
"0.5916878",
"0.58578634",
"0.58364034",
"0.5764844",
"0.5717923",
"0.56689465",
"0.566596",
"0.5644548",
"0.563038",
"0.5628894",
"0.56232756",
"0.5587086",
"0.55848366",
"0.55557954",
"0.5468923",
"0.5435275",
"0.54281336... | 0.7143307 | 0 |
Uses the value in the configuration to generate the activation layer | def gwuZ(Mz5r):
if type(Mz5r) == list:
if len(Mz5r) == 2:
OYqn, Mzf9 = Mz5r
if OYqn == 'elu':
return q9ei(alpha=Mzf9)
elif OYqn == 'leaky':
return ybb1(alpha=Mzf9)
elif OYqn == 'prelu':
return qvcW()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kmxe(WKvO):\n return WKvO",
"def atlM(WKvO, pDev):\n if pDev == 'HS':\n WKvO = MroH(UVIU)(WKvO)\n if pDev == 'RE':\n WKvO = MroH(F_nC)(WKvO)\n return WKvO",
"def RN9v(YKHO, N9LM):\n return {}",
"def o390(YKHO, AdfU, YDYE):\n if YDYE == 'ReLU':\n AdfU.append(U78l.ReL... | [
"0.7048914",
"0.66638404",
"0.6513957",
"0.64711577",
"0.64621544",
"0.641587",
"0.6366923",
"0.63322306",
"0.62809336",
"0.6253608",
"0.6253608",
"0.6251253",
"0.6233026",
"0.623275",
"0.6205886",
"0.6174059",
"0.615047",
"0.6148785",
"0.6092307",
"0.60719943",
"0.60170734",... | 0.6444262 | 5 |
Swish activation function f(x) = x sigmoid(x) | def pbsR(WKvO):
return WKvO * ZylS.sigmoid(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pbsR(WKvO):\n return WKvO * G1Hx.activations.sigmoid(WKvO)",
"def d1fz(WKvO):\n return 1.0 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(EcVT, XcU5, Fg_i):\n sdgB = oyIN.dot(EcVT, XcU5) + Fg_i\n ... | [
"0.85330546",
"0.80146253",
"0.7924477",
"0.7924477",
"0.7834979",
"0.7768678",
"0.7701341",
"0.76915896",
"0.7679821",
"0.7679821",
"0.7679821",
"0.7679821",
"0.7679821",
"0.7679821",
"0.76798",
"0.7678892",
"0.7670881",
"0.76577955",
"0.76546377",
"0.7654548",
"0.7654548",
... | 0.839208 | 1 |
Returns distance in metres two points at a scale in m / pixel. | def Ayfi(jzdc: Point, Fg_i: Point, NXpY: float) -> float:
vKN2 = jzdc.y - Fg_i.y
Ff_7 = Fg_i.x - jzdc.x
return NXpY * epAf.sqrt(vKN2 ** 2 + Ff_7 ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k9Tn(lCHq: np.ndarray, ANJu: np.ndarray) -> float:\n return oyIN.sqrt(oyIN.sum(oyIN.square(lCHq - ANJu)))",
"def HslK(igSk, PNCc, TGuP, v7YJ):\n return (abs(igSk - TGuP) + abs(PNCc - v7YJ)) * 100",
"def pImw(jzdc, Fg_i):\n return FOSW(finE(jzdc, Fg_i))",
"def eve5(igSk, GgQG, TGuP, tk0B):\n r... | [
"0.69323415",
"0.68888944",
"0.6871156",
"0.6864509",
"0.6789273",
"0.678687",
"0.67551297",
"0.67032665",
"0.6617065",
"0.6612344",
"0.6612344",
"0.6612344",
"0.6612344",
"0.6612344",
"0.6600635",
"0.6595335",
"0.65848386",
"0.6579544",
"0.65792656",
"0.6576208",
"0.65716827... | 0.7553026 | 0 |
Returns distance in metres and angle in degrees between two points at a scale in m / pixel. | def tJM7(jzdc: Point, Fg_i: Point, NXpY: float) -> laHg.Tuple[float, float]:
return (Ayfi(jzdc, Fg_i, NXpY), Je4s(jzdc, Fg_i)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(jzdc: Point, Fg_i: Point, NXpY: float) -> float:\n vKN2 = jzdc.y - Fg_i.y\n Ff_7 = Fg_i.x - jzdc.x\n return NXpY * epAf.sqrt(vKN2 ** 2 + Ff_7 ** 2)",
"def pImw(jzdc, Fg_i):\n return FOSW(finE(jzdc, Fg_i))",
"def pImw(jzdc: Point, Fg_i: Point):\n return (jzdc.x - Fg_i.x) ** 2 + (jzdc.y -... | [
"0.70006555",
"0.67366946",
"0.64140326",
"0.63529974",
"0.63453376",
"0.6335935",
"0.6302976",
"0.6299658",
"0.6289378",
"0.62801343",
"0.62367475",
"0.623009",
"0.62291485",
"0.62259954",
"0.6212561",
"0.62117785",
"0.6203023",
"0.61536294",
"0.6130652",
"0.6102998",
"0.607... | 0.6276442 | 10 |
Returns the error estimate of distance. At +2500m to the threshold this is assumed to be 100m decreasing linearly to 10m at the threshold and thereafter. | def ecD3(Ayfi: float) -> float:
U5bT = 10.0
if Ayfi < 0:
U5bT += Ayfi * (100 - U5bT) / -2500.0
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWCP(YKHO):\n pass",
"def O09y(rGDA, k7TH, PiDb):\n assert len(rGDA.shape) == 2\n assert rGDA.shape[1] == 2\n cKGD = oyIN.diff(rGDA, axis=0)\n J87D = cKGD / oyIN.linalg.norm(cKGD, axis=1)[:, oyIN.newaxis]\n SnQ6 = PiDb - rGDA\n OFPz = oyIN.vstack([J87D[:, 1], -J87D[:, 0]]).T\n VNBt = ... | [
"0.68346655",
"0.59785795",
"0.5899985",
"0.5891643",
"0.58115864",
"0.57261914",
"0.5721195",
"0.5701244",
"0.5672895",
"0.566193",
"0.56211555",
"0.5603761",
"0.5581379",
"0.55801815",
"0.5575662",
"0.55719346",
"0.55618274",
"0.5559863",
"0.5535016",
"0.5530429",
"0.552588... | 0.6669917 | 1 |
Return similarity of image clamped between 0 and 1, based on color histogram. | def i0zZ(ZMmS, vmja):
CZ14 = hnIv.open(ZMmS)
WTy1 = CZ14.histogram()
UQGd = dgfu(WTy1)
_z_f = hnIv.open(vmja)
uqp4 = _z_f.histogram()
MIrX = dgfu(uqp4)
_yls = w2Xi(WTy1, uqp4)
return _yls | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f33t(kauQ: np.ndarray, _YGI: np.ndarray) -> oyIN.ndarray:\n u3jo = ww6x(kauQ, yi0W, mSVR)\n uH6t = ww6x(_YGI, yi0W, mSVR)\n x5vt = max(2 * oyIN.sum(u3jo), 2 * oyIN.sum(uH6t))\n return 100 - 100 * oyIN.sum(oyIN.absolute(u3jo - uH6t)) / x5vt",
"def SnO7(VXjJ):\n QzFq, Pyrc = oyIN.histogram(VXjJ.... | [
"0.7710607",
"0.7021697",
"0.696457",
"0.6765876",
"0.6655069",
"0.66449726",
"0.6612816",
"0.6607752",
"0.6590249",
"0.6524321",
"0.64872754",
"0.64509964",
"0.64006555",
"0.6377595",
"0.63449633",
"0.6320793",
"0.6315561",
"0.63066345",
"0.62904185",
"0.6282458",
"0.6277086... | 0.6007296 | 28 |
Calculate distance between to earth coordinates. Result is in miles. | def Y5Al(igSk: float, GgQG: float, TGuP: float, tk0B: float) -> float:
A3Vt = 3963.0
igSk = Y_1E(igSk)
GgQG = Y_1E(GgQG)
TGuP = Y_1E(TGuP)
tk0B = Y_1E(tk0B)
H91H = tk0B - GgQG
n_9K = TGuP - igSk
jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2
Z9rn = 2 * vwZ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g2qd(ITS7='now'):\n return qoLV(ITS7).radius",
"def yvDT(YKHO, HvcS):\n return HvcS.dist_from_radius(xUPz)",
"def NONC(YKHO, j5sA):\n QnmL = epAf.radians(YKHO.latitude - j5sA.latitude)\n Swre = epAf.radians(YKHO.longitude - j5sA.longitude)\n jzdc = epAf.pow(epAf.sin(QnmL / 2), 2) + epAf.cos(... | [
"0.74275494",
"0.6892453",
"0.6786982",
"0.67252445",
"0.67228395",
"0.67050934",
"0.66883934",
"0.6661304",
"0.65835005",
"0.6579619",
"0.6579619",
"0.6579619",
"0.6579619",
"0.6579619",
"0.65778446",
"0.65706176",
"0.65483814",
"0.65294033",
"0.6504263",
"0.6497094",
"0.649... | 0.7156023 | 1 |
saves user dict in a json file for backup purposes. | def R7d1(t9Gx: dict) -> None:
with open('users.json', 'w') as SJYg:
qQXR.dump(t9Gx, SJYg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _vhh(YKHO):\n YKHO.user['Video'] = ''\n with open(YKHO.user_file, 'w+') as wM3v:\n qQXR.dump(YKHO.user, wM3v, indent=4)",
"def GqIC(qaEx: str, _4no: dict) -> None:\n Hy7s.makedirs(Hy7s.path.dirname(qaEx), exist_ok=True)\n with open(qaEx, 'w') as eHNT:\n print(f'[I/O] Saving user dat... | [
"0.79160696",
"0.76484644",
"0.75792545",
"0.7564305",
"0.7516156",
"0.74020296",
"0.73266774",
"0.73105067",
"0.73105067",
"0.73105067",
"0.7294279",
"0.7293666",
"0.722183",
"0.7220219",
"0.7195101",
"0.7185052",
"0.7102662",
"0.7087843",
"0.7079798",
"0.7076869",
"0.702014... | 0.83944935 | 0 |
return the array index for (x1, y1, x2, y2) coordinates | def hkp7(o4D3, si3g, ajwV, skBL):
return o4D3 * 27 + si3g * 9 + ajwV * 3 + skBL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jp_7(WKvO, LVAh):\n d6pt = LVAh * ZLJ_ + WKvO\n return d6pt",
"def Vn7Z(YKHO, WKvO, LVAh):\n YRbF = (LVAh - YKHO.y0) // YKHO.dy\n r845 = (WKvO - YKHO.x0) // YKHO.dx\n YRbF = min(max(YRbF, 0), YKHO.n - 1)\n r845 = min(max(r845, 0), YKHO.m - 1)\n return [YRbF, r845]",
"def d6pt(YKHO, WKv... | [
"0.79767454",
"0.7710934",
"0.75416255",
"0.75416255",
"0.7403139",
"0.7255793",
"0.7206964",
"0.7156717",
"0.7153376",
"0.7099808",
"0.7084314",
"0.7042873",
"0.70158625",
"0.69993585",
"0.69844043",
"0.6948298",
"0.6928068",
"0.6901308",
"0.68569285",
"0.6839039",
"0.682626... | 0.6508926 | 35 |
Get the environment variable or return an exception. | def Cu40(XuY2):
try:
return Hy7s.environ[XuY2]
except KeyError:
tf1m = 'Set the {} environment variable'.format(XuY2)
raise Exception(tf1m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cu40(YKHO, XuY2, CYSX=False):\n try:\n return PNq_[XuY2]\n except KeyError:\n if CYSX:\n return False\n else:\n tf1m = f'Error: You must set the {XuY2} environment variable.'\n raise Exception(tf1m)",
"def U3Dl(H5ew):\n BWXx = Hy7s.getenv(H5ew)\n... | [
"0.80457675",
"0.8030515",
"0.7970805",
"0.7830226",
"0.7669435",
"0.7650485",
"0.75856763",
"0.7574462",
"0.7559217",
"0.7539553",
"0.7533871",
"0.7533828",
"0.752872",
"0.7429229",
"0.7423501",
"0.7372745",
"0.734772",
"0.73405427",
"0.7332478",
"0.7260579",
"0.71217793",
... | 0.7896108 | 3 |
Returns an int64_list from a bool / enum / int / uint. | def Oety(BWXx):
return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kmpz(FiiE):\n Aofo = []\n for d7pR in FiiE:\n if isinstance(d7pR, (list, tuple)):\n Aofo.append(Kmpz(d7pR))\n elif d7pR is True:\n Aofo.append(1)\n elif d7pR is False:\n Aofo.append(0)\n else:\n Aofo.append(d7pR)\n return Aofo",
... | [
"0.68806016",
"0.659591",
"0.646043",
"0.6447361",
"0.63662255",
"0.62898934",
"0.62705195",
"0.6215276",
"0.61031455",
"0.5950929",
"0.5944742",
"0.5901341",
"0.5864068",
"0.5864068",
"0.5856132",
"0.5843577",
"0.58429956",
"0.5830027",
"0.5801629",
"0.57937616",
"0.57937616... | 0.5495083 | 64 |
Returns the first ICachableItem in the ICachableSource | def cntZ(YKHO):
Djgy = jP4P(YKHO.source, YKHO.factory, YKHO.key())
try:
ZfUD = Djgy.items().next()
return ZfUD
except StopIteration:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V7As(YKHO):\n return YKHO.GetNextVisible(YKHO.GetRootItem())",
"def nNP9(Emd4):\n return Emd4.query.first()",
"def V7As(YKHO):\n id = YKHO.GetRootItem()\n if not id:\n return id\n while id:\n if YKHO.IsVisible(id):\n return id\n id = YKHO.GetNext(id)\n retu... | [
"0.6724672",
"0.6649137",
"0.6547738",
"0.6443537",
"0.62967414",
"0.6210913",
"0.61514056",
"0.6134868",
"0.6129987",
"0.6128372",
"0.609683",
"0.60472065",
"0.6029116",
"0.6029116",
"0.60171044",
"0.5992828",
"0.5991311",
"0.59837943",
"0.5958937",
"0.5958017",
"0.5931253",... | 0.6728782 | 0 |
create a bullet object at a random position | def FIMM(YKHO, tJm0, Vjhr):
super(uRGX, YKHO).__init__()
YKHO.screen = Vjhr
YKHO.rect = a9eO.Rect(0, 0, tJm0.star_width, tJm0.star_height)
YKHO.rect.centerx = ajWY(0, tJm0.screen_width)
YKHO.rect.top = ajWY(0, tJm0.screen_height / 4)
YKHO.y = float(YKHO.rect.y)
YKHO.color = tJm0.star_color
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hiPt(YKHO):\n GBVa(YKHO.birb.rect.x + 75, YKHO.birb.rect.y + 35, YKHO)",
"def FIMM(YKHO, g_NO=0, Mqqi=yapS, emuu=WPli, poka=0, s7Kh=0, Pzn5=None):\n ahCL.__init__(YKHO, g_NO, Mqqi, xPos=poka, yPos=s7Kh)\n YKHO.creationTime = ITS7.time()\n YKHO.entityThatCreatedMe = Pzn5\n YKHO.bulletID = GBVa.... | [
"0.6806717",
"0.67844594",
"0.6753513",
"0.6724394",
"0.66815054",
"0.65681136",
"0.6411912",
"0.6355837",
"0.6323023",
"0.6323023",
"0.63201",
"0.6266729",
"0.6266387",
"0.6213787",
"0.6136149",
"0.6131877",
"0.6123338",
"0.6093397",
"0.60899264",
"0.6050741",
"0.6006691",
... | 0.5467092 | 90 |
Returns this Widget rendered as HTML, as a Unicode string. The 'value' given is not guaranteed to be valid input, so subclass implementations should program defensively. | def _1tc(YKHO, mWFP, BWXx, o8Kj=None):
raise NotImplementedError('subclasses of Widget must provide a render() method') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _1tc(YKHO, BWXx):\n return BWXx",
"def _1tc(YKHO, BWXx, QpfX=None):\n if YKHO.raw_html is not None:\n return obQw(YKHO.raw_html)\n else:\n return ''",
"def dDTT(YKHO):\n ZgoD = '_%s_as_html' % YKHO.attribute.type\n return getattr(YKHO, ZgoD, YKHO.value_as_text)",
"def l5Ny(YK... | [
"0.7227829",
"0.7154962",
"0.6852193",
"0.64977735",
"0.6460291",
"0.63726753",
"0.63700104",
"0.6328116",
"0.6328116",
"0.62905025",
"0.6186265",
"0.6186265",
"0.61741966",
"0.6172817",
"0.61396796",
"0.61157507",
"0.60706156",
"0.6067268",
"0.60636514",
"0.6045153",
"0.6036... | 0.64479715 | 5 |
Returns the HTML ID attribute of this Widget for use by a , given the ID of the field. Returns None if no ID is available. This hook is necessary because some widgets have multiple HTML elements and, thus, multiple IDs. In that case, this method should return an ID value that corresponds to the first ID in the widget's... | def pLAs(YKHO, hbFX):
return hbFX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH():\n pKvt = CHTi('Input widget id:')\n oV74('id', pKvt)\n V1Lg['id'] = pKvt\n return",
"def id(YKHO) -> h8nf[str]:\n return YKHO.elem.get('id')",
"def id(YKHO) -> 'str':\n return YKHO._attrs.get('id')",
"def LSGQ(L03z, UksD):\n return '.'.join((m86r for m86r in (str(L03z.prefix)... | [
"0.71112394",
"0.6768629",
"0.647663",
"0.6432829",
"0.64213264",
"0.6271676",
"0.61995065",
"0.61995065",
"0.61995065",
"0.61995065",
"0.61995065",
"0.61995065",
"0.61995065",
"0.61995065",
"0.61995065",
"0.61995065",
"0.61995065",
"0.61995065",
"0.61995065",
"0.61995065",
"... | 0.61123925 | 35 |
batch should be a list of (sequence, target, length) tuples... Returns a padded tensor of sequences sorted from longest to shortest, | def QxcP(Wc9F):
u9Az, Munl, QOYq, Ohbv, xbui = map(ht2j.stack, zip(*Wc9F))
wzH_ = max(Ohbv).item()
u9Az = u9Az[:, :wzH_]
Munl = Munl[:, :wzH_]
QOYq = QOYq[:, :wzH_]
return (u9Az, Munl, QOYq, xbui) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVLt(Wc9F):\n iZ5o = list(zip(*Wc9F))\n Xtuq, mLGw, k136, Fbjb, Mdv2 = (iZ5o[0], iZ5o[1], iZ5o[2], iZ5o[3], iZ5o[4])\n mLGw = ht2j.vstack([ht2j.as_tensor(mvm2, dtype=ht2j.float32) for mvm2 in zip(*mLGw)]).T\n Mdv2 = [ht2j.as_tensor(KCHu, dtype=ht2j.long) for KCHu in Mdv2]\n return ([list(Xtuq), ... | [
"0.7159843",
"0.7000354",
"0.698757",
"0.6889939",
"0.68026847",
"0.6776342",
"0.6717117",
"0.67051345",
"0.66918606",
"0.6617879",
"0.6609684",
"0.6569384",
"0.6504918",
"0.64760405",
"0.6383606",
"0.6375098",
"0.63486534",
"0.63379014",
"0.6331844",
"0.62943137",
"0.6279707... | 0.0 | -1 |
batch should be a list of (sequence, target, length) tuples... Returns a padded tensor of sequences sorted from longest to shortest, | def ALnR(Wc9F):
u9Az, Munl, QOYq, eSnv, hYFk, xbui = map(ht2j.stack, zip(*Wc9F))
SGC5 = max(eSnv).item()
BJOo = max(hYFk).item()
if BJOo == 2:
u9Az = u9Az[:, :SGC5]
Munl = Munl[:, :SGC5]
QOYq = QOYq[:, :SGC5]
else:
u9Az = u9Az[:, :512 + BJOo]
Munl = Munl[:, :5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVLt(Wc9F):\n iZ5o = list(zip(*Wc9F))\n Xtuq, mLGw, k136, Fbjb, Mdv2 = (iZ5o[0], iZ5o[1], iZ5o[2], iZ5o[3], iZ5o[4])\n mLGw = ht2j.vstack([ht2j.as_tensor(mvm2, dtype=ht2j.float32) for mvm2 in zip(*mLGw)]).T\n Mdv2 = [ht2j.as_tensor(KCHu, dtype=ht2j.long) for KCHu in Mdv2]\n return ([list(Xtuq), ... | [
"0.71583945",
"0.69991595",
"0.69859695",
"0.6889869",
"0.68008727",
"0.67753315",
"0.67161214",
"0.67032063",
"0.6691606",
"0.66165346",
"0.66079116",
"0.6568327",
"0.6504596",
"0.64738506",
"0.6381436",
"0.6373073",
"0.63474",
"0.6335738",
"0.63299406",
"0.6292838",
"0.6278... | 0.0 | -1 |
batch should be a list of (sequence, target, length) tuples... Returns a padded tensor of sequences sorted from longest to shortest, | def Pqr8(Wc9F):
u9Az, Munl, QOYq, Ohbv = map(ht2j.stack, zip(*Wc9F))
wzH_ = max(Ohbv).item()
u9Az = u9Az[:, :wzH_]
Munl = Munl[:, :wzH_]
QOYq = QOYq[:, :wzH_]
return (u9Az, Munl, QOYq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVLt(Wc9F):\n iZ5o = list(zip(*Wc9F))\n Xtuq, mLGw, k136, Fbjb, Mdv2 = (iZ5o[0], iZ5o[1], iZ5o[2], iZ5o[3], iZ5o[4])\n mLGw = ht2j.vstack([ht2j.as_tensor(mvm2, dtype=ht2j.float32) for mvm2 in zip(*mLGw)]).T\n Mdv2 = [ht2j.as_tensor(KCHu, dtype=ht2j.long) for KCHu in Mdv2]\n return ([list(Xtuq), ... | [
"0.7158758",
"0.6998711",
"0.6985541",
"0.6888636",
"0.6800438",
"0.6775586",
"0.67167544",
"0.6702557",
"0.6690936",
"0.66179013",
"0.66080636",
"0.65683347",
"0.65043914",
"0.6476313",
"0.6380444",
"0.63729495",
"0.6346849",
"0.63384616",
"0.6332383",
"0.6292617",
"0.627955... | 0.0 | -1 |
batch should be a list of (sequence, target, length) tuples... Returns a padded tensor of sequences sorted from longest to shortest, | def U4ms(Wc9F):
u9Az, Munl, QOYq, eSnv, hYFk = map(ht2j.stack, zip(*Wc9F))
SGC5 = max(eSnv).item()
BJOo = max(hYFk).item()
if BJOo == 2:
u9Az = u9Az[:, :SGC5]
Munl = Munl[:, :SGC5]
QOYq = QOYq[:, :SGC5]
else:
u9Az = u9Az[:, :512 + BJOo]
Munl = Munl[:, :512 + B... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVLt(Wc9F):\n iZ5o = list(zip(*Wc9F))\n Xtuq, mLGw, k136, Fbjb, Mdv2 = (iZ5o[0], iZ5o[1], iZ5o[2], iZ5o[3], iZ5o[4])\n mLGw = ht2j.vstack([ht2j.as_tensor(mvm2, dtype=ht2j.float32) for mvm2 in zip(*mLGw)]).T\n Mdv2 = [ht2j.as_tensor(KCHu, dtype=ht2j.long) for KCHu in Mdv2]\n return ([list(Xtuq), ... | [
"0.7159207",
"0.69991595",
"0.6987073",
"0.6889248",
"0.68013555",
"0.677509",
"0.6715574",
"0.67038447",
"0.669207",
"0.66171706",
"0.66088194",
"0.65674895",
"0.65058535",
"0.6474219",
"0.6382925",
"0.6373818",
"0.63464737",
"0.63363683",
"0.63302284",
"0.6293658",
"0.62786... | 0.0 | -1 |
Name of the DataSync Agent. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JE4m(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'server_agent_name')",
"def JE4m(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'server_agent_name')",
"def JE4m(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'server_agent_name')",
"def sIsd():\n return '{0}-{1}'.form... | [
"0.66958755",
"0.6403934",
"0.6403934",
"0.6395309",
"0.630705",
"0.62116325",
"0.6155174",
"0.6129708",
"0.6129708",
"0.6129708",
"0.6129708",
"0.6129708",
"0.6129708",
"0.6129708",
"0.61201364",
"0.61201364",
"0.61201364",
"0.61201364",
"0.61201364",
"0.61201364",
"0.612013... | 0.0 | -1 |
The ID of the VPC (virtual private cloud) endpoint that the agent has access to. | def gkse(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'vpc_endpoint_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gkse(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'vpc_endpoint_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n ... | [
"0.7875883",
"0.7150874",
"0.7150874",
"0.7150874",
"0.7150874",
"0.7150874",
"0.7150874",
"0.7111536",
"0.7111536",
"0.7111536",
"0.699527",
"0.699527",
"0.699527",
"0.699527",
"0.699527",
"0.699527",
"0.699527",
"0.699527",
"0.699527",
"0.67907846",
"0.6777866",
"0.674632... | 0.75328296 | 1 |
Amazon Resource Name (ARN) of the DataSync Agent. | def hMqs(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TiBd(YKHO) -> str:\n return qe4Y.get(YKHO, 'invoke_arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
... | [
"0.6824416",
"0.65846545",
"0.65846545",
"0.65846545",
"0.65846545",
"0.65846545",
"0.6559048",
"0.6559048",
"0.6559048",
"0.6559048",
"0.6559048",
"0.6559048",
"0.6559048",
"0.6559048",
"0.6559048",
"0.6559048",
"0.6559048",
"0.6559048",
"0.6559048",
"0.6559048",
"0.6559048"... | 0.57399064 | 63 |
Name of the DataSync Agent. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JE4m(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'server_agent_name')",
"def JE4m(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'server_agent_name')",
"def JE4m(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'server_agent_name')",
"def sIsd():\n return '{0}-{1}'.form... | [
"0.6694951",
"0.640341",
"0.640341",
"0.63942903",
"0.6305633",
"0.6210776",
"0.6154047",
"0.6128155",
"0.6128155",
"0.6128155",
"0.6128155",
"0.6128155",
"0.6128155",
"0.6128155",
"0.6118517",
"0.6118517",
"0.6118517",
"0.6118517",
"0.6118517",
"0.6118517",
"0.6118517",
"0... | 0.0 | -1 |
A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. | def TQje(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'tags_all') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) ->... | [
"0.74426347",
"0.74426347",
"0.7436904",
"0.7436904",
"0.7436904",
"0.7436904",
"0.7159035",
"0.7095233",
"0.70808786",
"0.7056028",
"0.6930104",
"0.6916602",
"0.6824262",
"0.6796552",
"0.6752453",
"0.67005885",
"0.6630536",
"0.6630536",
"0.6630536",
"0.6630536",
"0.6630536",... | 0.0 | -1 |
The ID of the VPC (virtual private cloud) endpoint that the agent has access to. | def gkse(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'vpc_endpoint_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gkse(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'vpc_endpoint_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n ... | [
"0.7875468",
"0.71501195",
"0.71501195",
"0.71501195",
"0.71501195",
"0.71501195",
"0.71501195",
"0.71105874",
"0.71105874",
"0.71105874",
"0.69948256",
"0.69948256",
"0.69948256",
"0.69948256",
"0.69948256",
"0.69948256",
"0.69948256",
"0.69948256",
"0.69948256",
"0.6790082",
... | 0.75323 | 2 |
Amazon Resource Name (ARN) of the DataSync Agent. | def hMqs(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TiBd(YKHO) -> str:\n return qe4Y.get(YKHO, 'invoke_arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
... | [
"0.68244267",
"0.65840626",
"0.65840626",
"0.65840626",
"0.65840626",
"0.65840626",
"0.61535513",
"0.6129198",
"0.6129198",
"0.61191714",
"0.6051608",
"0.6033862",
"0.6033862",
"0.6033862",
"0.59901786",
"0.59585214",
"0.59103537",
"0.58519167",
"0.58519167",
"0.58458984",
"0... | 0.6558831 | 27 |
Name of the DataSync Agent. | def mWFP(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JE4m(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'server_agent_name')",
"def JE4m(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'server_agent_name')",
"def JE4m(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'server_agent_name')",
"def sIsd():\n return '{0}-{1}'.form... | [
"0.66957754",
"0.6404578",
"0.6404578",
"0.6394967",
"0.63031226",
"0.62063724",
"0.61500406",
"0.6124751",
"0.6124751",
"0.6124751",
"0.6124751",
"0.6124751",
"0.6124751",
"0.6124751",
"0.6115097",
"0.6115097",
"0.6115097",
"0.6115097",
"0.6115097",
"0.6115097",
"0.6115097",... | 0.0 | -1 |
A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. | def TQje(YKHO) -> qe4Y.Output[GySg[str, str]]:
return qe4Y.get(YKHO, 'tags_all') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) ->... | [
"0.74419177",
"0.74419177",
"0.7436042",
"0.7436042",
"0.7436042",
"0.7436042",
"0.71569943",
"0.70952725",
"0.7080317",
"0.7056273",
"0.69293123",
"0.69156295",
"0.68240654",
"0.67961735",
"0.6752203",
"0.6700467",
"0.66293275",
"0.66293275",
"0.66293275",
"0.66293275",
"0.6... | 0.6410673 | 62 |
The ID of the VPC (virtual private cloud) endpoint that the agent has access to. | def gkse(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'vpc_endpoint_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gkse(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'vpc_endpoint_id')",
"def gkse(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'vpc_endpoint_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"d... | [
"0.75328296",
"0.75328296",
"0.7150874",
"0.7150874",
"0.7150874",
"0.7150874",
"0.7150874",
"0.7150874",
"0.7111536",
"0.7111536",
"0.7111536",
"0.699527",
"0.699527",
"0.699527",
"0.699527",
"0.699527",
"0.699527",
"0.699527",
"0.699527",
"0.699527",
"0.67907846",
"0.6777... | 0.7875883 | 0 |
Test urlpatterns is not empty. | def Q9yB():
assert len(OLzN) > 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s3vR(Emd4):\n XP5J = ZbWC.compile('\\\\{\\\\w+\\\\}')\n for cgkW in Emd4.urlpatterns:\n hHld = XP5J.findall(cgkW)\n o3cf = jth9.copy(hHld)\n for kUBT in hHld:\n if not Emd4.urlpattern_options.get(kUBT.strip('{}')):\n raise rqaQ(\"Keyword not found for placeh... | [
"0.6885281",
"0.6488244",
"0.63631237",
"0.63566864",
"0.63373655",
"0.6293202",
"0.62435323",
"0.6177724",
"0.6165472",
"0.61581266",
"0.6152045",
"0.5998634",
"0.599404",
"0.59667355",
"0.5962423",
"0.59366286",
"0.58937687",
"0.58869284",
"0.5864858",
"0.5860892",
"0.58568... | 0.8075284 | 0 |
Convert a nested data structure to a json string. | def PjZe(YEnM, u2qj=None, Emd4=g3Uk, W7HH=n85e, mqm3=(), LvfL=False, Rrsh=None, gZeu=False, TbBt=False, **OtYY):
if not hasattr(mqm3, '__iter__'):
raise TypeError('`extra_obj_encoders` should be a tuple in `json_tricks.dump(s)`')
YuKy = tuple(mqm3) + tuple(W7HH)
FUjE = Emd4(sort_keys=u2qj, obj_encod... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pdnt(YKHO, znBS=10):\n return qQXR.dumps(YKHO.todict(recursive=znBS))",
"def qQXR(YKHO, nPrm):\n import qQXR\n nPrm = qQXR.dumps(nPrm)\n return nPrm",
"def Pdnt(YKHO, nPrm):\n return qQXR.dumps(nPrm)",
"def oD7C(YKHO, nPrm):\n return qQXR.dumps(nPrm)",
"def AcRL(YKHO, **B2fa):\n re... | [
"0.66305465",
"0.6598067",
"0.65562546",
"0.6531554",
"0.6526191",
"0.6510411",
"0.6502573",
"0.64800704",
"0.64297324",
"0.6398634",
"0.63706595",
"0.63641316",
"0.6358269",
"0.6351337",
"0.6347967",
"0.63088816",
"0.6294162",
"0.62680006",
"0.62341964",
"0.62333864",
"0.622... | 0.0 | -1 |
returns full name "Firstname Lastname" | def xpqj(YKHO):
return '{} {}'.format(YKHO.first_name, YKHO.last_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f",
"def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f",
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()",
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()",
... | [
"0.8904935",
"0.88164485",
"0.8765584",
"0.8722709",
"0.8722709",
"0.8684503",
"0.8684503",
"0.8684503",
"0.8684503",
"0.8684503",
"0.8684503",
"0.8684503",
"0.8684503",
"0.8684503",
"0.8684503",
"0.8684503",
"0.8684503",
"0.8684503",
"0.8684503",
"0.8684503",
"0.8684503",
... | 0.8277071 | 70 |
Checks if the effect won't allow the attack to continue | def OHwY(YKHO, qsJ6):
return (False, []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GRll(YKHO) -> bool:\n return YKHO.cooldown < 1",
"def GRll(YKHO) -> bool:\n return YKHO.cooldown < 1",
"def Uk_n(YKHO):\n Aofo = True\n if YKHO.side_effects['shield'] > 0:\n Aofo = False\n return Aofo",
"def Hj1U(YKHO) -> bool:\n return YKHO.cooldown < 1",
"def ht06(YKHO):\n ... | [
"0.7335532",
"0.7335532",
"0.7250862",
"0.7186726",
"0.70367795",
"0.696501",
"0.67084503",
"0.66880405",
"0.6487949",
"0.6447789",
"0.6430839",
"0.64295506",
"0.6423657",
"0.64154863",
"0.6375035",
"0.6370045",
"0.636221",
"0.63423866",
"0.6298871",
"0.6288533",
"0.62810594"... | 0.0 | -1 |
Retrieves the user's API key from the user record and stores in the API instance. This is done using a session authenticated with username and password, to avoid the user having to specify all three. | def p7gc(YKHO):
YKHO.api.apikey = YKHO.api.action.user_show(id=YKHO.username)['apikey'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n7oW():\n rSTc = QePW.args.get('api_key', None)\n from flask import _request_ctx_stack\n if 'Authorization' in QePW.headers:\n rSTc = QePW.headers.get('Authorization')\n if rSTc:\n CBIr = NCls.session.query(C3ST.user.User).filter_by(api_key=rSTc).first()\n if CBIr:\n ... | [
"0.7394983",
"0.7255855",
"0.7149509",
"0.69122607",
"0.68423945",
"0.6838871",
"0.68173265",
"0.6802924",
"0.66542155",
"0.65650326",
"0.65239",
"0.64883554",
"0.6486136",
"0.6421507",
"0.6382293",
"0.6346643",
"0.6336477",
"0.62861747",
"0.6285456",
"0.6222244",
"0.62128776... | 0.76691073 | 0 |
Creates a new CKAN Dataset with the details specified. | def CxSi(YKHO, **B2fa):
dixj = YKHO.api.action.package_create(**B2fa)
YKHO.get_ckan_metadata(True)
return dixj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oUGu(bNKA, j3aw):\n __n6 = j3aw\n dD7q = bNKA.datasets.get(dataset_name=__n6)\n bNKA.datasets.create(dataset_name=j3aw)\n return dD7q",
"def oUGu(VUF1, __n6, taDc=None, o7Qv='main'):\n mC1D = VUF1.get_dataset_path(__n6)\n if Hy7s.path.isdir(mC1D):\n raise Exception('Dataset already e... | [
"0.6714846",
"0.6608505",
"0.6479372",
"0.6393278",
"0.6381835",
"0.6336555",
"0.62755936",
"0.62337315",
"0.6215389",
"0.62099046",
"0.6203882",
"0.61420345",
"0.60930914",
"0.60670763",
"0.60598886",
"0.6033183",
"0.6031993",
"0.60011595",
"0.59976405",
"0.5992104",
"0.5967... | 0.0 | -1 |
Returns the path to a local copy of the resource file, downloading/updating if necessary. | def NMoC(YKHO):
if YKHO.resource_id:
with g8mj(**YKHO.ckan_kwargs) as Fuy6:
return Fuy6.get_resource(resource_id=YKHO.resource_id)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d0Oq(mWFP):\n return Hy7s.path.abspath(Whwd(__name__, mWFP))",
"def HeD1(YKHO, PcW4, rTUu=None):\n yIVm = YKHO.get_resource_metadata(PcW4)\n mn17 = YKHO.get_resource_last_updated(PcW4)\n if yIVm and mn17 > YKHO.local_resource_status.get(PcW4, {}).get('last_downloaded', qcWV.datetime(1900, 1, 1)):... | [
"0.7247884",
"0.68746537",
"0.66875046",
"0.66841894",
"0.6614738",
"0.6498192",
"0.6487131",
"0.64672107",
"0.6448742",
"0.6423599",
"0.64151925",
"0.63970333",
"0.63970333",
"0.63956195",
"0.63325757",
"0.6313199",
"0.6262004",
"0.6244602",
"0.62420374",
"0.6236555",
"0.621... | 0.0 | -1 |
Gets a formatted time string using the provided datetime object | def EdTY(EKFi):
yA1z = qcWV.now()
z0YJ = (yA1z - EKFi).total_seconds()
Wave, K0A_ = divmod(z0YJ, 3600)
O66n, C6wh = divmod(K0A_, 60)
return '{:02}m:{:02}s'.format(int(O66n), int(C6wh)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bc_l():\n return ITS7.strftime(ix3z)",
"def hLAQ(ITS7):\n return '{hour}:{min}:{second}:{millisecond}'.format(hour=ITS7.hour, min=ITS7.minute, second=ITS7.second, millisecond=str(int(round(ITS7.microsecond / 1000.0))))",
"def ct8j(a1PO):\n JRYC = GuLU(2000, 1, 1, a1PO.hour, a1PO.minute, a1PO.secon... | [
"0.7503794",
"0.7405656",
"0.7398418",
"0.731703",
"0.7315062",
"0.7312087",
"0.72994965",
"0.7226463",
"0.72250885",
"0.722176",
"0.72186106",
"0.7189555",
"0.7163162",
"0.7119737",
"0.70188636",
"0.6957891",
"0.6930463",
"0.6917259",
"0.6913564",
"0.69115686",
"0.6910729",
... | 0.0 | -1 |
Test a variety of ways that generation of a new Treant should fail. 1. `Treant('somedir/treant')` should raise `MultipleTreantsError` if more than one state file is in the given directory | def o0AL(YKHO, TBXe, vkfV):
with TBXe.as_cwd():
n2Q1 = vkfV('newone')
SpII = vkfV('newone', new=True)
assert n2Q1.uuid != SpII.uuid
with trZe.raises(LfmQ.treants.MultipleTreantsError):
WotO = vkfV('newone') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def as4H(YKHO, Hqs6, TBXe):\n assert Hqs6.name == YKHO.treantname\n assert Hqs6.location == TBXe.strpath\n assert Hqs6.treanttype == YKHO.treanttype\n assert Hqs6.abspath == Hy7s.path.join(TBXe.strpath, YKHO.treantname) + Hy7s.sep\n dJ1p = ['lurch', 'snotty']\n LeZt = {'variety': 'elm'}\n with... | [
"0.60381055",
"0.599281",
"0.5979761",
"0.5929113",
"0.5919436",
"0.58588606",
"0.58527654",
"0.58287495",
"0.57682323",
"0.5753016",
"0.57425493",
"0.56523967",
"0.56501704",
"0.5647308",
"0.56395644",
"0.5619321",
"0.55897903",
"0.55862457",
"0.5579676",
"0.557584",
"0.5571... | 0.7305239 | 0 |
Twolayer NPTN as described in the paper. out_channels and num_transforms refer to the first layer only. | def DB2C(WKvO, jTqs=10, tYiq=48, uD47=1):
with ZylS.variable_scope('nptn_1'):
WKvO = e3uk(WKvO, 3, 3, tYiq, uD47)
WKvO = ZylS.layers.batch_normalization(WKvO)
WKvO = ngmJ(WKvO)
WKvO = ZylS.layers.max_pooling2d(WKvO, (2, 2), 2)
with ZylS.variable_scope('nptn_2'):
WKvO = e3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e3uk(input, Ot1W, DYuh, tYiq, uD47):\n assert len(input.shape) == 4\n yphq = (Ot1W, Ot1W, DYuh, tYiq * uD47)\n filter = ZylS.get_variable('weights', yphq, dtype=input.dtype)\n oug5 = ZylS.get_variable('bias', (1,), dtype=input.dtype)\n uLoy = ZylS.nn.depthwise_conv2d(input, filter, [1, 1, 1, 1],... | [
"0.67367357",
"0.57352144",
"0.56979936",
"0.56967825",
"0.5668742",
"0.5588165",
"0.55659705",
"0.5548545",
"0.5547123",
"0.55060697",
"0.5501692",
"0.5468197",
"0.5446166",
"0.5425245",
"0.5420839",
"0.5418289",
"0.5409266",
"0.5403939",
"0.5401453",
"0.5381876",
"0.5373465... | 0.7447827 | 0 |
bidirectional add edge for undirected graph. | def rz7z(YKHO, J3uN: Tuple[int, int], sdCG: Tuple[int, int]):
assert J3uN in YKHO.vertices.keys(), 'passed in tail is not a vertex yet'
assert sdCG in YKHO.vertices.keys(), 'passed in head is not a vertex yet'
if J3uN == sdCG:
print('do not add edge to yourself')
else:
YKHO.vertices[J3uN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, D70y):\n zZcM = D70y.get_source()\n e1vZ = D70y.get_destination()\n if not (zZcM in YKHO.edges and e1vZ in YKHO.edges):\n raise ValueError('Node not in graph')\n YKHO.edges[zZcM].append(e1vZ)",
"def F1KG(YKHO, tTpl):\n Ty9i = tTpl.either()\n yzQ0 = tTpl.other(Ty9i)\n YK... | [
"0.7700323",
"0.76026815",
"0.7602562",
"0.75517565",
"0.7475427",
"0.74472606",
"0.74452895",
"0.7424743",
"0.7414261",
"0.7386586",
"0.7365856",
"0.7357539",
"0.7341254",
"0.7325073",
"0.73181874",
"0.7289596",
"0.72704077",
"0.7258167",
"0.7251808",
"0.7251011",
"0.7251011... | 0.6679059 | 91 |
get number of connected components | def WBdH(YKHO) -> int:
def Gg28(e2gD: Tuple[int, int]) -> fHNa[AzJI[int, int]]:
""" """
nonlocal visited
azXi.add(e2gD)
if pNZh.vertices[e2gD]:
for AAbN in pNZh.vertices[e2gD]:
if AAbN not in azXi:
azXi.add(AAbN)
xd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vr3b(pNZh):\n return jHsn.number_connected_components(pNZh)",
"def Pcxj(YKHO):\n return [len(WKvO) for WKvO in jHsn.connected_components(YKHO.return_undirected())]",
"def Pdh6(yvY1):\n return sum((1 for C94U in qmK5(yvY1)))",
"def E7qs(yvY1):\n return len(x1Fc(yvY1))",
"def nSuV(YKHO):\n ... | [
"0.83232707",
"0.8040847",
"0.774941",
"0.7719609",
"0.771087",
"0.7632936",
"0.7559967",
"0.7548571",
"0.7458276",
"0.7356123",
"0.7317277",
"0.72522044",
"0.7251057",
"0.72374845",
"0.71566594",
"0.7125862",
"0.71134853",
"0.71093506",
"0.7091009",
"0.70766383",
"0.7076215"... | 0.7983907 | 2 |
Return number of vertices in database | def YoPK(YKHO):
if len(YKHO.vertices) > 0:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zHmr(YKHO):\n return len(YKHO.vertices.keys())",
"def poMF(YKHO):\n return len(YKHO)",
"def VVUP(YKHO) -> int:\n raise NotImplementedError",
"def poMF(YKHO):\n return YKHO.n * (1 + int(YKHO.variant.is_bipartite()))",
"def poMF(YKHO):\n return len(YKHO.vertices)",
"def poMF(YKHO):\n ... | [
"0.8077431",
"0.79327136",
"0.79121745",
"0.7893555",
"0.78797144",
"0.78797144",
"0.78698504",
"0.7861419",
"0.7772262",
"0.77452165",
"0.77135336",
"0.769941",
"0.7578606",
"0.75042987",
"0.73418915",
"0.7338367",
"0.72428036",
"0.7155062",
"0.70920813",
"0.6984475",
"0.695... | 0.0 | -1 |
Write package JSON to disk | def npew(UHFx, cEzT, cFb1):
BS2a = Hy7s.path.join(cFb1, 'packages{}.json'.format(UHFx))
bo34.info("Packages file is downloaded to '%s'", BS2a)
try:
with open(BS2a, 'w') as wM3v:
qQXR.dump(cEzT, wM3v, indent=4)
except qQXR.JSONDecodeError:
bo34.error('Cannot decode JSON from %... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IeFx(YKHO) -> None:\n if not YKHO.package_path.exists():\n YKHO.package_path.mkdir(parents=True, exist_ok=True)\n with open(YKHO.package_path / 'package.json', 'w') as eHNT:\n qQXR.dump(YKHO.to_dict(), eHNT, indent=4)",
"def VacN(YKHO):\n with open(YKHO._file_path, 'w') as eHNT:\n ... | [
"0.83078134",
"0.7197055",
"0.7169171",
"0.71443003",
"0.7083302",
"0.7063877",
"0.7055792",
"0.70456624",
"0.69828856",
"0.69827825",
"0.6949087",
"0.69180524",
"0.691153",
"0.68943894",
"0.6867635",
"0.6833136",
"0.6821909",
"0.68195516",
"0.68179524",
"0.6808427",
"0.67829... | 0.68645114 | 15 |
Extract a set of ngrams from a list of integers. | def XejU(IqQl, XG6j=2):
return set(zip(*[IqQl[YRbF:] for YRbF in range(XG6j)])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XejU(IqQl, XG6j=2):\n return set(zip(*[IqQl[YRbF:] for YRbF in range(XG6j)]))",
"def tbgJ(IqQl, exwG=3):\n return zip(*[IqQl[YRbF:] for YRbF in range(exwG)])",
"def XejU(YKHO, IqQl, XG6j=2):\n return set(zip(*[IqQl[YRbF:] for YRbF in range(XG6j)]))",
"def w9Ez(__n6, exwG):\n return zip(*[__n6... | [
"0.76989484",
"0.7478928",
"0.74681896",
"0.7228818",
"0.71772516",
"0.7038002",
"0.6977662",
"0.6938288",
"0.6829033",
"0.6759564",
"0.6719",
"0.66278785",
"0.66258675",
"0.65890974",
"0.6534543",
"0.65252674",
"0.64583546",
"0.6402734",
"0.63953984",
"0.6389275",
"0.6377588... | 0.7822425 | 0 |
Augment the input list of list (sequences) by appending ngrams values. | def Mbhf(jWe2, mZZ_, fPyG=2):
CsOE = []
for IqQl in jWe2:
S06t = IqQl[:]
for XG6j in range(2, fPyG + 1):
for YRbF in range(len(S06t) - XG6j + 1):
u8Mh = tuple(S06t[YRbF:YRbF + XG6j])
if u8Mh in mZZ_:
S06t.append(mZZ_[u8Mh])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mbhf(jWe2, mZZ_, fPyG=2):\n CsOE = []\n for IqQl in jWe2:\n S06t = IqQl[:]\n for XG6j in range(2, fPyG + 1):\n for YRbF in range(len(S06t) - XG6j + 1):\n u8Mh = tuple(S06t[YRbF:YRbF + XG6j])\n if u8Mh in mZZ_:\n S06t.append(mZZ_[u8... | [
"0.7456609",
"0.740691",
"0.7316882",
"0.63946664",
"0.6229141",
"0.62036645",
"0.6144797",
"0.59809494",
"0.5973278",
"0.5964258",
"0.5932551",
"0.5929449",
"0.58704007",
"0.58352613",
"0.58208406",
"0.58001685",
"0.57981306",
"0.5784745",
"0.57427156",
"0.5742448",
"0.57222... | 0.7426375 | 1 |
Return a list of products. | def QBGU(JKmM):
Ldyl = [1] * len(JKmM)
for list in JKmM:
KIIO = JKmM.index(list)
for ZfUD in list:
Ldyl[KIIO] *= ZfUD
return Ldyl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uQsB(YKHO):\n return YKHO._make_get_request(YKHO._urls['products'])",
"def Ldyl(YKHO):\n return list(msfn.select())",
"def uQsB(YKHO):\n bD7m = YKHO.base_url\n iN3H = YKHO.connection.make_get(bD7m)\n return ywEt(iN3H, YKHO)",
"def CnKV(YKHO):\n pass",
"def Ldyl(YKHO):\n geh0 = G4JS... | [
"0.88056797",
"0.8327074",
"0.83108467",
"0.8273931",
"0.82540935",
"0.81168497",
"0.80588484",
"0.8058481",
"0.8009116",
"0.80061424",
"0.7991916",
"0.79552424",
"0.7900699",
"0.78749627",
"0.7828679",
"0.78043324",
"0.7732108",
"0.7726112",
"0.7702277",
"0.7701761",
"0.7700... | 0.0 | -1 |
Return an instance of Account for the new account. | def ZrNc(YKHO):
rlUT = YKHO.provider_entry.get_text()
kT1P = uBwj.get_by_name(rlUT)
if not kT1P:
cvqN = YKHO.provider_image.image
EDd9 = YKHO.provider_website_entry.get_text()
kT1P = uBwj.create(rlUT, EDd9, None, cvqN)
elif kT1P and YKHO.provider_image.image != kT1P.image:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZrNc(YKHO):\n return tHSi(YKHO)",
"def ZrNc(YKHO):\n return tHSi(YKHO)",
"def ZrNc(YKHO, Z31E):\n return tHSi(YKHO, Z31E)",
"def ZrNc(YKHO, EBtu):\n return YAq3.Account(YKHO, EBtu)",
"def ZrNc():\n b3He = hbgH.objects.create(name='R-Bank')\n KRiX = s9HI.objects.create(name='Tre Belaru... | [
"0.8290813",
"0.8254896",
"0.7867634",
"0.77372354",
"0.7327423",
"0.7258345",
"0.72545564",
"0.720003",
"0.717187",
"0.7127372",
"0.7089911",
"0.70826364",
"0.67998534",
"0.6789432",
"0.670145",
"0.66924477",
"0.6672502",
"0.6589854",
"0.655991",
"0.6501096",
"0.64618254",
... | 0.6529989 | 19 |
Search for a vertex in the 2nd position of List(int, str) and return index. | def LtG9(Uqbu, SLBp):
for or8S in range(len(Uqbu)):
if Uqbu[or8S][1] == SLBp:
return or8S | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SwAy(lgI3, pNZh):\n CIH_ = list()\n for SLBp in lgI3:\n CIH_.append(pNZh.vs.find(name=SLBp).index)\n return CIH_",
"def O_Zy(pNZh, JOtm, LXIT=False):\n if LXIT:\n JOtm = '<' + JOtm + '>'\n try:\n return pNZh.vs.find(uri=JOtm).index\n except:\n return None",
"de... | [
"0.6945676",
"0.67291117",
"0.63841534",
"0.6382502",
"0.63806105",
"0.6175287",
"0.609422",
"0.6090202",
"0.6087574",
"0.6026152",
"0.6013369",
"0.6009101",
"0.60074645",
"0.60070634",
"0.59980595",
"0.5997357",
"0.59782416",
"0.59773296",
"0.5972704",
"0.5972371",
"0.596567... | 0.82055616 | 0 |
create RiskSLIM MIP object | def NsBS(input):
assert 'coef_set' in input, 'input is missing coef_set'
V6IE = len(input['coef_set'])
oTXQ = input['print_flag'] if 'print_flag' in input else False
Roet = lambda tO9_: K2Xt(tO9_) if oTXQ else lambda tO9_: None
Fqku = lambda Ra7F, NbjQ: xtSe(input, Ra7F, NbjQ, print_flag=oTXQ)
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: VpcIpamPoolArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def xU6m():\n return i912()",
"def FIMM(Ro_8, *, yf3m: pulumi.Input[str], TRLE: pulumi.Input[str], wOrf: Optional[pulumi.Input[bool]]=None, WxAH: Optional[pulumi.Input[bool]]=None, Rci7: Optional[pulum... | [
"0.57169443",
"0.54935175",
"0.5459325",
"0.54075986",
"0.5400031",
"0.53792804",
"0.5355474",
"0.5321274",
"0.5289824",
"0.5282277",
"0.5275696",
"0.52704775",
"0.5260886",
"0.5239818",
"0.5238467",
"0.52272254",
"0.51834756",
"0.5177146",
"0.5176517",
"0.5174048",
"0.516651... | 0.65285146 | 0 |
finds the value of rho[j] in feasible_coef_values that minimizes log_loss(rho) + C_0j | def ZwQJ(abmi, Xs_G, UK9y, V99k, ZNCx, kuBX):
cCrA = oyIN.copy(V99k)
V6IE = UK9y.shape[0]
F7n_ = UK9y[abmi]
uFyd = oyIN.where(Xs_G == F7n_)[0]
prCO = oyIN.array([oyIN.nan] * len(Xs_G))
prCO[uFyd] = oyIN.float(ZNCx)
FkwS = Nk6w[:, abmi]
bMAW = oyIN.where(F7n_ <= Xs_G)[0]
zyd0 = oyIN.d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v11M(r845, HO38):\n HLd6 = HO38[r845]\n return HLd6 * Ngpo ** 2 * oyIN.sqrt(1 + (HLd6 / MRrp) ** (4 / 3))",
"def BQ7X(oZuG, _0VL, N77f=None, JtMA=None):\n F4gw = range(0, _0VL['n_variables'])\n yJzC = oyIN.zeros(_0VL['n_variables'])\n yJzC[_0VL['rho']] = oZuG\n Cwt5 = oyIN.zeros(len(_0VL['a... | [
"0.65310234",
"0.62829095",
"0.6058815",
"0.5960956",
"0.5918176",
"0.5790462",
"0.57894534",
"0.5714317",
"0.5696645",
"0.5694927",
"0.56927633",
"0.56864077",
"0.5677211",
"0.56683356",
"0.56644833",
"0.56557816",
"0.56422967",
"0.5613286",
"0.5590972",
"0.5574816",
"0.5569... | 0.63221544 | 1 |
Ensure that if constructing from `asdf.ExternalArrayReference` objects all of them have the same shape, dtype and target. | def jM3k(Emd4, ROpF, pan_, yDqo, EJB4):
if isinstance(EJB4, (list, tuple)):
return list(map(YLnl(Emd4._validate_homogenaity, ROpF, pan_, yDqo), EJB4))
if not isinstance(EJB4, GLz1):
raise TypeError('Every element of must be an instance of ExternalArrayReference.')
if EJB4.dtype != yDqo:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PPMb(aTLP: Tensor, pan_: Tensor) -> None:\n if aTLP.shape != pan_.shape:\n raise RuntimeError(f'Predictions and targets are expected to have the same shape, but got {aTLP.shape} and {pan_.shape}.')",
"def iuse(YKHO, nPrm, aC0l, rU28=1e-05, LL2J=1e-05):\n if not nPrm.shape == aC0l.shape:\n ... | [
"0.6566082",
"0.6212097",
"0.6202712",
"0.61445963",
"0.6065236",
"0.601039",
"0.5992512",
"0.598749",
"0.5983114",
"0.59633094",
"0.59484833",
"0.59239185",
"0.59119993",
"0.58783007",
"0.5876212",
"0.5869929",
"0.58563894",
"0.58546984",
"0.5838123",
"0.58151025",
"0.580491... | 0.6008059 | 6 |
Stack a loader array along each of its dimensions. This results in a dask array with the correct chunks and dimensions. | def CZmF(k5UZ):
if len(k5UZ.shape) == 1:
return SG6Y.stack(zvUO(k5UZ))
tEsb = []
for YRbF in range(k5UZ.shape[0]):
tEsb.append(CZmF(k5UZ[YRbF]))
return SG6Y.stack(tEsb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qw7D(YKHO):\n return CZmF(YKHO.loader_array).reshape(YKHO.output_shape)",
"def EvBq(YKHO):\n for H5ew, qw7D in YKHO.chunks.items():\n dxov = oyIN.asarray(qw7D)\n YKHO.chunks[H5ew] = dxov",
"def E5BI(Sk_F, jDK_=0):\n raise NotImplementedError",
"def qw7D(YKHO):\n D9cM = list(map(... | [
"0.6740181",
"0.62578696",
"0.6237837",
"0.61975235",
"0.59589636",
"0.59500736",
"0.5881783",
"0.5869132",
"0.5701136",
"0.5689394",
"0.56675667",
"0.5660353",
"0.56292516",
"0.55963564",
"0.5542171",
"0.5517344",
"0.55140144",
"0.5411399",
"0.5389828",
"0.5389679",
"0.53683... | 0.8333696 | 0 |
Map a call to `dask.array.from_array` onto all the elements in ``loader_array``. This is done so that an explicit ``meta=`` argument can be provided to prevent loading data from disk. | def zvUO(k5UZ):
if len(k5UZ.shape) != 1:
raise ValueError('Can only be used on one dimensional arrays')
e5kH = oyIN.zeros((0,), dtype=k5UZ[0].dtype)
iwLm = YLnl(SG6Y.from_array, meta=e5kH)
return map(iwLm, k5UZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CZmF(k5UZ):\n if len(k5UZ.shape) == 1:\n return SG6Y.stack(zvUO(k5UZ))\n tEsb = []\n for YRbF in range(k5UZ.shape[0]):\n tEsb.append(CZmF(k5UZ[YRbF]))\n return SG6Y.stack(tEsb)",
"def qw7D(YKHO):\n D9cM = list(map(oyIN.asarray, YKHO.loader_array.flat))\n return oyIN.stack(D9cM... | [
"0.6512419",
"0.60990465",
"0.58843625",
"0.58693886",
"0.55165154",
"0.5438049",
"0.5366238",
"0.5358712",
"0.5263945",
"0.52227837",
"0.52216196",
"0.52055085",
"0.51365423",
"0.51171994",
"0.51155996",
"0.50952417",
"0.5079183",
"0.5017124",
"0.5017124",
"0.50152904",
"0.5... | 0.7210299 | 0 |
Finds the closest next Determination Date for a given CLO | def eUo1(umOt, db5m):
I1iR = umOt.loc[umOt['Fund'] == db5m, 'Determination Date']
c37q = min(I1iR.loc[I1iR > rLdf.Timestamp.today()], key=lambda KCHu: KCHu - rLdf.Timestamp.today())
return c37q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HIBv(umOt, db5m):\n I1iR = umOt.loc[umOt['Fund'] == db5m, 'Payment Date'].dropna()\n jeHq = min(I1iR.loc[I1iR > rLdf.Timestamp.today()], key=lambda KCHu: KCHu - rLdf.Timestamp.today())\n return jeHq",
"def ZYT_(umOt, db5m):\n I1iR = umOt.loc[umOt['Fund'] == db5m, 'Determination Date']\n uTKr =... | [
"0.70815456",
"0.6885164",
"0.62852925",
"0.62490076",
"0.6035495",
"0.59736896",
"0.5913274",
"0.5899726",
"0.58242583",
"0.57373506",
"0.57354647",
"0.572037",
"0.56322455",
"0.56102186",
"0.55837506",
"0.55447114",
"0.5503305",
"0.54535663",
"0.54417944",
"0.5431457",
"0.5... | 0.76319665 | 0 |
Finds the closest next Determination Date for a given CLO | def HIBv(umOt, db5m):
I1iR = umOt.loc[umOt['Fund'] == db5m, 'Payment Date'].dropna()
jeHq = min(I1iR.loc[I1iR > rLdf.Timestamp.today()], key=lambda KCHu: KCHu - rLdf.Timestamp.today())
return jeHq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eUo1(umOt, db5m):\n I1iR = umOt.loc[umOt['Fund'] == db5m, 'Determination Date']\n c37q = min(I1iR.loc[I1iR > rLdf.Timestamp.today()], key=lambda KCHu: KCHu - rLdf.Timestamp.today())\n return c37q",
"def ZYT_(umOt, db5m):\n I1iR = umOt.loc[umOt['Fund'] == db5m, 'Determination Date']\n uTKr = ma... | [
"0.76311296",
"0.68860203",
"0.62814987",
"0.62474966",
"0.60339886",
"0.5972924",
"0.59115094",
"0.58981055",
"0.5821018",
"0.57357585",
"0.5732491",
"0.5717424",
"0.56315535",
"0.5611521",
"0.55821496",
"0.5543604",
"0.5502113",
"0.54530454",
"0.5440974",
"0.54317224",
"0.5... | 0.70796466 | 1 |
Numerically calculate the energy of a wave function generated by `h_static`. For n=1, we'd like to see if we can backcalculate E = 1/2. | def eqSQ(exwG: int) -> float:
ut5U = -2 / (exwG + 1) ** 2
WKvO, hFxX = xysg(ut5U)
Jw7X = 1
Aofo = 0
gMLY = oyIN.conj(hFxX) * hFxX
FTlZ = oyIN.arange(WKvO[0], WKvO[-1], Jw7X)
for Xf84 in FTlZ:
G1Hx = 1
T8ck = 1
cAlv = G1Hx * T8ck / WKvO
vexM = 1
ut5U = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYvU(exwG):\n return (exwG * mM0K * enxe / (2 * jzdc)) ** 2 / (2 * r8hN)",
"def s4Bt(YKHO, exwG=1):\n wW3z = YKHO.fvec * 2 * oyIN.pi * exwG\n FfZ5 = oyIN.cumsum(wW3z)\n return oyIN.exp(1j * FfZ5)",
"def ut5U(exwG):\n MKlR = 2 * oyIN.pi\n ut5U = MKlR ** 2 / (8 * oyIN.pi) * oyIN.sum(exwG **... | [
"0.75971985",
"0.71659374",
"0.71083647",
"0.701199",
"0.68858737",
"0.6817904",
"0.6749287",
"0.6681984",
"0.66303617",
"0.6575992",
"0.6444103",
"0.6439027",
"0.64366823",
"0.6436469",
"0.64302945",
"0.6401461",
"0.63511914",
"0.63426185",
"0.6292362",
"0.6289546",
"0.62835... | 0.79739964 | 0 |
Director messages contain offset and size local to the screen that media should be displayed on. Screens have their own offsets that should be honored during ManagedWindow creation. This method will return `real` offset. | def Ji5Z(YKHO):
eDIY = C6dK.get_viewport_geometry()
if not eDIY:
eDIY = _PrF()
return {'x': eDIY.x, 'y': eDIY.y} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yM0l(YKHO):\n yK2S = YKHO.parent.winfo_screenwidth()\n lWrn = YKHO.parent.winfo_screenheight()\n yzQ0 = yK2S * 0.8\n MKlR = lWrn * 0.8\n WKvO = (yK2S - yzQ0) / 2\n LVAh = (lWrn - MKlR) / 2\n YKHO.parent.geometry('%dx%d+%d+%d' % (yzQ0, MKlR, WKvO, LVAh))",
"def LHBX(YKHO):\n return YKH... | [
"0.61861867",
"0.61233014",
"0.5966426",
"0.5830564",
"0.57786125",
"0.5739207",
"0.5739207",
"0.5739207",
"0.5732235",
"0.57232225",
"0.56863743",
"0.56268376",
"0.56138533",
"0.5548511",
"0.5538241",
"0.5516603",
"0.55157495",
"0.5514786",
"0.5514532",
"0.549704",
"0.548602... | 0.60613483 | 2 |
All the cases for a given node are in the transitions to that node. | def odkS(YKHO, R8i3):
for TZ9E in YKHO.reverse_edges[R8i3]:
for tSi1, ZsXi in YKHO.nodes[TZ9E].transitions[R8i3]:
yield ZsXi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OZkM(YKHO):\n for Q6kx in YKHO.net.nodes():\n if Q6kx not in YKHO.evidence:\n YKHO.update_node(Q6kx)",
"def shyx(YKHO, Q6kx):\n ljCh = []\n nYUa = YKHO.node_to_state(Q6kx)\n for WhY1 in YKHO.children:\n XJxn = (Q6kx[0] + WhY1[0], Q6kx[1] + WhY1[1])\n nz8x = YKHO.no... | [
"0.5792827",
"0.5410251",
"0.53993726",
"0.5290269",
"0.52816916",
"0.5278971",
"0.5252477",
"0.5199749",
"0.5178954",
"0.5143815",
"0.51037747",
"0.50952506",
"0.50904924",
"0.5067474",
"0.50654083",
"0.50454456",
"0.50382626",
"0.50260895",
"0.49898145",
"0.49791223",
"0.49... | 0.6066631 | 0 |
Resets the rect before removing this sprite from all groups. | def XnNM(YKHO):
YKHO.input_comp = None
YKHO._physics_comp = None
YKHO._graphics_comp = None
YKHO.image = None
YKHO.rect = None
YKHO.velocity = None
super().kill() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsmZ(YKHO):\n if YKHO.sprite:\n YKHO.sprite._focus_exit()\n a9eO.sprite.GroupSingle.empty(YKHO)",
"def SiRx(YKHO):\n if YKHO.num == 1:\n YKHO.rect.centerx = 320\n elif YKHO.num == 2:\n YKHO.rect.centerx = 341\n elif YKHO.num == 3:\n YKHO.rect.centerx = 362\n elif... | [
"0.7026424",
"0.649405",
"0.63407826",
"0.63016206",
"0.62387794",
"0.6208346",
"0.6130328",
"0.6112039",
"0.60716164",
"0.6062417",
"0.60289025",
"0.59968877",
"0.59947747",
"0.5991652",
"0.59855855",
"0.59000486",
"0.5888754",
"0.58795226",
"0.5861623",
"0.5858321",
"0.5828... | 0.0 | -1 |
Updates this sprite (for the current frame). | def QdZT(YKHO, EmUK):
YKHO.input_comp.update(YKHO)
YKHO._physics_comp.update(YKHO, EmUK)
YKHO._graphics_comp.update(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO) -> None:\n YKHO.all_sprites.update()",
"def QdZT(YKHO):\n YKHO.moving_sprites.update()\n YKHO.static_sprites.update()\n YKHO.camera.update(YKHO.player)",
"def QdZT(YKHO):\n lUw0.update(YKHO)\n YKHO.update_movement()\n YKHO.update_firing()\n YKHO.surf = YKHO.animation.next... | [
"0.7558172",
"0.75376505",
"0.7398363",
"0.7222407",
"0.71786684",
"0.71690995",
"0.71105015",
"0.7090216",
"0.7032091",
"0.69928426",
"0.69489574",
"0.69021994",
"0.68737996",
"0.68682253",
"0.68666464",
"0.68642175",
"0.6851232",
"0.6833226",
"0.6828903",
"0.681811",
"0.681... | 0.0 | -1 |
Matrix equivalent to right multiplication of quaternion. Quaternion in form [s, v1, v2, v3] | def YSKd(vexM):
KCHu = vexM[0]
Ty9i = vexM[1:].reshape(-1)
A3Vt = oyIN.zeros((4, 4))
A3Vt[0, 0] = KCHu
A3Vt[0, 1:] = -Ty9i
A3Vt[1:, 0] = Ty9i
A3Vt[1:, 1:] = KCHu * oyIN.eye(3) - M0ou(Ty9i)
return A3Vt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KU6a(slpS):\n vexM = XTiz.array(slpS, dtype=XTiz.float64, copy=True)\n exwG = XTiz.dot(vexM, vexM)\n if exwG < BuE3:\n return XTiz.identity(4)\n vexM *= epAf.sqrt(2.0 / exwG)\n vexM = XTiz.outer(vexM, vexM)\n return XTiz.array([[1.0 - vexM[2, 2] - vexM[3, 3], vexM[1, 2] - vexM[3, 0], v... | [
"0.7681871",
"0.76786864",
"0.73890185",
"0.732062",
"0.727025",
"0.72543293",
"0.71807706",
"0.7146851",
"0.70719206",
"0.7057396",
"0.70505697",
"0.70043933",
"0.697597",
"0.69444937",
"0.6940276",
"0.69352686",
"0.6926811",
"0.6913615",
"0.6908075",
"0.6907213",
"0.6894952... | 0.7554758 | 2 |
Matrix equivalent to left multiplication of quaternion. Quaternion in form [s, v1, v2, v3].T | def LM8i(vexM):
KCHu = vexM[0]
Ty9i = vexM[1:].reshape(-1)
aPd6 = oyIN.zeros((4, 4))
aPd6[0, 0] = KCHu
aPd6[0, 1:] = -Ty9i
aPd6[1:, 0] = Ty9i
aPd6[1:, 1:] = KCHu * oyIN.eye(3) + M0ou(Ty9i)
return aPd6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KU6a(slpS):\n vexM = XTiz.array(slpS, dtype=XTiz.float64, copy=True)\n exwG = XTiz.dot(vexM, vexM)\n if exwG < BuE3:\n return XTiz.identity(4)\n vexM *= epAf.sqrt(2.0 / exwG)\n vexM = XTiz.outer(vexM, vexM)\n return XTiz.array([[1.0 - vexM[2, 2] - vexM[3, 3], vexM[1, 2] - vexM[3, 0], v... | [
"0.7553149",
"0.75413686",
"0.7275064",
"0.7197161",
"0.71887857",
"0.7173799",
"0.7157495",
"0.7125688",
"0.71182704",
"0.7056507",
"0.6861853",
"0.68544185",
"0.6842808",
"0.6835585",
"0.68055147",
"0.68030894",
"0.68026626",
"0.67994803",
"0.67944103",
"0.67821795",
"0.673... | 0.7463609 | 2 |
Rotates a vector, v by a quaternion, q | def VuMU(vexM, Ty9i):
kpUu = oyIN.zeros((4, 1))
kpUu[1:] = Ty9i
OZpx = LM8i(vexM) @ YSKd(vexM).T @ kpUu
return OZpx[1:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nTr0(vexM, Ty9i):\n assert vexM.shape[-1] == 4\n assert Ty9i.shape[-1] == 3\n assert vexM.shape[:-1] == Ty9i.shape[:-1]\n V2Fb = vexM[..., 1:]\n NFIp = ht2j.cross(V2Fb.double(), Ty9i.double(), dim=len(vexM.shape) - 1)\n c_iR = ht2j.cross(V2Fb.double(), NFIp.double(), dim=len(vexM.shape) - 1)\... | [
"0.83781636",
"0.812913",
"0.81218445",
"0.8097214",
"0.7900004",
"0.77614945",
"0.7343316",
"0.7343316",
"0.7232044",
"0.72166616",
"0.700715",
"0.700216",
"0.68774503",
"0.6847234",
"0.68316996",
"0.677138",
"0.6766945",
"0.6756622",
"0.67426705",
"0.6660385",
"0.66546357",... | 0.79928476 | 4 |
Transforms a vector, v into a different frame with the transformation represented as a quaternion | def aOlF(vexM, Ty9i):
kpUu = oyIN.zeros((4, 1))
kpUu[1:] = Ty9i
OZpx = LM8i(vexM).T @ YSKd(vexM) @ kpUu
return OZpx[1:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VuMU(vexM, Ty9i):\n kpUu = oyIN.zeros((4, 1))\n kpUu[1:] = Ty9i\n OZpx = LM8i(vexM) @ YSKd(vexM).T @ kpUu\n return OZpx[1:]",
"def nTr0(vexM, Ty9i):\n assert vexM.shape[-1] == 4\n assert Ty9i.shape[-1] == 3\n assert vexM.shape[:-1] == Ty9i.shape[:-1]\n V2Fb = vexM[..., 1:]\n NFIp =... | [
"0.74617785",
"0.737833",
"0.7371231",
"0.7002721",
"0.6993505",
"0.698818",
"0.67339283",
"0.6691262",
"0.6470421",
"0.64028096",
"0.6344371",
"0.62991285",
"0.6294629",
"0.62905675",
"0.61926275",
"0.6156036",
"0.61080223",
"0.6072867",
"0.6021131",
"0.6021041",
"0.60159594... | 0.77789176 | 0 |
Return config path inside supervisor. | def NsdQ(YKHO):
return bt5O.format(oPdX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kmqQ(YKHO):\n return Hy7s.path.dirname(xAKo)",
"def lTtI():\n return gzes(gCuF.PROJECT_DIR, 'conf', 'eoxserver.conf')",
"def S673(GPtr):\n XLMv = GPtr.sections()[0]\n return GkAb(GPtr.get(XLMv, 'path')).expanduser().absolute()",
"def Pu3K():\n global args, ConfigPathDefault\n if qIxc.co... | [
"0.73482144",
"0.71827084",
"0.7102637",
"0.7015559",
"0.70092297",
"0.6979841",
"0.69114286",
"0.69023687",
"0.68887746",
"0.681355",
"0.6752051",
"0.67507976",
"0.673824",
"0.67243755",
"0.6689632",
"0.6686329",
"0.6685923",
"0.66779625",
"0.6664221",
"0.6628404",
"0.662286... | 0.659312 | 22 |
returns color of house | def PICn(YKHO):
return YKHO._color | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PICn(YKHO):\n return YKHO.color",
"def qfpW(YKHO):\n return YKHO['color']",
"def qfpW(YKHO):\n if YKHO._simplecell:\n YKHO.fetch()\n return YKHO._color",
"def qfpW(YKHO):\n return YKHO.container['color']",
"def mvpM(YKHO):\n return YKHO.__color",
"def mvpM(YKHO):\n return ... | [
"0.7206233",
"0.71860087",
"0.715351",
"0.7150324",
"0.7123317",
"0.7123317",
"0.7123317",
"0.7123317",
"0.7073274",
"0.70468754",
"0.7046503",
"0.7046313",
"0.7033729",
"0.70311576",
"0.6992252",
"0.6959284",
"0.69489664",
"0.6942672",
"0.69395864",
"0.6936185",
"0.69106907"... | 0.7022935 | 14 |
Round number up to next power of 10 | def VtiH(FGW3):
UHFx = len(str(int(FGW3)))
if FGW3 == 1:
UHFx = 0
elif FGW3 % 10 == 0:
UHFx = UHFx - 1
return 10 ** UHFx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WNcj(exwG, vP2v=True):\n if vP2v:\n return 10 ** epAf.ceil(epAf.log(exwG, 10))\n else:\n return 10 ** epAf.floor(epAf.log(exwG, 10))",
"def cKh6(exwG):\n if exwG == 0:\n return 0\n else:\n return epAf.ceil(epAf.log10(abs(exwG)))",
"def Fxxx(exwG: int, oxjE: int) -> i... | [
"0.7961042",
"0.7896611",
"0.7430123",
"0.70755994",
"0.6983163",
"0.69577986",
"0.6944983",
"0.68983483",
"0.688475",
"0.68542624",
"0.67367345",
"0.6694048",
"0.6689389",
"0.6640507",
"0.663728",
"0.6628653",
"0.6624858",
"0.66201836",
"0.6618172",
"0.6583415",
"0.65409887"... | 0.7337411 | 3 |
Sets the name of the carrier for the current request lifecycle. | def y98x(mWFP):
doKp.carrier = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EEKh(YKHO) -> str:\n return qe4Y.get(YKHO, 'carrier_name')",
"def gr_i(YKHO, pmjN):\n YKHO.carriers[pmjN.name] = pmjN()",
"def RPpi(YKHO):\n return YKHO.carrier_page.get_created_carrier_name()",
"def Onn_(YKHO, Onn_):\n YKHO._current_carrier_network = Onn_",
"def zyWq():\n return getattr... | [
"0.74088484",
"0.63650316",
"0.6355849",
"0.5974812",
"0.5895125",
"0.57192826",
"0.5702686",
"0.56130254",
"0.55906194",
"0.55515623",
"0.5463671",
"0.5409844",
"0.5283206",
"0.5283206",
"0.52701265",
"0.52701265",
"0.52701265",
"0.52701265",
"0.52669305",
"0.524288",
"0.523... | 0.7681195 | 0 |
This function returns an array of length a with the indices of array b that are closest to the values of array a. | def s4ms(jzdc, Fg_i):
jzdc = oyIN.atleast_1d(oyIN.array(jzdc))
Fg_i = oyIN.atleast_1d(oyIN.array(Fg_i))
yvT9 = [oyIN.argmin(abs(Fg_i - XOOk)) for XOOk in jzdc]
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bB2c(i3LB, fQvb):\n i3LB = oyIN.array(i3LB).T\n i3LB = i3LB[:, oyIN.newaxis]\n fQvb = oyIN.array(fQvb).T\n return oyIN.argmin(abs(fQvb - i3LB), axis=1)",
"def uiJA(jzdc, L1dM):\n or8S = XTiz.abs(jzdc - L1dM).argmin()\n return jzdc.flat[or8S]",
"def uiJA(jzdc, L1dM):\n or8S = oyIN.abs(j... | [
"0.7431907",
"0.7145059",
"0.7140231",
"0.7072252",
"0.6898944",
"0.68932545",
"0.6853787",
"0.67495334",
"0.6745704",
"0.6686743",
"0.66259295",
"0.6621587",
"0.657452",
"0.6573349",
"0.6497837",
"0.6479958",
"0.64772797",
"0.64554095",
"0.645303",
"0.6403311",
"0.63855433",... | 0.83729213 | 0 |
Quarantine the supplied bundle using the supplied reason. | async def _quarantine_bundle(YKHO, iP0h: RestClient, wHSX: BundleType, lo9Y: str) -> None:
YKHO.logger.error(f'Sending Bundle {wHSX['uuid']} to quarantine: {lo9Y}.')
gc0R = wzkt()
dSbQ = {'status': 'quarantined', 'reason': f'BY:{YKHO.name}-{YKHO.instance_uuid} REASON:{lo9Y}', 'work_priority_timestamp': gc0R... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_deleter_quarantine_bundle_with_reason(GPtr, AZgw):\n N1VT = AZgw.MagicMock()\n TxK5 = AZgw.patch('rest_tools.client.RestClient', new_callable=zrRO)\n XP5J = EsNu(GPtr, N1VT)\n await XP5J._quarantine_bundle(TxK5, {'uuid': 'c4b345e4-2395-4f9e-b0eb-9cc1c9cdf003'}, 'Rucio caught fire, then w... | [
"0.618683",
"0.57495564",
"0.5700352",
"0.56786245",
"0.5588792",
"0.55714357",
"0.5551414",
"0.55073553",
"0.5387978",
"0.5371958",
"0.53666514",
"0.5344349",
"0.5338192",
"0.5324552",
"0.53136617",
"0.52858984",
"0.52552575",
"0.5249711",
"0.52332675",
"0.5193098",
"0.51830... | 0.80517364 | 0 |
Takes a DOI string and returns a JSON string of metadata. | def wXtO(RHKR):
if 'arxiv' in RHKR:
print('This script does not yet support arXiv.')
HwRy.exit(2)
else:
bD7m = 'https://dx.doi.org/' + RHKR
MOPg = {'accept': 'application/json'}
Mkmy = G4JS.get(bD7m, headers=MOPg)
if repr(Mkmy) == '<Response [200]>':
y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ktGw(kxj1) -> cuzp:\n SYNV = None\n AIu6 = xciQ(kxj1)\n if AIu6:\n SYNV = ZWxB(AIu6[0], scheme='doi')\n SYNV['url'] = f'/records/{AIu6[0]['id']}'\n return SYNV",
"def vZzI(CSca):\n RHKR = _7Y5(CSca)\n if RHKR is None:\n return {'success': False, 'error_msg': \"Parse Err... | [
"0.658324",
"0.6186826",
"0.60670644",
"0.5869886",
"0.5681247",
"0.55712116",
"0.53361624",
"0.52934235",
"0.5220034",
"0.51885957",
"0.5179392",
"0.51644266",
"0.51488006",
"0.5144595",
"0.5139534",
"0.510246",
"0.5086857",
"0.5024589",
"0.50141627",
"0.49613795",
"0.494524... | 0.7098311 | 0 |
Get absolute path to resource, works for dev and for PyInstaller | def JFat(t_yv):
try:
XSj5 = HwRy._MEIPASS
except Exception:
XSj5 = Hy7s.path.abspath('.')
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep",
"def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join... | [
"0.8370207",
"0.8280719",
"0.8248514",
"0.81387657",
"0.8113593",
"0.8098866",
"0.80943495",
"0.80799586",
"0.8067939",
"0.8067573",
"0.8062756",
"0.8062756",
"0.8062756",
"0.8062756",
"0.8062756",
"0.8062756",
"0.8062756",
"0.8056859",
"0.80546963",
"0.80450433",
"0.80450433... | 0.7874609 | 43 |
Go to home page | def oUar(YKHO):
if YKHO.home_url is not None:
YKHO.set_url(YKHO.home_url) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(YKHO):\n YKHO.goto(0, 0)",
"def oUar(QePW):\n bD7m = QePW.route_url('home', _app_url=NxLh(QePW))\n return MEVA(location=bD7m)",
"def BZ0h():\n if not bIYZ:\n eTsH(404)\n return vKnz(bIYZ)",
"def BZ0h():\n if not bIYZ:\n eTsH(404)\n return vKnz(bIYZ)",
"def bIYZ(Y... | [
"0.8030926",
"0.8010641",
"0.78565353",
"0.78565353",
"0.7842787",
"0.7819811",
"0.7761241",
"0.77168256",
"0.7710422",
"0.7658114",
"0.75707996",
"0.75160396",
"0.7515307",
"0.7425273",
"0.74167955",
"0.74005103",
"0.7379817",
"0.7340132",
"0.7321713",
"0.7319783",
"0.729707... | 0.82052684 | 0 |
Create a com.sun.star.awt.Point struct. | def gd_v(ZsiB, XC_d):
kErx = lLK2('com.sun.star.awt.Point')
kErx.X = ZsiB
kErx.Y = XC_d
return kErx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p1b3(fDHI, WvLZ):\n PvyL = UQtd('Point', 'x_crd y_crd')\n return PvyL(fDHI, WvLZ)",
"def AU8u(YKHO):\n return g760.namedtuple(YKHO.name, [YKHO.x, YKHO.y, YKHO.units])",
"def OJ0I(YKHO):\n return PvyL(*YKHO.position)",
"def guJE(YKHO) -> PvyL:\n return PvyL(YKHO.x, YKHO.y, 0)",
"def AU8u(... | [
"0.7243411",
"0.67983496",
"0.65620244",
"0.65571135",
"0.65474313",
"0.64679706",
"0.6424313",
"0.6340852",
"0.62910265",
"0.6268829",
"0.62510884",
"0.62171054",
"0.6176435",
"0.61754274",
"0.5987973",
"0.59807426",
"0.59644204",
"0.5933073",
"0.5927502",
"0.59074783",
"0.5... | 0.8447396 | 1 |
Create a com.sun.star.awt.Rectangle struct. | def f19b(ZsiB, XC_d, xCGU, jcRX):
JKfG = lLK2('com.sun.star.awt.Rectangle')
JKfG.X = ZsiB
JKfG.Y = XC_d
JKfG.Width = xCGU
JKfG.Height = jcRX
return JKfG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lued(KQji, Wjb0, TVTK, H2v2):\n o4D3, ajwV = (KQji - TVTK, KQji + TVTK)\n si3g, skBL = (Wjb0 - H2v2, Wjb0 + H2v2)\n return PhJ3([PvyL(o4D3, si3g), PvyL(o4D3, skBL), PvyL(ajwV, skBL), PvyL(ajwV, si3g)])",
"def eJpy(TVTK, H2v2, qfpW):\n nPrm = [-TVTK / 2, -H2v2 / 2, TVTK / 2, -H2v2 / 2, TVTK / 2, H... | [
"0.6828258",
"0.67447984",
"0.661885",
"0.6615916",
"0.6569584",
"0.6505301",
"0.64754283",
"0.645183",
"0.645183",
"0.64407796",
"0.64276874",
"0.6411871",
"0.64014655",
"0.6366434",
"0.6291482",
"0.6219487",
"0.62064403",
"0.62053233",
"0.6200718",
"0.6198248",
"0.6196827",... | 0.8646927 | 1 |
Encodes a signed 32 bit integer. | def BwQ5(BWXx: int) -> bytes:
return c8TJ(BWXx, pSgS[YUYK.I32].LENGTH, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _blQ(WKvO):\n while WKvO < 0:\n WKvO = WKvO + 2 ** 32\n assert WKvO >> 32 == 0\n WKvO = tMMy(WKvO, 32, 'little', False)\n KCHu = ''\n for Fg_i in WKvO:\n KCHu += '{:02x}'.format(Fg_i)\n assert len(KCHu) == 8\n return '\\\\u' + KCHu[0:4] + '\\\\u' + KCHu[4:]",
"def OGwj(BWXx... | [
"0.732017",
"0.7107245",
"0.6937749",
"0.6710767",
"0.66709656",
"0.6641764",
"0.66244256",
"0.65855706",
"0.65325177",
"0.65193176",
"0.65188384",
"0.6450076",
"0.6440046",
"0.63887787",
"0.63869387",
"0.6374578",
"0.61871505",
"0.6183587",
"0.61385906",
"0.61082375",
"0.610... | 0.7206746 | 1 |
Encodes a signed 64 bit integer. | def n4BD(BWXx: int) -> bytes:
return c8TJ(BWXx, pSgS[YUYK.I64].LENGTH, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eGjU(BWXx: int) -> bytes:\n return c8TJ(BWXx, pSgS[YUYK.U64].LENGTH, False)",
"def BLLR(YKHO, r8FF, t1VD=None):\n if not isinstance(r8FF, int) and (not isinstance(r8FF, Swre)):\n raise ValueError('Expected int or long plaintext but got: %s' % type(r8FF))\n if r8FF < BLCt or r8FF > Coou:\n ... | [
"0.71692836",
"0.686562",
"0.67323595",
"0.6639236",
"0.6529915",
"0.6529915",
"0.6500912",
"0.6465857",
"0.63426864",
"0.62962234",
"0.62952036",
"0.62636083",
"0.619505",
"0.6107646",
"0.6053847",
"0.60516316",
"0.6014983",
"0.6005445",
"0.5932173",
"0.5821946",
"0.580687",... | 0.73616225 | 0 |
Encodes an unsigned 8 bit integer. | def DArD(BWXx: int) -> bytes:
return c8TJ(BWXx, pSgS[YUYK.U8].LENGTH, False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vwvV(YKHO, EDCT, dQSj, arwp):\n YKHO.Transaction(chr(EDCT) + chr(dQSj) + BlNT.pack('B', arwp))",
"def JeQX(YKHO, BWXx):\n HNC5 = BlNT.pack('!B', BWXx)\n YKHO.data.extend(HNC5)",
"def XgwF(BWXx: bytes, dmhX: str='little', Zihr: bool=False) -> int:\n return MZ6z(BWXx, 8, dmhX, Zihr)",
"def YSyd... | [
"0.7187489",
"0.70266473",
"0.6738288",
"0.65686345",
"0.6503062",
"0.6400726",
"0.6365142",
"0.6359848",
"0.6356634",
"0.6325308",
"0.6324641",
"0.6312194",
"0.62764937",
"0.6194898",
"0.60572857",
"0.60183847",
"0.59737056",
"0.59461296",
"0.59255874",
"0.59180444",
"0.5902... | 0.75584686 | 0 |
Encodes an unsigned 32 bit integer. | def OGwj(BWXx: int) -> bytes:
return c8TJ(BWXx, pSgS[YUYK.U32].LENGTH, False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _blQ(WKvO):\n while WKvO < 0:\n WKvO = WKvO + 2 ** 32\n assert WKvO >> 32 == 0\n WKvO = tMMy(WKvO, 32, 'little', False)\n KCHu = ''\n for Fg_i in WKvO:\n KCHu += '{:02x}'.format(Fg_i)\n assert len(KCHu) == 8\n return '\\\\u' + KCHu[0:4] + '\\\\u' + KCHu[4:]",
"def E7HX(YKHO... | [
"0.72886485",
"0.725134",
"0.7215473",
"0.71979535",
"0.7137827",
"0.7022656",
"0.6956605",
"0.69430447",
"0.691968",
"0.6665251",
"0.6593908",
"0.6573443",
"0.65679795",
"0.6546468",
"0.6501861",
"0.64995223",
"0.6489284",
"0.63497615",
"0.6335349",
"0.6288146",
"0.62744594"... | 0.764139 | 0 |
Encodes an unsigned 64 bit integer. | def eGjU(BWXx: int) -> bytes:
return c8TJ(BWXx, pSgS[YUYK.U64].LENGTH, False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n4BD(BWXx: int) -> bytes:\n return c8TJ(BWXx, pSgS[YUYK.I64].LENGTH, True)",
"def s5SG(YRbF):\n if not isinstance(YRbF, int):\n raise TypeError('Must be an int')\n elif YRbF.bit_length() > 64:\n raise ValueError('Must be a 64bit value.')\n return BlNT.pack('>Q', YRbF)",
"def QX98(... | [
"0.7195093",
"0.71726847",
"0.7013398",
"0.7013398",
"0.67956394",
"0.6587401",
"0.65525234",
"0.65354306",
"0.6412215",
"0.63429224",
"0.6282969",
"0.62307477",
"0.62105554",
"0.6060791",
"0.60438156",
"0.60275346",
"0.60194147",
"0.59864676",
"0.594548",
"0.5938131",
"0.591... | 0.7753789 | 0 |
Encodes an unsigned 256 bit integer. | def ye5f(BWXx: int) -> bytes:
for pf8G in (YUYK.U8, YUYK.U32, YUYK.U64, YUYK.U128, YUYK.U256):
if Sj0R(pf8G, BWXx):
break
else:
raise ValueError('Invalid U256: max size exceeded')
D92J = fVnz(BWXx, pSgS[pf8G].LENGTH, False)
return bytes([len(D92J)]) + D92J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q66e(Ty9i):\n if Ty9i < 240:\n return chr(Ty9i)\n elif Ty9i <= 2287:\n Ty9i -= 240\n Csk6, r8hN = divmod(Ty9i, 256)\n return chr(241 + Csk6) + chr(r8hN)\n elif Ty9i <= 67823:\n Ty9i -= 2288\n Csk6, r8hN = divmod(Ty9i, 256)\n return 'ù' + chr(Csk6) + chr... | [
"0.64157325",
"0.6330101",
"0.6202689",
"0.6161866",
"0.614205",
"0.61340094",
"0.6094049",
"0.5977668",
"0.5955054",
"0.5948855",
"0.5923433",
"0.58729017",
"0.58054245",
"0.57921547",
"0.57809037",
"0.5763508",
"0.5760439",
"0.5753819",
"0.57178915",
"0.5659287",
"0.5655602... | 0.68769276 | 0 |
Encodes an unsigned 512 bit integer. | def mDeX(BWXx: int):
for pf8G in (YUYK.U8, YUYK.U32, YUYK.U64, YUYK.U128, YUYK.U256, YUYK.U512):
if Sj0R(pf8G, BWXx):
break
else:
raise ValueError('Invalid U512: max size exceeded')
D92J = fVnz(BWXx, pSgS[pf8G].LENGTH, False)
return bytes([len(D92J)]) + D92J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tMMy(Emd4, q_Jn, zNig):\n hlel = bytes()\n for YRbF in range(zNig):\n hlel += chr(q_Jn >> YRbF * 8 & 255)\n return hlel",
"def kLcZ(WKvO):\n YRbF = int(16384 * WKvO)\n return lndC('h').pack(YRbF)",
"def kLcZ(WKvO):\n YRbF = int(16384 * WKvO)\n return lndC('h').pack(YRbF)",
"de... | [
"0.5873435",
"0.58695847",
"0.5858977",
"0.5855968",
"0.5822624",
"0.57660556",
"0.57323843",
"0.57323843",
"0.571813",
"0.5700974",
"0.56993073",
"0.55935234",
"0.55502033",
"0.55311394",
"0.55279845",
"0.5521459",
"0.55198777",
"0.55005956",
"0.5469042",
"0.54624766",
"0.54... | 0.7516844 | 0 |
Computes the defect probability for every child | def nIOk(YKHO):
YKHO.defect_prob = YKHO.defect_probability()
for qxPj in YKHO.files_analytics.values():
qxPj.compute_defect_probability() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DQtz(YKHO):\n xc_V = YKHO.tree.depth()\n QJIw = 1\n while QJIw <= xc_V:\n xXAm = YKHO.get_h(QJIw)\n QheU = 0\n _L0H = []\n sDdV = []\n for aGqg in xXAm:\n QheU = YKHO.tree.get_node(aGqg).data[0] + QheU\n gTT3 = YKHO.tree.get_node(aGqg)\n ... | [
"0.6381905",
"0.6177454",
"0.6074082",
"0.6028286",
"0.59427",
"0.5935064",
"0.59331375",
"0.5873684",
"0.5782974",
"0.577143",
"0.5706628",
"0.5704525",
"0.5687962",
"0.56712",
"0.56625974",
"0.5659836",
"0.5653012",
"0.56150997",
"0.5595295",
"0.55919814",
"0.5586295",
"0... | 0.65876067 | 0 |
Create an interactive Plotly scatter plot with user defined x and y parameters as well as an optional third parameter used for point color gradient. | def ZNFm(__n6: pd.DataFrame, x3AD: str, oq8z: str, AOKQ: str, gAfp: [str]=None) -> iEax.Figure:
leAC = f'Scatter Analysis: {x3AD} vs. {oq8z}'
if AOKQ == '<select>':
qfpW = None
else:
qfpW = AOKQ
LZpg = Xlvp.scatter(__n6, x=x3AD, y=oq8z, color_continuous_scale='Blues', color=qfpW, trendli... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lvLh(YKHO, WKvO='Predictor', LVAh='Response', qfpW=None, bHg_=False, zzgw=0.1, m5yY=None, W3qA=None, W9kA=None, BCp6=1, rPXJ='ggplot2', Bd1F=True, leAC=None):\n ErFd, MRiP = Q2yM(YKHO._df, var=WKvO)\n YnB6, MRiP = Q2yM(MRiP, var=LVAh)\n if bHg_:\n MRiP[ErFd] = MRiP[ErFd] + oyIN.random.normal(0,... | [
"0.71018946",
"0.70734847",
"0.67792296",
"0.66735274",
"0.65962356",
"0.6593396",
"0.6564824",
"0.6528923",
"0.6509285",
"0.6447772",
"0.6412132",
"0.64114225",
"0.6386084",
"0.636491",
"0.632595",
"0.6322293",
"0.63079953",
"0.6305342",
"0.63046676",
"0.62630695",
"0.625060... | 0.69105273 | 2 |
Determine if this is the vert in an open edge that should not have a post | def yHAf(Ty9i, VnzS, LFlW, _tIi, QWcs):
if QWcs.open_side == 'LEFT':
if Ty9i in LFlW.verts and Ty9i not in VnzS.verts:
return True
elif QWcs.open_side == 'RIGHT':
if Ty9i in _tIi.verts and Ty9i not in VnzS.verts:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oxL1(YKHO, Ty9i, yzQ0):\n return YKHO.op_norm(Ty9i[0], yzQ0[0]) == Ty9i[1] + yzQ0[1] and (YKHO.variant.is_bipartite() or Ty9i != yzQ0)",
"def SEEh(YKHO):\n oWBf = set()\n for UsS3 in YKHO.wires():\n for D70y in UsS3.ordered_edges():\n oWBf.add(D70y.topods_shape())\n VMJc = set([... | [
"0.6577792",
"0.65098494",
"0.6507211",
"0.64180267",
"0.6417849",
"0.6377712",
"0.63526595",
"0.6351077",
"0.63391054",
"0.62962776",
"0.62881887",
"0.625048",
"0.6244916",
"0.62438977",
"0.6213483",
"0.61897594",
"0.6179836",
"0.61250985",
"0.6122007",
"0.6101966",
"0.60872... | 0.71227276 | 0 |
Obtain string representation of the Interface Status object. | def zAg0(YKHO):
y1e_ = ''
y1e_ += '\nInterfaceStatus [ ' + YKHO.interface_name + ' ]\n'
y1e_ += '\tLinkState : ' + str(YKHO.InterfaceState.enumval(YKHO.link)) + '\n'
y1e_ += '\tLineProtoState : ' + str(YKHO.InterfaceState.enumval(YKHO.lineproto)) + '\n'
return y1e_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n Ebev = ', '.join(['was_available_once: ' + str(YKHO.was_available_once), 'is_available: ' + str(YKHO.is_available), 'signal_strength_percent: ' + str(YKHO.signal_strength_percent)])\n return f'RcStatus: [{Ebev}]'",
"def q44o(YKHO, KAOR):\n return KAOR.get_status_string()",
"def EUmI(... | [
"0.753813",
"0.75120044",
"0.74452037",
"0.7416838",
"0.7120765",
"0.7041113",
"0.70339936",
"0.6861584",
"0.68476593",
"0.68476593",
"0.68476593",
"0.68324053",
"0.6831681",
"0.68259335",
"0.6778136",
"0.6778136",
"0.6778136",
"0.6778136",
"0.6778136",
"0.6778136",
"0.677813... | 0.8487201 | 0 |
Get a coordinate box from a map. | def Kb8R(aMCZ):
ROpF, LZCK = aMCZ.data.geometry
return UQWr.box(ROpF, LZCK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PDsa(X7zS):\n return (X7zS['@maxlat'], X7zS['@minlat'], X7zS['@maxlon'], X7zS['@minlon'])",
"def iJa0(YKHO, FDPT, QnmL):\n qZAm = YKHO.lon_arr[1, :]\n nbG8 = YKHO.lat_arr[:, 1]\n XjPL = YKHO._ret_box_position(qZAm, FDPT)\n XFqp = YKHO._ret_box_position(nbG8, QnmL)\n return (XjPL, XFqp)",
... | [
"0.6343539",
"0.62984586",
"0.6088024",
"0.5940011",
"0.58484155",
"0.5809148",
"0.574483",
"0.57401186",
"0.57032806",
"0.56887144",
"0.5670047",
"0.56506366",
"0.5638249",
"0.55707836",
"0.5557778",
"0.55481535",
"0.5539294",
"0.5528144",
"0.55278516",
"0.5517178",
"0.55063... | 0.7182905 | 0 |
Compute the perclass IoU and the mean IoU. | def RjuK(YKHO):
if YKHO.confusion_matrix is None:
return None
p9iZ = []
for UXqs in range(YKHO.num_classes):
HRJ_ = oyIN.longlong(YKHO.confusion_matrix[UXqs, UXqs])
FYKK = oyIN.longlong(YKHO.confusion_matrix[UXqs, :].sum()) - HRJ_
ytgA = oyIN.longlong(YKHO.confusion_matrix[:,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GTE4(YKHO):\n return oyIN.mean(YKHO.ious_[oyIN.arange(len(YKHO.labels_)), YKHO.labels_])",
"def GIwx(Bcwd, iTAD=True):\n RfIB = oyIN.sum(Bcwd, axis=1) + oyIN.sum(Bcwd, axis=0) - oyIN.diag(Bcwd)\n ZHfW = RfIB > 0\n RfIB[RfIB == 0] = 1\n mwHX = oyIN.diag(Bcwd) / RfIB\n mwHX[oyIN.logical_not(Z... | [
"0.7603079",
"0.7418562",
"0.7163718",
"0.6903225",
"0.6849643",
"0.68161976",
"0.6811373",
"0.6756634",
"0.670836",
"0.6554818",
"0.646996",
"0.6349385",
"0.6348182",
"0.62550694",
"0.62355584",
"0.62218934",
"0.62197864",
"0.6167413",
"0.6165298",
"0.6143924",
"0.6027999",
... | 0.69215584 | 3 |
Min, value, and max for this range. | def FIMM(YKHO, hgl7, wEf2, RsfQ):
YKHO.mn = hgl7
YKHO.val = wEf2
YKHO.mx = RsfQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, kpLf, JCoA):\n YKHO.values = (kpLf, JCoA)",
"def FIMM(YKHO, kpLf, JCoA):\n YKHO.values = (kpLf, JCoA)",
"def FIMM(YKHO, kpLf, JCoA):\n YKHO.values = (kpLf, JCoA)",
"def FIMM(YKHO, kpLf, JCoA):\n YKHO.values = (kpLf, JCoA)",
"def ZBvC(YKHO):\n dgIT, bQ6z = YKHO._raw_data.data_r... | [
"0.7486986",
"0.7486986",
"0.7486986",
"0.7486986",
"0.74503446",
"0.73091775",
"0.70252573",
"0.70252573",
"0.7022158",
"0.6962953",
"0.6898031",
"0.6889545",
"0.68634725",
"0.6799793",
"0.67597604",
"0.6736738",
"0.6731614",
"0.6711583",
"0.66995513",
"0.66940516",
"0.66809... | 0.0 | -1 |
method to serialise datetime obj | def PmA5(YEnM: Any) -> ImMB:
if isinstance(YEnM, (qcWV.date, qcWV.datetime)):
return YEnM.isoformat()
else:
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JW5R(YKHO, YEnM):\n if isinstance(YEnM, qcWV.datetime):\n return YEnM.isoformat()\n raise TypeError('Type not serializable')",
"def SuQJ(YKHO, YEnM):\n if isinstance(YEnM, qcWV.datetime):\n return int(ITS7.mktime(YEnM.timetuple()))\n raise TypeError('Type %s not serializable' % type... | [
"0.8295255",
"0.8106972",
"0.80206555",
"0.7735369",
"0.7582689",
"0.75627756",
"0.7502528",
"0.74950355",
"0.74590653",
"0.74358654",
"0.7422188",
"0.73993206",
"0.73993206",
"0.73969173",
"0.7375495",
"0.73338103",
"0.72889334",
"0.7284664",
"0.72399163",
"0.720197",
"0.719... | 0.67792463 | 44 |
method to serialise datetime in dict | def V_Cx(zGKt: Dict) -> cuzp:
for H5ew, BWXx in zGKt.items():
zGKt[H5ew] = PmA5(BWXx)
return zGKt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oD7C(YKHO):\n TDnD = YKHO.__dict__.copy()\n TDnD.update({'__class__': str(YKHO.__class__.__name__)})\n for H5ew, BWXx in TDnD.items():\n if isinstance(BWXx, qcWV):\n TDnD[H5ew] = BWXx.strftime(YKHO.timeformat)\n return TDnD",
"def sHYP(YKHO):\n assert vsUu.dumps({qcWV.datetim... | [
"0.7173971",
"0.7112734",
"0.701276",
"0.700265",
"0.69404316",
"0.69391525",
"0.68854564",
"0.68477345",
"0.6845062",
"0.68033975",
"0.67881083",
"0.6756919",
"0.67133623",
"0.6696824",
"0.6695848",
"0.6661993",
"0.6586551",
"0.6556468",
"0.65349954",
"0.65317947",
"0.651191... | 0.0 | -1 |