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 current traefik config | def wLv7():
_hkX = G4JS.get(ACu9)
if not _hkX.ok:
raise Exception('Bad traefik response: %s %s' % (_hkX.status_code, _hkX.text))
return _hkX.json() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD(YKHO):\n if YKHO.faucet is not None:\n return YKHO.faucet.get_config()\n return None",
"def GPtr(YKHO):\n return YKHO[OtOl]",
"def viqz():\n GPtr = None\n try:\n with open('%s/sites.yaml' % Fm4J, 'r', encoding='utf8') as eHNT:\n GPtr = eJb6.load(eHNT, Loader=eJb... | [
"0.65415466",
"0.6487854",
"0.64643747",
"0.63762534",
"0.6346586",
"0.62744397",
"0.62612295",
"0.6244715",
"0.6242028",
"0.6240448",
"0.6240448",
"0.6240448",
"0.6240448",
"0.6240448",
"0.6240448",
"0.6240448",
"0.6240448",
"0.6240448",
"0.6240448",
"0.6240448",
"0.6240448"... | 0.7550375 | 0 |
Function to return word tokens after removing stopwords | def GMXA(l5Ny):
return [eOtH.text for eOtH in K9NE(l5Ny) if not eOtH.is_stop] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s7oB(l5Ny):\n s2mk = wr3U(l5Ny)\n s2mk = nkVl(s2mk)\n return s2mk",
"def g8pp(Mau6):\n HM5X = ''\n for GIN8 in Mau6.split():\n if not GIN8.lower() in vDyF:\n HM5X += GIN8.lower() + ' '\n return HM5X",
"def aUcs(s2mk):\n return [a1PO for a1PO in s2mk if a1PO not in di0... | [
"0.8282506",
"0.8236921",
"0.81577164",
"0.8124182",
"0.79964346",
"0.79879606",
"0.7941632",
"0.79021937",
"0.78257424",
"0.7790527",
"0.7781247",
"0.7778923",
"0.77590746",
"0.7750506",
"0.7732251",
"0.77091384",
"0.7674733",
"0.7656764",
"0.7650664",
"0.7640874",
"0.762771... | 0.0 | -1 |
Creates and saves a new superuser | def Zp54(YKHO, D3lj, jTXt):
CBIr = YKHO.create_user(D3lj, jTXt)
CBIr.is_superuser = True
CBIr.is_staff = True
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, NtEF, D3lj, jTXt):\n print('creating super user....')\n CBIr = YKHO.create_user(username=NtEF, password=jTXt, email=D3lj, commit=False)\n CBIr.is_staff = True\n CBIr.is_superuser = True\n CBIr.save(using=YKHO._db)\n return CBIr",
"def sX7Z(NtEF, D3lj, jTXt):\n if NtEF and D3lj... | [
"0.77547395",
"0.77106166",
"0.76589674",
"0.76153344",
"0.76043314",
"0.7571577",
"0.75513625",
"0.75086164",
"0.7498614",
"0.7489792",
"0.7474367",
"0.74643284",
"0.745592",
"0.7434419",
"0.7433068",
"0.74285924",
"0.74242926",
"0.7416112",
"0.7409944",
"0.7408624",
"0.7398... | 0.7091985 | 85 |
Asserts that the scaled shape is correct, given orig shape and scale_factor. | def Inh_(zXzD: torch.Tensor, k8L3: torch.Tensor, SnCn: float) -> bool:
ywwl, Nq1b, C7Ls, XcU5 = zXzD.shape
lo2K = int(SnCn * C7Ls)
aZiX = int(SnCn * XcU5)
return k8L3.shape == (ywwl, Nq1b, lo2K, aZiX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qUZd(VYdi, ffx2, jDK_, S96Q, ZHl5):\n QEup = len(VYdi)\n W7Wn = len(ffx2)\n if jDK_ >= QEup or jDK_ < -QEup:\n raise RuntimeError('axis out of range index')\n if S96Q < -1:\n raise RuntimeError('num_axes must be non-negative or -1')\n if jDK_ < 0:\n _b8T = QEup + jDK_\n e... | [
"0.68980896",
"0.6707433",
"0.66122127",
"0.65666986",
"0.6384991",
"0.6234652",
"0.6158823",
"0.61243045",
"0.6106264",
"0.6034931",
"0.60271806",
"0.59370005",
"0.5861821",
"0.58276594",
"0.5797442",
"0.5783301",
"0.5780703",
"0.5778719",
"0.57183325",
"0.5713862",
"0.56936... | 0.7542899 | 0 |
Tests that no operation is performed when scale_factor == 1. | def f4xN(YKHO, EcVT, LVAh, Tuqy):
iMqM, bGrB = H1f2(EcVT, LVAh, 1.0, Tuqy, resize_targets=False)
assert EcVT is iMqM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uGwu(P4t4):\n assert False",
"def yQ5J(OaeV):\n assert l3At.validate_scale_count(None, OaeV) is None\n assert l3At.validate_scale_count(zPjx.Int(3), OaeV) is None\n assert l3At.validate_scale_count(zPjx.Int(2), OaeV) == 'need at least 3 scaling factors.'",
"def ROrF(YKHO):\n GPal.rescale_len... | [
"0.6535765",
"0.65304375",
"0.6429214",
"0.6369639",
"0.6264504",
"0.6258484",
"0.6203764",
"0.62014693",
"0.6109567",
"0.6101256",
"0.6010517",
"0.5995616",
"0.5943552",
"0.59334576",
"0.5865869",
"0.5820763",
"0.5789148",
"0.57808703",
"0.57342374",
"0.5732263",
"0.5693144"... | 0.524274 | 81 |
Sets the cash_flow_lineage of this CashFlowValue. | def gWrS(YKHO, gWrS):
YKHO._cash_flow_lineage = gWrS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zFiD(YKHO, BWXx):\n if BWXx is not None:\n assert type(BWXx) is int, \"'{0}' attribute: '{1}' type is not 'int'!\".format('line', BWXx)\n assert BWXx > 0, \"'{0}' attribute: '{1}' need to be exactly positive!\".format('line', BWXx)\n YKHO.__line = BWXx",
"def G9VE(YKHO, G9VE):\n YKHO._... | [
"0.505394",
"0.5008375",
"0.49500218",
"0.48923913",
"0.48034826",
"0.47586742",
"0.47417346",
"0.47019252",
"0.46580777",
"0.46134818",
"0.46059132",
"0.45832402",
"0.45728016",
"0.45586666",
"0.45404127",
"0.45394343",
"0.45317507",
"0.4521919",
"0.4516098",
"0.45103064",
"... | 0.88833 | 0 |
Sets the payment_amount of this CashFlowValue. | def OoW6(YKHO, OoW6):
if YKHO.local_vars_configuration.client_side_validation and OoW6 is None:
raise ValueError('Invalid value for `payment_amount`, must not be `None`')
YKHO._payment_amount = OoW6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z5kt(YKHO, Z5kt: float):\n if Z5kt is None:\n raise ValueError('Invalid value for `amount`, must not be `None`')\n YKHO._amount = Z5kt",
"def Z5kt(YKHO, Z5kt):\n if Z5kt is None:\n raise ValueError('Invalid value for `amount`, must not be `None`')\n YKHO._amount = Z5kt",
"def Z5kt... | [
"0.66576576",
"0.6585119",
"0.6585119",
"0.6500116",
"0.6313185",
"0.6207765",
"0.617024",
"0.617024",
"0.617024",
"0.617024",
"0.617024",
"0.617024",
"0.617024",
"0.617024",
"0.617024",
"0.61599547",
"0.61599547",
"0.6056337",
"0.600363",
"0.59911865",
"0.5963222",
"0.5933... | 0.77774256 | 0 |
Sets the payment_ccy of this CashFlowValue. | def OXG9(YKHO, OXG9):
if YKHO.local_vars_configuration.client_side_validation and OXG9 is None:
raise ValueError('Invalid value for `payment_ccy`, must not be `None`')
YKHO._payment_ccy = OXG9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bUCE(YKHO, bUCE):\n YKHO._payment_type = bUCE",
"def FJvm(YKHO, FJvm):\n YKHO._kyc_state = FJvm",
"def Ywmj(YKHO, Ywmj):\n YKHO._payment_date = Ywmj",
"def Ywmj(YKHO, Ywmj):\n YKHO._payment_date = Ywmj",
"def q0JL(YKHO, q0JL):\n YKHO._payment_id = q0JL",
"def gWrS(YKHO, gWrS):\n YKH... | [
"0.5009276",
"0.50025815",
"0.4880561",
"0.4880561",
"0.4737453",
"0.47234666",
"0.46897516",
"0.46878213",
"0.4657173",
"0.45723772",
"0.45570904",
"0.45404842",
"0.45360726",
"0.45128644",
"0.45008203",
"0.44773725",
"0.44564056",
"0.44444105",
"0.44374436",
"0.44142264",
"... | 0.8008341 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, Mb9a):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, Mb9a):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.8457179",
"0.8393067",
"0.81457263",
"0.8140635",
"0.8133462",
"0.8094992",
"0.8093376",
"0.8093376",
"0.8093376",
"0.80863357",
"0.80863357",
"0.8077303",
"0.8077303",
"0.8066831",
"0.8043635",
"0.8043635",
"0.8043635",
"0.8043635",
"0.8043635",
"0.8043635",
"0.8043635",
... | 0.0 | -1 |
Pads the given array X with zeroes at the both end of given dims. | def AOVh(EcVT, tHuz, Htse):
Htse = Htse if isinstance(Htse, int) else Htse
hVLt = [(0, 0) if or8S not in Htse else (tHuz, tHuz) for or8S in range(len(EcVT.shape))]
D0si = oyIN.pad(EcVT, hVLt, 'constant')
return D0si | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hq5y(YKHO, EcVT, MVIL):\n eYrV = oyIN.zeros((EcVT.shape[0] + 2 * MVIL, EcVT.shape[1] + 2 * MVIL, EcVT.shape[2]))\n GWxz = MVIL\n JCr6 = MVIL\n eYrV[GWxz:EcVT.shape[0] + GWxz, JCr6:EcVT.shape[1] + JCr6, :] = EcVT\n return eYrV",
"def dvgN(jzdc, tpio):\n return oyIN.pad(jzdc, (0, tpio - len(j... | [
"0.70617837",
"0.6535911",
"0.6467196",
"0.6465936",
"0.64072335",
"0.63002443",
"0.62966114",
"0.6285144",
"0.6267398",
"0.624555",
"0.61968255",
"0.61869466",
"0.6162422",
"0.60674536",
"0.60464317",
"0.59686375",
"0.59444034",
"0.5927191",
"0.59177244",
"0.5876671",
"0.587... | 0.8131378 | 0 |
Initializam reteaua cu arhitectura pasata la size biases si weights random | def FIMM(YKHO, maxY):
YKHO.num_layers = len(maxY)
YKHO.sizes = maxY
YKHO.biases = [oyIN.random.randn(LVAh, 1) for LVAh in maxY[1:]]
YKHO.weights = [oyIN.random.randn(LVAh, WKvO) for WKvO, LVAh in zip(maxY[:-1], maxY[1:])] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zNig, SGPK):\n YKHO.weights = YKHO.init_weights(zNig)\n YKHO.alpha = SGPK['alpha']\n YKHO.epsilon = SGPK['epsilon']\n YKHO.gamma = SGPK['gamma']\n YKHO.value = 0.0",
"def XXxF(YKHO):\n YKHO.biases = [oyIN.random.randn(LVAh, 1) for LVAh in YKHO.sizes[1:]]\n YKHO.weights = [oyIN... | [
"0.7187552",
"0.7145378",
"0.70761406",
"0.70706934",
"0.7064725",
"0.7016062",
"0.7009611",
"0.69568557",
"0.6938749",
"0.69345564",
"0.6901814",
"0.6901069",
"0.6899508",
"0.6864811",
"0.6843959",
"0.6828675",
"0.6824855",
"0.6809027",
"0.6803097",
"0.68016416",
"0.67849064... | 0.68136257 | 17 |
Derivative of the sigmoid function. | def hj5n(epBp):
return m1Hg(epBp) * (1 - m1Hg(epBp)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NZml(WKvO):\n return WKvO * (1 - WKvO)",
"def NZml(WKvO):\n return WKvO * (1.0 - WKvO)",
"def NZml(WKvO):\n return m1Hg(WKvO) * (1 - m1Hg(WKvO))",
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def NZml(WKvO):\n KCHu = m1Hg(WKvO)\n ox... | [
"0.84754366",
"0.8450928",
"0.8396931",
"0.83485264",
"0.83485264",
"0.8298343",
"0.80539966",
"0.7753385",
"0.77070266",
"0.7498153",
"0.7464916",
"0.7454039",
"0.7401582",
"0.7385017",
"0.73829913",
"0.7346935",
"0.7321687",
"0.73094004",
"0.7192053",
"0.7113881",
"0.709236... | 0.0 | -1 |
Switch Chromosomes Choses two random chromosomes and switches them in place. | def gy_V(Lx35):
oZf4 = tuKI.randint(0, max(0, len(Lx35) - 1))
YBiN = tuKI.randint(0, max(0, len(Lx35) - 1))
ycBG = Lx35[oZf4]
Lx35[oZf4] = Lx35[YBiN]
Lx35[YBiN] = ycBG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bp74(Lx35):\n oZf4 = tuKI.randint(0, max(0, len(Lx35) - 1))\n YBiN = tuKI.randint(0, max(0, len(Lx35) - 1))\n ycBG = Lx35[oZf4][1]\n Lx35[oZf4][1] = Lx35[YBiN][1]\n Lx35[YBiN][1] = ycBG",
"def v8o1(Lx35):\n yokr = tuKI.randint(0, 5)\n if len(Lx35) <= 1:\n yokr = 0\n if yokr == ... | [
"0.7144732",
"0.6635525",
"0.6614316",
"0.63819915",
"0.63241905",
"0.6230874",
"0.621616",
"0.60042495",
"0.5984897",
"0.58996826",
"0.5879291",
"0.5870332",
"0.5848764",
"0.58395606",
"0.5818081",
"0.5794118",
"0.57570326",
"0.5740301",
"0.5658126",
"0.564185",
"0.56400144"... | 0.8238444 | 0 |
Increment Chromosome Choose a chromosome at random and move it up the list. | def dqKs(Lx35):
oZf4 = tuKI.randint(0, max(0, len(Lx35) - 2))
yokr = tuKI.randint(0, 2)
if yokr == 0:
YBiN = oZf4 + 1
elif yokr == 1:
YBiN = tuKI.randint(oZf4, max(oZf4, len(Lx35) - 1))
else:
YBiN = max(0, len(Lx35) - 1)
ycBG = Lx35[oZf4]
Lx35[oZf4] = Lx35[YBiN]
L... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v8o1(Lx35):\n yokr = tuKI.randint(0, 5)\n if len(Lx35) <= 1:\n yokr = 0\n if yokr == 0:\n WRGn(Lx35)\n elif yokr == 1:\n cl2t(Lx35)\n elif yokr == 2:\n gy_V(Lx35)\n elif yokr == 3:\n LatU(Lx35)\n elif yokr == 4:\n dqKs(Lx35)\n else:\n iUV... | [
"0.71094",
"0.68858737",
"0.6837561",
"0.64810765",
"0.6364784",
"0.619279",
"0.61292785",
"0.6052236",
"0.6003865",
"0.60003",
"0.59984756",
"0.5936744",
"0.5886909",
"0.58779913",
"0.58752",
"0.58748037",
"0.584617",
"0.58280873",
"0.58273613",
"0.58146113",
"0.5792828",
... | 0.75429916 | 0 |
Decrement point Choose a point at random and move it down the list. | def o0DT(Lx35, d6pt):
X5vR = tuKI.randint(1, max(0, len(Lx35[d6pt][2]) - 1))
yokr = tuKI.randint(0, 2)
if yokr == 0:
V1u6 = X5vR - 1
elif yokr == 1:
V1u6 = tuKI.randint(0, X5vR)
else:
V1u6 = 0
ycBG = Lx35[d6pt][2][X5vR]
Lx35[d6pt][2][X5vR] = Lx35[d6pt][2][V1u6]
Lx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BZN_(YKHO):\n if tuKI.random() < 0.5:\n YKHO.y = (YKHO.y + 1) % 100\n else:\n YKHO.y = (YKHO.y - 1) % 100\n if tuKI.random() < 0.5:\n YKHO.x = (YKHO.x + 1) % 100\n else:\n YKHO.x = (YKHO.x - 1) % 100",
"def BZN_(YKHO):\n if YKHO._z >= 75:\n jzdc = tuKI.random... | [
"0.63784575",
"0.63140285",
"0.6232528",
"0.620877",
"0.61166966",
"0.6031018",
"0.5980155",
"0.5971945",
"0.5944956",
"0.5941785",
"0.59283733",
"0.59094703",
"0.5893862",
"0.58891445",
"0.5831326",
"0.58275235",
"0.58086455",
"0.5803677",
"0.5783991",
"0.57765067",
"0.57286... | 0.73261166 | 0 |
Reference to the stored application handler hub instance. Returns `glue.core.Hub` The internal ``Hub`` instance for the application. | def Kb4M(YKHO):
return YKHO._application_handler.data_collection.hub | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kb4M(YKHO) -> P8_b:\n return YKHO.platform_common.hub",
"def Wbr1():\n DzbE = N2CZ.Hub\n if DzbE is None:\n DzbE = N2CZ.Hub = Kd_2\n return DzbE",
"def Acli(YKHO):\n return YKHO._hubble",
"def Kb4M(YKHO) -> str:\n return YKHO._db_data.hub",
"def H46p():\n return N2CZ.hub",
... | [
"0.6844369",
"0.65937203",
"0.6418254",
"0.64054644",
"0.6383628",
"0.62375075",
"0.6179945",
"0.58709204",
"0.57260436",
"0.5712981",
"0.56110317",
"0.5432539",
"0.54244554",
"0.5381225",
"0.5363423",
"0.53575784",
"0.53285116",
"0.53079474",
"0.5302257",
"0.5299189",
"0.528... | 0.77686507 | 0 |
Reference to the stored data collection instance, used to maintain the the data objects that been loaded into the application this session. Returns `glue.core.DataCollection` The ``DataCollection`` instance for this application session. | def ZmaI(YKHO):
return YKHO._application_handler.data_collection | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xUwc(YKHO):\n return YKHO._collection",
"def g8zZ(YKHO) -> ImMB:\n return YKHO.anki.Collection(YKHO.db_location, log=True)",
"def xUwc(Emd4):\n if not Emd4.__collection__:\n Emd4.__collection__ = fqu7.set_collection(Emd4.__collectionname__)\n return Emd4.__collection__",
"def jth9(YKHO... | [
"0.6517237",
"0.63170373",
"0.6297143",
"0.62534904",
"0.6187596",
"0.6077068",
"0.60538465",
"0.6033493",
"0.59763515",
"0.5964674",
"0.59622073",
"0.59612966",
"0.59549165",
"0.5820513",
"0.57710814",
"0.57635427",
"0.56965595",
"0.562019",
"0.5590878",
"0.55457205",
"0.552... | 0.7464061 | 0 |
Return a `~glue_jupyter.bqplot.common.BqplotBaseView` viewer instance. This is not an ``IPyWidget``. This is stored here because the state of the viewer and data methods that allow add/removing data to the viewer exist in a wrapper around the core ``IPyWidget``, which is needed to interact with the data rendered within... | def N4ce(YKHO, mPJA):
return YKHO._viewer_by_reference(mPJA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N4ce(YKHO, Gwav):\n try:\n return YKHO.viewers[Gwav]\n except KeyError:\n pass\n Fo4j = jaNI(YKHO.logger)\n Fo4j.enable_autocuts('on')\n Fo4j.set_autocut_params('zscale')\n Fo4j.enable_autozoom('on')\n Fo4j.set_zoom_algorithm('rate')\n Fo4j.set_zoomrate(1.4)\n Fo4j.show... | [
"0.6201998",
"0.6027048",
"0.5955231",
"0.5684626",
"0.5668301",
"0.5553026",
"0.55480707",
"0.5508652",
"0.54964983",
"0.5488692",
"0.5456012",
"0.5440536",
"0.5426284",
"0.54038316",
"0.5401872",
"0.5393912",
"0.5284073",
"0.5221294",
"0.52079785",
"0.51587325",
"0.5158485"... | 0.5737619 | 3 |
Sets the plot axes labels to be the units of the data to be loaded. | def EuQ6(YKHO, nPrm, b_T2):
Fo4j = YKHO._viewer_by_id(b_T2)
B950 = nPrm.spectral_axis.unit.physical_type.title()
ZUcP = nPrm.flux.unit.physical_type.title()
if nPrm.spectral_axis.unit.is_equivalent(P6bq.m):
B950 = 'Wavelength'
elif nPrm.spectral_axis.unit.is_equivalent(P6bq.pixel):
B... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J7Ob():\n QrM1.xlabel('Time (s)')\n QrM1.ylabel('Temperature (F)')\n QrM1.title('Temperature Time Series')",
"def E1aV(YKHO):\n if 1 <= YKHO.selected_data <= 2:\n YKHO.plot_select.setLabel('left', 'P (kPa)')\n YKHO.plot_select.setLabel('bottom', 't', 's')\n YKHO.plot_zoom.set... | [
"0.7401984",
"0.7270071",
"0.7244804",
"0.71676916",
"0.71547055",
"0.6971593",
"0.69226855",
"0.685886",
"0.6846964",
"0.67511654",
"0.66938823",
"0.6624968",
"0.65828294",
"0.6566672",
"0.6536452",
"0.64586335",
"0.6407508",
"0.6403295",
"0.6401583",
"0.635184",
"0.62365395... | 0.79337114 | 0 |
Retrieve the data item given the Glue ``DataCollection`` data label. | def Efnj(YKHO, UXqs):
for FTUV in YKHO.state.data_items:
if FTUV['name'] == UXqs:
return FTUV['id'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HBAG(YKHO, UXqs):\n or8S = YKHO.labels.index(UXqs)\n ZfUD = YKHO[or8S][0]\n return ZfUD",
"def cYkd(YKHO, UXqs):\n try:\n return YKHO._data[UXqs]\n except KeyError:\n try:\n Jyyj = fhm8[UXqs]\n except KeyError:\n return None\n else:\n ... | [
"0.71659845",
"0.66788447",
"0.64941347",
"0.63662076",
"0.6309209",
"0.628625",
"0.6263994",
"0.6184752",
"0.61751646",
"0.6117431",
"0.6086813",
"0.6042351",
"0.6021907",
"0.6012093",
"0.60106826",
"0.60106826",
"0.60106826",
"0.6006878",
"0.59989995",
"0.5995493",
"0.59756... | 0.66968685 | 1 |
Filter out short and stopword tokens for clustering. | def PxeQ(s2mk):
WrFl = []
for eOtH in s2mk:
if len(eOtH) > 2 and eOtH not in vDyF:
WrFl.append(eOtH)
else:
continue
return WrFl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PxeQ(YKHO, s2mk):\n iku2 = [yzQ0.lower() for yzQ0 in s2mk if len(yzQ0) > YKHO.MIN_WORD_LENGTH and yzQ0.isalpha() and (yzQ0.lower() not in YKHO.stopwords)]\n return iku2",
"async def wordfilter(YKHO, OaeV):\n pass",
"def X4F1(YKHO):\n b1nX = []\n for FUEq in YKHO.lemma_tokens:\n s2mk =... | [
"0.7497983",
"0.650764",
"0.64179766",
"0.63375425",
"0.63212675",
"0.6321185",
"0.63017374",
"0.62763894",
"0.6239774",
"0.61798644",
"0.61528003",
"0.61392766",
"0.6115985",
"0.6067838",
"0.6055764",
"0.6025008",
"0.6010469",
"0.6004695",
"0.5987277",
"0.59814066",
"0.59715... | 0.68190277 | 1 |
Picks a random color R,G or B | def pph3():
XEpb = [255, 0, 0]
tuKI.shuffle(XEpb)
return tuple(XEpb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xt3l():\n Mkmy = ajWY(0, 255)\n Oa1e = ajWY(0, 255)\n Fg_i = ajWY(0, 255)\n return [Mkmy, Oa1e, Fg_i]",
"def MP1f():\n Mkmy = tuKI.randint(0, 255)\n Oa1e = tuKI.randint(0, 255)\n Fg_i = tuKI.randint(0, 255)\n return (Mkmy, Oa1e, Fg_i)",
"def yTL5():\n return (ajWY(0, 255), ajWY(0... | [
"0.83104855",
"0.82600963",
"0.8135276",
"0.8089616",
"0.8087748",
"0.8077425",
"0.8057069",
"0.7987774",
"0.78941417",
"0.7893156",
"0.7779068",
"0.7702594",
"0.7514886",
"0.74942607",
"0.7481826",
"0.7411472",
"0.73857653",
"0.7366962",
"0.7365365",
"0.7336715",
"0.7306373"... | 0.8278991 | 1 |
Limits magnitude of vector2 | def qoqK(jlSq, max):
Ty9i = jth9.deepcopy(jlSq)
if Ty9i.length() > max:
Ty9i.scale_to_length(max)
return Ty9i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(iArr):\n return epAf.sqrt(Lzxs(iArr))",
"def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))",
"def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))",
"def iLTt(J1b4, CYjz=None):\n if CYjz is None:\n CYjz = oyIN.zeros(oyIN.shape(J1b4))\n if len(oyIN.shape... | [
"0.66841894",
"0.63870865",
"0.63861686",
"0.6385587",
"0.63286835",
"0.6249266",
"0.61933464",
"0.61672807",
"0.6128961",
"0.60936856",
"0.60586774",
"0.6058216",
"0.6047002",
"0.59680426",
"0.59630466",
"0.59459984",
"0.5913757",
"0.5899458",
"0.58974916",
"0.58435106",
"0.... | 0.54466784 | 56 |
View function for Home Page. | def C_QL():
return TvZl('coursePage.html', courseName='Welcome', Courses=Ecr1, blank=1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'home.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def vja_(QePW):\n return _1tc(QePW, 'ez_main/home_page.html')",
"def kZiy()... | [
"0.85985065",
"0.85185015",
"0.83027583",
"0.83000445",
"0.82764816",
"0.82706845",
"0.826092",
"0.8236431",
"0.82290536",
"0.8208599",
"0.8207083",
"0.8207083",
"0.8207083",
"0.8207083",
"0.8207083",
"0.8207083",
"0.8207083",
"0.8207083",
"0.8207083",
"0.8207083",
"0.8207083... | 0.0 | -1 |
Sets the payor_id of this PayorV1. | def zhQ4(YKHO, zhQ4):
YKHO._payor_id = zhQ4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aXtn(YKHO, aXtn):\n YKHO._payer_wallet_id = aXtn",
"def dYNy(YKHO, dYNy):\n if dYNy is None:\n raise ValueError('Invalid value for `payor_name`, must not be `None`')\n YKHO._payor_name = dYNy",
"def q0JL(YKHO, q0JL):\n YKHO._payment_id = q0JL",
"def N8op(YKHO, N8op):\n YKHO._payee_w... | [
"0.63355136",
"0.6201651",
"0.61329395",
"0.59394777",
"0.59336877",
"0.570057",
"0.5573957",
"0.55196893",
"0.55196893",
"0.54524994",
"0.52524555",
"0.5232599",
"0.5218464",
"0.5215905",
"0.51985943",
"0.5160082",
"0.5157064",
"0.5107751",
"0.51050353",
"0.5081833",
"0.5081... | 0.84491444 | 0 |
Sets the payor_name of this PayorV1. | def dYNy(YKHO, dYNy):
if dYNy is None:
raise ValueError('Invalid value for `payor_name`, must not be `None`')
YKHO._payor_name = dYNy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y1r7(YKHO, y1r7):\n YKHO._payee_name = y1r7",
"def I0TF(YKHO, m5SZ):\n YKHO.options['policyname'] = m5SZ",
"def I0TF(YKHO, m5SZ):\n YKHO.options['policyname'] = m5SZ",
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def WZrJ(YKHO, FCtA):\n YKHO.name = FCtA",
"def zhQ4(YKHO, zhQ4):\n Y... | [
"0.6842898",
"0.6199264",
"0.61720127",
"0.6089483",
"0.6075576",
"0.607368",
"0.6063098",
"0.60554343",
"0.60235476",
"0.60235476",
"0.6022743",
"0.60094285",
"0.60094285",
"0.6002755",
"0.6002755",
"0.6002755",
"0.6002755",
"0.6002755",
"0.5992705",
"0.59337103",
"0.5933710... | 0.8310435 | 0 |
Sets the funding_account_routing_number of this PayorV1. | def yYUn(YKHO, yYUn):
YKHO._funding_account_routing_number = yYUn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FTpm(YKHO, FTpm):\n YKHO._funding_account_account_number = FTpm",
"def lb7m(YKHO, lb7m):\n YKHO._account_number = lb7m",
"def Yjwf(YKHO, Yjwf):\n YKHO._business_phone_number = Yjwf",
"def OnKS(YKHO, OnKS):\n YKHO._funding_account_account_name = OnKS",
"def _Skw(YKHO, _Skw: str):\n YKHO._... | [
"0.6880107",
"0.5692706",
"0.559265",
"0.54221827",
"0.53995097",
"0.53400546",
"0.51918113",
"0.49915436",
"0.49777344",
"0.48777074",
"0.4852884",
"0.48452345",
"0.48309794",
"0.48295087",
"0.48261392",
"0.48261392",
"0.48261392",
"0.48261392",
"0.48200414",
"0.48077908",
"... | 0.8870168 | 0 |
Sets the funding_account_account_number of this PayorV1. | def FTpm(YKHO, FTpm):
YKHO._funding_account_account_number = FTpm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OnKS(YKHO, OnKS):\n YKHO._funding_account_account_name = OnKS",
"def lb7m(YKHO, lb7m):\n YKHO._account_number = lb7m",
"def yYUn(YKHO, yYUn):\n YKHO._funding_account_routing_number = yYUn",
"def UY7e(YKHO, UY7e):\n YKHO._account_amount = UY7e",
"def E6TK(YKHO, E6TK):\n if YKHO.local_vars... | [
"0.75032413",
"0.71144485",
"0.67067826",
"0.6625295",
"0.6614265",
"0.64627105",
"0.62555176",
"0.60974365",
"0.60974365",
"0.6025871",
"0.58473986",
"0.58305347",
"0.5771254",
"0.5722951",
"0.56920105",
"0.56828403",
"0.5615841",
"0.5615841",
"0.5615841",
"0.5615841",
"0.56... | 0.87810177 | 0 |
Sets the funding_account_account_name of this PayorV1. | def OnKS(YKHO, OnKS):
YKHO._funding_account_account_name = OnKS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n8Ek(YKHO, n8Ek):\n YKHO._account_name = n8Ek",
"def n8Ek(YKHO, n8Ek):\n YKHO._account_name = n8Ek",
"def n8Ek(YKHO, n8Ek):\n if n8Ek is None:\n raise ValueError('Invalid value for `account_name`, must not be `None`')\n YKHO._account_name = n8Ek",
"def FTpm(YKHO, FTpm):\n YKHO._fund... | [
"0.73881924",
"0.73881924",
"0.71534306",
"0.69642144",
"0.63179857",
"0.6275674",
"0.60105515",
"0.5957612",
"0.5901144",
"0.5821598",
"0.5814455",
"0.5794503",
"0.5764635",
"0.57026356",
"0.560097",
"0.54965055",
"0.54769254",
"0.5460772",
"0.5460772",
"0.5460772",
"0.54607... | 0.878634 | 0 |
Sets the manual_lockout of this PayorV1. | def Df7O(YKHO, Df7O):
YKHO._manual_lockout = Df7O | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MYJ8(YKHO, h7D2):\n YKHO.send_command(cmd=_BVY.CMD_UNLOCK, data=BlNT.pack('<I', h7D2))\n YKHO.recv_reply()",
"def KSbH(YKHO):\n YKHO._locked = False",
"def KPDQ():\n global timeout_before_override\n eEQk = sowp\n sowp = 0\n try:\n _6CZ(min_wait=0, max_wait=0.001)\n cj19()... | [
"0.5701152",
"0.56926244",
"0.5505024",
"0.54779047",
"0.5424242",
"0.53772455",
"0.53644836",
"0.52131414",
"0.5207312",
"0.5173328",
"0.5153729",
"0.5128545",
"0.51212317",
"0.50903",
"0.50903",
"0.507624",
"0.50645363",
"0.5045414",
"0.5038615",
"0.49915093",
"0.49891204",... | 0.8568033 | 0 |
Sets the payee_grace_period_processing_enabled of this PayorV1. | def sEry(YKHO, sEry):
YKHO._payee_grace_period_processing_enabled = sEry | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HYT2(YKHO, HYT2):\n YKHO._payee_grace_period_days = HYT2",
"def Wmh4(YKHO, aNd9=None):\n pass",
"def aNd9(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'grace_period')",
"def aNd9(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'grace_period')",
"def aNd9(YKHO) -> h8nf[qe4... | [
"0.66259366",
"0.48222676",
"0.48089108",
"0.48089108",
"0.48089108",
"0.48089108",
"0.4743078",
"0.47321197",
"0.47321197",
"0.4706583",
"0.45939893",
"0.45867842",
"0.45271042",
"0.44113725",
"0.44113725",
"0.4318995",
"0.42700022",
"0.4205203",
"0.40889862",
"0.4083876",
"... | 0.89865565 | 0 |
Sets the payee_grace_period_days of this PayorV1. | def HYT2(YKHO, HYT2):
YKHO._payee_grace_period_days = HYT2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sEry(YKHO, sEry):\n YKHO._payee_grace_period_processing_enabled = sEry",
"def kxa8(VXBI, CBIr):\n jXCX = OE_C('direct').get_course(VXBI)\n del jXCX.graceperiod\n OE_C('direct').update_item(jXCX, CBIr.id)",
"def aNd9(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'grace_period')",
... | [
"0.58535814",
"0.4963054",
"0.49036047",
"0.49036047",
"0.49036047",
"0.49036047",
"0.48728707",
"0.4862558",
"0.4862558",
"0.4747155",
"0.47440302",
"0.47440302",
"0.4737978",
"0.45983976",
"0.45415044",
"0.45279464",
"0.441735",
"0.43994328",
"0.43237093",
"0.4294724",
"0.4... | 0.89652497 | 0 |
Sets the reminder_emails_opt_out of this PayorV1. | def jGQU(YKHO, jGQU):
YKHO._reminder_emails_opt_out = jGQU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oc2o(YKHO, oc2o):\n YKHO._disable_emails = oc2o",
"def dqX3(QePW):\n CBIr = QePW.user\n S7Jr = QePW.POST.get('course_id')\n VXBI = FS5M.from_deprecated_string(S7Jr)\n ahAk = QePW.POST.get('receive_emails')\n if ahAk:\n ubBj = pW1b.objects.filter(user=CBIr, course_id=VXBI)\n if... | [
"0.5807515",
"0.55776596",
"0.53989935",
"0.5275582",
"0.5179341",
"0.5179341",
"0.51339",
"0.51292616",
"0.5036423",
"0.4972134",
"0.4972134",
"0.48938823",
"0.48462263",
"0.47982708",
"0.47901762",
"0.46857128",
"0.46672958",
"0.46612996",
"0.46229532",
"0.46209982",
"0.459... | 0.9000681 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, NWFq):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Calculates Mean Absolute Error (MAE). | def T0ae(LVAh: np.ndarray, uN02: np.ndarray) -> float:
return oyIN.mean(oyIN.abs(LVAh - uN02)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UkBK(tTpl):\n return oyIN.mean(oyIN.abs(tTpl))",
"def fpHa(tTpl):\n return oyIN.mean(oyIN.abs(tTpl))",
"def fth7(tTpl):\n return oyIN.mean(oyIN.abs(tTpl))",
"def Emt7(a1PO, LVAh):\n return W4jA(a1PO, LVAh)",
"def qa91(Y8eF, aMgO):\n nWwG = W4jA(Y8eF, aMgO)\n return nWwG",
"def Emt7(... | [
"0.8718821",
"0.85836166",
"0.8438701",
"0.77336985",
"0.7544971",
"0.75055325",
"0.72205764",
"0.7173563",
"0.71522987",
"0.7151292",
"0.7019276",
"0.69663084",
"0.68051916",
"0.67219645",
"0.6649685",
"0.6609578",
"0.6609578",
"0.6591694",
"0.6586305",
"0.65788233",
"0.6564... | 0.72506326 | 6 |
Calculates Mean Absolute Percent Error (MAPE). | def hgux(LVAh: np.ndarray, uN02: np.ndarray) -> float:
hGFW = 100 * (LVAh - uN02) / LVAh
return oyIN.mean(oyIN.abs(hGFW)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aVPQ(n5sN: np.ndarray, PjQx: np.ndarray):\n return oyIN.mean(oyIN.abs(LwJx(n5sN, PjQx)))",
"def fpHa(tTpl):\n return oyIN.mean(oyIN.abs(tTpl))",
"def UkBK(tTpl):\n return oyIN.mean(oyIN.abs(tTpl))",
"def fth7(tTpl):\n return oyIN.mean(oyIN.abs(tTpl))",
"def SkyM(Y8eF, aMgO):\n if len(Y8e... | [
"0.75342137",
"0.74545497",
"0.7414745",
"0.7323534",
"0.70200163",
"0.6871825",
"0.6868987",
"0.6786182",
"0.6751182",
"0.67390716",
"0.6738578",
"0.67343223",
"0.6719688",
"0.6661018",
"0.6657157",
"0.66214347",
"0.6614511",
"0.6569917",
"0.655968",
"0.65446645",
"0.6527636... | 0.72959256 | 4 |
Returns string containing the organization of the issuer or subject | def PI_r(YKHO):
return YKHO.reference[Issx][NNfF] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fXnP(YKHO):\n return f'psc:org:{YKHO.credentials.org_key}'",
"def ejLf(YKHO):\n if YKHO.organization is not None:\n return YKHO.organization.name\n return ''",
"def s5oa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'issuer')",
"def wbiw(YKHO) -> h8nf[qe4Y.Input[str]]:\n return... | [
"0.7208062",
"0.7111981",
"0.7076489",
"0.70501924",
"0.6814553",
"0.6784478",
"0.67168474",
"0.6688398",
"0.6680084",
"0.6613211",
"0.6582595",
"0.65641916",
"0.6516042",
"0.6516042",
"0.65090615",
"0.64037406",
"0.6385013",
"0.6345938",
"0.6342618",
"0.63391626",
"0.6324698... | 0.7063677 | 3 |
Returns string containing the email of the issuer or subject | def RC0X(YKHO):
return YKHO.reference[XMvj][NNfF] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def s5oa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'issuer')",
"def s5oa(YKHO) -> str:\n return YKHO._issu... | [
"0.73019487",
"0.73019487",
"0.73019487",
"0.72025603",
"0.71583205",
"0.71215004",
"0.7088522",
"0.70780873",
"0.70780873",
"0.70780873",
"0.70780873",
"0.7045777",
"0.6983743",
"0.68862295",
"0.6874981",
"0.67854977",
"0.67769545",
"0.67604405",
"0.6751657",
"0.6750814",
"0... | 0.68041015 | 15 |
Function to softmax output values. | def N93T(AQU7):
Aofo = oyIN.zeros(shape=[len(AQU7)], dtype=oyIN.float32)
r8hN = max(AQU7)
di96 = 0.0
for G1Hx in range(len(AQU7)):
di96 += epAf.exp(AQU7[G1Hx] - r8hN)
for G1Hx in range(len(Aofo)):
Aofo[G1Hx] = epAf.exp(AQU7[G1Hx] - r8hN) / di96
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n \"\"\"\"\"\"\n return kLQb(WKvO) / sum(kLQb(WKvO), axis=0)",
"def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum()",
"def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum(axis=0)",
"def N93T(hkxX):\n nwEM = oyI... | [
"0.83309054",
"0.8317747",
"0.829802",
"0.82978904",
"0.82652503",
"0.8221267",
"0.8221267",
"0.8218964",
"0.82160187",
"0.82160187",
"0.8205934",
"0.8205934",
"0.82025796",
"0.8198203",
"0.81870097",
"0.8172021",
"0.8172021",
"0.8172021",
"0.8172021",
"0.8172021",
"0.8172021... | 0.0 | -1 |
Binary Search Tree This is the main class for the binary search tree. Every node is initialized with a value (required as parameter) and with left and right nodes as None. | def FIMM(YKHO, BWXx):
YKHO.value = BWXx
YKHO.left = None
YKHO.right = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, BWXx: object) -> None:\n YKHO.value = BWXx\n YKHO.left = None\n YKHO.right = None",
"def FIMM(YKHO, BWXx: object) -> None:\n YKHO.value = BWXx\n YKHO.left = None\n YKHO.right = None",
"def FIMM(YKHO, wEf2=None):\n YKHO.val = wEf2\n YKHO.parent = None\n if wEf2 is not N... | [
"0.7826072",
"0.7826072",
"0.7747387",
"0.7655006",
"0.7349176",
"0.73194087",
"0.72852015",
"0.7281503",
"0.72293556",
"0.722295",
"0.722295",
"0.7137702",
"0.711475",
"0.710441",
"0.7087449",
"0.70194036",
"0.696607",
"0.69336766",
"0.6929373",
"0.69103885",
"0.6905661",
... | 0.77583057 | 3 |
The name of the process, used mainly for debugging. | def mWFP(YKHO):
return YKHO.__name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UNCy(YKHO):\n return YKHO._args.t",
"def mWFP(YKHO):\n if YKHO.pid == 0:\n return 'System Idle Process'\n if YKHO.pid == 4:\n return 'System'\n return Hy7s.path.basename(YKHO.exe())",
"def WbtO(YKHO):\n return str(YKHO.executable.name)",
"def eImQ():\n raise NotImplemented... | [
"0.8568027",
"0.7876318",
"0.7381887",
"0.7363172",
"0.7359385",
"0.7306131",
"0.720444",
"0.7176244",
"0.71734023",
"0.70283014",
"0.68915474",
"0.68846655",
"0.6834126",
"0.67779416",
"0.6772353",
"0.6736372",
"0.67317796",
"0.6730247",
"0.6730247",
"0.6726631",
"0.6711542"... | 0.0 | -1 |
The time when the process was introduced / created. | def p20g(YKHO) -> int:
return YKHO.__introduction_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QT9s(YKHO) -> str:\n return qe4Y.get(YKHO, 'time_created')",
"def QT9s(YKHO) -> str:\n return qe4Y.get(YKHO, 'time_created')",
"def QT9s(YKHO) -> str:\n return qe4Y.get(YKHO, 'time_created')",
"def x7vo(YKHO):\n return YKHO._create_time",
"def x7vo(YKHO):\n return YKHO._create_time",
"... | [
"0.76302326",
"0.76302326",
"0.76302326",
"0.75405246",
"0.75405246",
"0.75405246",
"0.7483395",
"0.7483395",
"0.74617386",
"0.74617386",
"0.74617386",
"0.74617386",
"0.74617386",
"0.74617386",
"0.74617386",
"0.74617386",
"0.74617386",
"0.74617386",
"0.74617386",
"0.74617386",
... | 0.0 | -1 |
Returns the next known start time of the process that is later than the current time. | def OoPc(YKHO, vHj7):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kfAv(YKHO, vHj7):\n if YKHO.state in (ASOO.SLEEPING, ASOO.WAITING):\n if YKHO.suspended_until is not None and YKHO.suspended_until > vHj7:\n return YKHO.suspended_until\n else:\n return None\n else:\n return YKHO.get_next_known_start_time(vHj7)",
"def lAAs(YKH... | [
"0.71737796",
"0.65457976",
"0.6538598",
"0.650583",
"0.650583",
"0.63778317",
"0.6309486",
"0.62815076",
"0.6238292",
"0.6169901",
"0.6147242",
"0.6147242",
"0.6137489",
"0.61165",
"0.6112455",
"0.6112455",
"0.607195",
"0.60330987",
"0.6029764",
"0.60037893",
"0.5974186",
... | 0.73748016 | 0 |
Gets the id of this PipelineDefinition. | def id(YKHO) -> str:
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO) -> str:\n return YKHO._pipeline_definition.get('id')",
"def nsdK(YKHO) -> Nv1Q:\n return YKHO._pipeline_id",
"def nsdK(YKHO) -> Nv1Q:\n return YKHO._pipeline_id",
"def nsdK(YKHO):\n return YKHO._pipeline_id",
"def nsdK(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'pip... | [
"0.8302719",
"0.76591474",
"0.76591474",
"0.73328024",
"0.6987881",
"0.6767791",
"0.6655542",
"0.66166955",
"0.6569898",
"0.6569898",
"0.6569898",
"0.6569898",
"0.6569898",
"0.6569898",
"0.65418833",
"0.65126777",
"0.65126777",
"0.64920515",
"0.64920515",
"0.64920515",
"0.649... | 0.0 | -1 |
Sets the id of this PipelineDefinition. | def id(YKHO, id: str):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def V_9M(YKHO, hbFX=None):\n if hbFX is None:\n YKHO.id = id(YKHO)\n else:\n YKHO.id = hbFX",
"def ns... | [
"0.7094438",
"0.70793575",
"0.70047617",
"0.68297213",
"0.679057",
"0.6693951",
"0.6693951",
"0.66840315",
"0.6668349",
"0.6667876",
"0.6667876",
"0.6667876",
"0.6590996",
"0.6590996",
"0.6590996",
"0.6590996",
"0.6546957",
"0.65249383",
"0.65249383",
"0.65249383",
"0.6524938... | 0.6406037 | 46 |
Gets the job of this PipelineDefinition. | def oCfW(YKHO) -> str:
return YKHO._job | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oCfW(YKHO):\n return YKHO.batch[YKHO.job_id]",
"def oCfW(YKHO):\n if YKHO.current_bead is None:\n return None\n if YKHO.jobs is None:\n LsWI().notify('Can not find jobs.', SUbQ.ERROR)\n return None\n BAUz = None\n for oCfW in YKHO.jobs.configurations:\n if oCfW.job_... | [
"0.79181683",
"0.78297883",
"0.7652419",
"0.7131362",
"0.710709",
"0.7100101",
"0.7019288",
"0.6962839",
"0.6886126",
"0.6872765",
"0.68580294",
"0.68414134",
"0.6748054",
"0.6680782",
"0.66614974",
"0.664935",
"0.6594653",
"0.65943813",
"0.6571922",
"0.653828",
"0.6503799",
... | 0.7187537 | 3 |
Gets the version of this PipelineDefinition. | def DpZH(YKHO) -> str:
return YKHO._version | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ASnW(YKHO) -> str:\n return YKHO._pipeline_definition.get('version')",
"def kaPv(YKHO):\n return YKHO._version",
"def kaPv(YKHO):\n return YKHO._version",
"def kaPv(YKHO):\n return YKHO.version",
"def kaPv(YKHO):\n return DpZH.__version__",
"def kaPv(YKHO):\n return DpZH.__version__... | [
"0.8007929",
"0.7582612",
"0.7582612",
"0.75405353",
"0.74795246",
"0.74795246",
"0.743001",
"0.74150413",
"0.7414735",
"0.7406148",
"0.73891497",
"0.73891497",
"0.73891497",
"0.73891497",
"0.73891497",
"0.73891497",
"0.73891497",
"0.73891497",
"0.73891497",
"0.73891497",
"0.... | 0.70234734 | 39 |
Gets the name of this PipelineDefinition. | def mWFP(YKHO) -> str:
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jBkE(YKHO) -> laHg.Optional[str]:\n return YKHO._values.get('pipeline_name')",
"def UpFq(YKHO) -> str:\n return YKHO._values.get('pipeline_stack_name')",
"def clJg(YKHO):\n return YKHO._unique_pipeline_name",
"def mWFP(YKHO):\n return YKHO.properties.get('name', None)",
"def Q0HP(YKHO) -> s... | [
"0.73616374",
"0.71854097",
"0.71008766",
"0.7092869",
"0.7079408",
"0.707929",
"0.70766884",
"0.70766884",
"0.70766884",
"0.70702976",
"0.7064148",
"0.7064148",
"0.7064148",
"0.70420253",
"0.70420253",
"0.70420253",
"0.70420253",
"0.70420253",
"0.70420253",
"0.70420253",
"0.... | 0.7014503 | 61 |
Sets the name of this PipelineDefinition. | def mWFP(YKHO, mWFP: str):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def WZrJ(YKHO, mWFP: str):\n YKHO._name = mWFP",
"def WZrJ(YKHO, XWXe):\n YKHO.name = XWXe",
"def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP",
"def S55X... | [
"0.74731845",
"0.74731845",
"0.74434304",
"0.74313897",
"0.7371164",
"0.7362817",
"0.7355426",
"0.73513126",
"0.73513126",
"0.73513126",
"0.73513126",
"0.73513126",
"0.73307556",
"0.7281537",
"0.7275859",
"0.72383726",
"0.72216463",
"0.72059166",
"0.72059166",
"0.71684945",
"... | 0.6973241 | 41 |
Gets the status of this PipelineDefinition. | def jGRS(YKHO) -> str:
return YKHO._status | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QtQ8(YKHO):\n return YKHO.__status",
"def QtQ8(YKHO):\n return YKHO._status",
"def jGRS(YKHO) -> qe4Y.Output['outputs.JobStatus']:\n return qe4Y.get(YKHO, 'status')",
"def VLTN(YKHO):\n return YKHO._status",
"def jGRS(YKHO):\n return YKHO._status",
"def jGRS(YKHO):\n return YKHO._st... | [
"0.7325867",
"0.7319872",
"0.7296943",
"0.72174495",
"0.717716",
"0.717716",
"0.717716",
"0.7138564",
"0.7138564",
"0.7138564",
"0.7112205",
"0.7112205",
"0.7112205",
"0.7112205",
"0.7112205",
"0.7112205",
"0.7112205",
"0.7112205",
"0.7112205",
"0.7112205",
"0.7112205",
"0.... | 0.0 | -1 |
Sets the status of this PipelineDefinition. | def jGRS(YKHO, jGRS: str):
YKHO._status = jGRS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w8Lw(YKHO, jGRS: JobStatus, nPIK: Optional['Pipeline']=None) -> None:\n YKHO._status = jGRS\n UzPC: 'Redis' = nPIK if nPIK is not None else YKHO.connection\n UzPC.hset(YKHO.key, 'status', YKHO._status)",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGR... | [
"0.72480935",
"0.7142644",
"0.7142644",
"0.7142644",
"0.711632",
"0.70518744",
"0.70065457",
"0.6820144",
"0.6791966",
"0.674742",
"0.67376614",
"0.67376614",
"0.67376614",
"0.67376614",
"0.67376614",
"0.67376614",
"0.67376614",
"0.67376614",
"0.67376614",
"0.67376614",
"0.67... | 0.65736616 | 42 |
Gets the message of this PipelineDefinition. | def Ol8d(YKHO) -> str:
return YKHO._message | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eair(YKHO):\n return YKHO._message",
"def Eair(YKHO):\n return YKHO.message",
"def Eair(YKHO):\n return YKHO.message",
"def S_Qd(YKHO):\n return YKHO.__message",
"def Ol8d(YKHO):\n return YKHO.__message",
"def Ol8d(YKHO):\n return YKHO.__message",
"def Ol8d(YKHO):\n return YKHO... | [
"0.77600425",
"0.7622223",
"0.7622223",
"0.761053",
"0.76061046",
"0.76061046",
"0.76061046",
"0.76061046",
"0.76061046",
"0.76061046",
"0.7592087",
"0.7576966",
"0.7484424",
"0.7484424",
"0.7484424",
"0.7484424",
"0.7484424",
"0.7463944",
"0.7463944",
"0.7463944",
"0.7456543... | 0.7161395 | 37 |
Sets the message of this PipelineDefinition. | def Ol8d(YKHO, Ol8d: str):
YKHO._message = Ol8d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IzQR(YKHO, BWXx):\n YKHO.__message = BWXx",
"def t_vE(YKHO, Ol8d):\n YKHO._message = Ol8d",
"def Ol8d(YKHO, Ol8d):\n YKHO._message = Ol8d",
"def Ol8d(YKHO, Ol8d):\n YKHO._message = Ol8d",
"def Ol8d(YKHO, Ol8d):\n YKHO._message = Ol8d",
"def Ol8d(YKHO, Ol8d):\n YKHO._message = Ol8d",... | [
"0.75298643",
"0.73980016",
"0.7096324",
"0.7096324",
"0.7037648",
"0.7037648",
"0.7037648",
"0.7037648",
"0.7037648",
"0.7037648",
"0.7037648",
"0.7037648",
"0.69550866",
"0.69488287",
"0.69288653",
"0.68697226",
"0.68198174",
"0.6714724",
"0.6638104",
"0.66079134",
"0.65752... | 0.6938177 | 14 |
Gets the completion_time of this PipelineDefinition. | def pARd(YKHO) -> qcWV:
return YKHO._completion_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pARd(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'completion_time')",
"def pARd(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'completion_time')",
"def wRmT(YKHO) -> float:\n return YKHO._last_completion_time - YKHO._start_time",
"def g9mP(YKHO):\n if not YKHO.completion... | [
"0.78471494",
"0.78471494",
"0.72959805",
"0.7145048",
"0.67873794",
"0.64880455",
"0.64852744",
"0.64364386",
"0.63926834",
"0.63926834",
"0.6317047",
"0.6298877",
"0.629586",
"0.62631494",
"0.6257636",
"0.62541485",
"0.6223915",
"0.6220111",
"0.62187344",
"0.62187344",
"0.6... | 0.820775 | 0 |
Sets the completion_time of this PipelineDefinition. | def pARd(YKHO, pARd: datetime):
YKHO._completion_time = pARd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pARd(YKHO) -> qcWV:\n return YKHO._completion_time",
"def SG2L(YKHO, SG2L):\n YKHO._finish_time = SG2L",
"def SG2L(YKHO, SG2L):\n YKHO._finish_time = SG2L",
"def SG2L(YKHO, SG2L):\n YKHO._finish_time = SG2L",
"def M43e(YKHO, M43e):\n YKHO._completion_date = M43e",
"def NiYD(YKHO, NiYD)... | [
"0.634808",
"0.63433826",
"0.63433826",
"0.63433826",
"0.61501217",
"0.5967187",
"0.59086436",
"0.5907479",
"0.5907479",
"0.5784306",
"0.57203007",
"0.56642324",
"0.5612889",
"0.5601048",
"0.5566239",
"0.5566239",
"0.5566239",
"0.5566239",
"0.5566239",
"0.55057436",
"0.549884... | 0.8397433 | 0 |
Returns reference start time of measurements | def JaTu(YKHO):
from datetime import datetime, timedelta
pLxe = datetime(2010, 1, 1, 0, 0, 0)
pLxe += timedelta(seconds=int(YKHO.fid['/PRODUCT/time'][0]))
return pLxe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rvsq(YKHO) -> float:\n try:\n return YKHO.times[0]\n except IndexError:\n return 0.0",
"def SWox(YKHO) -> float:\n ...",
"def SWox(YKHO):\n return Ybv7.GetAudioAccessorStartTime(YKHO.id)",
"def C9qt(YKHO):\n return YKHO.mintime",
"def SWox(YKHO):\n return YKHO.__start",
... | [
"0.75119007",
"0.74680257",
"0.7448813",
"0.72745",
"0.7237121",
"0.7215591",
"0.7210783",
"0.71771395",
"0.71344805",
"0.7118216",
"0.7091196",
"0.704252",
"0.70335746",
"0.7012827",
"0.7011436",
"0.7001905",
"0.69441384",
"0.69025576",
"0.69014984",
"0.690063",
"0.6889564",... | 0.6795699 | 38 |
Adds noise to the pointcloud. For every point n in the point cloud, we return a new point sampled from a gaussian centered in n and with isotropic covariance stddev. | def r5hI(AcNK, z2bo=0.01):
Aofo = AcNK
Aofo[0:2, :] = oyIN.random.normal(AcNK[0:2, :], z2bo)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dbA7(YKHO, AU8u, cDK5, igb0=None):\n if igb0 is not None:\n oyIN.random.seed(igb0)\n qbRK = YKHO.compute_posterior_parameters(AU8u)\n JBMS = qbRK['mean']\n SRYB = qbRK['cov']\n gGnb = oyIN.random.normal(JBMS[0], oyIN.sqrt(SRYB[0, 0]), cDK5)\n return gGnb",
"def yjo7(WKvO, M1Jx):\n ... | [
"0.7149916",
"0.6772249",
"0.6618812",
"0.65509987",
"0.6486856",
"0.63938916",
"0.6365274",
"0.6340059",
"0.63180757",
"0.6285348",
"0.6226938",
"0.62060875",
"0.6204843",
"0.61729354",
"0.61727405",
"0.6172375",
"0.61392367",
"0.6134273",
"0.61137295",
"0.6089325",
"0.60860... | 0.8075141 | 0 |
Checks whether the cached values for the given domain and language expired. Before you call this method, you have to ensure that there are cached values for the given domain and language. | def TDkg(YKHO, zrIJ, rQow):
return YKHO.is_outdated(YKHO.domain_cache[zrIJ][rQow]['update']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eJ_a(vC92, **B2fa):\n sjXb = {VxcF(WKvO): WKvO for WKvO in map(lambda WKvO: WKvO[0], gCuF.LANGUAGES)}\n for G1Hx, Ty9i in wyyA.get_many(sjXb.keys()).items():\n r6VR = sjXb[G1Hx]\n EQwo = pmUp._translation_load_times.get(r6VR)\n if (Ty9i and EQwo) and Ty9i > EQwo:\n pmUp.in... | [
"0.63667095",
"0.6303817",
"0.61651474",
"0.61516696",
"0.6111825",
"0.6071183",
"0.60683006",
"0.6063873",
"0.6060407",
"0.60112154",
"0.6009345",
"0.5994494",
"0.59919256",
"0.599043",
"0.5947974",
"0.58699137",
"0.586247",
"0.58600485",
"0.58584154",
"0.58516943",
"0.58473... | 0.72786856 | 0 |
Tests that when there are no control_points in the spline, a ValueError is raised. | def OvBs() -> None:
with trZe.raises(ValueError):
xqU7(oyIN.array([])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ELYM(YKHO):\n YKHO.assertRaises(ValueError, y7UD.Spline.__init__, y7UD.Spline, oyIN.array([-0.1, 0.5, 0.9]), oyIN.array([1, 2, 3, 4]))",
"def Rsgz(YKHO):\n YKHO.assertRaises(ValueError, y7UD.Spline.__init__, y7UD.Spline, oyIN.array([0.1, 0.5, 0.4]), oyIN.array([1, 2, 3, 4]))",
"def VfD1(YKHO):\n Y... | [
"0.6862795",
"0.685714",
"0.67331636",
"0.63119876",
"0.6241843",
"0.6241201",
"0.6185283",
"0.60802424",
"0.6068685",
"0.6026746",
"0.5969342",
"0.59453547",
"0.5925668",
"0.5906497",
"0.59017175",
"0.5856611",
"0.5848129",
"0.58122706",
"0.5809007",
"0.5786393",
"0.5759765"... | 0.7210145 | 0 |
Tests that a nonunit length bspline has its parameter go up to the number of segments of the bspline. | def BQkT() -> None:
S9Fp = oyIN.array([(0.0, 0.0, 0.0), (2.0, 0.0, 0.0), (2.0, 1.0, 0.0), (2.0, 1.0, 1.0)])
AdZ9 = xqU7(S9Fp)
nmwe = oyIN.array([[0.0, 0.0, 0.0], [0.459491, 0.0196759, 0.000578704], [0.842593, 0.0740741, 0.00462963], [1.15625, 0.15625, 0.015625], [1.40741, 0.259259, 0.037037], [1.60301, 0.37... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dfXo() -> None:\n S9Fp = oyIN.array([(0.0, 0.0, 0.0), (-1 / 12 * (2 + 2 ** 0.5), 1 / 12 * (2 - 2 ** 0.5), 1 / 6), (-1.0 / 3.0, 1.0 / 3.0, 0.0), (-1.0 / 6.0, 1.0 / 2.0, 1.0 / (3.0 * 2 ** 0.5))])\n AdZ9 = xqU7(S9Fp)\n nmwe = oyIN.array([[0.0, 0.0, 0.0], [-0.0662307, 0.0169097, 0.035148], [-0.122711, 0.0... | [
"0.62120944",
"0.6207528",
"0.61624837",
"0.6050851",
"0.5997233",
"0.5976955",
"0.594966",
"0.59452546",
"0.59130085",
"0.5906222",
"0.588441",
"0.5802465",
"0.57929",
"0.57342",
"0.5701176",
"0.5687711",
"0.5677765",
"0.5670487",
"0.56679994",
"0.56483513",
"0.5611913",
"... | 0.58786494 | 11 |
Tests that a nonunit length bspline has its parameter go up to the number of segments of the bspline. | def AIUf() -> None:
S9Fp = oyIN.array([(0.0, 0.0, 0.0), (2.0, 0.0, 0.0), (2.0, 1.0, 0.0), (2.0, 1.0, 1.0)])
AdZ9 = xqU7(S9Fp)
Q30r = oyIN.array([[6.0, 0.0, 0.0], [5.04167, 0.458333, 0.0208333], [4.16667, 0.833333, 0.0833333], [3.375, 1.125, 0.1875], [2.66667, 1.33333, 0.333333], [2.04167, 1.45833, 0.520833]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dfXo() -> None:\n S9Fp = oyIN.array([(0.0, 0.0, 0.0), (-1 / 12 * (2 + 2 ** 0.5), 1 / 12 * (2 - 2 ** 0.5), 1 / 6), (-1.0 / 3.0, 1.0 / 3.0, 0.0), (-1.0 / 6.0, 1.0 / 2.0, 1.0 / (3.0 * 2 ** 0.5))])\n AdZ9 = xqU7(S9Fp)\n nmwe = oyIN.array([[0.0, 0.0, 0.0], [-0.0662307, 0.0169097, 0.035148], [-0.122711, 0.0... | [
"0.62117255",
"0.62069565",
"0.6161795",
"0.6052216",
"0.59771967",
"0.5950327",
"0.59452647",
"0.5912312",
"0.5906749",
"0.5884653",
"0.58785313",
"0.5803312",
"0.57932514",
"0.57376856",
"0.5700694",
"0.56876546",
"0.56788284",
"0.5671832",
"0.56671816",
"0.56500226",
"0.56... | 0.59965396 | 4 |
Tests that a nonunit length bspline has its parameter go up to the number of segments of the bspline. | def xD2q() -> None:
S9Fp = oyIN.array([(0.0, 0.0, 0.0), (2.0, 0.0, 0.0), (2.0, 1.0, 0.0), (2.0, 1.0, 1.0)])
AdZ9 = xqU7(S9Fp)
QBd0 = oyIN.array([[-12.0, 6.0, 0.0], [-11.0, 5.0, 0.5], [-10.0, 4.0, 1.0], [-9.0, 3.0, 1.5], [-8.0, 2.0, 2.0], [-7.0, 1.0, 2.5], [-6.0, 0.0, 3.0], [-5.0, -1.0, 3.5], [-4.0, -2.0, 4.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dfXo() -> None:\n S9Fp = oyIN.array([(0.0, 0.0, 0.0), (-1 / 12 * (2 + 2 ** 0.5), 1 / 12 * (2 - 2 ** 0.5), 1 / 6), (-1.0 / 3.0, 1.0 / 3.0, 0.0), (-1.0 / 6.0, 1.0 / 2.0, 1.0 / (3.0 * 2 ** 0.5))])\n AdZ9 = xqU7(S9Fp)\n nmwe = oyIN.array([[0.0, 0.0, 0.0], [-0.0662307, 0.0169097, 0.035148], [-0.122711, 0.0... | [
"0.6211701",
"0.62072957",
"0.6162065",
"0.60521215",
"0.59963864",
"0.5975972",
"0.59495836",
"0.59446657",
"0.5905508",
"0.58851844",
"0.58775914",
"0.5802016",
"0.579172",
"0.5736016",
"0.5700935",
"0.5687125",
"0.5677384",
"0.5671923",
"0.56655496",
"0.5649768",
"0.561101... | 0.5912095 | 8 |
Tests that a nonunit length bspline has its parameter go up to the number of segments of the bspline. | def RqW4() -> None:
S9Fp = oyIN.array([(0.0, 0.0, 0.0), (2.0, 0.0, 0.0), (2.0, 1.0, 0.0), (2.0, 1.0, 1.0)])
AdZ9 = xqU7(S9Fp)
for k78t in oyIN.linspace(0.0, 3.0, num=13):
oyIN.testing.assert_allclose(AdZ9.third_derivative_at(k78t), [12.0, -12.0, 6.0], err_msg='Fails to find the third_derivative alon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dfXo() -> None:\n S9Fp = oyIN.array([(0.0, 0.0, 0.0), (-1 / 12 * (2 + 2 ** 0.5), 1 / 12 * (2 - 2 ** 0.5), 1 / 6), (-1.0 / 3.0, 1.0 / 3.0, 0.0), (-1.0 / 6.0, 1.0 / 2.0, 1.0 / (3.0 * 2 ** 0.5))])\n AdZ9 = xqU7(S9Fp)\n nmwe = oyIN.array([[0.0, 0.0, 0.0], [-0.0662307, 0.0169097, 0.035148], [-0.122711, 0.0... | [
"0.6212112",
"0.62080157",
"0.6162611",
"0.6051323",
"0.5996946",
"0.5976906",
"0.59503496",
"0.591238",
"0.5905873",
"0.5884315",
"0.58778006",
"0.5802442",
"0.5792494",
"0.57356286",
"0.57010245",
"0.568764",
"0.56780005",
"0.5670657",
"0.5666851",
"0.56486976",
"0.56121767... | 0.5944566 | 7 |
Creates a pandas DataFrame from the all_holdings list of dictionaries. Creates a returns stream and normalizes the equity curve to be percentagebased. Thus, initial account size is 1.0, as opposed to the absolute dollar amount. | def crOp(YKHO):
AdZ9 = rLdf.DataFrame(YKHO.all_holdings)
AdZ9.set_index('datetime', inplace=True)
AdZ9['returns'] = AdZ9['total'].pct_change()
AdZ9['equity_curve'] = AdZ9['returns']
AdZ9['equity_curve'] += 1
AdZ9['equity_curve'] = AdZ9['equity_curve'].cumprod()
YKHO.equity_curve = AdZ9
p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Axxu(YKHO):\n Csk6 = dict(((KCHu, 0.0) for KCHu in YKHO.symbol_list))\n Csk6['datetime'] = YKHO.backtest_date\n Csk6['cash'] = YKHO.initial_capital\n Csk6['commission'] = 0.0\n Csk6['total'] = YKHO.initial_capital\n Csk6['buy_times'] = 0\n Csk6['sell_times'] = 0\n Csk6['total_times'] = ... | [
"0.6518125",
"0.64987063",
"0.64987063",
"0.6132095",
"0.6132095",
"0.6053807",
"0.5899172",
"0.5812591",
"0.57502925",
"0.57439005",
"0.54652596",
"0.54619974",
"0.5456973",
"0.544827",
"0.52925646",
"0.52881396",
"0.5266654",
"0.52658826",
"0.52419686",
"0.5222863",
"0.5179... | 0.57409686 | 10 |
Creates a pandas DataFrame from the all_holdings list of dictionaries. Creates a returns stream and normalizes the equity curve to be percentagebased. Thus, initial account size is 1.0, as opposed to the absolute dollar amount. | def crOp(YKHO):
AdZ9 = rLdf.DataFrame(YKHO.all_holdings)
AdZ9.set_index('datetime', inplace=True)
AdZ9['returns'] = AdZ9['total'].pct_change()
AdZ9['equity_curve'] = AdZ9['returns']
AdZ9['equity_curve'] += 1
AdZ9['equity_curve'] = AdZ9['equity_curve'].cumprod()
YKHO.equity_curve = AdZ9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Axxu(YKHO):\n Csk6 = dict(((KCHu, 0.0) for KCHu in YKHO.symbol_list))\n Csk6['datetime'] = YKHO.backtest_date\n Csk6['cash'] = YKHO.initial_capital\n Csk6['commission'] = 0.0\n Csk6['total'] = YKHO.initial_capital\n Csk6['buy_times'] = 0\n Csk6['sell_times'] = 0\n Csk6['total_times'] = ... | [
"0.6518125",
"0.64987063",
"0.64987063",
"0.6132095",
"0.6132095",
"0.6053807",
"0.5899172",
"0.5812591",
"0.57502925",
"0.57409686",
"0.54652596",
"0.54619974",
"0.5456973",
"0.544827",
"0.52925646",
"0.52881396",
"0.5266654",
"0.52658826",
"0.52419686",
"0.5222863",
"0.5179... | 0.57439005 | 9 |
Initialize the weights of the recurrent model | def MP8d(YKHO):
if isinstance(YKHO.rnn, U78l.GRU) or isinstance(YKHO.rnn, U78l.RNN):
return ht2j.zeros(YKHO.num_directions * YKHO.num_layers, 1, YKHO.hidden_size, device=begE)
elif isinstance(YKHO.rnn, U78l.LSTM):
return (ht2j.zeros(YKHO.num_directions * YKHO.num_layers, 1, YKHO.hidden_size, dev... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(C3ST):\n ...",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)",
"def C0Lv(YKHO):\n pass",
"def vB93(YKHO):\n YKHO._q_neuron.h(YKHO._weights)\n YKHO._q_neuron.x(YKHO._weights)",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()",
"def sTi3(YKHO):\n ... | [
"0.8338346",
"0.8224569",
"0.8132384",
"0.806974",
"0.8064683",
"0.7987769",
"0.79154414",
"0.79140365",
"0.79114634",
"0.78817904",
"0.78817904",
"0.78817904",
"0.7845224",
"0.78087133",
"0.7794658",
"0.77131665",
"0.77131665",
"0.7693593",
"0.76428246",
"0.76239896",
"0.761... | 0.0 | -1 |
Initialize the weights of the recurrent model | def MP8d(YKHO):
if isinstance(YKHO.rnn, U78l.GRU):
return ht2j.zeros(YKHO.num_directions * YKHO.num_layers, 1, YKHO.hidden_size, device=begE)
elif isinstance(YKHO.rnn, U78l.LSTM):
return (ht2j.zeros(YKHO.num_directions * YKHO.num_layers, 1, YKHO.hidden_size, device=begE), ht2j.zeros(YKHO.num_dir... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(C3ST):\n ...",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)",
"def C0Lv(YKHO):\n pass",
"def vB93(YKHO):\n YKHO._q_neuron.h(YKHO._weights)\n YKHO._q_neuron.x(YKHO._weights)",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()",
"def sTi3(YKHO):\n ... | [
"0.8338346",
"0.8224569",
"0.8132384",
"0.806974",
"0.8064683",
"0.7987769",
"0.79154414",
"0.79140365",
"0.79114634",
"0.78817904",
"0.78817904",
"0.78817904",
"0.7845224",
"0.78087133",
"0.7794658",
"0.77131665",
"0.77131665",
"0.7693593",
"0.76428246",
"0.76239896",
"0.761... | 0.0 | -1 |
Forward pass through RNN based decoder | def KVH6(YKHO, input, Zode):
rWrZ = YKHO.embedding(input).view(1, 1, -1)
hlel = vuvg.relu(rWrZ)
hlel, Zode = YKHO.rnn(hlel, Zode)
hlel = YKHO.softmax(YKHO.out(hlel[0]))
return (hlel, Zode) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, Lb6x, r5GU, uYRw, xZIv, pU63, Zode=None, wzH_=None):\n if wzH_ is None:\n wzH_ = Lb6x.size(1)\n if Zode is None:\n Zode = YKHO.init_hidden(uYRw)\n CJhb = YKHO.attention.key_layer(r5GU)\n JfYO = []\n v1aI = []\n for YRbF in range(wzH_):\n BQas = Lb6x[:, YRbF].un... | [
"0.71793747",
"0.67865217",
"0.6750573",
"0.6742852",
"0.6716031",
"0.67155707",
"0.6595728",
"0.6572298",
"0.6564318",
"0.655776",
"0.65356886",
"0.6501583",
"0.64964455",
"0.6490973",
"0.649055",
"0.64765185",
"0.6422618",
"0.64000434",
"0.6394515",
"0.6393933",
"0.6385249"... | 0.62092113 | 54 |
Initialize the weights of the recurrent model | def MP8d(YKHO):
if isinstance(YKHO.rnn, U78l.GRU) or isinstance(YKHO.rnn, U78l.RNN):
return ht2j.zeros(YKHO.num_directions * YKHO.num_layers, 1, YKHO.hidden_size, device=begE)
elif isinstance(YKHO.rnn, U78l.LSTM):
return (ht2j.zeros(YKHO.num_directions * YKHO.num_layers, 1, YKHO.hidden_size, dev... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(C3ST):\n ...",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)",
"def C0Lv(YKHO):\n pass",
"def vB93(YKHO):\n YKHO._q_neuron.h(YKHO._weights)\n YKHO._q_neuron.x(YKHO._weights)",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()",
"def sTi3(YKHO):\n ... | [
"0.8338346",
"0.8224569",
"0.8132384",
"0.806974",
"0.8064683",
"0.7987769",
"0.79154414",
"0.79140365",
"0.79114634",
"0.78817904",
"0.78817904",
"0.78817904",
"0.7845224",
"0.78087133",
"0.7794658",
"0.77131665",
"0.77131665",
"0.7693593",
"0.76428246",
"0.76239896",
"0.761... | 0.0 | -1 |
Forward pass through attention decoder | def KVH6(YKHO, input, Zode, p83V):
rWrZ = YKHO.embedding(input).view(1, 1, -1)
rWrZ = YKHO.dropout(rWrZ)
pe3z = Zode[0] if isinstance(Zode, tuple) else Zode
c3Oi = vuvg.softmax(pe3z[0] @ p83V.squeeze().t(), dim=1)
wZYZ = ht2j.bmm(c3Oi.unsqueeze(0), p83V.permute(1, 0, 2))
hlel = ht2j.cat((rWrZ[0]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, input):\n WKvO = YKHO.emb(input)\n hlel = YKHO.attention(WKvO)\n return hlel",
"def KVH6(YKHO, pan_, qzxX, TaYf):\n WKvO = pan_\n for gEmA in YKHO.decoder_layers:\n WKvO = gEmA(WKvO, qzxX, TaYf)\n return WKvO",
"def KVH6(YKHO, WKvO, ZHfW):\n WKvO = YKHO.sublayer[0](WK... | [
"0.7387319",
"0.7179627",
"0.70960534",
"0.7084376",
"0.708437",
"0.7082512",
"0.695077",
"0.6824018",
"0.6802872",
"0.6768741",
"0.671523",
"0.66622066",
"0.6627993",
"0.6603511",
"0.6593991",
"0.65829796",
"0.6573563",
"0.6567262",
"0.65636027",
"0.65430355",
"0.6532642",
... | 0.6172629 | 54 |
Initialize the weights of the recurrent model | def MP8d(YKHO):
if isinstance(YKHO.rnn, U78l.GRU):
return ht2j.zeros(YKHO.num_directions * YKHO.num_layers, 1, YKHO.hidden_size, device=begE)
elif isinstance(YKHO.rnn, U78l.LSTM):
return (ht2j.zeros(YKHO.num_directions * YKHO.num_layers, 1, YKHO.hidden_size, device=begE), ht2j.zeros(YKHO.num_dir... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(C3ST):\n ...",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)",
"def C0Lv(YKHO):\n pass",
"def vB93(YKHO):\n YKHO._q_neuron.h(YKHO._weights)\n YKHO._q_neuron.x(YKHO._weights)",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()",
"def sTi3(YKHO):\n ... | [
"0.8338346",
"0.8224569",
"0.8132384",
"0.806974",
"0.8064683",
"0.7987769",
"0.79154414",
"0.79140365",
"0.79114634",
"0.78817904",
"0.78817904",
"0.78817904",
"0.7845224",
"0.78087133",
"0.7794658",
"0.77131665",
"0.77131665",
"0.7693593",
"0.76428246",
"0.76239896",
"0.761... | 0.0 | -1 |
Clears the social distancing function of the model and all its agents for pickling | def FabZ(YKHO):
YKHO.social_distancing_func = None
for YWSi in YKHO.grid.get_all_cell_contents():
YWSi.social_distancing_func = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7Bk(YKHO):\n YKHO.sum_hit_at_one = 0.0\n YKHO.sum_perr = 0.0\n YKHO.sum_loss = 0.0\n YKHO.map_calculator.clear()\n YKHO.global_ap_calculator.clear()\n YKHO.num_examples = 0",
"def Dr7N(YKHO):\n if hasattr(YKHO, 'estimators_'):\n YKHO.estimators_ = oyIN.empty((0, 0), dtype=oyIN.ob... | [
"0.67340225",
"0.6640129",
"0.6602608",
"0.65433407",
"0.6540731",
"0.6495879",
"0.64885485",
"0.64474887",
"0.6384358",
"0.63661957",
"0.63501775",
"0.634676",
"0.63357806",
"0.6331055",
"0.63253343",
"0.6324515",
"0.6311783",
"0.63087803",
"0.63084924",
"0.62998295",
"0.629... | 0.71531135 | 0 |
Boolean numpy array of active board, channel combinations. Shape = (13, 8) 13 boards and 8 channels | def WNF_(YKHO):
return YKHO._faux._active_brdch.copy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WSsk(iBIi):\n return iBIi[oyIN.where(iBIi == 0)]",
"def iz73(YKHO) -> laHg.List[laHg.List[bool]]:\n ...",
"def gm1Q(YKHO):\n Aofo = []\n for YRbF in range(3):\n for r845 in range(3):\n if YKHO.board[YRbF][r845] == 0:\n Aofo.append((YRbF, r845))\n return Aofo"... | [
"0.61384374",
"0.5767436",
"0.57551336",
"0.5737518",
"0.57345146",
"0.57080257",
"0.56419057",
"0.5618275",
"0.5569301",
"0.5551517",
"0.55450714",
"0.55234545",
"0.55117565",
"0.5499993",
"0.54848176",
"0.5452511",
"0.5450796",
"0.5445584",
"0.5445584",
"0.5394048",
"0.5370... | 0.0 | -1 |
Reads source and target sequences from txt files. | def FIMM(YKHO, ua9a, mWFP, Fbpr, ZE1x, fC8P=None, rvH3=None):
YKHO.val_file = ua9a
YKHO.name = mWFP
YKHO.src_word2id = Fbpr
YKHO.trg_word2id = ZE1x
YKHO.intent2index = rvH3
YKHO.intent_type = fC8P
YKHO.device = iNzq
YKHO.input_tensor, YKHO.target_tensor, YKHO.bs_tensor, YKHO.db_tensor, Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uaX7(gY90, YB6w):\n c7pe = []\n x6A0 = []\n with qJi5.GFile(gY90, 'r') as Xf36:\n for zFiD in Xf36:\n c7pe.append(zFiD.rstrip('\\n'))\n with qJi5.GFile(YB6w, 'r') as Xf36:\n for zFiD in Xf36:\n x6A0.append(zFiD.rstrip('\\n'))\n _73Q = list(zip(c7pe, x6A0))\n ... | [
"0.7004173",
"0.62104285",
"0.614928",
"0.6135123",
"0.6077857",
"0.60459733",
"0.60262614",
"0.5773353",
"0.56907296",
"0.567575",
"0.565867",
"0.56117463",
"0.5503338",
"0.54958713",
"0.5477541",
"0.5457064",
"0.5429928",
"0.54290515",
"0.54217696",
"0.54169047",
"0.5394655... | 0.0 | -1 |
Returns data loader for train in turnlevel. | def RuZU(qaEx, Fbpr, ZE1x, fC8P=None, rvH3=None, Ep8u=1):
bPab = qQXR.load(open(qaEx))
pU0Z = []
for mWFP in bPab.keys():
ua9a = bPab[mWFP]
__n6 = ZkKe(ua9a, mWFP, Fbpr, ZE1x, fC8P, rvH3)
pU0Z.append(__n6)
gMbG = bXcS(pU0Z)
zQKy = pVAc(dataset=gMbG, batch_size=Ep8u, shuffle=T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x1cL(i0XC, Ep8u, pU_9, hXNa=True, I7Gy=0):\n __n6 = KnzV(i0XC, pU_9)\n if i0XC.endswith('trn') == True:\n X8fE = __n6.train_collate\n else:\n X8fE = Xr5g\n zQKy = nPrm.DataLoader(dataset=__n6, batch_size=Ep8u, shuffle=hXNa, num_workers=I7Gy, collate_fn=X8fE)\n return zQKy",
"def ... | [
"0.75176334",
"0.749375",
"0.7328463",
"0.7213266",
"0.7092191",
"0.7091802",
"0.7051254",
"0.70409703",
"0.70346665",
"0.69718724",
"0.69660026",
"0.693725",
"0.68223566",
"0.6761632",
"0.6746695",
"0.6741186",
"0.67396015",
"0.6739318",
"0.673075",
"0.66948885",
"0.6686167"... | 0.7042871 | 7 |
Return the entry ID of the ODE or NOAD entry with which this component is linked (if any). Returns None if there's no link. | def XnNA(YKHO):
if YKHO.paired_link() is not None:
return YKHO.paired_link().entry_id()
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QWLk(YKHO):\n if YKHO.lexid is not None:\n return YKHO.lexid.split('.')[0]\n else:\n return None",
"def NPyb(YKHO):\n if hasattr(YKHO, '_linkno'):\n return YKHO._linkno\n else:\n return None",
"def bSaU(QZnA=None):\n S92N = VtBO(QZnA)\n id = None\n try:\n ... | [
"0.6923058",
"0.6822363",
"0.6108968",
"0.6011526",
"0.59809464",
"0.59809464",
"0.59809464",
"0.5965352",
"0.5938222",
"0.5916377",
"0.58279663",
"0.5819388",
"0.58167094",
"0.5691095",
"0.5670867",
"0.56300735",
"0.5610285",
"0.55816233",
"0.5569148",
"0.54882526",
"0.54779... | 0.71002346 | 0 |
Return the set of domClass topics found in the component. | def AdpB(YKHO):
return set([exwG.text for exwG in YKHO.node.xpath('.//domClass') if exwG.text is not None]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AdpB(YKHO):\n return AdpB.Topics(YKHO)",
"def AdpB(YKHO):\n return kGys.Topics(YKHO)",
"def AdpB(YKHO):\n return AdpB.Topics(YKHO)",
"def AdpB(YKHO):\n fTw1 = XLL2.get_model('tags', 'Topic')\n return fTw1.objects.filter(tag__in=YKHO.tags.all()).distinct()",
"def AdpB(YKHO):\n return t... | [
"0.7290563",
"0.7201646",
"0.7099551",
"0.7011569",
"0.6786736",
"0.6620541",
"0.64232665",
"0.63414145",
"0.60784614",
"0.60325885",
"0.6023995",
"0.6022614",
"0.59995496",
"0.59947073",
"0.5992155",
"0.5931425",
"0.59110504",
"0.59008944",
"0.5890705",
"0.58559626",
"0.5786... | 0.802408 | 0 |
Return the ID of the target entry. | def QWLk(YKHO):
if YKHO.lexid is not None:
return YKHO.lexid.split('.')[0]
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MCsb(YKHO):\n return YKHO._target_id",
"def MCsb(YKHO):\n return YKHO._target_id",
"def MCsb(YKHO) -> str:\n return YKHO._target_id",
"def MCsb(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_id')",
"def eydc(YKHO):\n Eorv = YKHO.resource\n c_NS = Eorv.get_config('anonymize')\n ... | [
"0.76533705",
"0.76533705",
"0.7609248",
"0.7252243",
"0.6823659",
"0.67660266",
"0.6627055",
"0.65696234",
"0.65585095",
"0.65585095",
"0.65585095",
"0.65585095",
"0.65585095",
"0.65585095",
"0.65585095",
"0.65585095",
"0.65585095",
"0.65585095",
"0.65585095",
"0.65585095",
... | 0.6563248 | 8 |
Return True if this is a link between ODE and NOAD. | def Uuqx(YKHO):
if YKHO.project_name in dnqO:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VsGm(YKHO, MRRk, **B2fa):\n tjUW = YKHO @ YKHO.adj(MRRk)\n return tjUW.is_unity(**B2fa)",
"def MlcU(YKHO) -> bool:\n return YKHO.is_hom() and (YKHO.allele1 == 0 or YKHO.allele2 == 0)",
"def O6c2(YKHO):\n return YKHO.ichair_id is not None",
"def mwdm(YKHO) -> bool:\n return True",
"def xM... | [
"0.66074234",
"0.6520379",
"0.65064394",
"0.6447779",
"0.6365083",
"0.6355285",
"0.63116074",
"0.6286722",
"0.6246453",
"0.6160388",
"0.6139014",
"0.60947007",
"0.60074884",
"0.59585917",
"0.5929041",
"0.5912489",
"0.59105563",
"0.58539504",
"0.5851654",
"0.5829513",
"0.58295... | 0.7602552 | 0 |
Test project initialization with remote and possibly gitlab groups set. | def oRII(aC64, jApP, y5Cv):
nPrm, wQcs = jApP
aVYC = GkAb(nPrm['test_project'])
aVYC.mkdir()
boHx = tgM5.Repo.init(aVYC)
boHx.create_remote('origin', y5Cv[0])
Aofo = aC64.invoke(GSyo, wQcs['init_test'] + wQcs['id'] + wQcs['force'], wQcs['confirm'])
assert 0 == Aofo.exit_code, KW_b(Aofo)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QFPJ(aC64, jApP):\n nPrm, wQcs = jApP\n aVYC = GkAb(nPrm['test_project'])\n assert not aVYC.exists()\n Aofo = aC64.invoke(GSyo, wQcs['init_test'] + wQcs['id'] + wQcs['force'], wQcs['confirm'])\n assert 0 == Aofo.exit_code, KW_b(Aofo)\n assert aVYC.exists()\n assert (aVYC / '.renku').exists... | [
"0.6922681",
"0.6520916",
"0.6434641",
"0.63318795",
"0.6306162",
"0.6271748",
"0.62689763",
"0.62048405",
"0.6188058",
"0.61763966",
"0.61763966",
"0.61473775",
"0.61473775",
"0.61473775",
"0.6128032",
"0.60938376",
"0.60865563",
"0.6054143",
"0.603706",
"0.60166526",
"0.600... | 0.669432 | 1 |
Computes the average distance of a walk. | def BICs(OrNL, XcDb, JfyU):
VOik = 0
dXVx = (0, 0)
for bGrB in range(XcDb):
Bn29 = None
while Bn29 is None:
Bn29 = JfyU(dXVx, OrNL)
VOik += Ayfi(dXVx, Bn29)
return pow(VOik / XcDb, 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UGFO(YKHO):\n BH3N = YKHO.__game\n C58Z = BH3N.get_all_icebergs()\n La8e = len(C58Z)\n y7O9 = 0\n for YRbF in range(La8e):\n for r845 in range(YRbF + 1, La8e):\n DMEO = C58Z[YRbF]\n iWKl = C58Z[r845]\n y7O9 += DMEO.get_turns_till_arrival(iWKl)\n return ... | [
"0.7261382",
"0.7024056",
"0.6731039",
"0.6188855",
"0.6151521",
"0.6151521",
"0.6151521",
"0.61377794",
"0.6130262",
"0.6112313",
"0.6065622",
"0.59523565",
"0.5891296",
"0.5876016",
"0.5875842",
"0.5874567",
"0.5860777",
"0.5858323",
"0.58561724",
"0.58469546",
"0.58341604"... | 0.7139583 | 1 |
construct the ResNet V1 residual block | def l_xx(YKHO, WKvO):
_E99 = WKvO
yvT9 = YKHO.conv1(WKvO)
yvT9 = YKHO.bn1(yvT9)
yvT9 = YKHO.relu(yvT9)
yvT9 = YKHO.conv2(yvT9)
yvT9 = YKHO.bn2(yvT9)
yvT9 = YKHO.relu(yvT9)
yvT9 = YKHO.conv3(yvT9)
yvT9 = YKHO.bn3(yvT9)
if YKHO.downsample:
_E99 = YKHO.conv_down_sample(_E99)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNyv(YKHO):\n iwRO = X6a0((YKHO.data_rows, YKHO.data_cols, 1), name='inputs_data')\n\n def QufS(input, dxEX=64, Ot1W=(3, 3), _0fC=(1, 1)):\n WKvO = yHwh(dxEX, Ot1W, padding='same', strides=_0fC)(input)\n WKvO = GVKG()(WKvO)\n WKvO = MroH('relu')(WKvO)\n WKvO = yHwh(dxEX, Ot1W,... | [
"0.69647676",
"0.6790248",
"0.65371746",
"0.6484117",
"0.64593923",
"0.642138",
"0.63897717",
"0.6338853",
"0.63199425",
"0.6281898",
"0.6263456",
"0.6201295",
"0.6181082",
"0.6176573",
"0.61679983",
"0.6160329",
"0.61534846",
"0.6133226",
"0.6107439",
"0.60885274",
"0.606961... | 0.0 | -1 |
Test behaviour of a POST with a bad signature. We'll get different results here depending on settings. | def FqIu(a0zZ, gCuF, lO3O):
V2fd = '123appkey'
setattr(gCuF, JtmO, V2fd)
setattr(gCuF, m3qG, a0zZ)
tTee = DqNO.as_view()
QePW = lO3O.post(s4mI, p0tG, content_type='application/json')
geh0 = tTee(QePW)
if a0zZ:
assert geh0.status_code == 400
assert geh0.content == fZAh.INVALID... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uFYE(YKHO):\n geh0 = G4JS.post(YKHO.launch_uri, data=YKHO.payload)\n YKHO.assertIn('Wrong LTI signature', geh0.content)",
"def Sra8(YKHO):\n _hkX = YKHO.client.post('/')\n JBvl = _hkX.status_code\n YKHO.assertTrue(JBvl == 403)",
"def NmaL(aqR5, VyGb, gCuF, lO3O):\n V2fd = '123appkey'\n ... | [
"0.773038",
"0.764125",
"0.7537984",
"0.7530935",
"0.72413063",
"0.68900365",
"0.68290555",
"0.682563",
"0.6815828",
"0.67936",
"0.67920154",
"0.6771525",
"0.67652184",
"0.6712462",
"0.6680074",
"0.66687334",
"0.66687334",
"0.6664628",
"0.6623283",
"0.66168",
"0.65732396",
... | 0.7279833 | 4 |
Residual function that handles different inputs and outputs inner dims. | def QUBI(g4y1, o4Jx):
def AIXg(pKvt, yvT9):
Fmaf = yvT9.get_shape().as_list()[-1]
pRq0 = pKvt.get_shape().as_list()[-1]
return ZylS.split(pKvt, [Fmaf, pRq0 - Fmaf], axis=1)
HFeT, bGrB = pf_1.map_structure(AIXg, g4y1, o4Jx)
def EAFL(pKvt, yvT9):
pKvt.get_shape().assert_is_co... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mBEO(YKHO, WKvO):\n MKlR = WKvO\n MKlR = YKHO.c1(MKlR)\n MKlR = YKHO.activation(MKlR)\n MKlR = YKHO.c2(MKlR)\n MKlR = vuvg.avg_pool2d(MKlR, 2)\n return MKlR",
"def O5cp(NArs: List[float], fUYa: np.ndarray, bEXe: np.ndarray) -> float:\n return KFJf(params=NArs, xs=fUYa) - bEXe",
"def mB... | [
"0.6912124",
"0.67175055",
"0.6706249",
"0.6487664",
"0.6351428",
"0.63212997",
"0.631264",
"0.63111556",
"0.62559056",
"0.619572",
"0.61419815",
"0.613941",
"0.61247987",
"0.61215866",
"0.6080595",
"0.6027744",
"0.60000426",
"0.5984757",
"0.58955103",
"0.58756155",
"0.584352... | 0.54233754 | 55 |
Constructs a `ResidualWrapper` for `cell`. | def FIMM(YKHO, VmPb):
YKHO._cell = VmPb
YKHO._residual_fn = QUBI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO, g4y1, QTBn, rrBf=None):\n o4Jx, AJEJ = YKHO._cell(g4y1, QTBn, scope=rrBf)\n\n def EAFL(pKvt, yvT9):\n pKvt.get_shape().assert_is_compatible_with(yvT9.get_shape())\n\n def AfwH(g4y1, o4Jx):\n pf_1.assert_same_structure(g4y1, o4Jx)\n pf_1.map_structure(EAFL, g4y1, o4Jx)\n... | [
"0.525483",
"0.50582814",
"0.5056793",
"0.50306237",
"0.49004534",
"0.47767895",
"0.4756119",
"0.47508952",
"0.4745276",
"0.4728889",
"0.4727167",
"0.47174016",
"0.47139803",
"0.47139803",
"0.4676678",
"0.46365133",
"0.46133268",
"0.46071672",
"0.45875415",
"0.45706397",
"0.4... | 0.6759328 | 0 |
Object initialization given_name ........ (str|None, optional, defaults to None) The given (first) name of the person the instance represents. initials .......... (str|None, optional, defaults to None) The middle initial(s) of the person the instance represents. family_name ....... (str|None, optional, defaults to None... | def FIMM(YKHO, Sp9k=None, xWjI=None, zANN=None, Hxmi=None):
YKHO.given_name = Sp9k
YKHO.initials = xWjI
YKHO.family_name = zANN
YKHO.email_address = Hxmi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mWFP=None, Sp9k=None, w5Au=None, zANN=None, UTX6=None, N_X7={}):\n YKHO.name = mWFP\n YKHO.given_name = Sp9k\n YKHO.middle_name = w5Au\n YKHO.family_name = zANN\n YKHO.address = UTX6\n YKHO.additional_properties = N_X7",
"def FIMM(YKHO, c9ua, zp3f):\n YKHO.first_name = c9ua\n ... | [
"0.77782553",
"0.7519987",
"0.75088555",
"0.74528587",
"0.7425556",
"0.74173546",
"0.7249808",
"0.72475874",
"0.7201071",
"0.71894956",
"0.71421474",
"0.7066244",
"0.7058378",
"0.70476776",
"0.7040424",
"0.70349354",
"0.70349354",
"0.70349354",
"0.70349354",
"0.70349354",
"0.... | 0.8482793 | 0 |
Object initialization student_id ........ (int|None, optional, defaults to 0 [zero]) The unique identifying number of the student given_name ........ (str|None, optional, defaults to None) The given (first) name of the student the instance represents. initials .......... (str|None, optional, defaults to None) The middl... | def FIMM(YKHO, DCKO=0, Sp9k=None, xWjI=None, zANN=None, Hxmi=None, IJ4N=None, cbKy=None):
super().__init__(Sp9k, xWjI, zANN, Hxmi)
YKHO.student_id = DCKO
YKHO.major = IJ4N
YKHO.minor = cbKy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, c9ua, zp3f, UTX6):\n YKHO.first_name = c9ua\n YKHO.last_name = zp3f\n YKHO.address = UTX6\n YKHO.info = {'first name': YKHO.first_name, 'last name': YKHO.last_name, 'address': YKHO.address}",
"def FIMM(YKHO, DCKO, dW_5, IznC, IJ4N='Computer Science', Imgf='0.0'):\n super().__init__(... | [
"0.7474234",
"0.73341835",
"0.71787",
"0.70912176",
"0.6885495",
"0.6728643",
"0.6597062",
"0.6529507",
"0.6471617",
"0.6423829",
"0.64211345",
"0.6397629",
"0.63790256",
"0.6378795",
"0.63497055",
"0.6346681",
"0.6337333",
"0.6299591",
"0.62544394",
"0.6197605",
"0.61961967"... | 0.7631311 | 0 |
Stripe a column in a dataframe, by interpolating quantiles into a set of discrete indexes. | def LNs7(hkxX: list, Pyrc: int, *, EZqS: bool=False) -> oyIN.ndarray:
if EZqS:
KCHu = Y3tb.Series(hkxX)
else:
KCHu = rLdf.Series(hkxX)
vexM = KCHu.quantile(Pyrc, interpolation='nearest')
try:
OtaY = oyIN.digitize(hkxX, vexM) - 1
return OtaY
except ValueError as e:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fjLP(NCls: pd.DataFrame, fvDH: str) -> rLdf.DataFrame:\n bGrB, Pyrc = rLdf.qcut(x=NCls[fvDH], q=[0.25, 0.75], retbins=True, duplicates='drop')\n hbUd = Pyrc[0]\n iv7Q = Pyrc[1]\n AUbx = iv7Q - hbUd\n sGIj = hbUd - 1.5 * AUbx\n aGqx = iv7Q + 1.5 * AUbx\n NCls.loc[NCls[fvDH] < sGIj, fvDH] = ... | [
"0.6155155",
"0.59328115",
"0.5739949",
"0.5671343",
"0.5617835",
"0.55964226",
"0.5511522",
"0.54988414",
"0.54791105",
"0.54629344",
"0.53953433",
"0.5391538",
"0.53371656",
"0.5333492",
"0.527579",
"0.52589947",
"0.5220919",
"0.51387763",
"0.50933665",
"0.50857997",
"0.504... | 0.61993945 | 0 |
Return the element stored at this Position. | def U6D_(YKHO):
return YKHO._node._element | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _9uU(YKHO):\n return YKHO.element",
"def _9uU(YKHO):\n return YKHO.element",
"def _9uU(YKHO):\n return YKHO._element",
"def U6D_(YKHO):\n return YKHO._element",
"def U6D_(YKHO):\n return YKHO._element",
"def U6D_(YKHO):\n return YKHO._element",
"def U6D_(YKHO):\n return YKHO._e... | [
"0.7991133",
"0.7991133",
"0.79683876",
"0.78909487",
"0.7818736",
"0.7818736",
"0.7818736",
"0.75961065",
"0.75703907",
"0.7486983",
"0.7271655",
"0.7221839",
"0.72033703",
"0.72033703",
"0.72033703",
"0.72033703",
"0.70869666",
"0.6923757",
"0.69016874",
"0.68744016",
"0.68... | 0.7495175 | 12 |
Return True if other Position represents the same location. | def xa14(YKHO, Elif):
return type(Elif) is type(YKHO) and Elif._node is YKHO._node | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kJTp(YKHO, Elif):\n if not isinstance(Elif, PvyL):\n return False\n return YKHO.longitude == Elif.getLongitude() and YKHO.latitude == Elif.getLatitude()",
"def rEwH(YKHO, Elif) -> bool:\n return YKHO.x == Elif.x and YKHO.y == Elif.y",
"def xa14(YKHO, Elif):\n return YKHO._coords == Elif.... | [
"0.84157455",
"0.8079219",
"0.7786436",
"0.7786436",
"0.7691206",
"0.7679783",
"0.76025367",
"0.75659394",
"0.7451102",
"0.73797554",
"0.7364951",
"0.7344662",
"0.7325785",
"0.7313814",
"0.72921383",
"0.7285434",
"0.72343457",
"0.7201619",
"0.71943647",
"0.71350956",
"0.71306... | 0.0 | -1 |
Return True if other does not represents the same location. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: 'LocationOutput') -> bool:\n return not YKHO == Elif",
"def kJTp(YKHO, Elif):\n if not isinstance(Elif, PvyL):\n return False\n return YKHO.longitude == Elif.getLongitude() and YKHO.latitude == Elif.getLatitude()",
"def Vdqg(YKHO, Elif: 'LocationCollection') -> bool:\n r... | [
"0.8464421",
"0.819087",
"0.81640583",
"0.77991784",
"0.76913416",
"0.76381975",
"0.7608116",
"0.7572509",
"0.7563071",
"0.7563071",
"0.7553644",
"0.7539375",
"0.75329036",
"0.7529435",
"0.75214463",
"0.7492222",
"0.7457559",
"0.7416773",
"0.7246046",
"0.7237671",
"0.7176044"... | 0.0 | -1 |
Gets the severity of this PolicyEvaluationProblem. | def rwlZ(YKHO):
return YKHO._severity | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> qe4Y.Output[h8nf... | [
"0.78816473",
"0.78816473",
"0.78816473",
"0.77773297",
"0.76952446",
"0.7459061",
"0.7459061",
"0.7459061",
"0.745034",
"0.73328614",
"0.71362484",
"0.70060045",
"0.6928198",
"0.6892049",
"0.6720854",
"0.66371197",
"0.636598",
"0.6313522",
"0.58744997",
"0.57795143",
"0.5762... | 0.79127765 | 1 |
Gets the problem_type of this PolicyEvaluationProblem. | def tKA5(YKHO):
return YKHO._problem_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fqCX(YKHO):\n Ylbp, vfD5 = YKHO.__obj.getprobtype()\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n qNxy = vfD5\n qNxy = Shhd(qNxy)\n return qNxy",
"def krYj(YKHO):\n return YKHO.prob_type",
"def krYj(YKHO):\n return YKHO.prob_typ... | [
"0.69119966",
"0.67224455",
"0.67224455",
"0.67224455",
"0.67224455",
"0.67224455",
"0.6341443",
"0.63391316",
"0.62962055",
"0.62962055",
"0.6234336",
"0.6189345",
"0.617481",
"0.61438507",
"0.6107251",
"0.6107251",
"0.6078641",
"0.6072959",
"0.60621804",
"0.6042226",
"0.604... | 0.80605066 | 0 |
Sets the problem_type of this PolicyEvaluationProblem. | def tKA5(YKHO, tKA5):
if tKA5 is None:
raise ValueError('Invalid value for `problem_type`, must not be `None`')
YKHO._problem_type = tKA5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tKA5(YKHO):\n return YKHO._problem_type",
"def tjWJ(YKHO, X3eO):\n if isinstance(X3eO, str):\n YKHO._problem = X3eO\n return\n if isinstance(X3eO, HQtn.Problem):\n YKHO._problem = 'GenericScalar' if YKHO._is_scalar else 'GenericTensor'\n if X3eO.rhs is None:\n ... | [
"0.62316334",
"0.62279195",
"0.61493415",
"0.61261266",
"0.5996442",
"0.5971947",
"0.5971947",
"0.5959344",
"0.587077",
"0.58425814",
"0.58094555",
"0.5744428",
"0.5732569",
"0.5710684",
"0.5707716",
"0.5707716",
"0.56963664",
"0.56963664",
"0.56963664",
"0.5681315",
"0.56676... | 0.81191987 | 0 |
Gets the details of this PolicyEvaluationProblem. | def iQG7(YKHO):
return YKHO._details | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X3eO(YKHO):\n return YKHO['problem']",
"def EOFY(YKHO):\n YKHO.logger.debug(f'Getting summary for assignment {YKHO.assignment_id}, eval_id {YKHO.eval_id}')\n Aofo = YKHO.interactor.get_policy_eval_summary(YKHO.assignment_id)\n if Aofo.status_code != 200:\n YKHO.logger.debug(f'Could not get... | [
"0.6440447",
"0.64267933",
"0.62389845",
"0.606752",
"0.6048847",
"0.6048847",
"0.6048847",
"0.5985877",
"0.59639025",
"0.5920422",
"0.5914245",
"0.58789855",
"0.58447075",
"0.5759893",
"0.57477915",
"0.5723416",
"0.57126033",
"0.5712018",
"0.5712018",
"0.5671037",
"0.5668864... | 0.62127274 | 3 |
Checks if all mines have been flagged. | def kTv5(YKHO):
return YKHO.mines_found == YKHO.mines | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def imDs(YKHO, JnVq):\n for VmPb in JnVq:\n rdlD, fvDH = VmPb\n YKHO.mine_field[rdlD][fvDH] = 'x'\n YKHO.mines_left -= 1\n return",
"def Ukgb(YKHO):\n YKHO.mines",
"def mfk_(YKHO):\n oeNL, zJeG, nyyK = YKHO.perception\n if len(oeNL) > 0:\n return all(map(lambda WKvO: ... | [
"0.6493939",
"0.64380544",
"0.62672025",
"0.6193501",
"0.59457463",
"0.59377706",
"0.5888218",
"0.5871176",
"0.58325356",
"0.5807797",
"0.5793292",
"0.5792148",
"0.5780905",
"0.5763106",
"0.57473433",
"0.5706428",
"0.5688238",
"0.5619981",
"0.5616461",
"0.5607642",
"0.5599766... | 0.67858374 | 3 |
Returns the set of all cells in self.cells known to be mines. | def Ukgb(YKHO):
if len(YKHO.cells) == YKHO.count:
return YKHO.cells
return set() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ukgb(YKHO):\n if len(YKHO.cells) <= YKHO.count:\n return YKHO.cells\n return set([])",
"def Ukgb(YKHO):\n if len(YKHO.cells) == YKHO.count:\n return YKHO.cells",
"def Ukgb(YKHO):\n if len(YKHO.cells) == YKHO.count:\n return YKHO.cells\n else:\n return set()",
"d... | [
"0.87650234",
"0.8293779",
"0.82612735",
"0.7944578",
"0.7944578",
"0.76535374",
"0.76535374",
"0.7336784",
"0.71533304",
"0.6954018",
"0.68953633",
"0.67344165",
"0.6729412",
"0.671902",
"0.6691797",
"0.6594178",
"0.6469754",
"0.6462674",
"0.6419005",
"0.6399146",
"0.6356947... | 0.8837728 | 0 |
Returns the set of all cells in self.cells known to be safe. | def Gwny(YKHO):
if YKHO.count == 0:
return YKHO.cells
return set() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UVlc(YKHO) -> fHNa[riCw]:\n return set(YKHO.iter_solved_cells())",
"def UVlc(YKHO) -> fHNa[riCw]:\n return set(YKHO.iter_solved_cells())",
"def Gwny(YKHO):\n if YKHO.count == 0:\n return YKHO.cells\n return set([])",
"def X6V3(YKHO) -> fHNa[riCw]:\n return set(YKHO.iter_unsolved_cel... | [
"0.82547176",
"0.82547176",
"0.80680937",
"0.79269296",
"0.79269296",
"0.77275",
"0.7620657",
"0.7600568",
"0.73750263",
"0.7241672",
"0.7190588",
"0.7186031",
"0.7054763",
"0.69567287",
"0.69553417",
"0.69521725",
"0.6919826",
"0.6766262",
"0.6711385",
"0.6693863",
"0.668020... | 0.8284027 | 0 |