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 |
|---|---|---|---|---|---|---|
Split a date string into units and epoch | def t9_v(JvEs: str):
try:
rYO3, bGrB, qtWj = JvEs.split(None, 2)
except ValueError:
raise ValueError(f'Invalid format: {JvEs}')
else:
return (rYO3.lower(), hfK9(qtWj)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ucfl(JvEs: str):\n try:\n qtWj = hfK9(JvEs)\n except ValueError:\n pass\n else:\n return (em2q(qtWj), 0.0)\n rYO3, qtWj = t9_v(JvEs)\n if rYO3 not in og_j.keys():\n raise ValueError(f'Invalid units: {rYO3}')\n return (em2q(qtWj), og_j[rYO3])",
"def Ucfl(JvEs: str... | [
"0.7257494",
"0.7253272",
"0.67156667",
"0.64704216",
"0.63837385",
"0.6196135",
"0.6182121",
"0.60728586",
"0.6071914",
"0.60442466",
"0.6017566",
"0.60019803",
"0.5955302",
"0.588226",
"0.58331114",
"0.58295196",
"0.5822171",
"0.5812971",
"0.58089995",
"0.57947624",
"0.5778... | 0.78031945 | 0 |
Convert a ``numpy`` ``datetime`` array to seconds since ``epoch`` | def w6KO(_c1T: float | np.ndarray, qtWj: str | tuple | list | np.datetime64=NAIZ):
if isinstance(qtWj, (tuple, list)):
qtWj = oyIN.datetime64(qcWV.datetime(*qtWj))
elif isinstance(qtWj, str):
qtWj = oyIN.datetime64(hfK9(qtWj))
return (_c1T - qtWj) / oyIN.timedelta64(1, 's') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jEKs(a1PO) -> float:\n return a1PO.astype(int) / 1000000000.0",
"def gdlA(a1PO):\n return qcWV.fromtimestamp(a1PO / 1000.0)",
"def SWek(ppPa, qtWj=None):\n return ccOx(ppPa) / 10.0 ** 6",
"def IMJE(_c1T):\n g75m = _c1T - qtWj\n return g75m.days * 86400 + g75m.seconds + float(g75m.microseco... | [
"0.7118472",
"0.7046606",
"0.6772909",
"0.66768813",
"0.66768813",
"0.6676594",
"0.6578405",
"0.65100276",
"0.6425068",
"0.6245704",
"0.6234241",
"0.6234241",
"0.6190503",
"0.61882025",
"0.6174044",
"0.5989631",
"0.5972627",
"0.59568745",
"0.59374034",
"0.5933194",
"0.5920487... | 0.720014 | 0 |
Universal Time (UT) as Julian Days | def PNlG(YKHO):
return YKHO.MJD + 2400000.5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yXE8():\n import time\n bmCG = time.time() / 86400.0 + 40587.0\n return bmCG + 2400000.5",
"def TPui(YKHO):\n jzdc = (14 - YKHO._month) // 12\n LVAh = YKHO._year + 4800 - jzdc\n r8hN = YKHO._month + 12 * jzdc - 3\n return YKHO._day + (153 * r8hN + 2) // 5 + 365 * LVAh + LVAh // 4 - LVAh ... | [
"0.715137",
"0.71111745",
"0.69940096",
"0.6913078",
"0.68461066",
"0.6762256",
"0.66047966",
"0.6559268",
"0.64414185",
"0.634221",
"0.630194",
"0.6293434",
"0.6263928",
"0.6248005",
"0.6168659",
"0.61454284",
"0.6137253",
"0.6083866",
"0.6073943",
"0.6063152",
"0.60316104",... | 0.64695466 | 8 |
Counts the number of leap seconds between a given GPS time and UTC | def QmcZ(CYvG: np.ndarray | float, G34s: bool=True):
ESY6 = YrGW(truncate=G34s)
Sgjt = oyIN.zeros_like(CYvG, dtype=oyIN.float64)
for YRbF, SBwZ in enumerate(ESY6):
UHFx = oyIN.count_nonzero(CYvG >= SBwZ)
if UHFx > 0:
_0VL = oyIN.nonzero(CYvG >= SBwZ)
Sgjt[_0VL] += 1.0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ze60(h5YN, Ethl=18):\n Sz83 = '%Y-%m-%d %H:%M:%S'\n qtWj = qcWV.datetime.strptime('1980-01-06 00:00:00', Sz83)\n MtRo = h5YN - qtWj + qcWV.timedelta(seconds=Ethl)\n gn7z = MtRo.days // 7\n jbOH = MtRo.days - 7 * gn7z\n nzYb = MtRo.seconds + 86400 * (MtRo.days - 7 * gn7z)\n return (gn7z, jb... | [
"0.65216655",
"0.5833346",
"0.57278067",
"0.56890005",
"0.56728673",
"0.5596442",
"0.5512546",
"0.54993033",
"0.53895235",
"0.53806776",
"0.5326265",
"0.5325846",
"0.52866095",
"0.52589804",
"0.51825666",
"0.51720935",
"0.5155383",
"0.5153672",
"0.511898",
"0.51158345",
"0.50... | 0.714384 | 0 |
create an OnnxRuntime InferenceSession. | def P7rU(YKHO):
xPXn = Ipp5.SessionOptions()
xPXn.graph_optimization_level = Ipp5.GraphOptimizationLevel.ORT_DISABLE_ALL
YKHO.infer_session = Ipp5.InferenceSession(YKHO.augmented_model_path, sess_options=xPXn, providers=YKHO.execution_providers) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ti9h(YKHO, zaqo):\n xPXn = EDqr.SessionOptions()\n xPXn.execution_mode = EDqr.ExecutionMode.ORT_SEQUENTIAL\n xPXn.graph_optimization_level = EDqr.GraphOptimizationLevel.ORT_ENABLE_ALL\n YKHO.ort_session = EDqr.InferenceSession(zaqo, sess_options=xPXn)",
"def gte4(V1C0, l3zO):\n if l3zO == 'GPU... | [
"0.64287347",
"0.63863736",
"0.6347452",
"0.5931692",
"0.5925455",
"0.58672893",
"0.5637707",
"0.5620587",
"0.5582713",
"0.55574703",
"0.550082",
"0.5489399",
"0.547671",
"0.54669124",
"0.5439374",
"0.54066926",
"0.5406201",
"0.53796494",
"0.5331371",
"0.5314776",
"0.5209954"... | 0.82782066 | 0 |
Sets the token_expiration of this OrgApacheJackrabbitOakSecurityAuthenticationTokenTokenConfiguraProperties. | def rkQY(YKHO, rkQY):
YKHO._token_expiration = rkQY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bdZ1(YKHO):\n YKHO.expiration = qcWV.now() + fCoM(seconds=YKHO.expires_in - 10)\n G9jH.debug('Token expiration set to %s' % YKHO.expiration)",
"def T8Ds(YKHO, ihMv):\n YKHO.token_expiration_time = JRYC.datetime.utcnow() + JRYC.timedelta(0, ihMv)",
"def Mige(YKHO, Mige):\n YKHO._expiration_inter... | [
"0.65515846",
"0.6489425",
"0.61133724",
"0.6036679",
"0.58961684",
"0.55701935",
"0.5387193",
"0.536487",
"0.5342043",
"0.5285386",
"0.5218918",
"0.5185711",
"0.5058732",
"0.50248253",
"0.49781796",
"0.4948664",
"0.49243316",
"0.48843396",
"0.48690245",
"0.4849527",
"0.48338... | 0.7860061 | 0 |
Sets the password_hash_iterations of this OrgApacheJackrabbitOakSecurityAuthenticationTokenTokenConfiguraProperties. | def uyge(YKHO, uyge):
YKHO._password_hash_iterations = uyge | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L4rx(YKHO, jTXt):\n NTfD = B8ni.gensalt()\n YKHO.password_hash = B8ni.hashpw(jTXt.encode(), NTfD)",
"def UJMA(YKHO, UJMA):\n YKHO._password_hash_algorithm = UJMA",
"def G3s8(YKHO, jTXt):\n YKHO.password = vT87(jTXt, method='pbkdf2:sha256')",
"def G3s8(YKHO, jTXt):\n YKHO.password_hash = vT... | [
"0.61004245",
"0.6039315",
"0.57552356",
"0.56171733",
"0.5576066",
"0.5576066",
"0.5562618",
"0.55493253",
"0.55397487",
"0.5534445",
"0.5534032",
"0.54852223",
"0.5428458",
"0.5395618",
"0.5395618",
"0.5395618",
"0.5395618",
"0.5382891",
"0.5292858",
"0.5260845",
"0.5180539... | 0.7950528 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, n5GO):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.80886984",
"0.80886984",
"0.8055307",
"0.7983415",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Checks whether two models parameters are equal | def wMrk(jpdd, SSy6):
for H5ew, wEf2 in jpdd.items():
if oyIN.any(jpdd[H5ew] != SSy6[H5ew]):
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jhBn(zErd: TopLevelOscalModel, BuIN: TopLevelOscalModel) -> bool:\n BuIN.metadata.last_modified = zErd.metadata.last_modified\n return zErd == BuIN",
"def xa14(YKHO, Elif: 'ModelParameters') -> bool:\n if not isinstance(Elif, z0p7) or len(YKHO) != len(Elif):\n return False\n else:\n ... | [
"0.7516173",
"0.74578166",
"0.7345072",
"0.7342032",
"0.7218318",
"0.72155297",
"0.710855",
"0.7100062",
"0.70620775",
"0.6999765",
"0.6909127",
"0.6865819",
"0.68470407",
"0.6826237",
"0.68185353",
"0.67935354",
"0.6775829",
"0.67686844",
"0.6742816",
"0.6725789",
"0.6703481... | 0.6883297 | 11 |
Convert given row and column number to an Excelstyle cell name. | def mHvB(fvDH):
Aofo = []
while fvDH:
fvDH, wXAI = divmod(fvDH - 1, 26)
Aofo[:0] = _3F9[wXAI]
return ''.join(Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i61D(YKHO, a35g, rdlD, fvDH):\n return YKHO.bitcell_array.get_cell_name(a35g + '{}x'.format(cqzv.hier_seperator) + YKHO.bitcell_array_inst.name, rdlD, fvDH)",
"def wamL(exwG):\n assert 0 < exwG <= 256\n gZgb = [chr(WKvO) for WKvO in Ni9Y(65, 91)]\n if exwG > 26:\n return '{0}{1}'.format(gZ... | [
"0.6875886",
"0.6873031",
"0.6624854",
"0.646285",
"0.6194314",
"0.59675694",
"0.58355004",
"0.5832388",
"0.5810062",
"0.578682",
"0.5703801",
"0.5666068",
"0.5597809",
"0.55182964",
"0.5498179",
"0.54974335",
"0.5480556",
"0.5470536",
"0.5445592",
"0.5410976",
"0.5398021",
... | 0.5506305 | 14 |
Calculates the softmax for each row of the input x. Your code should work for a row vector and also for matrices of shape (n, m). | def N93T(WKvO):
yRgo = oyIN.exp(WKvO)
qjcP = oyIN.sum(yRgo, axis=1, keepdims=True)
KCHu = yRgo / qjcP
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n WKvO = oyIN.array(WKvO)\n if WKvO.ndim == 1:\n return ki3q(WKvO)\n else:\n OApJ = oyIN.array([ki3q(fvDH) for fvDH in WKvO.T])\n return OApJ.T",
"def N93T(WKvO: npt.NDArray) -> eQHC.NDArray:\n Z5xZ = oyIN.max(WKvO, axis=1).reshape(-1, 1)\n O48W = oyIN.exp(WKvO... | [
"0.8463776",
"0.8435088",
"0.8414381",
"0.82625526",
"0.8240777",
"0.8203867",
"0.8156382",
"0.81255054",
"0.8109221",
"0.8072896",
"0.8058246",
"0.8042024",
"0.7988304",
"0.7928008",
"0.7902256",
"0.78875816",
"0.7881924",
"0.7847789",
"0.78416556",
"0.7826352",
"0.7824393",... | 0.7576917 | 89 |
Return storage type if there is only one. This should always return a type in relational databases, but does not have to in databases such as MongoDB. | def JA8_(YKHO):
if len(YKHO.storage_types) == 1:
return list(YKHO.storage_types)[0]
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JA8_(YKHO):\n if len(YKHO.storage_types) == 1:\n return list(YKHO.storage_types)[0]\n else:\n return None",
"def JA8_(YKHO):\n if len(YKHO.storage_types) == 1:\n return list(YKHO.storage_types)[0]\n else:\n return None",
"def kTwo(YKHO) -> str:\n return qe4Y.get(Y... | [
"0.84290254",
"0.84290254",
"0.81773037",
"0.81211674",
"0.81211674",
"0.81211674",
"0.79246795",
"0.771355",
"0.7289832",
"0.7134607",
"0.7115287",
"0.7115287",
"0.71080095",
"0.70176816",
"0.69720024",
"0.69720024",
"0.6906267",
"0.6888628",
"0.6732944",
"0.6709205",
"0.665... | 0.8422047 | 2 |
Initialize source stream. If the fields are not initialized, then they are read from the table. | def uIcm(YKHO):
if not YKHO.context:
YKHO.context = PeYM(YKHO.url, YKHO.connection, YKHO.schema)
if YKHO.table is None:
YKHO.table = YKHO.context.table(YKHO.table_name)
if not YKHO.fields:
YKHO.read_fields()
YKHO.field_names = YKHO.fields.names() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def euOf(YKHO, tyNF: 'Table'):\n if not YKHO.columns:\n YKHO.columns = tyNF.columns\n YKHO._data = tyNF.data",
"def zPKT(YKHO):\n if 'SOURCE_DATA' in globals():\n for WVQo in V_D6(YKHO):\n setattr(YKHO, WVQo.name, getattr(iOOF, WVQo.name))",
"def FIMM(YKHO, JZXy, uPxI, rvXM=Fa... | [
"0.6567911",
"0.64584345",
"0.64303744",
"0.62981564",
"0.6155012",
"0.61321723",
"0.6029323",
"0.59548885",
"0.59049594",
"0.5894522",
"0.58836263",
"0.5859183",
"0.58539855",
"0.58505374",
"0.58505374",
"0.58505374",
"0.58505374",
"0.58505374",
"0.58505374",
"0.58505374",
"... | 0.6926253 | 0 |
Sets a name for `node`. Raises an exception if the `node` is not part of the stream, if `name` is empty or there is already node with the same name. | def cjq_(YKHO, Q6kx, mWFP):
if not mWFP:
raise ValueError('No node name provided for rename')
if mWFP in YKHO.nodes():
raise ValueError("Node with name '%s' already exists" % mWFP)
qrLi = YKHO.node_name(Q6kx)
del YKHO.nodes[qrLi]
YKHO.nodes[mWFP] = Q6kx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO.stream.set_node_name(YKHO.node, mWFP)",
"def oSgC(YKHO, mWFP):\n L3iJ.xmlNodeSetName(YKHO._o, mWFP)",
"def AwDt(YKHO, BWXx: str):\n YKHO._properties['nodeName'] = BWXx",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"de... | [
"0.83490866",
"0.7088931",
"0.6897682",
"0.6853107",
"0.6853107",
"0.6769459",
"0.67315155",
"0.6702388",
"0.6701894",
"0.668318",
"0.6648065",
"0.6642689",
"0.6640702",
"0.6640702",
"0.6640702",
"0.6640702",
"0.6634831",
"0.6628643",
"0.66260713",
"0.6609876",
"0.65992534",
... | 0.7324265 | 1 |
Return dictionary representation of the field. | def MNRr(YKHO):
Csk6 = {'name': YKHO.name, 'label': YKHO.label, 'storage_type': YKHO.storage_type, 'analytical_type': YKHO.analytical_type, 'concrete_storage_type': YKHO.concrete_storage_type, 'missing_values': YKHO.missing_values}
return Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n tbx9 = {}\n for eHNT in YKHO._meta.fields:\n if eHNT.name == 'created':\n tbx9[eHNT.name] = str(eHNT.value_from_object(YKHO))\n else:\n tbx9[eHNT.name] = eHNT.value_from_object(YKHO)\n return tbx9",
"def G9qP(YKHO):\n return {'name': YKHO.name, 'l... | [
"0.7392628",
"0.738731",
"0.72834563",
"0.7272394",
"0.72522825",
"0.72284466",
"0.72047096",
"0.713855",
"0.70919913",
"0.70575505",
"0.7041807",
"0.70039463",
"0.69826317",
"0.69761455",
"0.69625425",
"0.69602543",
"0.69359726",
"0.6919989",
"0.6919989",
"0.691676",
"0.6912... | 0.6696163 | 85 |
Return field name as field string representation. | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d0Dv(YKHO) -> str:\n return YKHO._field_name",
"def VS2R(YKHO, Jyyj):\n mWFP = Jyyj.name\n mWFP = ujeG(mWFP)\n if YKHO.options(Jyyj).convert_case:\n mWFP = A13V(mWFP)\n mWFP = YKHO._mangle_name(mWFP)\n return mWFP",
"def qc6A(YKHO) -> str:\n mWFP = YKHO._resolve_field_name()\n ... | [
"0.7857624",
"0.78311974",
"0.76416886",
"0.7597991",
"0.7528716",
"0.748733",
"0.7357914",
"0.7356117",
"0.7232144",
"0.72058624",
"0.71373785",
"0.70608956",
"0.70161134",
"0.6975634",
"0.6858445",
"0.6816973",
"0.6816973",
"0.6803938",
"0.6796402",
"0.67763567",
"0.6700877... | 0.0 | -1 |
Return a list representing field selector which fields are selected from a row. | def g3yn(YKHO, V_D6=None):
peYG = [str(Jyyj) for Jyyj in V_D6]
g3yn = [QMSQ(mWFP) in peYG for mWFP in YKHO.names()]
return g3yn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IwKd(YKHO):\n return []",
"def nQuP(YKHO):\n tyNF = YKHO.ui.tableFields\n usx6 = tyNF.rowCount()\n WfCS = tyNF.columnCount()\n V_D6 = []\n for YRbF in range(usx6):\n V_D6.append(tuple(map(lambda WKvO: tyNF.item(YRbF, WKvO).text(), range(WfCS))))\n return V_D6",
"def mZEv(YKHO, V... | [
"0.7673547",
"0.67533666",
"0.65299696",
"0.6491336",
"0.64159906",
"0.62741077",
"0.6236396",
"0.6159341",
"0.60381097",
"0.60081404",
"0.59687746",
"0.5967494",
"0.59337884",
"0.5927561",
"0.59260964",
"0.58889085",
"0.5869368",
"0.5869368",
"0.5823076",
"0.57602054",
"0.57... | 0.67026454 | 2 |
Coalesces `value` to given storage `type`. `empty_values` is a dictionary where keys are storage type names and values are values to be used as empty value replacements. | def C3Go(BWXx, kTwo, B27m=None, Nlxd=False):
if B27m is None:
B27m = {}
if kTwo in ['string', 'text']:
if Nlxd:
BWXx = BWXx.strip()
elif BWXx:
BWXx = QMSQ(BWXx)
if BWXx == '' or BWXx is None:
BWXx = B27m.get('string')
elif kTwo == 'integer'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def blj_(jQS2):\n if jQS2 not in oIVz:\n return VYD8(jQS2)\n else:\n return jQS2",
"def GPmI(dict):\n if dict['type'] == 'string' and (dict['value'] == None or dict['value'] == ''):\n dict['value'] = '\"\"'",
"def lsmZ(Emd4, gjwY, fX1C):\n return Emd4(dcttype=tjLd(gjwY, fX1C))"... | [
"0.58325046",
"0.521288",
"0.49877736",
"0.4948348",
"0.48418808",
"0.4832019",
"0.4825413",
"0.47597077",
"0.47303224",
"0.47151342",
"0.47076306",
"0.4702731",
"0.46962714",
"0.46962714",
"0.46882483",
"0.46549195",
"0.4623449",
"0.4623449",
"0.4623449",
"0.4623449",
"0.462... | 0.65644866 | 0 |
Get all subclasses of node. | def bC3X(tk5Y, veV6=False):
KndY = []
for Z9rn in BfDw.subclass_iterator(tk5Y):
try:
U34r = jAKg(Z9rn)
PGEZ = U34r.get('type')
if PGEZ != 'abstract':
KndY.append(Z9rn)
except AttributeError:
pass
return KndY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B5QF(Emd4):\n return Emd4.__subclasses__() + [Oa1e for KCHu in Emd4.__subclasses__() for Oa1e in KCHu.descendants()]",
"def TPXT(YKHO, rV9y: TypeInfo) -> j_2z[Z4lX]:\n if rV9y not in YKHO._graph:\n return j_2z([rV9y])\n Aofo: j_2z[Z4lX] = j_2z(jHsn.descendants(YKHO._graph, rV9y))\n Aofo.ad... | [
"0.7140406",
"0.6957714",
"0.6886573",
"0.6848165",
"0.68365824",
"0.6833044",
"0.6756908",
"0.67236257",
"0.66959816",
"0.66798323",
"0.6634815",
"0.6603208",
"0.65786904",
"0.65046304",
"0.64756143",
"0.64746326",
"0.6457086",
"0.6451578",
"0.6394505",
"0.6363579",
"0.63500... | 0.7421831 | 0 |
Initializes the node. Initialization is separated from creation. Put any Node subclass initialization in this method. Default implementation does nothing. | def uIcm(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.root = YKHO.Node(None)",
"def FIMM(YKHO):\n YKHO.root = o7DN(None)",
"def uIcm(YKHO, Q6kx: MComputeNode):\n raise Exception('Subclass responsibility')",
"def FIMM(YKHO):\n YKHO.__root = o7DN()",
"def FIMM(YKHO):\n YKHO.root = o7DN('')",
"def FIMM(YKHO):\n YKHO.roo... | [
"0.7394568",
"0.7317101",
"0.7298309",
"0.7248716",
"0.71772677",
"0.7159799",
"0.71550786",
"0.7080142",
"0.7070756",
"0.7070756",
"0.7045996",
"0.6988274",
"0.698752",
"0.698752",
"0.698752",
"0.69853956",
"0.6927686",
"0.6922692",
"0.6920655",
"0.68968785",
"0.68796796",
... | 0.62976766 | 65 |
Return single node imput if exists. Convenience property for nodes which process only one input. Raises exception if there are no inputs or are more than one imput. | def input(YKHO):
if len(YKHO.inputs) == 1:
return YKHO.inputs[0]
else:
raise Exception('Single input requested. Node has none or more than one input (%d).' % len(YKHO.inputs)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hGmc(C3ST):\n iter = C3ST.GetNodes()\n while iter.IsValid():\n Q6kx = iter.Get()\n if 'InputNode' in Q6kx.GetRuntimeTypeName():\n return Q6kx\n iter.Next()\n return None",
"def xTXk(YKHO, bIwZ: int):\n uvt8 = YKHO.input_nodes(bIwZ)\n if len(uvt8) != 1:\n ... | [
"0.6151729",
"0.5955724",
"0.5748265",
"0.5743951",
"0.53562725",
"0.5282334",
"0.52456343",
"0.51267284",
"0.5086693",
"0.49852207",
"0.4975962",
"0.49515104",
"0.49140608",
"0.49103492",
"0.49075767",
"0.48992518",
"0.48833162",
"0.48802078",
"0.4870505",
"0.48196357",
"0.4... | 0.6596412 | 0 |
Retype an output field `name` to field `field`. | def aygX(YKHO, mWFP, **azoT):
YKHO._retype_dictionary[mWFP] = azoT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zuOP(YKHO, mWFP):\n return YKHO.field(mWFP).toPyObject()",
"def kl5h(YKHO):\n wsY0 = YKHO.original_field.__class__\n if isinstance(YKHO.original_field, V_D6.CharField):\n return wsY0(max_length=YKHO.original_field.max_length)\n return wsY0()",
"def nrOS(YKHO, vXX7):\n try:\n re... | [
"0.6752095",
"0.6315052",
"0.6160488",
"0.6054666",
"0.5919098",
"0.584958",
"0.57491964",
"0.57263315",
"0.57225895",
"0.5691854",
"0.5658548",
"0.56518394",
"0.5613815",
"0.55921423",
"0.55889755",
"0.5578654",
"0.557052",
"0.5529592",
"0.5525257",
"0.5491146",
"0.548618",
... | 0.0 | -1 |
Creates a node that will select records where `field` contains value from `value_set`. | def FIMM(YKHO, Jyyj=None, PYV9=None, FaAz=False):
super(FOpC, YKHO).__init__()
YKHO.field = Jyyj
YKHO.value_set = PYV9
YKHO.discard = FaAz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sjXf(YKHO, BWXx, JhNp=False):\n G7cG = YKHO.copy()\n G7cG.setOp(_aLO.Op.Contains)\n G7cG.setValue(BWXx)\n G7cG.setCaseSensitive(JhNp)\n return G7cG",
"def MBe8(Jyyj, sjci):\n if Jyyj == 'date':\n xCjU = o2Vr.select().where(o2Vr.date == sjci)\n return xCjU\n elif Jyyj == 'em... | [
"0.61387366",
"0.5894773",
"0.58398205",
"0.56510174",
"0.56493205",
"0.56202406",
"0.5549655",
"0.55027217",
"0.5488821",
"0.54749596",
"0.54177004",
"0.5409625",
"0.5339753",
"0.53032535",
"0.52950317",
"0.5278579",
"0.5220621",
"0.51991963",
"0.5172268",
"0.516876",
"0.510... | 0.538276 | 12 |
Return storage type if there is only one. This should always return a type in relational databases, but does not have to in databases such as MongoDB. | def JA8_(YKHO):
if len(YKHO.storage_types) == 1:
return list(YKHO.storage_types)[0]
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JA8_(YKHO):\n if len(YKHO.storage_types) == 1:\n return list(YKHO.storage_types)[0]\n return None",
"def kTwo(YKHO) -> str:\n return qe4Y.get(YKHO, 'storage_type')",
"def kTwo(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'storage_type')",
"def kTwo(YKHO) -> h8nf[qe4Y.Input[s... | [
"0.84219027",
"0.81767267",
"0.81212354",
"0.81212354",
"0.81212354",
"0.79251057",
"0.7713634",
"0.7288947",
"0.71342427",
"0.7114066",
"0.7114066",
"0.71074",
"0.7018581",
"0.6972723",
"0.6972723",
"0.6906787",
"0.6888426",
"0.67335147",
"0.6708264",
"0.6656682",
"0.6612755... | 0.84288293 | 0 |
Return storage type if there is only one. This should always return a type in relational databases, but does not have to in databases such as MongoDB. | def JA8_(YKHO):
if len(YKHO.storage_types) == 1:
return list(YKHO.storage_types)[0]
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JA8_(YKHO):\n if len(YKHO.storage_types) == 1:\n return list(YKHO.storage_types)[0]\n return None",
"def kTwo(YKHO) -> str:\n return qe4Y.get(YKHO, 'storage_type')",
"def kTwo(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'storage_type')",
"def kTwo(YKHO) -> h8nf[qe4Y.Input[s... | [
"0.8422102",
"0.8176501",
"0.81210995",
"0.81210995",
"0.81210995",
"0.7924676",
"0.77130455",
"0.7289685",
"0.71347797",
"0.71145844",
"0.71145844",
"0.710812",
"0.7017996",
"0.69726884",
"0.69726884",
"0.6906241",
"0.68885106",
"0.67330426",
"0.67083806",
"0.66560495",
"0.6... | 0.8429062 | 1 |
Sets name of current node. | def WZrJ(YKHO, mWFP):
YKHO.stream.set_node_name(YKHO.node, mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP)... | [
"0.79930604",
"0.79815876",
"0.79815876",
"0.79815876",
"0.79815876",
"0.79815876",
"0.7972499",
"0.7959629",
"0.7959629",
"0.7954432",
"0.79386765",
"0.7903524",
"0.79033303",
"0.79033303",
"0.79007787",
"0.78796196",
"0.78541315",
"0.7770957",
"0.77659255",
"0.77659255",
"0... | 0.88172925 | 0 |
Create a default logger | def lmAE():
global logger
bo34 = G9jH.getLogger(E70h)
uaPq = G9jH.Formatter(fmt='%(asctime)s %(levelname)s %(message)s')
DCgT = G9jH.StreamHandler()
DCgT.setFormatter(uaPq)
bo34.addHandler(DCgT)
return bo34 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y07P(GPtr):\n return sVtP(GPtr, CfXJ, loggers=None)",
"def lmAE() -> G9jH.Logger:\n pass",
"def lmAE():\n G9jH.basicConfig(level=G9jH.INFO, filename='logging', filemode='w')\n bo34 = G9jH.getLogger(' ')\n QCtm = G9jH.FileHandler('logging')\n QCtm.setLevel(G9jH.INFO)\n bo34.addHandler(Q... | [
"0.809169",
"0.7998874",
"0.774856",
"0.7713438",
"0.7710585",
"0.7466199",
"0.74572444",
"0.7447276",
"0.74315107",
"0.7409398",
"0.74037707",
"0.73186123",
"0.7294232",
"0.7293659",
"0.72897285",
"0.72745645",
"0.72398216",
"0.72253305",
"0.71935004",
"0.7160885",
"0.715393... | 0.7786755 | 2 |
Generator over all subclasses of a given class, in depth first order. | def kX4a(Emd4, LwWV=None):
if not isinstance(Emd4, type):
raise TypeError('_subclass_iterator must be called with new-style classes, not %.100r' % Emd4)
LwWV = LwWV or set()
try:
zbDt = Emd4.__subclasses__()
except TypeError:
zbDt = Emd4.__subclasses__(Emd4)
for finE in zbDt:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ty1Z(Emd4):\n for dm7U in Emd4.__subclasses__():\n yield dm7U\n for IXEH in Ty1Z(dm7U):\n yield IXEH",
"def Okba(kJjn):\n for Emd4 in kJjn:\n esbs = Emd4.__subclasses__()\n if esbs:\n for qWQn in Okba(esbs):\n yield qWQn\n else:\n ... | [
"0.7962231",
"0.7943153",
"0.7784564",
"0.7563064",
"0.7522415",
"0.7415031",
"0.73414916",
"0.73381543",
"0.73268855",
"0.7237079",
"0.7028352",
"0.70265555",
"0.70090574",
"0.69635135",
"0.6907735",
"0.6889192",
"0.6881786",
"0.68299997",
"0.68015057",
"0.6777709",
"0.67390... | 0.7539626 | 4 |
Set the Group ID for the service to be registered. | def e_JJ(YKHO, e7pw):
r6CV.blpapi_ServiceRegistrationOptions_setGroupId(YKHO.__handle, e7pw.encode('utf-8')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hE03(YKHO, hE03):\n YKHO._group_id = hE03",
"def hE03(YKHO, hE03):\n YKHO._group_id = hE03",
"def hE03(YKHO, hE03):\n YKHO._group_id = hE03",
"def hE03(YKHO, hE03):\n YKHO._group_id = hE03",
"def hE03(YKHO, hE03):\n YKHO._group_id = hE03",
"def hE03(YKHO, hE03):\n YKHO._group_id = h... | [
"0.7257652",
"0.7257652",
"0.7257652",
"0.7257652",
"0.7257652",
"0.7257652",
"0.6927829",
"0.6887743",
"0.67472553",
"0.6733823",
"0.6626543",
"0.66177475",
"0.6609379",
"0.6551552",
"0.6538167",
"0.64768946",
"0.6458963",
"0.6439793",
"0.6335913",
"0.6293197",
"0.62830555",... | 0.76897526 | 0 |
Return the name of the exchange. This is used by the RESTClientFactory and is NOT the name of the class, but is defined by the class implementation. | def mWFP():
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mQdP(YKHO):\n S0MI.info('Getting the exchange name')\n if YKHO._exchange is None:\n raise I_zA('The exchange is not defined')\n return YKHO._exchange",
"def W0tD(Emd4):\n return Emd4.__name__",
"def mWFP(YKHO):\n return YKHO.__class__.__name__",
"def W0tD(YKHO):\n return YKHO._qn... | [
"0.8098211",
"0.6656022",
"0.66340804",
"0.662712",
"0.6609683",
"0.6591373",
"0.6591373",
"0.6591373",
"0.6591373",
"0.6591373",
"0.65405357",
"0.653918",
"0.653918",
"0.6534172",
"0.65311414",
"0.64898247",
"0.6486621",
"0.6480957",
"0.6480957",
"0.6480957",
"0.6454231",
... | 0.0 | -1 |
Sets the dimention of the stokes vector. | def Zvas(YKHO, ei10):
if ei10 not in [1, 2, 3, 4]:
raise ValueError('The dimention of the stokes vector can only be 1, 2, 3 or 4')
YKHO.stokes_dim = ei10 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PHuS(YKHO, Cia3, Ep8s, XkN1, WYdW):\n YKHO.idd_info = Cia3\n YKHO.block = XkN1\n YKHO.idd_index = Ep8s\n YKHO.idd_version = WYdW",
"def lu4K(YKHO, lu4K: str):\n YKHO._duns = lu4K",
"def HIPy(YKHO, WTkW):\n YChx = oyIN.ones(len(YKHO.phenotypes)) * WTkW\n YKHO.data['stdeviations'] = YChx... | [
"0.632355",
"0.6193907",
"0.5888917",
"0.5645816",
"0.5536929",
"0.55124253",
"0.5478698",
"0.544167",
"0.5424394",
"0.54221827",
"0.53855914",
"0.5377502",
"0.5362815",
"0.53419864",
"0.53410035",
"0.53191084",
"0.53157526",
"0.5282019",
"0.52759916",
"0.5262627",
"0.5243309... | 0.6994929 | 0 |
Clalculates the extinction term based on the given intensity and the absorbtion and scattering coefficent at the given height. | def u0wO(YKHO, _hYw, H2v2):
id = eHNT.argclosest(H2v2, YKHO.height_array)
G1Hx = YKHO.absorption_coeff_field[id] + YKHO.use_scat * YKHO.scattering_coeff_field[id]
if YKHO.stokes_dim == 1:
PaFX = _hYw * oyIN.exp(-G1Hx * YKHO.swiping_height)
else:
PaFX = _SsK(-G1Hx * YKHO.swiping_height) @... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vTVL(WPBc):\n oMqC = 'H2O'\n WPBc.haze.cloudBenneke.readVP(oMqC)\n WPBc.haze.cloudBenneke.cloudbase(WPBc.atm.temp, WPBc.atm.press)\n WPBc.haze.cloudBenneke.extinction(WPBc.spec.wn, WPBc.atm.press)",
"def zpH9(Ayfi, H2v2, UqYS):\n if abs(H2v2) > Ayfi:\n return XTiz.infty\n VYvU = UqYS... | [
"0.5243953",
"0.5232212",
"0.52192557",
"0.52076006",
"0.5106173",
"0.5002402",
"0.49990737",
"0.497829",
"0.49478427",
"0.49193546",
"0.49118948",
"0.487345",
"0.48102024",
"0.4802348",
"0.47917363",
"0.47859445",
"0.477885",
"0.47580746",
"0.47495157",
"0.47404954",
"0.4739... | 0.74419826 | 0 |
True if the message has changed since last read. | def llHi(YKHO):
if YKHO.readable:
nvIL = YKHO.data[:]
nPrm = YKHO.tag.read_binary(0, YKHO._max_le)
zNig = nPrm[0] * 256 + nPrm[1] + 2
J3uN = max(0, zNig - len(nPrm))
while len(nPrm) < zNig:
UHFx = min(YKHO._max_lc, zNig - len(nPrm))
nPrm += YKHO.tag.re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NlI2(YKHO):\n Q6uT = YKHO.readSeq()\n if Q6uT != YKHO.seq:\n YKHO.seq = Q6uT\n return True\n else:\n return False",
"def fj40(YKHO):\n return bool(YKHO.changed_data)",
"def tMYZ(YKHO):\n return YKHO._has_been_modified",
"def wxxj(YKHO):\n return YKHO.timestamp > 0",... | [
"0.7590222",
"0.7515303",
"0.74319184",
"0.7383908",
"0.73827004",
"0.7348319",
"0.7306883",
"0.72848237",
"0.7212825",
"0.7155925",
"0.71495605",
"0.714205",
"0.7109246",
"0.7104731",
"0.7051768",
"0.70474595",
"0.6978085",
"0.6942784",
"0.69229704",
"0.6901572",
"0.6877428"... | 0.69910336 | 16 |
Configure and return the Flask app | def LUif(YKHO):
P4t4.config.from_object('config.TestingConfig')
return P4t4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P4t4(YKHO):\n P1dF = lambda G1Hx: 'Fatal: You need to specify a \"flask\" section ' + 'with an entry like \"' + G1Hx + '=...\" in your .ini file'\n try:\n kvcN = YKHO['flask.app']\n except KeyError:\n raise SystemExit(P1dF('app'))\n try:\n QDug = YKHO['flask.secret_key']\n ... | [
"0.85104823",
"0.81120455",
"0.8054589",
"0.80477077",
"0.7995264",
"0.7929426",
"0.7846994",
"0.7837908",
"0.7773335",
"0.7747373",
"0.7746391",
"0.7729097",
"0.77219594",
"0.7708146",
"0.77017826",
"0.76943517",
"0.7686414",
"0.7680069",
"0.76726705",
"0.76552176",
"0.76191... | 0.76463825 | 20 |
Initialize layers of the head. | def J2K6(YKHO):
YKHO.relu = U78l.ReLU(inplace=True)
YKHO.cls_convs = U78l.ModuleList()
YKHO.reg_convs = U78l.ModuleList()
for YRbF in range(YKHO.stacked_convs):
Fpx_ = YKHO.in_channels if YRbF == 0 else YKHO.feat_channels
YKHO.cls_convs.append(R48A(Fpx_, YKHO.feat_channels, 3, stride=1, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J2K6(YKHO):\n YKHO._init_predictor()\n if YKHO.use_edge_fusion:\n YKHO._init_edge_module()",
"def J2K6(YKHO) -> None:\n YKHO.self_attn = io5z(**YKHO.self_attn_cfg)\n YKHO.cross_attn = io5z(**YKHO.cross_attn_cfg)\n YKHO.embed_dims = YKHO.self_attn.embed_dims\n YKHO.ffn = JcZC(**YKHO.f... | [
"0.7565452",
"0.73801965",
"0.7378758",
"0.70826614",
"0.70083666",
"0.68058515",
"0.6793121",
"0.6747672",
"0.6699219",
"0.6565106",
"0.6552534",
"0.6548868",
"0.6536724",
"0.6533556",
"0.65013635",
"0.64803135",
"0.6478405",
"0.6438143",
"0.6429889",
"0.6428964",
"0.6401287... | 0.67046845 | 8 |
Initialize weights of the head. | def vB93(YKHO):
for r8hN in YKHO.cls_convs:
h6h3(r8hN.conv, std=0.01)
for r8hN in YKHO.reg_convs:
h6h3(r8hN.conv, std=0.01)
dc8C = FQWJ(0.01)
h6h3(YKHO.retina_cls, std=0.01, bias=dc8C)
h6h3(YKHO.retina_reg, std=0.01) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C0Lv(YKHO):\n pass",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)",
"def Y7Gu(YKHO, _mSQ):\n YKHO.init_w = _mSQ",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()",
"def vJuA(YKHO):\n raise NotImplementedError",
"def sTi3(YKHO):\n dIoi.WeightsInitialize... | [
"0.8231931",
"0.8066145",
"0.8041016",
"0.8037346",
"0.79638714",
"0.78825206",
"0.7794443",
"0.7718116",
"0.76905215",
"0.76740956",
"0.7660412",
"0.76257116",
"0.76194113",
"0.75636816",
"0.7554319",
"0.7554319",
"0.75442475",
"0.75423366",
"0.75423366",
"0.75423366",
"0.75... | 0.66495466 | 96 |
Forward feature of a single scale level. | def TDJQ(YKHO, WKvO):
WamW = WKvO
LDUj = WKvO
for Zs2a in YKHO.cls_convs:
WamW = Zs2a(WamW)
for B0GB in YKHO.reg_convs:
LDUj = B0GB(LDUj)
jEdC = YKHO.retina_cls(WamW)
xnQT = YKHO.retina_reg(LDUj)
return (jEdC, xnQT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fqku(YKHO, WKvO):\n raise NotImplementedError",
"def KVH6(YKHO, WKvO):\n WKvO = YKHO.features(WKvO)\n return WKvO",
"def TDJQ(YKHO, WKvO, NXpY):\n WamW = WKvO\n LDUj = WKvO\n for Zs2a in YKHO.cls_convs:\n WamW = Zs2a(WamW)\n for B0GB in YKHO.reg_convs:\n LDUj = B0GB(LDUj)... | [
"0.74690366",
"0.68007946",
"0.65777415",
"0.6515914",
"0.6515914",
"0.6404764",
"0.6320513",
"0.6306763",
"0.6299315",
"0.6285584",
"0.6279949",
"0.6200305",
"0.6179189",
"0.6158268",
"0.6132828",
"0.6124821",
"0.61077636",
"0.61061907",
"0.6104554",
"0.6101124",
"0.6098391"... | 0.0 | -1 |
Computes all applicable offers if the offer type is PriceDrop. | def Tpah(YKHO, tvti, A1WC, bKC5):
CK0Y = tvti.base_prod_code
QyWw = A1WC.get(CK0Y.lower())
wBOq = []
if QyWw >= tvti.min_vol:
q8JA = tvti.offer_on
if A1WC.get(q8JA.lower()):
print(f'Base product volume is greater than minimum required volume & product on offer is also availab... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MHda(fAR6, Bmxy, oMJa) -> x1iM:\n return [WKvO for WKvO in oMJa if ddAa(fAR6, Bmxy, WKvO) is True]",
"def t6oz(YKHO) -> cuzp[AzJI[float, float], float]:\n N1E0 = YKHO._neighbors_values.copy()\n oMJa = dict()\n for XiDV in cEa2([YKHO.variable, YKHO._partner]):\n N1E0.update(XiDV)\n s... | [
"0.6091617",
"0.56822497",
"0.5510932",
"0.54817843",
"0.5454564",
"0.5445133",
"0.5424857",
"0.5380617",
"0.5372044",
"0.53682536",
"0.52954173",
"0.52618384",
"0.52528185",
"0.5248819",
"0.5241865",
"0.5238828",
"0.5230508",
"0.5212023",
"0.51742303",
"0.5160276",
"0.515464... | 0.55353993 | 2 |
initialise Domain with cell vertices and sizes | def FIMM(YKHO, KtK9):
super(Nlmb, YKHO).__init__(KtK9)
YKHO.dg = 0.5 * YKHO.dxh
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def feY6(YKHO):\n if YKHO.PictureExistance == \"'yes'\":\n YKHO.__processImage()\n YKHO.ny, YKHO.nx = YKHO.effectiveDomain.shape\n print('Now the size of domain is %g and %g' % (YKHO.ny, YKHO.nx))\n else:\n YKHO.isDomain = H4yH.empty([YKHO.ny, YKHO.nx], dtype=oyIN.bool)\n Y... | [
"0.65595925",
"0.6468736",
"0.6450791",
"0.6306958",
"0.62393385",
"0.6191882",
"0.61890566",
"0.6186516",
"0.6183734",
"0.61758626",
"0.61507654",
"0.6102445",
"0.60795426",
"0.60794216",
"0.6060467",
"0.60585374",
"0.60388637",
"0.60134053",
"0.5997532",
"0.59871835",
"0.59... | 0.65838295 | 0 |
This method converts the loaded JSON file into a YAML file. | def VnKZ(YKHO):
zgjV = TF2o.loads(YKHO.jfile_path)
with xDSY.open(YKHO.yfile_path, 'w', encoding='utf8') as eHNT:
eJb6.dump(zgjV, eHNT, default_flow_style=False, allow_unicode=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wGUH():\n nPrm = {'name': 'george', 'age': 16, 'friends': [{'name': 'marry', 'age': 16}, {'name': 'jack', 'age': 17}]}\n cwkY = eJb6.dump(nPrm)\n TLI7 = Hy7s.path.dirname(Hy7s.path.dirname(xAKo))\n h_xa = '/'.join([TLI7, 'data'])\n qaEx = h_xa + '/' + 'test.yaml'\n with open(qaEx, 'w') as nDE... | [
"0.6950082",
"0.65651673",
"0.64373296",
"0.6395889",
"0.6372225",
"0.63502705",
"0.6332867",
"0.6277105",
"0.62494844",
"0.62304705",
"0.6180754",
"0.61751336",
"0.6173389",
"0.6132995",
"0.6115755",
"0.61057806",
"0.609142",
"0.60893536",
"0.6081999",
"0.60774404",
"0.60572... | 0.7058134 | 0 |
Buids the optimizer(s) to minimize the loss(es) of the model. | def M1hl(YKHO, Rim3=ZylS.train.AdamOptimizer, MBqN=False):
YKHO.optimize_ops = []
for N77f in YKHO.losses['train']:
U5_0 = Rim3(learning_rate=YKHO.learning_rate)
if MBqN:
U5_0 = pqZy.CrossShardOptimizer(U5_0)
U5_0 = U5_0.minimize(loss=N77f, global_step=ZylS.train.get_global_s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KMq1(YKHO, *qIxc, **B2fa):\n pass",
"def K0do(YKHO, C3ST: nn.Module) -> ht2j.optim.Optimizer:\n pass",
"def w45h(YKHO):\n with ZylS.device(YKHO.params.device):\n with YKHO.graph.as_default():\n with ZylS.compat.v1.variable_scope('optimizers') as rrBf:\n YKHO.grads_... | [
"0.6608268",
"0.64778686",
"0.6411067",
"0.62030786",
"0.6198828",
"0.61828005",
"0.6151315",
"0.6079092",
"0.6024876",
"0.60010314",
"0.59784526",
"0.59219277",
"0.5897613",
"0.58832854",
"0.5872504",
"0.5870774",
"0.5869316",
"0.58690035",
"0.58505696",
"0.5844197",
"0.5842... | 0.5378428 | 72 |
Simple function to compute the dot product for any number of arguments. | def BJ1H(*MaUq):
ywwl = MaUq[0]
for E3D9 in MaUq[1:]:
ywwl = oyIN.dot(ywwl, E3D9)
return ywwl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X6_J(hQHm, jlSq):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(hQHm, jlSq)))",
"def pxL1(hQHm, jlSq):\n return sum(JaxB(seET.mul, hQHm, jlSq))",
"def uYbU(jzdc, Fg_i):\n XOOk, pHXX, MgfK = jzdc\n kYGz, ftz7, _2fo = Fg_i\n return XOOk * kYGz + pHXX * ftz7 + MgfK * _2fo",
"def pxL1(lSjb, ... | [
"0.78134674",
"0.7769241",
"0.77504635",
"0.7745433",
"0.77197284",
"0.77065027",
"0.7691163",
"0.7675378",
"0.76714635",
"0.7669843",
"0.76356405",
"0.7633193",
"0.7629635",
"0.7625092",
"0.7574043",
"0.74101996",
"0.7398503",
"0.7380813",
"0.7374599",
"0.73743266",
"0.73453... | 0.7135117 | 35 |
list of topics in a forum forum_id id of a Forum record | def DPfv(QePW, yF3T, AMvn=1):
try:
AdpB = oosv.objects.order_by('-is_global', '-is_sticky', '-topic_modification_date').filter(T8ck(topic_forum=yF3T) | T8ck(is_global='1'))
MjDg = nWBk.objects.get(id=yF3T)
MjDg = MjDg.forum_name
except:
return Yd7Q('/forum/')
return hst7(QePW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EOPI(ekCf):\n O0al = f'projects/{ekCf}'\n for rlUa in yfhA.list_topics(request={'project': O0al}):\n print(rlUa)",
"def OokM():\n YlPN = FgzD('SELECT topics.id, topics.name, classes.name FROM topics JOIN classes ON topics.class_id=classes.id WHERE teacher_id=?;', [WsL5.session['id']])\n Ad... | [
"0.71958566",
"0.7154457",
"0.7141806",
"0.70193803",
"0.68313867",
"0.68131095",
"0.6796887",
"0.67777157",
"0.66847396",
"0.6667825",
"0.6666503",
"0.658895",
"0.65878844",
"0.64640737",
"0.64293224",
"0.64095646",
"0.63564235",
"0.6342142",
"0.63283175",
"0.6324823",
"0.62... | 0.8021172 | 0 |
add topic forum_id ID of a Forum entry | def g5fc(QePW, yF3T):
if QePW.POST:
mlZd = QePW.POST.copy()
mlZd['topic_author'] = str(QePW.user)
dJ1p = c2KQ('(?xs)\\[code\\](.*?)\\[/code\\]', mlZd['text'])
for YRbF in dJ1p:
mlZd['text'] = mlZd['text'].replace(u'[code]' + YRbF + u'[/code]', u'[code]' + WR89.encodestrin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, ekCf, Gddr):\n bD7m = NKRf + 'portal/' + str(YKHO.portal_id) + '/projects/' + str(ekCf) + '/forums/'\n nPrm = wvEv.to_json(Gddr)\n if Gddr.get_upload_file():\n MVVZ = []\n for BWXx in Gddr.get_upload_file():\n s5jr = {'uploadfile': {'filename': aPr_(BWXx), 'content'... | [
"0.6570903",
"0.6472428",
"0.6250559",
"0.62304735",
"0.6184321",
"0.60586286",
"0.60568684",
"0.6007388",
"0.6006287",
"0.6000936",
"0.5944206",
"0.5922772",
"0.58859265",
"0.5834617",
"0.5823592",
"0.5787207",
"0.57700557",
"0.57238126",
"0.5704046",
"0.5689148",
"0.5668062... | 0.770152 | 0 |
Create separate list of products | def E15C():
JaLb = {'loyalist_products': [], 'nonloyalist_products': []}
with open('product_map.csv', 'rU') as VrfD:
N5Pj = m6_J.reader(VrfD)
N5Pj.next()
for rdlD in N5Pj:
if rdlD[1].lower() == 'loyalist':
JaLb['loyalist_products'].append(rdlD)
els... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CxaC(YKHO):\n yv6U = []\n for Lx3t in YKHO.products.findall('product'):\n id = Lx3t.find('id').text\n mWFP = Lx3t.find('name').text\n MjKM = Lx3t.find('dispensary_id').text\n oYth = Lx3t.find('dispensary_name').text\n zbBZ = Lx3t.find('canabis_brand').text\n sbaY... | [
"0.74861544",
"0.72362596",
"0.7197762",
"0.7040266",
"0.69847625",
"0.6922062",
"0.691666",
"0.69131726",
"0.6891263",
"0.68896013",
"0.6869908",
"0.68412274",
"0.68405294",
"0.6837897",
"0.6827034",
"0.68108493",
"0.673016",
"0.67167586",
"0.6713133",
"0.6710625",
"0.669335... | 0.0 | -1 |
Writes database values with header to a csv file | def h3Na(Emd4):
with open('db_backup.csv', 'w', newline='') as LtY3:
Wq02 = ['product_name', 'product_price', 'product_quantity', 'date_updated']
WJI9 = m6_J.DictWriter(LtY3, fieldnames=Wq02)
WJI9.writeheader()
for Lx3t in msfn.select().dicts():
WJI9.writerow({'product_na... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qV1b():\n UzPC = iHv3.connect('sensordata.db')\n N1p7 = UzPC.cursor()\n N1p7.execute('Select * from sensordata')\n tAeO = N1p7.fetchall()\n with open('roadstationdata.csv', 'w') as eHNT:\n WJI9 = m6_J.writer(eHNT)\n WJI9.writerow(['id', 'name', 'value', 'unit', 'time'])\n WJ... | [
"0.76455003",
"0.7485735",
"0.744107",
"0.73065215",
"0.72242785",
"0.7182872",
"0.7182053",
"0.71791434",
"0.71308947",
"0.71163934",
"0.7060005",
"0.70399785",
"0.7039917",
"0.7022545",
"0.6983291",
"0.6969411",
"0.69114316",
"0.6907802",
"0.68914586",
"0.68578553",
"0.6857... | 0.0 | -1 |
Extracts crater coordinates (in pixels) from a CNNpredicted target by iteratively sliding rings through the image via match_template from scikitimage. | def FPGY(YKHO, pan_, k99Z=Xaez, uhnz=Z6x6, r2OU=jC7P, zEci=aBN9, XPjI=W8yh, szlm=EYk0, ev_Q=stFR):
pan_[pan_ >= szlm] = 1
pan_[pan_ < szlm] = 0
MEia = oyIN.arange(k99Z, uhnz + 1, 1, dtype=int)
jNOo = []
bSmD = []
for Mkmy in MEia:
exwG = 2 * (Mkmy + ev_Q + 1)
rPXJ = oyIN.zeros((e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YEmv(QMAG, h3Xc):\n \"\"\"\n #Don't forget to store your prediction into ImgPred\n img_prediction = ImgPred(...)\n \"\"\"\n M9J1 = []\n Xn71 = XC5k.imread(QMAG, 0)\n knl1, LwqQ = XC5k.threshold(Xn71, 20, 255, XC5k.THRESH_BINARY | XC5k.THRESH_OTSU)\n YvV6, Iowl, gEYm = XC5k.f... | [
"0.5992719",
"0.59377164",
"0.59244645",
"0.5877198",
"0.5799066",
"0.5745002",
"0.57416475",
"0.5725476",
"0.56992644",
"0.5695285",
"0.56865203",
"0.56704944",
"0.5668689",
"0.5619099",
"0.55937564",
"0.55932057",
"0.5573753",
"0.55696166",
"0.55518115",
"0.55396336",
"0.54... | 0.613752 | 0 |
Return true if entity is on. | def Debg(YKHO) -> bool:
return YKHO._current_speed != s3bR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Debg(YKHO) -> bool:\n return YKHO.entity_description.is_on_fn(YKHO._client)",
"def Debg(YKHO) -> bool:\n return YKHO.entity_description.state_fn(YKHO._valve)",
"def Debg(ajET, g2g3):\n return ajET.states.is_state(g2g3, _rDc)",
"def Debg(YKHO) -> bool:\n return YKHO.entity_description.get_ufp_... | [
"0.85540265",
"0.8216411",
"0.8045664",
"0.7860732",
"0.7860732",
"0.75340164",
"0.7447756",
"0.7408673",
"0.73520595",
"0.73520595",
"0.73520595",
"0.73520595",
"0.73520595",
"0.73107237",
"0.7309693",
"0.7309128",
"0.7309128",
"0.7309128",
"0.7309128",
"0.7309128",
"0.73091... | 0.0 | -1 |
Is the logical type of the column equal to the other column. | def oAsM(YKHO, Elif):
j47j = YKHO._replace_defaults()
nhLb = Elif._replace_defaults()
def gwCN(fK8P):
cFAf = OciN._replace_defaults(YKHO).keys()
for G1Hx in cFAf:
del fK8P[G1Hx]
gwCN(j47j)
gwCN(nhLb)
return type(YKHO) == type(Elif) and j47j == nhLb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return super(OciN, YKHO).__eq__(tuple(Elif))",
"def tTvu(YKHO, Elif):\n if YKHO.columns == Elif.rows:\n return True\n else:\n return False",
"def l_QA(YKHO, Elif):\n return True",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, bJdu):\n return Fals... | [
"0.70812297",
"0.6932587",
"0.6804235",
"0.6796748",
"0.67400944",
"0.66611063",
"0.6654303",
"0.66352093",
"0.65839386",
"0.65638554",
"0.6563409",
"0.6555065",
"0.6536806",
"0.6502776",
"0.64863825",
"0.64399666",
"0.64218426",
"0.6402173",
"0.63337994",
"0.63291293",
"0.63... | 0.66202605 | 8 |
Gets the meta of this StoreProfile. | def e5kH(YKHO):
return YKHO._meta | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C0wX(YKHO) -> K3Tg:\n return K3Tg(object_type='profile', extra_custom_props=[('property', 'profile.username', YKHO.user.username), ('property', 'profile.first_name', YKHO.user.first_name), ('property', 'profile.last_name', YKHO.user.last_name)] if YKHO.user else [], title=YKHO.display_name or YKHO.name, ima... | [
"0.75090975",
"0.6818852",
"0.6687395",
"0.6506509",
"0.6486768",
"0.6472494",
"0.63900566",
"0.6342975",
"0.63346213",
"0.6325228",
"0.6315868",
"0.6256557",
"0.62344116",
"0.61842823",
"0.6178086",
"0.6144196",
"0.6142889",
"0.6142889",
"0.6099836",
"0.60929203",
"0.6089251... | 0.7010534 | 2 |
Gets the name of this StoreProfile. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO) -> str:\n return YKHO.profile_device.name",
"def mWFP(YKHO):\n return YKHO.properties.get('name', None)",
"def mWFP(YKHO):\n return YKHO.measurement_profile.name",
"def mWFP(YKHO):\n return YKHO.properties.get('name')",
"def mWFP(YKHO):\n return YKHO.properties.get('name')",
... | [
"0.76981187",
"0.733422",
"0.7321972",
"0.7318531",
"0.7318531",
"0.72827613",
"0.7189084",
"0.7160284",
"0.71291465",
"0.71291465",
"0.7111798",
"0.7087537",
"0.7087537",
"0.70873374",
"0.70873374",
"0.70873374",
"0.70739406",
"0.7037252",
"0.7032549",
"0.7026763",
"0.702676... | 0.0 | -1 |
Sets the name of this StoreProfile. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lZwM(YKHO, lZwM):\n YKHO._profile_name = lZwM",
"def lZwM(YKHO, lZwM):\n YKHO._profile_name = lZwM",
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def WZrJ(YKHO, mWFP: str):\n YKHO._name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",... | [
"0.76024014",
"0.76024014",
"0.73460335",
"0.7331119",
"0.73240584",
"0.73240584",
"0.73240584",
"0.73240584",
"0.73240584",
"0.73008317",
"0.719803",
"0.7145583",
"0.71070445",
"0.71070445",
"0.7063145",
"0.706168",
"0.70541626",
"0.70541626",
"0.70182437",
"0.69738054",
"0.... | 0.0 | -1 |
Gets the description of this StoreProfile. | def JBZA(YKHO):
return YKHO._description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t5do(YKHO):\n return YKHO.__description",
"def KUG7(YKHO):\n return YKHO.description",
"def KUG7(YKHO):\n return YKHO._description",
"def t5do(YKHO):\n return YKHO._description",
"def t5do(YKHO):\n return YKHO._description",
"def t5do(YKHO):\n return YKHO.description",
"def t5do(Y... | [
"0.6791806",
"0.67796797",
"0.67580754",
"0.6744666",
"0.6726742",
"0.67260855",
"0.67260855",
"0.67260855",
"0.67260855",
"0.6714615",
"0.6714615",
"0.6714615",
"0.6714615",
"0.6714615",
"0.6714615",
"0.6714615",
"0.6714615",
"0.6714615",
"0.6714615",
"0.6714615",
"0.6714615... | 0.6608305 | 75 |
Sets the description of this StoreProfile. | def JBZA(YKHO, JBZA):
YKHO._description = JBZA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO._description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def prlj(YKHO, JBZA):\n YKHO.description = str(JBZA)",
"def AqxA(YKHO, QoB4: str)... | [
"0.7216981",
"0.7169391",
"0.7163605",
"0.7136314",
"0.7072769",
"0.6972964",
"0.6972557",
"0.68284494",
"0.68284494",
"0.68284494",
"0.68284494",
"0.6813767",
"0.6771052",
"0.6771052",
"0.6771052",
"0.6771052",
"0.66920125",
"0.656157",
"0.6513287",
"0.6509549",
"0.6437283",... | 0.68255776 | 42 |
Gets the billing_info of this StoreProfile. | def KAXf(YKHO):
return YKHO._billing_info | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KAXf(YKHO):\n return SJsb(YKHO)",
"def HK3E(YKHO):\n return YKHO._billing",
"def GLga(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'billing_account')",
"def GLga(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'billing_account')",
"def GLga(YKHO) -> qe4Y.Output[str]:\n return qe... | [
"0.77087563",
"0.71477145",
"0.6761446",
"0.6761446",
"0.6761446",
"0.6540891",
"0.6534776",
"0.64655393",
"0.63661957",
"0.63661957",
"0.61825705",
"0.61825705",
"0.61659193",
"0.61363465",
"0.6119282",
"0.61044437",
"0.6019976",
"0.5942303",
"0.5787421",
"0.55749315",
"0.55... | 0.8297777 | 0 |
Sets the billing_info of this StoreProfile. | def KAXf(YKHO, KAXf):
YKHO._billing_info = KAXf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HK3E(YKHO, HK3E):\n YKHO._billing = HK3E",
"def qGfT(YKHO, qGfT):\n YKHO._billing_contact = qGfT",
"def laSw(YKHO, laSw):\n YKHO._billing_currency = laSw",
"def KAXf(YKHO):\n return YKHO._billing_info",
"def KAXf(YKHO):\n return SJsb(YKHO)",
"def nwzI(YKHO, nwzI):\n YKHO._default_bi... | [
"0.6947018",
"0.6334089",
"0.59712374",
"0.5709125",
"0.56954914",
"0.5641454",
"0.52830344",
"0.5201318",
"0.5174602",
"0.51457936",
"0.5099419",
"0.5058219",
"0.5058219",
"0.50350636",
"0.50086355",
"0.49812788",
"0.49464315",
"0.49219757",
"0.49004814",
"0.4897163",
"0.485... | 0.8221735 | 0 |
Sets the facebook of this StoreProfile. | def Z6mu(YKHO, Z6mu):
YKHO._facebook = Z6mu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EIn1(YKHO, EIn1):\n YKHO._facebook_url = EIn1",
"def Z6mu(YKHO):\n try:\n from Z6mu import Facebook\n except ImportError:\n RKD7.warning('PyFacebook is not installed!')\n else:\n if YKHO.user and YKHO.user.profile.uses_facebook_connect:\n rJDA = WTdB().cfg['faceboo... | [
"0.6374106",
"0.5990116",
"0.5905431",
"0.54284465",
"0.5185664",
"0.5098087",
"0.50038993",
"0.4828573",
"0.4786767",
"0.4675968",
"0.46523046",
"0.46096033",
"0.4588999",
"0.45869476",
"0.4569041",
"0.4569041",
"0.4555865",
"0.4552569",
"0.45499423",
"0.4545021",
"0.4514413... | 0.7717775 | 0 |
Gets the youtube of this StoreProfile. | def XL9m(YKHO):
return YKHO._youtube | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XL9m(YKHO, XL9m):\n YKHO._youtube = XL9m",
"def lsMv(YKHO):\n H5ew = YKHO.bot_data_file['youtube']['key']\n if YKHO.check_empty_key(H5ew):\n return H5ew\n else:\n print('ERROR GETTING THE YOUTUBE KEY (check bot documentation) - ABORTING')\n quit(1)",
"def Dvb2(YKHO):\n i... | [
"0.6090054",
"0.5948142",
"0.5814511",
"0.57243747",
"0.5691043",
"0.5570341",
"0.5460085",
"0.54214174",
"0.5418943",
"0.5391258",
"0.5333565",
"0.5277207",
"0.5272169",
"0.5246922",
"0.5221705",
"0.5219989",
"0.52189547",
"0.5195068",
"0.51844424",
"0.51579475",
"0.5124477"... | 0.79352546 | 0 |
Sets the youtube of this StoreProfile. | def XL9m(YKHO, XL9m):
YKHO._youtube = XL9m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XL9m(YKHO):\n return YKHO._youtube",
"def Dvb2(YKHO):\n if 'youtube' in YKHO.link.split('.'):\n return True\n return None",
"def wOX5(YKHO, tQOT):\n pass",
"def lcEV(YKHO, LVAh):\n YKHO._y = LVAh",
"def QEd2(YKHO, LVAh):\n YKHO._y = LVAh",
"def z9NM(YKHO, LVAh):\n YKHO.y =... | [
"0.6800553",
"0.54981285",
"0.52603334",
"0.52439976",
"0.5157042",
"0.5153385",
"0.5152133",
"0.5151252",
"0.5134109",
"0.5134109",
"0.50935537",
"0.504834",
"0.5020317",
"0.4995652",
"0.49926963",
"0.49606714",
"0.4948556",
"0.49337053",
"0.49234337",
"0.49103868",
"0.48708... | 0.8214083 | 0 |
Gets the instagram of this StoreProfile. | def jgz0(YKHO):
return YKHO._instagram | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YKHO(YKHO):\n bD7m = 'https://api.instagram.com/v1/users/self/?access_token=' + YKHO.access_token\n QePW = G4JS.get(bD7m)\n return QePW.json()",
"def guHv(YKHO):\n bD7m = 'https://api.imgur.com/3/account/{0}/gallery_profile'.format(YKHO.name)\n return YKHO._imgur._send_request(bD7m)",
"def j... | [
"0.6358503",
"0.5790814",
"0.57500106",
"0.5704466",
"0.54454136",
"0.54388595",
"0.5421649",
"0.5314913",
"0.5236288",
"0.52185434",
"0.51092464",
"0.5101984",
"0.5048644",
"0.5047885",
"0.50447875",
"0.50331956",
"0.49664336",
"0.49385908",
"0.49379966",
"0.4937163",
"0.493... | 0.80316 | 0 |
Gets the pinterest of this StoreProfile. | def w1WO(YKHO):
return YKHO._pinterest | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p2HL(YKHO):\n if 'interests' in YKHO._prop_dict:\n return YKHO._prop_dict['interests']\n else:\n return None",
"def JX2o(YKHO):\n return YKHO.__percentage_interest",
"def Bgf_(YKHO):\n w2IS = '/profile'\n return YKHO.get_request(w2IS)",
"def z39Z(YKHO) -> _Z1y:\n return YK... | [
"0.65898913",
"0.62914765",
"0.58359545",
"0.5743681",
"0.5684692",
"0.562656",
"0.5506814",
"0.5492201",
"0.5492201",
"0.53988117",
"0.5398023",
"0.53309345",
"0.5324174",
"0.5252778",
"0.52367723",
"0.52086645",
"0.5199404",
"0.51921695",
"0.5150444",
"0.5120884",
"0.511402... | 0.7561153 | 0 |
Sets the pinterest of this StoreProfile. | def w1WO(YKHO, w1WO):
YKHO._pinterest = w1WO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zbn_(YKHO, zbn_):\n YKHO._repaid_interest = zbn_",
"def z1sQ(YKHO, z1sQ):\n YKHO._paid_interest = z1sQ",
"def xFV6(YKHO, z39Z: str):\n YKHO._profile = z39Z",
"def w1WO(YKHO):\n return YKHO._pinterest",
"def qVmF(YKHO, qVmF):\n YKHO._open_interest = qVmF",
"def axNE(YKHO, axNE):\n YK... | [
"0.6722862",
"0.66200674",
"0.5696167",
"0.5647955",
"0.5599525",
"0.5578526",
"0.5578526",
"0.5271597",
"0.5177461",
"0.5171312",
"0.51635766",
"0.5154178",
"0.50973547",
"0.50973547",
"0.5083053",
"0.5078245",
"0.50472605",
"0.500781",
"0.49349016",
"0.48526222",
"0.4851890... | 0.76808065 | 0 |
Gets the linkedin of this StoreProfile. | def exnT(YKHO):
return YKHO._linkedin | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ykw5(YKHO):\n return YKHO.user.profile",
"def nAhq(YKHO):\n return YKHO._customer_profile_oid",
"def exnT(YKHO, exnT):\n YKHO._linkedin = exnT",
"def Z6mu(YKHO):\n return YKHO._facebook",
"def L685(YKHO):\n return YKHO._spinnaker_link_id",
"def z39Z(YKHO):\n return YKHO._profile",
... | [
"0.5506056",
"0.54694885",
"0.5464488",
"0.544704",
"0.54469264",
"0.54198897",
"0.529772",
"0.5277959",
"0.52728975",
"0.5262846",
"0.52600217",
"0.5232096",
"0.5193333",
"0.51623476",
"0.51113135",
"0.5104671",
"0.5104671",
"0.50951856",
"0.5093852",
"0.5092114",
"0.5088513... | 0.78746176 | 0 |
Sets the linkedin of this StoreProfile. | def exnT(YKHO, exnT):
YKHO._linkedin = exnT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def exnT(YKHO):\n return YKHO._linkedin",
"def xFV6(YKHO, z39Z: str):\n YKHO._profile = z39Z",
"def ZYhW(YKHO, ZYhW):\n YKHO._ssl_profile_id = ZYhW",
"def rsqw(YKHO, rsqw):\n YKHO._bank_link_id = rsqw",
"def fE5u(YKHO, fE5u):\n YKHO._link_id = fE5u",
"def P099(YKHO, P099):\n YKHO._asin ... | [
"0.58889306",
"0.56160456",
"0.53995335",
"0.5340398",
"0.52321786",
"0.50734967",
"0.50274986",
"0.49676663",
"0.4957416",
"0.4908219",
"0.4908219",
"0.48871168",
"0.48871168",
"0.48871168",
"0.48871168",
"0.48871168",
"0.48276922",
"0.47811252",
"0.47811252",
"0.47811252",
... | 0.7773678 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, KrHt):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.84568954",
"0.83923674",
"0.81447554",
"0.81407183",
"0.81326675",
"0.80941343",
"0.8092415",
"0.8092415",
"0.8092415",
"0.8085536",
"0.8085536",
"0.8076502",
"0.8076502",
"0.8066026"
] | 0.0 | -1 |
Create model from json. | def pktP(aiAz):
return EJYz(aiAz.get('hash', None), aiAz.get('uid', None)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pktP(nPrm: Dict[str, Any]) -> 'ModelData':\n return wZHc(nPrm.get('name'), nPrm.get('type'), nPrm.get('value'), nPrm.get('units'))",
"def pktP(Emd4, i_PC, zgjV):\n nPrm = _qLf(zgjV)\n SGPK = []\n for Bt7i in nPrm['parameters']:\n id = Bt7i['id']\n nqE0 = i_PC.parameter_factory_by_id... | [
"0.7584196",
"0.7180405",
"0.7118459",
"0.710242",
"0.7052127",
"0.70423496",
"0.7041804",
"0.6896937",
"0.6863662",
"0.6847984",
"0.6832809",
"0.68271583",
"0.6817734",
"0.68111944",
"0.6752456",
"0.6734141",
"0.6680335",
"0.6679268",
"0.6679268",
"0.6672973",
"0.66457385",
... | 0.0 | -1 |
Is the queue empty? | def FBfn(YKHO):
return not YKHO._data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return len(YKHO.the_queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.__queue) > 0",
"def lsmZ(YKHO):\n return YKHO.queue == []... | [
"0.92403233",
"0.9186681",
"0.91693956",
"0.91693956",
"0.914682",
"0.9137048",
"0.9083102",
"0.90663934",
"0.9037946",
"0.8976355",
"0.89380217",
"0.8915447",
"0.89138514",
"0.8908865",
"0.8884015",
"0.88772047",
"0.88772047",
"0.88771504",
"0.881595",
"0.87687516",
"0.87408... | 0.8465951 | 26 |
Unauthenticated users are redirected to the login screen. | def uFwo(YKHO):
geh0 = YKHO.client.get(gxEw('upload-form'))
YKHO.assertEqual(geh0.status_code, 302)
YKHO.assertIsInstance(geh0, Yd7Q)
YKHO.assertTrue(geh0.has_header('Location'))
YKHO.assertTrue(geh0.get('Location').startswith(gCuF.LOGIN_URL)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eJXT():\n Dwep('You must login first.')\n return vKnz(nKyW('home'))",
"def oB20(YKHO):\n return WsL5.redirect('/login')",
"def p_Hn():\n Dwep('You must be logged in to view that page.')\n return vKnz(nKyW('auth.login_view'))",
"def p_Hn():\n return vKnz(nKyW('login'))",
"def R1PP():\n... | [
"0.76734066",
"0.7642473",
"0.7596786",
"0.7472385",
"0.74398303",
"0.7406799",
"0.73732406",
"0.7365459",
"0.7322922",
"0.7294877",
"0.7252337",
"0.72414875",
"0.7239106",
"0.72310627",
"0.72267795",
"0.7203325",
"0.7185352",
"0.71704066",
"0.7160235",
"0.7126403",
"0.709778... | 0.0 | -1 |
If form invalid return error list in JSON response | def ee9W(YKHO, L03z, y0cW=None):
geh0 = super(Nj0U, YKHO).form_invalid(L03z)
if YKHO.request.is_ajax():
nPrm = {'errors_list': YKHO.add_prefix(L03z.errors, y0cW)}
return YKHO.json_to_response(status=400, json_data=nPrm, json_status=ItIu.ERROR)
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ee9W(YKHO, L03z):\n geh0 = super().form_invalid(L03z)\n if YKHO.is_ajax():\n return jnRN(L03z.errors, status=400)\n else:\n return geh0",
"def ee9W(YKHO, L03z):\n geh0 = super(w5uk, YKHO).form_invalid(L03z)\n if YKHO.is_ajax():\n return jnRN(L03z.errors, status=422)\n e... | [
"0.7665663",
"0.75349003",
"0.7339613",
"0.71741205",
"0.7158141",
"0.7126791",
"0.7107218",
"0.6952973",
"0.6897809",
"0.6629777",
"0.6626728",
"0.6606772",
"0.6513617",
"0.64996225",
"0.64490724",
"0.6420252",
"0.63936806",
"0.63936806",
"0.6303919",
"0.6296751",
"0.6293436... | 0.7219318 | 3 |
The type of the job. | def ucry(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'job_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ucry(YKHO):\n return YKHO._job_type",
"def type(YKHO) -> h8nf[qe4Y.Input['JobType']]:\n return qe4Y.get(YKHO, 'type')",
"def g8yp(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_details_type')",
"def g8yp(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_details_type')",
"def g8yp(YKHO) -> str:\n re... | [
"0.9002671",
"0.844342",
"0.76216686",
"0.76216686",
"0.76216686",
"0.7435503",
"0.726418",
"0.709847",
"0.7038003",
"0.7030451",
"0.7030451",
"0.7030451",
"0.7030451",
"0.7030451",
"0.7030451",
"0.7030451",
"0.7030451",
"0.7030451",
"0.7030451",
"0.7030451",
"0.7030451",
"... | 0.87467295 | 1 |
The labels associated with this job. You can use these to organize and group your jobs. | def Crrw(YKHO) -> qe4Y.Output[h8nf[GySg[str, str]]]:
return qe4Y.get(YKHO, 'labels') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DeTJ(YKHO):\n return YKHO.job[YKHO.label_key]",
"def Crrw(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'labels')",
"def Crrw(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'labels')",
"def Crrw(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'labels')",
"def Crrw(YKHO) -> GySg[str, s... | [
"0.7774395",
"0.757336",
"0.757336",
"0.757336",
"0.757336",
"0.757336",
"0.757336",
"0.757336",
"0.757336",
"0.7461375",
"0.7347413",
"0.7347413",
"0.723107",
"0.72306985",
"0.720582",
"0.720582",
"0.720582",
"0.720582",
"0.720582",
"0.71988285",
"0.7185549",
"0.71437156",... | 0.71388465 | 29 |
The geographic location of the job. The default value is US. | def Rci7(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'location') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rci7(YKHO) -> str:\n return qe4Y.get(YKHO, 'location')",
"def Rci7(YKHO) -> str:\n return qe4Y.get(YKHO, 'location')",
"def Rci7(YKHO) -> str:\n return qe4Y.get(YKHO, 'location')",
"def Rci7(YKHO) -> str:\n return qe4Y.get(YKHO, 'location')",
"def Rci7(YKHO) -> str:\n return qe4Y.get(YKH... | [
"0.74507964",
"0.74507964",
"0.74507964",
"0.74507964",
"0.74507964",
"0.74507964",
"0.74507964",
"0.74507964",
"0.74507964",
"0.74507964",
"0.74507964",
"0.74507964",
"0.74507964",
"0.733936",
"0.7273975",
"0.72535896",
"0.72535896",
"0.72535896",
"0.7241201",
"0.7181057",
"... | 0.7040756 | 30 |
Email address of the user who ran the job. | def cHyp(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'user_email') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N2Ic(YKHO):\n return YKHO.user.email",
"def D3lj(YKHO, KAOR):\n return KAOR.user.email",
"def bzh1(YKHO):\n mS46 = YKHO.get_user()\n if mS46:\n return mS46.getProperty('email')",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return qe4Y.ge... | [
"0.8045067",
"0.7482019",
"0.72746706",
"0.7197063",
"0.7197063",
"0.7197063",
"0.7195695",
"0.7189387",
"0.7168474",
"0.7168474",
"0.7168474",
"0.7168474",
"0.71192086",
"0.7095948",
"0.7094554",
"0.70901",
"0.69890106",
"0.6986238",
"0.6955563",
"0.691718",
"0.68999255",
... | 0.8011265 | 1 |
Space n items with spacing according to (n1) ratios. E.g., ratios=[0, 1] puts item[1] at item[0] fraction = (dc)/(dc + (ed)) => (dc) = (ec) fraction. | def B3fC(YKHO, BHsk: str, *DumB: str, Dwvl: None | Sequence[float]=None) -> None:
if Dwvl is None:
Dwvl = [1] * (len(DumB) - 1)
for Z9rn, Csk6, tTpl, J1b4, CYjz in zip(DumB, DumB[1:], DumB[2:], Dwvl, Dwvl[1:], strict=False):
wA3x = J1b4 / (J1b4 + CYjz)
jzdc = YKHO.blank()
jzdc[YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HHea(YKHO, usUl=10, dMYj=1.0, dGrG=1.0):\n if usUl == 1:\n H4yH = [0.0, 1.0]\n return oyIN.array(H4yH)\n nNKD = dMYj ** (1.0 / (float(usUl) - 1.0))\n if nNKD == 1.0:\n nNKD = 1.0 + 1e-10\n Esro = 1.0\n KCHu = [Esro]\n for YRbF in range(1, usUl + 1):\n P4t4 = Esro *... | [
"0.6269365",
"0.62639314",
"0.5947355",
"0.5471383",
"0.52522314",
"0.523624",
"0.51842475",
"0.51664436",
"0.5130865",
"0.5109552",
"0.51064223",
"0.5102746",
"0.50894815",
"0.50866324",
"0.5018106",
"0.5007691",
"0.4956959",
"0.4938565",
"0.49329013",
"0.4932875",
"0.493201... | 0.5090766 | 12 |
Return a standard feed dictionary for this dataset. | def a_go(YKHO, WKvO, LVAh, KuGa=None, mWFP=None):
if not KuGa:
KuGa = {}
def bdu0(YPaw=None):
"""
:param step: unused, just for making it compatible with `HG` and `Saver`
:return: the feed dictionary
"""
if isinstance(YKHO.data, tqT6):
nP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kdJa(YKHO, __n6: Dataset, EvQg: bool=False) -> Fjwu:\n return {}",
"def yEMF(YKHO, nPrm):\n raise NotImplementedError",
"def yEMF(nPrm):\n raise NotImplemented()",
"def rv9c(YKHO, lRr0, oDNR, **B2fa):\n return {}",
"def QUSx(YKHO):\n kdJa = hezG.parse(YKHO.URL)\n return [YKHO.entry_di... | [
"0.7395898",
"0.7168172",
"0.68816406",
"0.6846803",
"0.6486111",
"0.6357085",
"0.63534397",
"0.6323259",
"0.6295681",
"0.6267062",
"0.621977",
"0.6208225",
"0.6144665",
"0.6024322",
"0.601893",
"0.59780514",
"0.59629107",
"0.5940235",
"0.5908434",
"0.5869132",
"0.5869132",
... | 0.0 | -1 |
Generates and returns a single Datasets (possibly composed by training, validation and test sets) according to args and kwargs | def CbGy(YKHO, ADdS=None, *qIxc, **B2fa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UA8x(YKHO):\n SK0a = False\n if YKHO._opts['degrade_step'] == 'test':\n SK0a = True\n EPmF = sHdX.IDENTICAL\n EPL3, qby3 = YKHO._gen_datasets_with_options(YKHO._opts['train_classes'], YKHO._opts['test_classes'], is_superclass=YKHO._opts['superclass'], class_proportion=YKHO._opts['class_propo... | [
"0.7621178",
"0.69473433",
"0.69207567",
"0.68117255",
"0.67662066",
"0.67376935",
"0.67357695",
"0.66206133",
"0.6593647",
"0.6577879",
"0.65543586",
"0.6548655",
"0.6536837",
"0.64582735",
"0.6456158",
"0.6447764",
"0.6381144",
"0.6376832",
"0.6368962",
"0.63482434",
"0.633... | 0.68321073 | 3 |
Return _aware_ `datetime.now()` object in UTC timezone. This function must be used to insert or update `datetime` fields in the database, otherwise the validation `validate_utc` will reject the value. | def wj6w():
return qcWV.datetime.now(qcWV.timezone.utc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BosD() -> qcWV:\n return qcWV.now(rIAI.utc)",
"def SsoH() -> qcWV:\n return qcWV.now(rIAI.utc)",
"def Aues():\n return qcWV.now(tz=rIAI.utc)",
"def _9M7():\n return qcWV.datetime.utcnow().replace(tzinfo=FXGE.timezone('UTC'))",
"def W5lc():\n return qcWV.datetime.now(FXGE.utc)",
"def wj... | [
"0.8656396",
"0.8527489",
"0.8506886",
"0.8276427",
"0.8191999",
"0.815434",
"0.801268",
"0.7952559",
"0.7899885",
"0.78881174",
"0.7862986",
"0.7835481",
"0.7827097",
"0.775173",
"0.765144",
"0.7639328",
"0.76259637",
"0.7582488",
"0.7496754",
"0.74300855",
"0.74300855",
"... | 0.73830366 | 23 |
Emulate legacy field superseeded by `patient_consent_date`. Forward to current datetime to `patient_consent_date` setter, which will set both underlying columns. | def Mbc6(YKHO, BWXx):
YKHO.patient_consent_date = wj6w() if BWXx else None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oQOK(YKHO, BWXx):\n YKHO._patient_consent_date = BWXx\n YKHO._patient_consent = 1 if BWXx else 0",
"def oQOK(YKHO):\n return YKHO._patient_consent_date",
"def IZgw(YKHO):\n YKHO.set_value_into_input_field(YKHO.set_to_date_locator, YKHO.get_current_date())",
"def dcJF(YKHO, dcJF):\n YKHO.__... | [
"0.668064",
"0.5796747",
"0.57947594",
"0.571031",
"0.571031",
"0.5642255",
"0.5556245",
"0.5523759",
"0.55139166",
"0.5509836",
"0.55023223",
"0.5477226",
"0.5464905",
"0.5369002",
"0.5365053",
"0.5335959",
"0.53224725",
"0.5223045",
"0.5208461",
"0.5204645",
"0.51883584",
... | 0.6615058 | 1 |
Get internal value for `patient_consent_date`. | def oQOK(YKHO):
return YKHO._patient_consent_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ntFe(YKHO, Csk6: dict):\n NnHy = Csk6.get('patient_consent_date')\n I7cG = Csk6.get('patient_consent')\n if NnHy is not None:\n return YKHO._str_to_datetime(NnHy)\n elif I7cG:\n lGE9 = qcWV.datetime.fromtimestamp(0, tz=qcWV.timezone.utc)\n d8PD = Csk6.get('creation_date')\n ... | [
"0.8094495",
"0.7589582",
"0.7246536",
"0.71703386",
"0.6186469",
"0.60771775",
"0.582364",
"0.582364",
"0.582364",
"0.582364",
"0.5744298",
"0.57036215",
"0.5643021",
"0.56060433",
"0.56060433",
"0.56060433",
"0.56038517",
"0.5568324",
"0.5548201",
"0.55249274",
"0.5518372",... | 0.8428358 | 0 |
Read patient_consent information from dict serialization. For existing rows that did not record the actual consent date, if `patient_consent` is True, `ceation_date` is used if present, UNIX epoch 0 if it is missing. | def ntFe(YKHO, Csk6: dict):
NnHy = Csk6.get('patient_consent_date')
I7cG = Csk6.get('patient_consent')
if NnHy is not None:
return YKHO._str_to_datetime(NnHy)
elif I7cG:
lGE9 = qcWV.datetime.fromtimestamp(0, tz=qcWV.timezone.utc)
d8PD = Csk6.get('creation_date')
return YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mbc6(YKHO):\n return 1 if YKHO.patient_consent_date is not None else 0",
"def Mbc6(YKHO, BWXx):\n YKHO.patient_consent_date = wj6w() if BWXx else None",
"def oQOK(YKHO, BWXx):\n YKHO._patient_consent_date = BWXx\n YKHO._patient_consent = 1 if BWXx else 0",
"def Mbc6(YKHO):\n return YKHO.pa... | [
"0.5926589",
"0.5809377",
"0.5732567",
"0.56433344",
"0.55838776",
"0.5239948",
"0.514208",
"0.5133141",
"0.4684602",
"0.45138747",
"0.44812942",
"0.44552103",
"0.44459537",
"0.44308993",
"0.44297066",
"0.4419778",
"0.43893576",
"0.4386389",
"0.43847585",
"0.4346647",
"0.4310... | 0.73424447 | 0 |
Creates a DataLoader from given source and its open/transform params. | def RuZU(m5Tx: Iterable[dict], lY9n: Callable, bBE0: Callable=None, RFg8=None, QxcP: Callable=s9l_, Ep8u: int=32, I7Gy: int=4, hXNa: bool=False, lM6R: bool=False):
from catalyst.data.dataset import ListDataset
__n6 = ListDataset(list_data=m5Tx, open_fn=lY9n, dict_transform=bBE0)
DWkG = ht2j.utils.data.DataL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rHzL(YKHO, **B2fa):\n return pVAc(YKHO, **B2fa)",
"def KgqZ(NArs, T37t='hdf5', **B2fa):\n uBwj = oloV(T37t)(NArs.modality)\n return pVAc(uBwj(NArs.dataset_path, seq_length=NArs.seq_length), batch_size=NArs.batch_size, shuffle=NArs.is_training, num_workers=NArs.num_workers, pin_memory=NArs.cuda, coll... | [
"0.67652076",
"0.6572773",
"0.6279626",
"0.61619353",
"0.61383015",
"0.61090654",
"0.60896605",
"0.60315233",
"0.6029367",
"0.60176903",
"0.5900374",
"0.58815914",
"0.5844954",
"0.584316",
"0.5832388",
"0.5825662",
"0.58236927",
"0.58061033",
"0.58045447",
"0.5799926",
"0.577... | 0.73296386 | 0 |
Returns a batch from experiment loaders by its index or name. | def tmxj(pdlj: Dict[str, DataLoader], DWkG: Union[str, int]=0, kiwv: int=0):
if isinstance(DWkG, str):
w0wH = pdlj[DWkG]
elif isinstance(DWkG, int):
w0wH = list(pdlj.values())[DWkG]
else:
raise TypeError('Loader parameter must be a string or an integer')
hlel = HprP(loader=w0wH, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HprP(DWkG: DataLoader, kiwv: int=0):\n __n6 = DWkG.dataset\n QxcP = DWkG.collate_fn\n return QxcP([__n6[kiwv]])",
"def IWA_(YKHO, mWFP):\n nJ0e = YKHO._meta['sets'].get('batches', {})\n if nJ0e.get(mWFP):\n Fg_i = mWFP\n elif nJ0e.get(mWFP):\n Fg_i = mWFP\n else:\n r... | [
"0.62770796",
"0.6147377",
"0.6142249",
"0.5965098",
"0.5944489",
"0.58695436",
"0.58550024",
"0.5844343",
"0.57876563",
"0.57487893",
"0.5744385",
"0.56675255",
"0.56562734",
"0.56562734",
"0.5644203",
"0.56192917",
"0.56192917",
"0.561557",
"0.55952257",
"0.557245",
"0.5514... | 0.6902564 | 0 |
Creates pytorch dataloaders from datasets and additional parameters. | def vrhq(Ep8u: int=1, I7Gy: int=0, lM6R: bool=False, UwE0: bool=False, p1Ri: Dict[str, Any]=None, ENHx: Dict[str, Any]=None, YTJh: int=42, mrXe: Callable=None, **K794) -> 'OrderedDict[str, DataLoader]':
from catalyst.data.sampler import DistributedSamplerWrapper
r1z5 = Ep8u
CEMl = I7Gy
p1Ri = p1Ri or {}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpwo(NArs):\n dOxh = Ymkf.Compose([Ymkf.RandomCrop(32, padding=4), Ymkf.RandomHorizontalFlip(), Ymkf.ToTensor(), Ymkf.Normalize([0.4914, 0.4822, 0.4465], [0.2023, 0.1994, 0.201])])\n ikEe = Ymkf.Compose([Ymkf.ToTensor(), Ymkf.Normalize([0.4914, 0.4822, 0.4465], [0.2023, 0.1994, 0.201])])\n ikEe = Ymkf... | [
"0.79882824",
"0.7873911",
"0.77523524",
"0.7489144",
"0.7423688",
"0.74065715",
"0.7383054",
"0.73766834",
"0.73579735",
"0.735641",
"0.7308889",
"0.72247446",
"0.7185362",
"0.71817666",
"0.7140771",
"0.71166503",
"0.711527",
"0.7087059",
"0.7068981",
"0.7030009",
"0.7026917... | 0.0 | -1 |
Find all rows in a matrix that is zero, and add a 1 on the diagonal | def F0bB(k0lF):
assert k0lF.size[0] == k0lF.size[1]
k0lF.assemble()
eNKj = k0lF.getOwnershipRange()
usx6 = []
for YRbF in range(eNKj[1] - eNKj[0]):
_0VL, hkxX = k0lF.getRow(eNKj[0] + YRbF)
f2yf = sum(abs(hkxX))
if f2yf < 1e-06:
usx6.append(eNKj[0] + YRbF)
iLac... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jFMI(SppC):\n usx6 = set()\n ZLJ_ = set()\n r8hN = len(SppC)\n exwG = len(SppC[0])\n for YRbF in range(r8hN):\n for r845 in range(exwG):\n if SppC[YRbF][r845] == 0:\n usx6.add(YRbF)\n ZLJ_.add(r845)\n for YRbF in range(r8hN):\n for r845 i... | [
"0.73189586",
"0.7197821",
"0.7129083",
"0.70978343",
"0.7078936",
"0.68751305",
"0.68057173",
"0.6782833",
"0.67469335",
"0.66681945",
"0.6666137",
"0.66429776",
"0.6623435",
"0.6621061",
"0.6620543",
"0.6616192",
"0.66147125",
"0.66110265",
"0.66069096",
"0.65960264",
"0.65... | 0.64289784 | 36 |
Computes a translation matrix. | def hBUG(Ty9i: InputTensor) -> a1PO.Tensor:
Aofo = gnPz.to_tensor(Ty9i, dtype=a1PO.float32)
assert len(Aofo.shape) >= 1
DbyF = Aofo.shape[-1]
Aofo = Aofo[..., None, :].transpose(-1, -2)
Aofo = a1PO.constant_pad_nd(Aofo, [DbyF, 0, 0, 1])
CZV2 = a1PO.diag(Aofo.new_ones([DbyF + 1]))
CZV2 = CZV2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNUR(WKvO, LVAh, epBp):\n return oyIN.matrix([[1.0, 0.0, 0.0, WKvO], [0.0, 1.0, 0.0, LVAh], [0.0, 0.0, 1.0, epBp], [0.0, 0.0, 0.0, 1.0]])",
"def sDby(UShr, Yrvv, yl4j):\n Kt_s = oyIN.array([[1, 0, 0, UShr], [0, 1, 0, Yrvv], [0, 0, 1, yl4j], [0, 0, 0, 1]])\n return Kt_s",
"def SgEE(*qIxc, **B2fa):\... | [
"0.7476626",
"0.73376346",
"0.71156037",
"0.70561665",
"0.70042557",
"0.69543445",
"0.68936795",
"0.6859392",
"0.6858805",
"0.6777836",
"0.6776042",
"0.67170495",
"0.6642511",
"0.6580854",
"0.6550882",
"0.6474842",
"0.64231503",
"0.63632214",
"0.6332118",
"0.63255674",
"0.629... | 0.5711762 | 62 |
Computes a righthanded 4x4 lookat camera matrix. | def fFo5(MUmk: InputTensor, hgjH: InputTensor, vP2v: InputTensor) -> a1PO.Tensor:
MUmk = gnPz.to_tensor(MUmk, dtype=a1PO.float32)
hgjH = gnPz.to_tensor(hgjH, dtype=a1PO.float32)
vP2v = gnPz.to_tensor(vP2v, dtype=a1PO.float32)
assert MUmk.shape == (3,)
assert hgjH.shape == (3,)
assert vP2v.shape ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fne7(YKHO):\n pass",
"def hkak(YKHO) -> KCsE:\n return XTiz.matmul(YKHO.rotation_matrix(*YKHO.rotation), hQYf(*-XTiz.array(YKHO.location)))",
"def hkak(tTpl, XP5J, a1PO):\n Kt_s = oyIN.array([[1, 0, 0, -tTpl[0]], [0, 1, 0, -tTpl[1]], [0, 0, 1, -tTpl[2]], [0, 0, 0, 1]])\n yzQ0 = tTpl - XP5J\n ... | [
"0.604629",
"0.5690877",
"0.566058",
"0.546934",
"0.5419739",
"0.53992414",
"0.53747255",
"0.53564847",
"0.53442174",
"0.533645",
"0.53151274",
"0.52816457",
"0.52754575",
"0.5259618",
"0.5208826",
"0.5179219",
"0.5169666",
"0.51681334",
"0.51548636",
"0.5148781",
"0.5135079"... | 0.0 | -1 |
Returns the total staked amount stored in a vardb _total_stake. | def kl9D(YKHO) -> int:
return YKHO._total_stake.get() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A_pa(YKHO):\n mq4h = L9Jq.objects.filter(email=YKHO.email).aggregate(zphJ('total_price')).get('total_price__sum')\n return round(mq4h, 4) if mq4h else 0",
"def fztu(wphz):\n return wphz.total_sold",
"def wjRY(YKHO):\n if YKHO.dynamic:\n YKHO._update_db_obj()\n return YKHO._db_obj.tota... | [
"0.65858716",
"0.6538318",
"0.62111753",
"0.6138218",
"0.6135569",
"0.6123897",
"0.6095115",
"0.60794395",
"0.60766083",
"0.6074283",
"0.6031743",
"0.5965689",
"0.5964389",
"0.59520096",
"0.5926538",
"0.59139526",
"0.590713",
"0.5894734",
"0.58571315",
"0.5856632",
"0.5830383... | 0.8146318 | 0 |
Returns the total rewards earned up to now by the staking contract. | def fGBa(YKHO) -> int:
return YKHO._total_lifetime_reward.get() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ryVl(YKHO) -> float:\n return YKHO.__total_rewards",
"def l5NB(YKHO):\n return YKHO.cumreward",
"def l5NB(YKHO):\n return YKHO.cumreward",
"def l5NB(YKHO):\n return YKHO.lastFitness",
"def IvsU(YKHO):\n return oyIN.sum(YKHO.rewards)",
"def Q7q2(YKHO):\n return YKHO.total_balance - Y... | [
"0.74350184",
"0.7319174",
"0.7319174",
"0.6883852",
"0.67559856",
"0.67167974",
"0.6656435",
"0.6656435",
"0.6656435",
"0.66351753",
"0.65298206",
"0.6467578",
"0.6409539",
"0.63020545",
"0.6262705",
"0.6262705",
"0.62345237",
"0.6190423",
"0.6136656",
"0.61360705",
"0.61356... | 0.5873769 | 39 |
Push the item onto the heap, maintaining the heap invariant. | def jGbP(gGCN, ZfUD):
gGCN.append(ZfUD)
OF3d(gGCN, 0, len(gGCN) - 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, ZfUD: tuple):\n YKHO.__heap.append(ZfUD)\n YKHO.__sift_up(YKHO.__len__() - 1)",
"def _jXH(YKHO, ZfUD):\n _eVy.heappush(YKHO.heap, ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.heap.append(YKHO.m * ZfUD)\n YKHO._sift_up()",
"def JPHp(YKHO, ZfUD):\n YKHO.heaplist.append(ZfUD)\n YKHO... | [
"0.9063282",
"0.8996565",
"0.8773676",
"0.82297313",
"0.8163153",
"0.7998835",
"0.79950887",
"0.7948598",
"0.7889434",
"0.78529996",
"0.7817438",
"0.7795371",
"0.7776321",
"0.7763033",
"0.77054644",
"0.7682576",
"0.7661818",
"0.7661818",
"0.76568264",
"0.76370543",
"0.7628241... | 0.80675966 | 5 |
Given an absolute path, return a path relative to the project root. 'subdir/foo' | def mTMh(YKHO, Yb80):
t_yv = Hy7s.path.relpath(Yb80, gCuF.PROJECT_ROOT)
return t_yv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ssrL(pmON):\n if Hy7s.path.isabs(pmON):\n return pmON\n jNha = Hy7s.path.dirname(Hy7s.path.dirname(Hy7s.path.dirname(Hy7s.path.realpath(xAKo))))\n return Hy7s.path.join(jNha, pmON)",
"def Wbb_(XNWQ):\n return Hy7s.path.join(Odyn, XNWQ)",
"def thjq(pmON):\n return Hy7s.path.join(Hy7s.p... | [
"0.76968694",
"0.7513431",
"0.74758035",
"0.7474766",
"0.7435405",
"0.7332667",
"0.7309524",
"0.7283314",
"0.7236684",
"0.7155462",
"0.7137708",
"0.7106382",
"0.70955163",
"0.70686436",
"0.70526963",
"0.7035758",
"0.7011202",
"0.701053",
"0.70069593",
"0.6901063",
"0.68866503... | 0.7532645 | 1 |
Returns whether the stack is empty. | def lsmZ(YKHO) -> bool:
return YKHO.size == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.the_stack) == 0",
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def lsmZ(YKHO) -> bool:\n return len(YKHO.stack) == 0",
"def A4KR(YKHO):\n return len(YKHO.stack) == 0",
"def lsmZ(YKHO):\n return len(YKHO.stack) == 0",
"def lsmZ(YKHO):\n return len(Y... | [
"0.9207258",
"0.91276956",
"0.90185934",
"0.9000551",
"0.89481044",
"0.89481044",
"0.8914844",
"0.8904091",
"0.8881541",
"0.88791907",
"0.8867761",
"0.87955654",
"0.8768181",
"0.8748518",
"0.87393755",
"0.8728073",
"0.8719241",
"0.87090814",
"0.87090814",
"0.85431594",
"0.850... | 0.0 | -1 |
This function runs hashlib.sha512() on a file using chunks to ensure that too much RAM is not used. | def JHrc(IznC, /, *, ym_X=1048576):
import hashlib
PUDK = hashlib.sha512()
with open(IznC, 'rb') as jWIJ:
while True:
yOAJ = jWIJ.read(ym_X)
if len(yOAJ) == 0:
break
PUDK.update(yOAJ)
return PUDK.hexdigest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SleD(Prlo):\n cgAf = 2 ** 20\n r8hN = HBct.sha512()\n with open(Prlo, 'rb') as eHNT:\n while True:\n LaVg = eHNT.read(cgAf)\n if not LaVg:\n break\n r8hN.update(LaVg)\n return r8hN.hexdigest()",
"def wYxH(gIsw):\n quIC = HBct.sha256()\n ... | [
"0.7312387",
"0.72841877",
"0.7193235",
"0.69665354",
"0.68670136",
"0.6723953",
"0.6630066",
"0.6559456",
"0.6534818",
"0.64672387",
"0.63602763",
"0.6274184",
"0.626974",
"0.6252934",
"0.6230989",
"0.6187304",
"0.61721843",
"0.6122351",
"0.6092596",
"0.5980338",
"0.59542215... | 0.8374994 | 0 |
Convert date string to datetime. | def JDE9(mbyn):
return qcWV.strptime(mbyn, '%d/%m/%Y') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dDPx(GXef):\n from dateutil import parser\n from datetime import datetime\n _c1T = parser.parse(GXef)\n return _c1T",
"def TZLK(mbyn: str) -> qcWV:\n return d5IO.parser.parse(mbyn)",
"def OLXh(JvEs):\n return JRYC.strptime(JvEs, '%Y-%m-%d')",
"def R2Sr(KCHu):\n return qcWV.strptime(K... | [
"0.8128393",
"0.8001215",
"0.7989846",
"0.798428",
"0.79651654",
"0.7881875",
"0.7866022",
"0.78598154",
"0.78395015",
"0.77747935",
"0.7715534",
"0.76870006",
"0.75268126",
"0.7498706",
"0.74965304",
"0.7485769",
"0.74842775",
"0.746032",
"0.7424017",
"0.74084324",
"0.739559... | 0.75608206 | 12 |
Pop the topmost item off the stack. Returns the item. | def BEuN(YKHO):
ZfUD = YKHO.stack[-1]
YKHO.stack = YKHO.stack[:-1]
return ZfUD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEuN(YKHO):\n try:\n if YKHO.size() > 0:\n tlxW = YKHO.top()\n YKHO.items.pop()\n return tlxW\n else:\n raise IndexError('Cannot pop item, stack is empty.')\n except IndexError as err:\n print(XObx)\n raise",
"def BEuN(YKHO):\n ... | [
"0.9038657",
"0.89699066",
"0.8646669",
"0.8436965",
"0.8425731",
"0.8394855",
"0.8379378",
"0.83787584",
"0.8376376",
"0.836779",
"0.8341289",
"0.83400613",
"0.83147097",
"0.8313943",
"0.8297329",
"0.8291556",
"0.8232232",
"0.82071257",
"0.82069063",
"0.81836283",
"0.8150139... | 0.9046111 | 0 |
Peek at the topmost item of the stack without popping. Returns the item, or None on underflow. | def T7C_(YKHO):
try:
return YKHO.stack[-1]
except IndexError:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T7C_(YKHO):\n if YKHO.isEmpty():\n raise Exception('Stack underflow')\n return YKHO.first.Item",
"def T7C_(YKHO):\n if not YKHO.is_empty():\n return YKHO._stack_items[-1]\n else:\n raise Syp4('Peek operation not supported on an empty stack')",
"def T7C_(YKHO):\n print('s... | [
"0.7854999",
"0.7848019",
"0.77432376",
"0.7725692",
"0.7712781",
"0.7672322",
"0.76620185",
"0.7641305",
"0.7610284",
"0.76081336",
"0.7587791",
"0.7587791",
"0.75744694",
"0.7550017",
"0.75288725",
"0.7514343",
"0.75083995",
"0.7495166",
"0.74850506",
"0.7464874",
"0.745950... | 0.80332464 | 0 |
Returns whether or not the stack is empty. | def FBfn(YKHO):
return len(YKHO.stack) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.the_stack) == 0",
"def lsmZ(YKHO) -> bool:\n return len(YKHO.stack) == 0",
"def lsmZ(YKHO):\n return len(YKHO.stack) == 0",
"def lsmZ(YKHO):\n return len(YKHO.stack) == 0",
"def lsmZ(YKHO):\n return len(YKHO.stack) == 0",
"def A4KR(YKHO):\n return len(Y... | [
"0.92969453",
"0.90845764",
"0.9067046",
"0.9067046",
"0.9049475",
"0.9040509",
"0.90028155",
"0.8970693",
"0.8958459",
"0.894402",
"0.8918213",
"0.89048815",
"0.88327855",
"0.8823499",
"0.8811676",
"0.87955076",
"0.87955076",
"0.8791064",
"0.87125903",
"0.8611502",
"0.859849... | 0.92230463 | 1 |
String representation of the stack. | def wHJl(YKHO):
return str(YKHO.stack) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n9px(YKHO):\n return ''.join(YKHO.stack[:0:-1])",
"def wHJl(YKHO):\n return str(YKHO._stack_items)",
"def zAg0(YKHO):\n return 'The stack contains: ' + str(YKHO.the_stack)",
"def zAg0(YKHO):\n JcNi = [str(YRbF) for YRbF in YKHO._data]\n return 'STACK: { ' + ', '.join(JcNi) + ' }'",
"def ... | [
"0.85406256",
"0.8412833",
"0.8216093",
"0.8198461",
"0.8198461",
"0.818666",
"0.8168011",
"0.81232345",
"0.7814737",
"0.7814737",
"0.76956904",
"0.76956904",
"0.76956904",
"0.76956904",
"0.7628415",
"0.7368872",
"0.715802",
"0.7069953",
"0.67405593",
"0.67273206",
"0.6695258... | 0.87551796 | 0 |
Validates that the string is a correct infix expression. Also, replaces unary minus operators with a 'u'. Returns a valid, tokenized string on success; raises ExpressionError if the input is erroneous. | def xzCw(vIwR):
s2mk = vIwR.split()
ryLn = True
Maem = ['+', '-', '*', '/', '^', 'sqrt']
for YRbF in Ni9Y(len(s2mk)):
if s2mk[YRbF] in Maem or s2mk[YRbF] == '(':
if ryLn:
if s2mk[YRbF] == '-':
s2mk[YRbF] = 'u-'
elif s2mk[YRbF] in ['... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rTY7(vIwR):\n return hEAh(XtMr(vIwR))",
"def mJJQ(input: str) -> o7DN:\n U5Jc = x1_V(input).tokenize()\n TK2h = MinB(U5Jc)\n return TK2h",
"def XtMr(vIwR):\n s2mk = xzCw(vIwR)\n KCHu = S9Ut()\n hEAh = ''\n Maem = ['+', '-', '*', '/', '^', 'sqrt', 'u-', '(', ')']\n for eOtH in s2m... | [
"0.67217284",
"0.66280156",
"0.66256684",
"0.6390146",
"0.63846296",
"0.6309319",
"0.63021815",
"0.6235218",
"0.61009157",
"0.60545176",
"0.60317606",
"0.60182995",
"0.5994529",
"0.5970374",
"0.59688133",
"0.5967874",
"0.59608865",
"0.59466004",
"0.5895652",
"0.5879398",
"0.5... | 0.75027424 | 0 |