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 |
|---|---|---|---|---|---|---|
If the password is present in the config file then it formats for use with both the mysql and mysqldump commands. This is to get around the password prompt when no password is supplied Returns string pw | def VyCM(YKHO):
RBFf = ''
if YKHO.__conf['db_password'] != '':
RBFf = ' -p' + YKHO.__conf['db_password']
return RBFf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QVq7(YKHO, Fv2L):\n jTXt = Fv2L.get('password', None)\n CBFL = Fv2L.get('allowed_hosts', [])\n if jTXt is None or (len(CBFL) > 0 and (not Hy7s.uname()[1] in CBFL)):\n jTXt = AOO4('Password: ')\n if jTXt == '':\n jTXt = None\n return jTXt",
"def ANoi(YKHO):\n if YKHO.password =... | [
"0.7202709",
"0.69413525",
"0.68425167",
"0.68076015",
"0.68037015",
"0.673424",
"0.6668528",
"0.66103745",
"0.66103745",
"0.66103745",
"0.66103745",
"0.66103745",
"0.66103745",
"0.66103745",
"0.65993977",
"0.65323424",
"0.6490904",
"0.6465441",
"0.6465441",
"0.6465441",
"0.6... | 0.7791611 | 0 |
Expand a token from strings >>> list(expand_token(iter(["hello for a friend of a friend"]), "friend", 3)) ['hello for a ', 3, ' of a ', 3, ''] | def y6B8(s2mk: Iterator[Union[str, object]], bPqj: str, dU2b: object) -> bDy6[uLKX[str, object]]:
for eOtH in s2mk:
if isinstance(eOtH, str):
n2_h = eOtH.split(bPqj)
yield n2_h[0]
for NQvi in n2_h[1:]:
yield dU2b
yield NQvi
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lHli(Emd4, vIwR, Rci7, s2mk):\n LFlW, _tIi = s2mk\n if LFlW.number or _tIi.number:\n assert LFlW.letter == _tIi.letter\n assert LFlW.number and _tIi.number\n assert LFlW.number < _tIi.number\n uvMl = Ni9Y(LFlW.number, _tIi.number + 1)\n SQ3m = [(LFlW.letter, YRbF) for Y... | [
"0.59662116",
"0.56945044",
"0.56657207",
"0.56082785",
"0.5556374",
"0.5556374",
"0.55269283",
"0.5428241",
"0.5428241",
"0.5389388",
"0.5316591",
"0.5308276",
"0.5301229",
"0.52938807",
"0.52591836",
"0.5253872",
"0.5245563",
"0.5242532",
"0.52344626",
"0.51984555",
"0.5182... | 0.7527275 | 0 |
A utility function to traverse dictionaries (JSON). | def aO1F(fK8P: dict, *sjXb) -> uLKX[ImMB, None]:
for H5ew in sjXb:
try:
fK8P = fK8P[H5ew]
except (KeyError, TypeError):
return None
return fK8P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GTKs(YEnM, JfyU):\n if type(YEnM) is list:\n for ATUZ in YEnM:\n GTKs(ATUZ, JfyU)\n elif type(YEnM) is dict:\n for H5ew, BWXx in YEnM.iteritems():\n if JfyU(YEnM, H5ew, BWXx):\n GTKs(BWXx, JfyU)\n else:\n pass",
"def KW1L(qQXR=None, pmON=None... | [
"0.7330307",
"0.71906376",
"0.675212",
"0.6741604",
"0.65842336",
"0.6572876",
"0.65234166",
"0.6518644",
"0.6490932",
"0.6487092",
"0.6392424",
"0.6384672",
"0.6372175",
"0.63562626",
"0.6353712",
"0.6328222",
"0.63122344",
"0.63086665",
"0.62739295",
"0.6244518",
"0.6210709... | 0.0 | -1 |
Check if arr is a lower (resp. upper) triangular matrix, i.e. if all elements above (resp. below) the diagonal are null. | def A3VC(ezWE, LSh8=True):
if LSh8:
return (ezWE[ywwl.triu_indices_from(ezWE, 1)] == 0).all()
else:
return (ezWE[ywwl.tril_indices_from(ezWE, -1)] == 0).all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jihI(ezWE, rU28=1e-08):\n assert len(ezWE.shape) == 2\n assert ezWE.shape[0] == ezWE.shape[1]\n return oyIN.allclose(oyIN.tril(ezWE, k=-1), 0.0, atol=rU28)",
"def CwsA(ezWE):\n return A3VC(ezWE, lower=True) and A3VC(ezWE, lower=False)",
"def YAb2(YKHO, EcVT):\n ywwl = EcVT.shape[0]\n ZBcs... | [
"0.72427726",
"0.68099123",
"0.6645919",
"0.6310618",
"0.6215568",
"0.6143516",
"0.60048044",
"0.581226",
"0.58018184",
"0.57784337",
"0.5771781",
"0.5732109",
"0.57160056",
"0.5705211",
"0.5691652",
"0.56620306",
"0.5654221",
"0.5647485",
"0.5639031",
"0.5574126",
"0.5540901... | 0.7286139 | 0 |
Check if arr is a diagonal matrix, i.e. if all nondiagonal elements are null. | def CwsA(ezWE):
return A3VC(ezWE, lower=True) and A3VC(ezWE, lower=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cUPz(E3D9):\n return oyIN.all(E3D9 == oyIN.diag(oyIN.diagonal(E3D9)))",
"def jZwK(khtY):\n vb7U = oyIN.array(khtY)\n ROpF = vb7U.shape\n return len(ROpF) == 2 and ROpF[0] == 1",
"def Pu5w(fHeP):\n if not iLKf(fHeP):\n return False\n for YRbF, rdlD in enumerate(fHeP):\n for r... | [
"0.72867346",
"0.7266725",
"0.7251092",
"0.7153024",
"0.7056212",
"0.7054421",
"0.7041541",
"0.6986834",
"0.69653577",
"0.68660575",
"0.68622357",
"0.6836219",
"0.6823666",
"0.6823666",
"0.6823666",
"0.68232757",
"0.6820403",
"0.68054533",
"0.6794399",
"0.6780763",
"0.676938"... | 0.8066602 | 0 |
Removes the last node in the list. Returns the removed node. | def Qeks(YKHO):
pFG5 = YKHO.tail
if pFG5 is None:
return None
HtIZ = pFG5.previous_node
pFG5.previous_node = None
if HtIZ is not None:
HtIZ.next_node = None
YKHO.tail = HtIZ
return pFG5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qeks(YKHO):\n if YKHO.size == 0:\n return None\n XVAW = YKHO.last.val\n if YKHO.size == 1:\n YKHO.head = None\n YKHO.last = None\n else:\n YKHO.last = YKHO.last.prev_link\n YKHO.last.next_link = None\n YKHO.size -= 1\n return XVAW",
"def O40u(YKHO):\n i... | [
"0.8501319",
"0.80906904",
"0.80578566",
"0.79775584",
"0.77278316",
"0.76703805",
"0.7651222",
"0.7647757",
"0.7629669",
"0.76017165",
"0.7522915",
"0.7514909",
"0.74941593",
"0.7484996",
"0.7481038",
"0.74581265",
"0.744628",
"0.73959756",
"0.73949647",
"0.7378167",
"0.7371... | 0.82265985 | 1 |
Returns the number of objects in this pack. | def szAg(YKHO):
return YKHO._num_objects | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZviT(YKHO):\n return YKHO._number_of_objects",
"def Pkro(YKHO):\n return YKHO.num_objects",
"def V2n8(YKHO):\n return YKHO.fits[YKHO.objhdu].get_nrows()",
"def zNig(YKHO) -> int:\n return YKHO.objects * YKHO.properties",
"def daOj(YKHO):\n return YKHO.num_pits() + YKHO.num_fires()",
"d... | [
"0.8510343",
"0.839623",
"0.82115716",
"0.8089982",
"0.80574113",
"0.797552",
"0.7967785",
"0.7967785",
"0.7949083",
"0.79208875",
"0.7900604",
"0.7803593",
"0.7757747",
"0.7757747",
"0.76743346",
"0.76617515",
"0.76617515",
"0.76581",
"0.7652024",
"0.7652024",
"0.7652024",
... | 0.7893624 | 11 |
The pack data object being used. | def nPrm(YKHO):
if YKHO._data is None:
YKHO._data = YKHO._data_load()
YKHO._data.pack = YKHO
assert len(YKHO.index) == len(YKHO._data)
koWk = YKHO.index.get_pack_checksum()
nuPZ = YKHO._data.get_stored_checksum()
if koWk != nuPZ:
raise yV6k(Es8O(koWk), Es8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def THYb(YKHO):\n return YKHO.payload",
"def tro9(YKHO):\n pass",
"def JpKl(YKHO):\n return YKHO._data",
"def JpKl(YKHO):\n return YKHO.__data",
"def JpKl(YKHO):\n return YKHO.__data",
"def JpKl(YKHO):\n return YKHO.__data",
"def JpKl(YKHO):\n return YKHO.__data",
"def JpKl(YKHO)... | [
"0.7896983",
"0.7090913",
"0.70246834",
"0.6988257",
"0.6988257",
"0.6988257",
"0.6988257",
"0.6988257",
"0.6988257",
"0.69442326",
"0.6899571",
"0.68783987",
"0.6873957",
"0.6869846",
"0.6846538",
"0.6839115",
"0.6835781",
"0.67804366",
"0.67804366",
"0.67804366",
"0.6780436... | 0.68654823 | 14 |
returns the duplicates in indices | def Jxg4(w2B8):
ZlgM = "\n SELECT pg_size_pretty(sum(pg_relation_size(idx))::bigint) as size,\n (array_agg(idx))[1] as idx1, (array_agg(idx))[2] as idx2,\n (array_agg(idx))[3] as idx3, (array_agg(idx))[4] as idx4\n FROM (\n SELECT indexrelid::regc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jcud(uXsA):\n A6dL = oRi_(list)\n for YRbF, ZfUD in enumerate(uXsA):\n A6dL[ZfUD].append(YRbF)\n return ((B85K, bS0K) for B85K, bS0K in A6dL.items() if len(bS0K) > 1)",
"def k0jU(jzdc: 'Sequence[Any]') -> list[int]:\n return [or8S for or8S, ZfUD in enumerate(jzdc) if ZfUD in jzdc[:or8S]]",... | [
"0.75717163",
"0.69228035",
"0.68105984",
"0.67362744",
"0.669169",
"0.6435118",
"0.63730836",
"0.6365354",
"0.63576955",
"0.6331327",
"0.63185734",
"0.6304567",
"0.62798643",
"0.6262246",
"0.62453",
"0.62453",
"0.62433165",
"0.6228916",
"0.6141881",
"0.61376756",
"0.61375463... | 0.75268453 | 1 |
returns the maximum age of a transaction | def zWLI(YKHO, w2B8):
ZlgM = EfUA(JfyU.max(JfyU.now() - YKHO._stat_view.c.xact_start)).select_from(YKHO._stat_view).where(nZvB(YKHO._stat_view.c.state == 'idle in transaction', YKHO._stat_view.c.state == 'active'))
return {'max. transaction age': str(w2B8.execute(ZlgM).fetchone()[0])} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uqEL(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_age')",
"def uqEL(YKHO):\n return YKHO._max_age",
"def uqEL(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'max_age')",
"def RAdH(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_age_in_seconds')",
"def RAdH(YKHO) -> qe4Y.Input[int]:\n r... | [
"0.8097548",
"0.78992933",
"0.7548271",
"0.74865615",
"0.7313409",
"0.70641506",
"0.70641506",
"0.70641506",
"0.70641506",
"0.69483966",
"0.67423755",
"0.67017096",
"0.66099966",
"0.6563182",
"0.6561168",
"0.6554238",
"0.64661",
"0.64656866",
"0.6433834",
"0.64256376",
"0.642... | 0.8092801 | 1 |
Gets the content_type of this V1beta1DataVolumeSpec. | def m5r4(YKHO):
return YKHO._content_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z_e1(YKHO):\n return YKHO._metadata[h8ZF]",
"def m5r4(YKHO):\n if YKHO._content_type is None:\n YKHO._parse_content_type()\n return YKHO._content_type",
"def m5r4(YKHO):\n return YKHO.properties.get('contentType', None)",
"def m5r4(YKHO) -> str:\n return qe4Y.get(YKHO, 'content_type... | [
"0.6649107",
"0.64231455",
"0.63882613",
"0.63191",
"0.63191",
"0.63191",
"0.6305681",
"0.62765604",
"0.62343717",
"0.6202643",
"0.61979806",
"0.61979806",
"0.61979806",
"0.61979806",
"0.61979806",
"0.61979806",
"0.61979806",
"0.6191696",
"0.6176453",
"0.6088825",
"0.607854",... | 0.6349514 | 3 |
Gets the pvc of this V1beta1DataVolumeSpec. PVC is the PVC specification | def yyHu(YKHO):
return YKHO._pvc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wbUE(YKHO):\n return YKHO.data.get('spec').get('volumeMode')",
"def I2Si(YKHO) -> u0qD:\n return YKHO.__pv",
"def HofJ(YKHO):\n return rWHV._getPVStructure(YKHO.cppPvt)",
"def gJLV(nHI3=acbC.Undefined, PIgS=acbC.Undefined, PcZo=acbC.Undefined, usiO='RBV', pals=(4, 4, 4)):\n yyHu = E3P4()\n ... | [
"0.6207026",
"0.5731341",
"0.5645763",
"0.55879664",
"0.5483546",
"0.5443618",
"0.5443618",
"0.5433663",
"0.5381766",
"0.5337442",
"0.53105444",
"0.52770907",
"0.52523136",
"0.5234691",
"0.5209008",
"0.519086",
"0.51844466",
"0.51666033",
"0.51290333",
"0.51105016",
"0.509984... | 0.6464625 | 0 |
Sets the pvc of this V1beta1DataVolumeSpec. PVC is the PVC specification | def yyHu(YKHO, yyHu):
YKHO._pvc = yyHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yyHu(YKHO, yyHu):\n if yyHu is None:\n raise ValueError('Invalid value for `pvc`, must not be `None`')\n YKHO._pvc = yyHu",
"def gJLV(nHI3=acbC.Undefined, PIgS=acbC.Undefined, PcZo=acbC.Undefined, usiO='RBV', pals=(4, 4, 4)):\n yyHu = E3P4()\n yyHu.inputs.in_file = nHI3\n yyHu.inputs.ou... | [
"0.71269464",
"0.54541504",
"0.5096164",
"0.50490505",
"0.4862401",
"0.48239118",
"0.4801963",
"0.47708935",
"0.47309828",
"0.46746686",
"0.46700072",
"0.46234286",
"0.46136528",
"0.46136528",
"0.45951563",
"0.45587307",
"0.45407715",
"0.45397946",
"0.45290136",
"0.45168293",
... | 0.6233457 | 1 |
Gets the source of this V1beta1DataVolumeSpec. Source is the src of the data for the requested DataVolume | def JZXy(YKHO):
return YKHO._source | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZXy(YKHO) -> qe4Y.Input['VolumeAttachmentSourceArgs']:\n return qe4Y.get(YKHO, 'source')",
"def JZXy(YKHO) -> vJc7:\n return YKHO._source",
"def NJKq(YKHO) -> str:\n return qe4Y.get(YKHO, 'source_disk')",
"def JZXy(YKHO):\n return YKHO._data.get('source')",
"def JZXy(YKHO) -> LSFv:\n if... | [
"0.6777479",
"0.62138784",
"0.61320466",
"0.6106524",
"0.59551764",
"0.5953589",
"0.59150046",
"0.58885455",
"0.58885455",
"0.58885455",
"0.58885455",
"0.58734685",
"0.5867974",
"0.5858723",
"0.5834062",
"0.58295697",
"0.5791736",
"0.5783738",
"0.5782647",
"0.57764244",
"0.57... | 0.5685714 | 31 |
Gets the source_ref of this V1beta1DataVolumeSpec. SourceRef is an indirect reference to the source of data for the requested DataVolume | def Usay(YKHO):
return YKHO._source_ref | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZXy(YKHO) -> qe4Y.Input['VolumeAttachmentSourceArgs']:\n return qe4Y.get(YKHO, 'source')",
"def JZXy(YKHO) -> KCol.VariableReference:\n return YKHO._source",
"def JZXy(YKHO) -> vJc7:\n return YKHO._source",
"def JZXy(YKHO):\n return YKHO._data.get('source')",
"def NJKq(YKHO) -> str:\n r... | [
"0.6248006",
"0.60634923",
"0.5826286",
"0.57125837",
"0.56845593",
"0.5583632",
"0.55729556",
"0.5560224",
"0.5538255",
"0.5538255",
"0.5533486",
"0.5512762",
"0.55107385",
"0.5503877",
"0.5475749",
"0.54736584",
"0.54729176",
"0.54729176",
"0.54640734",
"0.54640734",
"0.546... | 0.63686895 | 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 |
Assumes `USER_ID_SALT` is a hex encoded value. Decodes the salt val, returning binary data represented by the hexadecimal string. | def n8P4(NTfD=gCuF.USER_ID_SALT):
return MRxC.unhexlify(NTfD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MrjG(NTfD: str) -> bytes:\n _Vlb.ensure_str(NTfD, 'salt')\n return WR89.b64decode(bytes(NTfD, 'utf-8'))",
"def b9PC(KCHu):\n AgdR = WR89.b64decode(KCHu)\n olpU = MRxC.hexlify(AgdR).upper()\n if isinstance(olpU, bytes):\n return str(olpU.decode('utf-8'))\n return olpU",
"def eog_(ey... | [
"0.73740655",
"0.6266024",
"0.6229235",
"0.6199518",
"0.6177438",
"0.6107545",
"0.60019785",
"0.5963436",
"0.594135",
"0.58574265",
"0.58520174",
"0.5822987",
"0.5790753",
"0.5783072",
"0.5742409",
"0.5733009",
"0.5715958",
"0.5686105",
"0.5677004",
"0.5664508",
"0.5662979",
... | 0.73155016 | 1 |
For each epoch among the performed experiments, calculate the average error for each amount of variation. These are kept in dictionaries, as in this way the sum of errors and the amount of values summed can be kept in storage with the same index, and dictionaries can be easily inserted to and reset when necessary. | def LI3h(_8MX):
EnwH = oRi_(lambda: 0)
IUJo = oRi_(lambda: 0)
SLeG = oRi_(lambda: 0)
V8RA = oRi_(lambda: 0)
for Ux0P in SC2F(_8MX + '*.sorted'):
pcTl = open(Ux0P, 'r')
qtWj = Hy7s.path.basename(Ux0P).replace('.schemeerrors.sorted', '')
for zFiD in pcTl:
Uqbu = zFi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yj2x(YKHO):\n dixj = {}\n dixj['eval_step'] = YKHO._step\n dixj['val_loss'] = YKHO._average_over_dataset(YKHO._val_iterator, YKHO._val_loss)\n dixj['test_loss'] = YKHO._average_over_dataset(YKHO._test_iterator, YKHO._test_loss)\n G9jH.info('Computing validation accuracies...')\n xwg7 = YKHO._... | [
"0.6529443",
"0.646184",
"0.64239156",
"0.64237106",
"0.6336882",
"0.62710655",
"0.6237985",
"0.62088585",
"0.6147965",
"0.6059258",
"0.60509264",
"0.604517",
"0.603705",
"0.60342985",
"0.5998524",
"0.5946422",
"0.59268075",
"0.5918783",
"0.5917922",
"0.59094167",
"0.590528",... | 0.0 | -1 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"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.864179",
"0.85105866",
"0.7853924",
"0.77452",
"0.7712474",
"0.76976854",
"0.76601666",
"0.7638181",
"0.7621996",
"0.76074743",
"0.76074743",
"0.76074743",
"0.7607432",
"0.7599404",
"0.75858897",
"0.7582702",
"0.75715727",
"0.75683635",
"0.7539386",
"0.7539386",
"0.7528709... | 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 |
The constructor. CHANGELOG Added 28.12.2018 Changed 29.12.2018 Added the 'temp' attribute which will store the processor temperature | def FIMM(YKHO):
YKHO.attributes = {'cpu': '0.0', 'ram': '0.0', 'temp': '0.0'} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, ovGo):\n YKHO.temperature = ovGo",
"def FIMM(YKHO, ovGo=1.0):\n YKHO.temperature = ovGo",
"def FIMM(YKHO, ovGo=None, CJ2p=None):\n YKHO.temperature = ovGo\n YKHO.pressure = CJ2p\n return",
"def FIMM(YKHO, ovGo):\n if ovGo < 0:\n raise ValueError('Invalid temperature va... | [
"0.79562813",
"0.7879769",
"0.77699894",
"0.7661002",
"0.7428384",
"0.73410916",
"0.72883093",
"0.7286392",
"0.72045624",
"0.7065112",
"0.7065112",
"0.69915146",
"0.6979033",
"0.69728756",
"0.6954705",
"0.6910463",
"0.68988633",
"0.68879265",
"0.68838745",
"0.6865392",
"0.685... | 0.70910084 | 9 |
Creates a dictionary with all the values based on the current attributes of the object CHANGELOG Added 28.12.2018 Changed 29.12.2018 Returning a copy of the internal dict to prevent side effects on the object. | def MNRr(YKHO):
return YKHO.attributes.copy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO) -> dict:\n if YKHO._dict is not None:\n return YKHO._dict\n Aofo = {}\n for H5ew in YKHO.ATTRIBUTES:\n BWXx = getattr(YKHO, H5ew)\n if BWXx:\n Aofo[H5ew] = BWXx\n YKHO._dict = Aofo\n return Aofo",
"def _fYl(YKHO):\n\n def PqSu(Jyyj):\n \"\"\... | [
"0.75782454",
"0.74917084",
"0.7475058",
"0.74466455",
"0.74466455",
"0.74274665",
"0.7366926",
"0.7354449",
"0.7352731",
"0.7334284",
"0.7279194",
"0.7277531",
"0.7268219",
"0.7268097",
"0.72676647",
"0.7266022",
"0.72639203",
"0.7232271",
"0.7229871",
"0.72275496",
"0.72189... | 0.737615 | 6 |
This function split a number into a list of numbers depending on the given base value. | def EJQK(YKHO, URbn: int=-1, P8oC: int=1000):
try:
if URbn >= 0:
FGW3 = int(URbn)
else:
FGW3 = YKHO.in_content
assert FGW3 >= 0
if FGW3 == 0:
return [0]
vC9B = []
while FGW3 > 0:
vC9B.insert(0, FGW3 % P8oC)
F... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v3I5(FGW3, P8oC):\n Aofo = []\n k8n3 = FGW3\n while k8n3 != 0:\n Aofo.insert(0, k8n3 % P8oC)\n k8n3 = k8n3 // P8oC\n return Aofo or [0]",
"def YIty(P8oC):\n yv6U = []\n if P8oC == 10:\n yv6U.append(10)\n return yv6U\n yv6U.append(str(P8oC % 10))\n return yv... | [
"0.7782703",
"0.7614846",
"0.744921",
"0.7314314",
"0.72317296",
"0.7206768",
"0.7175005",
"0.7046568",
"0.7039156",
"0.6990465",
"0.6967953",
"0.69534045",
"0.6801763",
"0.67848027",
"0.67499316",
"0.67250293",
"0.6708607",
"0.66981703",
"0.66878563",
"0.66673976",
"0.663352... | 0.7616718 | 1 |
This function split a number into a reversed list of numbers depending on the given base value. | def CMvm(YKHO, URbn: int=-1, P8oC: int=1000):
try:
if URbn >= 0:
FGW3 = int(URbn)
else:
FGW3 = YKHO.in_content
assert FGW3 >= 0
if FGW3 == 0:
return [0]
vC9B = []
while FGW3 > 0:
vC9B.append(FGW3 % P8oC)
FGW3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hr7C(exwG: int, Fg_i: int) -> list:\n vC9B = []\n while exwG != 0:\n vC9B.append(exwG % Fg_i)\n exwG //= Fg_i\n return vC9B[::-1]",
"def Kfqh(SOnQ: int, P8oC: int) -> list:\n Aofo = []\n while SOnQ >= P8oC:\n U6D_ = SOnQ % P8oC\n if U6D_ >= 10:\n U6D_ = Y... | [
"0.74106973",
"0.7340336",
"0.7251624",
"0.7245451",
"0.7240414",
"0.6904998",
"0.67026573",
"0.666183",
"0.66493857",
"0.66255844",
"0.65545243",
"0.65371335",
"0.6522337",
"0.65218383",
"0.65208143",
"0.64650947",
"0.6448804",
"0.6435197",
"0.64335185",
"0.636379",
"0.63620... | 0.7643157 | 0 |
Get the default venv directory string from `active` file. | def zhYq():
FUQa()
with open(DLiv, 'r') as eHNT:
w5OY = eHNT.read()
return w5OY
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KdbK():\n w5OY = zhYq()\n return h60Y(w5OY)",
"def rdAP():\n return Hy7s.path.basename(HwRy.prefix) if mkPU() else None",
"def b8kb():\n U5bT = None\n if HwRy.platform.startswith('win'):\n U5bT = '%appdata%\\\\Factorio\\\\mods'\n elif HwRy.platform.startwsith('linux'):\n U5b... | [
"0.726547",
"0.7074602",
"0.6684908",
"0.6547753",
"0.65044653",
"0.64712",
"0.64650846",
"0.64566314",
"0.64401495",
"0.63978976",
"0.6389059",
"0.63463897",
"0.62945706",
"0.6291055",
"0.6269378",
"0.62447345",
"0.62242454",
"0.6210111",
"0.6206922",
"0.6203938",
"0.6181358... | 0.70491207 | 2 |
Get the active venv directory path string from `active` file and pass it to `get_venvs()`. | def KdbK():
w5OY = zhYq()
return h60Y(w5OY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o7BH(xAU6, rsZ_, PNq_):\n if xAU6.path:\n iEWr = xAU6.path\n else:\n avuU = rsZ_.get_ve_base(PNq_)\n if not avuU:\n raise cKpR('could not figure out a virtualenvs directory. make sure $HOME is set, or $WORKON_HOME, or set virtualenvs=something in your .vexrc')\n if ... | [
"0.6214001",
"0.60537326",
"0.60093766",
"0.5981251",
"0.5973176",
"0.5969459",
"0.5960634",
"0.594421",
"0.5935982",
"0.5928763",
"0.5928763",
"0.58275616",
"0.5822109",
"0.5813104",
"0.57732326",
"0.57660013",
"0.5763105",
"0.5760462",
"0.57464063",
"0.5707411",
"0.5706193"... | 0.78351563 | 0 |
Calculate the current average value of the deque. | def ZZgC(YKHO):
return oyIN.mean(YKHO.deque) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pvUl(YKHO, Qj8D: float) -> float:\n KXcj = len(YKHO._value_deque)\n if KXcj < YKHO._value_deque.maxlen:\n pass\n else:\n YKHO._neumaier_sum(-YKHO._value_deque[0])\n YKHO._neumaier_sum(Qj8D)\n YKHO._value_deque.append(Qj8D)\n return (YKHO._sum + YKHO._correction) / YKHO._window_s... | [
"0.78126675",
"0.7533721",
"0.7531943",
"0.7464262",
"0.74602324",
"0.744074",
"0.7244264",
"0.7242179",
"0.72412986",
"0.7182508",
"0.7181425",
"0.71768767",
"0.71659905",
"0.7163286",
"0.7156911",
"0.7142743",
"0.71280324",
"0.7117735",
"0.7117735",
"0.7085955",
"0.70809335... | 0.7505245 | 3 |
Start to record time. | def EhxI(YKHO):
YKHO.iter_timer.reset() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R4lU(YKHO):\n pass",
"def yKcO(YKHO):\n YKHO.start_time = qcWV.now()",
"def SWox(YKHO) -> int:\n pass",
"def SWox(YKHO):\n raise NotImplementedError()",
"def xQEZ(YKHO):\n YKHO.startTime = ITS7.time()",
"def yKcO(YKHO):\n YKHO.time_started = ITS7.time()",
"def jSV8(YKHO):\n ret... | [
"0.8139958",
"0.78649944",
"0.78603446",
"0.7708461",
"0.77064675",
"0.7597388",
"0.75873876",
"0.757725",
"0.75735056",
"0.75601697",
"0.75536",
"0.75536",
"0.75458694",
"0.7543148",
"0.75135976",
"0.7497617",
"0.748974",
"0.74464214",
"0.7424362",
"0.7424362",
"0.740806",
... | 0.0 | -1 |
Start to record time. | def SOxl(YKHO):
YKHO.forward_timer.reset() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R4lU(YKHO):\n pass",
"def yKcO(YKHO):\n YKHO.start_time = qcWV.now()",
"def SWox(YKHO) -> int:\n pass",
"def SWox(YKHO):\n raise NotImplementedError()",
"def xQEZ(YKHO):\n YKHO.startTime = ITS7.time()",
"def yKcO(YKHO):\n YKHO.time_started = ITS7.time()",
"def jSV8(YKHO):\n ret... | [
"0.81419325",
"0.78671014",
"0.78625447",
"0.7710184",
"0.77085024",
"0.7599242",
"0.75890976",
"0.757842",
"0.7574905",
"0.75620615",
"0.75543934",
"0.75543934",
"0.754727",
"0.75452673",
"0.7514311",
"0.749902",
"0.7491221",
"0.7447653",
"0.7425828",
"0.7425828",
"0.7409626... | 0.0 | -1 |
Test if the argument is a float. | def QpCZ(d7pR, mWFP=None, zkhv=False, nvUx=True):
if zkhv and d7pR == None:
return True
if _e0h.check_types.is_float(d7pR):
return True
if not nvUx:
return False
if not zkhv:
raise x_GL(mWFP, d7pR)
else:
raise fTZv(mWFP, d7pR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QpCZ(d7pR):\n if isinstance(d7pR, float) or isinstance(d7pR, int):\n return True\n try:\n float(d7pR)\n except ValueError:\n return False\n return True",
"def CjoC(*qIxc):\n return IOEi.is_type_float(*qIxc)",
"def Z6LN(BWXx: t.Any) -> bool:\n return isinstance(BWXx, f... | [
"0.8613079",
"0.85938245",
"0.85333526",
"0.8486825",
"0.84560746",
"0.84084445",
"0.83294034",
"0.83083475",
"0.82949406",
"0.82831657",
"0.8276744",
"0.82289356",
"0.82289356",
"0.82289356",
"0.82289356",
"0.81744546",
"0.8170672",
"0.8160952",
"0.81108254",
"0.8107378",
"0... | 0.8015074 | 23 |
Test if the argument is a matrix of floats. | def QIjc(d7pR, mWFP=None, tpio=None, zkhv=False, pujl=False, nvUx=True):
YIoF = False
if zkhv and d7pR == None:
return True
if not isinstance(d7pR, list) and (not isinstance(d7pR, gyIm)):
YIoF = True
elif not len(d7pR):
YIoF = True
elif not isinstance(d7pR[0], list) and (not ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QIjc(vC9B):\n if isinstance(vC9B, oyIN.ndarray):\n if vC9B.ndim == 2 and vC9B.dtype.kind == 'f':\n return True\n return False",
"def zC0l(SppC):\n if type(SppC) == list:\n if type(SppC[0]) == list:\n if type(SppC[0][0]) is int or float:\n return Tru... | [
"0.8588799",
"0.7072106",
"0.70629805",
"0.6986756",
"0.68903893",
"0.6783008",
"0.6749441",
"0.67427695",
"0.66244745",
"0.6539377",
"0.64799654",
"0.64632577",
"0.6452263",
"0.645109",
"0.64500064",
"0.64448667",
"0.6440982",
"0.6407754",
"0.6407234",
"0.6391015",
"0.638567... | 0.75364244 | 1 |
Test if the argument is a rankN array of floats. | def QvEg(d7pR, mWFP=None, tpio=(3, 3), zkhv=False, nvUx=True):
YIoF = False
if isinstance(tpio, int):
tpio = [tpio]
if zkhv and d7pR == None:
return True
if not isinstance(d7pR, list) and (not isinstance(d7pR, gyIm)):
YIoF = True
elif not len(d7pR):
YIoF = True
el... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PqjH(vC9B):\n if isinstance(vC9B, oyIN.ndarray):\n if vC9B.dtype.kind == 'f':\n return True\n return False",
"def PqjH(wEf2):\n return pznN(wEf2) and issubclass(wEf2.dtype.type, oyIN.floating)",
"def NugU(vC9B):\n if isinstance(vC9B, oyIN.ndarray):\n if vC9B.ndim == 1 a... | [
"0.7513623",
"0.7201943",
"0.7192694",
"0.7053107",
"0.68864715",
"0.68794084",
"0.67671776",
"0.6752152",
"0.6680201",
"0.63237643",
"0.6311441",
"0.6285351",
"0.6255049",
"0.61937904",
"0.6144732",
"0.61438024",
"0.60632634",
"0.6058513",
"0.6029757",
"0.60244495",
"0.60200... | 0.67813617 | 6 |
Test if the argument is a function. | def A_Jy(d7pR, mWFP=None, zkhv=False, nvUx=True):
if zkhv and d7pR == None:
return True
if isinstance(d7pR, kI0w) or isinstance(d7pR, QXIB):
return True
if not nvUx:
return False
if not zkhv:
raise JUEp(mWFP, d7pR)
else:
raise Sfjz(mWFP, d7pR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CKBl(object):\n return isinstance(object, SnBA.FunctionType)",
"def A_Jy(input):\n return callable(input)",
"def rVKq(YEnM):\n return isinstance(YEnM, L6UG)",
"def VXdC(eHNT):\n try:\n eHNT(1)\n return True\n except TypeError:\n return False",
"def rVKq(YEnM):\n J... | [
"0.8127818",
"0.7910966",
"0.78404164",
"0.7620599",
"0.74582344",
"0.7383034",
"0.73669726",
"0.73618805",
"0.72637856",
"0.7226596",
"0.71883696",
"0.7141165",
"0.70710295",
"0.7044246",
"0.70003265",
"0.68874633",
"0.68073034",
"0.67844206",
"0.67748725",
"0.6768749",
"0.6... | 0.76923734 | 3 |
Test if the argument is a list. | def Lm1b(d7pR, mWFP=None, zNig=None, zkhv=False, VW1y=False, nwEZ=False, nvUx=True):
YIoF = False
if zkhv and d7pR == None:
return True
if not isinstance(d7pR, list):
YIoF = True
else:
if zNig != None and len(d7pR) != zNig:
YIoF = True
if not VW1y and d7pR == ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lm1b(vGaq):\n return isinstance(vGaq, SnBA.ListType)",
"def Lm1b(input):\n return type(input) == jbQU",
"def Lm1b(vGaq):\n return type(vGaq) is SnBA.ListType",
"def Lm1b(BWXx):\n return isinstance(BWXx, list)",
"def Lm1b(BWXx):\n return isinstance(BWXx, list)",
"def Lm1b(vC9B):\n re... | [
"0.8449407",
"0.8442024",
"0.8429836",
"0.83055985",
"0.83055985",
"0.8301",
"0.8298924",
"0.8245309",
"0.82233524",
"0.81170744",
"0.8058516",
"0.8028959",
"0.79501635",
"0.79456544",
"0.7894227",
"0.7843493",
"0.78364897",
"0.7809624",
"0.78069425",
"0.7773793",
"0.7773793"... | 0.75995815 | 28 |
Test if the argument is a list of strings. | def f5S_(d7pR, mWFP=None, zNig=None, zkhv=False, VW1y=False, nwEZ=False, nvUx=True):
YIoF = False
if zkhv and d7pR == None:
return True
if not isinstance(d7pR, list):
YIoF = True
else:
if zNig != None and len(d7pR) != zNig:
YIoF = True
if not VW1y and d7pR == ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SM1_(d7pR):\n try:\n if all([isinstance(fEM0, exCv) for fEM0 in d7pR]):\n return True\n except:\n pass\n return False",
"def Lm1b(WKvO):\n return isinstance(WKvO, list) and (not isinstance(WKvO, jUrF))",
"def aBbO(d7pR):\n if isinstance(d7pR, i7ut.string_types):\n ... | [
"0.8652821",
"0.7794209",
"0.7619081",
"0.74973494",
"0.74853235",
"0.74623185",
"0.74523807",
"0.7440534",
"0.74300325",
"0.72981715",
"0.72421324",
"0.7229067",
"0.7212573",
"0.7212573",
"0.7212249",
"0.7174981",
"0.71463907",
"0.71436644",
"0.7132186",
"0.71088773",
"0.706... | 0.77909046 | 2 |
Sets the movement_sensitivity2 of this DeviceConfig. | def blrd(YKHO, blrd):
YKHO._movement_sensitivity2 = blrd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CNhv(YKHO, CNhv):\n YKHO._movement_sensitivity = CNhv",
"def dC8m(YKHO, dC8m):\n YKHO._position2 = dC8m",
"def jvR6(YKHO, ABDL):\n YKHO.action('setValue2', ABDL)\n if 'value2' in YKHO.fibaro_device.properties:\n YKHO.fibaro_device.properties.value2 = ABDL",
"def alLL(YKHO, alLL):\n ... | [
"0.625079",
"0.59003854",
"0.5556178",
"0.5540174",
"0.5470826",
"0.5319478",
"0.52917784",
"0.5274433",
"0.5271037",
"0.5256423",
"0.5233387",
"0.52008325",
"0.5188019",
"0.51673955",
"0.5156342",
"0.5116042",
"0.50680655",
"0.5038408",
"0.5011477",
"0.4993869",
"0.4993551",... | 0.88803005 | 0 |
Sets the mode_control of this DeviceConfig. | def EOr9(YKHO, EOr9):
YKHO._mode_control = EOr9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RuC6(YKHO, Tuqy):\n Tuqy = Tuqy.upper()\n if Tuqy not in YKHO.CONTROL_MODES:\n raise ztAA(\"Unknown mode '{}', valid modes are '{}' \".format(Tuqy, ', '.join(YKHO.CONTROL_MODES)))\n else:\n YKHO._control_mode = Tuqy\n if YKHO._control_mode == YKHO.SCPI:\n YKHO._scpi_interface.s... | [
"0.7805826",
"0.7512843",
"0.72986966",
"0.72186446",
"0.72138524",
"0.710838",
"0.7091163",
"0.7063812",
"0.70307505",
"0.70307505",
"0.7011599",
"0.6984061",
"0.6895684",
"0.6818641",
"0.67773634",
"0.6751888",
"0.67472494",
"0.6740194",
"0.6725001",
"0.6685141",
"0.6670272... | 0.7999064 | 0 |
Sets the mode_control2 of this DeviceConfig. | def alLL(YKHO, alLL):
YKHO._mode_control2 = alLL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bwOF(YKHO):\n Jaoi = _qsA | QE6t\n Pjr8.write_byte_data(STQc, BIX5, Jaoi)",
"def heMa(YKHO, ZIC1):\n C236 = ZIC1\n return YKHO._setAttr('i2cMode', C236)",
"def lS2W(YKHO, Tuqy):\n if isinstance(Tuqy, int) == False:\n raise ValueError('V2G mode needs to be from type int')\n elif Tuq... | [
"0.72170717",
"0.6946107",
"0.65953976",
"0.6517172",
"0.64522797",
"0.63476455",
"0.62281954",
"0.62224215",
"0.6128011",
"0.6125411",
"0.61074865",
"0.60830784",
"0.60108286",
"0.60059786",
"0.59781617",
"0.5891332",
"0.5876375",
"0.58745915",
"0.57948685",
"0.5776296",
"0.... | 0.8732225 | 0 |
Sets the transmit_timeout of this DeviceConfig. | def B8IU(YKHO, B8IU):
YKHO._transmit_timeout = B8IU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I0XH(YKHO, I0XH):\n YKHO._transmit_delay = I0XH",
"def oFIL(YKHO, oFIL: ConfigNodePropertyInteger):\n YKHO._connection_timeout = oFIL",
"def _YYW(YKHO, W1ZK):\n assert W1ZK > 0\n YKHO.retransmit_timeout = W1ZK",
"def Fywx(YKHO, vYBr):\n YKHO.timeout = float(vYBr)",
"def uZwU(YKHO, U4Jp=Q... | [
"0.69430125",
"0.59864503",
"0.5834338",
"0.57523364",
"0.57098806",
"0.5635184",
"0.5635184",
"0.5635184",
"0.5575116",
"0.548429",
"0.5471663",
"0.5440232",
"0.54156137",
"0.5413216",
"0.54008013",
"0.54008013",
"0.5390506",
"0.5387467",
"0.538605",
"0.5385968",
"0.5359264"... | 0.8363679 | 0 |
Sets the stop_timeout of this DeviceConfig. | def mcJg(YKHO, mcJg):
YKHO._stop_timeout = mcJg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d0aV(YKHO, BWXx):\n YKHO.config.set('OBAClient', 'minutesToStop', BWXx)",
"def SUPD(YKHO, BWXx):\n YKHO.config.set('OBAClient', 'stopNumber', BWXx)",
"def FY5E(YKHO, JCyR=1200):\n YKHO.write(':WAV:STOP {0}'.format(JCyR))",
"def JCyR(YKHO, JCyR):\n if JCyR is None:\n raise ValueError('I... | [
"0.64572686",
"0.6084961",
"0.5972019",
"0.5952119",
"0.5952119",
"0.5946611",
"0.5933703",
"0.59194624",
"0.5907176",
"0.5870097",
"0.57603234",
"0.57459414",
"0.571352",
"0.5663657",
"0.5663168",
"0.56542844",
"0.5654115",
"0.5644723",
"0.5626919",
"0.5626919",
"0.56268936"... | 0.81019807 | 0 |
Sets the received_at of this DeviceConfig. | def lwxC(YKHO, lwxC):
YKHO._received_at = lwxC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zB0d(YKHO, BWXx):\n YKHO.logger.warn('Setting values on updated_at will NOT update the remote Canvas instance.')\n YKHO._updated_at = BWXx",
"def zB0d(YKHO, BWXx):\n YKHO.logger.warn('Setting values on updated_at will NOT update the remote Canvas instance.')\n YKHO._updated_at = BWXx",
"def zB0... | [
"0.5490882",
"0.5490882",
"0.5490882",
"0.5490882",
"0.5490882",
"0.5490882",
"0.54523784",
"0.5412694",
"0.53335506",
"0.53335506",
"0.53335506",
"0.51602155",
"0.5095693",
"0.5095693",
"0.5095693",
"0.5095693",
"0.5095693",
"0.5091806",
"0.5091806",
"0.50721544",
"0.5071194... | 0.7861047 | 0 |
Sets the home_wifi_password of this DeviceConfig. | def hcao(YKHO, hcao):
if YKHO._configuration.client_side_validation and hcao is not None and (len(hcao) > 127):
raise ValueError('Invalid value for `home_wifi_password`, length must be less than or equal to `127`')
YKHO._home_wifi_password = hcao | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xcsu(YKHO, KaGP):\n if len(KaGP.encode()) > PSrQ.MAX_WIFI_PASS_LEN:\n raise ValueError('WiFi password too long')\n YKHO._wifi_pass = KaGP\n return",
"def sdPe(YKHO, sdPe):\n if YKHO._configuration.client_side_validation and sdPe is not None and (len(sdPe) > 127):\n raise ValueError(... | [
"0.65791124",
"0.6392267",
"0.5558944",
"0.55131674",
"0.5511132",
"0.54797864",
"0.54737556",
"0.5424752",
"0.5353088",
"0.53435713",
"0.53178656",
"0.5303395",
"0.5297885",
"0.52811426",
"0.5262586",
"0.5230431",
"0.5225571",
"0.5225571",
"0.52180815",
"0.5215547",
"0.52103... | 0.8476113 | 0 |
Sets the on_demand_time of this DeviceConfig. | def og12(YKHO, og12):
if YKHO._configuration.client_side_validation and og12 is None:
raise ValueError('Invalid value for `on_demand_time`, must not be `None`')
YKHO._on_demand_time = og12 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aGFn(YKHO, **B2fa):\n Tbtc = B2fa.get(wD8g)\n if Tbtc is None:\n return\n YKHO._device.send('set_poweroff_time', [int(Tbtc)])",
"def Iruq(YKHO, **B2fa):\n YKHO.heating_device.autosize(YKHO.weather.outdoor_dry_bulb_temperature, heating_demand=YKHO.energy_simulation.heating_demand, **B2fa) i... | [
"0.5781025",
"0.5473203",
"0.5458957",
"0.5414763",
"0.53334045",
"0.53212047",
"0.529711",
"0.5270919",
"0.5270919",
"0.52705646",
"0.52670735",
"0.5181937",
"0.51650417",
"0.51551455",
"0.51491004",
"0.51458603",
"0.5127832",
"0.5123767",
"0.5121184",
"0.51147366",
"0.50741... | 0.8314897 | 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):
if not isinstance(Elif, RTnc):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"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.8393829",
"0.83557564",
"0.8296152",
"0.8133522",
"0.81153053",
"0.8100911",
"0.8100133",
"0.8098902",
"0.8098902",
"0.80937666",
"0.80937666",
"0.80937666",
"0.80937666",
"0.8086338",
"0.8086338",
"0.8086338",
"0.8086338",
"0.8086338",
"0.8067774",
"0.80598664",
"0.805856... | 0.0 | -1 |
Return the built circuit. Returns quantum circuit | def DPNn(YKHO):
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DPNn(YKHO) -> Rv0t:\n return YKHO._circuit",
"def cVC4(YKHO) -> _giR:\n sogq = sum((XaFR.size for XaFR in YKHO.qubit_regs))\n if sogq == 0:\n raise dL1f('No qubit registers defined.')\n DPNn = _giR(sogq)\n DPNn.extend(YKHO.op_list)\n if len(YKHO.measurements) > 0:\n kxhZ = YWv... | [
"0.78129214",
"0.758357",
"0.7555324",
"0.7274188",
"0.7250726",
"0.71175313",
"0.7016857",
"0.7004903",
"0.6960794",
"0.6948859",
"0.6877695",
"0.6869571",
"0.6700537",
"0.6644038",
"0.6621222",
"0.6511526",
"0.65107185",
"0.6477514",
"0.64684004",
"0.6433159",
"0.64314306",... | 0.7436984 | 3 |
A basic test to ensure the home page is functioning correctly | def rKWs(x0hE, P4t4):
Ylbp = x0hE.get('/')
assert b'Hello, World!' == Ylbp.data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rKWs(YKHO):\n geh0 = YKHO.client.get(nKyW('home'))\n YKHO.assertEqual(geh0.status_code, 200)",
"def GvGQ(YKHO, x0hE):\n geh0 = x0hE.get(nKyW('page.home'))\n assert geh0.status_code == 200",
"def gk60(YKHO):\n geh0 = YKHO.client.get(nKyW('home'))\n YKHO.assertEqual(geh0.status_code, 200)",... | [
"0.906085",
"0.8773278",
"0.8768069",
"0.873828",
"0.86963797",
"0.8657038",
"0.86549336",
"0.8652417",
"0.86441076",
"0.86122",
"0.8608024",
"0.8555631",
"0.8546934",
"0.8526463",
"0.8525623",
"0.8517055",
"0.848696",
"0.84841454",
"0.84790236",
"0.84390223",
"0.8429289",
... | 0.76100326 | 94 |
Creates and compiles a cnn model with Keras deep learning library | def n8cN(YKHO, acax, cDNJ):
eFKZ = fhcK.Embedding(len(acax) + 1, YKHO.embedding_dim, weights=[cDNJ], input_length=YKHO.max_sequence_length, trainable=True)
jjm8 = []
pVYu = [3, 4, 5]
KUv9 = fhcK.Input(shape=(YKHO.max_sequence_length,), dtype='int32')
xVbP = eFKZ(KUv9)
for zLuy in pVYu:
y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQs7():\n C3ST = ileL()\n C3ST.add(lTlC(32, 3, activation='relu', input_shape=Nq1b.INPUT_SHAPE))\n C3ST.add(ehTc(pool_size=2))\n C3ST.add(lTlC(64, 3, activation='relu'))\n C3ST.add(ehTc(pool_size=2))\n C3ST.add(lTlC(128, 3, activation='relu'))\n C3ST.add(ehTc(pool_size=2))\n C3ST.add(lT... | [
"0.7670359",
"0.7554209",
"0.755241",
"0.751234",
"0.74975353",
"0.7440501",
"0.7426108",
"0.7404436",
"0.7403331",
"0.73979133",
"0.7394252",
"0.736929",
"0.73609984",
"0.73579913",
"0.7356674",
"0.7354503",
"0.7352334",
"0.7336017",
"0.7331133",
"0.7311473",
"0.73084235",
... | 0.0 | -1 |
Get error as a formatted string. | def zAg0(YKHO):
Ol8d = YKHO._message
if YKHO._exception is not None:
Ol8d += ' : ' + str(YKHO._exception)
return repr(Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0YL(YKHO, tTpl):\n return f'{kQI7} ... {repr(tTpl)}'",
"def HbrT(YKHO, P1dF):\n if isinstance(P1dF, Exception):\n return '{}: {}'.format(type(P1dF).__name__, P1dF)\n else:\n return '{}'.format(P1dF)",
"def RAZ3(YKHO):\n AJ5d, KAOR, V2zj = wVCK.sys.exc_info()\n P1dF = ''.join(w... | [
"0.82403445",
"0.80273074",
"0.78779656",
"0.7765605",
"0.77070135",
"0.7514179",
"0.74839336",
"0.7442831",
"0.73681396",
"0.73681396",
"0.7295318",
"0.7290061",
"0.7284765",
"0.72827065",
"0.7276386",
"0.72466016",
"0.72349036",
"0.72243565",
"0.72212124",
"0.7214661",
"0.7... | 0.0 | -1 |
The output_shape computes the new shape of the input after the forward pass is performed. | def oLRV(YKHO):
xMux, H2v2, TVTK = YKHO.input_shape
OM4u, u6Wc = LF2l(YKHO.filter_shape, output_shape=YKHO.padding)
lJr8 = (H2v2 + oyIN.sum(OM4u) - YKHO.filter_shape[0]) / YKHO.stride + 1
uIYW = (TVTK + oyIN.sum(u6Wc) - YKHO.filter_shape[1]) / YKHO.stride + 1
return (YKHO.n_filters, int(lJr8), int(u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oLRV(GhuM):\n ROpF = (Ep8u, H2v2, TVTK, Ybg9 + 1)\n return ROpF",
"def oLRV(GhuM):\n ROpF = (Ep8u, H2v2, TVTK, Ybg9 + 1)\n return ROpF",
"def vxfh(YKHO, GhuM):\n oLRV = GhuM\n for gEmA in YKHO.layers:\n oLRV = gEmA._compute_output_shape(oLRV)\n return oLRV",
"def dOsr(YKHO, Gh... | [
"0.79107684",
"0.79107684",
"0.7896462",
"0.77988917",
"0.77687216",
"0.7750346",
"0.77146524",
"0.76178956",
"0.76178956",
"0.7543751",
"0.7543751",
"0.7537234",
"0.7537208",
"0.75032204",
"0.7490938",
"0.74338543",
"0.7380819",
"0.732976",
"0.73150975",
"0.72516984",
"0.724... | 0.6461165 | 72 |
Return the layer's current parameters. | def OqPV(YKHO):
return oyIN.prod(YKHO.weights.shape) + oyIN.prod(YKHO.biases.shape) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mI5I(YKHO):\n VrTm = {'taux': YKHO.taux, 'mu': YKHO.mu, 'G': YKHO.G, 'alpha_0': YKHO.alpha_0, 'delta': YKHO.delta, 'p': YKHO.p, 'I0': YKHO.I0, 'kparam': YKHO.kparam}\n return VrTm",
"def W6RH(YKHO):\n return [gEmA.get_params() for gEmA in YKHO.param_layers]",
"def SGPK(YKHO):\n return YKHO.mode... | [
"0.7863993",
"0.7640545",
"0.7538953",
"0.7526195",
"0.75171894",
"0.7500271",
"0.74627763",
"0.74627763",
"0.7458238",
"0.7456032",
"0.73938066",
"0.73830754",
"0.7380068",
"0.73739463",
"0.73681456",
"0.73468286",
"0.73468286",
"0.7345946",
"0.7334449",
"0.73212516",
"0.730... | 0.0 | -1 |
creating and configuring an instance of the Flask application | def LUif():
P4t4 = L2w0(__name__)
P4t4.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite3'
P4t4.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
pths.init_app(P4t4)
@P4t4.route('/')
def tk5Y():
DW23 = mv1M.query.all()
return TvZl('base.html', title='home', users=mv1M.quer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z_uJ():\n P4t4 = L2w0(__name__)\n P4t4.config.from_object(PSrQ)\n P4t4.config.from_object(Hy7s.environ.get('APP_SETTINGS'))\n return P4t4",
"def LUif() -> L2w0:\n GPtr = R4f_()\n HEBM = L2w0(__name__)\n if 'secret_key' in GPtr:\n HEBM.secret_key = GPtr['secret_key']\n else:\n ... | [
"0.8212051",
"0.8111147",
"0.8030894",
"0.802603",
"0.80112594",
"0.7992003",
"0.7984014",
"0.79833955",
"0.7978494",
"0.7971351",
"0.7965004",
"0.79630333",
"0.7958754",
"0.79540986",
"0.79540527",
"0.79527205",
"0.7940272",
"0.79135287",
"0.7893171",
"0.78756726",
"0.787153... | 0.0 | -1 |
Wrapper around keras.applications.vgg16.preprocess_input() to make it compatible for use with keras.preprocessing.image.ImageDataGenerator's `preprocessing_function` argument. | def yzxi(WKvO):
from keras.applications.inception_v3 import preprocess_input
EcVT = oyIN.expand_dims(WKvO, axis=0)
EcVT = preprocess_input(EcVT)
return EcVT[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VwsG(YKHO, VXjJ):\n if YKHO.architecture == 'VGG':\n print('Now doing VGG Preprocessing.')\n VXjJ = ZylS.keras.applications.vgg16.preprocess_input(VXjJ)\n else:\n VXjJ = VXjJ / 255.0\n VXjJ = YKHO.standardize(VXjJ)\n return VXjJ",
"def fjyB(WKvO):\n return Loy9.preproc... | [
"0.7845334",
"0.7503069",
"0.7503069",
"0.7503069",
"0.7497979",
"0.74340796",
"0.74292135",
"0.7352071",
"0.7351878",
"0.7302276",
"0.7145617",
"0.6992223",
"0.6992223",
"0.6959242",
"0.69424313",
"0.6925666",
"0.6911995",
"0.68658644",
"0.68657994",
"0.6849705",
"0.68440604... | 0.6195533 | 67 |
Retrieves the boundary condition from proto to fit the framework. | def MaHT(YKHO, zNOz: _BCInfo) -> h8nf[AzJI[FVGq.BCType, float]]:
if zNOz.type == HJ9n.BC_TYPE_DIRICHLET:
return (FVGq.BCType.DIRICHLET, zNOz.value)
elif zNOz.type == HJ9n.BC_TYPE_NEUMANN:
return (FVGq.BCType.NEUMANN, zNOz.value)
elif zNOz.type == HJ9n.BC_TYPE_NEUMANN_2:
return (FVGq.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zXil(YKHO):\n return YKHO.values['boundary']",
"def zXil(YKHO):\n return YKHO.__boundary",
"def zXil(YKHO):\n return YKHO.__boundary",
"def gOSX(YKHO):\n return YKHO.boundaryConditions",
"def HZGi(YKHO) -> 'itkImageBoundaryConditionICVF32 *':\n return A6jl.itkPadImageFilterBaseICVF32ICVF... | [
"0.6969837",
"0.68976086",
"0.68976086",
"0.6747626",
"0.6722445",
"0.6694805",
"0.66880536",
"0.66880536",
"0.66865057",
"0.6664944",
"0.6588195",
"0.6583219",
"0.656257",
"0.6543247",
"0.64641523",
"0.645213",
"0.64467794",
"0.64442194",
"0.6443134",
"0.6431726",
"0.6406598... | 0.0 | -1 |
Provides the option for whether postprocess is applied. | def EDhW(YKHO) -> bool:
return YKHO._apply_postprocess | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jl1m(YKHO):\n pass",
"def ZFtT(Emd4, m8z6):\n return m8z6",
"def T3Nj(YKHO):\n GPtr = YKHO.swirl_lm_parameters_proto\n if not GPtr.HasField('pre_post_process_info') or GPtr.pre_post_process_info.WhichOneof('pre_post_process_option') == 'from_flags':\n YKHO._apply_preprocess = bvZM.value\... | [
"0.6246637",
"0.5838648",
"0.5808235",
"0.5748308",
"0.5699509",
"0.5699509",
"0.5668769",
"0.559509",
"0.5527751",
"0.54897714",
"0.54635304",
"0.53922457",
"0.5352933",
"0.53497",
"0.53369176",
"0.5293089",
"0.52688414",
"0.52517265",
"0.5245781",
"0.52356607",
"0.5212637",... | 0.6866389 | 0 |
The vertical grid local to `replica_id` if `g_dim` is not None. Note that this function supports flow field variables that are represented as List[tf.Tensor] only. | def x_zd(YKHO, w5u3: tf.Tensor, X4Tl: np.ndarray) -> SnBA.FlowFieldVal:
if YKHO.g_dim == 0:
BPxi = YKHO.x_local_ext(w5u3, X4Tl)
return [BPxi[:, ZylS.newaxis]] * YKHO.nz
elif YKHO.g_dim == 1:
BPxi = YKHO.y_local_ext(w5u3, X4Tl)
return [BPxi[ZylS.newaxis, :]] * YKHO.nz
elif YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cs6h(YKHO):\n if YKHO._full_grid is None:\n YKHO._full_grid = YKHO._as_vtk()\n return YKHO._full_grid",
"def TGJe(Emd4, Htse):\n JwCy = None\n M7tN = -1\n for d6pt, ge1O in enumerate(Htse):\n if RELP.is_vertical_dimension(ge1O):\n JwCy = ge1O\n M7tN = d6pt\n... | [
"0.5259524",
"0.5196715",
"0.5196499",
"0.5185829",
"0.5130217",
"0.51176375",
"0.51176375",
"0.51040065",
"0.5068776",
"0.50676006",
"0.5059436",
"0.5035232",
"0.49822104",
"0.4954485",
"0.49281108",
"0.49281108",
"0.4839857",
"0.48379475",
"0.4833396",
"0.48300967",
"0.4830... | 0.80561036 | 0 |
Pick a random node. | def _5OE():
Ziit = AyQV()
or8S = tuKI.randint(0, len(Ziit) - 1)
return Ziit[or8S] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aOCf(YKHO):\n pass",
"def Imy3(Ziit: List[DiscoveredNode]) -> h8nf[RMi2]:\n return tuKI.choice(Ziit)",
"def zNns(YKHO):\n YKHO.node = tuKI.randint(1, Rzv9)\n return YKHO.node",
"def YD4v(YKHO):\n QNrh = []\n for Ev_c in YKHO.nodeList:\n for Q6kx in Ev_c:\n if Q6kx.wall... | [
"0.8234637",
"0.7620571",
"0.75967187",
"0.75190806",
"0.72935766",
"0.7274851",
"0.7200738",
"0.70644087",
"0.6938898",
"0.68612283",
"0.6817203",
"0.678194",
"0.6713419",
"0.6706442",
"0.66790986",
"0.66674167",
"0.6652783",
"0.6628877",
"0.65829027",
"0.6580327",
"0.657954... | 0.85703015 | 0 |
Validate a security group name and return the corresponding UUID. | def fUbN(QpfX: nova_context.RequestContext, mWFP: str):
tm0f = GDvA.get_client(QpfX)
try:
return pez5.find_resourceid_by_name_or_id(tm0f, 'security_group', mWFP, QpfX.project_id)
except MuEj.NeutronClientNoUniqueMatch as e:
raise AJ5d.NoUniqueMatch(str(tTpl))
except MuEj.NeutronClientExc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fEOc(w2B8, mWFP, jeGQ=True, KUnM=None):\n return huPP(w2B8.network.find_security_group, mWFP, jeGQ, KUnM)",
"def RIk_(w2B8, hbFX, jeGQ=True):\n return _wd5(w2B8.network.find_security_group, hbFX, jeGQ)",
"def fEOc(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'security_group_id')",
"de... | [
"0.6729369",
"0.6665898",
"0.64351726",
"0.64351726",
"0.6181783",
"0.61784804",
"0.61380255",
"0.6120858",
"0.61196923",
"0.6065712",
"0.6037905",
"0.60254437",
"0.60030544",
"0.5987127",
"0.5985022",
"0.59501517",
"0.5935916",
"0.5908943",
"0.5887224",
"0.5878023",
"0.58780... | 0.7362931 | 0 |
If Restaurant object does not exist in database, create with current restaurant instance data. | def JPHp(YKHO):
if not pths.find_one(pths.RESTAURANT_COLLECTION_NAME, {'_id': YKHO._id}):
pths.insert(collection=pths.RESTAURANT_COLLECTION_NAME, data=YKHO.json()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NauA(mWFP):\n rdJN = MEn6(name=mWFP)\n cuiw.add(rdJN)\n cuiw.commit()",
"def iVzf(id, mWFP, TdJL, UTX6, fopC, _UuI, qwnb):\n Mkmy = MEn6(id=id, name=mWFP, cuisine=TdJL, address=UTX6, longitude=fopC, latitude=_UuI, image_url=qwnb)\n NCls.session.add(Mkmy)\n NCls.session.commit()\n return ... | [
"0.7075168",
"0.68120533",
"0.67819077",
"0.6755694",
"0.6541029",
"0.6512039",
"0.6472379",
"0.6468793",
"0.6464421",
"0.632598",
"0.61646795",
"0.61590624",
"0.61435914",
"0.61435914",
"0.61435914",
"0.6099072",
"0.6097108",
"0.60403925",
"0.6027806",
"0.60239327",
"0.60111... | 0.66709614 | 4 |
test if string can be coerced to float | def ye72(KCHu):
try:
float(KCHu)
return True
except ValueError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e5f3(vIwR):\n return A69P(vIwR)",
"def e5f3(YKHO, vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def SH_w(vIwR):\n try:\n return float(vIwR)\n except Exception:\n return None",
"def e5f3(vIwR):\n try:\n float(vI... | [
"0.8842513",
"0.8796142",
"0.8714242",
"0.8672423",
"0.8650044",
"0.86432767",
"0.864128",
"0.86079764",
"0.8598561",
"0.85975814",
"0.8595799",
"0.8595799",
"0.85144037",
"0.8514316",
"0.8477591",
"0.8477591",
"0.8477591",
"0.8477591",
"0.8433741",
"0.841818",
"0.8398926",
... | 0.7499027 | 79 |
Return the Jacobian `J_H(N)` of the modular curve `X_H(N)`. | def Eoqk(ywwl, C7Ls):
H5ew = 'JH(%s,%s)' % (ywwl, C7Ls)
try:
return jxrn(H5ew)
except ValueError:
from sage.modular.arithgroup.all import GammaH
from abvar_ambient_jacobian import ModAbVar_ambient_jacobian
Oa10 = ModAbVar_ambient_jacobian(GammaH(ywwl, C7Ls))
return bp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C7Ls(ywwl, MKlR=0, Oa10=1, Tuqy='open'):\n try:\n ARzE, sGxa, aYTU = yvY1['sigmas']\n except KeyError:\n ARzE, sGxa, aYTU = (M98S.sigmax(), M98S.sigmay(), M98S.sigmaz())\n yvY1['sigmas'] = [ARzE, sGxa, aYTU]\n if not yvY1.__contains__('full_S'):\n yvY1['full_S'] = {}\n t... | [
"0.69740117",
"0.69016606",
"0.675177",
"0.6715653",
"0.66427857",
"0.66404057",
"0.66047627",
"0.65923226",
"0.6540223",
"0.64938337",
"0.6404869",
"0.64042526",
"0.6385564",
"0.6363015",
"0.6333647",
"0.6318035",
"0.6261463",
"0.6243986",
"0.62191916",
"0.6172763",
"0.61681... | 0.73776793 | 0 |
Try to detect potential violations by detecting cookies that have never been declared by the consent notice. | def b8V_():
E0cB = None
rVK2 = me7S(__doc__, argv=E0cB)
HQqv('.')
bo34.info('Running method 05: Undeclared Cookies')
OfqK = rVK2['<db_path>']
if not Hy7s.path.exists(OfqK):
bo34.error('Database file does not exist.')
return 1
bo34.info(f'Database used: {OfqK}')
w2B8 = iHv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Okhd(YKHO) -> x1iM[UvGt]:\n rV3a = dUL3.TrafficPolicy.CookiesAllowed\n Qabx = YKHO.proto.policy\n if Qabx.cookies_allowed == rV3a.NO and Qabx.cookies_store:\n return [UvGt(KBO3.INCONSISTENT_ANNOTATION, 'Cookies store is specified while cookies are not allowed.', YKHO.file, YKHO.line)]\n if Y... | [
"0.68403995",
"0.6321201",
"0.6304576",
"0.6234279",
"0.6159243",
"0.61288226",
"0.6061486",
"0.59315485",
"0.59181094",
"0.5864089",
"0.5831375",
"0.5822921",
"0.5802141",
"0.5784378",
"0.5783022",
"0.57678235",
"0.57306504",
"0.57249725",
"0.57011175",
"0.569569",
"0.566187... | 0.57701266 | 15 |
setUp(log_level=logging.DEBUG) Automatically configure logging to the terminal. | def FCbF(YKHO, wiAm=G9jH.DEBUG):
try:
import coloredlogs
coloredlogs.install(level=wiAm)
except ImportError:
G9jH.basicConfig(level=wiAm, format='%(asctime)s %(name)s[%(process)d] %(levelname)s %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
HwRy.stderr.write('\n') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n G9jH.basicConfig(level=G9jH.DEBUG, stream=HwRy.stdout)\n YKHO.logger = G9jH.getLogger('')\n YKHO.logger.setLevel(G9jH.DEBUG)",
"def FCbF(YKHO):\n gEt3.install(level='DEBUG')",
"def tqPq(YKHO, dsE5=False):\n if dsE5:\n G9jH.getLogger().setLevel(G9jH.INFO)",
"def FCbF(YK... | [
"0.7865297",
"0.77105725",
"0.76248235",
"0.7472727",
"0.73846877",
"0.7369056",
"0.7273352",
"0.71732754",
"0.7104068",
"0.71036816",
"0.7085705",
"0.7077565",
"0.70560586",
"0.70406854",
"0.70049614",
"0.6964136",
"0.6955011",
"0.69280916",
"0.68994063",
"0.6861925",
"0.685... | 0.7998319 | 0 |
Load and return the text of a text file, assuming latin1 encoding as that is what the BBC corpus uses. Use codecs.open() function not open(). | def gFHi(Ux0P: str):
eHNT = T_Uj.open(Ux0P, encoding='latin-1', mode='r')
KCHu = eHNT.read()
eHNT.close()
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Slht(qaEx):\n Ux0P = GkAb(qaEx)\n tZ2K = bMom(Ux0P)\n eHNT = open(Ux0P, encoding=tZ2K)\n nPrm = eHNT.read()\n eHNT.close()\n return nPrm.rstrip()",
"def e7w5(pmON: str, tZ2K: Optional[str]=None) -> str:\n return Tyxc(TiZu(pmON), tZ2K)",
"def gFHi(Ux0P: str) -> str:\n eHNT = T_Uj.ope... | [
"0.81418175",
"0.79082894",
"0.7882845",
"0.7718876",
"0.75647146",
"0.74292904",
"0.73726344",
"0.73607457",
"0.733262",
"0.73315805",
"0.7302866",
"0.72569686",
"0.719264",
"0.71458805",
"0.71458805",
"0.7144442",
"0.7129997",
"0.7099496",
"0.70773095",
"0.706508",
"0.70610... | 0.8048727 | 1 |
Gets the eld_adverse_weather_exemption_enabled of this DriverBase. | def V8nS(YKHO):
return YKHO._eld_adverse_weather_exemption_enabled | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V8nS(YKHO, V8nS):\n YKHO._eld_adverse_weather_exemption_enabled = V8nS",
"def VUKu(YKHO):\n return YKHO._eld_big_day_exemption_enabled",
"def KBCE(YKHO):\n return YKHO._eld_ym_enabled",
"def u_J_(YKHO):\n return YKHO._libinput.libinput_device_config_dwt_get_enabled(YKHO._handle)",
"def VUKu... | [
"0.79425657",
"0.70547235",
"0.6686955",
"0.6381022",
"0.6111903",
"0.59239376",
"0.5881163",
"0.58167535",
"0.5785783",
"0.5785783",
"0.5782927",
"0.5780202",
"0.5780202",
"0.5780202",
"0.5780202",
"0.5780202",
"0.5780202",
"0.5780202",
"0.5780202",
"0.5780202",
"0.5780202",... | 0.8972879 | 0 |
Gets the eld_big_day_exemption_enabled of this DriverBase. | def VUKu(YKHO):
return YKHO._eld_big_day_exemption_enabled | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VUKu(YKHO, VUKu):\n YKHO._eld_big_day_exemption_enabled = VUKu",
"def V8nS(YKHO):\n return YKHO._eld_adverse_weather_exemption_enabled",
"def KBCE(YKHO):\n return YKHO._eld_ym_enabled",
"def V8nS(YKHO, V8nS):\n YKHO._eld_adverse_weather_exemption_enabled = V8nS",
"def _JR8(YKHO):\n retur... | [
"0.8087414",
"0.71475685",
"0.6415825",
"0.6369372",
"0.5996833",
"0.5912037",
"0.58758444",
"0.58758444",
"0.5757176",
"0.56898373",
"0.56898373",
"0.56898373",
"0.56898373",
"0.56898373",
"0.56898373",
"0.56898373",
"0.56898373",
"0.56898373",
"0.56898373",
"0.56898373",
"0... | 0.89702386 | 0 |
Gets the eld_exempt of this DriverBase. | def szLM(YKHO):
return YKHO._eld_exempt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def orvr(YKHO):\n return YKHO._eld_exempt_reason",
"def szLM(YKHO, szLM):\n YKHO._eld_exempt = szLM",
"def orvr(YKHO, orvr):\n YKHO._eld_exempt_reason = orvr",
"def RPgW(YKHO):\n return YKHO._tax_exempt",
"def yUkU(YKHO):\n return YKHO._excl",
"def VUKu(YKHO):\n return YKHO._eld_big_day... | [
"0.7204404",
"0.6967114",
"0.6028655",
"0.5901247",
"0.58310586",
"0.58158034",
"0.57339597",
"0.57151854",
"0.56815827",
"0.5602503",
"0.5602503",
"0.5602503",
"0.5602503",
"0.5602503",
"0.5602503",
"0.5602503",
"0.5602503",
"0.5602503",
"0.5602503",
"0.5602503",
"0.5602503"... | 0.8160723 | 0 |
Gets the eld_pc_enabled of this DriverBase. | def _JR8(YKHO):
return YKHO._eld_pc_enabled | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _JR8(YKHO, _JR8):\n YKHO._eld_pc_enabled = _JR8",
"def F7Yy(YKHO):\n return YKHO._ddc_enabled",
"def TRGp(YKHO):\n return YKHO.get('positionerGetDcInEnable', (YKHO.axis_number, None))[0].value",
"def n30Z(YKHO):\n return YKHO._call('LCP_IsEnabled', YKHO._handle[0])",
"def dlnD(YKHO):\n r... | [
"0.7425956",
"0.6344683",
"0.62242854",
"0.617262",
"0.60867316",
"0.60779417",
"0.6045423",
"0.6033533",
"0.60324216",
"0.6005987",
"0.6005987",
"0.6005987",
"0.6005987",
"0.6005987",
"0.6005987",
"0.6005987",
"0.6005987",
"0.6005987",
"0.6005987",
"0.6005987",
"0.6005987",
... | 0.8944292 | 0 |
Gets the eld_ym_enabled of this DriverBase. | def KBCE(YKHO):
return YKHO._eld_ym_enabled | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KBCE(YKHO, KBCE):\n YKHO._eld_ym_enabled = KBCE",
"def _JR8(YKHO):\n return YKHO._eld_pc_enabled",
"def WMoe(YKHO):\n return YKHO.ym",
"def V4BH(YKHO):\n return YKHO._get_attribute(YKHO._SDM_ATT_MAP['Enabled'])",
"def V8nS(YKHO):\n return YKHO._eld_adverse_weather_exemption_enabled",
"... | [
"0.7634715",
"0.6299678",
"0.5988149",
"0.5889408",
"0.5867979",
"0.5813681",
"0.5809277",
"0.5792168",
"0.57373863",
"0.56400734",
"0.5629015",
"0.5614056",
"0.5597758",
"0.5597758",
"0.5597758",
"0.5597758",
"0.5597758",
"0.5597758",
"0.5597758",
"0.5597758",
"0.5597758",
... | 0.895692 | 0 |
Sets the external_ids of this DriverBase. | def tbI3(YKHO, tbI3):
YKHO._external_ids = tbI3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tbI3(YKHO, tbI3: Dict[str, str]):\n YKHO._external_ids = tbI3",
"def tbI3(YKHO, tbI3: Dict[str, str]):\n YKHO._external_ids = tbI3",
"def PME1(YKHO, PME1):\n YKHO._external_urls = PME1",
"def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7",
"def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7... | [
"0.81715846",
"0.81715846",
"0.6506235",
"0.64314073",
"0.64314073",
"0.64314073",
"0.620241",
"0.6074243",
"0.6033337",
"0.5988789",
"0.5976215",
"0.5974949",
"0.5974949",
"0.5865687",
"0.5865687",
"0.5816723",
"0.5816723",
"0.5798466",
"0.57975674",
"0.57975674",
"0.5797206... | 0.82405204 | 0 |
Gets the group_id of this DriverBase. | def hE03(YKHO):
return YKHO._group_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rfWX(YKHO):\n return YKHO.__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 e7pw(YKHO):\n return YKHO.group_id",
"def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKH... | [
"0.82863855",
"0.79555434",
"0.79555434",
"0.77443093",
"0.76388425",
"0.76388425",
"0.75331503",
"0.7525698",
"0.75132895",
"0.73434854",
"0.72631717",
"0.72631717",
"0.72631717",
"0.7201738",
"0.7173795",
"0.71628696",
"0.71189535",
"0.7104969",
"0.70966965",
"0.7082428",
"... | 0.8238341 | 2 |
Sets the group_id of this DriverBase. | def hE03(YKHO, hE03):
YKHO._group_id = hE03 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oC6H(YKHO, hE03):\n if oyIN.isscalar(hE03):\n hE03 = hE03 * oyIN.ones(YKHO.n_trial, dtype=oyIN.int32)\n else:\n hE03 = YKHO._check_group_id(hE03)\n YKHO.group_id = jth9.copy(hE03)\n YKHO._set_configuration_data(YKHO.n_reference, YKHO.n_select, YKHO.is_ranked, hE03)",
"def QYWb(YKHO,... | [
"0.758002",
"0.73962134",
"0.73435205",
"0.73204136",
"0.7100771",
"0.70093894",
"0.6997029",
"0.69724137",
"0.69724137",
"0.69724137",
"0.69724137",
"0.69724137",
"0.69724137",
"0.69724137",
"0.69724137",
"0.69724137",
"0.6940856",
"0.6859784",
"0.6826804",
"0.67062217",
"0.... | 0.8233103 | 2 |
Gets the license_number of this DriverBase. | def imJI(YKHO):
return YKHO._license_number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qpU2(YKHO):\n return YKHO._licence_number",
"def kaex(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'license_id')",
"def license(YKHO):\n return YKHO._license",
"def license(YKHO):\n return YKHO._license",
"def license(YKHO) -> str:\n return YKHO._license",
"def kaex(YKHO) -> h8nf... | [
"0.79877234",
"0.75563854",
"0.7163062",
"0.7163062",
"0.713942",
"0.7000822",
"0.69295985",
"0.69209814",
"0.69001096",
"0.6698779",
"0.66949755",
"0.66643846",
"0.65900147",
"0.6484555",
"0.6484555",
"0.6484555",
"0.64652556",
"0.6454751",
"0.63955986",
"0.63955986",
"0.636... | 0.86338526 | 0 |
Gets the license_state of this DriverBase. | def ocUU(YKHO):
return YKHO._license_state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def license(YKHO):\n return YKHO._license",
"def license(YKHO):\n return YKHO._license",
"def QTBn(YKHO):\n if iQh3 in YKHO.details:\n TmMv = YKHO.details[iQh3]\n return None if TmMv is None else TmMv\n return lP_9",
"def license(YKHO) -> 'outputs.LicenseResponse':\n return qe4Y.... | [
"0.7207709",
"0.7207709",
"0.702676",
"0.67279536",
"0.67279536",
"0.6699254",
"0.6664481",
"0.66269475",
"0.6626217",
"0.6507471",
"0.6494149",
"0.6494138",
"0.64492565",
"0.6442739",
"0.6428355",
"0.6419269",
"0.64137614",
"0.6327408",
"0.62545085",
"0.62486374",
"0.6213053... | 0.87064 | 0 |
Gets the name of this DriverBase. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fUs_(YKHO):\n return YKHO.driver.name",
"def mWFP(YKHO):\n return YKHO._base.name",
"def g7QD(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('driverName'))",
"def g7QD(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('driverName'))",
"def g7QD(YKHO) -> str:\n return... | [
"0.81533796",
"0.8049908",
"0.79251176",
"0.79251176",
"0.79251176",
"0.79226184",
"0.7780376",
"0.77223045",
"0.77223045",
"0.7678993",
"0.7678993",
"0.7678993",
"0.764052",
"0.7635137",
"0.7635137",
"0.7635137",
"0.7627005",
"0.7622169",
"0.7622169",
"0.7622169",
"0.7622169... | 0.0 | -1 |
Gets the notes of this DriverBase. | def rpno(YKHO):
return YKHO._notes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rpno(YKHO):\n return YKHO.tracker.get_notes(YKHO.builder)",
"def RqXE(YKHO):\n return YKHO.notes",
"def rB4x(YKHO):\n return YKHO.notes",
"def rpno(YKHO) -> str:\n return YKHO._notes",
"def rpno(YKHO):\n return Eorv.Notes(YKHO)",
"def rpno(YKHO) -> qe4Y.Output[str]:\n return qe4Y.ge... | [
"0.81618494",
"0.8142234",
"0.8026471",
"0.778907",
"0.7722016",
"0.77061695",
"0.7563405",
"0.75561357",
"0.7408381",
"0.7403927",
"0.723536",
"0.71877015",
"0.71563303",
"0.71315765",
"0.7125604",
"0.7110061",
"0.7011136",
"0.6953521",
"0.6952807",
"0.6952807",
"0.6952807",... | 0.79354095 | 3 |
Sets the notes of this DriverBase. | def rpno(YKHO, rpno):
YKHO._notes = rpno | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n_rA(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno: str):\n YKHO._notes = rpno",
"def YhTF(YKHO, rpno):\n for vexM in rpno:\n YEnM = L_TV(vexM['ps'], vexM['dur'], vexM['dyn'])\n YKHO._notes.append(YEnM)",
"def pKyV(YKHO,... | [
"0.8390532",
"0.8046985",
"0.7992966",
"0.76993024",
"0.75732476",
"0.74658704",
"0.7219374",
"0.7030792",
"0.70292",
"0.701333",
"0.67882925",
"0.6708861",
"0.66789",
"0.66529113",
"0.664661",
"0.6605527",
"0.6532804",
"0.65228117",
"0.65013134",
"0.65013134",
"0.65013134",
... | 0.8005493 | 4 |
Gets the username of this DriverBase. | def NtEF(YKHO):
return YKHO._username | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fiXC(YKHO):\n return YKHO.__username__",
"def fiXC(YKHO):\n return YKHO.crb['user']",
"def fiXC(YKHO):\n return YKHO.username",
"def NtEF(YKHO) -> str:\n return YKHO._username",
"def NtEF(YKHO) -> str:\n return YKHO._username",
"def NtEF(YKHO) -> str:\n return YKHO._username",
"de... | [
"0.8093219",
"0.8005503",
"0.7932894",
"0.79207146",
"0.79207146",
"0.79207146",
"0.79207146",
"0.79207146",
"0.79207146",
"0.79207146",
"0.79207146",
"0.79180545",
"0.79164815",
"0.7902426",
"0.78794026",
"0.7877592",
"0.78459597",
"0.78459597",
"0.78459597",
"0.7831328",
"0... | 0.7819977 | 22 |
Gets the vehicle_id of this DriverBase. | def DDJ9(YKHO):
return YKHO._vehicle_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sSDU(YKHO):\n return YKHO.vehicle_id",
"def WLfQ(YKHO) -> int:\n return YKHO._driver_id",
"def Au7i(YKHO):\n return YKHO._vehicle_code",
"def hNtJ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'drive_id')",
"def Gwav(YKHO):\n return YKHO.__v_id",
"def Gwav(YKHO):\n return YKHO.__v_id"... | [
"0.8405105",
"0.7168433",
"0.68222404",
"0.64013165",
"0.6235943",
"0.6235943",
"0.6235943",
"0.6208586",
"0.6161004",
"0.6154912",
"0.6128415",
"0.5988928",
"0.59816015",
"0.59509754",
"0.5917492",
"0.5917492",
"0.5917492",
"0.5917492",
"0.5885356",
"0.58610064",
"0.5853567"... | 0.8427202 | 0 |
Get absolute path to resource, works for dev and for PyInstaller | def JFat(t_yv):
try:
XSj5 = HwRy._MEIPASS
except Exception:
XSj5 = Hy7s.path.abspath('.')
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return khtY.abspath(khtY.join(khtY.dirname(xAKo), 'resources') + khtY.sep)",
"def JFat(Qth0):\n if getattr(HwRy, 'frozen', None):\n ObT1 = HwRy._MEIPASS\n else:\n ObT1 = Hy7s.path.join(Hy7s.getcwd())\n return Hy7s.path.join(ObT1, Qth0)",
"def JFat(t_yv):\n try:\n ... | [
"0.86645055",
"0.8190357",
"0.8175001",
"0.8163073",
"0.80863976",
"0.80863976",
"0.80863976",
"0.80863976",
"0.8086095",
"0.80784917",
"0.8077746",
"0.8073863",
"0.8065137",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.... | 0.80456185 | 25 |
Method for loading a keras model | def uyMl(YKHO):
vC9B = xFmU(20, 20, x4nv, Y9Ra, Fu4v, BVxk, xKZX)
YKHO.model = uyMl(YKHO.model_file, custom_objects={'loss_function': vC9B}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(pmON):\n return tMkk(pmON)",
"def wX8m(YKHO, mWFP):\n YKHO.model = bdPE.models.load_model(mWFP)",
"def dNS5(pmON, MNAm=None):\n return ZylS.keras.models.load_model(pmON, MNAm)",
"def uyMl(YKHO, pmON):\n YKHO.model = ZylS.keras.models.load_model(pmON)",
"def O5RJ(YKHO):\n from keras.... | [
"0.8510579",
"0.8216367",
"0.81348264",
"0.8024157",
"0.7926864",
"0.7876194",
"0.7876007",
"0.7819124",
"0.7819124",
"0.78141516",
"0.7791022",
"0.7783233",
"0.7781187",
"0.77666223",
"0.77557373",
"0.775408",
"0.77448595",
"0.771169",
"0.77030325",
"0.76974833",
"0.76642424... | 0.731002 | 62 |
Preprocess an image, so it's ready for inputting the the model. | def biH0(YKHO, Xn71):
TRL1 = XC5k.cvtColor(Xn71, XC5k.COLOR_RGB2GRAY).astype(oyIN.float32)
TRL1 -= oyIN.mean(TRL1)
TRL1 /= oyIN.std(TRL1)
return TRL1.astype(oyIN.float32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def biH0(YKHO, LNo8):\n raise NotImplementedError",
"def biH0(YKHO, LNo8):\n return LNo8",
"def C3ar(LNo8):\n LNo8 = daQb.resize(LNo8, hU6K)\n LNo8 = uGYG.Image.fromarray(LNo8)\n LNo8 = Ymkf.Normalize(mean=avL8, std=E6bc)(Ymkf.ToTensor()(LNo8)).unsqueeze(0)\n return LNo8",
"def biH0(YKHO, V... | [
"0.8563014",
"0.8280706",
"0.80919373",
"0.8051917",
"0.799804",
"0.7977141",
"0.7835619",
"0.78210515",
"0.7784133",
"0.772028",
"0.7615417",
"0.75892246",
"0.7567325",
"0.7562924",
"0.75547177",
"0.7543914",
"0.7512095",
"0.7507507",
"0.7496664",
"0.748241",
"0.74219406",
... | 0.0 | -1 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)
Ylbp.append(R2Dg.mul_(100.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA... | [
"0.8003211",
"0.79748034",
"0.79735845",
"0.7941222",
"0.78642285",
"0.7803938",
"0.7707779",
"0.7621563",
"0.7593218",
"0.75612706",
"0.752028",
"0.7430132",
"0.74122673",
"0.7375894",
"0.7374447",
"0.7321427",
"0.7254542",
"0.7236769",
"0.72279894",
"0.7204469",
"0.7137302"... | 0.0 | -1 |
Filter specific gameweeks and teams from input dataframe to limit pick options | def u_RS(jQ3Z, PWCG=None, Ktpp=None, rJco=set(), M0Kc=set()):
cTww = jQ3Z['gameweek'].min() - 1
if PWCG:
iJH3 = jQ3Z.loc[jQ3Z.picked, 'team']
W04a = jQ3Z.loc[jQ3Z.result != 'pending', 'gameweek']
rJco.update(iJH3)
M0Kc.update(W04a)
cTww = W04a.max()
if Ktpp:
K... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LV_H(BgsN, OpyB=10):\n JM6C = rLdf.read_sql('SELECT ncaa, ncaaid AS team_id FROM teams', pths.conn)\n BgsN = BgsN.merge(JM6C, left_on='team_id', right_on='team_id')\n BgsN.drop('ncaa', axis=1, inplace=True)\n qBVh = BgsN.groupby('game_id').count()\n m_pC = qBVh[qBVh.hteam_id == 2].index.values\n... | [
"0.6713078",
"0.62632906",
"0.6235241",
"0.61216617",
"0.61178625",
"0.6087963",
"0.5951928",
"0.58321506",
"0.5803389",
"0.5676767",
"0.5664019",
"0.564228",
"0.563701",
"0.56357324",
"0.5616267",
"0.55966634",
"0.5565481",
"0.5565213",
"0.55221087",
"0.55193245",
"0.5502007... | 0.76374495 | 0 |
Check if number is even or not. | def ubP8(kAne):
return kAne % 2 == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ubP8(FGW3):\n return FGW3 % 2 == 0",
"def ubP8(FGW3):\n return FGW3 % 2 == 0",
"def ubP8(FGW3):\n return FGW3 % 2 == 0",
"def ubP8(FGW3):\n return FGW3 % 2 == 0",
"def ubP8(FGW3):\n return FGW3 % 2 == 0",
"def ubP8(FGW3):\n return FGW3 % 2 == 0",
"def BnE9(FGW3):\n if FGW3 % 2 ... | [
"0.9000893",
"0.89508295",
"0.8923546",
"0.8923546",
"0.8923546",
"0.8923546",
"0.89212745",
"0.88903624",
"0.885579",
"0.88466394",
"0.88466394",
"0.88302404",
"0.8701419",
"0.8687477",
"0.8638402",
"0.8609129",
"0.85963815",
"0.8570225",
"0.8563549",
"0.85600567",
"0.856005... | 0.85875815 | 17 |
Return subpath relative to input path | def Aoy6(pmON, u9Rr):
pmON = XMbN(pmON, as_string=False)
AsiM = XMbN(u9Rr, as_string=False)
return pmON.relative_to(AsiM).as_posix() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UhSK(YFnF, jr0q):\n if Hy7s.path.isabs(jr0q):\n V6eb = jr0q\n else:\n V6eb = Hy7s.path.abspath(Hy7s.path.join(YFnF, jr0q))\n return V6eb",
"def vUG1(pmON, schV=None):\n schV = schV if schV is not None else E0XI()\n XNWQ = Hy7s.path.relpath(Hy7s.path.abspath(pmON), Hy7s.path.abspa... | [
"0.7603844",
"0.746633",
"0.7318972",
"0.72976786",
"0.7230167",
"0.71403617",
"0.71393436",
"0.7096109",
"0.7094113",
"0.70918447",
"0.70740885",
"0.70384437",
"0.70101804",
"0.70096415",
"0.69983995",
"0.6997785",
"0.69482064",
"0.6934728",
"0.6930993",
"0.69143945",
"0.689... | 0.6972682 | 16 |
Get all file paths of a directory (optionally with file extensions | def zjv5(AGPF, *CBZq):
Csk6 = XMbN(AGPF, as_string=False)
cfbQ = []
for yUi_ in Csk6.glob('**/*'):
if not yUi_.is_file():
continue
JZxJ = yUi_.suffix
if CBZq and JZxJ not in CBZq:
continue
cfbQ.append(yUi_.as_posix())
return cfbQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QY5T(pmON):\n return [Hy7s.path.join(pmON, eHNT) for eHNT in PuZh(pmON)]",
"def UDxs(pGQh: str, Fst3: str) -> x1iM[str]:\n ckRy = []\n Fst3 = Fst3.strip('.').lower()\n for nJTJ, bGrB, RRlC in Hy7s.walk(pGQh):\n for Ux0P in RRlC:\n if pmON.splitext(Ux0P)[1].strip('.').lower() == ... | [
"0.82769763",
"0.81269306",
"0.801587",
"0.79869014",
"0.7979895",
"0.7976238",
"0.7958553",
"0.79517037",
"0.7946673",
"0.7916231",
"0.7896712",
"0.7884363",
"0.7850999",
"0.78481984",
"0.78418726",
"0.77965295",
"0.7791383",
"0.77877164",
"0.7780586",
"0.77749926",
"0.77735... | 0.80862117 | 2 |
Returns directory of currently running script (i.e. calling file of this method). | def Uweh():
b1Ag = tq_1.stack()[1][1]
return Hy7s.path.dirname(Hy7s.path.abspath(b1Ag)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KDaq():\n return Hy7s.path.dirname(Hy7s.path.realpath(HwRy.argv[0]))",
"def kn2R():\n return Hy7s.path.dirname(Hy7s.path.abspath(xAKo))",
"def TCZx():\n Ux0P = Md4O(lYrb()).filename\n AGPF = GkAb(Ux0P).resolve().parent\n return AGPF",
"def TCZx(YKHO):\n pmON = Hy7s.path.realpath(HwRy.ar... | [
"0.8869031",
"0.8810203",
"0.8765595",
"0.8723033",
"0.8708673",
"0.865611",
"0.85527146",
"0.84623736",
"0.84623736",
"0.8436173",
"0.837701",
"0.8366774",
"0.83379626",
"0.8220417",
"0.8185195",
"0.8185195",
"0.8183675",
"0.815889",
"0.8155399",
"0.8091918",
"0.8010826",
... | 0.86500955 | 6 |
Returns an OpenCV image, whether a path or an image is provided. Ensures that most methods can be used by passing the image path OR the image itself. | def cMYb(MNRE):
if ETKF(MNRE):
return MNRE
else:
return XC5k.imread(MNRE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _J4R(pmON):\n return XC5k.imread(pmON)",
"def cMYb(pmON):\n if not Hy7s.path.exists(pmON):\n return None\n else:\n try:\n return hnIv.open(pmON)\n except OSError:\n return None",
"def olNg(QMAG):\n LNo8 = XC5k.imread(str(QMAG))\n LNo8 = oyIN.array(L... | [
"0.7689443",
"0.7189496",
"0.71741265",
"0.7160634",
"0.7149875",
"0.70109254",
"0.6983318",
"0.6904329",
"0.6870933",
"0.6649171",
"0.66420484",
"0.6628831",
"0.6617723",
"0.66020024",
"0.6593205",
"0.6572365",
"0.6562503",
"0.65558183",
"0.6554566",
"0.65514994",
"0.6534313... | 0.8614605 | 0 |
Checks if obj is subclass of a specified class | def b_gB(YEnM, J9Xy):
if issubclass(type(YEnM), J9Xy) and (not type(YEnM) is J9Xy):
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xmng(YEnM, WavV):\n try:\n return issubclass(YEnM, WavV)\n except TypeError:\n return False",
"def b_gB(YEnM, J9Xy):\n return issubclass(type(YEnM), J9Xy)",
"def b_gB(YEnM, J9Xy):\n if type(YEnM) == J9Xy:\n return False\n else:\n return isinstance(YEnM, J9Xy)",
... | [
"0.8529375",
"0.83926624",
"0.8277816",
"0.8233154",
"0.82278836",
"0.82270837",
"0.82220155",
"0.8220288",
"0.82202077",
"0.8211233",
"0.81989115",
"0.81989115",
"0.8195276",
"0.81881124",
"0.8183476",
"0.81644744",
"0.8162588",
"0.81395483",
"0.813833",
"0.8130696",
"0.8116... | 0.8150138 | 17 |
backoff_linear(n) > float Linear backoff implementation. This returns n. See ReconnectingWebSocket for details. | def _GbG(exwG):
return exwG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZNlz(exwG):\n return 1",
"def Wwst(exwG):\n return 2 ** exwG",
"def IxzA(YRbF):\n return 1.5 ** YRbF + tuKI.random()",
"def hEXa(WLLB):\n return 3 ** WLLB",
"def hEXa(YKHO, exwG):\n P8oC = YKHO.expo(exwG)\n HMtG = tuKI.uniform(0, P8oC)\n return HMtG",
"def u31W(YRbF):\n Mkmy =... | [
"0.7948826",
"0.7474806",
"0.6973074",
"0.6837545",
"0.6790091",
"0.6742099",
"0.6726131",
"0.6703247",
"0.6440993",
"0.6394759",
"0.6321443",
"0.6314869",
"0.63010883",
"0.62507284",
"0.6245633",
"0.62149155",
"0.62040013",
"0.60679126",
"0.60467356",
"0.6026058",
"0.6008449... | 0.8860304 | 0 |
__init__(conn, scheduler=None, on_=None) > None Instance initializer; see the class docstring for details. | def FIMM(YKHO, w2B8, IesV=None, KPjy=None, XZKJ=None, P1o4=None, vZtD=None, vadG=Z4RQ):
if IesV is None:
IesV = _8Ct()
YKHO.conn = w2B8
YKHO.scheduler = IesV
YKHO.state = q7SY
YKHO.on_connected = KPjy
YKHO.on_logged_in = XZKJ
YKHO.on_event = P1o4
YKHO.on_disconnecting = vZtD
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, w2B8):\n YKHO._conn = w2B8",
"def FIMM(YKHO, irhR=FluF, dknd=FluF):\n YKHO._on_connect = irhR\n YKHO._on_disconnect = dknd\n IesV = YKHO.scheduler_class()\n assert isinstance(IesV, b6Gq.IScheduler)\n YKHO.scheduler = IesV\n YKHO.connections = []\n YKHO.handlers = {}\n YK... | [
"0.7298889",
"0.72421765",
"0.69493014",
"0.68838483",
"0.68838483",
"0.68645245",
"0.67638814",
"0.67515963",
"0.6651631",
"0.6651631",
"0.66412",
"0.6596664",
"0.65598667",
"0.65236044",
"0.65136176",
"0.648402",
"0.645245",
"0.6437007",
"0.6423243",
"0.6423243",
"0.6420502... | 0.7843736 | 0 |
1hot encodes a tensor | def fKLU(LVAh, jTqs):
if LVAh.dim() < 3:
return oyIN.transpose(oyIN.eye(jTqs, dtype='uint8')[LVAh], (2, 0, 1))
else:
return oyIN.transpose(oyIN.eye(jTqs, dtype='uint8')[LVAh], (0, 3, 1, 2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zGX0(WKvO):\n return oyIN.eye(WKvO.max() + 1)[WKvO]",
"def zGX0(WKvO):\n KLLm = []\n jzdc = oyIN.array([0, 0, 0, 0, 0, 0, 0, 0])\n jzdc[WKvO] = 1\n KLLm.append(jzdc)\n return oyIN.asarray(KLLm).astype('int32')",
"def GpPk(or8S, tpio):\n ycBG = [0] * tpio\n ycBG[or8S] = 1\n return... | [
"0.8397239",
"0.8342454",
"0.82294697",
"0.81629807",
"0.8143967",
"0.81028515",
"0.809962",
"0.8062199",
"0.80533415",
"0.8046785",
"0.8038851",
"0.8029096",
"0.79069096",
"0.7860194",
"0.7850401",
"0.7841131",
"0.7838329",
"0.78013283",
"0.77874726",
"0.7751093",
"0.7746245... | 0.0 | -1 |
1hot encodes a tensor | def rAkz(LVAh, jTqs, begE=ht2j.device('cpu')):
if LVAh.dim() < 3:
return ht2j.transpose(ht2j.transpose(ht2j.eye(jTqs)[LVAh], 0, 1), 0, 2).to(begE)
else:
return ht2j.transpose(ht2j.transpose(ht2j.eye(jTqs)[LVAh], 1, 2), 1, 3).to(begE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zGX0(WKvO):\n return oyIN.eye(WKvO.max() + 1)[WKvO]",
"def zGX0(WKvO):\n KLLm = []\n jzdc = oyIN.array([0, 0, 0, 0, 0, 0, 0, 0])\n jzdc[WKvO] = 1\n KLLm.append(jzdc)\n return oyIN.asarray(KLLm).astype('int32')",
"def GpPk(or8S, tpio):\n ycBG = [0] * tpio\n ycBG[or8S] = 1\n return... | [
"0.8397239",
"0.8342454",
"0.82294697",
"0.81629807",
"0.8143967",
"0.81028515",
"0.809962",
"0.8062199",
"0.80533415",
"0.8046785",
"0.8038851",
"0.8029096",
"0.79069096",
"0.7860194",
"0.7850401",
"0.7841131",
"0.7838329",
"0.78013283",
"0.77874726",
"0.7751093",
"0.7746245... | 0.0 | -1 |
shorthand for transpose on SQTensor | def uPnQ(YKHO):
return kiEa(oyIN.transpose(YKHO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZngM(YKHO):\n return Imh_(YKHO)",
"def l7uB(input, MPlV=None, Ni86=False, mWFP='transpose'):\n if ZylS.is_tensor(input) or ZylS.is_tensor(MPlV) or ZylS.is_tensor(Ni86):\n input = ZylS.transpose(input, MPlV, Ni86, name=mWFP)\n else:\n input = oyIN.transpose(input, MPlV)\n if Ni86... | [
"0.75186205",
"0.7455865",
"0.7436361",
"0.7203649",
"0.71959287",
"0.71526456",
"0.7150752",
"0.714218",
"0.70981634",
"0.70725495",
"0.70256525",
"0.7017722",
"0.6985717",
"0.6976372",
"0.6955364",
"0.6940572",
"0.69294584",
"0.6913279",
"0.69060737",
"0.69056094",
"0.69054... | 0.76331156 | 0 |
Returns a list of principal invariants for the tensor, which are the values of the coefficients of the characteristic polynomial for the matrix | def x5ps(YKHO):
if YKHO.shape == (3, 3):
return oyIN.poly(YKHO)[1:] * oyIN.array([-1, 1, -1])
else:
raise ValueError('Principal invariants is only intended for use with 3x3 SQTensors') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uo1V(E3D9):\n pass",
"def AQnM(SQgp):\n nwrw, aCPI, AGcG, FwC5, jsUS, RW6q = SQgp\n q8SR = qw7D([[nwrw, RW6q, jsUS], [RW6q, aCPI, FwC5], [jsUS, FwC5, AGcG]])\n o3Rq, qKBe = aJJu.eig(q8SR)\n return (o3Rq, qKBe)",
"def Omhe(SppC):\n Z9rn = PFC2(SppC.T)\n sS83, EUkm = MP7n(Z9rn)\n retu... | [
"0.6529053",
"0.63205403",
"0.5881509",
"0.58726394",
"0.5774299",
"0.5764058",
"0.5700488",
"0.564384",
"0.5641955",
"0.5640863",
"0.5608114",
"0.56072515",
"0.5596869",
"0.5586888",
"0.5580503",
"0.55803096",
"0.5577329",
"0.5545744",
"0.5544474",
"0.5537543",
"0.5520525",
... | 0.69837797 | 0 |
Return True if we are a leaf | def loae(YKHO):
return not YKHO.children | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def loae() -> bool:\n return True",
"def loae():\n return False",
"def loae(YKHO):\n return True",
"def jwB3(YKHO) -> bool:\n pass",
"def loae(YKHO):\n return False",
"def loae(YKHO):\n return YKHO._.is_leaf",
"def jwB3(YKHO):\n return False",
"def loae(YKHO):\n return not YKH... | [
"0.90611285",
"0.8987461",
"0.88904643",
"0.8767142",
"0.87476265",
"0.87109834",
"0.8663308",
"0.8598993",
"0.8598993",
"0.8575465",
"0.8575465",
"0.8575465",
"0.8575465",
"0.85561454",
"0.85483444",
"0.84975266",
"0.84884614",
"0.8438908",
"0.8436978",
"0.8435818",
"0.84264... | 0.81616825 | 50 |
Return True if we are the root | def kFcs(YKHO):
return YKHO.parent == None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kFcs(YKHO):\n return YKHO.root is True",
"def kFcs(YKHO):\n return False",
"def kFcs(YKHO):\n return YKHO is YKHO.root",
"def kFcs(YKHO):\n if YKHO.parent == None:\n return True\n else:\n return False",
"def kFcs(YKHO):\n return not YKHO.get_directed_branch_to_parent()",... | [
"0.9228351",
"0.90481675",
"0.89783096",
"0.858302",
"0.8566213",
"0.85232997",
"0.8494507",
"0.8487245",
"0.84808093",
"0.84808093",
"0.84785944",
"0.84409285",
"0.84143907",
"0.840765",
"0.840765",
"0.8405472",
"0.8363465",
"0.8358371",
"0.83552235",
"0.82927907",
"0.829049... | 0.85311264 | 5 |
Walk the tree and find the node with 'key' | def ww5O(YKHO, Q6kx, H5ew):
if Q6kx.has_key(H5ew):
return Q6kx
elif Q6kx.children:
dtUY = Ce1H.bisect_right(Q6kx.keys, H5ew)
XJxn = Q6kx.children[dtUY]
return YKHO._find_key_node(XJxn, H5ew)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yKxK(YKHO, H5ew):\n Q6kx = YKHO.root\n while Q6kx:\n if Q6kx.key == H5ew:\n return Q6kx\n Q6kx = Q6kx.next\n return None",
"def neBz(YKHO, H5ew):\n zAcD = YKHO\n for Npgh in H5ew:\n try:\n zAcD = zAcD.children[Npgh]\n except KeyError:\n ... | [
"0.83569795",
"0.8353685",
"0.83448863",
"0.8197687",
"0.8193299",
"0.81878227",
"0.8125731",
"0.801656",
"0.800654",
"0.7957265",
"0.7946704",
"0.79156184",
"0.7875941",
"0.7869991",
"0.7869991",
"0.78636855",
"0.7810013",
"0.7774881",
"0.77450144",
"0.77318865",
"0.7668768"... | 0.80112803 | 8 |