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 |
|---|---|---|---|---|---|---|
Initialize a new instance of the BaseModel class. Also recreate a class instance from a dictiornary. | def FIMM(YKHO, *qIxc, **B2fa):
if B2fa:
JRYC = B2fa['updated_at']
FMLJ = '%Y-%m-%dT%H:%M:%S.%f'
YKHO.updated_at = qcWV.strptime(JRYC, FMLJ)
JRYC = B2fa['created_at']
YKHO.created_at = qcWV.strptime(JRYC, FMLJ)
Xri2 = ['created_at', '__class__', 'updated_at']
f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GR6L(YKHO):\n eUNp = {'id': '56d43177-cc5f-4d6c-a0c1-e167f8c27337', 'created_at': '2017-09-28T21:03:54.052298', '__class__': 'BaseModel', 'my_number': 89, 'updated_at': '2017-09-28T21:03:54.052302', 'name': 'Holberton'}\n kZuB = KcDH(**eUNp)\n YKHO.assertIsInstance(kZuB, KcDH)\n YKHO.assertIsInstan... | [
"0.7710881",
"0.73470145",
"0.7263619",
"0.7173882",
"0.71642655",
"0.7099369",
"0.7045332",
"0.70380807",
"0.7033412",
"0.7022134",
"0.7022134",
"0.6956213",
"0.6956213",
"0.6956213",
"0.6956213",
"0.6956213",
"0.6956213",
"0.6956213",
"0.6956213",
"0.6956213",
"0.6956213",
... | 0.0 | -1 |
Returns a string representation of a class instance in the required format | def zAg0(YKHO):
return '[{}] ({}) {}'.format(YKHO.__class__.__name__, YKHO.id, YKHO.__dict__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(Emd4):\n return Emd4._format_cls_repr()",
"def wHJl(YKHO):\n mPQc = type(YKHO).__name__\n C9U5 = YKHO.__dict__\n return f'<{mPQc} {C9U5}>'",
"def zAg0(YKHO):\n b5m0 = YKHO.__class__.__name__\n cmPJ = YKHO.to_dict()\n del cmPJ['__class__']\n return '[{}] ({}) {}'.format(b5m0, YK... | [
"0.77214414",
"0.7634888",
"0.76266515",
"0.7551843",
"0.75327635",
"0.75327635",
"0.75327635",
"0.75327635",
"0.75327635",
"0.75327635",
"0.75327635",
"0.75327635",
"0.75327635",
"0.75327635",
"0.75327635",
"0.75327635",
"0.75327635",
"0.75327635",
"0.75327635",
"0.75327635",
... | 0.0 | -1 |
Generate a random string of fixed length | def TJC9(FVpJ=10):
KoG3 = vIwR.ascii_lowercase
return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))",
"def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]",
"def BWvy(a__r):\n return Hy7s.urandom(a__r)",
"def MiNk(u54L):\n gLiZ = vIwR.ascii... | [
"0.8746205",
"0.87138057",
"0.86634374",
"0.8589632",
"0.85856813",
"0.85634226",
"0.8558564",
"0.85515654",
"0.853908",
"0.8533391",
"0.8508468",
"0.85072726",
"0.84704083",
"0.84667903",
"0.84667903",
"0.84504145",
"0.8449424",
"0.8428432",
"0.84244287",
"0.8423231",
"0.841... | 0.0 | -1 |
Return True if the sequence is jolly | def Zjlx(input):
xYvp = []
a4ZY = []
for YRbF in range(len(input)):
if YRbF != len(input) - 1:
jzdc, Fg_i = (input[YRbF], input[YRbF + 1])
Aofo = abs(jzdc - Fg_i)
if Aofo not in xYvp:
xYvp.append(Aofo)
if input[YRbF] not in a4ZY:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eRwN(YKHO):\n YKHO.n = round(w_iD(lambda WKvO: ap9_(2 * WKvO, WKvO) / (WKvO + 1) - YKHO.seq.ls[0], 5)[0])\n if YKHO.n == 1 and YKHO.seq.ls[1] == 1:\n YKHO.n = 0\n for YRbF in range(1, YKHO.seq.size):\n if YKHO.seq.ls[YRbF] != ap9_(2 * (YKHO.n + YRbF), YKHO.n + YRbF) * 1 / (YKHO.n + YRbF ... | [
"0.6440556",
"0.6298397",
"0.6239815",
"0.6168725",
"0.6131584",
"0.61282545",
"0.6061343",
"0.6028318",
"0.602701",
"0.601196",
"0.6009169",
"0.599983",
"0.59651506",
"0.5953484",
"0.5912399",
"0.58916026",
"0.58668447",
"0.58575296",
"0.58555245",
"0.5852824",
"0.58463806",... | 0.0 | -1 |
Store all displays as items are plotted. Since the canvas is dismantled whenever this widget is hidden, we should recreate the plots that were being displayed whenever we show the widget again. | def kj9G(YKHO, *qIxc, **B2fa):
if YKHO.canvas is not None:
YKHO.displays.append(YKHO.canvas.plot(*qIxc, **B2fa))
else:
YKHO.to_plot.append((qIxc, B2fa)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _H2s(YKHO, cY1M):\n if cY1M and YKHO.canvas is None:\n YKHO.canvas = FHhW.init(backend=YKHO.mRenWin)\n YKHO.canvas.open()\n for o_qv in YKHO.displays:\n YKHO.canvas.display_names.append(o_qv.name)\n if o_qv.name not in FHhW.elements['display']:\n FHh... | [
"0.6802244",
"0.652939",
"0.6311313",
"0.62974244",
"0.6104432",
"0.61019945",
"0.60193694",
"0.599201",
"0.5979903",
"0.5973034",
"0.5953459",
"0.5930077",
"0.5897978",
"0.5892146",
"0.58690447",
"0.58523995",
"0.5831924",
"0.58295137",
"0.57921827",
"0.57898253",
"0.5783198... | 0.0 | -1 |
Gets the name of this FileStore. | def mWFP(YKHO) -> str:
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EE2u(YKHO):\n return YKHO._store_name",
"def Q0HP(YKHO):\n return YKHO.fileName",
"def gIsw(YKHO):\n return YKHO.properties.get('FileName', None)",
"def mWFP(YKHO) -> str:\n return YKHO._datastore.name",
"def gIsw(YKHO) -> str:\n return str(YKHO.file.name)",
"def mWFP(YKHO):\n retur... | [
"0.7862669",
"0.78399545",
"0.7684936",
"0.76812613",
"0.76569533",
"0.76520795",
"0.7650059",
"0.76109993",
"0.7590518",
"0.7590518",
"0.756823",
"0.7548117",
"0.754792",
"0.7544407",
"0.7544407",
"0.75330126",
"0.75330126",
"0.75330126",
"0.751763",
"0.7497732",
"0.7447407"... | 0.70443505 | 100 |
Sets the name of this FileStore. | def mWFP(YKHO, mWFP: str):
if mWFP is None:
raise ValueError('Invalid value for `name`, must not be `None`')
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP: str):\n YKHO._datastore.name = mWFP\n YKHO._update_datastore_file()",
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO._data.set_name(mWFP)",
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def WZr... | [
"0.82755446",
"0.76588064",
"0.7641261",
"0.76411813",
"0.76411813",
"0.76411813",
"0.76411813",
"0.76411813",
"0.76411813",
"0.76411813",
"0.76411813",
"0.760686",
"0.7591835",
"0.7515993",
"0.7515993",
"0.75085586",
"0.74964535",
"0.74851954",
"0.7484042",
"0.7477868",
"0.7... | 0.0 | -1 |
Gets the store_type of this FileStore. | def gcuL(YKHO) -> str:
return YKHO._store_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZCFZ(YKHO):\n return YKHO._store.storage_type",
"def ZCFZ(YKHO):\n if YKHO._storage_file:\n return YKHO._storage_file.storage_type\n return None",
"def kTwo(YKHO) -> str:\n return qe4Y.get(YKHO, 'storage_type')",
"def kTwo(YKHO) -> str:\n return qe4Y.get(YKHO, 'storage_type')",
"d... | [
"0.7178733",
"0.6827774",
"0.6817149",
"0.6817149",
"0.6817149",
"0.67513645",
"0.66663206",
"0.6635032",
"0.6586282",
"0.6580152",
"0.6580152",
"0.6580152",
"0.6580152",
"0.6580152",
"0.6580152",
"0.65763944",
"0.65763944",
"0.64987755",
"0.6490289",
"0.6487094",
"0.6487094"... | 0.80559397 | 0 |
Gets the store_data of this FileStore. | def QfZV(YKHO) -> object:
return YKHO._store_data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZUI6(YKHO):\n return YKHO._objDoStore",
"def uwi0(YKHO):\n return YKHO._dstore",
"def VUF1(YKHO):\n return YKHO._store",
"def VUF1(YKHO):\n return YKHO._store",
"def oxS6(YKHO, VUF1=None):\n if VUF1 is None:\n VUF1 = YKHO.__class__.store\n return VUF1",
"def VUF1(YKHO) -> Kqt... | [
"0.7574894",
"0.75552213",
"0.7509919",
"0.7509919",
"0.74468625",
"0.7383069",
"0.73639417",
"0.71695083",
"0.71222985",
"0.68802273",
"0.6809046",
"0.6784166",
"0.6784166",
"0.6784166",
"0.6784166",
"0.6715503",
"0.669878",
"0.66886616",
"0.6677064",
"0.66472656",
"0.664357... | 0.787504 | 0 |
function that returns a sorted list of divisors fo n | def oCcr(exwG: int) -> x1iM[int]:
if exwG <= 0:
raise Exception(f"'{exwG}' is non positive")
Llmz: x1iM[AzJI[int, int]] = IYpW(exwG)
Aofo: x1iM[int] = CWKR(Llmz).generate()
Aofo.sort()
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oCcr(exwG):\n yv6U = []\n FgPp(exwG, abs(exwG), yv6U)\n return yv6U",
"def oCcr(exwG):\n if exwG == 0:\n return []\n else:\n return x_oE(abs(exwG), 1, [])",
"def oCcr(exwG: int) -> x1iM[int]:\n Uqbu = []\n Csk6 = epAf.ceil(epAf.sqrt(exwG))\n Uqbu = [YRbF for YRbF in ra... | [
"0.8448389",
"0.8415179",
"0.82989377",
"0.82625604",
"0.8221596",
"0.8182004",
"0.81749916",
"0.81530476",
"0.81413037",
"0.8115264",
"0.8081953",
"0.8021189",
"0.80160034",
"0.7939359",
"0.79199517",
"0.78473175",
"0.7841511",
"0.7817415",
"0.78159946",
"0.7751973",
"0.7724... | 0.8303732 | 2 |
Return initial board state at the beginning of a game | def yKcO(YKHO):
return [[0] * 3] * 3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W9gz():\n return q9ES",
"def Ee93():\n exwG = ahzX(mF_7, 5)\n return exwG",
"def gi1B():\n return [[2, 0, 2, 0], [0, 0, 0, 0], [4, 0, 8, 0], [0, 0, 0, 0]]",
"def t4c0(YKHO):\n YKHO.board.init_map()\n YKHO.inital_state = [(WKvO.pos, WKvO.pegged) for WKvO in YKHO.board.cells]",
"def tQN... | [
"0.8592305",
"0.8204432",
"0.7912563",
"0.76303715",
"0.76235",
"0.76235",
"0.76235",
"0.76235",
"0.76235",
"0.7545663",
"0.7283696",
"0.7241118",
"0.7149266",
"0.704045",
"0.70320654",
"0.7029466",
"0.70268863",
"0.6944817",
"0.69431317",
"0.69424087",
"0.69132537",
"0.689... | 0.0 | -1 |
Return current player based on the current game state | def tRnr(YKHO, QTBn):
if QTBn.count(0) % 2 == 1:
return 1
else:
return 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mCd_(YKHO):\n if YKHO.two_players:\n if YKHO.current_player == 0:\n return YKHO.challenger\n else:\n return YKHO.opponent\n else:\n return YKHO.players[YKHO.current_player]",
"def oyg0(YKHO):\n return YKHO._state[1]",
"def mCd_(YKHO):\n return YKHO.cur... | [
"0.799614",
"0.78587586",
"0.782135",
"0.77685714",
"0.77046907",
"0.7652249",
"0.759878",
"0.759399",
"0.75548625",
"0.7531189",
"0.7531189",
"0.7495812",
"0.74764884",
"0.74279964",
"0.72995496",
"0.72819424",
"0.7259741",
"0.7209178",
"0.72080374",
"0.71579355",
"0.7153251... | 0.7099029 | 22 |
Generates a cryptographically secure random string of numbers which for our purposes acts as a private seed. Then we use shake_128 to generate a secure hash of the seed Both are returned | def n5wF(YKHO):
cJZA = tuKI.randint(100, 200)
print(cJZA)
YKHO.seed = Hy7s.urandom(cJZA)
QvwN = HBct.shake_128()
QvwN.update(YKHO.seed)
YKHO.seed_hash = QvwN.digest(100) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EnVs(YKHO):\n gLiZ = vIwR.ascii_uppercase + vIwR.digits\n return ''.join(tuKI.choices(gLiZ, k=16))",
"def hq52() -> bytes:\n return Hy7s.urandom(16)",
"def zB84():\n NTfD = ''.join((Acvy(inyE) for YRbF in range(100)))\n return NTfD",
"def Hdm6() -> bytes:\n return Hy7s.urandom(16)",
"... | [
"0.71807754",
"0.71390545",
"0.700668",
"0.69581234",
"0.6919354",
"0.6910289",
"0.68841153",
"0.68773705",
"0.68516934",
"0.68064",
"0.68051714",
"0.67951703",
"0.6794048",
"0.6696321",
"0.6640534",
"0.66382307",
"0.660428",
"0.6602649",
"0.65860045",
"0.6563117",
"0.6554104... | 0.6750835 | 13 |
Get a random float64 number in the full range. | def mxsL():
ADdS = 0.0
while oyIN.isclose(ADdS, 0.0, atol=1e-12):
ADdS = oyIN.random.uniform(low=oyIN.finfo(float).min / 10.0, high=oyIN.finfo(float).max / 10.0, size=1)[0]
return ADdS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g92x() -> float:\n return js4S(-HwRy.maxsize, HwRy.maxsize)",
"def g92x(YKHO):\n return YKHO.random() / 4294967295",
"def tuKI():\n WKvO = SI9y(53)\n return WKvO * 2 ** (-53)",
"def g92x(A2Fp):\n return tuKI.random() * A2Fp",
"def mxsL(YKHO) -> float:\n return YKHO.__generator.uniform... | [
"0.8243838",
"0.7891103",
"0.77076805",
"0.76981926",
"0.76574963",
"0.76473975",
"0.75098294",
"0.74481946",
"0.71166915",
"0.6973205",
"0.69680697",
"0.69057244",
"0.689805",
"0.68261796",
"0.6735978",
"0.6682765",
"0.667792",
"0.655874",
"0.6555934",
"0.6519714",
"0.650684... | 0.82390004 | 1 |
Initializing the class. p_dict and q_dict should be lists of dictionary types holding key equal to node number 1, 2, .. and values equal their rated values in pu. If the rated active or reactive power is not given set value to None. The object calculates the number of PQ, PV, slack buses based on the input data For vol... | def FIMM(YKHO, Aq2z, wJ3w, LNZZ, rolz, LbaP):
YKHO.nodes_dict = {}
YKHO.fill_nodes_dict(Aq2z, wJ3w, LNZZ, rolz)
YKHO.slack_node = LbaP
YKHO.n_pq = 0
YKHO.n_pv = 0
YKHO.n_pd = 0
YKHO.n = 0
YKHO.m = 0
YKHO.jacobian = oyIN.zeros([YKHO.m, YKHO.m])
YKHO.get_n_values()
YKHO.loss_ma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, RhGk=None):\n if RhGk == None:\n YKHO.gain = {'Kp': 0.15, 'Ki': 0.0025, 'Kd': 0.0, 'Pmax': 100.0, 'Pmin': 0.0}\n elif RhGk == 'stm312 hpc':\n YKHO.gain = {'Kp': 1.7, 'Ki': 0.015, 'Kd': 0.0, 'Pmax': 90.0, 'Pmin': 0.0}\n YKHO.setpoint = -9999\n YKHO.pid_coef = {'p': YKHO.gain... | [
"0.64848274",
"0.63985085",
"0.63486934",
"0.6274569",
"0.6271239",
"0.62263024",
"0.61537135",
"0.6145485",
"0.6128996",
"0.61232966",
"0.61125076",
"0.6096305",
"0.6086652",
"0.6072333",
"0.60468286",
"0.60320073",
"0.6029838",
"0.60192716",
"0.6014801",
"0.600376",
"0.5993... | 0.77695096 | 0 |
Retrieves an saved model from a .json file. file_path path to the model file model | def i1FH(qaEx):
YBcr, gIsw, eHKs = Tf3x(qaEx)
if not WO5h(YBcr):
raise SWMn('Keras Models can only be loaded from a .json file')
if not Hy7s.path.isdir(eHKs):
raise SWMn('Directory : ' + eHKs + ' does not exist.')
jdMB = open(qaEx)
iGq6 = jdMB.read()
jdMB.close()
C3ST = oPz_(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WmUe(uqvc):\n try:\n ytgA = open(uqvc, 'r')\n iGq6 = ytgA.read()\n ytgA.close()\n try:\n C3ST = qQXR.loads()\n return C3ST\n except:\n raise ValueError('Invalid Json File Provided')\n except:\n raise ValueError('Invalid Path Provi... | [
"0.7578643",
"0.7488954",
"0.7308654",
"0.7296272",
"0.7154818",
"0.7142955",
"0.70625246",
"0.7039514",
"0.69817626",
"0.69615704",
"0.69355273",
"0.69321907",
"0.6913861",
"0.6910901",
"0.68848634",
"0.6847821",
"0.6841628",
"0.6828169",
"0.68231297",
"0.68222135",
"0.67863... | 0.72970504 | 3 |
Return True if the requirement line is a package requirement; that is, it is not blank, a comment, or editable. | def Y1U4(zFiD):
zFiD = zFiD.strip()
return not (zFiD == '' or zFiD.startswith('-r') or zFiD.startswith('#') or zFiD.startswith('-e') or zFiD.startswith('git+')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y1U4(zFiD):\n zFiD = zFiD.strip()\n return not (zFiD == '' or zFiD.startswith('-r') or zFiD.startswith('#') or zFiD.startswith('-e') or zFiD.startswith('git+') or zFiD.startswith('-c'))",
"def KqzS(zFiD):\n zFiD = zFiD.strip()\n return zFiD and (not zFiD.startswith('#'))",
"def gYmH(zFiD):\n ... | [
"0.79471725",
"0.76443446",
"0.72148114",
"0.69187886",
"0.633336",
"0.6309209",
"0.63047075",
"0.6282554",
"0.6282554",
"0.6282554",
"0.6150431",
"0.60969514",
"0.60770065",
"0.60318655",
"0.60295695",
"0.5983562",
"0.5958442",
"0.59492964",
"0.5926801",
"0.58885974",
"0.582... | 0.79594874 | 0 |
Load all requirements from the specified requirements files. Returns a list of requirement strings. | def CmVM(*k6Au):
fA3L = set()
for pmON in k6Au:
fA3L.update((zFiD.strip() for zFiD in open(pmON).readlines() if Y1U4(zFiD)))
return list(fA3L) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ks_v():\n VGiD = Hy7s.path.join('.', 'requirements.txt')\n with open(VGiD, 'r') as eHNT:\n fA3L = [zFiD.rstrip() for zFiD in eHNT]\n return fA3L",
"def Ks_v():\n VGiD = Hy7s.path.join('.', 'requirements.txt')\n with open(VGiD, 'r') as eHNT:\n fA3L = [zFiD.rstrip() for zFiD in eHN... | [
"0.7570476",
"0.7533623",
"0.74729747",
"0.744778",
"0.7430862",
"0.7349816",
"0.73235923",
"0.731124",
"0.72095734",
"0.72059774",
"0.7200693",
"0.719916",
"0.71969396",
"0.7159214",
"0.71573246",
"0.70966566",
"0.70909494",
"0.70544744",
"0.7051436",
"0.70076054",
"0.700210... | 0.8448279 | 0 |
Returns all possible capture moves for a given board state Winning capture = small piece captures bigger piece e.g. pawn captures knight Neutral capture = piece captures other piece of same value Losing capture = higher value piece captures lower value piece | def zORi(iBIi: Board, qfpW: bool):
Zoh6 = jBdG[:-1]
xOHY = []
for mrj1 in Zoh6[::-1]:
JbSN = iBIi.pieces(mrj1, not qfpW)
if len(JbSN) > 0:
for vC9B in JbSN:
gHJh = list(iBIi.attackers(qfpW, vC9B))
if len(gHJh) > 0:
Nygm = [{'vic... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vKC5(YKHO):\n oLdq = set()\n g5TI = YKHO.row - 1\n R57j = YKHO.possibleCol[YKHO.col]\n if YKHO.color == 'BLACK':\n if 0 <= g5TI + 1 <= 7 and 0 <= R57j - 1 <= 7 and (YKHO.board[g5TI + 1][R57j - 1] is not None) and YKHO.validMoveIncludingKing(g5TI + 1, R57j - 1):\n oLdq.add((g5TI + ... | [
"0.75362086",
"0.73532474",
"0.73248017",
"0.704719",
"0.7041358",
"0.7039655",
"0.69914687",
"0.69436723",
"0.69334656",
"0.6932223",
"0.6839796",
"0.67700875",
"0.674108",
"0.67224765",
"0.6667848",
"0.66291577",
"0.6629045",
"0.66112345",
"0.6598563",
"0.6591113",
"0.65841... | 0.75491434 | 0 |
Render a template to hold the front page blurb. | def d6pt():
with open(Hy7s.path.join(p7gR, 'FrontPage.md'), 'r') as eHNT:
N7SO = eHNT.read().decode('utf8')
return TvZl('index.html', articles=X4Lv, blurb=N7SO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KIjS():\n return TvZl('index.html')",
"def vja_():\n return TvZl('home.html')",
"def kZiy():\n leAC = 'Home'\n return TvZl('home.html', title=leAC)",
"def vja_():\n return TvZl('home.html')",
"def hqip(YKHO, leAC='', TBsA='', P1dF=''):\n FvVY = NCls.GqlQuery('SELECT * FROM Post ORDER ... | [
"0.7637409",
"0.6959386",
"0.6930432",
"0.6924427",
"0.6871041",
"0.6856597",
"0.68498147",
"0.6817751",
"0.6814823",
"0.6814823",
"0.6801668",
"0.67850894",
"0.678505",
"0.67801476",
"0.67787814",
"0.67787814",
"0.67787814",
"0.67787814",
"0.67787814",
"0.67787814",
"0.67787... | 0.66798496 | 63 |
Tests that self.driver exists | def GN58(YKHO):
YKHO.assertIsNotNone(YKHO.driver) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HN06(YKHO):\n pass",
"def TXRA(YKHO):\n SYsl = p9lC(show=False)\n YKHO.assertEqual(type(SYsl), ngu_)",
"def ndi3(YKHO, E_qD):\n YKHO.assertTrue(yA3K(E_qD))",
"def dkmc(YKHO):\n if YKHO.driver:\n return True\n else:\n return False",
"def xx4N(YKHO, E_qD):\n sJDd = R3wq... | [
"0.7393761",
"0.6936401",
"0.6831456",
"0.67736584",
"0.672432",
"0.6565286",
"0.6532338",
"0.64913166",
"0.6471051",
"0.6428356",
"0.63734734",
"0.6366848",
"0.630416",
"0.6297073",
"0.62939256",
"0.62496597",
"0.6242559",
"0.62342787",
"0.62069905",
"0.6183175",
"0.6168451"... | 0.8748069 | 0 |
convert BatchNorms in the `module` into InstanceNorms | def uNd1(yR_P):
sn_f = (F6Dy, bxB1, kbDi)
aOOC = (CrJq, eJu2, dGHX)
for PKLr, QVmz in zip(sn_f, aOOC):
if isinstance(yR_P, PKLr):
VlDb = QVmz(yR_P.num_features, yR_P.eps, yR_P.momentum, yR_P.affine)
yR_P = VlDb
for mWFP, aUGN in yR_P.named_children():
yR_P.add_mod... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _RHn(yR_P: nn.Module) -> U78l.Module:\n return Eu0J(yR_P, ht2j.nn.InstanceNorm2d)",
"def fmbh(Emd4, yR_P):\n rXJg = U78l.modules.batchnorm\n rXJg = (rXJg.BatchNorm2d, rXJg.SyncBatchNorm)\n Ylbp = yR_P\n if isinstance(yR_P, rXJg):\n Ylbp = Emd4(yR_P.num_features)\n if yR_P.affine:... | [
"0.80304104",
"0.7018678",
"0.6658299",
"0.6552974",
"0.6533902",
"0.6529681",
"0.6228259",
"0.6202287",
"0.6202287",
"0.6106673",
"0.609632",
"0.60917306",
"0.6075054",
"0.6070335",
"0.6041541",
"0.60401523",
"0.600375",
"0.59677666",
"0.59443635",
"0.593935",
"0.5924877",
... | 0.70618665 | 1 |
Configure logging for the application | def X0ru(ABDL):
if ABDL is not None:
SL4b['handlers']['console']['level'] = ABDL.upper()
G9jH.config.dictConfig(SL4b) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EsWC(YKHO):\n from olympia.lib.log_settings_base import log_configure\n log_configure()",
"def EsWC(P4t4):\n eduQ(P4t4)",
"def feK3():\n G9jH.config.fileConfig('loggingClient.conf')\n G9jH.info('Logging started')",
"def tqPq():\n G9jH.config.fileConfig('config/logging.conf')",
"def Es... | [
"0.85932106",
"0.83394045",
"0.8230747",
"0.82293594",
"0.8161462",
"0.81499165",
"0.8091458",
"0.80824435",
"0.80124193",
"0.79805946",
"0.7940853",
"0.7934704",
"0.7917798",
"0.79161745",
"0.78661364",
"0.7833854",
"0.78129685",
"0.7782824",
"0.77441436",
"0.7721467",
"0.77... | 0.0 | -1 |
Initialize the a web driver | def aDzh(E_qD, type='chrome'):
xAU6 = cSpz.ChromeOptions()
xAU6.add_argument('--start-maximized')
xAU6.add_experimental_option('excludeSwitches', ['ignore-certificate-errors'])
if type == 'chrome':
E_qD = cSpz.Chrome(chrome_options=xAU6, executable_path=E_qD)
E_qD.implicitly_wait(zPZO)
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlk0(YKHO):\n YKHO.driver = cSpz.Chrome(YKHO.driver_path, chrome_options=YKHO.chop)",
"def DbxN():\n E_qD = cSpz.Firefox()\n return E_qD",
"def fyR5(QePW):\n if HwRy.platform == 'linux' or HwRy.platform == 'linux2':\n E_qD = I41m()\n else:\n E_qD = RpLl()\n E_qD = E_qD.load_... | [
"0.7793904",
"0.7495235",
"0.74813837",
"0.7475151",
"0.74688774",
"0.7375612",
"0.7346568",
"0.72965586",
"0.7289109",
"0.72726893",
"0.7244545",
"0.71909684",
"0.7135955",
"0.71327984",
"0.70054495",
"0.6987325",
"0.69684434",
"0.69613093",
"0.69434106",
"0.69367254",
"0.69... | 0.0 | -1 |
Gets the source of this Notification. | def JZXy(YKHO):
return YKHO._source | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wVsX(YKHO):\n return YKHO._payload.get_source()",
"def wVsX(YKHO):\n return YKHO.source",
"def wVsX(YKHO):\n return YKHO.source",
"def sfHD(YKHO):\n return YKHO.source",
"def sfHD(YKHO):\n return YKHO.source",
"def wVsX(YKHO):\n return YKHO.__source",
"def JZXy(YKHO) -> str:\n ... | [
"0.81008947",
"0.7940833",
"0.7940833",
"0.7938532",
"0.7938532",
"0.79114646",
"0.78860193",
"0.77303964",
"0.76256794",
"0.7596678",
"0.75799596",
"0.75531846",
"0.7477392",
"0.7477392",
"0.7477392",
"0.7477392",
"0.7445121",
"0.74335384",
"0.741687",
"0.74082965",
"0.74061... | 0.7586271 | 11 |
Sets the put_code of this Notification. | def aXwD(YKHO, aXwD):
YKHO._put_code = aXwD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xGo7(YKHO, Wxnj):\n YKHO.proto.code = Wxnj",
"def aXwD(YKHO):\n return YKHO._put_code",
"def xGo7(YKHO, Wxnj):\n YKHO.code = Wxnj",
"def xGo7(YKHO, Wxnj):\n YKHO.__code = Wxnj",
"def Wxnj(YKHO, Wxnj):\n YKHO._code = Wxnj",
"def Wxnj(YKHO, Wxnj):\n YKHO._code = Wxnj",
"def Wxnj(YKH... | [
"0.7325817",
"0.73251003",
"0.7324104",
"0.730394",
"0.71420974",
"0.71420974",
"0.71420974",
"0.71420974",
"0.71420974",
"0.71420974",
"0.71420974",
"0.71420974",
"0.71420974",
"0.71420974",
"0.71420974",
"0.6951088",
"0.6920279",
"0.6920279",
"0.6920279",
"0.6920279",
"0.69... | 0.87710077 | 0 |
Gets the notification_type of this Notification. | def I62H(YKHO):
return YKHO._notification_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I62H(YKHO):\n return YKHO._data.get('notification_type')",
"def I62H(YKHO):\n return YKHO._data.get('notification_type')",
"def S82U(Emd4, l87X):\n I62H = qGVo.objects.get(name=l87X)\n return I62H",
"def e2uv(YKHO):\n return rR1O",
"def FRul(YKHO):\n return YKHO._type",
"def FRul(YK... | [
"0.8745061",
"0.8745061",
"0.8170209",
"0.7188805",
"0.69990885",
"0.69990885",
"0.69990885",
"0.69990885",
"0.69990885",
"0.69990885",
"0.69990885",
"0.6954448",
"0.6954448",
"0.6899223",
"0.6889323",
"0.6889323",
"0.6889323",
"0.6857346",
"0.6857346",
"0.68230116",
"0.68230... | 0.87861484 | 0 |
Sets the notification_type of this Notification. | def I62H(YKHO, I62H):
BbPm = ['CUSTOM', 'INSTITUTIONAL_CONNECTION', 'PERMISSION', 'AMENDED']
if I62H not in BbPm:
raise ValueError('Invalid value for `notification_type` ({0}), must be one of {1}'.format(I62H, BbPm))
YKHO._notification_type = I62H | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wz2d(YKHO, type):\n YKHO.notification_manager.add_notification_type(type)",
"def I62H(YKHO):\n return YKHO._notification_type",
"def I62H(YKHO):\n return YKHO._data.get('notification_type')",
"def I62H(YKHO):\n return YKHO._data.get('notification_type')",
"def S82U(Emd4, l87X):\n I62H = ... | [
"0.7534741",
"0.694715",
"0.67372584",
"0.67372584",
"0.66638726",
"0.660784",
"0.650176",
"0.64184296",
"0.6415112",
"0.6382666",
"0.6367566",
"0.6313653",
"0.6313653",
"0.6306137",
"0.62958837",
"0.62958837",
"0.6295227",
"0.6295227",
"0.6295227",
"0.6295227",
"0.6285233",
... | 0.8397906 | 0 |
Gets the created_date of this Notification. | def a0GP(YKHO):
return YKHO._created_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uVt6(YKHO):\n return YKHO._payload.get_created_date()",
"def a0GP(YKHO) -> qcWV:\n return YKHO._created_date",
"def JjkJ(YKHO):\n return YKHO._date_created",
"def a0GP(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_date')",
"def a0GP(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_date')"... | [
"0.84482473",
"0.84126323",
"0.81628245",
"0.81188375",
"0.81188375",
"0.8108158",
"0.8108158",
"0.8108158",
"0.8108158",
"0.78179294",
"0.7812731",
"0.7812731",
"0.7812731",
"0.7719624",
"0.77122694",
"0.76984006",
"0.7678182",
"0.76325876",
"0.7628185",
"0.7628185",
"0.7602... | 0.8340467 | 4 |
Sets the created_date of this Notification. | def a0GP(YKHO, a0GP):
YKHO._created_date = a0GP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NqtR(YKHO, a0GP=None):\n pass",
"def a0GP(YKHO, a0GP):\n YKHO._created_date = a0GP",
"def a0GP(YKHO, a0GP: datetime):\n YKHO._created_date = a0GP",
"def JjkJ(YKHO, JjkJ):\n YKHO._date_created = JjkJ",
"def JjkJ(YKHO, JjkJ):\n YKHO._date_created = JjkJ",
"def JjkJ(YKHO, JjkJ):\n YKHO... | [
"0.8402155",
"0.8295466",
"0.8226222",
"0.8083124",
"0.80196834",
"0.80196834",
"0.80196834",
"0.80196834",
"0.80196834",
"0.80196834",
"0.80196834",
"0.80196834",
"0.80196834",
"0.80196834",
"0.80196834",
"0.80196834",
"0.80196834",
"0.7988557",
"0.7532668",
"0.7532668",
"0.... | 0.82458144 | 4 |
Gets the sent_date of this Notification. | def O0Xe(YKHO):
return YKHO._sent_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zp9r(YKHO):\n return YKHO._invoice_sent_at",
"def AI6W(YKHO) -> str:\n return qe4Y.get(YKHO, 'sent_at')",
"def slWZ(YKHO):\n return YKHO._date",
"def slWZ(YKHO):\n return YKHO._date",
"def KuDb(YKHO):\n return YKHO._date",
"def slWZ(YKHO):\n return YKHO.date",
"def slWZ(YKHO):\n ... | [
"0.71848637",
"0.71409035",
"0.6650455",
"0.6575306",
"0.65669584",
"0.6558528",
"0.6558528",
"0.6558528",
"0.6509785",
"0.6471523",
"0.6454754",
"0.6454754",
"0.6449",
"0.6444405",
"0.64368767",
"0.641536",
"0.6410575",
"0.6410575",
"0.6398274",
"0.63974595",
"0.63925636",
... | 0.85375917 | 0 |
Sets the sent_date of this Notification. | def O0Xe(YKHO, O0Xe):
YKHO._sent_date = O0Xe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O0Xe(YKHO):\n return YKHO._sent_date",
"def HzoK(YKHO, HzoK):\n YKHO._sent_timestamp = HzoK",
"def _dZy(YKHO, _dZy):\n YKHO._sent = _dZy",
"def _dZy(YKHO, _dZy):\n YKHO._sent = _dZy",
"def xuao(YKHO, xuao):\n YKHO._notify_date = xuao",
"def JqUB(YKHO, JqUB):\n YKHO._posted_date = Jq... | [
"0.6916806",
"0.68758315",
"0.66933507",
"0.66933507",
"0.66504157",
"0.6464516",
"0.6464516",
"0.6446804",
"0.6357938",
"0.6337011",
"0.6283314",
"0.62100726",
"0.6187491",
"0.61115587",
"0.61085844",
"0.60769707",
"0.6068179",
"0.60681486",
"0.60550094",
"0.60550094",
"0.60... | 0.87465364 | 0 |
Sets the read_date of this Notification. | def YTGs(YKHO, YTGs):
YKHO._read_date = YTGs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tDS8(YKHO, Ol8d):\n if Ol8d.read_at is None:\n Ol8d.read_at = rIAI.now()\n tlyw.send(sender=Ol8d, from_user=Ol8d.sender, to=Ol8d.recipient)\n Ol8d.save()",
"def Ueki(YKHO, Ueki):\n YKHO._read = Ueki",
"def Ueki(YKHO, Ueki):\n YKHO._read = Ueki",
"def gq4h(YKHO, _c1T):\n Y... | [
"0.6729846",
"0.6523922",
"0.6498036",
"0.64629704",
"0.6429498",
"0.6359862",
"0.63157654",
"0.628642",
"0.62579316",
"0.6167716",
"0.61592716",
"0.61462253",
"0.61449116",
"0.61194265",
"0.610387",
"0.610387",
"0.610387",
"0.610387",
"0.610387",
"0.6048945",
"0.59789175",
... | 0.8638112 | 0 |
Gets the archived_date of this Notification. | def nCd4(YKHO):
return YKHO._archived_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gbcw(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'archived')",
"def Gbcw(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'archived')",
"def Gbcw(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'archived')",
"def Qhn7(YKHO) -> str:\n return qe4Y.get(YKHO, 'archi... | [
"0.6494785",
"0.6145394",
"0.6145394",
"0.60900617",
"0.5946681",
"0.5916399",
"0.5787516",
"0.57263905",
"0.5715209",
"0.56894386",
"0.5666448",
"0.5664867",
"0.5646896",
"0.5636339",
"0.5609994",
"0.5594907",
"0.5594907",
"0.5594907",
"0.557591",
"0.557591",
"0.55636954",
... | 0.85843855 | 0 |
Sets the archived_date of this Notification. | def nCd4(YKHO, nCd4):
YKHO._archived_date = nCd4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gbcw(YKHO, Gbcw):\n YKHO._archived = Gbcw",
"def Gbcw(YKHO, Gbcw):\n YKHO._archived = Gbcw",
"def Gbcw(YKHO, Gbcw):\n YKHO._archived = Gbcw",
"def OQmI(YKHO, OQmI):\n YKHO._archived_at = OQmI",
"def Gbcw(YKHO, Gbcw):\n if YKHO.local_vars_configuration.client_side_validation and Gbcw is N... | [
"0.7793025",
"0.7793025",
"0.7793025",
"0.75292",
"0.6792121",
"0.6792121",
"0.6702982",
"0.6314264",
"0.6242749",
"0.622746",
"0.61599267",
"0.60003084",
"0.59918714",
"0.5949944",
"0.5909307",
"0.58802265",
"0.5864129",
"0.5811079",
"0.5773685",
"0.5758929",
"0.5757602",
... | 0.86726487 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Return the size or length of the linked list. | def zNig(YKHO):
zNig = 0
Q6kx = YKHO.head
while Q6kx:
zNig += 1
Q6kx = Q6kx.next
return zNig | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n THsq = YKHO.head\n sL7f = 0\n while THsq is not None:\n sL7f = sL7f + 1\n THsq = THsq.next\n return sL7f",
"def zNig(YKHO):\n return YKHO.linked_list.size()",
"def szAg(YKHO):\n u54L = 0\n if YKHO.head is not None:\n aCLL = YKHO.head\n u54L = 1... | [
"0.80650437",
"0.8058155",
"0.8005287",
"0.79909426",
"0.79633033",
"0.7953287",
"0.78399897",
"0.7825978",
"0.78179806",
"0.78076273",
"0.77902126",
"0.77762336",
"0.77704877",
"0.77618915",
"0.77425295",
"0.773236",
"0.772082",
"0.77030146",
"0.76988363",
"0.76975125",
"0.7... | 0.7634519 | 27 |
View function to display homepage content | def C_QL(QePW):
FvVY = hnIv.objects.all()
z39Z = SYRW.objects.all()
aM_I = jY1u.objects.all()
return _1tc(QePW, 'all-templates/home.html', {'posts': FvVY, 'profile': z39Z, 'comment': aM_I}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_QL():\n return TvZl('home.html')",
"def IC8O():\n return TvZl('homepage.html')",
"def C_QL():\n return TvZl('homepage.html')",
"def Sn26():\n return TvZl('homepage.html', fields=V_D6)",
"def C_QL():\n return TvZl('homepage.html')",
"def C_QL():\n return TvZl('homepage.html')",
"... | [
"0.8352707",
"0.8327162",
"0.82923526",
"0.826691",
"0.82528424",
"0.8251245",
"0.82475436",
"0.8224581",
"0.8188751",
"0.8188751",
"0.81684285",
"0.813091",
"0.813091",
"0.80311537",
"0.80112594",
"0.799557",
"0.799557",
"0.79931194",
"0.7965967",
"0.79635656",
"0.79635656",... | 0.0 | -1 |
Return True if all fields wanted are present in product dictionnary. If not return False | def CFrv(Lx3t):
V_D6 = {'product_name', 'generic_name', 'nutriscore_grade', 'url', 'image_url', 'image_nutrition_url', 'categories'}
if V_D6 - Lx3t.keys():
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ua_Z(YKHO, Lx3t):\n if all((Lx3t.get(YRbF, None) for YRbF in YKHO.data)):\n return True\n else:\n return False",
"def PFFF(YKHO, Lx3t, _ODc):\n for Jyyj in _ODc:\n if Jyyj not in Lx3t:\n return False\n return True",
"def Vf0k(QRFO):\n if 'product_name' in QRFO... | [
"0.8556849",
"0.7887145",
"0.6772442",
"0.67235225",
"0.66192925",
"0.6531624",
"0.6485758",
"0.63551944",
"0.6351837",
"0.6283288",
"0.6282534",
"0.62655246",
"0.6218904",
"0.62171346",
"0.621262",
"0.61787754",
"0.6175736",
"0.6172566",
"0.6164233",
"0.6145056",
"0.6141584"... | 0.81847274 | 1 |
Ignore AwardFinancial entries that are prior to year 2021 and are indicated by the proper PAC and PAN. | def a0Bn(p9bx):
E_AB = PoeT()
p9bx.session.add(E_AB)
p9bx.session.flush()
khtY = Phpp(account_num=E_AB.account_num, program_activity_code='1', program_activity_name='PA1', object_class='1', disaster_emergency_fund_code='s')
fmAV = BQ5X(account_num=E_AB.account_num, program_activity_code='1', program... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wnI7(wv49, lch6):\n return None",
"def lKsc(YKHO):\n slB6 = {'cgac_code': '020', 'frec_code': None, 'is_quarter': True, 'reporting_period_start_date': 'Q1/ABCD', 'reporting_period_end_date': 'Q2/2016'}\n Hdpl = YKHO.app.post('/v1/upload_dabs_files/', slB6, upload_files=[oTZ8], headers={'x-session-id... | [
"0.5350209",
"0.5333361",
"0.5294651",
"0.5267155",
"0.52390885",
"0.5177504",
"0.51731485",
"0.51113135",
"0.5015704",
"0.4954029",
"0.49335948",
"0.49093166",
"0.49023724",
"0.48766193",
"0.48634878",
"0.48410147",
"0.48364097",
"0.4826126",
"0.4809751",
"0.4807661",
"0.480... | 0.51928174 | 5 |
Renders the home page. | def kZiy():
return TvZl('index.html', title='Home Page', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('pages/home.html')",
"def kZiy():\n leAC =... | [
"0.86085397",
"0.85661966",
"0.8562984",
"0.84564984",
"0.8353822",
"0.8353445",
"0.832796",
"0.83265287",
"0.83265287",
"0.8311966",
"0.83088946",
"0.83046836",
"0.8296962",
"0.82942903",
"0.82942903",
"0.82872546",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279... | 0.81493807 | 65 |
Close the AD/LDAP Connection if it is open. | def f06n(YKHO):
try:
YKHO.ldap_client.unbind()
except CZzy.LDAPError:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ngVb(YKHO):\n if YKHO.connection:\n YKHO.connection.close()",
"def DDI8(YKHO):\n if YKHO._connection:\n YKHO._connection.close()\n YKHO._connection = None\n YKHO.is_open = False",
"def DDI8(YKHO):\n if YKHO.connection:\n YKHO.connection.close()\n YKHO.connection =... | [
"0.70855653",
"0.70734555",
"0.7066454",
"0.70402116",
"0.70103353",
"0.69611",
"0.6912411",
"0.6909097",
"0.69073737",
"0.6872194",
"0.68684477",
"0.6868414",
"0.6865963",
"0.6857666",
"0.68495065",
"0.6841057",
"0.6830312",
"0.6827553",
"0.6826437",
"0.6825122",
"0.6820902"... | 0.7075038 | 1 |
Decorator function to register checkers into pipeline. | def gr_i(YKHO, ZUyI: _Checker[_A, _R]) -> KEnZ[ZxD7, oWhY]:
YKHO._pipeline.append(ZUyI)
return ZUyI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PhFg(YKHO, tZoW=None):\n if tZoW:\n YKHO.checks = tZoW\n elif not hasattr(YKHO, 'checks'):\n YKHO.checks = YKHO.caller.checks\n for JfyU in YKHO.wrapped:\n setattr(YKHO.model, JfyU, Nq1b.checker(getattr(YKHO.model, JfyU), YKHO.checks))\n setattr(YKHO, JfyU, getattr(YKHO.mod... | [
"0.6753155",
"0.6614442",
"0.66039914",
"0.6542704",
"0.6534184",
"0.6472047",
"0.645809",
"0.6382816",
"0.6380199",
"0.6380199",
"0.62792414",
"0.61241025",
"0.6003187",
"0.59851176",
"0.5967552",
"0.59527445",
"0.59037536",
"0.5794959",
"0.56528175",
"0.5628752",
"0.5592993... | 0.7232563 | 0 |
Performs operation on 2tuples t1 and t2, elementwise. Default operation is '+' Returns a 2tuple. | def R7io(n2Q1, SpII, oPhP='+'):
if oPhP == '-':
return (n2Q1[0] - SpII[0], n2Q1[1] - SpII[1])
elif oPhP == '*':
return (n2Q1[0] * SpII[0], n2Q1[1] * SpII[1])
elif oPhP == '/':
return (n2Q1[0] / SpII[0], n2Q1[1] / SpII[1])
elif oPhP == '%':
return (n2Q1[0] % SpII[0], n2Q1[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QOqc(n2Q1, SpII):\n return tuple(map(seET.add, n2Q1, SpII))",
"def QOqc(n2Q1, SpII):\n return tuple(map(seET.add, n2Q1, SpII))",
"def R7io(cz0k, VT58):\n return (cz0k[0] + VT58[0], cz0k[1] + VT58[1])",
"def R7io(cz0k, VT58):\n return (cz0k[0] + VT58[0], cz0k[1] + VT58[1])",
"def H2v5(cz0k, ... | [
"0.82809037",
"0.82809037",
"0.81193334",
"0.8091887",
"0.79253626",
"0.7594467",
"0.759195",
"0.74836826",
"0.7100144",
"0.7046545",
"0.6982826",
"0.6872966",
"0.6830672",
"0.67966104",
"0.67815113",
"0.6730067",
"0.6730067",
"0.6730067",
"0.66751045",
"0.6641086",
"0.664108... | 0.8352786 | 0 |
Calculate magnitude of a vector | def FOSW(V6IE):
RI88 = 0.0
for WKvO in V6IE:
RI88 += WKvO ** 2
RI88 **= 0.5
return RI88 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(iArr):\n return tk5Y(oyIN.sum(oyIN.square(iArr)), 2)",
"def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))",
"def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))",
"def YXbZ(iArr):\n return epAf.sqrt(sum([iArr[YRbF] ** 2 for YRbF in range(len(iArr))]))",
"def Y... | [
"0.88407034",
"0.8653454",
"0.8571563",
"0.8542253",
"0.81739104",
"0.79223084",
"0.7868206",
"0.7834687",
"0.7820315",
"0.76853645",
"0.76656187",
"0.76632315",
"0.75583845",
"0.75493497",
"0.7475996",
"0.734292",
"0.73239756",
"0.7299861",
"0.7134276",
"0.712952",
"0.705445... | 0.0 | -1 |
Return a normal a vector, of magnitude 1 in the direction of given vector | def NkkI(V6IE):
try:
return R7io(V6IE, [FOSW(V6IE)] * 2, '/')
except:
return (0, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vj0b(he6J):\n return (-he6J[1], he6J[0])",
"def XGpy(WKvO):\n WKvO = Qm8c(WKvO)\n return WKvO / oyIN.linalg.norm(WKvO)",
"def iSV7(YKHO):\n hQHm = YKHO.points[0].vector3D\n jlSq = YKHO.points[1].vector3D\n bUZ8 = YKHO.points[2].vector3D\n pO9Q = jlSq - hQHm\n yzPe = bUZ8 - hQHm\n ... | [
"0.8392589",
"0.81701523",
"0.7842274",
"0.7723985",
"0.7667215",
"0.76581633",
"0.76441514",
"0.7562017",
"0.7557911",
"0.74944735",
"0.74903727",
"0.74529934",
"0.7433561",
"0.7414106",
"0.7413002",
"0.7406176",
"0.7374566",
"0.7365387",
"0.7336651",
"0.732259",
"0.73084503... | 0.0 | -1 |
Returns registered preferences models indexed by application names. | def xmVu() -> cuzp[str, wOed]:
return LDue | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bj0l(YKHO):\n return [XLL2.get_model(*H5ew) for H5ew in YKHO._registered_models.keys()]",
"def Dwrj():\n FYrf = dict()\n for mWFP, BWXx in globals().items():\n if tq_1.isclass(BWXx) and mWFP.lower().find('model') == -1:\n FYrf[mWFP] = BWXx\n return FYrf",
"def izSj():\n ret... | [
"0.67625684",
"0.6448077",
"0.64244974",
"0.6345221",
"0.62612516",
"0.6225677",
"0.6213499",
"0.6171157",
"0.6139611",
"0.6029187",
"0.5984174",
"0.5961355",
"0.58936083",
"0.5861688",
"0.5827104",
"0.5816091",
"0.58124024",
"0.5808125",
"0.5805702",
"0.5805404",
"0.57971543... | 0.74534446 | 0 |
Return the set of thermodynamic parameters corresponding to a given | def mzpi(YKHO, oMqC, xuBC):
for UXqs, bTKY in xuBC.entries.iteritems():
for asBq in oMqC.molecule:
if asBq.isIsomorphic(bTKY.item) and bTKY.data is not None:
dHFO = _qLf(bTKY.data)
YKHO.findCp0andCpInf(oMqC, dHFO)
return (dHFO, xuBC, bTKY)
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TWLi(YKHO):\n return [YKHO.p]",
"def W6RH():\n return (1.12, 0.0, 1.0, 3.69, 3.47, 1.36)",
"def SGPK(YKHO):\n return ('teff', 'logg', '[M/H]', 'xi')",
"def m1Qc():\n return q9oL(N=17, D=8, S=4, H=10)",
"def mI5I(YKHO):\n return [['Thresholds', (('LowerThresholdCh1', 'UpperThresholdCh1', ... | [
"0.6478374",
"0.6385677",
"0.6267457",
"0.6107358",
"0.6106418",
"0.6079395",
"0.6073792",
"0.6065837",
"0.6040476",
"0.60269225",
"0.5978593",
"0.59388685",
"0.590009",
"0.58890796",
"0.5886908",
"0.587566",
"0.5871317",
"0.5869424",
"0.5867448",
"0.58647585",
"0.58557177",
... | 0.0 | -1 |
Return the set of thermodynamic parameters corresponding to a given | def UwV8(YKHO, oMqC):
T8uA = []
for asBq in oMqC.molecule:
asBq.clearLabeledAtoms()
asBq.updateAtomTypes()
m9Se = YKHO.estimateThermoViaGroupAdditivity(asBq)
T8uA.append(m9Se)
J96f = XTiz.array([a1PO.getEnthalpy(298.0) for a1PO in T8uA])
_0VL = J96f.argsort()
oMqC.mol... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TWLi(YKHO):\n return [YKHO.p]",
"def W6RH():\n return (1.12, 0.0, 1.0, 3.69, 3.47, 1.36)",
"def SGPK(YKHO):\n return ('teff', 'logg', '[M/H]', 'xi')",
"def m1Qc():\n return q9oL(N=17, D=8, S=4, H=10)",
"def mI5I(YKHO):\n return [['Thresholds', (('LowerThresholdCh1', 'UpperThresholdCh1', ... | [
"0.6478374",
"0.6385677",
"0.6267457",
"0.6107358",
"0.6106418",
"0.6079395",
"0.6073792",
"0.6065837",
"0.6040476",
"0.60269225",
"0.5978593",
"0.59388685",
"0.590009",
"0.58890796",
"0.5886908",
"0.587566",
"0.5871317",
"0.5869424",
"0.5867448",
"0.58647585",
"0.58557177",
... | 0.0 | -1 |
Return the set of thermodynamic parameters corresponding to a given | def A6Wc(YKHO, asBq):
asBq.sortVertices()
dHFO = WaZ9(Tdata=([300, 400, 500, 600, 800, 1000, 1500], 'K'), Cpdata=([0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'J/(mol*K)'), H298=(0.0, 'kJ/mol'), S298=(0.0, 'J/(mol*K)'))
if asBq.getRadicalCount() > 0:
return YKHO.estimateRadicalThermoViaHBI(asBq, YKHO.estima... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TWLi(YKHO):\n return [YKHO.p]",
"def W6RH():\n return (1.12, 0.0, 1.0, 3.69, 3.47, 1.36)",
"def SGPK(YKHO):\n return ('teff', 'logg', '[M/H]', 'xi')",
"def m1Qc():\n return q9oL(N=17, D=8, S=4, H=10)",
"def mI5I(YKHO):\n return [['Thresholds', (('LowerThresholdCh1', 'UpperThresholdCh1', ... | [
"0.6478374",
"0.6385677",
"0.6267457",
"0.6107358",
"0.6106418",
"0.6079395",
"0.6073792",
"0.6065837",
"0.6040476",
"0.60269225",
"0.5978593",
"0.59388685",
"0.590009",
"0.58890796",
"0.5886908",
"0.587566",
"0.5871317",
"0.5869424",
"0.5867448",
"0.58647585",
"0.58557177",
... | 0.0 | -1 |
Rebaseline a data cube using robust regression of Legendre polynomials. | def Qj8M(Ux0P, rJdG=3, IfaP=[slice(0, 262, 1), slice(-512, 0, 1)], nhsa=None, gZKU=False, Vpqx=True, T8d8=None, vaYE=True, **B2fa):
tk32 = tW4f.read(Ux0P)
nCzN = tk32.spectral_axis.unit
tk32 = tk32.with_spectral_unit(P6bq.km / P6bq.s, velocity_convention='radio')
nyMu = tk32.spectral_axis.to(P6bq.km / P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZvOb(tk32, JKRO=None, L2FW=None, asJe=None, kiHj=None, NgvF=1):\n WKvO = oyIN.arange(tk32.shape[0], dtype=tk32.dtype)\n iNDG = kaIr(x=WKvO, splineorder=asJe, polyorder=JKRO, sampling=NgvF)\n hD_e = tk32.reshape(tk32.shape[0], tk32.shape[1] * tk32.shape[2]).T\n if L2FW is None:\n RKD7.debug('... | [
"0.6290404",
"0.5783797",
"0.5701224",
"0.55185014",
"0.55082613",
"0.5499848",
"0.54296005",
"0.53880745",
"0.5383561",
"0.5383561",
"0.535189",
"0.5306115",
"0.5293973",
"0.52415395",
"0.5184147",
"0.51562905",
"0.5138231",
"0.51303273",
"0.5109356",
"0.50961155",
"0.509400... | 0.5183337 | 15 |
A string representation of the model. | def zAg0(YKHO):
return YKHO.title | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.8461469",
"0.8448305",
"0.80288994",
"0.79867333",
"0.79123974",
"0.78380466",
"0.7787104",
"0.7713122",
"0.7650486",
"0.7637782",
"0.7631937",
"0.7631937",
"0.7623311",
"0.7623311",
"0.7622503",
"0.7614721",
"0.76137155",
"0.7607323",
"0.76035374",
"0.7603235",
"0.7588924... | 0.0 | -1 |
Returns an aware datetime.datetime. | def wzkt():
return qcWV.utcnow().replace(tzinfo=h5YN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GuLU(YKHO, BWXx):\n if isinstance(BWXx, qcWV):\n JRYC = BWXx\n elif isinstance(BWXx, _c1T):\n JRYC = qcWV(BWXx.year, BWXx.month, BWXx.day)\n else:\n try:\n JRYC = qcWV.utcfromtimestamp(BWXx).replace(tzinfo=rIAI.utc)\n except (TypeError, ValueError):\n ... | [
"0.8159208",
"0.81229013",
"0.72228634",
"0.6983559",
"0.67269623",
"0.66810584",
"0.66660523",
"0.6580455",
"0.6557351",
"0.6543851",
"0.65306973",
"0.6511571",
"0.64545214",
"0.63842344",
"0.63604105",
"0.63497883",
"0.631516",
"0.6310426",
"0.6310426",
"0.63048613",
"0.630... | 0.0 | -1 |
cast(itkLightObject obj) > itkSimilarity2DTransformD | def YWvJ(*qIxc):
return I538.itkSimilarity2DTransformD_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPrQ(YEnM: 'itkLightObject') -> 'itkSimilarity3DTransformD *':\n return bimu.itkSimilarity3DTransformD_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkSimilarity3DTransformD *':\n return bimu.itkSimilarity3DTransformD_cast(YEnM)",
"def ERyZ(YEnM: 'itkLightObject') -> 'itkAffineTransformD2 *':\n... | [
"0.8086618",
"0.79150426",
"0.73697793",
"0.73669684",
"0.7145164",
"0.67406136",
"0.6689868",
"0.66397667",
"0.6602744",
"0.6572362",
"0.656903",
"0.65522116",
"0.65407974",
"0.6530958",
"0.65254855",
"0.65239286",
"0.6518161",
"0.6515514",
"0.651032",
"0.64987487",
"0.64932... | 0.6609432 | 8 |
New() > itkSimilarity2DTransformD Create a new object of the class itkSimilarity2DTransformD and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the first i... | def oW_4(*qIxc, **PECO):
YEnM = PrKf.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = ExhP.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = ExhP.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7538106",
"0.7538106",
"0.72666484",
"0.6896339",
"0.6862505",
"0.6596559",
"0.6470838",
"0.62635595",
"0.6257722",
"0.6251359",
"0.6223579",
"0.619868",
"0.61736315",
"0.6162088",
"0.6151519",
"0.6123393",
"0.61031455",
"0.60970217",
"0.6094372",
"0.60940325",
"0.6053498"... | 0.78716576 | 0 |
itkSimilarity2DTransformD_cast(itkLightObject obj) > itkSimilarity2DTransformD | def lYGd(*qIxc):
return I538.itkSimilarity2DTransformD_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPrQ(YEnM: 'itkLightObject') -> 'itkSimilarity3DTransformD *':\n return bimu.itkSimilarity3DTransformD_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkSimilarity3DTransformD *':\n return bimu.itkSimilarity3DTransformD_cast(YEnM)",
"def ERyZ(YEnM: 'itkLightObject') -> 'itkAffineTransformD2 *':\n... | [
"0.84088457",
"0.807427",
"0.7524218",
"0.7398456",
"0.70181936",
"0.69619775",
"0.66783166",
"0.6600301",
"0.6577704",
"0.65530956",
"0.64982456",
"0.6488847",
"0.6445977",
"0.6410234",
"0.63986605",
"0.6393265",
"0.6389798",
"0.6385445",
"0.6383021",
"0.6372314",
"0.6367261... | 0.76265645 | 2 |
cast(itkLightObject obj) > itkSimilarity3DTransformD | def YWvJ(*qIxc):
return I538.itkSimilarity3DTransformD_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPrQ(YEnM: 'itkLightObject') -> 'itkSimilarity3DTransformD *':\n return bimu.itkSimilarity3DTransformD_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkSimilarity3DTransformD *':\n return bimu.itkSimilarity3DTransformD_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkAffineTransformD3 *':\n... | [
"0.8704752",
"0.85355955",
"0.7675736",
"0.7621509",
"0.7390428",
"0.73244476",
"0.71939653",
"0.6982401",
"0.6972402",
"0.6946552",
"0.69199234",
"0.6905342",
"0.68558127",
"0.6839581",
"0.6803522",
"0.68031394",
"0.6796006",
"0.677784",
"0.6772464",
"0.67671436",
"0.676204"... | 0.68531626 | 13 |
New() > itkSimilarity3DTransformD Create a new object of the class itkSimilarity3DTransformD and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the first i... | def oW_4(*qIxc, **PECO):
YEnM = ExhP.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = ny8G.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = PrKf.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7471293",
"0.7367671",
"0.73152846",
"0.6939728",
"0.6867975",
"0.67165124",
"0.6690945",
"0.6684153",
"0.66292286",
"0.658187",
"0.6571634",
"0.6558141",
"0.6497901",
"0.6492118",
"0.6488076",
"0.64345527",
"0.63763285",
"0.6363589",
"0.63628834",
"0.63091207",
"0.6306653... | 0.7988966 | 0 |
itkSimilarity3DTransformD_cast(itkLightObject obj) > itkSimilarity3DTransformD | def GPrQ(*qIxc):
return I538.itkSimilarity3DTransformD_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPrQ(YEnM: 'itkLightObject') -> 'itkSimilarity3DTransformD *':\n return bimu.itkSimilarity3DTransformD_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkSimilarity3DTransformD *':\n return bimu.itkSimilarity3DTransformD_cast(YEnM)",
"def WolL(YEnM: 'itkLightObject') -> 'itkAffineTransformD3 *':\n... | [
"0.9115498",
"0.8764288",
"0.7793643",
"0.7738149",
"0.7340228",
"0.72209144",
"0.71840864",
"0.71598315",
"0.70884705",
"0.6801022",
"0.67713815",
"0.6764276",
"0.67103404",
"0.6706342",
"0.6699107",
"0.6688942",
"0.6682898",
"0.6677809",
"0.66728",
"0.66538715",
"0.6648218"... | 0.78229845 | 2 |
View function for home page of site. | def d6pt(QePW):
sc4G = oPx1.objects.all().count()
xnse = oPx1.objects.filter(prj_status__exact='Behind Schedule').count()
mTYt = kLxY.objects.all().count()
Q9aT = kLxY.objects.filter(status__exact='Available').count()
z8aB = nNEw.objects.count()
RTwz = QePW.session.get('num_visits', 0)
QePW.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')",
"def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')",
"def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')",
"def kZiy():\n ... | [
"0.8521128",
"0.8379754",
"0.8353459",
"0.83415544",
"0.83415544",
"0.83171177",
"0.830583",
"0.8298624",
"0.8296122",
"0.8263442",
"0.8224959",
"0.8217078",
"0.8206788",
"0.81901366",
"0.81901366",
"0.8182092",
"0.8176577",
"0.81756383",
"0.8147583",
"0.81347877",
"0.8134787... | 0.0 | -1 |
Return info for device registry. | def GWuV(YKHO) -> dict:
begE = YKHO.coordinator.id
return {'identifiers': {(PtXs.DOMAIN, begE)}, 'name': 'Scheduler', 'model': 'Scheduler', 'sw_version': PtXs.VERSION, 'manufacturer': '@nielsfaber'} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v7W_(YKHO):\n nPrm = YKHO._get_endpoint('/register/information').json()\n return nPrm",
"def iF4_(YKHO):\n ZAM1 = {'uuid': YKHO.uuid, 'machine': YKHO.machine, 'arch': YKHO.arch, 'os': YKHO.osname, 'os distribution': YKHO.dist}\n return ZAM1",
"def GWuV(YKHO):\n return {'identifiers': {(Sugg,... | [
"0.7823331",
"0.72876537",
"0.7163807",
"0.71226096",
"0.70930386",
"0.70930386",
"0.70930386",
"0.70845586",
"0.70824176",
"0.7065362",
"0.7039442",
"0.7013503",
"0.70079154",
"0.7004881",
"0.7004881",
"0.7004881",
"0.69865525",
"0.69821393",
"0.6960167",
"0.69476956",
"0.69... | 0.6356338 | 90 |
Return the polling requirement of the entity. | def KZ_I(YKHO) -> bool:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LolU(YKHO):\n return YKHO._get_attribute('pollInterval')",
"def uiGr(YKHO) -> jfKu:\n return YKHO._requirement",
"def YdRv(YKHO):\n return YKHO.__required_minimum_receive",
"def YdRv(YKHO):\n return YKHO.__required_minimum_receive",
"def pRmv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y... | [
"0.6405614",
"0.63620144",
"0.60504174",
"0.60504174",
"0.5983873",
"0.5983873",
"0.5941192",
"0.5870963",
"0.58692807",
"0.5799214",
"0.57925546",
"0.57736224",
"0.57736224",
"0.5746309",
"0.57337034",
"0.5701603",
"0.5701603",
"0.5675774",
"0.5671893",
"0.55857843",
"0.5584... | 0.0 | -1 |
Return the state of the entity. | def QTBn(YKHO):
return YKHO._state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QTBn(YKHO) -> uLKX[None, str, int, float]:\n return YKHO._entity.get(N4T2)",
"def QTBn(YKHO):\n return YKHO.get_state()",
"def GBfH(YKHO):\n return YKHO.state",
"def QTBn(YKHO):\n return YKHO._get_state()",
"def GBfH(YKHO):\n return YKHO.state",
"def GBfH(YKHO):\n return YKHO.state"... | [
"0.8337619",
"0.7702563",
"0.7638512",
"0.7633944",
"0.7620094",
"0.7620094",
"0.7620094",
"0.7612864",
"0.7605297",
"0.7602402",
"0.75564414",
"0.75564414",
"0.75564414",
"0.75564414",
"0.75564414",
"0.75564414",
"0.75564414",
"0.7532665",
"0.7522079",
"0.7522079",
"0.749583... | 0.0 | -1 |
Return a unique ID to use for this entity. | def ShR8(YKHO):
return f'{YKHO.schedule_id}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def znLP(YKHO) -> str:\n return qe4Y.get(YKHO, 'entity_unique_id')",
"def ShR8(YKHO) -> str:\n return YKHO._id",
"def ShR8(YKHO) -> str:\n return YKHO._id",
"def ShR8(YKHO) -> str:\n return YKHO._unique_id",
"def ShR8(YKHO) -> str:\n return YKHO._unique_id",
"def ShR8(YKHO) -> str:\n re... | [
"0.8858551",
"0.8692148",
"0.8692148",
"0.8460273",
"0.8460273",
"0.8460273",
"0.8460273",
"0.8460273",
"0.8460273",
"0.8460273",
"0.8460273",
"0.8460273",
"0.84056073",
"0.83749855",
"0.8352536",
"0.8342869",
"0.8342869",
"0.8342869",
"0.8342869",
"0.8342869",
"0.8301054",
... | 0.0 | -1 |
Return true if entity is on. | def Debg(YKHO):
return YKHO._state not in [iKVK, PtXs.STATE_COMPLETED] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Debg(YKHO) -> bool:\n return YWvJ(bool, getattr(YKHO._device, YKHO.entity_description.key))",
"def Debg(YKHO) -> bool:\n return YKHO.coordinator.data[YKHO.entity_description.key]",
"def Debg(YKHO) -> bool:\n return YKHO.entity_description.value(YKHO.coordinator.data)",
"def Debg(YKHO):\n if n... | [
"0.8739495",
"0.84256566",
"0.8347952",
"0.82110447",
"0.8205695",
"0.81049025",
"0.8056654",
"0.8044029",
"0.7926172",
"0.792543",
"0.7900141",
"0.77641296",
"0.7750356",
"0.76881707",
"0.76723933",
"0.76495564",
"0.7576786",
"0.75579727",
"0.75579727",
"0.7523214",
"0.74638... | 0.0 | -1 |
Return True if ``file_instance`` was modified after ``since``. Uses file wrapper's ``was_modified_since`` if available, with value of ``since`` as positional argument. Else, fallbacks to default implementation, which uses | def a0Hy(YKHO, tIA7, pw_q):
try:
return tIA7.was_modified_since(pw_q)
except (AttributeError, NotImplementedError):
try:
NgLW = GRk0.timegm(tIA7.modified_time.utctimetuple())
zNig = tIA7.size
except (AttributeError, NotImplementedError):
return True
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a0Hy(YKHO, WBPg=None, s537=0, zNig=0):\n try:\n if WBPg is None:\n raise ValueError\n hHld = ZbWC.match('^([^;]+)(; length=([0-9]+))?$', WBPg, ZbWC.IGNORECASE)\n fdtG = kuDJ(iUqm(hHld.group(1)))\n owgc = hHld.group(3)\n if owgc and int(owgc) != zNig:\n ... | [
"0.60778284",
"0.5827334",
"0.5812787",
"0.56864244",
"0.5633922",
"0.5575149",
"0.5571818",
"0.55266505",
"0.55186987",
"0.55030453",
"0.54915065",
"0.54876184",
"0.5477147",
"0.54273224",
"0.5361797",
"0.53462595",
"0.5344205",
"0.5317154",
"0.52980375",
"0.5292887",
"0.527... | 0.8324218 | 0 |
Validate device_id. The device_id is the first part of the name. | def L6ZD(Emd4, BWXx, hkxX):
return hkxX['name'].split('.')[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gKj4(jf3N: str) -> None:\n if len(jf3N) < 1:\n raise ValueError('the device ID must have at least one character')",
"def jf3N(YKHO, jf3N):\n if jf3N is None:\n raise ValueError('Invalid value for `device_id`, must not be `None`')\n if jf3N is not None and len(jf3N) > 64:\n raise... | [
"0.84808433",
"0.66667825",
"0.655826",
"0.6514648",
"0.6494745",
"0.6370213",
"0.62622654",
"0.6221492",
"0.6165612",
"0.61613786",
"0.6139139",
"0.6125318",
"0.6122031",
"0.6083954",
"0.6077638",
"0.6069134",
"0.60072315",
"0.59997326",
"0.5957202",
"0.5940746",
"0.58956105... | 0.80876905 | 1 |
Returns a function that is itself a higherorder function. | def n2fR(Dyub, EmyI, IxvY):
"""*** YOUR CODE HERE ***"""
def _Ki0(exwG):
def B0gN(WKvO):
def Z9rn(WKvO, YRbF):
if YRbF == exwG:
return WKvO
if YRbF % 3 == 0:
return Z9rn(Dyub(WKvO), YRbF + 1)
elif YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wZPm(MCGS):\n\n def J3uN(MCGS):\n jzdc = MCGS\n while callable(jzdc):\n jzdc = jzdc()\n return jzdc\n return lambda WKvO: J3uN(MCGS(WKvO))",
"def VaBM(MCGS):\n\n def _gRY(WKvO, *qIxc, **B2fa):\n \"\"\"the wrapped function\"\"\"\n return MCGS(oyIN.maximum... | [
"0.6186592",
"0.61199826",
"0.6086635",
"0.60859317",
"0.60745513",
"0.6043486",
"0.60371304",
"0.58998346",
"0.58976716",
"0.58573204",
"0.5829457",
"0.5775059",
"0.5766732",
"0.5766732",
"0.575205",
"0.5735846",
"0.5731563",
"0.5720196",
"0.57025504",
"0.569625",
"0.5695308... | 0.0 | -1 |
Returns the channel length which is defined by the path starting at the outlet pixel of each cell moving up or downstream until it reaches the next upstream outlet pixel. If moving upstream and a pixel has multiple upstream neighbors, the pixel with the largest upstream area is selected. | def utrY(uaO3, fMfx, hNov, ZHfW=None, W1Td=-9999.0, cKGD=YPk0):
L4Xn = oyIN.array([bool(0) for bGrB in range(fMfx.size)])
for yxfW in uaO3:
if yxfW != cKGD:
L4Xn[yxfW] = bool(1)
BDF8 = oyIN.full(uaO3.size, W1Td, dtype=hNov.dtype)
for YRbF in range(uaO3.size):
yxfW = uaO3[YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KeKo(YKHO):\n if YKHO.channel_axis is None:\n return 1\n return YKHO.stimulus.shape[YKHO.channel_axis]",
"def kVv1(Cs6h, rdlD, fvDH):\n if rdlD == usx6 - 1 and fvDH == WfCS - 1:\n return 1\n elif Cs6h[rdlD][fvDH] == AacT:\n return 0\n else:\n Mkmy = Z9rn = 0\n ... | [
"0.6400994",
"0.63154125",
"0.628052",
"0.59963214",
"0.59395134",
"0.5839426",
"0.58213013",
"0.57904446",
"0.57600635",
"0.5725123",
"0.5709367",
"0.56626827",
"0.56164336",
"0.56143934",
"0.5576239",
"0.5573871",
"0.5563196",
"0.55609095",
"0.5555534",
"0.5548338",
"0.5537... | 0.5406232 | 42 |
Returns the mean value over a river segment. The segment is defined by the flow path starting at the outlet pixel of each cell moving up or downstream until it reaches the next upstream outlet pixel. | def Htuh(uaO3, fMfx, nPrm, _mSQ, ZHfW=None, W1Td=-9999.0, cKGD=YPk0):
L4Xn = oyIN.array([bool(0) for bGrB in range(fMfx.size)])
for yxfW in uaO3:
if yxfW != cKGD:
L4Xn[yxfW] = bool(1)
HMtB = oyIN.full(uaO3.size, W1Td, dtype=nPrm.dtype)
for YRbF in range(uaO3.size):
yxfW = uaO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBMS(YKHO):\n return JBMS(YKHO._edges, YKHO._values)",
"def JBMS(YKHO):\n if YKHO.total == 0:\n return None\n KCHu = 0.0\n for Fg_i in YKHO.bins:\n KCHu += Fg_i.value * Fg_i.count\n return KCHu / float(YKHO.total)",
"def JBMS(YKHO):\n return YKHO.base_dist.mean * YKHO.scale ... | [
"0.6599733",
"0.6188221",
"0.6137481",
"0.6083822",
"0.60775334",
"0.60775334",
"0.6062517",
"0.60505456",
"0.6020726",
"0.6011786",
"0.59988844",
"0.59956163",
"0.5976555",
"0.5976001",
"0.59728444",
"0.59700483",
"0.5968437",
"0.59447634",
"0.59447634",
"0.5930476",
"0.5924... | 0.0 | -1 |
Returns the slope of the river segment segment slope. The segment is defined by the flow path starting at the segment outlet pixel of each cell moving up or downstream until it reaches the next segment outlet pixel. The slope is calculated based on a linear fit if `lstsq` equals True, else it based on the average slope... | def F7v9(uaO3, fMfx, iJn0, hNov, ZHfW=None, W1Td=-9999.0, nA9L=True, cKGD=YPk0):
L4Xn = oyIN.array([bool(0) for bGrB in range(fMfx.size)])
for yxfW in uaO3:
if yxfW != cKGD:
L4Xn[yxfW] = bool(1)
TMwI = oyIN.full(uaO3.size, W1Td, dtype=iJn0.dtype)
for YRbF in range(uaO3.size):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ip9y(YKHO):\n uN02 = YKHO.predict(YKHO.fit_breaks)\n YKHO.slopes = oyIN.zeros(YKHO.n_segments)\n for YRbF in range(YKHO.n_segments):\n YKHO.slopes[YRbF] = (uN02[YRbF + 1] - uN02[YRbF]) / (YKHO.fit_breaks[YRbF + 1] - YKHO.fit_breaks[YRbF])\n return YKHO.slopes",
"def Dee1(LVAh):\n LVAh =... | [
"0.6931177",
"0.6416437",
"0.64162844",
"0.6374817",
"0.6365333",
"0.6270742",
"0.6267836",
"0.62601775",
"0.6241607",
"0.6214813",
"0.60574806",
"0.60542196",
"0.6049912",
"0.594801",
"0.59186816",
"0.5914496",
"0.587998",
"0.5872489",
"0.5863312",
"0.58631593",
"0.5860036",... | 0.5927362 | 14 |
Shows the home page. | def vja_():
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('index.html', title='home')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('index.html', title='Home Page')",
"def kZiy():\n return TvZl('home.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\n return TvZl('homepage.html')",
"... | [
"0.82936835",
"0.8282966",
"0.82824045",
"0.8211634",
"0.8195574",
"0.8185556",
"0.8171713",
"0.8147484",
"0.81457883",
"0.8136642",
"0.8136642",
"0.8117542",
"0.81038326",
"0.8070715",
"0.8066679",
"0.80611",
"0.8058636",
"0.8058636",
"0.8058636",
"0.8058636",
"0.8058636",
... | 0.0 | -1 |
Shows the application page form. | def fmRQ():
return TvZl('application-form.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KbMd():\n return TvZl('application-form.html')",
"def _UGW():\n return TvZl('application-form.html')",
"def fmRQ():\n return TvZl('application-form.html')",
"def SCWY():\n return TvZl('application-form.html')",
"def yi_d():\n return TvZl('form.html')",
"def FKcF():\n return TvZl('ap... | [
"0.8190262",
"0.79181767",
"0.775772",
"0.74551547",
"0.70108855",
"0.6980245",
"0.68404895",
"0.6824456",
"0.68100834",
"0.68088734",
"0.6749754",
"0.6682825",
"0.6672779",
"0.6519958",
"0.6495399",
"0.6428162",
"0.6425217",
"0.63931036",
"0.63931036",
"0.6386218",
"0.634085... | 0.7405689 | 4 |
Test Find a Stop form is present on MD homepage | def BpoV(YKHO):
geh0 = YKHO.client.get(gxEw('md:home'))
YKHO.assertTrue('find_a_stop_form' in geh0.context)
L03z = geh0.context['find_a_stop_form']
YKHO.assertContains(geh0, L03z['agency'].label) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brTM(YKHO):\n YKHO.browser.get('http://localhost:5000/intake_form')\n QZnA = YKHO.browser.find_element_by_id('skip')\n QZnA.click()\n Aofo = YKHO.browser.find_element_by_class_name('fake-legend')\n YKHO.assertIn('Individual Family Member Info', Aofo.text)",
"def CKEu(YKHO, x0hE):\n _hkX = x... | [
"0.64002454",
"0.6390116",
"0.6263918",
"0.61562157",
"0.5882146",
"0.58274716",
"0.5818793",
"0.57956535",
"0.5764204",
"0.57490534",
"0.5686015",
"0.5659138",
"0.56320494",
"0.5612676",
"0.56125474",
"0.5612156",
"0.5579666",
"0.557488",
"0.5573681",
"0.5573532",
"0.5566687... | 0.7934829 | 0 |
Send a JoinGroup event. | async def create_join_group(YKHO, tvqc, YwkQ):
VCCg = await YKHO.connector.lookup_username(tvqc['user']['id'])
return YTVa.JoinGroup(target=tvqc['user']['team_id'], connector=YKHO.connector, event_id=tvqc['event_ts'], raw_event=tvqc, user_id=tvqc['user']['id'], user=VCCg['name']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E3W5(YKHO, hE03):\n YKHO.onJoinGroupReply_received = YKHO.agent.message_handler.register('JoinGroupReply')\n YKHO.onJoinGroupReply_received.subscribe(YKHO.onJoinGroupReply)\n YKHO.send_JoinGroupRequest(YKHO.agent.agent_id, YKHO.agent.session_id, hE03)",
"def xXP2(YKHO, ILdH, JkXK, hE03):\n Y69S =... | [
"0.7574376",
"0.7422539",
"0.7122262",
"0.7111454",
"0.7090987",
"0.7032015",
"0.69340074",
"0.6904576",
"0.6704509",
"0.66139317",
"0.65910244",
"0.6564801",
"0.6518312",
"0.6348856",
"0.62898535",
"0.6254238",
"0.6244792",
"0.6235083",
"0.62131053",
"0.61573684",
"0.6152967... | 0.65889347 | 11 |
Initialize a Batchnorm layer. | def uHk4(tF9S):
tF9S.bias.data.fill_(0.0)
tF9S.weight.data.fill_(1.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tn3D(YKHO):\n YKHO.decoder = ZylS.contrib.layers.batch_norm(YKHO.decoder, center=True, scale=True, is_training=YKHO.is_training, scope='bn')",
"def qlQ2(YKHO):\n raise NotImplementedError",
"def FIMM(YKHO, pKvt=None, Ya2q=None, _LFN=None, XcU5=None, kw9M=None, Fg_i=None, UqYS=None, KMvS=None, Cwt5=0.... | [
"0.763059",
"0.7384869",
"0.71591765",
"0.7030082",
"0.6992384",
"0.6982791",
"0.6879502",
"0.68649286",
"0.6862757",
"0.6857489",
"0.6841954",
"0.6841954",
"0.6823328",
"0.680305",
"0.6713957",
"0.66478527",
"0.6627066",
"0.6626593",
"0.6601016",
"0.6554194",
"0.6530457",
... | 0.0 | -1 |
Pad framewise_output to the same length as input frames. The pad value is the same as the value of the last frame. | def h5dP(MNYq, K3Do):
hVLt = MNYq[:, -1:, :].repeat(1, K3Do - MNYq.shape[1], 1)
'tensor for padding'
hlel = ht2j.cat((MNYq, hVLt), dim=1)
'(batch_size, frames_num, classes_num)'
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h5dP(MNYq: torch.Tensor, K3Do: int):\n hVLt = MNYq[:, -1:, :].repeat(1, K3Do - MNYq.shape[1], 1)\n 'tensor for padding'\n hlel = ht2j.cat((MNYq, hVLt), dim=1)\n '(batch_size, frames_num, classes_num)'\n return hlel",
"def h5dP(MNYq: torch.Tensor, K3Do: int):\n hlel = vuvg.interpolate(MNYq.u... | [
"0.8281237",
"0.79313797",
"0.6685426",
"0.6304763",
"0.6257681",
"0.6213205",
"0.6167999",
"0.6049447",
"0.6008161",
"0.59760654",
"0.5966611",
"0.5958347",
"0.5920988",
"0.5912057",
"0.58968925",
"0.5874199",
"0.58731085",
"0.58661604",
"0.5847633",
"0.5843421",
"0.5830053"... | 0.82352823 | 1 |
Calculates and logs MSD (mean squared distance), ADE (average displacement error), and FDE (final displacement error). | def NU5x(YKHO, FeNt, N6Z1):
duSv = 0
cjwM = 0.0
n6F6 = 0.0
dB_9 = 0.0
t1G8 = 0
dHVD = 0.0
JAnm = 0.0
HCLp = 0.0
for fhZS in N6Z1:
PwOB = fhZS.trajectory
s39N = FeNt[fhZS.id].trajectory
if fhZS.label == 'vehicle':
duSv += 1
elif fhZS.label =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DAvx(YKHO):\n return YKHO.median_absolute_deviation(YKHO.error)",
"def JbiM(J9Sm):\n J9Sm = VEDo.array(J9Sm)\n SQl0 = J9Sm.mean()\n exwG = len(J9Sm)\n WTkW = CfuC(sum((J9Sm - SQl0) ** 2) / (exwG - 1))\n XaHR = WTkW / CfuC(exwG)\n return z64P(SQl0, XaHR)",
"def ZK6W(a1PO, JRYC, yKIT, T8... | [
"0.65204",
"0.6346729",
"0.6166402",
"0.6159428",
"0.6110415",
"0.6080442",
"0.6044711",
"0.5961063",
"0.59545755",
"0.5924606",
"0.5873022",
"0.58589745",
"0.58258265",
"0.5821679",
"0.58031005",
"0.5799725",
"0.5798335",
"0.5792868",
"0.5743103",
"0.5715522",
"0.57071686",
... | 0.0 | -1 |
check if its not equal | def Vdqg(YKHO, mLGw):
return YKHO.__integer == mLGw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVgE(YKHO, WKvO, LVAh):\n return WKvO != LVAh",
"def kiEf(jzdc, Fg_i):\n return not jzdc != Fg_i",
"def BOI2(YKHO):\n jzdc = Xzgq(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n Fg_i = Xzgq(YKHO.bytes_b, aVkO.OpaqueDataType.NONE)\n YKHO.assertTrue(jzdc != Fg_i)\n YKHO.assertTrue(Fg_i != jzdc)",... | [
"0.8260403",
"0.77483547",
"0.7724189",
"0.7689318",
"0.760945",
"0.7606436",
"0.7554949",
"0.753072",
"0.7512861",
"0.74932957",
"0.7475235",
"0.7462104",
"0.7430058",
"0.7427014",
"0.7417343",
"0.74158436",
"0.74129176",
"0.74074143",
"0.74074143",
"0.73869",
"0.73847246",
... | 0.0 | -1 |
Represent the tile as string for easier debugging. | def wHJl(YKHO) -> str:
return f'top={YKHO.top}, right={YKHO.right}, bottom={YKHO.bottom}, left={YKHO.left}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO._grid_tile)",
"def SXi9(YKHO):\n if YKHO.content.is_printable():\n return YKHO.content.stringify_tile()\n else:\n return super().stringify_tile()",
"def zAg0(YKHO):\n return str(YKHO.tiles)",
"def zAg0(YKHO):\n hhWF = 'Current tile numbers are \\... | [
"0.8364785",
"0.8182911",
"0.8173391",
"0.80086595",
"0.7935039",
"0.7803907",
"0.7801039",
"0.7749528",
"0.7727472",
"0.7659591",
"0.73358357",
"0.7306764",
"0.7292728",
"0.7196496",
"0.7189081",
"0.71664274",
"0.7164801",
"0.71604174",
"0.7159029",
"0.71215314",
"0.7093576"... | 0.66410685 | 90 |
Plot loss curves of every internal loss function and store the resulting figure in given directory. To avoid badly scaled loss plots the values are thresholded, i.e. every loss above the threshold value is set to the threshold value. Loss axis either in "logarithmic" or "linear" scale. | def mBbd(YKHO, AGPF: str, qtWj: int, gwAu: float=1000.0, X6rE: str='linear'):
jDK_ = oyIN.linspace(1, qtWj, qtWj)
for YRbF, vC9B in enumerate(YKHO.loss):
UXqs = vC9B['desc']
LZpg = QrM1.figure()
QrM1.title(UXqs)
N8L0 = YKHO.log[:, YRbF].numpy()
N8L0[N8L0 > gwAu] = gwAu
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fgjo(p4HL, SVhz, VKhi):\n QrM1.figure()\n QrM1.plot(range(len(p4HL)), p4HL)\n QrM1.plot(range(len(SVhz)), SVhz)\n QrM1.xlabel('Epochs', fontsize=16)\n QrM1.ylabel('Loss', fontsize=16)\n QrM1.xticks(fontsize=14)\n QrM1.yticks(fontsize=14)\n QrM1.legend(['train', 'val'], loc='upper left')... | [
"0.7325534",
"0.71480066",
"0.70987916",
"0.70885205",
"0.7052453",
"0.7045558",
"0.691912",
"0.691834",
"0.6898694",
"0.68973196",
"0.6850534",
"0.6844509",
"0.68414545",
"0.6806537",
"0.6794604",
"0.6777018",
"0.67687374",
"0.6746692",
"0.67259455",
"0.6704604",
"0.6699738"... | 0.7923301 | 0 |
Get the ID of our saltstack gitlab group | def rfWX(YKHO):
try:
for uOe2 in YKHO.getgroups():
if uOe2['name'] == YKHO.config['gitgroup']:
return uOe2['id']
except:
print(qfpW('WARNING', 'API Call?'))
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')",
"def Dt19(YKHO) -> str:\n return ... | [
"0.7973885",
"0.7973885",
"0.760131",
"0.760131",
"0.7505885",
"0.74616",
"0.7323847",
"0.72771996",
"0.7252241",
"0.7231477",
"0.7231477",
"0.7231477",
"0.7231477",
"0.7231477",
"0.7231477",
"0.720742",
"0.71791047",
"0.71791047",
"0.715827",
"0.7152166",
"0.7147097",
"0.7... | 0.8230121 | 0 |
Abstract property `id`. This attribute will store the ID of the citation. | def id(YKHO) -> str:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO):\n raise NotImplemented",
"def id(YKHO, id):\n YKHO._id = id",
"def id(YKHO):\n raise NotImplementedError",
"def id(YKHO):\n raise NotImplementedError",
"def id(YKHO):\n raise NotImplementedError()",
"def id(YKHO, _eu6):\n YKHO['id'] = _eu6",
"def FIMM(Ro_8, *, id: str):\... | [
"0.68167055",
"0.6745837",
"0.6679984",
"0.6679984",
"0.6591134",
"0.6584852",
"0.649084",
"0.649084",
"0.649084",
"0.649084",
"0.649084",
"0.649084",
"0.649084",
"0.649084",
"0.6474089",
"0.64704454",
"0.64704454",
"0.64704454",
"0.64704454",
"0.64704454",
"0.64704454",
"0... | 0.0 | -1 |
Returns the strandless version of this kmer. This is defined as whichever comes first, the kmer or the reverse complement of the kmer lexicographically. | def PkyL(G1Hx):
return sorted([G1Hx, HTk7(G1Hx)])[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bFHh(YKHO, SOtT):\n return min(SOtT, YKHO._revcomp(SOtT))",
"def JV07(YKHO):\n return tE_f.sccc_decoder_b_SToK(YKHO)",
"def JV07(YKHO):\n return tE_f.sccc_decoder_combined_fb_SToK(YKHO)",
"def JV07(YKHO):\n return tE_f.sccc_decoder_s_SToK(YKHO)",
"def JV07(YKHO):\n return tE_f.sccc_decod... | [
"0.609808",
"0.5971312",
"0.59713113",
"0.59592694",
"0.585631",
"0.5830294",
"0.5815283",
"0.57963204",
"0.5795517",
"0.5795213",
"0.57644206",
"0.5747478",
"0.57365626",
"0.5726719",
"0.5703852",
"0.5697489",
"0.56689084",
"0.56571716",
"0.5652714",
"0.55896103",
"0.5572263... | 0.69585645 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 81 |
Returns the area of a rectangle. | def f0tD(jzdc):
if jzdc is None:
return 0
WKvO, LVAh, yzQ0, MKlR = jzdc
return yzQ0 * MKlR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGjA(u54L, TVTK):\n f0tD = u54L * TVTK\n return f0tD",
"def sAdl(mawX: np.ndarray) -> float:\n Jw7X = mawX[2] - mawX[0]\n eUWA = mawX[3] - mawX[1]\n return Jw7X * eUWA",
"def Rqyz(u54L, TVTK):\n return u54L * TVTK",
"def Rqyz(TVTK, u54L):\n return TVTK * u54L",
"def X8lI(u54L, TVTK... | [
"0.83160573",
"0.8212843",
"0.80460346",
"0.8009728",
"0.79529655",
"0.7950844",
"0.7817173",
"0.7782456",
"0.77746266",
"0.77276903",
"0.76586485",
"0.7653661",
"0.7650807",
"0.7644663",
"0.76321846",
"0.7613158",
"0.7610226",
"0.75457996",
"0.7537812",
"0.7537812",
"0.75376... | 0.7289988 | 75 |
Check if Exception is an API response error. | def _Ayt(tTpl: Exception) -> bool:
return isinstance(tTpl, z4Sm) and hasattr(tTpl, 'code') and UHl8(tTpl.code) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xxtx(YKHO, eqVi):\n if eqVi.status_code < 400 or eqVi.status_code > 499:\n return\n try:\n LbBU = eqVi.json()\n except Exception as e:\n if eqVi.status_code == 404:\n return",
"def w6ck(geh0, GtGV):\n JBvl = geh0.status_code\n try:\n geh0.raise_for_status... | [
"0.78340036",
"0.7689195",
"0.733179",
"0.73077387",
"0.7075348",
"0.68491834",
"0.68118495",
"0.679909",
"0.6771116",
"0.67645675",
"0.6750372",
"0.6733644",
"0.66665846",
"0.6661231",
"0.66568327",
"0.6651039",
"0.661739",
"0.660606",
"0.66022795",
"0.66022795",
"0.6570329"... | 0.8333319 | 0 |
Returns the centroids for each utterance of a speaker, where the utterance centroid is the speaker centroid without considering this utterance | def w6WP(KTQ3):
xdfp = KTQ3.sum(dim=1)
xdfp = xdfp.reshape(xdfp.shape[0], 1, xdfp.shape[-1])
pjjj = KTQ3.shape[1] - 1
yHxN = (xdfp - KTQ3) / pjjj
return yHxN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e6ux(Emd4, Q5mJ):\n e6ux = dict(Q5mJ[0].tfidf)\n for A97Q in Q5mJ[1:]:\n for d6pt in A97Q.tfidf:\n e6ux[d6pt] += A97Q.tfidf[d6pt]\n JkuE = float(len(Q5mJ))\n for d6pt in e6ux:\n e6ux[d6pt] = e6ux[d6pt] / JkuE\n return e6ux",
"def G0Yq(YKHO):\n hlel = []\n for nqP... | [
"0.64677036",
"0.63820994",
"0.63657486",
"0.6322375",
"0.6318503",
"0.6293338",
"0.62896425",
"0.62871957",
"0.6241722",
"0.6221038",
"0.6214061",
"0.616972",
"0.6161358",
"0.61579704",
"0.6152182",
"0.6138559",
"0.61303025",
"0.6126609",
"0.61044097",
"0.60968244",
"0.60968... | 0.77201796 | 0 |
Reverses normalization of pixel values from image preprocessing. | def BxUP(VXjJ: tf.Tensor) -> hnIv:
VXjJ = 255 * (VXjJ + 1.0) / 2.0
VXjJ = ZylS.cast(VXjJ, ZylS.uint8)
return hnIv.fromarray(VXjJ.numpy()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kwsU(YKHO):\n YKHO.img = YKHO.img.astype(oyIN.float32) / 255.0\n YKHO.img -= YKHO.img.mean()",
"def NkkI(YKHO):\n YKHO._images = YKHO._images.astype('float32')\n YKHO._images -= 127.5\n YKHO._images /= 127.5\n YKHO._images *= YKHO._normalization_factor\n pass",
"def kwsU(YKHO):\n YK... | [
"0.7935902",
"0.77850217",
"0.7754702",
"0.7540744",
"0.75231695",
"0.7455089",
"0.7377943",
"0.73413897",
"0.72651434",
"0.7246999",
"0.72343844",
"0.7199169",
"0.7195261",
"0.71684915",
"0.7167853",
"0.7156392",
"0.71546876",
"0.71410847",
"0.7137896",
"0.7133941",
"0.71318... | 0.0 | -1 |
Downloads a blob from the bucket. | def c4na(l7rj, JC20, AHTG):
ntiA = S8SU.Client()
WE7e = ntiA.get_bucket(l7rj)
vxw0 = WE7e.blob(JC20)
vxw0.download_to_filename(AHTG)
print('Blob {} downloaded to {}.'.format(JC20, AHTG)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n return vxw0",
"def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n NRcB = xDSY.BytesIO()\n return vxw0.download_to_file(NRcB)",
"def DPRZ(... | [
"0.81216",
"0.7957541",
"0.77650166",
"0.76453996",
"0.7630873",
"0.7603773",
"0.75344056",
"0.7534157",
"0.75023687",
"0.7482801",
"0.7474071",
"0.7474071",
"0.7474071",
"0.7458533",
"0.74574214",
"0.7425158",
"0.7425142",
"0.740443",
"0.73784876",
"0.7373136",
"0.7370222",
... | 0.74448717 | 15 |
Downloads a blob from the bucket. | def lpmw(l7rj, JC20, AHTG):
pGmv = iVGz.resource('s3')
pGmv.Bucket(l7rj).download_file(JC20, AHTG)
print('Blob {} downloaded to {}.'.format(JC20, AHTG)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n return vxw0",
"def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n NRcB = xDSY.BytesIO()\n return vxw0.download_to_file(NRcB)",
"def DPRZ(... | [
"0.81216",
"0.7957541",
"0.77650166",
"0.76453996",
"0.7630873",
"0.7603773",
"0.75344056",
"0.7534157",
"0.75023687",
"0.7482801",
"0.7474071",
"0.7474071",
"0.7474071",
"0.7458533",
"0.74574214",
"0.74448717",
"0.7425158",
"0.7425142",
"0.740443",
"0.73784876",
"0.7373136",... | 0.70358086 | 38 |
Embeds input and applies LSTM, concatenate category vector into each embedding | def KVH6(YKHO, pKvt, Zode, UXqs=None, NEu4=False):
assert type(UXqs) == ht2j.Tensor, 'missing label'
zhTA = YKHO.embeddings(pKvt)
pLZ9 = vuvg.one_hot(UXqs, YKHO.k_label).float()
biZf = pLZ9.unsqueeze(1).expand(-1, pKvt.size(1), -1)
CCDf = ht2j.bmm(biZf, YKHO.cat_mat.expand(pKvt.size(0), -1, -1))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, Wc9F):\n Ctck = Wc9F.mentions.permute(1, 2, 0)\n ZLJ_ = Wc9F.columns.permute(1, 2, 0)\n BDwY = []\n for P3DA in Ctck:\n Q1PJ = YKHO.mention_col_encoder(P3DA)\n BDwY.append(Q1PJ)\n NSZU = ht2j.stack(BDwY, dim=1)\n cCrA = []\n for fvDH in ZLJ_:\n xDcj = YKHO.q... | [
"0.6593407",
"0.6587761",
"0.65769583",
"0.65589833",
"0.6553633",
"0.6499191",
"0.6491575",
"0.64730865",
"0.64279443",
"0.6423422",
"0.6413857",
"0.640453",
"0.6398783",
"0.6397421",
"0.6387644",
"0.63730824",
"0.6346309",
"0.63448405",
"0.63443077",
"0.6335899",
"0.6334625... | 0.63517255 | 16 |
Ensures the batch has no more than one each of the specified classes. | def yHnZ(YKHO, RDhP, UXqs, KndY):
OrFa, bGrB = ZylS.unique(UXqs)
Ep8u = YKHO._hparams.batch_size
return ZylS.equal(ZylS.size(OrFa), Ep8u) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o61F(RDhP, UXqs, KndY):\n KndY = ZylS.convert_to_tensor(KndY)\n OrFa, bGrB = ZylS.unique(UXqs)\n return ZylS.equal(ZylS.reduce_sum(KndY), ZylS.reduce_sum(OrFa))",
"def RDVF(YKHO):\n oxOY = YKHO.dataset.get_tf_data('val', batch_size=1, epochs=1)\n oxOY.repeat(1)\n QNle = ZylS.data.make_one_s... | [
"0.697173",
"0.640388",
"0.6159466",
"0.5986522",
"0.5981175",
"0.59604543",
"0.59458506",
"0.58807135",
"0.5865155",
"0.5737858",
"0.5725973",
"0.57109994",
"0.57076246",
"0.5701093",
"0.5684779",
"0.56715643",
"0.5643125",
"0.5638271",
"0.563184",
"0.56266236",
"0.56265396"... | 0.71271384 | 0 |
Initializes GPIO and stores the mapping of light identifier to pin number. | def FIMM(YKHO, PhxM):
YKHO.lights = PhxM
for yQ5t in YKHO.lights.itervalues():
xi8C.setup(yQ5t, xi8C.OUT, initial=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WOHZ():\n RLAL.write_regs(1060, [6704, 0, 0, 0])",
"def eCGt():\n xi8C.setup(jpvL, xi8C.OUT)",
"def PVBQ(YKHO):\n xi8C.setmode(xi8C.BOARD)\n xi8C.setwarnings(False)\n xi8C.setup(YKHO._DIGITS, xi8C.OUT)\n xi8C.setup(YKHO._SEGMENTS, xi8C.OUT)\n xi8C.setup(YKHO._DP, xi8C.OUT)\n xi8C.se... | [
"0.75192994",
"0.74133337",
"0.73287606",
"0.72657484",
"0.7247898",
"0.7239429",
"0.72346646",
"0.72112435",
"0.7195978",
"0.71308446",
"0.7063898",
"0.70035887",
"0.6917009",
"0.6844248",
"0.67558455",
"0.67055225",
"0.6703941",
"0.66996664",
"0.6688327",
"0.66570807",
"0.6... | 0.66966313 | 18 |
A helper function to convert an integer to a onehot vector. | def KLLm(d6pt, u54L=r2AR):
U5bT = oyIN.zeros(shape=(u54L,))
U5bT[d6pt] = 1.0
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jpTz(yv1q, jAfc=10, yDqo=oyIN.uint8):\n KpWI = oyIN.zeros(jAfc, dtype=yDqo)\n KpWI[yv1q] = 1\n return KpWI",
"def jpTz(ezWE):\n assert len(ezWE.shape) == 1\n fQvb = oyIN.zeros((ezWE.shape[0], 6), dtype=oyIN.int)\n for YRbF, epBp in enumerate(ezWE):\n if epBp > 0:\n fQvb[YR... | [
"0.8163064",
"0.8085995",
"0.8011472",
"0.80069625",
"0.7957304",
"0.79350287",
"0.79028076",
"0.78992015",
"0.78521717",
"0.7837133",
"0.7836623",
"0.78198403",
"0.7808956",
"0.7782388",
"0.7772375",
"0.7728828",
"0.7727499",
"0.7713399",
"0.76900655",
"0.76883847",
"0.76815... | 0.7364689 | 55 |
Reverses a dictionary This assumes the dicitonary is injective | def NIle(Op6c):
wAe9 = dict()
for G1Hx, Ty9i in Op6c.items():
wAe9[Ty9i] = G1Hx
return wAe9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gxEw(Csk6):\n return {Ty9i: G1Hx for G1Hx, Ty9i in Csk6.items()}",
"def LVuq(Csk6):\n aH93 = {r845: YRbF for YRbF, r845 in Csk6.items()}\n return aH93",
"def T1r2(Csk6):\n return {Ty9i: G1Hx for G1Hx, Ty9i in Csk6.items()}",
"def Fsdm(Csk6):\n return dict(((Ty9i, G1Hx) for G1Hx, Ty9i in Cs... | [
"0.8229195",
"0.8147273",
"0.7890411",
"0.7855805",
"0.7803789",
"0.76648724",
"0.76542693",
"0.76455426",
"0.7494955",
"0.7433337",
"0.7430047",
"0.7427254",
"0.73535943",
"0.7338914",
"0.73184955",
"0.7316617",
"0.7266367",
"0.72580034",
"0.72414666",
"0.7214934",
"0.720763... | 0.78574455 | 3 |
Test cache invalidation request. | async def test_invalidate_cache(YKHO, V429):
await kSaS()
V429.debug.assert_called_with('Cache invalidating procedure complete.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V5X6(YKHO):\n KwDD = wyyA.get('cache_key')\n if not KwDD:\n wyyA.set('cache_key', 'cache_value', 30)\n YKHO.assertEqual(wyyA.get('cache_key'), 'cache_value')",
"def vpH2(YKHO):\n pvH_ = YKHO._get_cachefile_size_(YKHO.cache_file_path)\n YKHO.cache_manager.cache_request(method='update', a... | [
"0.7344586",
"0.7259079",
"0.71612984",
"0.6946286",
"0.6932464",
"0.6918247",
"0.6825574",
"0.67430156",
"0.6741035",
"0.67389125",
"0.6720707",
"0.6716757",
"0.66410124",
"0.66366124",
"0.6634959",
"0.64955676",
"0.6481483",
"0.6474216",
"0.6451986",
"0.64355236",
"0.642420... | 0.69138247 | 6 |
(read only) The VLAN identifier for the CCM message. | def U_Sw(YKHO):
return YKHO._get_attribute('bVlan') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gg4i(YKHO):\n return YKHO._vlan_id",
"def Gg4i(YKHO) -> str:\n return YKHO._vlan_id",
"def c7u8(YKHO):\n return YKHO.vlan_id",
"def nUCN(YKHO):\n return YKHO._get_attribute('vlanId')",
"def c7u8(YKHO):\n if YKHO.network['provider:network_type'] != 'vlan':\n raise l7Cn('Trying to r... | [
"0.8191199",
"0.80887926",
"0.795334",
"0.79290587",
"0.7775236",
"0.7429966",
"0.73866147",
"0.7226254",
"0.72120327",
"0.72120327",
"0.71822405",
"0.7062957",
"0.69666016",
"0.69666016",
"0.69666016",
"0.6889523",
"0.67118657",
"0.6622048",
"0.6549273",
"0.6536227",
"0.6514... | 0.6199173 | 30 |