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 |
|---|---|---|---|---|---|---|
Verify the parent name. | def Ooxi(wbiw, xtX7, xC3W='root cloud asset'):
if wbiw is None and xtX7 is None:
raise JrY3.RequiredArgumentException('--organization or --folder', 'Should specify the organization, or the folder for {0}.'.format(xC3W))
if wbiw and xtX7:
raise JrY3.ConflictingArgumentsException('organization', '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kgXq(YEnM, dx2i):\n if YEnM.parent is None:\n return False\n if YEnM.parent.name is None:\n return False\n elif YEnM.parent.name == dx2i:\n return True\n else:\n return kgXq(YEnM.parent, dx2i)",
"def GAHn(YKHO):\n nPrm = YKHO.cleaned_data['parent']\n if nPrm == Y... | [
"0.6970864",
"0.6664934",
"0.66571593",
"0.66373706",
"0.6593517",
"0.6502202",
"0.64805377",
"0.6471936",
"0.6451861",
"0.6447965",
"0.6437485",
"0.6419076",
"0.64187086",
"0.6393244",
"0.6373032",
"0.6347423",
"0.6342727",
"0.6342727",
"0.6333138",
"0.6324744",
"0.6259293",... | 0.0 | -1 |
Gets the parent name from organization Id or folder Id. | def k0Yf(wbiw, xtX7, xC3W='root cloud asset'):
Ooxi(wbiw, xtX7, xC3W)
if wbiw:
return 'organizations/{0}'.format(wbiw)
return 'folders/{0}'.format(xtX7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PAwq(YKHO, hbFX) -> str:\n return list(YKHO._nodes[hbFX]['parents'].keys())[0]",
"def PAwq(YKHO, KmYg: str) -> str:\n ACnF = YKHO.parent_types[KmYg]\n return ACnF[1] if len(ACnF) > 1 else ''",
"def H7rZ(YKHO) -> str:\n return YKHO._db_data.parent_id",
"def PAwq(YKHO):\n H7rZ = YKHO.client.... | [
"0.7782075",
"0.77427596",
"0.7166749",
"0.70399106",
"0.7031675",
"0.69821864",
"0.69821864",
"0.6976458",
"0.6922654",
"0.68994695",
"0.6825173",
"0.676997",
"0.6745721",
"0.6745721",
"0.6745548",
"0.66105735",
"0.65837973",
"0.6517638",
"0.6464193",
"0.6452549",
"0.6410143... | 0.66401935 | 15 |
Get the currently active ``Run``, or None if no such run exists. | def Qqce(*qIxc, **B2fa):
return pcvq.active_run(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qI4E(YKHO, id):\n if not id:\n return None\n xDcj = \"SELECT * FROM task_history WHERE run_id='\" + str(id) + \"';\"\n DpUl = YKHO.conn.cursor()\n DpUl.execute(xDcj)\n YKHO.conn.commit()\n iXC1 = DpUl.fetchone()\n if iXC1:\n return nNTj(YKHO.task_history_columns, iXC1)\n e... | [
"0.6719367",
"0.667683",
"0.66108143",
"0.6297161",
"0.62373465",
"0.6203187",
"0.6190535",
"0.61315626",
"0.60009605",
"0.58781546",
"0.5871005",
"0.58470565",
"0.58370906",
"0.58346176",
"0.5791633",
"0.57868844",
"0.5743999",
"0.5713318",
"0.5711502",
"0.5677247",
"0.56724... | 0.0 | -1 |
Create an iaxis DCM through x. | def Nq1b(YRbF, WKvO):
if YRbF == 1:
return oyIN.array([[1.0, 0.0, 0.0], [0.0, YhSR(WKvO), YUNn(WKvO)], [0.0, -YUNn(WKvO), YhSR(WKvO)]])
elif YRbF == 2:
return oyIN.array([[YhSR(WKvO), 0.0, -YUNn(WKvO)], [0.0, 1.0, 0.0], [YUNn(WKvO), 0.0, YhSR(WKvO)]])
elif YRbF == 3:
return oyIN.arra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BcvD(nPrm, Z9rn, WKvO):\n Jw7X = nPrm[Z9rn]\n Jw7X -= WKvO[0]\n Jw7X /= WKvO[-1] - WKvO[0]\n Jw7X *= WKvO.shape[0]\n Jw7X = oyIN.round(WKvO)\n return oyIN.int32(Jw7X)",
"def HNgv(r2gD=[0.0, 1.0], BjEm=0.01):\n jHsn = (r2gD[1] - r2gD[0]) / BjEm\n SsY2 = oyIN.linspace(r2gD[0], r2gD[1], ... | [
"0.5812872",
"0.57493705",
"0.5624533",
"0.5450614",
"0.5312154",
"0.5312154",
"0.53001773",
"0.5287388",
"0.5283072",
"0.52792096",
"0.52753335",
"0.52750856",
"0.5271552",
"0.52705085",
"0.52615935",
"0.525211",
"0.52402693",
"0.5233453",
"0.520453",
"0.5160011",
"0.5140557... | 0.55562156 | 3 |
Sets the fs_type of this V1FCVolumeSource. | def vCE4(YKHO, vCE4):
YKHO._fs_type = vCE4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qwqz(YKHO, qwqz):\n YKHO._FS = qwqz",
"def w_yY(YKHO):\n return gTEQ('PrlFsInfo_GetFsType', YKHO.handle)",
"def Q7_x(YKHO, YsUp):\n YKHO._type = YsUp",
"def q5sG(YKHO, q5sG):\n BbPm = [yt98, yt98, yt98]\n YKHO._file_type = q5sG",
"def ygbW(YKHO):\n return YKHO._properties.get('fstype'... | [
"0.5978828",
"0.5939472",
"0.58510375",
"0.57924235",
"0.57874686",
"0.5742604",
"0.5703257",
"0.5682706",
"0.5682706",
"0.54996294",
"0.5496657",
"0.5426532",
"0.5314042",
"0.53105927",
"0.5301814",
"0.52805483",
"0.5262645",
"0.52338386",
"0.5231952",
"0.5222656",
"0.522265... | 0.83282614 | 0 |
Sets the target_wwns of this V1FCVolumeSource. | def _gxM(YKHO, _gxM):
YKHO._target_wwns = _gxM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def floe(YKHO, WwUX):\n raise NotImplementedError",
"def vTcq(YKHO, pan_):\n YKHO._target = pan_",
"def gY2k(YKHO, x6A0: List[float]):\n YKHO.targets = x6A0",
"def pan_(YKHO, pan_):\n try:\n YKHO._target = pan_\n except Exception as e:\n raise tTpl",
"def pan_(YKHO, pan_):\n ... | [
"0.57057804",
"0.54351145",
"0.5320062",
"0.52955776",
"0.52955776",
"0.5234816",
"0.52083427",
"0.52083427",
"0.5198876",
"0.5191384",
"0.5187812",
"0.5185973",
"0.5140637",
"0.5092823",
"0.50640184",
"0.50515693",
"0.50376767",
"0.5024764",
"0.5023697",
"0.50089866",
"0.499... | 0.8308933 | 0 |
Sets the wwids of this V1FCVolumeSource. | def xOCO(YKHO, xOCO):
YKHO._wwids = xOCO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sNuA(YKHO, LEyJ):\n YKHO.wts = LEyJ",
"def pOke(YKHO, yzQ0):\n raise NotImplementedError",
"def rtj5(YKHO, rtj5):\n YKHO._softwares = rtj5",
"def pOke(YKHO, _mSQ):\n YKHO._call_java('setWeights', _mSQ)",
"def _gxM(YKHO, _gxM):\n YKHO._target_wwns = _gxM",
"def d4NP(YKHO, d4NP):\n YK... | [
"0.5411713",
"0.5174884",
"0.48501077",
"0.48399842",
"0.48100185",
"0.48047268",
"0.4759309",
"0.4707706",
"0.46796995",
"0.46698153",
"0.4651404",
"0.4643313",
"0.46204236",
"0.46175826",
"0.4613186",
"0.45934936",
"0.45877346",
"0.4549931",
"0.45461166",
"0.45155916",
"0.4... | 0.72956747 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, nXXv):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, nXXv):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.84568954",
"0.83923674",
"0.81447554",
"0.81407183",
"0.81326675",
"0.80941343",
"0.8092415",
"0.8092415",
"0.8092415",
"0.8085536",
"0.8085536",
"0.8076502",
"0.8076502",
"0.8066026",
"0.80427635",
"0.80427635",
"0.80427635",
"0.80427635",
"0.80427635",
"0.80427635",
"0.8... | 0.0 | -1 |
Initialize the Instrument object with instrument specific values. | def DbxN(YKHO):
YKHO.acknowledgements = _BRd.acknowledgements()
YKHO.references = _BRd.references(YKHO.name)
bo34.info(YKHO.acknowledgements)
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, YKiD, NArs=None):\n super(FeFw, YKHO).__init__(YKiD)\n YKHO.params = NArs",
"def FIMM(YKHO, YKiD):\n w2IS = YKHO.ENDPOINT.format(instrument=YKiD)\n super(RmZZ, YKHO).__init__(w2IS, method=YKHO.METHOD)",
"def FIMM(YKHO, azoT=None):\n YKHO.coil_combine_method = 'Siemens'\n YKHO.f... | [
"0.7108219",
"0.6918381",
"0.66361827",
"0.6596118",
"0.65359944",
"0.65112686",
"0.645814",
"0.6385697",
"0.6344484",
"0.63261163",
"0.63202775",
"0.63145226",
"0.62796384",
"0.61983144",
"0.6133194",
"0.6133194",
"0.6133194",
"0.6133194",
"0.61211663",
"0.6035945",
"0.59957... | 0.0 | -1 |
Symmetrically normalize adjacency matrix. | def khOB(eQUr):
eQUr = H4yH.coo_matrix(eQUr)
mJjf = oyIN.array(eQUr.sum(1))
tvzN = oyIN.power(mJjf, -0.5).flatten()
tvzN[oyIN.isinf(tvzN)] = 0.0
hEeC = H4yH.diags(tvzN)
return eQUr.dot(hEeC).transpose().dot(hEeC).astype(oyIN.float32).todense() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatten()\n tvzN[oyIN.isinf(tvzN)] = 0.0\n hEeC = oyIN.diag(tvzN)\n return eQUr.dot(hEeC).transpose().dot(hEeC)",
"def ujN0(eQUr):\n eQUr = H4yH.coo_matrix(eQUr)\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN... | [
"0.7884367",
"0.76974994",
"0.76974994",
"0.76974994",
"0.76974994",
"0.76974994",
"0.76974994",
"0.76974994",
"0.76974994",
"0.76974994",
"0.76909643",
"0.75937736",
"0.7565492",
"0.7335031",
"0.7303798",
"0.72680664",
"0.68839365",
"0.68612736",
"0.68591523",
"0.6830935",
"... | 0.59541416 | 52 |
Shorthand to print to `stderr`. | def wU8p(Ol8d):
print(Ol8d, file=HwRy.stderr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ob7F(*qIxc, **B2fa):\n print(*qIxc, file=HwRy.stderr, **B2fa)",
"def P1dF(*qIxc, **B2fa):\n print(*qIxc, file=HwRy.stderr, **B2fa)",
"def p_yA(*qIxc, **B2fa):\n print(*qIxc, file=wIbz, **B2fa)",
"def Y2SS(*qIxc, **B2fa):\n JVz5(HwRy.stderr, *qIxc, **B2fa)",
"def p_yA(tO9_):\n print(tO9_,... | [
"0.80375874",
"0.7994828",
"0.79872626",
"0.79474694",
"0.7902499",
"0.7887973",
"0.7768046",
"0.76535475",
"0.76256835",
"0.7609135",
"0.7524325",
"0.7405375",
"0.7403769",
"0.7322523",
"0.729962",
"0.7099459",
"0.7076431",
"0.7076431",
"0.7076431",
"0.7076431",
"0.7076431",... | 0.715472 | 15 |
Image of an S2Ewthtype, either as type or sort. Type or sort, depending on `key_image`. | def tCeV(Q6kx, p9t2, pR1R, oP8g):
H5ew, LNo8 = p9t2
assert H5ew == a1PO.S2EXP_NODE or H5ew == a1PO.S2EXP_SRT
return LNo8(Q6kx[0][H5ew]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pLXR(Q6kx, lM6_, MbW9=False, bnRK=False):\n if lM6_:\n p9t2 = (a1PO.S2EXP_NODE, P2tI)\n else:\n p9t2 = (a1PO.S2EXP_SRT, NfwB)\n sjXb = list(Q6kx.keys())\n assert len(sjXb) == 1\n H5ew = sjXb[0]\n l9q9 = Q6kx[H5ew]\n if H5ew == a1PO.S2ECST:\n Aofo = rLQR(l9q9, lM6_)\n ... | [
"0.6240164",
"0.62248325",
"0.62132835",
"0.6153079",
"0.60843897",
"0.6084042",
"0.60177356",
"0.59771794",
"0.58658",
"0.57393914",
"0.5686309",
"0.56602865",
"0.56523585",
"0.5604048",
"0.553815",
"0.5518878",
"0.5478991",
"0.54258335",
"0.53277385",
"0.52966064",
"0.52566... | 0.7403787 | 0 |
Return a list of the words in the given text. This function should return model that is valid input to generate_text_uniform. A "word" here consists only of alphanumeric characters (no spaces). | def pAhT(l5Ny: str) -> x1iM[str]:
return str.split(l5Ny) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xqzg(l5Ny):\n return ZbWC.findall('\\\\w+', l5Ny)",
"def V22M(YKHO, l5Ny):\n return ZbWC.findall('\\\\w+', l5Ny)",
"def l4Z4(l5Ny):\n return ZbWC.compile('\\\\w+').findall(l5Ny)",
"def pd6c(l5Ny):\n return [yzQ0 for yzQ0 in l5Ny.split()]",
"def l4Z4(l5Ny):\n gYbi = ZbWC.compile('[^0-9^a-... | [
"0.76658475",
"0.76548034",
"0.7624054",
"0.7539878",
"0.73467",
"0.732196",
"0.71729606",
"0.7162521",
"0.71478117",
"0.70422447",
"0.70145655",
"0.70145655",
"0.7007211",
"0.6955142",
"0.6933722",
"0.6929356",
"0.68670547",
"0.68633395",
"0.67733085",
"0.6754623",
"0.675213... | 0.6804504 | 18 |
Get the balance of a user. | def eb47(YKHO) -> float:
with __n6.connect(p9bx.get_db()) as NCls:
WNtM = WNtM = f'\n SELECT opening_balance, transaction_amount\n FROM bank\n WHERE author_id = {YKHO.user.id}\n ORDER BY id DESC\n LIMIT 1\n '
A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksiw(cuiw, uJjO):\n wMl7 = cuiw.query(mv1M.funds).filter(mv1M.phone_number == uJjO).all()\n return wMl7[0][0]",
"def u0LD(YKHO, uJjO, **B2fa):\n CBIr = mv1M.objects(user_id=uJjO).first()\n print('Saldo actual del usuario: ', float(CBIr.balance))\n n_Zs(workflow=str(YKHO.workflow.pk), name='acc... | [
"0.8467743",
"0.7846682",
"0.7679099",
"0.7501112",
"0.74764895",
"0.74764895",
"0.74698657",
"0.7439111",
"0.7420553",
"0.7396117",
"0.7365959",
"0.7358523",
"0.73010784",
"0.72815967",
"0.7272598",
"0.72690654",
"0.7249619",
"0.7247512",
"0.71552515",
"0.71428496",
"0.71363... | 0.74417883 | 7 |
Subtract from a user's balance. | def wncN(YKHO, Z5kt: float, lo9Y: str='') -> 'Bank':
if Z5kt == 0:
return 0
YKHO.__record_ledger__(-Z5kt, lo9Y)
YKHO.balance -= Z5kt
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def balance(YKHO, OaeV: commands.Context, CBIr: discord.Member=None):\n if CBIr is None:\n CBIr = OaeV.author\n wv49 = await qwxf.get_balance(CBIr)\n VIXL = await qwxf.get_currency_name(OaeV.guild)\n Ig8H = await qwxf.get_max_balance(OaeV.guild)\n if wv49 > Ig8H:\n wv49 = Ig8H\n ... | [
"0.7075836",
"0.67462146",
"0.6665875",
"0.6598069",
"0.65665424",
"0.6514245",
"0.64138657",
"0.63684654",
"0.6357797",
"0.6331959",
"0.63014555",
"0.62946653",
"0.6290872",
"0.6290872",
"0.6290872",
"0.6279405",
"0.6268345",
"0.6268345",
"0.62227154",
"0.61861086",
"0.61861... | 0.6616883 | 3 |
Return bank owner's ID. | def id(YKHO) -> int:
return YKHO.user.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gPmJ(YKHO) -> str:\n return qe4Y.get(YKHO, 'owner_id')",
"def k4C1(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'owner_account_id')",
"def gPmJ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'owner_id')",
"def gPmJ(YKHO) -> str:\n return YKHO.__owner_id",
"def gPmJ(YKHO):\n return YKH... | [
"0.7937787",
"0.7835123",
"0.768965",
"0.76637477",
"0.7534236",
"0.7513479",
"0.739807",
"0.7028205",
"0.6896461",
"0.68459785",
"0.68308526",
"0.6690596",
"0.6637532",
"0.65897995",
"0.65897995",
"0.6586668",
"0.64772516",
"0.6471277",
"0.64561534",
"0.6439039",
"0.642017",... | 0.0 | -1 |
Render and return a response for the index page | def d6pt():
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt():\n return (TvZl('index.html'), 200)",
"def d6pt():\n return (TvZl('index.html'), 200)",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n... | [
"0.87537163",
"0.8734757",
"0.86990386",
"0.8687232",
"0.8669351",
"0.865531",
"0.865531",
"0.8587078",
"0.8587078",
"0.85864466",
"0.8533138",
"0.8533138",
"0.8533138",
"0.8533138",
"0.8533138",
"0.8533138",
"0.8533138",
"0.8533138",
"0.8533138",
"0.8533138",
"0.8533138",
... | 0.85139346 | 45 |
define the prior weight distribution as Normal of mean=0 and stddev=1 | def f2rf(Ot1W, BJGZ):
FGW3 = Ot1W + BJGZ
oyNq = bdPE.Sequential([KCQP.layers.DistributionLambda(lambda a1PO: KCQP.distributions.MultivariateNormalDiag(loc=ZylS.zeros(FGW3), scale_diag=ZylS.ones(FGW3)))])
return oyNq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C1Tw(YKHO, z2bo):\n return wZLW.truncated_normal_initializer(stddev=z2bo)",
"def twsE(YKHO):\n return 1.0 / TFEx(YKHO.alpha - 1)",
"def twsE(YKHO):\n return 0.5",
"def h6h3(r8hN, M1Jx=0.02):\n U78l.init.normal_(r8hN.weight, 0, M1Jx)\n if hasattr(r8hN, 'biais') and r8hN.bias is not None:\n ... | [
"0.7535688",
"0.74445915",
"0.72720885",
"0.72552395",
"0.7232473",
"0.7187721",
"0.69944406",
"0.69675875",
"0.6950132",
"0.6943617",
"0.69266343",
"0.6916947",
"0.6903026",
"0.6901024",
"0.68700665",
"0.6867972",
"0.674518",
"0.66957855",
"0.66808605",
"0.6675005",
"0.66399... | 0.0 | -1 |
Test that we raise if all glyph in the list do not exist. | def KxvW(TBXe):
pmON = '%s/dummy/font.ufo' % yt7q
yvT9 = str(TBXe / aPr_(pmON)) + '.out'
with trZe.raises(p63V):
rt6I([pmON, '-o', yvT9, '-g', 'FOO,BAR']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VyMr(YKHO, *ZWCE):\n if YKHO.glyphNames_:\n for mWFP in ZWCE:\n if mWFP in YKHO.glyphNames_:\n continue\n if mWFP not in YKHO.missing:\n YKHO.missing[mWFP] = YKHO.cur_token_location_",
"def rWIP(YKHO):\n kGys = YKHO.read_metadata_contents()\n ... | [
"0.7234395",
"0.61054254",
"0.6042614",
"0.59862345",
"0.5981548",
"0.59557825",
"0.59420097",
"0.588472",
"0.588472",
"0.5841337",
"0.5794836",
"0.5726097",
"0.5707886",
"0.5707886",
"0.5700919",
"0.5700919",
"0.5659442",
"0.5652448",
"0.5647823",
"0.56136364",
"0.55958986",... | 0.6677484 | 1 |
Randomly adjusts hue. Makes sure the output image is still between 0 and 1. | def Le5G(LNo8, Lk9F=0.02):
def pEaV(LNo8, Lk9F):
with ZylS.name_scope('RandomAdjustHue', values=[LNo8]):
LNo8 = ZylS.image.random_hue(LNo8, Lk9F)
LNo8 = ZylS.clip_by_value(LNo8, clip_value_min=0.0, clip_value_max=1.0)
return LNo8
ZeQR = ZylS.greater(ZylS.random_unifo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mtva(LNo8, RA_F):\n LNo8[..., 0] = oyIN.mod(LNo8[..., 0] + RA_F * 180, 180)\n return LNo8",
"def o_rS(zZcM, iNu8=32, GKPA=0.5, D_7f=1.5, Dd60=0.5, rkYo=1.5, o__q=18):\n\n def asva(zZcM, RA_F, XP5J=0.5):\n \"\"\"Brightness distortion.\"\"\"\n if oyIN.random.uniform(0, 1) > XP5J:\n ... | [
"0.6698813",
"0.66532713",
"0.6619423",
"0.65777075",
"0.65287894",
"0.6448051",
"0.64125663",
"0.63813",
"0.6362785",
"0.63354754",
"0.6315596",
"0.62928206",
"0.61506385",
"0.6129147",
"0.6117146",
"0.6098639",
"0.60819864",
"0.6077889",
"0.60584915",
"0.60569906",
"0.60272... | 0.742048 | 0 |
Randomly distorts color. Randomly distorts color using a combination of brightness, hue, contrast and saturation changes. Makes sure the output image is still between 0 and 1. | def QXSZ(LNo8, pZRI=0):
with ZylS.name_scope('RandomDistortColor', values=[LNo8]):
if pZRI == 0:
LNo8 = ZylS.image.random_brightness(LNo8, max_delta=32.0 / 255.0)
LNo8 = ZylS.image.random_saturation(LNo8, lower=0.5, upper=1.5)
LNo8 = ZylS.image.random_hue(LNo8, max_delta=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_rS(zZcM, iNu8=32, GKPA=0.5, D_7f=1.5, Dd60=0.5, rkYo=1.5, o__q=18):\n\n def asva(zZcM, RA_F, XP5J=0.5):\n \"\"\"Brightness distortion.\"\"\"\n if oyIN.random.uniform(0, 1) > XP5J:\n RA_F = oyIN.random.uniform(-RA_F, RA_F)\n zZcM += RA_F\n return zZcM\n ... | [
"0.83407605",
"0.70909065",
"0.7066611",
"0.69833535",
"0.68047786",
"0.6751169",
"0.64966846",
"0.64572704",
"0.6393666",
"0.6390526",
"0.6389167",
"0.6257692",
"0.6209426",
"0.6118559",
"0.6045419",
"0.6044938",
"0.60421985",
"0.6029736",
"0.59194994",
"0.5903636",
"0.59025... | 0.70877624 | 2 |
Filter out bounding boxes based on overlap with reference box [0, 0, 1, 1]. | def kBJr(Crrw, c8oy, gwAu=0.3, rrBf=None):
with ZylS.name_scope(rrBf, 'bboxes_filter', [Crrw, c8oy]):
cCrA = U6VZ(ZylS.constant([0, 0, 1, 1], c8oy.dtype), c8oy)
ZHfW = cCrA > gwAu
Crrw = ZylS.boolean_mask(Crrw, ZHfW)
c8oy = ZylS.boolean_mask(c8oy, ZHfW)
return (Crrw, c8oy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jqyn(YKHO, c8oy, Crrw):\n Cy6Y = c8oy[:, 2] - c8oy[:, 0]\n F8Lc = c8oy[:, 3] - c8oy[:, 1]\n AMx8 = (Cy6Y > YKHO.min_bbox_size) & (F8Lc > YKHO.min_bbox_size)\n AMx8 = oyIN.nonzero(AMx8)[0]\n return (c8oy[AMx8], Crrw[AMx8])",
"def RAFH(Y5AU, c8oy):\n c8oy = oyIN.copy(c8oy)\n c8oy = oyIN.tr... | [
"0.71711856",
"0.70120054",
"0.6995763",
"0.69317335",
"0.6904704",
"0.6840584",
"0.6824627",
"0.67310613",
"0.6658745",
"0.66085005",
"0.65990233",
"0.65965545",
"0.6593416",
"0.65861106",
"0.65328556",
"0.64946675",
"0.6486343",
"0.646911",
"0.645667",
"0.64438975",
"0.6443... | 0.66897905 | 8 |
Accepts width, height (ints). Returns widthxheight grid with '.' as values. | def EmsD(TVTK, H2v2):
Cs6h = [['.' for YRbF in range(TVTK)] for r845 in range(H2v2)]
return Cs6h | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dZEx(H2v2, TVTK, Ko6S):\n Cs6h = Lm0U(H2v2, TVTK)\n for Mkmy in range(1, H2v2 - 1):\n for Z9rn in range(1, TVTK - 1):\n Cs6h[Mkmy][Z9rn] = Ko6S\n return Cs6h",
"def Lm0U(H2v2, TVTK):\n Cs6h = []\n for Mkmy in range(H2v2):\n rdlD = [0] * TVTK\n Cs6h += [rdlD]\n ... | [
"0.673675",
"0.66852343",
"0.65937024",
"0.6570823",
"0.6495752",
"0.6483444",
"0.6469815",
"0.64483327",
"0.64297074",
"0.6329973",
"0.6247965",
"0.6234013",
"0.62229836",
"0.6218845",
"0.62052065",
"0.61917883",
"0.6190757",
"0.61753505",
"0.6160231",
"0.6132915",
"0.611195... | 0.78619915 | 0 |
Does the user have permission to change this object? | def PFbn(YKHO, QePW, YEnM=None) -> bool:
Uvf2 = super().has_change_permission(QePW, YEnM)
if YEnM is not None:
Uvf2 &= YEnM.owner == QePW.user or QePW.user.is_superuser
return Uvf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PFbn(YKHO, QePW, YEnM=None):\n return False",
"def PFbn(YKHO, QePW, YEnM=None):\n if YEnM is not None:\n return False\n return super().has_change_permission(QePW, YEnM)",
"def PFbn(YKHO, QePW, KAOR=None):\n return False",
"def ZT_m(YKHO, QePW):\n CBIr = QePW.user\n if YKHO == CBI... | [
"0.83135056",
"0.796322",
"0.7936939",
"0.7780505",
"0.77375793",
"0.7651158",
"0.763335",
"0.7607859",
"0.758166",
"0.75177544",
"0.7468441",
"0.7466604",
"0.7428476",
"0.74059796",
"0.7341317",
"0.7308103",
"0.7297571",
"0.7267848",
"0.7254431",
"0.7254304",
"0.7240629",
... | 0.7769302 | 4 |
Function to construct a dictionary of needed parameters for the source and blend | def RmbW(NArs, RKD7):
JZXy = BDUx.Star()
JZXy.fs_g = NArs['f_s_g']
JZXy.sig_fs_g = NArs['sig_f_s_g']
JZXy.g, JZXy.sig_g = pyz7(JZXy.fs_g, JZXy.sig_fs_g)
JZXy.fs_r = NArs['f_s_r']
JZXy.sig_fs_r = NArs['sig_f_s_r']
JZXy.r, JZXy.sig_r = pyz7(JZXy.fs_r, JZXy.sig_fs_r)
JZXy.fs_i = NArs['f_s_i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q7EJ(YKHO):\n YKHO._params = {}\n if YKHO.interp is not None:\n YKHO['x'] = oyIN.arange(0, YKHO.pixels, 1)\n YKHO['y'] = oyIN.arange(0, YKHO.pixels, 1)\n YKHO['xnew'] = oyIN.arange(0, YKHO.pixels, YKHO.interp)\n YKHO['ynew'] = oyIN.arange(0, YKHO.pixels, YKHO.interp)\n ... | [
"0.6123614",
"0.6095503",
"0.5878764",
"0.58631754",
"0.5834689",
"0.57840544",
"0.5771575",
"0.576629",
"0.57458633",
"0.5720387",
"0.56854796",
"0.5619385",
"0.557729",
"0.5567191",
"0.555161",
"0.55226034",
"0.55177516",
"0.551183",
"0.5510357",
"0.55013597",
"0.54996985",... | 0.6665348 | 0 |
Function to convert magnitudes into flux units. Magnitude zeropoint is that used by pyLIMA. | def sAjz(FOSW, tEXh):
qmOO = 27.4
shSu = 10 ** ((FOSW - qmOO) / -2.5)
QcCr = tEXh / (2.5 * oyIN.log10(oyIN.e)) * shSu
return (shSu, QcCr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MnJF(shSu, k3AV=27.0):\n return -2.5 * oyIN.log10(shSu) + k3AV",
"def jQPt(FOSW, ebli):\n return 10 ** (-0.4 * (FOSW - ebli))",
"def vDae(DUgH, LIKO):\n CkN5 = oyIN.empty(len(DUgH))\n nWnW, = oyIN.where(DUgH - LIKO <= 0)\n if len(nWnW) > 0:\n CkN5[nWnW] = -2.5 * oyIN.log10(DUgH[nWnW] ... | [
"0.749976",
"0.73105425",
"0.67144835",
"0.6641556",
"0.66387933",
"0.6525458",
"0.64769655",
"0.6329454",
"0.6298302",
"0.6292132",
"0.61986226",
"0.6160247",
"0.6094438",
"0.60530114",
"0.6042385",
"0.59621245",
"0.5910238",
"0.5910054",
"0.5894932",
"0.5836976",
"0.5811747... | 0.55611235 | 49 |
Function to convert a given floating point value to a string, rounded to the given number of decimal places, and suffix with zero if the value rounds to fewer decimal places than expected | def WrD8(BWXx, Nk58):
BWXx = str(round(BWXx, Nk58))
TifC = BWXx.split('.')[-1]
while len(TifC) < Nk58:
BWXx = BWXx + '0'
TifC = BWXx.split('.')[-1]
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xH5F(wEf2):\n if wEf2 == 0:\n return '0.0'\n z8mE = epAf.log10(wEf2)\n if z8mE < 0:\n z8mE -= 1\n uCmi = -int(z8mE) + 2\n if z8mE > 3:\n return str(int(round(wEf2, uCmi)))\n return str(round(wEf2, uCmi))",
"def RZDw(exwG: float) -> str:\n return '{0:.10f}'.format(exw... | [
"0.77791756",
"0.76723504",
"0.7496394",
"0.7473996",
"0.74602914",
"0.7322896",
"0.72365445",
"0.7120033",
"0.70229053",
"0.70229053",
"0.69958997",
"0.699494",
"0.69812876",
"0.6945331",
"0.693564",
"0.6907206",
"0.6878701",
"0.6878701",
"0.68672186",
"0.68336993",
"0.67851... | 0.0 | -1 |
test initialization of ScipyOdeSolver | def as4H(YKHO):
FAmx = Uqme(integrator=YKHO._integrator, **YKHO._kwargs)
assert FAmx._solver is None
assert FAmx._solver_args == YKHO._kwargs, 'unexpected additional arguments. Keep in mind None and {}.'
assert FAmx._integrator == YKHO._integrator, 'unexpected initialization of integrate function' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def as4H(YKHO):\n jwjR = {'nsteps': 5}\n FAmx = fHeo(**jwjR)\n assert FAmx._solver_args == jwjR, 'unexpected additional arguments. Keep the type in mind.'",
"def as4H(YKHO):\n jwjR = {'nsteps': 5}\n FAmx = T6ZN(**jwjR)\n assert FAmx._solver_kwargs == jwjR, 'unexpected additional arguments. Keep... | [
"0.80970603",
"0.7623596",
"0.6404012",
"0.6244368",
"0.62345624",
"0.6225582",
"0.6223145",
"0.62131876",
"0.6189504",
"0.6107531",
"0.61028105",
"0.60981387",
"0.60879326",
"0.60712326",
"0.60402554",
"0.5983581",
"0.59798837",
"0.5978107",
"0.59713274",
"0.59667414",
"0.59... | 0.8293471 | 0 |
Get date of last model update. | def zB0d(YKHO, QePW, format=None):
zB0d = faf5()
if not zB0d:
raise oEgM('unable to retrieve latest update')
return oGir({'updated_at': zB0d}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nFRz(YKHO):\n return YKHO.last_update",
"def cV9T(YKHO):\n return YKHO._last_update",
"def cV9T(YKHO):\n return YKHO._last_update",
"def GACJ(YKHO):\n return qcWV.strptime(YKHO.last_update, '%Y-%m-%d %H:%M:%S.%f')",
"def GACJ(YKHO):\n return qcWV.strptime(YKHO.last_update, '%Y-%m-%d %H:%... | [
"0.81468487",
"0.78191745",
"0.78191745",
"0.76979446",
"0.76979446",
"0.76656485",
"0.7637578",
"0.7560516",
"0.75564885",
"0.7518988",
"0.7518988",
"0.7514035",
"0.750313",
"0.74939936",
"0.7488683",
"0.74587584",
"0.738158",
"0.73390913",
"0.7309557",
"0.7212866",
"0.72128... | 0.0 | -1 |
Sensitivity == Recall for positive class == True Positive Rate (TPR) | def BYBV(YKHO):
return YKHO.recall | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wbxj(Y8eF, aMgO):\n return AOzf(Y8eF, aMgO)",
"def BYBV(x6A0: List[int], aTLP: List[float], gwAu: float=0.5) -> float:\n return AOzf(x6A0, aTLP, gwAu)",
"def W4lg(Y8eF, aMgO):\n XP5J = oyIN.sum(Y8eF == 1)\n HRJ_ = oyIN.sum((aMgO == Y8eF) & (Y8eF == 1))\n return HRJ_ / XP5J",
"def AOzf(Y8eF... | [
"0.73765707",
"0.6909939",
"0.6847328",
"0.6834903",
"0.6827358",
"0.679122",
"0.67816097",
"0.6779025",
"0.6734615",
"0.6729492",
"0.6719824",
"0.66894984",
"0.66894984",
"0.66894984",
"0.66894984",
"0.66894984",
"0.66894984",
"0.6671621",
"0.6671621",
"0.6671621",
"0.667162... | 0.7260516 | 1 |
Specificity == Recall for negative class == True Negative Rate (TNR) | def cb4L(YKHO):
return YKHO.tn / (YKHO.tn + YKHO.fp) if YKHO.tn + YKHO.fp > 0 else 0.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wbxj(Y8eF, aMgO):\n return AOzf(Y8eF, aMgO)",
"def v33e(Y8eF, aMgO):\n pWm4, ytgA, bGrB, bGrB = YsYU(y_true=Y8eF, y_pred=aMgO).ravel()\n return pWm4 / (pWm4 + ytgA)",
"def BYBV(YKHO):\n return YKHO.recall",
"def AOzf(LVAh, C3ST):\n t16z, r4kf, lBbi, XVS3 = jHLU(LVAh, C3ST)\n hO2W = t16z... | [
"0.6542485",
"0.62172294",
"0.6198692",
"0.6178045",
"0.6134543",
"0.61217785",
"0.6112487",
"0.60828185",
"0.6013489",
"0.59993356",
"0.5987059",
"0.59639305",
"0.5956821",
"0.5937733",
"0.59234333",
"0.5914624",
"0.5895619",
"0.5877519",
"0.5871471",
"0.58496696",
"0.583159... | 0.6005623 | 9 |
If normalize=True, return fracture of misclassifications (y_true != y_pred). Else, return number of misclassifications. | def DdsX(YKHO, NkkI=True):
DdsX = len((YKHO.y_true - YKHO.y_pred).nonzero()[0])
if NkkI:
DdsX /= len(YKHO.y_pred)
return DdsX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cb4L(Y8eF, aMgO):\n Bcwd = YsYU(Y8eF, aMgO)\n return Bcwd[0, 0] / Bcwd[0, :].sum()",
"def pGeN(dixj):\n PTPQ = 0\n _P8T = 0\n for Aofo in dixj:\n if Aofo['image_target'] == Aofo['prediction_image'] and Aofo['std_noise'] != 0:\n _P8T += 1\n if Aofo['success'] == True:\n... | [
"0.6834027",
"0.6468277",
"0.64431214",
"0.641613",
"0.6346094",
"0.63054097",
"0.6299627",
"0.62912655",
"0.62885886",
"0.62706494",
"0.6241315",
"0.6231778",
"0.6212264",
"0.6206508",
"0.61876756",
"0.6175624",
"0.6173592",
"0.6153468",
"0.6144407",
"0.61412317",
"0.6136116... | 0.649688 | 1 |
Matthew's Correlation Coefficient = sqrt(P1 R1 P0 R0), ie. multiplication of geometric means of precision and recall for every class. | def yaJB(YKHO):
HRJ_ = YKHO.tp
pWm4 = YKHO.tn
ytgA = YKHO.fp
FYKK = YKHO.fn
return HRJ_ * pWm4 / oyIN.sqrt((HRJ_ + ytgA) * (HRJ_ + FYKK) * (pWm4 + ytgA) * (pWm4 + FYKK)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VOQk(YsYU):\n JEVk = KG9w.chi2_contingency(YsYU)[0]\n exwG = YsYU.sum().sum()\n WMf6 = JEVk / exwG\n Mkmy, G1Hx = YsYU.shape\n CV1n = max(0, WMf6 - (G1Hx - 1) * (Mkmy - 1) / (exwG - 1))\n t0xN = Mkmy - (Mkmy - 1) ** 2 / (exwG - 1)\n QRSK = G1Hx - (G1Hx - 1) ** 2 / (exwG - 1)\n return oy... | [
"0.6675868",
"0.6654933",
"0.66156834",
"0.6277341",
"0.62697893",
"0.6259764",
"0.6224434",
"0.6208741",
"0.61981934",
"0.6122937",
"0.60562223",
"0.60539615",
"0.6048687",
"0.6041884",
"0.59984845",
"0.5979102",
"0.5958343",
"0.5955607",
"0.5920376",
"0.591997",
"0.5882642"... | 0.6651753 | 2 |
Return the euclidean distance between the vectors 'x' and 'y'. | def Bjor(WKvO, LVAh):
if len(WKvO) != len(LVAh):
raise ValueError('Incompatible dimensions.')
return oyIN.linalg.norm(WKvO - LVAh)
return oyIN.sqrt(oyIN.sum(oyIN.subtract(WKvO, LVAh) ** 2))
wjRY = 0
for YRbF in Ni9Y(len(WKvO)):
OXAZ = WKvO[YRbF] - LVAh[YRbF]
OXAZ = OXAZ ** 2
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def usGr(WKvO, LVAh):\n return PZyS(sum((pow(jzdc - Fg_i, 2) for jzdc, Fg_i in zip(WKvO, LVAh))))",
"def usGr(WKvO, LVAh):\n o4D3, si3g = WKvO\n ajwV, skBL = LVAh\n return PZyS((o4D3 - ajwV) ** 2 + (si3g - skBL) ** 2)",
"def usGr(WKvO: np.ndarray, LVAh: np.ndarray) -> float:\n aZ1n: oyIN.ndarray... | [
"0.8581612",
"0.856618",
"0.8505916",
"0.84947085",
"0.84711915",
"0.8369592",
"0.8315039",
"0.8299614",
"0.8277346",
"0.8259492",
"0.82235307",
"0.81133443",
"0.803702",
"0.7974811",
"0.7968354",
"0.79371613",
"0.7902702",
"0.7880132",
"0.7868129",
"0.7853336",
"0.78476536",... | 0.80550975 | 12 |
Construct a KD Tree node containing 'data'. The left, right, and prev attributes are set in the constructor of BSTNode. | def FIMM(YKHO, nPrm):
if type(nPrm) != oyIN.ndarray:
raise TypeError('A numpy array or a list is required.')
rvhu.__init__(YKHO, nPrm)
YKHO.axis = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, nPrm):\n\n def dmTF(jvSB, Q6kx):\n \"\"\"Recursively descend through the tree to find the node that\n should be the parent of the new node. Do not allow for duplicates.\n \"\"\"\n if Q6kx == jvSB:\n raise ValueError(str(Q6kx.data) + ' is already in t... | [
"0.6991536",
"0.6837276",
"0.6792005",
"0.6787726",
"0.6772486",
"0.67445564",
"0.64986145",
"0.6381475",
"0.63781536",
"0.6319161",
"0.62575626",
"0.62441975",
"0.6178945",
"0.61460155",
"0.61107457",
"0.6089009",
"0.60106057",
"0.6008295",
"0.5980887",
"0.598025",
"0.595371... | 0.6543667 | 6 |
Uses a blurred version of the input tensor to perform "adaptive thresholding", except it boosts or inhibits instead, since there's no threshold. When used on an edge_orientation_detector or stripe detector, this can brighten edges that are faint, but in dark or blurry parts of the mage. It will also dim edges that are ... | def Ua_t(FRUf, uFUa, jiiZ, SABg=1.0 / 2.0, FEri=(1, 1, 1, 1), dvgN='SAME'):
usR_ = ZylS.nn.conv2d(input=FRUf, filter=uFUa, strides=FEri, padding=dvgN)
RvZo = jiiZ / ZylS.pow(ZylS.minimum(usR_, [1]), SABg)
return FRUf * RvZo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def udlB(LNo8, jUwU=5, cgAf=11, gwAu=None, qbr2=False):\n c3VC = jbYn.medianBlur(LNo8, jUwU)\n if qbr2:\n vTpX = jbYn.adaptiveThreshold(c3VC, 255, jbYn.ADAPTIVE_THRESH_GAUSSIAN_C, jbYn.THRESH_BINARY, cgAf, 2)\n else:\n if gwAu is None:\n gwAu = oyIN.quantile(c3VC, 0.1)\n el... | [
"0.6705004",
"0.64273584",
"0.6287692",
"0.6285893",
"0.61030835",
"0.5976032",
"0.59633434",
"0.59179074",
"0.59166205",
"0.58686024",
"0.58613783",
"0.58067876",
"0.57927775",
"0.577745",
"0.5749583",
"0.5749189",
"0.57344246",
"0.57301855",
"0.56846195",
"0.565683",
"0.564... | 0.0 | -1 |
2D gaussian mask should give the same result as MATLAB's fspecial('gaussian',[shape],[sigma]) | def JbXV(ROpF=(3, 3), WTkW=0.5):
r8hN, exwG = [(KG9w - 1.0) / 2.0 for KG9w in ROpF]
LVAh, WKvO = oyIN.ogrid[-r8hN:r8hN + 1, -exwG:exwG + 1]
MKlR = oyIN.exp(-(WKvO * WKvO + LVAh * LVAh) / (2.0 * WTkW * WTkW))
MKlR[MKlR < oyIN.finfo(MKlR.dtype).eps * MKlR.max()] = 0
MjEv = MKlR.sum()
if MjEv != 0:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAWS(zNig, WTkW):\n jzdc, Fg_i = oyIN.ogrid[-zNig / 2:zNig / 2, -zNig / 2:zNig / 2]\n ZHfW = jzdc ** 2 + Fg_i ** 2\n ZHfW = oyIN.exp(-ZHfW.astype('float') / (2 * float(WTkW ** 2)))\n return ZHfW",
"def IeI1(ROpF=(3, 3), WTkW=0.5):\n r8hN, exwG = [(KG9w - 1.0) / 2.0 for KG9w in ROpF]\n LVAh,... | [
"0.78298295",
"0.7562447",
"0.72262615",
"0.7156081",
"0.6948819",
"0.68495923",
"0.6787495",
"0.67696434",
"0.6715893",
"0.6712144",
"0.6687262",
"0.6681933",
"0.6675972",
"0.66417176",
"0.6611884",
"0.65843153",
"0.65664244",
"0.6559194",
"0.650544",
"0.65041184",
"0.648513... | 0.6751125 | 8 |
Prefix is a string to be corrected. N is the maximum number of suggestions to return. | def Kf_E(YKHO, y0cW, ywwl):
def bTZa():
KoG3, u54L = ('abcdefghijklmnopqrstuvwxyz'.upper(), len(y0cW))
yield from (y0cW[:YRbF] + vC9B + y0cW[YRbF:] for YRbF in range(u54L + 1) for vC9B in KoG3)
yield from (y0cW[:YRbF] + y0cW[YRbF + 1:] for YRbF in range(u54L))
yield from (y0cW[:YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iex2(n_L_, G1Hx):\n exwG = len(n_L_)\n Aofo = []\n for u54L in range(G1Hx, exwG - G1Hx + 1):\n for yKcO in range(1, exwG - u54L):\n y0cW = n_L_[:yKcO]\n ZI14 = n_L_[yKcO + u54L:]\n vOyM = y0cW + str(u54L) + ZI14\n Aofo.append(vOyM)\n return Aofo",
... | [
"0.59214896",
"0.5845191",
"0.5781783",
"0.57275796",
"0.56218916",
"0.5587917",
"0.5567679",
"0.55003136",
"0.5457906",
"0.5360151",
"0.5347246",
"0.5333247",
"0.51826334",
"0.51765376",
"0.51651806",
"0.5148544",
"0.5114489",
"0.5092106",
"0.5069504",
"0.5036377",
"0.503573... | 0.74329436 | 0 |
Testing if an empty Feed's to_dict behaves as expected. | def g7J2(YKHO):
aEqx = dict(feed=[])
QUSx = UPGR()
assert QUSx.to_dict() == aEqx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXHM(YKHO):\n aEqx = '{\"feed\": []}'\n QUSx = UPGR()\n assert QUSx.to_json() == aEqx",
"def Ur0x(YKHO):\n\n class Person(wOed):\n mWFP = NP6E()\n ZJe_ = LooS(bounds=(0, None))\n VCYo = aSlI(of=NP6E())\n BZgl = {'name': 'Joe Shmoe', 'age': 21, 'siblings': ['Dick Shmoe', 'J... | [
"0.7286628",
"0.6306138",
"0.6147728",
"0.6085076",
"0.6030236",
"0.6020599",
"0.59776336",
"0.59496844",
"0.5942206",
"0.5891711",
"0.584421",
"0.5740076",
"0.5644896",
"0.56419814",
"0.56403023",
"0.56403023",
"0.56403023",
"0.5623869",
"0.5614908",
"0.55974066",
"0.5594574... | 0.8887722 | 0 |
Add a magnitude value to the mag table. | def yl70(YKHO, Ebru, r8hN, m0FG):
if YKHO.mag is None:
ZWCE = ['BAND', 'MAG', 'MAG_ERR']
m1c7 = [sRsD['MAG'][mWFP]['dtype'] for mWFP in ZWCE]
YKHO.mag = TQJD(names=ZWCE, rows=[[Ebru, r8hN, m0FG]], dtype=m1c7, masked=True)
luvd('MAG', YKHO.mag)
elif Ebru in YKHO.mag['BAND']:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yl70(YKHO, XdG6, iSjc, FOSW, tEXh, ulrI, bmCG):\n Xf84 = TQJD(names=YKHO.__mag_colnames, data=[[XdG6], [iSjc], [FOSW], [tEXh], [ulrI], [bmCG]])\n gi2S.add_tables(YKHO, Xf84)",
"def v5ke(YKHO, input):\n YKHO.magflux = input",
"def YXbZ(YKHO, YXbZ):\n YKHO._magnitude = YXbZ",
"def vriw(YKHO, qM... | [
"0.73281246",
"0.72576725",
"0.7209636",
"0.67425555",
"0.67243344",
"0.64906657",
"0.6241515",
"0.6122535",
"0.60030633",
"0.5874227",
"0.5790341",
"0.5733299",
"0.56979436",
"0.5664324",
"0.56450087",
"0.5555322",
"0.5554078",
"0.5535323",
"0.54744095",
"0.54577047",
"0.545... | 0.68618625 | 3 |
Gets the db_name of this DataComparisonViewSeries. | def wnys(YKHO):
return YKHO._db_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0tD(YKHO) -> str:\n return YKHO.dbname",
"def zndY(YKHO):\n return Fv2L.db_name",
"def N5CR(YKHO) -> str:\n return qe4Y.get(YKHO, 'database_name')",
"def s0ar(YKHO):\n return YKHO._base.getDatabaseName()",
"def s0ar(YKHO):\n raise NotImplementedError",
"def s0ar(YKHO):\n return YKH... | [
"0.7382984",
"0.71715534",
"0.71187735",
"0.7101013",
"0.70622605",
"0.6974287",
"0.68728095",
"0.66000754",
"0.65394896",
"0.64934355",
"0.6480922",
"0.64536273",
"0.6439797",
"0.6425338",
"0.6402414",
"0.63960105",
"0.63682497",
"0.63577193",
"0.63577193",
"0.63282716",
"0.... | 0.7617493 | 0 |
Sets the db_name of this DataComparisonViewSeries. | def wnys(YKHO, wnys):
YKHO._db_name = wnys | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def set_db_name_field(YKHO, vtJM):\n YKHO.db_name_field = vtJM",
"def WZrJ(YKHO, mWFP, lqyV=False):\n assert not hasattr(YKHO, '_dbcnx')\n if mWFP == YKHO.db.get('name'):\n return\n if not uwaB.NAME_RX.match(mWFP):\n raise ValueError('invalid database name')\n if lqyV:\n ... | [
"0.71345747",
"0.6528521",
"0.619897",
"0.6170134",
"0.6091895",
"0.6073515",
"0.59303135",
"0.5917222",
"0.58886814",
"0.5882192",
"0.57869935",
"0.57480305",
"0.5691971",
"0.56839836",
"0.5666901",
"0.5666901",
"0.5648025",
"0.55824363",
"0.55642724",
"0.5561375",
"0.554339... | 0.7715065 | 0 |
Gets the query of this DataComparisonViewSeries. | def xDcj(YKHO):
return YKHO._query | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xDcj(YKHO):\n return YKHO._query",
"def Qre7(YKHO):\n return YKHO._query",
"def xDcj(YKHO):\n return YKHO.__query",
"def xDcj(YKHO):\n return YKHO.details[Jgb0]",
"def vnpH(YKHO):\n w2IS = UtR2[YKHO.sync_data.endpoint_index]\n _5yy = YKHO.sync_data.markers.get(YKHO.sync_data.endpoint_... | [
"0.7015593",
"0.69879746",
"0.6977874",
"0.6912564",
"0.68000424",
"0.64849216",
"0.64579654",
"0.6355771",
"0.6249482",
"0.61530405",
"0.60995746",
"0.60608363",
"0.6040059",
"0.597995",
"0.5891397",
"0.5880802",
"0.5876242",
"0.5849232",
"0.5846716",
"0.5846716",
"0.579728"... | 0.69825613 | 3 |
Sets the host of this DataComparisonViewSeries. | def KcEq(YKHO, KcEq):
YKHO._host = KcEq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KcEq(YKHO, KcEq):\n if KcEq is None:\n raise ValueError('Invalid value for `host`, must not be `None`')\n YKHO._host = KcEq",
"def NPYu(YKHO, MKlR):\n YKHO.host = MKlR\n return YKHO",
"def KcEq(YKHO, KcEq: str):\n YKHO._host = KcEq",
"def KcEq(YKHO, KcEq):\n try:\n YKHO._h... | [
"0.658437",
"0.63947016",
"0.62381077",
"0.6224523",
"0.6116356",
"0.5977164",
"0.5956971",
"0.5897918",
"0.5897918",
"0.587505",
"0.5738361",
"0.5738361",
"0.57100856",
"0.56626105",
"0.5651834",
"0.55388063",
"0.5532677",
"0.5532677",
"0.54895324",
"0.54895324",
"0.53642064... | 0.6636628 | 2 |
find difference in days between two dates in format YYYYMMDD | def RQrg(w0do, Ilc0):
_sQW = qcWV.datetime.strptime(w0do, '%Y-%m-%d').date()
AjzU = qcWV.datetime.strptime(Ilc0, '%Y-%m-%d').date()
return (_sQW - AjzU).days | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fb4y(Ilc0, w0do):\n return abs(w0do - Ilc0).days",
"def XfaV(si3g, gpRq, AjzU, skBL, E43s, _sQW):\n Ilc0 = _c1T(si3g, gpRq, AjzU)\n w0do = _c1T(skBL, E43s, _sQW)\n return abs(w0do - Ilc0)",
"def qfAF(YKHO, AjzU, _sQW):\n YKHO.is_not_used()\n try:\n AjzU = YKHO.format_date(AjzU)\n ... | [
"0.83919436",
"0.77456963",
"0.762012",
"0.7521651",
"0.7509029",
"0.74992144",
"0.7373743",
"0.70983493",
"0.7091247",
"0.7035548",
"0.69674397",
"0.6934707",
"0.6909548",
"0.69010127",
"0.6872274",
"0.6785714",
"0.67335755",
"0.66883916",
"0.6635921",
"0.6619084",
"0.661760... | 0.81366277 | 1 |
Only admin can review story | def bRaD(YKHO):
YKHO.client.post('/api/stories', headers={'token': gtbI}, data=qQXR.dumps(yzEO))
Ylbp = YKHO.client.put('/api/stories/1/review', headers={'token': gtbI}, data=qQXR.dumps({'status': 'Approved'}))
Aofo = qQXR.loads(Ylbp.data.decode())
YKHO.assertEqual(Aofo['message'], 'Permission denied')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Amtr(YKHO):\n YKHO.assertFalse(YKHO.story.user_can_change(YKHO.user2))",
"def dn11(YKHO):\n YKHO.assertTrue(YKHO.story.user_can_change(YKHO.admin_user))",
"def n68o(l3QS):\n return wC2y() and l3QS.adder_id == cuiw['user_id']",
"def rjN5(YKHO, CBIr, XkTm, Slbv):\n if not XkTm.is_under_review()... | [
"0.66325384",
"0.65592504",
"0.6403234",
"0.6373382",
"0.63636655",
"0.632945",
"0.63272446",
"0.6281198",
"0.6268817",
"0.62612724",
"0.62580127",
"0.6228061",
"0.6190261",
"0.618594",
"0.6161414",
"0.6161414",
"0.61550725",
"0.61499006",
"0.6138184",
"0.60889876",
"0.608685... | 0.84144396 | 0 |
Reverse the specified axis directions. | def z_dG(YKHO, WKvO: bool, LVAh: bool, epBp: bool) -> None:
jbO7 = YKHO.i2c.read(YKHO.Register.AXIS_MAP_SIGN, 1)[0]
if WKvO:
jbO7 |= 1 << 2
else:
jbO7 &= ~(1 << 2)
if LVAh:
jbO7 |= 1 << 1
else:
jbO7 &= ~(1 << 1)
if epBp:
jbO7 |= 1 << 0
else:
jb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gxEw(YKHO):\n YKHO.left_motor.reverse()\n YKHO.right_motor.reverse()",
"def T9zC(YKHO, iBLD):\n YKHO._front_left_wheel.clockwise_rotate(iBLD + PBCb + R8ip)\n YKHO._front_right_wheel.anticlockwise_rotate(iBLD + xdKi)\n YKHO._rear_left_wheel.clockwise_rotate(iBLD + R8ip)\n YKHO._rear_right_wh... | [
"0.65726304",
"0.6537739",
"0.6431789",
"0.64169574",
"0.6324468",
"0.6249376",
"0.6192049",
"0.6143278",
"0.6143278",
"0.6088696",
"0.59875935",
"0.5986616",
"0.5986539",
"0.5979762",
"0.5958174",
"0.5943273",
"0.5941754",
"0.5929439",
"0.5923644",
"0.59128803",
"0.58859324"... | 0.7721019 | 0 |
Returns dataset records index for a given dataset id The dataset info is stored in two elasticsearch indices. The main index where all datasets definition are stored and an specific dataset index for data records. This function calculates the corresponding dataset records index for a given dataset id. | def n2Pd(c55i: str) -> str:
return CIos.format(c55i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BNaz(YKHO, id):\n raise NotImplementedError",
"def lhlq(YKHO, id):\n raise NotImplementedError",
"def ewPa(yZn6):\n x0hE, V_s1 = NEpr()\n Ylbp = x0hE.search(index=V_s1 + '*')\n for AIu6 in Ylbp['hits']['hits']:\n if AIu6['_id'] in yZn6:\n return AIu6['_index']",
"def neBz... | [
"0.5957523",
"0.5783832",
"0.571519",
"0.5693084",
"0.5659861",
"0.5606792",
"0.5578864",
"0.5478477",
"0.5458815",
"0.538822",
"0.5344541",
"0.5331411",
"0.53035897",
"0.5291753",
"0.5272479",
"0.5262516",
"0.52181613",
"0.5204666",
"0.51908666",
"0.5185456",
"0.51659465",
... | 0.7688621 | 0 |
Finds a dataset by name | def m74Y(YKHO, mWFP: str, qsJ6: Optional[str]) -> h8nf[cx5V]:
__n6 = cx5V(name=mWFP, owner=qsJ6, task=oDrI.text_classification)
C13M = YKHO._es.get_document_by_id(index=FNMk, doc_id=__n6.id)
if not C13M:
dixj = YKHO._es.list_documents(index=FNMk, query={'query': {'term': {'name.keyword': mWFP}}})
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LrZq(mWFP):\n return iujc[mWFP.lower()]",
"def j_oG(YKHO, mWFP: str) -> h8nf['Dataset']:\n raise NotImplementedError",
"def lQn7(j3aw):\n RaQh = 'data.' + j3aw + '_dataset'\n toPU = ANWz.import_module(RaQh)\n __n6 = None\n txHQ = j3aw.replace('_', '') + 'dataset'\n for mWFP, Emd4 in to... | [
"0.8315046",
"0.78612006",
"0.7656871",
"0.76313376",
"0.7596329",
"0.7557096",
"0.7557096",
"0.7557096",
"0.7304355",
"0.72841144",
"0.7221243",
"0.71844554",
"0.7091887",
"0.70574844",
"0.70395064",
"0.6923077",
"0.6923077",
"0.68659073",
"0.68367636",
"0.68367636",
"0.6812... | 0.7266562 | 10 |
close the connection on destruction | def fFx9(YKHO):
YKHO.sock.shutdown(GGmw.SHUT_RDWR)
YKHO.sock.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n YKHO.connection = None",
"def DDI8(YKHO):\n YKHO.connection.close()",
"def mzWe(YKHO):\n if YKHO.connection:\n YKHO.connection.destroy()\n YKHO.connection = None",
"def DDI8(YKHO):\n YKHO.connection = None",
"def DDI8(YKHO):\n YKHO.conn.close()\n YKHO.destr... | [
"0.829934",
"0.8239212",
"0.8224784",
"0.8180476",
"0.816377",
"0.81573224",
"0.8086401",
"0.80557156",
"0.8050782",
"0.8018552",
"0.8018552",
"0.7987147",
"0.7973549",
"0.7973549",
"0.7973549",
"0.7973549",
"0.7973549",
"0.7973549",
"0.7973549",
"0.7967071",
"0.79364413",
... | 0.0 | -1 |
Get a duplicated an orderSource by id Returns a duplicated orderSource identified by the specified id. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. | def Q1sv(YKHO, Vz5i, **B2fa):
HhGF = ['order_source_id']
HhGF.append('callback')
NArs = locals()
for H5ew, wEf2 in BVGD(NArs['kwargs']):
if H5ew not in HhGF:
raise TypeError("Got an unexpected keyword argument '%s' to method get_duplicate_order_source_by_id" % H5ew)
NArs[H5ew... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jXVg(YKHO, Vz5i, **B2fa):\n HhGF = ['order_source_id']\n HhGF.append('callback')\n NArs = locals()\n for H5ew, wEf2 in BVGD(NArs['kwargs']):\n if H5ew not in HhGF:\n raise TypeError(\"Got an unexpected keyword argument '%s' to method get_order_source_by_id\" % H5ew)\n NArs[... | [
"0.66745776",
"0.5517342",
"0.52478254",
"0.5221883",
"0.5098154",
"0.50221986",
"0.5011595",
"0.49596417",
"0.49518993",
"0.49217278",
"0.48122165",
"0.48106334",
"0.4796126",
"0.4796126",
"0.47762358",
"0.4775734",
"0.46240535",
"0.45958412",
"0.45636833",
"0.45395464",
"0.... | 0.8174212 | 0 |
Get an orderSource by id Returns the orderSource identified by the specified id. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. | def jXVg(YKHO, Vz5i, **B2fa):
HhGF = ['order_source_id']
HhGF.append('callback')
NArs = locals()
for H5ew, wEf2 in BVGD(NArs['kwargs']):
if H5ew not in HhGF:
raise TypeError("Got an unexpected keyword argument '%s' to method get_order_source_by_id" % H5ew)
NArs[H5ew] = wEf2
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GBvJ(YKHO, id, **B2fa):\n B2fa['_return_http_data_only'] = True\n if B2fa.get('callback'):\n return YKHO.retrieve_source_with_http_info(id, **B2fa)\n else:\n nPrm = YKHO.retrieve_source_with_http_info(id, **B2fa)\n return nPrm",
"def X4KG(YKHO, id, **B2fa):\n HhGF = ['id']\n ... | [
"0.7140801",
"0.615545",
"0.550196",
"0.54477537",
"0.540144",
"0.5393389",
"0.5299431",
"0.52896816",
"0.51840806",
"0.51412636",
"0.5048842",
"0.5035559",
"0.50302464",
"0.49424887",
"0.49166688",
"0.4843133",
"0.48154768",
"0.4772977",
"0.4703831",
"0.46779385",
"0.4669708... | 0.7147534 | 0 |
Update an orderSource Updates an existing orderSource using the specified data. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. | def FC6e(YKHO, TBsA, **B2fa):
HhGF = ['body']
HhGF.append('callback')
NArs = locals()
for H5ew, wEf2 in BVGD(NArs['kwargs']):
if H5ew not in HhGF:
raise TypeError("Got an unexpected keyword argument '%s' to method update_order_source" % H5ew)
NArs[H5ew] = wEf2
del NArs['k... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SPx8(YKHO, id, **B2fa):\n B2fa['_return_http_data_only'] = True\n if B2fa.get('callback'):\n return YKHO.update_source_with_http_info(id, **B2fa)\n else:\n nPrm = YKHO.update_source_with_http_info(id, **B2fa)\n return nPrm",
"def BLZ9(YKHO, id, **B2fa):\n HhGF = ['id', 'body'... | [
"0.71573055",
"0.5993753",
"0.5870925",
"0.55949724",
"0.543207",
"0.5273428",
"0.5209868",
"0.52072215",
"0.51247984",
"0.5100473",
"0.5095568",
"0.5090743",
"0.49511385",
"0.49097335",
"0.48962596",
"0.48806354",
"0.48650104",
"0.4835693",
"0.48043844",
"0.4793257",
"0.4754... | 0.667457 | 1 |
Resets the sampling distribution to its initial state. | def SiRx(YKHO):
YKHO.st = Bpqy.SegmentTreeSampler(YKHO.n, oyIN.ones(YKHO.n) * YKHO.reg, YKHO.random_state) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO._cur_state = YKHO._sample_state(YKHO._mdp.I)\n YKHO._prev_state = YKHO._cur_state",
"def SiRx(YKHO) -> None:\n YKHO._rng = tuKI.default_rng(YKHO.seed)",
"def SiRx(YKHO):\n YKHO.scaler = None\n YKHO.isFitted = False\n YKHO.__create_scaler()",
"def SiRx(YKHO):\n supe... | [
"0.8138001",
"0.7383074",
"0.7305408",
"0.72891945",
"0.72319645",
"0.72319645",
"0.72319645",
"0.72319645",
"0.72319645",
"0.72319645",
"0.72319645",
"0.72319645",
"0.72319645",
"0.72319645",
"0.72319645",
"0.71908796",
"0.71828336",
"0.706526",
"0.70501596",
"0.6940053",
"0... | 0.740369 | 1 |
Return the TensorBay dataset ID. | def c55i(YKHO) -> str:
return YKHO._dataset_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hq8C(YKHO) -> int:\n return YKHO.dataset_id",
"def c55i(YKHO) -> str:\n return qe4Y.get(YKHO, 'dataset_id')",
"def c55i(YKHO) -> str:\n return qe4Y.get(YKHO, 'dataset_id')",
"def c55i(YKHO) -> str:\n return qe4Y.get(YKHO, 'dataset_id')",
"def TSea(YKHO):\n return YKHO.prDoc['inputs']['da... | [
"0.7654164",
"0.76146555",
"0.76146555",
"0.76146555",
"0.74554205",
"0.7189322",
"0.7109422",
"0.6466518",
"0.6372178",
"0.63105994",
"0.6289424",
"0.62080204",
"0.6205634",
"0.6171636",
"0.6157744",
"0.6016064",
"0.59797025",
"0.5950912",
"0.5935619",
"0.5921152",
"0.588000... | 0.7521779 | 4 |
Create the tag for a commit. | def XSbx(YKHO, mWFP: str, XkTm: Optional[str]=None) -> None:
if not XkTm:
YKHO._status.check_authority_for_commit()
XkTm = YKHO._status.commit_id
aqR5: cuzp[str, ImMB] = {'commit': XkTm, 'name': mWFP}
YKHO._client.open_api_do('POST', 'tags', YKHO.dataset_id, json=aqR5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XSbx(TZ9E, AGPF=None):\n NJG4('git tag {0}'.format(TZ9E), shell=True, cwd=AGPF)",
"def uzS3(YKHO, Ch5G, TZ9E):\n pass",
"def DB4H(osAS: List[git.objects.commit.Commit], TZ9E: semantic_version.Version) -> str:\n iI6i = 'Release {} \\n\\n'.format(str(TZ9E))\n for Ol8d in [Z9rn.message for Z9rn in... | [
"0.69922817",
"0.6541272",
"0.64632326",
"0.64579797",
"0.6395882",
"0.6382432",
"0.6374895",
"0.6246311",
"0.6019642",
"0.6014438",
"0.5927673",
"0.592331",
"0.59022206",
"0.586923",
"0.5859174",
"0.5837791",
"0.5830196",
"0.58115965",
"0.58014315",
"0.5798078",
"0.5756393",... | 0.65079796 | 2 |
Test that a ``DatasetSparseArray`` can be valueinitialized from any Scipy sparse array or matrix. | def M1YE(YKHO, q6Nx):
ome8 = oMWO(q6Nx)
assert ome8.info['type_id'] == 'sparse_array'
assert ome8.info['py_type'] == f'scipy.sparse.{type(q6Nx).__qualname__}'
assert ome8.sparse_array_class is type(q6Nx)
FoW6 = ome8.get_value()
assert isinstance(FoW6, type(q6Nx))
assert (q6Nx.todense() == Fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qTV6(YKHO):\n WKvO, wmYl, KCHu = YKHO.create_testdata()\n D5gV = Z1Dr()\n GfdN = D5gV.check_sparse(WKvO)\n YKHO.assertEqual(oyIN.all(GfdN == WKvO), True)\n GfdN = D5gV.check_sparse(KCHu)\n YKHO.assertIsInstance(GfdN, oyIN.ndarray)\n YKHO.assertEqual(oyIN.all(GfdN == KCHu.todense()), True)"... | [
"0.7118118",
"0.66917944",
"0.667415",
"0.66453356",
"0.6608166",
"0.6524533",
"0.65137887",
"0.6513757",
"0.6392806",
"0.63385946",
"0.6295052",
"0.61761546",
"0.6168989",
"0.61542964",
"0.6119205",
"0.61092794",
"0.6096328",
"0.6076661",
"0.6062966",
"0.60532755",
"0.597598... | 0.7380421 | 0 |
Test that a ``DatasetSparseArray`` is correctly bindinitialized. | def gRFO(YKHO, q6Nx):
XkiF = oMWO(q6Nx).bind
ome8 = oMWO(bind=XkiF)
assert ome8.info['type_id'] == 'sparse_array'
assert ome8.info['py_type'] == f'scipy.sparse.{type(q6Nx).__qualname__}'
assert ome8.sparse_array_class is type(q6Nx)
FoW6 = ome8.get_value()
assert isinstance(FoW6, type(q6Nx))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M1YE(YKHO, q6Nx):\n ome8 = oMWO(q6Nx)\n assert ome8.info['type_id'] == 'sparse_array'\n assert ome8.info['py_type'] == f'scipy.sparse.{type(q6Nx).__qualname__}'\n assert ome8.sparse_array_class is type(q6Nx)\n FoW6 = ome8.get_value()\n assert isinstance(FoW6, type(q6Nx))\n assert (q6Nx.tod... | [
"0.65316635",
"0.6366145",
"0.6008172",
"0.5721807",
"0.5670536",
"0.56609863",
"0.56609863",
"0.5634005",
"0.56091774",
"0.55947524",
"0.55246085",
"0.5432445",
"0.53849155",
"0.53728503",
"0.53639317",
"0.5355728",
"0.53400546",
"0.53393406",
"0.5327039",
"0.53094894",
"0.5... | 0.80727464 | 0 |
Formats a yaml template. | def pWhU(eJb6, **B2fa):
rPXJ = xV9b(eJb6)
try:
return rPXJ.substitute(PWgb(B2fa or {}, reducer='dot'))
except KeyError as e:
raise RuntimeError('Unknown placeholder: {}'.format(tTpl.args[0])) from tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pWhU(rPXJ, GPtr):\n e27C = rPXJ\n for G1Hx, Ty9i in GPtr.items():\n e27C = e27C.replace('${%s}' % G1Hx, Ty9i)\n return e27C",
"def IuY5(YKHO):\n pass",
"def pWhU(YKHO, nVWr):\n dixj = nVWr.data\n i_PC = QVc1()\n ChRH = i_PC.dump(dixj)\n print(ChRH)\n return ''",
"def eJb... | [
"0.75154",
"0.6408589",
"0.63374305",
"0.60574484",
"0.60236526",
"0.5820675",
"0.5723422",
"0.57128394",
"0.56727976",
"0.5636376",
"0.5549241",
"0.5502198",
"0.5487231",
"0.5474436",
"0.5458711",
"0.5455569",
"0.5455398",
"0.54478973",
"0.5446734",
"0.5438602",
"0.54193604"... | 0.73730516 | 1 |
Create a super user of the system, requiring Email and password. | def HvMu():
D3lj = idDS('User E-Mail')
JAPf = idDS('Confirm E-Mail')
if not D3lj == JAPf:
HwRy.exit('\nCould not create user: E-Mail did not match')
if not abGk.match(D3lj):
HwRy.exit('\nCould not create user: Invalid E-Mail addresss')
jTXt = GgOB('User password')
wGkt = GgOB('Co... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, D3lj, jTXt, **wdCM):\n return YKHO.create_user(D3lj, jTXt, is_staff=True, is_superuser=True, **wdCM)",
"def Zp54(YKHO, D3lj, jTXt, **wdCM):\n wdCM.setdefault('is_staff', True)\n wdCM.setdefault('is_superuser', True)\n wdCM.setdefault('is_active', True)\n if wdCM.get('is_superuser') ... | [
"0.8160329",
"0.81196326",
"0.81131476",
"0.80929947",
"0.8092059",
"0.8080631",
"0.8066219",
"0.8066219",
"0.8066219",
"0.8036268",
"0.8031962",
"0.8010611",
"0.8004735",
"0.79972184",
"0.7988099",
"0.7980699",
"0.79716736",
"0.79564136",
"0.7942371",
"0.7941538",
"0.7926197... | 0.85160816 | 0 |
Constructor for Thompson Sampling Agent on 10 armed test bed | def FIMM(YKHO, tqmL: List[Bandit]):
YKHO.bandits = tqmL
YKHO.mu_pri = oyIN.zeros(len(YKHO.bandits))
YKHO.var_pri = oyIN.ones(len(YKHO.bandits)) * 5
YKHO.mu = YKHO.mu_pri
YKHO.var = YKHO.var_pri
YKHO.var0 = 1
YKHO.logging = l7bS() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n super(FGEj, YKHO).__init__(name='trise', observed=False)",
"def FIMM(YKHO):\n edV9.__init__(YKHO)\n YKHO._registeredIdentifiers = set()\n YKHO._prefixToIdentifiers = {}\n YKHO._inputIdentifiers = {}\n YKHO._targetEvaluation = None\n YKHO._solutionExport = None\n YKHO._re... | [
"0.6751709",
"0.658563",
"0.65591943",
"0.6425104",
"0.63007",
"0.6160114",
"0.6113387",
"0.60899556",
"0.6040868",
"0.6028223",
"0.60256225",
"0.6022297",
"0.60169363",
"0.60123956",
"0.6004781",
"0.5999516",
"0.598555",
"0.597509",
"0.59633285",
"0.595142",
"0.59439987",
... | 0.6115237 | 6 |
Extract target_building's meters from the raw data, returning the pd.dataframe which is merged with the 'left join'. | def q71w(YKHO, ADez, WrR5=[], fQqb='1min'):
if YKHO.df is None:
YKHO.read_data_from_csv()
if len(WrR5) < 1:
WrR5 = YKHO.meter_name.keys()
if 'main' in WrR5:
WrR5.remove('main')
_Bmm = YKHO.df.groupby('buildingid').get_group(ADez)
_Bmm.index = rLdf.to_datetime(_Bmm['reporttime... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ufGH(YKHO, gVCu, _bYG=None, gwAu=70, fQqb='1min'):\n uSPL = {}\n for ADez in gVCu:\n YKHO.load_meters_from_buliding(ADez, _bYG, fQqb)\n ruSb = YKHO.meters_state_of_buliding(ADez, _bYG, gwAu)\n if ruSb is not None:\n uSPL.setdefault(ADez, ruSb)\n return uSPL",
"def iOR... | [
"0.6477615",
"0.5791794",
"0.5687256",
"0.5658846",
"0.5552154",
"0.5372592",
"0.5324957",
"0.52998376",
"0.5289855",
"0.5171098",
"0.50778997",
"0.50562704",
"0.50456136",
"0.5039701",
"0.5031804",
"0.50130314",
"0.49842077",
"0.49717695",
"0.49383754",
"0.49293375",
"0.4919... | 0.66276956 | 0 |
Extract meters state from the preprocessed data for each building, returning the pd.dataframe which recorded the meter state for each recorded timestamp. | def vJvo(YKHO, ADez, wMGi, gwAu=70):
if ADez not in YKHO.buliding_df.keys():
return
ruSb = YKHO.buliding_df[ADez]
ruSb = ruSb[[Byl2 for Byl2 in wMGi if Byl2 in ruSb.keys()]] > gwAu
return ruSb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ufGH(YKHO, gVCu, _bYG=None, gwAu=70, fQqb='1min'):\n uSPL = {}\n for ADez in gVCu:\n YKHO.load_meters_from_buliding(ADez, _bYG, fQqb)\n ruSb = YKHO.meters_state_of_buliding(ADez, _bYG, gwAu)\n if ruSb is not None:\n uSPL.setdefault(ADez, ruSb)\n return uSPL",
"def LBw... | [
"0.61991143",
"0.6169256",
"0.6016267",
"0.5697586",
"0.55761045",
"0.54360944",
"0.5310689",
"0.5230262",
"0.5211392",
"0.51898843",
"0.51616734",
"0.51127845",
"0.51039374",
"0.50756645",
"0.5044868",
"0.5042241",
"0.5026856",
"0.50211847",
"0.4965201",
"0.49641198",
"0.496... | 0.5529322 | 5 |
If input_parameter is None, initializing parameters to compute all the buildings and meters. | def X8Xp(YKHO, gVCu, _bYG):
if YKHO.df is None:
YKHO.read_data_from_csv()
if gVCu is None:
gVCu = YKHO.find_all_houses().tolist()
if _bYG is None:
_bYG = YKHO.meter_name.keys()
return (gVCu, _bYG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, kgeQ):\n super().__init__(kgeQ)\n YKHO.model_string = 'gauss'\n Cum6 = YKHO._get_model_dict(BcI9.default_parameters)\n YKHO.ka = Cum6['ka']\n YKHO.kb = Cum6['kb']\n YKHO.alpha = Cum6['alpha']\n YKHO.beta = Cum6['beta']\n YKHO.calculate_VW_velocities = Cum6['calculate_VW_veloc... | [
"0.60635704",
"0.60559714",
"0.60168946",
"0.593495",
"0.59347636",
"0.5854408",
"0.58299834",
"0.5813046",
"0.5715866",
"0.57052034",
"0.56394523",
"0.5636921",
"0.55865467",
"0.55853254",
"0.5567117",
"0.55548424",
"0.5520965",
"0.55183446",
"0.5508205",
"0.5505194",
"0.550... | 0.68082404 | 0 |
Computes distance measure between vectors x and y. Returns float. | def Ayfi(YKHO, WKvO, LVAh):
return Ayfi.hamming(WKvO, LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def usGr(WKvO: np.ndarray, LVAh: np.ndarray) -> float:\n aZ1n: oyIN.ndarray = WKvO - LVAh\n Ayfi = PMJ7(aZ1n)\n return Ayfi",
"def usGr(WKvO: np.ndarray, LVAh: np.ndarray) -> float:\n Ayfi = oyIN.linalg.norm(WKvO - LVAh)\n return Ayfi",
"def Ayfi(WKvO, LVAh):\n return oyIN.sqrt(oyIN.power(oyI... | [
"0.7941278",
"0.79141444",
"0.7868368",
"0.7859733",
"0.78261393",
"0.77186346",
"0.75772005",
"0.7556413",
"0.7523928",
"0.7482404",
"0.74487174",
"0.74302036",
"0.74176687",
"0.7389026",
"0.7385474",
"0.73753023",
"0.7319479",
"0.73171717",
"0.7284823",
"0.72683793",
"0.725... | 0.0 | -1 |
Calculate the great circle distance between two points on the earth (specified in decimal degrees) | def GeVo(GgQG, igSk, tk0B, TGuP):
GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP])
H91H = tk0B - GgQG
n_9K = TGuP - igSk
jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2
Z9rn = 2 * P099(PZyS(jzdc))
Mkmy = 6371
return Z9rn * Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6",
"def T97B(GgQG, ... | [
"0.81450045",
"0.7863265",
"0.76322985",
"0.76064754",
"0.75978696",
"0.75965863",
"0.75944835",
"0.75720793",
"0.75630087",
"0.7555095",
"0.7528691",
"0.7517629",
"0.7492963",
"0.7467739",
"0.7452678",
"0.7434477",
"0.73914117",
"0.7357736",
"0.73484355",
"0.73318124",
"0.73... | 0.0 | -1 |
Access screen height as a property to ensure it's updated if resized. | def PZx2(YKHO):
return YKHO.screen.getmaxyx()[0] - 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v2(YKHO):\n return YKHO.SCREEN_H",
"def fsQy(YKHO):\n return YKHO._screen_height",
"def WEQQ(YKHO):\n return YKHO.height",
"def H2v2(YKHO):\n bGrB, h3cg, bGrB, Z3uP = YKHO.viewport\n return YKHO.parent.window_size[1] * (Z3uP - h3cg)",
"def lTwr():\n G9jH.debug('get_screen_height()')... | [
"0.8004458",
"0.7843561",
"0.78138995",
"0.7216422",
"0.7196278",
"0.71808416",
"0.7109853",
"0.70496696",
"0.69640553",
"0.69538856",
"0.69409454",
"0.69409454",
"0.69409454",
"0.68782556",
"0.68697953",
"0.68697953",
"0.68697953",
"0.68697953",
"0.685613",
"0.6816238",
"0.6... | 0.0 | -1 |
Return Curses base color based on the current mode. | def F_zP(YKHO):
return PcHS.color_pair(3) if YKHO.cycling else PcHS.color_pair(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b9Bj(YKHO):\n return YKHO._baseColor",
"def W9eb(YKHO):\n return PcHS.color_pair(4) if YKHO.cycling else PcHS.color_pair(2)",
"def zsAF():\n if lnPd.Platform == '__WXMAC__':\n if hasattr(lnPd, 'MacThemeColour'):\n frve = lnPd.MacThemeColour(PE7J.Appearance.kThemeBrushToolbarBackg... | [
"0.71427923",
"0.6759934",
"0.66861814",
"0.6678203",
"0.6666445",
"0.6527217",
"0.6471461",
"0.6416465",
"0.6383323",
"0.633613",
"0.6326545",
"0.6304626",
"0.62441",
"0.62441",
"0.6187136",
"0.61589766",
"0.6137757",
"0.6134373",
"0.6117964",
"0.6117532",
"0.6116213",
"0.... | 0.8273159 | 0 |
View function for home page of site. | def d6pt(QePW):
z3Eu = dl5x.objects.all().count()
nM65 = o763.objects.count()
CBIr = QePW.user.username if QePW.user.is_authenticated else None
QpfX = {'num_books': z3Eu, 'num_authors': nM65, 'user': CBIr}
return _1tc(QePW, 'bukuku/index.html', context=QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')",
"def vja_(QePW):\n return _1tc(QePW, 'ez_main/home_page.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'home.html')",
"def C_QL(QePW):\n return _1tc(QePW, 'core/homepage.html')",
"def C_QL(QePW):\n return SGJU('h1ds_core/homepage.html'... | [
"0.8493426",
"0.84268916",
"0.83415145",
"0.83306193",
"0.82976943",
"0.8295291",
"0.8276345",
"0.82545686",
"0.82155704",
"0.8132563",
"0.81246215",
"0.81224865",
"0.8121264",
"0.81049734",
"0.8098485",
"0.80935514",
"0.80935514",
"0.80935514",
"0.80935514",
"0.80935514",
"0... | 0.0 | -1 |
Load the training data from the data folder and return two DataFrames | def bdJp():
EcVT = rLdf.read_csv('../data/train_values.csv').set_index('sequence_id')
LVAh = rLdf.read_csv('../data/train_labels.csv').set_index('sequence_id')
return (EcVT, LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hQue(pmON):\n rrl5 = Hy7s.path.join(pmON, 'train.csv')\n eH4Y = Hy7s.path.join(pmON, 'test.csv')\n GVWp = rLdf.read_csv(rrl5)\n af07 = rLdf.read_csv(eH4Y)\n return (GVWp, af07)",
"def wif8(YKHO, hJa7='datasets/train_data.json', Z6K7='datasets/test_data.json'):\n ppBc = rLdf.read_json(hJa7)\... | [
"0.7577721",
"0.7517273",
"0.7484757",
"0.7349378",
"0.7227922",
"0.71295494",
"0.7128832",
"0.712066",
"0.712066",
"0.7039344",
"0.7015691",
"0.69965154",
"0.6935641",
"0.69085544",
"0.68927777",
"0.6867774",
"0.68577343",
"0.67952585",
"0.6779639",
"0.6773743",
"0.6747562",... | 0.7144724 | 5 |
Get list of all possible nlength sequences of genes | def N2YL(exwG):
from itertools import product
return [''.join(finE) for finE in product('CATGN', repeat=exwG)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RisN(Q6uT, exwG):\n return",
"def RisN(aWuw, exwG):\n u54L = len(aWuw)\n if exwG == 1 or exwG == 2:\n aWuw = ['START'] * exwG + aWuw + ['STOP']\n Os4s = exwG + 1\n else:\n aWuw = ['START'] * (exwG - 1) + aWuw + ['STOP']\n Os4s = 1\n if exwG == 2:\n Os4s = exw... | [
"0.7104906",
"0.68662745",
"0.6678237",
"0.66410476",
"0.6510222",
"0.6496182",
"0.6486512",
"0.64513314",
"0.6444254",
"0.63689685",
"0.6366082",
"0.6337199",
"0.632188",
"0.63135207",
"0.62938046",
"0.6244213",
"0.6188728",
"0.61687493",
"0.6158821",
"0.6150293",
"0.6137198... | 0.6776302 | 2 |
Split lines into wikitext2 to their sentences. | def Zi4e(Ux0P, GfdN=True):
O30V = 0
if GfdN:
Nqlg = []
for zFiD in T_Uj.open(Ux0P, 'r', 'utf-8'):
Nqlg += zFiD.split() + ['<eos>']
O30V = len(Nqlg)
Nqlg = []
for zFiD in T_Uj.open(Ux0P, 'r', 'utf-8'):
Nqlg.append(zFiD.replace('@.@', '&numb') + '<eos>')
Quz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpha(l5Ny):\n A97Q = K9NE(l5Ny)\n Rhv4 = [WKvO.text_with_ws for WKvO in A97Q.sents]\n return Rhv4",
"def HFcG(YKHO) -> None:\n z_aV = []\n for l5Ny in YKHO.texts:\n pZ8o = list(filter(lambda WKvO: WKvO != '', l5Ny.split('\\n\\n')))\n for HKwb in pZ8o:\n l5Ny = HKwb.rep... | [
"0.69482213",
"0.6577601",
"0.65741044",
"0.6476077",
"0.64626634",
"0.6400792",
"0.63365096",
"0.632405",
"0.63068426",
"0.6287871",
"0.62121373",
"0.62022114",
"0.6157193",
"0.6136608",
"0.6102106",
"0.6099402",
"0.60595083",
"0.60595083",
"0.6030395",
"0.6025512",
"0.59701... | 0.0 | -1 |
returns a length len(INDICES) list whose jth element is the (first, e.g.\ lexicographically or smallest) mostcommon value from ATTRIB_COLUMN among unique (because no one gets more than one vote) rows determined by the jth row in INDICES. | def n1Js(_0VL, qDkR, IaMk):
return [eQSh.mode(qDkR.iloc[oyIN.unique(p6G7), IaMk])[0][0] for p6G7 in _0VL] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MQX0(xASv, Tuqy):\n RJv6 = []\n for Ty9i in range(xASv[Tuqy].max() + 1):\n T6S7 = xASv[xASv[Tuqy] == Ty9i].index.values\n if len(T6S7) > 0:\n RJv6.append(T6S7)\n else:\n RJv6.append(oyIN.array([0]))\n return RJv6",
"def _NEE(YKHO, exwG):\n if not YKHO.in... | [
"0.5833364",
"0.5741786",
"0.5536045",
"0.54278946",
"0.5310463",
"0.5299209",
"0.52765346",
"0.52683556",
"0.52677053",
"0.52677053",
"0.52677053",
"0.5226811",
"0.52187836",
"0.52187836",
"0.52187836",
"0.52139425",
"0.52023846",
"0.5183269",
"0.51782835",
"0.517298",
"0.51... | 0.6332359 | 0 |
Return a timestamp with microsecond precision. | def saqZ():
HVay = ITS7.time()
_PYT = repr(HVay).split('.')[1]
return ITS7.strftime('%Y-%m-%d-%H-%M-%S-{}'.format(_PYT), ITS7.gmtime(HVay)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IJMq():\n return UsKa(h5YN())",
"def g9FU(YKHO):\n return YKHO._microsecond",
"def E3oo(YKHO):\n if YKHO._tzinfo is None:\n KCHu = YKHO._mktime()\n return KCHu + YKHO.microsecond / 1000000.0\n else:\n return (YKHO - DfBS).total_seconds()",
"def E3oo(YKHO):\n qtWj = qcW... | [
"0.76595306",
"0.75434005",
"0.7481002",
"0.737568",
"0.7223046",
"0.7208152",
"0.7090928",
"0.7089517",
"0.7027383",
"0.7015748",
"0.69863594",
"0.6901419",
"0.68994206",
"0.68180865",
"0.6816717",
"0.6731788",
"0.67178917",
"0.67129755",
"0.6699801",
"0.66186666",
"0.661841... | 0.6232639 | 50 |
Evaluate the model and make a prediction. | def YEmv(YKHO, WKvO: Entry):
return YKHO.slope * WKvO.value + YKHO.bias | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7La(YKHO):\n YKHO.model_score = YKHO.model.evaluate(YKHO.x_dev, YKHO.y_dev_oh, batch_size=2048)\n print('%s score = %f\\n' % (YKHO.modelName, YKHO.model_score[1]))\n aMgO = oyIN.argmax(YKHO.model.predict(YKHO.x_dev, batch_size=2048), axis=1)\n DMHq = oyIN.vstack((oyIN.argmax(YKHO.y_dev_oh, axis=1)... | [
"0.7676017",
"0.74822396",
"0.7477749",
"0.7364436",
"0.73371303",
"0.72652864",
"0.7170599",
"0.71572405",
"0.7120425",
"0.70977616",
"0.70938724",
"0.7084463",
"0.7075303",
"0.70229924",
"0.7011029",
"0.7007757",
"0.7001403",
"0.7001342",
"0.6960402",
"0.69440264",
"0.69391... | 0.0 | -1 |
Return the set of metrics that are acceptable for regression. | def zBTh():
k6ao = Cj4P | H7D0 | IYXt | CWbq
if len(c0i9) > 0:
k6ao.update(c0i9)
return k6ao | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3a2(Emd4) -> x1iM[str]:\n ...",
"def OVYK(YKHO):\n Wbxz = ['loss']\n try:\n r8hN = KkY2.metrics_from_model(YKHO.model)\n if isinstance(r8hN, list):\n Wbxz.extend(r8hN)\n except:\n pass\n if YKHO.val_data is not None:\n for r8hN in Wbxz[:]:\n W... | [
"0.697393",
"0.66539055",
"0.6568593",
"0.6405544",
"0.63548934",
"0.63467276",
"0.6341897",
"0.6278197",
"0.6242459",
"0.6242459",
"0.6242107",
"0.6221714",
"0.6182754",
"0.6182181",
"0.6172678",
"0.61106926",
"0.6110528",
"0.6102661",
"0.61013585",
"0.60983175",
"0.60909194... | 0.81436664 | 0 |
Converts sorters to the django query order strings. | def HFyz(YKHO, viB_):
return [eLty.get_order_term() for eLty in viB_] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mJZc(YKHO, umWR):\n QePW = YKHO.request\n try:\n bsXP = int(QePW.REQUEST.get('iSortingCols', 0))\n except ValueError:\n bsXP = 0\n T4Wy = []\n wIkb = YKHO.get_order_columns()\n for YRbF in range(bsXP):\n try:\n Trwo = int(QePW.REQUEST.get('iSortCol_%s' % YRbF))... | [
"0.6665474",
"0.639891",
"0.6340162",
"0.6293899",
"0.6150529",
"0.60750437",
"0.60260576",
"0.6013711",
"0.6005273",
"0.58384484",
"0.5771817",
"0.57442737",
"0.5740367",
"0.5683475",
"0.56816757",
"0.56795305",
"0.5643241",
"0.5640281",
"0.56199616",
"0.5605828",
"0.559324"... | 0.6101713 | 5 |
Update queryset for extra sorter class (it is used for annotations before ordering) | def bnDd(YKHO, umWR, viB_):
for eLty in viB_:
umWR = eLty.update_queryset(umWR)
return umWR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def skP2(YKHO, umWR):\n return umWR",
"def sAfe(YKHO, umWR):\n return umWR",
"def hHsm(YKHO):\n ...",
"def ER0B(YKHO, SR0I):\n if (mJZc := YKHO.request.query_params.get('ordering')):\n DeLa = []\n njyT = ZbWC.compile('-?annotations__(?P<field_id>\\\\d+)')\n V_D6 = [Jyyj.strip... | [
"0.7250172",
"0.7132091",
"0.6484185",
"0.6311653",
"0.62217927",
"0.6180804",
"0.6146311",
"0.59585875",
"0.5931064",
"0.5886492",
"0.5839148",
"0.58161145",
"0.57928807",
"0.5742389",
"0.57231367",
"0.5705997",
"0.5653658",
"0.5650678",
"0.5582579",
"0.5498918",
"0.54802436... | 0.6778813 | 2 |
Calculate reaction rate constant inclusing diffusion effects. | def Jx0a(xhct, gmLL):
return xhct * gmLL / (xhct + gmLL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zPCH(YKHO):\n raise NotImplementedError('Subclass must implement this method')",
"def NhvH(Zxma):\n TRVV = 0\n for tj0V in Zxma.reactions:\n a1PO = tj0V.rate(Zxma.species)\n TRVV += a1PO\n return TRVV",
"def mVUw(YKHO):\n return YKHO.brate / EZ0S",
"def fRjp(YKHO, MQDB=525000... | [
"0.6966348",
"0.6823358",
"0.63816404",
"0.63374317",
"0.63204414",
"0.6136079",
"0.60044575",
"0.60017985",
"0.5948192",
"0.59415853",
"0.5932096",
"0.58575094",
"0.5834925",
"0.58057594",
"0.5760089",
"0.57573336",
"0.5718501",
"0.57164806",
"0.5679746",
"0.5628383",
"0.557... | 0.0 | -1 |
r"""Calculate a reaction rate constant. This function uses the `EyringEvansPolanyi equation | def XhB5(Vx41: Union[float, np.ndarray], dPLm: Optional[int]=None, ovGo: Union[float, np.ndarray]=298.15, CJ2p: float=uwaB.atm, akib: Optional[float]=None):
ovGo = oyIN.asarray(ovGo)
Vx41 = oyIN.asarray(Vx41)
gvz0 = None
if dPLm is not None:
gvz0 = 1 - oyIN.asarray(dPLm)
return ydZk.thermo.e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zPCH(YKHO):\n raise NotImplementedError('Subclass must implement this method')",
"def gilK(YKHO):\n VG3a = YKHO.strain_rate_tensor()\n eSOY = VG3a[0, 0]\n UTQw = VG3a[1, 1]\n KXTv = VG3a[2, 2]\n j41f = VG3a[0, 1]\n yu2m = VG3a[0, 2]\n FVr4 = VG3a[1, 2]\n TY4d = 0.5 * (+eSOY ** 2 + ... | [
"0.6360081",
"0.63287747",
"0.62651944",
"0.6129641",
"0.61094403",
"0.60787314",
"0.6059931",
"0.6017328",
"0.59845537",
"0.5969471",
"0.59435564",
"0.59226596",
"0.5917354",
"0.58982956",
"0.58970124",
"0.5896137",
"0.5895523",
"0.58705884",
"0.5834656",
"0.58201593",
"0.57... | 0.0 | -1 |
Read the input data file and return a data frame. | def o4pG(nPrm):
jQ3Z = rLdf.read_csv(nPrm, encoding='utf-8', header=None, delimiter='\t', names=['id', 'label', 'text'])
HwRy.stderr.write(f'The input data frame {nPrm} size is {jQ3Z.shape}\n')
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXC1(YKHO) -> rLdf.DataFrame:\n with open(YKHO.file_path, 'r') as nHI3:\n MOPg = nHI3.readline()\n MOPg = MOPg.replace('\\n', '')\n if ',' in MOPg:\n MOPg = MOPg.split(',')\n else:\n MOPg = MOPg.split()\n if MOPg == YKHO.NORMAL_HEADERS:\n return YK... | [
"0.745393",
"0.7193568",
"0.71637547",
"0.7155248",
"0.71304816",
"0.7059386",
"0.7020053",
"0.6999039",
"0.6996797",
"0.6996797",
"0.6996797",
"0.698032",
"0.6930869",
"0.6930869",
"0.692229",
"0.690407",
"0.6856842",
"0.68268734",
"0.68033123",
"0.67920876",
"0.6769724",
... | 0.6811363 | 18 |
Get the value of the given environment variable. | def TLdi(mWFP, CK6s=False):
BWXx = Hy7s.environ.get(mWFP)
if BWXx is None:
if not CK6s:
raise RuntimeError('The environment variable %r is not set and as such configuration could not be loaded. Set this variable and make it point to a configuration file' % mWFP)
else:
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bx7h(mWFP):\n return Hy7s.environ.get(mWFP)",
"def AxXv(YKHO, SRYB):\n return Hy7s.environ[SRYB]",
"def TYk2(XuY2: str) -> str:\n if XuY2 in Hy7s.environ.keys():\n return Hy7s.environ[XuY2]",
"def sEAN(SRYB):\n return Hy7s.environ[SRYB]",
"def Zmkp(H5ew: str):\n BWXx = PNq_.get(H5... | [
"0.81464124",
"0.7950638",
"0.7950252",
"0.7920914",
"0.7892677",
"0.78566206",
"0.7793647",
"0.7745307",
"0.772453",
"0.76915824",
"0.75823706",
"0.75542206",
"0.7497144",
"0.745181",
"0.73981893",
"0.7317889",
"0.731279",
"0.7299501",
"0.7284751",
"0.7282047",
"0.72308666",... | 0.7300421 | 17 |
Returns A mapping from strings to values containing the initialization parameters for the controller associated with this physical simulation. | def mEeJ(YKHO) -> gN_N:
return {SRYB: getattr(YKHO, SRYB) for SRYB in YKHO._controller_params} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U_sI(YKHO):\n UMV5 = Y69N.getInitParams(YKHO)\n UMV5['mapping'] = YKHO.mapping\n UMV5['values'] = YKHO.values\n return UMV5",
"def GJDg(YKHO):\n pass",
"def OQMv(YKHO) -> cuzp[str, ImMB]:\n return dict(obs_space=YKHO.obs_space, action_space=YKHO.action_space, scale_imgs=YKHO.scale_imgs)",... | [
"0.72483146",
"0.66985035",
"0.66974086",
"0.6586048",
"0.6524451",
"0.64770216",
"0.6437648",
"0.64374644",
"0.64374644",
"0.6424768",
"0.6386846",
"0.63735485",
"0.63255435",
"0.62887394",
"0.62735695",
"0.62735695",
"0.62478906",
"0.6169202",
"0.61437416",
"0.60869884",
"0... | 0.737053 | 0 |
A helper function to import all the datasets for the project from the input directory parameter. Parameter _________ | def Ndo_(AGPF):
HAHC = sYHR(Y8Kb, 'Gaze')
jSx_ = sYHR(Y8Kb, 'Point')
bB9c = sYHR(Y8Kb, 'Grab')
Uhyf = sYHR(Y8Kb, 'Position')
eMGs = rLdf.read_csv(Y8Kb[HAHC]) if HAHC != None else None
wdYk = rLdf.read_csv(Y8Kb[jSx_]) if jSx_ != None else None
b3HU = rLdf.read_csv(Y8Kb[bB9c]) if bB9c != None ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cYg5(jDZ4, TLI7=''):\n jDZ4 = jth9.deepcopy(jDZ4)\n assert TLI7 != '', 'dirname required'\n IVTM(jDZ4['ds_train_um'], dirname=gzes('.', TLI7, 'train'))\n IVTM(jDZ4['ds_valid_um'], dirname=gzes('.', TLI7, 'valid'))\n IVTM(jDZ4['ds_test_um'], dirname=gzes('.', TLI7, 'test'))",
"def jogE(YKHO, TL... | [
"0.69808424",
"0.695065",
"0.6812897",
"0.6691963",
"0.6660903",
"0.6643285",
"0.6524402",
"0.64754254",
"0.6382236",
"0.63721246",
"0.63625026",
"0.6355825",
"0.63429916",
"0.6341335",
"0.6336302",
"0.63194597",
"0.6306186",
"0.6295077",
"0.62773883",
"0.62660724",
"0.622818... | 0.6905445 | 2 |
Another three node linked list. | def V70B():
sdCG = V70B = Msxl(2)
V70B.next = Msxl(4)
V70B.next.next = Msxl(5)
return sdCG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jtyf():\n sdCG = jtyf = Msxl(3)\n jtyf.next = Msxl(4)\n jtyf.next.next = Msxl(5)\n return sdCG",
"def nKhD(Q6kx, sdCG, J3uN):\n if sdCG is None:\n sdCG = Q6kx\n J3uN = Q6kx\n return (sdCG, J3uN)\n sdCG.prev = Q6kx\n Q6kx.next = sdCG\n sdCG = Q6kx\n return (sdCG... | [
"0.65765566",
"0.6000067",
"0.59785616",
"0.59561443",
"0.5893145",
"0.58622193",
"0.58505946",
"0.5849079",
"0.5820683",
"0.57885146",
"0.5779832",
"0.5724317",
"0.5713365",
"0.5700533",
"0.5682733",
"0.5682733",
"0.5682733",
"0.5682733",
"0.5682733",
"0.5659888",
"0.5658591... | 0.64034545 | 1 |
Overloads the `==` operator for local equal check. | def xa14(YKHO, Elif: Any) -> bool:
if isinstance(Elif, I0uW):
return YKHO.device_type == Elif.device_type and YKHO.device_id == Elif.device_id
elif isinstance(Elif, ht2j.device):
return YKHO.device_type == Elif.type and YKHO.device_id == Elif.index
else:
return NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aPi6(WKvO, LVAh):\n return WKvO == LVAh",
"def LsaM(Emd4, yLHq, RKYb):\n return yLHq == RKYb",
"def IzcV(YKHO, jzdc, Fg_i):\n return jzdc == Fg_i",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass"... | [
"0.7062835",
"0.6952132",
"0.6883287",
"0.68506676",
"0.68506676",
"0.68506676",
"0.68506676",
"0.68506676",
"0.68506676",
"0.68506676",
"0.68506676",
"0.68506676",
"0.68506676",
"0.68506676",
"0.68506676",
"0.68506676",
"0.68506676",
"0.68506676",
"0.68506676",
"0.68506676",
... | 0.0 | -1 |
Return the percept that the agent sees at this point. (Implement this.) | def JTet(YKHO, YWSi):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cI4J(YKHO):\n return YKHO.percept",
"def vhdz(YKHO, YWSi):\n mSgp = [YKHO.time_step]\n for vGaq in YKHO.things_near(YWSi.location):\n if isinstance(vGaq, yQ6i):\n if YWSi.location == vGaq.location:\n mSgp.append('Gold')\n elif isinstance(vGaq, uhXc):\n ... | [
"0.6822079",
"0.6512735",
"0.64660245",
"0.6405829",
"0.63911444",
"0.63249385",
"0.63024384",
"0.61707556",
"0.6164799",
"0.6146392",
"0.6146392",
"0.61018026",
"0.60399216",
"0.60248184",
"0.6016909",
"0.5995408",
"0.59270793",
"0.5897789",
"0.5878415",
"0.5833503",
"0.5833... | 0.66518855 | 1 |
Agents start in either location at random. | def Sy0r(YKHO, vGaq):
return tuKI.choice([yABQ, Qw1d]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SawS(YKHO) -> None:\n return",
"def dyh1(YKHO):\n YKHO.position = oyIN.array(tuKI.choice(YKHO.start_positions), dtype=oyIN.int16)",
"def Pi8e(YKHO):\n vyoe = list(YKHO._all_waypoints)\n tuKI.shuffle(vyoe)\n return tuple(vyoe)",
"def b1kY(Cs6h, syrF=None):\n fUYa, bEXe = oyIN.where(Cs6h ... | [
"0.66071594",
"0.6512685",
"0.6483386",
"0.6323551",
"0.6265858",
"0.6249397",
"0.62378234",
"0.6218298",
"0.62176305",
"0.6216443",
"0.62076163",
"0.6160278",
"0.6154073",
"0.6123747",
"0.61096185",
"0.607421",
"0.6071444",
"0.60190046",
"0.601662",
"0.6010751",
"0.59919596"... | 0.59202003 | 28 |
The derivative has the same form for x and y so only one is needed, this only changes when calling the interaction on the algotyhm, for all isotrope interactions this should still hold. | def _Wa3(WKvO, CYjz, Dp6a, lHKk):
RBVb = 2 ** (1 / 6) * ((Dp6a + lHKk) / 2)
OIYf = (Dp6a + lHKk) / 2
if CYjz ** (1 / 2) > RBVb:
BWXx = 0
else:
BWXx = 48.0 * WKvO / CYjz * ((OIYf ** 2 * 1.0 / CYjz) ** 6 - (OIYf ** 2 * 0.5 / CYjz) ** 3)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mjQp(YKHO, LVAh):\n raise NotImplementedError()",
"def mjQp(YKHO, LVAh):\n return 1",
"def VVyp(Y7fn, WKvO, LVAh):\n O5iP = (Y7fn - WKvO[1] + (Y7fn - WKvO[2])) / ((WKvO[0] - WKvO[1]) * (WKvO[0] - WKvO[2])) * LVAh[0] + (Y7fn - WKvO[0] + (Y7fn - WKvO[2])) / ((WKvO[1] - WKvO[0]) * (WKvO[1] - WKvO[2])... | [
"0.7210092",
"0.6948717",
"0.67539525",
"0.6523836",
"0.65163624",
"0.645394",
"0.6453281",
"0.6428581",
"0.6399269",
"0.63833857",
"0.63309765",
"0.6323026",
"0.63169026",
"0.63043684",
"0.62473893",
"0.6219046",
"0.61980313",
"0.6155972",
"0.6131681",
"0.61113036",
"0.61003... | 0.0 | -1 |
Equality assertion for CommentNode | def X4Se(cntZ: ParserNode, CsFy: ParserNode) -> None:
assert isinstance(cntZ, U4Kw.CommentNode)
assert isinstance(CsFy, U4Kw.CommentNode)
if not yOiE(cntZ.comment) and (not yOiE(CsFy.comment)):
assert cntZ.comment == CsFy.comment | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not isinstance(Elif, jY1u):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, jY1u):\n return False\n return YKHO.to_dict() == Elif.to_dict()",
"def Vdqg(YKHO, Elif):\n if not isinstance(Elif, jY1u):... | [
"0.6982715",
"0.69108146",
"0.66965055",
"0.66513157",
"0.64996",
"0.64953125",
"0.6480128",
"0.6340201",
"0.6317523",
"0.62518746",
"0.60762715",
"0.6029382",
"0.60280293",
"0.6007427",
"0.5988873",
"0.59468126",
"0.5908967",
"0.5883563",
"0.58822143",
"0.5851084",
"0.584059... | 0.7792464 | 0 |
Checks that the two lists of file paths match. This assertion allows for wildcard paths. | def QBdq(cntZ: Iterable[str], CsFy: Iterable[str]) -> None:
if any((yOiE(pmON) for pmON in cntZ)):
return
if any((yOiE(pmON) for pmON in CsFy)):
return
for Sd0C in cntZ:
assert any((jlVJ.fnmatch(Sd0C, iQZE) for iQZE in CsFy))
for iQZE in CsFy:
assert any((jlVJ.fnmatch(Sd0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ocbN(pmON, MDpW):\n for SC2F in MDpW:\n try:\n if PKXz(pmON).match(SC2F):\n return True\n except TypeError:\n pass\n return False",
"def eU6_(Dyub, EmyI):\n if Dyub.find('*') >= 0:\n if jlVJ.fnmatch(EmyI, '*/%s' % Dyub):\n return T... | [
"0.69976825",
"0.68894887",
"0.64639604",
"0.6331798",
"0.63193065",
"0.62651986",
"0.6234028",
"0.61807734",
"0.61674404",
"0.6128511",
"0.61145985",
"0.6108269",
"0.6031447",
"0.60193944",
"0.59990156",
"0.59972805",
"0.5990389",
"0.5990389",
"0.5983395",
"0.5973372",
"0.59... | 0.81323534 | 0 |
Return item id used for authorization. | def ZxHm(YKHO):
return YKHO.blog_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ht7m(YKHO):\n return YKHO._item_id",
"def Wr6o(YKHO):\n return YKHO.metadata['itemId']",
"def unpH(YKHO, ZfUD):\n return YKHO.exist_products.get(hash(ZfUD['title']))",
"def wfbg(YKHO, ZfUD):\n id = YKHO.item_itemId.get(ZfUD)\n if id:\n return id\n id = YKHO.nextItemId\n YKHO.n... | [
"0.7963188",
"0.76412046",
"0.7358729",
"0.72905487",
"0.7229871",
"0.71402735",
"0.70712554",
"0.6790998",
"0.6789634",
"0.67702025",
"0.6769965",
"0.6753716",
"0.67529756",
"0.66911846",
"0.66588473",
"0.6656373",
"0.6656373",
"0.6656373",
"0.6656373",
"0.6656373",
"0.66563... | 0.0 | -1 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes. | def PYz4(Mkmy):
Mkmy.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
Mkmy.headers['Pragma'] = 'no-cache'
Mkmy.headers['Expires'] = '0'
Mkmy.headers['Cache-Control'] = 'public, max-age=0'
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PY... | [
"0.82238686",
"0.8223043",
"0.8223043",
"0.8223043",
"0.8223043",
"0.81963",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.81638503",
"0.... | 0.7128429 | 59 |
Returns the first true value in the iterable. If no true value is found, returns default If pred is not None, returns the first item for which pred(item) is true. | def A_QS(OxJJ, WmM4=False, nvEb=None):
return next(filter(nvEb, OxJJ), WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A_QS(Emd4, OxJJ, WmM4=None, nvEb=None):\n return next(filter(nvEb, OxJJ), WmM4)",
"def cntZ(OxJJ: Iterable[T1], lgNN: Callable[[T1], bool]) -> uLKX[W8O1, None]:\n for WKvO in OxJJ:\n if lgNN(WKvO):\n return WKvO\n return None",
"def aqF5(hkxX, WmM4=None):\n for BWXx in hkxX:\n... | [
"0.8485681",
"0.72869545",
"0.7259466",
"0.6930554",
"0.6791842",
"0.66228175",
"0.6255117",
"0.6208943",
"0.6179913",
"0.6179678",
"0.6057198",
"0.5967699",
"0.5936815",
"0.5906825",
"0.58812314",
"0.5740605",
"0.5740605",
"0.5665444",
"0.5649892",
"0.56421405",
"0.55865467"... | 0.87013286 | 0 |
Get the environment setting. Return the default, or raise an exception if none supplied | def c5Ao(YqMg, WmM4=None):
try:
return PNq_[YqMg]
except KeyError:
if WmM4:
return WmM4
else:
tf1m = 'Set the %s env variable' % YqMg
raise oyw0(tf1m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c5Ao(YqMg, WmM4=None):\n try:\n return PNq_[YqMg]\n except KeyError:\n tf1m = 'ERROR: %s is not set, using default: %s' % (YqMg, WmM4)\n (print >> wIbz, tf1m)\n if WmM4 is None:\n raise rqaQ(tf1m)\n else:\n return WmM4",
"def c5Ao(YqMg, WmM4=None... | [
"0.83227926",
"0.82357234",
"0.7687636",
"0.7603961",
"0.7569115",
"0.75486636",
"0.7546476",
"0.75022733",
"0.7484439",
"0.7482208",
"0.7363875",
"0.731481",
"0.7269699",
"0.7254709",
"0.70029926",
"0.69895214",
"0.6976632",
"0.696119",
"0.6932693",
"0.69048655",
"0.6890133"... | 0.82482874 | 1 |
Load the frontend_practices table from the openprescribing application into BigQuery | def J0Zy(__n6='hscic'):
def SZFh(rdlD):
if rdlD[4]:
rdlD[4] = '%s 00:00:00' % rdlD[4]
if rdlD[5]:
rdlD[5] = '%s 00:00:00' % rdlD[5]
return rdlD
Jbo8(__n6, 'ccgs', 'frontend_pct', Bxog, cols=[WKvO.name for WKvO in Bxog], _transform=SZFh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t79E():\n lqQH = Hy7s.path.join(P4t4.app.config['DATASET_CONFIG_DIR'], 'bigquery.json')\n MfgE = []\n pXkE = ''\n Jh8Q = ''\n ubbq = []\n if Hy7s.path.isfile(lqQH):\n dper = OLJR(lqQH)\n MfgE = dper['table_names']\n pXkE = dper['participant_id_column']\n Jh8Q = dpe... | [
"0.60128117",
"0.5860961",
"0.56180906",
"0.5571115",
"0.5441921",
"0.54228115",
"0.5276107",
"0.51979786",
"0.5159187",
"0.5155167",
"0.51455545",
"0.51303464",
"0.50782734",
"0.50751024",
"0.5072922",
"0.50645095",
"0.50643027",
"0.50410616",
"0.5027827",
"0.50229484",
"0.5... | 0.0 | -1 |
Test whether n is prime or not. | def ffYW(exwG: int) -> bool:
if len(oCcr(exwG)) > 2 or exwG < 1:
return False
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBNJ(exwG):\n return T1qg(exwG)",
"def FBNJ(exwG):\n return T1qg(exwG)",
"def T1qg(exwG):\n return kU5Q(exwG)",
"def JVAb(Emd4, exwG):\n if exwG <= 1:\n return False\n if exwG <= 3:\n return True\n if exwG % 2 == 0 or exwG % 3 == 0:\n return False\n YRbF = 5\n ... | [
"0.86130923",
"0.8571599",
"0.8377603",
"0.8316889",
"0.83056736",
"0.82962877",
"0.8290128",
"0.8285108",
"0.82701975",
"0.8262557",
"0.8252294",
"0.8250923",
"0.8231443",
"0.8226564",
"0.82231003",
"0.82197267",
"0.82184625",
"0.82130325",
"0.821277",
"0.8199987",
"0.819977... | 0.817307 | 24 |
Drops the block of the right color at the top of the highest block at the current position | def ReNU(YKHO, qfpW):
if YKHO.__get_pixel_color(YKHO.size - 1) is not None:
raise Exception("Can't place a block there, already full")
for epBp in range(YKHO.size - 1, -1, -1):
if YKHO.__get_pixel_color(epBp) is not None:
return YKHO.place(qfpW, epBp + 1)
return YKHO.place(qfpW, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xSUm(YKHO):\n YKHO.blocks[YKHO.editor_cursor_position[1]][YKHO.editor_cursor_position[0]] = '0'",
"def tyT2(oeNL, fSRy=RzCO, Sf9q=uwFY):\n FQNo.setBlocks(oeNL.x, oeNL.y - 1, oeNL.z, oeNL.x + 3, oeNL.y - 1, oeNL.z, Bxq7, Sf9q)\n YRbF = 1\n while YRbF <= 8:\n FQNo.setBlock(oeNL.x - YRbF, oeN... | [
"0.6349657",
"0.6067524",
"0.6036325",
"0.5892078",
"0.5802571",
"0.57995355",
"0.5757077",
"0.5747382",
"0.5740542",
"0.57388455",
"0.5708859",
"0.56466293",
"0.56367856",
"0.56363815",
"0.56327593",
"0.56169754",
"0.5600635",
"0.5582666",
"0.5564119",
"0.5540102",
"0.553730... | 0.70701075 | 0 |
Adds primary text string onsets/offsets to all nodes that represent tokens. In SaltDocuments, this data was stored in TextualRelation edges only. | def ae9m(YKHO):
for Gmfu in YKHO._textual_relation_ids:
Cfu8 = YKHO.edges[Gmfu].source
YKHO.nodes[Cfu8].onset = YKHO.edges[Gmfu].onset
YKHO.nodes[Cfu8].offset = YKHO.edges[Gmfu].offset | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L1rM(D1HL, hDXk, GltZ):\n r3r7 = D1HL[XdHH.NID].numpy()\n for vXX7, Jyyj in hDXk.fields.items():\n _73Q = [getattr(hDXk[YRbF], vXX7) for YRbF in r3r7]\n s2mk, Fbjb = Jyyj.process(_73Q)\n if not Jyyj.batch_first:\n s2mk = s2mk.t()\n D1HL[vXX7] = s2mk\n D1HL[vX... | [
"0.56806487",
"0.5558746",
"0.5420864",
"0.5388493",
"0.5375551",
"0.53266215",
"0.53263026",
"0.5312888",
"0.5255938",
"0.52336764",
"0.521463",
"0.5200022",
"0.5173629",
"0.512864",
"0.5114523",
"0.50887275",
"0.50882906",
"0.5073677",
"0.50692797",
"0.5068018",
"0.50339144... | 0.72844553 | 0 |