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 |
|---|---|---|---|---|---|---|
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
GikI = cmPJ.get('environment')
zgs0 = cmPJ.get('objectCount')
ed9k = cmPJ.get('totalBytes')
return Emd4(GikI, zgs0, ed9k) | {
"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.79125935",
"0.7906434",
"0.79004663",
"0.78967476",
"0.7886129",
"0.78760797",
"0.78543913",
"0.78543913",
"0.78... | 0.79183745 | 12 |
Finds how many crawling processes is running. | def lOjx(YKHO):
HX9S = 0
for XP5J in YKHO.__processes:
if XP5J.is_alive():
HX9S += 1
return HX9S | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y9kr() -> int:\n return len(O0k5.pids())",
"def MFWX(YKHO):\n return int(Yn3K.check_output(['nproc', '--all']))",
"def VVm1():\n return 1",
"def X9iF():\n nPrm = O0k5.process_iter()\n UHFx = sum((1 for nn5f in nPrm))\n return UHFx",
"def wOFl(YKHO):\n UHFx = 0\n y2Dl = YKHO.proc... | [
"0.7608475",
"0.73054796",
"0.7240223",
"0.70873624",
"0.69766194",
"0.6969856",
"0.6967222",
"0.69584787",
"0.68977296",
"0.6781689",
"0.67768025",
"0.67661756",
"0.676192",
"0.67420495",
"0.6733069",
"0.67080647",
"0.6688779",
"0.6680416",
"0.66780144",
"0.66582876",
"0.665... | 0.7230687 | 3 |
Serializers JSON to string | async def encode_json(Emd4, hGN5):
return qQXR.dumps(hGN5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nMY2(YKHO):\n return qQXR.dumps(YKHO.to_dict())",
"def brdk(KGvk):\n return qQXR.dumps(KGvk)",
"def yLCI(YKHO) -> str:\n return YKHO._json_string",
"def zAg0(YKHO):\n return qQXR.dumps(YKHO.jsonData)",
"def sayk(YKHO):\n return str(YKHO)",
"def gEyL(YEnM):\n return str(YEnM)",
"de... | [
"0.7736132",
"0.7591525",
"0.74952096",
"0.7470275",
"0.737784",
"0.7376159",
"0.734207",
"0.7337657",
"0.7335558",
"0.732881",
"0.72868156",
"0.72868156",
"0.72774684",
"0.7271909",
"0.72708046",
"0.7214887",
"0.72127694",
"0.72127694",
"0.72127694",
"0.72127694",
"0.7212769... | 0.0 | -1 |
combine two DataFrame from the sql result, and create serveral feature columns based on the previous sales history columns | def SZFh(jzdc, KCHu):
oMB_ = ['ITEM_NUMBER', 'BR_ID']
EcVT = rLdf.merge(jzdc, KCHu, how='inner', on=oMB_)
Ikji = EcVT.ix[:, ['PRODUCT_LINE', 'ITEM_NUMBER', 'ITEM_RANK', 'BR_ID']]
EcVT.drop(['ITEM_NUMBER', 'ITEM_RANK', 'CM'], axis=1, inplace=True)
EcVT['L12-11_S'] = EcVT.ix[:, 'L12M':'L11M'].sum(axis... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ls92():\n YL_S = RwtK(Lomv['timeseries']['base'], Lomv['timeseries']['us_confirmed'])\n Mza7 = RwtK(Lomv['timeseries']['base'], Lomv['timeseries']['us_deaths'])\n Q9E_ = YL_S.columns[0:11]\n wVua = YL_S.columns[11:]\n i1TS = YL_S.melt(id_vars=Q9E_, value_vars=wVua, var_name='Date', value_name='C... | [
"0.6214344",
"0.61589366",
"0.60252035",
"0.58734655",
"0.5866335",
"0.58377635",
"0.5770727",
"0.5736321",
"0.572714",
"0.5724722",
"0.5706372",
"0.56885546",
"0.5686245",
"0.5685988",
"0.5653687",
"0.56354576",
"0.5625578",
"0.558819",
"0.558819",
"0.5583164",
"0.5577059",
... | 0.0 | -1 |
return optimizer, It could be overwriten if you want to specify special optimizer | def nd_x(YKHO):
tspZ = y7GR.lr
NArs = []
for H5ew, BWXx in dict(YKHO.named_parameters()).items():
if BWXx.requires_grad:
if 'bias' in H5ew:
NArs += [{'params': [BWXx], 'lr': tspZ * 2, 'weight_decay': 0}]
else:
NArs += [{'params': [BWXx], 'lr': ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K0do(YKHO) -> KES0.BaseOptimizer:\n return YKHO._optimizer",
"def nd_x():\n return UtL5.optimizer.AdamOptimizer(0.001)",
"def K0do(YKHO) -> h8nf[hCm3]:\n return YKHO.__optimizer__",
"def K0do(YKHO):\n raise NotImplementedError()",
"def nd_x(YKHO):\n try:\n U5bT = YKHO._get_optimiz... | [
"0.8331808",
"0.82149905",
"0.8084897",
"0.8077093",
"0.80651957",
"0.80410105",
"0.80355203",
"0.80026686",
"0.7936852",
"0.78832364",
"0.7796678",
"0.7678258",
"0.7678258",
"0.7575443",
"0.754183",
"0.7506852",
"0.7444608",
"0.74231374",
"0.7423137",
"0.74137264",
"0.740266... | 0.7419334 | 19 |
Returns the storage associated with the client (defaults to 'S3') returns [Dict] ```python client.storage S3 ``` | def S8SU(YKHO):
return YKHO._storage | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _r_M():\n CVPJ()\n bIrN = D_OI['credentials']['aws']\n S8SU = jBev.StorageS3(**bIrN)\n return S8SU",
"def FU0X():\n Z9rn = KEbi._current_obj()\n if getattr(Z9rn, '_s3_engine', ''):\n if Z9rn._s3_engine == 'None':\n return None\n return Z9rn._s3_engine\n eHpk = Gh... | [
"0.7485051",
"0.72073674",
"0.71362543",
"0.70696",
"0.70548815",
"0.69388944",
"0.6910088",
"0.6894874",
"0.6814383",
"0.67782944",
"0.6728057",
"0.66966563",
"0.66747063",
"0.66742265",
"0.6672885",
"0.6651148",
"0.66384566",
"0.6627309",
"0.6624512",
"0.6620999",
"0.659830... | 0.63090825 | 40 |
Check if this event is currently in an active storm state. | def E14z(Z6E1, EYbw):
Ex3j(Z6E1, EYbw)
JRmW = int(ITS7.time()) - Cmbq.sw_last_stormwatch_dict_analysis
if JRmW >= Cmbq.sw_interval_in_seconds:
tO9_ = '%d seconds has elapsed since stormwatch dictionary eval (%d second threshold) - check and reset counters ' % (JRmW, Cmbq.sw_interval_in_seconds)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aOyO(YKHO):\n for tvqc in YKHO.events:\n if tvqc.is_current():\n return True\n return False",
"def aOyO(YKHO):\n G778 = YKHO.get_current_sched()\n if G778:\n return G778.event_is_active()\n else:\n return False",
"def ksfB(YKHO):\n return YKHO.__state_vecto... | [
"0.734705",
"0.7241348",
"0.7066823",
"0.6716455",
"0.6716455",
"0.6716455",
"0.6607448",
"0.65932536",
"0.65892595",
"0.65834385",
"0.6578591",
"0.65723956",
"0.6517653",
"0.6475713",
"0.6471033",
"0.6414162",
"0.63947976",
"0.6394683",
"0.6388097",
"0.63857865",
"0.6385648"... | 0.0 | -1 |
Clears terminal to empty | def Y7Bk(YKHO):
if mWFP == 'nt':
bGrB = Oz1B('cls')
else:
bGrB = Oz1B('clear') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDHD() -> None:\n bGrB = Hy7s.system('cls') if Hy7s.name == 'nt' else Hy7s.system('clear')",
"def cDHD():\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')",
"def cDHD() -> None:\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')",
"def KnLO():\n if mWFP == 'nt':\n bGrB = Oz1B... | [
"0.8988029",
"0.89467275",
"0.89463776",
"0.8859606",
"0.8479258",
"0.84605896",
"0.8437453",
"0.8372452",
"0.83581245",
"0.834993",
"0.83459544",
"0.8324322",
"0.8279879",
"0.82636154",
"0.8260203",
"0.82538176",
"0.8251407",
"0.82325315",
"0.8220694",
"0.8220431",
"0.821788... | 0.82091135 | 28 |
This function validates url | def W_lJ(_c1T: Union[str, pd.Series]) -> uLKX[bool, rLdf.Series]:
if isinstance(_c1T, rLdf.Series):
Zz21 = _c1T.apply(TY75)
return Zz21
else:
return TY75(_c1T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yH6e(bD7m):\n return _FIc.url(bD7m)",
"def oEdA(YKHO, bD7m: str) -> bool:\n z1Rg = rHHb.urlparse(bD7m)\n if z1Rg.scheme not in ['https', 'http', 'ftp', 'ftps']:\n bD7m = 'http://' + f'{z1Rg.netloc}' + f'/{z1Rg.path}'\n z1Rg = rHHb.urlparse(bD7m)\n return all([z1Rg.scheme, z1Rg.netlo... | [
"0.86334383",
"0.8317122",
"0.82204694",
"0.82089764",
"0.81959766",
"0.8188377",
"0.8174741",
"0.814216",
"0.8133912",
"0.8093344",
"0.8090394",
"0.8075146",
"0.804192",
"0.80378574",
"0.80378574",
"0.8033915",
"0.80229604",
"0.7966854",
"0.79228836",
"0.79103875",
"0.789155... | 0.0 | -1 |
Returns all the valid pixel coordinates between 2 points on a 2daxis | def z8o0(zJAg, lCHq, WRKq: int=0):
nJ9F, nxyw = zJAg
o4D3, si3g = lCHq
if zJAg == lCHq:
return [zJAg]
QZnA = []
TVTK, H2v2 = (o4D3 - nJ9F, si3g - nxyw)
def XSoh(jzdc: int):
return -1 if jzdc < 0 else 1 if jzdc > 0 else 0
yzQ0, MKlR = (XSoh(TVTK), XSoh(H2v2))
_SEp = tuple... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EjOF(EBgd, HpuQ, bYzl):\n WKvO = oyIN.arange(bYzl)\n LVAh = HpuQ[1] + (WKvO - HpuQ[0]) * (HpuQ[1] - EBgd[1]) / (HpuQ[0] - EBgd[0])\n MVX2 = oyIN.where((LVAh < bYzl) * (LVAh > 0))[0]\n WKvO = WKvO[MVX2]\n LVAh = LVAh[MVX2]\n return (WKvO, LVAh)",
"def IpHD():\n WKvO = oyIN.array([8, 67, 7... | [
"0.6940883",
"0.68818164",
"0.68754065",
"0.66501546",
"0.6635015",
"0.659408",
"0.6524093",
"0.65124416",
"0.65117717",
"0.64832705",
"0.64708954",
"0.64708954",
"0.6470741",
"0.64542043",
"0.6443236",
"0.64359576",
"0.6428343",
"0.6426949",
"0.64259213",
"0.64238226",
"0.64... | 0.0 | -1 |
Return a ModuleSpec object for this Module. | def zAhi(YKHO, **B2fa):
return _Bdk(name=B2fa.get('name', YKHO.name), path=B2fa.get('path', YKHO.path), qual_name=B2fa.get('qual_name', YKHO.qual_name), real_name=B2fa.get('real_name', YKHO.real_name), repo=B2fa.get('repo', YKHO.repo), version=B2fa.get('version', YKHO.version)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def glAV(Emd4, Fgvk):\n return Emd4(name=Fgvk.name, version=Fgvk.version.string, path=Fgvk.path, repo=Fgvk.repo)",
"def yR_P(YKHO):\n if YKHO._module is not None:\n return YKHO._module\n YKHO._module = im04 = YKHO.make_module()\n return im04",
"def prXz(Cqok):\n yR_P = None\n if hasatt... | [
"0.65938234",
"0.648458",
"0.6389057",
"0.6340507",
"0.631491",
"0.615933",
"0.615933",
"0.61287874",
"0.60673946",
"0.6065558",
"0.6064985",
"0.60542846",
"0.604256",
"0.6034232",
"0.60289",
"0.6003051",
"0.5985544",
"0.59845245",
"0.59500146",
"0.5943188",
"0.5941616",
"0... | 0.7117235 | 0 |
Is the module_spec an exact match for the provided requirement? | def ojcn(uiGr, Fgvk):
mWFP, DpZH = MtyY(uiGr)
return Fgvk.qual_name == uiGr or Fgvk.real_name == uiGr or (DpZH and Fgvk.name == mWFP and (Fgvk.version == DpZH)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f1Yn(uiGr, Fgvk):\n mWFP, DpZH = MtyY(uiGr)\n return Fgvk.name == mWFP",
"def LKIn(yR_P, uiGr):\n return moxu(yR_P.__version__) >= moxu(uiGr)",
"def Qvdu(LCet):\n Fgvk = ANWz.util.find_spec(LCet)\n if Fgvk is None:\n print('Module: {module} not found'.format(module=LCet))\n ret... | [
"0.8214309",
"0.73661196",
"0.6992027",
"0.6753586",
"0.6612624",
"0.6553855",
"0.6526441",
"0.6412966",
"0.6368397",
"0.63683045",
"0.63257545",
"0.62405866",
"0.61855793",
"0.61727196",
"0.61381304",
"0.61381304",
"0.61129147",
"0.6107489",
"0.6102725",
"0.60841095",
"0.607... | 0.78848433 | 1 |
Is the module_spec a partial match for the provided requirement? | def f1Yn(uiGr, Fgvk):
mWFP, DpZH = MtyY(uiGr)
return Fgvk.name == mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ojcn(uiGr, Fgvk):\n mWFP, DpZH = MtyY(uiGr)\n return Fgvk.qual_name == uiGr or Fgvk.real_name == uiGr or (DpZH and Fgvk.name == mWFP and (Fgvk.version == DpZH))",
"def LKIn(yR_P, uiGr):\n return moxu(yR_P.__version__) >= moxu(uiGr)",
"def Qvdu(LCet):\n Fgvk = ANWz.util.find_spec(LCet)\n if F... | [
"0.7310327",
"0.6755963",
"0.6587369",
"0.6206459",
"0.61161524",
"0.6087653",
"0.6024418",
"0.6001032",
"0.5954577",
"0.59395844",
"0.59366727",
"0.593433",
"0.5926473",
"0.59030354",
"0.5874449",
"0.58634746",
"0.585504",
"0.5850145",
"0.58475155",
"0.5833815",
"0.5805568",... | 0.8723514 | 0 |
Determine if the course is published or not. | def gFvo(fcvf):
fcvf = GkAb(fcvf) if fcvf else None
FhQf = True
hHld = list(fcvf.rglob('1.json'))
if not hHld:
raise Exception(f'Could not find 1.json for {fcvf}')
with open(hHld[0], 'r') as apum:
OGdU = qQXR.load(apum)
qOsI = feVn(OGdU.get('last_published_to_production', None))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FhQf(YKHO):\n return YKHO.publisher_is_draft == False",
"def FhQf(YKHO) -> bool:\n return True if YKHO.date_published else False",
"def FhQf(YKHO):\n wzkt = rIAI.now()\n return wzkt >= YKHO.pub_date",
"def FhQf(YKHO):\n wzkt = rIAI.now()\n return wzkt >= YKHO.pub_date",
"def FhQf(YKHO... | [
"0.7764083",
"0.77402174",
"0.76759845",
"0.76759845",
"0.76676387",
"0.76324373",
"0.75831217",
"0.75550103",
"0.75546175",
"0.74453646",
"0.7341648",
"0.7275591",
"0.72317356",
"0.72117877",
"0.6951341",
"0.67544085",
"0.6744075",
"0.67393047",
"0.66949666",
"0.6646969",
"0... | 0.7210732 | 14 |
Returns a JSON with failed status and Error 404 | def o3cf(P1dF):
return Yxsy(pz3A({'error': 'Not found', 'status': 'failed'}), 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def isYT(Wxnj=404, Ol8d='Requested resource was not found', UAju=list()):\n geh0 = pz3A(dict(code=Wxnj, message=Ol8d, errors=UAju, success=False))\n geh0.status_code = Wxnj\n return geh0",
"def o3cf(P1dF):\n return (pz3A(error='Not found'), 404)",
"def OBuW(Ol8d, Wxnj=404):\n return (qQXR.dumps(... | [
"0.77369845",
"0.76887274",
"0.76495665",
"0.75849384",
"0.74676",
"0.7441378",
"0.743667",
"0.7421214",
"0.7414593",
"0.7386213",
"0.73355496",
"0.7316183",
"0.7289054",
"0.72678834",
"0.7253112",
"0.72508967",
"0.72098374",
"0.7206996",
"0.7204832",
"0.7202024",
"0.7189429"... | 0.71739656 | 23 |
Returns a JSON with failed status and Error 400 | def _ef9(P1dF):
return Yxsy(pz3A({'error': 'Bad request', 'status': 'failed'}), 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yA8I(YKHO):\n _hkX = pz3A()\n _hkX.content_type = 'application/json'\n _hkX.status_code = 400\n return _hkX",
"def wyqm(tTpl):\n return (pz3A(dict([('status_code', tTpl.status_code), ('description', tTpl.description)])), 400, tTpl.headers)",
"def LpxO():\n geh0 = pz3A({'status': 412, 'err... | [
"0.79364145",
"0.7809963",
"0.77821267",
"0.7682393",
"0.7635307",
"0.76283574",
"0.74960047",
"0.7358419",
"0.7353305",
"0.73314023",
"0.732279",
"0.7283528",
"0.72570634",
"0.7252632",
"0.7252071",
"0.72020817",
"0.7188861",
"0.7152037",
"0.714908",
"0.7139953",
"0.7139379"... | 0.7007438 | 32 |
Returns a JSON with failed status and Error 500 | def TWKX(P1dF):
return Yxsy(pz3A({'error': 'Something Bad Happened', 'status': 'failed'}), 500) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j9TU():\n return '{\"status\": 21005}'",
"def wyqm(tTpl):\n return (pz3A(dict([('status_code', tTpl.status_code), ('description', tTpl.description)])), 400, tTpl.headers)",
"def Y__t(YKHO):\n return jnRN({'error': YKHO.message, 'status': 'error'}, status=YKHO.status)",
"def SCET(QePW):\n retu... | [
"0.8001137",
"0.75485885",
"0.7506479",
"0.749341",
"0.7486394",
"0.7470787",
"0.7397449",
"0.73875815",
"0.73594993",
"0.73521525",
"0.7318559",
"0.72959846",
"0.7294401",
"0.72927415",
"0.7281926",
"0.7281607",
"0.72814447",
"0.7235139",
"0.7202234",
"0.72000426",
"0.719951... | 0.6862224 | 55 |
Sets the hypervisor of this HyperflexNodeAllOf. | def D8LY(YKHO, D8LY):
YKHO._hypervisor = D8LY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x3Ek(YKHO, D8LY):\n WPxZ = ['kvm', 'mshv']\n if D8LY:\n if D8LY in WPxZ:\n YKHO.step_config['agents']['hypervisor'] = D8LY",
"def bNa_(YKHO, D8LY):\n if not isinstance(D8LY, VTpN):\n return (False, \"The variable 'hypervisor' must be of class Hypervisor\")\n YKHO.hypervis... | [
"0.66701114",
"0.63012105",
"0.5579099",
"0.51350874",
"0.4945215",
"0.49067193",
"0.48633528",
"0.47848397",
"0.4783902",
"0.47716314",
"0.47014",
"0.4694572",
"0.46722677",
"0.46362758",
"0.46241084",
"0.4575977",
"0.45611906",
"0.45561296",
"0.45536324",
"0.45474142",
"0.4... | 0.6882071 | 0 |
Sets the physical_server of this HyperflexNodeAllOf. | def aUeS(YKHO, aUeS):
YKHO._physical_server = aUeS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lfbt(YKHO, Lfbt):\n YKHO._physical = Lfbt",
"def l_v5(YKHO, O70P):\n YKHO._set_type('physical')\n YKHO.nodes.extend(O70P)\n YKHO.nodes = sorted(list(set(YKHO.nodes)), key=XN37.node_url_sort_key)",
"def FIMM(Ro_8, *, l0Et: str):\n qe4Y.set(Ro_8, 'physical_host', l0Et)",
"def qzI4(YKHO, fuEk... | [
"0.6083991",
"0.6067308",
"0.5795646",
"0.5765739",
"0.5501013",
"0.5378839",
"0.5359994",
"0.5359994",
"0.53382725",
"0.53136426",
"0.5143519",
"0.51387674",
"0.51387674",
"0.51029134",
"0.5081004",
"0.507017",
"0.5048913",
"0.49849156",
"0.49636868",
"0.49482498",
"0.493251... | 0.78011435 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, VtHY):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Function that make JSON from list of dictionaries | def afIm(B74l):
rgHr = qQXR.dumps(B74l, indent=2)
return rgHr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aT6I(XZLe):\n CKrY = ''\n for PS1q in XZLe:\n CKrY = CKrY + '\\n' + qQXR.dumps(PS1q)\n return CKrY",
"def pz3A(J2us):\n return [dict(Mkmy.items()) for Mkmy in J2us]",
"def pz3A(J2us):\n return [dict(Mkmy.items()) for Mkmy in J2us]",
"def IZ3T(F986):\n if F986 is None:\n F9... | [
"0.78944814",
"0.7232035",
"0.7232035",
"0.7118829",
"0.708385",
"0.6982487",
"0.698215",
"0.698215",
"0.69456255",
"0.69233376",
"0.69175667",
"0.6898272",
"0.68865085",
"0.6879663",
"0.6877285",
"0.6872549",
"0.6871101",
"0.6852584",
"0.6847634",
"0.68405384",
"0.68405384",... | 0.8323294 | 0 |
Convert pressure from hPa to modelreported units. | def aMpO(YKHO, CJ2p: int) -> int:
return int(rYO3(f'{CJ2p:d} hPa').to(YKHO.pressure_level_units).magnitude) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CJ2p(YKHO) -> P6bq.Pa:\n ...",
"def oZUy(CJ2p):\n return round(JTHz(CJ2p, QPUY, F0Lq), 2)",
"def oxhd():\n return '1.0E+2{kind}*{var}'",
"def a8Pe(YKHO, Br5Q):\n if YKHO.unit and (YKHO.unit.name == 'ft' or YKHO.unit.name == 'ft') and (Br5Q == 'm'):\n YKHO.unit.name = Br5Q\n retu... | [
"0.6395346",
"0.6321574",
"0.6288367",
"0.62688875",
"0.6146973",
"0.6119177",
"0.61009014",
"0.60697216",
"0.6036696",
"0.58836716",
"0.58813953",
"0.57964617",
"0.5771994",
"0.57416904",
"0.57350004",
"0.5672963",
"0.56521606",
"0.56316286",
"0.5630077",
"0.56298465",
"0.56... | 0.7801658 | 0 |
Gets the property_name of this TopologydeploymentlocationsnameinstancesProperties. | def ZgoD(YKHO) -> str:
return YKHO._property_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO.properties.get('name')",
"def mWFP(YKHO):\n return YKHO.properties.get('name', str())",
"def ZgoD(YKHO):\n return YKHO._property_name",
"def ZgoD(YKHO):\n return YKHO.__property_name",
"def ZgoD(YKHO):\n return YKHO.key_to_property(YKHO.key)",
"def mWFP(YKHO):... | [
"0.68218726",
"0.6786176",
"0.675541",
"0.66654676",
"0.65941834",
"0.6563333",
"0.65080476",
"0.65080476",
"0.65080476",
"0.65080476",
"0.65080476",
"0.65080476",
"0.65080476",
"0.65080476",
"0.65080476",
"0.65080476",
"0.6377101",
"0.6338674",
"0.6338674",
"0.6338674",
"0.6... | 0.67066485 | 3 |
Sets the property_name of this TopologydeploymentlocationsnameinstancesProperties. | def ZgoD(YKHO, ZgoD: str):
YKHO._property_name = ZgoD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CJqF(YKHO, mWFP):\n YKHO._prop_name = mWFP",
"def ZgoD(YKHO, ZgoD):\n YKHO._property_name = ZgoD",
"def WZrJ(YKHO, mWFP=''):\n YKHO.set_property('name', mWFP)",
"def CJqF(YKHO, mWFP):\n YKHO._remove_property_listener()\n YKHO._property_name = mWFP\n YKHO.set_parent(YKHO._parent)",
"de... | [
"0.64848965",
"0.62502086",
"0.6195045",
"0.6162998",
"0.6105583",
"0.6105583",
"0.6105583",
"0.6105583",
"0.6105583",
"0.6105583",
"0.6105583",
"0.6105583",
"0.6105583",
"0.6105583",
"0.60577244",
"0.5942958",
"0.57794213",
"0.5729565",
"0.57078236",
"0.5700846",
"0.5684614"... | 0.6372426 | 1 |
Gets the property_value of this TopologydeploymentlocationsnameinstancesProperties. | def EJwJ(YKHO) -> str:
return YKHO._property_value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO.properties.get('name')",
"def mWFP(YKHO):\n return YKHO.properties.get('name', str())",
"def ZgoD(YKHO):\n return YKHO._property_name",
"def property(YKHO, mWFP):\n return YKHO._properties.get(ovg3(mWFP))",
"def mWFP(YKHO):\n return YKHO.properties.get('Name', N... | [
"0.59345156",
"0.5791071",
"0.56655675",
"0.56437844",
"0.5582112",
"0.555166",
"0.5535156",
"0.5535027",
"0.5531331",
"0.5518245",
"0.54931045",
"0.5490924",
"0.5456256",
"0.5414294",
"0.5407862",
"0.53972054",
"0.53777605",
"0.5368634",
"0.5335554",
"0.53318775",
"0.5331877... | 0.55943924 | 4 |
Sets the property_value of this TopologydeploymentlocationsnameinstancesProperties. | def EJwJ(YKHO, EJwJ: str):
YKHO._property_value = EJwJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WuUm(YKHO, BWXx):\n YKHO.logger.warn('Setting values on location_name will NOT update the remote Canvas instance.')\n YKHO._location_name = BWXx",
"def mWFP(YKHO, BWXx: str):\n YKHO._properties['name'] = BWXx",
"def mWFP(YKHO, BWXx: str):\n YKHO._properties['name'] = BWXx",
"def mWFP(YKHO, BW... | [
"0.5862061",
"0.56533796",
"0.56533796",
"0.56533796",
"0.56533796",
"0.56533796",
"0.56533796",
"0.56533796",
"0.56533796",
"0.56533796",
"0.56533796",
"0.5475795",
"0.54043305",
"0.5355468",
"0.52198905",
"0.521256",
"0.51889783",
"0.50811505",
"0.50718546",
"0.5068049",
"0... | 0.48361212 | 40 |
Given a list of CombatElementals or Abilities, return the ones that are effective against a target element, if any. | def kEFA(I1bG: List, CFbm: Elements) -> x1iM:
return [GFDZ for GFDZ in I1bG if lUVW(GFDZ.element, CFbm).is_effective()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zUiX(YKHO, DumB: Iterable['Character']):\n return [YRbF for YRbF in DumB if YKHO.skill_targets(YRbF)]",
"def bbBk(UqER, cjDj=kjXA):\n Ajwu = UQtd('element_range', 'min max')\n wpfE = set(UqER.keys())\n\n def T7VY(rmIH):\n \"\"\"Helper function: check whether the elements present fit the\n ... | [
"0.5957574",
"0.56505984",
"0.53430843",
"0.53147",
"0.52769",
"0.52443403",
"0.52068424",
"0.5123219",
"0.5065947",
"0.50545734",
"0.5021905",
"0.5021014",
"0.50124574",
"0.49772745",
"0.4967333",
"0.49544847",
"0.4948081",
"0.48989066",
"0.48865283",
"0.48841324",
"0.488341... | 0.65357345 | 0 |
Given a list of CombatElementals or Abilities, return the ones that are at least neutral against a target element, if any. | def KZSx(I1bG: List, CFbm: Elements) -> x1iM:
return [GFDZ for GFDZ in I1bG if not lUVW(GFDZ.element, CFbm).is_resistant()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zUiX(YKHO, DumB: Iterable['Character']):\n return [YRbF for YRbF in DumB if YKHO.skill_targets(YRbF)]",
"def uoZB(__n6):\n return not any([mvm2.positive for mvm2 in __n6])",
"def kEFA(I1bG: List, CFbm: Elements) -> x1iM:\n return [GFDZ for GFDZ in I1bG if lUVW(GFDZ.element, CFbm).is_effective()]",... | [
"0.56507784",
"0.52245146",
"0.5201922",
"0.5135395",
"0.49641898",
"0.49541092",
"0.49460894",
"0.48682448",
"0.48664337",
"0.48640952",
"0.48621267",
"0.48331958",
"0.48329982",
"0.48206398",
"0.48188865",
"0.47727263",
"0.4770962",
"0.47663763",
"0.47607422",
"0.47521126",
... | 0.6037385 | 0 |
Return a sorted dict of (tag, entropy or KL divergence) | def BkLA(Cs6h=200, hFiK=False):
Ux0P = 'n{}entropies_{}.dat'.format('K' if hFiK else '', Cs6h)
with T_Uj.open(Ux0P, 'r', 'utf8') as oqGu:
Nqlg = [YRbF.strip().split() for YRbF in oqGu.readlines()[1:]]
vHRy = sorted([(TZ9E, float(wEf2)) for wEf2, TZ9E in Nqlg if TZ9E != '_background' and float(wEf2) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ebCz(Crrw):\n Tjp_ = {}\n nfqd = []\n wjRY = Crrw.size\n for UXqs in Crrw:\n if UXqs not in Tjp_.keys():\n Tjp_[UXqs] = 1\n else:\n Tjp_[UXqs] += 1\n for YRbF in Tjp_.keys():\n nfqd.append(Tjp_[YRbF] / wjRY * epAf.log2(Tjp_[YRbF] / wjRY))\n sum = 0\n... | [
"0.5855577",
"0.57248783",
"0.5721236",
"0.5638209",
"0.56375164",
"0.5612398",
"0.56025875",
"0.55836934",
"0.5579482",
"0.5569067",
"0.555581",
"0.55448323",
"0.55153584",
"0.5501755",
"0.5463866",
"0.5459455",
"0.5454071",
"0.5407547",
"0.5391959",
"0.53702676",
"0.5367424... | 0.5227491 | 43 |
Return a list of sysctl parameters for this minion | def nUHY(Nu1S=False):
U5bT = {}
if Nu1S:
if not Hy7s.path.exists(Nu1S):
return []
try:
with NTfD.utils.files.fopen(Nu1S) as jr0M:
for zFiD in jr0M:
zFiD = NTfD.utils.stringutils.to_str(zFiD).strip()
if not zFiD.start... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aNNk():\n Sinw = {'net.ipv4.tcp_max_tw_buckets': 10000, 'net.ipv4.tcp_tw_reuse': 1, 'net.ipv4.tcp_tw_recycle': 1, 'net.ipv4.tcp_fin_timeout': 20, 'net.ipv4.tcp_keepalive_time': 30, 'net.ipv4.tcp_keepalive_probes': 3, 'net.ipv4.tcp_keepalive_intvl': 30, 'net.ipv4.tcp_retries2': 5}\n return Sinw",
"def A... | [
"0.67093587",
"0.6246972",
"0.6222507",
"0.6222507",
"0.6213219",
"0.61872834",
"0.6174105",
"0.6012694",
"0.6001412",
"0.5899027",
"0.58388525",
"0.58177286",
"0.57167035",
"0.5700175",
"0.5656678",
"0.56544715",
"0.5622934",
"0.55943596",
"0.55923885",
"0.55865645",
"0.5586... | 0.6487337 | 1 |
Sets the query_graph of this Message. | def E0mb(YKHO, E0mb):
YKHO._query_graph = E0mb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set(YKHO, pNZh):\n YKHO.graph = pNZh",
"def n7FZ(YKHO, xDcj):\n YKHO._query = xDcj",
"def FjBB(YKHO, pNZh: Union[nx.Graph, nx.MultiDiGraph]):\n YKHO._graph = pNZh",
"def EIr_(YKHO, xDcj):\n YKHO.query = xDcj",
"def EIr_(YKHO, xDcj=None):\n if xDcj is not None:\n YKHO.query = xDcj\... | [
"0.69589",
"0.6569205",
"0.653481",
"0.6502097",
"0.64611214",
"0.64337116",
"0.6267185",
"0.6267185",
"0.6205456",
"0.6165187",
"0.6093347",
"0.6062042",
"0.60274947",
"0.60067236",
"0.5960373",
"0.5935985",
"0.57401013",
"0.57401013",
"0.57401013",
"0.5725958",
"0.57076305"... | 0.8462185 | 0 |
Sets the knowledge_graph of this Message. | def eltH(YKHO, eltH):
YKHO._knowledge_graph = eltH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set(YKHO, pNZh):\n YKHO.graph = pNZh",
"def FjBB(YKHO, pNZh: Union[nx.Graph, nx.MultiDiGraph]):\n YKHO._graph = pNZh",
"def FjBB(pNZh: Union[None, Graph]) -> None:\n iNZJ.set(pNZh)",
"def pNZh(YKHO, pNZh):\n YKHO._graph = pNZh\n YKHO._edgelist = pNZh.get_edgelist()",
"def wWX_(YKHO, pNZh... | [
"0.7378517",
"0.7155117",
"0.6961866",
"0.66239303",
"0.6598731",
"0.64905506",
"0.61373925",
"0.60714173",
"0.60227376",
"0.6006375",
"0.5988956",
"0.5899081",
"0.588946",
"0.5764525",
"0.5764525",
"0.56719595",
"0.56183916",
"0.5533154",
"0.5525214",
"0.54936856",
"0.546150... | 0.8455396 | 0 |
Get the mapping of arguments to values. A dict is returned, with keys the function argument names (including the names of the and arguments, if any), and values the respective bound values from 'positional' and 'named'. | def m3k5(JfyU, *_4TM, **hWek):
qIxc, K9vJ, NZrt, muwo, b1lA, WYpM, XgyP = WhLE(JfyU)
if b1lA:
raise ValueError("I'm sorry, I don't have the logic to use kwonlyargs. Perhapse you can help PyContracts and implement this? Thanks.")
knSv = JfyU.__name__
_ZI9 = {}
Arzu = []
def bD1G(d7pR, BW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wZUi(JfyU, *qIxc, **B2fa):\n try:\n dKZ5 = aadv(JfyU).bind_partial(*qIxc, **B2fa).arguments\n except TypeError:\n return dict()\n Ltpw = aadv(JfyU).parameters\n for WLRG in Ltpw:\n if Ltpw[WLRG].default != XDS4.empty and Ltpw[WLRG].name not in dKZ5:\n dKZ5[Ltpw[WLRG]... | [
"0.749595",
"0.7052529",
"0.69389874",
"0.68665093",
"0.6849124",
"0.6790002",
"0.6721463",
"0.6689249",
"0.66679657",
"0.6626493",
"0.65882456",
"0.65240103",
"0.65045166",
"0.6401561",
"0.63753915",
"0.63485837",
"0.6331683",
"0.6308593",
"0.6294808",
"0.62649226",
"0.62455... | 0.64191943 | 13 |
Determine if a is equal to b ignoring an element with the given index | def IzcV(jzdc, Fg_i, PrmE):
jzdc, Fg_i = (jzdc[:], Fg_i[:])
del jzdc[PrmE]
del Fg_i[PrmE]
return True if jzdc == Fg_i else False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QGXx(YKHO, rEbr):\n if len(YKHO.indexes) != len(rEbr.indexes):\n return 0\n else:\n for I6NS in range(len(YKHO.indexes)):\n huDR = YKHO.indexes[I6NS]\n HFD1 = rEbr.indexes[I6NS]\n if not huDR.isidenticalto(HFD1):\n return 0\n return 1",
"... | [
"0.64803237",
"0.6467966",
"0.6366204",
"0.6323085",
"0.62619597",
"0.62358135",
"0.62290144",
"0.61856055",
"0.6106176",
"0.6105952",
"0.60835683",
"0.60835683",
"0.60304",
"0.59798265",
"0.59798265",
"0.59748304",
"0.59748304",
"0.5966555",
"0.5966555",
"0.59587157",
"0.595... | 0.6513772 | 0 |
Return a list of primes < n | def rPed(exwG):
KwQv = [True] * (exwG // 2)
for YRbF in range(3, int(exwG ** 0.5) + 1, 2):
if KwQv[YRbF // 2]:
KwQv[YRbF * YRbF // 2::YRbF] = [False] * ((exwG - YRbF * YRbF - 1) // (2 * YRbF) + 1)
return [2] + [2 * YRbF + 1 for YRbF in range(1, exwG // 2) if KwQv[YRbF]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7wK(exwG):\n return [XP5J for XP5J in rPed(exwG)]",
"def Nwax(exwG):\n if exwG < 3:\n return []\n k0lF = [True] * exwG\n k0lF[0], k0lF[1] = (False, False)\n for YRbF in range(2, int(exwG ** 0.5) + 1):\n if k0lF[YRbF]:\n r845 = YRbF ** 2\n while r845 < exwG:... | [
"0.8651576",
"0.8561215",
"0.85018134",
"0.8454935",
"0.84533316",
"0.84469074",
"0.8441899",
"0.84025985",
"0.8362283",
"0.82864535",
"0.8286192",
"0.82771367",
"0.82597166",
"0.82554907",
"0.8249365",
"0.82412744",
"0.82203966",
"0.82134753",
"0.8205767",
"0.8158375",
"0.81... | 0.81244093 | 21 |
download csv from dataframe | def BsfS():
print('In download')
rq6b = 'geocoded_' + U3a6.get_uploaded_filename()
print(rq6b)
geh0 = Yxsy(U3a6.download_csv_from_dataframe())
geh0.headers['Content-Disposition'] = 'attachment; filename=' + rq6b
geh0.headers['Content-Type'] = 'text/csv'
print(geh0)
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OqY_(jQ3Z):\n m6_J = jQ3Z.to_csv(index=False)\n Hufe = WR89.b64encode(m6_J.encode()).decode()\n return f'<a href=\"data:file/csv;base64,{Hufe}\" download=\"data.csv\">Download CSV file</a>'",
"def dI3R(bD7m, gXgy):\n jQ3Z = rLdf.read_csv(bD7m, sep=';')\n jQ3Z.to_csv(gXgy)",
"def v43j(jQ3Z: p... | [
"0.7632078",
"0.75799793",
"0.74821776",
"0.73112553",
"0.73059565",
"0.72805196",
"0.7277009",
"0.72692907",
"0.7266267",
"0.7255395",
"0.72417617",
"0.72253245",
"0.72253245",
"0.72253245",
"0.72116417",
"0.7201445",
"0.7186315",
"0.71673334",
"0.7159753",
"0.7159753",
"0.7... | 0.71035343 | 24 |
Reset cached data that have already been calculated. | def zikD(YKHO):
YKHO._H_op = None
YKHO._b_op = None
YKHO._eye_op = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zikD(YKHO):\n del YKHO.data\n del YKHO.cache[YKHO.name]\n YKHO.cache.sync()\n YKHO.data = YKHO.cache.setdefault(YKHO.name, {})",
"def zikD(YKHO):\n pass",
"def SiRx() -> None:\n for wyyA in EgZb._reset_caches:\n wyyA._data.clear()",
"def SiRx(YKHO):\n YKHO._cache = dict()",
... | [
"0.8233511",
"0.8117069",
"0.808238",
"0.8002629",
"0.79648757",
"0.79648757",
"0.7941445",
"0.79312074",
"0.79312074",
"0.78288835",
"0.7714455",
"0.76762724",
"0.7656154",
"0.75562716",
"0.75562716",
"0.75562716",
"0.74907607",
"0.7470442",
"0.74619865",
"0.745274",
"0.7449... | 0.7744172 | 10 |
Reset the cached data that have already been calculated. | def zikD(YKHO):
YKHO._eigvals = None
YKHO._eigvecs = None
YKHO._H_op = None
YKHO._eye_op = None
YKHO._n_op = None
YKHO._phi_op = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zikD(YKHO):\n del YKHO.data\n del YKHO.cache[YKHO.name]\n YKHO.cache.sync()\n YKHO.data = YKHO.cache.setdefault(YKHO.name, {})",
"def zikD(YKHO):\n pass",
"def SiRx(YKHO):\n YKHO.simple_cache = {}\n YKHO.complex_cache = {}\n YKHO.target_cache = {}",
"def SiRx(YKHO):\n YKHO.simp... | [
"0.8207078",
"0.8139162",
"0.8080475",
"0.8080475",
"0.8076331",
"0.8061854",
"0.8015359",
"0.79746926",
"0.79746926",
"0.791869",
"0.7807446",
"0.7792836",
"0.77660954",
"0.77319926",
"0.7618093",
"0.75911343",
"0.7584082",
"0.75449204",
"0.7538738",
"0.748692",
"0.74703795"... | 0.7614521 | 16 |
Qubit Hamiltonian in its eigenbasis. | def C7Ls(YKHO):
if YKHO._H_op is None:
YKHO._H_op = eA0O.Qobj(oyIN.diag(YKHO.levels()[:YKHO._num_qbt]))
return YKHO._H_op | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uYvx(YKHO):\n ORsB = YKHO.system.get_Hamiltonian()\n return xsN1(ORsB)",
"def rSb_(QTg7: float) -> bVmN.Qobj:\n return 0.5 * QTg7 * bVmN.sigmaz()",
"def BWDL(YKHO, XP5J):\n raise NotImplementedError",
"def M6Bo():\n return oyIN.array([SxVy(3, 0), SxVy(3, 1), SxVy(3, 2)])",
"def SxVy(k0lF... | [
"0.7502916",
"0.7066718",
"0.698359",
"0.66152954",
"0.630348",
"0.6297773",
"0.62530273",
"0.61824155",
"0.6133695",
"0.60750085",
"0.6072016",
"0.6041879",
"0.6018628",
"0.60116184",
"0.5959298",
"0.5956331",
"0.59553856",
"0.594124",
"0.59263736",
"0.591053",
"0.5907841",
... | 0.5702095 | 43 |
Reset cached data that have already been calculated. | def zikD(YKHO):
YKHO._eigvals = None
YKHO._eigvecs = None
YKHO._H_op = None
YKHO._eye_op = None
YKHO._n_op = None
YKHO._phi_op = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zikD(YKHO):\n del YKHO.data\n del YKHO.cache[YKHO.name]\n YKHO.cache.sync()\n YKHO.data = YKHO.cache.setdefault(YKHO.name, {})",
"def zikD(YKHO):\n pass",
"def SiRx() -> None:\n for wyyA in EgZb._reset_caches:\n wyyA._data.clear()",
"def SiRx(YKHO):\n YKHO._cache = dict()",
... | [
"0.8233511",
"0.8117069",
"0.808238",
"0.8002629",
"0.79648757",
"0.79648757",
"0.7941445",
"0.79312074",
"0.79312074",
"0.78288835",
"0.7744172",
"0.7714455",
"0.76762724",
"0.7656154",
"0.74907607",
"0.7470442",
"0.74619865",
"0.745274",
"0.7449341",
"0.74149567",
"0.740633... | 0.75562716 | 16 |
Qubit Hamiltonian in its eigenbasis. | def C7Ls(YKHO):
if YKHO._H_op is None:
YKHO._H_op = eA0O.Qobj(oyIN.diag(YKHO.levels()[:YKHO._num_qbt]))
return YKHO._H_op | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uYvx(YKHO):\n ORsB = YKHO.system.get_Hamiltonian()\n return xsN1(ORsB)",
"def rSb_(QTg7: float) -> bVmN.Qobj:\n return 0.5 * QTg7 * bVmN.sigmaz()",
"def BWDL(YKHO, XP5J):\n raise NotImplementedError",
"def M6Bo():\n return oyIN.array([SxVy(3, 0), SxVy(3, 1), SxVy(3, 2)])",
"def SxVy(k0lF... | [
"0.75026685",
"0.70672977",
"0.69846106",
"0.66125244",
"0.6301744",
"0.6298447",
"0.625317",
"0.61817455",
"0.61359566",
"0.60744303",
"0.60717463",
"0.6041586",
"0.60189986",
"0.6013084",
"0.5959421",
"0.59594023",
"0.595733",
"0.5939533",
"0.592654",
"0.59100705",
"0.59080... | 0.57019067 | 45 |
Reset cached data that have already been calculated. | def zikD(YKHO):
YKHO._eigvals = None
YKHO._eigvecs = None
YKHO._H_op = None
YKHO._eye_op = None
YKHO._n_op = None
YKHO._phi_op = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zikD(YKHO):\n del YKHO.data\n del YKHO.cache[YKHO.name]\n YKHO.cache.sync()\n YKHO.data = YKHO.cache.setdefault(YKHO.name, {})",
"def zikD(YKHO):\n pass",
"def SiRx() -> None:\n for wyyA in EgZb._reset_caches:\n wyyA._data.clear()",
"def SiRx(YKHO):\n YKHO._cache = dict()",
... | [
"0.8233511",
"0.8117069",
"0.808238",
"0.8002629",
"0.79648757",
"0.79648757",
"0.7941445",
"0.79312074",
"0.79312074",
"0.78288835",
"0.7744172",
"0.7714455",
"0.76762724",
"0.7656154",
"0.74907607",
"0.7470442",
"0.74619865",
"0.745274",
"0.7449341",
"0.74149567",
"0.740633... | 0.75562716 | 14 |
Qubit Hamiltonian in its eigenbasis. | def C7Ls(YKHO):
if YKHO._H_op is None:
YKHO._H_op = eA0O.Qobj(oyIN.diag(YKHO.levels()[:YKHO._num_qbt]))
return YKHO._H_op | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uYvx(YKHO):\n ORsB = YKHO.system.get_Hamiltonian()\n return xsN1(ORsB)",
"def rSb_(QTg7: float) -> bVmN.Qobj:\n return 0.5 * QTg7 * bVmN.sigmaz()",
"def BWDL(YKHO, XP5J):\n raise NotImplementedError",
"def M6Bo():\n return oyIN.array([SxVy(3, 0), SxVy(3, 1), SxVy(3, 2)])",
"def SxVy(k0lF... | [
"0.75026685",
"0.70672977",
"0.69846106",
"0.66125244",
"0.6301744",
"0.6298447",
"0.625317",
"0.61817455",
"0.61359566",
"0.60744303",
"0.60717463",
"0.6041586",
"0.60189986",
"0.6013084",
"0.5959421",
"0.59594023",
"0.595733",
"0.5939533",
"0.592654",
"0.59100705",
"0.59080... | 0.57019067 | 44 |
The flux matrix element between two eigenstates. | def IPg8(YKHO, EVDx, Sk01):
YKHO._check_level(EVDx)
YKHO._check_level(Sk01)
PDSy = YKHO._spectrum_osc()[1]
return YKHO._phi_osc().matrix_element(PDSy[EVDx].dag(), PDSy[Sk01]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def shSu(YKHO):\n return YKHO.norm * YKHO.flux_ref",
"def VOKl(YKHO):\n return UlCL.flux_measure(YKHO.ensemble_transition_matrix)",
"def Rruf(YKHO):\n return YKHO.norm * YKHO.eflux_ref",
"def shSu(YKHO):\n return YKHO._flux",
"def shSu(YKHO):\n return YKHO.hdu[1].data['FLUX'][YKHO.quality_ma... | [
"0.65705293",
"0.6473961",
"0.6451285",
"0.63782984",
"0.594351",
"0.59146124",
"0.5909064",
"0.5897161",
"0.58850807",
"0.58286875",
"0.5800842",
"0.57630086",
"0.5742809",
"0.57284075",
"0.5717745",
"0.56658316",
"0.5642797",
"0.5633314",
"0.5612902",
"0.5591086",
"0.550951... | 0.0 | -1 |
Returns the fluxonium potential as a function of flux. | def Iy_q(YKHO, rVnq):
return 0.5 * YKHO.E_L * rVnq ** 2 - YKHO.E_J * oyIN.cos(rVnq - 2.0 * oyIN.pi * YKHO.phi_ext) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def shSu(YKHO):\n return YKHO.norm * YKHO.flux_ref",
"def qil4(YKHO):\n eLgw = YKHO.compute_dnde()\n akib = YKHO.bin_volume\n shSu = eLgw * akib\n return shSu.to('cm-2 s-1')",
"def alfl(YKHO) -> P6bq.T * P6bq.m:\n ...",
"def OdnW(YKHO):\n return YKHO.input.getVoltage / 5.0",
"def qil4(... | [
"0.75440145",
"0.75121826",
"0.72411454",
"0.7105772",
"0.7074779",
"0.6949698",
"0.69259953",
"0.6801178",
"0.6801135",
"0.6617415",
"0.6527477",
"0.65249294",
"0.64902604",
"0.64482254",
"0.64450514",
"0.6444028",
"0.643406",
"0.643056",
"0.6366318",
"0.6349782",
"0.629758"... | 0.0 | -1 |
The shear in the first velocity component. Notes ===== The derivative direction is along the profiler's 'z' coordinate ('dz' is actually diff(self['range'])), not necessarily the 'true vertical' direction. | def OoXq(YKHO):
return YKHO._diff_func('u') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wm7g(YKHO):\n return 1 / oyIN.sin(YKHO.alt)",
"def d1wT():\n nyvK = -SGPK.q * _pfw\n nyvK = nyvK + XTiz.where(_pfw > SGPK.Lf02, SGPK.Sy2, 0.0)\n nyvK = nyvK + XTiz.where(_pfw > SGPK.Lf01, SGPK.Sy1, 0.0)\n assert abs(nyvK[0]) < 0.001, 'Internal shear_y at aft of fuselage is not 0.'\n assert ... | [
"0.6790105",
"0.65330756",
"0.63755393",
"0.63535523",
"0.62837243",
"0.61951023",
"0.61518675",
"0.61225",
"0.60862887",
"0.5972256",
"0.596885",
"0.5930449",
"0.5930449",
"0.5871266",
"0.58548766",
"0.5817203",
"0.5793411",
"0.578065",
"0.57722986",
"0.5772",
"0.5756898",
... | 0.0 | -1 |
The shear in the second velocity component. Notes ===== The derivative direction is along the profiler's 'z' coordinate ('dz' is actually diff(self['range'])), not necessarily the 'true vertical' direction. | def ZUwx(YKHO):
return YKHO._diff_func('v') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wm7g(YKHO):\n return 1 / oyIN.sin(YKHO.alt)",
"def yvp2(YKHO):\n return YKHO.dudz ** 2 + YKHO.dvdz ** 2",
"def d1wT():\n nyvK = -SGPK.q * _pfw\n nyvK = nyvK + XTiz.where(_pfw > SGPK.Lf02, SGPK.Sy2, 0.0)\n nyvK = nyvK + XTiz.where(_pfw > SGPK.Lf01, SGPK.Sy1, 0.0)\n assert abs(nyvK[0]) < 0.... | [
"0.6680182",
"0.6662909",
"0.6391202",
"0.62326777",
"0.6109031",
"0.6023356",
"0.59718984",
"0.58487976",
"0.58427835",
"0.58221745",
"0.57614255",
"0.5753855",
"0.5744476",
"0.5737905",
"0.5733051",
"0.5729805",
"0.5678366",
"0.5662935",
"0.5627062",
"0.5609788",
"0.5609788... | 0.0 | -1 |
The shear in the third velocity component. Notes ===== The derivative direction is along the profiler's 'z' coordinate ('dz' is actually diff(self['range'])), not necessarily the 'true vertical' direction. | def KolK(YKHO):
return YKHO._diff_func('w') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BdAH(YKHO):\n return YKHO.data[3] / YKHO.data[0]",
"def Wm7g(YKHO):\n return 1 / oyIN.sin(YKHO.alt)",
"def aUJK(YKHO):\n return YKHO.zmax - YKHO.zmin",
"def tYeL(YKHO, MKlR, TifC):\n return -_Xn5.quad(lambda WKvO: YKHO.shear_rate(WKvO, TifC), YKHO.__height, MKlR)[0]",
"def zSVU(YKHO, fHmP, ... | [
"0.6492408",
"0.6459962",
"0.6415254",
"0.6279561",
"0.60226697",
"0.6006245",
"0.5993104",
"0.5897026",
"0.58909523",
"0.58813894",
"0.58781594",
"0.5850995",
"0.5836119",
"0.58346975",
"0.5830788",
"0.5801366",
"0.57225686",
"0.56981206",
"0.5667406",
"0.5665422",
"0.564206... | 0.0 | -1 |
The horizontal shearsquared. Notes ===== This is actually (dudz)^2 + (dvdz)^2. So, if those variables are not actually vertical derivatives of the horizontal velocity, then this is not the 'horizontal shearsquared'. See Also ======== | def yvp2(YKHO):
return YKHO.dudz ** 2 + YKHO.dvdz ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FQd5(WKvO, LVAh, epBp, P6bq, Ty9i, yzQ0):\n return oyIN.sqrt((LVAh * yzQ0 - epBp * Ty9i) ** 2 + (epBp * P6bq - WKvO * yzQ0) ** 2 + (WKvO * Ty9i - LVAh * P6bq) ** 2)",
"def IGLx():\n IlrH = SGPK.Sx\n IlrH = IlrH + XTiz.where(_pfw > SGPK.Lf02, SGPK.Sx2, 0)\n IlrH = IlrH + XTiz.where(_pfw > SGPK.Lf0... | [
"0.64913183",
"0.62330914",
"0.6231783",
"0.6108434",
"0.6083786",
"0.6055855",
"0.6045608",
"0.6034885",
"0.5903394",
"0.58657384",
"0.5862389",
"0.5859491",
"0.5814381",
"0.5769579",
"0.5734485",
"0.57244796",
"0.5717316",
"0.569713",
"0.56830126",
"0.5680478",
"0.5668443",... | 0.0 | -1 |
Assert that x and y, either arrays or nested tuples/lists, are close. | def Uhje(YKHO, WKvO, LVAh, *, iKR8: bool=True, rU28: Optional[float]=None, LL2J: Optional[float]=None, XYlo: bool=True, YXxD: str=''):
if isinstance(WKvO, dict):
YKHO.assertIsInstance(LVAh, dict)
YKHO.assertEqual(set(WKvO.keys()), set(LVAh.keys()))
for G1Hx in WKvO.keys():
YKHO._... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OZwY(WKvO, LVAh):\n try:\n ZylS.nest.assert_same_structure(WKvO, LVAh)\n except ValueError:\n raise AssertionError('Expected structures to have the same shape.') from None\n pMBr = ZylS.nest.flatten(WKvO)\n LECP = ZylS.nest.flatten(LVAh)\n for mKKX, zHpD in zip(pMBr, LECP):\n ... | [
"0.7414817",
"0.7220681",
"0.7220403",
"0.70059365",
"0.698182",
"0.6924049",
"0.6900538",
"0.6840703",
"0.6788201",
"0.6770604",
"0.6759747",
"0.67363477",
"0.66395026",
"0.6593771",
"0.65873104",
"0.6579284",
"0.6578522",
"0.6575607",
"0.6535929",
"0.6529746",
"0.6492689",
... | 0.0 | -1 |
The extended location of the cluster associated with the resource. | def zXcB(YKHO) -> 'outputs.ExtendedLocationResponse':
return qe4Y.get(YKHO, 'extended_location') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hKn5(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster')",
"def iZhX(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_uri')",
"def zXcB(YKHO) -> qe4Y.Output[h8nf['outputs.ExtendedLocationResponse']]:\n return qe4Y.get(YKHO, 'extended_location')",
"def zXcB(YKHO) -> qe4Y.Output[h8nf['outputs.ExtendedL... | [
"0.6644911",
"0.663769",
"0.655031",
"0.655031",
"0.655031",
"0.655031",
"0.6524843",
"0.6428863",
"0.642669",
"0.642669",
"0.642669",
"0.642669",
"0.642669",
"0.6426005",
"0.6270422",
"0.6160281",
"0.6096599",
"0.6096599",
"0.6096599",
"0.6096599",
"0.60934997",
"0.60296",... | 0.686307 | 0 |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" | def id(YKHO) -> str:
return qe4Y.get(YKHO, 'id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return YKHO.__resource_id",
"def PcW4(YKHO) -> qe4Y.Output[str]:\n retur... | [
"0.77832997",
"0.77832997",
"0.77832997",
"0.76196873",
"0.75391096",
"0.75391096",
"0.75391096",
"0.75391096",
"0.75391096",
"0.74582916",
"0.74582916",
"0.74582916",
"0.74582916",
"0.74582916",
"0.74582916",
"0.74169534",
"0.74169534",
"0.74169534",
"0.74169534",
"0.74169534"... | 0.0 | -1 |
The default interface name for this L3 network in the virtual machine. This name can be overridden by the name supplied in the network attachment configuration of that virtual machine. | def rh3n(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'interface_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tvqd(YKHO):\n with YKHO.top_level_cmd() as jdOK:\n return f'{jdOK.project.name}_default'",
"def rh3n(YKHO) -> str:\n return qe4Y.get(YKHO, 'interface_name')",
"def nay6(YKHO):\n muwo = list(YKHO.parse_netstat())\n return muwo[0][1]",
"def rh3n(YKHO):\n return YKHO._interface_name",
... | [
"0.7421154",
"0.6953658",
"0.68641394",
"0.6854558",
"0.68535316",
"0.6747167",
"0.6614217",
"0.6606051",
"0.6606051",
"0.6600417",
"0.6600417",
"0.6600417",
"0.6600417",
"0.6536194",
"0.6536194",
"0.6491951",
"0.6472067",
"0.64527094",
"0.64517415",
"0.645047",
"0.63861185",... | 0.7027696 | 1 |
The resource ID of the Network Fabric l3IsolationDomain. | def emkG(YKHO) -> str:
return qe4Y.get(YKHO, 'l3_isolation_domain_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bmHu(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'l3_isolation_domain_name')",
"def TvXf(YKHO) -> str:\n return qe4Y.get(YKHO, 'domain_id')",
"def fNIt(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'db_cluster_resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource... | [
"0.69606405",
"0.6621385",
"0.64446783",
"0.6399675",
"0.6399675",
"0.6399675",
"0.63632655",
"0.6333901",
"0.6317952",
"0.6317952",
"0.6317952",
"0.6317952",
"0.6317952",
"0.62859935",
"0.6278907",
"0.6263529",
"0.6263529",
"0.62495154",
"0.62059337",
"0.62059337",
"0.620593... | 0.85178596 | 0 |
The provisioning state of the L3 network. | def mX_9(YKHO) -> str:
return qe4Y.get(YKHO, 'provisioning_state') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mX_9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'provisioning_state')",
"def mX_9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'provisioning_state')",
"def mX_9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'provisioning_state')",
"def mX_9(YKHO) -> qe4Y.Output[str]:\n retu... | [
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796",
"0.78132796"... | 0.7777858 | 26 |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" | def type(YKHO) -> str:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n ... | [
"0.820269",
"0.820269",
"0.820269",
"0.820269",
"0.820269",
"0.820269",
"0.820269",
"0.820269",
"0.820269",
"0.820269",
"0.820269",
"0.820269",
"0.820269",
"0.820269",
"0.809751",
"0.7982472",
"0.7982472",
"0.7982472",
"0.7982472",
"0.7982472",
"0.7982472",
"0.7982472",
"... | 0.664222 | 85 |
The VLAN from the l3IsolationDomain that is used for this network. | def GGRp(YKHO) -> float:
return qe4Y.get(YKHO, 'vlan') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GGRp(YKHO):\n return YKHO._vlan",
"def c7u8(YKHO):\n if YKHO.network['provider:network_type'] != 'vlan':\n raise l7Cn('Trying to retrieve VLAN id for non VLAN network')\n return YKHO.network['provider:segmentation_id']",
"def c7u8(YKHO):\n return YKHO.vlan_id",
"def sgjJ(YKHO):\n re... | [
"0.80009925",
"0.7982791",
"0.79299533",
"0.7917927",
"0.7917927",
"0.788354",
"0.7857206",
"0.75102323",
"0.75102323",
"0.75102323",
"0.7463903",
"0.73023355",
"0.7297959",
"0.72768015",
"0.72502255",
"0.72481626",
"0.71805644",
"0.70167404",
"0.697757",
"0.69599074",
"0.695... | 0.7804432 | 7 |
Logistic regression with log loss and Gradient Descent. | def UKod(LVAh, UShr, Iuqe, ABAq, KMvS, PJWX=False):
VTcd = [Iuqe]
yzQ0 = Iuqe
N8L0 = []
for KjSY in range(ABAq):
Oa1e = toRj(LVAh, UShr, yzQ0)
N77f = K_qE(LVAh, UShr, yzQ0)
yzQ0 = yzQ0 - KMvS * Oa1e
yzQ0 = yzQ0.ravel()
VTcd.append(yzQ0)
N8L0.append(N77f)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def diO5():\n LVAh = oyIN.array([0, 1, 0, 1])\n o4D3 = oyIN.array([0, 0, 0, 1])\n ajwV = oyIN.array([0, 1, 1, 1])\n UqYS = [-1.5, 2.8, 1.1]\n _uU5 = UqYS[0] + UqYS[1] * o4D3 + UqYS[2] * ajwV\n print(_uU5)\n z1Rg = oyIN.exp(_uU5)\n print(z1Rg)\n XP5J = z1Rg / (z1Rg + 1)\n print(XP5J)\n... | [
"0.797998",
"0.776726",
"0.7642921",
"0.7627229",
"0.7620558",
"0.752655",
"0.7509042",
"0.7505897",
"0.74977523",
"0.746727",
"0.74610746",
"0.740535",
"0.7401382",
"0.7401063",
"0.7355791",
"0.7354529",
"0.73472774",
"0.73398423",
"0.7329517",
"0.7322234",
"0.7294008",
"0... | 0.7079381 | 46 |
Compute gradient for log loss. | def toRj(LVAh, UShr, yzQ0):
tTpl = m1Hg(UShr @ yzQ0) - LVAh
return 1 / UShr.shape[0] * UShr.T @ tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g3Sy(LVAh, UShr, yzQ0):\n nvEb = m1Hg(UShr.dot(yzQ0))\n Ro40 = UShr.T.dot(nvEb - LVAh) / LVAh.shape[0]\n return Ro40",
"def An6C(zXzD, Ro40):\n WKvO = zXzD.args[0]\n return [Ro40 * EwqT(WKvO) / WKvO]",
"def C6PX(amiz, Pnha):\n LVAh = Pnha.get_label()\n return (oyIN.log1p(amiz) - oyIN.l... | [
"0.80317223",
"0.7627013",
"0.7624968",
"0.7537631",
"0.7451151",
"0.7309718",
"0.7262275",
"0.7242868",
"0.7194777",
"0.71889126",
"0.7176279",
"0.7154912",
"0.71269864",
"0.7123736",
"0.71189004",
"0.7100094",
"0.7097852",
"0.70637906",
"0.70278543",
"0.70001096",
"0.699157... | 0.6472576 | 81 |
Compute gradient for log loss with regularization. | def AOY4(LVAh, UShr, yzQ0, w4rS, lQ3t):
assert lQ3t == 1 or lQ3t == 2, 'reg needs to be 1 or 2'
if lQ3t == 1:
return toRj(LVAh, UShr, yzQ0) + w4rS * oyIN.sign(yzQ0)
else:
return toRj(LVAh, UShr, yzQ0) + 2 * w4rS * yzQ0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g3Sy(LVAh, UShr, yzQ0):\n nvEb = m1Hg(UShr.dot(yzQ0))\n Ro40 = UShr.T.dot(nvEb - LVAh) / LVAh.shape[0]\n return Ro40",
"def DcbE(LVAh, UShr, yzQ0):\n return oyIN.matmul(oyIN.transpose(UShr), oyIN.multiply(-LVAh, m1Hg(oyIN.multiply(-LVAh, oyIN.matmul(UShr, yzQ0)))))",
"def An6C(zXzD, Ro40):\n ... | [
"0.7843002",
"0.7600708",
"0.75947404",
"0.75260025",
"0.74646676",
"0.7460149",
"0.7446012",
"0.7401152",
"0.73687917",
"0.73295903",
"0.73157555",
"0.7288452",
"0.7267194",
"0.7203172",
"0.7172087",
"0.71685076",
"0.71562654",
"0.7096478",
"0.70909846",
"0.70830876",
"0.706... | 0.6643559 | 55 |
Generate a minibatch iterator for a dataset. Takes as input two iterables (here the output desired values 'y' and the input data 'tx') Outputs an iterator which gives minibatches of `batch_size` matching elements from `y` and `tx`. Data can be randomly shuffled to avoid ordering in the original data messing with the ra... | def aNDg(LVAh, UShr, Ep8u, PmAP=1, hXNa=True):
Zgof = len(LVAh)
if hXNa:
jp5x = oyIN.random.permutation(oyIN.arange(Zgof))
Z3m2 = LVAh[jp5x]
N_ZB = UShr[jp5x]
else:
Z3m2 = LVAh
N_ZB = UShr
for Bugx in range(PmAP):
V_8U = Bugx * Ep8u
ixQc = min((Bug... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wc9F(LVAh, UShr, Ep8u, yokr):\n oyIN.random.seed(yokr)\n Zgof = len(LVAh)\n _0VL = oyIN.random.permutation(UShr.shape[0])\n uEc1 = _0VL[:Ep8u]\n t6N9 = LVAh[uEc1]\n ecwU = UShr[uEc1]\n return (t6N9, ecwU)",
"def aNDg(LVAh, UShr, Ep8u, yokr, PmAP=1, hXNa=True):\n Zgof = len(LVAh)\n ... | [
"0.7733228",
"0.77157396",
"0.77134585",
"0.7648139",
"0.7639255",
"0.7639255",
"0.7639255",
"0.7639255",
"0.7639255",
"0.7639255",
"0.7639255",
"0.7639255",
"0.7639255",
"0.7639255",
"0.75421274",
"0.75322044",
"0.7462511",
"0.7457111",
"0.7434958",
"0.72908527",
"0.7138659"... | 0.75906926 | 14 |
Import csv files and return array of X,y and vector of the column names. | def kOs3(pmON='data/'):
EvQg = oyIN.loadtxt(f'{pmON}train.csv', delimiter=',', skiprows=0, dtype=str)
QOe9 = oyIN.loadtxt(f'{pmON}test.csv', delimiter=',', skiprows=0, dtype=str)
AlVb = EvQg[0, :]
EvQg = oyIN.delete(EvQg, obj=0, axis=0)
QOe9 = oyIN.delete(QOe9, obj=0, axis=0)
AMBN = oyIN.where(A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TAMK(Ux0P: str, EJe8=1, HnVt=2, FhRs=None, dXnZ=4, sw0z=None, A4bo=1, TDw3=';'):\n if not '.csv' in Ux0P:\n Ux0P = Ux0P + '.csv'\n\n def yIp6(WKvO):\n return WKvO.replace(',', '.').encode()\n j1J9 = oyIN.genfromtxt((yIp6(WKvO) for WKvO in open(Ux0P)), delimiter=TDw3)\n return ZfKl(j1J... | [
"0.6848821",
"0.6779278",
"0.67552805",
"0.6738378",
"0.66811895",
"0.6666552",
"0.66317415",
"0.66079456",
"0.6603594",
"0.6593096",
"0.65723336",
"0.65650684",
"0.656378",
"0.64649814",
"0.64643234",
"0.6459752",
"0.64597356",
"0.64190257",
"0.6418596",
"0.6414744",
"0.6406... | 0.6333107 | 29 |
Retorna el total arcos del grafo | def oXGM(rENS):
return rrLg.numEdges(rENS['communityTrip']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kEBX(YKHO):\n XyHk = 0\n for z7NJ in YKHO.armas:\n XyHk += z7NJ.get_armadura()\n for p3El in YKHO.partes:\n XyHk += p3El.get_armadura()\n return XyHk",
"def Egj0(YKHO):\n return YKHO.class_area.sum()",
"def uC2o(YKHO):\n return YKHO.totalRays",
"def HodM(RHxE):\n return... | [
"0.7341266",
"0.6575839",
"0.6567346",
"0.637657",
"0.63128924",
"0.6309028",
"0.6286455",
"0.6279554",
"0.6231339",
"0.6212717",
"0.6187506",
"0.617574",
"0.6092522",
"0.60855573",
"0.60702896",
"0.6057794",
"0.6052193",
"0.6045579",
"0.6033051",
"0.60275173",
"0.59633046",
... | 0.0 | -1 |
Determines if the HashSet is empty. | def A4KR(YKHO):
return YKHO._count == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO._values == []",
"def FBfn(YKHO) -> bool:\n return len(YKHO._contains) == 0",
"def FBfn(YKHO) -> bool:\n return len(YKHO._contains) == 0",
"def FBfn(YKHO):\n return YKHO._values.empty",
"def lsmZ(YKHO):\n return YKHO.size() == 0",
"def FBfn(YKHO):\n return Y... | [
"0.80996066",
"0.80597645",
"0.80597645",
"0.8011335",
"0.79839665",
"0.7959577",
"0.7959577",
"0.7959577",
"0.7959577",
"0.79372174",
"0.78926224",
"0.78881085",
"0.7873393",
"0.78541726",
"0.78445023",
"0.78445023",
"0.784144",
"0.7839503",
"0.7839503",
"0.7830865",
"0.7830... | 0.78240687 | 24 |
Returns the index in the table where the element can be inserted. | def wJyA(YKHO, U6D_):
H5ew = hash(U6D_)
return H5ew % YKHO._TableSize | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tNNY(YKHO, or8S):\n if or8S < 0 or or8S > YKHO.length:\n raise IndexError\n return or8S",
"def K1VD(tyNF, iVRZ, nPrm):\n d6pt = -1\n for U6D_ in tyNF:\n d6pt += 1\n if U6D_[iVRZ] == nPrm:\n return d6pt",
"def Vn7Z(YKHO) -> int:\n YKHO.logger.debug('Inside get ... | [
"0.6601013",
"0.6586078",
"0.62909406",
"0.62885624",
"0.6287249",
"0.62834734",
"0.62403184",
"0.61886364",
"0.615956",
"0.61524314",
"0.61252",
"0.61193275",
"0.6117711",
"0.6063194",
"0.6063194",
"0.6063194",
"0.6024489",
"0.60202956",
"0.6000659",
"0.5994148",
"0.5890612"... | 0.0 | -1 |
USE FOR TESTING ONLY Generates a Python iterator. Iterates through the hash set from first to last slots. Assumes slot has own iterator. | def Vs4Q(YKHO):
for oQ6W in YKHO._table:
for ZfUD in oQ6W:
yield ZfUD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n return YKHO.slots.iteritems()",
"def Vs4Q(YKHO):\n for WE7e in YKHO.buckets:\n if WE7e:\n for ZfUD in WE7e:\n yield ZfUD",
"def Vs4Q(YKHO) -> bDy6[eA6S]:\n return iter(YKHO.keys())",
"def xJRe(YKHO):\n iQK3 = YKHO.hash & YKHO.TDR_MASK\n TwHr =... | [
"0.636403",
"0.6279455",
"0.6274163",
"0.6232688",
"0.6228366",
"0.61829096",
"0.616671",
"0.6138905",
"0.6086979",
"0.6006442",
"0.6002599",
"0.59753406",
"0.5975127",
"0.5961843",
"0.59263605",
"0.588192",
"0.57645416",
"0.57501185",
"0.5749903",
"0.5738454",
"0.57274985",
... | 0.63856906 | 0 |
Logistic regression tf.estimator.Estimator model_fn definition. | def yrP2(bySB, Crrw, Tuqy, NArs):
if not isinstance(NArs, dict):
NArs = NArs.values()
Zcng = MJ_e(bySB, reuse=False, params=NArs)
rqV1 = MJ_e(bySB, reuse=True, params=NArs)
S7xM = ZylS.argmax(rqV1, axis=1)
x8bW = ZylS.nn.softmax(rqV1)
if Tuqy == uE5J.ModeKeys.PREDICT:
return uE5J... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JnVv(bySB, Crrw, Tuqy, NArs):\n with ZylS.variable_scope('model'):\n g4y1, x6A0 = (bySB, Crrw)\n C3ST = d1bu.Transformer(NArs, Tuqy == ZylS.estimator.ModeKeys.TRAIN)\n KeL5 = C3ST(g4y1, x6A0)\n if Tuqy == ZylS.estimator.ModeKeys.PREDICT:\n return ZylS.estimator.Estimat... | [
"0.773216",
"0.74970233",
"0.73821086",
"0.73446256",
"0.7234996",
"0.7231938",
"0.7222911",
"0.7213797",
"0.7181079",
"0.7178112",
"0.7089909",
"0.7085988",
"0.70174897",
"0.69964325",
"0.698615",
"0.69829255",
"0.6977356",
"0.69562894",
"0.6909132",
"0.69089985",
"0.6905338... | 0.7716343 | 1 |
A complete response example for MENU_URL endpoint. | def KV5F():
yield {'city': {'id': 'GUID', 'name': 'San Francisco', 'state': 'CA', 'time_zone_name': 'America/Los_Angeles'}, 'generated_at': '2019-04-01T00:00:00Z', 'schedules': [{'id': 'GUID', 'priority': 9, 'is_featured': True, 'date': '20190401', 'meal': {'id': 'GUID', 'name': 'Spam and Eggs', 'description': 'Soe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rTAT():\n geh0.menu = [(Kt_s('Home'), False, rOmR('default', 'experimenter')), (Kt_s('Manage Data Set'), False, rOmR('default', 'MDS')), (Kt_s('Manage Experiment'), False, rOmR('default', 'ME')), (Kt_s('Manage Workflow Element'), False, rOmR('default', 'MWE'))]\n return dict()",
"def dt2a(x0hE):\n g... | [
"0.6408907",
"0.62996924",
"0.6163144",
"0.6098158",
"0.60944515",
"0.5872474",
"0.58586913",
"0.58475643",
"0.57816917",
"0.5695777",
"0.56938475",
"0.56376475",
"0.56334835",
"0.562226",
"0.56173426",
"0.55904806",
"0.557489",
"0.55561584",
"0.5555027",
"0.5542224",
"0.5540... | 0.0 | -1 |
Converts i to a hex encoded('utf8') byte string with a b' ' appended to the end. | def vTbO(YKHO, YRbF):
GIN8 = llJG(int=YRbF, length=8)
Fg_i = GIN8[0:8].hex.encode('utf-8') + b' '
return Fg_i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nXd4(YKHO, YRbF):\n \"\"\"\n :param i: integer\n :returns: 8-character hex string.\n \"\"\"\n return '%08x' % YKHO.transform(YRbF)",
"def AUwM(YRbF):\n return chr(YRbF)",
"def AUwM(YRbF):\n return bytes((YRbF,))",
"def nMyW(YRbF):\n noFe = hex(YRbF).replace('0x', '')\n... | [
"0.76348066",
"0.74406576",
"0.7136274",
"0.7104925",
"0.7064624",
"0.6829594",
"0.67585313",
"0.66331005",
"0.65829635",
"0.6571053",
"0.6569954",
"0.6562176",
"0.65410376",
"0.65269667",
"0.6456876",
"0.64440566",
"0.64392453",
"0.64338547",
"0.6426936",
"0.63982356",
"0.63... | 0.7771823 | 0 |
Get the X axis value of the controller. | def jSnl(YKHO, RZ8t: GenericHID.Hand=...) -> float:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkBi(YKHO):\n return YKHO.xvar",
"def NkBi(YKHO):\n return YKHO['xaxis']",
"def iDQV(YKHO):\n jWa5 = int(YKHO.controller.get(XC5k.CAP_PROP_FRAME_WIDTH))\n YKHO.x_axis = oyIN.linspace(0, jWa5 - 1, jWa5)\n return YKHO.x_axis",
"def iDQV(YKHO):\n jWa5 = int(YKHO.controller.get(XC5k.CAP_PRO... | [
"0.8127792",
"0.7771384",
"0.7641065",
"0.7641065",
"0.7639759",
"0.74820083",
"0.74820083",
"0.74820083",
"0.74741834",
"0.7426125",
"0.7185662",
"0.7172594",
"0.7142893",
"0.71280634",
"0.70743585",
"0.7060782",
"0.7049273",
"0.6995978",
"0.6995978",
"0.69879264",
"0.697339... | 0.0 | -1 |
Get the trigger axis value of the controller. | def BSgS(YKHO, RZ8t: GenericHID.Hand) -> float:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T_sM(YKHO) -> float:\n return YKHO._trigger_value",
"def iqFZ(YKHO):\n YKHO._trigger, BWXx = YKHO.get_attr_from_set(YKHO._trigger, 'trigger')\n return BWXx",
"def XYnN(YKHO, JZXy=None):\n if JZXy is not None:\n JZXy = YKHO._interpret_source(JZXy)\n return ZjSO(YKHO.ask(':{0}:CURR:... | [
"0.70781064",
"0.66740894",
"0.65205926",
"0.644994",
"0.644994",
"0.64450604",
"0.631934",
"0.63088375",
"0.6255611",
"0.6217",
"0.6104297",
"0.6101225",
"0.6078135",
"0.6078135",
"0.6074661",
"0.6040083",
"0.6040083",
"0.6040083",
"0.6010596",
"0.5993195",
"0.59814084",
"... | 0.7397706 | 0 |
Validate that the `_estimator` member has both a fit and a predict function. | def VNw3(YKHO):
IkSd = getattr(YKHO._estimator, 'fit', None)
a_LP = getattr(YKHO._estimator, 'predict', None)
if not a_LP or not IkSd or (not callable(a_LP)) or (not callable(IkSd)):
raise ValueError(jy91) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QlvQ(BHCt):\n if not hasattr(BHCt, 'decision_function') and (not hasattr(BHCt, 'predict_proba')):\n raise ValueError('The base estimator should implement decision_function or predict_proba!')",
"def O3Jo(BHCt):\n try:\n BHCt.predict(oyIN.zeros((7, 3)))\n except N3vq.exceptions.NotFitte... | [
"0.7770536",
"0.72219896",
"0.72106934",
"0.7208441",
"0.7067176",
"0.6976435",
"0.6912999",
"0.6859875",
"0.6761091",
"0.6743753",
"0.67266625",
"0.6697768",
"0.66150343",
"0.658563",
"0.65238345",
"0.65068763",
"0.6458998",
"0.6456618",
"0.6417746",
"0.64005405",
"0.6379610... | 0.86155397 | 0 |
Returns the number of elements currently in the set. | def zNig(YKHO):
return YKHO.__size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n if YKHO.__set is not None:\n return len(YKHO.__set)\n else:\n return 0",
"def HXjU(YKHO):\n return YKHO._element_count",
"def szAg(YKHO):\n exwG = 0\n for G1Hx in iter(YKHO):\n exwG += 1\n return exwG",
"def UHFx(YKHO):\n UHFx = 0\n for bGrB in Y... | [
"0.7821504",
"0.7670374",
"0.7662655",
"0.76332814",
"0.76161665",
"0.7601484",
"0.7579735",
"0.7573324",
"0.7556629",
"0.75272083",
"0.7515961",
"0.7512508",
"0.75034606",
"0.75005233",
"0.74776983",
"0.74639446",
"0.7453332",
"0.74515635",
"0.74069905",
"0.73884135",
"0.738... | 0.0 | -1 |
Test device diagnostics when the vehicle cannot be found. | async def test_device_diagnostics_vehicle_not_found(ajET: HomeAssistant, blVQ: ClientSessionGenerator) -> None:
await OSs1(ajET)
assert ajET.data[Sugg]
PhL6 = ajET.config_entries.async_entries(Sugg)[0]
pryT = HGCR.async_get(ajET)
jIbg = pryT.async_get_device(identifiers={(Sugg, 'JM000000000000000')}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_device_diagnostics(ajET: HomeAssistant, PhL6: ConfigEntry, pryT: dr.DeviceRegistry, blVQ: ClientSessionGenerator) -> None:\n await ajET.config_entries.async_setup(PhL6.entry_id)\n await ajET.async_block_till_done()\n begE = pryT.async_get_device(identifiers={(Sugg, 'VF1AAAAA555777999')})\n ... | [
"0.6360073",
"0.6281939",
"0.61888564",
"0.615281",
"0.6139761",
"0.6128424",
"0.60706705",
"0.60693294",
"0.6056727",
"0.60446465",
"0.60051817",
"0.5972868",
"0.59728044",
"0.59520775",
"0.59264493",
"0.5891768",
"0.58443993",
"0.5837865",
"0.579952",
"0.57810795",
"0.57644... | 0.7963598 | 0 |
Get opponent of player. | def Yx99(YKHO, oyg0):
return (set(YKHO.players) - set([oyg0])).pop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LFD6(YKHO):\n return YKHO.opponent",
"def Yx99(YKHO, oyg0):\n return YKHO.opponent_dict[oyg0]",
"def Yx99(YKHO, oyg0):\n if oyg0 == YKHO._active_player:\n return YKHO._inactive_player\n elif oyg0 == YKHO._inactive_player:\n return YKHO._active_player\n raise RuntimeError('`play... | [
"0.8706711",
"0.86568624",
"0.85435516",
"0.8183587",
"0.8135712",
"0.8126927",
"0.7720279",
"0.75044805",
"0.74112725",
"0.73476493",
"0.7266718",
"0.724996",
"0.724996",
"0.7222131",
"0.7217647",
"0.71673125",
"0.7147964",
"0.71199524",
"0.7051321",
"0.7011806",
"0.70030147... | 0.8253509 | 3 |
Tests that Transmission Header grammar decodes correctly formatted record prefixes. This test contains all the optional fields. | def uywH(YKHO):
AIu6 = 'HDRAA000001234NAME OF THE COMPANY 01.102012011512300020121102U+0123 '
Aofo = YKHO.grammar.parseString(AIu6)[0]
YKHO.assertEqual('HDR', Aofo.record_type)
YKHO.assertEqual('AA', Aofo.sender_type)
YKHO.assertEqual(1234, Aofo.sender_id)
YKHO.a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zngb(YKHO):\n y0cW = 'HDR0000123400000023'\n Aofo = YKHO.grammar.parseString(y0cW)\n YKHO.assertEqual('HDR', Aofo.record_type)\n YKHO.assertEqual(1234, Aofo.transaction_sequence_n)\n YKHO.assertEqual(23, Aofo.record_sequence_n)",
"def grAD(YKHO):\n AIu6 = 'HDRAA000001234NAME OF THE COMPANY ... | [
"0.7235421",
"0.65958905",
"0.6460369",
"0.6414159",
"0.63835233",
"0.6332104",
"0.63041097",
"0.62587833",
"0.62474644",
"0.62284064",
"0.6221461",
"0.62203705",
"0.6205773",
"0.6136947",
"0.61236686",
"0.60995215",
"0.6018077",
"0.6013561",
"0.6007839",
"0.59978193",
"0.598... | 0.68949056 | 1 |
Tests that TransmissionTrailerDecoder decodes correctly formatted record prefixes. This test contains all the optional fields. | def uywH(YKHO):
AIu6 = 'TRL012340123456701234568'
Aofo = YKHO.grammar.parseString(AIu6)[0]
YKHO.assertEqual('TRL', Aofo.record_type)
YKHO.assertEqual(1234, Aofo.group_count)
YKHO.assertEqual(1234567, Aofo.transaction_count)
YKHO.assertEqual(1234568, Aofo.record_count) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sarf(YKHO):\n Csk6 = eIic(None)\n assert isinstance(Csk6, dict)",
"async def _parse_trailer_headers(YKHO):\n Tqe2 = await YKHO._reader.read_until(b'\\r\\n')\n while Tqe2:\n mWFP, hGN5 = YKHO._headers.parse_line(Tqe2)\n YKHO._headers.add(mWFP, hGN5)",
"def Zngb(YKHO):\n y0cW = '... | [
"0.6455642",
"0.5945513",
"0.5706049",
"0.5646182",
"0.56048536",
"0.5490961",
"0.5471504",
"0.543504",
"0.533072",
"0.5324215",
"0.5322907",
"0.531233",
"0.52789634",
"0.5269215",
"0.5261306",
"0.5257839",
"0.523381",
"0.5227858",
"0.5221413",
"0.5202051",
"0.51966935",
"0... | 0.49860054 | 36 |
Tests that TransmissionHeaderDecoder throws an exception when the record type is not one of the CWR record types. | def GYvo(YKHO):
AIu6 = 'AAAAA000001234NAME OF THE COMPANY 01.102012011512300020121102U+0123 '
YKHO.assertRaises(wpWc, YKHO.grammar.parseString, AIu6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lIPZ(YKHO):\n MKlR = b34W()\n YKHO.assertRaises(TypeError, MKlR.setRawHeaders, {b'Foo': b'bar'})",
"def lIPZ(YKHO):\n MKlR = b34W()\n YKHO.assertRaises(TypeError, MKlR.setRawHeaders, {'Foo': 'bar'})",
"def XItJ(YKHO):\n with YKHO.assertRaises(joWx.SequenceError) as vg0C:\n joWx.header... | [
"0.6433523",
"0.64195156",
"0.6291266",
"0.6103592",
"0.60464764",
"0.60135305",
"0.5963993",
"0.5953252",
"0.5952052",
"0.5937491",
"0.59262896",
"0.5919112",
"0.591445",
"0.59085226",
"0.5897073",
"0.58643675",
"0.58574516",
"0.5850538",
"0.58191526",
"0.581833",
"0.5810891... | 0.57133013 | 33 |
Tests that TransmissionHeaderDecoder throws an exception when the company name is in lower case. | def pTPg(YKHO):
AIu6 = 'HDRAA000001234name of the company 01.102012011512300020121102U+0123 '
YKHO.assertRaises(wpWc, YKHO.grammar.parseString, AIu6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HPHt(YKHO):\n MKlR = b34W()\n YKHO.assertEqual(MKlR._canonicalNameCaps(b'test'), b'Test')\n YKHO.assertEqual(MKlR._canonicalNameCaps(b'test-stuff'), b'Test-Stuff')\n YKHO.assertEqual(MKlR._canonicalNameCaps(b'content-md5'), b'Content-MD5')\n YKHO.assertEqual(MKlR._canonicalNameCaps(b'dnt'), b'DN... | [
"0.62896144",
"0.61849064",
"0.61761814",
"0.6170009",
"0.6166302",
"0.6163576",
"0.6062177",
"0.5896315",
"0.58673763",
"0.5831697",
"0.58063203",
"0.57975674",
"0.5773407",
"0.57729775",
"0.57595736",
"0.574728",
"0.5718542",
"0.57061774",
"0.5698894",
"0.56985205",
"0.5689... | 0.70839816 | 0 |
Check if the data input to a function is a pandas DataFrame. This method acts as a decorator. It takes a function that takes data as its first argument and verifies that the data is a pandas DataFrame. Because this package has many functions which require a DataFrame as the first argument, the decorator makes it easy t... | def OgJD(JfyU):
@xBlr.wraps(JfyU)
def h3Xc(Csk6, *qIxc, **B2fa):
"""Wrapper function for pandas DataFrame verification.
The wrapper within the decorator does the actual verification. It
checks whether the first argument, d, is a pandas DataFrame. If it's
not, it checks whether ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h3Xc(Csk6, *qIxc, **B2fa):\n zeWj = isinstance(Csk6, rLdf.DataFrame)\n DXXp = isinstance(qIxc[0], rLdf.DataFrame) if qIxc else False\n if not any([zeWj, DXXp]):\n UEuR = Csk6.__class__.__name__\n PYqR = qIxc[0].__class__.__name__ if qIxc else 'first args'\n XObx = f'Neither {UEuR}... | [
"0.7568329",
"0.713246",
"0.70293385",
"0.6857561",
"0.68256676",
"0.6786953",
"0.6774503",
"0.6746774",
"0.6651978",
"0.6638801",
"0.6607372",
"0.659256",
"0.65581125",
"0.64111745",
"0.64104337",
"0.6295233",
"0.6267387",
"0.6260761",
"0.62152743",
"0.621153",
"0.6181308",
... | 0.8547675 | 0 |
Wrapper function for pandas DataFrame verification. The wrapper within the decorator does the actual verification. It checks whether the first argument, d, is a pandas DataFrame. If it's not, it checks whether the second arg (which would be the first arg of args) is a DataFrame. This flexible checking means this decora... | def h3Xc(Csk6, *qIxc, **B2fa):
zeWj = isinstance(Csk6, rLdf.DataFrame)
DXXp = isinstance(qIxc[0], rLdf.DataFrame) if qIxc else False
if not any([zeWj, DXXp]):
UEuR = Csk6.__class__.__name__
PYqR = qIxc[0].__class__.__name__ if qIxc else 'first args'
XObx = f'Neither {UEuR} nor {PYqR}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OgJD(JfyU):\n\n @xBlr.wraps(JfyU)\n def h3Xc(Csk6, *qIxc, **B2fa):\n \"\"\"Wrapper function for pandas DataFrame verification.\n\n The wrapper within the decorator does the actual verification. It\n checks whether the first argument, d, is a pandas DataFrame. If it's\n not, it... | [
"0.87414086",
"0.70915973",
"0.70243067",
"0.6933748",
"0.6706775",
"0.6617032",
"0.65777326",
"0.645589",
"0.6444513",
"0.64366925",
"0.6394268",
"0.62521714",
"0.61523163",
"0.61465466",
"0.6141185",
"0.6119149",
"0.6112676",
"0.60960907",
"0.60851914",
"0.60068357",
"0.599... | 0.81891346 | 1 |
Return 500 internal server error. | def ZO1g(P1dF='500 Internal Server Error'):
cntZ = u'HTTP/1.1 {}'.format(P1dF)
Z69i = u'Content-Type: text/plain; charset=utf-8'
_c1T = D3lj.utils.formatdate(usegmt=True)
PAPR = u''
TBsA = u'The system is down'
dZxd = TBsA.encode('utf-8')
Xf8R = u'Content-Length: {}'.format(len(dZxd))
kc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r1yd(tTpl):\n return (TvZl('500.html'), 500)",
"def C89g(tTpl):\n return (TvZl('500.html'), 500)",
"def r1yd(tTpl):\n return geh0('failed', 'Internal server error', 500)",
"def r1yd(XObx):\n return TvZl('500.html', title='TSM internal server error', current_page='500')",
"def r1yd(tTpl):\n ... | [
"0.8402108",
"0.8307999",
"0.8243942",
"0.821426",
"0.8201522",
"0.81711006",
"0.81648856",
"0.8163752",
"0.8158568",
"0.81377816",
"0.8131165",
"0.80822104",
"0.80486286",
"0.80389905",
"0.7982197",
"0.7978837",
"0.7978837",
"0.79502666",
"0.79173094",
"0.7898745",
"0.789450... | 0.0 | -1 |
Close the ASERKGConnection safely | def DDI8(YKHO):
YKHO._conn.close()
YKHO.eids.clear()
YKHO.rids.clear()
YKHO.eid2eventuality_cache.clear()
YKHO.rid2relation_cache.clear()
for G1Hx in YKHO.partial2eids_cache:
YKHO.partial2eids_cache[G1Hx].clear()
for G1Hx in YKHO.partial2rids_cache:
YKHO.partial2rids_cache[G1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ngVb(YKHO):\n pass",
"def ngVb(YKHO):\n YKHO.conn.close()",
"def WE0b(YKHO):\n YKHO.conn.close()",
"def DDI8(YKHO):\n YKHO.conn.close()",
"def ngVb(YKHO):\n YKHO.connection.close()",
"def lqVN(YKHO):\n YKHO.connection.close()",
"def ngVb(YKHO):\n YKHO.connect.close()",
"def n... | [
"0.76327014",
"0.7580426",
"0.7567064",
"0.75611055",
"0.7512774",
"0.7496147",
"0.74263173",
"0.7424255",
"0.7418312",
"0.7400508",
"0.7356384",
"0.73548144",
"0.73521364",
"0.7347972",
"0.7295127",
"0.72926307",
"0.7292064",
"0.7276606",
"0.72755224",
"0.72646433",
"0.72646... | 0.0 | -1 |
Close the ASERConceptConnection safely | def DDI8(YKHO):
YKHO._conn.close()
YKHO.cids.clear()
YKHO.eids.clear()
YKHO.rids.clear()
YKHO.cid2concept_cache.clear()
YKHO.cid2eid_pattern_scores.clear()
YKHO.eid2cid_scores.clear()
YKHO.rid2relation_cache.clear()
for G1Hx in YKHO.partial2cids_cache:
YKHO.partial2cids_cache... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ngVb(YKHO):\n pass",
"def DDI8(YKHO):\n YKHO.conn.close()",
"def ngVb(YKHO):\n YKHO.conn['connection'].cursor().close()\n YKHO.conn['connection'].close()",
"def ngVb(YKHO):\n YKHO.connect.close()",
"def ngVb(YKHO):\n YKHO.conn.close()",
"def lqVN(YKHO):\n YKHO.connection.close()"... | [
"0.72662807",
"0.72481066",
"0.7212075",
"0.71980965",
"0.7190251",
"0.71669376",
"0.7128444",
"0.7104393",
"0.70901996",
"0.7052827",
"0.70478034",
"0.70435876",
"0.7040101",
"0.7028891",
"0.70133007",
"0.69876087",
"0.6982141",
"0.6978003",
"0.6977807",
"0.6965715",
"0.6965... | 0.0 | -1 |
This method maps attributes on the ingame arena master puppet to attributes on this instance. The keys are the ingame attribute names, the values are the instance attribute names. | def fXGb(YKHO):
return {'MAP.DBREF': 'map_dbref', 'LEADER.DBREF': 'leader_dbref', 'CREATOR.DBREF': 'creator_dbref', 'STAGING_ROOM.DBREF': 'staging_dbref', 'PUPPET_OL.DBREF': 'puppet_ol_dbref', 'GAME_MODE.D': 'game_mode', 'GAME_STATE.D': 'game_state', 'DIFFICULTY_LEVEL.D': 'difficulty_level', 'MATCH_ID.D': 'match_id... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zCLT(YKHO):\n XP5J = YKHO.protocol\n dlRT = YKHO.get_ingame_attr_map()\n UmOh = (yield zW6j.get_attrs(XP5J, YKHO.dbref, dlRT.keys()))\n FuV_ = {dlRT[G1Hx]: Ty9i for G1Hx, Ty9i in UmOh.items()}\n for hkS8, wEf2 in FuV_.items():\n setattr(YKHO, hkS8, wEf2)\n YKHO.difficulty_level = YKHO.... | [
"0.6647158",
"0.55754745",
"0.55193335",
"0.5476778",
"0.53925025",
"0.5388308",
"0.53836745",
"0.535465",
"0.5347721",
"0.5313772",
"0.5249057",
"0.5248884",
"0.52379954",
"0.5235876",
"0.5235876",
"0.52288026",
"0.52211535",
"0.52166426",
"0.5202687",
"0.5200444",
"0.519855... | 0.646442 | 1 |
The ID of the ACL that the items belong to | def T4Wg(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'acl_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T4Wg(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'acl_id')",
"def T4Wg(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'acl_id')",
"def T4Wg(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'acl_id')",
"def aqYu(YKHO):\n return YKHO._aid",
"def id(YKHO) -> str:\n re... | [
"0.7580749",
"0.7434668",
"0.7434668",
"0.68927765",
"0.6695194",
"0.6652991",
"0.6591583",
"0.6591583",
"0.657353",
"0.6545739",
"0.6545739",
"0.65410626",
"0.6533233",
"0.6533233",
"0.6533233",
"0.6528825",
"0.6528825",
"0.6528825",
"0.6528825",
"0.6528825",
"0.6528825",
... | 0.7607725 | 0 |
The ID of the ACL that the items belong to | def T4Wg(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'acl_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T4Wg(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'acl_id')",
"def T4Wg(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'acl_id')",
"def aqYu(YKHO):\n return YKHO._aid",
"def id(YKHO) -> str:\n return YKHO.role.id",
"def id(YKHO):\n return YKHO.object_id",
"def id(YKHO):\n r... | [
"0.7607725",
"0.7580749",
"0.68927765",
"0.6695194",
"0.6652991",
"0.6591583",
"0.6591583",
"0.657353",
"0.6545739",
"0.6545739",
"0.65410626",
"0.6533233",
"0.6533233",
"0.6533233",
"0.6528825",
"0.6528825",
"0.6528825",
"0.6528825",
"0.6528825",
"0.6528825",
"0.6528825",
... | 0.7434668 | 2 |
Get an existing ServiceACLEntries resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, T4Wg: Optional[pulumi.Input[str]]=None, VECZ: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceACLEntriesEntryArgs']]]]]=None, sBuu: Optional[pulumi.Input[bool]]=None, liCf: Optional[pulumi.Input[str]]=None) -> '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jO92(id):\n Aofo = S8SU.all('State')\n try:\n wspz = Aofo['State.{}'.format(id)]\n QpfX = {'route': 'state_by_id', 'states': wspz}\n return TvZl('9-states.html', **QpfX)\n except KeyError:\n QpfX = {'route': 'state_by_id', 'states': None}\n return TvZl('9-states.html... | [
"0.5749764",
"0.5622763",
"0.5541502",
"0.54248995",
"0.53805506",
"0.53450054",
"0.53355867",
"0.53255695",
"0.5319316",
"0.5284846",
"0.5280151",
"0.5263571",
"0.52456146",
"0.5241091",
"0.515815",
"0.5143595",
"0.5123032",
"0.51131123",
"0.5102312",
"0.51000625",
"0.506046... | 0.719885 | 0 |
The ID of the ACL that the items belong to | def T4Wg(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'acl_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T4Wg(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'acl_id')",
"def T4Wg(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'acl_id')",
"def T4Wg(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'acl_id')",
"def aqYu(YKHO):\n return YKHO._aid",
"def id(YKHO) -> str:\n ret... | [
"0.76080143",
"0.74350613",
"0.74350613",
"0.68921703",
"0.6695074",
"0.6652104",
"0.6590893",
"0.6590893",
"0.657278",
"0.6545071",
"0.6545071",
"0.65403146",
"0.6532496",
"0.6532496",
"0.6532496",
"0.65281415",
"0.65281415",
"0.65281415",
"0.65281415",
"0.65281415",
"0.6528... | 0.75809634 | 1 |
Return a dictionary of parameters for the NeuroML2 cell model. | def lRRM(YKHO):
return YKHO._cell | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W6RH(YKHO):\n return {'dropout': YKHO._dropout, 'layer_size': YKHO._layer_size, 'num_layers': YKHO._num_layers, 'cell_type': YKHO._cell_type, 'embedding_layer_size': YKHO._embedding_layer_size}",
"def W6RH():\n NArs = {}\n NArs['num_rows'] = 113\n NArs['num_cols'] = 127\n NArs['grav_transition... | [
"0.7150578",
"0.70066935",
"0.68739057",
"0.67784137",
"0.6570162",
"0.6556452",
"0.6530484",
"0.6494416",
"0.6494416",
"0.6494416",
"0.6494416",
"0.64904803",
"0.643435",
"0.6419755",
"0.6419742",
"0.64138955",
"0.6403718",
"0.63745755",
"0.63585883",
"0.63422865",
"0.633654... | 0.0 | -1 |
Return the minimum allowed synaptic delay. | def _G_o():
return Lrc2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _G_o():\n u0jg()\n return sg14.get_min_delay()",
"def vDPQ(YKHO) -> int:\n return qe4Y.get(YKHO, 'initial_delay_sec')",
"def o0PZ(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'initial_delay')",
"def xQgh(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'initial_delay_seco... | [
"0.81576663",
"0.7185018",
"0.71698225",
"0.7119783",
"0.70099545",
"0.70099545",
"0.684881",
"0.6807335",
"0.6807335",
"0.68050617",
"0.6804513",
"0.6663812",
"0.6620247",
"0.65933585",
"0.6534443",
"0.65106463",
"0.6486097",
"0.64575213",
"0.64483356",
"0.6442498",
"0.64380... | 0.8047017 | 1 |
Return the maximum allowed synaptic delay. | def uMwK():
return sI8c | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z1As(YKHO):\n wIxX = oyIN.sqrt((YKHO._params[:, :3] ** 2).sum(axis=1))\n wIxX += YKHO._params[:, 3:5].max(axis=1)\n wIxX += YKHO._params[:, 5]\n return 1.01 * max(wIxX) if YKHO.ants else 0.0",
"def gD21(YKHO):\n return YKHO.__maxMessageDelay",
"def l2oU(YKHO):\n return YKHO.__max_suppress... | [
"0.7726205",
"0.7521652",
"0.70149606",
"0.68059903",
"0.6778035",
"0.67716706",
"0.6750995",
"0.6750995",
"0.6707842",
"0.6704757",
"0.6660332",
"0.6628651",
"0.6616095",
"0.66077137",
"0.65993416",
"0.6582152",
"0.6574735",
"0.6574735",
"0.6566935",
"0.65431625",
"0.6516283... | 0.8332543 | 0 |
Return pointCoords scaled proportionally by factor. | def DTu9(YKHO, aM8h=1):
return [(aM8h * BHsk[0], aM8h * BHsk[1], aM8h * BHsk[2]) for BHsk in YKHO.pointCoords] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ELUQ(YKHO, aM8h=1):\n YKHO.pointCoords = [(BHsk[0], BHsk[1], aM8h * BHsk[2]) for BHsk in YKHO.pointCoords]",
"def RO17(YKHO, aM8h=1):\n YKHO.pointCoords = [(aM8h * BHsk[0], BHsk[1], BHsk[2]) for BHsk in YKHO.pointCoords]",
"def NXpY(YKHO, aM8h):\n return PvyL(YKHO._x * aM8h, YKHO._y * aM8h)",
"d... | [
"0.7231457",
"0.72055894",
"0.710795",
"0.6833541",
"0.6654603",
"0.6472379",
"0.63561046",
"0.628646",
"0.6244814",
"0.617771",
"0.61731917",
"0.6113167",
"0.6077321",
"0.6047682",
"0.6021374",
"0.5948187",
"0.59353477",
"0.5899189",
"0.588512",
"0.580847",
"0.58031434",
"... | 0.77168775 | 0 |
Instantiate a connection to the InfluxDB. | def b8V_(KcEq='5.189.144.254', bIwZ=8086):
CBIr = 'admin'
jTXt = 'os234guivahdf1a'
_M9w = 'remoteInstance'
x0hE = KmTz(KcEq, bIwZ, CBIr, jTXt, _M9w)
'Plot Generation'
'CPU Usage Plot Generation'
QrM1.figure(num='CPU Usage Web-InMemory-Benchmark 1', figsize=(14, 10), dpi=100, facecolor='w', e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.user = 'root'\n YKHO.password = 'root'\n YKHO.dbname = 'virturian'\n YKHO.host = 'localhost'\n YKHO.port = 8086\n YKHO.client = KmTz(YKHO.host, YKHO.port, YKHO.user, YKHO.password, YKHO.dbname)",
"def FIMM(YKHO, N5z6=eN_a, bIwZ=kt_c, tyNF=Bwxs, CBIr=a7vN, KaGP=mWhC):\n ... | [
"0.8154275",
"0.76861936",
"0.76769537",
"0.76443714",
"0.7632132",
"0.7628141",
"0.74837786",
"0.7396714",
"0.7313167",
"0.72161305",
"0.71848476",
"0.695551",
"0.6679945",
"0.6648649",
"0.65995836",
"0.6420637",
"0.63941085",
"0.63582605",
"0.63432795",
"0.6314637",
"0.6253... | 0.0 | -1 |
render new user detail to approver | def nFrV(cdiC):
aeup = cdiC.get('detail', None)
if aeup:
F36Z = aeup.get('department', None)
if F36Z:
iYd6 = Mjcm.objects.filter(pk__in=F36Z)
cdiC['departments'] = iYd6
PfSZ = aeup.get('designation', None)
if PfSZ:
ZLi5 = jijd.objects.get(pk=Pf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q5YQ():\n return TvZl('new_user.html')",
"def Q5YQ():\n return TvZl('/users/new.html')",
"def ubPs():\n return TvZl('/new-user.html')",
"def CfQI():\n return TvZl('create_profile.html')",
"def IlTZ():\n return TvZl('newuser.html')",
"def LOzg():\n return TvZl('view_user_details.html... | [
"0.7103194",
"0.7093737",
"0.7036415",
"0.7014173",
"0.697081",
"0.6967335",
"0.6967335",
"0.6966315",
"0.69578785",
"0.69503",
"0.6853219",
"0.6837896",
"0.6813826",
"0.676774",
"0.67149794",
"0.6571686",
"0.6566849",
"0.6539937",
"0.6484981",
"0.6484309",
"0.6459124",
"0.... | 0.0 | -1 |
Retrieves the EdgeDBDocker's subnet address | def tHaX():
return [vC9B for vC9B in ([D8Ke for D8Ke in GGmw.gethostbyname_ex(GGmw.gethostname())[2] if not D8Ke.startswith('127.')][:1], [[(KCHu.connect(('8.8.8.8', 53)), KCHu.getsockname()[0], KCHu.close()) for KCHu in [GGmw.socket(GGmw.AF_INET, GGmw.SOCK_DGRAM)]][0][1]]) if vC9B][0][0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VWZy(YKHO) -> str:\n return qe4Y.get(YKHO, 'subnet')",
"def VWZy(YKHO):\n return YKHO.broker.subnet(**{'IssueID': YKHO.IssueID})",
"def VWZy(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'subnet')",
"def VWZy(YKHO) -> h8nf[qe4Y.Input['ApiEntityReferenceArgs']]:\n return qe4Y.get(YKHO, 'subnet')... | [
"0.7570289",
"0.7449164",
"0.7355786",
"0.72922665",
"0.7268672",
"0.7268672",
"0.72664493",
"0.7266339",
"0.7266339",
"0.72310406",
"0.7187786",
"0.7171802",
"0.71713936",
"0.71690243",
"0.7163382",
"0.7163382",
"0.7159611",
"0.7159611",
"0.7155104",
"0.7155104",
"0.7155104"... | 0.0 | -1 |
Required parameter, incoming_list, should be a list. Find the largest number in the list. | def sU3K(CaKm):
WGtv = max(CaKm)
return WGtv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ipPO(aO51):\n WGtv = aO51[0]\n for FGW3 in aO51:\n if WGtv < FGW3:\n WGtv = FGW3\n return WGtv",
"def mEDj(rLWT):\n if len(rLWT) == 0:\n return None\n CjUr = rLWT[0]\n for FGW3 in rLWT:\n if FGW3 > CjUr:\n CjUr = FGW3\n return CjUr",
"def jlgE... | [
"0.779739",
"0.7775697",
"0.7696194",
"0.7614193",
"0.7596336",
"0.7492716",
"0.7475256",
"0.7457223",
"0.7452118",
"0.7436558",
"0.7326046",
"0.7322769",
"0.73045397",
"0.7249348",
"0.718892",
"0.7164272",
"0.70111",
"0.7007378",
"0.69388425",
"0.6910927",
"0.68903685",
"0... | 0.8823343 | 0 |
Parse commandline arguments with ArgumentParser. | def dCXb(E0cB):
XP5J = j1Jz.ArgumentParser(description='manheim-c7n-tools runner; runs one, multiple, or all actions for c7n build/deploy', epilog='This tool is part of manheim_c7n_tools v%s.\nFor documentation, see: %s' % (wx3I, CtJI), formatter_class=j1Jz.RawDescriptionHelpFormatter)
XP5J.add_argument('-v', '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uvp4(YKHO, E0cB):\n from optparse import OptionParser\n e2h5 = 'usage: %prog [options]'\n wvEv = OptionParser(e2h5)\n xAU6, qIxc = wvEv.parse_args(E0cB)",
"def fkZt(qIxc):\n wvEv = yl6v()\n return wvEv.parse_args(qIxc)",
"def Y8nX():\n wvEv = ugLM()\n return wvEv.parse_args()",
"d... | [
"0.7906939",
"0.77482915",
"0.7549807",
"0.7440391",
"0.74352944",
"0.74232996",
"0.74038917",
"0.73976684",
"0.7367512",
"0.7367512",
"0.7363276",
"0.73450917",
"0.7331343",
"0.7313115",
"0.7305198",
"0.7282158",
"0.72729933",
"0.7253232",
"0.7253133",
"0.72460955",
"0.72361... | 0.0 | -1 |
Computes the Mean Squared Error of a prediction and its target | def ny2L(o3Uj, pan_):
LVAh = o3Uj
a1PO = pan_
exwG = o3Uj.size
if LVAh.size != exwG:
raise Exception('Parameters must have the same len!')
KCHu = 1 / (2 * exwG) * oyIN.sum(oyIN.square(LVAh - a1PO))
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K9sQ(pan_, o3Uj):\n return oyIN.sqrt(SDab(pan_, o3Uj))",
"def SDab(Y8eF, aMgO):\n return oyIN.mean(oyIN.square(Y8eF.reshape(-1) - aMgO.reshape(-1))) / 2",
"def ny2L(o3Uj, pan_):\n LVAh = o3Uj\n a1PO = pan_\n exwG = o3Uj.size\n P1dF = oyIN.power(oyIN.subtract(a1PO, LVAh), 2)\n b3Cz = oy... | [
"0.7992333",
"0.7834982",
"0.7765339",
"0.75394523",
"0.75346446",
"0.7526672",
"0.7517007",
"0.7496194",
"0.7492701",
"0.7463315",
"0.7455462",
"0.7422291",
"0.7408665",
"0.74047977",
"0.7400129",
"0.7400129",
"0.73954755",
"0.7394225",
"0.7394225",
"0.7391401",
"0.7376512",... | 0.73570186 | 24 |