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 |
|---|---|---|---|---|---|---|
Trim a string to the given length. | def O358(vIwR: str, u54L: int=70) -> str:
return vIwR[:u54L - 1] + '...' if len(vIwR) > u54L else vIwR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G34s(vIwR, u54L):\n return vIwR[0:u54L]",
"def Upkm(mstk, u54L, qJm6=' '):\n vC9B = len(mstk)\n if vC9B < u54L:\n return mstk + qJm6 * (u54L - vC9B)\n elif vC9B > u54L:\n return mstk[:u54L]\n else:\n return mstk",
"def O358(nPrm, u54L, Os4s=False):\n if not Os4s:\n ... | [
"0.74399805",
"0.7373679",
"0.69534737",
"0.68511295",
"0.6816572",
"0.67817426",
"0.67588675",
"0.67552537",
"0.67353755",
"0.67353755",
"0.67353755",
"0.67118084",
"0.67118084",
"0.6683784",
"0.6682637",
"0.66764694",
"0.666504",
"0.66323316",
"0.6614969",
"0.6608113",
"0.6... | 0.7785621 | 0 |
Convert to HTML escaped element. | def FUjE(l5Ny):
return IguF(l5Ny).encode() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YM7z(YKHO):\n raise NotImplementedError",
"def J5QQ(YKHO, MnRD=0):\n return YKHO.to_string(ui=_pOk(), indent=MnRD)",
"def _R2e(YKHO, QMSQ=False):\n _R2e = JrOA.html.tostring(YKHO.element, encoding=YKHO.encoding)\n if QMSQ:\n _R2e = _R2e.decode(YKHO.encoding)\n return _R2e",
"def _RE... | [
"0.6770133",
"0.6650969",
"0.6626263",
"0.6619611",
"0.6612029",
"0.6612029",
"0.6612029",
"0.6612029",
"0.6612029",
"0.6577253",
"0.6570056",
"0.6549556",
"0.6512402",
"0.6505863",
"0.6502814",
"0.6477444",
"0.6435895",
"0.64299333",
"0.64088166",
"0.64073306",
"0.6384674",
... | 0.0 | -1 |
Basic test, assumes offset and limit are given. | def wG_E(YKHO):
vgXP = 10
qoqK = 5
UHFx = len(YKHO.queryset)
omqb = UHFx // qoqK * qoqK
kdvm = 15
zwCF = 5
QePW = YKHO.get_test_request({YKHO.pagination.limit_query_param: qoqK, YKHO.pagination.offset_query_param: vgXP})
NKRf = bel4(YKHO.base_url, YKHO.pagination.limit_query_param, qoqK)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pZtp(YKHO):\n YKHO.request.GET = {'page': 1, 'page_size': 100}\n vgXP, qoqK = YKHO.paginator.get_offset_limit(VNUm(YKHO.request), 500)\n YKHO.assertEqual(vgXP, 0)\n YKHO.assertEqual(qoqK, 100)\n YKHO.request.GET = {'page': 2, 'page_size': 100}\n vgXP, qoqK = YKHO.paginator.get_offset_limit(VN... | [
"0.74779826",
"0.72675115",
"0.7257118",
"0.7207755",
"0.7163483",
"0.707521",
"0.70685107",
"0.70546234",
"0.6998675",
"0.6986333",
"0.69821835",
"0.69690496",
"0.6957322",
"0.69367105",
"0.6906475",
"0.6893747",
"0.67784333",
"0.6710318",
"0.6705764",
"0.6622679",
"0.650241... | 0.72379357 | 3 |
Reserves an existing name with this NameSupply. | def _52s(YKHO, mWFP, a_z2=True):
return spPP.NameSupply_ReserveName(YKHO, mWFP, a_z2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FcNP(YKHO, mWFP: str):\n if not isinstance(mWFP, str):\n raise TypeError(f'The type of scope \"{{name}}\" should be string but it is {type(mWFP)}')\n if mWFP in YKHO.reservations:\n raise ValueError(f'Duplicate use of scope name: \"{mWFP}\"')\n YKHO.reservations.add(mWFP)",
"def dUUk(Y... | [
"0.71485686",
"0.6470312",
"0.58934057",
"0.5841344",
"0.58036405",
"0.575556",
"0.57108355",
"0.56818974",
"0.56725276",
"0.5660738",
"0.564714",
"0.564714",
"0.56042355",
"0.5561163",
"0.5561163",
"0.5561163",
"0.5561163",
"0.5561163",
"0.5561163",
"0.5561163",
"0.5561163",... | 0.7604771 | 0 |
Generates a unique GlobalVar from this supply. | def LRSR(YKHO, mWFP, a_z2=True):
return spPP.GlobalVarSupply_FreshGlobal(YKHO, mWFP, a_z2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dizq(YKHO, mWFP, a_z2=True):\n return spPP.GlobalVarSupply_UniqueGlobalFor(YKHO, mWFP, a_z2)",
"def SRYB(YKHO):\n iSUQ = YKHO.params['var_bind_base'] * epAf.sqrt(len(YKHO.var_collection))\n if tuKI.random() < iSUQ:\n SRYB = tuKI.sample(YKHO.var_collection, 1)[0]\n else:\n SRYB = tuK... | [
"0.7221206",
"0.65257215",
"0.6358964",
"0.6275452",
"0.6126617",
"0.6096306",
"0.5980491",
"0.5978235",
"0.588568",
"0.5837009",
"0.58281887",
"0.5812489",
"0.5811707",
"0.58032733",
"0.5783325",
"0.57627875",
"0.57508475",
"0.5748452",
"0.573482",
"0.5714846",
"0.57132",
... | 0.65672374 | 1 |
Looks up for a GlobalVar with the given name in this supply. If no entry is found , creates one, places it in the cache and returns it. | def dizq(YKHO, mWFP, a_z2=True):
return spPP.GlobalVarSupply_UniqueGlobalFor(YKHO, mWFP, a_z2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IKYn(SRYB, mQYJ, rU28):\n if mQYJ not in wyyA:\n wyyA[mQYJ] = {}\n if SRYB not in wyyA[mQYJ]:\n wyyA[mQYJ][SRYB] = Vauk(SRYB, mQYJ, rU28)\n return wyyA[mQYJ][SRYB]",
"def qo6S(YKHO, mWFP: str):\n return YKHO._cache.get(mWFP, None)",
"def FLAV(YKHO, mWFP):\n sWQe = YKHO\n whi... | [
"0.6975724",
"0.67039394",
"0.66238624",
"0.65043545",
"0.63124865",
"0.6280088",
"0.6235195",
"0.6205869",
"0.618438",
"0.612623",
"0.61011595",
"0.6086385",
"0.60663235",
"0.6055945",
"0.60166436",
"0.60052717",
"0.5988213",
"0.59675515",
"0.5932543",
"0.59076184",
"0.59056... | 0.6130794 | 9 |
This determines which concrete strategy should be used. This is in the Context to eliminat redundant code in the pipline.py file. If this grows too large, possibly replace it with a factory pattern | def sysp(YKHO, q5sG):
FDA8 = None
if q5sG == 'fasta':
FDA8 = Kirc()
if q5sG == 'fastq':
FDA8 = dTkQ()
YKHO.read_strategy = FDA8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OuMq(YKHO, QTBn):\n if YKHO.kind == 'random':\n return YKHO.random_strategy(QTBn)\n elif YKHO.kind == 'informed':\n return YKHO.learned_strategy(QTBn)\n else:\n raise Exception('No valid kind is given')",
"def MCRw():\n OuMq = None\n if vPBo.device == 'cpu':\n OuMq ... | [
"0.6771565",
"0.63098013",
"0.62022144",
"0.61471236",
"0.61440504",
"0.6026032",
"0.5992075",
"0.5992075",
"0.5992075",
"0.5992075",
"0.5955919",
"0.59244806",
"0.59120655",
"0.5869453",
"0.5857911",
"0.58529866",
"0.5802305",
"0.5776507",
"0.57330686",
"0.5702595",
"0.57025... | 0.646183 | 1 |
Takes in a list and returns a new copy of the list, removing any duplicates | def dDv2(list):
S06t = []
for ZfUD in list:
if not ZfUD in S06t:
S06t.append(ZfUD)
return S06t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uY6T(yv6U):\n return list(set([YRbF for YRbF in yv6U]))",
"def dDv2(qFa0):\n return list(set(qFa0))",
"def cXrt(e5Mv):\n bDFL = set(e5Mv)\n SIKZ = list(bDFL)\n return SIKZ",
"def dDv2(qnba):\n S06t = []\n for U6D_ in qnba:\n if U6D_ not in S06t:\n S06t.append(U6D_)\... | [
"0.85656756",
"0.85283583",
"0.8492097",
"0.8482106",
"0.84798974",
"0.84658206",
"0.8443822",
"0.8424962",
"0.83963317",
"0.8292194",
"0.827906",
"0.82013345",
"0.8042914",
"0.8034445",
"0.80267483",
"0.7971192",
"0.79672986",
"0.7946837",
"0.79465306",
"0.7943654",
"0.79429... | 0.8582597 | 0 |
Plot the x and y variables against each other, where the variables are columns in a pandas dataframe | def d8hr(jQ3Z, TJDy, WqK5, leAC):
LZpg, aNZO = QrM1.subplots()
aNZO.plot_date(jQ3Z[TJDy], jQ3Z[WqK5], marker='', linestyle='-', label=WqK5)
LZpg.autofmt_xdate()
QrM1.title(leAC)
QrM1.show() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X2Gf(jQ3Z):\n RxD4 = jQ3Z.columns.get_values()\n RxD4 = RxD4.tolist()\n for YRbF in range(0, jQ3Z.shape[1]):\n print(jQ3Z[jQ3Z.columns[YRbF]])\n NRu9 = jQ3Z[jQ3Z.columns[YRbF]]\n QrM1.grid()\n QrM1.figure()\n NRu9.plot()\n QrM1.title(RxD4[YRbF])\n QrM1.show... | [
"0.726454",
"0.72103137",
"0.6844838",
"0.6805217",
"0.6791434",
"0.67656016",
"0.66843003",
"0.6637232",
"0.6564062",
"0.6503719",
"0.6491703",
"0.6468095",
"0.6448192",
"0.6445465",
"0.64393157",
"0.6393282",
"0.6381887",
"0.6362058",
"0.63416606",
"0.63261485",
"0.6322434"... | 0.6484981 | 11 |
Setup httpretty; create ARI client. | def _sCb(QePW, KyT5):
GcL4.enable()
QePW.instance.setUp(KyT5)
yield 123
QePW.instance.tearDown(KyT5)
GcL4.disable()
GcL4.reset() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def connect(NKRf, NtEF, jTXt):\n lpha = uRlK.parse.urlsplit(NKRf)\n pu1N = DQ7C.http_client.AsyncHttpClient()\n pu1N.set_basic_auth(lpha.hostname, NtEF, jTXt)\n PHiS = qYGT()\n await PHiS.connect(NKRf, pu1N)\n return PHiS",
"def FCbF(YKHO):\n YKHO.myclient = IrId()",
"def FCbF(YKHO):... | [
"0.707304",
"0.61576146",
"0.61576146",
"0.6108154",
"0.6049375",
"0.6003484",
"0.5997507",
"0.5997507",
"0.5997507",
"0.5931092",
"0.5881779",
"0.58559847",
"0.57764053",
"0.5759777",
"0.5753771",
"0.57532907",
"0.5746492",
"0.5737432",
"0.5737432",
"0.5737432",
"0.5719853",... | 0.61894166 | 1 |
Gets the path to a file relative to the experiment root. | def pmON(YKHO, IznC: Optional[str]=None) -> str:
return Hy7s.path.join(YKHO.root, IznC) if IznC else YKHO.root | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OyQC(nUeQ):\n BJCG = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n EY3W = Hy7s.path.join(BJCG, nUeQ)\n return EY3W",
"def _91M(Ux0P: str):\n return str(GkAb(xAKo).parent / GkAb(Ux0P))",
"def qaEx(YKHO) -> str:\n return tq_1.getabsfile(YKHO.root.obj)",
"def E0XI(Ux0P):\n return '{}/{}'.fo... | [
"0.78927517",
"0.78314674",
"0.77644265",
"0.7715899",
"0.7642388",
"0.7642388",
"0.763104",
"0.76127553",
"0.760169",
"0.75847816",
"0.7548743",
"0.753699",
"0.7506379",
"0.7485139",
"0.7482217",
"0.7477607",
"0.7450359",
"0.7449877",
"0.7448444",
"0.74437416",
"0.7430414",
... | 0.0 | -1 |
The basename of an Experiment directory. This is useful in format strings. | def aPr_(YKHO) -> str:
return Hy7s.path.basename(Hy7s.path.realpath(YKHO.root)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aPr_(YKHO):\n return YKHO._getbyspec('basename')[0]",
"def sYT0(YKHO):\n return ''",
"def aPr_(YKHO):\n return aPr_(YKHO.path)",
"def sYT0(YKHO):\n if not YKHO.components:\n raise xxyF('cannot get basename of empty path', YKHO.pos)\n XVAW = YKHO.components[-1]\n try:\n BWX... | [
"0.7637599",
"0.75126326",
"0.7503836",
"0.74929535",
"0.74334407",
"0.74334407",
"0.7358601",
"0.7345677",
"0.7334742",
"0.7309566",
"0.72462136",
"0.7232804",
"0.72183555",
"0.71948427",
"0.7173997",
"0.71700495",
"0.7156756",
"0.71564955",
"0.71368563",
"0.71268696",
"0.71... | 0.7463866 | 4 |
Save a configuration file in YAML format. | def VUF1(YKHO, IznC: str, YEnM: SimpleObject):
with YKHO.open(IznC, 'w') as eHNT:
eJb6.safe_dump(YEnM, eHNT, indent=2, sort_keys=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO):\n with open(YKHO.config_file, 'w') as Tfxt:\n eJb6.dump(YKHO, Tfxt)",
"def LHWC(GPtr, gIsw):\n with open(gIsw, 'w') as eHNT:\n eHNT.write(eJb6.dump(GPtr, default_flow_style=False))",
"def xkzz(YKHO):\n with open(PSrQ.filename, 'w') as eHNT:\n eJb6.dump(YKHO.config,... | [
"0.8566082",
"0.8324309",
"0.83236045",
"0.82515466",
"0.820182",
"0.81429917",
"0.81088966",
"0.8049678",
"0.80450696",
"0.80198544",
"0.77250576",
"0.7717825",
"0.7663365",
"0.7623766",
"0.7528292",
"0.7517237",
"0.75076264",
"0.74828005",
"0.7416117",
"0.74128073",
"0.7409... | 0.0 | -1 |
Save a list of objects to a file in JSONL format. | def mJWX(YKHO, IznC: str, p9NO: List[SimpleObject]):
with YKHO.open(IznC, 'w') as eHNT:
TITO(eHNT, p9NO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AHFl(Emd4, Nkld):\n vC9B = []\n mWFP = Emd4.__name__\n with open('{}.json'.format(mWFP), 'w', encoding='utf-8') as eHNT:\n if Nkld is not None:\n for YRbF in Nkld:\n YRbF = YRbF.to_dictionary()\n vC9B.append(YRbF)\n eHNT.write(Emd4.to_json_string(... | [
"0.85752964",
"0.8530362",
"0.8530277",
"0.8526565",
"0.84884346",
"0.8478586",
"0.84760296",
"0.8458097",
"0.84486157",
"0.8447448",
"0.84431726",
"0.84362227",
"0.8427161",
"0.8425915",
"0.8424407",
"0.8417269",
"0.8402854",
"0.83998483",
"0.8399575",
"0.8398244",
"0.839439... | 0.8175181 | 44 |
Returns indices of array where the sign of elements change near the minimum value of the array | def dDhh(p8Jz, kj9G=False):
o2AX, XNc1 = (oyIN.argmin(p8Jz), oyIN.amin(p8Jz))
hQHm, jlSq = (p8Jz[:o2AX], p8Jz[o2AX:])
MtCQ = SFji(hQHm)
cyUO = MtCQ[-1]
MtCQ = SFji(jlSq)
ouXB = len(hQHm) + MtCQ[0]
return (cyUO, ouXB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xvIg(qw7D, JCoA, kpLf):\n ZUbE = oyIN.linspace(JCoA, kpLf, num=50, endpoint=True)\n return [oyIN.abs(qw7D - BWXx).argmin() for BWXx in ZUbE]",
"def hDX3(ezWE, wEf2):\n if wEf2 < min(ezWE):\n return 0\n return oyIN.abs(ezWE - wEf2).argmin()",
"def mp07(qw7D, BWXx):\n or8S = oyIN.abs(qw... | [
"0.7247967",
"0.7214391",
"0.71170545",
"0.71011263",
"0.7036091",
"0.6966172",
"0.6951756",
"0.6885773",
"0.6869656",
"0.6868168",
"0.6866403",
"0.6836515",
"0.68285656",
"0.68285656",
"0.68285656",
"0.68285656",
"0.67801666",
"0.6774921",
"0.6767953",
"0.67632926",
"0.67485... | 0.0 | -1 |
Swaps key,value pairs in dict. Must be unique values to work | def NZfs(dslb):
return {LVAh: WKvO for WKvO, LVAh in dslb.items()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QwQ5(Csk6):\n yvT9 = {}\n for H5ew, BWXx in Csk6.items():\n if BWXx not in yvT9:\n yvT9[BWXx] = []\n yvT9[BWXx].append(H5ew)\n return yvT9",
"def lM4W():\n Csk6 = {'one': 1, 'two': 2}\n assert {Ty9i: G1Hx for G1Hx, Ty9i in Csk6.items()} == {1: 'one', 2: 'two'}",
"def... | [
"0.679977",
"0.66405684",
"0.6618568",
"0.65928394",
"0.6571181",
"0.6559169",
"0.6536212",
"0.6528807",
"0.6476199",
"0.6473124",
"0.6413268",
"0.6391492",
"0.6330015",
"0.6249914",
"0.62182444",
"0.6197989",
"0.61381936",
"0.6114043",
"0.6078351",
"0.6023519",
"0.5993014",
... | 0.7366696 | 0 |
Given a point cloud with more than one distancetofeature prediction per each of the 3D points, compute a single distancetofeature prediction per each of the 3D points. | def qrrl(KR0Q: int, LSTB: List[np.array], glEh: List[np.array], Xabu: List[np.array], ZHSi='min', ruHj=None) -> AzJI[oyIN.array, GySg]:
HD6F = oyIN.ones(KR0Q) * oyIN.inf
utMk = oRi_(list)
OxJJ = zip(LSTB, glEh, Xabu)
for TaUL, LYtW, YAxt in PRqg(OxJJ):
for YRbF, or8S in enumerate(LYtW):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jm84(wncu, zfHT, LT6S, okEi=None):\n Ep8u = wncu.get_shape()[0].value\n VO1p = wncu.get_shape()[1].value\n roD5 = {}\n with ZylS.variable_scope('transform_net1') as Sa_m:\n SZFh = eNE8(wncu, LT6S, okEi, K=3)\n RNr4 = ZylS.matmul(wncu, SZFh)\n d6hw = ZylS.expand_dims(RNr4, -1)\n Zxma... | [
"0.58505434",
"0.58238655",
"0.58238655",
"0.5823026",
"0.5822148",
"0.58208466",
"0.5775623",
"0.57027036",
"0.5697732",
"0.5697732",
"0.5697732",
"0.5689724",
"0.56662005",
"0.55921006",
"0.55455714",
"0.5486661",
"0.54486895",
"0.5444658",
"0.5442865",
"0.5442598",
"0.5442... | 0.0 | -1 |
Encodes a list of BlockArgs to a list of strings. | def kLcZ(SIjs: typing.List[BlockArgs]) -> laHg.List[str]:
xLsr = []
for XkN1 in SIjs:
xLsr.append(saao._encode_block_string(XkN1))
return xLsr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLcZ(YKHO, SIjs):\n xLsr = []\n for XkN1 in SIjs:\n xLsr.append(YKHO._encode_block_string(XkN1))\n return xLsr",
"def kLcZ(SIjs):\n xLsr = []\n for XkN1 in SIjs:\n xLsr.append(saao._encode_block_string(XkN1))\n return xLsr",
"def kLcZ(SIjs):\n xLsr = []\n for XkN1 in S... | [
"0.82593715",
"0.81154203",
"0.803477",
"0.803477",
"0.803477",
"0.6561115",
"0.6367097",
"0.61696535",
"0.6115049",
"0.6018416",
"0.6012047",
"0.59873956",
"0.59603065",
"0.59207237",
"0.59207237",
"0.59207237",
"0.584254",
"0.5818998",
"0.5779375",
"0.5774603",
"0.572951",
... | 0.8329721 | 0 |
Decorator for function and methods, what receiving one parameter DTO. | def tyfE(m2Zb):
aadv = tq_1.signature(m2Zb)
assert eq4Q(aadv.parameters), f'Callable, decorated by validate_with_dto, must have only 1 parameter!'
nHO0 = SbgF(aadv.parameters)
assert issubclass(nHO0.annotation, qi0g), f'Argument of {m2Zb} must be a DTO! Argument {nHO0.name} is {nHO0.annotation}'
cog... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fCff(JfyU: ExtractorFunction) -> ogO4:\n JfyU.is_extractor = True\n JfyU.dependencies = SMAd or []\n JfyU.provides = nY2i or []\n\n @xBlr.wraps(JfyU)\n def YNSV(YKHO, U5Jc: CCDATA, pan_: Dict) -> None:\n JfyU(YKHO, U5Jc, pan_)\n return YNSV",
"def Jmf6(iSjc):\n\n @xBlr.wraps(iSjc)... | [
"0.65024775",
"0.6341656",
"0.6251076",
"0.62230694",
"0.6196913",
"0.6175151",
"0.61716354",
"0.6096365",
"0.6045122",
"0.60390306",
"0.60340077",
"0.6028079",
"0.6012142",
"0.6005801",
"0.5997308",
"0.59963393",
"0.5989539",
"0.5977723",
"0.5947736",
"0.5944685",
"0.5934871... | 0.73781 | 0 |
Moves field of view to the initial position and updates frame and visualisation | def GsIJ(YKHO):
YKHO.bound_reached = False
YKHO.center_position = oyIN.array((YKHO.field_size // 2, YKHO.field_size // 2))
YKHO.point1 = oyIN.array((0, 0))
YKHO.point2 = oyIN.array((YKHO.field_size - 1, YKHO.field_size - 1))
YKHO._update_frame()
YKHO._update_visualisation() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rfEX(YKHO):\n YKHO.view_position = cmDb(0.0, 0.0)\n YKHO.view_zoom = 1.0\n YKHO._has_view_changed = True",
"def GjA7(YKHO):\n YKHO.frame = 0\n YKHO.setSliceStateOn()\n YKHO.setFrame()\n YKHO.setFrameToBox()\n YKHO.setFrameToSlider()",
"def Q70f(YKHO):\n YKHO.x1 = 0\n YKHO.x2 =... | [
"0.7205715",
"0.6973957",
"0.6915104",
"0.68639225",
"0.68349177",
"0.68349177",
"0.67221105",
"0.6681088",
"0.667526",
"0.6650408",
"0.6637793",
"0.6622807",
"0.6596708",
"0.6587833",
"0.65148425",
"0.64827883",
"0.6462769",
"0.6417069",
"0.639178",
"0.6382171",
"0.6348752",... | 0.7677265 | 0 |
Returns the shape of the matrix. | def kbUw(YKHO):
return YKHO._shape | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bjOx(SppC):\n return RfQ_(SppC, [])",
"def w78_(SppC):\n return SppC.shape",
"def w78_(SppC):\n return SppC.shape",
"def w78_(SppC):\n return SppC.shape",
"def bjOx(SppC):\n ROpF = []\n if type(SppC) != list:\n pass\n else:\n ROpF.append(len(SppC))\n ROpF += bj... | [
"0.8223781",
"0.8149982",
"0.8149982",
"0.8149982",
"0.79777235",
"0.79616207",
"0.7745359",
"0.7604904",
"0.75910217",
"0.75754255",
"0.75701934",
"0.75294936",
"0.74666476",
"0.74527836",
"0.739005",
"0.73531497",
"0.7349415",
"0.7349415",
"0.7344557",
"0.7319955",
"0.73123... | 0.7135232 | 35 |
Returns the current square area. | def f0tD(YKHO):
return YKHO.__size ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0tD(YKHO):\n return YKHO._Square__size ** 2",
"def f0tD(YKHO):\n return YKHO._Square__size ** 2",
"def f0tD(YKHO):\n return YKHO.__width * YKHO.__height",
"def f0tD(YKHO):\n return YKHO.h * YKHO.w",
"def f0tD(YKHO):\n return YKHO.__width * YKHO.__height",
"def f0tD(YKHO):\n return ... | [
"0.8474039",
"0.837649",
"0.8294285",
"0.8292878",
"0.8291674",
"0.82750005",
"0.82750005",
"0.82750005",
"0.8258602",
"0.8253993",
"0.8253993",
"0.82344455",
"0.82276803",
"0.82276803",
"0.82224894",
"0.82224894",
"0.82224894",
"0.82224894",
"0.8207175",
"0.8207175",
"0.8158... | 0.785998 | 82 |
Flattened size of the feature maps from the last layer. Returns int Flattened size of the feature maps from the last layer | def ojmu(YKHO):
return 2048 * 1 * 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lriW(YKHO, Csk6):\n return Csk6 ** 2 + Csk6",
"def BrRt(WKvO):\n zNig = WKvO.size()[1:]\n HhVR = 1\n for KCHu in zNig:\n HhVR *= KCHu\n return HhVR",
"def SzcO(YKHO) -> int:\n return YKHO._specs.continuous_size + sum(YKHO._specs.discrete_branches)",
"def n_AG(YKHO, WKvO):\n zN... | [
"0.6696198",
"0.65922093",
"0.6579478",
"0.65400904",
"0.65134436",
"0.64973015",
"0.64973015",
"0.6496865",
"0.6489628",
"0.6458241",
"0.64526236",
"0.6446163",
"0.63906026",
"0.6331408",
"0.63178825",
"0.6288108",
"0.6285959",
"0.6265102",
"0.6265102",
"0.62603515",
"0.6244... | 0.66927475 | 1 |
Computes the angular value, in radians, between the 'main Direction' of this positioning system and that of positioning system Other. The result is a value between 0 and Pi. | def CEWs(YKHO, *qIxc):
return leuP.Geom_AxisPlacement_Angle(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XSoh(YKHO):\n FOSW, mghH = YKHO.motion.as_polar()\n return mghH",
"def VIEf(YKHO):\n bLm4 = YKHO.get_angles(radians=True)\n j3RY = 2 * oyIN.pi - sum(bLm4.values())\n return j3RY",
"def YylR(YKHO):\n LFlW, _tIi = YKHO.wheels\n oeNL = YKHO.position()\n WKvO, LVAh = _tIi\n nJ9F, nxy... | [
"0.6816319",
"0.68080235",
"0.6676145",
"0.66707283",
"0.6633782",
"0.65503156",
"0.654503",
"0.6529803",
"0.65105504",
"0.65078354",
"0.64656717",
"0.6445547",
"0.64440006",
"0.64361817",
"0.6426478",
"0.6426478",
"0.6394453",
"0.63732094",
"0.63694793",
"0.6344194",
"0.6328... | 0.0 | -1 |
Returns the main axis of the axis placement. For an 'Axis2placement' it is the main axis (Location, Direction ). For an 'Axis1Placement' this method returns a copy of . | def UznS(YKHO, *qIxc):
return leuP.Geom_AxisPlacement_Axis(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jDK_(YKHO) -> UznS:\n if len(YKHO.axes) != 1:\n _ye8 = f'Calling axis is only valid for one axis. There are {len(YKHO.axes)} axes.'\n raise ValueError(_ye8)\n return YKHO.axes[0]",
"def YpTk(YKHO):\n return leuP.Geom_AxisPlacement_GetHandle(YKHO)",
"def YpTk(YKHO):\n return leuP.G... | [
"0.67507726",
"0.6721652",
"0.6633358",
"0.6398528",
"0.6392018",
"0.6392018",
"0.6303329",
"0.6261241",
"0.62420607",
"0.62406844",
"0.6202034",
"0.61879027",
"0.61492",
"0.6103387",
"0.6063154",
"0.6055146",
"0.60391396",
"0.60389954",
"0.60011125",
"0.5977548",
"0.59624696... | 0.71518207 | 0 |
Returns the Location point (origin) of the axis placement. | def _JMH(YKHO, *qIxc):
return leuP.Geom_AxisPlacement_Location(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hLRM(YKHO) -> PvyL:\n return PvyL(YKHO.x, YKHO.y)",
"def inrG(YKHO):\n return YKHO.origin_[0]",
"def qy9g(YKHO) -> str:\n return qe4Y.get(YKHO, 'x_axis_location')",
"def qy9g(YKHO) -> str:\n return qe4Y.get(YKHO, 'x_axis_location')",
"def qy9g(YKHO) -> str:\n return qe4Y.get(YKHO, 'x_axi... | [
"0.7300109",
"0.72014046",
"0.7181935",
"0.7181935",
"0.7181935",
"0.71387225",
"0.70627177",
"0.70508075",
"0.70210814",
"0.70051837",
"0.69922054",
"0.6962382",
"0.69457406",
"0.69268256",
"0.6799225",
"0.6782564",
"0.6762617",
"0.6674857",
"0.66707015",
"0.66643643",
"0.66... | 0.7577514 | 0 |
Returns true if the curve is closed. Some curves such as circle are always closed, others such as line are never closed (by definition). Some Curves such as OffsetCurve can be closed or not. These curves are considered as closed if the distance between the first point and the last point of the curve is lower or equal t... | def jXkb(YKHO, *qIxc):
return leuP.Geom_Curve_IsClosed(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jXkb(xzMX):\n if xzMX is None:\n return False\n if xzMX.GetCacheParent() is not None:\n return xzMX.GetCacheParent().IsClosed()\n else:\n return xzMX.IsClosed()\n return xzMX.IsClosed()",
"def SEEh(YKHO) -> bool:\n if len(YKHO._vertices) > 2:\n return YKHO._vertices... | [
"0.7023101",
"0.699243",
"0.6941214",
"0.690388",
"0.6876912",
"0.68580025",
"0.6695876",
"0.66669065",
"0.6480603",
"0.6440234",
"0.6383323",
"0.6382432",
"0.63812727",
"0.6343828",
"0.63175166",
"0.631423",
"0.6279002",
"0.62767476",
"0.6233146",
"0.6204793",
"0.6190069",
... | 0.7851487 | 0 |
Returns true if the degree of continuity of this curve is at least N. Exceptions Standard_RangeError if N is less than 0. | def h7AB(YKHO, *qIxc):
return leuP.Geom_Curve_IsCN(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def raoy(WKvO, exwG=2):\n return oyIN.prod(WKvO) < 0.75 or oyIN.sum(WKvO) > 15 * exwG / 2",
"def Akfo(exwG: int) -> bool:\n assert type(exwG) is int, 'Argument must be an integer'\n return sum(Llmz(exwG)) < 2 * exwG",
"def fB78(YKHO, AU8u):\n exwG = len(AU8u)\n for BgMJ in YKHO.ineqs:\n i... | [
"0.6044948",
"0.6010677",
"0.5988605",
"0.5883515",
"0.58260286",
"0.58141214",
"0.57856",
"0.576397",
"0.5640861",
"0.5633582",
"0.5627986",
"0.56200016",
"0.56190836",
"0.5592933",
"0.5590752",
"0.55758333",
"0.5575474",
"0.5569994",
"0.5569327",
"0.5551026",
"0.5551026",
... | 0.5413102 | 38 |
Computes the U isoparametric curve. | def HYmE(YKHO, *qIxc):
return leuP.Geom_Surface_UIso(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h9D1(YKHO, P6bq):\n raise NotImplementedError",
"def aOkw(Y8eF, aMgO, gyoy: int=1) -> float:\n iQin = nMvt.sum(nMvt.abs(Y8eF * aMgO), axis=-1)\n b65I = nMvt.sum(Y8eF, -1) + nMvt.sum(aMgO, -1) - iQin\n RjuK = (iQin + gyoy) / (b65I + gyoy)\n return RjuK",
"def P6bq(WKvO, LVAh):\n return oyI... | [
"0.66620237",
"0.662324",
"0.64979154",
"0.6489228",
"0.6489228",
"0.6362417",
"0.6323705",
"0.6306252",
"0.63019866",
"0.6295079",
"0.61993957",
"0.6195384",
"0.6145354",
"0.6141822",
"0.61089617",
"0.60895336",
"0.6082532",
"0.6059889",
"0.6059772",
"0.605794",
"0.60481673"... | 0.0 | -1 |
Returns the order of continuity of the surface in the U parametric direction. Raised if N < 0. | def MNPU(YKHO, *qIxc):
return leuP.Geom_Surface_IsCNu(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def spyh(ywwl):\n if ywwl == 1:\n WKvO = 0\n yzQ0 = 2\n else:\n exwG = ywwl - 1\n Nq1b = XTiz.zeros((ywwl, 2))\n G1Hx = 2 * (1 + XTiz.arange(XTiz.floor(exwG / 2)))\n Nq1b[::2, 0] = 2 / XTiz.hstack((1, 1 - G1Hx * G1Hx))\n Nq1b[1, 1] = -exwG\n cAlv = XTiz... | [
"0.58637536",
"0.57598776",
"0.5560268",
"0.5512684",
"0.5502282",
"0.54887664",
"0.54434305",
"0.53591126",
"0.53270173",
"0.5296897",
"0.52781963",
"0.5267267",
"0.52560586",
"0.52524865",
"0.5205187",
"0.518092",
"0.51737183",
"0.51264507",
"0.5125261",
"0.51237243",
"0.51... | 0.0 | -1 |
Returns the coordinates X, Y and Z of this vector. | def mb3R(YKHO, *qIxc):
return leuP.Geom_Vector_Coord(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DvTz(YKHO):\n return (YKHO.x, YKHO.y, YKHO.z)",
"def UqpO(YKHO):\n return (YKHO.x(), YKHO.y(), YKHO.z())",
"def DvTz(YKHO):\n return (YKHO.x, YKHO.y, YKHO.z)",
"def jNOo(YKHO):\n return qw7D([YKHO.x, YKHO.y, YKHO.z])",
"def qKHF(YKHO):\n if YKHO.z is None:\n return [YKHO.x, YKHO.y... | [
"0.8441166",
"0.8292077",
"0.82894075",
"0.81197613",
"0.7867538",
"0.7830498",
"0.7803832",
"0.7773584",
"0.76911753",
"0.76695377",
"0.76145273",
"0.7577987",
"0.756538",
"0.7563808",
"0.75583893",
"0.7527235",
"0.7482409",
"0.74659014",
"0.7464873",
"0.7356576",
"0.7341817... | 0.73095864 | 22 |
Returns the Magnitude of . | def wjKu(YKHO, *qIxc):
return leuP.Geom_Vector_Magnitude(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n return YKHO.sqrmagnitude() ** 0.5",
"def YXbZ(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2 + YKHO.z ** 2 + YKHO.w ** 2)",
"def YXbZ(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2 + YKHO.z ** 2)",
"def YXbZ(YKHO):\n E2V2 = 0\n for BWXx in YKHO.coordinates:\n ... | [
"0.7895574",
"0.75969154",
"0.7552207",
"0.75327224",
"0.75039196",
"0.7458552",
"0.74561316",
"0.74293363",
"0.741087",
"0.7384927",
"0.73843753",
"0.73777455",
"0.7368941",
"0.73482627",
"0.7347236",
"0.7344785",
"0.7344785",
"0.7344431",
"0.73246264",
"0.7299554",
"0.72806... | 0.767517 | 1 |
Computes the scalar product of this vector and vector Other. | def i9da(YKHO, *qIxc):
return leuP.Geom_Vector_Dot(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TTKn(YKHO, Elif):\n return YKHO.x * Elif.x + YKHO.y * Elif.y + YKHO.z * Elif.z",
"def TTKn(YKHO, Elif):\n return (YKHO.p2 - YKHO.p1).scalarProduct(Elif.p2 - Elif.p1)",
"def QQQg(YKHO, Elif):\n V6IE = YKHO.parent()\n e9FF = V6IE(Elif)\n return V6IE._apply_multi_module_morphism(YKHO, e9FF, V6I... | [
"0.8169222",
"0.80048925",
"0.7886887",
"0.7843916",
"0.77860856",
"0.7750403",
"0.7749182",
"0.7715301",
"0.7687732",
"0.76077235",
"0.7593182",
"0.75772226",
"0.7526194",
"0.7511427",
"0.7511427",
"0.7506096",
"0.74861634",
"0.74468213",
"0.7434084",
"0.7420444",
"0.7382259... | 0.0 | -1 |
Returns the 'XDirection'. This is a unit vector. | def Vafo(YKHO, *qIxc):
return leuP.Geom_Axis2Placement_XDirection(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jr4n() -> float:\n pass",
"def gKdI(YKHO):\n return YKHO.vector.getX()",
"def Aco_(YKHO):\n return YKHO.__pos_x",
"def WKvO(YKHO) -> aM69.Axis:\n return YKHO._instance.x",
"def WKvO(YKHO) -> aM69.Axis:\n return YKHO._instance.x",
"def WKvO(YKHO) -> aM69.Axis:\n return YKHO._instance... | [
"0.7797631",
"0.7612648",
"0.7240075",
"0.71925914",
"0.71925914",
"0.71925914",
"0.71663874",
"0.7135967",
"0.7131695",
"0.7131695",
"0.71231914",
"0.70949227",
"0.7055593",
"0.6994168",
"0.69941235",
"0.69647676",
"0.6945658",
"0.6944591",
"0.6933929",
"0.6911499",
"0.68861... | 0.7014803 | 13 |
Returns the 'YDirection'. This is a unit vector. | def RxE9(YKHO, *qIxc):
return leuP.Geom_Axis2Placement_YDirection(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EIXi() -> float:\n pass",
"def cO06(YKHO):\n return YKHO.vector.getY()",
"def QEd2(YKHO, *qIxc):\n return leuP.Geom_Direction_SetY(YKHO, *qIxc)",
"def H4dG(YKHO):\n return GYhQ.b2Rot_GetYAxis(YKHO)",
"def LVAh(YKHO) -> aM69.Axis:\n return YKHO._instance.y",
"def LVAh(YKHO) -> aM69.Axis... | [
"0.80231065",
"0.7422213",
"0.7355358",
"0.73508716",
"0.7298347",
"0.7298347",
"0.7246108",
"0.7210511",
"0.7207643",
"0.7179815",
"0.7172949",
"0.71486366",
"0.71263456",
"0.71127385",
"0.7093918",
"0.7093918",
"0.7087582",
"0.70782924",
"0.7076711",
"0.70701724",
"0.705536... | 0.7879121 | 1 |
Returns a transient copy of P. | def FIMM(YKHO, *qIxc):
leuP.Geom_CartesianPoint_swiginit(YKHO, leuP.new_Geom_CartesianPoint(*qIxc)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GNS8(YKHO):\n return jth9.deepcopy(YKHO.p)",
"def jth9(YKHO):\n return YKHO.__class__(YKHO.data.copy(), YKHO.P)",
"def jth9(YKHO, **c_sp):\n Aofo = YKHO.new(YKHO.__class__, **c_sp)\n return Aofo.load(offset=0, source=kT1P.string(YKHO.serialize())) if YKHO.initializedQ() else Aofo",
"def FzJk(... | [
"0.6809784",
"0.67216086",
"0.6394969",
"0.63592017",
"0.63592017",
"0.61664283",
"0.6155626",
"0.60936415",
"0.6052933",
"0.6039304",
"0.6035017",
"0.6017497",
"0.59795684",
"0.5977263",
"0.59719974",
"0.59704536",
"0.5927275",
"0.59233934",
"0.59197617",
"0.5902121",
"0.590... | 0.0 | -1 |
Returns the location point of the local coordinate system of the surface. | def _JMH(YKHO, *qIxc):
return leuP.Geom_ElementarySurface_Location(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a2Or(YKHO):\n Jw7X = YKHO.displacement[0]\n eUWA = YKHO.displacement[1]\n A4Ls = (YKHO.get_width() / 2 + Jw7X, YKHO.get_height() / 2 + eUWA)\n return A4Ls",
"def _JMH(YKHO, *qIxc):\n return leuP.Geom_SurfaceOfRevolution_Location(YKHO, *qIxc)",
"def xvDN(YKHO):\n return LBWB.point_on_surfa... | [
"0.74237454",
"0.7263971",
"0.7171098",
"0.7158316",
"0.687853",
"0.6743857",
"0.66218305",
"0.6612351",
"0.6602204",
"0.6569215",
"0.656796",
"0.6557662",
"0.6555945",
"0.65407443",
"0.6519667",
"0.649814",
"0.6496998",
"0.6487124",
"0.646906",
"0.645759",
"0.64323705",
"0... | 0.7701175 | 0 |
Returns the positioning axis of this line; this is also its local coordinate system. | def DhiK(YKHO, *qIxc):
return leuP.Geom_Line_Position(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jDK_(YKHO):\n return YKHO._axis",
"def jDK_(YKHO):\n return YKHO._axis",
"def dQgj(YKHO):\n return YKHO.get_prop('DT_BaseEntity', 'm_vecOrigin')",
"def dQgj(YKHO):\n return float(YKHO.get('positionerGetPosition', (YKHO.axis_number, None))[0].value) / 1000",
"def TwAD(YKHO):\n return Ab1w... | [
"0.72326225",
"0.72326225",
"0.67875004",
"0.6765074",
"0.66998386",
"0.6699361",
"0.6663231",
"0.66355485",
"0.6603028",
"0.6599206",
"0.6563001",
"0.65559053",
"0.6523445",
"0.64907724",
"0.6489129",
"0.6483519",
"0.64798194",
"0.6473649",
"0.6468033",
"0.6444504",
"0.64413... | 0.61928827 | 87 |
Returns the referenced curve of the surface. For a surface of revolution it is the revolution curve, for a surface of linear extrusion it is the extruded curve. | def w4ff(YKHO, *qIxc):
return leuP.Geom_SweptSurface_BasisCurve(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RiEY(YKHO, *qIxc):\n return iLrT.BRepAdaptor_Curve_CurveOnSurface(YKHO, *qIxc)",
"def Y3aD(YKHO):\n return None if YKHO._curveRef is None else YKHO._curveRef()",
"def AdZ9(YKHO):\n return YKHO._roi.reference",
"def AdZ9(YKHO):\n return YKHO._curve",
"def EBB9(YKHO) -> ApHX:\n ...",
"de... | [
"0.70647407",
"0.70112246",
"0.67641133",
"0.6694659",
"0.66579735",
"0.6525624",
"0.64667404",
"0.64667404",
"0.6405307",
"0.61758965",
"0.61758965",
"0.61375767",
"0.6132342",
"0.6016357",
"0.6005689",
"0.5994216",
"0.59685284",
"0.5847776",
"0.58278054",
"0.57908773",
"0.5... | 0.5428506 | 35 |
Computes the product of the vector by a scalar. A new vector is returned. | def t7oA(YKHO, *qIxc):
return leuP.Geom_VectorWithMagnitude_Multiplied(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_tF(YKHO, hAEw: Number) -> lNLu:\n return lNLu(YKHO._x * hAEw, YKHO._y * hAEw)",
"def cG_I(iArr, hAEw):\n return [iArr[YRbF] * hAEw for YRbF in range(len(iArr))]",
"def ywW_(hAEw, iArr):\n UDvL = []\n for YRbF, Ty9i in enumerate(iArr):\n UDvL.append(hAEw * iArr[YRbF])\n return UDvL",... | [
"0.7846494",
"0.7764933",
"0.77622455",
"0.7721456",
"0.7691663",
"0.76860404",
"0.7651989",
"0.76390994",
"0.7635151",
"0.7630859",
"0.7511766",
"0.7371405",
"0.7351213",
"0.7337051",
"0.7336069",
"0.7315392",
"0.73094535",
"0.73035663",
"0.72949666",
"0.7270068",
"0.7252165... | 0.0 | -1 |
Normalizes . Raised if the magnitude of the vector is lower or equal to Resolution from package gp. | def NBqJ(YKHO, *qIxc):
return leuP.Geom_VectorWithMagnitude_Normalize(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO):\n YXbZ = YKHO._get_magnitude()\n if YXbZ == 0.0:\n raise ZeroDivisionError(\"can't normalize vector of magnitude 0!\")\n return YKHO.divide(YXbZ)",
"def NkkI(iArr):\n Ty9i = oyIN.array(iArr)\n FOSW = oyIN.linalg.norm(Ty9i)\n if FOSW == 0:\n return Ty9i\n else:\n... | [
"0.72984296",
"0.7230268",
"0.72180176",
"0.72128904",
"0.7196788",
"0.71185535",
"0.70996964",
"0.7046537",
"0.70210737",
"0.7000172",
"0.6991563",
"0.6979621",
"0.69707686",
"0.694027",
"0.6930051",
"0.69205886",
"0.6904304",
"0.68930084",
"0.6884095",
"0.6879766",
"0.68604... | 0.72444594 | 1 |
Creates a nonrational B_spline curve on the basis of degree . | def FIMM(YKHO, *qIxc):
leuP.Geom_BSplineCurve_swiginit(YKHO, leuP.new_Geom_BSplineCurve(*qIxc)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mj1Y(tjON, LTIa, cYHN=None, xPUk=None):\n if not cYHN:\n cYHN = oyIN.linspace(0, len(LTIa) - tjON, len(LTIa) * 1000)[:-1]\n if not xPUk:\n xPUk = TyfU(len(LTIa), tjON)\n return [QPEJ(a1PO, tjON, LTIa, knots=xPUk) for a1PO in cYHN]",
"def phmz(XP5J):\n if XP5J == 0:\n\n def Sx... | [
"0.73765564",
"0.7183712",
"0.7080338",
"0.7026044",
"0.7006535",
"0.6920574",
"0.6906282",
"0.6844467",
"0.6832301",
"0.67390543",
"0.65801936",
"0.6561664",
"0.64729434",
"0.6415774",
"0.64073575",
"0.64005077",
"0.64005077",
"0.6344886",
"0.6344683",
"0.6342273",
"0.622839... | 0.5825713 | 53 |
Returns the index in the knot array of the knot corresponding to the first or last parameter of this BSpline curve. For a BSpline curve, the first (or last) parameter (which gives the start (or end) point of the curve) is a knot value. However, if the multiplicity of the first (or last) knot is less than Degree + 1, wh... | def Oxin(YKHO, *qIxc):
return leuP.Geom_BSplineCurve_FirstUKnotIndex(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oYm0(YKHO):\n try:\n return YKHO.knots[YKHO.index + 1]\n except IndexError:\n return r51j",
"def ySV5(YKHO):\n return YKHO.knots[YKHO.index]",
"def KsUM(qCtB, xPUk):\n for YRbF in range(0, len(xPUk) - 1):\n if xPUk[YRbF] <= qCtB < xPUk[YRbF + 1]:\n return YRbF\n ... | [
"0.70290136",
"0.67961985",
"0.6202856",
"0.6194575",
"0.60846955",
"0.6063559",
"0.6018301",
"0.59857666",
"0.585325",
"0.5827688",
"0.5792216",
"0.57307476",
"0.5703966",
"0.5701913",
"0.5672403",
"0.56691235",
"0.5580297",
"0.5553648",
"0.5546866",
"0.55042684",
"0.5501271... | 0.5127837 | 54 |
Returns the knot of range Index. When there is a knot with a multiplicity greater than 1 the knot is not repeated. The method Multiplicity can be used to get the multiplicity of the Knot. Raised if Index NbKnots | def oPTK(YKHO, *qIxc):
return leuP.Geom_BSplineCurve_Knot(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NgiV(YKHO, d6pt: int) -> cuzp[str, ImMB]:\n ...",
"def udfy(YKHO, SbPS: int) -> float:\n ...",
"def oYm0(YKHO):\n try:\n return YKHO.knots[YKHO.index + 1]\n except IndexError:\n return r51j",
"def ySV5(YKHO):\n return YKHO.knots[YKHO.index]",
"def b89k(YKHO, zAfm):\n G1H... | [
"0.71492624",
"0.69634145",
"0.6802215",
"0.678663",
"0.6445972",
"0.63436455",
"0.62700343",
"0.6250615",
"0.61843336",
"0.61066276",
"0.59913737",
"0.59340185",
"0.59125036",
"0.5898543",
"0.587789",
"0.58754635",
"0.58754635",
"0.58754635",
"0.58734715",
"0.58529156",
"0.5... | 0.64721376 | 4 |
returns the knot values of the Bspline curve; Warning A knot with a multiplicity greater than 1 is not repeated in the knot table. The Multiplicity function can be used to obtain the multiplicity of each knot. Raised if the length of K is not equal to the number of knots. | def YRGs(YKHO, *qIxc):
return leuP.Geom_BSplineCurve_Knots(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def llj0(YKHO, *qIxc):\n return leuP.Geom_BSplineCurve_NbKnots(YKHO, *qIxc)",
"def oPTK(YKHO, *qIxc):\n return leuP.Geom_BSplineCurve_Knot(YKHO, *qIxc)",
"def xPUk(YKHO):\n return YKHO._knots",
"def jwAT(cuiw, Lnes, q2Ap, uQXs):\n aJHp = (PgP1 * uQXs)()\n Aofo = bm8W.HAPI_GetCurveKnots(dWW6(cu... | [
"0.6987169",
"0.68380827",
"0.6614901",
"0.63925654",
"0.637903",
"0.63340676",
"0.6317635",
"0.6288989",
"0.62541306",
"0.62373143",
"0.6212428",
"0.6194609",
"0.6162981",
"0.6152866",
"0.61431193",
"0.604221",
"0.6033899",
"0.60307044",
"0.6021376",
"0.60042435",
"0.5967443... | 0.69907194 | 0 |
For a BSpline curve the last parameter (which gives the end point of the curve) is a knot value but if the multiplicity of the last knot index is lower than Degree + 1 it is not the last knot of the curve. This method computes the index of the knot corresponding to the last parameter. | def HMln(YKHO, *qIxc):
return leuP.Geom_BSplineCurve_LastUKnotIndex(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oYm0(YKHO):\n try:\n return YKHO.knots[YKHO.index + 1]\n except IndexError:\n return r51j",
"def ySV5(YKHO):\n return YKHO.knots[YKHO.index]",
"def oPTK(YKHO, *qIxc):\n return leuP.Geom_BSplineCurve_Knot(YKHO, *qIxc)",
"def udfy(YKHO, SbPS: int) -> float:\n ...",
"def oYWG(... | [
"0.7346128",
"0.6970611",
"0.6537279",
"0.63586336",
"0.63268983",
"0.6208662",
"0.6195757",
"0.61584204",
"0.6136497",
"0.6088465",
"0.60779536",
"0.6073118",
"0.60369635",
"0.58568174",
"0.5845762",
"0.5770258",
"0.57124585",
"0.5705618",
"0.5680577",
"0.56727",
"0.56548446... | 0.61915815 | 7 |
Locates the parametric value U in the sequence of knots. If 'WithKnotRepetition' is True we consider the knot's representation with repetition of multiple knot value, otherwise we consider the knot's representation with no repetition of multiple knot values. Knots (I1) U NbKnots => U > Knots (NbKnots) + Abs(ParametricT... | def LPiu(YKHO, *qIxc):
return leuP.Geom_BSplineCurve_LocateU(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dZUs(YKHO, zAfm):\n G1Hx = YKHO.k\n iYq0 = YKHO.n - YKHO.k + 1\n fa_D = YKHO.t.copy()\n jmzt = YKHO.t[YKHO.knot_support(zAfm)]\n for YRbF in range(iYq0):\n AQhT = (jmzt[G1Hx + YRbF - 1] + jmzt[G1Hx + YRbF]) / 2.0\n RV55.append(AQhT)\n XOOk = Tykm.subdivide_basis_not_SABIN(YKHO.p... | [
"0.57859814",
"0.57571024",
"0.5648856",
"0.5622766",
"0.56166595",
"0.5566794",
"0.55268997",
"0.5510149",
"0.5506215",
"0.54180807",
"0.5358545",
"0.5321295",
"0.5317627",
"0.52105933",
"0.5193408",
"0.5173386",
"0.51250935",
"0.5121089",
"0.5103831",
"0.5098258",
"0.509582... | 0.0 | -1 |
Returns the multiplicity of the knots of range Index. Raised if Index NbKnots | def KOsM(YKHO, *qIxc):
return leuP.Geom_BSplineCurve_Multiplicity(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dZUs(YKHO, zAfm):\n G1Hx = YKHO.k\n iYq0 = YKHO.n - YKHO.k + 1\n fa_D = YKHO.t.copy()\n jmzt = YKHO.t[YKHO.knot_support(zAfm)]\n for YRbF in range(iYq0):\n AQhT = (jmzt[G1Hx + YRbF - 1] + jmzt[G1Hx + YRbF]) / 2.0\n RV55.append(AQhT)\n XOOk = Tykm.subdivide_basis_not_SABIN(YKHO.p... | [
"0.7004509",
"0.69871217",
"0.6922632",
"0.6846808",
"0.6828933",
"0.67868835",
"0.67416507",
"0.6657677",
"0.65398747",
"0.6487302",
"0.63997716",
"0.63913214",
"0.6342091",
"0.62899584",
"0.6280097",
"0.62783694",
"0.6266703",
"0.6253478",
"0.6215653",
"0.6179347",
"0.61738... | 0.0 | -1 |
Returns the multiplicity of the knots of the curve. Raised if the length of M is not equal to NbKnots. | def hyQj(YKHO, *qIxc):
return leuP.Geom_BSplineCurve_Multiplicities(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BHJt(YKHO, XP5J, r8hN):\n jzdc, Fg_i = (YKHO._a, YKHO._b)\n Csk6 = (Fg_i - jzdc) / float(r8hN - 2 * XP5J)\n et62 = oyIN.ones(r8hN - 2 * XP5J - 1)\n for r845 in Ni9Y(r8hN - 2 * XP5J - 1):\n et62[r845] = jzdc + (r845 + 1) * Csk6\n return et62",
"def llj0(YKHO, *qIxc):\n return leuP.Geo... | [
"0.7010197",
"0.68285894",
"0.677544",
"0.6686415",
"0.6521786",
"0.6508165",
"0.6398827",
"0.6371857",
"0.627331",
"0.6226499",
"0.62019557",
"0.619788",
"0.61815256",
"0.61628824",
"0.61368746",
"0.6123587",
"0.6074535",
"0.6061043",
"0.6008653",
"0.5994294",
"0.598621",
... | 0.0 | -1 |
Returns the number of knots. This method returns the number of knot without repetition of multiple knots. | def llj0(YKHO, *qIxc):
return leuP.Geom_BSplineCurve_NbKnots(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u7s3(YKHO) -> int:\n ...",
"def d4jM(YKHO):\n xPUk = YKHO._degree + YKHO._num_points + 1\n return xPUk",
"def H9H1(YKHO, lLLl):\n UHFx = 0\n for G1Hx in YKHO._internal_knotvec:\n if G1Hx == lLLl:\n UHFx += 1\n return UHFx",
"def tpio(YKHO):\n return len(YKHO.knots)"... | [
"0.90194845",
"0.8786204",
"0.84627384",
"0.7612079",
"0.7521948",
"0.7521948",
"0.7489267",
"0.7435947",
"0.7186657",
"0.70887834",
"0.6972025",
"0.6843322",
"0.67004853",
"0.6661185",
"0.6655479",
"0.6594957",
"0.65863806",
"0.65594995",
"0.6535611",
"0.6475427",
"0.6403678... | 0.69326675 | 11 |
Returns the weights of the Bspline curve; Raised if the length of W is not equal to NbPoles. | def Q5DW(YKHO, *qIxc):
return leuP.Geom_BSplineCurve_Weights(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q5DW(YKHO, *qIxc):\n return leuP.Geom_BSplineSurface_Weights(YKHO, *qIxc)",
"def Yn6C(CJ2p):\n _hZ2 = 1e-05\n Oewi = [0, 100, 100 + _hZ2, 300, 300 + _hZ2, 500, 500 + _hZ2, 1200, 1200 + _hZ2, 2000, 2000 + _hZ2, 7000]\n VnoO = [20, 20, 25, 25, 50, 50, 100, 100, 200, 200, 500, 500]\n sfDy = Zxt2.... | [
"0.6813187",
"0.6750064",
"0.66796976",
"0.66796976",
"0.6618098",
"0.6618098",
"0.6443561",
"0.6441231",
"0.6420656",
"0.6420656",
"0.6405599",
"0.6395223",
"0.63455296",
"0.63297075",
"0.6314223",
"0.63018954",
"0.62764525",
"0.6269901",
"0.6258773",
"0.62484854",
"0.623584... | 0.7130108 | 0 |
Increases the multiplicity of the knot of range UIndex in the UKnots sequence. M is the new multiplicity. M must be greater than the previous multiplicity and lower or equal to the degree of the surface in the U parametric direction. Raised if M is not in the range [1, UDegree] Raised if UIndex is not in the range [Fir... | def fcGC(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_IncreaseUMultiplicity(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fz0Y(YKHO, KkY2, jmzt, kTwQ):\n Kt_s, nMvt = oyIN.shape(jmzt)\n YfPl = jmzt[1]\n YKHO.A = oyIN.sum(kTwQ, axis=0) / oyIN.sum(kTwQ, axis=(0, 1))\n YKHO.means = oyIN.einsum('k,kp->kp', 1.0 / oyIN.sum(jmzt, axis=0), oyIN.dot(jmzt.T, KkY2))\n YKHO.sigmas = oyIN.einsum('k,klm->klm', 1.0 / oyIN.sum(jmz... | [
"0.56069344",
"0.52997756",
"0.52921146",
"0.52896285",
"0.52731854",
"0.52196944",
"0.5087099",
"0.5051327",
"0.497341",
"0.49633923",
"0.4924217",
"0.4887554",
"0.4886943",
"0.48864198",
"0.48796907",
"0.4870619",
"0.48610622",
"0.4859261",
"0.4856829",
"0.4846322",
"0.4824... | 0.46769488 | 31 |
Inserts a knot value in the sequence of UKnots. If U is a knot value this method increases the multiplicity of the knot if the previous multiplicity was lower than M else it does nothing. The tolerance criterion is ParametricTolerance. ParametricTolerance should be greater or equal than Resolution from package gp. Rais... | def eng9(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_InsertUKnot(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, lLLl):\n for YRbF, Ty9i in enumerate(YKHO.vec):\n if Ty9i >= lLLl:\n YKHO.vec.insert(YRbF, lLLl)\n return\n YKHO.vec.append(lLLl)",
"def EPVT(YKHO, F_tS, P6bq, Mkmy, uvMl):\n g2zq = YKHO._find_number_of_knots()\n T8ck = []\n XpR3 = [0.0 for YRbF in range... | [
"0.6105479",
"0.6017735",
"0.57733244",
"0.56443095",
"0.5620949",
"0.54377526",
"0.5303345",
"0.528229",
"0.52073234",
"0.52013075",
"0.51175904",
"0.5081722",
"0.50553787",
"0.5041695",
"0.5039901",
"0.4980298",
"0.49398667",
"0.49398196",
"0.49340555",
"0.4876732",
"0.4808... | 0.48591748 | 20 |
Substitutes the VKnots of range VIndex with K. Raised if VIndex NbVKnots Raised if K >= VKnots(VIndex+1) or K <= VKnots(VIndex1) | def KPF2(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_SetVKnot(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkcA(YKHO, *qIxc):\n return leuP.Geom_BSplineSurface_SetVKnots(YKHO, *qIxc)",
"def E1AA(YKHO, *qIxc):\n return leuP.Geom_BSplineSurface_VKnots(YKHO, *qIxc)",
"def dZUs(YKHO, zAfm):\n G1Hx = YKHO.k\n iYq0 = YKHO.n - YKHO.k + 1\n fa_D = YKHO.t.copy()\n jmzt = YKHO.t[YKHO.knot_support(zAfm)]... | [
"0.70745486",
"0.67280656",
"0.67233706",
"0.6699798",
"0.6668047",
"0.6652838",
"0.6610629",
"0.6461939",
"0.6323479",
"0.6264834",
"0.60650355",
"0.5936472",
"0.58666104",
"0.5829036",
"0.5784874",
"0.57595205",
"0.5757248",
"0.5744087",
"0.5644925",
"0.56398773",
"0.561572... | 0.5550549 | 27 |
Locates the parametric value U in the sequence of knots. If 'WithKnotRepetition' is True we consider the knot's representation with repetition of multiple knot value, otherwise we consider the knot's representation with no repetition of multiple knot values. VKnots (I1) V NbVKnots => V > VKnots(NbVKnots)+Abs(Parametric... | def St99(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_LocateV(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _tGf(YKHO):\n mM0K, EaSx, VAJu, PU4m, jzdc, Fg_i = (YKHO._pi, YKHO._pj, YKHO._mi, YKHO._mj, YKHO._a, YKHO._b)\n ZnGg = oyIN.ones(mM0K + 1)\n ZnGg *= jzdc\n CiWT = YKHO._internal_knots(mM0K, VAJu)\n jOoG = oyIN.ones(mM0K + 1)\n jOoG *= Fg_i\n Kmjl = oyIN.ones(EaSx + 1)\n Kmjl *= jzdc\n ... | [
"0.6110525",
"0.5989892",
"0.59834814",
"0.5969025",
"0.5899133",
"0.58131343",
"0.5808965",
"0.5723444",
"0.57168764",
"0.55954844",
"0.55893683",
"0.5463913",
"0.5322248",
"0.5308808",
"0.530631",
"0.52622914",
"0.5211318",
"0.5161174",
"0.5100894",
"0.50971544",
"0.5095387... | 0.0 | -1 |
Returns number of poles in the U direction. | def qgr4(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_NbUPoles(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qgr4(YKHO, *qIxc):\n return leuP.Geom_BezierSurface_NbUPoles(YKHO, *qIxc)",
"def cDmO(YKHO):\n return oyIN.sum(YKHO.perimeters)",
"def H5En(YKHO):\n return len(YKHO.cluster.otu_uparse.centers)",
"def cDmO(YKHO):\n return YKHO.shape.length",
"def u54L(P6bq):\n return epAf.sqrt(XTiz.dot(P6... | [
"0.6716017",
"0.6666125",
"0.651253",
"0.64261043",
"0.62681794",
"0.6221987",
"0.61251885",
"0.61061805",
"0.6081629",
"0.6080593",
"0.6076023",
"0.60596824",
"0.60161924",
"0.6012015",
"0.6011965",
"0.6009287",
"0.6001906",
"0.59984255",
"0.599157",
"0.5981543",
"0.5979008"... | 0.6155673 | 6 |
Returns the number of knots in the V direction. | def _Bs3(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_NbVKnots(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d4jM(YKHO):\n xPUk = YKHO._degree + YKHO._num_points + 1\n return xPUk",
"def u7s3(YKHO) -> int:\n ...",
"def H9H1(YKHO, lLLl):\n UHFx = 0\n for G1Hx in YKHO._internal_knotvec:\n if G1Hx == lLLl:\n UHFx += 1\n return UHFx",
"def tpio(YKHO):\n return len(YKHO.knots)"... | [
"0.78359145",
"0.7753468",
"0.70622706",
"0.68330956",
"0.6808177",
"0.674286",
"0.6468512",
"0.6393294",
"0.6381689",
"0.6364947",
"0.6320607",
"0.62850475",
"0.6230488",
"0.6214628",
"0.61344415",
"0.59978354",
"0.5976011",
"0.59690464",
"0.5948446",
"0.5933164",
"0.5932155... | 0.6082847 | 15 |
Returns the degree of the normalized Bsplines Ni,n in the U direction. | def MBXE(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_UDegree(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tjON(YKHO):\n ywwl = [exwG - 1 for exwG in YKHO.shape]\n E3D9 = [len(G1Hx) - 1 for G1Hx in YKHO.knots]\n return tuple((r8hN - exwG - 1 for r8hN, exwG in zip(E3D9, ywwl)))",
"def tjON(YKHO):\n for YRbF in enumerate(reversed(YKHO.coef)):\n if YRbF[1] != 0:\n return len(YKHO.coef) ... | [
"0.6434519",
"0.63752526",
"0.62533605",
"0.6212062",
"0.61963",
"0.6181331",
"0.5940077",
"0.59388024",
"0.59379125",
"0.5935708",
"0.5906883",
"0.59064674",
"0.5901582",
"0.5901582",
"0.58911806",
"0.58743596",
"0.5847651",
"0.5842262",
"0.5830191",
"0.5815215",
"0.57815003... | 0.63045216 | 2 |
Returns the Knot value of range UIndex. Raised if UIndex NbUKnots | def Lmv7(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_UKnot(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def udfy(YKHO, SbPS: int) -> float:\n ...",
"def ZKcc(YKHO, BWXx: float) -> int:\n ...",
"def oYm0(YKHO):\n try:\n return YKHO.knots[YKHO.index + 1]\n except IndexError:\n return r51j",
"def GQ8c(WKvO, G1Hx):\n WKvO = cqkc.asarray(WKvO)\n if G1Hx % 2 != 1:\n raise Value... | [
"0.7345798",
"0.64823663",
"0.64732975",
"0.6465819",
"0.6294712",
"0.62824994",
"0.621174",
"0.6116161",
"0.61054134",
"0.60374826",
"0.596277",
"0.5901848",
"0.5874003",
"0.5864084",
"0.58319104",
"0.5808165",
"0.5777139",
"0.5738185",
"0.57010686",
"0.5669634",
"0.56452805... | 0.0 | -1 |
Returns the degree of the normalized Bsplines Ni,d in the V direction. | def iJl7(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_VDegree(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tjON(YKHO, Ty9i):\n yKcO = YKHO.n_indptr[Ty9i]\n JCyR = YKHO.n_indptr[Ty9i + 1]\n return int(JCyR - yKcO)",
"def difu(YKHO):\n KCHu = YKHO.C_SVD[1]\n return KCHu[-1] ** 2 / KCHu[0]",
"def NGTi(YKHO):\n return YKHO.absolute_degree()",
"def tjON(YKHO, Ty9i: int) -> int:\n pass",
"def... | [
"0.6739927",
"0.6563189",
"0.6415084",
"0.63385373",
"0.62271774",
"0.61986893",
"0.6189948",
"0.61752814",
"0.6071128",
"0.60477024",
"0.60450083",
"0.59732664",
"0.5952382",
"0.5938953",
"0.59278244",
"0.58906704",
"0.5858014",
"0.5858014",
"0.5846125",
"0.5829861",
"0.5825... | 0.61623806 | 8 |
Returns the Knot value of range VIndex. | def mmfc(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_VKnot(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def udfy(YKHO, SbPS: int) -> float:\n ...",
"def NgiV(YKHO, d6pt: int) -> cuzp[str, ImMB]:\n ...",
"def ZKcc(YKHO, BWXx: float) -> int:\n ...",
"def GQ8c(WKvO, G1Hx):\n WKvO = cqkc.asarray(WKvO)\n if G1Hx % 2 != 1:\n raise ValueError('Odd degree for now only. Got %s.' % G1Hx)\n r8hN ... | [
"0.71321595",
"0.6464831",
"0.63894075",
"0.60630506",
"0.6024192",
"0.5888412",
"0.5813019",
"0.5810428",
"0.5794977",
"0.5787466",
"0.57382536",
"0.5727276",
"0.56676555",
"0.5659446",
"0.56594145",
"0.5615761",
"0.5576545",
"0.5576071",
"0.5575267",
"0.5570113",
"0.5539285... | 0.0 | -1 |
Returns the knots in the V direction. Raised if the length of Kv is not equal to the number of knots in the V direction. | def E1AA(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_VKnots(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xPUk(YKHO):\n return YKHO._knots",
"def c8jt(YKHO):\n if YKHO.interp:\n YKHO.tu = jguA.knots_interp(YKHO.u, oyIN.array([], 'd'), YKHO.ku)\n YKHO.tv = jguA.knots_interp(YKHO.v, oyIN.array([], 'd'), YKHO.kv)\n YKHO.tw = jguA.knots_interp(YKHO.w, oyIN.array([], 'd'), YKHO.kw)\n els... | [
"0.70031",
"0.6901412",
"0.6807279",
"0.66149044",
"0.6596536",
"0.6478354",
"0.64744383",
"0.6351716",
"0.631044",
"0.6276207",
"0.6267937",
"0.6252637",
"0.6208676",
"0.61863494",
"0.6159129",
"0.60531646",
"0.6036024",
"0.6033638",
"0.59885865",
"0.5961073",
"0.59526825",
... | 0.64310354 | 7 |
Returns the multiplicity value of knot of range VIndex in the v direction. Raised if VIndex NbVKnots | def Petu(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_VMultiplicity(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def udfy(YKHO, SbPS: int) -> float:\n ...",
"def HioH(Ty9i):\n return 0.5 * r8hN * (1 + Z9rn) * Ty9i ** 2",
"def anJ0(cAlv, nMvt=5.4):\n Etah = 129.435\n UR0s = 8314 * 306.15 / 96487\n ut5U = UR0s * oyIN.log(nMvt / Etah)\n return 1 / (1 + oyIN.exp(1.5 * (cAlv - ut5U + 3.6) / UR0s))",
"def y... | [
"0.7007875",
"0.64564586",
"0.6245194",
"0.6198794",
"0.60528105",
"0.60508734",
"0.6042453",
"0.6036941",
"0.60134023",
"0.60027695",
"0.59939754",
"0.5974126",
"0.5969179",
"0.59658843",
"0.5949349",
"0.59338474",
"0.5928814",
"0.59038323",
"0.58633536",
"0.5847411",
"0.584... | 0.0 | -1 |
Returns the multiplicities of the knots in the V direction. Raised if the length of Mv is not equal to the number of knots in the V direction. | def zbh1(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_VMultiplicities(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _tGf(YKHO):\n mM0K, EaSx, VAJu, PU4m, jzdc, Fg_i = (YKHO._pi, YKHO._pj, YKHO._mi, YKHO._mj, YKHO._a, YKHO._b)\n ZnGg = oyIN.ones(mM0K + 1)\n ZnGg *= jzdc\n CiWT = YKHO._internal_knots(mM0K, VAJu)\n jOoG = oyIN.ones(mM0K + 1)\n jOoG *= Fg_i\n Kmjl = oyIN.ones(EaSx + 1)\n Kmjl *= jzdc\n ... | [
"0.66439766",
"0.6551747",
"0.653154",
"0.6231346",
"0.6208349",
"0.60338897",
"0.59816766",
"0.5967092",
"0.5942345",
"0.59260684",
"0.58796674",
"0.58755255",
"0.5823634",
"0.58041775",
"0.5788895",
"0.57771176",
"0.56763864",
"0.5625553",
"0.55977225",
"0.5583004",
"0.5576... | 0.0 | -1 |
Returns the weights of the Bspline surface. Raised if the length of W in the U and V direction is not equal to NbUPoles and NbVPoles. value and derivatives computation | def Q5DW(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_Weights(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q5DW(YKHO, *qIxc):\n return leuP.Geom_BSplineCurve_Weights(YKHO, *qIxc)",
"def nkcd(P6bq, Ty9i, BvjQ, gDGy):\n tpio = len(P6bq.shape)\n assert tpio == 2 or tpio == 3, 'Velocity field should be 2D or 3D'\n DvmO, LVAh = ICX2(P6bq, BvjQ, axis=0 + (tpio == 3))\n wj6r, WKvO = ICX2(Ty9i, gDGy, axis=... | [
"0.6830074",
"0.66988957",
"0.65313196",
"0.62805605",
"0.6270372",
"0.6267666",
"0.62655795",
"0.62550884",
"0.6241806",
"0.6241806",
"0.623382",
"0.6230336",
"0.6214579",
"0.62053335",
"0.61525404",
"0.6136949",
"0.61059785",
"0.61059785",
"0.61019254",
"0.60744",
"0.603134... | 0.6972715 | 0 |
Computes the point of parameter U, V on the BSpline surface patch defines between the knots UK1 UK2, VK1, VK2. U can be out of the bounds [Knot UK1, Knot UK2] and V can be outof the bounds [Knot VK1, Knot VK2] but for the computation we only use the definition of the surface between these knot values. Raises if FromUK1... | def GGo8(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_LocalValue(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jtLR(ISP0, JW1H, lFHW, Fmk7, uWKI, HLXR, qHxz, _mSQ):\n e_2d = 2\n F_tS = lpKp(qHxz, _mSQ, e_2d)\n POsL = zQC7(uWKI, ISP0, lFHW)\n BvMi = MOvn(POsL, ISP0, uWKI, lFHW)\n AgDo = zQC7(HLXR, JW1H, Fmk7)\n rKYz = MOvn(AgDo, JW1H, HLXR, Fmk7)\n ycBG = oyIN.nan * oyIN.ones(HLXR + 1, dtype=oyIN.nd... | [
"0.6219901",
"0.60710996",
"0.60243213",
"0.5960158",
"0.5906877",
"0.5897867",
"0.58863974",
"0.5844285",
"0.5806215",
"0.57920736",
"0.5695758",
"0.56706077",
"0.5652981",
"0.56426364",
"0.5640079",
"0.56391335",
"0.5582176",
"0.55635166",
"0.551678",
"0.54920876",
"0.54706... | 0.0 | -1 |
Computes the U isoparametric curve. A Bspline curve is returned. | def HYmE(YKHO, *qIxc):
return leuP.Geom_BSplineSurface_UIso(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO, P6bq):\n XP5J, KkY2, EcVT, fuBA, Nk6w, XcU5 = (YKHO._p, YKHO._U, YKHO._X, YKHO._Y, YKHO._Z, YKHO._W)\n ywwl = cpo5(U=KkY2, p=XP5J)\n ywwl(P6bq)\n uvMl = ywwl.get_span_index()\n WKvO = sum(ywwl(P6bq)[:] * EcVT[uvMl - XP5J:uvMl + 1] * XcU5[uvMl - XP5J:uvMl + 1])\n LVAh = sum(ywwl(P6b... | [
"0.6879051",
"0.6751549",
"0.6612755",
"0.63511825",
"0.63444847",
"0.62003547",
"0.5971437",
"0.5954401",
"0.5953828",
"0.5903046",
"0.58172643",
"0.5809604",
"0.5801338",
"0.5801338",
"0.5790608",
"0.57636493",
"0.5733557",
"0.5727549",
"0.57264656",
"0.57229286",
"0.569935... | 0.5784331 | 15 |
Inserts a pole P before the pole of range Index. If the curve is rational the weight value for the new pole of range Index is 1.0. Raised if Index is not in the range [1, NbPoles] Raised if the resulting number of poles is greater than MaxDegree + 1. | def S5OX(YKHO, *qIxc):
return leuP.Geom_BezierCurve_InsertPoleBefore(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kKLn(V6IE, YRbF, exwG) -> float:\n return V6IE * (1 + YRbF * exwG)",
"def I1KH(YKHO):\n uN44 = YKHO.guides['hip'][1]\n RHTZ = YKHO.guides['knee'][1]\n mB6j = YKHO.guides['foot'][1]\n bqKq = ZAqF.MVector(uN44)\n vltz = ZAqF.MVector(RHTZ)\n kYd4 = ZAqF.MVector(mB6j)\n zFiD = kYd4 - bqKq... | [
"0.52540445",
"0.5103591",
"0.50064003",
"0.5004686",
"0.49727088",
"0.4895266",
"0.48766658",
"0.4866716",
"0.48606798",
"0.48381093",
"0.48286545",
"0.48040473",
"0.47776362",
"0.47738948",
"0.47688246",
"0.47572035",
"0.47340828",
"0.47323394",
"0.47303775",
"0.47221532",
... | 0.5294718 | 0 |
Returns the number of poles of this Bezier curve. | def y07N(YKHO, *qIxc):
return leuP.Geom_BezierCurve_NbPoles(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PdL9(YKHO, *qIxc):\n return leuP.Geom_BezierCurve_Poles(YKHO, *qIxc)",
"def PdL9(YKHO, *qIxc):\n return leuP.Geom_BezierSurface_Poles(YKHO, *qIxc)",
"def cDmO(YKHO):\n return YKHO.shape.length",
"def y07N(YKHO, *qIxc):\n return leuP.Geom_BSplineCurve_NbPoles(YKHO, *qIxc)",
"def cDmO(YKHO):\... | [
"0.73675716",
"0.7158928",
"0.7061332",
"0.697369",
"0.6900888",
"0.68381816",
"0.67167735",
"0.6710408",
"0.6669108",
"0.65672904",
"0.6555796",
"0.65521693",
"0.6544474",
"0.65103555",
"0.6490247",
"0.64787",
"0.6469846",
"0.6454796",
"0.64527506",
"0.64325035",
"0.6425925"... | 0.76544356 | 0 |
Returns all the weights of the curve. Raised if the length of W is not equal to the number of poles. | def Q5DW(YKHO, *qIxc):
return leuP.Geom_BezierCurve_Weights(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wT46(YKHO):\n return YKHO.w",
"def wT46(YKHO):\n return YKHO.w",
"def wT46(YKHO):\n return YKHO.w",
"def wT46(YKHO):\n return YKHO.w",
"def wT46(YKHO):\n return YKHO.policy_alg.get_weights()",
"def wT46(YKHO):\n return YKHO.w",
"def wT46(YKHO):\n return [yzQ0.data for yzQ0 in Y... | [
"0.7212341",
"0.7212341",
"0.7153113",
"0.7153113",
"0.69840765",
"0.69127905",
"0.68764603",
"0.68764603",
"0.68201333",
"0.68201333",
"0.6803189",
"0.6802319",
"0.677429",
"0.6772559",
"0.6733582",
"0.6707456",
"0.67008907",
"0.66872716",
"0.66815156",
"0.6677203",
"0.66733... | 0.65568095 | 29 |
Returns the number of poles in the U direction. | def qgr4(YKHO, *qIxc):
return leuP.Geom_BezierSurface_NbUPoles(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDmO(YKHO):\n return oyIN.sum(YKHO.perimeters)",
"def H5En(YKHO):\n return len(YKHO.cluster.otu_uparse.centers)",
"def cDmO(YKHO):\n return YKHO.shape.length",
"def cDmO(YKHO):\n WKvO = YKHO.vertices[:, 0]\n LVAh = YKHO.vertices[:, 1]\n u54L = 0.0\n for YRbF in range(len(YKHO.vertice... | [
"0.6708606",
"0.658208",
"0.649838",
"0.6256375",
"0.622936",
"0.618646",
"0.6144999",
"0.6117821",
"0.60869634",
"0.6069289",
"0.6068323",
"0.60598636",
"0.6057743",
"0.6056952",
"0.604368",
"0.60349536",
"0.60326827",
"0.6031404",
"0.6030711",
"0.6028466",
"0.5999345",
"0... | 0.6708773 | 0 |
Returns the degree of the surface in the U direction it is NbUPoles 1 | def MBXE(YKHO, *qIxc):
return leuP.Geom_BezierSurface_UDegree(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MBXE(YKHO, *qIxc):\n return leuP.Geom_BSplineSurface_UDegree(YKHO, *qIxc)",
"def tjON(YKHO):\n assert YKHO.is_hypersurface\n return YKHO.__d[0]",
"def tjON(YKHO):\n for YRbF in enumerate(reversed(YKHO.coef)):\n if YRbF[1] != 0:\n return len(YKHO.coef) - YRbF[0] - 1\n return... | [
"0.74179965",
"0.67663205",
"0.66859543",
"0.65655905",
"0.65283537",
"0.64973897",
"0.64160067",
"0.6383906",
"0.63719606",
"0.63453525",
"0.63428575",
"0.63415307",
"0.63150734",
"0.6298071",
"0.62736815",
"0.6268263",
"0.6260418",
"0.6228461",
"0.6211431",
"0.61957645",
"0... | 0.77520186 | 0 |
Returns the weights of the Bezier surface. Raised if the length of W in the U an V direction is not equal to NbUPoles and NbVPoles. | def Q5DW(YKHO, *qIxc):
return leuP.Geom_BezierSurface_Weights(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q5DW(YKHO, *qIxc):\n return leuP.Geom_BezierCurve_Weights(YKHO, *qIxc)",
"def wT46(YKHO):\n return YKHO.w",
"def wT46(YKHO):\n return YKHO.w",
"def Q5DW(YKHO, *qIxc):\n return leuP.Geom_BSplineSurface_Weights(YKHO, *qIxc)",
"def wT46(YKHO):\n return YKHO.w",
"def wT46(YKHO):\n retur... | [
"0.6994799",
"0.67775637",
"0.67775637",
"0.6757668",
"0.6685891",
"0.6685891",
"0.66322386",
"0.6592355",
"0.657006",
"0.6555636",
"0.6448787",
"0.64155775",
"0.6395416",
"0.63553226",
"0.63206446",
"0.6307757",
"0.6285156",
"0.6283599",
"0.62820095",
"0.6246524",
"0.6173617... | 0.7353822 | 0 |
Returns the radius of this circle. | def AaxO(YKHO, *qIxc):
return leuP.Geom_Circle_Radius(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iwTD(YKHO):\n return YKHO.__radius",
"def iwTD(YKHO):\n return YKHO.__radius",
"def iwTD(YKHO):\n return YKHO.__radius",
"def iwTD(YKHO):\n return YKHO.__radius",
"def r1VO(YKHO):\n return YKHO._radius",
"def r1VO(YKHO):\n return YKHO._radius",
"def r1VO(YKHO):\n return YKHO._r... | [
"0.8624826",
"0.8624826",
"0.8624826",
"0.8624826",
"0.86208665",
"0.86208665",
"0.86208665",
"0.86208665",
"0.86208665",
"0.86208665",
"0.86208665",
"0.86208665",
"0.86208665",
"0.86208665",
"0.85961753",
"0.8530557",
"0.8514987",
"0.8514987",
"0.84881836",
"0.83798033",
"0.... | 0.8089625 | 32 |
Returns the radius of this cylinder. | def AaxO(YKHO, *qIxc):
return leuP.Geom_CylindricalSurface_Radius(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r1VO(YKHO):\n return YKHO._radius",
"def r1VO(YKHO):\n return YKHO._radius",
"def r1VO(YKHO):\n return YKHO._radius",
"def r1VO(YKHO):\n return YKHO._radius",
"def r1VO(YKHO):\n return YKHO._radius",
"def r1VO(YKHO):\n return YKHO._radius",
"def r1VO(YKHO):\n return YKHO._radiu... | [
"0.83228236",
"0.83228236",
"0.83228236",
"0.83228236",
"0.83228236",
"0.83228236",
"0.83228236",
"0.83228236",
"0.83228236",
"0.83228236",
"0.8275236",
"0.8275236",
"0.8275236",
"0.8275236",
"0.8268822",
"0.8264988",
"0.8264988",
"0.8245324",
"0.82443506",
"0.8215301",
"0.82... | 0.77479255 | 40 |
Converts the gp_Elips ellipse E into this ellipse. | def mDZk(YKHO, *qIxc):
return leuP.Geom_Ellipse_SetElips(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r8oq(YKHO, *qIxc):\n return leuP.Geom_Ellipse_Elips(YKHO, *qIxc)",
"def CUaq(YKHO):\n YKHO.r2 = YKHO.moments[0, 0] + YKHO.moments[1, 1]\n M6pt = YKHO.moments[0, 0] - YKHO.moments[1, 1] + oyIN.complex(0, YKHO.moments[0, 1] + YKHO.moments[1, 0])\n if YKHO._ellip_type == 'epsilon':\n UUZ1 = Y... | [
"0.73365664",
"0.6958434",
"0.6719857",
"0.60983896",
"0.6080314",
"0.603239",
"0.59989595",
"0.59474635",
"0.59474635",
"0.5859722",
"0.585074",
"0.585074",
"0.58274007",
"0.5824268",
"0.5785441",
"0.5766778",
"0.5670796",
"0.5610864",
"0.5602362",
"0.5601683",
"0.5597133",
... | 0.6845201 | 2 |
Returns the major radius of this ellipse. | def NFFJ(YKHO, *qIxc):
return leuP.Geom_Ellipse_MajorRadius(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oK0V(YKHO, *qIxc):\n return leuP.Geom_Ellipse_SetMajorRadius(YKHO, *qIxc)",
"def NFFJ(YKHO, *qIxc):\n return leuP.Geom_Hyperbola_MajorRadius(YKHO, *qIxc)",
"def IJ4N(YKHO):\n if not YKHO._fitted:\n YKHO._fitEllipse()\n return YKHO._a",
"def NFFJ(YKHO, *qIxc):\n return leuP.Geom_Toro... | [
"0.7972937",
"0.78095394",
"0.7692378",
"0.75199187",
"0.71484303",
"0.68669385",
"0.6805077",
"0.64797163",
"0.63715744",
"0.6344526",
"0.6336646",
"0.6336646",
"0.6311453",
"0.6306224",
"0.63002765",
"0.628709",
"0.6280699",
"0.62693894",
"0.6229919",
"0.62086624",
"0.62085... | 0.85840124 | 0 |
Returns the minor radius of this ellipse. | def oXdN(YKHO, *qIxc):
return leuP.Geom_Ellipse_MinorRadius(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oXdN(YKHO, *qIxc):\n return leuP.Geom_Hyperbola_MinorRadius(YKHO, *qIxc)",
"def rTp3(YKHO, *qIxc):\n return leuP.Geom_Ellipse_SetMinorRadius(YKHO, *qIxc)",
"def oXdN(YKHO, *qIxc):\n return leuP.Geom_ToroidalSurface_MinorRadius(YKHO, *qIxc)",
"def cbKy(YKHO):\n if not YKHO._fitted:\n YK... | [
"0.809254",
"0.787668",
"0.7779117",
"0.76967263",
"0.7288364",
"0.7065647",
"0.695875",
"0.6854673",
"0.6724174",
"0.6724174",
"0.65513045",
"0.6427088",
"0.64236766",
"0.64082146",
"0.6357155",
"0.6353772",
"0.6332807",
"0.6320522",
"0.6299008",
"0.6299008",
"0.6299008",
... | 0.8773116 | 0 |
Computes the focal distance. It is the distance between the two focus of the hyperbola. | def Onb7(YKHO, *qIxc):
return leuP.Geom_Hyperbola_Focal(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r5nC(YKHO) -> laHg.Union[float, None]:\n return YKHO._lens_focal_distance",
"def EJsA(YKHO):\n return YKHO.__lens_film_dist",
"def DDOk(YKHO):\n return float(oPf3.gdpool('INS{}_FOCAL_LENGTH'.format(YKHO.ikid), 0, 1)[0])",
"def Yocu(YKHO):\n if YKHO._focus_distance is not None and YKHO._focus_... | [
"0.65891594",
"0.6577003",
"0.64517444",
"0.6444866",
"0.63778424",
"0.6354993",
"0.6335265",
"0.62025636",
"0.6180191",
"0.6050721",
"0.5983391",
"0.58950204",
"0.5874502",
"0.5855897",
"0.58239365",
"0.58174545",
"0.5801472",
"0.57808685",
"0.577898",
"0.5745973",
"0.574423... | 0.6226062 | 7 |
Assigns the value Focal to the focal distance of this parabola. Exceptions Standard_ConstructionError if Focal is negative. | def tUuL(YKHO, *qIxc):
return leuP.Geom_Parabola_SetFocal(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Onb7(YKHO, *qIxc):\n return leuP.Geom_Parabola_Focal(YKHO, *qIxc)",
"def sSZJ(YKHO, qvah):\n eHNT = YKHO.backFocalLength()\n YKHO.scale(qvah / eHNT)\n return YKHO",
"def hpbG(YKHO, wEf2):\n YKHO.__focal_length = wEf2",
"def Onb7(YKHO, *qIxc):\n return leuP.Geom_Hyperbola_Focal(YKHO, *qI... | [
"0.72126174",
"0.69098145",
"0.6830288",
"0.67993003",
"0.6698274",
"0.6368088",
"0.63295776",
"0.6293316",
"0.58985746",
"0.58547074",
"0.5831375",
"0.57279724",
"0.56934035",
"0.5685121",
"0.5678787",
"0.56661355",
"0.5619769",
"0.55692744",
"0.54515743",
"0.5437343",
"0.54... | 0.76174164 | 0 |
Computes the directrix of this parabola. This is a line normal to the axis of symmetry, in the plane of this parabola, located on the negative side of its axis of symmetry, at a distance from the apex equal to the focal length. The directrix is returned as an axis (gp_Ax1 object), where the origin is located on the 'X ... | def PjYf(YKHO, *qIxc):
return leuP.Geom_Parabola_Directrix(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J1mO(YKHO):\n return -YUNn(Y_1E(YKHO._dipdir)) * Uyfy(Y_1E(YKHO._dipangle))",
"def Cgfp(YKHO, *qIxc):\n return leuP.Geom_Hyperbola_Directrix1(YKHO, *qIxc)",
"def XSoh(YKHO):\n return NTRO(PvyL(0, 0, 0), (YKHO.p2 - YKHO.p1) / YKHO.length())",
"def k1lG(YKHO):\n OSoR = YKHO.x\n fPho = -YKHO.... | [
"0.646434",
"0.6329032",
"0.59068155",
"0.577919",
"0.5778466",
"0.5700702",
"0.56570715",
"0.5648686",
"0.5641474",
"0.563081",
"0.5596067",
"0.5591226",
"0.55870944",
"0.5566631",
"0.5554318",
"0.55265445",
"0.5524522",
"0.5521548",
"0.55162877",
"0.5515919",
"0.55153644",
... | 0.7425847 | 0 |
Computes the focal distance of this parabola The focal distance is the distance between the apex and the focus of the parabola. | def Onb7(YKHO, *qIxc):
return leuP.Geom_Parabola_Focal(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Onb7(YKHO, *qIxc):\n return leuP.Geom_Hyperbola_Focal(YKHO, *qIxc)",
"def DDOk(YKHO):\n return float(oPf3.gdpool('INS{}_FOCAL_LENGTH'.format(YKHO.ikid), 0, 1)[0])",
"def tUuL(YKHO, *qIxc):\n return leuP.Geom_Parabola_SetFocal(YKHO, *qIxc)",
"def hpbG(YKHO):\n return YKHO.__focal_length",
"d... | [
"0.68342894",
"0.66869605",
"0.66335267",
"0.66000473",
"0.65651566",
"0.6524099",
"0.64223063",
"0.6415067",
"0.6379523",
"0.625732",
"0.62447107",
"0.6022865",
"0.60079926",
"0.59969264",
"0.5981459",
"0.5981459",
"0.5981459",
"0.5981459",
"0.59546447",
"0.595004",
"0.59072... | 0.743803 | 0 |
Converts the gp_Sphere S into this sphere. | def u1op(YKHO, *qIxc):
return leuP.Geom_SphericalSurface_SetSphere(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c34g(YKHO, *qIxc):\n return leuP.Geom_SphericalSurface_Sphere(YKHO, *qIxc)",
"def T_P4(YKHO):\n return YKHO.container['sphere']",
"def GBQ0(VllR, EhIg):\n lY0q = XTiz.cos(VllR)\n return (lY0q * XTiz.cos(EhIg), lY0q * XTiz.sin(EhIg), XTiz.sin(VllR))",
"def T_P4(YKHO, T_P4):\n YKHO.container... | [
"0.72854435",
"0.7074773",
"0.67970467",
"0.6766437",
"0.66250974",
"0.6612426",
"0.65721756",
"0.65308225",
"0.6520409",
"0.65156674",
"0.6498082",
"0.64965",
"0.64965",
"0.6454912",
"0.6412791",
"0.6280701",
"0.6252638",
"0.62522733",
"0.62377304",
"0.6209454",
"0.62079036"... | 0.70922554 | 1 |
Returns the location point of the axis of revolution. | def _JMH(YKHO, *qIxc):
return leuP.Geom_SurfaceOfRevolution_Location(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WKvO(YKHO):\n return YKHO._location",
"def inrG(YKHO):\n return YKHO.origin_[0]",
"def jDK_(YKHO):\n return YKHO._axis",
"def jDK_(YKHO):\n return YKHO._axis",
"def FJTv(YKHO, tvqc, jDK_='index'):\n qKZA = (tvqc.x, tvqc.y)\n if jDK_ == 'index':\n return qKZA[YKHO._determine_axi... | [
"0.7550561",
"0.7099203",
"0.7008905",
"0.7008905",
"0.6914879",
"0.68976134",
"0.6883913",
"0.6883913",
"0.6883913",
"0.68058056",
"0.6771761",
"0.67338157",
"0.6710132",
"0.66752803",
"0.66657674",
"0.66657674",
"0.6661111",
"0.6626948",
"0.6626948",
"0.6624446",
"0.6624242... | 0.64259 | 43 |
Gets the resource type. | def T9IL(Emd4):
return Emd4.__name__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO):\n return YKHO._get_field('type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.ge... | [
"0.9038562",
"0.89382166",
"0.89382166",
"0.89382166",
"0.89382166",
"0.89382166",
"0.89382166",
"0.89382166",
"0.89382166",
"0.89382166",
"0.89382166",
"0.89382166",
"0.89382166",
"0.89382166",
"0.89382166",
"0.8915161",
"0.8915161",
"0.8840063",
"0.87423325",
"0.87423325",
... | 0.0 | -1 |
picks random element from input_list | def NYnK(IqQl):
hlel = tuKI.choice(IqQl)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Imy3(YKHO, input):\n input = YKHO.formatter(input)\n return tuKI.choice(input)",
"def eybn(DumB: List[Any]) -> ImMB:\n return DumB[ajWY(0, len(DumB) - 1)]",
"def aPTa(ONJL):\n return tuKI.choice(ONJL)",
"def Ddot(vC9B):\n if not vC9B:\n return None\n return vC9B[tuKI.randrange(le... | [
"0.7447465",
"0.73570806",
"0.73520786",
"0.7326257",
"0.72950447",
"0.7193894",
"0.71766114",
"0.71325237",
"0.71305794",
"0.70962787",
"0.7070179",
"0.7036737",
"0.70339066",
"0.7029642",
"0.6944",
"0.69233686",
"0.6919993",
"0.6840911",
"0.6836137",
"0.6830042",
"0.6825024... | 0.82353055 | 0 |
Returns a QModelIndex to represent a cell of a child of parent. | def d6pt(YKHO, rdlD, iVRZ, _AKB=uaAZ.QModelIndex()):
if not _AKB.isValid():
if YKHO.fetched == NAdb.DONE:
cCQQ = YKHO.emissions[rdlD]
return YKHO.createIndex(rdlD, iVRZ, cCQQ)
else:
return YKHO.createIndex(rdlD, iVRZ, YKHO.loading_item)
else:
return _A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _AKB(YKHO, B0aW):\n return B0aW",
"def _AKB(YKHO, bGrB):\n return B0aW()",
"def _AKB(YKHO, d6pt):\n if not d6pt.isValid():\n return TWH2.QModelIndex()\n _jRP = d6pt.internalPointer()\n Pojq = _jRP.getParent()\n if Pojq == YKHO.rootItem:\n return TWH2.QModelIndex()\n rdlD ... | [
"0.78635395",
"0.76218307",
"0.75701195",
"0.7566086",
"0.7501245",
"0.74853826",
"0.74783653",
"0.73699766",
"0.7297245",
"0.71107006",
"0.706125",
"0.7045979",
"0.6704991",
"0.66964597",
"0.6624471",
"0.65847266",
"0.65413654",
"0.64775974",
"0.6286615",
"0.6268158",
"0.624... | 0.0 | -1 |
returns a dictionary containing all keys/values of __dict__ of the instance | def MNRr(YKHO):
z21l = YKHO.__dict__.copy()
z21l['created_at'] = z21l['created_at'].isoformat()
z21l['updated_at'] = z21l['updated_at'].isoformat()
z21l['__class__'] = YKHO.__class__.__name__
return z21l | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dict(YKHO):\n return {G1Hx: getattr(YKHO, G1Hx) for G1Hx in YKHO.__slots__}",
"def MNRr(YKHO):\n return {G1Hx: getattr(YKHO, G1Hx) for G1Hx in super(YKHO.__class__, YKHO).__slots__ + YKHO.__slots__}",
"def jtBC(YKHO: object) -> dict:\n return {H5ew: YKHO.__getattribute__(H5ew) for H5ew in YKHO.__s... | [
"0.83620805",
"0.82027507",
"0.81856984",
"0.8166651",
"0.80495",
"0.80409867",
"0.80245453",
"0.8012551",
"0.8012551",
"0.8012551",
"0.8012551",
"0.8012551",
"0.8012551",
"0.8012551",
"0.8012551",
"0.8012551",
"0.8012551",
"0.7983654",
"0.79471284",
"0.7906889",
"0.7900588",... | 0.0 | -1 |
String representation of this class, i.e., the dictionary representation. Returns str | def zAg0(YKHO):
return str(YKHO.definition) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gTzM(YKHO) -> str:\n return CgYo.pformat(YKHO.dict())",
"def gTzM(YKHO) -> str:\n return CgYo.pformat(YKHO.dict())",
"def zAg0(YKHO):\n return str(dict(YKHO))",
"def zAg0(YKHO):\n return CgYo.pformat(dict(YKHO._asdict()))",
"def zAg0(YKHO):\n vIwR = ''\n for H5ew in YKHO._dict.keys():... | [
"0.854749",
"0.854749",
"0.8527039",
"0.84995466",
"0.8435873",
"0.8413158",
"0.8400045",
"0.8395314",
"0.8379577",
"0.8374036",
"0.83653766",
"0.83653766",
"0.83653766",
"0.83653766",
"0.83653766",
"0.83653766",
"0.83653766",
"0.83653766",
"0.83653766",
"0.83653766",
"0.8365... | 0.0 | -1 |
Check that user with given name and password exists | async def check_user_auth(BaHi: str, VsZH: str):
CBIr = await mv1M.query.where(mv1M.name == BaHi).gino.first()
if not CBIr or not sNjs(CBIr.password_hash, VsZH):
raise jA2G.HTTPForbidden() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nAqh(YKHO, BaHi, jTXt):\n DpUl = YKHO.conn.cursor()\n DpUl.execute('SELECT * FROM users WHERE userName = ? and password = ?', (BaHi, jTXt))\n if DpUl.fetchone() is None:\n return False\n else:\n return True",
"def cmV_(NtEF, jTXt):\n return mv1M.user_exist(NtEF, jTXt)",
"def Jj... | [
"0.81285346",
"0.8013336",
"0.78627896",
"0.77256095",
"0.76918375",
"0.76449794",
"0.76354724",
"0.76338524",
"0.76177216",
"0.75944936",
"0.7574167",
"0.7536651",
"0.75335646",
"0.7496358",
"0.7476867",
"0.74702376",
"0.7451387",
"0.74445885",
"0.7439315",
"0.7438538",
"0.7... | 0.73525524 | 33 |
Get list of available currencies with pagination | async def get_currencies(klRQ: int) -> x1iM[qdHh]:
xDcj = qdHh.query.limit(xiw9).offset(xiw9 * klRQ)
return await xDcj.gino.all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ExyB(QePW):\n return LIYG(dRee, QePW).paginated_response",
"def aUEt():\n return pE4L()",
"def INcZ():\n bD7m = f'{Ms2Z}/currencies?apiKey={C2Hq}'\n geh0 = G4JS.request('GET', bD7m)\n try:\n global currency_list_dict\n NsVM = qQXR.loads(geh0.text)['results']\n except Excepti... | [
"0.7914582",
"0.7620399",
"0.75814885",
"0.7450511",
"0.74139553",
"0.7379166",
"0.7379166",
"0.73599833",
"0.7333403",
"0.72900623",
"0.72597253",
"0.724495",
"0.6871762",
"0.6827224",
"0.6812359",
"0.67677945",
"0.6729527",
"0.6644231",
"0.66077554",
"0.6458984",
"0.6428725... | 0.7910111 | 1 |
Formats humanfriendly string based on epoch seconds | def d8Fy(qtWj):
return ITS7.strftime('%Y-%m-%d|%H:%M:%S', ITS7.localtime(qtWj)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWNY(a1PO):\n i8WE = ITS7.mktime(a1PO.timetuple())\n return '{}'.format(p6zu(i8WE))",
"def dfcb(MaIc):\n return qcWV.fromtimestamp(int(MaIc) / 1000.0).strftime('%Y-%m-%d %H:%M:%S')",
"def GbWJ(qtWj: Union[int, float], FMLJ: str):\n return qcWV.fromtimestamp(qtWj).strftime(FMLJ)",
"def zF2T(fo... | [
"0.7752574",
"0.7628411",
"0.7561287",
"0.74073416",
"0.7271218",
"0.72394013",
"0.72264206",
"0.71302915",
"0.7089826",
"0.6988",
"0.697527",
"0.6810421",
"0.68100196",
"0.6791595",
"0.6743781",
"0.669041",
"0.66440976",
"0.6633527",
"0.6572505",
"0.64163864",
"0.6411636",
... | 0.6409678 | 21 |
Accepts a token (an optional cursor) and returns the next token for the continutation. The results of the query are stored on obj.results. | def q8f8(YKHO, QpfX, YEnM, eOtH=None):
qoqK = YKHO.getBatchSize(QpfX, YEnM)
dixj = YKHO._fetchResults(qoqK, QpfX, YEnM, token=eOtH)
YEnM[FGaI] = dixj
YEnM.results = YEnM[FGaI]
if YEnM[FGaI] and len(YEnM[FGaI]) > 0:
YEnM[z67i] = YEnM[FGaI][0]
else:
YEnM[z67i] = None
YEnM.resul... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xidS(YKHO, qoqK, QpfX, YEnM, eOtH=None):\n xDcj = YKHO.getQuery(QpfX, YEnM)\n if eOtH:\n xDcj.with_cursor(eOtH)\n dixj = xDcj.fetch(qoqK)\n YEnM[YKHO.__NEXT_TOKEN] = xDcj.cursor()\n return dixj",
"def kPci(YKHO, QpfX, YEnM, eOtH=None):\n return YEnM.pop(YKHO.__NEXT_TOKEN)",
"def kP... | [
"0.6614724",
"0.6610568",
"0.6610568",
"0.63289046",
"0.63289046",
"0.6310704",
"0.61549264",
"0.6146173",
"0.6105452",
"0.6094647",
"0.60863155",
"0.6057911",
"0.5893959",
"0.58247656",
"0.58048815",
"0.57928175",
"0.57750577",
"0.5762023",
"0.57492083",
"0.56866455",
"0.563... | 0.64201796 | 3 |
Gets the absolute filename of a given file. | def Qj3A(Ux0P: Text) -> I2jr:
zkiH = Hy7s.path.dirname(xAKo)
return Hy7s.path.join(zkiH, '..', Ux0P) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKBi(nUeQ):\n return nUeQ.absolute()",
"def yFjF(qaEx):\n return Hy7s.path.basename(qaEx)",
"def kxvW(nUeQ):\n return (TLI7(nUeQ), aPr_(nUeQ).split('.')[0])",
"def Juou(IznC):\n L3tS = Hy7s.path.abspath(IznC)\n return L3tS",
"def g_2H(qaEx):\n aPr_ = Hy7s.path.basename(qaEx)\n retu... | [
"0.891307",
"0.8164558",
"0.8025581",
"0.79573816",
"0.7869977",
"0.7843115",
"0.78357434",
"0.7835638",
"0.7783206",
"0.7671651",
"0.76004374",
"0.75644976",
"0.7541444",
"0.75242877",
"0.74857795",
"0.74703586",
"0.7467384",
"0.746219",
"0.7395499",
"0.7389803",
"0.73821473... | 0.8171215 | 1 |
coerce to a tuple object | def sQPo(kN9s: ty.Type[ty.Sequence], uE7_: list, idcn: list):
if idcn[-1] is Ellipsis:
idcn = Hs6x.chain(idcn[:-2], Hs6x.repeat(idcn[-2]))
elif len(idcn) != len(uE7_):
raise TypeError(f'Incorrect number of items in tuple, expected {len(idcn)}, got {len(uE7_)}')
return fIBo([aaKu(z1Rg, XP5J) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XR1G(YEnM):\n if isinstance(YEnM, (str, bytes)):\n return (YEnM,)\n else:\n try:\n return tuple(YEnM)\n except:\n return (YEnM,)",
"def YElZ(WKvO):\n return WKvO if isinstance(WKvO, tuple) else (WKvO,)",
"def Cdjl(WKvO):\n if isinstance(WKvO, tuple):\n... | [
"0.8028797",
"0.76448286",
"0.7567927",
"0.7521585",
"0.7438085",
"0.7409326",
"0.7402428",
"0.7303131",
"0.7232418",
"0.72292316",
"0.7224304",
"0.720277",
"0.71987915",
"0.71941787",
"0.716113",
"0.7149624",
"0.7144438",
"0.7104152",
"0.7089951",
"0.7063752",
"0.7015941",
... | 0.6936394 | 25 |
Checks whether the class a is either the same as b, a subclass of b or b is typing.Any, extending builtin issubclass to check nested type args | def AIPO(Emd4, rV9y: ty.Type[ty.Any], kbGe: ty.Union[ty.Type[ty.Any], ty.Iterable[ty.Type[ty.Any]]], AMvk: bool=False) -> bool:
if not isinstance(kbGe, Yrvv.Iterable):
kbGe = [kbGe]
for SkC9 in kbGe:
if J7OY:
if rV9y is type and SkC9 is not type:
return False
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ja3L(n2Q1, SpII):\n if not isinstance(n2Q1, type):\n return False\n return issubclass(n2Q1, SpII)",
"def xmkf(aUGN, _AKB):\n if aUGN.__name__ == _AKB.__name__:\n if aUGN.__module__ == _AKB.__module__:\n return True\n return any((xmkf(P8oC, _AKB) for P8oC in aUGN.__bases__... | [
"0.72340685",
"0.71588886",
"0.7087245",
"0.70735955",
"0.70176965",
"0.70176965",
"0.70092744",
"0.6972032",
"0.6942389",
"0.69163305",
"0.6873551",
"0.6861307",
"0.685048",
"0.6847678",
"0.6847678",
"0.6847678",
"0.6847678",
"0.68444324",
"0.68444324",
"0.68444324",
"0.6844... | 0.6763751 | 41 |
Applies a function to all instances of the given type that are potentially nested within the given value, caching previously computed modifications to handle repeated elements | def q8G5(Emd4, wYEv: ty.Type[ty.Any], JfyU: ty.Callable, BWXx: ty.Any, wyyA: ty.Optional[ty.Dict[int, ty.Any]]=None) -> Yrvv.Any:
if not Emd4.is_instance(BWXx, (wYEv, Yrvv.Mapping, Yrvv.Sequence)) or (wYEv is not str and Emd4.is_instance(BWXx, str)):
return BWXx
if wyyA is None:
wyyA = {}
WB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KD9O(tk5Y: Exp, a1PO: Type) -> bOPh:\n if tk5Y.type == a1PO:\n return txKf(tk5Y).with_type(Ipc2(a1PO))\n elif WCg9(tk5Y.type):\n Ty9i = tU2N(tk5Y.type.t)\n Ylbp = KD9O(Ty9i, a1PO)\n return m20S(tk5Y, moyw(Ty9i, Ylbp))\n elif isinstance(tk5Y.type, Sf_j):\n return KD9O... | [
"0.5727486",
"0.5724766",
"0.5580197",
"0.55691916",
"0.54870826",
"0.5482057",
"0.53844523",
"0.5361647",
"0.53154516",
"0.5282678",
"0.52679056",
"0.5221339",
"0.51596916",
"0.5152489",
"0.51091474",
"0.51024115",
"0.50978595",
"0.5064373",
"0.505322",
"0.5043003",
"0.49929... | 0.60540724 | 0 |
Looks up a value from SYMBOL_TABLE | def ccBJ(YKHO, mWFP):
return YKHO.SYMBOL_TABLE.get(mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUQK(FGW3):\n aDi_ = tyNF[FGW3 - 1].symbol\n return aDi_",
"def ccBJ(YKHO, mWFP):\n for YRbF in range(len(YKHO.symbols)):\n Csk6 = YKHO.symbols[YRbF][1]\n if Csk6.has_key(mWFP):\n return Csk6[mWFP]\n raise od5i('Symbol Table: Undefine symbol: ', mWFP)",
"def ccBJ(YKHO, ... | [
"0.6930896",
"0.6839189",
"0.6815522",
"0.6774408",
"0.6695154",
"0.6623686",
"0.66119397",
"0.6576153",
"0.6505324",
"0.6499309",
"0.6463032",
"0.6450012",
"0.6427483",
"0.63996214",
"0.6358124",
"0.6341212",
"0.63309133",
"0.62947106",
"0.6294143",
"0.6190663",
"0.6190484",... | 0.75807697 | 0 |
Return a cluster backend to use. | def G_kw() -> Pacs:
return LnnV() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G_kw() -> Pacs:\n return wm8F()",
"def JLXL(Emd4, DDLl=None):\n return DDLl",
"def DDLl():\n return p5cf",
"def JLXL():\n nW_p = BfDw.dist_name()\n DDLl = None\n if nW_p in ['debian', 'debian gnu/linux', 'ubuntu']:\n DDLl = eP4m\n elif 'centos' in nW_p:\n DDLl = c4bH\n ... | [
"0.8033845",
"0.7319465",
"0.73182935",
"0.7152447",
"0.71411437",
"0.7135991",
"0.7081453",
"0.7081453",
"0.7081453",
"0.7076376",
"0.7042942",
"0.70290446",
"0.7026505",
"0.7015073",
"0.7014529",
"0.7007532",
"0.69550276",
"0.6940505",
"0.6937231",
"0.6933957",
"0.6930753",... | 0.8027439 | 1 |
Check if a file exists. | def JgkM(*qIxc):
for pmON in qIxc:
if not Hy7s.path.isfile(pmON):
print('ERROR: File does not exist: %s' % pmON)
HwRy.exit(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def poxP(qaEx):\n return pmON.exists(qaEx)",
"def Pj8c(jQJk):\n bo34.debug('Checking if file \"{}\" exists'.format(jQJk))\n return vtfo('-f', jQJk)",
"def poxP(Ux0P):\n return Hy7s.path.exists(Ux0P)",
"def hZSK(YKHO, Ux0P):\n if Hy7s.path.isfile(Ux0P):\n return True\n else:\n ... | [
"0.8521847",
"0.85014874",
"0.84564763",
"0.84373045",
"0.8423772",
"0.84207684",
"0.84172916",
"0.8410703",
"0.837751",
"0.83162415",
"0.8286798",
"0.82766163",
"0.8270737",
"0.82574165",
"0.8242166",
"0.8228516",
"0.8224987",
"0.8215465",
"0.8201122",
"0.8200044",
"0.819624... | 0.0 | -1 |