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 |
|---|---|---|---|---|---|---|
Returns a gaussian function with the given parameters | def IAWS(H2v2, JPqE, fXzF, bF5a, Fk0k, DWJ0):
bF5a = float(bF5a)
Fk0k = float(Fk0k)
DWJ0 = oyIN.deg2rad(DWJ0)
JPqE = JPqE * oyIN.cos(DWJ0) - fXzF * oyIN.sin(DWJ0)
fXzF = JPqE * oyIN.sin(DWJ0) + fXzF * oyIN.cos(DWJ0)
def zJRM(WKvO, LVAh):
fsgT = WKvO * oyIN.cos(DWJ0) - LVAh * oyIN.sin(DW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAWS(WKvO, *SGPK):\n dQgj, WTkW, caa_, pmez = SGPK\n return caa_ * oyIN.exp(-(WKvO - dQgj) ** 2 / (2.0 * WTkW ** 2)) + pmez",
"def IAWS(K5WD, WKvO):\n k0lF, Fg_i, yGTL, WTkW = K5WD\n return Fg_i + k0lF * oyIN.exp(-0.5 * (WKvO - yGTL) ** 2 / WTkW ** 2)",
"def IAWS(WKvO, yGTL, WTkW):\n return ... | [
"0.7934865",
"0.7810317",
"0.7587476",
"0.74887896",
"0.7464076",
"0.7385345",
"0.7374554",
"0.7266868",
"0.7266868",
"0.7266868",
"0.72426987",
"0.7226114",
"0.72215724",
"0.71309364",
"0.71272105",
"0.7118073",
"0.7088956",
"0.70818025",
"0.7071268",
"0.70585066",
"0.703256... | 0.65859294 | 53 |
Returns a gaussian function with the given parameters | def lEns(H2v2, JPqE, fXzF, bF5a, Fk0k):
bF5a = float(bF5a)
Fk0k = float(Fk0k)
return lambda WKvO, LVAh: H2v2 * oyIN.exp(-(((JPqE - WKvO) / bF5a) ** 2 + ((fXzF - LVAh) / Fk0k) ** 2) / 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAWS(WKvO, *SGPK):\n dQgj, WTkW, caa_, pmez = SGPK\n return caa_ * oyIN.exp(-(WKvO - dQgj) ** 2 / (2.0 * WTkW ** 2)) + pmez",
"def IAWS(K5WD, WKvO):\n k0lF, Fg_i, yGTL, WTkW = K5WD\n return Fg_i + k0lF * oyIN.exp(-0.5 * (WKvO - yGTL) ** 2 / WTkW ** 2)",
"def IAWS(WKvO, yGTL, WTkW):\n return ... | [
"0.7936006",
"0.78110605",
"0.7589353",
"0.749031",
"0.74657845",
"0.7387422",
"0.73763347",
"0.7267818",
"0.7267818",
"0.7267818",
"0.7243705",
"0.7227015",
"0.72231114",
"0.713038",
"0.7127564",
"0.7118518",
"0.70896465",
"0.7083726",
"0.70708406",
"0.70604295",
"0.70323956... | 0.0 | -1 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes. | def PYz4(Mkmy):
Mkmy.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
Mkmy.headers['Pragma'] = 'no-cache'
Mkmy.headers['Expires'] = '0'
Mkmy.headers['Cache-Control'] = 'public, max-age=0'
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PY... | [
"0.822267",
"0.8221825",
"0.8221825",
"0.8221825",
"0.8221825",
"0.81952775",
"0.8162643",
"0.8162643",
"0.8162643",
"0.8162643",
"0.8162643",
"0.8162643",
"0.8162643",
"0.8162643",
"0.8162643",
"0.8162643",
"0.8162643",
"0.8162643",
"0.8162643",
"0.8162643",
"0.8162643",
"... | 0.71365863 | 45 |
The id of the sensor. | def ShR8(YKHO):
return f'octopus_energy_intelligent_charge_limit' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return YKHO.device_id + '_' + YKHO._sensor_type",
"def ShR8(YKHO):\n id = '{}{}{}'.format(Sugg, YKHO._account, YKHO.sensorName.lower().replace(' ', ''))\n return id",
"def g2g3(YKHO):\n return 'sensor.{}_{}'.format(YKHO._name, YKHO.var_id)",
"def jf3N(YKHO) -> str:\n return Y... | [
"0.81542426",
"0.7885806",
"0.7845372",
"0.7695466",
"0.7657747",
"0.7657747",
"0.7657747",
"0.7657747",
"0.7657747",
"0.7657747",
"0.7657747",
"0.7657747",
"0.7657747",
"0.7657747",
"0.7657747",
"0.7657747",
"0.7657747",
"0.7657747",
"0.7657747",
"0.7657747",
"0.7657747",
... | 0.0 | -1 |
Name of the sensor. | def mWFP(YKHO):
return f'Octopus Energy Intelligent Charge Limit' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def _lKy(YKHO):\n return YKHO.data[1]",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'",
"def mWFP(YKHO):\n return f'{YKHO._na... | [
"0.9250166",
"0.90057385",
"0.89274466",
"0.8871892",
"0.8865032",
"0.8857324",
"0.85477203",
"0.85042745",
"0.8349108",
"0.8343337",
"0.82704717",
"0.8116982",
"0.7734933",
"0.7707925",
"0.76887643",
"0.7471656",
"0.7456977",
"0.7451284",
"0.7451284",
"0.7451284",
"0.7438701... | 0.0 | -1 |
The column name or None if the columns is unnamed. | def mWFP(YKHO) -> h8nf[str]:
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z0q4(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'column_name')",
"def z0q4(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'column_name')",
"def z0q4(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'column_name')",
"def W0tD(YKHO):\n return YKHO.col_name",
"def GClg(YKHO):\n return ... | [
"0.8554235",
"0.7827321",
"0.7827321",
"0.7580142",
"0.7558711",
"0.7342569",
"0.7230717",
"0.7026928",
"0.7021342",
"0.69703585",
"0.69391495",
"0.6922486",
"0.6922486",
"0.69133884",
"0.68881273",
"0.6797143",
"0.6723555",
"0.6708394",
"0.6701048",
"0.6684345",
"0.6658754",... | 0.0 | -1 |
Whether this column is optional. | def CYSX(YKHO) -> bool:
return YKHO._optional | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TAwy(Emd4) -> bool:\n return Emd4.optional",
"def TAwy(YKHO) -> bool:\n return bool(Y0uN.opt_field_re.match(YKHO.data))",
"def rMBt(YKHO):\n return YKHO._field.label == lNNJ.LABEL_OPTIONAL or YKHO.isRepeated()",
"def CYSX(YKHO) -> bool:\n return False",
"def CYSX(YKHO) -> h8nf[bool]:\n r... | [
"0.7986084",
"0.78232783",
"0.7535859",
"0.74422103",
"0.74265426",
"0.74265426",
"0.74265426",
"0.74265426",
"0.74265426",
"0.74265426",
"0.74265426",
"0.74265426",
"0.74265426",
"0.74265426",
"0.74265426",
"0.74265426",
"0.74265426",
"0.74265426",
"0.74265426",
"0.74265426",
... | 0.76410925 | 2 |
Deserialize from a json loaded dictionary. The dictionary is expected to contain `dtype` and `shape` keys. | def Aqrg(Emd4, **B2fa):
if not {'dtype', 'shape'} <= set(B2fa.keys()):
raise fokw('Missing keys in TensorSpec JSON. Expected to find keys `dtype` and `shape`')
KvM0 = oyIN.dtype(B2fa['dtype'])
qiip = tuple(B2fa['shape'])
return Emd4(KvM0, qiip) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def byED(fK8P):\n if isinstance(fK8P, dict) and '__ndarray__' in fK8P:\n nPrm = WR89.b64decode(fK8P['__ndarray__'])\n return oyIN.frombuffer(nPrm, fK8P['dtype']).reshape(fK8P['shape'])\n return fK8P",
"def byED(fK8P):\n if isinstance(fK8P, dict) and '__ndarray__' in fK8P:\n nPrm = W... | [
"0.6346653",
"0.6346653",
"0.6346653",
"0.6262504",
"0.6226852",
"0.6124331",
"0.6119451",
"0.60499054",
"0.6042176",
"0.6040868",
"0.5904905",
"0.5904379",
"0.5898837",
"0.5881666",
"0.5858799",
"0.5832042",
"0.5828539",
"0.5815559",
"0.58065915",
"0.579569",
"0.579569",
"... | 0.71330523 | 0 |
Whether this tensor is optional. | def CYSX(YKHO) -> bool:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TAwy(Emd4) -> bool:\n return Emd4.optional",
"def CYSX(YKHO) -> bool:\n return YKHO._optional",
"def CYSX(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'optional')",
"def CYSX(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'optional')",
"def CYSX(YKHO) -> h8nf[qe4Y.Inpu... | [
"0.7788841",
"0.7465427",
"0.726416",
"0.726416",
"0.726416",
"0.726416",
"0.726416",
"0.726416",
"0.7258665",
"0.7258665",
"0.7258665",
"0.7258665",
"0.7258665",
"0.7258665",
"0.7258665",
"0.7258665",
"0.7258665",
"0.7258665",
"0.7258665",
"0.7258665",
"0.7258665",
"0.7258... | 0.7330157 | 2 |
Deserialize from a json loaded dictionary. The dictionary is expected to contain `type` and `tensorspec` keys. | def Aqrg(Emd4, **B2fa):
if not {'tensor-spec', 'type'} <= set(B2fa.keys()):
raise fokw('Missing keys in TensorSpec JSON. Expected to find keys `tensor-spec` and `type`')
if B2fa['type'] != 'tensor':
raise fokw('Type mismatch, TensorSpec expects `tensor` as the type')
raR2 = sMZ1.from_json_di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aqrg(Emd4, **B2fa):\n if not {'dtype', 'shape'} <= set(B2fa.keys()):\n raise fokw('Missing keys in TensorSpec JSON. Expected to find keys `dtype` and `shape`')\n KvM0 = oyIN.dtype(B2fa['dtype'])\n qiip = tuple(B2fa['shape'])\n return Emd4(KvM0, qiip)",
"def pktP(Emd4, nMY2: str):\n\n de... | [
"0.6717568",
"0.6475844",
"0.5921668",
"0.57201827",
"0.5712029",
"0.565757",
"0.556388",
"0.55401796",
"0.5503761",
"0.55017537",
"0.54763174",
"0.5475381",
"0.547456",
"0.5465548",
"0.5463203",
"0.54470825",
"0.5446951",
"0.5446507",
"0.5443184",
"0.5415699",
"0.5411698",
... | 0.6818149 | 0 |
Return true iff this schema declares names, false otherwise. | def YV2V(YKHO) -> bool:
return YKHO.inputs and YKHO.inputs[0].name is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MPxP(YKHO):\n return YKHO._name != ''",
"def Xste(YKHO):\n return YKHO.name is not None",
"def Xste(YKHO):\n return YKHO.unpack_word(2) != 0",
"def L_Rs(YKHO):\n return YKHO.name is not None",
"def MPxP(YKHO):\n return isinstance(YKHO.uri, E5Ed.URIRef)",
"def U4fd(YKHO):\n for iVRZ ... | [
"0.67626655",
"0.65662235",
"0.65542966",
"0.65278155",
"0.6318693",
"0.62735355",
"0.62677515",
"0.62423134",
"0.6233214",
"0.6197741",
"0.6192188",
"0.6183855",
"0.6135794",
"0.6091593",
"0.6084331",
"0.6082097",
"0.60806525",
"0.6075674",
"0.6074233",
"0.6058121",
"0.60302... | 0.6635011 | 1 |
Maps column names to types, iff this schema declares names. | def qtvf(YKHO) -> cuzp[str, uLKX[TlLn, oyIN.dtype]]:
if not YKHO.has_input_names():
raise fokw('Cannot get input types as a dict for schema without names.')
return {WKvO.name: WKvO.type for WKvO in YKHO.inputs} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ArjY(YKHO, GTA_):\n jyYI = YKHO.cursor()\n jyYI.execute('PRAGMA table_info(%s)' % GTA_)\n SnBA = {str(Csk6[1].lower()): LO48[Csk6[2].split()[0]] for Csk6 in jyYI.fetchall()}\n jyYI.close()\n return SnBA",
"def uXnq(YKHO):\n tJPp = ['category' if uNZv == 1 else float for uNZv in YKHO.user_co... | [
"0.692183",
"0.67302734",
"0.66053855",
"0.6532717",
"0.63393945",
"0.63310647",
"0.6190115",
"0.6062526",
"0.59779215",
"0.5975234",
"0.5958275",
"0.59387136",
"0.59001875",
"0.58346313",
"0.58331823",
"0.5801466",
"0.57774895",
"0.57765615",
"0.5760592",
"0.56661457",
"0.56... | 0.59006613 | 12 |
Serialize into json string. | def oD7C(YKHO) -> str:
return qQXR.dumps([WKvO.to_dict() for WKvO in YKHO.inputs]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KbCx(YKHO):\n return qQXR.dumps(YKHO.asDict(), sort_keys=True)",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR... | [
"0.815869",
"0.81317866",
"0.81317866",
"0.81317866",
"0.81317866",
"0.81317866",
"0.81317866",
"0.81317866",
"0.81317866",
"0.81317866",
"0.81269664",
"0.80760473",
"0.80508965",
"0.8033703",
"0.8026007",
"0.80217457",
"0.80151135",
"0.8006934",
"0.79775727",
"0.79511034",
"... | 0.0 | -1 |
Deserialize from a json string. | def pktP(Emd4, nMY2: str):
def b86o(WKvO: dict):
return j_nv.from_json_dict(**WKvO) if WKvO['type'] == 'tensor' else oDjR(**WKvO)
return Emd4([b86o(WKvO) for WKvO in qQXR.loads(nMY2)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f39a(YKHO, zEKB):\n return YKHO._json_deserializer.from_json(zEKB)",
"def pktP(Emd4, vIwR):\n fK8P = qQXR.loads(vIwR)\n return Emd4.from_dict(fK8P)",
"def rmNw(Emd4, nMY2):\n return Emd4.from_json(HjBM.loads(nMY2))",
"def pktP(Emd4, zEKB: str):\n nPrm = qQXR.loads(zEKB)\n xzCw(nPrm, uPx... | [
"0.86942583",
"0.84268326",
"0.8174877",
"0.80163425",
"0.7936675",
"0.7922665",
"0.7922665",
"0.7865149",
"0.77800536",
"0.7697291",
"0.7650574",
"0.76407224",
"0.7620077",
"0.7584465",
"0.75656927",
"0.75526947",
"0.7549321",
"0.75463074",
"0.75419647",
"0.7532575",
"0.7531... | 0.0 | -1 |
The parameter shape. If shape is None, the parameter is a scalar. | def ROpF(YKHO) -> h8nf[tuple]:
return YKHO._shape | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ROpF(vhpA):\n raise NotImplementedError",
"def ROpF(YKHO):\n return () if YKHO.data is None else YKHO.data.shape",
"def kbUw(YKHO):\n if YKHO.__data is None:\n return None\n return YKHO.__data.shape",
"def ROpF(YKHO):\n return None",
"def ROpF(YKHO):\n return YKHO.__shape",
"... | [
"0.6924879",
"0.6893731",
"0.6866802",
"0.6865781",
"0.68652874",
"0.68652874",
"0.6821286",
"0.6821286",
"0.68035334",
"0.6766341",
"0.673566",
"0.67304426",
"0.67222726",
"0.67222726",
"0.67222726",
"0.67082804",
"0.67057914",
"0.66809076",
"0.6637465",
"0.66297925",
"0.659... | 0.7097256 | 0 |
Deserialize from a json loaded dictionary. The dictionary is expected to contain `name`, `dtype` and `default` keys. | def Aqrg(Emd4, **B2fa):
if not {'name', 'dtype', 'default'} <= set(B2fa.keys()):
raise fokw.invalid_parameter_value('Missing keys in ParamSpec JSON. Expected to find keys `name`, `dtype` and `default`')
return Emd4(name=str(B2fa['name']), dtype=TlLn[B2fa['dtype']], default=B2fa['default'], shape=B2fa.ge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(yDqo, nPrm):\n try:\n sOjC = {Jyyj.name: Jyyj.type for Jyyj in V_D6(yDqo)}\n return yDqo(**{H5ew: jG8h(sOjC[H5ew], wEf2) for H5ew, wEf2 in nPrm.items()})\n except:\n return nPrm",
"def jG8h(Emd4, qHj0) -> 'Data':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def jG8h(Emd... | [
"0.65025043",
"0.6450461",
"0.64315695",
"0.6395811",
"0.6343944",
"0.61597955",
"0.61597955",
"0.6130065",
"0.60474235",
"0.6044787",
"0.6044787",
"0.6044787",
"0.6044787",
"0.6044787",
"0.6044787",
"0.6035153",
"0.60263526",
"0.60216767",
"0.5999314",
"0.5984175",
"0.596573... | 0.66446763 | 0 |
Serialize into json string. | def oD7C(YKHO) -> str:
return qQXR.dumps(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KbCx(YKHO):\n return qQXR.dumps(YKHO.asDict(), sort_keys=True)",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(lKKu(YKHO))",
"def oD7C(YKHO):\n return qQXR.dumps(YKHO.serialize())",
"def lPbk(YKHO):\n xzoI = YKHO.toDict()\n return qQXR.dumps(xzoI, ensure_ascii=False)",
"def yLCI(YKHO):\n ... | [
"0.8157503",
"0.81270546",
"0.8076674",
"0.8049625",
"0.80336577",
"0.80251175",
"0.802235",
"0.8013918",
"0.8006178",
"0.797767",
"0.7951587",
"0.7922114",
"0.79219955",
"0.79219955",
"0.79219955",
"0.79219955",
"0.79219955",
"0.79219955",
"0.79219955",
"0.79219955",
"0.7921... | 0.8132591 | 9 |
Deserialize from a json string. | def pktP(Emd4, nMY2: str):
return Emd4([pqc_.from_json_dict(**WKvO) for WKvO in qQXR.loads(nMY2)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f39a(YKHO, zEKB):\n return YKHO._json_deserializer.from_json(zEKB)",
"def pktP(Emd4, vIwR):\n fK8P = qQXR.loads(vIwR)\n return Emd4.from_dict(fK8P)",
"def rmNw(Emd4, nMY2):\n return Emd4.from_json(HjBM.loads(nMY2))",
"def pktP(Emd4, zEKB: str):\n nPrm = qQXR.loads(zEKB)\n xzCw(nPrm, uPx... | [
"0.86942583",
"0.84268326",
"0.8174877",
"0.80163425",
"0.7936675",
"0.7922665",
"0.7922665",
"0.7865149",
"0.77800536",
"0.7697291",
"0.7650574",
"0.76407224",
"0.7620077",
"0.7584465",
"0.75656927",
"0.75526947",
"0.7549321",
"0.75463074",
"0.75419647",
"0.7532575",
"0.7531... | 0.0 | -1 |
Build query filter as a string. Returns str The GraphQL query as a string. | def Cc7Y(YKHO) -> str:
xDcj = '{Get{'
for NMoC in YKHO.get_builder:
xDcj += NMoC.build(wrap_get=False)
return xDcj + '}}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ka30(Emd4, b0tJ):\n nqEK = OHmi()\n WjJT = nqEK.getUtility(RCuQ, name=ZDMG.CQL)\n jbn3 = WjJT()\n b0tJ.accept(jbn3)\n return str(jbn3.expression)",
"def mXvR(YKHO, Jyyj, XEri, BWXx, hHFW):\n if Jyyj == 'no filters':\n return ''\n elif hHFW in ('metric', 'attribute', 'event'):\n ... | [
"0.74125916",
"0.71838963",
"0.6988103",
"0.6860145",
"0.6769535",
"0.67061317",
"0.66882765",
"0.6645348",
"0.64236826",
"0.63187414",
"0.630014",
"0.6278591",
"0.62779576",
"0.6249063",
"0.62368876",
"0.61931336",
"0.6160826",
"0.61475235",
"0.6099248",
"0.6072618",
"0.6072... | 0.59333086 | 28 |
Test locking pathlib2 on python2.7 which needs `scandir`, but fails to resolve when using a fresh dependency cache. | def e1u0(BTpp, TBXe):
with zHG9():
Hy7s.environ['PIPENV_CACHE_DIR'] = str(TBXe.strpath)
with BTpp(chdir=True) as XP5J:
XP5J._pipfile.add('pathlib2', '*')
assert 'pathlib2' in XP5J.pipfile['packages']
Z9rn = XP5J.pipenv('install')
assert Z9rn.return_cod... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mvcF(ZqHk, Ehsq):\n Ehsq.setenv('RAY_TMPDIR', str(ZqHk))\n with IjrA(path='abc.txt'):\n with IjrA(path='subdir/abc.txt'):\n assert ZaSr in Hy7s.listdir(ZqHk)\n assert len(Hy7s.listdir(ZqHk / ZaSr)) == 2",
"def rxA1(YKHO):\n YKHO.chck_triple('sharedstatedir')",
"def Deq... | [
"0.6222418",
"0.6130201",
"0.59925234",
"0.5901809",
"0.5773521",
"0.5565444",
"0.55019283",
"0.5500261",
"0.5484437",
"0.5481608",
"0.54605097",
"0.5448761",
"0.54419774",
"0.54357016",
"0.5403511",
"0.5388962",
"0.53638595",
"0.5358114",
"0.5355904",
"0.5307997",
"0.5273019... | 0.65530354 | 0 |
Sets the in_crc_errors of this EthernetInterfaceStateCounters. | def vPhW(YKHO, vPhW: str):
YKHO._in_crc_errors = vPhW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vPhW(YKHO) -> str:\n return YKHO._in_crc_errors",
"def BxLZ(YKHO):\n for r8hN in range(YKHO.stage_width_list[-1]):\n P1dF, bGrB = W8uH.calculate_submodel_error(YKHO._get_native_object(), YKHO.probe, len(YKHO) - 1, r8hN)\n if P1dF < 0:\n P1dF = 0\n YKHO.error_list[r8hN] =... | [
"0.5896342",
"0.5395938",
"0.5179257",
"0.50623256",
"0.5042801",
"0.50183034",
"0.4890702",
"0.48866343",
"0.48642448",
"0.48521268",
"0.47887892",
"0.4782435",
"0.4781247",
"0.47763357",
"0.47662553",
"0.47409695",
"0.47344616",
"0.47318164",
"0.47045618",
"0.46937796",
"0.... | 0.73171175 | 0 |
Gets the out_mac_control_frames of this EthernetInterfaceStateCounters. | def irfE(YKHO) -> str:
return YKHO._out_mac_control_frames | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def irfE(YKHO, irfE: str):\n YKHO._out_mac_control_frames = irfE",
"def Bbdi(YKHO) -> str:\n return YKHO._in_mac_control_frames",
"def ybeA(YKHO):\n return YKHO.states[-YKHO.num_output_states:]",
"def pRcK(YKHO) -> str:\n return YKHO._out_mac_pause_frames",
"def xASv(YKHO):\n return oyIN.arr... | [
"0.7033605",
"0.60319555",
"0.5943384",
"0.5885427",
"0.52819777",
"0.5132673",
"0.51014555",
"0.4915829",
"0.48474354",
"0.48359475",
"0.48331392",
"0.47986776",
"0.47774732",
"0.4737987",
"0.47231963",
"0.47011515",
"0.4689595",
"0.46890107",
"0.46843612",
"0.467629",
"0.46... | 0.7588379 | 0 |
Gets the in_mac_control_frames of this EthernetInterfaceStateCounters. | def Bbdi(YKHO) -> str:
return YKHO._in_mac_control_frames | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def irfE(YKHO) -> str:\n return YKHO._out_mac_control_frames",
"def irfE(YKHO, irfE: str):\n YKHO._out_mac_control_frames = irfE",
"def Bbdi(YKHO, Bbdi: str):\n YKHO._in_mac_control_frames = Bbdi",
"def pRcK(YKHO) -> str:\n return YKHO._out_mac_pause_frames",
"def VIPT(YKHO):\n return YKHO._... | [
"0.7189915",
"0.60180163",
"0.56577426",
"0.5392892",
"0.53714496",
"0.519221",
"0.5056037",
"0.4978782",
"0.49660945",
"0.49532452",
"0.49423724",
"0.49228832",
"0.4908662",
"0.48266155",
"0.48219743",
"0.48202595",
"0.4776814",
"0.47630805",
"0.47527596",
"0.4747052",
"0.47... | 0.6799863 | 1 |
Gets the out_mac_pause_frames of this EthernetInterfaceStateCounters. | def pRcK(YKHO) -> str:
return YKHO._out_mac_pause_frames | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pRcK(YKHO, pRcK: str):\n YKHO._out_mac_pause_frames = pRcK",
"def Yte3(YKHO) -> str:\n return YKHO._in_mac_pause_frames",
"def irfE(YKHO) -> str:\n return YKHO._out_mac_control_frames",
"def irfE(YKHO, irfE: str):\n YKHO._out_mac_control_frames = irfE",
"def Yte3(YKHO, Yte3: str):\n YKHO... | [
"0.7055911",
"0.7000019",
"0.6444536",
"0.5876658",
"0.5625761",
"0.5483489",
"0.5453817",
"0.52632076",
"0.50456977",
"0.5024305",
"0.49135113",
"0.4865369",
"0.47719425",
"0.46946684",
"0.46814248",
"0.46787965",
"0.46339795",
"0.4571558",
"0.45673487",
"0.45552033",
"0.448... | 0.79727316 | 0 |
Gets the out8021q_frames of this EthernetInterfaceStateCounters. | def fBWN(YKHO) -> str:
return YKHO._out8021q_frames | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uE3k(YKHO) -> str:\n return YKHO._in8021q_frames",
"def fBWN(YKHO, fBWN: str):\n YKHO._out8021q_frames = fBWN",
"def ybeA(YKHO):\n return YKHO.states[-YKHO.num_output_states:]",
"def pAt9(YKHO):\n return YKHO.rx_bitstream_frames",
"def pRcK(YKHO) -> str:\n return YKHO._out_mac_pause_fram... | [
"0.71820015",
"0.6744631",
"0.5510278",
"0.5383207",
"0.5346667",
"0.5344923",
"0.5344923",
"0.53183883",
"0.5306723",
"0.53010005",
"0.5296889",
"0.5202992",
"0.5148645",
"0.51365405",
"0.5051905",
"0.5047685",
"0.49978513",
"0.4979188",
"0.49165463",
"0.49043173",
"0.489526... | 0.7720255 | 0 |
Sets the out8021q_frames of this EthernetInterfaceStateCounters. | def fBWN(YKHO, fBWN: str):
YKHO._out8021q_frames = fBWN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fBWN(YKHO) -> str:\n return YKHO._out8021q_frames",
"def uE3k(YKHO, uE3k: str):\n YKHO._in8021q_frames = uE3k",
"def uE3k(YKHO) -> str:\n return YKHO._in8021q_frames",
"def pRcK(YKHO, pRcK: str):\n YKHO._out_mac_pause_frames = pRcK",
"def irfE(YKHO, irfE: str):\n YKHO._out_mac_control_fr... | [
"0.6585833",
"0.65762675",
"0.59554595",
"0.55730844",
"0.5493888",
"0.5312083",
"0.528559",
"0.52488816",
"0.51416796",
"0.50839984",
"0.5076395",
"0.5046384",
"0.5038749",
"0.5011937",
"0.48653182",
"0.4750888",
"0.47085947",
"0.46981674",
"0.46793467",
"0.46746898",
"0.466... | 0.7767299 | 0 |
Gets the in_mac_pause_frames of this EthernetInterfaceStateCounters. | def Yte3(YKHO) -> str:
return YKHO._in_mac_pause_frames | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pRcK(YKHO) -> str:\n return YKHO._out_mac_pause_frames",
"def pRcK(YKHO, pRcK: str):\n YKHO._out_mac_pause_frames = pRcK",
"def Yte3(YKHO, Yte3: str):\n YKHO._in_mac_pause_frames = Yte3",
"def irfE(YKHO) -> str:\n return YKHO._out_mac_control_frames",
"def Q_5M(YKHO) -> wHLO:\n return wH... | [
"0.7584451",
"0.6313009",
"0.62560797",
"0.5867498",
"0.55427855",
"0.5449392",
"0.53424543",
"0.53121024",
"0.51813775",
"0.5081472",
"0.50513446",
"0.49324334",
"0.4919263",
"0.48718634",
"0.48567387",
"0.4841383",
"0.48389903",
"0.48388624",
"0.48338",
"0.47508964",
"0.470... | 0.7560741 | 1 |
Gets the in_undersize_frames of this EthernetInterfaceStateCounters. | def iwDu(YKHO) -> str:
return YKHO._in_undersize_frames | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iwDu(YKHO, iwDu: str):\n YKHO._in_undersize_frames = iwDu",
"def LPBN(YKHO) -> str:\n return YKHO._in_oversize_frames",
"def s3J0(YKHO):\n return YKHO._dropped_frames",
"def JBh8(YKHO):\n return oyIN.ceil(YKHO.interFrameDuration * YKHO.sampleRate / YKHO.downsample) * YKHO.downsample",
"def ... | [
"0.6350905",
"0.5982443",
"0.5291823",
"0.52876616",
"0.52365714",
"0.52146083",
"0.5165647",
"0.5130818",
"0.5070019",
"0.5034629",
"0.49446666",
"0.49277195",
"0.49043852",
"0.48926738",
"0.4868733",
"0.48662025",
"0.48474854",
"0.48189792",
"0.48124316",
"0.48051026",
"0.4... | 0.7037414 | 0 |
Sets the in_oversize_frames of this EthernetInterfaceStateCounters. | def LPBN(YKHO, LPBN: str):
YKHO._in_oversize_frames = LPBN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iwDu(YKHO, iwDu: str):\n YKHO._in_undersize_frames = iwDu",
"def LPBN(YKHO) -> str:\n return YKHO._in_oversize_frames",
"def HjBV(YKHO, BInF):\n raise NotImplementedError",
"def iwDu(YKHO) -> str:\n return YKHO._in_undersize_frames",
"def Bbdi(YKHO, Bbdi: str):\n YKHO._in_mac_control_fra... | [
"0.63065225",
"0.5737221",
"0.5047642",
"0.48290065",
"0.4820693",
"0.47127584",
"0.46951994",
"0.4627127",
"0.46249563",
"0.46246624",
"0.45549476",
"0.45269623",
"0.44501114",
"0.439822",
"0.4381662",
"0.43761912",
"0.43570787",
"0.43373895",
"0.43185344",
"0.43166107",
"0.... | 0.75814646 | 0 |
Initialize vocabulary from file. | def pGdo(YKHO, GEQi):
if ZylS.gfile.Exists(GEQi):
CtWL = fJyn.Dictionary.load(GEQi)
print('vocab length: ', len(CtWL.token2id))
return (CtWL.token2id, CtWL.token2id.keys())
else:
raise ValueError('Vocabulary file %s not found.', GEQi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t2__():\n global vocabulary_list, vocabulary_dict\n bb8G = []\n mX4d = {}\n with open(Ow9R, 'r') as eHNT:\n for d6pt, zFiD in enumerate(eHNT):\n zFiD = zFiD.strip()\n mX4d[zFiD] = d6pt\n bb8G.append(zFiD)",
"def FIMM(YKHO, nUeQ):\n with open(nUeQ, 'r') a... | [
"0.77525496",
"0.76920307",
"0.76315725",
"0.7592861",
"0.75801814",
"0.75644326",
"0.7466838",
"0.7466838",
"0.744741",
"0.7426106",
"0.7416072",
"0.71661425",
"0.71474075",
"0.7117412",
"0.70894724",
"0.7076142",
"0.7025968",
"0.6955337",
"0.69535863",
"0.6949669",
"0.69139... | 0.6884775 | 23 |
Tokenize data file and turn into tokenids using given vocabulary file. This function loads data linebyline from data_path, calls the above sentence_to_token_ids, and saves the result to target_path. See comment for sentence_to_token_ids on the details of tokenids format. | def luxy(YKHO, i0XC, lQDD, CtWL, b0j5=None, ocBH=True):
if True:
with ZylS.gfile.GFile(i0XC, mode='r') as KAfx:
ewCu = 0
dixj = []
for zFiD in KAfx:
juz4 = YKHO.sentence_to_token_ids(zFiD, CtWL, b0j5, ocBH)
dixj.append(' '.join([str(w2fL) f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def luxy(i0XC, lQDD, GEQi):\n if not qJi5.Exists(lQDD):\n print('Tokenizing data in %s' % i0XC)\n CtWL, bGrB = pGdo(GEQi)\n with qJi5.GFile(i0XC, mode='rb') as KAfx:\n with qJi5.GFile(lQDD, mode='w') as lSVr:\n ewCu = 0\n for zFiD in KAfx:\n ... | [
"0.88172233",
"0.8454611",
"0.84509355",
"0.83874106",
"0.8368273",
"0.81036496",
"0.73654294",
"0.72655636",
"0.7236587",
"0.7133063",
"0.70920354",
"0.7088108",
"0.7088108",
"0.7057991",
"0.7037901",
"0.6946553",
"0.6747089",
"0.67289793",
"0.6647752",
"0.6557015",
"0.64360... | 0.828191 | 5 |
A formatted string for the time | def Px7F(YKHO):
try:
if not YKHO._time:
raise ValueError
GUy1 = '%a, %d %b %Y %H:%M:%S'
return qcWV.fromtimestamp(float(YKHO._time)).strftime(GUy1)
except ValueError:
return K3Yb() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def scnb(YKHO):\n return f'{YKHO.year} {YKHO.month:02} {YKHO.start_day:02} {YKHO.start_hour:02} 00 {YKHO.get_duration():6}'",
"def Bc_l():\n return ITS7.strftime(ix3z)",
"def YCc8():\n return JRYC.strftime(JRYC.now(), '%H:%M:%S')",
"def m7L9() -> str:\n return ITS7.strftime(mxlI)",
"def ITS7(YK... | [
"0.8351121",
"0.83088106",
"0.8237446",
"0.8126203",
"0.80516624",
"0.79543203",
"0.7938748",
"0.7932358",
"0.7905305",
"0.7883502",
"0.7874176",
"0.77869517",
"0.77774405",
"0.7762425",
"0.7730145",
"0.77095145",
"0.7668199",
"0.76607364",
"0.7654668",
"0.76154906",
"0.76074... | 0.84001446 | 0 |
Initialise a neural network layer. This represents a row in the fully connected neural network. | def FIMM(YKHO, J8B_, zsU8, vCm2, tf1K, **B2fa):
YKHO.WeightMatrixT = vCm2
YKHO.WeightMatrixT.shape = (zsU8, J8B_)
YKHO.BiasVector = tf1K
YKHO.prevZ = None
YKHO.prevX = None
YKHO.calcDelta = YKHO.calcDeltaHiddenLayer | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Zt8E, dIM5, yB6h=None, NCJH=None, prGP=None):\n assert len(Zt8E) > 1, 'At least one input layer and one output layer is needed'\n uPrp = IT1r.getSizeOfWeightVector(Zt8E) * dIM5\n if yB6h is None:\n if NCJH is None:\n NCJH = -1 / oyIN.sqrt(Zt8E[0])\n if prGP is None:... | [
"0.72187805",
"0.7091657",
"0.6991233",
"0.69221675",
"0.6853026",
"0.6725666",
"0.67145205",
"0.670589",
"0.6645132",
"0.66430634",
"0.66232926",
"0.661554",
"0.6613391",
"0.65839446",
"0.6567393",
"0.65533143",
"0.65439385",
"0.65343356",
"0.64952546",
"0.6472634",
"0.64644... | 0.0 | -1 |
This function propagates the input through this layer of the network | def H7O_(YKHO, OkgJ):
return 1.0 / (1.0 + oyIN.exp(-oyIN.einsum('ji, li->lj', YKHO.WeightMatrixT, OkgJ) - YKHO.BiasVector)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, input):\n raise NotImplementedError",
"def KVH6(YKHO, input):\n raise NotImplementedError",
"def KVH6(YKHO, input):\n raise NotImplementedError()",
"def KVH6(YKHO, input):\n return YKHO.network(input)",
"def KVH6(YKHO, input):\n return YKHO.network(input)",
"def KVH6(YKHO, i... | [
"0.75695884",
"0.75695884",
"0.7498898",
"0.73512256",
"0.73512256",
"0.73512256",
"0.7294327",
"0.7028215",
"0.7026481",
"0.69368887",
"0.6916702",
"0.6916702",
"0.68992376",
"0.6855834",
"0.6855364",
"0.68475586",
"0.68308514",
"0.67154044",
"0.6682401",
"0.6673185",
"0.665... | 0.0 | -1 |
Propagates the inputMatrix through this layer of the Neural Network system, storing all the data needed for forward propogation. | def HTNB(YKHO, OkgJ):
YKHO.prevX = OkgJ
YKHO.prevZ = 1.0 / (1.0 + oyIN.exp(-oyIN.einsum('ji, li->lj', YKHO.WeightMatrixT, OkgJ) - YKHO.BiasVector))
return YKHO.prevZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H7O_(YKHO, OkgJ):\n for gEmA in YKHO.layers:\n OkgJ = gEmA.forwardPropagate(OkgJ)\n return OkgJ",
"def c2Ky(YKHO, input):\n YKHO.input_matrix[0] = input\n WLuH = input\n for YRbF in range(1, len(YKHO.dimens)):\n WLuH = YKHO.activation_forward(WLuH, YRbF)\n YKHO.input_matri... | [
"0.82535034",
"0.78960943",
"0.74579775",
"0.7361109",
"0.6999765",
"0.6909882",
"0.6905435",
"0.6873252",
"0.68318474",
"0.6776069",
"0.6734231",
"0.6606671",
"0.6551953",
"0.6550836",
"0.6534804",
"0.653128",
"0.6499487",
"0.6495003",
"0.64940166",
"0.6482823",
"0.6469403",... | 0.7207421 | 4 |
Initialise a neural network layer. This represents a row in the fully connected neural network. | def FIMM(YKHO, J8B_, zsU8, vCm2, tf1K, **B2fa):
YKHO.WeightMatrixT = vCm2
YKHO.WeightMatrixT.shape = (zsU8, J8B_)
YKHO.BiasVector = tf1K
YKHO.BiasVector.shape = (zsU8, 1)
YKHO.prevZ = oyIN.zeros((zsU8, 1))
YKHO.prevX = oyIN.zeros((zsU8, 1))
YKHO.calcDelta = YKHO.calcDeltaHiddenLayer | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Zt8E, dIM5, yB6h=None, NCJH=None, prGP=None):\n assert len(Zt8E) > 1, 'At least one input layer and one output layer is needed'\n uPrp = IT1r.getSizeOfWeightVector(Zt8E) * dIM5\n if yB6h is None:\n if NCJH is None:\n NCJH = -1 / oyIN.sqrt(Zt8E[0])\n if prGP is None:... | [
"0.72189254",
"0.70916563",
"0.6992227",
"0.69223356",
"0.6853501",
"0.6726644",
"0.6713536",
"0.67050654",
"0.66441894",
"0.6643193",
"0.6622798",
"0.66156",
"0.66122633",
"0.65846664",
"0.6566025",
"0.6551572",
"0.6546014",
"0.65331733",
"0.6494993",
"0.6471598",
"0.6464173... | 0.0 | -1 |
This function propagates the input through this layer of the network | def H7O_(YKHO, IgRW):
return 1.0 / (1.0 + oyIN.exp(-oyIN.dot(YKHO.WeightMatrixT, IgRW) - YKHO.BiasVector)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, input):\n raise NotImplementedError",
"def KVH6(YKHO, input):\n raise NotImplementedError",
"def KVH6(YKHO, input):\n raise NotImplementedError()",
"def KVH6(YKHO, input):\n return YKHO.network(input)",
"def KVH6(YKHO, input):\n return YKHO.network(input)",
"def KVH6(YKHO, i... | [
"0.75695884",
"0.75695884",
"0.7498898",
"0.73512256",
"0.73512256",
"0.73512256",
"0.7294327",
"0.7028215",
"0.7026481",
"0.69368887",
"0.6916702",
"0.6916702",
"0.68992376",
"0.6855834",
"0.6855364",
"0.68475586",
"0.68308514",
"0.67154044",
"0.6682401",
"0.6673185",
"0.665... | 0.0 | -1 |
Updated the weights of this node through the rules of backward propagation. | def ZbCu(YKHO, epMC, Tclk):
RA_F = YKHO.calcDelta(epMC)
IdAo = -Tclk * RA_F
eQDS = oyIN.dot(YKHO.WeightMatrixT.T, RA_F)
YKHO.WeightMatrixT += oyIN.dot(IdAo, YKHO.prevX.T)
YKHO.BiasVector += IdAo
return eQDS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MyUA(YKHO):\n YKHO.weights -= YKHO.loss_grads\n YKHO.loss_grads = oyIN.zeros(YKHO.weights.shape)",
"def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value",
"def MyUA(YKHO):\n pass",
"def MyUA(YKHO):\n VH1Q = YKHO.in_edges\n for D70y in VH1Q:\n upAO = D70y.we... | [
"0.7816906",
"0.76641405",
"0.76337385",
"0.76029587",
"0.753471",
"0.7500747",
"0.7354102",
"0.72123134",
"0.7101375",
"0.70314777",
"0.6993384",
"0.69618654",
"0.6951611",
"0.6928284",
"0.69236344",
"0.6916257",
"0.6911287",
"0.6891276",
"0.683676",
"0.68339705",
"0.6734525... | 0.6882789 | 18 |
Propagates the input through each layer in the network | def H7O_(YKHO, IgRW):
for gEmA in YKHO.layers:
IgRW = gEmA.forwardPropagate(IgRW)
return IgRW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c2Ky(YKHO):\n for YRbF in range(0, len(YKHO.output_layer)):\n hlel = 0\n for HgE9 in YKHO.hidden_layer:\n hlel += HgE9.weights[YRbF] * HgE9.output\n YKHO.output_layer[YRbF] = hlel",
"def BoEA(YKHO, g4y1: np.matrix):\n MYYV = g4y1\n for gEmA in YKHO.__layers:\n ... | [
"0.7740809",
"0.76146704",
"0.75252163",
"0.74372053",
"0.74124414",
"0.7400514",
"0.7367848",
"0.73495466",
"0.7317932",
"0.7301284",
"0.7286102",
"0.7263771",
"0.7226023",
"0.72043985",
"0.7105665",
"0.7101289",
"0.70909244",
"0.70703316",
"0.69899",
"0.6989871",
"0.6987367... | 0.67436093 | 55 |
Propagates the input through each layer in the network, storing the relivant information. | def HTNB(YKHO, IgRW):
for gEmA in YKHO.layers:
IgRW = gEmA.zStoreForwardPropagate(IgRW)
return IgRW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c2Ky(YKHO):\n for YRbF in range(0, len(YKHO.output_layer)):\n hlel = 0\n for HgE9 in YKHO.hidden_layer:\n hlel += HgE9.weights[YRbF] * HgE9.output\n YKHO.output_layer[YRbF] = hlel",
"def KVH6(YKHO, input):\n return YKHO.layers(input)",
"def c2Ky(YKHO, input):\n YKHO... | [
"0.751263",
"0.70837843",
"0.70762634",
"0.6972104",
"0.689705",
"0.6865343",
"0.67699575",
"0.67097884",
"0.668636",
"0.66822803",
"0.6657874",
"0.66553247",
"0.66453344",
"0.6627603",
"0.6610045",
"0.65924096",
"0.6582179",
"0.65686387",
"0.6559142",
"0.6552605",
"0.6534557... | 0.6371521 | 32 |
Create a layer in a batch neural network where multiple neural networks can be forward Propagated at the same time with multiple inputs. | def FIMM(YKHO, J8B_, zsU8, dIM5, vCm2, tf1K):
YKHO.WeightMatrixT = vCm2
YKHO.WeightMatrixT.shape = (dIM5, zsU8, J8B_)
YKHO.BiasVector = tf1K
YKHO.BiasVector.shape = (dIM5, 1, zsU8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c0cS(WKvO, LXaY, YoQM, _hZ2=1e-08):\n THkp = WKvO\n for YRbF in range(len(LXaY)):\n exwG = LXaY[YRbF]\n YDYE = YoQM[YRbF]\n if YRbF == len(LXaY) - 1:\n gEmA = s6ah(THkp, exwG, YDYE)\n else:\n gEmA = O7UQ(THkp, exwG, YDYE, _hZ2)\n THkp = gEmA\n r... | [
"0.6811914",
"0.67452794",
"0.6727068",
"0.67042804",
"0.6654821",
"0.66531205",
"0.6636965",
"0.65494895",
"0.65494895",
"0.6534917",
"0.6533359",
"0.64899075",
"0.6467785",
"0.6467785",
"0.6459928",
"0.63923264",
"0.63898593",
"0.63896316",
"0.63887405",
"0.637373",
"0.6357... | 0.0 | -1 |
Propagates the inputMatrix through this layer of the Neural Network system | def H7O_(YKHO, OkgJ):
return 1.0 / (1.0 + oyIN.exp(-oyIN.einsum('kji, kli->klj', YKHO.WeightMatrixT, OkgJ) - YKHO.BiasVector)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H7O_(YKHO, OkgJ):\n for gEmA in YKHO.layers:\n OkgJ = gEmA.forwardPropagate(OkgJ)\n return OkgJ",
"def c2Ky(YKHO, input):\n YKHO.input_matrix[0] = input\n WLuH = input\n for YRbF in range(1, len(YKHO.dimens)):\n WLuH = YKHO.activation_forward(WLuH, YRbF)\n YKHO.input_matri... | [
"0.7979367",
"0.76356184",
"0.74619824",
"0.70375025",
"0.6977889",
"0.6933175",
"0.67826056",
"0.67665344",
"0.6759669",
"0.66595",
"0.650995",
"0.64655715",
"0.6451507",
"0.64484715",
"0.64422953",
"0.6434437",
"0.64069194",
"0.6383748",
"0.63788235",
"0.6378728",
"0.635839... | 0.7563982 | 2 |
Propagates the inputMatrix through this layer of the Neural Network system | def J324(YKHO, OkgJ, d6pt):
return 1.0 / (1.0 + oyIN.exp(-oyIN.einsum('ji, li->lj', YKHO.WeightMatrixT[d6pt], OkgJ) - YKHO.BiasVector[d6pt])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H7O_(YKHO, OkgJ):\n for gEmA in YKHO.layers:\n OkgJ = gEmA.forwardPropagate(OkgJ)\n return OkgJ",
"def c2Ky(YKHO, input):\n YKHO.input_matrix[0] = input\n WLuH = input\n for YRbF in range(1, len(YKHO.dimens)):\n WLuH = YKHO.activation_forward(WLuH, YRbF)\n YKHO.input_matri... | [
"0.7979367",
"0.76356184",
"0.7563982",
"0.74619824",
"0.70375025",
"0.6977889",
"0.6933175",
"0.67826056",
"0.67665344",
"0.6759669",
"0.66595",
"0.650995",
"0.64655715",
"0.6451507",
"0.64484715",
"0.64422953",
"0.6434437",
"0.64069194",
"0.6383748",
"0.63788235",
"0.637872... | 0.0 | -1 |
Propagates the input through each layer in the network | def H7O_(YKHO, OkgJ):
for gEmA in YKHO.layers:
OkgJ = gEmA.forwardPropagate(OkgJ)
return OkgJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c2Ky(YKHO):\n for YRbF in range(0, len(YKHO.output_layer)):\n hlel = 0\n for HgE9 in YKHO.hidden_layer:\n hlel += HgE9.weights[YRbF] * HgE9.output\n YKHO.output_layer[YRbF] = hlel",
"def BoEA(YKHO, g4y1: np.matrix):\n MYYV = g4y1\n for gEmA in YKHO.__layers:\n ... | [
"0.7740809",
"0.76146704",
"0.75252163",
"0.74372053",
"0.74124414",
"0.7400514",
"0.7367848",
"0.73495466",
"0.7317932",
"0.7301284",
"0.7286102",
"0.7263771",
"0.7226023",
"0.72043985",
"0.7105665",
"0.70909244",
"0.70703316",
"0.69899",
"0.6989871",
"0.6987367",
"0.6987220... | 0.7101289 | 15 |
Propagates the input through each layer in the network | def J324(YKHO, OkgJ, d6pt):
for gEmA in YKHO.layers:
OkgJ = gEmA.forwardPropagateBest(OkgJ, d6pt)
return OkgJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c2Ky(YKHO):\n for YRbF in range(0, len(YKHO.output_layer)):\n hlel = 0\n for HgE9 in YKHO.hidden_layer:\n hlel += HgE9.weights[YRbF] * HgE9.output\n YKHO.output_layer[YRbF] = hlel",
"def BoEA(YKHO, g4y1: np.matrix):\n MYYV = g4y1\n for gEmA in YKHO.__layers:\n ... | [
"0.7740809",
"0.76146704",
"0.75252163",
"0.74372053",
"0.74124414",
"0.7400514",
"0.7367848",
"0.73495466",
"0.7317932",
"0.7301284",
"0.7286102",
"0.7263771",
"0.7226023",
"0.72043985",
"0.7105665",
"0.7101289",
"0.70909244",
"0.70703316",
"0.69899",
"0.6989871",
"0.6987367... | 0.0 | -1 |
Recursively parse a list & replace all dicts with Yaco objects | def oC8A(YKHO, nLRb):
for YRbF, ZfUD in enumerate(nLRb):
if isinstance(ZfUD, dict):
nLRb[YRbF] = sHiP(ZfUD)
elif isinstance(ZfUD, list):
nLRb[YRbF] = YKHO._list_parser(ZfUD)
else:
pass
return nLRb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b9bT(YKHO, YEnM, rJ2L=True):\n for H5ew, BWXx in YEnM.__dict__.items():\n if isinstance(BWXx, dict):\n YEnM.__dict__[H5ew] = YKHO._reconstruct_object(BWXx)\n elif isinstance(BWXx, list):\n YEnM.__dict__[H5ew] = [YKHO._reconstruct_object(iQG7) for iQG7 in BWXx]\n ... | [
"0.6077241",
"0.6071965",
"0.59434056",
"0.5891732",
"0.5702263",
"0.56620353",
"0.54863834",
"0.54181623",
"0.5404956",
"0.53706634",
"0.53459495",
"0.5338",
"0.5303963",
"0.5240408",
"0.52308273",
"0.52279073",
"0.5220153",
"0.5219189",
"0.5162217",
"0.51530033",
"0.5148448... | 0.71860534 | 0 |
Test that pages do not require authorization. | def nyyu(x0hE, bD7m):
geh0 = x0hE.get(bD7m, secure=True)
assert geh0.status_code == 200 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fYib(YKHO):\n geh0 = YKHO.client.post(YKHO.url)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def Q2fl(YKHO):\n pass",
"def SXRu(YKHO):\n YKHO.login_user(YKHO.user)\n geh0 = YKHO.client.get(YKHO.url, YKHO.args)\n YKHO.assertEqual(geh0.status_code, 302)",
"def l2KT(YKH... | [
"0.7805355",
"0.7573366",
"0.7550531",
"0.754393",
"0.7477464",
"0.7453274",
"0.74418205",
"0.74418205",
"0.74051666",
"0.7386679",
"0.73852646",
"0.73436177",
"0.73432076",
"0.733158",
"0.733158",
"0.7320706",
"0.7308524",
"0.7308524",
"0.7308524",
"0.7308524",
"0.72869086",... | 0.0 | -1 |
Convenience wrapper around diagnose that returns only one result. If no results are found, this returns None. | def rodu(YKHO, LL9J, BrgQ=None):
try:
return YKHO.diagnose(LL9J, age_group=BrgQ)[0]
except IndexError:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mouW(lhUb: Patient) -> ILMi:\n C4vT = WDsN.check_symptoms()\n for or8S, BWXx in enumerate(C4vT):\n print(or8S + 1, end=': ')\n print(BWXx)\n bd57 = aquh('Select set of symptoms do you have, Enter number (i.e 1): ') - 1\n CvJY = C4vT[bd57]\n for jb_B in ILMi.diseases:\n if Cv... | [
"0.540709",
"0.52838403",
"0.50949544",
"0.49411562",
"0.48334944",
"0.47625622",
"0.47504145",
"0.4722249",
"0.4666538",
"0.4665239",
"0.4658295",
"0.46503997",
"0.46331224",
"0.46240985",
"0.45917788",
"0.45883182",
"0.4586515",
"0.45854995",
"0.45789608",
"0.45501754",
"0.... | 0.72394943 | 0 |
Creates a draft post that can be used for previews. | def kaPv(YKHO, DpZH):
if YKHO.version == DpZH:
return YKHO
NVLO = YKHO.get_parent_version().id
try:
wl2L = T97t.objects.get(blog=YKHO.blog, version_id=NVLO, version=DpZH)
return wl2L
except T97t.DoesNotExist:
wl2L = T97t(version_id=NVLO, published=False, blog=YKHO.blog, v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8z6(leAC, F7Sp=False):\n if F7Sp:\n e1vZ = mvGU\n else:\n e1vZ = mHOZ\n _c1T = slWZ()\n mWFP = aSeI(leAC)\n IznC = '{}-{}{}'.format(_c1T, mWFP, BWFn)\n YxZ5 = []\n YxZ5.append('---')\n YxZ5.append('layout: post')\n YxZ5.append('title: {}'.format(leAC))\n YxZ5.append... | [
"0.73266816",
"0.7294677",
"0.6981046",
"0.6762516",
"0.66025543",
"0.6574814",
"0.6551589",
"0.65167874",
"0.6436928",
"0.6419594",
"0.6409352",
"0.6406731",
"0.63520414",
"0.63309544",
"0.63243884",
"0.63102156",
"0.6299198",
"0.6296672",
"0.62663203",
"0.6253211",
"0.62458... | 0.0 | -1 |
Removes the draft object associated with a post. | def JmNb(YKHO, DpZH):
NVLO = YKHO.get_parent_version().id
try:
wl2L = T97t.objects.get(blog=YKHO.blog, version_id=NVLO, version=DpZH)
wl2L.delete()
except T97t.DoesNotExist:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QcaM(YKHO: User, Fi3q: str) -> h8nf[T97t]:\n m8z6 = OqzG(Fi3q)\n if YKHO != m8z6.author:\n raise KOnn()\n mjq_(m8z6.make_href(), m8z6.author)\n m8z6.content = ''\n m8z6.deleted = True\n m8z6.reshareable = False\n m8z6.media_list = []\n m8z6.save()\n if HUdZ(m8z6.id):\n ... | [
"0.6820618",
"0.6650175",
"0.6624265",
"0.65966284",
"0.65310454",
"0.648292",
"0.6350372",
"0.63480896",
"0.6301361",
"0.625187",
"0.60437536",
"0.603751",
"0.6018303",
"0.59448963",
"0.59249693",
"0.59247077",
"0.5907492",
"0.58861166",
"0.5872001",
"0.5864228",
"0.58454126... | 0.5463146 | 45 |
Returns maximum number of guests you can satisfy | def TkaZ(po6S: list[int], FZvj: list[int]) -> int:
Micp = 0
Ng5w = len(po6S) - 1
gjmO = len(FZvj) - 1
while Ng5w >= 0 and gjmO >= 0:
wMZQ = po6S[Ng5w]
AOyB = FZvj[gjmO]
if AOyB >= wMZQ:
gjmO -= 1
Micp += 1
Ng5w -= 1
return Micp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QiD9(YKHO) -> int:\n return YKHO.group_size.upper * YKHO.groups_allowed",
"def HTvI():\n print(\"You'll get 5 guesses per problem!\")\n return 5",
"def THz7(YKHO):\n return len(YKHO._ballots) * YKHO._number_of_votes_pr_voter - YKHO._number_of_blank_votes",
"def Cjt0(YKHO) -> int:\n return ... | [
"0.67058694",
"0.6673283",
"0.6292351",
"0.62110734",
"0.6177681",
"0.6132566",
"0.61130244",
"0.61001515",
"0.60693204",
"0.60392797",
"0.60035145",
"0.5987563",
"0.59809804",
"0.5945763",
"0.5935348",
"0.5923318",
"0.5913736",
"0.59127784",
"0.5906886",
"0.590217",
"0.59005... | 0.77078587 | 0 |
Method computes discounted sum of rewards and final gamma multiplier | def WW5s(YKHO, vwlo):
HhYQ = oyIN.zeros((len(vwlo), 1))
OBNk = oyIN.zeros((len(vwlo), 1))
for YRbF in range(len(vwlo)):
_mIB = [BR4e ** a1PO for a1PO in range(len(vwlo[YRbF]))]
HhYQ[YRbF][0] = oyIN.sum(oyIN.multiply(_mIB, vwlo[YRbF]))
OBNk[YRbF][0] = BR4e ** len(vwlo[YRbF])
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vl_R(vwlo: list[float], KMvS: float=0.95) -> float:\n KbRe = 0\n for YRbF, Mkmy in enumerate(vwlo):\n KbRe += KMvS ** YRbF * Mkmy\n return KbRe",
"def AC1_(vwlo, KMvS):\n AFmI = vwlo.shape\n if len(AFmI) == 1:\n g2lU = oyIN.zeros(shape=(*AFmI, 1), dtype=oyIN.float)\n else:\n ... | [
"0.7850066",
"0.7810609",
"0.75006557",
"0.7417289",
"0.73832476",
"0.7369275",
"0.72433805",
"0.72328746",
"0.7221629",
"0.72104144",
"0.71979684",
"0.7166232",
"0.7162594",
"0.7160576",
"0.7158987",
"0.71378905",
"0.7118783",
"0.7096021",
"0.7093055",
"0.7088048",
"0.701991... | 0.63818336 | 45 |
Force the price to always be a decimal | def hI0L(YKHO, BWXx):
YKHO._price = ZjSO(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cQfk(YKHO):\n YKHO.assertEqual(VIXL(188.0), '$188.00')",
"def LMHg(YKHO):\n hI0L = '{0:03d}'.format(YKHO.price)\n return hI0L[:-2] + '.' + hI0L[-2:]",
"def MAai(YKHO):\n YKHO.assertEqual(VIXL(188.01, False), '$188.01')",
"def _kBO(YKHO, hI0L):\n rhd_ = YKHO._price_limits[3] or 8\n m78D ... | [
"0.7094489",
"0.69616205",
"0.69607484",
"0.69215906",
"0.6918236",
"0.6917614",
"0.6878256",
"0.6877267",
"0.68123305",
"0.6707481",
"0.6675492",
"0.6626306",
"0.6549107",
"0.65450263",
"0.652165",
"0.652165",
"0.65029174",
"0.649064",
"0.6486598",
"0.6452186",
"0.6442555",
... | 0.7397563 | 0 |
The total effect of the net_affecting charges (note affect vs effect here). Currently this is single currency only (AMAAS110). Cast to Decimal in case the result is zero (no net_affecting charges). | def aWGs(YKHO):
return ZjSO(sum([WJkG.charge_value for WJkG in YKHO.charges.values() if WJkG.net_affecting])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wjRY(YKHO):\n woGg = YKHO.get_total_amount()\n bnZy = YKHO.get_total_discount()\n return woGg - bnZy",
"def LLny(YKHO):\n return YKHO.cash / YKHO.current_liabilities",
"def y_52(YKHO):\n YKHO._effectiveness = 0.2 * YKHO.ANA + 0.2 * YKHO.DAM + 0.2 * YKHO.MOA + 0.2 * YKHO.MFA + 0.2 * YKHO.NOP\... | [
"0.62570715",
"0.6235157",
"0.6229145",
"0.6225129",
"0.6173853",
"0.6153339",
"0.61397296",
"0.61204726",
"0.6097956",
"0.6082619",
"0.6073412",
"0.60558987",
"0.6020385",
"0.6011036",
"0.5980294",
"0.5978931",
"0.59489465",
"0.5926228",
"0.5893641",
"0.5872979",
"0.58686703... | 0.82955116 | 0 |
Generates the simulated data, and converts the NumPy array into a Pandas object. | def XiF4(YKHO):
YKHO.RawData[:, 0] = oyIN.arange(start=1, stop=YKHO.NumInd + 1, step=1, dtype=oyIN.int8)
YKHO.RawData[:, 1] = oyIN.random.randn(YKHO.NumInd)
YKHO.RawData[:, 2] = oyIN.random.randn(YKHO.NumInd)
YKHO.RawData[:, 3] = 0.2 * oyIN.random.randn(YKHO.NumInd)
YKHO.RawData[:, 4] = 0.2 * oyIN.r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i_mH(Emd4, **B2fa):\n keQt = vmkq(namedArray=Emd4.runSimulationArr(**B2fa))\n return keQt.to_dataframe()",
"def vy60(SVFM):\n return iSeD(SVFM, duplicates_radius=1)",
"def uzII(YKHO):\n return Xugt.column('dummy', YKHO.data).to_pandas().values",
"def qHOR(YKHO, qw7D, **B2fa):\n from ..util... | [
"0.6616016",
"0.63311",
"0.62777793",
"0.6224565",
"0.6224565",
"0.6224565",
"0.6031011",
"0.60152894",
"0.60152894",
"0.60106426",
"0.59912723",
"0.5978612",
"0.5976738",
"0.5974885",
"0.5971159",
"0.59629136",
"0.5947969",
"0.59129465",
"0.5887937",
"0.58757704",
"0.5870532... | 0.0 | -1 |
Create a new SampleSheetLinter instance | def FIMM(YKHO, F1XL=None, xTst=None, ytgA=None):
YKHO._fp = ytgA
YKHO._sample_sheet_file = xTst
YKHO._sample_sheet = F1XL
if YKHO._fp is None:
if YKHO._sample_sheet is None:
YKHO._sample_sheet = otTo(xTst)
else:
YKHO._sample_sheet = otTo(fp=YKHO._fp)
yfjS.__init__(YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kj9I(YKHO):\n pass",
"def qow_(YKHO):\n pass",
"def PG74(YKHO):\n raise NotImplementedError",
"def Dh_T(f2sn, KDo0=None, vO4O=None, FMLJ=None):\n F1XL = AsmG.SampleSheet(f2sn)\n if F1XL.format == 'CASAVA':\n YOtd = 'SampleID'\n fU2e = 'SampleProject'\n elif F1XL.format == ... | [
"0.64703894",
"0.60520726",
"0.5796375",
"0.57756877",
"0.5608455",
"0.5526609",
"0.5502461",
"0.5458941",
"0.53156066",
"0.53110546",
"0.52634317",
"0.5259123",
"0.52486336",
"0.52098095",
"0.51362187",
"0.5122741",
"0.51171523",
"0.51142883",
"0.50685805",
"0.5064624",
"0.5... | 0.4757722 | 36 |
Check if a sample sheet barcode sequence is valid Valid barcodes must consist of only the letters A,T,G or C in any order, and always uppercase. 10xGenomics sample set IDs of the form e.g. 'SIP03C9' or 'SIGAB3' are also considered to be valid. | def IkNN(KCHu):
return bool(ZbWC.match('^[ATGC]*$', KCHu)) or UBL4(KCHu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZkw(YKHO):\n YKHO.assertEqual(bh7_('AA', None, ['AA']), (False, 'AA', False))\n YKHO.assertEqual(bh7_('GCATCGTCCACA', 'golay_12', ['GCATCGTCAACA']), (2, 'GCATCGTCAACA', True))\n YKHO.assertEqual(bh7_('GGTT', 4, ['TTTT']), (2, 'TTTT', True))",
"def T9Xe(aWuw):\n aWuw = aWuw.strip()\n aWuw = aW... | [
"0.69598264",
"0.68189746",
"0.6814072",
"0.6746378",
"0.66955096",
"0.6686557",
"0.6580686",
"0.6572843",
"0.6543185",
"0.65183085",
"0.64993525",
"0.6435424",
"0.64148444",
"0.6411794",
"0.63436776",
"0.632945",
"0.62934846",
"0.6290663",
"0.62555736",
"0.6236995",
"0.62254... | 0.7333045 | 0 |
Returns the contact.html page where users can create new orders | def Mxk0(QePW):
if QePW.method == 'POST':
UYKr = JmDL(QePW.POST)
if UYKr.is_valid():
Mxk0 = UYKr.save(commit=False)
Mxk0.client = QePW.user
Mxk0.save()
yEHD.success(QePW, 'Thank you, I will assess your order and be in touch via email as soon as possibl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html', title='Contact', year=qcWV.now().year, message='Your contact page.')",
"def Mxk0():\n return TvZl('contact.html', title='Contact', year=qcWV.now().year, message='My contact page.')",
"def Mxk0():\n return TvZl(... | [
"0.70360345",
"0.69447637",
"0.68679965",
"0.68521833",
"0.68521833",
"0.6830059",
"0.6797079",
"0.6797079",
"0.6797079",
"0.6797079",
"0.6797079",
"0.6797079",
"0.6797079",
"0.6797079",
"0.67613214",
"0.6722574",
"0.6713562",
"0.66886973",
"0.6648806",
"0.66480136",
"0.66378... | 0.58658874 | 56 |
Read a JSON file with a stricted schema and save tokens for API usage. | def M9mU(YKHO, WJHQ):
with open(WJHQ, 'r') as eHNT:
P4t4 = qQXR.load(eHNT)
if not BfDw.validate_apikeys_schema(P4t4):
raise GAYT('The schema of the file containing the keys does not \n follow the required schema.')
F9sO = P4t4['Apps']
YKHO._keys = [WKvO['... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A0iH(YKHO):\n with open(YKHO.sample_token_file, 'w', encoding='utf8', errors='surrogateescape') as Ggvh:\n Ggvh.write('Bad JSON')\n with YKHO.assertRaises(qQXR.decoder.JSONDecodeError):\n aHOL = pedy(token_filename=YKHO.sample_token_file)\n aHOL.load_token()",
"def xAE4(VqRE):\n ... | [
"0.63374525",
"0.61470073",
"0.6133104",
"0.60747564",
"0.6047224",
"0.60425025",
"0.604178",
"0.60354614",
"0.60354614",
"0.59988725",
"0.5938045",
"0.59292054",
"0.5925781",
"0.5899029",
"0.5899029",
"0.58986986",
"0.58678305",
"0.5860026",
"0.58547544",
"0.5850087",
"0.584... | 0.59467316 | 10 |
Matrix multiplication between user and product embedding vectors. | def KVH6(YKHO, CBIr, ZfUD):
khE6 = YKHO.product_factors(ZfUD.view(-1)) + YKHO.product_bias(ZfUD.view(-1))
qYT9 = YKHO.user_factors(CBIr.view(-1)) + YKHO.user_bias(CBIr.view(-1))
WUBy = (khE6 * qYT9).sum(1)
return WUBy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SbLH(r8hN, P6bq):\n BFdY = []\n for Ty9i in r8hN:\n BFdY.append(yKrh(Ty9i, P6bq))\n return BFdY",
"def yKrh(P6bq, Ty9i):\n BFdY = []\n for YRbF in range(len(P6bq)):\n BFdY.append(P6bq[YRbF] * Ty9i[YRbF])\n return sum(BFdY)",
"def OIqM(YKHO, vexM: np.ndarray) -> oyIN.ndarray:... | [
"0.71450377",
"0.6601506",
"0.65911454",
"0.6426624",
"0.6353698",
"0.63360727",
"0.6333448",
"0.63314486",
"0.63314",
"0.62880665",
"0.6271462",
"0.62517476",
"0.6227162",
"0.6225085",
"0.62097186",
"0.6173876",
"0.61589456",
"0.6139892",
"0.61377186",
"0.6124998",
"0.611732... | 0.6710064 | 1 |
Convert the probabilities from the final activation into a binary classification. | def p2RI(YKHO, KVH6):
ldgB = YKHO.activation(KVH6)
KJvP = 1 - ldgB
return ht2j.stack((KJvP, ldgB)).argmax(0).float() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ALuv(YKHO):\n return round(D7Jk(YKHO.input_matrix[len(YKHO.dimens) - 1][0]))",
"def YEmv(YKHO):\n WErR = YKHO.probability_array()\n KndY = oyIN.argmax(WErR, axis=1)\n return KndY",
"def y9y1(e8_J):\n if isinstance(e8_J, ht2j.Tensor):\n ssAf = ht2j.zeros_like(e8_J)\n elif isinstance... | [
"0.70773786",
"0.65384024",
"0.6517004",
"0.64338917",
"0.6222777",
"0.6203145",
"0.6188469",
"0.6169673",
"0.6164701",
"0.6145782",
"0.61333895",
"0.61301404",
"0.61202914",
"0.60944176",
"0.60828745",
"0.6074585",
"0.60721594",
"0.60615075",
"0.6035476",
"0.60293",
"0.60258... | 0.6932463 | 1 |
Return duration as timedelta. | def nVrR(YKHO, BWXx, QpfX: typing.MutableMapping):
if isinstance(BWXx, fCoM):
return BWXx
elif isinstance(BWXx, int):
return fCoM(milliseconds=int(BWXx * YKHO.resolution))
try:
return fCoM(milliseconds=int(ZjSO(BWXx) * YKHO.resolution))
except (ValueError, Dutl):
pass
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WbTE(YKHO) -> qcWV.timedelta:\n return YKHO._duration",
"def fCoM(YKHO) -> qcWV.timedelta:\n aM8h = -1 if YKHO.negative else 1\n return qcWV.timedelta(hours=aM8h * YKHO.hours, minutes=aM8h * YKHO.minutes)",
"def EdTY(YKHO):\n return (YKHO.stop_day - YKHO.start_day) * (24 * 60) + (YKHO.stop_hour... | [
"0.7739758",
"0.7537782",
"0.7461609",
"0.74411243",
"0.7387828",
"0.7235751",
"0.72178787",
"0.72178787",
"0.7191434",
"0.71682596",
"0.71657807",
"0.71348643",
"0.7069964",
"0.70382273",
"0.6993275",
"0.698985",
"0.6984892",
"0.69740856",
"0.6935967",
"0.6885637",
"0.688563... | 0.0 | -1 |
Return a friendly HTTP greeting. | def NMoC(YKHO):
YKHO.render('view.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tz38(mWFP):\n BYLU = f\"Hello, {mWFP.title()}. It's nice to meet you!\"\n return BYLU",
"def uthR():\n return 'Welcome to Flask!'",
"def Y7u5(mWFP):\n print('My name is ' + mWFP)",
"def qjYe():\n return f\"Welcome to the Surf's Up API!Available Routes:<br/>/api/v1.0/surfs-up\"",
"def Wze... | [
"0.67860854",
"0.6719625",
"0.67095745",
"0.6680697",
"0.6663219",
"0.6638394",
"0.6633062",
"0.6628187",
"0.6556032",
"0.6536937",
"0.64776874",
"0.6477268",
"0.64715713",
"0.64644194",
"0.6443056",
"0.6435385",
"0.6400719",
"0.6400167",
"0.637615",
"0.637615",
"0.6367243",
... | 0.0 | -1 |
Get Wind Direction Stability Scatter Figure. Plot the wind direction stability scatter of a given variable (or category of variables) grouped by a given condition (or set of conditions). | def QxOA(Narm, Cvbt, Ghho, sz0L=80, TZqf='red', JEAe=[(46, 228)]):
eaMq = BfDw.get_stabconds()
Jw9H = BfDw.get_colors(len(eaMq), basecolor='span')
ek2r = BfDw.get_nrelcolors()
CvSI, bGrB, bGrB = BfDw.get_vertical_locations(Cvbt['columns']['direction'], location=sz0L)
ZOyV, sz0L, bGrB = BfDw.get_vert... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yMTz(uFZG, TkzS, dCji=None, cHAw=None, frLK=(0, 360), Le8V=(0, 360)):\n if dCji is None:\n dCji = uFZG.name + ' [°]'\n if cHAw is None:\n cHAw = TkzS.name + ' [°]'\n Ekwc = aY66(uFZG, TkzS, x_label=dCji, y_label=cHAw, x_limits=frLK, y_limits=Le8V, line_of_slope_1=True)\n Ekwc.axes[0].... | [
"0.66559976",
"0.6573864",
"0.6164912",
"0.5787601",
"0.5492207",
"0.52874935",
"0.5255771",
"0.5182858",
"0.51538205",
"0.51537097",
"0.5100614",
"0.50840086",
"0.50757194",
"0.5037733",
"0.50375617",
"0.50303334",
"0.5014262",
"0.5010639",
"0.5003671",
"0.50019526",
"0.5000... | 0.67901206 | 0 |
Returns the label associated with an instance's note_type. | def WiVC(YKHO):
id, NI5g = YKHO.NOTE_TYPE_CHOICES[YKHO.note_type]
return NI5g | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DeTJ(Emd4):\n return Emd4._type_name(Emd4.label)",
"def DeTJ(Emd4):\n return Emd4._type_name(Emd4.label)",
"def u_my(YKHO) -> str:\n return qe4Y.get(YKHO, 'label_type')",
"def UXqs(YKHO) -> str:\n return YKHO._underlying.label",
"def yR4h(YKHO):\n id, S_Iw = YKHO.NAME_TYPE_CHOICES[YKHO.n... | [
"0.74779636",
"0.7477245",
"0.734536",
"0.65523994",
"0.6424233",
"0.6397581",
"0.63923883",
"0.6378323",
"0.6355385",
"0.63546616",
"0.63546616",
"0.63546616",
"0.63546616",
"0.6340338",
"0.6332156",
"0.6327013",
"0.6327013",
"0.6327013",
"0.6327013",
"0.6327013",
"0.6327013... | 0.8313583 | 0 |
Returns the label associated with an instance's variant_type. | def XUOD(YKHO):
id, Q_l7 = YKHO.VARIANT_TYPE_CHOICES[YKHO.variant_type]
return Q_l7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DeTJ(Emd4):\n return Emd4._type_name(Emd4.label)",
"def DeTJ(Emd4):\n return Emd4._type_name(Emd4.label)",
"def u_my(YKHO) -> str:\n return qe4Y.get(YKHO, 'label_type')",
"def yR4h(YKHO):\n id, S_Iw = YKHO.NAME_TYPE_CHOICES[YKHO.name_type]\n return S_Iw",
"def LjmT(YKHO, EhYO):\n QLRN... | [
"0.76794106",
"0.76705414",
"0.71622086",
"0.6931583",
"0.66962516",
"0.64937234",
"0.6492316",
"0.6412995",
"0.6381852",
"0.6371005",
"0.6371005",
"0.6371005",
"0.6371005",
"0.6337221",
"0.6337221",
"0.632418",
"0.63064885",
"0.6300181",
"0.62756264",
"0.62536997",
"0.625356... | 0.8463431 | 0 |
Retrieves all Name objects that have an Active record status and are not merged with any other Name objects. | def oWb2(YKHO):
return YKHO.get_queryset().filter(record_status=YKHO.model.ACTIVE, merged_with=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZHJ(YKHO):\n return YKHO.filter(active=True)",
"def RUIH(YKHO):\n return YKHO._active_objects",
"def EYEG():\n zONa()\n return xp_p.select().where(xp_p.active_status).count()",
"def v5Pr(YKHO):\n return YKHO.users('inactive == NO')",
"def EwUQ(YKHO):\n return YKHO.players.join(RZKW).... | [
"0.573245",
"0.54057163",
"0.5369031",
"0.5366051",
"0.53631514",
"0.5359773",
"0.5348273",
"0.5306778",
"0.5292781",
"0.52740806",
"0.5220222",
"0.5202809",
"0.5157408",
"0.51407903",
"0.5135581",
"0.50979877",
"0.50868213",
"0.50803673",
"0.50751674",
"0.50739914",
"0.50644... | 0.5284229 | 9 |
Calculates the number of Names by month according to the date_column passed in. This will return a ValueQuerySet where each element is in the form of { | def X35s(YKHO, Nl3a):
def E0cw(mWFP):
return (getattr(mWFP, Nl3a).year, getattr(mWFP, Nl3a).month)
def AIYV(lO87, x0eS):
eGVy = qcWV(year=lO87, month=x0eS, day=1)
TYhG = rIAI.get_current_timezone()
return rIAI.make_aware(eGVy, TYhG)
dixj = YKHO.all().order_by(Nl3a)
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oy2m(YKHO):\n X_bn = AlUc.get_months()\n if X_bn is not None:\n return X_bn\n FvVY = YKHO.base_query().fetch()\n ZWCE = []\n for m8z6 in FvVY:\n ZWCE.append('%d/%02d' % (m8z6.date_published.year, m8z6.date_published.month))\n ZWCE.sort()\n jvSB = ZWCE[0]\n X_bn = {}\n X... | [
"0.5893774",
"0.5776333",
"0.5764562",
"0.5668571",
"0.5616421",
"0.5498272",
"0.5409395",
"0.53431386",
"0.52919984",
"0.52524847",
"0.52359885",
"0.5217198",
"0.5182471",
"0.5168364",
"0.5156918",
"0.5121955",
"0.5077757",
"0.50577384",
"0.5047405",
"0.5011774",
"0.4963014"... | 0.72177887 | 0 |
Returns a list of the number of Names created per month. | def aEkM(YKHO):
return YKHO._counts_per_month('date_created') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gm7L():\n X_bn = []\n x0eS = 1\n for bGrB in range(12):\n X_bn.append(L9Jq.objects.filter(created__month=f'{x0eS}').count())\n x0eS += 1\n return X_bn",
"def oy2m(YKHO):\n X_bn = AlUc.get_months()\n if X_bn is not None:\n return X_bn\n FvVY = YKHO.base_query().fetch(... | [
"0.7266339",
"0.67492783",
"0.65750355",
"0.6373555",
"0.635102",
"0.6151513",
"0.6058118",
"0.5962825",
"0.59505415",
"0.59505415",
"0.5905971",
"0.5892279",
"0.58562136",
"0.5767861",
"0.57602185",
"0.57081175",
"0.5678768",
"0.5664801",
"0.5613809",
"0.56133544",
"0.560193... | 0.70788836 | 1 |
Get the absolute url to the Name detail page. | def hlzF(YKHO):
return gxEw('name:detail', args=[YKHO.name_id]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlzF(YKHO):\n return gxEw('name-detail', args=[str(YKHO.id)])",
"def hlzF(YKHO):\n return gxEw('structured-name-detail', args=[str(YKHO.id)])",
"def hlzF(YKHO):\n return gxEw('qualifier-name-detail', args=[str(YKHO.id)])",
"def hlzF(YKHO):\n return ('project_detail', (), {'name': YKHO.title})... | [
"0.8379215",
"0.8287903",
"0.7458786",
"0.72039384",
"0.7195119",
"0.7185269",
"0.7146667",
"0.71287423",
"0.7105562",
"0.71013343",
"0.7083134",
"0.7078725",
"0.70766395",
"0.7051252",
"0.70459056",
"0.7045733",
"0.7040046",
"0.702496",
"0.7001649",
"0.69901264",
"0.69814223... | 0.83816564 | 0 |
True if the instance has one or more related Locations. | def pbdp(YKHO):
if YKHO.location_set.count():
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGVO(YKHO):\n for Rci7 in YKHO.locations.values():\n if not Rci7.is_valid:\n return False\n return True",
"def tcz8(YKHO):\n return bool(not YKHO.children.exists() and (not YKHO.parents.exists()))",
"def Xn27(YKHO):\n return YKHO.location_set.current_location is not None",
"... | [
"0.672408",
"0.6540387",
"0.6498398",
"0.6355618",
"0.62472194",
"0.6228896",
"0.60386276",
"0.59779376",
"0.59742",
"0.5946262",
"0.5944238",
"0.5886578",
"0.58795923",
"0.58748704",
"0.5872665",
"0.58403385",
"0.58367074",
"0.583446",
"0.5834089",
"0.5833635",
"0.5831239",
... | 0.69102573 | 0 |
True if the instance has a schema url. | def T3f_(YKHO):
return YKHO.get_schema_url() is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A9Hf(YKHO):\n return hasattr(YKHO, '_url') and YKHO._url is not None",
"def c1xT(YKHO):\n import asdf\n if YKHO.schema_uri is not None:\n with RKD7.augment_exception('Invalid ASDF schema URI:', YKHO.schema_uri):\n asdf.schema.load_schema(YKHO.schema_uri)",
"def UVDS(uPxI):\n r... | [
"0.7385665",
"0.7253008",
"0.71321785",
"0.6716494",
"0.65870833",
"0.65679157",
"0.6527726",
"0.6379631",
"0.6324214",
"0.6283591",
"0.6263991",
"0.6259547",
"0.62323517",
"0.62118566",
"0.619182",
"0.61833054",
"0.61728114",
"0.6151307",
"0.6116028",
"0.6077104",
"0.6024767... | 0.9238091 | 0 |
True if the Name has the Deleted status. | def a3k1(YKHO):
return YKHO._is_record_status(YKHO.DELETED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a3k1(YKHO):\n if YKHO.deleted:\n return True\n return False",
"def a3k1(YKHO):\n return YKHO.state == RwR0.Deleted",
"def a3k1(YKHO):\n return YKHO.state == RwR0.Deleted",
"def AaTp(YKHO) -> bool:\n return qe4Y.get(YKHO, 'deleted')",
"def a3k1(nUeQ):\n return nUeQ.status == 're... | [
"0.76865155",
"0.7318823",
"0.7318823",
"0.7313983",
"0.7155666",
"0.71253496",
"0.7085702",
"0.688097",
"0.67141795",
"0.6706298",
"0.6405018",
"0.62997466",
"0.6246021",
"0.6180651",
"0.6165892",
"0.61252886",
"0.60292065",
"0.6022981",
"0.5963385",
"0.5961148",
"0.5870249"... | 0.75322896 | 1 |
Normalize the name attribute and assign it the normalized_name attribute. | def CESd(YKHO):
YKHO.normalized_name = edby(YKHO.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uD9m(YKHO):\n mWFP = YKHO.ua_data.get('name', '')\n if not mWFP:\n return\n YKHO.ua_data['name'] = YKHO.normalized_name.get(mWFP.lower(), mWFP)",
"def uD9m(Emd4, mWFP):\n return ' '.join(mWFP.lower().strip().split())",
"def uD9m(Emd4, mWFP):\n return ' '.join(mWFP.lower().strip().spli... | [
"0.8145657",
"0.7358192",
"0.7358192",
"0.7358192",
"0.73001164",
"0.71639097",
"0.70434594",
"0.66868776",
"0.66818297",
"0.6645059",
"0.66193527",
"0.6603514",
"0.65407497",
"0.6513661",
"0.6509814",
"0.64971495",
"0.6418087",
"0.64082617",
"0.63728404",
"0.63634264",
"0.63... | 0.8653227 | 0 |
Use the BaseTicketing object to assign a name_id. | def JgbM(YKHO):
if not YKHO.name_id:
YKHO.name_id = str(GNZ9.objects.create()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, hbFX, mWFP):\n YKHO._id = hbFX\n YKHO._name = mWFP\n YKHO._name = YKHO._name.title()",
"def mWFP(YKHO, mWFP):\n try:\n YKHO._name = mWFP\n except Exception as e:\n raise tTpl",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"def mWFP(YKHO, mWFP):\n YKHO._name =... | [
"0.6540638",
"0.6511959",
"0.63940686",
"0.63940686",
"0.63940686",
"0.63940686",
"0.63940686",
"0.63940686",
"0.63940686",
"0.63940686",
"0.63940686",
"0.63940686",
"0.63940686",
"0.63940686",
"0.6350768",
"0.6348479",
"0.6348479",
"0.6348479",
"0.6348479",
"0.63030946",
"0.... | 0.8805637 | 0 |
True if the value is specified but not equal to given value | def brUS(YKHO, H5ew, BWXx):
return YKHO.current_state[H5ew] != BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, BWXx):\n return not YKHO == BWXx",
"def Vdqg(YKHO, BWXx):\n return YKHO.real == BWXx",
"def Vdqg(YKHO, Ty9i):\n return not YKHO == Ty9i",
"def d_5N(YKHO, wEf2):\n return B2Z0(YKHO, wEf2)",
"def T2bx(UXsi, c163):\n return not H7gC.are_equal(UXsi, c163)",
"def Vdqg(YKHO, hkxX)... | [
"0.7900962",
"0.7695068",
"0.717268",
"0.7090686",
"0.7065771",
"0.7042022",
"0.7023445",
"0.6978899",
"0.69233185",
"0.69159967",
"0.69159967",
"0.6747208",
"0.6665396",
"0.6649007",
"0.6633002",
"0.65957606",
"0.65941167",
"0.6581698",
"0.6573916",
"0.65672916",
"0.6565411"... | 0.7632957 | 2 |
Contours (Shapely) of the image. This refere's to the wcs solution | def e9c5(YKHO, e3Fk=True):
if not YKHO.has_wcs():
raise NotImplementedError('Only WCS contours implemented and this has no wcs solution')
if e3Fk:
return YKHO.wcs.contours_pxl
return YKHO.wcs.contours | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZvG6(YKHO, VXjJ):\n [jzdc, Iowl, Z9rn] = XC5k.findContours(VXjJ, XC5k.RETR_TREE, XC5k.CHAIN_APPROX_SIMPLE)\n return Iowl",
"def Qr1w(VXjJ):\n Iowl, gEYm = XC5k.findContours(VXjJ, mode=XC5k.RETR_EXTERNAL, method=XC5k.CHAIN_APPROX_NONE)\n WKvO, LVAh, yzQ0, MKlR = (0, 0, 0, 0)\n for r9Hf in Iowl:... | [
"0.7042124",
"0.7037773",
"0.70217437",
"0.6626976",
"0.65512246",
"0.6527685",
"0.6513463",
"0.6480915",
"0.64495337",
"0.6416148",
"0.63662136",
"0.6339927",
"0.633573",
"0.63300663",
"0.63069415",
"0.62716395",
"0.62647414",
"0.6234572",
"0.61648804",
"0.61507297",
"0.6128... | 0.67573464 | 3 |
Display the 2Dimage. The displayed information can be "data", "background", "rawdata", "variance" or anything known by self.`toshow` that is a 2D image. | def nUHY(YKHO, gjSj='data', sYYb=None, UZkM=True, aNZO=None, nUHY=True, Nh6d=None, trlf=200, k0b_='pixels', SfUI=False, TGSe={}, XMuk=False, w_ld={}, XQN5=True, kTOs=[None, 'arcsec'], cChr=False, **B2fa):
if type(gjSj) is oyIN.ndarray:
if oyIN.shape(gjSj) != (YKHO.height, YKHO.width):
raise Valu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oJmv(YKHO, nPrm):\n YKHO.__plot2d.clear()\n YKHO.__plot2d.addImage(legend='data', data=nPrm)\n YKHO.setCurrentIndex(YKHO.__index2d)",
"def W8mS(YKHO):\n W8mS(YKHO.image)",
"def W8mS(YKHO, LNo8):\n raise NotImplementedError()",
"def nUHY(YKHO) -> None:\n jbYn.imshow(str(YKHO.__class__), ... | [
"0.7079018",
"0.6938098",
"0.6810474",
"0.6672983",
"0.65725887",
"0.6550816",
"0.64947116",
"0.64207715",
"0.6418871",
"0.63853234",
"0.63503224",
"0.63487375",
"0.62995255",
"0.6278606",
"0.62592036",
"0.62469983",
"0.62454057",
"0.6224395",
"0.62240344",
"0.6220876",
"0.62... | 0.574892 | 90 |
Initialize the Samplers. Remark that all flux, fluxerr and lbda are requested to draw the samplers | def FIMM(YKHO, EPNC, OCi3=None, lsmZ=False, FxND=None):
YKHO.__build__()
if lsmZ:
return
YKHO.set_samplers(EPNC)
if OCi3 is not None:
YKHO.set_lbda(OCi3, negative_fluxmag=FxND) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wsE7(YKHO):\n for RFg8 in YKHO.gltf.samplers:\n if RFg8.minFilter is RFg8.magFilter is None:\n YKHO.samplers.append(YKHO.ctx.sampler(filter=(ebKQ.LINEAR_MIPMAP_LINEAR, ebKQ.LINEAR), repeat_x=False, repeat_y=False, anisotropy=16.0))\n else:\n YKHO.samplers.append(YKHO.ctx.... | [
"0.72320765",
"0.6541044",
"0.65216345",
"0.6249392",
"0.6141176",
"0.60598165",
"0.6045578",
"0.59606373",
"0.5945856",
"0.5941458",
"0.5934796",
"0.590171",
"0.585322",
"0.5834441",
"0.5730423",
"0.57284707",
"0.56967485",
"0.5693186",
"0.5692392",
"0.5686067",
"0.5684817",... | 0.66458225 | 1 |
set the effective wavelength (in Angstrom) of the filter used to get the flux. This is requested to get magnitudes. If you derive the magnitudes (derived_mag=True) you can set the `negative_fluxmag`. If None, the negative fluxes will be ignored. | def c6kA(YKHO, OCi3, S1UZ=True, FxND=None):
YKHO._properties['lbda'] = OCi3
if S1UZ:
YKHO.derive_magsamples(negative_fluxmag=FxND) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v5ke(YKHO, input):\n YKHO.magflux = input",
"def x3Y0(YKHO):\n return YKHO.magflux",
"def WZi7(YKHO, shSu, SRYB):\n YKHO._properties['flux'] = oyIN.float(shSu)\n YKHO._properties['var'] = oyIN.float(SRYB) if SRYB is not None else oyIN.NaN\n YKHO._reset_derived_prop_()",
"def M0gK(YKHO, Ebr... | [
"0.6607722",
"0.6282279",
"0.6223754",
"0.6169867",
"0.6124141",
"0.60669667",
"0.6050869",
"0.6018524",
"0.5906808",
"0.58183944",
"0.5804606",
"0.57989717",
"0.5795527",
"0.5795139",
"0.5759371",
"0.57186896",
"0.5703757",
"0.56988597",
"0.56535476",
"0.5628846",
"0.5611421... | 0.0 | -1 |
Change the name of the bandname. | def tZSe(YKHO, BWXx):
if BWXx is not None:
if type(BWXx) != str and type(BWXx) != oyIN.string_:
raise TypeError('The bandname must be a string', type(BWXx))
YKHO._properties['bandname'] = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Stex(YKHO):\n if YKHO._properties['bandname'] is None:\n YKHO._properties['bandname'] = 'fuv' if '-fd-' in YKHO.filename else 'nuv' if '-nd-' in YKHO.filename else 'unknown'\n return YKHO._properties['bandname']",
"def Dokz(YKHO, Dokz):\n YKHO.name = Dokz",
"def Stex(YKHO):\n if YKHO._pr... | [
"0.7241578",
"0.69039625",
"0.6895791",
"0.6833014",
"0.6807056",
"0.6751194",
"0.6734371",
"0.6734371",
"0.6689476",
"0.6630472",
"0.66169816",
"0.6559574",
"0.65430295",
"0.65027386",
"0.6474839",
"0.6459341",
"0.6459341",
"0.64104074",
"0.64104074",
"0.64104074",
"0.641040... | 0.8280091 | 0 |
This method returns a list of fields (either its column specification, like c64_0_0 or its rename like myfield) that are of type integer. | def FPnN(YKHO, ZLJ_):
DwB2 = []
for fvDH in ZLJ_:
if fvDH == 'eid':
continue
kUBT = ZbWC.search(IRyN.RE_FULL_COLUMN_NAME_RENAME, fvDH)
if kUBT is None:
continue
wyZL = kUBT.group('field')
if YKHO.get_field_dtype(wyZL) != 'Integer':
cont... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nQuP(YKHO, tyNF):\n V_D6 = list()\n for iVRZ in tyNF.columns:\n V_D6.append({'id': iVRZ.name, 'type': str(iVRZ.type)})\n return V_D6",
"def NkYV(YKHO):\n return YKHO._hndl.column_types()",
"def ANlu(__n6):\n return wCiq(__n6, include=['int64', 'float64'])",
"def q291(p4qj: type[Decl... | [
"0.68269765",
"0.6456442",
"0.6351034",
"0.6348163",
"0.63085",
"0.61558086",
"0.61520594",
"0.6149548",
"0.6130748",
"0.6124146",
"0.6053448",
"0.60428953",
"0.603779",
"0.6013474",
"0.5993608",
"0.5993608",
"0.59647644",
"0.5925211",
"0.59218806",
"0.59146714",
"0.59055597"... | 0.751693 | 0 |
Restricts queryset to participants that a researcher has permission to view. | def k66M(YKHO):
GSAU = YKHO.valid_responses().values_list('child', flat=True)
return mv1M.objects.filter(children__in=GSAU).prefetch_related(lUKL('children', queryset=Melv.objects.filter(id__in=GSAU))).distinct() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fRXs(YKHO, SR0I):\n CBIr = YKHO.request.user\n if CBIr.is_superuser:\n return super().filter_queryset(SR0I)\n return SR0I.filter(collaborators=CBIr)",
"def AVPP(YKHO):\n CBIr = YKHO.user_restriction\n if CBIr is not None:\n return T8ck.created_by == CBIr",
"def fRXs(YKHO, QePW,... | [
"0.68830305",
"0.6817467",
"0.6420612",
"0.6410337",
"0.63657975",
"0.6346137",
"0.63454413",
"0.6290058",
"0.6277561",
"0.6258345",
"0.62524164",
"0.61282426",
"0.61201954",
"0.6110073",
"0.6086972",
"0.60713714",
"0.60701144",
"0.60460436",
"0.6018136",
"0.59960234",
"0.597... | 0.0 | -1 |
Return the position of the mesh | def TwAD(YKHO):
return YKHO.pos | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CSqt(YKHO):\n if YKHO._meshx is None:\n YKHO._meshx = YKHO.get_mesh_coord(1)\n return YKHO._meshx",
"def Iuzb(YKHO):\n U5bT = MUcb.Vec3()\n MUcb.lib.geometry_get_position(YKHO._geometry, U5bT)\n return [WKvO for WKvO in U5bT]",
"def MZFS(YKHO):\n return YKHO.ray.position",
"def T... | [
"0.74844855",
"0.7165373",
"0.7056257",
"0.70084876",
"0.69951004",
"0.6929574",
"0.6929574",
"0.6929574",
"0.6929574",
"0.68559617",
"0.6853179",
"0.6848365",
"0.6839652",
"0.6839652",
"0.68380034",
"0.67717224",
"0.6768897",
"0.67412925",
"0.67412925",
"0.6738634",
"0.67321... | 0.66142356 | 24 |
Plot imshow with LST and frequency on axis | def uLNs(Csk6, J1c0, p3ss, L7wv='hr', OAa_='MHz', m7pY=True):
QrM1.imshow(Csk6, aspect='auto', interpolation='none', rasterized=m7pY, extent=(J1c0[0], J1c0[-1], p3ss[0], p3ss[-1]))
QrM1.xlabel('Frequency [%s]' % OAa_)
QrM1.ylabel('Time [%s]' % L7wv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Sny(WKvO):\n QrM1.imshow(WKvO, interpolation='nearest', aspect='auto')",
"def KwM3():\n QrM1.subplot(121)\n QrM1.imshow(nPrm.data.numpy()[0,].squeeze())\n QrM1.subplot(122)\n QrM1.imshow(pwpu.view(-1, 28, 28).data.numpy()[0,].squeeze())\n QrM1.show()\n QrM1.pause(1e-06)\n QrM1.gcf().... | [
"0.6595442",
"0.6546843",
"0.6486268",
"0.6478849",
"0.6407354",
"0.6405614",
"0.638233",
"0.638233",
"0.638233",
"0.6351962",
"0.6345301",
"0.6289991",
"0.6261279",
"0.6251073",
"0.6237511",
"0.6231321",
"0.6218993",
"0.62077045",
"0.62039596",
"0.61940545",
"0.61826867",
... | 0.60841966 | 26 |
Returns a chromosome after mutating the given chrom at a random position with the probability of m_prob | def r3Zb(YKHO, v0pW):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LbUl(v0pW, r5yf=0.05):\n for YRbF in range(len(v0pW)):\n Mkmy = tuKI.uniform(0, 1)\n if Mkmy <= r5yf:\n or8S = range(len(v0pW))\n TPao, fVVZ = tuKI.sample(or8S, 2)\n v0pW[TPao], v0pW[fVVZ] = (v0pW[fVVZ], v0pW[TPao])\n return v0pW",
"def r3Zb(v0pW, mVUw=100... | [
"0.7668443",
"0.6968176",
"0.6934928",
"0.6473813",
"0.6395521",
"0.635583",
"0.6326035",
"0.63115",
"0.60010433",
"0.5998952",
"0.59684354",
"0.59304327",
"0.58632594",
"0.5812154",
"0.57758886",
"0.56718475",
"0.5638582",
"0.5542621",
"0.5474017",
"0.54676455",
"0.5427838",... | 0.60303295 | 8 |
Returns an offspring obtained by applying crossover to the two given chromosomes, chrom1 and chrom2. If the crossover occurs at a random index i, then the offspring is created | def jWUT(YKHO, Xs0g, KF3E):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jWUT(zNf3, MdNT):\n o4D3, si3g = (qukk(P3RF), qukk(DR2N))\n ajwV, skBL = (qukk(o4D3 + 1, P3RF + 1), qukk(si3g + 1, DR2N + 1))\n\n def RSbt(zNf3, MdNT):\n XR14 = set((zNf3[WKvO + LVAh * P3RF] for WKvO in range(o4D3, ajwV) for LVAh in range(si3g, skBL)))\n BMgU = (qXGK for qXGK in MdNT if ... | [
"0.7741972",
"0.71026045",
"0.69760233",
"0.6832219",
"0.65046716",
"0.631999",
"0.6303768",
"0.623347",
"0.6162992",
"0.61589414",
"0.61228406",
"0.6118747",
"0.61057234",
"0.60661435",
"0.6047666",
"0.6026608",
"0.60084987",
"0.60013145",
"0.59919107",
"0.5970242",
"0.59259... | 0.73467314 | 1 |
Returns a list of m chromosomes randomly selected from the given population using fitness proportionate selection. | def EfUA(YKHO, r8hN, CHNM):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SuM2(BEuN, wkbQ, SmqJ):\n EhgW = sum([1.0 / WKvO for WKvO in wkbQ])\n JxU2 = []\n SCAk = 0.0\n for eHNT in wkbQ:\n SCAk += 1.0 / eHNT / EhgW\n JxU2.append(SCAk)\n sLM4 = []\n for YRbF in range(len(BEuN) - SmqJ):\n Mkmy = oyIN.random.rand()\n for r845 in range(len(J... | [
"0.7132417",
"0.70821095",
"0.70478785",
"0.69175357",
"0.6856188",
"0.6800783",
"0.67463666",
"0.6634756",
"0.6626589",
"0.66166633",
"0.6573062",
"0.6564178",
"0.65358746",
"0.6531804",
"0.64658576",
"0.6442349",
"0.6423676",
"0.641488",
"0.6390252",
"0.6388689",
"0.6357823... | 0.62602013 | 28 |
Returns the list of vertices in the graph. | def iXlf(YKHO):
KCHu = set([WKvO for WKvO in YKHO.edges.keys()])
a1PO = set([LVAh for Ty9i in YKHO.edges.values() for LVAh, Csk6 in Ty9i.items()])
Ty9i = KCHu.union(a1PO)
return list(Ty9i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXlf(YKHO):\n return list(YKHO._graph)",
"def iXlf(YKHO):\n return list(YKHO.__graph.values())",
"def TA6f(YKHO):\n return list(YKHO.graph_dict.keys())",
"def iXlf(YKHO):\n return list(YKHO.graph_dict.keys())",
"def iXlf(YKHO):\n return list(YKHO.__graph_dict.keys())",
"def iXlf(YKHO):... | [
"0.89336514",
"0.88066614",
"0.8703548",
"0.85232145",
"0.8515054",
"0.8515054",
"0.8515054",
"0.84759367",
"0.8463788",
"0.82295424",
"0.82260996",
"0.817331",
"0.81516325",
"0.81507564",
"0.8129831",
"0.8116676",
"0.8029951",
"0.7917647",
"0.79126275",
"0.78899944",
"0.7887... | 0.77419245 | 23 |
Set the direction of the selected agents by deviating their current direction by an angle given by von mises distribution. | def x3sY(YKHO, uUJk, tknT):
uUJk = oyIN.array(uUJk, dtype=bool)
cizC = oyIN.array(YKHO.df_population['coord_x'], dtype=oyIN.float)
Ydjp = oyIN.array(YKHO.df_population['coord_y'], dtype=oyIN.float)
Csng = oyIN.array(YKHO.df_population['coord_z'], dtype=oyIN.float)
oBsR = oyIN.array(YKHO.df_populatio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h_CU(YKHO, uUJk):\n uUJk = oyIN.array(uUJk, dtype=bool)\n cizC = oyIN.array(YKHO.df_population['coord_x'], dtype=oyIN.float)\n Ydjp = oyIN.array(YKHO.df_population['coord_y'], dtype=oyIN.float)\n Csng = oyIN.array(YKHO.df_population['coord_z'], dtype=oyIN.float)\n oBsR = oyIN.array(YKHO.df_popul... | [
"0.621206",
"0.597278",
"0.5859308",
"0.5800002",
"0.5755136",
"0.5755136",
"0.5723313",
"0.5677956",
"0.5668672",
"0.5663365",
"0.56591505",
"0.56193614",
"0.55996156",
"0.5554558",
"0.5554558",
"0.5536821",
"0.55331975",
"0.5523699",
"0.5523263",
"0.552083",
"0.54946107",
... | 0.7386967 | 0 |
Returns the neighbour elements given the element position. | def Lt2Y(YKHO):
ceht = YKHO._heart_circumference
KjZT = YKHO._heart_end
nq9s = []
for O_eH in g2DQ.find_excited_locations(YKHO):
WKvO = O_eH[0]
LVAh = O_eH[1]
nq9s.append([(ajwV, skBL) for ajwV in range(WKvO - 1, WKvO + 2) for skBL in range(LVAh - 1, LVAh + 2) if -1 < WKvO <= ceh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vw6J(YKHO):\n if YKHO.element_neighbors_data is not None:\n return YKHO.element_neighbors_data\n c6pq = YKHO.header['element_infos'][0, 2]\n YKHO.element_neighbors_data = []\n YKHO.element_neighbors_edges = []\n print('Looking for neighbors')\n WEpS = ITS7.time()\n for i5jP, ORob in... | [
"0.6952352",
"0.68906534",
"0.67226654",
"0.6646848",
"0.6631842",
"0.65668446",
"0.65414554",
"0.651502",
"0.6505405",
"0.64814734",
"0.64392084",
"0.6421696",
"0.6405796",
"0.6353888",
"0.6351741",
"0.6312198",
"0.63070565",
"0.6304033",
"0.62928617",
"0.6265332",
"0.625952... | 0.0 | -1 |
Test API to get bucketlist by id when id does not exist | def C62X(YKHO):
Ylbp = YKHO.client().get(f'/bucketlist/99')
YKHO.assertEqual(Ylbp.status_code, 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t3XC(YKHO):\n with YKHO.client:\n eOtH = YKHO.get_user_token()\n geh0 = YKHO.client.get('/bucketlists/1', headers=dict(Authorization='Bearer ' + eOtH))\n nPrm = qQXR.loads(geh0.data.decode())\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTrue(nPrm['status'] == 'su... | [
"0.8452869",
"0.8115867",
"0.8113846",
"0.767868",
"0.73052067",
"0.72711307",
"0.72450787",
"0.715663",
"0.69706464",
"0.6965228",
"0.69445795",
"0.6921409",
"0.6859074",
"0.6812505",
"0.6802468",
"0.67841727",
"0.6780305",
"0.6775552",
"0.67690146",
"0.67414135",
"0.6733725... | 0.8581222 | 0 |
Test API to edit bucketlist (PUT Request) | def LJ6k(YKHO):
PX3W = YKHO.client().post('/bucketlist', data={'name': 'Wake up, Eat, Code, Sleep & Repeat'})
YKHO.assertEqual(PX3W.status_code, 201)
F1L6 = qQXR.loads(PX3W.data.decode('UTF-8').replace("'", '"'))
id = F1L6['id']
LrkK = YKHO.client().put(f'bucketlist/{id}', data={'name': "Don't forge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GLol(YKHO):\n aqR5 = YKHO.post_a_bucket()\n YKHO.assertEqual(aqR5.status_code, 201)\n _epd = YKHO.client().put('/bucketlists/1', headers=dict(Authorization='Bearer ' + YKHO.token()), data={'name': 'The seasons will be, summer winter and autumn'})\n YKHO.assertEqual(_epd.status_code, 201)\n wXWk ... | [
"0.8703054",
"0.7808431",
"0.73537976",
"0.7250397",
"0.72338814",
"0.7148291",
"0.7121116",
"0.6990683",
"0.6962019",
"0.6898072",
"0.6881871",
"0.68014103",
"0.67995316",
"0.67813414",
"0.6766084",
"0.6743543",
"0.67432564",
"0.6681097",
"0.6671989",
"0.66679364",
"0.664234... | 0.86224693 | 1 |
Return a MongoDB collection for the passed name. | def pG_h(Emd4, Rr59):
return FfT0.db()[Rr59] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dVja(NCls, mWFP):\n if NCls.hasCollection(mWFP) is False:\n return NCls.createCollection(name=mWFP)\n return NCls[mWFP]",
"def PTw5(wnys, Rr59):\n UzPC = BFCm()\n NCls = UzPC[wnys]\n xUwc = NCls[Rr59]\n return xUwc",
"def dVja(YKHO, wnys, Rr59):\n return YKHO._client[wnys][Rr59]... | [
"0.84404695",
"0.79067606",
"0.7540072",
"0.7426461",
"0.72409904",
"0.7238661",
"0.7229681",
"0.7153125",
"0.7047086",
"0.68828183",
"0.68782574",
"0.6820162",
"0.6805131",
"0.6801796",
"0.67250705",
"0.6653849",
"0.6617294",
"0.65541834",
"0.6530393",
"0.647048",
"0.6439306... | 0.74381703 | 3 |
Instantiate with data in `record`. | def FIMM(YKHO, AIu6=None):
YKHO.record = AIu6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fiqs():\n nonlocal key\n nonlocal value_list\n nonlocal record\n nonlocal origin\n nonlocal field_offset_map\n H5ew = None\n v9CE = None\n if JZXy is not None:\n hLRM = W9y_(JZXy, None, None)\n M5UG = {}\n AIu6 = UBzz(lwds(), hLRM, lwds(), M5UG)",
"def FIMM(YKHO, _7Bf=Non... | [
"0.7235988",
"0.7165694",
"0.6930202",
"0.6895159",
"0.6846218",
"0.6821071",
"0.68088585",
"0.66876",
"0.66790855",
"0.6578508",
"0.6575916",
"0.6553236",
"0.6496165",
"0.6494365",
"0.64263445",
"0.6400598",
"0.639081",
"0.6372391",
"0.63090974",
"0.6307076",
"0.6273901",
... | 0.7857227 | 0 |
Append a transition to this replay buffer. | def SStx(YKHO, QTBn, XeOP, vOGg, rxHc=None, HUMG=None, LavT=False):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OnZY(YKHO, OZkM):\n YKHO.buffer.append(OZkM)",
"def H2v5(YKHO, OZkM: Tuple[np.ndarray, ...]) -> AzJI[ImMB, ...]:\n YKHO.n_step_buffer.append(OZkM)\n if len(YKHO.n_step_buffer) < YKHO.n_step:\n return ()\n vOGg, rxHc, _ins = AJ8j(YKHO.n_step_buffer, YKHO.gamma)\n yvGc, XeOP = YKHO.n_step... | [
"0.7663282",
"0.718715",
"0.712925",
"0.69533914",
"0.6947914",
"0.6947191",
"0.68793166",
"0.6812801",
"0.6733622",
"0.6583606",
"0.65735734",
"0.654736",
"0.65000296",
"0.6462874",
"0.64273465",
"0.62920296",
"0.6190002",
"0.61723566",
"0.6153173",
"0.6118729",
"0.60905623"... | 0.5877804 | 31 |
Test instantiation of base object | def DlSD(YKHO):
_Kwd = fIZh(api_client=YKHO.IDS_SYS_CLIENT)
YKHO.assertIsNotNone(_Kwd)
YKHO.assertEqual(_Kwd._api_client, YKHO.IDS_SYS_CLIENT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zb5a(YKHO):\n BzZr = i_Aq()\n dQTi = str(BzZr)\n YKHO.assertTrue(dQTi[:50], '<models.base.Base object at ')\n YKHO.assertTrue(BzZr.id, 1)\n RL4V = i_Aq(420)\n wY1Q = str(RL4V)\n YKHO.assertTrue(wY1Q[:50], '<models.base.Base object at ')\n YKHO.assertTrue(RL4V.id, 420)\n NZ_J = i_Aq()... | [
"0.75064766",
"0.7350004",
"0.7156196",
"0.70872116",
"0.707545",
"0.7049001",
"0.7021522",
"0.70207465",
"0.6986435",
"0.6966611",
"0.69528365",
"0.6835019",
"0.6835019",
"0.68020636",
"0.6798122",
"0.67937195",
"0.6790586",
"0.676744",
"0.67331874",
"0.6704704",
"0.6690436"... | 0.67533976 | 18 |
Return the most recent round number in which the current leader was previously leader. | def MRyH(YKHO):
for Mkmy in range(YKHO.round - 1, 0, -1):
if YKHO.leaders[Mkmy] == YKHO.leader:
return Mkmy
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G6L_(YKHO):\n if not YKHO.child_history:\n return None\n return YKHO.score_for_attempt(-1)",
"def G6L_(YKHO):\n if not YKHO.child_history:\n return None\n return YKHO.child_history[-1].get('score')",
"def b0Rx(YKHO):\n return YKHO.turns.latest('number')",
"def pGiD(YKHO):\n ... | [
"0.6638657",
"0.6398866",
"0.6312401",
"0.630607",
"0.62277234",
"0.61071503",
"0.61071503",
"0.6046409",
"0.60040575",
"0.59547776",
"0.59475803",
"0.5873872",
"0.58482575",
"0.58208615",
"0.5816444",
"0.58012736",
"0.5780201",
"0.5770921",
"0.57672983",
"0.57581395",
"0.575... | 0.7695777 | 0 |
Returns the next message from the message queue without removing it. | def SniP(YKHO) -> h8nf[vM0C]:
if YKHO._message_queue:
return YKHO._message_queue[0]
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bdpA(YKHO):\n yEHD = YKHO._msq_queue.receive_messages(AttributeNames=['All'], MessageAttributeNames=['All'], MaxNumberOfMessages=1, VisibilityTimeout=YKHO._vis_timeout, WaitTimeSeconds=YKHO._wait_time)\n if not yEHD:\n raise _1zp('No Messages receivable from Queue')\n elif len(yEHD) == 1:\n ... | [
"0.79111135",
"0.7808662",
"0.76835024",
"0.7362662",
"0.73599327",
"0.7308949",
"0.7258198",
"0.7168249",
"0.71140194",
"0.7090979",
"0.70531934",
"0.70370066",
"0.69149953",
"0.69149953",
"0.6863086",
"0.68589836",
"0.6842349",
"0.6840149",
"0.68179965",
"0.6813469",
"0.677... | 0.87598956 | 0 |
Compute RMS difference between two Numeric vectors. | def N17h(S1R7, IDgZ, zuPL, jrTT):
from Stats import Stats
UXqs = zuPL + ' - ' + S1R7
yk4i = jrTT - IDgZ
return Stats().label(UXqs).addm(yk4i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fHjV(jzdc, Fg_i):\n kc6Y = []\n for YRbF in range(len(jzdc)):\n lWPh = (jzdc[YRbF][0] - Fg_i[YRbF][0]) ** 2 + (jzdc[YRbF][1] - Fg_i[YRbF][1]) ** 2 + (jzdc[YRbF][2] - Fg_i[YRbF][2]) ** 2\n kc6Y.append(lWPh)\n irEH = PZyS(0.01 * T3W3(kc6Y))\n return irEH",
"def erXU(jzdc, Fg_i):\n ... | [
"0.7263409",
"0.6774092",
"0.6655138",
"0.66530836",
"0.6575068",
"0.65204257",
"0.6507846",
"0.6381194",
"0.62833047",
"0.625324",
"0.62486935",
"0.6236806",
"0.61763144",
"0.6148883",
"0.6089612",
"0.6081539",
"0.60053456",
"0.6001604",
"0.6000584",
"0.59957194",
"0.5977787... | 0.0 | -1 |