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 |
|---|---|---|---|---|---|---|
Root mean squared error of a sequence of predicted vectors | def kmMN(Y8eF, aMgO):
return oyIN.sqrt(ny2L(Y8eF, aMgO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DF3U(Y8eF, gjpc):\n return PZyS(SDab(Y8eF, gjpc))",
"def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(oyIN.mean(oyIN.square(Y8eF - aMgO)))",
"def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(oyIN.mean(oyIN.square(Y8eF - aMgO)))",
"def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(SDab(Y8eF, aMgO))",
"def iAxY(PjQx,... | [
"0.73556125",
"0.7239389",
"0.7239389",
"0.72071546",
"0.7181796",
"0.7160837",
"0.7136475",
"0.7136475",
"0.71334696",
"0.71118206",
"0.71118206",
"0.7104482",
"0.7099711",
"0.7091482",
"0.7060429",
"0.701408",
"0.701408",
"0.6955984",
"0.69287264",
"0.69158715",
"0.69072855... | 0.6555623 | 53 |
Test exception when there is a missing header. | def BPqb():
with trZe.raises(ValueError):
wvEv(qwcg('CF6/CF6DSM_bad.txt')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YJDg() -> None:\n with trZe.raises(uEiH):\n Vwsn(b'some_header.message.footer', b'other_header')",
"def G0uw(YKHO):\n YKHO.common_check(headers=('', 'invalid header'))",
"def RyJ0(YKHO):\n YKHO.assertFalse(b34W().hasHeader('test'))",
"def OQ12(YKHO):\n with YKHO.assertRaises(Exception)... | [
"0.8017724",
"0.7939636",
"0.77463406",
"0.7739787",
"0.7712349",
"0.7698984",
"0.7662593",
"0.76120096",
"0.76120096",
"0.76120096",
"0.76120096",
"0.75733227",
"0.74121463",
"0.7390924",
"0.73255634",
"0.73117244",
"0.7175016",
"0.71618724",
"0.71387565",
"0.7136515",
"0.70... | 0.8184464 | 0 |
Returns `model_fn` closure for TPUEstimator. | def VPYM(AgTV, ND3i, as3x):
def JnVv(bySB, Crrw, Tuqy, NArs):
"""The `model_fn` for TPUEstimator."""
ZylS.logging.info('*** Features ***')
for mWFP in sorted(bySB.keys()):
ZylS.logging.info(' name = %s, shape = %s' % (mWFP, bySB[mWFP].shape))
r8br = bySB['unique_ids']
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNzv(QjBU):\n\n def Csmj(bySB, Crrw, Tuqy, NArs):\n \"\"\"Model function.\"\"\"\n del Crrw, NArs\n qqWV = C3ST.BaseModel(QjBU, mode=Tuqy, features=bySB)\n if Tuqy == QUnY.ModeKeys.INFER:\n xnXT = qqWV.predicted_ids\n xnXT = ZylS.transpose(xnXT, [2, 1, 0])\n ... | [
"0.67876256",
"0.67231953",
"0.6708339",
"0.6708339",
"0.6704804",
"0.6642739",
"0.66179776",
"0.6606682",
"0.64987177",
"0.64855075",
"0.64845395",
"0.64673865",
"0.6446065",
"0.6385782",
"0.63442314",
"0.6340337",
"0.63192046",
"0.62871474",
"0.6259095",
"0.6225923",
"0.622... | 0.6144807 | 27 |
The `model_fn` for TPUEstimator. | def JnVv(bySB, Crrw, Tuqy, NArs):
ZylS.logging.info('*** Features ***')
for mWFP in sorted(bySB.keys()):
ZylS.logging.info(' name = %s, shape = %s' % (mWFP, bySB[mWFP].shape))
r8br = bySB['unique_ids']
Pha6 = bySB['input_ids']
qV0r = bySB['input_mask']
Uszf = bySB['segment_ids']
ma9... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZPn8(YKHO, bySB, Crrw, ND3i):\n oYbx = gnPz.fn_args(YKHO._model_fn)\n B2fa = {}\n GPtr = jth9.deepcopy(YKHO._config)\n NArs = jth9.deepcopy(YKHO._params)\n if 'labels' in oYbx:\n B2fa['labels'] = Crrw\n elif Crrw is not None:\n raise ValueError('model_fn does not take labels, bu... | [
"0.72362834",
"0.7198053",
"0.71058893",
"0.70971304",
"0.7038464",
"0.7038464",
"0.697475",
"0.69312525",
"0.6887504",
"0.67796916",
"0.66569746",
"0.6626366",
"0.66256857",
"0.6591902",
"0.65852433",
"0.65476555",
"0.6534668",
"0.6486356",
"0.6484161",
"0.64805233",
"0.6425... | 0.6216269 | 30 |
Decodes a record to a TensorFlow example. | def F8vC(AIu6, Q3__):
PU1l = ZylS.parse_single_example(AIu6, Q3__)
for mWFP in list(PU1l.keys()):
a1PO = PU1l[mWFP]
if a1PO.dtype == ZylS.int64:
a1PO = ZylS.to_int32(a1PO)
PU1l[mWFP] = a1PO
return PU1l | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F8vC(AIu6, Q3__=Q3__):\n print('record', AIu6)\n PU1l = ZylS.parse_single_example(AIu6, Q3__)\n for mWFP in list(PU1l.keys()):\n a1PO = PU1l[mWFP]\n if a1PO.dtype == ZylS.int64:\n a1PO = ZylS.to_int32(a1PO)\n PU1l[mWFP] = a1PO\n return PU1l",
"def F8vC(AIu6, Q3__):... | [
"0.84465736",
"0.83008325",
"0.8278635",
"0.8275197",
"0.8275197",
"0.8275197",
"0.82746243",
"0.8268039",
"0.8264903",
"0.82476467",
"0.823206",
"0.8222438",
"0.82119465",
"0.82119465",
"0.81988835",
"0.8150158",
"0.8128252",
"0.8125036",
"0.81018424",
"0.79579604",
"0.79550... | 0.8272709 | 8 |
Write a InputFeature to the TFRecordWriter as a tf.train.Example. | def aaKx(YKHO, RDhP):
YKHO.num_features += 1
def lSdu(hkxX):
RDhP = ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=list(hkxX)))
return RDhP
bySB = g760.OrderedDict()
bySB['unique_ids'] = lSdu([RDhP.unique_id])
bySB['input_ids'] = lSdu(RDhP.input_ids)
bySB['input_mask']... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Khqn(WJI9, nPrm, UXqs):\n bySB = {H5ew: NhGy(nPrm[H5ew]) for H5ew in nPrm}\n bySB['label'] = Oety(UXqs)\n PU1l = ZylS.train.Example(features=ZylS.train.Features(feature=bySB))\n WJI9.write(PU1l.SerializeToString())",
"def kIHM(RDhP):\n\n def yTmk(hkxX):\n eHNT = ZylS.train.Feature(int64... | [
"0.69204617",
"0.6893585",
"0.68883264",
"0.6851837",
"0.65817785",
"0.64552486",
"0.64050615",
"0.63322383",
"0.6329043",
"0.62945545",
"0.62331325",
"0.6193178",
"0.61915153",
"0.6169787",
"0.60977864",
"0.6077236",
"0.6046301",
"0.6012655",
"0.6005478",
"0.5989505",
"0.596... | 0.7206483 | 0 |
Query the current session and list all instances of cls | def all(YKHO, Emd4=None):
Aofo = {}
if Emd4:
for rdlD in YKHO.__session.query(Emd4).all():
H5ew = '{}.{}'.format(Emd4.__name__, rdlD.id)
rdlD.to_dict()
Aofo.update({H5ew: rdlD})
else:
for tyNF in FYrf.dummy_tables:
Emd4 = FYrf.dummy_tables[tyNF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pi1E(Emd4, cuiw):\n if Emd4.__table__.exists():\n return cuiw.query(Emd4)\n else:\n return []",
"def pi1E(Emd4, cuiw):\n pass",
"def all(iQwu, cuiw: Session):\n return cuiw.query(iQwu).all()",
"def heQe(YKHO):\n return YKHO.instancesByClass",
"def rFRb(YKHO, Emd4):\n ret... | [
"0.7480121",
"0.7207337",
"0.7204238",
"0.71063304",
"0.7103926",
"0.7023431",
"0.70218885",
"0.694319",
"0.6939849",
"0.6939639",
"0.68923867",
"0.68464893",
"0.6845845",
"0.6835282",
"0.6732138",
"0.6732138",
"0.67311877",
"0.6724895",
"0.6719609",
"0.67192113",
"0.66985285... | 0.0 | -1 |
Retrieve the service classes of the device with specified device class. device_class The device class of the device. A list of service classes (capabilities) of the device. | def dTmo(rM2U):
KndY = []
bin = ECez(rM2U & bCFR)
xlUU = bin[::-1]
for YRbF in range(len(xlUU)):
if xlUU[YRbF] == '1':
KndY.append(xgM4[YRbF])
return KndY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LSYt(YKHO):\n geh0 = YKHO.call(fodo.GET, 'device_classes/')\n Q80C = geh0.json()\n for dKv6 in Q80C['device_classes']:\n yield vMlA(YKHO, **dKv6)",
"def qe2J(YKHO, rM2U, y1iq=False, Zode=False):\n wgkp(YKHO, device_class=rM2U, incomplete=y1iq, hidden=Zode)\n YfpN = YKHO._filterDevices(i... | [
"0.6693348",
"0.64954644",
"0.62588376",
"0.5942519",
"0.5813048",
"0.5692079",
"0.53826284",
"0.5326284",
"0.5321452",
"0.53008705",
"0.525907",
"0.5236424",
"0.5225044",
"0.5188377",
"0.5186094",
"0.5165782",
"0.5131184",
"0.5130905",
"0.51232535",
"0.51209015",
"0.5096882"... | 0.7672603 | 0 |
Returns an id for the producer that calls this. | def Mx0x(YKHO):
with YKHO.lock_prod_producers:
YKHO.register_id += 1
QfhL = YKHO.register_id
YKHO.products_from_producers[QfhL] = []
return QfhL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO):\n return YKHO.__identifier",
"def id(YKHO):\n return YKHO.py_concurrency.pid",
"def vDgp(YKHO):\n return YKHO.__id",
"def vDgp(YKHO):\n return YKHO.__id",
"def vDgp(YKHO):\n return YKHO.__id",
"def vDgp(YKHO):\n return YKHO.__id",
"def vDgp(YKHO):\n return YKHO.__id... | [
"0.724777",
"0.7227162",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0.7197622",
"0... | 0.0 | -1 |
Return a list with all the products in the cart. | def pH8m(YKHO, sVCJ):
return YKHO.carts_lists[sVCJ] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CnKV(YKHO):\n xDcj = f'SELECT * FROM products'\n DpUl = YKHO.conn.cursor()\n DpUl.execute(xDcj)\n dixj = DpUl.fetchall()\n if not dixj:\n return False\n Ldyl = []\n for Aofo in dixj:\n Lx3t = msfn(Aofo[0], Aofo[1], Aofo[2], Aofo[3]).to_json()\n Ldyl.append(Lx3t)\n r... | [
"0.7501086",
"0.7337104",
"0.7274092",
"0.720298",
"0.71939456",
"0.714639",
"0.7072601",
"0.70306045",
"0.7023351",
"0.6986939",
"0.69607383",
"0.69322145",
"0.6918735",
"0.69042814",
"0.6874761",
"0.6864657",
"0.6862476",
"0.6862476",
"0.6850779",
"0.68431234",
"0.6838714",... | 0.0 | -1 |
Return string representation of this polygon. | def wHJl(YKHO):
return '<{}(centroid={})>'.format(YKHO.__class__.__name__, YKHO.centroid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return f'Polygon(n={YKHO._n}, R={YKHO._R})'",
"def wHJl(YKHO):\n return f'Polygon(n={YKHO._n}, R={YKHO._R})'",
"def wHJl(YKHO):\n return f'Polygon(n={YKHO._n}, R={YKHO._R})'",
"def zAg0(YKHO):\n return '<{}>'.format(str(YKHO._coords)[1:-1])",
"def wHJl(YKHO):\n YPkr = ''\n ... | [
"0.7744395",
"0.7744395",
"0.7744395",
"0.739821",
"0.73754644",
"0.73710096",
"0.73345923",
"0.7299875",
"0.7292536",
"0.72682273",
"0.72246116",
"0.71937674",
"0.71937674",
"0.7175302",
"0.71423835",
"0.71423835",
"0.71387166",
"0.708749",
"0.7079078",
"0.70667875",
"0.7061... | 0.0 | -1 |
Return unique hash of this polygon. | def rjHV(YKHO) -> int:
return hash(YKHO.points) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rjHV(YKHO):\n try:\n return YKHO._hash\n except AttributeError:\n YKHO._hash = hash(YKHO._vertex_to_part) + hash(YKHO._Delta_polar)\n return YKHO._hash",
"def H1gE(YKHO):\n pass",
"def rjHV(YKHO):\n return hash(YKHO._vertices)",
"def rjHV(YKHO):\n return hash((YKHO.x, ... | [
"0.76574975",
"0.7647521",
"0.74233216",
"0.74195826",
"0.7369372",
"0.7334175",
"0.73179054",
"0.7279221",
"0.72732294",
"0.7262736",
"0.72579324",
"0.72272474",
"0.72266597",
"0.7218244",
"0.72081083",
"0.7203466",
"0.7191163",
"0.7178231",
"0.71741134",
"0.71741134",
"0.71... | 0.6930539 | 81 |
Return if this object is equal to other object. | def xa14(YKHO, Elif: object) -> bool:
return YKHO.__class__ == Elif.__class__ and YKHO.points == Elif.points | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif: object) -> bool:\n return YKHO is Elif",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n if YKHO._objValue is None:\n return object.__e... | [
"0.8772781",
"0.86613786",
"0.8660841",
"0.8616136",
"0.8601955",
"0.85803896",
"0.8561905",
"0.8561905",
"0.8561905",
"0.85413545",
"0.8528982",
"0.8514356",
"0.8499812",
"0.8499812",
"0.8471206",
"0.8465508",
"0.8465508",
"0.8465508",
"0.8465508",
"0.8465508",
"0.8465508",
... | 0.0 | -1 |
Return the points of this polygon. | def LTIa(YKHO) -> h8nf[x1iM]:
return YKHO._points | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nkGx(YKHO):\n return (YKHO.points, YKHO.normals, YKHO.poly_ids, YKHO.u_coords, YKHO.v_coords, YKHO.user)",
"def EKFh(YKHO):\n return YKHO._Points",
"def LTIa(YKHO):\n return YKHO._points",
"def LTIa(YKHO):\n return YKHO._points",
"def LTIa(YKHO):\n return YKHO._points",
"def LTIa(YKHO)... | [
"0.81195706",
"0.8035571",
"0.80286676",
"0.80286676",
"0.80286676",
"0.80286676",
"0.7997588",
"0.79822636",
"0.7958901",
"0.7955874",
"0.79227227",
"0.79200965",
"0.7904586",
"0.78854007",
"0.78587955",
"0.785126",
"0.785126",
"0.78319734",
"0.780581",
"0.7803506",
"0.77815... | 0.7762003 | 22 |
Return all edges of this polygon. | def mC4V(YKHO) -> x1iM[AzJI[PvyL, PvyL]]:
mC4V = []
for YRbF in range(1, len(YKHO.points)):
AOBR = YKHO.points[YRbF - 1]
jvSB = YKHO.points[YRbF]
mC4V.append((AOBR, jvSB))
return mC4V | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mC4V(YKHO):\n return YKHO._generate_edges()",
"def mC4V(YKHO):\n return YKHO._generate_edges()",
"def mC4V(YKHO):\n return YKHO.__generate_edges()",
"def mC4V(YKHO):\n return YKHO.__generate_edges()",
"def mC4V(YKHO):\n return YKHO.__generate_edges()",
"def mC4V(YKHO):\n return YKHO... | [
"0.7928067",
"0.7928067",
"0.786652",
"0.786652",
"0.786652",
"0.786652",
"0.779693",
"0.77590996",
"0.7697474",
"0.7663697",
"0.7625494",
"0.76157",
"0.76157",
"0.75967175",
"0.7580115",
"0.7570068",
"0.75518703",
"0.75518703",
"0.75030035",
"0.7500251",
"0.74779844",
"0.7... | 0.68013895 | 89 |
Find the polygon's centroid as a best approximation. | def e6ux(YKHO) -> PvyL:
Yp0u = [AU8u.longitude for AU8u in YKHO.points]
QJxd = [AU8u.latitude for AU8u in YKHO.points]
rQuf = len(YKHO.points)
fopC = sum(Yp0u) / rQuf
_UuI = sum(QJxd) / rQuf
return PvyL(_UuI, fopC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e6ux(YKHO):\n return YKHO.polygon.centroid",
"def __fe(YKHO):\n u54L = len(YKHO.points)\n BnUQ = 0\n e6ux = (0, 0)\n for YRbF in range(u54L):\n (WKvO, LVAh), (o4D3, si3g) = (YKHO.points[YRbF], YKHO.points[(YRbF + 1) % u54L])\n jzdc = WKvO * si3g - o4D3 * LVAh\n BnUQ += jzd... | [
"0.8178675",
"0.77547836",
"0.77451295",
"0.7736431",
"0.7721535",
"0.7699456",
"0.75391406",
"0.7533154",
"0.7503358",
"0.7490589",
"0.74405825",
"0.7426831",
"0.7407716",
"0.7365129",
"0.7358976",
"0.7328302",
"0.7324033",
"0.73074657",
"0.72687405",
"0.72687405",
"0.725931... | 0.7272359 | 18 |
Stores the start time for this round of block merge timings. Returns | def bdZS(YKHO):
if not YKHO._start_b:
YKHO._start_t = onpT.default_timer()
YKHO._start_b = True
else:
YKHO._start_b = False
return YKHO._start_b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWox(YKHO):\n if YKHO._start_time is None:\n return None\n else:\n return jth9.deepcopy(YKHO._start_time)",
"def SWox(YKHO) -> ITS7:\n return YKHO._starttime",
"def R4lU(YKHO):\n return YKHO._starttime",
"def SWox(YKHO) -> float:\n return YKHO._start_time",
"def R4lU(YKHO):... | [
"0.7135892",
"0.70715004",
"0.7015238",
"0.70081973",
"0.7001234",
"0.6985278",
"0.6985278",
"0.69848317",
"0.69630337",
"0.694105",
"0.69396377",
"0.69331545",
"0.69331545",
"0.69272876",
"0.6924726",
"0.6924726",
"0.68934214",
"0.68934214",
"0.68934214",
"0.68934214",
"0.68... | 0.0 | -1 |
Return the state attributes of the sensor. | def R1i3(YKHO):
return YKHO._state_attributes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO._state_attributes",
"def R1i3(YKHO):\n return YKHO.rest.data",
"def R1i3(YKHO):\n return YKHO.rest.data",
"def R1i3(YKHO):\n return YKHO.data",
"def R1i3(YKHO):\n ... | [
"0.84234476",
"0.834973",
"0.8349184",
"0.8349184",
"0.8343916",
"0.8257062",
"0.825209",
"0.825209",
"0.825209",
"0.8244533",
"0.8244533",
"0.8244533",
"0.8244533",
"0.817089",
"0.817089",
"0.817089",
"0.817089",
"0.817089",
"0.81671673",
"0.81671673",
"0.8146577",
"0.8146... | 0.81391907 | 37 |
Return the unit of measurement. | def b82i(YKHO):
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82... | [
"0.90788347",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9013875",
"0.90051067",
"0.89462197",
"0.89462197",
"0.89366317",
"0.89184356",
"0.89184356",
"0.89184356",
"0.89184356",
"0.8918... | 0.8463183 | 65 |
how many edges coming into this vertex | def LRjA(YKHO, SLBp):
myQS = [exwG.neighbours.keys() for exwG in YKHO.v.values()]
myQS = list(Hs6x.chain(*myQS))
return myQS.count(SLBp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MrQl(YKHO):\n return len(YKHO._edges)",
"def vi4d(YKHO):\n return YKHO._n",
"def n8F9(YKHO):\n mLGw = 0\n for Ty9i in YKHO._structure:\n mLGw += len(YKHO._structure[Ty9i])\n return mLGw // 2",
"def n8F9(YKHO):\n return len(tuple(YKHO.edges()))",
"def n8F9(YKHO):\n return len... | [
"0.85694927",
"0.8551644",
"0.85027343",
"0.84317684",
"0.84317684",
"0.8344567",
"0.8332437",
"0.8320309",
"0.8300625",
"0.82694745",
"0.82476914",
"0.82476914",
"0.82467514",
"0.822972",
"0.822004",
"0.8215846",
"0.8213154",
"0.8212553",
"0.8212553",
"0.8208038",
"0.8203134... | 0.0 | -1 |
Dynamo won't let you write certain things that have 'reliable' defaults, such as empty sets and empty strings. So we have a utility to strip keys with those values recursively, but ONLY those values. | def jCCn():
sX1J = dict(key0=0.0, key1='string val remains', key2=0, key3=1, key4=True, key5=False, key6='', key7=set(), key8=dict(), key9=list())
with trZe.raises(TypeError):
VQ3X(sX1J)
a5qS = 5
EESs = uDjc(sX1J)
for YRbF in range(0, a5qS):
assert f'key{YRbF}' in EESs
for YRbF i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iNs_(Csk6: dict):\n KuU0 = []\n for H5ew, wEf2 in Csk6.items():\n if isinstance(wEf2, dict):\n iNs_(wEf2)\n elif wEf2 is None:\n KuU0.append(H5ew)\n for H5ew in KuU0:\n del Csk6[H5ew]\n return Csk6",
"def Avym(YKHO, V1Le):\n\n def c5_T(Csk6):\n ... | [
"0.7038494",
"0.70029724",
"0.6921542",
"0.6648976",
"0.6632569",
"0.65988934",
"0.6597944",
"0.6596093",
"0.65885496",
"0.65347993",
"0.6474821",
"0.64612305",
"0.6456438",
"0.6401395",
"0.6390028",
"0.63868004",
"0.63868004",
"0.6383567",
"0.63749146",
"0.636987",
"0.635962... | 0.59876317 | 58 |
A string representation of the model. | def zAg0(YKHO):
return YKHO.sample_no | {
"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 |
Get the count of duplicates in a list | def T0S1(list):
SM7T = 0
while list:
d6pt = list.pop(0)
if d6pt in list:
SM7T += 1
list = [WKvO for WKvO in list if WKvO != d6pt]
return SM7T | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BXOy(list):\n for mAB6 in list:\n UHFx = list.count(mAB6)\n if UHFx > 1:\n epBp = 0\n else:\n epBp = 1\n return epBp",
"def WXEd(YKHO, input):\n hlel = {}\n if len(input) <= 0:\n return hlel\n for ZfUD in input:\n if ZfUD not in hlel:\n ... | [
"0.7785809",
"0.7588318",
"0.74666625",
"0.7464326",
"0.7369239",
"0.7355894",
"0.72458106",
"0.72217435",
"0.72131705",
"0.71945083",
"0.7079261",
"0.70334345",
"0.7013334",
"0.7006311",
"0.69836366",
"0.6938111",
"0.6916325",
"0.69027394",
"0.6902577",
"0.6863662",
"0.68566... | 0.82246655 | 0 |
Get the duplicates from a list | def gJ1k(list):
rmZ9 = []
while list:
d6pt = list.pop(0)
if d6pt in list:
rmZ9.append(d6pt)
list = [WKvO for WKvO in list if WKvO != d6pt]
return rmZ9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QVYe(bCES):\n PwWw = []\n AdU3 = []\n for ZfUD in bCES:\n if ZfUD in PwWw:\n AdU3.append(ZfUD)\n else:\n PwWw.append(ZfUD)\n return AdU3",
"def nnjY(qnba):\n return set([WKvO for WKvO in qnba if qnba.count(WKvO) > 1])",
"def xFUr(YKHO, yv6U):\n yv6U = s... | [
"0.8467372",
"0.8441302",
"0.81844646",
"0.78924763",
"0.78547937",
"0.78160006",
"0.7694871",
"0.76901156",
"0.7668351",
"0.76261765",
"0.76177514",
"0.75260806",
"0.750295",
"0.7486127",
"0.74574697",
"0.74300146",
"0.7420833",
"0.74096835",
"0.7389481",
"0.73766273",
"0.73... | 0.7732447 | 6 |
Replace NTFS reserved characters with underscores. | def Vk4D(KCHu: str, A7ah: bool=True) -> str:
hpNA = V_U8
if A7ah:
hpNA += ' '
vIwR = ''.join((Z9rn if Z9rn not in hpNA else '_' for Z9rn in KCHu))
return vIwR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wJ2y(Ux0P: str) -> str:\n return QcVi.sub('_', Ux0P)",
"def gqHr(mWFP):\n nqMk = ''\n for hcXw in mWFP:\n if hcXw.isalnum() or hcXw == '_':\n nqMk += hcXw\n else:\n nqMk += '_'\n return nqMk",
"def qDYF(YKHO, KCHu):\n KCHu = KCHu.replace('/', '_').replace(... | [
"0.7456862",
"0.6993421",
"0.6977725",
"0.6958973",
"0.69226557",
"0.6904811",
"0.68653566",
"0.6842281",
"0.68147355",
"0.6809798",
"0.6809798",
"0.67809355",
"0.676741",
"0.6765985",
"0.67659086",
"0.67442113",
"0.6733739",
"0.67088425",
"0.66474235",
"0.66276723",
"0.66270... | 0.73377043 | 1 |
Push an element to the tail of the queue | def _jXH(YKHO, U6D_):
if isinstance(U6D_, list):
U6D_ = [tTpl for tTpl in U6D_ if not YKHO.already_seen(tTpl)]
YKHO.client.lpush(YKHO.name, *U6D_)
YKHO.client.sadd(YKHO.seen_set, *U6D_)
elif not YKHO.already_seen(U6D_):
YKHO.client.lpush(YKHO.name, U6D_)
YKHO.client.sadd(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, LihS):\n if not YKHO.length:\n YKHO.rear = v6Xd(LihS, None)\n YKHO.frontelem = YKHO.rear\n YKHO.length = 1\n else:\n Esd_ = v6Xd(LihS, None)\n YKHO.rear.next = Esd_\n YKHO.rear = Esd_\n YKHO.length += 1",
"def _jXH(YKHO, BWXx):\n if YKHO.is... | [
"0.78336954",
"0.7630801",
"0.76068974",
"0.7541892",
"0.7488804",
"0.74587536",
"0.74238455",
"0.7390297",
"0.73104465",
"0.7309578",
"0.7308053",
"0.7224763",
"0.7217993",
"0.7215306",
"0.72133166",
"0.72012514",
"0.7200845",
"0.71880835",
"0.71751165",
"0.7170753",
"0.7170... | 0.0 | -1 |
Merges two lists together | def vGZu(eKbg, E_EJ, PJWX=False):
IEkG = 0
uQ66 = 0
if PJWX:
print('\na = {}, b = {}'.format(eKbg, E_EJ))
hlel = list()
while IEkG < len(eKbg) or uQ66 < len(E_EJ):
if IEkG == len(eKbg):
hlel.extend(E_EJ[uQ66:])
uQ66 = len(E_EJ)
elif uQ66 == len(E_EJ):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gKI6(jzdc, Fg_i):\n Aofo = list(set(jzdc + Fg_i))\n return Aofo",
"def HvrH(YKHO, I_KI):\n pass",
"def kcIz(Kt9y, I_KI):\n Aofo = []\n for YRbF in Hs6x.izip(Kt9y, I_KI):\n Aofo.append(YRbF[0])\n Aofo.append(YRbF[1])\n return Aofo",
"def gKI6(Kt9y, I_KI):\n Aofo = []\n ... | [
"0.81673676",
"0.7839815",
"0.78284454",
"0.77933824",
"0.77409464",
"0.7714839",
"0.76807743",
"0.76348954",
"0.75323063",
"0.7520947",
"0.7519886",
"0.75004894",
"0.7466246",
"0.7452072",
"0.74342525",
"0.7413049",
"0.7385147",
"0.73834395",
"0.734033",
"0.73244524",
"0.732... | 0.6741617 | 96 |
Test values are being masked by comparing row length before and after dropping rows with null values | def tuV0(YKHO):
IIw6 = tDP6.methylation_array[~oyIN.isnan(tDP6.methylation_array).any(axis=1)].shape[0]
XT8Z = zMIt[~oyIN.isnan(zMIt).any(axis=1)].shape[0]
YKHO.assertLess(IIw6, XT8Z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPlA(YKHO) -> None:\n gwAu = 0.005\n QyVM = oyIN.where(YKHO.data['width'].data < gwAu)\n for H5ew in ('Zh', 'v', 'ldr', 'width', 'sldr'):\n if H5ew in YKHO.data:\n YKHO.data[H5ew].data[QyVM] = fHeP.masked",
"def Cb0q():\n bOBl = CwDs.DataFrame(XTiz.random.randint(-100, 100, size... | [
"0.6381789",
"0.6254581",
"0.62348735",
"0.62078905",
"0.6092111",
"0.6046291",
"0.59969467",
"0.59882826",
"0.59387094",
"0.5919394",
"0.5908948",
"0.5892487",
"0.5884529",
"0.5857885",
"0.5843549",
"0.58411396",
"0.583631",
"0.5833568",
"0.5814562",
"0.5797433",
"0.57916766... | 0.61978483 | 4 |
Number of samples available in this Project. | def eAYh(YKHO):
return sum((1 for bGrB in YKHO.sample_names)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFx(YKHO):\n return len(YKHO.samples)",
"def VRbV(YKHO):\n return len(YKHO.samp_dict.keys())",
"def eAYh(YKHO):\n return len(YKHO._samples)",
"def yU06(YKHO):\n return YKHO._num_samples",
"def pUuX(YKHO) -> int:\n return YKHO._nsamples",
"def _PBJ(YKHO):\n return YKHO.numSamples",
... | [
"0.8208727",
"0.81687176",
"0.80775803",
"0.80691713",
"0.80637115",
"0.8045222",
"0.80213684",
"0.8017579",
"0.8015678",
"0.8006583",
"0.8006583",
"0.80010104",
"0.7987527",
"0.7967323",
"0.78726953",
"0.7798874",
"0.77907395",
"0.7758596",
"0.7637925",
"0.76368207",
"0.7634... | 0.82131153 | 0 |
Returns a `pandas.Series` object with all the sample's attributes. | def yznK(YKHO):
return vO6R.Series(YKHO.__dict__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mvm2(YKHO):\n return YKHO._collect_as_list('sample')",
"def gGnb(YKHO):\n if YKHO._samples is None:\n return None\n return rLdf.DataFrame(YKHO._samples, columns=YKHO.sample_names)",
"def XRRx(YKHO):\n yIVm = {}\n for mvm2 in YKHO.sample_set.all():\n yIVm[mvm2.name] = mvm2.metad... | [
"0.64610934",
"0.6405376",
"0.62221056",
"0.6178868",
"0.611063",
"0.6029055",
"0.5983494",
"0.5954815",
"0.5942212",
"0.5913393",
"0.58703214",
"0.5841403",
"0.5839328",
"0.5836093",
"0.58234805",
"0.58108515",
"0.57786393",
"0.57699525",
"0.5751716",
"0.5750434",
"0.5748554... | 0.6230175 | 2 |
Set the genome for this Sample. | def nasu(YKHO, J0of):
YKHO._set_assembly('genome', J0of) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, l5nL):\n YKHO.genome = l5nL",
"def hneU(YKHO):\n RKD7(1, 'Entering in Genetic Data Setting')\n YKHO.ui.refTableStack.addWidget(YKHO.locusNumberFrame)\n YKHO.ui.refTableStack.setCurrentWidget(YKHO.locusNumberFrame)\n YKHO.sexRatio = None\n YKHO.setGenValid(False)",
"def O4xz(YKH... | [
"0.66814435",
"0.6433459",
"0.6395704",
"0.6328564",
"0.62979853",
"0.6222079",
"0.62128025",
"0.6188206",
"0.618006",
"0.6121528",
"0.60036874",
"0.60016054",
"0.60016054",
"0.60016054",
"0.60016054",
"0.60016054",
"0.60016054",
"0.60016054",
"0.60016054",
"0.60016054",
"0.6... | 0.8188579 | 0 |
Translate a pipeline name (e.g., stripping file extension). | def BlEJ(YKHO, nPIK):
GPtr = YKHO._select_pipeline(nPIK)
try:
return GPtr['name']
except KeyError:
vzeF.debug("No 'name' for pipeline '{}'".format(nPIK))
return EeDH.path.splitext(nPIK)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jBkE(YKHO, jBkE: Text):\n YKHO.artifact.properties['pipeline_name'].string_value = jBkE",
"def cXzH(Emd4, mWFP):\n return mWFP",
"def jBkE(YKHO) -> I2jr:\n return YKHO.artifact.properties['pipeline_name'].string_value",
"def ozpi(EtM5):\n mWFP = FkDn(EtM5)\n return str(mWFP).lower().replac... | [
"0.67434376",
"0.6722818",
"0.65225613",
"0.61079776",
"0.6004242",
"0.59870243",
"0.5907795",
"0.5900559",
"0.5828118",
"0.5818878",
"0.58041644",
"0.5800869",
"0.5788707",
"0.5754786",
"0.5748886",
"0.5729416",
"0.5666148",
"0.566316",
"0.5646915",
"0.56287986",
"0.56238335... | 0.61571515 | 3 |
Computes the accuracy over the k top predictions for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
with ht2j.no_grad():
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\n bGrB, nvEb = aMgO.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(ibJh.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)\n Ylbp.append(... | [
"0.8317406",
"0.8285652",
"0.82828414",
"0.8281149",
"0.82362676",
"0.82337403",
"0.822514",
"0.82245225",
"0.82118344",
"0.81912935",
"0.81870127",
"0.818126",
"0.8180909",
"0.8179992",
"0.81788236",
"0.81788236",
"0.8178704",
"0.81778836",
"0.8177197",
"0.81756",
"0.8173057... | 0.0 | -1 |
Get all glossaries registered with Atlas. | def mD4i(**B2fa):
qoqK = B2fa.pop('limit', None)
vgXP = B2fa.pop('offset', None)
BA9O = B2fa.pop('sort', 'ASC')
Hhz4 = 'application/json'
bD7m = B2fa.pop('template_url', '/atlas/v2/glossary')
AmXR = B2fa.pop('params', {})
if qoqK is not None:
AmXR['limit'] = AaBh.query('limit', qoqK,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C2h7():\n nPrm = []\n for ZfUD in aC0l.ACRONYMS.items():\n nPrm.append({'type': 'Acronym', 'code': ZfUD[1], 'definition': ZfUD[0]})\n for ZfUD in aC0l.ABBREVIATIONS.items():\n nPrm.append({'type': 'Abbreviation', 'code': ZfUD[1], 'definition': ZfUD[0]})\n return pz3A(nPrm)",
"def C2... | [
"0.67671764",
"0.6278555",
"0.6024051",
"0.57321525",
"0.5687056",
"0.5657813",
"0.55385005",
"0.55200857",
"0.55197215",
"0.5502334",
"0.5499646",
"0.5476818",
"0.531024",
"0.53024554",
"0.5299928",
"0.5263581",
"0.52355164",
"0.5201939",
"0.5196192",
"0.51573545",
"0.515111... | 0.4961077 | 37 |
Get all terms associated with the specific category. | def UWeW(b6kQ, **B2fa):
qoqK = B2fa.pop('limit', None)
vgXP = B2fa.pop('offset', None)
BA9O = B2fa.pop('sort', 'ASC')
Hhz4 = 'application/json'
bD7m = B2fa.pop('template_url', '/atlas/v2/glossary/category/{categoryGuid}/terms')
wiSa = {'categoryGuid': AaBh.url('category_guid', b6kQ, 'str', max_l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lB7R(Ghho):\n NHn2 = []\n for uOe2 in Ghho['groups']:\n if uOe2['type'] == 'Term':\n NHn2.append(uOe2)\n return NHn2",
"def Zrx2(YKHO, Ghho: Optional[str]=None, qoqK: Optional[int]=None, PrmE: Optional[Callable]=None) -> list:\n return list(YKHO.search_ontology_terms_set(categor... | [
"0.7994354",
"0.70970887",
"0.6399996",
"0.6389346",
"0.6283015",
"0.6204299",
"0.61914563",
"0.61851877",
"0.6107484",
"0.6065321",
"0.6065321",
"0.6065321",
"0.6065321",
"0.6065321",
"0.6065321",
"0.6065321",
"0.6065321",
"0.6065321",
"0.6057036",
"0.6043017",
"0.60402644",... | 0.56715983 | 46 |
Get all related objects assigned with the specified term. | def Xa3l(En8H, **B2fa):
qoqK = B2fa.pop('limit', None)
vgXP = B2fa.pop('offset', None)
BA9O = B2fa.pop('sort', 'ASC')
Hhz4 = 'application/json'
bD7m = B2fa.pop('template_url', '/atlas/v2/glossary/terms/{termGuid}/assignedEntities')
wiSa = {'termGuid': AaBh.url('term_guid', En8H, 'str', max_lengt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GVFA(YKHO, OXAZ: str):\n nPIK = [{'$match': {'term': OXAZ}}, {'$unwind': {'path': '$postings'}}, {'$project': {'_id': 0, 'path_id': '$postings.path_id', 'tf_idf': '$postings.tf_idf', 'tf': '$postings.tf', 'idf': '$idf', 'positional_idx': '$postings.positional_idx'}}]\n return list(YKHO.collection_terms.a... | [
"0.593434",
"0.59078103",
"0.5856764",
"0.5571204",
"0.5512892",
"0.5496057",
"0.5467003",
"0.5447633",
"0.53977484",
"0.5354817",
"0.53186816",
"0.5269404",
"0.5245939",
"0.52330494",
"0.52330494",
"0.52330494",
"0.52330494",
"0.52330494",
"0.52330494",
"0.52330494",
"0.5233... | 0.0 | -1 |
Get the categories belonging to a specific glossary. | def zpNh(D1iX, **B2fa):
qoqK = B2fa.pop('limit', None)
vgXP = B2fa.pop('offset', None)
BA9O = B2fa.pop('sort', 'ASC')
Hhz4 = 'application/json'
bD7m = B2fa.pop('template_url', '/atlas/v2/glossary/{glossaryGuid}/categories')
wiSa = {'glossaryGuid': AaBh.url('glossary_guid', D1iX, 'str', max_lengt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def create_glossary_categories(YKHO, VNEH: List[JSON], **B2fa: Any) -> x1iM[nC76]:\n KVtY = {401: lhwm, 404: llBy, 409: DKDz}\n KVtY.update(B2fa.pop('error_map', {}) or {})\n kkzV = jxqF(B2fa.pop('headers', {}) or {})\n Vlb9 = B2fa.pop('params', {}) or {}\n m5r4 = B2fa.pop('content_type', kkzV... | [
"0.640857",
"0.63026476",
"0.6183337",
"0.59051627",
"0.5903121",
"0.58994013",
"0.5857215",
"0.5845652",
"0.5845652",
"0.5834536",
"0.58337206",
"0.58033866",
"0.57758427",
"0.5756872",
"0.5753285",
"0.5711099",
"0.5651702",
"0.56459147",
"0.5635763",
"0.5626437",
"0.5614336... | 0.58396196 | 9 |
If localPath is set (i.e. if we expanded a config from this instance), return the path Otherwise, download the config from the ConfigCache returns the location of the configuration | def zoFt(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UqZV(YKHO):\n return YKHO.path('.config')",
"def lqQH(YKHO):\n if YKHO.cache_path:\n return Hy7s.path.join(YKHO.cache_path, 'config.yaml')\n return None",
"def S673():\n return SDCd",
"def rAod(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'local_path')",
"def rAod(YKHO)... | [
"0.7427684",
"0.7063457",
"0.6805445",
"0.668261",
"0.668261",
"0.668261",
"0.668261",
"0.668261",
"0.668261",
"0.668261",
"0.6679243",
"0.6615047",
"0.65966594",
"0.65481037",
"0.653308",
"0.6513057",
"0.65110755",
"0.65064824",
"0.650224",
"0.64811",
"0.64553404",
"0.6440... | 0.0 | -1 |
Boolean for whether the RegisterValue is known to be constant (readonly) | def avzC(YKHO):
return YKHO._is_constant | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ac9L(YKHO):\n pass",
"def feog(YKHO):\n return False",
"def avzC(YKHO):\n return False",
"def avzC(YKHO):\n return YKHO.is_const",
"def fAGM(YKHO):\n return 0",
"def si3H(YKHO):\n return False",
"def Ac9L(YKHO):\n raise NotImplementedError()",
"def Ac9L(YKHO):\n raise NotI... | [
"0.7816895",
"0.77920777",
"0.7711249",
"0.7625066",
"0.7589306",
"0.75257534",
"0.7411882",
"0.7411882",
"0.7268449",
"0.71837777",
"0.6969306",
"0.6729762",
"0.66117275",
"0.6578551",
"0.65656894",
"0.64602435",
"0.64393675",
"0.6368985",
"0.6174126",
"0.6150838",
"0.605309... | 0.74778473 | 6 |
Create constant pointer valued PossibleValueSet object. | def iCBq(YKHO, BWXx):
Aofo = ZLtD()
Aofo.type = TK__.ConstantPointerValue
Aofo.value = BWXx
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def si3H(YKHO, BWXx):\n Aofo = ZLtD()\n Aofo.type = TK__.ConstantValue\n Aofo.value = BWXx\n return Aofo",
"def qMyi(YKHO):\n return ZLtD()",
"def si3H(SQvy, BWXx):\n oVM8 = {}\n SQvy['set_val'](oVM8, BWXx)\n return oVM8",
"def bbIV(YKHO, bbIV=None):\n if bbIV is not None:\n ... | [
"0.6919405",
"0.61601657",
"0.5685031",
"0.5626343",
"0.5614041",
"0.53664243",
"0.53079945",
"0.5291692",
"0.52835566",
"0.5254662",
"0.52351856",
"0.5211381",
"0.51182073",
"0.5006554",
"0.49954942",
"0.49784487",
"0.49761945",
"0.4943936",
"0.4928368",
"0.49082336",
"0.486... | 0.7685148 | 0 |
Create a PossibleValueSet object for a value NOT in a set of values. | def m53k(YKHO, hkxX):
Aofo = ZLtD()
Aofo.type = TK__.NotInSetOfValues
Aofo.values = set(hkxX)
Aofo.count = len(hkxX)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qMyi(YKHO):\n return ZLtD()",
"def b8lC(YKHO, hkxX):\n Aofo = ZLtD()\n Aofo.type = TK__.InSetOfValues\n Aofo.values = set(hkxX)\n Aofo.count = len(hkxX)\n return Aofo",
"def h49q(YKHO, *hkxX):\n YKHO._check_dict_like(YKHO.val, check_getitem=False)\n if len(hkxX) == 0:\n raise... | [
"0.6772034",
"0.67603105",
"0.6170392",
"0.61603045",
"0.6137552",
"0.6107629",
"0.6105685",
"0.5885373",
"0.587711",
"0.58468056",
"0.583223",
"0.5694849",
"0.56803626",
"0.56315154",
"0.55922014",
"0.5583036",
"0.5524105",
"0.5466776",
"0.54643375",
"0.5429037",
"0.54289645... | 0.85430336 | 0 |
``add_user_address_tag`` adds an alreadycreated Tag object at a given address. Since this adds a user tag, it will be added to the current undo buffer. | def rZuT(YKHO, rRzo, TZ9E, JACg=None):
if JACg is None:
JACg = YKHO.arch
aM69.BNAddUserAddressTag(YKHO.handle, JACg.handle, rRzo, TZ9E.handle) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p3h7(YKHO, UTX6):\n YKHO.addresses.append(UTX6)",
"def upn2(YKHO, UTX6):\n YKHO._flush_namespace('billing')\n YKHO._set('billing', 'user_address_id', UTX6.id)",
"def H2v5(YKHO, UTX6):\n pass",
"def p3h7(uJjO, UTX6, j5sA, QTBn, DD6W, mWFP, _UuI, fopC):\n Epiq = EDCT(user_id=uJjO, address=UT... | [
"0.6472485",
"0.62684506",
"0.61946034",
"0.61664444",
"0.6159811",
"0.6016127",
"0.5982182",
"0.59797144",
"0.58971584",
"0.58709234",
"0.58469164",
"0.5825292",
"0.57419765",
"0.5732524",
"0.56618017",
"0.56528795",
"0.5645302",
"0.56338906",
"0.5614637",
"0.56124467",
"0.5... | 0.78463566 | 0 |
``add_user_type_field_ref`` places a userdefined type field crossreference from the instruction at the given address and architecture to the specified type. If the specified source instruction is not contained within this function, no action is performed. | def mRQ_(YKHO, iTGP, mWFP, vgXP, OLit=None, zNig=0):
if OLit is None:
OLit = YKHO.arch
mWFP = SnBA.QualifiedName(mWFP)._get_core_struct()
aM69.BNAddUserTypeFieldReference(YKHO.handle, OLit.handle, iTGP, mWFP, vgXP, zNig) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mGeR(YKHO, iTGP, mWFP, OLit=None):\n if OLit is None:\n OLit = YKHO.arch\n mWFP = SnBA.QualifiedName(mWFP)._get_core_struct()\n aM69.BNAddUserTypeReference(YKHO.handle, OLit.handle, iTGP, mWFP)",
"def CyYG(YKHO, iTGP, mWFP, vgXP, OLit=None, zNig=0):\n if OLit is None:\n OLit = YKHO.... | [
"0.71094227",
"0.622748",
"0.56472063",
"0.5618157",
"0.552649",
"0.53915805",
"0.53760666",
"0.52787596",
"0.5194491",
"0.5133417",
"0.5105505",
"0.50667584",
"0.5039298",
"0.49759385",
"0.49335387",
"0.49182597",
"0.48731935",
"0.48554957",
"0.48451373",
"0.4832874",
"0.483... | 0.781673 | 0 |
``get_llil_at`` gets the LowLevelILInstruction corresponding to the given virtual address | def oiLg(YKHO, rRzo, JACg=None):
if JACg is None:
JACg = YKHO.arch
or8S = aM69.BNGetLowLevelILForInstruction(YKHO.handle, JACg.handle, rRzo)
if or8S == len(YKHO.llil):
return None
return YKHO.llil[or8S] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Abjt(ETK8, rRzo):\n FSYx = ETK8.get_functions_containing(rRzo)\n if len(FSYx) == 0:\n return None\n mgFW = None\n for FYKK in FSYx:\n mgFW = FYKK.get_low_level_il_at(rRzo)\n if mgFW:\n return mgFW\n return None",
"def BCPn(YKHO, rRzo, JACg=None):\n if JACg is... | [
"0.79312253",
"0.7276612",
"0.71516836",
"0.6543388",
"0.61806023",
"0.5783145",
"0.56791747",
"0.56073713",
"0.544494",
"0.54417294",
"0.5339522",
"0.5316297",
"0.5312003",
"0.5251519",
"0.5210153",
"0.520764",
"0.5152442",
"0.51236176",
"0.5046933",
"0.5023492",
"0.5023492"... | 0.77727246 | 1 |
``get_llils_at`` gets the LowLevelILInstruction(s) corresponding to the given virtual address | def xHhm(YKHO, rRzo, JACg=None):
if JACg is None:
JACg = YKHO.arch
UHFx = gk2W.c_ulonglong()
fGIB = aM69.BNGetLowLevelILInstructionsForAddress(YKHO.handle, JACg.handle, rRzo, UHFx)
Aofo = []
for YRbF in range(0, UHFx.value):
Aofo.append(YKHO.llil[fGIB[YRbF]])
aM69.BNFreeILInstruc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Abjt(ETK8, rRzo):\n FSYx = ETK8.get_functions_containing(rRzo)\n if len(FSYx) == 0:\n return None\n mgFW = None\n for FYKK in FSYx:\n mgFW = FYKK.get_low_level_il_at(rRzo)\n if mgFW:\n return mgFW\n return None",
"def oiLg(YKHO, rRzo, JACg=None):\n if JACg is... | [
"0.77918094",
"0.71839446",
"0.7012703",
"0.6756623",
"0.6288092",
"0.56524235",
"0.55370384",
"0.54557747",
"0.53661346",
"0.5264844",
"0.5220246",
"0.5201565",
"0.51750845",
"0.51565033",
"0.51458573",
"0.51208663",
"0.5062171",
"0.50546455",
"0.50381494",
"0.5011098",
"0.4... | 0.795371 | 0 |
``get_mlil_var_refs`` returns a list of ILReferenceSource objects (IL xrefs or crossreferences) that reference the given variable. The variable is a local variable that can be either on the stack, in a register, or in a flag. This function is related to get_hlil_var_refs(), which returns variable references collected f... | def rviN(YKHO, SRYB):
UHFx = gk2W.c_ulonglong(0)
lwr3 = aM69.BNVariable()
lwr3.type = SRYB.source_type
lwr3.index = SRYB.index
lwr3.storage = SRYB.storage
RmfS = aM69.BNGetMediumLevelILVariableReferences(YKHO.handle, lwr3, UHFx)
Aofo = []
for YRbF in range(0, UHFx.value):
if RmfS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IuKp(YKHO, SRYB):\n UHFx = gk2W.c_ulonglong(0)\n lwr3 = aM69.BNVariable()\n lwr3.type = SRYB.source_type\n lwr3.index = SRYB.index\n lwr3.storage = SRYB.storage\n RmfS = aM69.BNGetHighLevelILVariableReferences(YKHO.handle, lwr3, UHFx)\n Aofo = []\n for YRbF in range(0, UHFx.value):\n ... | [
"0.7701634",
"0.69206476",
"0.6154952",
"0.5576988",
"0.5340197",
"0.51255774",
"0.5080798",
"0.5001891",
"0.49905717",
"0.4877795",
"0.48761895",
"0.48612183",
"0.48312226",
"0.4809372",
"0.4754051",
"0.4754051",
"0.4754051",
"0.47515497",
"0.4681392",
"0.46488965",
"0.46407... | 0.8672596 | 0 |
``get_hlil_var_refs_from`` returns a list of variables referenced by code in the function ``func``, of the architecture ``arch``, and at the address ``addr``. If no function is specified, references from all functions and containing the address will be returned. If no architecture is specified, the architecture of the ... | def avt5(YKHO, rRzo, u54L=None, JACg=None):
Aofo = []
UHFx = gk2W.c_ulonglong(0)
if u54L is None:
RmfS = aM69.BNGetHighLevelILVariableReferencesFrom(YKHO.handle, YKHO.arch.handle, rRzo, UHFx)
else:
RmfS = aM69.BNGetHighLevelILVariableReferencesInRange(YKHO.handle, YKHO.arch.handle, rRzo,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UP3c(YKHO, rRzo, u54L=None, JACg=None):\n Aofo = []\n UHFx = gk2W.c_ulonglong(0)\n if u54L is None:\n RmfS = aM69.BNGetMediumLevelILVariableReferencesFrom(YKHO.handle, YKHO.arch.handle, rRzo, UHFx)\n else:\n RmfS = aM69.BNGetMediumLevelILVariableReferencesInRange(YKHO.handle, YKHO.arc... | [
"0.6986912",
"0.6726174",
"0.602319",
"0.5171341",
"0.49813318",
"0.49265978",
"0.49004075",
"0.47962198",
"0.47960332",
"0.47121176",
"0.46015322",
"0.4588191",
"0.45762947",
"0.45644364",
"0.45531806",
"0.45351017",
"0.45271426",
"0.45189098",
"0.44815943",
"0.4468405",
"0.... | 0.75025785 | 0 |
probability that exactly m_k indirect measurement succeeds (perhaps with errors). | def maki(YKHO, G1Hx, JrF6):
return v_BE(YKHO.b[G1Hx], JrF6) * YKHO.S[G1Hx] ** JrF6 * (1 - YKHO.S[G1Hx]) ** (YKHO.b[G1Hx] - JrF6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h8YR(r8hN, exwG, G1Hx):\n return (1 - epAf.exp(-1 * G1Hx * r8hN / exwG)) ** G1Hx",
"def QOUa(G1Hx):\n XEBU = v_BE.cdf(G1Hx, ywwl, XP5J)\n vgvd = v_BE.pmf(G1Hx, ywwl, XP5J)\n GuPo = XEBU - vgvd\n return 1 - GuPo",
"def Qs3k(G1Hx, Mkmy):\n vexM = Lrxy / Mkmy\n XP5J = (1 - vexM) ** G1Hx\n... | [
"0.6966843",
"0.6692798",
"0.6418022",
"0.6314536",
"0.6293122",
"0.62468934",
"0.62075347",
"0.61841875",
"0.6165121",
"0.6144424",
"0.61167514",
"0.61133677",
"0.61132336",
"0.6090342",
"0.6039885",
"0.6032711",
"0.5983345",
"0.5981931",
"0.5971959",
"0.5968691",
"0.5960488... | 0.6270072 | 5 |
Ensure the /ping route behaves correctly. | def yD57(YKHO):
geh0 = YKHO.client.get('/score/ping')
nPrm = qQXR.loads(geh0.data.decode())
YKHO.assertEqual(geh0.status_code, 200)
YKHO.assertIn('pong!', nPrm['message'])
YKHO.assertIn('success', nPrm['status']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BMCL(YKHO):\n geh0 = YKHO.client.get('/ping')\n YKHO.assert200(geh0)",
"def BMCL(x0hE):\n geh0 = x0hE.get('/ping')\n assert geh0.data == b'Ping!'",
"def BMCL(YKHO):\n x0hE = fUla.Client('vilfotestrouter', 'testtoken')\n h2IT.add(h2IT.GET, 'http://vilfotestrouter/api/v1/system/ping', json=... | [
"0.777479",
"0.70533836",
"0.69570583",
"0.695673",
"0.67540026",
"0.6720369",
"0.6682007",
"0.6673324",
"0.6634377",
"0.6611171",
"0.66073304",
"0.6600694",
"0.65949297",
"0.65567964",
"0.65567964",
"0.65567964",
"0.6546748",
"0.65350163",
"0.6524784",
"0.6515431",
"0.649419... | 0.6313203 | 43 |
Round a datetime object to a multiple of a timedelta | def VGg5(YKHO, XKGp=qcWV.timedelta(minutes=60)):
JRYC = YKHO.datetime_object
z_0R = XKGp.total_seconds()
if JRYC == None:
JRYC = qcWV.datetime.now()
C6wh = (JRYC - JRYC.min).seconds
Y3rN = (C6wh + z_0R / 2) // z_0R * z_0R
return JRYC + qcWV.timedelta(0, Y3rN - C6wh, -JRYC.microsecond) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jdgp(JRYC, XKGp=qcWV.timedelta(minutes=1)):\n z_0R = XKGp.total_seconds()\n C6wh = JRYC.timestamp()\n Y3rN = (C6wh + z_0R / 2) // z_0R * z_0R\n return JRYC + qcWV.timedelta(0, Y3rN - C6wh, -JRYC.microsecond)",
"def q5uJ(Csk6):\n wx6A, ohcp, SG6Y, gqtN, VAJu = Csk6.timetuple()[:5]\n if 30 <=... | [
"0.727732",
"0.6977887",
"0.6848625",
"0.6847304",
"0.6823675",
"0.6748115",
"0.6581582",
"0.6573457",
"0.6491572",
"0.64779085",
"0.64455456",
"0.6421207",
"0.64071053",
"0.63579684",
"0.63258487",
"0.6318374",
"0.6314847",
"0.62982965",
"0.6294818",
"0.62941176",
"0.6287066... | 0.7082712 | 1 |
Flip classes according to transition probability matrix T. It expects a number between 0 and the number of classes 1. | def pvOc(LVAh, V6IE, t3eI=1):
assert V6IE.shape[0] == V6IE.shape[1]
assert oyIN.max(LVAh) < V6IE.shape[0]
t_0o(V6IE.sum(axis=1), oyIN.ones(V6IE.shape[1]))
assert (V6IE >= 0.0).all()
r8hN = LVAh.shape[0]
eLqP = LVAh.copy()
kc58 = oyIN.random.RandomState(t3eI)
for or8S in oyIN.arange(r8hN)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pvOc(LVAh, Kt_s, t3eI=0):\n LVAh = oyIN.asarray(LVAh)\n assert Kt_s.shape[0] == Kt_s.shape[1]\n assert oyIN.max(LVAh) < Kt_s.shape[0]\n t_0o(Kt_s.sum(axis=1), oyIN.ones(Kt_s.shape[1]))\n assert (Kt_s >= 0.0).all()\n r8hN = LVAh.shape[0]\n eLqP = LVAh.copy()\n kc58 = oyIN.random.RandomSt... | [
"0.61985236",
"0.60318446",
"0.58866584",
"0.5763043",
"0.57221663",
"0.57094985",
"0.55644387",
"0.55312663",
"0.55134904",
"0.5505055",
"0.55043775",
"0.54207075",
"0.5394607",
"0.53844965",
"0.53582907",
"0.5355019",
"0.5343428",
"0.5329988",
"0.53055906",
"0.5305155",
"0.... | 0.5245822 | 27 |
Load saved model from path. | def tyeH(Emd4, pmON):
bo34.debug('Loading: {}'.format(Emd4.__name__))
y5mJ = qutO()
y5mJ.model = ZylS.keras.models.load_model(pmON, compile=False)
return y5mJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO, pmON):\n YKHO.model = tyeH(pmON)",
"def O5RJ(YKHO, uqvc: str):\n pass",
"def O5RJ(Emd4, uqvc):\n pass",
"def tyeH(YKHO, pmON):\n with open(pmON, 'rb') as apum:\n YKHO.model = t2lc.load(apum)",
"def O5RJ(YKHO):\n pmON = YKHO._get_model_path()\n with open(pmON, 'rb') a... | [
"0.891473",
"0.85595626",
"0.8467785",
"0.833729",
"0.8323833",
"0.83186215",
"0.83172506",
"0.83038044",
"0.82834756",
"0.82490027",
"0.8235645",
"0.823239",
"0.81420976",
"0.81300336",
"0.8109496",
"0.8108945",
"0.80869484",
"0.80620927",
"0.8055654",
"0.8043306",
"0.804242... | 0.0 | -1 |
Load Pretrained VGG Model into TensorFlow. | def LbAo(cb_Q, VyBP):
lFgm = 'vgg16'
kvAN = 'image_input:0'
jlSf = 'keep_prob:0'
XYEU = 'layer3_out:0'
Fq6D = 'layer4_out:0'
FI61 = 'layer7_out:0'
ZylS.saved_model.loader.load(cb_Q, [lFgm], VyBP)
yfcx = ZylS.get_default_graph()
aEZk = yfcx.get_tensor_by_name(kvAN)
mALI = yfcx.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LbAo(cb_Q, VyBP):\n lFgm = 'vgg16'\n kvAN = 'image_input:0'\n jlSf = 'keep_prob:0'\n XYEU = 'layer3_out:0'\n Fq6D = 'layer4_out:0'\n FI61 = 'layer7_out:0'\n ZylS.saved_model.loader.load(cb_Q, [lFgm], VyBP)\n pNZh = ZylS.get_default_graph()\n input = pNZh.get_tensor_by_name(kvAN)\n ... | [
"0.79139525",
"0.78912765",
"0.7886453",
"0.7886453",
"0.78115135",
"0.77844846",
"0.7764394",
"0.7755438",
"0.7742855",
"0.773247",
"0.77111346",
"0.77089316",
"0.7696031",
"0.76932967",
"0.7681593",
"0.76731616",
"0.7656345",
"0.7629141",
"0.76261705",
"0.7620557",
"0.76192... | 0.75733757 | 24 |
Returns new plot figure for selected y_axis. Calls the make_bar function with the specified y_axis value. | def Dpaj(LY1Y, f4IJ, xv9K):
if LY1Y == 0:
HmAy = 'AvgTime(1 trial)-ms'
else:
HmAy = 'Throughput-GB/s'
JI1i, bGrB = _g2H(f4IJ, 'Performance Plot', xv9K, HmAy)
return JI1i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i4e5(YKHO):\n return vAdN(YKHO)",
"def i4e5(YKHO):\n return YKHO['yaxis']",
"def i4e5(YKHO):\n return YKHO.yvar",
"def iPiv(YKHO, LVAh):\n LZpg, aNZO = QrM1.subplots(figsize=SqgK)\n jQ3Z = YKHO.df_double.sort_values(by=LVAh, ascending=False).reset_index()\n jQ3Z = jQ3Z.rename(columns={'... | [
"0.62736964",
"0.6125172",
"0.612326",
"0.60571694",
"0.6043156",
"0.5937787",
"0.59196913",
"0.58664453",
"0.5862806",
"0.58463687",
"0.5828819",
"0.5785906",
"0.5756228",
"0.57423204",
"0.5733641",
"0.57065904",
"0.5688143",
"0.56800604",
"0.5629561",
"0.55745846",
"0.55375... | 0.5170128 | 59 |
Verifies filepathname is a path to an existing file. | def _o9o(ifhz):
if not Hy7s.path.exists(ifhz):
raise j1Jz.ArgumentTypeError('Cannot find file {}'.format(ifhz))
return ifhz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QcvR(pmON):\n if not Hy7s.path.isfile(pmON):\n raise RuntimeError('Not a file path: {}'.format(pmON))",
"def EFYe(uvd8):\n return Hy7s.path.isfile(uvd8) if uvd8 else False",
"def nUeQ(uvd8):\n return Hy7s.path.isfile(uvd8) if uvd8 else False",
"def ToVW(YKHO, Ux0P):\n return YKHO.store... | [
"0.742463",
"0.7236734",
"0.7154784",
"0.70550466",
"0.6992601",
"0.696205",
"0.6942497",
"0.6917685",
"0.6917685",
"0.68420905",
"0.67479277",
"0.66976106",
"0.6662875",
"0.66579306",
"0.66030973",
"0.65836364",
"0.658093",
"0.6538354",
"0.6528934",
"0.6515011",
"0.6505399",... | 0.68307674 | 10 |
Create a new StreamDistanceInfo object with the attributes given | def Pgfv(G2VG, O2IH, ruGT, LmpB):
OaDh = TptB()
OaDh.llid = G2VG
OaDh.name = O2IH
OaDh.trib_to = ruGT
OaDh.adj_factors = LmpB
return OaDh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, U34r):\n for H5ew, BWXx in U34r.items():\n if H5ew == 'cd':\n YKHO.time = QXve(BWXx)\n elif H5ew == 'dist':\n YKHO.distance = float(BWXx)\n elif H5ew == 'v_rel':\n YKHO.velocity = float(BWXx)\n elif H5ew == 'des':\n YKHO._des... | [
"0.62441057",
"0.61987597",
"0.6185074",
"0.61708134",
"0.59997094",
"0.5987198",
"0.5771131",
"0.5737624",
"0.5732398",
"0.57025325",
"0.56572175",
"0.5617081",
"0.5614491",
"0.55581003",
"0.5490963",
"0.54810566",
"0.5470488",
"0.5464902",
"0.54299545",
"0.54153925",
"0.538... | 0.7099313 | 0 |
Adds given adj_factors sequence to the appropriate StreamDistanceInfo object in the given adj_factor_dictionary. | def DEh2(Osta, G2VG, LmpB):
OaDh = Osta[G2VG]
OaDh.adj_factors = LmpB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CkkN(YKHO, Pz81):\n for tvqc, aM8h in Pz81.items():\n YKHO.rate_factors[tvqc] = aM8h",
"def HQGO(YAg3, Llmz):\n if YAg3 is None:\n YAg3 = {rZpw: rZpw for rZpw in Llmz}\n else:\n for rZpw in Llmz:\n if rZpw not in YAg3:\n YAg3[rZpw] = rZpw\n return YA... | [
"0.55259436",
"0.5473846",
"0.5155561",
"0.4915758",
"0.48384002",
"0.47615212",
"0.46939316",
"0.46430716",
"0.46430716",
"0.46197155",
"0.46169165",
"0.46120426",
"0.4609296",
"0.45721972",
"0.45716196",
"0.45081425",
"0.44382015",
"0.44156572",
"0.44022578",
"0.4378515",
"... | 0.7557199 | 0 |
Flattens given iterable into a list. Function dives into list and tuple components, down to two levels. | def iAD1(*UqER):
Aofo = []
for LihS in UqER:
if type(LihS) in [list, tuple]:
for geyT in LihS:
Aofo.append(geyT)
else:
Aofo.append(LihS)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKPt(OxJJ):\n return [ZfUD for XuXy in OxJJ for ZfUD in XuXy]",
"def Pnxd(qGs9: Iterable):\n while any((isinstance(tTpl, iu5r) for tTpl in qGs9)):\n qGs9 = list(eNCK.from_iterable(qGs9))\n return qGs9",
"def YYDj(OxJJ):\n WhY1 = iter(OxJJ)\n yvT9 = tuple(([ETnA] for ETnA in next(WhY1,... | [
"0.7641628",
"0.7565318",
"0.74339765",
"0.73906255",
"0.7378217",
"0.7315673",
"0.7315673",
"0.73083997",
"0.7197846",
"0.7158948",
"0.7139693",
"0.71259606",
"0.71238106",
"0.70972556",
"0.707082",
"0.70369446",
"0.70369446",
"0.70141095",
"0.7001849",
"0.69942194",
"0.6973... | 0.0 | -1 |
Test case for get_district_teams | def xQHJ(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def drKh(YKHO):\n pass",
"def QgVI(YKHO):\n pass",
"def hJ61(YKHO):\n pass",
"def kAK1(YKHO):\n pass",
"def hJ61(rKo9):\n n2Q1, SpII = rKo9.get_teams()\n assert n2Q1 == 'France' and SpII == 'Peru'",
"def cToD(YKHO):\n pass",
"def av60(YKHO):\n JM6C = YKHO.season.get_teams()\n ... | [
"0.90880966",
"0.8053137",
"0.7801504",
"0.7554021",
"0.7389468",
"0.73343354",
"0.70042217",
"0.69750744",
"0.69722253",
"0.6962872",
"0.6771894",
"0.6728421",
"0.6718926",
"0.66967785",
"0.6655063",
"0.6640207",
"0.66223",
"0.6621411",
"0.66206676",
"0.65062445",
"0.6502974... | 0.9255218 | 0 |
Test case for get_district_teams_simple | def drKh(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xQHJ(YKHO):\n pass",
"def kAK1(YKHO):\n pass",
"def QgVI(YKHO):\n pass",
"def hJ61(YKHO):\n pass",
"def hJ61(rKo9):\n n2Q1, SpII = rKo9.get_teams()\n assert n2Q1 == 'France' and SpII == 'Peru'",
"def O7FG(YKHO):\n pass",
"def h47P(YKHO):\n pass",
"def cToD(YKHO):\n pass... | [
"0.9009228",
"0.79137516",
"0.7857715",
"0.7598271",
"0.74224526",
"0.71585774",
"0.6974722",
"0.6944862",
"0.68376994",
"0.6836864",
"0.6768011",
"0.67293173",
"0.6668849",
"0.6615635",
"0.6539182",
"0.64969766",
"0.6493897",
"0.64428407",
"0.64070934",
"0.6370486",
"0.63618... | 0.93483806 | 0 |
Test case for get_events_by_year_keys | def AChb(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JVLk(YKHO):\n pass",
"def dRtx(YKHO):\n pass",
"def pMqr(YKHO):\n pass",
"def xBKJ(YKHO):\n YKHO.assertEquals(set(YKHO.calendar.events.all()), set(YKHO.calendar.get_yearly_events()))\n YKHO.assertEquals(set([]), set(YKHO.calendar.get_yearly_events(year=2014)))",
"def IOr3(YKHO):\n pas... | [
"0.868526",
"0.8657511",
"0.7907086",
"0.7472538",
"0.74308646",
"0.7227702",
"0.7183143",
"0.6858973",
"0.67548364",
"0.67130655",
"0.66568977",
"0.6607555",
"0.6564858",
"0.6338383",
"0.6285204",
"0.6255146",
"0.6249786",
"0.61907756",
"0.618114",
"0.6129595",
"0.6128334",
... | 0.96211773 | 0 |
Test case for get_teams | def hJ61(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kAK1(YKHO):\n pass",
"def cToD(YKHO):\n pass",
"def O7FG(YKHO):\n pass",
"def av60(YKHO):\n JM6C = YKHO.season.get_teams()\n YKHO.assertTrue(len(JM6C) > 0)\n YKHO.assertTrue('MTL' in JM6C)",
"def hJ61(rKo9):\n n2Q1, SpII = rKo9.get_teams()\n assert n2Q1 == 'France' and SpII == '... | [
"0.9066757",
"0.8502217",
"0.83033735",
"0.8186542",
"0.81583387",
"0.81051165",
"0.7931919",
"0.78833604",
"0.78750694",
"0.78510815",
"0.7821974",
"0.7754903",
"0.77259535",
"0.76499146",
"0.7635874",
"0.76127243",
"0.7611529",
"0.75971484",
"0.75797313",
"0.75655717",
"0.7... | 0.9240581 | 0 |
Test case for get_teams_by_year_keys | def pMqr(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c6QG(YKHO):\n pass",
"def R8ZX(YKHO):\n pass",
"def AChb(YKHO):\n pass",
"def jeIe(YKHO):\n pass",
"def IOr3(YKHO):\n pass",
"def QgVI(YKHO):\n pass",
"def KH6S(YKHO):\n pass",
"def lKMv(YKHO):\n pass",
"def JVLk(YKHO):\n pass",
"def dRtx(YKHO):\n pass",
"def h... | [
"0.8483417",
"0.8464847",
"0.78877366",
"0.7656565",
"0.72972846",
"0.7208482",
"0.72041816",
"0.6983829",
"0.6897146",
"0.6880016",
"0.65382266",
"0.64611113",
"0.6416662",
"0.6409773",
"0.6390027",
"0.63768333",
"0.6319809",
"0.63140607",
"0.63127434",
"0.63121575",
"0.6306... | 0.95453763 | 0 |
Calculate sumofsquared errors (SSE) for predictions with L2 (quadratic) regularizer. | def ibAa(EcVT, LVAh, _mSQ, EhIg):
_mSQ = oyIN.array(_mSQ, dtype=oyIN.float64)
aMgO = YEmv(EcVT, _mSQ)
Ptm0 = 0
for YRbF in range(oyIN.size(EcVT, axis=0)):
Ptm0 += (LVAh[YRbF] - aMgO[YRbF]) ** 2 + EhIg * _mSQ.dot(_mSQ) ** 2
return float(Ptm0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YJlV(YKHO, Ana8):\n for XObx in Ana8:\n YKHO.SSE += XObx * XObx",
"def Ptm0(YKHO):\n SVd2 = YKHO.df_model['residuals'].copy(True) ** 2\n return SVd2.sum()",
"def C6oS(YKHO):\n return oyIN.sum(oyIN.square(YKHO.predicted() - YKHO.ybar()), axis=0)",
"def hk69(fuBA, qYGl, EcVT):\n impor... | [
"0.6682462",
"0.66658455",
"0.66171306",
"0.6425095",
"0.6363994",
"0.63411915",
"0.6331469",
"0.6312804",
"0.63004255",
"0.62718576",
"0.62484103",
"0.62348753",
"0.6234263",
"0.6218901",
"0.6181994",
"0.61698353",
"0.6166087",
"0.61465776",
"0.6122808",
"0.6116412",
"0.6110... | 0.63651156 | 4 |
Updates weights based on the gradient, includes L2 regularizer for nonintercept weights. | def EWqU(Ro40, _mSQ, mVUw, EhIg):
_mSQ[0] = _mSQ[0] - mVUw * Ro40[0]
for r845 in range(1, len(_mSQ)):
_mSQ[r845] -= mVUw * (Ro40[r845] + EhIg * _mSQ[r845])
return _mSQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MyUA(YKHO):\n for Zxma in Ni9Y(len(YKHO.weights)):\n for YRbF in Ni9Y(len(YKHO.weights[Zxma])):\n for r845 in Ni9Y(len(YKHO.weights[Zxma][YRbF])):\n YKHO.weights[Zxma][YRbF][r845] -= YKHO.learn_rate * YKHO.weight_gradients[Zxma][YRbF][r845]",
"def MyUA(YKHO):\n YKHO.mod... | [
"0.7720444",
"0.7701744",
"0.75655264",
"0.74217993",
"0.73780936",
"0.73461765",
"0.7282421",
"0.72817373",
"0.7192563",
"0.7188213",
"0.71591157",
"0.7135581",
"0.7131594",
"0.71288115",
"0.701883",
"0.700026",
"0.69652146",
"0.6916146",
"0.6909537",
"0.6902108",
"0.6878056... | 0.61102545 | 100 |
Convert Diofant's Integer to ``dtype``. | def lboB(YKHO, jzdc):
if jzdc.is_Rational:
return YKHO.dtype(jzdc.numerator, jzdc.denominator)
elif jzdc.is_Float:
from . import RR
return YKHO.dtype(*RR.to_rational(jzdc))
else:
raise _7mA('expected `Rational` object, got %s' % jzdc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vwDp(hQhm):\n AjzU = xUhq(hQhm)\n if AjzU == 'f' or AjzU == 'c':\n return 'i8'\n else:\n return hQhm",
"def UER4(YKHO):\n yDqo = SnBA.int64\n y6lZ = len(YKHO.categories)\n if y6lZ < oyIN.iinfo(oyIN.int8).max:\n yDqo = SnBA.int8\n elif y6lZ < oyIN.iinfo(oyIN.int16).ma... | [
"0.70264",
"0.6935923",
"0.6893817",
"0.6791334",
"0.6546459",
"0.65103996",
"0.6443234",
"0.6436389",
"0.6423882",
"0.63694054",
"0.636332",
"0.6350286",
"0.6285009",
"0.6228395",
"0.6226334",
"0.62235767",
"0.6219504",
"0.6175011",
"0.61634153",
"0.6149305",
"0.6144553",
... | 0.0 | -1 |
Given a turtle object and the list of edge coordinates, repositions the turtle to a random location on the canvas. Leftover turtle drawings are cleared, and orientation remains the same. | def bV79(jWq_, Fg_i):
jWq_.clear()
jWq_.penup()
jWq_.setpos(tuKI.randint(Fg_i[2], Fg_i[3]), tuKI.randint(Fg_i[1], Fg_i[0]))
jWq_.pendown() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t5nO(a1PO, WKvO, LVAh):\n a1PO.up()\n a1PO.goto(WKvO, LVAh)\n a1PO.down()",
"def NkMU():\n S9ha = tuKI.randrange(-300, 300)\n r8rJ = tuKI.randrange(-280, 280)\n ZbiO.penup()\n ZbiO.goto(S9ha, r8rJ)\n ZbiO.setheading(45)\n ZbiO.pencolor('gold')\n ZbiO.fillcolor('gold')\n ZbiO.... | [
"0.66441303",
"0.61636454",
"0.61206025",
"0.60539186",
"0.5933042",
"0.58951133",
"0.5878985",
"0.580209",
"0.5798169",
"0.5778986",
"0.57497835",
"0.5696601",
"0.56924164",
"0.56915104",
"0.5648421",
"0.5638527",
"0.5638527",
"0.56292766",
"0.56292766",
"0.5568752",
"0.5565... | 0.5889654 | 6 |
Given two turtle objects and the list of edge coordinates, sets up the turtles in the screen with a turtle shape, red and blue colors, and randomizes the starting location of the red turtle. | def sTZH(Xd0k, Cozn, Fg_i):
Xd0k.shape('turtle')
Xd0k.color('blue')
Cozn.shape('turtle')
Cozn.color('red')
bV79(Cozn, Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkMU():\n S9ha = tuKI.randrange(-300, 300)\n r8rJ = tuKI.randrange(-280, 280)\n ZbiO.penup()\n ZbiO.goto(S9ha, r8rJ)\n ZbiO.setheading(45)\n ZbiO.pencolor('gold')\n ZbiO.fillcolor('gold')\n ZbiO.begin_fill()\n ZbiO.down()\n for hzh_ in range(3):\n ZbiO.forward(100)\n ... | [
"0.7010279",
"0.6564612",
"0.62543887",
"0.6241587",
"0.6220638",
"0.6215003",
"0.6079443",
"0.6004086",
"0.6000052",
"0.594291",
"0.5928438",
"0.5865657",
"0.5849023",
"0.5791544",
"0.57892776",
"0.5757617",
"0.57474685",
"0.5745605",
"0.5742947",
"0.5724005",
"0.567784",
... | 0.67749417 | 1 |
Assert that the owngroup renders to a json format correctly. | def KUdL(cuiw, UWZE, E4fV):
if vRNf.is_legacy():
WQd8 = JvH4(manuhome_id=1, group_id=1, copy_id=0, status='5', sequence_number=1, reg_document_id='REG22911', can_document_id='42400339', tenancy_type=E4fV, lessee='', lessor='', interest='UNDIVIDED 1/2', interest_numerator=1, tenancy_specified='Y')
Z5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mfdJ(cuiw, UWZE, E4fV):\n if vRNf.is_legacy():\n WQd8 = JvH4(manuhome_id=1, group_id=1, copy_id=0, status='3', sequence_number=1, reg_document_id='REG22911', can_document_id='42400339', tenancy_type=E4fV, lessee='', lessor='', interest='UNDIVIDED 1/2', interest_numerator=1, tenancy_specified='Y')\n ... | [
"0.6787359",
"0.6448747",
"0.6344836",
"0.63094866",
"0.6099157",
"0.60186386",
"0.601116",
"0.59495384",
"0.593647",
"0.5911834",
"0.588205",
"0.5867184",
"0.5857051",
"0.5840048",
"0.5818414",
"0.58017164",
"0.57779354",
"0.5759871",
"0.5726743",
"0.5721308",
"0.5717486",
... | 0.7369259 | 0 |
Assert that the owngroup renders to a registration json format correctly. | def mfdJ(cuiw, UWZE, E4fV):
if vRNf.is_legacy():
WQd8 = JvH4(manuhome_id=1, group_id=1, copy_id=0, status='3', sequence_number=1, reg_document_id='REG22911', can_document_id='42400339', tenancy_type=E4fV, lessee='', lessor='', interest='UNDIVIDED 1/2', interest_numerator=1, tenancy_specified='Y')
Z5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KUdL(cuiw, UWZE, E4fV):\n if vRNf.is_legacy():\n WQd8 = JvH4(manuhome_id=1, group_id=1, copy_id=0, status='5', sequence_number=1, reg_document_id='REG22911', can_document_id='42400339', tenancy_type=E4fV, lessee='', lessor='', interest='UNDIVIDED 1/2', interest_numerator=1, tenancy_specified='Y')\n ... | [
"0.68123597",
"0.64537627",
"0.6144161",
"0.60868835",
"0.60547745",
"0.5989625",
"0.59722537",
"0.58451617",
"0.5844448",
"0.5834155",
"0.5833424",
"0.58094084",
"0.5801525",
"0.57904226",
"0.57847327",
"0.5764265",
"0.5753398",
"0.5746581",
"0.57459867",
"0.5736673",
"0.573... | 0.743725 | 0 |
This API is used to create a subscription to a topic. | def cmEd(YKHO, QePW):
try:
NArs = QePW._serialize()
MOPg = QePW.headers
TBsA = YKHO.call('CreateSubscription', NArs, headers=MOPg)
geh0 = qQXR.loads(TBsA)
C3ST = FYrf.CreateSubscriptionResponse()
C3ST._deserialize(geh0['Response'])
return C3ST
except Excep... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N19a(ekCf, pqAP, JuHa):\n V_Xt = yfhA.topic_path(ekCf, pqAP)\n EU6z = Oo3C.subscription_path(ekCf, JuHa)\n with Oo3C:\n mouR = Oo3C.create_subscription(request={'name': EU6z, 'topic': V_Xt})\n print(f'Subscription created: {mouR}')",
"def N19a(YKHO, mouR: str, rlUa: str, **B2fa: Dict[str, ... | [
"0.8238541",
"0.8028755",
"0.8028755",
"0.80090356",
"0.7484832",
"0.7346856",
"0.7282109",
"0.7185332",
"0.69415617",
"0.6898829",
"0.68289006",
"0.6773704",
"0.6764644",
"0.67365515",
"0.67173654",
"0.6711995",
"0.6668623",
"0.6665866",
"0.66524947",
"0.6599996",
"0.6590507... | 0.6037659 | 50 |
This API is used to get the list of dedicated clusters bound to a user. | def dkfi(YKHO, QePW):
try:
NArs = QePW._serialize()
MOPg = QePW.headers
TBsA = YKHO.call('DescribeBindClusters', NArs, headers=MOPg)
geh0 = qQXR.loads(TBsA)
C3ST = FYrf.DescribeBindClustersResponse()
C3ST._deserialize(geh0['Response'])
return C3ST
except E... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uQCR():\n return Z3ic(Oa1e.user)",
"def lG_k():\n g70p(Mkmy, bo34)\n uJjO = bAi8(Mkmy, 'user_id')\n bo34.warning('user_id={}'.format(uJjO))\n if not uJjO:\n bo34.warning('cluster_list without user_id')\n krlr['error'] = 'No user_id is given'\n krlr['data'] = Mkmy.args\n ... | [
"0.69039106",
"0.6583684",
"0.5990373",
"0.59762514",
"0.5919795",
"0.59005207",
"0.5842884",
"0.582922",
"0.579117",
"0.5788692",
"0.57564044",
"0.5755461",
"0.5750058",
"0.5747451",
"0.5690417",
"0.56747067",
"0.56725216",
"0.559632",
"0.5578997",
"0.55576104",
"0.5552821",... | 0.57373506 | 14 |
This API is used to get the information of a specific RocketMQ cluster. | def q7N3(YKHO, QePW):
try:
NArs = QePW._serialize()
MOPg = QePW.headers
TBsA = YKHO.call('DescribeRocketMQCluster', NArs, headers=MOPg)
geh0 = qQXR.loads(TBsA)
C3ST = FYrf.DescribeRocketMQClusterResponse()
C3ST._deserialize(geh0['Response'])
return C3ST
ex... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z2g8(YKHO):\n pmON = '/ws/v1/cluster/info'\n return YKHO.request(pmON)",
"def O8tN(YKHO) -> T7tf.data.ClusterInfo:\n return YKHO._redis.execute_command('RG.INFOCLUSTER')",
"def C_wf():\n return RLA5('/api/clusters')",
"def LyCO():\n g70p(Mkmy, bo34)\n JvOq = bAi8(Mkmy, 'cluster_id')\n ... | [
"0.7317904",
"0.7253453",
"0.72494024",
"0.70271194",
"0.7027021",
"0.6919198",
"0.6897481",
"0.6879696",
"0.68304735",
"0.6747724",
"0.67433",
"0.6710169",
"0.66966707",
"0.6660935",
"0.66155356",
"0.6603116",
"0.6594837",
"0.65842664",
"0.6574629",
"0.65604013",
"0.6550997"... | 0.7482701 | 0 |
Build the table element for a readonly table of courses defined in course_list and return the table as a tag Each tuple in course_list should have values corresponding to the fields described in db_utils.REQ_FIELDS. The returned table will have headers corresponding to COURSE_TABLE_HEADERS | def M8OL(deMH: list) -> OhYN:
Z9JV = CR5n.soup_from_text('<table></table>')
Z9JV.table['class'] = 'table table-bordered table-striped'
Z9JV.table['style'] = 'padding-bottom: 50px'
sdCG = Z9JV.new_tag('thead')
rdlD = Z9JV.new_tag('tr')
sdCG.append(rdlD)
for WBPg in jkPQ:
VmPb = Z9JV.n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V6zb(GF_L: list) -> OhYN:\n TBsA = yr8x(GF_L, editable=True)\n if len(GF_L) == 0:\n A1CE(TBsA, len(QePW.REQ_FIELDS), editable=True)\n for rdlD in TBsA.find_all('tr', recursive=False):\n e6er = ND2E(rdlD)\n tegi(e6er, attrs={'id': 'checkCFR'})\n return TBsA",
"def XcYb(GF_L: l... | [
"0.7241907",
"0.67119676",
"0.62315893",
"0.6071324",
"0.6036852",
"0.58446413",
"0.58003175",
"0.5783333",
"0.55355656",
"0.54718894",
"0.5460773",
"0.5454022",
"0.5402608",
"0.5380895",
"0.53772026",
"0.53519195",
"0.5337397",
"0.5336837",
"0.5325484",
"0.52929574",
"0.5292... | 0.79709196 | 0 |
Build the "Approve Courses" table that the approver uses to approve and set commitment codes for courses. | def XcYb(GF_L: list) -> OhYN:
Z9JV = CR5n.soup_from_text('<table></table>')
Z9JV.table['class'] = 'table table-bordered table-striped'
Z9JV.table['style'] = 'padding-bottom: 50px'
sdCG = Z9JV.new_tag('thead')
rdlD = Z9JV.new_tag('tr')
sdCG.append(rdlD)
for WBPg in VaV4:
VmPb = Z9JV.n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HEaA(QxIo: list):\n TBsA = yr8x(QxIo)\n d6pt = 0\n for rdlD in TBsA.find_all('tr', recursive=False):\n tfT3 = rdlD('td')[3]\n tfT3['contenteditable'] = 'true'\n tfT3['class'] = 'editable'\n VXjJ = CR5n.soup_from_text('<img height=\"30px\"></img>')\n ijzZ = rdlD('td')... | [
"0.6104417",
"0.5403024",
"0.53459954",
"0.533434",
"0.53133416",
"0.53110486",
"0.5309696",
"0.5160295",
"0.5144234",
"0.51317406",
"0.51024324",
"0.506423",
"0.5058103",
"0.50394046",
"0.5015339",
"0.4952057",
"0.4929295",
"0.4924965",
"0.4914677",
"0.49011195",
"0.48974523... | 0.6678851 | 0 |
Returns a list of Driver objects. A DAL may return only a single Driver object if there is an exact match against driverName. It may also return a zero length list if there is not an exact match. | def V25K(YKHO, dkTy):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aUVc(YKHO):\n return YKHO._list_request('drivers')",
"def kNF3(OUNU, _7DA=False) -> list:\n import re\n GbXM = []\n if NTQM('pyodbc'):\n import pyodbc\n if _7DA:\n GbXM = [E_qD for E_qD in pyodbc.drivers() if re.search(OUNU, E_qD)]\n else:\n GbXM = [E_qD... | [
"0.67744297",
"0.6676391",
"0.6664455",
"0.6392857",
"0.61482865",
"0.6070249",
"0.6022155",
"0.5925665",
"0.578768",
"0.57761914",
"0.57260054",
"0.5663298",
"0.5641965",
"0.551141",
"0.5460419",
"0.5395639",
"0.5383535",
"0.5370913",
"0.5296699",
"0.5219857",
"0.5203078",
... | 0.6560961 | 3 |
The inline policy document that is embedded in the specified IAM role. | def FIMM(Ro_8, *, x_IX: pulumi.Input[str], CX3n: pulumi.Input[str]):
qe4Y.set(Ro_8, 'policy_document', x_IX)
qe4Y.set(Ro_8, 'policy_name', CX3n) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DgJt(YKHO):\n return YKHO._role_policy_document",
"def t8iH(YKHO) -> qe4Y.Output[bdIy['outputs.RoleInlinePolicy']]:\n return qe4Y.get(YKHO, 'inline_policies')",
"def t8iH(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['RoleInlinePolicyArgs']]]]:\n return qe4Y.get(YKHO, 'inline_policies')",
"def t8iH(Y... | [
"0.73233044",
"0.71132404",
"0.69298345",
"0.69298345",
"0.6577451",
"0.65474725",
"0.64704096",
"0.6376401",
"0.6366618",
"0.63488835",
"0.630053",
"0.6298044",
"0.62396276",
"0.60799944",
"0.6061682",
"0.60585666",
"0.6052406",
"0.5914958",
"0.59129494",
"0.59126556",
"0.59... | 0.0 | -1 |
Returns an empty Queue instance. | def gGq6(QePW):
return QePW.param | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _OiT():\n tTpl = g5js()\n return tTpl",
"def _OiT():\n return g5js()",
"def _OiT():\n return g5js()",
"def DJDb():\n from queue_ import Queue\n IrVo = Queue()\n return IrVo",
"def CqEO(mWFP='default'):\n return g5js(mWFP, connection=lxP0(mWFP))",
"def c38J(YKHO):\n gGq6 = g... | [
"0.8869687",
"0.88177454",
"0.88177454",
"0.8428673",
"0.7233375",
"0.716879",
"0.7166122",
"0.7116074",
"0.70640653",
"0.7057569",
"0.70240575",
"0.7000479",
"0.6963888",
"0.69045156",
"0.681853",
"0.6809461",
"0.6807605",
"0.6763111",
"0.6747503",
"0.67435634",
"0.67302465"... | 0.0 | -1 |
Sell shares of stock. | def ZBqQ():
LGkJ = okPj.query.filter(okPj.user_id == cuiw['user_id']).all()
if QePW.method == 'POST':
if not QePW.form.get('symbol'):
return P88m('must select ticker symbol')
iTlw = wmij(QePW.form.get('shares'))
if not iTlw:
return P88m('must enter valid number of... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vLdO(YKHO, o61b, Z5kt):\n pass",
"def vLdO(YKHO):\n pass",
"def e4Ga(YKHO, q9zX, FGW3, RdoJ):\n pass",
"def D3VZ(YKHO):\n YKHO.txnumber = YKHO.txnumber + 1\n B__k = YKHO.portfolio.positions[YKHO.stockB].amount\n YKHO.order(YKHO.stockB, -1 * B__k)\n VjqK = YKHO.portfolio.positions[YKH... | [
"0.8073883",
"0.8064071",
"0.769398",
"0.7503251",
"0.73851854",
"0.7310051",
"0.71872866",
"0.71569467",
"0.70853025",
"0.70423573",
"0.7010402",
"0.69908124",
"0.6988605",
"0.6960068",
"0.69244885",
"0.69243604",
"0.6921367",
"0.6840477",
"0.68283975",
"0.6819335",
"0.67831... | 0.0 | -1 |
Find largest number in sorted list that is smaller than given number. | def YjXq(xYvp, TelZ):
if xYvp[0] >= TelZ:
return None
if xYvp[-1] < TelZ:
return len(xYvp) - 1
for YRbF, mLGw in enumerate(xYvp):
if mLGw >= TelZ:
return YRbF - 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ipPO(aO51):\n WGtv = aO51[0]\n for FGW3 in aO51:\n if WGtv < FGW3:\n WGtv = FGW3\n return WGtv",
"def mEDj(rLWT):\n if len(rLWT) == 0:\n return None\n CjUr = rLWT[0]\n for FGW3 in rLWT:\n if FGW3 > CjUr:\n CjUr = FGW3\n return CjUr",
"def SUEv... | [
"0.80976063",
"0.7865319",
"0.77930635",
"0.7778554",
"0.7747539",
"0.74133575",
"0.73986894",
"0.73484373",
"0.72661597",
"0.72609967",
"0.71211404",
"0.7097453",
"0.70673597",
"0.7059203",
"0.69686085",
"0.69659126",
"0.69359803",
"0.6920616",
"0.68929785",
"0.6892468",
"0.... | 0.7533166 | 5 |
Find largest number in sorted list that is smaller than given number. | def DlLX(xYvp, TelZ):
from bisect import bisect_left
if xYvp[0] > TelZ:
return None
GcwV = bisect_left(xYvp, TelZ)
return GcwV - 1
if xYvp[GcwV] == TelZ:
return GcwV - 1
else:
return GcwV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ipPO(aO51):\n WGtv = aO51[0]\n for FGW3 in aO51:\n if WGtv < FGW3:\n WGtv = FGW3\n return WGtv",
"def mEDj(rLWT):\n if len(rLWT) == 0:\n return None\n CjUr = rLWT[0]\n for FGW3 in rLWT:\n if FGW3 > CjUr:\n CjUr = FGW3\n return CjUr",
"def SUEv... | [
"0.80976063",
"0.7865319",
"0.77930635",
"0.7778554",
"0.7747539",
"0.7533166",
"0.74133575",
"0.73986894",
"0.73484373",
"0.72661597",
"0.72609967",
"0.7097453",
"0.70673597",
"0.7059203",
"0.69686085",
"0.69659126",
"0.69359803",
"0.6920616",
"0.68929785",
"0.6892468",
"0.6... | 0.71211404 | 11 |
If no questions exist, an appropriate message should be displayed. | def xX2q(x0hE):
geh0 = x0hE.get(gxEw('polls:index'))
assert geh0.status_code == 200
assert 'No polls are available.' in geh0.content.decode()
assert not geh0.context['latest_question_list'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bAls():\n return 'Sure.'",
"def oK9x(YKHO):\n geh0 = YKHO.client.get('/polls/')\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, '등록된 설문조사가 없습니다.')\n YKHO.assertQuerysetEqual(geh0.context['question_list'], [])",
"def oK9x(YKHO):\n geh0 = YKHO.client.get(gxEw('polls:in... | [
"0.7115543",
"0.6983057",
"0.6916847",
"0.6906799",
"0.6883725",
"0.6854193",
"0.68335986",
"0.68335986",
"0.68335986",
"0.68335986",
"0.68200886",
"0.681472",
"0.67804676",
"0.6690028",
"0.6643834",
"0.66200984",
"0.66089076",
"0.6587029",
"0.6536774",
"0.6530534",
"0.652611... | 0.61413324 | 55 |
Questions with a pub_date in the past should be displayed on the index page. | def lrPw(x0hE):
II0Q(question_text='Past question.', days=-30)
geh0 = x0hE.get(gxEw('polls:index'))
assert 'Past question.' in geh0.content.decode() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lrPw(YKHO):\n II0Q(question_text='Past question.', days=-1)\n geh0 = YKHO.client.get(gxEw('polls:index'))\n YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past question.>'])",
"def hOEG(YKHO):\n II0Q(question_text='Past question.', days=-1)\n II0Q(question_text='Fu... | [
"0.72329795",
"0.72168094",
"0.7194477",
"0.71868485",
"0.71653515",
"0.7130708",
"0.7060541",
"0.7011317",
"0.7006964",
"0.69564575",
"0.69447887",
"0.69226164",
"0.6902299",
"0.6892592",
"0.688966",
"0.6877897",
"0.6877584",
"0.6863398",
"0.6850646",
"0.6791402",
"0.677828"... | 0.68185747 | 19 |
Questions with a pub_date in the future should not be displayed on the index page. | def t9CC(x0hE):
II0Q(question_text='Future question.', days=30)
geh0 = x0hE.get(gxEw('polls:index'))
assert 'No polls are available.' in geh0.content.decode()
assert not geh0.context['latest_question_list'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YqnV(YKHO):\n geh0 = YKHO.client.get(gxEw('survey-detail', args=(7,)))\n YKHO.assertEqual(geh0.status_code, 404)",
"def eAZC(YKHO):\n geh0 = YKHO.client.post(gxEw('survey-detail', args=(7,)))\n YKHO.assertEqual(geh0.status_code, 404)",
"def wd1M(YKHO):\n cqqy = rIAI.now() + qcWV.timedelta(da... | [
"0.71487397",
"0.70362",
"0.6962385",
"0.6936011",
"0.6917338",
"0.6904433",
"0.6867968",
"0.68677557",
"0.68455637",
"0.6814948",
"0.6801565",
"0.6775662",
"0.6762314",
"0.6759378",
"0.67560446",
"0.67522866",
"0.6749213",
"0.6735492",
"0.67348653",
"0.67319024",
"0.6729151"... | 0.64994454 | 94 |
returns a series of ['Tags', 'Category_1', 'Category_2', 'Category_3'] | def Qwli(rdlD):
kUBT = FarT.loc[FarT['Collection Terms'] == rdlD['Collection Terms']]
if kUBT.shape[0] != 1:
return rLdf.Series((None, None, None, None))
kUBT = kUBT.iloc[0]
return rLdf.Series((rdlD['Tags'] if rdlD['Tags'] else kUBT['Tags'], kUBT['Category_1'], kUBT['Category_2'], kUBT['Category... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQuW():\n return [('', '---------')] + list(qZuN.objects.values_list('hl_category', 'hl_category').distinct())",
"def LQuW(YKHO):\n LeZt = ''\n for YRbF in YKHO.category.all():\n LeZt += YRbF.name + ' '\n return LeZt",
"def bVBI(Q6kx):\n if Q6kx['categories']:\n return Q6kx['ca... | [
"0.7389885",
"0.72132534",
"0.696684",
"0.6959581",
"0.69248176",
"0.6886032",
"0.68810564",
"0.6874404",
"0.6847801",
"0.6813737",
"0.6805473",
"0.67638934",
"0.67373264",
"0.66877556",
"0.66668785",
"0.6618316",
"0.6597944",
"0.65341413",
"0.6519587",
"0.6515731",
"0.651245... | 0.61699283 | 56 |
Deletes all nodes that are children of this node, and makes this node into a root. | def WWri(YKHO, BgEb=True):
YKHO.validate()
if BgEb:
YKHO._makeLeafState()
elif YKHO.parent is not None:
EmMj = _AKB.deleteChild(YKHO)
if not EmMj:
raise RuntimeError('Could not find child in parent trees.')
YKHO.parent = None
for J_Es in YKHO.trees.values():
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _8AY(YKHO):\n for Q6kx in YKHO.nodes:\n YKHO.nodes[Q6kx]['root'] = False",
"def uUvb(YKHO):\n pmON = YKHO.path\n for _AKB, aUGN in zip(pmON, pmON[1:]):\n aUGN.children |= {_AKB}\n _AKB.edge_value = YKHO._reverse(aUGN.edge_value)\n YKHO.parent = None",
"def EG0n(YKHO):\n ... | [
"0.732644",
"0.73005897",
"0.69986314",
"0.69007415",
"0.681276",
"0.6801643",
"0.6790909",
"0.6738004",
"0.6729687",
"0.6710637",
"0.6702499",
"0.66689694",
"0.65743107",
"0.6563208",
"0.65473485",
"0.65286267",
"0.64927655",
"0.64859617",
"0.6461311",
"0.6456736",
"0.642182... | 0.0 | -1 |
Regex for 8 to 9 digits. | def FIMM(YKHO):
super().__init__(regex='^\\d{8,9}$', message=YKHO.error_message) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jtTa(YKHO, ulZ4):\n if ulZ4 == '0000':\n return False\n else:\n HlGW = ZbWC.compile('\\\\d{3}[0-9]')\n if HlGW.match(ulZ4):\n return True\n else:\n return False",
"def xzCw(FGW3):\n FGW3 = Xbam(FGW3)\n if len(FGW3) not in (4, 6):\n raise sH... | [
"0.6375852",
"0.6318544",
"0.63084376",
"0.62633353",
"0.6163645",
"0.6158052",
"0.61318564",
"0.6128082",
"0.6055057",
"0.6019757",
"0.6019757",
"0.5919423",
"0.5899519",
"0.58763194",
"0.5862034",
"0.5857507",
"0.5819241",
"0.58064854",
"0.57767236",
"0.5748084",
"0.5735263... | 0.59173435 | 12 |
Pytest fixture which configures application for testing. | def x0hE():
nNXP.app.config['TESTING'] = True
with nNXP.app.test_client() as x0hE:
yield x0hE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.app = LUif(config_name='testing')",
"def FCbF(YKHO):\n YKHO.app = LUif(HR5W)\n YKHO.app_context = YKHO.app.app_context()\n YKHO.app_context.push()",
"def VhYY():\n return WsL5.Flask(__name__)",
"def FCbF(YKHO):\n from app import create_app\n YKHO.test_app = create_... | [
"0.7979764",
"0.7835798",
"0.7715328",
"0.76061743",
"0.75903875",
"0.7566542",
"0.75466484",
"0.75346655",
"0.7522522",
"0.751573",
"0.75141203",
"0.75141114",
"0.75141114",
"0.75141114",
"0.7509276",
"0.75075513",
"0.7505408",
"0.7447449",
"0.74341047",
"0.7432808",
"0.7417... | 0.0 | -1 |
Use GET request on root and check if the response is correct. | def gSL8(x0hE):
Ylbp = x0hE.get('/')
assert Ylbp.data == b"Yes, we're up" | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa9m(YKHO):\n geh0 = YKHO.client.do_request('GET', '/')\n YKHO.assertEqual(Xqgu.OK, geh0.status)\n YKHO.assertEqual(b'root', geh0.read())",
"def aVlM(YKHO):\n YKHO.assertEquals(200, YKHO.response.status_code)",
"def ykgQ(YKHO):\n uDyx = YKHO.api_get(KelX(), expected_mimetype=VXaY)\n YKHO.... | [
"0.7650986",
"0.7592788",
"0.7368661",
"0.70211667",
"0.6996434",
"0.69561636",
"0.6955856",
"0.6926129",
"0.6926129",
"0.6926129",
"0.6926129",
"0.6926129",
"0.6926129",
"0.6926129",
"0.6926129",
"0.6926129",
"0.6926129",
"0.6907126",
"0.68924063",
"0.6852889",
"0.6845274",
... | 0.6802076 | 24 |
Ensure that the API returns error when there is no image submitted in the request. | def __vx(x0hE):
Ylbp = x0hE.post('/classify', data=dict())
assert b'No image submitted' in Ylbp.data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n2vP(YKHO):\n bD7m = xx5i(YKHO.recipe.id)\n Ylbp = YKHO.client.post(bD7m, {'image': 'notimage'}, format='multipart')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def gQIX(YKHO):\n CBIr = dsjM.User.objects.get(email='mrtest@mypapaya.io', username='aov1')\n Ghho = _D35.Phot... | [
"0.7348451",
"0.7161551",
"0.71585304",
"0.7153044",
"0.7110349",
"0.7092371",
"0.7010033",
"0.69892097",
"0.69892097",
"0.6972726",
"0.6969334",
"0.6954982",
"0.6954982",
"0.69426733",
"0.69295084",
"0.69284004",
"0.69141346",
"0.68421763",
"0.68193793",
"0.6781569",
"0.6725... | 0.7024102 | 6 |
Creates and saves a User with the given email, username and password | def lYUQ(YKHO, D3lj, NtEF, jTXt):
if not D3lj:
raise ValueError('An email address must be provided')
CBIr = YKHO.model(email=YKHO.normalize_email(D3lj), username=NtEF)
CBIr.set_password(jTXt)
CBIr.save()
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kI0b(Emd4, NtEF, D3lj, jTXt):\n kz9X = B8ni.generate_password_hash(jTXt).decode('UTF-8')\n CBIr = mv1M(username=NtEF, email=D3lj, password=kz9X)\n NCls.session.add(CBIr)\n return CBIr",
"def kI0b(Emd4, NtEF, D3lj, jTXt):\n kz9X = B8ni.generate_password_hash(jTXt).decode('UTF-8')\n CBIr = mv... | [
"0.85234946",
"0.8518584",
"0.84999037",
"0.84540015",
"0.8438943",
"0.84377253",
"0.8428181",
"0.8424725",
"0.84084284",
"0.8394634",
"0.83928",
"0.83755344",
"0.8369231",
"0.8340806",
"0.8332911",
"0.83293706",
"0.83119863",
"0.82925534",
"0.828425",
"0.82814986",
"0.827659... | 0.82054305 | 30 |
Creates a list of uniq characters | def _ZXg(mLGw: int) -> list[str]:
if mLGw > 60:
raise Exception('Only up to 60 uniq characters supported, you provided:', str(mLGw))
U5bT = []
for YRbF in range(65, 65 + mLGw):
U5bT.append(chr(YRbF))
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cize(WPlS):\n XcZ8 = []\n for hcXw in list(WPlS):\n if hcXw not in XcZ8:\n XcZ8.append(hcXw)\n return XcZ8",
"def sow7() -> x1iM[str]:\n return [str(chr(tuKI.randint(97, 122))) for WKvO in range(0, 20)]",
"def sow7() -> x1iM[str]:\n return [tuKI.choice(vIwR.ascii_letters.lo... | [
"0.76671785",
"0.7301748",
"0.72162026",
"0.718669",
"0.7181823",
"0.7169815",
"0.7070086",
"0.7070086",
"0.6826095",
"0.6817491",
"0.6783706",
"0.6723108",
"0.66718566",
"0.66349155",
"0.6608923",
"0.656884",
"0.64930516",
"0.6487731",
"0.64500785",
"0.64111966",
"0.6395668"... | 0.8186607 | 0 |
Creates a line of between smin and smax random characters | def O_lX(rsJd: int, ntdf: int, cmPJ: list[str]) -> str:
s4lz = ''
yLAt = tuKI.randint(rsJd, ntdf)
for YRbF in range(yLAt):
oeNL = tuKI.randint(0, len(cmPJ) - 1)
hcXw = cmPJ[oeNL]
s4lz = s4lz + hcXw + ' '
s4lz = s4lz[:-1] + '\n'
return s4lz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BQxl(min, max):\n mrPm = ['A', 'T', 'C', 'G']\n Aofo = []\n u54L = tuKI.randrange(min, max)\n for YRbF in range(0, u54L):\n Aofo.append(tuKI.choice(mrPm))\n if YRbF % 80 == 0:\n Aofo.append('\\n')\n return ''.join(Aofo)",
"def QEXj():\n zFiD = str(tuKI.randint(9 * 1... | [
"0.67474824",
"0.6655361",
"0.63212407",
"0.6098721",
"0.60913676",
"0.6080014",
"0.6035715",
"0.60213786",
"0.6006016",
"0.5977382",
"0.5935082",
"0.5931503",
"0.5928057",
"0.58819985",
"0.58565223",
"0.5810325",
"0.5782116",
"0.5766471",
"0.5749234",
"0.5736163",
"0.571634"... | 0.76392925 | 0 |
Returns a mostcompatible person, breaking ties with the first person tied. | def pZmQ(RuJL, wl6z):
NrSs = 'no one'
yCnv = -1
for a70H in wl6z:
mWFP, nfUB = a70H
kUBT = Ef_Y(RuJL, nfUB)
if kUBT > yCnv:
yCnv = kUBT
NrSs = mWFP
return NrSs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p77J(YKHO, NHn2):\n return max(((YKHO.probability_lookup[a1PO], a1PO) for a1PO in NHn2))[1]",
"def sB9D(YKHO):\n jwZ_ = list(reversed(YKHO.sort_candidates()))\n A6dL = len(YKHO.candidates[jwZ_[0]])\n Hi2d = [jwZ_[0]]\n for SkC9 in jwZ_:\n if len(YKHO.candidates[SkC9]) == A6dL and SkC9 n... | [
"0.64603883",
"0.6158944",
"0.59769416",
"0.59147495",
"0.579808",
"0.578361",
"0.5725528",
"0.5694875",
"0.56764233",
"0.5671974",
"0.56591916",
"0.56502193",
"0.5633634",
"0.5599136",
"0.5580969",
"0.55669826",
"0.5546359",
"0.55390805",
"0.55358005",
"0.5530996",
"0.552452... | 0.65086675 | 0 |
Returns one training item at index `idx`. | def eqdP(pNZh, Grhq):
pNZh = jHsn.to_undirected(pNZh)
KLLm = {D70y: ht2j.tensor(Grhq[UXqs]) for D70y, UXqs in jHsn.get_edge_attributes(pNZh, 'label').items()}
jHsn.set_edge_attributes(pNZh, name='one_hot', values=KLLm)
t9UL = XdHH.DGLGraph()
t9UL.from_networkx(nx_graph=pNZh, edge_attrs=['one_hot'], ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _oqe(YKHO, or8S: int):\n n50m = YKHO.sample_tokens[or8S]\n return YKHO.get_by_sample_token(n50m)",
"def OP2O(YKHO, d6pt):\n if YKHO.phase == 'train':\n return YKHO.getTrainItem(d6pt)\n else:\n return YKHO.getTestItem(d6pt)",
"def OP2O(YKHO, or8S):\n fBRX = YKHO.list_IDs[or8S * ... | [
"0.7215269",
"0.7132326",
"0.6883855",
"0.6853217",
"0.6847026",
"0.67675006",
"0.6731859",
"0.67283213",
"0.6712234",
"0.67038256",
"0.6672518",
"0.66631514",
"0.66536456",
"0.6609354",
"0.65696985",
"0.65696985",
"0.6554257",
"0.65408003",
"0.6529092",
"0.6517055",
"0.65097... | 0.0 | -1 |
Generator for bfs given graph and initial node. Yields nodes at next hop at each call. | def bJFh(yvY1, GrpD, rb7a=2):
tgFE = [[GrpD]]
azXi = []
for Csk6 in range(rb7a):
s5RC = []
for exwG in tgFE[Csk6]:
azXi.append(exwG)
for LmD5 in yvY1.neighbors(exwG):
if LmD5 not in azXi:
s5RC.append(LmD5)
tgFE.append(s5RC)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cCNA(YKHO, yKcO, Os4s=None, KVH6=True):\n gGq6, azXi = (MUE7([(yKcO, 0)]), {yKcO})\n if KVH6:\n zXh1 = YKHO.out_edges\n OPHn = YKHO.tail\n else:\n zXh1 = YKHO.inc_edges\n OPHn = YKHO.head\n while gGq6:\n Iuo4, _wqm = gGq6.popleft()\n yield (Iuo4, _wqm)\n ... | [
"0.7463181",
"0.73937994",
"0.7092793",
"0.70402956",
"0.697515",
"0.69388175",
"0.6766563",
"0.67255056",
"0.6685241",
"0.6633382",
"0.6614931",
"0.6605929",
"0.65995556",
"0.65594757",
"0.64772886",
"0.6436992",
"0.6414749",
"0.6408883",
"0.63789487",
"0.6378094",
"0.637155... | 0.7420492 | 1 |
Generate a string of gibberish | def BWvy(u54L=10, gLiZ=C1SZ + ' '):
return ''.join([tuKI.choice(gLiZ) for bGrB in range(u54L)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def olwh(YKHO, u54L=8):\n U5bT = ''\n for YRbF in range(u54L):\n WKvO = -1\n while WKvO in (-1, 91, 92, 93, 94, 95, 96, 60, 61, 62, 58, 59, 63, 64):\n WKvO = qukk(48, 123)\n U5bT += chr(WKvO)\n return U5bT",
"def olwh(YKHO, u54L=8):\n U5bT = ''\n for YRbF in range(u... | [
"0.69187427",
"0.69187427",
"0.67429525",
"0.666645",
"0.6656705",
"0.6627361",
"0.66184264",
"0.66121995",
"0.6606889",
"0.6597945",
"0.6578549",
"0.65219194",
"0.64913154",
"0.6426166",
"0.6370836",
"0.6370619",
"0.63378644",
"0.63356704",
"0.63262963",
"0.63262963",
"0.631... | 0.0 | -1 |
3x3 convolution with padding | def Myly(UUZO, sYyA, _0fC=1):
return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=1, bias=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())",
"def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)",
"def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,... | [
"0.78398645",
"0.7541494",
"0.75402796",
"0.7490834",
"0.743512",
"0.74207336",
"0.7341627",
"0.7320118",
"0.729922",
"0.7287021",
"0.7280108",
"0.7280108",
"0.7257802",
"0.72279656",
"0.7220503",
"0.7214961",
"0.7214961",
"0.7210507",
"0.7198557",
"0.71642965",
"0.71623594",... | 0.7080168 | 88 |
Constructs a ResNet18 model. | def qUH4(mL4f=False, **B2fa):
C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v19q(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet18']))\n return C3ST",
"def qUH4(mL4f=True, **B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['res... | [
"0.7803906",
"0.7390123",
"0.7378419",
"0.7366819",
"0.7343563",
"0.73355573",
"0.73261076",
"0.73261076",
"0.73044896",
"0.73044896",
"0.73044896",
"0.73044896",
"0.73044896",
"0.73044896",
"0.73044896",
"0.73044896",
"0.73044896",
"0.73044896",
"0.73044896",
"0.73044896",
"... | 0.7090802 | 29 |
Constructs a ResNet34 model. | def OwNx(mL4f=False, **B2fa):
C3ST = S1Vm(em1m, [3, 4, 6, 3], **B2fa)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OwNx(nZt5=10):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], 2 * nZt5)\n return C3ST",
"def OwNx(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet34']))\n mLGw = C3ST.fc.in_features\n C3ST.fc = ht2j.nn.Linear(mLGw, _Fei.MO... | [
"0.7703386",
"0.74675333",
"0.74524",
"0.7428298",
"0.7428298",
"0.7428298",
"0.7428298",
"0.7428298",
"0.7428298",
"0.7428298",
"0.7428298",
"0.7428298",
"0.7428298",
"0.7428298",
"0.7427917",
"0.7424663",
"0.7424663",
"0.7407424",
"0.73827267",
"0.737552",
"0.73492414",
"... | 0.7232337 | 25 |