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 |
|---|---|---|---|---|---|---|
build k indices for kfold. | def a4rF(LVAh, sSDk, yokr):
gqUV = LVAh.shape[0]
VOlW = int(gqUV / sSDk)
oyIN.random.seed(yokr)
_0VL = oyIN.random.permutation(gqUV)
a_4G = [_0VL[G1Hx * VOlW:(G1Hx + 1) * VOlW] for G1Hx in range(sSDk)]
return oyIN.array(a_4G) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a4rF(LVAh, sSDk, yokr):\n \"\"\"build k indices for k-fold.\"\"\"\n gqUV = LVAh.shape[0]\n VOlW = int(gqUV / sSDk)\n oyIN.random.seed(yokr)\n _0VL = oyIN.random.permutation(gqUV)\n a_4G = [_0VL[G1Hx * VOlW:(G1Hx + 1) * VOlW] for G1Hx in range(sSDk)]\n return oyIN.array(a_4G)",
"def a4rF(... | [
"0.8147923",
"0.7920322",
"0.7869487",
"0.7869487",
"0.7869487",
"0.7869487",
"0.7869487",
"0.7869487",
"0.7869487",
"0.7869487",
"0.7869487",
"0.7869487",
"0.7869487",
"0.7869487",
"0.7869487",
"0.7869487",
"0.7869487",
"0.7869487",
"0.78636",
"0.7852471",
"0.7851632",
"0.... | 0.78578305 | 19 |
Create a mask from a grid. | def z25C(YKHO, PPHi, wN8l):
ZHfW = oyIN.ones(wN8l.shape[0], PPHi.shape[0]) == 1
return ZHfW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lBUG(d6pt, exwG, r8hN):\n ZHfW = pSfY((exwG, r8hN))\n for YRbF in d6pt:\n ZHfW[YRbF, :] = 0\n return ZHfW",
"def ceDf(YKHO, ZHfW, te_P):\n bNKC = []\n VymP = []\n for YRbF in range(YKHO.rank()):\n if YRbF not in te_P:\n bNKC.append(YRbF)\n VymP.append(YKH... | [
"0.6833322",
"0.6701268",
"0.6657744",
"0.66447985",
"0.66030574",
"0.64001715",
"0.6335938",
"0.63345927",
"0.6273802",
"0.6261361",
"0.6248075",
"0.6242591",
"0.62316424",
"0.6147761",
"0.6138024",
"0.61250633",
"0.61142814",
"0.6056705",
"0.60555637",
"0.6049874",
"0.60303... | 0.5655824 | 89 |
Create a mask from a grid. | def z25C(YKHO, PPHi, wN8l):
jGa_, phBm = oyIN.meshgrid(PPHi, wN8l)
v98u = oyIN.abs(jGa_ - YKHO.xc) <= YKHO.width / 2
yp9E = oyIN.abs(phBm - YKHO.zc) <= YKHO.height / 2
ZHfW = v98u * yp9E
return ZHfW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lBUG(d6pt, exwG, r8hN):\n ZHfW = pSfY((exwG, r8hN))\n for YRbF in d6pt:\n ZHfW[YRbF, :] = 0\n return ZHfW",
"def ceDf(YKHO, ZHfW, te_P):\n bNKC = []\n VymP = []\n for YRbF in range(YKHO.rank()):\n if YRbF not in te_P:\n bNKC.append(YRbF)\n VymP.append(YKH... | [
"0.683236",
"0.67017394",
"0.66576517",
"0.6646394",
"0.66034395",
"0.6399926",
"0.63357145",
"0.6273983",
"0.6260074",
"0.6247007",
"0.62424946",
"0.6231311",
"0.61477804",
"0.6137831",
"0.61221635",
"0.6114402",
"0.6057608",
"0.60554343",
"0.6052469",
"0.60290635",
"0.60282... | 0.6334042 | 7 |
Create a mask from a grid. | def z25C(YKHO, PPHi, wN8l):
jGa_, phBm = oyIN.meshgrid(PPHi, wN8l)
ZHfW = oyIN.sqrt((jGa_ - YKHO.xc) ** 2 / YKHO.radius_x ** 2 + (phBm - YKHO.zc) ** 2 / YKHO.radius_z ** 2)
ZHfW = ZHfW <= 1
return ZHfW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lBUG(d6pt, exwG, r8hN):\n ZHfW = pSfY((exwG, r8hN))\n for YRbF in d6pt:\n ZHfW[YRbF, :] = 0\n return ZHfW",
"def ceDf(YKHO, ZHfW, te_P):\n bNKC = []\n VymP = []\n for YRbF in range(YKHO.rank()):\n if YRbF not in te_P:\n bNKC.append(YRbF)\n VymP.append(YKH... | [
"0.683236",
"0.67017394",
"0.66576517",
"0.6646394",
"0.66034395",
"0.6399926",
"0.63357145",
"0.6334042",
"0.6273983",
"0.6260074",
"0.6247007",
"0.62424946",
"0.6231311",
"0.61477804",
"0.6137831",
"0.61221635",
"0.6114402",
"0.6057608",
"0.60554343",
"0.6052469",
"0.602906... | 0.59478796 | 30 |
Create a mask from a grid. | def z25C(YKHO, PPHi, wN8l):
Po4F = AKVf.Polygon(xy=YKHO.vertices)
jGa_, phBm = oyIN.meshgrid(PPHi, wN8l)
jGa_ = oyIN.reshape(jGa_, len(PPHi) * len(wN8l))
phBm = oyIN.reshape(phBm, len(PPHi) * len(wN8l))
tuSK = oyIN.vstack([jGa_, phBm]).transpose()
ZHfW = Po4F.contains_points(tuSK)
ZHfW = oyI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lBUG(d6pt, exwG, r8hN):\n ZHfW = pSfY((exwG, r8hN))\n for YRbF in d6pt:\n ZHfW[YRbF, :] = 0\n return ZHfW",
"def ceDf(YKHO, ZHfW, te_P):\n bNKC = []\n VymP = []\n for YRbF in range(YKHO.rank()):\n if YRbF not in te_P:\n bNKC.append(YRbF)\n VymP.append(YKH... | [
"0.683236",
"0.67017394",
"0.66576517",
"0.6646394",
"0.66034395",
"0.6399926",
"0.63357145",
"0.6334042",
"0.6273983",
"0.6260074",
"0.6247007",
"0.62424946",
"0.6231311",
"0.61477804",
"0.6137831",
"0.61221635",
"0.6114402",
"0.6057608",
"0.60554343",
"0.6052469",
"0.602906... | 0.59928906 | 25 |
Create a mask from a grid. | def z25C(YKHO, PPHi, wN8l):
kcsN = []
for zn0c in YKHO.region_list:
kcsN.append(zn0c.create_mask(PPHi, wN8l))
ZHfW = oyIN.sum(oyIN.asarray(kcsN), axis=0, keepdims=False).astype(bool)
return ZHfW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lBUG(d6pt, exwG, r8hN):\n ZHfW = pSfY((exwG, r8hN))\n for YRbF in d6pt:\n ZHfW[YRbF, :] = 0\n return ZHfW",
"def ceDf(YKHO, ZHfW, te_P):\n bNKC = []\n VymP = []\n for YRbF in range(YKHO.rank()):\n if YRbF not in te_P:\n bNKC.append(YRbF)\n VymP.append(YKH... | [
"0.683236",
"0.67017394",
"0.66576517",
"0.6646394",
"0.66034395",
"0.6399926",
"0.63357145",
"0.6334042",
"0.6273983",
"0.6260074",
"0.6247007",
"0.62424946",
"0.6231311",
"0.61477804",
"0.6137831",
"0.61221635",
"0.6114402",
"0.6057608",
"0.60554343",
"0.6052469",
"0.602906... | 0.5672528 | 85 |
Create a mask from a grid. | def z25C(YKHO, PPHi, wN8l):
kcsN = []
for zn0c in YKHO.region_list:
kcsN.append(zn0c.create_mask(PPHi, wN8l))
ZHfW = oyIN.prod(oyIN.asarray(kcsN), axis=0, keepdims=False).astype(bool)
return ZHfW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lBUG(d6pt, exwG, r8hN):\n ZHfW = pSfY((exwG, r8hN))\n for YRbF in d6pt:\n ZHfW[YRbF, :] = 0\n return ZHfW",
"def ceDf(YKHO, ZHfW, te_P):\n bNKC = []\n VymP = []\n for YRbF in range(YKHO.rank()):\n if YRbF not in te_P:\n bNKC.append(YRbF)\n VymP.append(YKH... | [
"0.6833322",
"0.6701268",
"0.6657744",
"0.66447985",
"0.66030574",
"0.64001715",
"0.6335938",
"0.63345927",
"0.6273802",
"0.6261361",
"0.6248075",
"0.6242591",
"0.62316424",
"0.6147761",
"0.6138024",
"0.61250633",
"0.61142814",
"0.6056705",
"0.60555637",
"0.6049874",
"0.60303... | 0.58916587 | 41 |
Create a BooleanFunction from an truth table string. Truth tables are a common way of specifying boolean functions. They are are an explicit and _not compact_ function representationbasically a truth table is an exhaustive mapping from input binary bitstrings of | def tozQ(Emd4, DUXs: Union[str, List[str]]):
if isinstance(DUXs, str):
DUXs = [DUXs]
if not (len(DUXs[0]) & len(DUXs[0]) - 1 == 0 and len(DUXs[0]) != 0):
raise RuntimeError('Length of all binary string must be a power of 2')
for rxEN in DUXs[1:]:
if len(rxEN) != len(DUXs[0]):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DQPV(Emd4, m2Zb):\n return VtLz(m2Zb)",
"def DXG0(JDG0):\n C_Fs = sorted([YRbF for YRbF in list(JDG0.rhs.atoms())], key=lambda WKvO: WKvO.sort_key())\n oTYc = sorted([YRbF for YRbF in list(JDG0.lhs.atoms())], key=lambda WKvO: WKvO.sort_key())\n FpH8 = len(C_Fs)\n WfCS = C_Fs + oTYc\n WfCS\n... | [
"0.6623578",
"0.62925285",
"0.6064869",
"0.6037475",
"0.6037312",
"0.60004854",
"0.5991262",
"0.5979568",
"0.5957326",
"0.5932504",
"0.5866856",
"0.5845443",
"0.5779392",
"0.57643735",
"0.5763385",
"0.57614386",
"0.57510513",
"0.57433623",
"0.57164013",
"0.57079333",
"0.56891... | 0.6500328 | 1 |
Tests the fetchincidents function. Configures requests_mock instance to generate the appropriate SOCRadar Incidents API response, loaded from a local JSON file. Checks the output of the command function with the expected output. | def nbhX(sisH):
from SOCRadarIncidents import Client, fetch_incidents
Jpts = '0'
a0qp = 'APIKey'
ZG9D = S3ET('test_data/fetch_incidents_response.json')
ZI14 = f'company/{Jpts}/incidents/v2?key={a0qp}&severity=Medium%2CHigh&limit=2&start_date=1594512000'
sisH.get(f'{UbBE}/{ZI14}', json=ZG9D)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nbhX(AZgw, yazP, aEqx, wOGa):\n qIxc = {'first_fetch_time': '3 days', 'fetch_limit': 50}\n evi1 = mJah(**yazP)\n AZgw.patch.object(Plm4, 'getLastRun', return_value={'lastRun': '2023-04-27 10:41:04.316926'})\n Vf39.search_incidents.return_value = evi1\n AZgw.patch('DatadogCloudSIEM.ApiClient', re... | [
"0.7777848",
"0.7760006",
"0.7486796",
"0.74849916",
"0.74806076",
"0.746711",
"0.72325444",
"0.69024545",
"0.68735635",
"0.6774243",
"0.6762657",
"0.6683431",
"0.6526818",
"0.6523144",
"0.6513452",
"0.6442883",
"0.6441118",
"0.64244896",
"0.64140105",
"0.633426",
"0.6292853"... | 0.75363225 | 2 |
Tests the mark_incident_as_fp_command function. Configures requests_mock instance to generate the appropriate SOCRadar mark incident as fp API response, loaded from a local JSON file. Checks the output of the command function with the expected output. | def F7IY(sisH):
from SOCRadarIncidents import Client, mark_incident_as_fp_command
Jpts = '0'
whdp = 0
ZJ_8 = 'Mock Comment'
a0qp = 'APIKey'
ZG9D = S3ET('test_data/mark_incident_fp_response.json')
ZI14 = f'company/{Jpts}/incidents/fp?key={a0qp}'
sisH.post(f'{UbBE}/{ZI14}', json=ZG9D)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpS3(sisH):\n from SOCRadarIncidents import Client, mark_incident_as_fp_command\n Jpts = '0'\n whdp = 0\n ZJ_8 = 'Mock Comment'\n a0qp = 'APIKey'\n ZG9D = S3ET('test_data/mark_incident_fp_response_error.json')\n ZI14 = f'company/{Jpts}/incidents/fp?key={a0qp}'\n sisH.post(f'{UbBE}/{ZI14... | [
"0.7102542",
"0.6446157",
"0.640388",
"0.6003384",
"0.5917724",
"0.5898599",
"0.5809492",
"0.5721292",
"0.55902773",
"0.5587199",
"0.55762136",
"0.5574666",
"0.5515709",
"0.54362696",
"0.5320677",
"0.5236602",
"0.52322286",
"0.52276456",
"0.5210582",
"0.52065533",
"0.51994354... | 0.8394789 | 0 |
Tests the mark_incident_as_fp_command function. Configures requests_mock instance to generate the appropriate SOCRadar mark incident as fp API response, loaded from a local JSON file. Checks the output of the command function with the expected output. | def xpS3(sisH):
from SOCRadarIncidents import Client, mark_incident_as_fp_command
Jpts = '0'
whdp = 0
ZJ_8 = 'Mock Comment'
a0qp = 'APIKey'
ZG9D = S3ET('test_data/mark_incident_fp_response_error.json')
ZI14 = f'company/{Jpts}/incidents/fp?key={a0qp}'
sisH.post(f'{UbBE}/{ZI14}', json=ZG9D... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F7IY(sisH):\n from SOCRadarIncidents import Client, mark_incident_as_fp_command\n Jpts = '0'\n whdp = 0\n ZJ_8 = 'Mock Comment'\n a0qp = 'APIKey'\n ZG9D = S3ET('test_data/mark_incident_fp_response.json')\n ZI14 = f'company/{Jpts}/incidents/fp?key={a0qp}'\n sisH.post(f'{UbBE}/{ZI14}', js... | [
"0.8394789",
"0.6446157",
"0.640388",
"0.6003384",
"0.5917724",
"0.5898599",
"0.5809492",
"0.5721292",
"0.55902773",
"0.5587199",
"0.55762136",
"0.5574666",
"0.5515709",
"0.54362696",
"0.5320677",
"0.5236602",
"0.52322286",
"0.52276456",
"0.5210582",
"0.52065533",
"0.51994354... | 0.7102542 | 1 |
Tests the mark_incident_as_resolved_command function. Configures requests_mock instance to generate the appropriate SOCRadar mark incident as resolved API response, loaded from a local JSON file. Checks the output of the command function with the expected output. | def modG(sisH):
from SOCRadarIncidents import Client, mark_incident_as_resolved_command
Jpts = '0'
whdp = 0
ZJ_8 = 'Mock Comment'
a0qp = 'APIKey'
ZG9D = S3ET('test_data/mark_incident_resolved_response.json')
ZI14 = f'company/{Jpts}/incidents/resolve?key={a0qp}'
sisH.post(f'{UbBE}/{ZI14}'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F7IY(sisH):\n from SOCRadarIncidents import Client, mark_incident_as_fp_command\n Jpts = '0'\n whdp = 0\n ZJ_8 = 'Mock Comment'\n a0qp = 'APIKey'\n ZG9D = S3ET('test_data/mark_incident_fp_response.json')\n ZI14 = f'company/{Jpts}/incidents/fp?key={a0qp}'\n sisH.post(f'{UbBE}/{ZI14}', js... | [
"0.73986",
"0.72411233",
"0.7032285",
"0.6489291",
"0.6471571",
"0.6353837",
"0.62444377",
"0.62389994",
"0.60809433",
"0.6072449",
"0.6023461",
"0.6010461",
"0.5981486",
"0.5951667",
"0.5907959",
"0.5895366",
"0.5817016",
"0.5709869",
"0.5690886",
"0.5687028",
"0.5667833",
... | 0.8422386 | 0 |
Unload a config entry. | async def async_unload_entry(ajET: HomeAssistant, PhL6: ConfigEntry):
S3vU = ajET.data[Sugg].pop(PhL6.entry_id)
await S3vU.disconnect()
vzeF.info('disconnected')
yT1k = all(await V7ok.gather(*[ajET.config_entries.async_forward_entry_unload(PhL6, UksD) for UksD in aprE]))
return yT1k | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)",
"async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()... | [
"0.70418245",
"0.69975436",
"0.69197667",
"0.69024074",
"0.6896897",
"0.6870464",
"0.6840728",
"0.67911863",
"0.67835754",
"0.6782968",
"0.6776581",
"0.67688036",
"0.6737991",
"0.6730449",
"0.6713354",
"0.67085946",
"0.6664857",
"0.66411716",
"0.6637687",
"0.66157013",
"0.660... | 0.0 | -1 |
Gets the root project folder. | def UBTC() -> str:
zOGz = TLI7(RUFc(xAKo))
print(zOGz)
O0al = '/'.join(zOGz.split('/')[0:-2])
return O0al | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def phdL() -> GkAb:\n KfRp = GkAb(xAKo).parent.resolve().parent\n return KfRp",
"def mSqg(YKHO):\n return YKHO._project_dir",
"def L59w(YKHO):\n return Hy7s.path.dirname(xAKo)",
"def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent",
"def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent... | [
"0.8554813",
"0.85456836",
"0.8353582",
"0.8339099",
"0.8339099",
"0.8339099",
"0.8339099",
"0.83169466",
"0.83169466",
"0.8299859",
"0.82986987",
"0.8293594",
"0.8280732",
"0.8242734",
"0.82341874",
"0.82106507",
"0.8192927",
"0.8184998",
"0.816887",
"0.81592244",
"0.8155156... | 0.0 | -1 |
Return a full path to a notebook given its name. | def jj_B(YKHO, mWFP):
Ux0P = mWFP + YKHO.filename_ext
pmON = Hy7s.path.join(YKHO.notebook_dir, Ux0P)
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iFGS(jeLr, pmON=None):\n mWFP = jeLr.rsplit('.', 1)[-1]\n if not pmON:\n pmON = ['']\n for Csk6 in pmON:\n eB1j = Hy7s.path.join(Csk6, mWFP + '.ipynb')\n if Hy7s.path.isfile(eB1j):\n return eB1j\n eB1j = eB1j.replace('_', ' ')\n if Hy7s.path.isfile(eB1j):\... | [
"0.8102559",
"0.8102559",
"0.8102559",
"0.7525145",
"0.7372123",
"0.7282324",
"0.70895123",
"0.7000085",
"0.6756705",
"0.6507587",
"0.6475327",
"0.63772744",
"0.63543314",
"0.6116092",
"0.60888606",
"0.60520107",
"0.6037624",
"0.5968743",
"0.5914494",
"0.5912634",
"0.5876178"... | 0.74616855 | 4 |
return exp(0.5 (xmu)T sigma_inv (xmu)), which is the gaussian distribution multiplied by a constant | def HqNy(yGTL, tUcK, WKvO):
return oyIN.exp(-oyIN.dot(oyIN.dot((WKvO - yGTL).transpose(), tUcK), WKvO - yGTL) / 2.0)[0][0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qeoL(YKHO, yGTL, WTkW, WKvO):\n return epAf.exp(-(yGTL - WKvO) ** 2 / WTkW ** 2 / 2.0 / epAf.sqrt(2.0 * epAf.pi * WTkW ** 2))",
"def IAWS(yGTL, WTkW, WKvO):\n return oyIN.exp(-(WKvO - yGTL) ** 2 / (2 * WTkW ** 2))",
"def IAWS(WKvO, yGTL, WTkW):\n OEry = 1.0 / oyIN.sqrt(2 * oyIN.pi * WTkW ** 2)\n ... | [
"0.79400563",
"0.78240526",
"0.77930784",
"0.7775979",
"0.76937956",
"0.76769173",
"0.76680094",
"0.7629451",
"0.76054174",
"0.75996387",
"0.7550798",
"0.7548851",
"0.7542893",
"0.75270736",
"0.751072",
"0.7509329",
"0.74539536",
"0.74232715",
"0.7393115",
"0.7346661",
"0.734... | 0.8432395 | 0 |
Gets the supplied group's current parent index. | def EjcG(YKHO, PUE0):
return ccKF.getAttr('{}.targetDirectory[{}].parentIndex'.format(YKHO._blendshape, PUE0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ICDs(YKHO) -> int:\n return 0",
"def KwgP(YKHO, d6pt):\n return d6pt / 2",
"def ciM6(YKHO):\n return YKHO.index",
"def pU7D(YKHO, cIIR):\n pU7D = 0\n if cIIR > 0 and cIIR < len(YKHO._items):\n pU7D = int((cIIR - 1) / 2)\n else:\n raise ValueError\n return pU7D",
"def ... | [
"0.75638205",
"0.7532099",
"0.7479415",
"0.74128354",
"0.7395719",
"0.7346073",
"0.7346073",
"0.7346073",
"0.733855",
"0.733855",
"0.72973096",
"0.7257166",
"0.7234474",
"0.71613127",
"0.70893425",
"0.70789343",
"0.7005914",
"0.6943831",
"0.69385016",
"0.6924443",
"0.6901017"... | 0.8113486 | 0 |
Returns the supplied group's name. | def O2B9(YKHO, PUE0):
YKHO._check_grp_validation(PUE0)
return ccKF.getAttr('{}.targetDirectory[{}].directoryName'.format(YKHO._blendshape, PUE0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def mWFP(YKHO, mWFP):\n return YKHO._group._name",
"def IXKo(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_name')",
"def DQkD(*qIxc):\n raise NotImplementedError",
"def IXKo(YKHO):\n return YKHO._get_group_name_by_num(YKHO.... | [
"0.83517987",
"0.8329186",
"0.82651234",
"0.8245228",
"0.81530863",
"0.81160367",
"0.8113996",
"0.811058",
"0.80226576",
"0.80121285",
"0.8002813",
"0.78471935",
"0.7781782",
"0.7742032",
"0.7687131",
"0.7681729",
"0.7613753",
"0.756208",
"0.7561277",
"0.7444603",
"0.74291676... | 0.7227785 | 36 |
Fetches a list of valid target indices. | def XzLS(YKHO):
return [YKHO._extract_index(hkS8) for hkS8 in ccKF.listAttr('{}.parentDirectory'.format(YKHO._blendshape), multi=True) or []] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tJTI(YKHO) -> x1iM[int]:\n return [oeNL - YKHO.min_sequence_position_value for oeNL in YKHO.sequence_target_positions]",
"def o8Vo(YKHO):\n return YKHO.targets[ytBf.TRAIN_LIMIT + 1:4500]",
"def EM8y(YKHO):\n bq7h = ['PC.354', 'PC.355', 'PC.356', 'PC.481', 'PC.593']\n Svpw = [0, 1, 2, 3, 4]\n ... | [
"0.7019846",
"0.6851598",
"0.65418863",
"0.6525498",
"0.6493339",
"0.64921975",
"0.6484267",
"0.6365316",
"0.6339494",
"0.62672",
"0.61614776",
"0.61594117",
"0.6110709",
"0.61091125",
"0.6093122",
"0.60771227",
"0.6069959",
"0.60694855",
"0.60544246",
"0.60254985",
"0.599362... | 0.6639961 | 2 |
creates a default jinja2 template at the specified path. | def vkpb(UhR0, w1vn):
rPXJ = '<!DOCTYPE html>\n<html lang="en">\n <head>\n <meta charset="utf-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <title>{{ page.title }}</title>\n <link href="/css/%s.css" rel="stylesheet" />\n </head>\n <body>\n ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OLVn(pmON: str | Path) -> GSRe:\n return RoWC.from_string(GkAb(pmON).read_text())",
"def rPXJ(qm1k: str) -> qPGQ.Template:\n return zI91.get_template(qm1k)",
"def rPXJ(qm1k: str) -> qPGQ.Template:\n return zI91.get_template(qm1k)",
"def TvZl(UhR0, QpfX):\n pmON, Ux0P = Hy7s.path.split(UhR0)\n... | [
"0.7528942",
"0.73595536",
"0.73595536",
"0.7227651",
"0.70783025",
"0.7005316",
"0.6882984",
"0.6843274",
"0.6824586",
"0.67652774",
"0.67386514",
"0.6674257",
"0.66480196",
"0.65792847",
"0.6573564",
"0.65372735",
"0.6528895",
"0.6517658",
"0.6507012",
"0.64924663",
"0.6463... | 0.5978552 | 54 |
Initialize empty set as the result. | def FIMM(YKHO):
YKHO.result = set()
super(UYgy, YKHO).__init__() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.d = oRi_(set)",
"def FIMM(YKHO):\n YKHO._S = set()",
"def LwCW(YKHO):\n KCHu = set()\n vC9B = []\n assert cntZ(KCHu) is None\n assert cntZ(vC9B) is None",
"def FIMM(YKHO, OxJJ=None):\n YKHO._data = set()\n if OxJJ is not None:\n for geyT in OxJJ:\n ... | [
"0.7027762",
"0.6832271",
"0.68276626",
"0.67719305",
"0.67025715",
"0.6673645",
"0.6625444",
"0.66149926",
"0.65516263",
"0.6528431",
"0.6525057",
"0.651416",
"0.6511878",
"0.64884186",
"0.6480915",
"0.64621955",
"0.6450107",
"0.6432208",
"0.6408402",
"0.6404689",
"0.6398976... | 0.59258443 | 57 |
Initialize empty set as the result. | def FIMM(YKHO):
YKHO.result = set()
super(Vr9B, YKHO).__init__() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.d = oRi_(set)",
"def FIMM(YKHO):\n YKHO._S = set()",
"def LwCW(YKHO):\n KCHu = set()\n vC9B = []\n assert cntZ(KCHu) is None\n assert cntZ(vC9B) is None",
"def FIMM(YKHO, OxJJ=None):\n YKHO._data = set()\n if OxJJ is not None:\n for geyT in OxJJ:\n ... | [
"0.7026727",
"0.6831705",
"0.6824675",
"0.67717624",
"0.6699529",
"0.66749406",
"0.6625039",
"0.66153973",
"0.6552972",
"0.65280193",
"0.6525576",
"0.6515611",
"0.6512154",
"0.6487214",
"0.6480563",
"0.64620864",
"0.6451559",
"0.64332485",
"0.6408423",
"0.6403825",
"0.6397077... | 0.0 | -1 |
Get requirements for a task. | def PNeM(YKHO, GPtr, vytA, wvEv):
D5gV = GPtr['tasks'][vytA]
qv1X = D5gV['requirements'].copy() if 'requirements' in D5gV else {}
for G1Hx in qv1X:
if isinstance(qv1X[G1Hx], list):
qv1X[G1Hx] = [wvEv.parse(wEf2, GPtr) for wEf2 in qv1X[G1Hx]]
else:
qv1X[G1Hx] = wvEv.pa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO, D5gV):\n DjZ0 = [G1Hx for G1Hx, Ty9i in D5gV.__class__.__dict__.items() if isinstance(Ty9i, jfKu)]\n return {G1Hx: getattr(D5gV, G1Hx) for G1Hx in DjZ0}",
"def nrOS(YKHO, D5gV):\n U5bT = {G1Hx: getattr(D5gV, G1Hx) for G1Hx, Ty9i in YKHO.cls.__dict__.items() if isinstance(Ty9i, jfKu)}\n ... | [
"0.71842265",
"0.7056839",
"0.7050596",
"0.68774843",
"0.6702086",
"0.6601543",
"0.6598099",
"0.65755296",
"0.6439481",
"0.6426777",
"0.642352",
"0.63693166",
"0.63596785",
"0.6356539",
"0.63324887",
"0.6290722",
"0.62220764",
"0.62176114",
"0.62135327",
"0.61310965",
"0.6100... | 0.6646935 | 5 |
Return the game of the given game id. | def lVlK(YKHO, A0tR):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lVlK(A0tR: int):\n BH3N = _apf.query.filter_by(game_id=A0tR).first()\n return BH3N",
"def NMoC(YKHO, id):\n BH3N = lVlK(id)\n if not BH3N:\n nNXP.abort(404)\n else:\n return BH3N",
"def fhwk(A0tR):\n BH3N = None\n try:\n BH3N = _apf.objects.get(pk=A0tR)\n except... | [
"0.8537801",
"0.8402555",
"0.8278155",
"0.8250458",
"0.8002735",
"0.7974648",
"0.78914434",
"0.78476626",
"0.781725",
"0.77237976",
"0.77069134",
"0.7612335",
"0.74113744",
"0.7324699",
"0.7321305",
"0.7273896",
"0.725712",
"0.7245826",
"0.70429873",
"0.70318496",
"0.7011244"... | 0.84517956 | 1 |
Load the list of available packages from the given roots (and the installed package list) to the memory map. The packages themselves won't be parsed or instantiated, only the name storage is loaded. | def oRYn(kGIL):
def y4Ba(hxGQ):
"""
Dispatches the actual creation of the `package.Package` instance for
the given logical `package_name` to the appropriate factory method.
"""
if Br1e().is_installed(hxGQ):
with Br1e().get_package_archive(hxGQ) as a6A4:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kunr(YKHO):\n RcNW = '.*\\\\.pkg'\n YKHO.packages = {}\n P8oC = YKHO.wot + '/res/packages/'\n for tMMy in Hy7s.listdir(P8oC):\n if Hy7s.path.isfile(P8oC + tMMy) and ZbWC.match(RcNW, tMMy):\n YKHO.packages[tMMy] = P8oC + tMMy",
"def tyeH(YKHO, ZWCE):\n A37B = U8Lr()\n ZG5N ... | [
"0.69206804",
"0.67943877",
"0.6077653",
"0.6069759",
"0.6069759",
"0.6001047",
"0.58496594",
"0.5824302",
"0.5810546",
"0.57638156",
"0.57365614",
"0.57350713",
"0.5671248",
"0.56254303",
"0.56242144",
"0.56188923",
"0.5605989",
"0.55973375",
"0.5588381",
"0.5584262",
"0.557... | 0.7018694 | 0 |
Returns the state if it exists or none | def tgbc(mWFP, JBZA):
QTBn = wHLO.objects.filter(name=mWFP, description=JBZA)
if QTBn.exists():
return QTBn
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o() -> uLKX[None, dict]:\n try:\n return vHkF.get()\n except LookupError:\n return None",
"def ja6o(YKHO, mWFP: Text) -> h8nf[wHLO]:\n for QTBn in YKHO.__states:\n if QTBn.name == mWFP:\n return QTBn",
"def GBfH(YKHO, mWFP):\n return YKHO.states[YKHO.name + '~... | [
"0.76863277",
"0.7460084",
"0.7408026",
"0.72489804",
"0.7079225",
"0.70144105",
"0.6976295",
"0.691787",
"0.6909924",
"0.6853351",
"0.6842169",
"0.6834116",
"0.6828516",
"0.6803715",
"0.6803715",
"0.6803715",
"0.6803715",
"0.6803715",
"0.6803715",
"0.6803715",
"0.6803715",
... | 0.71141505 | 4 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(AOn_, YKHO).__init__(*qIxc, **c_sp)
if YKHO.power_1 is None:
YKHO.power_1 = 0.0
if YKHO.power_2 is None:
YKHO.power_2 = 0.0
if YKHO.power_3 is None:
YKHO.power_3 = 0.0
if YKHO.power_4 is... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.8167091",
"0.7721305",
"0.7721305",
"0.7653387",
"0.75735575",
"0.7544938",
"0.7486126",
"0.74712706",
"0.7458634",
"0.7447028",
"0.74456894",
"0.74340963",
"0.741523",
"0.7408652",
"0.73922",
"0.7376216",
"0.7364397",
"0.73264366",
"0.7325022",
"0.7325022",
"0.7325022",
... | 0.0 | -1 |
Splits a provided list into n chunks | def sehz(jzdc, exwG):
G1Hx, r8hN = divmod(len(jzdc), exwG)
try:
U65v = [jzdc[YRbF * G1Hx + min(YRbF, r8hN):(YRbF + 1) * G1Hx + min(YRbF + 1, r8hN)] for YRbF in range(exwG)]
except:
U65v = jzdc
return U65v | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kzv7(ybN4, exwG):\n return list(eHxA(ybN4, exwG))",
"def AyNP(vC9B, exwG):\n return [vC9B[YRbF:YRbF + exwG] for YRbF in range(0, len(vC9B), exwG)]",
"def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]",
"def I7IE(BmST, exwG):\n for YRbF in ran... | [
"0.9046281",
"0.8859304",
"0.8753177",
"0.87427104",
"0.8725242",
"0.87169796",
"0.8697643",
"0.8695117",
"0.8685975",
"0.86626834",
"0.86597896",
"0.8630696",
"0.8629841",
"0.8629841",
"0.8606042",
"0.8605149",
"0.86001706",
"0.8593347",
"0.85927445",
"0.85850847",
"0.858350... | 0.0 | -1 |
Converts the 'Manuscript' section a Scrivener project XML file into a YAML file, augmenting with additional info such as rtf source file location and unique label. | def XXLC(qIxc):
gH2U.to_yaml(qIxc.projdir, qIxc.scrivxml, qIxc.rtfdir, qIxc.toptitle, qIxc.typefilter, qIxc.type, qIxc.hoffset, qIxc.headings, qIxc.output) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def laOY(YKHO):\n PsKz = YKHO.data.split('---\\n')\n e5kH = PsKz[1]\n YKHO.content = '---\\n'.join(PsKz[2:])\n YKHO.info = eJb6.load(e5kH)\n YKHO.info['page'] = {}\n YKHO.info['content'] = mSjq(YKHO.content)\n for H5ew, BWXx in YKHO.info.iteritems():\n YKHO.info['page'][H5ew] = BWXx\n ... | [
"0.5618519",
"0.5445998",
"0.5377195",
"0.5358535",
"0.52502775",
"0.52304435",
"0.5215251",
"0.52055275",
"0.51572293",
"0.51484066",
"0.5147292",
"0.5123294",
"0.50590634",
"0.5053086",
"0.5047402",
"0.504595",
"0.50284284",
"0.5027007",
"0.502011",
"0.5018848",
"0.5006172"... | 0.5105115 | 12 |
Shuffle `a` inplace along the given axis. Apply numpy.random.shuffle to the given axis of `a`. Each onedimensional slice is shuffled independently. | def mddt(jzdc, jDK_=-1):
Fg_i = jzdc.swapaxes(jDK_, -1)
BLg0 = Fg_i.shape[:-1]
for cXyw in oyIN.ndindex(BLg0):
oyIN.random.shuffle(Fg_i[cXyw])
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HpnY(jzdc, jDK_):\n or8S = oyIN.random.rand(*jzdc.shape).argsort(axis=jDK_)\n return oyIN.take_along_axis(jzdc, or8S, axis=jDK_)",
"def XTtS(EcVT, jDK_=0, ztt8=True):\n if not ztt8:\n EcVT = EcVT.copy()\n oyIN.apply_along_axis(oyIN.random.shuffle, jDK_, EcVT)\n if not ztt8:\n ret... | [
"0.84428346",
"0.7493955",
"0.74104536",
"0.6622632",
"0.659595",
"0.65942746",
"0.6309644",
"0.62927186",
"0.620656",
"0.61246437",
"0.61194134",
"0.6116269",
"0.6075103",
"0.5990037",
"0.5982024",
"0.59699744",
"0.5915508",
"0.58555573",
"0.5796233",
"0.57853174",
"0.572499... | 0.8230047 | 1 |
Load and preprocess MNIST dataset | def YDVJ(lCFC='./dataset/mnist', fXRW=0, D7W0=60000, HFMe=0, yYcf=10000):
assert isinstance(fXRW, int)
assert isinstance(D7W0, int)
assert isinstance(HFMe, int)
assert isinstance(yYcf, int)
from tensorflow.examples.tutorials.mnist import input_data
w37D = input_data.read_data_sets(lCFC, one_hot=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MXzz():\n zRFz = 28\n X3bi = 10\n RRlC = {'X_train': ('train-images-idx3-ubyte.gz', 60000), 'T_train': ('train-labels-idx1-ubyte.gz', 60000), 'X_test': ('t10k-images-idx3-ubyte.gz', 10000), 'T_test': ('t10k-labels-idx1-ubyte.gz', 10000)}\n nPrm = {}\n for UXqs, (mWFP, wK7l) in RRlC.items():\n ... | [
"0.79765326",
"0.78466403",
"0.7662523",
"0.7630214",
"0.76184607",
"0.7557661",
"0.7530971",
"0.7488552",
"0.7479763",
"0.7465424",
"0.73995394",
"0.7394746",
"0.7366882",
"0.7311108",
"0.72785115",
"0.7268151",
"0.7260835",
"0.7243794",
"0.7208212",
"0.71866214",
"0.7184616... | 0.0 | -1 |
Load and preprocess FMNIST dataset | def izpn(lCFC='./dataset/fmnist', fXRW=0, D7W0=60000, HFMe=0, yYcf=10000):
assert isinstance(fXRW, int)
assert isinstance(D7W0, int)
assert isinstance(HFMe, int)
assert isinstance(yYcf, int)
from tensorflow.examples.tutorials.mnist import input_data
w37D = input_data.read_data_sets(lCFC, one_hot... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pX0r():\n w37D = WbAn.read_data_sets('MNIST_data/', one_hot=True)\n return w37D",
"def MXzz():\n zRFz = 28\n X3bi = 10\n RRlC = {'X_train': ('train-images-idx3-ubyte.gz', 60000), 'T_train': ('train-labels-idx1-ubyte.gz', 60000), 'X_test': ('t10k-images-idx3-ubyte.gz', 10000), 'T_test': ('t10k-... | [
"0.74576014",
"0.7188134",
"0.7149036",
"0.7127782",
"0.7117195",
"0.6934454",
"0.6869254",
"0.6829195",
"0.6795746",
"0.6786244",
"0.67733246",
"0.67557377",
"0.67531383",
"0.67326874",
"0.6692676",
"0.6690707",
"0.66906136",
"0.6687059",
"0.6674645",
"0.6665016",
"0.6657492... | 0.0 | -1 |
Checks each table name in `table_names` for rows with invalid foreign key references. This method is intended to be used in conjunction with `disable_constraint_checking()` and `enable_constraint_checking()`, to determine if rows with invalid references were entered while constraint checks were off. Raises an Integrity... | def fB78(YKHO, MfgE=None):
N1p7 = YKHO.cursor()
if MfgE is None:
MfgE = YKHO.introspection.table_names(N1p7)
for GTA_ in MfgE:
fPeD = YKHO.introspection.get_primary_key_column(N1p7, GTA_)
if not fPeD:
continue
eQfp = YKHO.introspection.get_key_columns(N1p7, GTA_)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fB78(YKHO, MfgE=None):\n with YKHO.cursor() as N1p7:\n if MfgE is None:\n MfgE = YKHO.introspection.table_names(N1p7)\n for GTA_ in MfgE:\n fPeD = YKHO.introspection.get_primary_key_column(N1p7, GTA_)\n if not fPeD:\n continue\n jpc5 =... | [
"0.7803084",
"0.6217103",
"0.61841196",
"0.5964561",
"0.592672",
"0.5850348",
"0.57452625",
"0.5736629",
"0.5731799",
"0.56976646",
"0.56228334",
"0.5612604",
"0.55970615",
"0.5569409",
"0.55688405",
"0.5556613",
"0.5546624",
"0.54272366",
"0.53997225",
"0.53905565",
"0.53801... | 0.76459575 | 1 |
Obtain the contour of image | def IhoP(YKHO):
print('Contour button clicked')
y0pB = ycoH(YKHO.image_gray)
y0pB = IzwN(y0pB)
YKHO.contour_gray = y0pB.copy()
hCsE = lQaV(y0pB.data, y0pB.shape[1], y0pB.shape[0], y0pB.shape[1], lQaV.Format_Indexed8)
YKHO.contour_pix = Qu9P.fromImage(hCsE)
YKHO.temp_contour_pix = YKHO.contou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FFeV(YKHO, LNo8, qfpW):\n Iowl, gEYm = XC5k.findContours(YKHO._mask_color(LNo8, qfpW), XC5k.RETR_TREE, XC5k.CHAIN_APPROX_SIMPLE)\n return Iowl",
"def a3DG(LNo8):\n VXjJ = LNo8.copy()\n Yjcv, Iowl, MKlR = XC5k.findContours(VXjJ, XC5k.RETR_EXTERNAL, XC5k.CHAIN_APPROX_SIMPLE)\n iLki = sggS(Iowl)\... | [
"0.7678027",
"0.7476764",
"0.7474239",
"0.7437034",
"0.7394955",
"0.73330176",
"0.7324424",
"0.7322206",
"0.7285786",
"0.72600603",
"0.7248748",
"0.7182159",
"0.7173446",
"0.716845",
"0.7157378",
"0.7134596",
"0.71292007",
"0.7104213",
"0.707528",
"0.6984625",
"0.6972338",
... | 0.0 | -1 |
Convert a pint memory quantity to one of our dicts. | def mlur(YKHO, XP5J):
return dict(value=str(XP5J.magnitude), unit=Wj8n[XP5J.units]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _p7a():\n xUdW = dict()\n for G1Hx, Ty9i in O0k5.virtual_memory().__dict__.iteritems():\n xUdW[G1Hx] = int(Ty9i)\n return xUdW",
"def _p7a():\n xUdW = dict()\n for G1Hx, Ty9i in O0k5.virtual_memory().__dict__.iteritems():\n xUdW[G1Hx] = int(Ty9i)\n return xUdW",
"def sqkv(_p... | [
"0.6333904",
"0.6324195",
"0.62461346",
"0.60285646",
"0.59444535",
"0.588715",
"0.5833909",
"0.57875323",
"0.5728587",
"0.5651918",
"0.56462604",
"0.56361073",
"0.56015515",
"0.55826664",
"0.5579441",
"0.5541206",
"0.552687",
"0.5514239",
"0.5497247",
"0.54901314",
"0.547862... | 0.6557209 | 0 |
Discover and return discovered ``DescriptorGenerator`` classes. Keys in the returned map are the names of the discovered classes, and the paired values are the actual class type objects. | def kX18(M2t1=False):
B3B_ = Hy7s.path.abspath(Hy7s.path.dirname(xAKo))
IH1p = 'DESCRIPTOR_GENERATOR_PATH'
CBy0 = 'DESCRIPTOR_GENERATOR_CLASS'
return alcw(__name__, B3B_, IH1p, CBy0, oMp3, reload_modules=M2t1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def apye():\n Aofo = []\n for U6D_ in dir(qP_6):\n if U6D_[0].isupper():\n Aofo += [(U6D_, getattr(qP_6, U6D_, None))]\n return Aofo",
"def LSYt(YKHO):\n geh0 = YKHO.call(fodo.GET, 'device_classes/')\n Q80C = geh0.json()\n for dKv6 in Q80C['device_classes']:\n yield vMl... | [
"0.6546277",
"0.6516874",
"0.64960456",
"0.64034456",
"0.63347316",
"0.6136664",
"0.61195683",
"0.6112179",
"0.6103637",
"0.6063335",
"0.5934723",
"0.5932329",
"0.5817894",
"0.57796407",
"0.57453394",
"0.5739462",
"0.57183987",
"0.571764",
"0.57172",
"0.5715143",
"0.57077366"... | 0.5977815 | 10 |
Creates a rational number, given a numerator and denominator. | def B8u7(mLGw, OCOs):
Oa1e = ML2l(mLGw, OCOs)
return [mLGw // Oa1e, OCOs // Oa1e] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(Emd4, M6pt=0, UUZ1=None, *, jnV4=True):\n YKHO = super(kteF, Emd4).__new__(Emd4)\n if UUZ1 is None:\n if type(M6pt) is int:\n YKHO._numerator = M6pt\n YKHO._denominator = 1\n return YKHO\n elif isinstance(M6pt, mSrU.Rational):\n YKHO._numerat... | [
"0.7200458",
"0.7082439",
"0.69883966",
"0.692676",
"0.69084424",
"0.6779943",
"0.6662579",
"0.6639883",
"0.65662503",
"0.65652156",
"0.6516881",
"0.6396969",
"0.63764113",
"0.6342997",
"0.6327615",
"0.628451",
"0.626578",
"0.6252384",
"0.6229334",
"0.62133557",
"0.6192665",
... | 0.5888567 | 45 |
Extracts the denominator from a rational number. >>> den(make_rat(2, 4)) 2 | def OCOs(VVTb):
return VVTb[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B8u7(mLGw, OCOs):\n \"\"\"*** YOUR CODE HERE ***\"\"\"",
"def B8u7(mLGw, OCOs):\n Oa1e = ML2l(mLGw, OCOs)\n return [mLGw // Oa1e, OCOs // Oa1e]",
"def UUZ1(YKHO):\n return YKHO._obj.DenominatorCyc().sage()",
"def DLKK(YKHO) -> float:\n ...",
"def OCOs(VVTb):\n \"\"\"*** YOUR CODE HERE... | [
"0.6744415",
"0.6642093",
"0.63326883",
"0.626144",
"0.61937565",
"0.6153401",
"0.59980136",
"0.59292513",
"0.5921952",
"0.58921236",
"0.57723397",
"0.57669693",
"0.57510555",
"0.5738548",
"0.5673309",
"0.5650013",
"0.56365615",
"0.5558761",
"0.5539579",
"0.5529537",
"0.55227... | 0.8085102 | 0 |
Pad the tensor `t` at `dim` to the length `pad_len` with right padding zeros. | def Vklj(a1PO: torch.Tensor, eusk: int, tpio: int):
if a1PO.size(tpio) == eusk:
return a1PO
else:
x_5g = list(a1PO.shape)
x_5g[tpio] = eusk - a1PO.size(tpio)
return ht2j.cat([a1PO, ht2j.zeros(*x_5g, dtype=a1PO.dtype, device=a1PO.device)], dim=tpio) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVLt(vhpA, u54L, tpio=0, hVLt=0):\n if vhpA.size(tpio) < u54L:\n return ht2j.cat([vhpA, vhpA.new(*vhpA.size()[:tpio], u54L - vhpA.size(tpio), *vhpA.size()[tpio + 1:]).fill_(hVLt)], dim=tpio)\n else:\n return vhpA",
"def Bh8h(vhpA, u54L):\n if vhpA.size(0) == u54L:\n return vhpA\... | [
"0.75605124",
"0.70534456",
"0.6947064",
"0.68469614",
"0.67989737",
"0.6777678",
"0.6774641",
"0.67617404",
"0.6753205",
"0.67485017",
"0.67272764",
"0.67207325",
"0.66633266",
"0.6568115",
"0.64360875",
"0.6399181",
"0.63730806",
"0.63470304",
"0.6346105",
"0.63039374",
"0.... | 0.84193534 | 0 |
Sends an invite to a team | async def send_invite(YKHO, Wxnj, A6tF):
JeFm = YKHO.dbinter.get_invite_from_code(Wxnj)
MW_7 = BfDw.member.get_member_team(A6tF)
Bs2h = JeFm[1]
if MW_7 == Bs2h:
await A6tF.send('You cannot invite your own team')
return
YU3N = YKHO.dbinter.get_teams_blocked_slots(Bs2h)
for bInP in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dBMf(YKHO) -> None:\n YKHO.client.add_team_member(YKHO.args.account_id, YKHO.args.team_id, YKHO.args.email)",
"def CfLQ(YKHO, dZPi):\n for mS46 in dZPi:\n try:\n geh0 = mE3u.users.invite(mS46.email, mS46.first_name)\n k8wH.secho('OK {} invited to Slack'.format(mS46.email), ... | [
"0.763592",
"0.7624247",
"0.733609",
"0.72046584",
"0.71299726",
"0.7049301",
"0.69538224",
"0.68879575",
"0.6862961",
"0.6843299",
"0.6819068",
"0.6819068",
"0.67986286",
"0.67844874",
"0.678223",
"0.676171",
"0.67470866",
"0.6731389",
"0.6695935",
"0.66905564",
"0.6676683",... | 0.7204996 | 3 |
Sets filehandler and streamhandler so the logger goes to the correct output for job_config. | def Vuh0(bo34, pSxt=None):
bo34.setLevel(G9jH.DEBUG)
Npgh = G9jH.StreamHandler()
Npgh.setLevel(G9jH.ERROR)
uaPq = G9jH.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
Npgh.setFormatter(uaPq)
bo34.addHandler(Npgh)
if pSxt:
j7oc = '{}.log'.format(pSxt.morf_id)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DFv0(YKHO):\n _63S = YKHO._meta.namespace\n qaEx = YKHO.app.config.get(YKHO._meta.config_section, 'file')\n N0Pp = YKHO.app.config.get(YKHO._meta.config_section, 'rotate')\n Znu6 = YKHO.app.config.get(YKHO._meta.config_section, 'max_bytes')\n ojmj = YKHO.app.config.get(YKHO._meta.config_section,... | [
"0.6789729",
"0.6753441",
"0.66617435",
"0.66150236",
"0.65336347",
"0.652627",
"0.6485802",
"0.6435991",
"0.63945675",
"0.6392805",
"0.6272127",
"0.6270732",
"0.62675923",
"0.6261393",
"0.62361383",
"0.62282914",
"0.6205631",
"0.61857325",
"0.61771584",
"0.61563367",
"0.6126... | 0.6637681 | 3 |
Lifetime of cookies in seconds. This setting is applicable to external and internal HTTP(S) load balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is nonpersistent and lasts only until the end of the browser session (or equivalent). The maximum allowed... | def s62S(YKHO) -> int:
return qe4Y.get(YKHO, 'affinity_cookie_ttl_sec') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pg_u():\n mWFP = CnSx.serving.request.config.get('tools.sessions.name', 'session_id')\n oB7v = 60 * 60 * 24 * 365\n tTpl = ITS7.time() - oB7v\n CnSx.serving.response.cookie[mWFP]['expires'] = LFOd.HTTPDate(tTpl)",
"def gosK(YKHO):\n return 1800",
"def m7Ih(YKHO, cBdA):\n Sm0u = gCuF.AGENT... | [
"0.6692421",
"0.65708",
"0.6281783",
"0.62237906",
"0.6126038",
"0.6105013",
"0.60863763",
"0.6064068",
"0.59933054",
"0.5899221",
"0.58568674",
"0.58568674",
"0.58103627",
"0.57905424",
"0.5765379",
"0.57309407",
"0.57151884",
"0.57027596",
"0.56880367",
"0.5670012",
"0.5651... | 0.6209834 | 4 |
An optional description of this resource. Provide this property when you create the resource. | def JBZA(YKHO) -> str:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P8Tj(YKHO):\n return YKHO.properties.get('DescriptionResource', ZzWQ(YKHO.context, oudJ('DescriptionResource', YKHO.resource_path)))",
"def P8Tj(YKHO):\n return YKHO.properties.get('DescriptionResource', ZzWQ(YKHO.context, oudJ('DescriptionResource', YKHO.resource_path)))",
"def P8Tj(YKHO):\n retu... | [
"0.7724432",
"0.7724432",
"0.7724432",
"0.7418485",
"0.7418485",
"0.7385544",
"0.73567086",
"0.73252016",
"0.7277979",
"0.7277979",
"0.7277979",
"0.7277979",
"0.7277979",
"0.7277979",
"0.7277979",
"0.7277979",
"0.7277979",
"0.7277979",
"0.7277979",
"0.7277979",
"0.7277979",
... | 0.0 | -1 |
The resource URL for the edge security policy associated with this backend service. | def FEW_(YKHO) -> str:
return qe4Y.get(YKHO, 'edge_security_policy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _KoM(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'policy_uri')",
"def PKrO(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_url')",
"def FEW_(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'edge_security_policy')",
"def i3AV(YKHO):\n if not YKHO.__policyurl:\n YKHO.debug('Warn... | [
"0.69093025",
"0.69001013",
"0.67626387",
"0.6748431",
"0.6373518",
"0.6373518",
"0.6373518",
"0.6373518",
"0.63468826",
"0.63433105",
"0.61502063",
"0.61502063",
"0.6078824",
"0.6025701",
"0.60142744",
"0.59869665",
"0.5984695",
"0.5977096",
"0.5975674",
"0.59706414",
"0.592... | 0.7093291 | 0 |
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An uptodate fingerprint must be provided in order to update the BackendService, otherwise the request will fail with error 412 conditionNotMet... | def s7Zb(YKHO) -> str:
return qe4Y.get(YKHO, 'fingerprint') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s7Zb(YKHO) -> 'outputs.FingerprintResponse':\n return qe4Y.get(YKHO, 'fingerprint')",
"def s7Zb(YKHO) -> 'outputs.FingerprintResponse':\n return qe4Y.get(YKHO, 'fingerprint')",
"def s7Zb(YKHO):\n return YKHO._fingerprint",
"def bqSX(YKHO):\n return YKHO.base.get('fingerprint', [])",
"def s7... | [
"0.7984792",
"0.7984792",
"0.7607468",
"0.7346349",
"0.7257157",
"0.7235557",
"0.7234816",
"0.723432",
"0.7219656",
"0.7219656",
"0.7219656",
"0.714985",
"0.7108495",
"0.70390606",
"0.70259416",
"0.699726",
"0.6955357",
"0.6941535",
"0.689843",
"0.6849813",
"0.6803688",
"0.... | 0.75690764 | 3 |
Type of resource. Always computebackendService for backend services. | def eJTR(YKHO) -> str:
return qe4Y.get(YKHO, 'kind') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uv2i(YKHO) -> str:\n return qe4Y.get(YKHO, 'backend_type')",
"def Qjbs(Emd4):\n raise NotImplementedError()",
"def s5sb(YKHO) -> h8nf['outputs.ApiResourceBackendServiceResponse']:\n return qe4Y.get(YKHO, 'backend_service')",
"def Qjbs(YKHO) -> str:\n return YKHO.__class__.__name__.upper()",
... | [
"0.71422726",
"0.7112519",
"0.7040522",
"0.6933869",
"0.6921219",
"0.6921219",
"0.6842202",
"0.68353415",
"0.6814419",
"0.6814419",
"0.6814419",
"0.6814419",
"0.6814419",
"0.6814419",
"0.6814419",
"0.6814419",
"0.6814419",
"0.6814419",
"0.6814419",
"0.6814419",
"0.6814419",
... | 0.0 | -1 |
The URL of the network to which this backend service belongs. This field can only be specified when the load balancing scheme is set to INTERNAL. | def eVVj(YKHO) -> str:
return qe4Y.get(YKHO, 'network') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D0tQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'network_url')",
"def BAhH(YKHO) -> str:\n return qe4Y.get(YKHO, 'network_uri')",
"def BAhH(YKHO) -> str:\n return qe4Y.get(YKHO, 'network_uri')",
"def BAhH(YKHO) -> str:\n return qe4Y.get(YKHO, 'network_uri')",
"def BAhH(YKHO) -> str:\n return ... | [
"0.84915775",
"0.81077576",
"0.81077576",
"0.81077576",
"0.81077576",
"0.81077576",
"0.81077576",
"0.81077576",
"0.7005958",
"0.6894472",
"0.68292904",
"0.6799643",
"0.67953813",
"0.67953813",
"0.6786199",
"0.67637336",
"0.67637336",
"0.67637336",
"0.67637336",
"0.67637336",
... | 0.7419944 | 8 |
URL of the region where the regional backend service resides. This field is not applicable to global backend services. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. | def zn0c(YKHO) -> str:
return qe4Y.get(YKHO, 'region') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yoqs(YKHO):\n zn0c = YKHO.osclients.region\n YKHO.url_base = YKHO.osclients.get_public_endpoint('paas', zn0c)\n YKHO.url_temp = YKHO.url_base + '/catalog/org/FIWARE/vdc/' + YKHO.tenant_id + '/environment'\n YKHO.url_blue = YKHO.url_base + '/envInst/org/FIWARE/vdc/' + YKHO.tenant_id + '/environmentI... | [
"0.6656074",
"0.6391706",
"0.6376429",
"0.63404214",
"0.62928706",
"0.62720084",
"0.62593436",
"0.6219929",
"0.6177241",
"0.6135257",
"0.6135257",
"0.6114405",
"0.6109486",
"0.6100755",
"0.6086363",
"0.6082939",
"0.6080165",
"0.6079267",
"0.60719675",
"0.6068995",
"0.60684514... | 0.61258364 | 11 |
The resource URL for the security policy associated with this backend service. | def PI1v(YKHO) -> str:
return qe4Y.get(YKHO, 'security_policy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _KoM(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'policy_uri')",
"def PKrO(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_url')",
"def i3AV(YKHO):\n if not YKHO.__policyurl:\n YKHO.debug('Warning: In the initial release of Del Auth, a Policy URL must be configured in the SDK for both... | [
"0.7381504",
"0.7194921",
"0.6958057",
"0.65277547",
"0.65277547",
"0.65277547",
"0.65277547",
"0.64691615",
"0.6448582",
"0.6448582",
"0.637505",
"0.63672465",
"0.6327813",
"0.6327813",
"0.6251873",
"0.6223303",
"0.61837506",
"0.6154496",
"0.6154496",
"0.61523",
"0.6129649",... | 0.6881387 | 3 |
Loads a model from a given file | def uyMl(YKHO, mWFP: str):
YKHO.cM = c7yn(mWFP + '.span.cfg')
NiJx = t2lc.load(open(mWFP + '.span.in_voc', 'rb'))
YKHO.input_field.vocab = NiJx
Q1PJ = ht2j.nn.Embedding.from_pretrained(YKHO.input_field.vocab.vectors)
YKHO.network = oWjn(YKHO.cM, 3, Q1PJ)
YKHO.network.load_model('data/models/span... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(Ux0P):\n pass",
"def uyMl(Ux0P):\n raise NotImplementedError()",
"def uyMl(Ux0P: str):\n return tyeH(Ux0P)",
"def uyMl(YKHO, gIsw):\n raise NotImplementedError",
"def uyMl(YKHO, WJHQ):\n raise NotImplementedError",
"def tyeH(YKHO, SkYi: Path) -> None:\n pass",
"def uyMl(ytgA:... | [
"0.8967063",
"0.87652004",
"0.8681479",
"0.86020845",
"0.8503734",
"0.8435743",
"0.8423004",
"0.84006023",
"0.82884663",
"0.82884663",
"0.82884663",
"0.8287075",
"0.8264653",
"0.8259579",
"0.8226636",
"0.8220302",
"0.8127095",
"0.8127095",
"0.8119566",
"0.81144786",
"0.806182... | 0.0 | -1 |
Create a new rows x cols matrix, whose entries are equal to the specified value | def A5BC(usx6, WfCS=1, wEf2=0.0):
k0lF = []
if WfCS != 1 or WfCS != 0:
for YRbF in range(usx6):
k0lF.append([])
for YRbF in range(usx6):
for r845 in range(WfCS):
k0lF[YRbF].append(wEf2)
else:
for YRbF in range(usx6):
k0lF.append(wEf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HZ2h(zNig=1024, BWXx=1):\n SppC = [[BWXx for fvDH in range(0, zNig)] for rdlD in range(0, zNig)]\n return SppC",
"def kiFE(usx6, ZLJ_):\n return oyIN.zeros((usx6, ZLJ_))",
"def bZq3(vb7U, rdlD, fvDH, BWXx):\n vb7U[rdlD][fvDH] = BWXx\n return vb7U",
"def mJad(YKHO, exwG, wEf2):\n SppC = ... | [
"0.71264106",
"0.6842522",
"0.6603016",
"0.6570846",
"0.6570846",
"0.65137506",
"0.63863987",
"0.62215227",
"0.62075573",
"0.62075573",
"0.61578083",
"0.61311203",
"0.6082762",
"0.60731953",
"0.6063078",
"0.605221",
"0.6033665",
"0.60214764",
"0.6018381",
"0.60123324",
"0.599... | 0.6959978 | 1 |
Quote a set of arguments for a windows command line. Doublequote each argument, and backslashescape any backslashes before double quotes and the double quotes themselves. Finally, put a ^ before each shell metacharacter so it will survive cmd.exe. Based on the algorithm in | def A0aF(qIxc):
OBYM = []
for d7pR in qIxc:
qIOa = ['"']
SBD8 = 0
for Z9rn in d7pR:
if Z9rn == '\\':
SBD8 += 1
elif Z9rn == '"':
qIOa.append('\\' * (2 * SBD8 + 1) + Z9rn)
SBD8 = 0
else:
qI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k2AI(oUZx):\n cpMp = Yn3K.list2cmdline([oUZx])\n return ''.join(['^%s' % d7pR if d7pR in '()%!^\"<>&|' else d7pR for d7pR in cpMp])",
"def ad1m(qIxc):\n if Hy7s.name == 'nt':\n import subprocess\n return subprocess.list2cmdline(qIxc)\n else:\n import pipes\n return ' '... | [
"0.7630453",
"0.7630209",
"0.72536993",
"0.70841",
"0.70763403",
"0.7033758",
"0.6926076",
"0.6891719",
"0.68682545",
"0.6862674",
"0.6862674",
"0.6794643",
"0.6681688",
"0.66790503",
"0.6677661",
"0.6633985",
"0.65876895",
"0.6522697",
"0.6522106",
"0.64680123",
"0.64624494"... | 0.80087936 | 0 |
Removes last element in data and returns it | def BEuN(YKHO):
SADC = YKHO.data[YKHO.length - 1]
YKHO.data = YKHO.data[0:YKHO.length - 1]
YKHO.length -= 1
return SADC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qeks(YKHO) -> ImMB:\n wEf2 = YKHO.array[YKHO.size - 1]\n YKHO.array[YKHO.size - 1] = None\n return wEf2",
"def Qeks(YKHO):\n if YKHO.tail is None:\n return\n nPrm = YKHO.tail.data\n if YKHO.tail.skip_back is not None:\n YKHO.tail = YKHO.tail.skip_back.next\n YKHO.tail.n... | [
"0.76434153",
"0.7575718",
"0.75225717",
"0.7391673",
"0.7364295",
"0.73424447",
"0.7330179",
"0.7292127",
"0.72153443",
"0.7205661",
"0.7205661",
"0.71944565",
"0.7061868",
"0.703063",
"0.6995976",
"0.6924317",
"0.6914426",
"0.6908606",
"0.68859404",
"0.688484",
"0.68788266"... | 0.7813062 | 0 |
Builds a residual block with repeating bottleneck blocks. | def QufS(KUnM, ISIR, Ot1W=(3, 3), FEri=(2, 2), eje_=False):
def eHNT(input):
for YRbF in range(ISIR):
IaI0 = (1, 1)
if YRbF == 0 and (not eje_):
IaI0 = FEri
input = Ehbh(filters=KUnM, kernel_size=Ot1W, init_strides=IaI0, is_first_block_of_first_layer=eje_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NFrR(YKHO, ivFb):\n QufS = RfXF(YKHO.res_layers_num, YKHO.skip_layers_num, ivFb)\n return QufS",
"def b1Or(WKvO, KUnM, _0fC=1):\n o4D3 = FeL1(WKvO, KUnM, _0fC)\n ajwV = FeL1(WKvO, KUnM, _0fC)\n if _0fC > 1:\n WKvO = xK0d(WKvO, KUnM, _0fC)\n return XVRe()([WKvO, wwet()([o4D3, ajwV])])... | [
"0.70525295",
"0.68989944",
"0.6828774",
"0.6779007",
"0.64531475",
"0.6344011",
"0.6334344",
"0.625793",
"0.62225735",
"0.62225735",
"0.6178759",
"0.6172926",
"0.6153347",
"0.61353576",
"0.6132829",
"0.60747534",
"0.60747534",
"0.6038818",
"0.60349774",
"0.6021326",
"0.60003... | 0.6293982 | 7 |
Read the CSV input data as NamedTuple | def Nwr9(pmON: str) -> x1iM[RAUw]:
global Entry
with open(pmON) as z36O:
ixsc = m6_J.reader(z36O, delimiter=',')
ip17 = False
en4D = []
for rdlD in ixsc:
if not ip17:
RAUw = g760.namedtuple('Entry', rdlD)
ip17 = True
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f_9j(WtPB=False):\n if not WtPB:\n WtPB = m6_J.reader(HwRy.stdin, delimiter=',', quoting=m6_J.QUOTE_NONE)\n else:\n WtPB = WtPB.strip().split('\\n')\n WtPB = [YRbF.split(',') for YRbF in WtPB]\n Q1GT = zip(*[map(lambda WKvO: WKvO.strip(), rdlD) for rdlD in WtPB])\n return Q1GT"... | [
"0.68553764",
"0.67208135",
"0.6465523",
"0.6363401",
"0.6356928",
"0.6320932",
"0.6257761",
"0.6173258",
"0.61272174",
"0.61162764",
"0.5978986",
"0.5908296",
"0.59028786",
"0.5877893",
"0.5871297",
"0.58306766",
"0.5815184",
"0.5782702",
"0.57776725",
"0.5769082",
"0.576816... | 0.56960654 | 31 |
reads JSON from a file | def dftL(qaEx):
hGN5 = Ki2L(qaEx)
return qQXR.loads(hGN5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PSj2(Ux0P):\n with open(Ux0P) as eHNT:\n return _PkU(eHNT)",
"def PSj2(Ux0P):\n with open(Ux0P) as eHNT:\n zgjV = qQXR.load(eHNT)\n return zgjV",
"def PSj2(Ux0P):\n with open(Ux0P) as r845:\n return qQXR.load(r845)",
"def PSj2(nUeQ):\n with open(nUeQ) as wM3v:\n ... | [
"0.84692055",
"0.8378812",
"0.8362136",
"0.8354026",
"0.8315548",
"0.83067375",
"0.829476",
"0.8251591",
"0.8241845",
"0.8233227",
"0.8215207",
"0.82004476",
"0.81978136",
"0.81967145",
"0.81880766",
"0.817139",
"0.81712216",
"0.81494105",
"0.81341016",
"0.8104943",
"0.809536... | 0.82399213 | 9 |
Returns 1 when `x` == 0, between 0 and 1 otherwise. | def XvY_(WKvO, oRRq, m1Hg):
if m1Hg in ('cosine', 'linear', 'quadratic'):
if not 0 <= oRRq < 1:
raise ValueError('`value_at_1` must be nonnegative and smaller than 1, got {}.'.format(oRRq))
elif not 0 < oRRq < 1:
raise ValueError('`value_at_1` must be strictly between 0 and 1, got {}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHNT(Emd4, WKvO):\n return lyYP.float64(WKvO > 0)",
"def eHNT(WKvO: float) -> int:\n if WKvO < 0:\n return -1\n elif WKvO < 1:\n return 0\n else:\n return 1",
"def NhA3(WKvO):\n if VlHN(WKvO) < 0:\n return 1\n else:\n return 0",
"def m7te(YKHO, WKvO):\... | [
"0.7288513",
"0.7284254",
"0.71627605",
"0.71485245",
"0.7107791",
"0.7055201",
"0.7052055",
"0.70175916",
"0.6983723",
"0.6967684",
"0.6962726",
"0.68262887",
"0.680129",
"0.6770488",
"0.6767881",
"0.675343",
"0.67488015",
"0.6675802",
"0.66626126",
"0.66544056",
"0.6653129"... | 0.0 | -1 |
Computes a reward if curr is inside a rectangluar prism region. The 3d points curr and zero specify 2 diagonal corners of a rectangular prism that represents the decreasing region. one represents the corner of the prism that has a reward of 1. zero represents the diagonal opposite corner of the prism that has a reward ... | def xkAy(ZbOB, sbx9, a0GJ):
sLy2 = lambda jzdc, Fg_i, Z9rn: float(Fg_i <= jzdc <= Z9rn) if Z9rn >= Fg_i else float(Z9rn <= jzdc <= Fg_i)
f8Rf = sLy2(ZbOB[0], sbx9[0], a0GJ[0]) and sLy2(ZbOB[1], sbx9[1], a0GJ[1]) and sLy2(ZbOB[2], sbx9[2], a0GJ[2])
if f8Rf:
yk4i = a0GJ - sbx9
K0JX = (ZbOB[0] ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xyVK(YKHO):\n\n def V5IB(jvSB, xi3E, Ae2G, oVTz):\n V5IB = (abs(xi3E - jvSB) / max(abs(xi3E - Ae2G), abs(xi3E - oVTz))) ** 0.8\n return V5IB\n\n def O5Kr(jvSB, xi3E, Ae2G, oVTz):\n O5Kr = 0.0\n for YRbF in range(len(xi3E)):\n ycBG = V5IB(jvSB[YRbF], xi3E[YRbF], Ae2G... | [
"0.57775116",
"0.5768488",
"0.5713542",
"0.56684303",
"0.5664926",
"0.5662074",
"0.5617077",
"0.56142384",
"0.559215",
"0.55793935",
"0.5578876",
"0.55081683",
"0.5480675",
"0.5463297",
"0.5383173",
"0.5356419",
"0.5355585",
"0.53419745",
"0.53109425",
"0.52610993",
"0.523791... | 0.5182323 | 27 |
Intrinsic dispersion added in quadrature to the variance. | def oBSG(YKHO):
if YKHO._side_properties['sigma_int'] is None:
YKHO.set_intrinsic(0)
return YKHO._side_properties['sigma_int'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8JS(YKHO):\n raise NotImplementedError",
"def I8JS(YKHO):\n raise RuntimeError('Needs to be implemented in base class')",
"def iTQd(aeVx):\n from numpy import var\n return var(aeVx) / 3.0",
"def ieZh(YKHO):\n ibax = YKHO.dvec ** 2 * (1.0 + YKHO.vvec ** 2)\n return ibax",
"def Wp7j(YK... | [
"0.6805552",
"0.6713507",
"0.6694402",
"0.6618998",
"0.65420765",
"0.6312801",
"0.6282755",
"0.6272334",
"0.62698",
"0.6245003",
"0.62307405",
"0.6224794",
"0.62035346",
"0.6200222",
"0.6153997",
"0.6149915",
"0.61465704",
"0.6105433",
"0.60537076",
"0.60358214",
"0.60344136"... | 0.58689135 | 34 |
Total number of samples in the dataset | def szAg(YKHO):
return YKHO.len | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDK5(YKHO, __n6):\n return YKHO.counts[__n6]",
"def UHFx(YKHO):\n return len(YKHO.samples)",
"def eAYh(YKHO):\n return sum((1 for bGrB in YKHO.sample_names))",
"def szAg(YKHO):\n return YKHO.total_nr_samples",
"def eAYh(YKHO):\n return len(YKHO._samples)",
"def yU06(YKHO):\n return ... | [
"0.8664947",
"0.84094137",
"0.82501435",
"0.8198463",
"0.81492186",
"0.8133565",
"0.81227416",
"0.81075686",
"0.80852157",
"0.8068288",
"0.80667794",
"0.8065804",
"0.8065804",
"0.8049487",
"0.80481243",
"0.8045352",
"0.8024592",
"0.8022202",
"0.79540443",
"0.7925293",
"0.7880... | 0.0 | -1 |
Initializes the game board, including the letter and value of each tile. | def FIMM(YKHO, iBIi, BH3N):
YKHO.input_board = iBIi
if BH3N == aq04:
YKHO.letter_values = Xb5n
YKHO.bonus_tiles = NOrG
YKHO.trie = fnnK
elif BH3N == Wed7:
YKHO.letter_values = kPy_
YKHO.bonus_tiles = HVFx
YKHO.trie = YR9Q
else:
raise ValueError('%s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpFp(YKHO):\n JnVq = YKHO.create_raw_board()\n YKHO.set_values_for_cells(JnVq)\n YKHO.cells = JnVq",
"def A6EF(YKHO):\n A4Ls = set([(7, 7)])\n wFWT = set([(0, 0), (0, 7), (0, 14), (7, 0), (7, 14), (14, 0), (14, 7), (14, 14)])\n CkL7 = set([(1, 1), (2, 2), (3, 3), (4, 4), (1, 13), (2, 12), (... | [
"0.7651974",
"0.75825536",
"0.74948376",
"0.74270463",
"0.73949033",
"0.73871565",
"0.7370297",
"0.73582083",
"0.7240165",
"0.7231579",
"0.72189957",
"0.7209387",
"0.718961",
"0.7170326",
"0.7148193",
"0.7143023",
"0.7143023",
"0.7119502",
"0.711861",
"0.7112571",
"0.7078712"... | 0.0 | -1 |
Returns a string detailing the bonus attached to a square on the game board. Returns None if the square does not have a bonus. | def glK6(YKHO, Fyji):
return YKHO.bonus_tiles.get(Fyji) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S4tA(YKHO):\n try:\n return VIXL(YKHO.bonus())\n except:\n return VIXL(None)",
"def jp16(YKHO):\n if YKHO.low.num_yahtzee_bonus == 0:\n return '---'\n else:\n return YKHO.low.yahtzee_bonus",
"def Pgc5(YKHO):\n if YKHO.low.num_yahtzee_bonus == 0:\n return '-... | [
"0.6886488",
"0.669161",
"0.6219485",
"0.6188736",
"0.61155546",
"0.59913266",
"0.5924703",
"0.587879",
"0.58043027",
"0.5646048",
"0.5548249",
"0.54711086",
"0.54584694",
"0.5443593",
"0.54407793",
"0.54302573",
"0.5424728",
"0.54126555",
"0.54054946",
"0.5399764",
"0.536188... | 0.71641374 | 0 |
Anchor squares are the squares by which new words may be connected to existing words on the board. I defined the set of anchor squares to be squares that are either hold a letter, or that are empty and one row above or below an occupied square. In either case, the square must not be directly preceded in its row by an o... | def tU_f(YKHO, rdlD, iVRZ):
vlgd = []
if not GKu2(rdlD, iVRZ):
return []
if not GKu2(rdlD, iVRZ - 1):
vlgd.append((rdlD, iVRZ))
elif not YKHO.board[rdlD][iVRZ - 1]:
vlgd.append((rdlD, iVRZ))
jjCY = [(rdlD - 1, iVRZ), (rdlD + 1, iVRZ)]
for Fyji in jjCY:
if YKHO.emp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z7U4(YKHO):\n YKHO.anchor_squares = set()\n for Fyji in YKHO.occupied_squares:\n Gdpy = YKHO.find_anchor_squares_near(*Fyji)\n YKHO.anchor_squares.update(Gdpy)\n for Fyji in YKHO.occupied_squares:\n rdlD, iVRZ = Fyji\n if Fyji in YKHO.anchor_squares and (rdlD, iVRZ - 1) in ... | [
"0.78528935",
"0.675265",
"0.6704588",
"0.6695104",
"0.660795",
"0.6460754",
"0.6460247",
"0.6450797",
"0.64385235",
"0.6427653",
"0.6388588",
"0.63335687",
"0.63229746",
"0.6322902",
"0.63051325",
"0.63048404",
"0.6272429",
"0.62364787",
"0.62320083",
"0.6222079",
"0.6122781... | 0.78569186 | 0 |
Returns True if board[row][column] contains None (a letter has not been played there) and the square in previous column does not contain a letter. Returns False otherwise. | def fOsA(YKHO, rdlD, iVRZ):
if not GKu2(rdlD, iVRZ):
return False
if YKHO.board[rdlD][iVRZ]:
return False
if not GKu2(rdlD, iVRZ - 1):
return True
if not YKHO.board[rdlD][iVRZ - 1]:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjdx(FbH0):\n CVcl = True\n rdlD = 0\n while CVcl and rdlD < len(FbH0):\n if None in FbH0[rdlD] or 'x' in FbH0[rdlD]:\n CVcl = False\n rdlD += 1\n return CVcl",
"def JUuP(YKHO, iBIi: Board) -> bool:\n for WKvO in range(3):\n for LVAh in range(3):\n if... | [
"0.725903",
"0.7222635",
"0.7135977",
"0.7120337",
"0.71045405",
"0.69955045",
"0.6980257",
"0.69219524",
"0.6898851",
"0.6894561",
"0.6880192",
"0.6841721",
"0.683155",
"0.6831335",
"0.68131745",
"0.67872083",
"0.6765044",
"0.67234516",
"0.67187065",
"0.67078894",
"0.6702215... | 0.81628126 | 0 |
Returns True if neither board[x1][y] nor board[x+1][y] holds a letter. Returns False otherwise. | def Msb7(YKHO, WKvO, LVAh):
if not GKu2(WKvO - 1, LVAh):
return not YKHO.board[WKvO + 1][LVAh]
elif not GKu2(WKvO + 1, LVAh):
return not YKHO.board[WKvO - 1][LVAh]
else:
return not (YKHO.board[WKvO + 1][LVAh] or YKHO.board[WKvO - 1][LVAh]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fOsA(YKHO, rdlD, iVRZ):\n if not GKu2(rdlD, iVRZ):\n return False\n if YKHO.board[rdlD][iVRZ]:\n return False\n if not GKu2(rdlD, iVRZ - 1):\n return True\n if not YKHO.board[rdlD][iVRZ - 1]:\n return True\n else:\n return False",
"def tIfN(hcXw, WKvO, LVAh):... | [
"0.76823914",
"0.7358844",
"0.7145597",
"0.69650745",
"0.68373775",
"0.6826546",
"0.6820382",
"0.66946644",
"0.6639184",
"0.6614798",
"0.6607405",
"0.65613985",
"0.65372455",
"0.6518912",
"0.64843476",
"0.64666986",
"0.645344",
"0.6437264",
"0.6412799",
"0.6391461",
"0.636689... | 0.0 | -1 |
Returns all empty squares adjacent to board[row][column] in a list. | def KpL3(YKHO, rdlD, iVRZ):
PjGX = []
for Mkmy, Z9rn in ((rdlD + 1, iVRZ), (rdlD - 1, iVRZ), (rdlD, iVRZ + 1), (rdlD, iVRZ - 1)):
if GKu2(Mkmy, Z9rn) and (not YKHO.board[Mkmy][Z9rn]):
PjGX.append((Mkmy, Z9rn))
return PjGX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWT0(YKHO):\n lsmZ = []\n for rdlD in range(YKHO._dim):\n for fvDH in range(YKHO._dim):\n if YKHO._board[rdlD][fvDH] == KAvf:\n lsmZ.append((rdlD, fvDH))\n return lsmZ",
"def mWT0(YKHO):\n lsmZ = []\n for rdlD in range(YKHO._dim):\n for fvDH in range(YKH... | [
"0.75686866",
"0.75686866",
"0.7536016",
"0.7439831",
"0.74308145",
"0.7290665",
"0.71953005",
"0.7168796",
"0.7089914",
"0.70149434",
"0.7002304",
"0.69972444",
"0.6992839",
"0.6977996",
"0.695963",
"0.695963",
"0.69474703",
"0.69190866",
"0.6847194",
"0.68107206",
"0.674564... | 0.8054115 | 0 |
Returns True if either of board[x1][y] and board[x+1][y] holds a letter. Returns False otherwise. | def AVTw(YKHO, rdlD, iVRZ):
if GKu2(rdlD + 1, iVRZ) and YKHO.board[rdlD + 1][iVRZ]:
return True
elif GKu2(rdlD - 1, iVRZ) and YKHO.board[rdlD - 1][iVRZ]:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DtLZ(YKHO, WKvO, LVAh, sZqf):\n ZfZE = YKHO.cross_checks.get((WKvO, LVAh))\n return sZqf in ZfZE",
"def tIfN(hcXw, WKvO, LVAh):\n if WKvO < 0 or WKvO >= hGvF or LVAh < 0 or (LVAh >= hGvF):\n return False\n return Nqlg[LVAh][WKvO] == hcXw",
"def fOsA(YKHO, rdlD, iVRZ):\n if not GKu2(rd... | [
"0.7466811",
"0.73295057",
"0.6952795",
"0.69350713",
"0.6791697",
"0.6748086",
"0.67436373",
"0.66755134",
"0.6672367",
"0.66168153",
"0.656941",
"0.6529119",
"0.651927",
"0.6480409",
"0.6474988",
"0.64067066",
"0.63807",
"0.62894493",
"0.62821865",
"0.62802655",
"0.62747586... | 0.58207 | 96 |
Initialize a WordFinder object given a board object and a string representing the letters in the tile rack. Compute the transpose of the input board and store it as self.board_t. Find all of the prefixes (any beginning to a word) that can be constructed using the rack, store in self.prefixes. | def FIMM(YKHO, iBIi, pixC=None):
YKHO.board = iBIi
YKHO.board_t = yELo(YKHO.board.transposed_input_board(), YKHO.board.game)
YKHO.game = YKHO.board.game
if YKHO.game == aq04:
YKHO.full_rack_bonus = CjyY
YKHO.trie = fnnK
elif YKHO.game == Wed7:
YKHO.full_rack_bonus = g0Yt
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G7Zd(YKHO, pixC):\n for rdlD in YKHO.board:\n for VmPb in rdlD:\n if not VmPb.anchor:\n continue\n else:\n rdlD = VmPb.row\n fvDH = VmPb.col\n HKwI = YKHO.board[rdlD][fvDH - 1]\n MC3v = []\n ... | [
"0.5968237",
"0.59066254",
"0.5829573",
"0.5632106",
"0.5571736",
"0.5539633",
"0.5460443",
"0.54415035",
"0.5427243",
"0.5413448",
"0.54063267",
"0.53953993",
"0.5388968",
"0.535866",
"0.5337006",
"0.5331387",
"0.5309915",
"0.5238265",
"0.519513",
"0.519513",
"0.519513",
"... | 0.71408516 | 0 |
Calculates the score of the vertical word that intersects with board[row][column]. | def H6Lk(YKHO, nysk):
iBIi = nysk['board']
v7cl = nysk['score_board']
rdlD, iVRZ = nysk['position']
si2z = nysk['bonus']
sZqf = nysk['letter']
if si2z:
if si2z[1] == 'L':
p1kx = int(si2z[0]) * YKHO.board.letter_values[sZqf]
pSDG = 1
elif si2z[1] == 'W':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kB2N(YKHO, fvDH, rdlD, WnvX, GIN8):\n lsmZ = YKHO.empty\n qiBc = YKHO._is_empty\n VeA3 = YKHO._read_cell\n Cs6h = YKHO.grid\n if fvDH < 1 or rdlD < 1:\n return 0\n p1kx = 1\n gf_b = 0\n G3IT = lsmZ\n for sZqf in GIN8.word:\n gf_b += 1\n try:\n xTdd = C... | [
"0.8157077",
"0.70164865",
"0.6788711",
"0.6757835",
"0.66367304",
"0.6595589",
"0.6585098",
"0.65374464",
"0.64397776",
"0.6317602",
"0.6281341",
"0.6257115",
"0.6242121",
"0.6236203",
"0.62159574",
"0.62114686",
"0.62114686",
"0.62114686",
"0.6197789",
"0.61925524",
"0.6191... | 0.66623783 | 4 |
Returns True if the Square specified by (x, y), where x and y are ints, is within the bounds of the scrabble board, and returns False otherwise. | def GKu2(WKvO, LVAh):
return 0 <= WKvO < P5Bq and 0 <= LVAh < P5Bq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MsGD(WKvO, LVAh):\n if 0 < WKvO <= 8 and 0 < LVAh <= 8:\n return True\n else:\n return False",
"def JMdc(YKHO, WKvO: int, LVAh: int) -> bool:\n return 0 <= WKvO < YKHO._width and 0 <= LVAh < YKHO._height",
"def UpLG(BrEt, WKvO, LVAh):\n lnFo, o9Bw = BrEt\n return all((WKvO >= 0... | [
"0.8345705",
"0.8302628",
"0.81891394",
"0.8159526",
"0.7956724",
"0.78939474",
"0.78121406",
"0.77769995",
"0.7660881",
"0.75223523",
"0.75223523",
"0.7517943",
"0.7434916",
"0.7408926",
"0.7386606",
"0.737647",
"0.73689353",
"0.7307537",
"0.729504",
"0.72756577",
"0.7231006... | 0.74214244 | 13 |
Tests the API endpoint to Adjust CrossCollateral LTV with missing field | def Fe97(NArs):
x0hE = i9zE(H5ew, DXni)
x0hE.futures_loan_adjust_collateral.when.called_with(**NArs).should.throw(_bAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nh6E(YKHO):\n with YKHO.client:\n geh0 = YKHO.client.get('/api/revenue/abcdefgh?update=true')\n nPrm = qQXR.loads(geh0.data.decode())\n YKHO.assertEqual(geh0.status_code, 500)\n YKHO.assertIn('fail', nPrm['status'])",
"def SvMx(YKHO):\n YKHO.insert_default_stocktakingcollect... | [
"0.6008697",
"0.58589613",
"0.57953215",
"0.57144475",
"0.5710923",
"0.5709336",
"0.5659579",
"0.5655181",
"0.56235325",
"0.56026685",
"0.56008923",
"0.5563939",
"0.5546446",
"0.55380833",
"0.5535563",
"0.5531361",
"0.5523883",
"0.5514493",
"0.5502404",
"0.54931504",
"0.54671... | 0.62791264 | 0 |
Tests the API endpoint to Adjust CrossCollateral LTV | def Cjpz():
x0hE = i9zE(H5ew, DXni)
geh0 = x0hE.futures_loan_adjust_collateral(**zdrq)
geh0.should.equal(eF9l) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AWhd(YKHO):\n pB3N = {'layers': 'wwtp_capacity_lau2', 'year': '2012', 'schema': 'public', 'nuts': ['AT30639']}\n DnVF = 200\n hlel = G4JS.post(bD7m, json=pB3N)\n assert hlel.status_code == DnVF",
"def T7TN(YKHO):\n bD7m = u'%s/COURSE:LITR:0710:2014-Fall:S01:/201410' % YKHO.api_base_url\n Mk... | [
"0.6194784",
"0.61271",
"0.5977779",
"0.5921585",
"0.5914159",
"0.59129137",
"0.5907235",
"0.5881178",
"0.57941186",
"0.57619596",
"0.5754757",
"0.5744714",
"0.57344836",
"0.5713907",
"0.56985253",
"0.5694528",
"0.568872",
"0.56827414",
"0.5682577",
"0.56657374",
"0.5660418",... | 0.0 | -1 |
Applies learning update for passive network only. | def g6Hn(xVvQ, il43, hAYR, eh1C, UlCL):
xVvQ, nfqd, EEfi = laU7(xVvQ, hAYR, eh1C, UlCL)
mEGa, cZiU = bquy(K0do.passive, hAYR.passive, EEfi.passive, il43.passive)
iVel = il43._replace(passive=mEGa)
tAHu = hAYR._replace(passive=cZiU)
return (xVvQ, iVel, tAHu, nfqd) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fggk(YKHO):\n pass",
"def Jrmf(YKHO, rbnN: bool=False) -> None:\n if rbnN:\n GamQ = []\n _mSQ = YKHO.model.get_weights()\n IxwW = YKHO.target_model.get_weights()\n for _mSQ, IxwW in zip(_mSQ, IxwW):\n GamQ.append(YKHO.tau * _mSQ + (1 - YKHO.tau) * IxwW)\n Y... | [
"0.67274314",
"0.6379758",
"0.6363832",
"0.62976825",
"0.6215516",
"0.6212542",
"0.6162175",
"0.60356957",
"0.60299695",
"0.602642",
"0.6020357",
"0.60122645",
"0.59900796",
"0.5980102",
"0.59749335",
"0.595594",
"0.5949755",
"0.59389734",
"0.59367436",
"0.5903555",
"0.589307... | 0.6816636 | 0 |
Applies learning update for both active & passive networks. | def tRC1(xVvQ, il43, hAYR, eh1C, UlCL):
xVvQ, nfqd, EEfi = laU7(xVvQ, hAYR, eh1C, UlCL)
CKIK, LaAc = bquy(K0do.active, hAYR.active, EEfi.active, il43.active)
mEGa, cZiU = bquy(K0do.passive, hAYR.passive, EEfi.passive, il43.passive)
iVel = VR7M(active=CKIK, passive=mEGa)
tAHu = VR7M(active=LaAc, pass... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fggk(YKHO):\n pass",
"def FUox(YKHO):\n for vC9B in range(1, len(YKHO.neurons)):\n YKHO.weights_desired_changes[vC9B] /= YKHO.batch_size\n YKHO.weights_desired_changes[vC9B] *= YKHO.step_size\n YKHO.weights_desired_changes[vC9B] *= -1\n YKHO.biases_desired_changes[vC9B] /= Y... | [
"0.6780244",
"0.66183954",
"0.65906316",
"0.6570605",
"0.655219",
"0.6426358",
"0.6418107",
"0.63424045",
"0.63389665",
"0.6315328",
"0.6311161",
"0.62768376",
"0.62699693",
"0.62566566",
"0.62458324",
"0.62355775",
"0.6227713",
"0.6223353",
"0.61969686",
"0.6139764",
"0.6121... | 0.63917893 | 7 |
Sets training mode to one of 'active', 'passive', or 'active_passive'. | def IyYU(YKHO, Tuqy: str):
if Tuqy == 'active':
YKHO._update = YKHO._update_active
elif Tuqy == 'passive':
YKHO._update = YKHO._update_passive
elif Tuqy == 'active_passive':
YKHO._update = YKHO._update_active_passive | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IyYU(YKHO, Tuqy: bool):\n YKHO.train(Tuqy)",
"def Lq2W(YKHO, Tuqy):\n pass",
"def Lq2W(YKHO, Tuqy):\n pass",
"def lpIk(YKHO):\n if not YKHO._is_train:\n for r8hN in YKHO._models:\n r8hN.set_train_mode()\n YKHO._is_train = True",
"def H1N_(YKHO, Tuqy: str) -> None:\n ... | [
"0.7739934",
"0.7280677",
"0.7280677",
"0.7134335",
"0.6736491",
"0.66587603",
"0.6632085",
"0.6551083",
"0.6510169",
"0.646977",
"0.64479727",
"0.6418881",
"0.63691646",
"0.62947553",
"0.6257178",
"0.62216014",
"0.619017",
"0.6154993",
"0.6150052",
"0.61438847",
"0.61104876"... | 0.87314147 | 0 |
Returns epsilon value currently used by (epsgreedy) behavior policy. | def kloS(YKHO) -> float:
return YKHO._exploration_epsilon(YKHO._frame_t) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _hZ2(YKHO):\n return YKHO._epsilon",
"def _hZ2(YKHO):\n return YKHO._epsilon",
"def _hZ2(YKHO) -> float:\n pass",
"def _hZ2():\n return ntp8",
"def _hZ2():\n return ntp8",
"def io9X(YKHO):\n return YKHO._epsilon",
"def gz1l(YKHO) -> float:\n return YKHO.getOrDefault(YKHO.epsilo... | [
"0.8464697",
"0.8462321",
"0.83579713",
"0.8315767",
"0.83104897",
"0.82612234",
"0.8168771",
"0.8008961",
"0.79942685",
"0.79928267",
"0.78371483",
"0.76927507",
"0.7593634",
"0.75136405",
"0.750016",
"0.7498381",
"0.7486594",
"0.746196",
"0.7344618",
"0.72837996",
"0.726536... | 0.8010287 | 7 |
T.__new__(S, ...) > a new object with type S, a subtype of T | def fwuD(Emd4, lO87=None, x0eS=None, CjKC=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw... | [
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497"... | 0.0 | -1 |
T.__new__(S, ...) > a new object with type S, a subtype of T | def fwuD(Emd4, lO87=None, x0eS=None, CjKC=None, ROt1=None, yVtz=None, CsFy=None, g9FU=None, TYhG=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw... | [
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497"... | 0.0 | -1 |
T.__new__(S, ...) > a new object with type S, a subtype of T | def fwuD(Emd4, ROt1=None, yVtz=None, CsFy=None, g9FU=None, TYhG=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw... | [
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497"... | 0.0 | -1 |
T.__new__(S, ...) > a new object with type S, a subtype of T | def fwuD(Emd4, Sm0u=None, C6wh=None, fa_w=None, HVCe=None, O66n=None, Wave=None, DKYA=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw... | [
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497"... | 0.0 | -1 |
T.__new__(S, ...) > a new object with type S, a subtype of T | def fwuD(o4sw, *SPTI):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw... | [
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497"... | 0.72600895 | 32 |
Function which extract the keys of "function" from "kwargs" by inspecting the signature of "function". | def Ar2k(m2Zb, B2fa, qds1=True):
aadv = tq_1.signature(m2Zb)
hJkm = aadv.parameters.keys()
if qds1:
SbQu = {G1Hx: B2fa.pop(G1Hx) for G1Hx in hJkm if G1Hx in B2fa}
else:
SbQu = {G1Hx: B2fa[G1Hx] for G1Hx in hJkm if G1Hx in B2fa}
return SbQu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJML(m2Zb):\n Cqok = tq_1.getargspec(m2Zb)\n sjXb = Cqok[0]\n hkxX = Cqok[-1]\n Aofo = {}\n if not hkxX:\n hkxX = []\n for YRbF in range(0, len(hkxX)):\n mpV2 = len(sjXb) - len(hkxX) + YRbF\n Aofo[sjXb[mpV2]] = hkxX[YRbF]\n return Aofo",
"def uIfa(m2Zb: Callable, **B... | [
"0.79709095",
"0.7863394",
"0.7650941",
"0.7610071",
"0.7391648",
"0.7382386",
"0.72735643",
"0.7149711",
"0.7138723",
"0.71306527",
"0.70517176",
"0.69801265",
"0.6932291",
"0.6760915",
"0.6758018",
"0.67334855",
"0.6728755",
"0.66481686",
"0.66151583",
"0.66109335",
"0.6601... | 0.79655176 | 1 |
Function used by modify_datasets below to match return the integer closest to lim which is multiple of batchsize, i.e., lim%batchsize=0. | def NTzE(Xk2t, f65o):
if Xk2t % f65o == 0:
return Xk2t
else:
return Xk2t - Xk2t % f65o | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n return epAf.ceil(len(YKHO.img_list) / YKHO.batch_size)",
"def odbZ(EuQk, V0do, pan_=10 ** 7):\n wga1 = EuQk * V0do / pan_\n if wga1 < 1:\n PJI1 = EuQk\n print(PJI1)\n else:\n PJI1 = epAf.ceil(EuQk / wga1)\n print(PJI1)\n return PJI1",
"def szAg(YKHO)... | [
"0.6021875",
"0.60030407",
"0.59605324",
"0.59341466",
"0.5931172",
"0.59241074",
"0.5891597",
"0.5868814",
"0.58630425",
"0.58491385",
"0.57917213",
"0.57842827",
"0.57812554",
"0.57577837",
"0.57499737",
"0.5703445",
"0.5698302",
"0.56928295",
"0.56835145",
"0.5675908",
"0.... | 0.8326232 | 0 |
Creates n Car objects | def HGnZ(YKHO, exwG):
dpQI = []
for _6NH in YKHO.__car_repository.read():
CrDK = _6NH.id_entity()
dpQI.append(CrDK)
ACAh = max(dpQI) + 1
for d6pt in range(exwG):
WKin = tuKI.choice(['Logan', 'Mercedes', 'BMW', 'Range Rover'])
EBpF = int(tuKI.randint(1900, 2020))
k... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fh4E(YKHO, op3z):\n YKHO.env_conf.no_of_cars = op3z\n YKHO.no_of_cars = op3z\n for YRbF in range(0, YKHO.no_of_cars):\n YKHO.cars.append(CSmO(YKHO.env_conf))\n YKHO.cars[YRbF].car_id = YRbF\n YKHO.cars[YRbF].source_node = YKHO.env_conf.cars_info[YRbF][0]\n YKHO.cars[YRbF].t... | [
"0.7197167",
"0.6805045",
"0.66555494",
"0.63939136",
"0.63114786",
"0.63114786",
"0.62528795",
"0.62522686",
"0.62190235",
"0.61884755",
"0.6038208",
"0.5997332",
"0.5976486",
"0.5966771",
"0.5901382",
"0.5821222",
"0.5821006",
"0.5809182",
"0.57967126",
"0.5791856",
"0.5788... | 0.7308133 | 0 |
Sets the playlist to a specified position (zerobased). Returns a boolean that indicate if the operation has been successful. Requires Winamp 2.0+. | def Gfa6(YKHO, dQgj, eKzw=False):
Aofo = YKHO._send_msg(HEKO._WM_WA_IPC, dQgj, HEKO._IPC_SETPLAYLISTPOS)
if Aofo is None:
return False
if eKzw:
YKHO.do_stop()
return YKHO.do_play()
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def awFK(YKHO, dQgj):\n return YKHO.__sendUserMessage(dQgj, YKHO.IPC_SETPLAYLISTPOS)",
"def eIGz(YKHO, dQgj=-1):\n YKHO.ready = True\n YKHO.readyPosition = dQgj",
"def yDh0(oeNL):\n ZtBF()\n oeNL = float(oeNL)\n if l7Yf.Mix_SetMusicPosition(oeNL) == -1:\n raise eNKB('set_pos unsupporte... | [
"0.7782927",
"0.68214774",
"0.65332496",
"0.6494546",
"0.62247086",
"0.6131527",
"0.6128051",
"0.61253697",
"0.6115309",
"0.6053942",
"0.59801567",
"0.59114814",
"0.591092",
"0.5886168",
"0.586808",
"0.5858986",
"0.5857662",
"0.58554137",
"0.58536035",
"0.58478695",
"0.584277... | 0.7464941 | 1 |
Returns a list of all the tracks titles of the current playlist, as show in the playlist window. Some elements in the returned list might be None if they were not available at request time. Returns None if an error occurred. Requires Winamp 2.04+. | def MYSC(YKHO):
UHFx = YKHO.get_list_length()
if UHFx is None:
return None
NvAR = []
for or8S in range(UHFx):
NvAR.append(YKHO.get_track_title(or8S))
return NvAR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XvOe(YKHO):\n return [YKHO.getPlaylistTitle(dQgj) for dQgj in range(YKHO.getListLength())]",
"def Tw8L(YKHO) -> MNy1:\n return YKHO._tracks",
"def TXXq(YKHO, dQgj=None):\n if dQgj is None:\n dQgj = YKHO.get_list_position()\n if dQgj is None:\n return None\n UTX6 = YKHO.... | [
"0.7811989",
"0.7462675",
"0.7371409",
"0.6809896",
"0.6765639",
"0.6746472",
"0.66211015",
"0.65558344",
"0.64777696",
"0.6449069",
"0.6418401",
"0.6385906",
"0.6375614",
"0.6372452",
"0.63687605",
"0.6350789",
"0.63368",
"0.6323708",
"0.6311359",
"0.62686145",
"0.6240683",
... | 0.8527155 | 0 |
Initializes the main windows, creates the gui_controls window and the cardinal while associating each other. | def FIMM(YKHO):
q22J.__init__(YKHO)
YKHO.setWindowTitle('Rend - Spatial Simulator')
YKHO.cardinal = zacJ()
YKHO.cardinal.setWindowTitle('Rend - Cardinal')
YKHO.cardinal.show()
YKHO.gui_controls = im9O(YKHO.cardinal)
YKHO.setCentralWidget(YKHO.gui_controls)
YKHO.show() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def svlJ(YKHO):\n YKHO._initTitle()\n YKHO._initEditTools()\n YKHO._initMazeGrid()\n YKHO._initSearchTools()\n YKHO._initMessage()\n YKHO._initLegend()",
"def BbqI(YKHO):\n YKHO.panels = [rOXZ(YKHO.frame, or8S, YKHO.config) for or8S in range(0, 6)]\n YKHO.buttons = GMWI(YKHO.frame, 0, YKH... | [
"0.7625859",
"0.7601512",
"0.741006",
"0.74067193",
"0.7291988",
"0.7290694",
"0.72334677",
"0.71465904",
"0.7123599",
"0.71132183",
"0.71071804",
"0.7078153",
"0.7075265",
"0.7048316",
"0.70371705",
"0.70298976",
"0.70125073",
"0.70054656",
"0.7003831",
"0.6995997",
"0.69943... | 0.67908585 | 43 |
Displays the ping (latency) to and from Discord | async def ping(YKHO, OaeV):
wzkt = ITS7.time()
tO9_ = await OaeV.send(embed=ZOrr.Embed(title=':ping_pong: **WebSocket (API) latency: ``Pinging...`` | Bot latency: ``Pinging...``**', color=YKHO.bot.embed_color))
NH0Y = int(YKHO.bot.latency * 1000)
LeQ0 = int((ITS7.time() - wzkt) * 100)
await tO9_.ed... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def ping(YKHO, OaeV):\n Q1PJ = ZOrr.Embed(title='', description=f'<a:online:859859291586822154> **I am now alive!\\n<a:DA_loveheart:862411473632755764> Heartbeat = > {round(YKHO.bot.latency * 1000)} bpm!**', color=13508967)\n await OaeV.send(embed=Q1PJ)",
"async def ping(OaeV):\n r50I = ZOrr.Embed... | [
"0.7979065",
"0.7936161",
"0.7860835",
"0.7822591",
"0.77901006",
"0.777298",
"0.7770647",
"0.7730281",
"0.76905936",
"0.7679957",
"0.7668488",
"0.75639546",
"0.75224626",
"0.74614036",
"0.7419733",
"0.74104434",
"0.74046296",
"0.73672223",
"0.73296756",
"0.7312442",
"0.73014... | 0.77885413 | 5 |
Returns a FeeWitness and an updated vault_diff index, for the given order. vault_diff_idx is an index to the L2 vault changes list in the wrapping settlement (settlement_witness.vault_diffs). The list holds the changes for both parties, and the given index should point to where the current party (the owner of the given... | def vCO9(T4Wy: Order, UJ1q: TransactionWitness, gYkS: FeeInfoExchange, bm56: int) -> AzJI[h8nf[z8S5], int]:
if gYkS is None:
assert not isinstance(T4Wy, R6aJ), 'OrderL1 must have fee objects.'
return (None, bm56)
elif isinstance(T4Wy, R6aJ):
pjo6 = None
else:
assert isinstanc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CG3Q(T4Wy: Order, UJ1q: TransactionWitness, jgq6: Party, bm56: int) -> AzJI[Ms85, int]:\n RRiS = 0 if jgq6 is nyYe.A else 1\n wJoB = UJ1q.order_diffs[RRiS].prev.fulfilled_amount\n if isinstance(T4Wy, R6aJ):\n kqY8 = wA9G = None\n else:\n assert isinstance(T4Wy, hlkA)\n kqY8 = g... | [
"0.7497987",
"0.46010593",
"0.44098467",
"0.4402536",
"0.43406352",
"0.4321677",
"0.42910373",
"0.42729548",
"0.42707172",
"0.42346337",
"0.41829222",
"0.41763842",
"0.414512",
"0.41345835",
"0.4132748",
"0.4117728",
"0.41083568",
"0.41070995",
"0.40707555",
"0.40579444",
"0.... | 0.7496631 | 1 |
Constructs a ResNet20 model for CIFAR10 (by default) | def ggYK(jTqs=10):
C3ST = W2m3(jTqs)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQs7(YKHO):\n C3ST = xRX8(YKHO.config, YKHO.dataset)\n DfCJ = C3ST.define()\n return DfCJ",
"def BIub(jTqs: int=10) -> awyi:\n C3ST: S1Vm = qUH4(norm_layer=lambda WKvO: lxnG(2, WKvO), num_classes=jTqs)\n return C3ST",
"def FIMM(YKHO, GRZp, wH3T=None, jTqs=oySj, bmOT=NBfw.DEFAULT_VERSION, yDq... | [
"0.74677396",
"0.7359503",
"0.7044218",
"0.69971365",
"0.6964901",
"0.6846598",
"0.6846598",
"0.682948",
"0.67972773",
"0.67631286",
"0.66528404",
"0.66102505",
"0.65496844",
"0.65468025",
"0.65066475",
"0.65066475",
"0.6466447",
"0.64564055",
"0.64361936",
"0.641784",
"0.638... | 0.0 | -1 |
Render a disclaimer section | def ZlUq():
aevO.subheader('Disclaimer')
aevO.warning('\n This site is used for testing purposes and any Covid-19 risk evaluations\n can be inaccurate as of this moment. We do not take any responsibility\n for the predictions of this application.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CdUT():\n return TvZl('support/disclaimer.html', title='Disclaimer')",
"def CdUT(QePW):\n return uxvd(QePW, 'app/disclaimer.html')",
"def CdUT(YKHO):\n if YKHO.publication.disclaimer:\n return 'DISCLAIMER: %s' % YKHO.publication.disclaimer",
"def HyQd():\n return TvZl('support/privacyp... | [
"0.83338153",
"0.7512033",
"0.6606941",
"0.6518728",
"0.6387408",
"0.6387408",
"0.6168949",
"0.60793424",
"0.59186804",
"0.5884677",
"0.58720654",
"0.5813355",
"0.57355666",
"0.56817734",
"0.56781536",
"0.5676396",
"0.5649618",
"0.5641986",
"0.56054044",
"0.5601146",
"0.56011... | 0.7846188 | 1 |
Return true if user or service account member has this projectlevel permission. | def qHTF(YKHO, mS46: str, Uvf2: str) -> bool:
YKHO._init_member_permissions(mS46)
try:
return YKHO._policy['by_member'][mS46]['permissions'][Uvf2]
except KeyError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHTF(YKHO, QePW, tTee):\n w10S = tTee.kwargs.get('project_pk')\n uJjO = QePW.user.id\n return True if YKHO.user_permission(w10S, uJjO, 1) or YKHO.user_permission(w10S, uJjO, 2) else False",
"def qHTF(YKHO, QePW, tTee):\n w10S = tTee.kwargs.get('project_pk')\n uJjO = QePW.user.id\n return Tr... | [
"0.76778406",
"0.758001",
"0.74232084",
"0.7419522",
"0.7340199",
"0.7130464",
"0.7123466",
"0.7085812",
"0.693397",
"0.69129217",
"0.69129145",
"0.6902047",
"0.685921",
"0.68500805",
"0.6818843",
"0.68156046",
"0.6812341",
"0.6786909",
"0.67826605",
"0.6771656",
"0.6766185",... | 0.6430289 | 70 |
Initialize restaurant name and cuisine types | def FIMM(YKHO, zqv0, N4Ku):
YKHO.restaurant_name = zqv0
YKHO.cuisine_type = N4Ku | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.restaurant_name = zqv0\n YKHO.cuisine_type = N4Ku",
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.name = zqv0.title()\n YKHO.type = N4Ku",
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.name = zqv0\n YKHO.type = N4Ku",
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.name = zqv0\n YK... | [
"0.88263685",
"0.855658",
"0.8538651",
"0.8537601",
"0.8503286",
"0.8424007",
"0.83558846",
"0.8341397",
"0.81878674",
"0.81878674",
"0.8169831",
"0.8153843",
"0.815031",
"0.8140494",
"0.8066588",
"0.8066588",
"0.8066588",
"0.8066588",
"0.8066588",
"0.8066588",
"0.8066588",
... | 0.8585381 | 1 |
Computes the probability density function (pdf) of a random variable with Gamma Gamma distribution. | def kzAT(Mkmy, UqYS, Cwt5):
return 2 * (Cwt5 * UqYS) ** ((Cwt5 + UqYS) / 2) * oyIN.power(Mkmy, (Cwt5 + UqYS) / 2) * aoD7(Cwt5 - UqYS, 2 * oyIN.sqrt(Cwt5 * UqYS * Mkmy)) / (KMvS(Cwt5) * KMvS(UqYS)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HXa3(WKvO, jzdc, Fg_i, KMvS):\n nfix, dnR4 = (jzdc ** (-KMvS), Fg_i ** (-KMvS))\n return -KMvS * WKvO ** (-KMvS - 1) / (dnR4 - nfix)",
"def KKae(WKvO, Tuqy, ifkm):\n ROpF, mVUw = K3UA(Tuqy, ifkm)\n return mVUw ** ROpF / ZID3(ROpF) * WKvO ** (ROpF - 1) * oyIN.exp(-mVUw * WKvO)",
"def bcMY(Cwt5, ... | [
"0.75965005",
"0.70319074",
"0.70115614",
"0.6990863",
"0.6900412",
"0.6900412",
"0.6890882",
"0.68205273",
"0.68112946",
"0.67916757",
"0.6767486",
"0.67525876",
"0.67182475",
"0.6714047",
"0.67003304",
"0.6693008",
"0.6683164",
"0.66576546",
"0.6653915",
"0.66345763",
"0.66... | 0.69423956 | 4 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
id = cmPJ.get('id')
jGRS = cmPJ.get('status')
LwKZ = cmPJ.get('completedTime')
bD7m = cmPJ.get('url')
return Emd4(id, jGRS, LwKZ, bD7m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)",
"def rQfz(Emd4, cmPJ):\n if cm... | [
"0.83722425",
"0.8335738",
"0.8215464",
"0.8167521",
"0.8167521",
"0.81483614",
"0.8051766",
"0.80300796",
"0.8013641",
"0.79792094",
"0.79221934",
"0.7919166",
"0.79183745",
"0.79125935",
"0.7906434",
"0.79004663",
"0.78967476",
"0.7886129",
"0.78760797",
"0.78543913",
"0.78... | 0.0 | -1 |
Create the matrices used to handle the gait and initialize them to perform a walking trot self.gait and self.fsteps matrices contains information about the walking trot | def eCDt(YKHO):
ywwl = oyIN.int(0.5 * YKHO.T_gait / YKHO.dt)
YKHO.gait = oyIN.zeros((YKHO.fsteps.shape[0], 5))
for YRbF in range(YKHO.n_periods):
YKHO.gait[4 * YRbF:4 * (YRbF + 1), 0] = oyIN.array([1, ywwl - 1, 1, ywwl - 1])
YKHO.fsteps[4 * YRbF:4 * (YRbF + 1), 0] = YKHO.gait[4 * YRbF:4 * (Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hydg(YKHO, paSp, OSuM, QTBn, Woea):\n YKHO.state = QTBn\n YKHO.state_eigenspace = Woea\n YKHO.norm = 1\n YKHO.step = 0\n YKHO.steps = paSp\n YKHO.save_period = OSuM\n YKHO.magnetizations = [Woea[0]]\n YKHO.momenta = [Woea[1]]\n YKHO.energy = [oyIN.conjugate(YKHO.state).T @ YKHO.hamil... | [
"0.64236075",
"0.6364367",
"0.629883",
"0.6274138",
"0.6251266",
"0.61184406",
"0.5991887",
"0.5895163",
"0.58404195",
"0.57972836",
"0.5702617",
"0.5679641",
"0.5669835",
"0.56623775",
"0.56599295",
"0.5616113",
"0.5613301",
"0.5610282",
"0.5565505",
"0.5565016",
"0.5546942"... | 0.758166 | 0 |
Searches for a metadata value given a key, first one wins. | def yPJ7(yIVm, H5ew):
for G1Hx, Ty9i in yIVm:
if G1Hx == H5ew:
return Ty9i
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uAVI(ql3z, zAat):\n for ZfUD in ql3z:\n if ZfUD['key'] == zAat:\n return ZfUD\n return None",
"def TgwQ(YKHO, H5ew, BWXx):\n for U6D_ in YKHO:\n if U6D_.get(H5ew) == BWXx:\n return U6D_\n return None",
"def neBz(YKHO, H5ew):\n EmMj = YKHO.search(H5ew)\n ... | [
"0.7405466",
"0.71261317",
"0.70973384",
"0.692015",
"0.6892211",
"0.6882768",
"0.68453574",
"0.6812196",
"0.68099886",
"0.6782161",
"0.6684002",
"0.66726214",
"0.666119",
"0.66301936",
"0.6590216",
"0.6541403",
"0.6537067",
"0.6531927",
"0.6506019",
"0.6489144",
"0.6476371",... | 0.7508844 | 0 |
Initialize Tasks api using user's authtoken and portal id. | def FIMM(YKHO, VrG7, uuxA):
YKHO.details = {'authtoken': VrG7}
YKHO.portal_id = uuxA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO):\n\n def wLv7(GPtr):\n return YKHO._pomodoro_service.get_config('task.trello', GPtr)\n rJDA = wLv7('api_key')\n sZ8K = wLv7('api_secret')\n YKHO.trello_board = wLv7('board')\n YKHO.trello_list = wLv7('list')\n YKHO.trello_api = YKHO._get_trello_client(rJDA, sZ8K)\n if rJD... | [
"0.5948035",
"0.57255155",
"0.57002366",
"0.5566714",
"0.5563024",
"0.55457485",
"0.55345666",
"0.55091935",
"0.548883",
"0.5474751",
"0.54502845",
"0.54498875",
"0.54446125",
"0.54417545",
"0.54242164",
"0.5406028",
"0.5356719",
"0.5348508",
"0.5314836",
"0.5314836",
"0.5314... | 0.6316002 | 0 |
Init logger for current process | def FYi1(Ux0P=None, g2zq=False) -> AzJI[uLKX[mCOa, None], uLKX[laXl.Queue, None]]:
if Ux0P is not None:
DCgT = irvb(Ux0P, encoding='utf-8', maxBytes=1 << 22, backupCount=10)
else:
DCgT = G9jH.StreamHandler()
if laXl:
DCgT.setFormatter(G9jH.Formatter(fmt='%(asctime)s %(levelname)-8s: ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nWQP():\n T6FA.currentThread().logger = RdPg('initialize', date_type=1)",
"def nWQP():\n if hasattr(HwRy, 'frozen'):\n HwRy.stderr = SIhY()\n Few0(defaultStreamHandler=True)\n else:\n Few0()\n xWQf = AsEQ()\n Few0().addStreamHandler(xWQf)\n Few0().setLevel('info')\n ... | [
"0.8308841",
"0.79919714",
"0.7771734",
"0.7731719",
"0.7697181",
"0.7607129",
"0.7602777",
"0.756342",
"0.7489526",
"0.7482463",
"0.7458591",
"0.7443497",
"0.743836",
"0.74159104",
"0.74158645",
"0.74054533",
"0.7365951",
"0.7352648",
"0.73397136",
"0.73370713",
"0.73370713"... | 0.0 | -1 |
calculate the displacement magnitudes | def hQT7(JnVq, YPaw, RA_F, sg14):
HGCR = oyIN.zeros(sg14.ncells, dtype=oyIN.float32)
HGCR = oyIN.sqrt((JnVq.xu[YPaw + RA_F, 0, :] - JnVq.xu[YPaw, 0, :]) ** 2 + (JnVq.xu[YPaw + RA_F, 1, :] - JnVq.xu[YPaw, 1, :]) ** 2)
return HGCR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _7Vg(YKHO):\n return 3284 * epAf.pow(YKHO.concentration, -0.158)",
"def YZI7(YKHO):\n return YKHO.data['MAGNITUDE']",
"def YXbZ(YKHO):\n return (YKHO.u ** 2 + YKHO.v ** 2) ** 0.5",
"def wjNy(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) * 0.5",
"def FOSW(YKHO):\n YXbZ = (YKHO.x ** 2 + YKHO... | [
"0.7144847",
"0.70522213",
"0.69540745",
"0.6903711",
"0.6884542",
"0.68522954",
"0.6844612",
"0.68391716",
"0.67912704",
"0.67682046",
"0.6757713",
"0.67570287",
"0.67519605",
"0.6745056",
"0.67318964",
"0.66990393",
"0.6690982",
"0.6679895",
"0.6640347",
"0.6608709",
"0.660... | 0.6659903 | 18 |