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 |
|---|---|---|---|---|---|---|
Create a sparse matrix associated with a `Mesh` with `1` in the diagonal >>> from fipy import Grid1D >>> from fipy.tools import serialComm >>> mesh = Grid1D(nx=3, communicator=serialComm) >>> print(_PETScIdentityMeshMatrix(mesh=mesh)) 1.000000 1.000000 1.000000 | def FIMM(YKHO, rR8k, lUK_=1):
H6VQ.__init__(YKHO, size=rR8k.numberOfCells, bandwidth=lUK_, comm=rR8k.communicator.petsc4py_comm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, rR8k):\n e5ME.__init__(YKHO, size=rR8k.numberOfCells)",
"def KqVB(YRbF, r845, ebxZ, JV6e):\n RMvl, d9Qd, fHmP = ebxZ.shape\n DV5E = RMvl * d9Qd\n jzdc = oyIN.zeros(fHmP * DV5E)\n r8hN = oyIN.zeros(fHmP * DV5E)\n exwG = oyIN.zeros(fHmP * DV5E)\n TkgO = oyIN.arange(-(RMvl - 1) /... | [
"0.68073016",
"0.6263889",
"0.6261727",
"0.62445265",
"0.6175735",
"0.59854466",
"0.59554034",
"0.5939025",
"0.58848006",
"0.5878851",
"0.58754426",
"0.58627236",
"0.5853086",
"0.5838775",
"0.5833285",
"0.582096",
"0.5803248",
"0.5790448",
"0.57470924",
"0.5742694",
"0.571684... | 0.6070204 | 5 |
Covert the matrix form tensor format to numpy format. Must be square matrix. | def N8_R(a5UA: np.ndarray) -> oyIN.ndarray:
UOVU = int(len(a5UA.shape) / 2)
EZd9 = [2 ** UOVU] * 2
return oyIN.reshape(a5UA, EZd9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WTDd(vhpA):\n return oyIN.transpose(vhpA.clone().numpy(), (1, 2, 0))",
"def pMsC(WKvO):\n return WKvO.numpy()",
"def WTDd(YKHO, vhpA):\n BdN0 = VNqG((9, 9), HUFt)\n for YRbF in range(9):\n for r845 in range(9):\n BdN0[YRbF, r845] = float(vhpA[YRbF][r845])\n return BdN0",
... | [
"0.7369098",
"0.73542935",
"0.7202114",
"0.7072337",
"0.69730073",
"0.6939659",
"0.68196046",
"0.68094236",
"0.6807556",
"0.6807556",
"0.68042487",
"0.67915034",
"0.67862207",
"0.6762001",
"0.6762001",
"0.67507416",
"0.6734589",
"0.6670689",
"0.6657783",
"0.6630298",
"0.66127... | 0.74911714 | 0 |
r""" Calculate a normalized Matrix. | def QdAd(aLMY: np.ndarray) -> oyIN.ndarray:
oUJn = oyIN.trace(aLMY) / aLMY.shape[0]
return aLMY / oUJn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7f8(YKHO) -> aLMY:\n ...",
"def Q4S3(SppC, RfIB):\n SppC *= 10\n NUGf.multiply(SppC, SppC, SppC)\n NUGf.divide(SppC, RfIB, SppC)\n SppC = NUGf.transpose(SppC)\n NUGf.divide(SppC, RfIB, SppC)",
"def NkkI(RsfQ):\n mJjf = oyIN.array(RsfQ.sum(1))\n ZKaa = oyIN.power(mJjf, -1).flatten()... | [
"0.82669646",
"0.7766361",
"0.75280696",
"0.75194955",
"0.7438141",
"0.7406604",
"0.74035335",
"0.7390746",
"0.7371805",
"0.73628426",
"0.73628426",
"0.7264289",
"0.72244453",
"0.7196128",
"0.7126506",
"0.70777583",
"0.70766217",
"0.7001458",
"0.6956665",
"0.6863649",
"0.6832... | 0.6745792 | 30 |
Parent nodes of the DataNode. The relations childparent corresponds to the underlying ActivationGraph. | def ACnF(YKHO):
return YKHO._parents | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _AKB(YKHO, _AKB):\n YKHO.parent_node = _AKB",
"def ACnF(YKHO):\n pass",
"def ACnF(YKHO):\n pass",
"def vrP3(YKHO):\n for aUGN in YKHO.ids(True):\n for _AKB in YKHO.parents(aUGN):\n YKHO.terms[_AKB].add_relation(aUGN, 'parent_of')",
"def ACnF(YKHO):\n _AKB = YKHO.parent\... | [
"0.65533966",
"0.6479397",
"0.6479397",
"0.642746",
"0.6411497",
"0.63899046",
"0.6382208",
"0.63603985",
"0.63356686",
"0.63256484",
"0.63256484",
"0.63256484",
"0.62973946",
"0.62966126",
"0.629343",
"0.6292395",
"0.6289548",
"0.6274063",
"0.6266861",
"0.62625104",
"0.62341... | 0.61859727 | 23 |
The data of the node. | def yLtf(YKHO, *, jth9=True):
if jth9:
return c9vR.deepcopy(YKHO._data)
else:
return YKHO._data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S0Ac(YKHO) -> ImMB:\n ...",
"def yLtf(YKHO, Q6kx):\n raise NotImplementedError()",
"def S0Ac(YKHO, *qIxc, **B2fa):\n pass",
"def nPrm(YKHO):\n if YKHO._data is None:\n YKHO._data = YKHO._parsetree()\n return YKHO._data",
"def nPrm(YKHO):\n return YKHO.__data",
"def nPrm(YKHO)... | [
"0.8257539",
"0.82434857",
"0.80396014",
"0.7995032",
"0.79585147",
"0.7950451",
"0.7950451",
"0.7950451",
"0.7950451",
"0.7950451",
"0.7950451",
"0.7950451",
"0.7950451",
"0.7950451",
"0.7950451",
"0.7946257",
"0.7922108",
"0.7922108",
"0.7887234",
"0.7885117",
"0.78502077",... | 0.0 | -1 |
Load a botocore service model This is the main method for loading botocore models (e.g. a service model, pagination configs, waiter configs, etc.). | def XPoA(YKHO, bSEa, l87X, clva=None):
yR9R = YKHO.list_available_services(l87X)
if bSEa not in yR9R:
raise hkxJ(service_name=bSEa, known_service_names=', '.join(sorted(yR9R)))
if clva is None:
clva = YKHO.determine_latest_version(bSEa, l87X)
Zg0d = Hy7s.path.join(bSEa, clva, l87X)
C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O5RJ(Emd4, uqvc):\n pass",
"def uyMl():\n pass",
"def uyMl():\n pass",
"def O5RJ(YKHO, uqvc: str):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(Kz8N):\n uqvc = Kz8N['model_filepath']\n if... | [
"0.6876522",
"0.6793609",
"0.6793609",
"0.6675084",
"0.6650895",
"0.6650895",
"0.6650895",
"0.6650895",
"0.6610345",
"0.6596048",
"0.658557",
"0.6580323",
"0.65601534",
"0.6529681",
"0.6529164",
"0.64961743",
"0.647866",
"0.64706916",
"0.64622456",
"0.64528567",
"0.64301383",... | 0.7330439 | 0 |
Add element to end of array. Array is doubled on attempt to append beyond capacity. | def SStx(YKHO, ZfUD):
if YKHO._count == YKHO._capacity:
YKHO._resize(2 * YKHO._capacity)
YKHO._array[YKHO._count] = ZfUD
YKHO._count += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SStx(YKHO, U6D_):\n if len(YKHO.array) == YKHO.capacity:\n YKHO._resize(YKHO.capacity * 2)\n YKHO.array[YKHO.n] = U6D_\n YKHO.n += 1",
"def SStx(YKHO, YEnM):\n if YKHO._n == YKHO._capacity:\n YKHO._resize(2 * YKHO._capacity)\n YKHO._A[YKHO._n] = YEnM\n YKHO._n += 1",
"def SS... | [
"0.7972553",
"0.7599392",
"0.7540785",
"0.75400215",
"0.74950695",
"0.73704576",
"0.7368677",
"0.7348753",
"0.73427135",
"0.70455927",
"0.6910892",
"0.6909283",
"0.6893761",
"0.68895614",
"0.6889434",
"0.6883346",
"0.686488",
"0.6860694",
"0.6839394",
"0.68136275",
"0.6766428... | 0.75269467 | 4 |
String for representing the MyModelName object (in Admin site etc.). | def zAg0(YKHO):
return YKHO.sapid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO) -> str:\n return f'MyModel(id={YKHO.id}, my_column={YKHO.my_column})'",
"def zAg0(YKHO):\n return f'{YKHO.name} object'",
"def XWXe(YKHO):\n return 'a model'",
"def XWXe(YKHO):\n ret... | [
"0.78501266",
"0.7635767",
"0.74491674",
"0.7264097",
"0.7239198",
"0.7239198",
"0.7209188",
"0.7205393",
"0.7187224",
"0.71470577",
"0.71187836",
"0.7104075",
"0.7104075",
"0.7104075",
"0.7104075",
"0.7104075",
"0.7104075",
"0.7104075",
"0.7097976",
"0.70922244",
"0.7086534"... | 0.0 | -1 |
Words with smaller scores are removed from the dict and scores lowered for common words | def bsPO():
OiD5 = DYVc()
OiD5.compile_category_words(test=True)
Ghho = 'marketing pr media'
yjb6 = [(H5ew, BWXx) for H5ew, BWXx in OiD5.word_scores[Ghho].items()]
UzTa = sorted(yjb6, key=lambda aoD7: aoD7[1], reverse=True)[:50]
OiD5.sort_category_words()
for GIN8 in UzTa:
if GIN8[1]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p1kx(YKHO, V22M):\n return sum([YKHO.map[yzQ0.lower()] for yzQ0 in V22M if yzQ0 in YKHO.map])",
"def hPLY(O9Vt, PQxS, rSve, xiZG):\n HUWx = []\n for dQgj in range(im01):\n HUWx.append(xiZG.ordinals(dQgj))\n Yp__ = xiZG.ordinals()\n if xiZG.n < rSve:\n kdWW = (xiZG.n - 2) / Lb8X\n... | [
"0.6562833",
"0.64118445",
"0.6295589",
"0.6274163",
"0.6264294",
"0.62611085",
"0.62320703",
"0.6217998",
"0.61681944",
"0.61365306",
"0.6129636",
"0.612893",
"0.60920095",
"0.6076988",
"0.6073223",
"0.6072874",
"0.60643655",
"0.6059214",
"0.60427946",
"0.60289985",
"0.60277... | 0.6002593 | 23 |
Test that single response is stored | def hZ8u(YKHO):
YKHO.my_survey.store_response(YKHO.responses[0])
YKHO.assertIn(YKHO.responses[0], YKHO.my_survey.responses) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hZ8u(YKHO):\n YKHO.my_survey.store_response(YKHO.responses[0])\n YKHO.assertIn(YKHO.responses[0], YKHO.my_survey.responses)",
"def hZ8u(YKHO):\n YKHO.my_survey.store_response(YKHO.responses[0])\n YKHO.assertIn(YKHO.responses[0], YKHO.my_survey.responses)",
"def f2e8(YKHO):\n YKHO.my_survey.s... | [
"0.7894409",
"0.7885296",
"0.7845722",
"0.7540589",
"0.7478324",
"0.742248",
"0.7380741",
"0.7380741",
"0.71592903",
"0.71283495",
"0.70012885",
"0.6887453",
"0.6794604",
"0.67788893",
"0.6762288",
"0.6756553",
"0.6735551",
"0.67164373",
"0.6692728",
"0.66783446",
"0.6668066"... | 0.78777516 | 2 |
Get a random element from the set. | def UIrZ(YKHO) -> int:
TR9e = pBSp(tuKI.random() * len(YKHO.values))
return YKHO.values[TR9e] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P8Zf(YKHO):\n try:\n return YKHO.object().random_element()\n except AttributeError:\n return Acvy(YKHO.list())",
"def UIrZ(YKHO) -> int:\n IZL_ = YKHO.randomizedSet.pop()\n YKHO.randomizedSet.add(IZL_)\n return IZL_",
"def UIrZ(YKHO):\n or8S = tuKI.randint(0, YKHO.length - 1... | [
"0.78055954",
"0.77602583",
"0.76503676",
"0.69756",
"0.6970386",
"0.69696873",
"0.69170576",
"0.6903906",
"0.68794334",
"0.6843657",
"0.68179744",
"0.68171364",
"0.6815859",
"0.6779796",
"0.6774275",
"0.6763151",
"0.6747374",
"0.67292315",
"0.6693236",
"0.6683133",
"0.666994... | 0.0 | -1 |
Converts the given grayscale image to a three channel image | def iydv(WZVJ):
VXjJ = WZVJ.copy()
VXjJ.resize((VXjJ.shape[0], VXjJ.shape[1], 1))
return oyIN.repeat(VXjJ.astype(oyIN.uint8), 3, 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zI1D(LNo8):\n return oyIN.dot(LNo8[..., :3], [0.299, 0.587, 0.114])",
"def NVzg(LNo8):\n if LNo8.shape[-1] == 1:\n LNo8 = oyIN.stack([LNo8[:, :, -1], LNo8[:, :, -1], LNo8[:, :, -1]], axis=-1)\n return LNo8",
"def zI1D(bzJh):\n return oyIN.dot(bzJh[..., :3], [0.299, 0.587, 0.114])",
"de... | [
"0.7730052",
"0.75517046",
"0.7347226",
"0.7156561",
"0.7156561",
"0.71415883",
"0.71238613",
"0.7114176",
"0.7105671",
"0.7043567",
"0.70272225",
"0.70272225",
"0.69754463",
"0.69628817",
"0.69559014",
"0.6953563",
"0.69489586",
"0.68988174",
"0.6887233",
"0.6872135",
"0.686... | 0.0 | -1 |
Get model from config file. Supports models from torchvision module. | def SGIt(ZGE9, **t9eR):
try:
C3ST = getattr(ddgX, ZGE9, None)
if C3ST is None:
C3ST = getattr(haCU, ZGE9)
except AttributeError:
raise AttributeError("Model '{model_name}' not found".format(model_name=ZGE9))
_yCA = C3ST(**t9eR)
return _yCA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y4Ys(Nu1S):\n C3ST = None\n with open(Nu1S) as ECmi:\n for zFiD in ECmi:\n M1kn = ZbWC.search('^(;|#)\\\\s+Model:\\\\s+(A\\\\d+)', zFiD, ZbWC.I)\n if M1kn:\n C3ST = M1kn.group(2)\n break\n return C3ST",
"def YrZb(dyeT):\n if hasattr(vKbO,... | [
"0.7442818",
"0.74194515",
"0.7311388",
"0.7286701",
"0.7267248",
"0.70016354",
"0.6976773",
"0.69367534",
"0.6901676",
"0.6894924",
"0.6882098",
"0.6858599",
"0.6840267",
"0.67980486",
"0.6772193",
"0.67638046",
"0.6745032",
"0.67431366",
"0.6739095",
"0.67221594",
"0.671788... | 0.0 | -1 |
Check if path is an existing file. | def EFYe(pmON):
if not Hy7s.path.isfile(pmON):
if Hy7s.path.isdir(pmON):
tO9_ = '{0} is a directory'.format(pmON)
else:
tO9_ = '{0} does not exist.'.format(pmON)
raise j1Jz.ArgumentTypeError(tO9_)
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def poxP(pmON):\n return EFYe(pmON)",
"def Hat5(pmON: str):\n if Hy7s.path.isfile(pmON):\n return True\n return False",
"def IeRR(pmON):\n return Hy7s.path.isfile(pmON)",
"def JgkM(pmON):\n if Hy7s.path.isfile(pmON):\n return True\n else:\n return False",
"def poxP(pm... | [
"0.8621865",
"0.8423821",
"0.84183437",
"0.8388314",
"0.83540815",
"0.8347232",
"0.8290108",
"0.8282429",
"0.82487947",
"0.821282",
"0.8165733",
"0.8139205",
"0.81230056",
"0.81199926",
"0.81057936",
"0.8103556",
"0.8100323",
"0.80803996",
"0.8076761",
"0.80714184",
"0.806972... | 0.0 | -1 |
Check if path is an existing file. | def LR7z(pmON):
if not Hy7s.path.isdir(pmON):
if Hy7s.path.isfile(pmON):
tO9_ = '{0} is a file.'.format(pmON)
else:
tO9_ = '{0} does not exist.'.format(pmON)
raise j1Jz.ArgumentTypeError(tO9_)
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def poxP(pmON):\n return EFYe(pmON)",
"def Hat5(pmON: str):\n if Hy7s.path.isfile(pmON):\n return True\n return False",
"def IeRR(pmON):\n return Hy7s.path.isfile(pmON)",
"def JgkM(pmON):\n if Hy7s.path.isfile(pmON):\n return True\n else:\n return False",
"def poxP(pm... | [
"0.8621865",
"0.8423821",
"0.84183437",
"0.8388314",
"0.83540815",
"0.8347232",
"0.8290108",
"0.8282429",
"0.82487947",
"0.821282",
"0.8165733",
"0.8139205",
"0.81230056",
"0.81199926",
"0.81057936",
"0.8103556",
"0.8100323",
"0.80803996",
"0.8076761",
"0.80714184",
"0.806972... | 0.0 | -1 |
applies rolling mean and delayed returns to each dataframe in the list | def sGfx(gMbG, RA_F):
for __n6 in gMbG:
ZLJ_ = __n6.columns
uge7 = ZLJ_[-2]
CuxP = ZLJ_[-1]
for exwG in RA_F:
n3gB(__n6, uge7, CuxP, exwG)
return gMbG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VBBt(YKHO, r8UL=[5, 10, 15, 20], P8oC='Close'):\n WfCS = []\n WfCS.append('Date')\n WfCS.append(P8oC)\n for CjKC in r8UL:\n AAHb = 'Moving Average for ' + repr(CjKC) + 'days'\n WfCS.append(AAHb)\n YKHO.__df[AAHb] = YKHO.__calc_moving_average(CjKC, P8oC)\n return YKHO.__df[Wf... | [
"0.6425753",
"0.629374",
"0.61620504",
"0.6157816",
"0.6102518",
"0.60444754",
"0.5983216",
"0.59514284",
"0.59094983",
"0.5899633",
"0.5776609",
"0.5774138",
"0.5765491",
"0.5757326",
"0.5746287",
"0.57428706",
"0.57305765",
"0.5697814",
"0.56743366",
"0.56717837",
"0.566776... | 0.72097033 | 0 |
Get the path for the migrate repository. | def SkpD():
global _REPOSITORY
pmON = Hy7s.path.join(Hy7s.path.abspath(Hy7s.path.dirname(xAKo)), 'migrate_repo')
assert Hy7s.path.exists(pmON)
if nqE9 is None:
nqE9 = mY2R(pmON)
return nqE9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n3vd(YKHO) -> str:\n return YKHO.__get_path__('repos')",
"def SkpD():\n global _REPOSITORY\n pmON = Hy7s.path.join(Hy7s.path.abspath(Hy7s.path.dirname(xAKo)), 'migrate_repo')\n assert Hy7s.path.exists(pmON)\n if nqE9 is None:\n nqE9 = mY2R(pmON)\n return nqE9",
"def a_7F():\n re... | [
"0.73012066",
"0.70570874",
"0.7014124",
"0.6958101",
"0.6923065",
"0.67973864",
"0.67777944",
"0.66905326",
"0.65916204",
"0.65873265",
"0.65873265",
"0.6575967",
"0.6573392",
"0.65634024",
"0.6554335",
"0.6541527",
"0.65227467",
"0.6520525",
"0.6518835",
"0.6513413",
"0.651... | 0.70835567 | 1 |
Normalize all sensor values to be between 0 and 1 | def FXRi(YKHO, oB5g):
vKuY = []
for YRbF, XtFw in enumerate(oB5g):
if YRbF == 0:
vKuY.append((XtFw + 100) / 400)
if YRbF == 1:
vKuY.append(XtFw)
if YRbF == 2:
vKuY.append(XtFw)
if YRbF > 2:
vKuY.append(XtFw / 200)
return vKuY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMBi(YKHO, Iz2h):\n return (Iz2h - YKHO.descr.sensor_min) * 2.0 / YKHO.descr.sensor_range - 1.0",
"def NkkI(T6S7):\n kpLf = oyIN.min(T6S7)\n JCoA = oyIN.max(T6S7)\n return (T6S7 - kpLf) / (JCoA - kpLf)",
"def NkkI(YKHO):\n PtQX = YKHO.max()\n if PtQX:\n YKHO.values = [BWXx / PtQX f... | [
"0.74119925",
"0.73583007",
"0.72005737",
"0.71679723",
"0.7141279",
"0.7136196",
"0.7129195",
"0.7122353",
"0.71046877",
"0.70809895",
"0.7040054",
"0.70394856",
"0.7031614",
"0.69607365",
"0.6941624",
"0.69373846",
"0.6936667",
"0.69198143",
"0.68961555",
"0.6887191",
"0.68... | 0.0 | -1 |
Constructor for Lda2Vec model. | def FIMM(YKHO, GPtr, QjBU):
super(eFms, YKHO).__init__(GPtr)
YKHO.config = GPtr
YKHO.hparams = QjBU
YKHO.build_graph()
YKHO.init_saver() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, i1gc):\n YKHO.shortname = 'LSA'\n YKHO.name = 'LSAmodel' + str(i1gc)\n YKHO.vector_length = i1gc\n YKHO.remove_stopwords = None\n YKHO.word_dict = None\n YKHO.path = None\n YKHO.model = None\n YKHO.doc_vecs = None",
"def FIMM(YKHO, inoR):\n YKHO._model = inoR",
"def FI... | [
"0.694151",
"0.6887799",
"0.6887799",
"0.683348",
"0.6803581",
"0.67871034",
"0.6663445",
"0.66017866",
"0.65802056",
"0.6560588",
"0.6518134",
"0.6442248",
"0.641069",
"0.6405403",
"0.6386146",
"0.63761085",
"0.6367802",
"0.63614845",
"0.6333434",
"0.6308981",
"0.62409246",
... | 0.70164865 | 0 |
Share all the declared outputs of the block. | def JCEH(YKHO):
NRK2 = {}
for xYGm in YKHO.get_outputs():
if xYGm not in YKHO.__dict__:
YKHO.logger.warning("Block %r didn't create output %r", YKHO.data.name, xYGm)
continue
if xYGm in YKHO._pipes:
bCYe = YKHO._pipes[xYGm]
setattr(YKHO, bCYe.param... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nmdU(YKHO):\n return H6Cb.block_gateway_sptr_block__output_multiple(YKHO)",
"def xyYp(YKHO):\n return H6Cb.block_sptr_output_multiple(YKHO)",
"def nmdU(YKHO):\n return H6Cb.block_gateway_block__output_multiple(YKHO)",
"def xyYp(YKHO):\n return qjwc.copy_sptr_output_multiple(YKHO)",
"def h_a... | [
"0.7170805",
"0.6993655",
"0.69678944",
"0.6951195",
"0.6807374",
"0.67859936",
"0.67840475",
"0.6662044",
"0.6656668",
"0.6516395",
"0.6513566",
"0.6496388",
"0.64949006",
"0.6477864",
"0.64744186",
"0.64482045",
"0.64353657",
"0.63765025",
"0.63679045",
"0.63185626",
"0.622... | 0.7829404 | 0 |
Test quick sort based on expected result. | def ITVr(X4O_):
n5sN = lguw(X4O_, 0, len(X4O_) - 1)
aEqx = [1, 3, 8, 9, 10, 33]
assert n5sN == aEqx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ITVr(YKHO):\n nPrm = [4, 78, 2, 33, 0, 99, 86, 4, 21, 3]\n aEqx = [0, 2, 3, 4, 4, 21, 33, 78, 86, 99]\n hlel = lguw(nPrm, 0, len(nPrm) - 1)\n YKHO.assertEqual(hlel, aEqx)",
"def ITVr():\n assert SoD9.quick_sort([3, 6, 3, 5, 8, 1]) == [1, 3, 3, 5, 6, 8], 'incorrect'\n assert SoD9.quick_sort(... | [
"0.86100894",
"0.8284832",
"0.8040686",
"0.8002889",
"0.78704554",
"0.7858978",
"0.77646065",
"0.7746972",
"0.7734527",
"0.77210784",
"0.7546613",
"0.7472991",
"0.731338",
"0.7307453",
"0.7252006",
"0.7133654",
"0.70797807",
"0.6937597",
"0.69179267",
"0.6903198",
"0.6901172"... | 0.84193677 | 1 |
Return the path of the page. This may be dynamic, determined by configuration options passed to the page object's constructor. | def pmON(YKHO):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ILzh(YKHO):\n return YKHO.get_path(YKHO.config['pages'])",
"def pmON(YKHO):\n if YKHO.is_root:\n return ''\n return '%s%s/' % (YKHO.parent_page.path, YKHO.name)",
"def pmON(YKHO) -> str:\n return qe4Y.get(YKHO, 'path')",
"def pmON(YKHO) -> str:\n return qe4Y.get(YKHO, 'path')",
"d... | [
"0.7879756",
"0.75403863",
"0.69784",
"0.69784",
"0.69784",
"0.69784",
"0.69784",
"0.69784",
"0.69784",
"0.69784",
"0.69784",
"0.69784",
"0.69675374",
"0.68992245",
"0.68701553",
"0.68701553",
"0.68701553",
"0.68701553",
"0.68701553",
"0.68701553",
"0.6832152",
"0.68150157"... | 0.0 | -1 |
Convnet using default 5x5 convolutions w/ stride 2. | def bNic(g4y1, KgFw, shZZ=[64, 64, 64], wyeE=5, OEaZ=2, CJGY=None, EvQg=True, mWFP='convnet', Ix59=False, d_rq=1e-06, BQzh=False):
imT5 = g4y1
Zode = []
with ZylS.variable_scope(mWFP, reuse=CJGY):
for G1Hx, Htse in enumerate(shZZ):
if G1Hx == 0 and (not BQzh):
imT5 = tRmQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bAiq(UUZO, sYyA, _0fC=1, oug5=False):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=5, stride=_0fC, padding=2, bias=oug5)",
"def bAiq(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=5, stride=_0fC, padding=2, groups=moMn, bias=False, dilation=ivFb)",
"def kCdX(DYuh, t... | [
"0.7939209",
"0.7756409",
"0.7748917",
"0.728018",
"0.719303",
"0.71812844",
"0.7174823",
"0.7174823",
"0.7174823",
"0.71614146",
"0.7110162",
"0.7066748",
"0.7008628",
"0.70054483",
"0.6952186",
"0.6951906",
"0.6950659",
"0.6949085",
"0.6949085",
"0.69461155",
"0.69399065",
... | 0.0 | -1 |
Sets the destination_hash of this DestinyObjectiveProgress. | def OrRD(YKHO, OrRD):
YKHO._destination_hash = OrRD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yFgu(YKHO, yFgu):\n YKHO._destination = yFgu",
"def X1Eq(YKHO, X1Eq):\n YKHO._objective_hash = X1Eq",
"def Mbgn(YKHO, yFgu):\n YKHO.destination = yFgu",
"def FIMM(YKHO, X1Eq=None, OrRD=None, Eo_l=None, Eb4t=None, G0Cz=None, Fd4y=None, oWb2=None):\n YKHO._objective_hash = None\n YKHO._desti... | [
"0.60560864",
"0.59769297",
"0.58838767",
"0.5859845",
"0.5790127",
"0.5720851",
"0.5667947",
"0.56428903",
"0.56388414",
"0.558612",
"0.554808",
"0.5510326",
"0.55009645",
"0.5436111",
"0.5436111",
"0.53919214",
"0.5367681",
"0.5340197",
"0.5340197",
"0.5340197",
"0.5340197"... | 0.8095085 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Bottleneck block for ResNet. If style is "pytorch", the stridetwo layer is the 3x3 conv layer, if it is "caffe", the stridetwo layer is the first 1x1 conv layer. | def FIMM(YKHO, hhGw, vRTu, jfLk=1, kIVF=1, ivFb=1, myXy=None, _Cnz='pytorch', mih5=True, NmU_='3x1x1', xGG1=True, fYno=None, Ytun=False):
super(MF6R, YKHO).__init__()
assert _Cnz in ['pytorch', 'caffe']
assert NmU_ in ['3x1x1', '3x3x3']
YKHO.inplanes = hhGw
YKHO.planes = vRTu
if _Cnz == 'pytorch... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hINw(mL4f=False, Eb4t=True, **B2fa):\n return CLgi('resnet_bottleneck_2111', MF6R, [2, 1, 1, 1], mL4f, Eb4t, **B2fa)",
"def FIMM(YKHO, hhGw, vRTu, _0fC=1, ivFb=1, myXy=None, _Cnz='pytorch', Ytun=False, lKGj=None, yfP4=dict(type='BN'), edxD=None, c4tt=None):\n super(MF6R, YKHO).__init__()\n assert _C... | [
"0.6669364",
"0.66489244",
"0.6533673",
"0.65191746",
"0.6504774",
"0.64588183",
"0.6412051",
"0.6392617",
"0.630528",
"0.6292264",
"0.6290254",
"0.62600595",
"0.62532735",
"0.6251074",
"0.6198539",
"0.61755407",
"0.61631304",
"0.61558527",
"0.6135571",
"0.6128199",
"0.611316... | 0.65355766 | 2 |
First, have fixed lr, then, decay it linearly to zero | def yibV(K0do, IKjI, ympj, hBR5):
def qoQE(qtWj):
return 1 - max(0, qtWj + 1 - hBR5 * ympj) / float((1 - hBR5) * ympj + 1)
return hc6Z.LambdaLR(K0do, lr_lambda=qoQE, last_epoch=IKjI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fDAZ(YKHO):\n KULu = 100\n C3ST = ln42([], lr=0.01, decay_lr=True, total_episodes=KULu)\n for YRbF in range(KULu):\n C3ST.update([])\n YKHO.assertAlmostEqual(C3ST.lr, 0, 7)",
"def fd7I(YKHO) -> None:\n if not YKHO.decay_type:\n return\n if YKHO.decay_type == 'exponential':\n ... | [
"0.71106106",
"0.69705486",
"0.6896465",
"0.6854359",
"0.6813",
"0.6732744",
"0.67019176",
"0.6648452",
"0.65379184",
"0.6537578",
"0.6526157",
"0.6516559",
"0.6512599",
"0.6505259",
"0.6504294",
"0.64996",
"0.648917",
"0.64766884",
"0.6466526",
"0.6448212",
"0.6440383",
"0... | 0.0 | -1 |
This default evaluation function just returns the score of the state. The score is the same one displayed in the Pacman GUI. This evaluation function is meant for use with adversarial search agents (not reflex agents). | def fHT3(rfNN):
return rfNN.getScore() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fHT3(Ov5A):\n return Ov5A.getScore()",
"def fHT3(Ov5A):\n return Ov5A.getScore()",
"def fHT3(Ov5A):\n return Ov5A.getScore()",
"def b7La(YKHO, QTBn):\n iBIi, oyg0, YPaw = QTBn\n return phK_(oyg0, iBIi)",
"def fHT3(rfNN):\n return rfNN.getScore()",
"def fHT3(rfNN: GameState):\n re... | [
"0.80747694",
"0.8053885",
"0.8053885",
"0.79367274",
"0.7678454",
"0.76621634",
"0.7644003",
"0.76349473",
"0.7594382",
"0.7594382",
"0.7594382",
"0.7594382",
"0.7594382",
"0.7594382",
"0.7594382",
"0.7594382",
"0.7594382",
"0.7594382",
"0.7503015",
"0.74899536",
"0.74899536... | 0.7554603 | 27 |
Constructs a ResNeXt50 model. | def CyS1(**B2fa):
C3ST = V851(MF6R, [3, 4, 6, 3], **B2fa)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HUdF(**B2fa):\n C3ST = eWLN(dFzk, [3, 4, 6, 3], **B2fa)\n return C3ST",
"def HUdF(**B2fa):\n C3ST = eWLN(MF6R, [3, 4, 6, 3], **B2fa)\n return C3ST",
"def abVM():\n global ResNet50_model\n L9vW = uwZX.ResNet50(weights='imagenet')\n L9vW._make_predict_function()",
"def Gdbk(YKHO):\n ... | [
"0.7365848",
"0.7281844",
"0.7236319",
"0.71287984",
"0.7014757",
"0.6945713",
"0.6917862",
"0.6883368",
"0.68828756",
"0.6853268",
"0.6845899",
"0.6845899",
"0.6815152",
"0.680358",
"0.6794476",
"0.67801446",
"0.67778164",
"0.6775221",
"0.6775221",
"0.6775221",
"0.6775221",
... | 0.6378176 | 55 |
Constructs a ResNeXt152 model. | def IDjQ(**B2fa):
C3ST = V851(MF6R, [3, 8, 36, 3], **B2fa)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e8xY(**B2fa):\n C3ST = eWLN(dFzk, [3, 8, 36, 3], **B2fa)\n return C3ST",
"def e8xY(**B2fa):\n C3ST = eWLN(MF6R, [3, 8, 36, 3], **B2fa)\n return C3ST",
"def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], c2s7, **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDC... | [
"0.7493011",
"0.74303526",
"0.6966272",
"0.68477446",
"0.6833732",
"0.68276674",
"0.6816552",
"0.6816552",
"0.6816552",
"0.6816552",
"0.6816552",
"0.6816552",
"0.6816552",
"0.6816552",
"0.6816552",
"0.6816552",
"0.6809864",
"0.68085647",
"0.6802238",
"0.6801398",
"0.6801398",... | 0.6885669 | 3 |
Ensure we can create a new question object. | def RwUd(YKHO):
bD7m = Rmd_('questiondb-list')
pB3N = {'question': 'How is this...?'}
eOtH, _EYN = _J2v.objects.get_or_create(user=Nc2H.objects.get(contact_number='+919999999901'))
YKHO.client.credentials(HTTP_AUTHORIZATION='Token ' + eOtH.key)
PowE = MGTQ.objects.count()
geh0 = YKHO.client.post... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def it6l(YKHO):\n pass",
"def WULY(YKHO):\n YKHO.load_fixture('tests/fixtures/questions.json', Y4Gy)\n _jzK = {'question': '', 'answer': 'Marie Curie', 'category': 1, 'difficulty': 1}\n Ylbp = YKHO.client().post('/questions', json=_jzK)\n nPrm = qQXR.loads(Ylbp.get_data(as_text=True))\n YKHO.as... | [
"0.7271794",
"0.70257753",
"0.69387734",
"0.68017",
"0.6770078",
"0.67453295",
"0.6712709",
"0.67089105",
"0.66896355",
"0.6645793",
"0.6633407",
"0.66061753",
"0.66042095",
"0.6588929",
"0.6585184",
"0.6474622",
"0.6425031",
"0.6419535",
"0.63928807",
"0.6381651",
"0.6376874... | 0.6294346 | 25 |
Clone(itkIsotropicFourthOrderLevelSetImageFilterIF2IF2 self) > itkIsotropicFourthOrderLevelSetImageFilterIF2IF2_Pointer | def B29l(YKHO) -> 'itkIsotropicFourthOrderLevelSetImageFilterIF2IF2_Pointer':
return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF2IF2_Clone(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B29l(YKHO) -> 'itkSparseFieldLevelSetImageFilterIF2IF2_Pointer':\n return Doq4.itkSparseFieldLevelSetImageFilterIF2IF2_Clone(YKHO)",
"def B29l(YKHO) -> 'itkLevelSetFunctionIF2_Pointer':\n return N7Re.itkLevelSetFunctionIF2_Clone(YKHO)",
"def B29l(YKHO) -> 'itkConnectedThresholdImageFilterIF2IF2_Point... | [
"0.8250999",
"0.7845412",
"0.7806278",
"0.7782241",
"0.777237",
"0.77582496",
"0.7738587",
"0.77324575",
"0.7707553",
"0.768058",
"0.767703",
"0.7619676",
"0.7594741",
"0.7582794",
"0.75742936",
"0.75686944",
"0.7565003",
"0.7537866",
"0.75283587",
"0.75165826",
"0.7478843",
... | 0.924376 | 0 |
GetMaxFilterIteration(itkIsotropicFourthOrderLevelSetImageFilterIF2IF2 self) > unsigned int | def kg54(YKHO) -> 'unsigned int':
return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF2IF2_GetMaxFilterIteration(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kg54(YKHO) -> 'unsigned int':\n return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF3IF3_GetMaxFilterIteration(YKHO)",
"def OX1d(YKHO, THRx: 'unsigned int const') -> 'void':\n return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF2IF2_SetMaxFilterIteration(YKHO, THRx)",
"def OX1d(YKHO, THRx: 'u... | [
"0.84659576",
"0.7777832",
"0.72959745",
"0.6971847",
"0.68410397",
"0.6830772",
"0.68255866",
"0.67980736",
"0.6797292",
"0.6762044",
"0.67216355",
"0.6721502",
"0.66736174",
"0.6671703",
"0.667044",
"0.6667114",
"0.6645734",
"0.66344607",
"0.6589686",
"0.6585941",
"0.658119... | 0.89584684 | 0 |
cast(itkLightObject obj) > itkIsotropicFourthOrderLevelSetImageFilterIF2IF2 | def YWvJ(YEnM: 'itkLightObject') -> 'itkIsotropicFourthOrderLevelSetImageFilterIF2IF2 *':
return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF2IF2_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pk4P(YEnM: 'itkLightObject') -> 'itkIsotropicFourthOrderLevelSetImageFilterIF2IF2 *':\n return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF2IF2_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkSparseFieldLevelSetImageFilterIF2IF2 *':\n return Doq4.itkSparseFieldLevelSetImageFilterIF2IF2_cast(... | [
"0.82888603",
"0.7738102",
"0.7548278",
"0.74319285",
"0.74272346",
"0.7303619",
"0.7259532",
"0.72050345",
"0.7184826",
"0.71845245",
"0.7167917",
"0.71633697",
"0.716177",
"0.714472",
"0.71397114",
"0.7138611",
"0.71324795",
"0.70912254",
"0.70878094",
"0.706196",
"0.705853... | 0.8278526 | 1 |
New() > itkIsotropicFourthOrderLevelSetImageFilterIF2IF2 Create a new object of the class itkIsotropicFourthOrderLevelSetImageFilterIF2IF2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new object... | def oW_4(*qIxc, **PECO):
YEnM = PNh1.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = MOc7.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = L00Y.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.77161664",
"0.7538647",
"0.719023",
"0.71509176",
"0.710372",
"0.7102969",
"0.70789707",
"0.70560694",
"0.70510536",
"0.7026131",
"0.7021665",
"0.7018782",
"0.70185375",
"0.700843",
"0.70053375",
"0.69842166",
"0.6950248",
"0.6946534",
"0.69346035",
"0.69248456",
"0.692211... | 0.8323131 | 0 |
itkIsotropicFourthOrderLevelSetImageFilterIF2IF2_cast(itkLightObject obj) > itkIsotropicFourthOrderLevelSetImageFilterIF2IF2 | def Pk4P(YEnM: 'itkLightObject') -> 'itkIsotropicFourthOrderLevelSetImageFilterIF2IF2 *':
return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF2IF2_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkIsotropicFourthOrderLevelSetImageFilterIF2IF2 *':\n return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF2IF2_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkSparseFieldLevelSetImageFilterIF2IF2 *':\n return Doq4.itkSparseFieldLevelSetImageFilterIF2IF2_cast(... | [
"0.89065486",
"0.82750046",
"0.82500666",
"0.7968627",
"0.7894844",
"0.7891047",
"0.7856815",
"0.78532714",
"0.78240514",
"0.77776647",
"0.7766582",
"0.7747851",
"0.77421045",
"0.7734593",
"0.7720018",
"0.771192",
"0.7704545",
"0.76923686",
"0.76871836",
"0.7671035",
"0.76594... | 0.9117451 | 0 |
Clone(itkIsotropicFourthOrderLevelSetImageFilterIF3IF3 self) > itkIsotropicFourthOrderLevelSetImageFilterIF3IF3_Pointer | def B29l(YKHO) -> 'itkIsotropicFourthOrderLevelSetImageFilterIF3IF3_Pointer':
return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF3IF3_Clone(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B29l(YKHO) -> 'itkSparseFieldLevelSetImageFilterIF3IF3_Pointer':\n return Doq4.itkSparseFieldLevelSetImageFilterIF3IF3_Clone(YKHO)",
"def B29l(YKHO) -> 'itkLevelSetFunctionIF3_Pointer':\n return N7Re.itkLevelSetFunctionIF3_Clone(YKHO)",
"def B29l(YKHO) -> 'itkN4BiasFieldCorrectionImageFilterIF3IUC3IF... | [
"0.83987737",
"0.8045739",
"0.7958737",
"0.7958727",
"0.7945757",
"0.79153824",
"0.79126555",
"0.7906222",
"0.7897384",
"0.7878096",
"0.7858236",
"0.7842104",
"0.7814281",
"0.775316",
"0.7738856",
"0.77278507",
"0.7727056",
"0.77060074",
"0.77034384",
"0.76910317",
"0.7687772... | 0.9264954 | 0 |
GetMaxFilterIteration(itkIsotropicFourthOrderLevelSetImageFilterIF3IF3 self) > unsigned int | def kg54(YKHO) -> 'unsigned int':
return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF3IF3_GetMaxFilterIteration(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kg54(YKHO) -> 'unsigned int':\n return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF2IF2_GetMaxFilterIteration(YKHO)",
"def OX1d(YKHO, THRx: 'unsigned int const') -> 'void':\n return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF3IF3_SetMaxFilterIteration(YKHO, THRx)",
"def OX1d(YKHO, THRx: 'u... | [
"0.86927104",
"0.783906",
"0.7281786",
"0.7053877",
"0.6985404",
"0.6983801",
"0.6980126",
"0.6945531",
"0.69206244",
"0.6917743",
"0.68932486",
"0.6888387",
"0.68686384",
"0.68624437",
"0.6852926",
"0.6852492",
"0.6838907",
"0.6808238",
"0.6801771",
"0.67654663",
"0.6762929"... | 0.90172124 | 0 |
cast(itkLightObject obj) > itkIsotropicFourthOrderLevelSetImageFilterIF3IF3 | def YWvJ(YEnM: 'itkLightObject') -> 'itkIsotropicFourthOrderLevelSetImageFilterIF3IF3 *':
return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF3IF3_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GWqd(YEnM: 'itkLightObject') -> 'itkIsotropicFourthOrderLevelSetImageFilterIF3IF3 *':\n return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF3IF3_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkIsotropicFourthOrderLevelSetImageFilterIF2IF2 *':\n return RwO9.itkIsotropicFourthOrderLevelSetImage... | [
"0.8218261",
"0.77578753",
"0.7700752",
"0.75559825",
"0.750031",
"0.7441088",
"0.7416856",
"0.7400009",
"0.735998",
"0.7359246",
"0.73057944",
"0.7301924",
"0.7299075",
"0.7294705",
"0.72828233",
"0.72573316",
"0.7241516",
"0.72330105",
"0.7208581",
"0.72064614",
"0.7202076"... | 0.82258284 | 0 |
New() > itkIsotropicFourthOrderLevelSetImageFilterIF3IF3 Create a new object of the class itkIsotropicFourthOrderLevelSetImageFilterIF3IF3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new object... | def oW_4(*qIxc, **PECO):
YEnM = xW6j.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = ktR3.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = WW5w.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7975731",
"0.7857504",
"0.75816596",
"0.75288916",
"0.7378894",
"0.73147523",
"0.7274461",
"0.72442394",
"0.71942574",
"0.71589553",
"0.71484363",
"0.71397734",
"0.71257025",
"0.70822024",
"0.7075824",
"0.7068716",
"0.70673054",
"0.70658374",
"0.7052979",
"0.70382875",
"0.... | 0.8501187 | 0 |
itkIsotropicFourthOrderLevelSetImageFilterIF3IF3_cast(itkLightObject obj) > itkIsotropicFourthOrderLevelSetImageFilterIF3IF3 | def GWqd(YEnM: 'itkLightObject') -> 'itkIsotropicFourthOrderLevelSetImageFilterIF3IF3 *':
return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF3IF3_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkIsotropicFourthOrderLevelSetImageFilterIF3IF3 *':\n return RwO9.itkIsotropicFourthOrderLevelSetImageFilterIF3IF3_cast(YEnM)",
"def fvWI(YEnM: 'itkLightObject') -> 'itkSparseFieldLevelSetImageFilterIF3IF3 *':\n return Doq4.itkSparseFieldLevelSetImageFilterIF3IF3_cast(... | [
"0.8823327",
"0.82683074",
"0.82549834",
"0.8028377",
"0.80029005",
"0.79805505",
"0.79541653",
"0.7915545",
"0.79112005",
"0.79081094",
"0.7882368",
"0.7872691",
"0.78584164",
"0.7817758",
"0.7801017",
"0.78006166",
"0.77892303",
"0.7780802",
"0.7773649",
"0.7772759",
"0.776... | 0.9088255 | 0 |
Wrapper for pd.DataFrame.read_csv with preferred defaults | def ZF2z(K6dD: Path) -> rLdf.DataFrame:
return rLdf.read_csv(K6dD, sep='\t', na_filter=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HND1(Ux0P, **B2fa):\n return rLdf.read_csv(Ux0P, **B2fa)",
"def HND1(VqRE, **B2fa):\n nPrm = rLdf.read_csv(VqRE, **B2fa)\n try:\n eG0B = nPrm.columns.astype(oyIN.int64)\n except TypeError:\n eG0B = oyIN.arange(0, len(nPrm.columns))\n if not nPrm.isna().values.any():\n YEnM... | [
"0.74897164",
"0.7357669",
"0.7214215",
"0.71895754",
"0.7097165",
"0.70076907",
"0.6971647",
"0.69207877",
"0.6870967",
"0.6790069",
"0.6742914",
"0.6716871",
"0.66721576",
"0.6622487",
"0.6612192",
"0.65644985",
"0.6559205",
"0.65472573",
"0.6531891",
"0.6505028",
"0.650362... | 0.0 | -1 |
Get all the parents of a task, including the task itself. | def HEUt(D5gV):
ka3s = D5gV
while ka3s is not None:
yield ka3s
ka3s = ka3s.parentTask().get() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rKzm(YKHO):\n ACnF = []\n _AKB = YKHO._parent\n while _AKB is not None:\n ACnF.append(_AKB)\n _AKB = _AKB._parent\n ACnF.reverse()\n return ACnF",
"def HqGg(YKHO):\n ACnF = []\n ZfUD = YKHO\n while ZfUD.parent is not None:\n ACnF.append(ZfUD.parent)\n ZfUD ... | [
"0.72575253",
"0.7199017",
"0.7149796",
"0.70546675",
"0.7037791",
"0.70165586",
"0.69864756",
"0.69254565",
"0.6889742",
"0.68370384",
"0.68210083",
"0.6791195",
"0.6774559",
"0.6759081",
"0.6733908",
"0.67278314",
"0.6715027",
"0.66946787",
"0.6688207",
"0.6682488",
"0.6681... | 0.7903396 | 0 |
Check that we can correctly identify forced variables. | def DByN(YKHO):
YKHO.assertEqual(mtG_(YKHO.T1), {1: False})
YKHO.assertEqual(mtG_(YKHO.T2), None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AlZS(YKHO):\n return True",
"def jeJs(YKHO, Pisw, aeqI, dSjO):\n yuoJ = set(aeqI) & set(dSjO)\n if yuoJ:\n raise ValueError('Shared trainable variables: %s' % yuoJ)\n uAod = set(Pisw) - set(aeqI) - set(dSjO)\n if uAod:\n raise ValueError('Unused trainable variables: %s' % uAod)",... | [
"0.6937151",
"0.6606975",
"0.65855354",
"0.6316875",
"0.628123",
"0.628123",
"0.628123",
"0.62258524",
"0.62258524",
"0.62258524",
"0.62258524",
"0.62258524",
"0.62258524",
"0.62258524",
"0.62258524",
"0.62258524",
"0.62258524",
"0.62258524",
"0.62258524",
"0.62258524",
"0.62... | 0.0 | -1 |
Recursively match and merge a new configuration value into a previous one. | def nfSm(YKHO, izFS: BasicType, Qj8D: BasicType) -> KeuM:
XOSE = type(izFS)
b6vv = type(Qj8D)
rm6b = {list, tuple}
aTpP = {int, float, bool, complex, str, bytes}
if XOSE is dict and b6vv is dict:
for hU8D in Qj8D:
if hU8D in izFS:
JWpr = izFS[hU8D]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGZu(GPtr: Dict, pmON: List[str], BWXx: Any) -> ImMB:\n if len(pmON) == 0:\n return BWXx\n else:\n H5ew = pmON[0]\n gv2B = jth9.deepcopy(GPtr.get(H5ew))\n if not isinstance(gv2B, dict):\n gv2B = {}\n GPtr[H5ew] = vGZu(gv2B, pmON[1:], BWXx)\n return GPt... | [
"0.6577458",
"0.5927658",
"0.5818401",
"0.57953864",
"0.57686347",
"0.56728834",
"0.56430644",
"0.5621268",
"0.5619488",
"0.560297",
"0.5580874",
"0.55743337",
"0.55492914",
"0.5544128",
"0.55252224",
"0.5514384",
"0.55078614",
"0.5493228",
"0.5488443",
"0.5476719",
"0.546123... | 0.57020205 | 5 |
Fail this test unless the result of a listing of given message statuses matches the given message indices. | def Uxqh(YKHO, kL40, IgU2):
MuIv = F1dJ(YKHO.store)
for e_M6 in kL40:
MuIv.refineByStatus(e_M6)
YKHO.assertMessageQuery(MuIv, IgU2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jpJV(YKHO):\n w4SE, DW23 = YKHO.create_partner_reporting_statuses()\n YKHO.create_partner_reporting_statuses(courses=(YKHO.course_awesome_org,), is_being_processed=True)\n YKHO.assert_status_and_user_list(w4SE)",
"def dbbA(YKHO, NmYP, IgU2):\n YKHO.assertEquals(set(map(YKHO.messageList.index, lis... | [
"0.6298822",
"0.6221784",
"0.61704725",
"0.5821508",
"0.57890534",
"0.57868",
"0.56926584",
"0.56679463",
"0.5664347",
"0.5653875",
"0.5602455",
"0.55983",
"0.55983",
"0.55983",
"0.55983",
"0.55983",
"0.55983",
"0.55983",
"0.55983",
"0.55983",
"0.55983",
"0.55983",
"0.559... | 0.6801358 | 0 |
Fail this test unless the result of a given mailbox selector matches the given message indices. | def dbbA(YKHO, NmYP, IgU2):
YKHO.assertEquals(set(map(YKHO.messageList.index, list(NmYP))), set(IgU2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uxqh(YKHO, kL40, IgU2):\n MuIv = F1dJ(YKHO.store)\n for e_M6 in kL40:\n MuIv.refineByStatus(e_M6)\n YKHO.assertMessageQuery(MuIv, IgU2)",
"def b54g(YKHO):\n YKHO.shouldHit = False\n yEHD = YKHO.step.perform(None, None, None)\n YKHO.assertEquals(YKHO.messages, yEHD, 'Should have retur... | [
"0.6144667",
"0.5808599",
"0.5536753",
"0.54495823",
"0.5438038",
"0.5424362",
"0.5424362",
"0.5405693",
"0.5370807",
"0.5355459",
"0.53474176",
"0.5328443",
"0.5296329",
"0.5293799",
"0.5290619",
"0.5249461",
"0.5245552",
"0.5239742",
"0.52264166",
"0.5221705",
"0.5221705",
... | 0.6522354 | 0 |
Generate a random string of fixed length | def TJC9(FVpJ=10):
KoG3 = vIwR.ascii_letters + vIwR.digits
return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))",
"def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]",
"def BWvy(a__r):\n return Hy7s.urandom(a__r)",
"def MiNk(u54L):\n gLiZ = vIwR.ascii... | [
"0.8746205",
"0.87138057",
"0.86634374",
"0.8589632",
"0.85856813",
"0.85634226",
"0.8558564",
"0.85515654",
"0.853908",
"0.8533391",
"0.8508468",
"0.85072726",
"0.84704083",
"0.84667903",
"0.84667903",
"0.84504145",
"0.8449424",
"0.8428432",
"0.84244287",
"0.8423231",
"0.841... | 0.0 | -1 |
Unload a config entry. | async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:
UksD: CTgR[uRQE] = ajET.data[Sugg]
return await UksD.async_unload_entry(bTKY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)",
"async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()... | [
"0.70418245",
"0.69975436",
"0.69197667",
"0.69024074",
"0.6896897",
"0.6870464",
"0.6840728",
"0.67911863",
"0.67835754",
"0.6782968",
"0.6776581",
"0.67688036",
"0.6737991",
"0.6730449",
"0.6713354",
"0.67085946",
"0.6664857",
"0.66411716",
"0.6637687",
"0.66157013",
"0.660... | 0.0 | -1 |
Call when the sensor entity is added to hass. | async def async_internal_added_to_hass(YKHO) -> None:
await super().async_internal_added_to_hass()
if not YKHO.registry_entry:
return
YKHO.async_registry_entry_updated() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_added_to_hass(YKHO):\n YKHO.carson_ha_entities[YKHO.unique_id] = YKHO",
"async def async_added_to_hass(YKHO):\n await super().async_added_to_hass()\n wMDS = await YKHO.hass.helpers.entity_registry.async_get_registry()\n ybpK = int(YKHO.device_url.split('#', 1)[1]) + 1\n YKHO._temp_... | [
"0.7760458",
"0.7757098",
"0.77229035",
"0.7658599",
"0.7595517",
"0.7508598",
"0.7424686",
"0.7424686",
"0.7378386",
"0.7347822",
"0.73309845",
"0.7208431",
"0.7166911",
"0.7154537",
"0.71175766",
"0.7117257",
"0.7051737",
"0.7044942",
"0.70279926",
"0.6976933",
"0.69759566"... | 0.6375188 | 100 |
Return the state class of this entity, if any. | def VPCt(YKHO) -> F6px | str | None:
if hasattr(YKHO, '_attr_state_class'):
return YKHO._attr_state_class
if hasattr(YKHO, 'entity_description'):
return YKHO.entity_description.state_class
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VPCt(YKHO):\n return YKHO._handle('state_class')",
"def VPCt(YKHO):\n return YKHO._sensor_type[B980] if YKHO._device.valid else None",
"def VPCt(YKHO):\n return YKHO._sc",
"def QTBn(YKHO) -> uLKX[None, str, int, float]:\n return YKHO._entity.get(N4T2)",
"def QTBn(YKHO) -> eHQG:\n return ... | [
"0.849879",
"0.80101925",
"0.7966013",
"0.73272055",
"0.7170076",
"0.705404",
"0.7037604",
"0.700475",
"0.6899099",
"0.6793726",
"0.67207694",
"0.67189103",
"0.6700479",
"0.66319424",
"0.6575996",
"0.65740293",
"0.6553242",
"0.6542427",
"0.6542427",
"0.6542427",
"0.6542427",
... | 0.87160957 | 0 |
Return the time when the sensor was last reset, if any. | def Ymih(YKHO) -> qcWV | None:
if hasattr(YKHO, '_attr_last_reset'):
return YKHO._attr_last_reset
if hasattr(YKHO, 'entity_description'):
return YKHO.entity_description.last_reset
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ymih(YKHO) -> qcWV | None:\n if YKHO.entity_description.state_class == F6px.TOTAL:\n return YKHO.device.last_report\n return None",
"def XLSg(YKHO):\n return YKHO.__current",
"def z08B(YKHO):\n return YKHO._timestamp_to_utc(YKHO._get_variable('lupt'))",
"def K_lE(YKHO):\n return int... | [
"0.7753464",
"0.7255255",
"0.71382284",
"0.7078325",
"0.70483655",
"0.6889054",
"0.68807095",
"0.68807095",
"0.6843579",
"0.6833572",
"0.6825887",
"0.6811867",
"0.68113613",
"0.6795655",
"0.6786444",
"0.6786444",
"0.67741364",
"0.67741364",
"0.67741364",
"0.67741364",
"0.6774... | 0.68443197 | 8 |
Return initial suggested unit of measurement. | def CQ_5(YKHO) -> str | None:
WDGM = YKHO.suggested_unit_of_measurement
if WDGM is None:
WDGM = YKHO.hass.config.units.get_converted_unit(YKHO.device_class, YKHO.native_unit_of_measurement)
return WDGM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WDGM(YKHO):\n return YKHO._handle('suggested_unit_of_measurement')",
"def b82i(YKHO):\n return ''",
"def b82i(YKHO):\n return ''",
"def b82i(YKHO):\n return None",
"def b82i(YKHO):\n return None",
"def b82i(YKHO):\n return None",
"def b82i(YKHO):\n return None",
"def CtSO(YKH... | [
"0.7917488",
"0.7305014",
"0.7305014",
"0.7278852",
"0.7278852",
"0.7278852",
"0.7278852",
"0.7253514",
"0.7196254",
"0.71632254",
"0.714386",
"0.7117854",
"0.71007806",
"0.7028371",
"0.7026759",
"0.69703346",
"0.69703346",
"0.6961137",
"0.6933237",
"0.693259",
"0.6891544",
... | 0.8568094 | 0 |
Return the unit of measurement of the sensor, if any. | def qraf(YKHO) -> str | None:
if hasattr(YKHO, '_attr_native_unit_of_measurement'):
return YKHO._attr_native_unit_of_measurement
if hasattr(YKHO, 'entity_description'):
return YKHO.entity_description.native_unit_of_measurement
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b82i(YKHO):\n return YKHO._sensor_type['unit'] if YKHO._device.valid else None",
"def b82i(YKHO):\n return YKHO.sensor_details[2]",
"def b82i(YKHO):\n return FBLU[YKHO.sensor_name][0]",
"def b82i(YKHO):\n return lc9R[YKHO.sensor_type].get('unit')",
"def b82i(YKHO):\n return lc9R.get(YKHO... | [
"0.9080093",
"0.906448",
"0.90118676",
"0.9003736",
"0.8858335",
"0.8825324",
"0.88225985",
"0.88225985",
"0.8821624",
"0.8810682",
"0.87938476",
"0.87532014",
"0.87530404",
"0.8719212",
"0.8710356",
"0.85974866",
"0.8525482",
"0.8494117",
"0.84898496",
"0.8436562",
"0.842579... | 0.7944811 | 80 |
Return the representation. Entity.__repr__ includes the state in the generated string, this fails if we're called before self.hass is set. | def wHJl(YKHO) -> str:
if not YKHO.hass:
return f'<Entity {YKHO.name}>'
return super().__repr__() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n KCHu = 'fireform.entity at {} {}\\n'.format(hex(id(YKHO)), '' if YKHO.alive else '(DEAD)')\n KCHu += ' data:\\n'\n for YRbF, r845 in YKHO.datum.items():\n if isinstance(YRbF, str) or not r845.has_name():\n KCHu += ' {} : {}\\n'.format(YRbF, r845)\n KCHu += ... | [
"0.7565828",
"0.7503794",
"0.7371927",
"0.7261888",
"0.70859545",
"0.70859545",
"0.7027077",
"0.6994969",
"0.69910765",
"0.6983819",
"0.69808877",
"0.69808877",
"0.6978767",
"0.6978767",
"0.6978767",
"0.6977314",
"0.69540304",
"0.69477975",
"0.69396883",
"0.69396883",
"0.6939... | 0.86035883 | 0 |
Return boolean if volume is currently muted. | def qHHI(YKHO):
return YKHO._volume_muted | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHHI(YKHO):\n return YKHO.device.get_muted()",
"def qHHI(YKHO):\n return YKHO._volume.muted",
"def qHHI(YKHO):\n return YKHO._muted",
"def qHHI(YKHO):\n return YKHO._muted",
"def qHHI(YKHO):\n return YKHO._muted",
"def qHHI(YKHO):\n return YKHO._muted",
"def qHHI(YKHO):\n retur... | [
"0.89787054",
"0.8905848",
"0.88873994",
"0.88873994",
"0.88873994",
"0.88873994",
"0.88873994",
"0.88873994",
"0.88873994",
"0.8863492",
"0.8855734",
"0.8794135",
"0.8791959",
"0.87757343",
"0.87750477",
"0.87363034",
"0.8729472",
"0.8699423",
"0.82576835",
"0.81999254",
"0.... | 0.8836594 | 11 |
Return device specific state attributes. Implemented by platform classes. | def R1i3(YKHO):
return {'platform': 'polyyodar_i3'} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr",
"def R1i3(YKHO):\n hkS8 = {}\n for jzdc in YKHO._attr_dps:\n hkS8[jzdc.name] = jzdc.get_value(YKHO._device)\n return hkS8",
"def R1i3(YKHO):\n if YKHO._state is not None:\n return {PlJk: ... | [
"0.8447442",
"0.8384101",
"0.83700454",
"0.8351555",
"0.8351555",
"0.8351555",
"0.8351555",
"0.8312255",
"0.83070827",
"0.83068997",
"0.8286648",
"0.82680595",
"0.8261963",
"0.8243204",
"0.8241748",
"0.8241748",
"0.82318825",
"0.82297677",
"0.82297677",
"0.82237065",
"0.82162... | 0.84281796 | 1 |
Pass nonexisting path and expect the error | def lEym(YKHO):
kyiJ = 'does_not_exist'
PiQc = tD7t.joinpath(kyiJ)
with YKHO.assertRaisesRegex(FileNotFoundError, kyiJ, msg="FileNotFoundError was not raised or doesn't contain a description"):
E9By.lib.Stm32pio(PiQc, save_on_destruction=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bu41(YKHO):\n XObx = kJm3()\n UHFx = Phkm(XObx, lambda: cKaM('extremo'))\n YKHO.assertEquals(XObx.getvalue(), 'extremo: No such file or directory\\n')\n YKHO.assertEquals(UHFx, 1)",
"def JPHm(pmON):\n if not Hy7s.path.exists(pmON):\n yR_P.fail_json(msg='{0} does not exists'.format(pmON)... | [
"0.77460635",
"0.76491463",
"0.752017",
"0.7366707",
"0.7337164",
"0.7336451",
"0.7326971",
"0.73235035",
"0.7247466",
"0.7243513",
"0.7242991",
"0.7196492",
"0.7163536",
"0.7162874",
"0.7160409",
"0.7133541",
"0.71109074",
"0.7079213",
"0.70760816",
"0.7074454",
"0.70648855"... | 0.71609885 | 14 |
Return JSON 500 error responses. | def scGH(BQDi, QpfX):
geh0 = vBLA(BQDi, QpfX)
if geh0 is not None:
geh0.data['status_code'] = geh0.status_code
else:
if gCuF.DEBUG:
aeup = str(BQDi)
else:
aeup = 'Internal Server Error'
return oGir({'detail': aeup}, status=500)
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gaSv(tTpl):\n geh0 = tTpl.get_response()\n geh0.data = qQXR.dumps({'code': tTpl.code, 'name': tTpl.name, 'description': tTpl.description})\n geh0.content_type = 'application/json'\n return geh0",
"def Dm5d(QePW, *qIxc, **B2fa):\n nPrm = {'error': 'Internal Server Error (500)'}\n return jnRN... | [
"0.7892925",
"0.7669581",
"0.75574285",
"0.74606794",
"0.74410415",
"0.74326473",
"0.7366152",
"0.73654497",
"0.7336704",
"0.73066354",
"0.729955",
"0.728304",
"0.72829336",
"0.7266258",
"0.7263822",
"0.7211217",
"0.7196907",
"0.7194252",
"0.7184413",
"0.71714705",
"0.7127271... | 0.0 | -1 |
Checks if the size is zero. | def A4KR(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.size <= 0",
"def FBfn(YKHO):\n return YKHO._size == 0",
"def FBfn(YKHO):\n return YKHO.size == 0",
"def FBfn(YKHO) -> int:\n return YKHO.size == 0",
"def FBfn(YKHO):\n return YKHO._size == 0",
"def FBfn(YKHO):\n return YKHO._size == 0",
"def FBfn(YKHO):\n... | [
"0.85582453",
"0.8473843",
"0.8390253",
"0.83415353",
"0.8326642",
"0.8302428",
"0.83015877",
"0.83015877",
"0.83015877",
"0.83015877",
"0.83015877",
"0.83015877",
"0.83015877",
"0.82950765",
"0.8291533",
"0.8291533",
"0.8291533",
"0.8291533",
"0.8291533",
"0.8291533",
"0.829... | 0.0 | -1 |
Remove the last element from a list. | def DbxN(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SBf0(qFa0):\n qFa0.pop(-1)",
"def SBf0(aPd6):\n del aPd6[-1]",
"def Qeks(YKHO):\n YKHO.list.takeItem(YKHO.list.count() - 1)",
"def WNBr(qFa0):\n return qFa0[:-1]",
"def Qeks(YKHO):\n if YKHO.size == 0:\n return None\n XVAW = YKHO.last.val\n if YKHO.size == 1:\n YKHO.h... | [
"0.8741083",
"0.86783874",
"0.81088054",
"0.7609038",
"0.746829",
"0.74376833",
"0.7357565",
"0.7330533",
"0.72880673",
"0.7255439",
"0.70975494",
"0.7039126",
"0.70251775",
"0.68678564",
"0.6839683",
"0.6839562",
"0.6835907",
"0.6835014",
"0.6789967",
"0.67889506",
"0.676096... | 0.0 | -1 |
Concatenate input two list. | def ENFq(Kt9y, I_KI):
return Kt9y if I_KI.isEmpty() else DMbG(Kt9y.reverse(), I_KI).eval() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QXIL(f75j, gYXc):\n return f75j + gYXc",
"def ENFq(fUYa, bEXe):\n return fUYa + bEXe",
"def A3BG(a0GJ, TLv5):\n A3BG = a0GJ + TLv5\n return A3BG",
"def Xm0y(jzdc, Fg_i):\n if not isinstance(jzdc, list):\n jzdc = [jzdc]\n if not isinstance(Fg_i, list):\n Fg_i = [Fg_i]\n ... | [
"0.82838136",
"0.7632616",
"0.7483041",
"0.7432352",
"0.7357283",
"0.7300146",
"0.7269031",
"0.72024167",
"0.7183844",
"0.71836096",
"0.7173077",
"0.71515304",
"0.7112242",
"0.7074718",
"0.7045108",
"0.70423114",
"0.69963855",
"0.6955785",
"0.69529784",
"0.69314086",
"0.69178... | 0.74141574 | 4 |
Calculates product of given list. | def yz7t(ybN4):
return 1.0 if ybN4.isEmpty() else ybN4.foldRight(1.0, lambda tTpl, jzdc: tTpl * jzdc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UXrJ(yv6U):\n return xBlr.reduce(seET.mul, yv6U)",
"def QRFO(bCES):\n a1PO = 1\n for YRbF in bCES:\n a1PO *= YRbF\n return a1PO",
"def xOW0(aO51):\n Lx3t = 1\n for mLGw in aO51:\n Lx3t *= mLGw\n return Lx3t",
"def Lx3t(vC9B):\n QRFO = 1\n for WKvO in vC9B:\n ... | [
"0.845574",
"0.8297659",
"0.8237228",
"0.8196463",
"0.80791146",
"0.8014133",
"0.79747766",
"0.79061043",
"0.7881283",
"0.7842779",
"0.77927655",
"0.77633727",
"0.770014",
"0.7641967",
"0.7585321",
"0.75051963",
"0.7490539",
"0.7485392",
"0.7445659",
"0.7435484",
"0.7421419",... | 0.66326064 | 71 |
Method for flattening a list of lists into a list containing all elements of each contained list. | def PWgb(ybN4):
return ybN4.foldRight(PFCt(), lambda tTpl, jzdc: ENFq(tTpl, jzdc)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKPt(nwEZ):\n Aofo = []\n for LihS in nwEZ:\n Aofo.extend(LihS)\n return Aofo",
"def PWgb(nwEZ):\n return [WKvO for Uqbu in nwEZ for WKvO in Uqbu]",
"def PWgb(nwEZ):\n return [ZfUD for XuXy in nwEZ for ZfUD in XuXy]",
"def PWgb(nwEZ):\n return [ZfUD for XuXy in nwEZ for ZfUD in X... | [
"0.8927838",
"0.8919992",
"0.8898356",
"0.8898356",
"0.8898356",
"0.8884477",
"0.8728612",
"0.86627597",
"0.86600834",
"0.86600834",
"0.861152",
"0.8602904",
"0.85767055",
"0.85092217",
"0.8483865",
"0.8483865",
"0.8470335",
"0.8448236",
"0.8447222",
"0.8445447",
"0.8443721",... | 0.0 | -1 |
Returns the download directory where we will store downloaded data. | def Vx2V():
if hasattr(gCuF, 'CALACCESS_DOWNLOAD_DIR'):
return getattr(gCuF, 'CALACCESS_DOWNLOAD_DIR')
elif hasattr(gCuF, 'BASE_DIR'):
return Hy7s.path.join(getattr(gCuF, 'BASE_DIR'), 'data')
raise ValueError('CAL-ACCESS download directory not configured. Set either CALACCESS_DOWNLOAD_DIR or... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bh5n(YKHO):\n xpPk = Hy7s.path.dirname(YKHO.file_name)\n if not Hy7s.path.exists(xpPk):\n Hy7s.makedirs(xpPk)\n return xpPk",
"def m7WK(YKHO):\n return YKHO._downloads_dir",
"def Vx2V():\n if hasattr(gCuF, 'NETFILE_DOWNLOAD_DIR'):\n return getattr(gCuF, 'NETFILE_DOWNLOAD_DIR')\... | [
"0.8572533",
"0.83833915",
"0.81439275",
"0.81285757",
"0.8063788",
"0.7830562",
"0.7660715",
"0.76501226",
"0.7545307",
"0.74013394",
"0.7378929",
"0.73473203",
"0.7334169",
"0.7312131",
"0.7275097",
"0.7164531",
"0.7136295",
"0.71180826",
"0.7109625",
"0.71054244",
"0.70820... | 0.7969921 | 5 |
Get the current running config (not from disk) | def mVoI(z39Z='default'):
HCmI = {'cmd': 'list', 'mime': 'prop'}
return f40N(HCmI, z39Z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD():\n return qot6(None, None).root",
"def zKPb(YKHO):\n return YKHO._config",
"def tgzD():\n return wk5E.config",
"def tgzD():\n Fv2L = AxXv(uFua + '_CONFIG', 'default')\n return X8Rg[Fv2L]",
"def tgzD(YKHO):\n return YKHO.config.config",
"def tgzD(YKHO):\n return YKHO.config... | [
"0.80642766",
"0.8052086",
"0.80429876",
"0.78523767",
"0.78095806",
"0.78095806",
"0.78095806",
"0.77897614",
"0.7756649",
"0.7706427",
"0.7698001",
"0.76768076",
"0.76740843",
"0.7659112",
"0.7626637",
"0.76223356",
"0.76223356",
"0.76223356",
"0.76223356",
"0.7601576",
"0.... | 0.0 | -1 |
Return the state of the worker | def zUlG(i4ai, z39Z='default'):
GPtr = mVoI(z39Z)
try:
return {'activation': GPtr['worker.{}.activation'.format(i4ai)], 'state': GPtr['worker.{}.state'.format(i4ai)]}
except KeyError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZEHr(YKHO):\n return YKHO.__workstate",
"def ja6o(YKHO):\n return YKHO._job_handle.get_state()",
"def IJZi(YKHO):\n return YKHO.pool.get_status()",
"def ja6o(YKHO):\n return YKHO.async_result.state",
"def QTBn(YKHO) -> fbqY:\n return YKHO._state",
"def hCWZ(YKHO):\n if not YKHO._pro... | [
"0.81102616",
"0.78555155",
"0.73542273",
"0.7255718",
"0.7241684",
"0.7237308",
"0.7185963",
"0.7115918",
"0.7081851",
"0.69975513",
"0.6993814",
"0.69892734",
"0.69892734",
"0.69892734",
"0.69892734",
"0.69891137",
"0.69891137",
"0.69891137",
"0.69891137",
"0.69891137",
"0.... | 0.0 | -1 |
The ID of the monitoring task. | def EBXt(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'hybrid_monitor_fc_task_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO):\n return YKHO._task.id",
"def _TKD(YKHO) -> str:\n return YKHO._task_id",
"def _TKD(YKHO):\n return YKHO._task_id",
"def id(YKHO):\n return YKHO._task_json['task_id']",
"def id(YKHO):\n return YKHO._task_json['task_id']",
"def unpH():\n global TASK_ID\n return qaLu",
... | [
"0.8505424",
"0.8292855",
"0.8193373",
"0.81487924",
"0.81487924",
"0.7815349",
"0.7738447",
"0.7595984",
"0.74825954",
"0.7474346",
"0.7420572",
"0.7343634",
"0.71705294",
"0.7153348",
"0.71255666",
"0.7101172",
"0.70830226",
"0.7042232",
"0.70388746",
"0.7038093",
"0.700292... | 0.7262323 | 12 |
The ID of the monitoring task. | def EBXt(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'hybrid_monitor_fc_task_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO):\n return YKHO._task.id",
"def _TKD(YKHO) -> str:\n return YKHO._task_id",
"def _TKD(YKHO):\n return YKHO._task_id",
"def id(YKHO):\n return YKHO._task_json['task_id']",
"def id(YKHO):\n return YKHO._task_json['task_id']",
"def unpH():\n global TASK_ID\n return qaLu",
... | [
"0.8505424",
"0.8292855",
"0.8193373",
"0.81487924",
"0.81487924",
"0.7815349",
"0.7738447",
"0.74825954",
"0.7474346",
"0.7420572",
"0.7343634",
"0.7262323",
"0.71705294",
"0.7153348",
"0.71255666",
"0.7101172",
"0.70830226",
"0.7042232",
"0.70388746",
"0.7038093",
"0.700292... | 0.7595984 | 7 |
The ID used to identify the policy group. | def mRbj(YKHO):
return YKHO._pgid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AmY5(YKHO) -> str:\n return qe4Y.get(YKHO, 'policy_group_id')",
"def AmY5(YKHO) -> str:\n return qe4Y.get(YKHO, 'policy_group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def ShR8(YKHO):\n return YKHO.... | [
"0.89292264",
"0.89292264",
"0.8504867",
"0.8504867",
"0.8255939",
"0.81778127",
"0.81778127",
"0.81778127",
"0.81778127",
"0.81778127",
"0.81778127",
"0.7965936",
"0.7965936",
"0.79484195",
"0.76730895",
"0.7659759",
"0.7657705",
"0.7637411",
"0.75898594",
"0.75160867",
"0.7... | 0.0 | -1 |
Universally unique identifier for the QoS policy group. | def qxeD(YKHO):
return YKHO._uuid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AmY5(YKHO) -> str:\n return qe4Y.get(YKHO, 'policy_group_id')",
"def AmY5(YKHO) -> str:\n return qe4Y.get(YKHO, 'policy_group_id')",
"def O2mS(YKHO) -> str:\n return qe4Y.get(YKHO, 'consistency_group_policy_id')",
"def jwbm(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'qos_policy_id')",... | [
"0.7706046",
"0.7706046",
"0.71090126",
"0.70580524",
"0.6993257",
"0.6834904",
"0.6833466",
"0.6805524",
"0.67926383",
"0.67926383",
"0.6736843",
"0.6643758",
"0.66417974",
"0.65832627",
"0.65215826",
"0.65153325",
"0.6479894",
"0.6479894",
"0.6478517",
"0.6478517",
"0.64698... | 0.0 | -1 |
The Data Vserver to which the policy group belongs. | def xjh5(YKHO):
return YKHO._vserver | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z9O1(YKHO):\n return YKHO._vserver",
"def iEwR(YKHO):\n return YKHO._data_server",
"def xjh5(YKHO):\n try:\n return YKHO._vserver\n except Exception as e:\n raise tTpl",
"def CmUz(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'vserver_group_id')",
"def DgU5(YKHO)... | [
"0.6834107",
"0.65364707",
"0.6408964",
"0.59500337",
"0.5787062",
"0.5787062",
"0.56973726",
"0.5682547",
"0.5682547",
"0.56752264",
"0.5673111",
"0.5645798",
"0.56424344",
"0.5618669",
"0.5604279",
"0.553721",
"0.55112606",
"0.55112606",
"0.55112606",
"0.5511102",
"0.546992... | 0.6861248 | 0 |
Number of workloads under this policy group. | def lGvw(YKHO):
return YKHO._num_workloads | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I7Gy(YKHO):\n zNig = gk2W.c_int()\n cogj(Yg1o.MXKVStoreGetGroupSize(YKHO.handle, gk2W.byref(zNig)))\n return zNig.value",
"def TwNn(YKHO):\n return YKHO.num_of_jobs",
"def de_y(YKHO):\n return YKHO._work_q.qsize()",
"def gUhF(YKHO):\n C145 = len(YKHO.model_datasets) * YKHO.num_walkers\n... | [
"0.7433456",
"0.7220186",
"0.7219169",
"0.7204439",
"0.7105752",
"0.7055577",
"0.7008586",
"0.69810224",
"0.6980136",
"0.69587547",
"0.6901749",
"0.6890253",
"0.6884017",
"0.6873052",
"0.6872366",
"0.6820009",
"0.6788655",
"0.6784355",
"0.6762402",
"0.6756135",
"0.6751534",
... | 0.81207645 | 0 |
Name of the policy group. Policy group names must be unique and are restricted to 128 alphanumeric characters, '', and '_', and must start with an alphanumeric character (az, AZ, or 09). | def DgU5(YKHO):
return YKHO._policy_group | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TkBr(YKHO) -> str:\n return qe4Y.get(YKHO, 'policy_group_name')",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def IXKo(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_name')",
"def IXKo(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'group_name')",
"def IXKo(YKHO)... | [
"0.82423216",
"0.735698",
"0.70516026",
"0.6999263",
"0.69141394",
"0.690034",
"0.6853558",
"0.68140817",
"0.6799132",
"0.6799132",
"0.67903095",
"0.6778588",
"0.6778228",
"0.6753408",
"0.6749487",
"0.6745128",
"0.6737688",
"0.671452",
"0.6680269",
"0.66251254",
"0.66251254",... | 0.6326484 | 33 |
Creates a `truncated_normal_initializer` with the given range. | def lly1(a4xb=0.02):
return ZylS.truncated_normal_initializer(stddev=a4xb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lly1(a4xb=0.02):\n return ZylS.truncated_normal_initializer(stddev=a4xb)",
"def lly1(a4xb=0.02):\n return ZylS.truncated_normal_initializer(stddev=a4xb)",
"def lly1(a4xb=0.02):\n return ZylS.truncated_normal_initializer(stddev=a4xb)",
"def lly1(a4xb=0.02):\n return ZylS.truncated_normal_initi... | [
"0.8153938",
"0.8153938",
"0.80742985",
"0.80742985",
"0.7892367",
"0.7150526",
"0.66297656",
"0.660983",
"0.6530988",
"0.65229017",
"0.65050656",
"0.65005547",
"0.6474912",
"0.64382315",
"0.63497835",
"0.6279794",
"0.6279794",
"0.6279794",
"0.62789536",
"0.6260451",
"0.62143... | 0.817227 | 1 |
Get the last token from the hypothesis. | def c645(YKHO):
return YKHO.tokens[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gNTt(YKHO):\n YKHO.token_index += 1\n return YKHO.tokens[YKHO.token_index - 1]",
"def gNTt(YKHO):\n YKHO.token_index += 1\n return YKHO.tokens[YKHO.token_index - 1]",
"def cFOl(YKHO):\n return YKHO.dbEntry.get('lastToken', '')",
"def QjvQ(YKHO):\n if YKHO._current_token_index < YKHO._le... | [
"0.79409087",
"0.79409087",
"0.7777839",
"0.71042496",
"0.70879704",
"0.70059353",
"0.70059353",
"0.69481057",
"0.67557067",
"0.67266524",
"0.6637059",
"0.66330916",
"0.6630111",
"0.66117775",
"0.6560843",
"0.6560843",
"0.64975864",
"0.6493215",
"0.6486979",
"0.6486979",
"0.6... | 0.8193272 | 0 |
Construct a new instance of the runner. | def FIMM(YKHO, po5e, qPDE, RGKQ, baHf, kADq=None, wEDL=0, Ktpa=True):
YKHO.c2c_model = po5e
YKHO.input_char_vocabulary = qPDE
YKHO.target_char_vocabulary = RGKQ
YKHO.beam_size = baHf
YKHO.language_model = kADq
YKHO.whitespace_to_whitespace = Ktpa
if YKHO.language_model != None and wEDL == 0:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WL52():\n WL52 = p9tP()\n return WL52",
"def BdN0(tDvy, r4Hm, vYBr=0.1):\n return EDTm(tDvy, r4Hm, vYBr)",
"def i_PC(Emd4, nmq0, XSr3, bo34, **R_W7):\n if 'extra_vars' in R_W7 and 'run_data' not in R_W7:\n bo34.warn(\"WARNING: Use 'run_data' to pass extra_vars into the playbooks\")\n ... | [
"0.7054796",
"0.69220936",
"0.6904259",
"0.6770258",
"0.67259526",
"0.67259526",
"0.67259526",
"0.67259526",
"0.6719173",
"0.66445446",
"0.66409165",
"0.66353285",
"0.66081625",
"0.65381473",
"0.6511458",
"0.64885795",
"0.64632934",
"0.646209",
"0.646209",
"0.64443153",
"0.64... | 0.0 | -1 |
Return queryset based on ModelAdmin.get_search_results(). | def k66M(YKHO, A07C):
umWR = YKHO.model_admin.get_queryset(YKHO.request)
if len(A07C):
return umWR.filter(id__in=A07C)
else:
return umWR.model.objects.none() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO, *qIxc, **B2fa):\n UY_i = YKHO.search_fields\n YKHO.search_fields = ()\n try:\n umWR = super(i5Ic, YKHO).get_queryset(*qIxc, **B2fa)\n finally:\n YKHO.search_fields = UY_i\n if YKHO.query.strip():\n umWR = YKHO.model_admin.search_engine.filter(umWR, YKHO.query, ran... | [
"0.7976817",
"0.7698463",
"0.7632348",
"0.74851197",
"0.735475",
"0.7181114",
"0.7156266",
"0.71530104",
"0.71437114",
"0.7133725",
"0.7106551",
"0.709547",
"0.70895797",
"0.70656306",
"0.70656306",
"0.7056823",
"0.7044447",
"0.70409936",
"0.7007324",
"0.70062584",
"0.7005745... | 0.6397069 | 97 |
Check if user has permission to access the related model. | def M1EP(YKHO, QePW, YEnM=None):
return YKHO.model_admin.has_view_permission(QePW, obj=YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHTF(YKHO, QePW, tTee):\n return tTee.get_object_pk() == QePW.user.id",
"def qHTF(YKHO):\n return YKHO.perm.has_permission(YKHO.request, YKHO.view)",
"def m4il(YKHO, QePW, tTee, YEnM):\n return bool(YEnM.user == QePW.user)",
"def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.method in w0rQ.SAFE_MET... | [
"0.80555874",
"0.79433054",
"0.7941455",
"0.79224527",
"0.7900469",
"0.7891559",
"0.78575015",
"0.78527",
"0.7814791",
"0.7800324",
"0.7787021",
"0.7779055",
"0.77687085",
"0.7756942",
"0.77560276",
"0.7752151",
"0.77506804",
"0.774952",
"0.774952",
"0.77492416",
"0.7747455",... | 0.76652056 | 37 |
specific test to verify nan handling when converting into sparse | def AIZ6():
blwT = oyIN.array([[0, 1], [1, oyIN.nan], [0, 0]])
frsW = Gkd1(blwT, output_type=aR2B.SparseArray)
yjMy = Zxt2.sparse.csc_matrix(frsW)
Je6B = Gkd1(yjMy, output_type=aR2B.SparseDataFrame)
u3xk = Gkd1(Je6B, output_type=aR2B.SparseArray)
cJDt = Gkd1(u3xk, output_type=aR2B.NumpyArray)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dihG(EcVT: Union[ArrayLike, _SparseMatrix], *, gZeu: bool=...) -> None:\n ...",
"def L6uT(YKHO, WKvO):\n pass",
"def bqCV():\n CAzz = oyIN.array([[0, 1], [1, oyIN.nan], [0, 0]])\n _lYe = rLdf.SparseDataFrame(CAzz)\n qaAi = rLdf.SparseDataFrame(CAzz, default_fill_value=0)\n assert rLdf.isn... | [
"0.68380356",
"0.6742",
"0.67192435",
"0.6571714",
"0.65070677",
"0.6500327",
"0.6479926",
"0.64228064",
"0.64228064",
"0.6411699",
"0.6400958",
"0.6386124",
"0.63741475",
"0.63338625",
"0.6237622",
"0.62036836",
"0.62007165",
"0.6190907",
"0.61849487",
"0.617812",
"0.6170599... | 0.80102795 | 0 |
Returns conferences which have sessions the user has wishlisted. | def VHEm(YKHO, QePW):
CBIr = wnQ_.get_current_user()
if not CBIr:
raise wnQ_.UnauthorizedException('Authorization required')
uJjO = FU0f(CBIr)
dcCf = [lNm8.sessionKey for lNm8 in QwNI.query(QwNI.userId == uJjO)]
RKJl = [rtVo.Key(urlsafe=G1Hx).parent().urlsafe() for G1Hx in dcCf]
X48R = {... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V27L(YKHO, QePW):\n CBIr = wnQ_.get_current_user()\n if not CBIr:\n raise wnQ_.UnauthorizedException('Authorization required')\n uJjO = FU0f(CBIr)\n dcCf = [lNm8.sessionKey for lNm8 in QwNI.query(QwNI.userId == uJjO)]\n g5an = [rtVo.Key(urlsafe=G1Hx).get() for G1Hx in dcCf]\n return xO... | [
"0.69483566",
"0.6895299",
"0.65668947",
"0.6383645",
"0.6297682",
"0.61719877",
"0.61189985",
"0.60927415",
"0.59229654",
"0.5728688",
"0.56840307",
"0.55782217",
"0.5571635",
"0.55457205",
"0.5526025",
"0.55099595",
"0.5500093",
"0.54597276",
"0.54484403",
"0.54378235",
"0.... | 0.75845283 | 0 |
Parse, check validity and format user supplied filters. | def FzRU(YKHO, KUnM):
XGgU = []
hYfP = None
for eHNT in KUnM:
aHla = {Jyyj.name: getattr(eHNT, Jyyj.name) for Jyyj in eHNT.all_fields()}
try:
aHla['field'] = IbRz[aHla['field']]
aHla['operator'] = qQd5[aHla['operator']]
except KeyError:
raise wnQ_.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mnuh(b_xr):\n _uqo = [-1, -1, -1, -1]\n if b_xr:\n d6pt = b_xr.find(':')\n if d6pt > 0:\n H5ew = b_xr[0:d6pt].strip()\n wEf2 = b_xr[d6pt + 1:].strip()\n else:\n raise ValueError(\"Filter format is wrong. You gave: %s. However, expected is '%s'!\" % (b... | [
"0.71753675",
"0.69338346",
"0.6852889",
"0.6812883",
"0.67933047",
"0.666823",
"0.65334845",
"0.652908",
"0.6525221",
"0.6525221",
"0.6525221",
"0.6422381",
"0.6396982",
"0.6387777",
"0.6356334",
"0.63200897",
"0.6206446",
"0.6201823",
"0.62017417",
"0.6174979",
"0.61500734"... | 0.6494169 | 11 |
Gets all speakers at the desired conference. | def XXO_(YKHO, QePW):
Fv2L = rtVo.Key(urlsafe=QePW.conferenceKey)
if Fv2L.kind() != 'Conference' or not Fv2L.get():
raise wnQ_.NotFoundException('No conference found with key: %s' % QePW.conferenceKey)
vexM = nm2X.query(ancestor=rtVo.Key(urlsafe=QePW.conferenceKey))
vexM = vexM.fetch(projection=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fJkw():\n hhe9()\n return [KCHu[0] for KCHu in SbeG().get_all_speakers()]",
"def nb6W(YKHO, QePW):\n AdH0 = rtVo.Key(urlsafe=QePW.websafeConferenceKey)\n Aing = DMju.query(ancestor=AdH0).fetch()\n wM5u = []\n for cuiw in Aing:\n if cuiw.speakerId not in wM5u:\n wM5u.append... | [
"0.7295861",
"0.72119343",
"0.66768974",
"0.6666991",
"0.65923667",
"0.65569085",
"0.63023806",
"0.6282452",
"0.62267864",
"0.61697966",
"0.61203027",
"0.6097063",
"0.60747033",
"0.60574937",
"0.60188645",
"0.5996288",
"0.59949505",
"0.59665155",
"0.59508824",
"0.5895905",
"0... | 0.79906136 | 0 |
Get list of conferences that user has registered for. | def mwrz(YKHO, QePW):
Ppds = YKHO._getProfileFromUser()
RKJl = [rtVo.Key(urlsafe=r26L) for r26L in Ppds.conferenceKeysToAttend]
lYRi = rtVo.get_multi(RKJl)
aD_z = [rtVo.Key(SYRW, Fv2L.organizerUserId) for Fv2L in lYRi]
QhXp = rtVo.get_multi(aD_z)
ZWCE = {}
for z39Z in QhXp:
ZWCE[z39Z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PwtT(YKHO, QePW):\n CBIr = wnQ_.get_current_user()\n if not CBIr:\n raise wnQ_.UnauthorizedException('Authorization required')\n w7sF = rtVo.Key(SYRW, FU0f(CBIr))\n lYRi = KeS0.query(ancestor=w7sF)\n Ppds = w7sF.get()\n y02X = getattr(Ppds, 'displayName')\n return OV2g(items=[YKHO._... | [
"0.6983135",
"0.69410366",
"0.69250053",
"0.690837",
"0.69002944",
"0.68871677",
"0.6881471",
"0.68562096",
"0.67824614",
"0.673594",
"0.67007893",
"0.6661188",
"0.6612297",
"0.66105026",
"0.65654224",
"0.6352854",
"0.63003373",
"0.62012464",
"0.6198897",
"0.61925554",
"0.617... | 0.6595293 | 14 |
Gets all sessions the current user has wishlisted | def V27L(YKHO, QePW):
CBIr = wnQ_.get_current_user()
if not CBIr:
raise wnQ_.UnauthorizedException('Authorization required')
uJjO = FU0f(CBIr)
dcCf = [lNm8.sessionKey for lNm8 in QwNI.query(QwNI.userId == uJjO)]
g5an = [rtVo.Key(urlsafe=G1Hx).get() for G1Hx in dcCf]
return xOno(items=[YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V27L(YKHO, QePW):\n z39Z = YKHO._getProfileFromUser()\n dcCf = [rtVo.Key(urlsafe=s4bI) for s4bI in z39Z.sessionKeysWishlist]\n Aing = rtVo.get_multi(dcCf)\n return BKro(sessions=[YKHO._copySessionToForm(cuiw) for cuiw in Aing])",
"def V27L(YKHO, QePW):\n CBIr = wnQ_.get_current_user()\n if ... | [
"0.757765",
"0.75741315",
"0.7546542",
"0.71141505",
"0.69057906",
"0.68646",
"0.66971284",
"0.662823",
"0.66218233",
"0.6373914",
"0.6358856",
"0.63091964",
"0.62267506",
"0.61787105",
"0.60890615",
"0.60602087",
"0.5986092",
"0.5952658",
"0.5940242",
"0.5912036",
"0.5862682... | 0.745991 | 3 |
Read all files that match a given extenstion in a given path. | def E5NQ(pmON, Fst3):
return SC2F(pmON + '*' + Fst3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sUos(eHKs, Va2z):\n if ZbWC.fullmatch('\\\\*?\\\\.?([A-Z]+)', Va2z, flags=ZbWC.IGNORECASE):\n Va2z = ZbWC.fullmatch('\\\\*?\\\\.?([A-Z]+)', Va2z, flags=ZbWC.IGNORECASE).group(1)\n rUfd = '*.' + Va2z\n else:\n raise ValueError('File extension is in invalid format! \\nExpected format e... | [
"0.76218826",
"0.7587353",
"0.7556698",
"0.7344619",
"0.7344242",
"0.73083663",
"0.72589266",
"0.7157837",
"0.712738",
"0.71027964",
"0.7100636",
"0.7083801",
"0.7065399",
"0.7043293",
"0.70009077",
"0.69917214",
"0.69746083",
"0.6964054",
"0.6954123",
"0.6904853",
"0.6888668... | 0.8275355 | 0 |
Gets the end_date of this SummaryReportProperties. The end date provided as a parameter for this report | def KhBf(YKHO):
return YKHO._end_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mjdP(YKHO):\n return YKHO.end_date",
"def mjdP(YKHO):\n return YKHO.end_date",
"def mjdP(YKHO):\n return YKHO.end_date",
"def mjdP(YKHO):\n return YKHO.end_date",
"def KhBf(YKHO):\n if YKHO._end_date_present:\n return YKHO._end_date_value\n else:\n return None",
"def K... | [
"0.8112516",
"0.8112516",
"0.8112516",
"0.8112516",
"0.7941663",
"0.7779419",
"0.77108645",
"0.767862",
"0.7642208",
"0.7627704",
"0.7607851",
"0.75638366",
"0.7394272",
"0.7383207",
"0.73626566",
"0.73626566",
"0.73351836",
"0.73351836",
"0.72170126",
"0.7155376",
"0.7135819... | 0.79126894 | 6 |
Sets the end_date of this SummaryReportProperties. The end date provided as a parameter for this report | def KhBf(YKHO, KhBf):
YKHO._end_date = KhBf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eiFi(YKHO, eiFi: datetime):\n YKHO._enddate = eiFi",
"def ddKN(YKHO, ddKN):\n YKHO._date_end = ddKN",
"def ddKN(YKHO, ddKN):\n YKHO._date_end = ddKN",
"def ddKN(YKHO, ddKN):\n YKHO._date_end = ddKN",
"def KhBf(YKHO, KhBf: datetime):\n if KhBf is None:\n raise ValueError('Invalid v... | [
"0.81597793",
"0.8067157",
"0.8067157",
"0.8067157",
"0.79920375",
"0.7880111",
"0.7696821",
"0.73174745",
"0.7005214",
"0.6949301",
"0.692461",
"0.6869875",
"0.6853813",
"0.6766045",
"0.6766045",
"0.6766045",
"0.6766045",
"0.6766045",
"0.6766045",
"0.6724087",
"0.6724087",
... | 0.8342987 | 1 |
Gets the grouping of this SummaryReportProperties. The value of the group by parameter provided for this report | def ZDAZ(YKHO):
return YKHO._grouping | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qUWU(YKHO):\n return YKHO._group_by",
"def qUWU(YKHO):\n return YKHO._group_by",
"def FAZ5(YKHO):\n return YKHO.replace_underscore(YKHO.curr_group)",
"def uOe2(YKHO):\n return YKHO._get_field('group')",
"def uOe2(YKHO):\n return YKHO._get_field('group')",
"def uOe2(YKHO):\n if YKHO.... | [
"0.7075341",
"0.7075341",
"0.7071591",
"0.7052833",
"0.7052833",
"0.6991471",
"0.6991471",
"0.6991471",
"0.6979073",
"0.66562825",
"0.65263885",
"0.6492364",
"0.6465696",
"0.6416027",
"0.6416027",
"0.6416027",
"0.6416027",
"0.6416027",
"0.6416027",
"0.6416027",
"0.64098465",
... | 0.71184766 | 0 |
Sets the grouping of this SummaryReportProperties. The value of the group by parameter provided for this report | def ZDAZ(YKHO, ZDAZ):
BbPm = ['DAY', 'DELIVERY_REPORT', 'DESTINATION_ADDRESS', 'DESTINATION_ADDRESS_COUNTRY', 'FORMAT', 'HOUR', 'METADATA_KEY', 'METADATA_VALUE', 'MINUTE', 'MONTH', 'SOURCE_ADDRESS', 'SOURCE_ADDRESS_COUNTRY', 'STATUS', 'STATUS_CODE', 'YEAR']
if ZDAZ not in BbPm:
raise ValueError('Invalid... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UbAx(YKHO, qUWU):\n YKHO._group_by = qUWU",
"def qUWU(YKHO, qUWU):\n YKHO._group_by = qUWU",
"def qUWU(YKHO, qUWU):\n YKHO._group_by = qUWU",
"def ZDAZ(YKHO, ZDAZ):\n if isinstance(ZDAZ, fd_b):\n YKHO._grouping = ZDAZ\n else:\n YKHO._grouping = fd_b(ZDAZ)",
"def qUWU(YKHO, ... | [
"0.7851889",
"0.76940495",
"0.76940495",
"0.71413636",
"0.7076981",
"0.6553798",
"0.6352158",
"0.6232995",
"0.6213378",
"0.611415",
"0.59786034",
"0.5916822",
"0.5908891",
"0.58755255",
"0.5866069",
"0.5866069",
"0.5866069",
"0.5830086",
"0.5822221",
"0.5822221",
"0.5786204",... | 0.67365074 | 5 |
Gets the start_date of this SummaryReportProperties. The end date provided as a parameter for this report | def kepv(YKHO):
return YKHO._start_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nUNa(YKHO):\n return YKHO.start_date",
"def nUNa(YKHO):\n return YKHO.start_date",
"def nUNa(YKHO):\n return YKHO.start_date",
"def nUNa(YKHO):\n return YKHO.start_date",
"def nUNa(YKHO):\n return YKHO.__start_date",
"def kepv(YKHO):\n if YKHO._start_date_present:\n return YK... | [
"0.7284004",
"0.7284004",
"0.7284004",
"0.7284004",
"0.72427464",
"0.7033259",
"0.6980552",
"0.68158215",
"0.6746076",
"0.6696934",
"0.66482264",
"0.66380316",
"0.65775687",
"0.65732694",
"0.65655434",
"0.6455108",
"0.6433128",
"0.64125633",
"0.63801354",
"0.6331605",
"0.6276... | 0.68502945 | 8 |
Sets the start_date of this SummaryReportProperties. The end date provided as a parameter for this report | def kepv(YKHO, kepv):
YKHO._start_date = kepv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YFxH(YKHO, kepv):\n YKHO.__start_date = kepv",
"def YFxH(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def wEtp(YKHO, wEtp):\n YKHO._date_start = wEtp",
"def wEtp(YKHO, wEtp):\n YKHO._date_start = wEtp",
"def wEtp(YKHO, wEtp):\n YKHO._d... | [
"0.77247196",
"0.7690405",
"0.7410441",
"0.7221749",
"0.7221749",
"0.7221749",
"0.7221749",
"0.7221749",
"0.70798635",
"0.70715904",
"0.7000807",
"0.6982149",
"0.6941604",
"0.6762954",
"0.6593005",
"0.6481792",
"0.63453203",
"0.620668",
"0.6197776",
"0.6185802",
"0.61275446",... | 0.7488365 | 4 |
Gets the summary_field of this SummaryReportProperties. The value of the summary_field parameter provided for this report | def lGzD(YKHO):
return YKHO._summary_field | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lGzD(YKHO, lGzD):\n BbPm = ['UNITS', 'MESSAGE_ID']\n if lGzD not in BbPm:\n raise ValueError('Invalid value for `summary_field` ({0}), must be one of {1}'.format(lGzD, BbPm))\n YKHO._summary_field = lGzD",
"def uDwR(YKHO, vXX7: str) -> str:\n RiH7 = YKHO.pydantic.inspect.references.create_... | [
"0.65005654",
"0.63358134",
"0.6203217",
"0.61757594",
"0.6161774",
"0.6085122",
"0.6017273",
"0.5989003",
"0.5989003",
"0.59734195",
"0.5967934",
"0.5967934",
"0.5967934",
"0.5967934",
"0.5931284",
"0.59269136",
"0.59083897",
"0.59083897",
"0.59083897",
"0.59083897",
"0.5908... | 0.8009793 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Calculate the mse for vector e. | def h5nY(tTpl):
return 1 / 2 * oyIN.mean(tTpl ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h5nY(tTpl):\n return 1 / 2 * oyIN.mean(tTpl ** 2)",
"def h5nY(tTpl):\n return 1 / 2 * oyIN.mean(tTpl ** 2)",
"def h5nY(tTpl):\n return 1.0 / 2 * oyIN.mean(tTpl ** 2)",
"def hkHB(tTpl):\n return 1 / 2 * oyIN.mean(tTpl ** 2)",
"def jpEG(VZlJ):\n return oyIN.mean(VZlJ ** 2) / 2",
"def sgS... | [
"0.8726148",
"0.8579922",
"0.8577698",
"0.84067035",
"0.7783889",
"0.7543943",
"0.75082606",
"0.737279",
"0.73150605",
"0.7296708",
"0.7295943",
"0.7295842",
"0.72929746",
"0.72572136",
"0.7255511",
"0.7255511",
"0.7255223",
"0.72301704",
"0.7215125",
"0.720618",
"0.720618",
... | 0.85764194 | 3 |
compute the cost by negative log likelihood. | def PY9B(LVAh, UShr, yzQ0):
nvEb = m1Hg(UShr.dot(yzQ0))
SGf8 = 1e-323
nvEb[nvEb < SGf8] = SGf8
SBgv = 1 - nvEb
SBgv[SBgv < SGf8] = SGf8
N77f = LVAh.T.dot(oyIN.log(nvEb)) + (1 - LVAh).T.dot(oyIN.log(SBgv))
return (-LVAh * oyIN.log(nvEb) - (1 - LVAh) * oyIN.log(SBgv)).mean() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sSN_(YKHO):\n vC9B = YKHO.logRegressionLayer.negative_log_likelihood()\n YKHO.eta = 0.0001\n if YKHO.n_hidden_layers > 0:\n for YRbF in range(YKHO.n_hidden_layers):\n ZSYc = YKHO.hiddenLayer[YKHO.n_hidden_layers - YRbF - 1]\n vC9B = vC9B + YKHO.eta * oyIN.mean(oyIN.log(ZSY... | [
"0.7915471",
"0.7533456",
"0.75265944",
"0.74334663",
"0.73453",
"0.72147393",
"0.72116023",
"0.72003394",
"0.7167865",
"0.71572053",
"0.71259725",
"0.7024625",
"0.7017526",
"0.70159876",
"0.70151",
"0.6990439",
"0.6988729",
"0.6983223",
"0.69819903",
"0.69780064",
"0.6962423... | 0.63397515 | 95 |
Do one step of gradient descen using logistic regression. Return the loss and the updated w. | def Vxp7(LVAh, UShr, yzQ0, KMvS):
N77f = PY9B(LVAh, UShr, yzQ0)
Ro40 = g3Sy(LVAh, UShr, yzQ0)
yzQ0 -= KMvS * Ro40
return (N77f, yzQ0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FZES(LVAh, UShr, yzQ0):\n return (j0HU(LVAh, UShr, yzQ0), VGyE(LVAh, UShr, yzQ0))",
"def VzIN(XcU5, EcVT, LVAh, lQ3t):\n N77f = 0\n HFON = 0\n ywwl, lWPh = EcVT.shape\n Nq1b = XcU5.shape[1]\n JxU2 = oyIN.zeros((ywwl, Nq1b))\n ZU58 = oyIN.zeros((lWPh, Nq1b))\n for YRbF in range(ywwl):\... | [
"0.77532434",
"0.77332586",
"0.75752914",
"0.7530752",
"0.75105196",
"0.749032",
"0.7488838",
"0.74512595",
"0.7381849",
"0.7334152",
"0.73212916",
"0.73092264",
"0.73084617",
"0.7306799",
"0.72899437",
"0.7278031",
"0.72691584",
"0.7250514",
"0.7248991",
"0.7246202",
"0.7245... | 0.7630336 | 2 |
Do one step of gradient descent, using the penalized logistic regression. Return the loss and updated w. | def akaG(LVAh, UShr, yzQ0, KMvS, w4rS):
N77f, ICX2 = jiLp(LVAh, UShr, yzQ0, w4rS)
yzQ0 -= KMvS * ICX2
return (N77f, yzQ0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VzIN(XcU5, EcVT, LVAh, lQ3t):\n N77f = 0\n HFON = 0\n ywwl, lWPh = EcVT.shape\n Nq1b = XcU5.shape[1]\n JxU2 = oyIN.zeros((ywwl, Nq1b))\n ZU58 = oyIN.zeros((lWPh, Nq1b))\n for YRbF in range(ywwl):\n vHYh = EcVT[YRbF]\n cHAw = LVAh[YRbF]\n Evdd = oyIN.dot(EcVT[YRbF], XcU... | [
"0.7577295",
"0.7494452",
"0.74565136",
"0.74555063",
"0.74426705",
"0.74072623",
"0.74072415",
"0.7388413",
"0.738589",
"0.728957",
"0.72727126",
"0.72430146",
"0.721974",
"0.7212798",
"0.7161147",
"0.71281654",
"0.7120369",
"0.7093078",
"0.70873797",
"0.7084291",
"0.7079073... | 0.7250876 | 11 |