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 |
|---|---|---|---|---|---|---|
Given a list of tuples, creates a list of elements at tuple_index | def lsKn(um5V, dHZI=0):
grQE = []
for YRbF in range(0, len(um5V)):
grQE.append(um5V[YRbF][dHZI])
return grQE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(cDgs: List[int], YRbF: Tuple[int, ...]) -> AzJI[int, ...]:\n return tuple([cDgs[WKvO] for WKvO in YRbF])",
"def etJg(AZ0k):\n Hvvh = []\n for ZfUD in AZ0k:\n d6pt = ZfUD[0]\n Rhv4 = ZfUD[1]\n for yAmx in Rhv4:\n q2Xo = (d6pt, yAmx)\n Hvvh.append(q2Xo)\... | [
"0.7396039",
"0.71985745",
"0.66250646",
"0.6301813",
"0.623196",
"0.6097769",
"0.60704243",
"0.6067709",
"0.5950401",
"0.5911848",
"0.5911848",
"0.59016126",
"0.5863979",
"0.58418924",
"0.5839637",
"0.58294916",
"0.5812114",
"0.57926047",
"0.57651526",
"0.57437015",
"0.57287... | 0.74707246 | 0 |
Removes words not in vocab from a list of text | def LM7x(wuNX, CtWL):
FeaI = set(CtWL)
for YRbF in range(0, len(wuNX)):
s2mk = dFss(wuNX[YRbF])
s2mk = [GIN8 for GIN8 in s2mk if GIN8 in FeaI]
wuNX[YRbF] = u' '.join(s2mk)
return wuNX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dl9a(l5Ny):\n V22M = l5Ny.split()\n yvT9 = []\n for yzQ0 in V22M:\n yzQ0 = lCct(yzQ0)\n if yzQ0 != None:\n yvT9.append(yzQ0)\n return yvT9",
"def aUcs(l5Ny):\n MAdq = l5Ny.split()\n MAdq = [GIN8 for GIN8 in MAdq if GIN8 not in di0c.words('spanish')]\n return MAdq... | [
"0.7811427",
"0.7438936",
"0.7367034",
"0.7361121",
"0.73175627",
"0.72903055",
"0.72748053",
"0.7216934",
"0.71874875",
"0.71865386",
"0.71621287",
"0.7134436",
"0.7134436",
"0.7134436",
"0.7134436",
"0.7120293",
"0.70852035",
"0.7063519",
"0.7061294",
"0.7055283",
"0.705422... | 0.8860432 | 0 |
Get the gdb.Value of this instance. | def wEf2(YKHO):
return YKHO.v | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWXx(YKHO):\n return YKHO.__value",
"def umPh(YKHO):\n return YKHO.__value",
"def BWXx(YKHO):\n return YKHO.__value",
"def BWXx(YKHO):\n return YKHO.__value",
"def Zmkp(YKHO):\n return YKHO._val",
"def BWXx(YKHO):\n return YKHO._val",
"def eXSS(YKHO):\n return YKHO.value",
"d... | [
"0.7522085",
"0.74723154",
"0.74658036",
"0.74658036",
"0.74574035",
"0.74487305",
"0.744748",
"0.7444862",
"0.73689824",
"0.73689824",
"0.7348514",
"0.73460364",
"0.73460364",
"0.73460364",
"0.73377585",
"0.7334504",
"0.7334504",
"0.7309008",
"0.73064727",
"0.72952837",
"0.7... | 0.0 | -1 |
Return the size of this block in number of words or None if inaccessible Must only be called on a block. | def leTd(YKHO):
assert YKHO.is_block()
nL_U = YKHO.hd()
if nL_U is None:
return None
return nL_U >> 10 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n if hasattr(YKHO, '_size'):\n return YKHO._size\n else:\n return None",
"def sf7A(YKHO):\n leTd = YKHO.size_words()\n if leTd is None:\n return None\n return leTd * q3av.sizeof",
"def zNig(YKHO):\n if YKHO.is_free():\n return YKHO._size\n else:\... | [
"0.7236927",
"0.7113828",
"0.69406515",
"0.68915784",
"0.68873465",
"0.68434393",
"0.68357956",
"0.6819651",
"0.6799264",
"0.6765809",
"0.66771823",
"0.66427517",
"0.6642424",
"0.6638998",
"0.66231835",
"0.6621859",
"0.66112727",
"0.66084826",
"0.66084826",
"0.66002303",
"0.6... | 0.81372184 | 0 |
Return the size of this block in number of bytes or None if inaccessible Must only be called on a block. | def sf7A(YKHO):
leTd = YKHO.size_words()
if leTd is None:
return None
return leTd * q3av.sizeof | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n if hasattr(YKHO, '_size'):\n return YKHO._size\n else:\n return None",
"def Z1S6(YKHO):\n return YKHO._block_size",
"def Z1S6(YKHO, yetk):\n ...",
"def zNig(YKHO):\n if YKHO.is_free():\n return YKHO._size\n else:\n return YKHO._size * -1",
"de... | [
"0.76410836",
"0.75008047",
"0.7440677",
"0.72940904",
"0.7178997",
"0.7113256",
"0.7110575",
"0.71073085",
"0.707522",
"0.707522",
"0.7073017",
"0.7046389",
"0.70387554",
"0.7036509",
"0.7036509",
"0.69985086",
"0.69880164",
"0.6987811",
"0.6987811",
"0.6987811",
"0.69877887... | 0.6894618 | 28 |
Returns number of rows in matrix. | def KyVX(YKHO):
return len(YKHO.value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWYI(YKHO):\n return zRLp.HypreParMatrix_GetNumRows(YKHO)",
"def A6_I(YKHO):\n if YKHO.number_of_columns():\n return YKHO._number_of_rows\n else:\n return 0",
"def SWGE(YKHO) -> int:\n ...",
"def SWGE(YKHO):\n return YKHO.__rows",
"def NwL4(YKHO):\n return len(YKHO.rows)... | [
"0.7860573",
"0.7800926",
"0.76987195",
"0.75743157",
"0.7393414",
"0.73834896",
"0.73456204",
"0.73456204",
"0.73044634",
"0.72872907",
"0.7266232",
"0.7229302",
"0.7095123",
"0.70786995",
"0.7066804",
"0.7039144",
"0.70389116",
"0.7017562",
"0.69499236",
"0.6940887",
"0.694... | 0.6931238 | 21 |
setter method to set Primary app information. | def Mk0t(YKHO):
YKHO._Primary_app_info = YKHO._fetch_app_info(YKHO._Primary) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWRA(YKHO):\n return YKHO._Primary_app_info",
"def _p_R(YKHO, P4t4):\n YKHO.app = P4t4",
"def j1O8(YKHO, u5xJ):\n YKHO.config.APP_ID = u5xJ",
"def Anvt(YKHO, mWFP, DpZH, GjO0=False):\n YKHO._appName = mWFP\n YKHO._appVersion = DpZH\n YKHO._devMode = GjO0",
"def kvcN(YKHO, BWXx):\n ... | [
"0.71339583",
"0.6761681",
"0.6500643",
"0.631118",
"0.6279136",
"0.61777556",
"0.6128798",
"0.6113929",
"0.60483545",
"0.60295093",
"0.5975082",
"0.5907148",
"0.58813053",
"0.58335024",
"0.57529026",
"0.57023954",
"0.5648523",
"0.56371737",
"0.56328464",
"0.5630172",
"0.5626... | 0.85377216 | 0 |
setter method to set Secondary app information. Optimized for parallel processing of http requests. | def I8wW(YKHO):
dixj = IIs7(4).map(YKHO._fetch_app_info, YKHO._Secondary, chunksize=5)
for Aofo in dixj:
YKHO._Secondary_app_info.append(Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KNni(YKHO):\n for DumB in YKHO._Secondary:\n YKHO._Secondary_app_info.append(YKHO._fetch_app_info(DumB))",
"def Mk0t(YKHO):\n YKHO._Primary_app_info = YKHO._fetch_app_info(YKHO._Primary)",
"def FrBF(YKHO):\n return YKHO._Secondary_app_info",
"def EOZ5(YKHO, eX8y):\n nPrm = {'name': eX8... | [
"0.7565459",
"0.69139713",
"0.6822328",
"0.5920879",
"0.5757652",
"0.56998426",
"0.5594931",
"0.55482805",
"0.5532627",
"0.54686",
"0.5433381",
"0.54153126",
"0.53842765",
"0.52612877",
"0.52550715",
"0.5240381",
"0.5193133",
"0.51709783",
"0.51075137",
"0.50858486",
"0.50604... | 0.73110217 | 1 |
Returns the SHA256 checksum of the file | def bIiq(qaEx: str) -> str:
with open(qaEx, 'rb') as nUeQ:
FrKw = HBct.sha256()
for yOAJ in iter(lambda: nUeQ.read(4096), b''):
FrKw.update(yOAJ)
gV46 = FrKw.hexdigest()
return gV46 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gV46(nUeQ):\n d6Jv = HBct.sha256()\n eHNT = open(nUeQ, 'rb')\n try:\n d6Jv.update(eHNT.read())\n finally:\n eHNT.close()\n return d6Jv.hexdigest()",
"def vb3_(Ux0P):\n hGN5 = open(Ux0P, 'rb').read()\n vKkD = HBct.sha256(hGN5)\n return vKkD.hexdigest()",
"def vb3_(Ux0P)... | [
"0.85844195",
"0.82592034",
"0.81129557",
"0.8059804",
"0.8047945",
"0.76147306",
"0.75880265",
"0.7587544",
"0.7537573",
"0.7537549",
"0.75156575",
"0.7477274",
"0.7438245",
"0.7412991",
"0.74043524",
"0.7349805",
"0.7346285",
"0.73381114",
"0.7337639",
"0.7300783",
"0.72971... | 0.8173537 | 2 |
Method that applies sliding windows on the warped image | def izIJ(YKHO, uZEh, HNfD, eW_y):
P0Ne = 9
eIgl = oyIN.int(uZEh.shape[0] / P0Ne)
waS5 = uZEh.nonzero()
FzSH, HoqM = (oyIN.array(waS5[0]), oyIN.array(waS5[1]))
uEQm, T2Ww = (HNfD, eW_y)
MVIL = 100
dVBV = 50
AugS, wrnt = ([], [])
o8mw = oyIN.dstack((uZEh, uZEh, uZEh)) * 255
for Knx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ukKN(J2l3, uZEh, JmFt=False):\n YIdY = oyIN.sum(uZEh[uZEh.shape[0] / 2:, :], axis=0)\n o8mw = oyIN.dstack((uZEh, uZEh, uZEh)) * 255\n lKXT = oyIN.int(YIdY.shape[0] / 2)\n HNfD = oyIN.argmax(YIdY[:lKXT])\n eW_y = oyIN.argmax(YIdY[lKXT:]) + lKXT\n P0Ne = 9\n eIgl = oyIN.int(uZEh.shape[0] / P... | [
"0.7454927",
"0.72610754",
"0.69086176",
"0.66590375",
"0.6515836",
"0.6483065",
"0.646845",
"0.64683",
"0.6437823",
"0.62817097",
"0.62485456",
"0.6231126",
"0.6079931",
"0.6067994",
"0.6061101",
"0.6029256",
"0.6014455",
"0.6007304",
"0.60043436",
"0.5952158",
"0.5925815",
... | 0.7603676 | 0 |
Given a name, set selected controls' gizmo to that name | def zRUT(TjAx, NYNB):
z3KV = TjAx.get_hierarchy_modifier()
SuM2 = z3KV.get_selection()
ePnm = LSW3.get_elements_by_rig_type(TjAx, SuM2, GvIK.RigControl)
for Hh2Z in ePnm:
Hh2Z.set_editor_property('gizmo_name', NYNB)
z3KV.set_control(Hh2Z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO, BWXx):\n YKHO.form.setObjectName(BWXx)",
"def oSgC(YKHO, mWFP):\n YKHO.label.setText(mWFP)",
"def oSgC(YKHO, mWFP):\n YKHO.name = mWFP",
"def oSgC(YKHO, mWFP):\n YKHO.name = mWFP",
"def oSgC(YKHO, mWFP):\n YKHO.name = mWFP",
"def oSgC(YKHO, mWFP):\n YKHO.name = mWFP",
"... | [
"0.6654931",
"0.665077",
"0.6233276",
"0.6233276",
"0.6233276",
"0.6233276",
"0.62133515",
"0.6186329",
"0.6176021",
"0.61085457",
"0.60985386",
"0.6075114",
"0.6064513",
"0.602989",
"0.60044324",
"0.60044324",
"0.59979653",
"0.5991154",
"0.5966577",
"0.5958668",
"0.5947932",... | 0.72762823 | 0 |
Test plot_density works when variables are not strings. | def jJNQ():
nLDc = aeeS('a')
UL3q = aeeS('b')
RRY1 = aeeS('c')
yUgP = jG8h({nLDc: oyIN.random.normal(size=200), UL3q: oyIN.random.normal(size=200)})
OxrN = jG8h({UL3q: oyIN.random.normal(size=200), RRY1: oyIN.random.normal(size=200)})
MPlV = Bueo([yUgP, OxrN])
assert MPlV.size == 3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DF22():\n yUgP = jG8h({'a': oyIN.random.normal(size=200), 'b': oyIN.random.normal(size=200)})\n OxrN = jG8h({'b': oyIN.random.normal(size=200), 'c': oyIN.random.normal(size=200)})\n MPlV = Bueo([yUgP, OxrN])\n assert MPlV.size == 3",
"def InLe(PYiU, xiDN):\n pjtn = PYiU.astype('category')\n ... | [
"0.69290316",
"0.663471",
"0.66155285",
"0.63439524",
"0.62682664",
"0.62335485",
"0.6039654",
"0.5965195",
"0.5898533",
"0.58599687",
"0.58553404",
"0.5821315",
"0.57722414",
"0.5763902",
"0.575905",
"0.57258254",
"0.56899905",
"0.5676665",
"0.5647953",
"0.5618307",
"0.55477... | 0.8159797 | 0 |
Evaluates if last value of cumulative density is 1 | def We7o(c5uu):
nPrm = oyIN.random.normal(0, 1, 1000)
InLe = zBrR(nPrm, custom_lims=c5uu, cumulative=True)[1]
oyIN.testing.assert_almost_equal(round(InLe[-1], 3), 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzER(YKHO, WKvO):\n DDPb = sorted(YKHO.mapping.items(), key=seET.itemgetter(0))\n if WKvO == DDPb[-1][0]:\n return 1.0\n if WKvO in YKHO.values:\n SCAk = 0.0\n for U6D_ in DDPb:\n SCAk += U6D_[1]\n if WKvO == (float(U6D_[0]) if YKHO.isFloat else U6D_[0]):\n ... | [
"0.62856805",
"0.6079002",
"0.59913665",
"0.59863555",
"0.5970395",
"0.58552474",
"0.5818268",
"0.58071697",
"0.5798292",
"0.5723049",
"0.5594832",
"0.55591",
"0.55459666",
"0.55335134",
"0.55319667",
"0.55245006",
"0.5519983",
"0.5513253",
"0.55125177",
"0.5482281",
"0.54407... | 0.66426075 | 0 |
Test error when plot_ess receives an invalid kind. | def rZUm(FYrf):
keok = FYrf.model_1
with trZe.raises(ValueError, match='Invalid kind'):
DEC2(keok, kind='bad kind') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FSzi(FYrf, tpio):\n keok = FYrf.model_1\n with trZe.raises(ValueError, match='invalid coordinates'):\n DEC2(keok, coords={tpio: slice(3)})",
"def bb4m(FYrf, eJTR, B2fa):\n keok = FYrf.model_1\n aNZO = DEC2(keok, kind=eJTR, **B2fa)\n assert oyIN.all(aNZO)",
"def O8R2(FYrf):\n keok =... | [
"0.7833609",
"0.7782447",
"0.7475454",
"0.72946006",
"0.7178626",
"0.6892911",
"0.65514714",
"0.63718724",
"0.63294166",
"0.6299365",
"0.62832236",
"0.6173026",
"0.61534375",
"0.60804224",
"0.60777086",
"0.60461026",
"0.60060775",
"0.588038",
"0.57945573",
"0.5788866",
"0.576... | 0.86423033 | 0 |
Test error plot_dim gets no value for multidim data and wrong value in kind_... args. | def Ki5o(Tlo0, Haor):
TWKw = Tlo0.model_1
with trZe.raises(ValueError):
VuCZ(idata=TWKw, y='y', **Haor) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jO9x():\n with trZe.raises(ValueError):\n vKBo(0)\n with trZe.raises(ValueError):\n vKBo(-1)\n with trZe.raises(ValueError):\n vKBo(0.5)\n assert vKBo(1) == 1\n assert vKBo(2) == 2",
"def brO1(tpio, e5kH, zgsA=False):\n if tpio == '..':\n e5kH['dimension'] = UXoA... | [
"0.6689988",
"0.66741914",
"0.6544386",
"0.6440936",
"0.63534725",
"0.6331811",
"0.6331061",
"0.6313517",
"0.6298531",
"0.6282986",
"0.6238181",
"0.62243193",
"0.6215172",
"0.6210846",
"0.61986494",
"0.6186812",
"0.61598176",
"0.61365914",
"0.61168915",
"0.61040694",
"0.60981... | 0.56645674 | 60 |
Test error plot_dim gets no value for multidim data and wrong value in kind_... args. | def by3r(Tlo0, Haor):
TWKw = Tlo0.model_1
with trZe.raises(ValueError):
Z7lC(idata=TWKw, y='y', **Haor) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jO9x():\n with trZe.raises(ValueError):\n vKBo(0)\n with trZe.raises(ValueError):\n vKBo(-1)\n with trZe.raises(ValueError):\n vKBo(0.5)\n assert vKBo(1) == 1\n assert vKBo(2) == 2",
"def brO1(tpio, e5kH, zgsA=False):\n if tpio == '..':\n e5kH['dimension'] = UXoA... | [
"0.66900426",
"0.6675629",
"0.65438455",
"0.6441141",
"0.63534844",
"0.6331728",
"0.63309777",
"0.6314764",
"0.6299868",
"0.62818897",
"0.6238728",
"0.6224551",
"0.6215577",
"0.62103623",
"0.6198755",
"0.61887836",
"0.61605936",
"0.61369485",
"0.6117895",
"0.6104733",
"0.6099... | 0.593212 | 31 |
Add new configuration variable definition. | def H2v5(YKHO, H5ew: ConfigKey, HyJ9: ConfigValue, sQy1=False, JBZA=None) -> aUsU:
H5ew = yq7h(H5ew)
YKHO.__config_key_to_default_value[H5ew] = HyJ9
if JBZA and sQy1:
YKHO.__add_public(H5ew, JBZA, HyJ9)
elif JBZA:
YKHO.__add_public(H5ew, JBZA)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C4rf(YKHO, SRYB):\n YKHO.var_list.append(SRYB)\n YKHO.var_dict[SRYB.name] = SRYB",
"def C4rf(YKHO, Es0b):\n YKHO.variables.append(Es0b)",
"def C4rf(YKHO, mWFP):\n YKHO.all_variables.add(mWFP)",
"def t8zh(YKHO, SbMi, nUeQ, SRYB, YM51):\n if YKHO.isVariableDefined(SbMi):\n ZfUD = YKHO... | [
"0.6693796",
"0.6546091",
"0.6544875",
"0.63824147",
"0.6350659",
"0.62180173",
"0.62174827",
"0.61873645",
"0.6118258",
"0.6116585",
"0.60919565",
"0.6067429",
"0.6007993",
"0.59886014",
"0.5977048",
"0.5972245",
"0.5938188",
"0.59269404",
"0.5858379",
"0.5843421",
"0.582802... | 0.0 | -1 |
Return the age structure for different school types. | def tCVr(TpAk):
rxhb = {'primary': [6, 7, 8, 9], 'primary_dc': [6, 7, 8, 9], 'lower_secondary': [10, 11, 12, 13], 'lower_secondary_dc': [10, 11, 12, 13], 'upper_secondary': [14, 15, 16, 17], 'secondary': [10, 11, 12, 13, 14, 15, 16, 17], 'secondary_dc': [10, 11, 12, 13, 14, 15, 16, 17]}
return rxhb[TpAk] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NPvQ():\n Tm7I = MgE6.get_under_18_fields()\n pRR2 = ['B01001_007E', 'B01001_008E', 'B01001_009E', 'B01001_010E', 'B01001_011E', 'B01001_031E', 'B01001_032E', 'B01001_033E', 'B01001_034E', 'B01001_035E']\n D_Te = ['B01001_012E', 'B01001_013E', 'B01001_036E', 'B01001_037E']\n SCxX = ['B01001_014E', ... | [
"0.6947901",
"0.63122684",
"0.61381173",
"0.613025",
"0.5967119",
"0.59392357",
"0.59392357",
"0.59290606",
"0.59173524",
"0.59171253",
"0.59039223",
"0.58651125",
"0.5846367",
"0.5805509",
"0.58025783",
"0.5766379",
"0.57584494",
"0.5748183",
"0.57187325",
"0.57023543",
"0.5... | 0.69039196 | 1 |
Generate a presigned URL to share an S3 object | def G3tP(YKHO, frnA, l7rj, tB6k, N850=''):
iNZb = YKHO.__get_client(rolename=frnA)
if N850 == '':
N850 = 60
try:
geh0 = iNZb.generate_presigned_url('get_object', Params={'Bucket': l7rj, 'Key': tB6k}, ExpiresIn=N850)
except Exception as e:
G9jH.error(tTpl)
return False
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3tP(l7rj, tB6k):\n bo34 = G9jH.getLogger('SimpleReplayLogger')\n kZdy = iVGz.client('s3')\n try:\n geh0 = kZdy.generate_presigned_url('get_object', Params={'Bucket': l7rj, 'Key': tB6k}, ExpiresIn=604800)\n except nheh as e:\n bo34.error(f'Unable to generate presigned url for object {... | [
"0.7821295",
"0.7820629",
"0.77589",
"0.76828915",
"0.7660355",
"0.76535964",
"0.7650224",
"0.7648415",
"0.764802",
"0.7609559",
"0.7569693",
"0.7362904",
"0.7331427",
"0.73090607",
"0.71629936",
"0.7114181",
"0.709454",
"0.7061014",
"0.7051139",
"0.70233595",
"0.70090026",
... | 0.7353944 | 12 |
Compute the differential of profiles. | def yk4i(YKHO):
return ieud(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ieud(QhXp):\n Cc00 = []\n a2Lx = []\n for XP5J in QhXp:\n Cc00 += [XP5J.data[:-1] - XP5J.data[1:]]\n a2Lx += [XP5J.description.copy()]\n Csk6 = a2Lx[-1]\n Csk6['profiles'] = [{'operation': 'differential', 'profiles': [WKvO, LVAh]} for WKvO, LVAh in zip(Csk6['profiles'][:-1]... | [
"0.78323376",
"0.5969634",
"0.5788694",
"0.57516634",
"0.5525806",
"0.54919153",
"0.5480214",
"0.5453093",
"0.5439468",
"0.5423237",
"0.5410083",
"0.5397133",
"0.5393573",
"0.53874516",
"0.53673244",
"0.53573513",
"0.5344604",
"0.5338619",
"0.5328365",
"0.5318306",
"0.5306729... | 0.49918902 | 61 |
Compute the alpha profiles of an image. | def CcVF(LNo8, xC3W, fyP7=4, C7_O=None, ppqH='direct'):
SJL4 = SfJq.AlphaTree(LNo8, fyP7, C7_O)
return dNqX(SJL4, xC3W, 'altitude', ppqH, 'alpha profiles') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCxm(LNo8, xC3W, fyP7=4, C7_O=None, ppqH='direct'):\n OvuC = SfJq.MaxTree(LNo8, fyP7, C7_O)\n DWdQ = SfJq.MinTree(LNo8, fyP7, C7_O)\n return dNqX((DWdQ, OvuC), xC3W, 'altitude', ppqH, 'attribute profiles')",
"def WPgr(YKHO, LNo8):\n Aofo = YKHO._alphatest.get(LNo8, None)\n if Aofo is not None:... | [
"0.6113937",
"0.60609186",
"0.5919377",
"0.5722534",
"0.56170744",
"0.56049854",
"0.559196",
"0.5567959",
"0.5530606",
"0.5523508",
"0.5410316",
"0.53699046",
"0.53392905",
"0.5320169",
"0.52881986",
"0.5268456",
"0.5241319",
"0.5239362",
"0.5232057",
"0.52140814",
"0.5190901... | 0.78090036 | 0 |
Compute the differential of profiles. | def ieud(QhXp):
Cc00 = []
a2Lx = []
for XP5J in QhXp:
Cc00 += [XP5J.data[:-1] - XP5J.data[1:]]
a2Lx += [XP5J.description.copy()]
Csk6 = a2Lx[-1]
Csk6['profiles'] = [{'operation': 'differential', 'profiles': [WKvO, LVAh]} for WKvO, LVAh in zip(Csk6['profiles'][:-1], Csk6['prof... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fi7w(YKHO):\n YKHO.rdot = YKHO.v\n YKHO.vdot[:, :] = 0.0\n YKHO.udot[:] = 0.0\n a1PO = ITS7()\n for pDev in YKHO.nlists:\n pDev.separations()\n YKHO.timing['pairsep time'] = ITS7() - a1PO\n a1PO = ITS7()\n if kmc2:\n C9U5.spam_properties(YKHO, YKHO.nl_default, YKHO.h[0:YKH... | [
"0.5971203",
"0.5788713",
"0.5752266",
"0.5526452",
"0.54918736",
"0.5480784",
"0.5450976",
"0.5440364",
"0.54215497",
"0.5411682",
"0.539845",
"0.5395386",
"0.53880584",
"0.5368205",
"0.5356789",
"0.5344068",
"0.53392875",
"0.53276837",
"0.5316497",
"0.5307681",
"0.5250395",... | 0.78331214 | 0 |
__repr__() returns the current stack in string format | def wHJl(YKHO):
return str(YKHO._stack_items) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return str(YKHO.stack)",
"def zAg0(YKHO) -> str:\n Ylbp = '*** top of stack ***\\n'\n for U6D_ in YKHO:\n Ylbp += str(U6D_) + '\\n'\n Ylbp += '*** bottom of stack ***'\n return Ylbp",
"def wHJl(YKHO):\n return 'Stack({} items, top={})'.format(YKHO.length(), YKHO.peek(... | [
"0.90927464",
"0.8334428",
"0.82423747",
"0.82423747",
"0.82423747",
"0.82423747",
"0.80465066",
"0.79723716",
"0.79723716",
"0.79159313",
"0.7776064",
"0.7623544",
"0.757469",
"0.757469",
"0.74444824",
"0.7337535",
"0.70879245",
"0.7063982",
"0.7023257",
"0.7016869",
"0.7002... | 0.8506239 | 1 |
Insert data at the head of the list | def _m17(YKHO, nPrm):
Q6kx = o7DN(nPrm)
if YKHO.is_empty():
YKHO.head = Q6kx
else:
Q6kx.next = YKHO.head
YKHO.head.prev = Q6kx
YKHO.head = Q6kx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QZi3(YKHO, nPrm):\n if YKHO.head is None:\n YKHO.head = Msxl(nPrm)\n else:\n ycBG = YKHO.head\n YKHO.head = Msxl(nPrm)\n YKHO.head.next = ycBG",
"def qIuc(YKHO, nPrm):\n YKHO.head = ZkrF(data=nPrm, next=YKHO.head)",
"def rMGb(YKHO, nPrm):\n Q6kx = YKHO.Node(nPrm, YKH... | [
"0.80973244",
"0.7951913",
"0.79245406",
"0.7804196",
"0.7775218",
"0.76764506",
"0.76438594",
"0.7484366",
"0.74839926",
"0.74473745",
"0.73532736",
"0.73233616",
"0.72975886",
"0.7234521",
"0.7208368",
"0.7197257",
"0.71282685",
"0.70983005",
"0.70690995",
"0.7053719",
"0.7... | 0.78115785 | 3 |
Insert data at the end of the list | def Fpzv(YKHO, nPrm):
Q6kx = o7DN(nPrm)
if YKHO.is_empty():
YKHO.head = Q6kx
else:
DpUl = YKHO.head
while DpUl.next != None:
DpUl = DpUl.next
DpUl.next = Q6kx
Q6kx.prev = DpUl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ze1L(YKHO, nPrm):\n if YKHO.head is None:\n YKHO.head = Msxl(nPrm)\n else:\n ycBG = YKHO.head\n while ycBG.next is not None:\n ycBG = ycBG.next\n ycBG.next = Msxl(nPrm)",
"def tj6L(YKHO, nPrm):\n Q6kx = YKHO.Node(nPrm, None)\n if YKHO.is_empty():\n YK... | [
"0.7639751",
"0.7259109",
"0.7211149",
"0.71401066",
"0.6957028",
"0.69322366",
"0.6928811",
"0.6851634",
"0.6847062",
"0.68295664",
"0.67612195",
"0.6693238",
"0.6661346",
"0.65453005",
"0.6526995",
"0.6468822",
"0.6459189",
"0.6449225",
"0.643898",
"0.6437609",
"0.6435044",... | 0.6909083 | 7 |
Set cells in obstacle grid to be empty Reset zombie and human lists to be empty | def Y7Bk(YKHO):
XYBu.Grid.clear(YKHO)
YKHO._zombie_list = []
YKHO._human_list = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LM9n(YKHO):\n YKHO.obstacles = oyIN.array([])",
"def Y7Bk(YKHO):\n XYBu.Grid.clear(YKHO)\n YKHO._zombie_list = []\n YKHO._human_list = []",
"def SiRx(YKHO):\n YKHO._cells = [[0 for L9B9 in range(YKHO._grid_width)] for Uabx in range(YKHO._grid_height)]\n YKHO.new_tile()\n YKHO.new_tile(... | [
"0.7903046",
"0.77405584",
"0.77031183",
"0.76965207",
"0.76223475",
"0.76102734",
"0.7586986",
"0.74917936",
"0.7486784",
"0.74409497",
"0.7411356",
"0.7393945",
"0.7387012",
"0.73719716",
"0.73582643",
"0.7325802",
"0.72839963",
"0.72313416",
"0.72108424",
"0.7210384",
"0.7... | 0.77138525 | 2 |
Add zombie to the zombie list | def PooL(YKHO, rdlD, fvDH):
YKHO._zombie_list.append((rdlD, fvDH)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PooL(YKHO, LEXu):\n if LEXu not in YKHO._entities['all']:\n YKHO._entities['all'].append(LEXu)\n YKHO._entities['zombies'].append(LEXu)\n YKHO._entities[LEXu._team]['zombies'].append(LEXu)\n LEXu.set_id(YKHO._entities[LEXu._team]['id'])\n YKHO._entities[LEXu._team]['id'] += 1",
"def Poo... | [
"0.8145755",
"0.7627476",
"0.7579104",
"0.59433466",
"0.5911907",
"0.58728415",
"0.58334374",
"0.5747301",
"0.5735042",
"0.5729783",
"0.5714266",
"0.56813896",
"0.56762284",
"0.5671887",
"0.5589427",
"0.5577833",
"0.5557215",
"0.5556951",
"0.553771",
"0.55231005",
"0.55041355... | 0.7598467 | 2 |
Tests the fetchincidents command function. Configures requests_mock instance to generate the appropriate get_alert API response, loaded from a local JSON file. Checks the output of the command function with the expected output. | def nbhX(sisH):
from DarktraceMBs import Client, fetch_incidents
ZG9D = S3ET('test_data/fetch_breach.json')
sisH.get('https://usw1-51965-01.cloud.darktrace.com/modelbreaches?minscore=0.0&starttime=1598932817000', json=ZG9D)
x0hE = Client(base_url='https://usw1-51965-01.cloud.darktrace.com/', verify=Fals... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Weuv(AZgw):\n from GSuiteSecurityAlertCenter import main, demisto\n with open('test_data/fetch_incidents_output.json') as nUeQ:\n g5rG = qQXR.load(nUeQ)\n AZgw.patch.object(demisto, 'command', return_value='fetch-incidents')\n AZgw.patch.object(demisto, 'incidents')\n AZgw.patch.object(de... | [
"0.7969131",
"0.66031027",
"0.6512007",
"0.6510868",
"0.62561655",
"0.61963415",
"0.6071392",
"0.5977369",
"0.5917392",
"0.58950096",
"0.5867629",
"0.58483297",
"0.5763375",
"0.5760544",
"0.573868",
"0.5737973",
"0.57163465",
"0.57150024",
"0.564792",
"0.55759597",
"0.5573936... | 0.66382873 | 1 |
Tests the getcomponent command function. Configures requests_mock instance to generate the appropriate get_alert API response, loaded from a local JSON file. Checks the output of the command function with the expected output. | def lPoX(sisH):
from DarktraceMBs import Client, get_model_component_command
EUlJ = S3ET('test_data/component.json')
sisH.get('https://mock.darktrace.com/components?cid=254503', json=EUlJ)
x0hE = Client(base_url='https://mock.darktrace.com', verify=False, auth=('examplepub', 'examplepri'))
qIxc = {'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y0kD(YKHO):\n YKHO._ucr({'repository/online/component/a': 'yes', 'repository/online/component/a/foo': 'bar'})\n Z9rn = YKHO.u.get_component('a')\n YKHO.assertEqual({'name': 'a', 'activated': True, 'foo': 'bar'}, Z9rn)",
"async def test_api_get_components(ajET: HomeAssistant, tWY2: TestClient) -> Non... | [
"0.6389419",
"0.62974125",
"0.62042284",
"0.61056286",
"0.6094909",
"0.60339713",
"0.5919009",
"0.5902868",
"0.5843941",
"0.58265716",
"0.580231",
"0.5791784",
"0.5760986",
"0.5760415",
"0.5758576",
"0.5755841",
"0.57416505",
"0.56322825",
"0.5626693",
"0.56225264",
"0.561066... | 0.64785403 | 0 |
Tests darktraceacknowledgemodelbreach command function. Configures requests_mock instance to generate the appropriate get_alerts API response, loaded from a local JSON file. Checks the output of the command function with the expected output. | def GRKa(sisH):
from DarktraceMBs import Client, acknowledge_model_breach_command
EUlJ = S3ET('test_data/ack_success.json')
sisH.post('https://mock.darktrace.com/modelbreaches/2509/acknowledge', json=EUlJ)
x0hE = Client(base_url='https://mock.darktrace.com', verify=False, auth=('examplepub', 'examplepri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xqDC(sisH):\n from DarktraceMBs import Client, unacknowledge_model_breach_command\n EUlJ = S3ET('test_data/ack_success.json')\n sisH.post('https://mock.darktrace.com/modelbreaches/2509/unacknowledge', json=EUlJ)\n x0hE = Client(base_url='https://mock.darktrace.com', verify=False, auth=('examplepub'... | [
"0.734845",
"0.66355246",
"0.6195404",
"0.601765",
"0.5740142",
"0.554984",
"0.5549075",
"0.5504253",
"0.5480278",
"0.54372495",
"0.5404577",
"0.53337276",
"0.53322655",
"0.5309999",
"0.5288857",
"0.5279653",
"0.52666646",
"0.5254193",
"0.52487755",
"0.5189913",
"0.5160477",
... | 0.7807596 | 0 |
H.get_num_records() > int Returns the amount of records that the HashTable contains. | def s2rh(YKHO):
return YKHO.__num_records | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n return len(YKHO.records)",
"def szAg(YKHO) -> int:\n return len(YKHO._table)",
"def KyVX(YKHO):\n return len(YKHO.value)",
"def szAg(YKHO) -> int:\n return len(YKHO.table)",
"def szAg(YKHO):\n return len(YKHO._record_list)",
"def NwL4(YKHO):\n return len(YKHO.rows)",
... | [
"0.76367825",
"0.73606455",
"0.7235072",
"0.7232446",
"0.72048914",
"0.7202633",
"0.7187593",
"0.71527404",
"0.71225864",
"0.70539516",
"0.7024726",
"0.7024726",
"0.69932485",
"0.6992165",
"0.6989328",
"0.6983211",
"0.6963624",
"0.6963624",
"0.6961895",
"0.6897513",
"0.688978... | 0.78406215 | 0 |
H.num_empty() > int Returns the number of empty buckets within the HashTable. | def WOME(YKHO):
UHFx = 0
for YRbF in YKHO.__buckets:
if YRbF.size() == 0:
UHFx += 1
return UHFx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u54L(YKHO):\n return YKHO.size",
"def jIAg(YKHO):\n return oyIN.count_nonzero(YKHO.state == KAvf)",
"def u54L(YKHO):\n M4nf = 0\n for mcM9 in YKHO.buckets:\n M4nf += mcM9.length()\n return M4nf",
"def Xv44(Emd4, Gqqd, q24Q):\n lsmZ = [B2Dn for B2Dn in Gqqd if B2Dn[q24Q] == []]\n ... | [
"0.7223129",
"0.7170346",
"0.6768599",
"0.6661506",
"0.6634134",
"0.64890647",
"0.6471",
"0.6471",
"0.6456601",
"0.644988",
"0.6432256",
"0.6418883",
"0.6418883",
"0.6418883",
"0.640796",
"0.6400816",
"0.6400816",
"0.6395663",
"0.6385325",
"0.63835",
"0.63756704",
"0.637567... | 0.873899 | 0 |
Generates features for each address tokens in a windowing fashion. If the token is the first in a string, features for the token and the next token will be generated. If the token is the last token, features for the token and the prior token will be generated. Otherwise, features for the token, the prior token and the ... | def VHbF(d6pt, S_6A):
oDk_ = len(S_6A) - 1
def o1a4(d6pt, ZgWQ='0_'):
UTX6 = S_6A[d6pt]
wFVV = {ZgWQ + 'first_element': True if d6pt == 0 else False, ZgWQ + 'last_element': True if d6pt == oDk_ else False, ZgWQ + 'contains_punctuation': i9Wa.contains_punctuation(UTX6), ZgWQ + 'is_numeric': i9Wa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uuZb(s2mk, LyKa, G1Hx=3):\n UHFx = mBkc()\n for YRbF in range(len(s2mk) - G1Hx + 1):\n UHFx.update(list(E6VQ(s2mk[YRbF:YRbF + G1Hx], 2)))\n for G1Hx in UHFx:\n LyKa['token_pair=' + G1Hx[0] + '__' + G1Hx[1]] = UHFx[G1Hx]",
"def qRnK(s2mk, LyKa):\n UHFx = mBkc(s2mk)\n for YRbF in U... | [
"0.63075894",
"0.6129654",
"0.58821887",
"0.5819111",
"0.58079755",
"0.57439685",
"0.57193315",
"0.57184815",
"0.5661237",
"0.56576747",
"0.56494534",
"0.56293696",
"0.56210554",
"0.54964185",
"0.54526156",
"0.5416938",
"0.53245205",
"0.5277088",
"0.52682924",
"0.52682924",
"... | 0.6109125 | 2 |
A view to return the index page | def d6pt():
return TvZl('index.html', page_title='Home') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt(YKHO):\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return... | [
"0.8632587",
"0.8630172",
"0.86053205",
"0.86032397",
"0.86032397",
"0.85239464",
"0.85069096",
"0.8503719",
"0.8490341",
"0.8490341",
"0.84486765",
"0.8410816",
"0.8402631",
"0.84025425",
"0.83900285",
"0.8381489",
"0.8377479",
"0.83681357",
"0.836477",
"0.836477",
"0.836477... | 0.828708 | 72 |
A view to return the product's specifications, ratings and reviews. | def zBb5(Mc9N):
Lx3t = qm8v.db.products.find_one({'_id': aA6B(Mc9N)})
fyvm = Lx3t['name'] + ' Review'
if cuiw.get('user'):
c5ow = '{} {}'.format(cuiw['user']['first_name'], cuiw['user']['last_name'])
else:
c5ow = None
"\n Gets the product's reviews from the database and sorts them... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mbwC(QePW, Mc9N):\n Lx3t = Iofl(msfn, pk=Mc9N)\n AQap = oiyK()\n kSgn = E1cg.objects.filter(product_id=Mc9N).order_by('-created_at')\n QpfX = {'product': Lx3t, 'review_form': AQap, 'reviews': kSgn}\n return _1tc(QePW, 'products/product_detail.html', QpfX)",
"def vd5C(QePW):\n Ldyl = msfn.ob... | [
"0.6996843",
"0.6798685",
"0.6740884",
"0.6487296",
"0.63718075",
"0.6234368",
"0.62328255",
"0.6209164",
"0.6205172",
"0.6085703",
"0.60809016",
"0.59941125",
"0.59592026",
"0.59408987",
"0.5917631",
"0.5904691",
"0.58878875",
"0.58796954",
"0.5846282",
"0.5839149",
"0.58136... | 0.65677625 | 3 |
A view to return the contact page and add the data inputted into the contact form to the database. Code for returning a success status is from | def Mxk0():
if QePW.method == 'POST':
qm8v.db.contact.insert_one(QePW.form.to_dict())
return pz3A(success=True)
return TvZl('contact.html', page_title='Contact Us') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RyYT(QePW):\n if QePW.method == 'POST':\n if QePW.POST.get('fname') and QePW.POST.get('emailadd'):\n m8z6 = U2Av()\n m8z6.full_name = QePW.POST.get('fname')\n m8z6.email = QePW.POST.get('emailadd')\n m8z6.phone_number = QePW.POST.get('pnumber')\n ... | [
"0.76525766",
"0.7507139",
"0.747341",
"0.7392914",
"0.7314133",
"0.7299901",
"0.729634",
"0.7286512",
"0.7274228",
"0.7271557",
"0.72696745",
"0.71954966",
"0.71805155",
"0.71732044",
"0.7143015",
"0.71397936",
"0.71160114",
"0.7111663",
"0.71041507",
"0.7102055",
"0.7082471... | 0.7477757 | 2 |
A view to return all the products and sort and paginates them. | def RHZa():
AwKv = QePW.args.get('sort')
'\n Sort method is from https://docs.mongodb.com/manual/reference/\n method/cursor.sort/index.html\n '
if AwKv:
Ldyl = list(qm8v.db.products.find().sort(hIPY(AwKv)))
else:
Ldyl = list(qm8v.db.products.find().sort('name', 1))
'\n Pa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GDRI(QePW):\n Ldyl = msfn.objects.all()\n oDn_ = NIbP(Ldyl, 6)\n klRQ = QePW.GET.get('page', 1)\n B2Dn = oDn_.page(klRQ)\n 'render a products html page and within that page we will have access to products, so all_products'\n if B2Dn.has_next():\n xsYE = f'?page={B2Dn.next_page_number()... | [
"0.78415227",
"0.7804236",
"0.78009796",
"0.77935904",
"0.76946706",
"0.7614589",
"0.7388731",
"0.7384821",
"0.73108244",
"0.72626334",
"0.72320044",
"0.7219788",
"0.7207243",
"0.7188563",
"0.7100759",
"0.70512015",
"0.70275277",
"0.70034856",
"0.6975498",
"0.6958376",
"0.693... | 0.75090516 | 6 |
A view to return the add review page, and add the data inputted to the database and update the product's ratings. | def mUhk(Mc9N):
if QePW.method == 'POST':
'\n Gets the next search perameter from the URL. Code is from https://\n blog.tecladocode.com/handling-the-next-url-when-logging-in-with-flask/\n '
xsYE = QePW.form.get('next')
"\n Gets the product's ratings from the datab... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mUhk(QePW, Mc9N):\n Lx3t = Iofl(msfn, pk=Mc9N)\n if QePW.method == 'POST':\n AQap = oiyK(QePW.POST)\n if AQap.is_valid():\n Slbv = AQap.save(commit=False)\n Slbv.product = Lx3t\n Slbv.user = QePW.user\n Slbv.save()\n yEHD.info(QePW, 'Yo... | [
"0.7310235",
"0.70862895",
"0.7046601",
"0.70265406",
"0.6982685",
"0.6872833",
"0.6868899",
"0.6792098",
"0.6771987",
"0.67061275",
"0.66032046",
"0.65896595",
"0.65663975",
"0.6541818",
"0.6537487",
"0.650807",
"0.64675456",
"0.63978475",
"0.6390451",
"0.6354175",
"0.628525... | 0.75078535 | 0 |
Returns the 404 page if the HTTP request returns a status of 404. | def m7kB(tTpl):
return TvZl('404.html', page_title=404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7kB(tTpl):\n return (TvZl('404.html'), 404)",
"def m7kB(tTpl):\n return (TvZl('404.html'), 404)",
"def m7kB(tTpl):\n return (TvZl('404.html'), 404)",
"def RQdI(YKHO):\n geh0 = YKHO.render_template('404.html')\n geh0.status_code = 404\n return geh0",
"def m7kB(tTpl):\n return (TvZl... | [
"0.820297",
"0.81907016",
"0.81907016",
"0.81696653",
"0.81394196",
"0.8139382",
"0.8113683",
"0.80791813",
"0.8055772",
"0.80483097",
"0.8005534",
"0.79955244",
"0.7991982",
"0.79918337",
"0.796498",
"0.79437083",
"0.7919626",
"0.7903246",
"0.7903246",
"0.7903246",
"0.790324... | 0.81470186 | 4 |
Get the date that results on incrementing given date an interval of time in time unit. | def NGqF(YKHO, _c1T, PXGI, VOlW):
if PXGI == 'days':
return _c1T + fCoM(days=VOlW)
elif PXGI == 'weeks':
return _c1T + fCoM(weeks=VOlW)
elif PXGI == 'months':
return _c1T + enlf(months=VOlW)
elif PXGI == 'years':
return _c1T + enlf(years=VOlW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jeHq(W_2Y, VOlW):\n if VOlW == 'day':\n return W_2Y + fCoM(days=1)\n elif VOlW == 'week':\n return W_2Y + fCoM(days=7)\n elif VOlW == 'month':\n jzdc = W_2Y + fCoM(days=31)\n xD8K = jzdc.replace(day=1)\n return xD8K",
"def Scik(_c1T):\n return _c1T + qcWV.timede... | [
"0.6770886",
"0.6253465",
"0.6253465",
"0.61104363",
"0.59617144",
"0.5867873",
"0.5672376",
"0.56212735",
"0.5599127",
"0.5596122",
"0.5572379",
"0.5560656",
"0.5555038",
"0.55524975",
"0.5514257",
"0.5491478",
"0.5470475",
"0.5466801",
"0.53736734",
"0.5371335",
"0.5349574"... | 0.7166535 | 0 |
Get next date starting from given date when an order is generated. | def hxeh(YKHO, zFiD, kepv):
YKHO.ensure_one()
jeHq = V_D6.Date.from_string(YKHO.start_date)
while jeHq <= kepv:
jeHq = YKHO.__get_next_term_date(jeHq, zFiD.ordering_unit, zFiD.ordering_interval)
return jeHq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Scik(_c1T):\n return _c1T + qcWV.timedelta(days=1)",
"def Scik(_c1T):\n return _c1T + qcWV.timedelta(days=1)",
"def xJKc(YKHO):\n pass",
"def next(YKHO):\n return YKHO.from_date(YKHO.date_b)",
"def bIge(_c1T):\n jQ3Z = GFmo()\n jQ3Z = jQ3Z[jQ3Z['ReleaseDate'] > _c1T]\n return jQ3Z[... | [
"0.7211684",
"0.7211684",
"0.7066712",
"0.69292116",
"0.6731373",
"0.659315",
"0.650414",
"0.64949405",
"0.6204865",
"0.6182197",
"0.6177484",
"0.6140003",
"0.61308414",
"0.6099851",
"0.60817677",
"0.6060687",
"0.59800863",
"0.59800863",
"0.5957296",
"0.5931711",
"0.5901977",... | 0.7877699 | 0 |
Get the shape of a tensor as a list, since that's more convenient for our tests. | def P9ZJ(a1PO):
return [WKvO.value for WKvO in a1PO.shape] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kbUw(vhpA):\n return vhpA.get_shape().as_list()",
"def kbUw(FRUf):\n return FRUf.get_shape().as_list()",
"def tgIT(vhpA):\n SCgo, NAnJ = (vhpA.shape.as_list(), ZylS.shape(vhpA))\n\n def EB8l(cXyw):\n return NAnJ[cXyw] if SCgo[cXyw] is None else SCgo[cXyw]\n ROpF = map(EB8l, range(vhpA... | [
"0.89874387",
"0.8656501",
"0.85169256",
"0.8019334",
"0.7996765",
"0.7996765",
"0.7947956",
"0.7947956",
"0.7909824",
"0.78684056",
"0.78287655",
"0.78047776",
"0.7779929",
"0.77600527",
"0.775132",
"0.77180386",
"0.7624824",
"0.75823075",
"0.7566802",
"0.752512",
"0.7360046... | 0.79598343 | 6 |
Returns the output_state tensor that the encoder produces. | def Ykhp(YKHO, g4y1, gktT):
if len(g4y1.shape) != 3:
raise ValueError('inputs must be a rank 3 tensor, but rank is {}'.format(len(g4y1.shape)))
if len(gktT.shape) != 1:
raise ValueError('seq_lengths must be a rank 1 tensor, but rank is {}'.format(len(gktT.shape)))
if not YKHO.built:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SHQ6(YKHO, RQrb):\n hlel = ZylS.nn.relu(ZylS.matmul(RQrb, YKHO.Wo) + YKHO.bo)\n return hlel",
"def hlel(YKHO, QTBn):\n MKlR, a1PO = QTBn\n return MKlR",
"def jeoG():\n QTBn = ZylS.nest.map_structure(ZylS.convert_to_tensor, MnDN.initial_state())\n PTtV('state', QTBn)\n return tuple(ZylS... | [
"0.6974027",
"0.683681",
"0.67434144",
"0.6716117",
"0.67057365",
"0.66798997",
"0.654553",
"0.65094966",
"0.65055996",
"0.64833516",
"0.64272326",
"0.63886744",
"0.6357259",
"0.6310672",
"0.6298062",
"0.62845165",
"0.6268219",
"0.6266742",
"0.62571096",
"0.6247459",
"0.62324... | 0.0 | -1 |
Converts a naive utc datetime to the given timezone. | def C9Yl(JRYC, yl4j):
return JRYC.replace(tzinfo=FXGE.utc).astimezone(yl4j) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FPLx(JRYC: datetime, pner: tzinfo=wyKz) -> qcWV:\n if JRYC.tzinfo is None:\n raise ValueError(f'{JRYC} is a naive datetime')\n return JRYC.astimezone(pner)",
"def S0gT(JRYC):\n if JRYC.tzinfo is None:\n return JRYC.replace(tzinfo=FXGE.utc)\n else:\n return JRYC.astimezone(FXG... | [
"0.7590451",
"0.74446446",
"0.7297905",
"0.7117434",
"0.7117434",
"0.7117434",
"0.708207",
"0.69588786",
"0.69359374",
"0.6924315",
"0.69048846",
"0.6879887",
"0.68630034",
"0.6835325",
"0.6830528",
"0.6818334",
"0.679031",
"0.6763398",
"0.6715267",
"0.6715267",
"0.6710031",
... | 0.6534879 | 29 |
Converts from a local time to UTC using timezone translation. The returned time does not have any timezone information. This allows comparison with times coming from the datastore (which do not have timezone either). | def QYpg(JRYC, yl4j):
oMjx = yl4j.localize(JRYC)
h25_ = oMjx.astimezone(FXGE.utc)
return h25_.replace(tzinfo=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q4GF(a1PO, FEXa):\n krBy = FEXa.localize(a1PO, is_dst=None)\n AfX1 = krBy.astimezone(FXGE.utc)\n return AfX1",
"def biyN(rDtf):\n return FXGE.utc.localize(rDtf)",
"def biyN(rDtf):\n return FXGE.utc.localize(rDtf)",
"def KR93(shus):\n shus = shus.replace(tzinfo=yl4j.tzlocal())\n retur... | [
"0.78669256",
"0.75979966",
"0.75979966",
"0.75316834",
"0.72608656",
"0.7165947",
"0.7165947",
"0.7165947",
"0.70222783",
"0.6850223",
"0.6767527",
"0.6754307",
"0.67309594",
"0.65838164",
"0.6573457",
"0.65642244",
"0.6556976",
"0.6552658",
"0.63775647",
"0.63662755",
"0.63... | 0.62997323 | 24 |
Returns true if self[k]>=other[k] for all k and self[k]>other[k] for at least one k | def vIBh(YKHO, Elif):
assert isinstance(Elif, jHnl)
UUTQ = 0
_ger = 0
for G1Hx in range(len(YKHO.vec)):
if YKHO.vec[G1Hx] >= Elif.vec[G1Hx]:
UUTQ += 1
if YKHO.vec[G1Hx] > Elif.vec[G1Hx]:
_ger += 1
return UUTQ == len(YKHO.vec) and _ger > 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TPjt(YKHO, Elif):\n if not set(YKHO.keys()) <= set(Elif.keys()):\n return False\n for BWXx, WXkz in dict.items(YKHO):\n UHFx = Elif.get(BWXx, 0)\n if WXkz > UHFx:\n return False\n return True",
"def TvI6(YKHO, Elif):\n return YKHO.x > Elif.x and YKHO.y > Elif.y",
... | [
"0.76571864",
"0.7632618",
"0.75925153",
"0.7556515",
"0.74576145",
"0.73623514",
"0.73582435",
"0.73275805",
"0.73271585",
"0.73020875",
"0.7285073",
"0.72829115",
"0.72829115",
"0.7276297",
"0.7272488",
"0.72532785",
"0.7247389",
"0.7224967",
"0.7206441",
"0.7190874",
"0.71... | 0.71666664 | 21 |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" | def type(YKHO) -> str:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '... | [
"0.7919597",
"0.7919597",
"0.78673583",
"0.78673583",
"0.78673583",
"0.78673583",
"0.78673583",
"0.77080876",
"0.7553674",
"0.72835004",
"0.7059125",
"0.69798136",
"0.6922035",
"0.687112",
"0.6729629",
"0.6704585",
"0.66538656",
"0.6646474",
"0.65501463",
"0.6543157",
"0.6543... | 0.6639466 | 59 |
Returns the input placeholder for this model. | def g4y1(YKHO):
return YKHO.inputs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HMZy(YKHO):\n return YKHO._placeholder",
"def HMZy(YKHO) -> str | None:\n return YKHO._underlying.placeholder",
"def Y0sg(YKHO):\n return YKHO.embedding_layer.get_embedding_placeholder()",
"def input(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'input')",
"def NYDs(YKHO):\n WKvO = [... | [
"0.7951934",
"0.7688572",
"0.7115625",
"0.68849885",
"0.68465316",
"0.67219335",
"0.657723",
"0.6455216",
"0.64099014",
"0.6260939",
"0.6260939",
"0.6241361",
"0.613735",
"0.613735",
"0.613735",
"0.613735",
"0.60598016",
"0.5953689",
"0.5953689",
"0.5953689",
"0.5953689",
"... | 0.0 | -1 |
Returns the output tensor of this model. | def o4Jx(YKHO):
return YKHO.outputs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LI2u(YKHO, **B2fa):\n with ZylS.variable_scope(YKHO.layer_scope):\n return YKHO.out",
"def QEIX(YKHO, d6pt):\n T8hE = YKHO.model.get_output_details()[d6pt]\n vhpA = oyIN.squeeze(YKHO.model.get_tensor(T8hE['index']))\n return vhpA",
"def QEIX(YKHO, d6pt):\n T8hE = YKHO.interpreter.get_... | [
"0.804356",
"0.7989696",
"0.7676874",
"0.75652486",
"0.7461065",
"0.7426907",
"0.7180326",
"0.71673185",
"0.71582687",
"0.7055384",
"0.7033459",
"0.7003713",
"0.7000677",
"0.6976225",
"0.6976225",
"0.6976225",
"0.6951136",
"0.69420564",
"0.69420236",
"0.69149715",
"0.68973136... | 0.63852906 | 68 |
Returns the default collector settings | def yDgW(YKHO):
GPtr = super(vCRb, YKHO).get_default_config()
GPtr.update({'host': 'localhost', 'port': 8080, 'path': 'bind', 'publish': ['resolver', 'server', 'zonemgmt', 'sockets', 'memory'], 'publish_view_bind': False, 'publish_view_meta': False})
return GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yDgW(YKHO):\n GPtr = super(leyK, YKHO).get_default_config()\n GPtr.update({'enabled': 'True', 'fs': ',', 'timeout': 300})\n return GPtr",
"def qimH():\n return {}",
"def yDgW(YKHO):\n GPtr = super(iwOa, YKHO).get_default_config()\n GPtr.update({'url': lMln, 'path': 'dropwizard'})\n ret... | [
"0.70514023",
"0.7008024",
"0.69490683",
"0.6713433",
"0.65743333",
"0.65309024",
"0.6521635",
"0.6515402",
"0.6466526",
"0.6447688",
"0.641337",
"0.6397818",
"0.6380512",
"0.63683224",
"0.63517016",
"0.6331759",
"0.63120294",
"0.62353724",
"0.6231899",
"0.62074906",
"0.62016... | 0.6357208 | 14 |
Gets a collection of `InputExample`s for the train set. | def rNg5(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGUt(YKHO, PU1l):\n return PU1l",
"def rNg5(YKHO):\n raise NotImplementedError()",
"def rNg5(YKHO, eZ_W):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):\n Artt = '%s-%s' % (TG_K, YRbF)\n l5Ny = LihS[0]\n UX... | [
"0.73503816",
"0.7174346",
"0.7127727",
"0.65599126",
"0.6421691",
"0.6405246",
"0.63429385",
"0.62904894",
"0.6282127",
"0.6252822",
"0.62496114",
"0.6233181",
"0.6222054",
"0.6222054",
"0.62070256",
"0.62070256",
"0.62070256",
"0.62070256",
"0.62070256",
"0.62070256",
"0.62... | 0.6248022 | 24 |
Gets a collection of `InputExample`s for the dev set. | def JdXm(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JdXm(YKHO, eZ_W):\n raise NotImplementedError()",
"def vGUt(YKHO, PU1l):\n return PU1l",
"def X2wT(YKHO, sEAN):\n return YKHO.fam.c_get_examples(YKHO, sEAN)",
"def JdXm(YKHO):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):... | [
"0.68112403",
"0.6588688",
"0.655683",
"0.6552607",
"0.64272827",
"0.63816285",
"0.6255956",
"0.61930686",
"0.61160946",
"0.6094262",
"0.6054992",
"0.6051947",
"0.5989807",
"0.5927489",
"0.5922901",
"0.5920675",
"0.59200704",
"0.59155166",
"0.59155166",
"0.59155166",
"0.59155... | 0.5994604 | 25 |
the `minimum_pair()` method returns the key with the smallest key value. | def ykMk(YKHO):
if YKHO.node == None:
return None
kMLo = YKHO.node
while kMLo.left.node != None:
kMLo = kMLo.left.node
return (kMLo.key, kMLo.vp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def min(YKHO):\n XP5J = YKHO._find_min()\n ZfUD = XP5J.element()\n return (ZfUD._key, ZfUD._value)",
"def Z23B(YKHO):\n return YKHO.__keys[YKHO.__pq[1]]",
"def XcNI(YKHO):\n if YKHO.is_empty():\n return None\n else:\n XP5J = YKHO.first()\n return (XP5J.key(), XP5J.value()... | [
"0.7729546",
"0.7601165",
"0.7571255",
"0.74204826",
"0.70108306",
"0.6998421",
"0.6998421",
"0.69737405",
"0.6963827",
"0.6931632",
"0.68233913",
"0.6796629",
"0.6789679",
"0.67577285",
"0.6697455",
"0.66361374",
"0.6608254",
"0.65280783",
"0.65143776",
"0.64937127",
"0.6492... | 0.7379227 | 4 |
The `is_balanced()` method returns `True` if the `AVLTree` instance is balanced, otherwise it returns `False` | def RTY9(YKHO):
if YKHO.node is None:
return True
yv6U = YKHO.node.left.height
lMD3 = YKHO.node.right.height
if abs(yv6U - lMD3) <= 1 and YKHO.node.left.is_balanced() is True and (YKHO.node.right.is_balanced() is True):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RTY9(YKHO):\n\n def x8h4(Q6kx):\n \"\"\"Calculate the height of a node\"\"\"\n if not Q6kx:\n return 0\n return 1 + max(x8h4(Q6kx.left), x8h4(Q6kx.right))\n\n def b8bL(Q6kx):\n \"\"\"Check if the subtree at a node is balanced\"\"\"\n if not Q6kx:\n ... | [
"0.87200665",
"0.8436678",
"0.8128097",
"0.8081375",
"0.7991474",
"0.79340243",
"0.7668254",
"0.7639478",
"0.7490788",
"0.7442843",
"0.7398798",
"0.73071927",
"0.729866",
"0.7256305",
"0.71271926",
"0.71162933",
"0.71014297",
"0.704977",
"0.6969009",
"0.6582418",
"0.6549399",... | 0.8388701 | 2 |
Plot the bin smeared degree distribution with loglog scales (log scale in each axes). | def JErW(YKHO, **B2fa):
return YKHO.plot(plot=qjJM.loglog, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hQhe(nnVk):\n exwG, Pyrc = qjJM.mlab.hist(V6IE(nnVk), bins=100, normed=True)\n P0s3 = Pyrc + (Pyrc[1] - Pyrc[0]) / 2.0\n qjJM.plot(P0s3, Zxt2.log(exwG + 0.0001))",
"def jEOx(YKHO):\n KaIg = 1.0 / 8\n RLM9 = 64\n T4Wy = 8\n ywwl = 8192\n C7Ls = oxOY.synthesizeNTF(T4Wy, RLM9, 1, 1.5, Ka... | [
"0.68565935",
"0.65770024",
"0.6438088",
"0.64292216",
"0.6366433",
"0.634986",
"0.6334117",
"0.6293424",
"0.6129427",
"0.6070283",
"0.60447586",
"0.59822625",
"0.59817094",
"0.5981141",
"0.59452957",
"0.59248275",
"0.5889351",
"0.58837104",
"0.5875252",
"0.58603287",
"0.5837... | 0.6016857 | 11 |
Test suite name. If not set, constructed from child suite names. | def mWFP(YKHO):
return YKHO._name or ' & '.join((KCHu.name for KCHu in YKHO.suites)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bAmk(YKHO) -> str:\n return qe4Y.get(YKHO, 'test_suite_name')",
"def bAmk(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'test_suite_name')",
"def kFeU(YKHO):\n return 'suite'",
"def NxB3():\n return DuvM.TestLoader().loadTestsFromName(__name__)",
"def J16h(t0rn, fjjM):\n if 'we... | [
"0.7832841",
"0.7614384",
"0.69929385",
"0.6588102",
"0.6545503",
"0.6432944",
"0.64318955",
"0.63373953",
"0.63202083",
"0.6183912",
"0.61058325",
"0.609044",
"0.60772276",
"0.6053787",
"0.59699047",
"0.59239507",
"0.58970416",
"0.5816226",
"0.5809471",
"0.5777142",
"0.57742... | 0.6596506 | 3 |
Select test cases and remove others from this suite. Parameters have the same semantics as ``suite``, ``test``, ``include``, and ``exclude`` command line options. All of them can be given as a list of strings, or when selecting only one, as a single string. Child suites that contain no tests after filtering are automat... | def filter(YKHO, AS1l=None, vXEP=None, HTuG=None, zeih=None):
YKHO.visit(kEyY(AS1l, vXEP, HTuG, zeih)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(OaeV, a4gM, DNHh, SC2F, YX0Z, DWff, **B2fa):\n OaeV.obj.update(**B2fa)\n OaeV.obj.post_process()\n _63S = OaeV.obj['namespace']\n RBm8 = OaeV.obj['config']\n ltHt.welcome()\n ltHt.echo(f'testsuite namespace: {_63S}', fg='red')\n ltHt.echo('loading testsuites:')\n ZI14 = 'benchmark.... | [
"0.67708784",
"0.6173673",
"0.5900376",
"0.5871603",
"0.56635",
"0.56022185",
"0.5554254",
"0.5472078",
"0.54648423",
"0.5464024",
"0.5458889",
"0.5369332",
"0.5340196",
"0.5292976",
"0.52650857",
"0.5257708",
"0.5242193",
"0.5234591",
"0.52331346",
"0.52240175",
"0.5188008",... | 0.60355717 | 2 |
Get the pseudoCB atom for a GLY residue. | def jDez(YKHO, kUkU):
if kUkU.get_resname() != 'GLY':
raise ValueError(f'Residue must be GLY, but is {kUkU.get_resname()}.')
else:
YN6Q = YKHO._hse_cb_complex._get_gly_cb_vector(kUkU)
return YN6Q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def knih(YKHO, kUkU):\n eb3W = kUkU.id[1]\n if kUkU.get_resname() == 'GLY':\n raise ValueError(f'Residue cannot be GLY.')\n else:\n GJmV = YKHO._residue_from_residue_id(eb3W - 1)\n ihOX = YKHO._residue_from_residue_id(eb3W + 1)\n if GJmV is None or ihOX is None:\n re... | [
"0.78325737",
"0.7113613",
"0.52236015",
"0.52119106",
"0.51150405",
"0.49233982",
"0.49223512",
"0.49215364",
"0.49132618",
"0.4906875",
"0.4906875",
"0.4902496",
"0.4895736",
"0.48214865",
"0.48156035",
"0.4802414",
"0.47920427",
"0.47886795",
"0.47800586",
"0.47420365",
"0... | 0.7825419 | 1 |
Yields first the header, then each of the data rows. | def Vs4Q(YKHO):
yield from YKHO.url.generator | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fEXb():\n for rdlD in nPrm:\n WJI9.writerow(rdlD)\n fEXb = po93()\n yield fEXb",
"def FkCx(YKHO):\n WRKq = iter(YKHO)\n MOPg = next(WRKq)\n for rdlD in WRKq:\n yield dict(zip(MOPg, rdlD))",
"def Vs4Q(YKHO):\n for rdlD in YKHO.rows:\n yield rdlD",
"def L5Y_(YKHO):... | [
"0.674211",
"0.6493197",
"0.64797705",
"0.6459921",
"0.6302429",
"0.62948453",
"0.6278754",
"0.626452",
"0.62478673",
"0.6205198",
"0.62003225",
"0.614916",
"0.60908943",
"0.60888857",
"0.608187",
"0.6080925",
"0.60569984",
"0.6003971",
"0.5990368",
"0.5983982",
"0.5980166",
... | 0.0 | -1 |
Return a Geopandas dataframe | def f2dP(YKHO, *qIxc, **B2fa):
try:
return YKHO.url.geoframe(*qIxc, **B2fa)
except AttributeError:
pass
try:
return YKHO.url.geo_generator.geoframe(*qIxc, **B2fa)
except AttributeError:
pass
try:
return YKHO.url.generator.geoframe(*qIxc, **B2fa)
except Att... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tvv2(YKHO) -> quUU.GeoDataFrame:\n return YKHO.just_geometry_gdf.join(YKHO.df)",
"def Tvv2(YKHO) -> quUU.GeoDataFrame:\n pmON = str(OyQC('geojson/FeatureCollection02.json'))\n jQ3Z = quUU.read_file(pmON)\n return jQ3Z",
"def XVHR(eHpk, xDcj, NArs, Fmty, fSzI):\n nPrm = SsVK.GeoDataFrame.from... | [
"0.7928611",
"0.76375765",
"0.75570726",
"0.7300769",
"0.7275375",
"0.72440225",
"0.7181948",
"0.6891536",
"0.6874655",
"0.6862073",
"0.68611616",
"0.6795534",
"0.6595153",
"0.6593963",
"0.6541202",
"0.65319544",
"0.65306574",
"0.6527803",
"0.6518752",
"0.6422458",
"0.6418918... | 0.0 | -1 |
Return a list of the names of the columns of this file, or None if the header is not defined. This should only return headers if the headers are unambiguous, such as for database tables, or shapefiles. For other files, like CSV and Excel, the header row can not be determined without analysis or specification. | def MOPg(YKHO):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MOPg(YKHO):\n return [iVRZ.header if iVRZ else '' for iVRZ in YKHO.columns]",
"def WBPg(YKHO):\n return [Z9rn.name for Z9rn in YKHO.columns]",
"def f4Bp(YKHO) -> bdIy[str]:\n return YKHO._column_headers",
"def fo5A(YKHO):\n with open(YKHO.file_path, 'rt', encoding=YKHO._encoding) as z36O:\n ... | [
"0.7304714",
"0.72664815",
"0.7196651",
"0.7178035",
"0.6863658",
"0.682618",
"0.6809821",
"0.67719907",
"0.6700195",
"0.66852987",
"0.6573285",
"0.65245897",
"0.65049636",
"0.6484658",
"0.6461692",
"0.64229274",
"0.6356698",
"0.63564545",
"0.63534355",
"0.6347353",
"0.630171... | 0.5972506 | 59 |
Add a suffix to a word by applying the rules above | def yJjD(GIN8, ZI14):
ZI14, VWe_, wOmD = ZI14.partition(' ')
Tdem = DDAp(GIN8, ZI14)
return Tdem + VWe_ + wOmD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3AH(YKHO, GIN8, ZI14, m1Oc):\n assert GIN8.endswith(ZI14), \"Given word doesn't end with given suffix\"\n if ZI14 == '':\n return GIN8 + m1Oc\n else:\n return GIN8[:-len(ZI14)] + m1Oc",
"def rssD(eJh7, gv2B, BdN0):\n ...",
"def yJjD(mWFP: str, ZI14: str):\n return f'{mWFP}_{ZI... | [
"0.7675966",
"0.7037537",
"0.67314637",
"0.66851276",
"0.65693575",
"0.64829046",
"0.6464637",
"0.6428958",
"0.6415108",
"0.6364623",
"0.6334503",
"0.6291326",
"0.6290363",
"0.627092",
"0.6219077",
"0.61401904",
"0.6103067",
"0.61016595",
"0.60212827",
"0.600404",
"0.6002085"... | 0.7895602 | 0 |
Return an executable string representation. See also `abstractproperty.characteristic.Characteristic.vrepr`. >>> from cascada.bitvector.core import Constant >>> from cascada.bitvector.operation import RotateLeft >>> from cascada.differential.difference import XorDiff >>> from cascada.differential.chmodel import ChModel... | def cGoW(YKHO, c3jU=False):
return super().vrepr(c3jU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n XP5J = ' if {0!r}'.format(YKHO.precondition) if YKHO.precondition else ''\n YRbF = ' ignore-exit-code' if YKHO.ignore_exit_code else ''\n return '<Command {0!r}{1}{2}>'.format(YKHO.command, XP5J, YRbF)",
"def aRbh(YKHO):\n KCHu = 'Constellation of length {} and degree {}'.format(YKH... | [
"0.5974431",
"0.5862134",
"0.5839019",
"0.5835061",
"0.58188087",
"0.56715506",
"0.5663981",
"0.5643613",
"0.56324846",
"0.5631347",
"0.562269",
"0.56150746",
"0.5612735",
"0.55910075",
"0.5574405",
"0.55671483",
"0.5550013",
"0.55490816",
"0.5522368",
"0.55087125",
"0.550697... | 0.0 | -1 |
Energy per atom in eV. | def VYvU(YKHO):
return YKHO._energy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYvU(YKHO):\n YKHO.E = -oyIN.sum(YKHO.phi) + 0.5 * YKHO.mass * oyIN.sqrt(YKHO.v_x ** 2 + YKHO.v_y ** 2)",
"def M6MN(YKHO):\n return YKHO.momentum * YKHO.momentum / (2 * YKHO.mass)",
"def VYvU(YKHO):\n FJKp = 0.0\n for YRbF in range(0, YKHO.natoms - 1):\n for r845 in range(YRbF + 1, YKHO.... | [
"0.7791839",
"0.764697",
"0.7605757",
"0.76004887",
"0.7397893",
"0.7394023",
"0.7364044",
"0.7360068",
"0.73465294",
"0.7333139",
"0.73306125",
"0.7283513",
"0.7253059",
"0.7193848",
"0.7183225",
"0.71806055",
"0.71697944",
"0.71661717",
"0.71562505",
"0.7147651",
"0.7147651... | 0.7263989 | 12 |
Energy per nominal composition. i.e. energy per Fe2O3, not Fe4O6. | def rnSv(YKHO):
return YKHO._energy_pfu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYvU(YKHO):\n dBA9, lcbZ, tTpl = (YKHO.nocc, YKHO.gmo, YKHO.e)\n b10C = 0.0\n for YRbF in range(dBA9):\n for r845 in range(dBA9):\n for jzdc in range(dBA9, len(tTpl)):\n for Fg_i in range(dBA9, len(tTpl)):\n b10C += 1 / 4.0 * lcbZ[YRbF, r845, jzdc, F... | [
"0.6869447",
"0.67069787",
"0.65457",
"0.6501448",
"0.6309044",
"0.62388927",
"0.6220663",
"0.6209862",
"0.6209211",
"0.62055206",
"0.61640006",
"0.6124102",
"0.61111957",
"0.6100091",
"0.6052811",
"0.60252595",
"0.60144055",
"0.60112363",
"0.5994792",
"0.59767425",
"0.596925... | 0.59507895 | 23 |
Free energy function for the phase, can be defined to be anything, by default it just returns the phase's ground state energy. | def rZnx(YKHO, Kt_s=0, V6IE=0, fHXl={}):
return YKHO.energy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MI1C(YKHO):\n YRbF = YKHO.inl[0].to_flow()\n z1Rg = YKHO.outl[0].to_flow()\n epEI = (rHlu(YRbF, T0=YKHO.inl[0].T.val_SI) + rHlu(z1Rg, T0=YKHO.outl[0].T.val_SI)) / 2\n return YRbF[0] * (z1Rg[2] - YRbF[2]) - YKHO.A.val * (YKHO.E.val * YKHO.eta_opt.val - (epEI - YKHO.Tamb.val_SI) * YKHO.lkf_lin.val - ... | [
"0.6944371",
"0.66248596",
"0.6500616",
"0.64081764",
"0.64039",
"0.6339403",
"0.63247466",
"0.631784",
"0.6266299",
"0.62558556",
"0.62365687",
"0.62362105",
"0.61649996",
"0.6164935",
"0.60767055",
"0.6059991",
"0.6055625",
"0.6029564",
"0.6015029",
"0.60130227",
"0.6003067... | 0.66728914 | 1 |
Return VMD path, or set it to be a user specified path. | def g4u8(*pmON):
if not pmON:
pmON = fvfo.get('vmd', None)
if F_mR(pmON):
return pmON
else:
S0MI.warning('VMD path is not set by user, looking for it.')
kHHw = None
zV4n = None
if lQ1Q == 'Windows':
if DceF:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sMBp():\n global args, vaultPathDefault\n if qIxc.vault_location:\n return qIxc.vault_location\n return CLB7",
"def CQmF(YKHO):\n return Hy7s.path.join(_Fei.DATA_DIR, 'visual_genome')",
"def CBIr(pmON=None):\n if pmON:\n return '%s/%s' % (hIOi('~'), pmON)\n else:\n re... | [
"0.6185525",
"0.6183668",
"0.602171",
"0.5991403",
"0.5987749",
"0.5987749",
"0.59397507",
"0.5924948",
"0.5924948",
"0.5924948",
"0.58959943",
"0.58756447",
"0.5859155",
"0.5858627",
"0.5853141",
"0.57971597",
"0.57225233",
"0.5687602",
"0.56858313",
"0.5677004",
"0.56755",
... | 0.66509205 | 0 |
Return the table's base location. | def Rci7(YKHO) -> str:
return YKHO.metadata.location | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XSj5(YKHO):\n return YKHO._base_path",
"def XSj5(YKHO):\n return YKHO.setup.base_path",
"def oEge(YKHO):\n pass",
"def vi15(YKHO):\n ckRy = [pmON for pmON, hGN5 in YKHO._templates]\n if len(ckRy) == 1:\n return Hy7s.path.dirname(ckRy[0])\n return nV7c(ckRy)",
"def P8oC(YKHO):\n... | [
"0.71434927",
"0.6773911",
"0.66603893",
"0.6595187",
"0.65902054",
"0.65135294",
"0.64973825",
"0.6481984",
"0.6242008",
"0.6205075",
"0.61820585",
"0.60963696",
"0.60941607",
"0.6079768",
"0.6079284",
"0.6048777",
"0.6023543",
"0.60137385",
"0.60132897",
"0.59878504",
"0.59... | 0.54912513 | 89 |
Get the snapshot of this table with the given id, or None if there is no matching snapshot. | def N_ZD(YKHO, TpGz: int) -> h8nf[mRnW]:
try:
return next((Rwel for Rwel in YKHO.metadata.snapshots if Rwel.snapshot_id == TpGz))
except StopIteration:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QVrV(YKHO, mWFP=None, TpGz=None):\n if TpGz:\n return YKHO._search_snapshot(key='snapshot_id', value=TpGz)\n elif mWFP:\n return YKHO._search_snapshot(key='name', value=mWFP)\n else:\n raise ValueError('name or snapshot_id must be provided')",
"def x9Up(YKHO) -> h8nf[mRnW]:\n ... | [
"0.6728106",
"0.66567403",
"0.63081104",
"0.6192008",
"0.61709046",
"0.61355036",
"0.60822225",
"0.6057073",
"0.60102755",
"0.60102755",
"0.60059345",
"0.5994572",
"0.5866124",
"0.5808389",
"0.5781905",
"0.57515544",
"0.57515544",
"0.57132274",
"0.5695179",
"0.5675633",
"0.56... | 0.7416895 | 0 |
Returns the snapshot referenced by the given name or null if no such reference exists. | def HasZ(YKHO, mWFP: str) -> h8nf[mRnW]:
if (bf9h := YKHO.metadata.refs.get(mWFP)):
return YKHO.snapshot_by_id(bf9h.snapshot_id)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QVrV(YKHO, mWFP=None, TpGz=None):\n if TpGz:\n return YKHO._search_snapshot(key='snapshot_id', value=TpGz)\n elif mWFP:\n return YKHO._search_snapshot(key='name', value=mWFP)\n else:\n raise ValueError('name or snapshot_id must be provided')",
"def bf9h(mWFP):\n return {'name... | [
"0.71384203",
"0.6541224",
"0.61837673",
"0.59874135",
"0.5945258",
"0.5880333",
"0.572489",
"0.5719872",
"0.5705536",
"0.5701584",
"0.5701216",
"0.5701216",
"0.5701216",
"0.5642771",
"0.559996",
"0.5592513",
"0.5578367",
"0.55641156",
"0.5533302",
"0.5523165",
"0.55019104",
... | 0.88717985 | 0 |
Get the configured database for the application. | def GGod(QePW: Request) -> FO3g:
return QePW.app.state.db | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p9bx():\n return Fv2L().database",
"def GGod():\n if 'db' not in Oa1e:\n Oa1e.db = iHv3.connect(str(wk5E.config['DATABASE']))\n return Oa1e.db",
"def u_OD() -> FfT0:\n L_qe = tfrY(mDZH)\n return WlyJ(L_qe)",
"def u_OD(YKHO):\n return YKHO.database",
"def GGod():\n NCls = get... | [
"0.8279952",
"0.8232207",
"0.81797385",
"0.8104148",
"0.80748487",
"0.80348057",
"0.7910047",
"0.7910047",
"0.7888064",
"0.7853512",
"0.78470194",
"0.7833503",
"0.7787318",
"0.77841806",
"0.77841806",
"0.77841806",
"0.777734",
"0.77719086",
"0.77703345",
"0.77434975",
"0.7734... | 0.0 | -1 |
Get the configured Evergreen API client for the application. | def j1Xx(QePW: Request) -> EXQm:
return QePW.app.state.evg_api | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bxbw(YKHO):\n return YKHO.client",
"def _Pwh():\n global _API_CLIENT_HANDLE\n if not NF0P:\n QpfX = G_wZ()\n crWw = QpfX.get_server_config()\n zh8I = crWw.get('pc_ip')\n eDXM = crWw.get('pc_port')\n NtEF = crWw.get('pc_username')\n jTXt = crWw.get('pc_passwo... | [
"0.72338265",
"0.7084545",
"0.7080453",
"0.70781213",
"0.6986058",
"0.6958793",
"0.6898422",
"0.6895851",
"0.68546987",
"0.68531305",
"0.6771598",
"0.6764534",
"0.66810524",
"0.66122025",
"0.66070276",
"0.6546237",
"0.6546237",
"0.65431905",
"0.65299857",
"0.652525",
"0.65190... | 0.6230285 | 43 |
Representation of the object. | def wHJl(YKHO):
return '<Blog %r>' % YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return repr(YKHO.__dict__['_obj'])",
"def wHJl(YKHO):\n return repr(YKHO.__dict__)",
"def wHJl(YKHO):\n return '{}({})'.format(YKHO.__class__.__name__, YKHO._data)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YK... | [
"0.8051706",
"0.76092845",
"0.7586369",
"0.7575239",
"0.7575239",
"0.7575239",
"0.7575239",
"0.7575239",
"0.753468",
"0.7520129",
"0.74832237",
"0.74775517",
"0.7468671",
"0.7449133",
"0.7438713",
"0.7428434",
"0.7393738",
"0.7393738",
"0.7393738",
"0.7393738",
"0.7393738",
... | 0.0 | -1 |
Read a draft for a given draft identifier. | def NMoC(YKHO, P0UU):
return YKHO._invoke('get', {'draft_id': P0UU}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ki9V(YFJV):\n assert isinstance(YFJV, S7kj)\n try:\n nPrm = wcXs('get', Ms2Z('drafts', str(YFJV)))\n except oEgM:\n raise tsc1(f'Draft does not exist: {YFJV}')\n return _Yg7(nPrm)",
"def rCPv(QePW, P0UU):\n for S3dM in QePW.session['drafts']:\n if S3dM['id'] == P0UU:\n ... | [
"0.71334946",
"0.7106668",
"0.6893901",
"0.6858429",
"0.67169464",
"0.6079457",
"0.5917698",
"0.5902819",
"0.58971643",
"0.5699909",
"0.5646731",
"0.5594899",
"0.5563923",
"0.55534333",
"0.5443155",
"0.53060085",
"0.5302073",
"0.5263763",
"0.5224883",
"0.5196407",
"0.51710665... | 0.74504316 | 0 |
Get policy groups for which the given object is a member. | def list(YKHO, aqdr, N1p7=None, FuDy=None, l3rP=None, Byl5=None, bNfU=None, vkce=None, AwKv=None):
return YKHO._invoke('list', {'intent_path': aqdr, 'cursor': N1p7, 'enforcement_point_path': FuDy, 'include_mark_for_delete_objects': l3rP, 'included_fields': Byl5, 'page_size': bNfU, 'sort_ascending': vkce, 'sort_by':... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TPdx(YKHO, CBIr):\n if not hasattr(CBIr, '_group_member_groups'):\n CBIr._group_member_groups = [YKHO[uOe2] for uOe2 in YKHO.root.keys() if YKHO[uOe2].is_member(CBIr, slow=True)]\n return CBIr._group_member_groups",
"def Y5bT(YKHO, XnWo, YEnM=None):\n return YKHO._get_permissions(XnWo, YEnM, ... | [
"0.6712186",
"0.66027933",
"0.6532484",
"0.6489148",
"0.6430074",
"0.6400321",
"0.6313005",
"0.6309331",
"0.6238637",
"0.6220998",
"0.6218812",
"0.62186027",
"0.6196238",
"0.61946505",
"0.61899775",
"0.61086595",
"0.6106899",
"0.6091789",
"0.6089005",
"0.60454386",
"0.6031855... | 0.0 | -1 |
Create or Replace IPFIX collector profile. IPFIX data will be sent to IPFIX collector port. This API is deprecated. Please use the following | def QdZT(YKHO, BAR1, vNeU):
return YKHO._invoke('update', {'ipfix_collector_profile_id': BAR1, 'i_pfix_collector_profile': vNeU}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, d0UR, RYB8):\n return YKHO._invoke('update', {'ipfix_l2_collector_profile_id': d0UR, 'i_pfix_l2_collector_profile': RYB8})",
"def QdZT(YKHO, ok11, rpqk):\n return YKHO._invoke('update', {'ipfix_dfw_collector_profile_id': ok11, 'i_pfixdfw_collector_profile': rpqk})",
"def Po4F(YKHO, BAR1, v... | [
"0.6280857",
"0.6263095",
"0.62444043",
"0.6185203",
"0.6106531",
"0.5374047",
"0.534685",
"0.52295494",
"0.51949936",
"0.5123925",
"0.5100191",
"0.50751823",
"0.49924073",
"0.4963927",
"0.49531814",
"0.49358168",
"0.4919468",
"0.4912515",
"0.48735237",
"0.486169",
"0.4820950... | 0.6451295 | 0 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Y8eF, aMgO, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues):
if not leAC:
if NkkI:
leAC = 'Normalized confusion matrix'
else:
leAC = 'Confusion matrix, without normalization'
Bcwd = YsYU(Y8eF, aMgO)
KndY = ['Bicycle', 'Bus', 'Car', 'Metro', 'Motorbike', 'Run', 'St... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8194862",
"0.80949175",
"0.8029915",
"0.8019153",
"0.79941195",
"0.7991258",
"0.7980955",
"0.7976606",
"0.79610753",
"0.79590565",
"0.79378676",
"0.7934962",
"0.7934504",
"0.79313844",
"0.7926313",
"0.7924577",
"0.79241234",
"0.7923211",
"0.7923023",
"0.7921931",
"0.791787... | 0.0 | -1 |
Returns a list of strings representing the client transports reported by Tor. If present, '' is stripped from this list and used to set allTransportsEnabled to True. | def hcJH(YKHO):
return YKHO.transports | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ATsn(YKHO) -> x1iM[q4Vh]:\n with YKHO._lock:\n return YKHO._transport_list",
"def F7Ws(YKHO) -> fHNa[yuQJ]:\n gddu = eNCK(*[bTKY._asdict().values() for bTKY in YKHO._registry.values()])\n return set([a1PO for a1PO in gddu if a1PO is not None])",
"def V9Vf(YKHO):\n return YKHO.get('transp... | [
"0.712782",
"0.66592526",
"0.64246905",
"0.6248824",
"0.6081631",
"0.56326795",
"0.5560989",
"0.54645383",
"0.5438026",
"0.54183716",
"0.5381783",
"0.5377032",
"0.5355221",
"0.5341726",
"0.53349257",
"0.5328872",
"0.53233576",
"0.5270951",
"0.52664226",
"0.5254136",
"0.524625... | 0.7565371 | 0 |
Gets JWT from Authorization Bearer header. | async def jwt_header(LbUG: Optional[str]=iMeJ(None)) -> h8nf[PG8A]:
if not LbUG:
return None
SQ3m = LbUG.split()
if SQ3m[0].lower() != 'bearer':
RKD7.debug('Authorization header Failed, lacked bearer')
return None
if len(SQ3m) != 2:
RKD7.debug('Authorization header Failed... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gNTt():\n Jpbe = QePW.headers.get('Authorization', None)\n if Jpbe is None:\n raise bYUu({'code': 'authorization_header_missing', 'description': 'Authorization header is expected.'}, 401)\n SQ3m = Jpbe.split()\n if SQ3m[0].lower() != 'bearer':\n raise bYUu({'code': 'invalid_header', '... | [
"0.8098268",
"0.7819679",
"0.77351874",
"0.7618525",
"0.745378",
"0.7449438",
"0.74304515",
"0.73866886",
"0.737011",
"0.7369783",
"0.7359554",
"0.7269795",
"0.726971",
"0.72247386",
"0.7213299",
"0.7156035",
"0.7138256",
"0.71268713",
"0.7014163",
"0.69180214",
"0.6866301",
... | 0.71949476 | 15 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8: str) -> bool:
ycBG = YKHO.root
for hcXw in GIN8:
if not ycBG.children[ord(hcXw) - ord('a')]:
return False
ycBG = ycBG.children[ord(hcXw) - ord('a')]
if ycBG and ycBG.endOfWord == True:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False",
"def Gtm1(ZO... | [
"0.838632",
"0.8150416",
"0.8123471",
"0.7856802",
"0.7830664",
"0.77935004",
"0.7792806",
"0.77642965",
"0.7753436",
"0.7747724",
"0.7711298",
"0.76816714",
"0.7677101",
"0.7664614",
"0.76506114",
"0.76338875",
"0.7628353",
"0.76114196",
"0.7577657",
"0.75695884",
"0.756079"... | 0.7315964 | 44 |
Return the filtered queryset. | def SR0I(YKHO, QePW: 'HttpRequest', SR0I: 'QuerySet') -> 'QuerySet':
SR0I = SR0I.annotate(citation_count=kbH2('images'))
if YKHO.value() == 'Yes':
return SR0I.exclude(citation_count__lt=2)
if YKHO.value() == 'No':
return SR0I.filter(citation_count__gte=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def filter(Emd4, *qIxc, **B2fa) -> FYrf.QuerySet:\n return Emd4.objects.filter(*qIxc, **B2fa)",
"def fRXs(YKHO, SR0I):\n for mWFP, BWXx in YKHO.form.cleaned_data.items():\n SR0I = YKHO.filters[mWFP].filter(SR0I, BWXx)\n return SR0I",
"def k66M(YKHO):\n dJ1p = YKHO.request.query_params.get('t... | [
"0.82541996",
"0.77692753",
"0.76276934",
"0.7491762",
"0.747332",
"0.74563324",
"0.73531544",
"0.72921604",
"0.7262168",
"0.72226024",
"0.7213984",
"0.72006303",
"0.7199878",
"0.71774954",
"0.71499836",
"0.71460783",
"0.7126865",
"0.7088617",
"0.7076424",
"0.70740736",
"0.70... | 0.0 | -1 |
lists all nodes y such that there is an edge from x to y. | def A_IW(YKHO, WKvO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xC8f(YKHO):\n return ['->'.join([str(MxXY), str(cWFu)]) for MxXY in YKHO.graph.keys() for cWFu in YKHO.graph[MxXY]]",
"def BTfj(YKHO, WKvO, LVAh):\n if not YKHO.has_vertex(WKvO, LVAh):\n return []\n A_IW = [(WKvO + 1, LVAh), (WKvO, LVAh - 1), (WKvO - 1, LVAh), (WKvO, LVAh + 1)]\n return [(... | [
"0.6831945",
"0.6728062",
"0.67201513",
"0.6682043",
"0.6481574",
"0.6455427",
"0.64240295",
"0.63534385",
"0.63489926",
"0.62939066",
"0.62596333",
"0.62440306",
"0.62411803",
"0.62000096",
"0.6198326",
"0.6195833",
"0.6190949",
"0.6182148",
"0.61821055",
"0.61772406",
"0.61... | 0.57424235 | 95 |
adds to G the edge from x to y, if it is not there. | def H2v5(YKHO, WKvO, LVAh):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F1KG(YKHO, WKvO, LVAh):\n YKHO._dict[WKvO].append(LVAh)",
"def F1KG(YKHO, WKvO, LVAh):\n YKHO._dictOut[WKvO].append(LVAh)\n YKHO._dictIn[LVAh].append(WKvO)",
"def F1KG(YKHO, WKvO, LVAh):\n YKHO._dictOut[WKvO].append(LVAh)\n YKHO._dictIn[LVAh].append(WKvO)",
"def F1KG(YKHO, WKvO, LVAh):\n ... | [
"0.73143643",
"0.71680814",
"0.7166831",
"0.7079163",
"0.7034768",
"0.69205976",
"0.6799837",
"0.67896456",
"0.6711004",
"0.67103267",
"0.6708085",
"0.6688752",
"0.66365993",
"0.6618577",
"0.6613575",
"0.6602899",
"0.65938747",
"0.6590004",
"0.65637285",
"0.65307623",
"0.6530... | 0.0 | -1 |
Get the instance at a particular position in the array. | def OP2O(YKHO, H5ew):
if H5ew >= len(YKHO) or H5ew < -len(YKHO):
raise IndexError('array index {} out of range'.format(H5ew))
return YKHO._instances[H5ew] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, d6pt: int) -> object:\n return YKHO.get_at_index(d6pt)",
"def OP2O(YKHO, d6pt):\n return YKHO.array[d6pt]",
"def OP2O(YKHO, d6pt):\n return YKHO.position[d6pt]",
"def xHzW(YKHO, d6pt: int) -> object:\n return YKHO.data[d6pt]",
"def OP2O(YKHO, or8S):\n return YKHO.GetArray(or8S... | [
"0.7598364",
"0.7368396",
"0.7114957",
"0.70775855",
"0.7029949",
"0.7029949",
"0.70209324",
"0.6955979",
"0.69485736",
"0.6884676",
"0.68825614",
"0.68785065",
"0.6864318",
"0.6851897",
"0.6845752",
"0.67937446",
"0.67937446",
"0.67136717",
"0.6701242",
"0.667866",
"0.666289... | 0.7276671 | 2 |
Construct an Mask from a NumPy array, inferring the Mask type from the NumPy type. | def Ellj(qw7D):
if qw7D is None:
return None
Emd4 = globals()['Mask%s' % iRsl[str(qw7D.dtype.type)]]
return Emd4(qw7D) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IEy3(LNo8, ZHfW=None, I8JS=None):\n Emd4 = globals()['MaskedImage%s' % iRsl[str(LNo8.dtype.type)]]\n return Emd4(WI3u(LNo8), Ellj(ZHfW), WI3u(I8JS))",
"def m_0o(Emd4, ezWE: np.masked.masked_array) -> SWBR:\n return Emd4._from_arr_and_mask(ezWE.compressed(), ezWE.mask)",
"def bra7(Zt4p, mkIA):\n ... | [
"0.67447156",
"0.6568795",
"0.624556",
"0.6233468",
"0.6212188",
"0.6058958",
"0.58654785",
"0.5865469",
"0.58482116",
"0.5812203",
"0.5806071",
"0.5793056",
"0.578901",
"0.57065845",
"0.5686544",
"0.5684197",
"0.5666296",
"0.55600315",
"0.55450773",
"0.5532636",
"0.55166495"... | 0.8315445 | 0 |
Construct a MaskedImage from three NumPy arrays, inferring the MaskedImage types from the NumPy types. | def IEy3(LNo8, ZHfW=None, I8JS=None):
Emd4 = globals()['MaskedImage%s' % iRsl[str(LNo8.dtype.type)]]
return Emd4(WI3u(LNo8), Ellj(ZHfW), WI3u(I8JS)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ellj(qw7D):\n if qw7D is None:\n return None\n Emd4 = globals()['Mask%s' % iRsl[str(qw7D.dtype.type)]]\n return Emd4(qw7D)",
"def gWWp(YKHO):\n WKvO = i6NZ.Image()\n WKvO.image = oyIN.ones((10, 10, 3))\n YKHO.assertTrue(WKvO.mask.ndim == 2)",
"def THDc(BDAO, Z6T9, ti8g):\n if ti... | [
"0.631743",
"0.6120416",
"0.608147",
"0.5767086",
"0.55958533",
"0.5590052",
"0.5558497",
"0.5550857",
"0.5544683",
"0.5538846",
"0.5521605",
"0.55163825",
"0.55131876",
"0.54694504",
"0.54634434",
"0.5462286",
"0.5451089",
"0.5436756",
"0.5428485",
"0.5401462",
"0.5390587",
... | 0.71877515 | 0 |
Tests that a created asset can be searched successfully. | def DVrY(TfID, yIVm):
Ilxn = str(qxeD.uuid1()).replace('-', '')
PWPX = yIVm.copy()
PWPX['main']['name'] = Ilxn
assert len(TfID.assets.search(Ilxn)) == 0
nu3W = FqWv()
Iv70 = TfID.assets.create(PWPX, nu3W)
Iz06(TfID, Iv70.did)
ITS7.sleep(1)
assert len(TfID.assets.search(Ilxn)) == 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X1GZ(YKHO):\n pass",
"def rw8T(YKHO):\n pass",
"def jzZI(YKHO):\n with YKHO.app.test_client() as x0hE:\n geh0 = x0hE.get('/contentassets/logo.png')\n YKHO.assert200(geh0)",
"def OhEE(YKHO):\n YKHO.assertEqual(YKHO.all_assets.count(), 1)\n lJVO = dv6U(asset_code='IC002', serial_nu... | [
"0.7166536",
"0.69838595",
"0.6720534",
"0.67015904",
"0.6691636",
"0.66336083",
"0.64400375",
"0.64242786",
"0.637687",
"0.63640994",
"0.6333983",
"0.6328735",
"0.6314019",
"0.6309437",
"0.6276901",
"0.62699676",
"0.6259049",
"0.62397945",
"0.6234356",
"0.6212454",
"0.619392... | 0.7048475 | 1 |
Tests the creation of an asset with a compute service. | def jut0(TfID):
nu3W = FqWv()
yIVm = lmyK()
yIVm['main']['files'][0]['checksum'] = str(qxeD.uuid4())
Iv70 = TfID.assets.create(yIVm, nu3W)
assert Iv70
xecx = Iz06(TfID, Iv70.did)
assert xecx, f'assets.resolve failed for did {Iv70.did}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X1GZ(YKHO):\n pass",
"def Y0ry(TfID):\n nu3W = FqWv()\n yIVm = jdtI()['service'][0]\n yIVm['attributes']['main']['files'][0]['checksum'] = str(qxeD.uuid4())\n Iv70 = TfID.assets.create(yIVm['attributes'], nu3W)\n assert Iv70\n xecx = Iz06(TfID, Iv70.did)\n assert xecx, f'assets.resolv... | [
"0.7019149",
"0.6604208",
"0.64766026",
"0.6276011",
"0.6267881",
"0.6241495",
"0.61691475",
"0.6138178",
"0.6071556",
"0.59825534",
"0.597324",
"0.5945023",
"0.59183145",
"0.591827",
"0.5916858",
"0.58260405",
"0.5799827",
"0.5796195",
"0.5789706",
"0.5783488",
"0.57760143",... | 0.7146741 | 0 |
Returns the admin home page. | def dp9S():
return oGir(TvZl('admin.html')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RMFp():\n return TvZl('home/a_homepage.html', title='Homepage Admin')",
"def vja_(YKHO) -> str:\n return YKHO._home_page",
"def snQx(YKHO):\n return YKHO.home_url",
"def h48j():\n return 'Super-seekrit admin page.'",
"def wwhi(QePW):\n return _1tc(QePW, 'adminhome.html')",
"def PJpd(YK... | [
"0.78734803",
"0.7659556",
"0.75315005",
"0.7451086",
"0.7412807",
"0.7346816",
"0.7338241",
"0.72982556",
"0.72261536",
"0.72055113",
"0.7202915",
"0.70956147",
"0.7041309",
"0.7038285",
"0.70189065",
"0.701527",
"0.69749445",
"0.69623154",
"0.69597584",
"0.69527817",
"0.693... | 0.64697665 | 100 |
Return list of (start, end) pairs for given span string. | def zNWz(aKnq):
mReh = []
for uvMl in aKnq.split(';'):
yKcO, Os4s = uvMl.split(' ')
mReh.append((int(yKcO), int(Os4s)))
return mReh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uvMl(YKHO, m6Me):\n if m6Me.lower() in ('*', '-', 'all'):\n m6Me = ':'\n dixj = YKHO.spanpattern.search(m6Me)\n if not dixj:\n raise IndexError\n if not dixj.group('separator'):\n return [YKHO[YKHO._to_index(dixj.group('start'))]]\n yKcO = YKHO._to_index(dixj.group('start'))... | [
"0.65587866",
"0.6335815",
"0.6208409",
"0.6195596",
"0.6180876",
"0.617939",
"0.61389357",
"0.61281",
"0.6089457",
"0.6001805",
"0.59663004",
"0.59441835",
"0.59048706",
"0.5885633",
"0.5882482",
"0.5860551",
"0.5824911",
"0.58171797",
"0.580005",
"0.5749686",
"0.567061",
... | 0.78098005 | 1 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes. | def PYz4(Mkmy):
Mkmy.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
Mkmy.headers['Pragma'] = 'no-cache'
Mkmy.headers['Expires'] = '0'
Mkmy.headers['Cache-Control'] = 'public, max-age=0'
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PY... | [
"0.82236683",
"0.82228184",
"0.82228184",
"0.82228184",
"0.82228184",
"0.8196043",
"0.81635696",
"0.81635696",
"0.81635696",
"0.81635696",
"0.81635696",
"0.81635696",
"0.81635696",
"0.81635696",
"0.81635696",
"0.81635696",
"0.81635696",
"0.81635696",
"0.81635696",
"0.81635696",... | 0.7069552 | 68 |
Loan amount normalizer Expects the `value` to be a string. When a cace insensitive 'k' is present the it will be replaced with '000'. When the 'k' is found the normalizer will also replace any '.' with an empty string. (e.g. 12k = 12000 or 12.5K = 125000). Lastly, all none numeric or '.' characters are replace with an ... | def wKuh(BWXx):
g5zR = BWXx.lower()
if 'k' in g5zR:
g5zR = g5zR.replace('k', '000')
g5zR = g5zR.replace('.', '')
g5zR = g5zR.replace('$', '')
g5zR = g5zR.replace(',', '')
try:
return ZjSO(g5zR)
except:
Dutl
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0SS(Z5kt):\n if not Z5kt:\n return Z5kt\n if ZbWC.search('[\\\\. ][0-9]{3},[0-9]{1,2}$', Z5kt):\n return Z5kt.replace('.', '').replace(' ', '').replace(',', '.')\n if ZbWC.search('[, ][0-9]{3}\\\\.[0-9]{1,2}$', Z5kt):\n return Z5kt.replace(',', '').replace(' ', '')\n if ZbWC.s... | [
"0.5884465",
"0.58822936",
"0.57795995",
"0.5458946",
"0.5362683",
"0.5337306",
"0.5259212",
"0.5182432",
"0.51258034",
"0.5122256",
"0.5116404",
"0.5116293",
"0.51028776",
"0.5095553",
"0.50903237",
"0.50457853",
"0.5045531",
"0.5036066",
"0.5026245",
"0.5013777",
"0.4943902... | 0.8409493 | 0 |
Modify the headers to allow crossorigin requests. | def Qogl(geh0):
geh0.headers['Access-Control-Allow-Origin'] = '*'
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(Mkmy):\n Mkmy.headers['Acess-Control-Allow-Origin'] = '*'\n Mkmy.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'\n Mkmy.headers['Pragma'] = 'no-cache'\n Mkmy.headers['Expires'] = '0'\n Mkmy.headers['Cache-Control'] = 'public, max-age=0'\n return Mkmy",
"def a1AC(YKHO, ... | [
"0.6929986",
"0.68002605",
"0.67662996",
"0.6734523",
"0.6706332",
"0.6701927",
"0.6607627",
"0.66012585",
"0.6499404",
"0.63850874",
"0.6363921",
"0.6348941",
"0.63155985",
"0.63138694",
"0.6280324",
"0.6279109",
"0.6252059",
"0.6243887",
"0.62400615",
"0.62383354",
"0.61690... | 0.6177142 | 20 |
Sets property name to value within this object. | def YRtW(YKHO, mWFP, BWXx):
YKHO.properties[mWFP] = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZgoD(YKHO, mWFP: str) -> None:\n mWFP = str(mWFP)\n if len(mWFP) > 100:\n mWFP = mWFP[:100]\n YKHO.prop_name = mWFP",
"def VE6n(YKHO, mWFP, BWXx):\n YKHO._props[mWFP] = BWXx\n YKHO._changed(mWFP, BWXx)",
"def a0L7(YKHO, qsJ6, mWFP):\n YKHO._property_name = mWFP\n YKHO._attribute... | [
"0.79168975",
"0.7598371",
"0.72943556",
"0.72283274",
"0.71225065",
"0.71225065",
"0.70328784",
"0.7030362",
"0.7017714",
"0.69955844",
"0.696906",
"0.696906",
"0.69299436",
"0.6912827",
"0.6912827",
"0.6912827",
"0.6912827",
"0.68866163",
"0.68515533",
"0.68403906",
"0.6840... | 0.80712193 | 0 |
Returns the string representation of this metadata object. | def zAg0(YKHO):
return YKHO.properties.__str__() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO._metadata.__str__()",
"def wHJl(YKHO):\n return YKHO._metadata.__str__()",
"def wHJl(YKHO):\n return YKHO._metadata.__str__()",
"def zAg0(YKHO):\n if YKHO._metadata is None:\n return 'None'\n return YKHO._metadata.__str__()",
"def Napc(YKHO):\n return ... | [
"0.8787842",
"0.87714094",
"0.8768259",
"0.82760817",
"0.7783678",
"0.77387977",
"0.7612537",
"0.75527215",
"0.7523326",
"0.7522495",
"0.7499132",
"0.74831504",
"0.74831504",
"0.74831504",
"0.74831504",
"0.74831504",
"0.74831504",
"0.74831504",
"0.74831504",
"0.74831504",
"0.... | 0.0 | -1 |
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected. | def AOzf(Y8eF, aMgO):
COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1)))
z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1)))
AOzf = COti / (z5jX + nMvt.epsilon())
return AOzf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '... | [
"0.7605524",
"0.74488467",
"0.7404089",
"0.7280915",
"0.72097343",
"0.7165874",
"0.7157609",
"0.71317255",
"0.71007556",
"0.70970625",
"0.70970625",
"0.70970625",
"0.70970625",
"0.70970625",
"0.70970625",
"0.70970625",
"0.70970625",
"0.70970625",
"0.70970625",
"0.70970625",
"... | 0.7145226 | 12 |
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant. | def rhd_(Y8eF, aMgO):
COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1)))
ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1)))
rhd_ = COti / (ftZB + nMvt.epsilon())
return rhd_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)",
"def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU... | [
"0.74900967",
"0.7288859",
"0.7159218",
"0.7153579",
"0.70662117",
"0.69847554",
"0.6965742",
"0.6954851",
"0.6912859",
"0.68327844",
"0.68182683",
"0.68097574",
"0.67860276",
"0.67579675",
"0.67579675",
"0.67579675",
"0.67579675",
"0.67579675",
"0.67579675",
"0.67579675",
"0... | 0.68053275 | 16 |
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected. | def AOzf(Y8eF, aMgO):
COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1)))
z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1)))
AOzf = COti / (z5jX + nMvt.epsilon())
return AOzf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '... | [
"0.76044506",
"0.74481285",
"0.74049824",
"0.7280345",
"0.7208418",
"0.71655464",
"0.7157273",
"0.7131389",
"0.710048",
"0.70967406",
"0.70967406",
"0.70967406",
"0.70967406",
"0.70967406",
"0.70967406",
"0.70967406",
"0.70967406",
"0.70967406",
"0.70967406",
"0.70967406",
"0... | 0.7144908 | 9 |
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant. | def rhd_(Y8eF, aMgO):
COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1)))
ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1)))
rhd_ = COti / (ftZB + nMvt.epsilon())
return rhd_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)",
"def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU... | [
"0.7490921",
"0.72890615",
"0.7158933",
"0.7153277",
"0.7066191",
"0.698819",
"0.696778",
"0.69555235",
"0.691368",
"0.6834697",
"0.6818974",
"0.6810516",
"0.6786765",
"0.6758681",
"0.6758681",
"0.6758681",
"0.6758681",
"0.6758681",
"0.6758681",
"0.6758681",
"0.6758681",
"0... | 0.68061554 | 17 |
Creates lists for rooms | def R3aL():
aRAh = []
with open('../data/zalen.csv', 'rt') as LtY3:
DFSo = m6_J.reader(LtY3)
for rdlD in DFSo:
for l5Ny in rdlD:
bySB = l5Ny.split(';')
mWFP = bySB[0]
b7hB = bySB[1]
abiq = uHxD(mWFP, b7hB)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Hi1():\n _t_3 = []\n abiq = uHxD('Patio. You are in a patio, it is surrounded by four long walls.\\n The south wall has a metal door.', north=None, east=None, south=2, west=None)\n _t_3.append(abiq)\n abiq = uHxD('Bedroom. You are in a bedroom, there is nothing uncommon.\\n The door ... | [
"0.78612775",
"0.7401134",
"0.7310438",
"0.72925186",
"0.7255505",
"0.71872556",
"0.71112496",
"0.69231975",
"0.68888897",
"0.68348444",
"0.6815808",
"0.67809373",
"0.6765381",
"0.67505515",
"0.6693738",
"0.6638784",
"0.65620273",
"0.6499126",
"0.6499126",
"0.64845103",
"0.64... | 0.7214344 | 5 |